*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    /* Apple HIG-inspired palette */
    --bg: #f5f5f7;
    --surface: #ffffff;
    --ink: #1d1d1f;
    --ink-soft: #424245;
    --ink-mute: #6e6e73;
    --separator: rgba(0, 0, 0, 0.08);
    --fill: rgba(0, 0, 0, 0.04);
    --fill-hover: rgba(0, 0, 0, 0.06);
    --blue: #0071e3;
    --blue-hover: #0077ed;
    --tile-a: #e5e5ea;
    --tile-b: #d2d2d7;
    --tile-c: #c7c7cc;
    --tile-d: #aeaeb2;
    --radius: 18px;
    --radius-lg: 28px;
    --gap: 12px;
    --pad-x: 20px;
    --section: 56px;
    --header-h: 52px;
    --bottom-cta: 72px;
    --safe-b: env(safe-area-inset-bottom, 0px);
    --safe-t: env(safe-area-inset-top, 0px);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
             "Helvetica Neue", Helvetica, Arial, sans-serif;
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --max: 1200px;
    --vw: 100vw;
    --vh: 100vh;
    --vh-unit: 1vh;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
}

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: var(--vh);
    padding-bottom: calc(var(--bottom-cta) + var(--safe-b));
}

body.nav-open { overflow: hidden; }
body.nav-open .mobile-cta { visibility: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button {
    font: inherit;
    border: 0;
    background: none;
    cursor: pointer;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(0, 113, 227, 0.45);
    outline-offset: 2px;
    border-radius: 8px;
}

.skip {
    position: absolute;
    left: -999px;
    top: calc(12px + var(--safe-t));
    z-index: 100;
    background: var(--ink);
    color: #fff;
    padding: 12px 18px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 590;
}
.skip:focus { left: var(--pad-x); }

.page {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad-x) 48px;
}

/* Nav bar (Apple marketing style) */
.header-wrap {
    position: sticky;
    top: 0;
    z-index: 50;
    margin: 0 calc(-1 * var(--pad-x));
    padding: var(--safe-t) var(--pad-x) 0;
    background: rgba(245, 245, 247, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.header-wrap.is-scrolled {
    border-bottom-color: var(--separator);
    background: rgba(245, 245, 247, 0.86);
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 12px;
}

.logo {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.28em;
    max-width: min(100%, 14.5rem);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.021em;
    line-height: 1.2;
    color: var(--ink);
}
.logo-name {
    white-space: nowrap;
}
.logo-reg {
    font-size: 0.58em;
    font-weight: 600;
    letter-spacing: 0;
    vertical-align: super;
    position: relative;
    top: -0.15em;
    margin-left: 0.05em;
    color: var(--ink-mute);
}
.logo-sep {
    color: var(--ink-mute);
    font-weight: 500;
}
.logo-tag {
    font-size: 0.78em;
    font-weight: 500;
    letter-spacing: -0.016em;
    color: var(--ink-mute);
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rebuild-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 10px 0 4px;
    padding: 12px 16px;
    border-radius: 14px;
    background: rgba(29, 29, 31, 0.06);
    border: 1px solid rgba(29, 29, 31, 0.08);
    color: var(--ink-soft);
}
.rebuild-banner::before {
    content: "";
    flex-shrink: 0;
    width: 9px;
    height: 9px;
    margin-top: 0.42em;
    border-radius: 50%;
    background: #e6c200;
    box-shadow: 0 0 0 0 rgba(230, 194, 0, 0.55);
    animation: rebuild-dot-pulse 1.7s ease-out infinite;
}
.rebuild-banner-body {
    flex: 1;
    min-width: 0;
}
.rebuild-banner p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: -0.01em;
    text-wrap: pretty;
}
.rebuild-banner strong {
    color: var(--ink);
    font-weight: 600;
}
.rebuild-meta {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--ink-mute);
}
.rebuild-meta strong {
    color: var(--ink-soft);
    font-weight: 590;
}
@keyframes rebuild-dot-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(230, 194, 0, 0.55);
        opacity: 1;
    }
    55% {
        transform: scale(0.92);
        box-shadow: 0 0 0 8px rgba(230, 194, 0, 0);
        opacity: 0.85;
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(230, 194, 0, 0);
        opacity: 1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .rebuild-banner::before {
        animation: none;
        box-shadow: none;
    }
}

.pill-chat { display: none; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 20px;
    border-radius: 980px;
    font-size: 15px;
    font-weight: 510;
    letter-spacing: -0.016em;
    transition: background 0.28s var(--ease), transform 0.28s var(--ease-out),
                opacity 0.28s var(--ease), color 0.28s var(--ease);
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--blue);
    color: #fff;
}
.btn-primary:hover { background: var(--blue-hover); }

.btn-dark {
    background: var(--ink);
    color: #fff;
}
.btn-dark:hover { opacity: 0.88; }

.btn-ghost {
    background: var(--fill);
    color: var(--ink);
}
.btn-ghost:hover { background: var(--fill-hover); }

.menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    min-width: 44px;
    padding: 0 14px;
    border-radius: 980px;
    background: var(--fill);
    color: var(--ink);
    font-size: 14px;
    font-weight: 510;
    letter-spacing: -0.016em;
    transition: background 0.28s var(--ease), color 0.28s var(--ease),
                transform 0.28s var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}
.menu-btn:hover { background: var(--fill-hover); }
.menu-btn:active { transform: scale(0.97); }
.menu-btn[aria-expanded="true"] {
    background: var(--ink);
    color: #fff;
}
.menu-btn[aria-expanded="true"]:hover {
    background: var(--ink);
    opacity: 0.92;
}
.menu-btn-label {
    display: block;
    line-height: 1;
}

/* Full-screen sheet menu */
.drawer {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    visibility: hidden;
}
.drawer.is-open {
    pointer-events: auto;
    visibility: visible;
}
.drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition: opacity 0.32s var(--ease);
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
    position: absolute;
    inset: 0;
    background: var(--bg);
    padding: calc(68px + var(--safe-t)) 24px calc(28px + var(--safe-b));
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.32s var(--ease), transform 0.4s var(--ease-out);
    overflow-y: auto;
}
.drawer.is-open .drawer-panel {
    opacity: 1;
    transform: scale(1);
}
.drawer-panel a:not(.btn) {
    font-size: 34px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
    padding: 12px 14px;
    margin: 0 -6px;
    border-radius: 14px;
    border-bottom: 1px solid var(--separator);
    min-height: 56px;
    display: flex;
    align-items: center;
    color: var(--ink);
    background: transparent;
    transition: background 0.22s var(--ease), color 0.22s var(--ease);
}
.drawer-panel a:not(.btn):hover,
.drawer-panel a:not(.btn):focus-visible,
.drawer-panel a:not(.btn):active {
    background: var(--fill-hover);
}
.drawer-panel .btn {
    margin-top: auto;
    width: 100%;
    min-height: 52px;
    font-size: 17px;
}

.mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    padding: 12px var(--pad-x) calc(12px + var(--safe-b));
    background: rgba(245, 245, 247, 0.86);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--separator);
}
.mobile-cta .btn {
    width: 100%;
    min-height: 50px;
    font-size: 17px;
}

/* Hero */
.hero {
    padding: 28px 0 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.hero-copy {
    max-width: 100%;
}

.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 590;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 14px;
}

.hero-title {
    font-size: clamp(40px, 11vw, 52px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: var(--ink);
}
.hero-title em {
    font-style: normal;
    font-weight: 600;
    color: var(--ink-mute);
}
.hero-title .line-2 {
    display: block;
    margin-top: 6px;
    font-size: 0.52em;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--ink);
}
.hero-title .line-2 .sep {
    color: var(--ink-mute);
    font-weight: 500;
    margin: 0 0.12em;
}

.hero-sub {
    margin: 18px auto 0;
    max-width: 22em;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: var(--ink-soft);
    text-align: center;
    text-wrap: pretty;
}

/* Hero media carousel */
.hero-stage {
    width: 100%;
}

.hero-carousel {
    position: relative;
    width: 100%;
}

.hero-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: min(72vh, calc(var(--vh-unit) * 72), 560px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow);
    cursor: pointer;
}

/* Adapt layout to recognised screen / device */
html[data-device="phone"] .btn,
html[data-device="tablet"] .btn,
html[data-device="phone"] .text-link,
html[data-device="tablet"] .text-link {
    min-height: 44px;
}
html[data-device="pc"] .cat-list a {
    min-height: 0;
}

html[data-screen="phone"] .page {
    overflow-x: clip;
}
html[data-screen="phone"] .hero {
    gap: 22px;
    padding: 22px 0 28px;
}
html[data-screen="phone"] .hero-viewport {
    aspect-ratio: 4 / 5;
    max-height: min(68vh, calc(var(--vh-unit) * 68), 480px);
}
html[data-screen="phone"] .hero-title .line-2 {
    white-space: normal;
}
html[data-screen="phone"] .bento {
    grid-template-columns: 1fr;
}
/* Narrow mobile stack: Menu, then Schedule, then the rest */
html[data-screen="phone"] .c3 { order: 0; } /* Menu */
html[data-screen="phone"] .c1 { order: 1; } /* Schedule */
html[data-screen="phone"] .c2 { order: 2; } /* Community */
html[data-screen="phone"] .c4 { order: 3; } /* About */
html[data-screen="phone"] .c5 { order: 4; } /* Events */
html[data-screen="phone"] .c6 { order: 5; } /* Retreats */
html[data-screen="phone"] .cell-join,
html[data-screen="phone"] .c4 {
    min-height: 140px;
}
html[data-screen="phone"] .menu-shell:not([open]) {
    padding-bottom: 14px;
}
/* Expanded phone menu: links scroll; .cat-foot stays pinned to card bottom */
html[data-screen="phone"] .menu-shell[open] .menu-shell-body {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: min(52vh, calc(var(--vh-unit) * 52), 420px);
    max-height: min(52vh, calc(var(--vh-unit) * 52), 420px);
    gap: 10px;
    min-height: 0;
    overflow: hidden;
}
html[data-screen="phone"] .menu-shell[open] .cat-list {
    max-height: none;
    min-height: 0;
    overflow-y: auto;
}
html[data-screen="phone"] .cat-list a {
    font-size: 16px;
    min-height: 40px;
}
html[data-screen="phone"] .paths,
html[data-screen="phone"] .quotes,
html[data-screen="phone"] .links {
    grid-template-columns: 1fr;
}
html[data-screen="phone"] .drawer-panel a:not(.btn) {
    font-size: 30px;
    padding: 12px 10px;
}

html[data-screen="phone"][data-orientation="landscape"] .hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 16px 20px;
    text-align: left;
    align-items: center;
    padding: 16px 0 20px;
}
html[data-screen="phone"][data-orientation="landscape"] .hero-sub {
    margin-left: 0;
    text-align: left;
    max-width: none;
    font-size: 14px;
}
html[data-screen="phone"][data-orientation="landscape"] .hero-viewport {
    aspect-ratio: 16 / 10;
    max-height: min(70vh, calc(var(--vh-unit) * 70), 280px);
}
html[data-screen="phone"][data-orientation="landscape"] .mobile-cta {
    display: none;
}
html[data-screen="phone"][data-orientation="landscape"] body {
    padding-bottom: 0;
}

html[data-height="short"] .hero {
    padding-top: 16px;
    padding-bottom: 20px;
    gap: 16px;
}
html[data-height="short"] .hero-viewport {
    max-height: min(46vh, calc(var(--vh-unit) * 46), 320px);
}
html[data-height="short"] .hero-badge {
    margin-bottom: 8px;
}

html[data-screen="tablet"] .hero {
    padding: 36px 0 32px;
    gap: 28px;
}
html[data-screen="tablet"] .hero-title {
    font-size: clamp(48px, 8vw, 60px);
}
html[data-screen="tablet"] .hero-viewport {
    aspect-ratio: 16 / 11;
    max-height: min(50vh, calc(var(--vh-unit) * 50), 420px);
}
html[data-screen="tablet"] .bento {
    grid-template-columns: 1fr 1fr;
}
html[data-screen="tablet"] .c2,
html[data-screen="tablet"] .c3,
html[data-screen="tablet"] .c4,
html[data-screen="tablet"] .c6 {
    grid-column: 1 / -1;
}
html[data-screen="tablet"] .c3 {
    order: 1;
}
html[data-screen="tablet"] .menu-shell[open] .menu-shell-body {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: min(48vh, calc(var(--vh-unit) * 48), 380px);
    max-height: min(48vh, calc(var(--vh-unit) * 48), 380px);
    gap: 10px;
    min-height: 0;
    overflow: hidden;
}
html[data-screen="tablet"] .menu-shell[open] .cat-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
}
html[data-screen="tablet"] .cat-list a {
    font-size: 15px;
    min-height: 36px;
    padding: 6px 8px;
}
html[data-screen="tablet"] .paths {
    grid-template-columns: 1fr 1fr 1fr;
}
html[data-screen="tablet"] .quotes,
html[data-screen="tablet"] .links {
    grid-template-columns: 1fr 1fr;
}
html[data-screen="tablet"] .section-title,
html[data-screen="tablet"] .section-lead,
html[data-screen="tablet"] .expertise-copy,
html[data-screen="tablet"] .about-body,
html[data-screen="tablet"] .footer,
html[data-screen="tablet"] .footer-partners {
    text-align: left;
}
html[data-screen="tablet"] .footer-nav {
    justify-content: flex-start;
}
html[data-screen="tablet"] .footer-partner-grid {
    justify-items: stretch;
}

/*
 * Portrait PC / rotated monitor (Dell 90°, etc.)
 * Keep PC chrome, but use a tall 2-column composition · not the wide 4-col rail.
 */
html[data-screen="portrait-pc"] body,
html[data-display="rotated"] body {
    padding-bottom: 0;
}
html[data-screen="portrait-pc"] .mobile-cta,
html[data-display="rotated"] .mobile-cta {
    display: none;
}
html[data-screen="portrait-pc"] .page,
html[data-display="rotated"] .page {
    max-width: var(--max);
}
html[data-screen="portrait-pc"] .hero,
html[data-display="rotated"][data-device="pc"] .hero {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 36px 0 40px;
}
html[data-screen="portrait-pc"] .hero-copy,
html[data-display="rotated"][data-device="pc"] .hero-copy {
    max-width: 560px;
}
html[data-screen="portrait-pc"] .hero-title,
html[data-display="rotated"][data-device="pc"] .hero-title {
    font-size: clamp(52px, 7vw, 72px);
}
html[data-screen="portrait-pc"] .hero-title .line-2,
html[data-display="rotated"][data-device="pc"] .hero-title .line-2 {
    white-space: normal;
}
html[data-screen="portrait-pc"] .hero-sub,
html[data-display="rotated"][data-device="pc"] .hero-sub {
    margin: 16px 0 0;
    max-width: 42em;
    text-align: left;
    font-size: 18px;
}
html[data-screen="portrait-pc"] .hero-viewport,
html[data-display="rotated"][data-device="pc"] .hero-viewport {
    aspect-ratio: 16 / 10;
    max-height: min(42vh, calc(var(--vh-unit) * 42), 480px);
}
html[data-screen="portrait-pc"] .bento,
html[data-display="rotated"][data-device="pc"] .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
}
html[data-screen="portrait-pc"] .c1,
html[data-screen="portrait-pc"] .c2,
html[data-screen="portrait-pc"] .c3,
html[data-screen="portrait-pc"] .c4,
html[data-screen="portrait-pc"] .c5,
html[data-screen="portrait-pc"] .c6,
html[data-display="rotated"][data-device="pc"] .c1,
html[data-display="rotated"][data-device="pc"] .c2,
html[data-display="rotated"][data-device="pc"] .c3,
html[data-display="rotated"][data-device="pc"] .c4,
html[data-display="rotated"][data-device="pc"] .c5,
html[data-display="rotated"][data-device="pc"] .c6 {
    order: 0;
    min-height: 0;
    width: auto;
    grid-column: auto;
    grid-row: auto;
}
html[data-screen="portrait-pc"] .c2,
html[data-screen="portrait-pc"] .c3,
html[data-screen="portrait-pc"] .c4,
html[data-display="rotated"][data-device="pc"] .c2,
html[data-display="rotated"][data-device="pc"] .c3,
html[data-display="rotated"][data-device="pc"] .c4 {
    grid-column: 1 / -1;
}
html[data-screen="portrait-pc"] .c3,
html[data-display="rotated"][data-device="pc"] .c3 {
    order: 1;
}
html[data-screen="portrait-pc"] .menu-shell > summary,
html[data-display="rotated"][data-device="pc"] .menu-shell > summary {
    display: flex;
}
html[data-screen="portrait-pc"] .menu-shell[open] .menu-shell-body,
html[data-display="rotated"][data-device="pc"] .menu-shell[open] .menu-shell-body {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: min(46vh, calc(var(--vh-unit) * 46), 420px);
    max-height: min(46vh, calc(var(--vh-unit) * 46), 420px);
    gap: 10px;
    min-height: 0;
    overflow: hidden;
}
html[data-screen="portrait-pc"] .menu-shell[open] .cat-list,
html[data-display="rotated"][data-device="pc"] .menu-shell[open] .cat-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
}
html[data-screen="portrait-pc"] .cat-group,
html[data-display="rotated"][data-device="pc"] .cat-group {
    background: var(--fill);
    padding: 2px;
    border-radius: 12px;
}
html[data-screen="portrait-pc"] .cat-group > summary.cat-label,
html[data-display="rotated"][data-device="pc"] .cat-group > summary.cat-label {
    pointer-events: auto;
    cursor: pointer;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 11px;
}
html[data-screen="portrait-pc"] .cat-group > summary.cat-label::after,
html[data-display="rotated"][data-device="pc"] .cat-group > summary.cat-label::after {
    display: block;
}
html[data-screen="portrait-pc"] .cat-list a,
html[data-display="rotated"][data-device="pc"] .cat-list a {
    font-size: 16px;
    min-height: 36px;
    padding: 6px 8px;
}
html[data-screen="portrait-pc"] .paths,
html[data-display="rotated"][data-device="pc"] .paths {
    grid-template-columns: 1fr 1fr 1fr;
}
html[data-screen="portrait-pc"] .quotes,
html[data-screen="portrait-pc"] .links,
html[data-display="rotated"][data-device="pc"] .quotes,
html[data-display="rotated"][data-device="pc"] .links {
    grid-template-columns: 1fr 1fr;
}
html[data-screen="portrait-pc"] .about,
html[data-display="rotated"][data-device="pc"] .about {
    grid-template-columns: 1fr;
    gap: 28px;
}
html[data-screen="portrait-pc"] .expertise,
html[data-display="rotated"][data-device="pc"] .expertise {
    grid-template-columns: 1fr;
    gap: 24px;
}
html[data-screen="portrait-pc"] .section-title,
html[data-screen="portrait-pc"] .section-lead,
html[data-screen="portrait-pc"] .footer,
html[data-screen="portrait-pc"] .footer-partners,
html[data-display="rotated"][data-device="pc"] .section-title,
html[data-display="rotated"][data-device="pc"] .section-lead,
html[data-display="rotated"][data-device="pc"] .footer,
html[data-display="rotated"][data-device="pc"] .footer-partners {
    text-align: left;
}
html[data-screen="portrait-pc"] .footer-nav,
html[data-display="rotated"][data-device="pc"] .footer-nav {
    justify-content: flex-start;
}
html[data-screen="portrait-pc"] .footer-partner-grid,
html[data-display="rotated"][data-device="pc"] .footer-partner-grid {
    justify-items: stretch;
}

html[data-screen="desktop"] .mobile-cta,
html[data-screen="wide"] .mobile-cta {
    display: none;
}
html[data-screen="desktop"] body,
html[data-screen="wide"] body {
    padding-bottom: 0;
}
html[data-screen="desktop"] .hero,
html[data-screen="wide"] .hero {
    text-align: left;
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.15fr);
    gap: 40px 48px;
    align-items: center;
    padding: 40px 0 48px;
}
html[data-screen="desktop"] .hero-sub,
html[data-screen="wide"] .hero-sub {
    margin: 20px 0 0;
    max-width: none;
    width: 100%;
    text-align: justify;
    text-align-last: left;
}
html[data-screen="desktop"] .hero-viewport,
html[data-screen="wide"] .hero-viewport {
    aspect-ratio: 5 / 4;
    max-height: min(58vh, calc(var(--vh-unit) * 58), 520px);
}
html[data-screen="desktop"] .bento,
html[data-screen="wide"] .bento {
    grid-template-columns: 1.05fr 1fr 1fr 1.15fr;
    /* Tall enough that Legal/Disclaimer usually fit; list still scrolls if not */
    grid-template-rows: minmax(150px, 17vw) minmax(150px, 16vw);
}
html[data-screen="desktop"] .c1,
html[data-screen="wide"] .c1,
html[data-screen="desktop"] .c2,
html[data-screen="wide"] .c2,
html[data-screen="desktop"] .c3,
html[data-screen="wide"] .c3,
html[data-screen="desktop"] .c4,
html[data-screen="wide"] .c4,
html[data-screen="desktop"] .c5,
html[data-screen="wide"] .c5,
html[data-screen="desktop"] .c6,
html[data-screen="wide"] .c6 {
    order: 0;
    min-height: 0;
    width: auto;
    grid-column: auto;
}
html[data-screen="desktop"] .c1,
html[data-screen="wide"] .c1 { grid-column: 1; grid-row: 1; }
html[data-screen="desktop"] .c2,
html[data-screen="wide"] .c2 { grid-column: 2 / 4; grid-row: 1; }
html[data-screen="desktop"] .c3,
html[data-screen="wide"] .c3 {
    grid-column: 4;
    grid-row: 1 / 3;
    align-self: stretch;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    position: relative;
    overflow: hidden;
}
html[data-screen="desktop"] .menu-shell,
html[data-screen="wide"] .menu-shell {
    /* Pin to card; grid (not flex) so <details> cannot ignore height caps */
    position: absolute;
    inset: 0;
    width: 100%;
    height: auto;
    max-height: none;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    padding: 18px 16px 14px;
    gap: 0;
    min-height: 0;
    overflow: hidden;
}
html[data-screen="desktop"] .menu-shell > summary,
html[data-screen="wide"] .menu-shell > summary {
    display: none;
}
html[data-screen="desktop"] .menu-shell-body,
html[data-screen="wide"] .menu-shell-body {
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
}
/*
 * Desktop menu: list fills space above .cat-foot and scrolls when needed.
 * Groups can grow for even spacing but never shrink below their links.
 */
html[data-screen="desktop"] .cat-list,
html[data-screen="wide"] .cat-list {
    min-height: 0;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 4px;
    padding-bottom: 2px;
    scrollbar-gutter: stable;
}
html[data-screen="desktop"] .cat-group,
html[data-screen="wide"] .cat-group {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    min-height: min-content;
    overflow: visible;
    background: transparent;
    padding: clamp(3px, 0.7vh, 10px) 0;
    border-radius: 0;
}
html[data-screen="desktop"] .cat-group + .cat-group,
html[data-screen="wide"] .cat-group + .cat-group {
    border-top: 1px solid var(--separator);
    /* ~10px more air after each section divider */
    padding-top: calc(clamp(3px, 0.7vh, 10px) + 10px);
}
html[data-screen="desktop"] .cat-group > summary.cat-label,
html[data-screen="wide"] .cat-group > summary.cat-label {
    pointer-events: none;
    min-height: 0;
    padding: 0 8px 4px;
    font-size: 10px;
    cursor: default;
    flex-shrink: 0;
}
html[data-screen="desktop"] .cat-group > summary.cat-label::after,
html[data-screen="wide"] .cat-group > summary.cat-label::after {
    display: none;
}
html[data-screen="desktop"] .cat-group-links,
html[data-screen="wide"] .cat-group-links {
    display: flex;
    flex-direction: column;
    gap: clamp(1px, 0.35vh, 5px);
    padding: 0;
    flex-shrink: 0;
    overflow: visible;
}
html[data-screen="desktop"] .cat-list a,
html[data-screen="wide"] .cat-list a {
    font-size: clamp(16px, 1.45vw, 20px);
    letter-spacing: -0.028em;
    line-height: 1.08;
    padding: clamp(3px, 0.5vh, 7px) 8px;
    min-height: 0;
    border-radius: 8px;
    flex-shrink: 0;
}
html[data-screen="desktop"] .cat-foot,
html[data-screen="wide"] .cat-foot {
    flex-shrink: 0;
    margin-top: 0;
    padding-top: 6px;
    gap: 2px;
    align-self: stretch;
}
html[data-screen="desktop"] .cat-foot-place,
html[data-screen="wide"] .cat-foot-place {
    font-size: 11px;
}
html[data-screen="desktop"] .cat-foot-link,
html[data-screen="wide"] .cat-foot-link {
    min-height: 28px;
    font-size: 12px;
}
html[data-screen="wide"] .cat-list a {
    font-size: clamp(16px, 1.25vw, 20px);
}
html[data-screen="desktop"] .c4,
html[data-screen="wide"] .c4 { grid-column: 1; grid-row: 2; }
html[data-screen="desktop"] .c5,
html[data-screen="wide"] .c5 { grid-column: 2; grid-row: 2; }
html[data-screen="desktop"] .c6,
html[data-screen="wide"] .c6 { grid-column: 3; grid-row: 2; }
html[data-screen="desktop"] .paths,
html[data-screen="wide"] .paths {
    grid-template-columns: 1fr 1fr 1fr;
}
html[data-screen="desktop"] .quotes,
html[data-screen="wide"] .quotes {
    grid-template-columns: repeat(3, 1fr);
}
html[data-screen="desktop"] .links,
html[data-screen="wide"] .links {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
}
html[data-screen="desktop"] .about,
html[data-screen="wide"] .about {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: center;
}
html[data-screen="desktop"] .expertise,
html[data-screen="wide"] .expertise {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px;
    align-items: center;
}

html[data-screen="wide"] .hero {
    gap: 48px 64px;
}
html[data-screen="wide"] .hero-title {
    font-size: clamp(72px, 6vw, 88px);
}
html[data-screen="wide"] .hero-viewport {
    max-height: min(58vh, calc(var(--vh-unit) * 58), 560px);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.1s var(--ease), visibility 1.1s var(--ease);
    pointer-events: none;
}
.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide img,
.hero-slide .hero-art {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 18%;
}

.hero-art {
    background-size: cover;
    background-position: center;
}

.hero-art--portrait {
    background-image: linear-gradient(160deg, rgba(26, 58, 46, 0.35), rgba(26, 58, 46, 0.08)), url("assets/raili-portrait.jpg");
    background-position: center 22%;
}

.hero-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    min-height: 36px;
}

.hero-controls {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-shrink: 0;
}

.hero-nav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--fill);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-size: 18px;
    line-height: 1;
    transition: background 0.22s var(--ease), transform 0.22s var(--ease-out);
}
.hero-nav:hover { background: var(--fill-hover); }
.hero-nav:active { transform: scale(0.96); }

.hero-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 56px;
    flex-shrink: 0;
}

.hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.18);
    transition: background 0.28s var(--ease), transform 0.28s var(--ease-out);
}
.hero-dot[aria-current="true"] {
    background: var(--ink);
    transform: scale(1.15);
}
.hero-dot:hover { background: rgba(0, 0, 0, 0.32); }

.hero-caption {
    margin: 0;
    margin-right: auto;
    font-size: 12px;
    font-weight: 510;
    letter-spacing: -0.01em;
    color: var(--ink-mute);
    text-align: left;
    line-height: 1.3;
    max-width: min(58%, 280px);
}

.hero-meta .hero-controls {
    margin-left: auto;
}

/* Bento modules */
.bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap);
}

.cell {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface);
    position: relative;
    box-shadow: var(--shadow-soft);
}

.cell-media {
    display: block;
    width: 100%;
    min-height: 110px;
    height: 100%;
}

.cell-media img,
.art {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.cell-label {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 980px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    font-size: 12px;
    font-weight: 590;
    letter-spacing: -0.01em;
    color: var(--ink);
    pointer-events: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.cell-fade {
    position: absolute;
    inset: auto 0 0 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.22), transparent);
    z-index: 1;
    pointer-events: none;
}

/* Grey image placeholders (media not chosen yet) */
.art-ph-a { background: var(--tile-a); }
.art-ph-b { background: var(--tile-b); }
.art-ph-c { background: var(--tile-c); }
.art-ph-d { background: var(--tile-d); }

/* Hero carousel solid colour fields */
.art-yoga {
    background: #1B6B4A;
}
.art-wellness {
    background: #D4735E;
}
.art-business {
    background: #0071E3;
}
.art-practice {
    background: #3A6F8A;
}

/* Soft tonal fills (non-hero) */
.art-sand {
    background:
        radial-gradient(circle at 50% 42%, #ebe4d8 0%, transparent 36%),
        linear-gradient(165deg, #e8e4dc 0%, #cfc6b8 100%);
}
.art-glass {
    background:
        radial-gradient(circle at 50% 45%, rgba(255,255,255,0.5) 0%, transparent 40%),
        linear-gradient(180deg, #a8b8c4 0%, #6a7d8a 100%);
}
.art-blush {
    background:
        radial-gradient(circle at 60% 40%, #f0d8d4 0%, transparent 42%),
        linear-gradient(160deg, #e8d0cc 0%, #c4a09c 100%);
}
.art-arch {
    background: var(--tile-c);
}

.community-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.community-actions .btn {
    min-height: 44px;
    padding: 10px 18px;
    font-size: 15px;
}
.btn-whatsapp {
    background: #1f2a2e;
    color: #fff;
}
.btn-whatsapp:hover { opacity: 0.9; }
.btn-telegram {
    background: #2a6fdb;
    color: #fff;
}
.btn-telegram:hover { opacity: 0.9; }

.c2 { order: 1; min-height: 180px; }
.c4 { order: 2; }
.c3 { order: 3; }
.c1 { order: 4; min-height: 110px; }
.c5 { order: 5; min-height: 110px; }
.c6 { order: 6; min-height: 110px; }

.portrait-wrap {
    width: 100%;
    height: 100%;
    min-height: inherit;
    background: #2a2a2c;
}
.portrait-wrap img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: center 16%;
    filter: contrast(1.02);
}

/* Menu module · peer bento card (collapses on smaller screens) */
.c3 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 0;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    min-height: 0;
    max-height: 100%;
}

.menu-shell {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    padding: 14px 14px 16px;
    gap: 12px;
    overflow: hidden;
}
.menu-shell > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 4px 6px;
    border-radius: 14px;
    -webkit-tap-highlight-color: transparent;
}
.menu-shell > summary::-webkit-details-marker { display: none; }
.menu-shell-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}
.menu-shell-title strong {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.menu-shell-title span {
    font-size: 13px;
    color: var(--ink-mute);
    font-weight: 400;
}
.menu-shell-chev {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--fill);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    transition: transform 0.28s var(--ease-out), background 0.22s var(--ease);
}
.menu-shell-chev::before {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--ink);
    border-bottom: 1.5px solid var(--ink);
    transform: rotate(45deg) translateY(-1px);
}
.menu-shell[open] > summary .menu-shell-chev {
    transform: rotate(180deg);
    background: var(--fill-hover);
}
.menu-shell-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.cat-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 18px; /* +10px between Practice / Connect / Work / Legal */
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    padding-right: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.22) transparent;
}
.cat-list::-webkit-scrollbar {
    width: 6px;
}
.cat-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 99px;
}
.cat-list::-webkit-scrollbar-track {
    background: transparent;
}

.cat-group {
    border-radius: 12px;
    background: var(--fill);
    padding: 2px;
}
.cat-group > summary.cat-label {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    font-size: 11px;
    font-weight: 590;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-mute);
    padding: 8px 10px;
    border-radius: 10px;
    -webkit-tap-highlight-color: transparent;
}
.cat-group > summary.cat-label::-webkit-details-marker { display: none; }
.cat-group > summary.cat-label::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--ink-mute);
    border-bottom: 1.5px solid var(--ink-mute);
    transform: rotate(45deg);
    transition: transform 0.28s var(--ease-out);
    margin-right: 4px;
}
.cat-group[open] > summary.cat-label::after {
    transform: rotate(-135deg);
    margin-top: 4px;
}
.cat-group-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 2px 6px;
}

.cat-list a {
    display: block;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.022em;
    color: var(--ink-mute);
    line-height: 1.1;
    background: transparent;
    transition: background 0.22s var(--ease), color 0.22s var(--ease),
                transform 0.22s var(--ease-out);
}
.cat-list a:hover,
.cat-list a:focus-visible,
.cat-list a:active,
.cat-list a.active {
    background: var(--fill-hover);
    color: var(--ink);
}
.cat-list a:active {
    transform: scale(0.99);
}
.cat-list .cat-sub {
    font-size: 0.52em;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink-mute);
    line-height: 1;
    vertical-align: super;
    margin-left: 0.12em;
    position: relative;
    top: -0.05em;
}
.cat-list a:hover .cat-sub,
.cat-list a:focus-visible .cat-sub,
.cat-list a:active .cat-sub,
.cat-list a.active .cat-sub {
    color: var(--ink-mute);
}

.legal-doc {
    max-width: 680px;
}
.legal-doc .section-title {
    font-size: clamp(28px, 6vw, 40px);
    margin-bottom: 12px;
}
.legal-doc .legal-updated {
    font-size: 13px;
    color: var(--ink-mute);
    margin-bottom: 20px;
}
.legal-doc h3 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 22px 0 8px;
}
.legal-doc p,
.legal-doc li {
    font-size: 15px;
    line-height: 1.47;
    color: var(--ink-soft);
    margin-bottom: 10px;
}
.legal-doc ul {
    padding-left: 1.15em;
    margin-bottom: 10px;
}
.legal-doc a {
    color: var(--blue);
}
.legal-doc a:hover { text-decoration: underline; }
.legal-doc code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.92em;
    background: var(--fill);
    padding: 0.1em 0.35em;
    border-radius: 6px;
}

.cat-foot {
    flex-shrink: 0;
    margin-top: auto; /* pin to bottom of .menu-shell-body when space remains */
    padding-top: 12px;
    border-top: 1px solid var(--separator);
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--surface);
}
.cat-foot-place {
    font-size: 12px;
    font-weight: 510;
    letter-spacing: -0.01em;
    color: var(--ink-mute);
    padding: 0 4px;
}
.cat-foot-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 4px;
    font-size: 13px;
    font-weight: 590;
    letter-spacing: -0.016em;
    color: var(--blue);
}
.cat-foot-link:hover { opacity: 0.8; }

.c4,
.cell-join {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: space-between;
    min-height: 0;
}
.cell-join {
    box-shadow: none;
}
.cell-join.ph-a { background: var(--tile-a); }
.cell-join.ph-b { background: var(--tile-b); }
.cell-join.ph-c { background: var(--tile-c); }
.cell-join.ph-d { background: var(--tile-d); }
.cell-join.ph-photo {
    background:
        linear-gradient(165deg, rgba(245, 245, 247, 0.92) 18%, rgba(245, 245, 247, 0.55) 55%, rgba(245, 245, 247, 0.2)),
        url("assets/raili-portrait.jpg") center 20% / cover no-repeat;
}
.cell-join.ph-photo-soft {
    background:
        linear-gradient(155deg, rgba(245, 245, 247, 0.94) 10%, rgba(245, 245, 247, 0.7) 48%, rgba(26, 107, 74, 0.28)),
        url("assets/raili-portrait.jpg") center 40% / cover no-repeat;
}
.c4 p,
.cell-join p {
    font-size: 17px;
    line-height: 1.47;
    color: var(--ink-soft);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    font-size: 17px;
    font-weight: 510;
    color: var(--blue);
    letter-spacing: -0.022em;
    transition: opacity 0.28s var(--ease);
}
.text-link:hover { opacity: 0.8; }
.text-link .chev {
    font-size: 14px;
    margin-top: 1px;
}

/* Sections */
.section {
    margin-top: var(--section);
    scroll-margin-top: calc(var(--header-h) + var(--safe-t) + 16px);
}

.section-title {
    font-size: clamp(32px, 8vw, 40px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin-bottom: 20px;
    text-align: center;
}

.section-lead {
    text-align: center;
    color: var(--ink-mute);
    font-size: 17px;
    max-width: 420px;
    margin: -8px auto 24px;
}

.expertise {
    display: grid;
    gap: 16px;
}
.expertise-art {
    border-radius: var(--radius-lg);
    min-height: 220px;
    aspect-ratio: 16 / 11;
    box-shadow: var(--shadow-soft);
}
.expertise-copy {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}
.expertise-copy p {
    font-size: 17px;
    color: var(--ink-soft);
}

.paths {
    display: grid;
    gap: var(--gap);
    align-items: stretch;
}

.path-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.path-card .num {
    font-size: 12px;
    font-weight: 590;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 12px;
}
.path-card h3 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin-bottom: 8px;
}
.path-card p {
    font-size: 15px;
    line-height: 1.47;
    color: var(--ink-soft);
}

.links {
    display: grid;
    gap: var(--gap);
}

.link-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s var(--ease-out), background 0.28s var(--ease),
                color 0.28s var(--ease);
}
.link-card:active {
    transform: scale(0.985);
    background: var(--ink);
    color: #fff;
}
.link-card:active .micro,
.link-card:active p { color: rgba(255,255,255,0.65); }
.link-card:active .go { color: #fff; }

.link-card .micro {
    font-size: 12px;
    font-weight: 590;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink-mute);
}
.link-card h3 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.022em;
    margin: 6px 0 4px;
}
.link-card p {
    font-size: 15px;
    color: var(--ink-soft);
}
.link-card .go {
    margin-top: 16px;
    font-size: 15px;
    font-weight: 510;
    color: var(--blue);
}

.about {
    display: grid;
    gap: 24px;
}
.about-photo {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    max-height: 420px;
    box-shadow: var(--shadow);
    justify-self: center;
    width: min(100%, 360px);
}
.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.about-body { text-align: center; }
.about-body .section-title { margin-bottom: 14px; }
.about-body p {
    font-size: 17px;
    color: var(--ink-soft);
    margin-bottom: 12px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.locations {
    font-size: 15px;
    font-weight: 590;
    color: var(--ink) !important;
    margin-bottom: 20px !important;
}

.about-body details {
    text-align: left;
    max-width: 520px;
    margin: 0 auto;
    border-top: 1px solid var(--separator);
    padding-top: 8px;
}
.about-body summary {
    cursor: pointer;
    list-style: none;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 590;
    letter-spacing: -0.016em;
    color: var(--ink);
}
.about-body summary::-webkit-details-marker { display: none; }
.about-body summary::after {
    content: '';
    width: 11px;
    height: 11px;
    border-right: 1.5px solid var(--ink-mute);
    border-bottom: 1.5px solid var(--ink-mute);
    transform: rotate(45deg);
    transition: transform 0.28s var(--ease);
    margin-right: 4px;
}
.about-body details[open] summary::after {
    transform: rotate(-135deg);
    margin-top: 6px;
}
.about-body .more { padding: 8px 0 12px; }
.about-body .more p { text-align: left; margin-bottom: 12px; }
.profile-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 17px;
    font-weight: 510;
    color: var(--blue);
}

.contact-band {
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    text-align: center;
    display: grid;
    gap: 20px;
    justify-items: center;
}
.contact-band .section-title {
    color: #fff;
    margin-bottom: 0;
    font-size: clamp(32px, 8vw, 40px);
}
.contact-band p {
    color: rgba(255, 255, 255, 0.72);
    max-width: 360px;
    font-size: 17px;
}
.contact-band .btn {
    background: #fff;
    color: var(--ink);
    min-width: 220px;
    font-size: 17px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}
.contact-band .btn:hover { opacity: 0.92; }

/* Home-page contact form (keeps simple contact-band CTA on subpages) */
.contact-band--form {
    justify-items: stretch;
    text-align: left;
    gap: 28px;
    padding: 36px 24px;
}
.contact-band--form .contact-intro {
    text-align: center;
    justify-self: center;
}
.contact-band--form .contact-intro p {
    margin: 10px auto 0;
    max-width: 420px;
}
.contact-form {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
}
.contact-fields {
    display: grid;
    gap: 14px;
}
.contact-form .field {
    display: grid;
    gap: 6px;
    text-align: left;
}
.contact-form label {
    font-size: 13px;
    font-weight: 590;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.78);
}
.contact-form .field-optional {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.45);
}
.contact-form input,
.contact-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font: inherit;
    font-size: 17px;
    letter-spacing: -0.016em;
    transition: border-color 0.22s var(--ease), background 0.22s var(--ease),
                box-shadow 0.22s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}
.contact-form textarea {
    min-height: 132px;
    resize: vertical;
    line-height: 1.35;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
.contact-form input:hover,
.contact-form textarea:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
}
.contact-form input:user-invalid:not(:focus),
.contact-form textarea:user-invalid:not(:focus) {
    border-color: rgba(255, 140, 140, 0.7);
}
.contact-actions {
    display: grid;
    gap: 10px;
    justify-items: stretch;
}
.contact-band--form .contact-actions .btn {
    width: 100%;
    min-width: 0;
}
.contact-hint {
    margin: 0;
    font-size: 13px !important;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.5) !important;
    max-width: none !important;
    text-align: center;
}
.contact-hint a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.contact-hint a:hover { color: #fff; }
.contact-form-status {
    margin: 0;
    font-size: 14px !important;
    color: rgba(255, 220, 180, 0.95) !important;
    max-width: none !important;
}
.contact-form-status[hidden] { display: none !important; }

.quotes {
    display: grid;
    gap: 0;
}
.quote {
    padding: 24px 0;
    border-top: 1px solid var(--separator);
    text-align: center;
}
.quote:last-child { border-bottom: 1px solid var(--separator); }
.quote blockquote {
    font-size: 21px;
    font-weight: 510;
    letter-spacing: -0.022em;
    line-height: 1.3;
    max-width: 520px;
    margin: 0 auto 10px;
}
.quote cite {
    font-style: normal;
    font-size: 12px;
    font-weight: 590;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink-mute);
}

.footer {
    margin-top: var(--section);
    padding-top: 28px;
    border-top: 1px solid var(--separator);
    display: grid;
    gap: 22px;
    text-align: center;
    scroll-margin-top: calc(var(--header-h) + var(--safe-t) + 16px);
}
.footer-links {
    display: grid;
    gap: 8px;
    justify-items: center;
}
.footer-nav,
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 2px;
}
.footer-nav a,
.footer-nav .footer-cookie-link {
    font-size: 14px;
    font-weight: 510;
    color: var(--blue);
    margin: 0 10px;
    display: inline-flex;
    min-height: 40px;
    align-items: center;
}
.footer-nav a:hover { text-decoration: underline; }
.footer-legal-label {
    font-size: 12px;
    font-weight: 590;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin: 0 6px 0 10px;
}
.footer-legal a {
    font-size: 13px;
    font-weight: 510;
    color: var(--ink-soft);
    margin: 0 10px;
    display: inline-flex;
    min-height: 36px;
    align-items: center;
}
.footer-legal a:hover {
    color: var(--blue);
    text-decoration: underline;
}
.footer-copy {
    margin: 0;
    max-width: 36rem;
    font-size: 12px;
    line-height: 1.45;
    color: var(--ink-mute);
    letter-spacing: -0.01em;
    justify-self: center;
}
.footer-tagline {
    margin: 0;
    padding-top: 4px;
    border-top: 1px solid var(--separator);
}

/* Studios & partners — logo + name slots for SEO */
.footer-partners {
    text-align: center;
}
.footer-partners-heading {
    font-size: 12px;
    font-weight: 590;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin: 0 0 14px;
}
.footer-partner-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 12px 16px;
    justify-items: center;
}
.footer-partner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 220px;
    margin: 0;
    min-height: 48px;
    padding: 6px 8px;
    border-radius: 12px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 510;
    letter-spacing: -0.01em;
    text-align: left;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
a.footer-partner:hover {
    background: var(--fill);
    color: var(--ink);
    text-decoration: none;
}
.footer-partner--plain {
    color: var(--ink-mute);
}
.footer-partner-logo {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--fill);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.footer-partner-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.footer-partner-name {
    flex: 1;
    line-height: 1.3;
}

/* ========== Tablet ========== */
@media (min-width: 640px) {
    :root {
        --pad-x: 28px;
        --gap: 14px;
        --section: 72px;
        --radius-lg: 32px;
    }

    .hero { padding: 40px 0 36px; gap: 32px; }
    .hero-viewport {
        aspect-ratio: 16 / 11;
        max-height: min(52vh, 440px);
    }
    .hero-title { font-size: 56px; }
    .hero-sub { max-width: 400px; }

    .bento { grid-template-columns: 1fr 1fr; }
    .c2 { grid-column: 1 / -1; min-height: 200px; }
    .c4 { grid-column: 1 / -1; }
    .c3 { grid-column: 1 / -1; }
    .c6 { grid-column: 1 / -1; min-height: 120px; }
    .c1, .c5 { min-height: 120px; }

    .links { grid-template-columns: 1fr 1fr; }
    .paths { grid-template-columns: 1fr 1fr 1fr; }
    .quotes { grid-template-columns: 1fr 1fr; gap: 0 28px; }
    .quote { text-align: left; }
    .quote blockquote { margin-left: 0; }
    .contact-band .btn { width: auto; }
    .contact-band--form {
        padding: 40px 32px;
        gap: 28px;
    }
    .contact-fields {
        grid-template-columns: 1fr 1fr;
        gap: 14px 12px;
    }
    .contact-form .field--full { grid-column: 1 / -1; }
    .contact-actions {
        grid-template-columns: auto 1fr;
        align-items: center;
        justify-items: start;
        gap: 12px 16px;
    }
    .contact-band--form .contact-actions .btn {
        width: auto;
        min-width: 180px;
    }
    .contact-hint { text-align: left; }
    .section-title { text-align: left; }
    .section-lead { text-align: left; margin-left: 0; }
    .expertise-copy { text-align: left; margin-left: 0; }
    .about-body { text-align: left; }
    .about-body .section-title { text-align: left; }
    .about-body p { margin-left: 0; margin-right: 0; }
    .footer { text-align: left; }
    .footer-links { justify-items: start; }
    .footer-nav,
    .footer-legal { justify-content: flex-start; }
    .footer-copy {
        justify-self: start;
        max-width: 40rem;
    }
    .footer-partners { text-align: left; }
    .footer-partner-grid { justify-items: stretch; }
}

/* ========== Desktop ========== */
@media (min-width: 960px) {
    :root {
        --pad-x: 40px;
        --gap: 16px;
        --section: 100px;
        --header-h: 48px;
    }

    body { padding-bottom: 0; }
    .mobile-cta { display: none; }

    .header {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .logo {
        font-size: 15px;
        max-width: none;
    }
    .logo-tag { font-size: 0.82em; }
    .header-actions { margin-left: auto; }
    .pill-chat {
        display: inline-flex;
        min-height: 32px;
        padding: 6px 14px;
        font-size: 12px;
    }
    .menu-btn {
        display: inline-flex;
        min-height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }

    /* Desktop: slide-over sheet (not full-screen) */
    .drawer-panel {
        inset: 0 0 0 auto;
        width: min(360px, 92vw);
        height: 100%;
        padding: calc(72px + var(--safe-t)) 28px calc(32px + var(--safe-b));
        background: rgba(245, 245, 247, 0.92);
        -webkit-backdrop-filter: saturate(180%) blur(28px);
        backdrop-filter: saturate(180%) blur(28px);
        border-left: 1px solid var(--separator);
        transform: translateX(100%);
        opacity: 1;
        box-shadow: -16px 0 48px rgba(0, 0, 0, 0.08);
        transition: transform 0.4s var(--ease-out);
    }
    .drawer.is-open .drawer-panel {
        transform: translateX(0);
        opacity: 1;
    }
    .drawer-panel a:not(.btn) {
        font-size: 28px;
    }

    .hero {
        text-align: left;
        padding: 40px 0 48px;
        display: grid;
        grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.15fr);
        gap: 40px 48px;
        align-items: center;
    }
    .hero-copy {
        max-width: 460px;
    }
    .hero-title {
        font-size: clamp(56px, 6.5vw, 76px);
        max-width: none;
    }
    .hero-title .line-2 {
        font-size: 0.42em;
        white-space: nowrap;
    }
    .hero-sub {
        margin: 20px 0 0;
        max-width: none;
        width: 100%;
        font-size: 17px;
        line-height: 1.5;
        text-align: justify;
        text-align-last: left;
        hyphens: none;
    }
    .hero-viewport {
        aspect-ratio: 5 / 4;
        max-height: min(58vh, 520px);
    }
    .hero-caption {
        font-size: 13px;
        max-width: min(62%, 320px);
    }

    .bento {
        grid-template-columns: 1.05fr 1fr 1fr 1.15fr;
        grid-template-rows: minmax(150px, 17vw) minmax(150px, 16vw);
    }
    .c1, .c2, .c3, .c4, .c5, .c6 {
        order: 0;
        min-height: 0;
        width: auto;
        grid-column: auto;
    }
    .c1 { grid-column: 1; grid-row: 1; }
    .c2 { grid-column: 2 / 4; grid-row: 1; }
    .c3 {
        grid-column: 4;
        grid-row: 1 / 3;
        align-self: stretch;
        padding: 0;
        justify-content: stretch;
        position: relative;
        overflow: hidden;
        gap: 0;
    }
    .menu-shell {
        position: absolute;
        inset: 0;
        width: 100%;
        height: auto;
        max-height: none;
        display: grid;
        grid-template-rows: minmax(0, 1fr);
        padding: 18px 16px 14px;
        min-height: 0;
        overflow: hidden;
    }
    .menu-shell > summary { display: none; }
    .menu-shell-body {
        min-height: 0;
        max-height: 100%;
        overflow: hidden;
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 10px;
    }
    .c4 { grid-column: 1; grid-row: 2; padding: 18px 20px; }
    .cell-join { padding: 18px 20px; }
    .c5 { grid-column: 2; grid-row: 2; }
    .c6 { grid-column: 3; grid-row: 2; }

    .cell-media { min-height: 0; }
    a.cell-media:hover img,
    a.cell-media:hover .art { transform: scale(1.03); }

    .cat-list {
        min-height: 0;
        max-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        overflow-x: hidden;
        overflow-y: auto;
        padding-bottom: 2px;
        scrollbar-gutter: stable;
    }
    .cat-group {
        flex: 1 0 auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 1px;
        min-height: min-content;
        overflow: visible;
        background: transparent;
        padding: clamp(3px, 0.7vh, 10px) 0;
        border-radius: 0;
    }
    .cat-group + .cat-group {
        border-top: 1px solid var(--separator);
        padding-top: calc(clamp(3px, 0.7vh, 10px) + 10px);
    }
    .cat-group > summary.cat-label {
        pointer-events: none;
        min-height: 0;
        padding: 0 8px 4px;
        font-size: 10px;
        cursor: default;
        flex-shrink: 0;
    }
    .cat-group > summary.cat-label::after { display: none; }
    .cat-group-links {
        display: flex;
        flex-direction: column;
        gap: clamp(1px, 0.35vh, 5px);
        padding: 0;
        flex-shrink: 0;
    }
    .cat-list a {
        font-size: clamp(16px, 1.45vw, 20px);
        letter-spacing: -0.028em;
        line-height: 1.08;
        padding: clamp(3px, 0.5vh, 7px) 8px;
        min-height: 0;
        border-radius: 8px;
        flex-shrink: 0;
    }
    .cat-list .cat-sub {
        font-size: 0.42em;
        top: -0.1em;
    }
    .cat-foot {
        flex-shrink: 0;
        margin-top: 0;
        padding-top: 6px;
        gap: 2px;
        align-self: stretch;
    }
    .cat-foot-place { font-size: 11px; }
    .cat-foot-link {
        min-height: 28px;
        font-size: 12px;
    }

    .section-title {
        font-size: 48px;
        margin-bottom: 28px;
    }

    .expertise {
        grid-template-columns: 1.25fr 0.75fr;
        gap: 40px;
        align-items: center;
    }
    .expertise .section-title { grid-column: 1 / -1; }
    .expertise-art {
        min-height: 320px;
        aspect-ratio: 5 / 4;
    }

    .paths { align-items: stretch; }
    .path-card {
        padding: 32px 28px;
        min-height: 220px;
    }
    .path-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow);
    }
    .path-card h3 { font-size: 32px; }
    .path-card h3 + p { margin-top: auto; }

    .links { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
    .link-card:hover {
        transform: translateY(-3px);
        background: var(--ink);
        color: #fff;
        box-shadow: var(--shadow);
    }
    .link-card:hover .micro,
    .link-card:hover p { color: rgba(255,255,255,0.65); }
    .link-card:hover .go { color: #fff; }

    .about {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 56px;
        align-items: center;
    }
    .about-photo {
        width: 100%;
        max-height: none;
        justify-self: stretch;
    }

    .contact-band {
        display: flex;
        text-align: left;
        justify-content: space-between;
        align-items: center;
        padding: 48px 44px;
    }
    .contact-band p { margin: 8px 0 0; }
    .contact-band--form {
        display: grid;
        grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.15fr);
        align-items: start;
        gap: 40px 48px;
        padding: 48px 44px;
    }
    .contact-band--form .contact-intro {
        text-align: left;
        justify-self: start;
        position: sticky;
        top: calc(var(--header-h) + var(--safe-t) + 24px);
    }
    .contact-band--form .contact-intro p {
        margin: 10px 0 0;
        max-width: 320px;
    }
    .contact-form {
        margin: 0;
        max-width: none;
    }

    .quotes { grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
    .quote blockquote { font-size: 19px; }

    .path-card,
    .link-card,
    .cell {
        transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease),
                    background 0.28s var(--ease), color 0.28s var(--ease);
    }
}

@media (min-width: 1200px) {
    :root { --pad-x: 48px; --section: 120px; }
    .hero-title { font-size: 84px; }
}

@media (min-width: 1440px) {
    :root {
        --pad-x: 56px;
        --max: 1280px;
        --section: 128px;
    }
    .hero {
        gap: 48px 64px;
    }
    .hero-viewport {
        max-height: min(58vh, calc(var(--vh-unit) * 58), 560px);
    }
}

@media (max-width: 639px) {
    .c3 { order: 0; }
    .c1 { order: 1; }
    .c2 { order: 2; }
    .c4 { order: 3; }
    .c5 { order: 4; }
    .c6 { order: 5; }
}

@media (max-width: 379px) {
    :root { --pad-x: 16px; }
    .hero-title { font-size: clamp(34px, 10vw, 42px); }
    .cell-join p,
    .c4 p { font-size: 15px; }
    .text-link { font-size: 15px; }
    .logo {
        font-size: 13px;
        max-width: 11.5rem;
    }
    .logo-tag { font-size: 0.76em; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}

/* Subpage shell */
.subpage-main {
    padding-top: calc(var(--header-h) + 8px);
}
.subpage-intro {
    padding: calc(var(--section) * 0.55) 0 calc(var(--section) * 0.35);
    max-width: 720px;
}

/* Breadcrumbs — subtle Apple-style trail */
.breadcrumbs {
    margin: 0 0 18px;
}
.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35em 0.45em;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -0.008em;
    line-height: 1.33337;
    color: var(--ink-mute);
}
.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
}
.breadcrumbs li:not(:last-child)::after {
    content: "›";
    color: var(--ink-mute);
    font-weight: 400;
    opacity: 0.7;
}
.breadcrumbs a {
    color: var(--blue);
    font-weight: 400;
    transition: color 0.2s var(--ease);
}
.breadcrumbs a:hover { color: var(--blue-hover); }
.breadcrumbs [aria-current="page"] {
    color: var(--ink-soft);
    font-weight: 400;
}

.subpage-intro .eyebrow {
    font-size: 13px;
    font-weight: 590;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 12px;
}
.subpage-intro .section-title {
    margin-bottom: 12px;
}
.subpage-intro > p {
    color: var(--ink-soft);
    font-size: 19px;
    line-height: 1.4211;
    letter-spacing: 0.011em;
}
.subpage-intro .back-home {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
    color: var(--blue);
    font-size: 15px;
    font-weight: 590;
}
.subpage-intro .back-home:hover { color: var(--blue-hover); }

.teaser-band {
    display: grid;
    gap: 16px;
    padding: 28px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}
.teaser-band p { color: var(--ink-soft); max-width: 52ch; }
.teaser-band .text-link { width: fit-content; }

/* Gallery subpage */
.gallery-grid {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}
.gallery-item {
    margin: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--fill);
}
.gallery-item--wide {
    grid-column: 1 / -1;
}
.gallery-item figure {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.gallery-item img,
.gallery-ph {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 16%;
    display: block;
}
.gallery-item--wide img {
    aspect-ratio: 16 / 10;
    max-height: 420px;
    object-position: center top;
}
.gallery-item figcaption {
    padding: 12px 14px 14px;
    font-size: 13px;
    font-weight: 590;
    letter-spacing: -0.01em;
    color: var(--ink-soft);
    background: var(--surface);
}
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-item--wide {
        grid-column: span 2;
    }
    .gallery-item--wide img {
        aspect-ratio: 4 / 5;
        max-height: none;
        height: 100%;
        min-height: 320px;
    }
    .gallery-item--wide figure {
        height: 100%;
    }
    .gallery-item--wide img,
    .gallery-item--wide .gallery-ph {
        flex: 1;
    }
}

.path-card .text-link {
    display: inline-flex;
    margin-top: 14px;
    font-size: 15px;
    width: fit-content;
}

/* Cookie consent — compact bottom sheet */
.cookie-consent {
    position: fixed;
    left: var(--pad-x);
    right: var(--pad-x);
    bottom: calc(12px + var(--safe-b));
    z-index: 55;
    max-width: 420px;
    margin: 0 auto;
    pointer-events: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s var(--ease-out), transform 0.45s var(--ease-out);
}
.cookie-consent.is-visible {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
}
html[data-device="phone"] .cookie-consent,
html[data-device="tablet"] .cookie-consent {
    bottom: calc(var(--bottom-cta) + 10px + var(--safe-b));
    max-width: none;
}
@media (min-width: 860px) {
    html[data-device="phone"] .cookie-consent,
    html[data-device="tablet"] .cookie-consent {
        bottom: calc(20px + var(--safe-b));
        max-width: 420px;
    }
}

.cookie-panel {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    backdrop-filter: saturate(180%) blur(24px);
    border: 1px solid var(--separator);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 18px 18px 16px;
}

.cookie-panel h2 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.235;
    margin: 0 0 6px;
}

.cookie-copy {
    font-size: 13px;
    line-height: 1.38462;
    letter-spacing: -0.008em;
    color: var(--ink-soft);
    margin: 0 0 14px;
}
.cookie-copy a {
    color: var(--blue);
    font-weight: 510;
}
.cookie-copy a:hover { color: var(--blue-hover); }

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cookie-actions .btn {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 14px;
    flex: 1 1 auto;
}
.cookie-actions .btn-ghost {
    flex: 1 1 100%;
    background: transparent;
    color: var(--blue);
    font-weight: 510;
}
.cookie-actions .btn-ghost:hover {
    background: var(--fill);
    color: var(--blue-hover);
}
.cookie-actions .btn-ghost[aria-expanded="true"] {
    background: var(--fill);
    color: var(--ink);
}

.cookie-settings {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--separator);
}
.cookie-settings[hidden] { display: none; }

.cookie-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
}
.cookie-row + .cookie-row {
    border-top: 1px solid var(--separator);
}
.cookie-row-text {
    min-width: 0;
}
.cookie-row-text strong {
    display: block;
    font-size: 14px;
    font-weight: 590;
    letter-spacing: -0.016em;
    margin-bottom: 2px;
}
.cookie-row-text span {
    display: block;
    font-size: 12px;
    line-height: 1.33337;
    color: var(--ink-mute);
}

.cookie-switch {
    position: relative;
    flex-shrink: 0;
    width: 51px;
    height: 31px;
    border-radius: 980px;
    background: #e9e9eb;
    transition: background 0.28s var(--ease);
    margin-top: 2px;
}
.cookie-switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.28s var(--ease-out);
}
.cookie-switch[aria-checked="true"] {
    background: #34c759;
}
.cookie-switch[aria-checked="true"]::after {
    transform: translateX(20px);
}
.cookie-switch:disabled,
.cookie-switch[aria-disabled="true"] {
    opacity: 0.7;
    cursor: default;
}
.cookie-switch:not(:disabled):hover {
    filter: brightness(0.98);
}

.cookie-settings-actions {
    margin-top: 12px;
}
.cookie-settings-actions .btn {
    width: 100%;
    min-height: 40px;
    font-size: 14px;
}

.footer-cookie-link {
    color: var(--blue);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font: inherit;
    font-size: 14px;
    font-weight: 510;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s var(--ease);
}
.footer-cookie-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

body.cookie-banner-visible .pill-chat {
    bottom: calc(140px + var(--safe-b));
}

/* Resources page — clean affiliation / social list */
.resource-list {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    max-width: 640px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.resource-list li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.resource-list a,
.resource-list .resource-plain {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 16px;
    padding: 16px 2px;
    min-height: 52px;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}
.resource-list a:hover .resource-name,
.resource-list a:focus-visible .resource-name {
    color: var(--blue);
}
.resource-name {
    font-size: 19px;
    font-weight: 590;
    letter-spacing: -0.022em;
    color: var(--ink);
    transition: color 0.2s var(--ease);
}
.resource-meta {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.008em;
    color: var(--ink-mute);
}
.resource-list .resource-plain .resource-name {
    color: var(--ink-soft);
}
