/* ==================== 01-design-tokens.css ==================== */

/* ==========================================================
   THE MAKEHUB DESIGN SYSTEM v2
   File: 01-design-tokens.css
   Purpose: reset, fonts, tokens, global foundations
   ========================================================== */

/* Temporary web-font loading.
   Recommended production setup: self-host WOFF2 files and replace this import
   with @font-face rules using the same family names. */
@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800&display=swap");

/* ----------------------------------------------------------
   MODERN RESET
---------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img,
picture,
video {
    height: auto;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
[role="button"] {
    cursor: pointer;
}

a {
    color: inherit;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* Prevent Grid/Flex children from forcing horizontal overflow */
.grid > *,
.flex > *,
[class*="__grid"] > *,
[class*="__inner"] > * {
    min-width: 0;
}

/* ----------------------------------------------------------
   BRAND TOKENS
---------------------------------------------------------- */
:root {
    /* Core palette */
    --tmh-red: #B31317;
    --tmh-red-dark: #8E1013;
    --tmh-blue: #093754;
    --tmh-yellow: #FFF500;
    --tmh-paper: #FFF9ED;
    --tmh-white: #FFFFFF;
    --tmh-black: #111111;

    /* Neutral scale */
    --tmh-grey-050: #FAFAFA;
    --tmh-grey-100: #F5F5F5;
    --tmh-grey-200: #EAEAEA;
    --tmh-grey-300: #D8D8D8;
    --tmh-grey-400: #B6B6B6;
    --tmh-grey-500: #8B8B8B;
    --tmh-grey-600: #676767;
    --tmh-grey-700: #4F4F4F;
    --tmh-grey-800: #2D2D2D;

    /* Semantic colours */
    --color-bg: var(--tmh-paper);
    --color-surface: var(--tmh-white);
    --color-text: var(--tmh-black);
    --color-text-muted: var(--tmh-grey-600);
    --color-primary: var(--tmh-red);
    --color-primary-hover: var(--tmh-red-dark);
    --color-secondary: var(--tmh-blue);
    --color-accent: var(--tmh-yellow);
    --color-border: var(--tmh-grey-300);

    /* Typography */
    --font-heading: "Bebas Neue", "Arial Narrow", Arial, Helvetica, sans-serif;
    --font-body: "Inter", Arial, Helvetica, sans-serif;

    /* Type scale */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-md: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 3rem;
    --fs-4xl: 4.5rem;
    --fs-5xl: 6rem;

    --lh-tight: 0.95;
    --lh-snug: 1.2;
    --lh-normal: 1.6;

    /* Spacing */
    --space-0: 0;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;
    --space-10: 8rem;
    --space-11: 10rem;
    --space-12: 12rem;

    /* Layout */
    --container-xs: 640px;
    --container-sm: 820px;
    --container-md: 1040px;
    --container: 1280px;
    --container-wide: 1440px;
    --gutter: clamp(1rem, 3vw, 2rem);

    /* Radius */
    --radius-xs: 6px;
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 44px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-xs: 0 1px 4px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.07);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.09);
    --shadow-lg: 0 22px 60px rgba(0, 0, 0, 0.13);

    /* Motion */
    --ease-standard: cubic-bezier(.2, .8, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --speed-fast: 160ms;
    --speed: 280ms;
    --speed-slow: 520ms;

    /* Layers */
    --z-base: 1;
    --z-dropdown: 80;
    --z-header: 100;
    --z-overlay: 900;
    --z-modal: 1000;
    --z-toast: 1100;

    /* Safe-area */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

/* ----------------------------------------------------------
   GLOBAL BODY
---------------------------------------------------------- */
body {
    overflow-x: hidden;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: var(--fs-md);
    font-weight: 400;
    line-height: var(--lh-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-synthesis: none;
}

::selection {
    background: var(--tmh-red);
    color: var(--tmh-white);
}

:focus-visible {
    outline: 3px solid var(--tmh-yellow);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}


/* ==================== 02-layout-typography.css ==================== */

/* ==========================================================
   THE MAKEHUB DESIGN SYSTEM v2
   File: 02-layout-typography.css
   Purpose: typography, containers, grids, layout primitives
   ========================================================== */

/* ----------------------------------------------------------
   CONTAINERS
---------------------------------------------------------- */
.container,
.container--wide,
.container--narrow,
.container--xs {
    width: min(calc(100% - (var(--gutter) * 2)), var(--container));
    margin-inline: auto;
}

.container--wide {
    max-width: var(--container-wide);
}

.container--narrow {
    max-width: var(--container-sm);
}

.container--xs {
    max-width: var(--container-xs);
}

.container--full {
    width: 100%;
}

/* ----------------------------------------------------------
   SECTIONS
---------------------------------------------------------- */
.section {
    padding-block: clamp(5rem, 9vw, 8rem);
}

.section--sm {
    padding-block: clamp(3.5rem, 6vw, 5rem);
}

.section--lg {
    padding-block: clamp(7rem, 11vw, 10rem);
}

.section--flush {
    padding-block: 0;
}

/* ----------------------------------------------------------
   TYPOGRAPHY
---------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6,
.display,
.display-lg,
.display-xl,
.heading-font {
    font-family: var(--font-heading);
    font-style: normal;
    font-weight: 400;
    font-synthesis: none;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    line-height: var(--lh-tight);
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

h1 {
    font-size: clamp(3.25rem, 7vw, 6.25rem);
}

h2 {
    font-size: clamp(2.75rem, 5.5vw, 5rem);
}

h3 {
    font-size: clamp(2rem, 3.5vw, 3rem);
}

h4 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

.display-xl {
    font-size: clamp(4.5rem, 10vw, 9rem);
    line-height: 0.88;
}

.display-lg {
    font-size: clamp(4rem, 8vw, 7.5rem);
    line-height: 0.9;
}

.display {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 0.92;
}

p {
    max-width: 70ch;
}

p + p {
    margin-top: 1rem;
}

.lead {
    max-width: 62ch;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.55;
    color: var(--color-text-muted);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--tmh-red);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 2.25rem;
    height: 2px;
    flex: 0 0 auto;
    background: currentColor;
}

/* ----------------------------------------------------------
   LINKS
---------------------------------------------------------- */
a {
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition: color var(--speed-fast) ease;
}

a:hover {
    color: var(--tmh-red);
}

/* ----------------------------------------------------------
   LISTS
---------------------------------------------------------- */
.list-clean {
    list-style: none;
}

.list-spaced {
    display: grid;
    gap: 0.75rem;
}

.list-disc {
    padding-inline-start: 1.25rem;
}

/* ----------------------------------------------------------
   GRID
---------------------------------------------------------- */
.grid {
    display: grid;
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--auto {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

/* ----------------------------------------------------------
   FLEX
---------------------------------------------------------- */
.flex {
    display: flex;
}

.flex--column {
    flex-direction: column;
}

.flex--center {
    align-items: center;
    justify-content: center;
}

.flex--between {
    align-items: center;
    justify-content: space-between;
}

.flex--wrap {
    flex-wrap: wrap;
}

/* ----------------------------------------------------------
   TEXT HELPERS
---------------------------------------------------------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.text-primary { color: var(--tmh-red); }
.text-white { color: var(--tmh-white); }
.text-balance { text-wrap: balance; }

/* ----------------------------------------------------------
   MEDIA
---------------------------------------------------------- */
.media-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-contain {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.aspect-1-1 { aspect-ratio: 1 / 1; }
.aspect-4-3 { aspect-ratio: 4 / 3; }
.aspect-4-5 { aspect-ratio: 4 / 5; }
.aspect-16-9 { aspect-ratio: 16 / 9; }


/* ==================== 03-components-basic.css ==================== */

/* ==========================================================
   THE MAKEHUB DESIGN SYSTEM v2
   File: 03-components-basic.css
   Purpose: buttons, cards, badges, tags, media components
   ========================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 48px;
    padding: 0.95rem 1.75rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    background: transparent;
    color: inherit;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition:
        transform var(--speed-fast) var(--ease-standard),
        background-color var(--speed-fast) ease,
        color var(--speed-fast) ease,
        border-color var(--speed-fast) ease,
        box-shadow var(--speed-fast) ease;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--tmh-red);
    color: var(--tmh-white);
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    background: var(--tmh-red-dark);
    color: var(--tmh-white);
}

.btn--dark {
    background: var(--tmh-black);
    color: var(--tmh-white);
}

.btn--light {
    background: var(--tmh-white);
    color: var(--tmh-black);
}

.btn--outline {
    border-color: var(--tmh-red);
    color: var(--tmh-red);
}

.btn--outline:hover {
    background: var(--tmh-red);
    color: var(--tmh-white);
}

.btn--text {
    min-height: auto;
    padding: 0;
    border-radius: 0;
    color: var(--tmh-red);
}

/* Cards */
.card {
    overflow: hidden;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card__body {
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.card--hover {
    transition:
        transform var(--speed) var(--ease-standard),
        box-shadow var(--speed) ease;
}

.card--hover:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card--accent {
    border-inline-start: 6px solid var(--tmh-red);
}

/* Image card */
.image-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.image-card img {
    width: 100%;
    transition: transform 650ms var(--ease-out);
}

.image-card:hover img {
    transform: scale(1.045);
}

.image-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.05) 65%);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-pill);
    font-size: var(--fs-xs);
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.badge--red { background: var(--tmh-red); color: var(--tmh-white); }
.badge--yellow { background: var(--tmh-yellow); color: var(--tmh-black); }
.badge--dark { background: var(--tmh-black); color: var(--tmh-white); }

/* Tags */
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: transparent;
    font-size: var(--fs-sm);
}

/* Polaroid */
.polaroid {
    padding: 0.85rem 0.85rem 2rem;
    background: var(--tmh-white);
    box-shadow: var(--shadow-md);
    transform: rotate(-2deg);
}

.polaroid:nth-child(even) {
    transform: rotate(2deg);
}

/* Divider */
.divider {
    width: 100%;
    height: 1px;
    background: var(--color-border);
}

/* Icon box */
.icon-box {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.icon-box__icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--tmh-paper);
    color: var(--tmh-red);
}

.icon-box__content {
    flex: 1 1 auto;
}

/* CTA */
.cta-box {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 7vw, 6rem);
    border-radius: var(--radius-lg);
    background: var(--tmh-red);
    color: var(--tmh-white);
}


/* ==================== 04-components-advanced.css ==================== */

/* ==========================================================
   THE MAKEHUB DESIGN SYSTEM v2
   File: 04-components-advanced.css
   Purpose: navigation, forms, accordion, modal, footer
   ========================================================== */

/* ----------------------------------------------------------
   NAVBAR
---------------------------------------------------------- */
.navbar {
    position: relative;
    z-index: var(--z-header);
    width: 100%;
    background: var(--tmh-white);
    transition: box-shadow var(--speed-fast) ease, background-color var(--speed-fast) ease;
}

.navbar--sticky {
    position: sticky;
    top: 0;
}

.navbar--scrolled {
    background: rgba(255,255,255,.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-xs);
}

.navbar__inner {
    width: min(calc(100% - (var(--gutter) * 2)), var(--container));
    min-height: 88px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.navbar__logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.navbar__logo img {
    width: auto;
    max-width: 170px;
    height: auto;
}

.navbar__logo-text {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-style: normal;
    font-weight: 400;
    line-height: .9;
    letter-spacing: .01em;
    text-transform: uppercase;
    white-space: nowrap;
    font-synthesis: none;
}

.navbar__menu {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    list-style: none;
}

.navbar__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-block: 0.5rem;
    color: var(--tmh-black);
    font-size: var(--fs-sm);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.navbar__link::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--tmh-red);
    transition: width var(--speed-fast) ease;
}

.navbar__link:hover::after,
.navbar__link.is-active::after {
    width: 100%;
}

.navbar__toggle {
    display: none;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--tmh-black);
}

.navbar__toggle-lines {
    display: grid;
    gap: 5px;
}

.navbar__toggle-lines span {
    display: block;
    width: 25px;
    height: 3px;
    border-radius: 3px;
    background: currentColor;
}

/* ----------------------------------------------------------
   MOBILE MENU
---------------------------------------------------------- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    display: flex;
    flex-direction: column;
    padding:
        calc(6rem + var(--safe-top))
        calc(1.5rem + var(--safe-right))
        calc(2rem + var(--safe-bottom))
        calc(1.5rem + var(--safe-left));
    background: var(--tmh-paper);
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    transition:
        transform var(--speed-slow) var(--ease-out),
        opacity var(--speed) ease,
        visibility var(--speed) ease;
}

.mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.mobile-menu__list {
    display: grid;
    gap: 1rem;
    list-style: none;
}

.mobile-menu__link {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 12vw, 4.5rem);
    font-weight: 400;
    line-height: .92;
    text-transform: uppercase;
}

/* ----------------------------------------------------------
   FORMS
---------------------------------------------------------- */
.form {
    display: grid;
    gap: 1.5rem;
}

.form-group {
    display: grid;
    gap: 0.5rem;
}

.form-label {
    font-size: var(--fs-sm);
    font-weight: 700;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.9rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--tmh-white);
    color: var(--tmh-black);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition:
        border-color var(--speed-fast) ease,
        box-shadow var(--speed-fast) ease;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--tmh-red);
    box-shadow: 0 0 0 3px rgba(179,19,23,.12);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-check input {
    width: 18px;
    height: 18px;
    margin-top: 0.2rem;
    accent-color: var(--tmh-red);
}

/* ----------------------------------------------------------
   ACCORDION
---------------------------------------------------------- */
.accordion {
    border-top: 1px solid var(--color-border);
}

.accordion__item {
    border-bottom: 1px solid var(--color-border);
}

.accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
}

.accordion__title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    text-transform: uppercase;
}

.accordion__content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--speed) var(--ease-standard);
}

.accordion__content > div {
    overflow: hidden;
}

.accordion__item.is-open .accordion__content {
    grid-template-rows: 1fr;
}

/* ----------------------------------------------------------
   MODAL
---------------------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(17,17,17,.72);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--speed) ease, visibility var(--speed) ease;
}

.modal.is-open {
    opacity: 1;
    visibility: visible;
}

.modal__content {
    position: relative;
    width: min(100%, 720px);
    max-height: min(90vh, 900px);
    max-height: min(90dvh, 900px);
    overflow: auto;
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: var(--radius-lg);
    background: var(--tmh-paper);
}

/* ----------------------------------------------------------
   FOOTER
---------------------------------------------------------- */
.footer {
    padding: 6rem 0 2rem;
    background: var(--tmh-black);
    color: var(--tmh-white);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,.18);
}

.footer__logo {
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    text-transform: uppercase;
}

.footer__description,
.footer__links a {
    color: rgba(255,255,255,.72);
}

.footer__links {
    display: grid;
    gap: 0.7rem;
    list-style: none;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    color: rgba(255,255,255,.55);
    font-size: var(--fs-xs);
}


/* ==================== 05-pages-home.css ==================== */

/* ==========================================================
   THE MAKEHUB DESIGN SYSTEM v2
   File: 05-pages-home.css
   Purpose: homepage specific sections
   ========================================================== */

/* ----------------------------------------------------------
   HERO
---------------------------------------------------------- */
.home-hero {
    position: relative;
    min-height: calc(100vh - 88px);
    min-height: calc(100svh - 88px);
    display: flex;
    align-items: center;
    overflow: clip;
    padding-block: clamp(4rem, 8vw, 7rem);
}

.home-hero__inner {
    position: relative;
    z-index: 2;
    width: min(calc(100% - (var(--gutter) * 2)), var(--container));
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: clamp(3rem, 6vw, 6rem);
}

.home-hero__eyebrow {
    margin-bottom: 1.25rem;
}

.home-hero__title {
    max-width: 10ch;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    font-size: clamp(4.2rem, 8vw, 8rem);
    font-weight: 400;
    line-height: .88;
    letter-spacing: .005em;
    text-transform: uppercase;
    text-wrap: balance;
    font-synthesis: none;
}

.home-hero__title .accent {
    color: var(--tmh-red);
}

.home-hero__text {
    max-width: 580px;
    margin-bottom: 2rem;
    color: var(--tmh-grey-700);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.home-hero__visual {
    position: relative;
    min-height: clamp(480px, 55vw, 680px);
}

.home-hero__image {
    position: absolute;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.home-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero__image--main {
    inset: 0 2rem 5rem 2rem;
    transform: rotate(2deg);
}

.home-hero__image--secondary {
    width: 42%;
    height: 42%;
    right: 0;
    bottom: 0;
    border: 8px solid var(--tmh-paper);
    transform: rotate(-4deg);
}

/* ----------------------------------------------------------
   MANIFESTO INTRO
---------------------------------------------------------- */
.home-intro {
    position: relative;
    overflow: clip;
    padding-block: clamp(6rem, 10vw, 10rem);
    background: var(--tmh-black);
    color: var(--tmh-white);
}

.home-intro__inner {
    width: min(calc(100% - (var(--gutter) * 2)), 1000px);
    margin-inline: auto;
    text-align: center;
}

.home-intro__title {
    margin-bottom: 2rem;
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    line-height: .9;
}

.home-intro__text {
    max-width: 720px;
    margin-inline: auto;
    color: rgba(255,255,255,.76);
    font-size: 1.1rem;
}

/* ----------------------------------------------------------
   VALUES
---------------------------------------------------------- */
.home-values {
    padding-block: clamp(6rem, 9vw, 9rem);
}

.home-values__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--color-border);
}

.value-card {
    min-width: 0;
    padding: clamp(2rem, 4vw, 3rem);
    background: var(--tmh-paper);
    border-right: 1px solid var(--color-border);
    transition: background-color var(--speed) ease, color var(--speed) ease;
}

.value-card:last-child {
    border-right: 0;
}

.value-card:hover {
    background: var(--tmh-red);
    color: var(--tmh-white);
}

/* ----------------------------------------------------------
   MASTERCLASS PREVIEW
---------------------------------------------------------- */
.home-masterclass {
    padding-block: clamp(6rem, 10vw, 10rem);
}

.home-masterclass__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}

.home-masterclass__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.masterclass-featured {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--tmh-black);
    color: var(--tmh-white);
}

.masterclass-card__image {
    width: 100%;
}

.masterclass-card__image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
}

.masterclass-featured img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
}

.masterclass-featured::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.05) 70%);
}

.masterclass-featured__content {
    position: absolute;
    z-index: 2;
    inset-inline: 2rem;
    bottom: 2rem;
}

.masterclass-featured__title {
    margin-bottom: 0.75rem;
    font-size: clamp(2.5rem, 4vw, 4rem);
}

/* ----------------------------------------------------------
   STUDIO
---------------------------------------------------------- */
.home-studio {
    padding-block: clamp(6rem, 10vw, 10rem);
    background: var(--tmh-blue);
    color: var(--tmh-white);
}

.home-studio__grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(3rem, 6vw, 5rem);
}

.home-studio__text {
    color: rgba(255,255,255,.76);
}

.home-studio__visual {
    position: relative;
    min-height: clamp(460px, 54vw, 620px);
}

/* ----------------------------------------------------------
   COMMUNITY
---------------------------------------------------------- */
.home-community {
    padding-block: clamp(6rem, 10vw, 10rem);
}

.home-community__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(3rem, 6vw, 6rem);
}

.home-community__title {
    position: sticky;
    top: 120px;
    align-self: start;
}

.community-item {
    padding-block: 2rem;
    border-bottom: 1px solid var(--color-border);
}

/* ----------------------------------------------------------
   NEWSLETTER
---------------------------------------------------------- */
.home-newsletter {
    padding-block: clamp(5rem, 8vw, 8rem);
    background: var(--tmh-red);
    color: var(--tmh-white);
}

.home-newsletter__inner {
    width: min(calc(100% - (var(--gutter) * 2)), 900px);
    margin-inline: auto;
    text-align: center;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    max-width: 650px;
    margin: 2.5rem auto 0;
}

.newsletter-form input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 50px;
    padding: 0.85rem 1.1rem;
    border: 0;
    border-radius: var(--radius-pill);
}


/* ==================== 06-pages-services.css ==================== */

/* ==========================================================
   THE MAKEHUB DESIGN SYSTEM v2
   File: 06-pages-services.css
   Purpose: page headers, studio, masterclasses, events, FAQ
   ========================================================== */

/* ----------------------------------------------------------
   PAGE HEADER
---------------------------------------------------------- */
.page-header {
    position: relative;
    overflow: clip;
    padding-block: clamp(4.5rem, 8vw, 7rem);
}

.page-header__inner {
    width: min(calc(100% - (var(--gutter) * 2)), var(--container));
    margin-inline: auto;
}

.page-header__title {
    max-width: 12ch;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 400;
    line-height: .9;
    letter-spacing: .005em;
    text-transform: uppercase;
    text-wrap: balance;
    font-synthesis: none;
}

.page-header__description {
    max-width: 650px;
    color: var(--tmh-grey-700);
    font-size: 1.1rem;
}

/* ----------------------------------------------------------
   CULTURAL ASSOCIATION HERO
---------------------------------------------------------- */
.association-hero {
    position: relative;
    min-height: 680px;
    display: grid;
    place-items: center;
    overflow: clip;
    background: var(--tmh-grey-500);
    color: var(--tmh-white);
}

.association-hero__background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.association-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.18);
}

.association-hero__content {
    position: relative;
    z-index: 2;
    width: min(calc(100% - (var(--gutter) * 2)), 980px);
    margin-inline: auto;
    text-align: center;
}

.association-hero__title {
    max-width: 10.5ch;
    margin-inline: auto;
    font-family: var(--font-heading);
    font-size: clamp(4rem, 8vw, 7.5rem);
    font-weight: 400;
    line-height: .9;
    letter-spacing: .005em;
    text-transform: uppercase;
    text-wrap: balance;
    font-synthesis: none;
}

.association-hero__subtitle {
    margin-top: 1.5rem;
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}

/* ----------------------------------------------------------
   STUDIO
---------------------------------------------------------- */
.studio-intro,
.masterclass-intro,
.faq-section,
.contact-section {
    padding-block: clamp(6rem, 9vw, 9rem);
}

.studio-intro__grid,
.masterclass-intro__grid,
.contact-grid,
.faq-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

.studio-features {
    padding-block: clamp(6rem, 9vw, 9rem);
    background: var(--tmh-black);
    color: var(--tmh-white);
}

.studio-features__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid rgba(255,255,255,.18);
}

.studio-feature {
    padding: clamp(2rem, 4vw, 3rem);
    border-right: 1px solid rgba(255,255,255,.18);
}

.studio-feature:last-child {
    border-right: 0;
}

/* ----------------------------------------------------------
   MASTERCLASS GRID
---------------------------------------------------------- */
.masterclass-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

.masterclass-card {
    min-width: 0;
    overflow: hidden;
    background: var(--tmh-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.masterclass-card__image img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

.masterclass-card__content {
    display: grid;
    gap: 1rem;
    padding: 2rem;
}

.masterclass-card__title {
    font-size: clamp(2rem, 3.5vw, 3rem);
}

/* ----------------------------------------------------------
   DETAIL PAGE
---------------------------------------------------------- */
.masterclass-detail {
    padding-block: clamp(5rem, 8vw, 8rem);
}

.masterclass-detail__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(3rem, 6vw, 5rem);
    align-items: start;
}

.masterclass-detail__visual {
    position: sticky;
    top: 110px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.masterclass-detail__title {
    font-size: clamp(3.5rem, 6vw, 6rem);
}

/* ----------------------------------------------------------
   CALENDAR
---------------------------------------------------------- */
.calendar {
    overflow: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--tmh-white);
}

.calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(90px, 1fr));
    min-width: 700px;
}

.calendar__day {
    min-height: 110px;
    padding: 0.75rem;
    border-top: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
}

/* ----------------------------------------------------------
   EVENTS
---------------------------------------------------------- */
.event-item {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
    padding-block: 2rem;
    border-bottom: 1px solid var(--color-border);
}

/* ----------------------------------------------------------
   GALLERY
---------------------------------------------------------- */
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 230px;
    gap: 1rem;
}

.gallery__item {
    overflow: hidden;
    border-radius: var(--radius-md);
}

.gallery__item:nth-child(1) { grid-column: span 6; grid-row: span 2; }
.gallery__item:nth-child(2),
.gallery__item:nth-child(3) { grid-column: span 3; }
.gallery__item:nth-child(4) { grid-column: span 6; }
.gallery__item:nth-child(n+5) { grid-column: span 3; }

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ----------------------------------------------------------
   FAQ / CONTACT
---------------------------------------------------------- */
.faq-layout__title,
.contact-info__title {
    font-size: clamp(3rem, 6vw, 6rem);
}

.faq-layout__title {
    position: sticky;
    top: 120px;
    align-self: start;
}


/* ==================== 07-responsive.css ==================== */

/* ==========================================================
   THE MAKEHUB DESIGN SYSTEM v2
   File: 07-responsive.css
   Purpose: responsive behaviour across desktop/tablet/mobile
   ========================================================== */

@media (max-width: 1199px) {
    .home-values__grid,
    .studio-features__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-masterclass__grid,
    .masterclass-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .navbar__menu {
        display: none;
    }

    .navbar__toggle {
        display: grid;
    }

    .navbar__inner {
        min-height: 76px;
    }

    .home-hero {
        min-height: auto;
    }

    .home-hero__inner,
    .home-studio__grid,
    .home-community__inner,
    .studio-intro__grid,
    .masterclass-intro__grid,
    .contact-grid,
    .faq-layout,
    .masterclass-detail__hero {
        grid-template-columns: 1fr;
    }

    .home-community__title,
    .faq-layout__title,
    .masterclass-detail__visual {
        position: static;
    }

    .home-hero__content,
    .home-studio__content {
        max-width: 760px;
    }

    .home-hero__visual,
    .home-studio__visual {
        width: min(100%, 720px);
        margin-inline: auto;
    }

    .association-hero {
        min-height: 620px;
    }
}

@media (max-width: 767px) {
    :root {
        --gutter: 1rem;
    }

    html {
        font-size: 16px;
    }

    .navbar__inner {
        min-height: 70px;
    }

    .navbar__logo img {
        max-width: 145px;
    }

    .navbar__logo-text {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .home-hero {
        padding-block: 4rem 5rem;
    }

    .home-hero__title,
    .page-header__title,
    .association-hero__title {
        max-width: none;
        width: 100%;
        font-size: clamp(3.35rem, 13vw, 5.4rem);
        line-height: .92;
        letter-spacing: 0;
    }

    .association-hero__title {
        max-width: 11ch;
        margin-inline: auto;
    }

    .association-hero__subtitle {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }

    .home-hero__actions,
    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero__actions .btn,
    .newsletter-form .btn,
    .newsletter-form input {
        width: 100%;
    }

    .home-hero__visual,
    .home-studio__visual {
        min-height: 450px;
    }

    .home-values__grid,
    .studio-features__grid,
    .home-masterclass__grid,
    .masterclass-grid {
        grid-template-columns: 1fr;
    }

    .value-card,
    .studio-feature {
        border-right: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .studio-feature {
        border-bottom-color: rgba(255,255,255,.18);
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .event-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .gallery__grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }

    .gallery__item:nth-child(n) {
        grid-column: auto;
        grid-row: auto;
    }

    .association-hero {
        min-height: 560px;
        min-height: 70svh;
    }
}

@media (max-width: 479px) {
    .home-hero__visual,
    .home-studio__visual {
        min-height: 390px;
    }

    .home-hero__image--main {
        inset: 0 0.5rem 3rem 0.5rem;
    }

    .home-hero__image--secondary {
        width: 48%;
        height: 38%;
        border-width: 5px;
    }

    .association-hero {
        min-height: 520px;
    }

    .association-hero__title {
        font-size: clamp(3rem, 13vw, 4.7rem);
    }
}


/* ==================== 08-utilities-animations.css ==================== */

/* ==========================================================
   THE MAKEHUB DESIGN SYSTEM v2
   File: 08-utilities-animations.css
   Purpose: utilities, decorative effects, motion
   ========================================================== */

/* Display */
.u-hidden { display: none !important; }
.u-block { display: block !important; }
.u-flex { display: flex !important; }
.u-grid { display: grid !important; }

/* Alignment */
.u-items-center { align-items: center !important; }
.u-items-start { align-items: flex-start !important; }
.u-justify-center { justify-content: center !important; }
.u-justify-between { justify-content: space-between !important; }

/* Width */
.u-w-full { width: 100% !important; }
.u-max-text { max-width: 70ch !important; }
.u-mx-auto { margin-inline: auto !important; }

/* Spacing */
.u-mt-1 { margin-top: var(--space-1) !important; }
.u-mt-2 { margin-top: var(--space-2) !important; }
.u-mt-3 { margin-top: var(--space-3) !important; }
.u-mt-4 { margin-top: var(--space-4) !important; }
.u-mt-5 { margin-top: var(--space-5) !important; }
.u-mt-6 { margin-top: var(--space-6) !important; }
.u-mt-7 { margin-top: var(--space-7) !important; }
.u-mt-8 { margin-top: var(--space-8) !important; }

.u-mb-1 { margin-bottom: var(--space-1) !important; }
.u-mb-2 { margin-bottom: var(--space-2) !important; }
.u-mb-3 { margin-bottom: var(--space-3) !important; }
.u-mb-4 { margin-bottom: var(--space-4) !important; }
.u-mb-5 { margin-bottom: var(--space-5) !important; }
.u-mb-6 { margin-bottom: var(--space-6) !important; }
.u-mb-7 { margin-bottom: var(--space-7) !important; }
.u-mb-8 { margin-bottom: var(--space-8) !important; }

/* Surfaces */
.u-paper { background: var(--tmh-paper) !important; }
.u-white { background: var(--tmh-white) !important; }
.u-black { background: var(--tmh-black) !important; color: var(--tmh-white) !important; }
.u-red { background: var(--tmh-red) !important; color: var(--tmh-white) !important; }
.u-blue { background: var(--tmh-blue) !important; color: var(--tmh-white) !important; }

/* Brush */
.brush-accent {
    position: relative;
    display: inline-block;
}

.brush-accent::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: -2%;
    right: -2%;
    bottom: 0.06em;
    height: 0.18em;
    background: var(--tmh-red);
    border-radius: 60% 40% 65% 35%;
    transform: rotate(-2deg);
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 700ms var(--ease-out),
        transform 700ms var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.reveal--left {
    transform: translateX(-28px);
}

.reveal--right {
    transform: translateX(28px);
}

.reveal--left.is-visible,
.reveal--right.is-visible {
    transform: none;
}

/* Hover media */
.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 700ms var(--ease-out);
}

.hover-zoom:hover img {
    transform: scale(1.045);
}

/* Marquee */
.marquee {
    overflow: hidden;
    white-space: nowrap;
}

.marquee__track {
    display: inline-flex;
    width: max-content;
    animation: tmh-marquee 24s linear infinite;
}

@keyframes tmh-marquee {
    to {
        transform: translateX(-50%);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal,
    .reveal--left,
    .reveal--right {
        opacity: 1 !important;
        transform: none !important;
    }
}


/* ==================== 09-cross-browser-fix.css ==================== */

/* ==========================================================
   THE MAKEHUB DESIGN SYSTEM v2
   File: 09-cross-browser-fix.css
   Purpose: Android / Windows / Safari / Chrome / Edge fixes
   Keep this file LAST in the cascade.
   ========================================================== */

/* ----------------------------------------------------------
   VIEWPORT / OVERFLOW
---------------------------------------------------------- */
html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-synthesis: none;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

/* ----------------------------------------------------------
   FONT CONSISTENCY
---------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6,
.display,
.display-lg,
.display-xl,
.navbar__logo-text,
.home-hero__title,
.page-header__title,
.association-hero__title,
.association-hero__subtitle,
.masterclass-card__title,
.masterclass-featured__title,
.mobile-menu__link {
    font-family: var(--font-heading) !important;
    font-style: normal;
    font-weight: 400;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

/* Chrome/Android can wrap headings differently when fallback metrics are used.
   These rules prevent emergency breaking inside words. */
.home-hero__title,
.page-header__title,
.association-hero__title,
.navbar__logo-text {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

/* ----------------------------------------------------------
   FLEX / GRID MIN-SIZE FIXES
---------------------------------------------------------- */
.flex > *,
.grid > *,
.navbar__inner > *,
.home-hero__inner > *,
.home-studio__grid > *,
.home-community__inner > *,
.studio-intro__grid > *,
.masterclass-intro__grid > *,
.masterclass-detail__hero > *,
.contact-grid > *,
.faq-layout > * {
    min-width: 0;
}

/* ----------------------------------------------------------
   MEDIA / ASPECT RATIO
---------------------------------------------------------- */
img,
video,
svg {
    max-width: 100%;
}

img {
    image-rendering: auto;
}

/* ----------------------------------------------------------
   DYNAMIC VIEWPORT HEIGHT
---------------------------------------------------------- */
@supports (height: 100dvh) {
    .home-hero {
        min-height: calc(100dvh - 88px);
    }

    @media (max-width: 991px) {
        .home-hero {
            min-height: auto;
        }
    }
}

/* ----------------------------------------------------------
   BACKDROP FILTER FALLBACK
---------------------------------------------------------- */
@supports not ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
    .navbar--scrolled {
        background: rgba(255,255,255,.98);
    }

    .modal {
        background: rgba(17,17,17,.84);
    }
}

/* ----------------------------------------------------------
   WINDOWS / EDGE FONT RENDERING
---------------------------------------------------------- */
@media (min-resolution: 1dppx) {
    body {
        text-rendering: auto;
    }
}

/* ----------------------------------------------------------
   TOUCH TARGETS
---------------------------------------------------------- */
@media (pointer: coarse) {
    .btn,
    .navbar__toggle,
    .calendar__control,
    .accordion__trigger {
        min-height: 48px;
    }

    .navbar__link {
        padding-block: 0.75rem;
    }
}

/* ----------------------------------------------------------
   NO-HOVER DEVICES
---------------------------------------------------------- */
@media (hover: none) {
    .btn:hover,
    .card--hover:hover,
    .image-card:hover img,
    .hover-zoom:hover img {
        transform: none;
    }
}

/* ----------------------------------------------------------
   ANDROID / SMALL MOBILE HARDENING
---------------------------------------------------------- */
@media (max-width: 767px) {
    body {
        font-size: 16px;
    }

    .navbar__inner {
        width: calc(100% - 2rem);
    }

    .home-hero__inner,
    .page-header__inner,
    .association-hero__content {
        width: calc(100% - 2rem);
    }

    .home-hero__title,
    .page-header__title {
        font-size: clamp(3.2rem, 12vw, 5rem);
        line-height: .92;
    }

    .association-hero__title {
        font-size: clamp(3.15rem, 12vw, 5rem);
        line-height: .92;
        max-width: 10.5ch;
    }

    .association-hero__subtitle {
        font-size: clamp(1.7rem, 6.5vw, 2.5rem);
        line-height: 1;
    }

    .navbar__logo-text {
        max-width: calc(100vw - 100px);
        overflow: hidden;
        text-overflow: clip;
        white-space: nowrap;
    }
}

/* ----------------------------------------------------------
   SAFE AREAS
---------------------------------------------------------- */
@supports (padding: max(0px)) {
    .navbar__inner {
        padding-left: max(0px, var(--safe-left));
        padding-right: max(0px, var(--safe-right));
    }

    .footer {
        padding-bottom: max(2rem, var(--safe-bottom));
    }
}

/* ----------------------------------------------------------
   PRINT
---------------------------------------------------------- */
@media print {
    .navbar,
    .mobile-menu,
    .footer,
    .btn {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }
}

/* ==========================================================
   THE MAKEHUB DESIGN SYSTEM v5
   CROSS-PLATFORM FINAL PATCH
   Purpose:
   - Remove duplicate Masterclass image rules
   - Prevent image stretching on Windows / Edge / Chrome
   - Preserve intrinsic image proportions
   - Keep controlled cropping only when explicitly requested
   - Normalize Masterclass typography
   - Keep this section LAST in the cascade
   ========================================================== */


/* ==========================================================
   1. REMOVE TOP MEMBERSHIP / LOGIN STRIP
========================================================== */

.top-bar,
.topbar,
.top-header,
.header-top,
.header__top,
.site-header__top,
.site-header-top,
.header-utility,
.utility-bar,
.utility-nav,
.account-bar,
.login-bar,
.member-bar,
.members-bar,
.membership-bar,
.membership-nav,
.top-navigation,
.top-nav,
.secondary-header,
.header-secondary,
.header__secondary,
.site-header__secondary,
.site-header .secondary-navigation,
.site-header .secondary-menu,
#top-bar,
#topbar,
#top-header,
#header-top,
#utility-bar,
#account-bar,
#member-bar,
#membership-bar {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
}

body,
.site,
.site-wrapper,
.page-wrapper {
    padding-top: 0 !important;
}

.site-header,
header.site-header,
.navbar {
    margin-top: 0 !important;
    top: 0;
}


/* ==========================================================
   2. GLOBAL IMAGE NORMALIZATION
   IMPORTANT:
   Never force width AND height on a normal content image.
========================================================== */

img,
picture,
figure,
.wp-block-image {
    box-sizing: border-box;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
    image-rendering: auto;
}


/* WordPress / page-builder content images */

.entry-content img,
.post-content img,
.page-content img,
.content-area img,
.wp-block-image img,
.elementor-widget-image img,
img.wp-post-image,
img[class*="wp-image-"] {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
}


/* Content wrappers must not impose an artificial image height */

.entry-content figure,
.post-content figure,
.page-content figure,
.content-area figure,
.wp-block-image,
.elementor-widget-image,
.elementor-widget-image .elementor-widget-container {
    width: auto;
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
}


/* picture follows the intrinsic image ratio */

.entry-content picture,
.post-content picture,
.page-content picture,
.content-area picture,
.wp-block-image picture {
    display: block;
    width: 100%;
    height: auto !important;
}


/* ==========================================================
   3. MASTERCLASS CARD IMAGES
   FINAL RULE:
   - image keeps its natural aspect ratio
   - no forced 100% height
   - no absolute positioning
   - no crop
   - no stretching
========================================================== */

.masterclass-card__image {
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
    aspect-ratio: auto !important;
}

.masterclass-card__image img {
    position: relative !important;
    inset: auto !important;

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: 0 !important;

    aspect-ratio: auto !important;

    object-fit: contain !important;
    object-position: center center !important;

    transform: none !important;
}


/* Prevent a theme/page-builder from applying fixed dimensions
   through generated classes or inline-like selectors. */

.masterclass-card__image picture {
    display: block;
    width: 100%;
    height: auto !important;
}

.masterclass-card__image picture img {
    width: 100% !important;
    height: auto !important;
}


/* ==========================================================
   4. MASTERCLASS FEATURED IMAGE
   Keep natural ratio unless the HTML explicitly uses
   .tmh-crop-portrait.
========================================================== */

.masterclass-featured {
    overflow: hidden;
}

.masterclass-featured img {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: 0 !important;

    aspect-ratio: auto !important;

    object-fit: contain !important;
    object-position: center center !important;

    transform: none !important;
}


/* ==========================================================
   5. MASTERCLASS DETAIL MAIN IMAGE
   Natural ratio — never force 4:5.
========================================================== */

.masterclass-detail__visual {
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
    aspect-ratio: auto !important;
}

.masterclass-detail__visual img {
    position: relative !important;
    inset: auto !important;

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: 0 !important;

    aspect-ratio: auto !important;

    object-fit: contain !important;
    object-position: center center !important;

    transform: none !important;
}


/* ==========================================================
   6. MASTERCLASS PORTRAIT / SPEAKER IMAGES
   Natural ratio by default.
========================================================== */

.masterclass-photo,
.masterclass-speaker__image,
.teacher-photo,
.teacher-image,
.speaker-photo,
.speaker-image {
    position: relative;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
    aspect-ratio: auto !important;
}

.masterclass-photo img,
.masterclass-speaker__image img,
.teacher-photo img,
.teacher-image img,
.speaker-photo img,
.speaker-image img {
    position: relative !important;
    inset: auto !important;

    display: block !important;

    width: 100% !important;
    max-width: 100% !important;

    height: auto !important;
    min-height: 0 !important;

    aspect-ratio: auto !important;

    object-fit: contain !important;
    object-position: center center !important;

    transform: none !important;
}


/* ==========================================================
   7. CONTROLLED CROPPING
   ONLY elements explicitly marked for cropping use this.
========================================================== */

.tmh-crop-portrait {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    aspect-ratio: 4 / 5;
}

.tmh-crop-portrait > img {
    position: absolute !important;
    inset: 0 !important;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover !important;
    object-position: center center !important;

    transform: none !important;
}


/* ==========================================================
   8. GALLERY / EDITORIAL CROPS
   These containers have explicit dimensions, so cover is safe.
========================================================== */

.gallery__item,
.studio-gallery__item,
.image-card {
    overflow: hidden;
}

.gallery__item img,
.studio-gallery__item img,
.image-card img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    object-fit: cover !important;
    object-position: center center !important;
}


/* ==========================================================
   9. LOGOS
   Logos must preserve their intrinsic proportions.
========================================================== */

.navbar__logo img,
.site-logo img,
.custom-logo,
.logo img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 100% !important;

    object-fit: contain !important;
}


/* ==========================================================
   10. MASTERCLASS TYPOGRAPHY
========================================================== */

.masterclass-detail__title,
.masterclass-card__title,
.masterclass-featured__title,
.masterclass-intro__title,
.masterclass-program__title,
.program-day__label,
.program-day__title,
[class*="masterclass"] h1,
[class*="masterclass"] h2,
[class*="masterclass"] h3,
[class*="masterclass"] h4,
[class*="masterclass"] h5,
[class*="masterclass"] h6 {
    font-family: var(--font-heading) !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-synthesis: none !important;
    line-height: .98 !important;
    letter-spacing: .01em !important;
    text-transform: uppercase;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.masterclass-detail__intro,
.masterclass-detail__content,
.masterclass-detail__content p,
.masterclass-detail__content li,
.masterclass-card__description,
.masterclass-intro__text,
.program-day__content,
.program-day__content p,
.program-day__list,
.program-day__list li {
    font-family: var(--font-body) !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-synthesis: none !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
}

.masterclass-detail__content p + p,
.program-day__content p + p {
    margin-top: .9rem;
}

.masterclass-detail__content ul,
.masterclass-detail__content ol,
.program-day__list {
    margin-block: 1rem;
    padding-inline-start: 1.25rem;
}

.masterclass-detail__content li + li,
.program-day__list li + li {
    margin-top: .4rem;
}


/* ==========================================================
   11. PROGRAM DAYS
========================================================== */

.masterclass-program {
    display: block;
}

.program-day {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 2.5rem;
    padding-block: 2rem;
    border-bottom: 1px solid var(--color-border);
}

.program-day + .program-day {
    margin-top: 2.25rem;
    padding-top: 2.75rem;
    border-top: 1px solid var(--color-border);
}

.masterclass-detail__content h2:not(:first-child),
.masterclass-detail__content h3:not(:first-child),
.masterclass-detail__content h4:not(:first-child) {
    margin-top: 2.5rem;
}

.masterclass-detail__content h2 + p,
.masterclass-detail__content h3 + p,
.masterclass-detail__content h4 + p {
    margin-top: .75rem;
}


/* ==========================================================
   12. CROSS-BROWSER FONT RENDERING
========================================================== */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-synthesis: none;
    text-rendering: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display,
.display-lg,
.display-xl,
.navbar__logo-text,
.home-hero__title,
.page-header__title,
.association-hero__title,
.association-hero__subtitle,
.masterclass-card__title,
.masterclass-featured__title,
.mobile-menu__link {
    font-synthesis: none !important;
    -webkit-font-smoothing: antialiased;
}


/* ==========================================================
   13. GRID / FLEX SAFETY
========================================================== */

.masterclass-card,
.masterclass-card__image,
.masterclass-detail__hero > *,
.masterclass-grid > *,
.home-masterclass__grid > * {
    min-width: 0;
}


/* ==========================================================
   14. MOBILE
========================================================== */

@media (max-width: 767px) {

    .masterclass-card__image,
    .masterclass-detail__visual,
    .masterclass-photo,
    .masterclass-speaker__image,
    .teacher-photo,
    .teacher-image,
    .speaker-photo,
    .speaker-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: auto !important;
    }

    .masterclass-card__image img,
    .masterclass-detail__visual img,
    .masterclass-photo img,
    .masterclass-speaker__image img,
    .teacher-photo img,
    .teacher-image img,
    .speaker-photo img,
    .speaker-image img {
        position: relative !important;
        inset: auto !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        min-height: 0 !important;

        aspect-ratio: auto !important;

        object-fit: contain !important;
        object-position: center center !important;

        transform: none !important;
    }

    .program-day {
        grid-template-columns: 1fr;
        gap: .75rem;
        padding-block: 1.75rem;
    }

    .program-day + .program-day {
        margin-top: 2rem;
        padding-top: 2.5rem;
    }
}


/* ==========================================================
   15. POINTER / TOUCH SAFETY
========================================================== */

@media (pointer: coarse) {

    .btn,
    .navbar__toggle,
    .calendar__control,
    .accordion__trigger {
        min-height: 48px;
    }

}


/* ==========================================================
   16. REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal,
    .reveal--left,
    .reveal--right {
        opacity: 1 !important;
        transform: none !important;
    }

}


/* ==========================================================
   17. PRINT
========================================================== */

@media print {

    .navbar,
    .mobile-menu,
    .footer,
    .btn {
        display: none !important;
    }

    body {
        background: #fff !important;
        color: #000 !important;
    }

}


/* ==========================================================
   END THE MAKEHUB v5 CROSS-PLATFORM PATCH
========================================================== */

/* ==========================================================
   THE MAKEHUB v6 — LIVE SITE EVENT DETAIL FIX
   Derived from the real DOM shown in Chrome DevTools:
   .event-detail__col-image-description
   .event-detail__image-wrapper
   KEEP THIS PATCH LAST IN THE CSS.
   ========================================================== */

.event-detail__col-image-description {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
}

.event-detail__image-wrapper {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    overflow: visible !important;
}

.event-detail__image-wrapper > picture {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
}

.event-detail__image-wrapper > img,
.event-detail__image-wrapper > picture > img {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    transform: none !important;
    scale: 1 !important;
    margin-inline: auto !important;
}

.event-detail__col-image-description,
.event-detail__col-image-description[class*="col-"] {
    align-self: start !important;
    overflow: visible !important;
}

.event-detail__col-image-description > .event-detail__image-wrapper {
    flex: none !important;
}

/* Typography */
.event-detail__col-image-description h1,
.event-detail__col-image-description h2,
.event-detail__col-image-description h3,
.event-detail__col-image-description h4,
.event-detail__col-image-description h5,
.event-detail__col-image-description h6,
.event-detail__title,
.event-detail__name,
.event-detail__heading {
    font-family: var(--font-heading) !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-synthesis: none !important;
    line-height: .98 !important;
    letter-spacing: .01em !important;
    text-transform: uppercase;
}

.event-detail__col-image-description p,
.event-detail__col-image-description li,
.event-detail__description,
.event-detail__description p,
.event-detail__description li,
.event-detail__text,
.event-detail__text p,
.event-detail__text li {
    font-family: var(--font-body) !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-synthesis: none !important;
    line-height: 1.15 !important;
    letter-spacing: 0 !important;
}

.event-detail__col-image-description p + p,
.event-detail__description p + p,
.event-detail__text p + p {
    margin-top: .9rem !important;
}

.event-detail__col-image-description h2:not(:first-child),
.event-detail__col-image-description h3:not(:first-child),
.event-detail__col-image-description h4:not(:first-child),
.event-detail__description h2:not(:first-child),
.event-detail__description h3:not(:first-child),
.event-detail__description h4:not(:first-child) {
    margin-top: 2.5rem !important;
    margin-bottom: .8rem !important;
}

.event-detail__col-image-description ul,
.event-detail__col-image-description ol,
.event-detail__description ul,
.event-detail__description ol {
    margin-block: 1rem !important;
    padding-inline-start: 1.25rem !important;
}

.event-detail__col-image-description li + li,
.event-detail__description li + li {
    margin-top: .4rem !important;
}

@media (max-width: 767px) {
    .event-detail__col-image-description,
    .event-detail__image-wrapper,
    .event-detail__image-wrapper > picture {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: auto !important;
    }

    .event-detail__image-wrapper > img,
    .event-detail__image-wrapper > picture > img {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        aspect-ratio: auto !important;
        object-fit: contain !important;
        object-position: center center !important;
    }
}

@media (min-width: 768px) {
    .event-detail__image-wrapper,
    .event-detail__image-wrapper > picture,
    .event-detail__image-wrapper > img,
    .event-detail__image-wrapper > picture > img {
        max-height: none !important;
    }
}

/* ==========================================================
   END THE MAKEHUB v6 LIVE SITE EVENT DETAIL FIX
   ========================================================== */
