/* Numica — website stylesheet. Tokens mirror the Figma "Numica" variable collection (light theme). */

@font-face { font-family: "Arizona Flare"; src: url("/fonts/arizona-flare-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Arizona Flare"; src: url("/fonts/arizona-flare-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "SuperX Text"; src: url("/fonts/superx-text-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "SuperX Text"; src: url("/fonts/superx-text-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "SuperX Text"; src: url("/fonts/superx-text-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --paper: #FAFAF9; --tint: #EFEEED; --tint-2: #F5F5F4; --orange: #F97924; --orange-600: #EA6106; --ink: #201E1D; --stone: #79716C; --white: #FFFFFF;
  --bg-primary: var(--paper); --bg-tinted: var(--tint); --bg-button: var(--orange-600);
  --text-primary: var(--ink); --text-secondary: var(--stone); --text-accent: var(--orange); --text-button: var(--white);
  --icon-accent: var(--orange-600);
  --border-strong: var(--ink); --border-subtle: rgba(32, 30, 29, .1);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 40px; --space-8: 48px; --space-9: 64px; --space-10: 80px; --space-11: 96px;
  --radius-s: 24px; --radius-l: 40px; --margin: 24px; --nav-h: 64px; --measure: 684px;
  --font-display: "Arizona Flare", "Newsreader", Georgia, serif;
  --font-text: "SuperX Text", "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.85, 0, .15, 1);
}
.surface--orange { --bg-primary: var(--orange); --text-accent: var(--white); --bg-button: var(--white); --text-button: var(--ink); --icon-accent: var(--ink); --border-subtle: rgba(32, 30, 29, .15); }
.surface--dark { --bg-primary: var(--ink); --text-primary: var(--white); --text-secondary: rgba(255, 255, 255, .72); --border-strong: var(--white); --border-subtle: rgba(255, 255, 255, .1); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; padding-top: var(--nav-h); overflow-x: clip; background: var(--paper); color: var(--text-primary); font-family: var(--font-text); font-size: 18px; line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
hr { border: 0; margin: 0; }
:focus-visible { outline: 2px solid var(--orange-600); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }
.icon { display: block; width: 100%; height: 100%; }
[hidden]:not(.sticky) { display: none !important; }   /* author display rules must not beat the hidden attribute (filters, menus) */

/* ---------- type ---------- */
.t-hero, .t-h2, .t-h3, .t-h4, .t-figure, .t-index, .t-index-s { font-family: var(--font-display); font-weight: 500; }
.t-hero { font-size: 72px; line-height: .96; letter-spacing: -.02em; text-transform: uppercase; }
.t-h2 { font-size: 56px; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
.t-h3 { font-size: 36px; line-height: 1.1; letter-spacing: -.01em; }
.t-h4 { font-size: 28px; line-height: 1.1; }
.t-figure { font-size: 96px; line-height: 1; letter-spacing: -.03em; }
.t-index, .t-index-s { font-weight: 700; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; }
.t-index { font-size: 14px; }
.t-index-s { font-size: 12px; }
.t-lead { font-size: 22px; line-height: 1.4; letter-spacing: -.005em; }
.t-body { font-size: 18px; line-height: 1.5; }
.t-caption { font-size: 14px; line-height: 1.4; letter-spacing: .01em; }
.t-quote { font-family: var(--font-text); font-weight: 500; font-size: 28px; line-height: 1.3; }   /* Numica Web/Display/Quote */
.accent { color: var(--text-accent); }
.muted { color: var(--text-secondary); }
.prose__body p + p { margin-top: 27px; }
.prose__body a { color: var(--orange-600); text-decoration: underline; text-underline-offset: 2px; }
.prose__claim { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.prose__body strong { font-weight: 600; }
.prose__body strong.prose__claim { font-weight: 700; }
.prose__sub { margin-top: 27px; }
.prose__body ul { margin: 0; padding-left: 22px; }
.prose__body li + li { margin-top: 8px; }
.prose__body p + ul, .prose__body ul + p { margin-top: 16px; }
.res-list__empty { text-align: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3); height: 48px; padding: 0 var(--space-5); border: 1px solid transparent; border-radius: var(--radius-s);   /* every style carries the 1px so widths never shift between styles */ font-weight: 600; font-size: 16px; line-height: 1; white-space: nowrap; transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.btn__icon { display: block; width: 16px; height: 16px; flex: none; color: var(--icon-accent); transition: transform .25s var(--ease); }
.btn:hover .btn__icon:not(.btn__icon--chev), .btn:focus-visible .btn__icon:not(.btn__icon--chev) { transform: translateX(4px); }
.btn--primary { background: var(--bg-button); color: var(--text-button); }
.btn--primary:hover { background: var(--ink); color: #fff; }
.surface--orange .btn--primary:hover { background: var(--ink); color: #fff; }
.btn--secondary { border-color: var(--border-strong); color: var(--text-primary); }
.btn--secondary:hover { background: rgba(32, 30, 29, .05); }
.surface--dark .btn--secondary:hover { background: rgba(255, 255, 255, .1); }
.btn--ghost { padding: 0; color: var(--text-primary); }
.btn--ghost:hover { color: var(--orange-600); }
.btn--full { width: 100%; }
.btn[aria-pressed="true"] { pointer-events: none; }
.btn__icon--chev { transition: transform .3s var(--ease); }
[aria-expanded="true"] > .btn__icon--chev { transform: rotate(180deg); }
.btn--toggle { width: 256px; justify-content: space-between; }   /* fixed width so the chevron stays put when the label changes */
.chip { border-color: var(--border-strong); color: var(--text-primary); }
.chip:hover { background: rgba(32, 30, 29, .05); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- symbol ---------- */
.symbol { display: block; color: var(--orange); will-change: transform; }
.symbol svg { display: block; width: 100%; height: 100%; transform-origin: 50% 50%; }
.nav__symbol svg { transition: none; }
.nav__symbol:hover svg, .nav:has(.nav__wordmark:hover) .nav__symbol svg { transform: rotate(360deg); transition: transform .8s var(--ease); }   /* one full turn on hover; 360 → 0 snaps back invisibly */
.avatar { border-radius: 50%; object-fit: cover; flex: none; }
.avatar--80 { width: 80px; height: 80px; }
.avatar--48 { width: 48px; height: 48px; }
.avatar--96 { width: 96px; height: 96px; }
.avatar--initial { display: inline-flex; align-items: center; justify-content: center; background: var(--orange); color: #fff; font-family: var(--font-display); font-weight: 500; font-size: 22px; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h); padding: var(--space-2) var(--margin); display: flex; align-items: center; justify-content: space-between; background: var(--paper); color: var(--ink); border-bottom: 1px solid transparent; transition: transform .45s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.nav.is-scrolled { border-bottom-color: var(--border-subtle); }
.nav.is-hidden { transform: translateY(-100%); }
.nav.is-menu-open { border-bottom-color: transparent; }
.nav__links { display: flex; align-items: center; gap: var(--space-5); height: 48px; }
.nav__primary { display: flex; align-items: center; gap: var(--space-5); }
.nav__symbol { display: block; width: 28px; height: 28px; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-4) 0; font-weight: 500; font-size: 16px; line-height: 1; color: inherit; transition: color .2s var(--ease); }
.nav__link:hover { color: var(--orange-600); }
.nav__chev { display: block; width: 16px; height: 16px; margin-top: 1px; }   /* never rotates: the chevron always points down */
.nav__item.is-active > .nav__link { color: var(--orange-600); }
.nav__bubble { position: absolute; top: 100%; left: -16px; margin-top: -8px; display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-4); background: var(--paper); border: 1px solid var(--border-subtle); border-radius: 8px; color: var(--ink); white-space: nowrap; box-shadow: 0 12px 32px rgba(32, 30, 29, .08); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
.nav__item.is-open > .nav__bubble { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .3s var(--ease), visibility 0s; }
.nav__sub { display: block; font-weight: 500; font-size: 16px; line-height: 1; }
.nav__sub:hover, .nav__sub.is-current { color: var(--orange-600); }
.nav__wordmark { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); width: 110px; height: auto; aspect-ratio: 110 / 19.375; color: inherit; }   /* uppercase NUMICA wordmark, Figma Nav 696:2589 */
.nav__wordmark svg { display: block; width: 100%; height: 100%; }
.nav__actions { display: flex; align-items: center; gap: var(--space-5); }
.nav__burger { display: none; width: 24px; height: 24px; position: relative; z-index: 1; }
.nav__burger span { position: absolute; left: 3px; right: 3px; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
.nav__burger span:first-child { top: 8px; }
.nav__burger span:last-child { top: 15px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }   /* sandwich → close */
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* mobile menu */
.menu { position: fixed; inset: 0; z-index: 45; background: var(--paper); color: var(--ink); display: flex; flex-direction: column; overflow-y: auto; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .55s var(--ease), visibility 0s .55s; }
.menu.is-open { visibility: visible; clip-path: inset(0); transition: clip-path .55s var(--ease), visibility 0s; }
.menu__header { height: var(--nav-h); flex: none; }   /* the fixed nav bar (symbol, wordmark, burger→close) sits over this spacer */
.menu__links { display: flex; flex-direction: column; gap: var(--space-6); padding: var(--space-6) var(--space-4); }
.menu__group { display: flex; flex-direction: column; }
.menu__label { font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; color: var(--stone); text-align: center; padding: var(--space-2) 0; }
.menu__link { display: block; text-align: center; padding: var(--space-2) 0; font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.1; letter-spacing: -.01em; }
.menu__rule { height: 1px; background: var(--border-subtle); }
.menu__actions { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-4) max(var(--space-4), env(safe-area-inset-bottom)); }
.menu__actions .btn--ghost { height: 48px; }

/* ---------- hero + headline ---------- */
.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-9); padding: var(--space-11) 0 var(--space-9); background: var(--bg-primary); }
.hero--tinted { background: var(--tint); }
.hero--image { position: relative; min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h)); padding: var(--space-9) 0; color: var(--text-primary); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .4); }
.hero--image .headline { position: relative; z-index: 1; }
.headline { width: 100%; max-width: 1440px; display: flex; flex-direction: column; align-items: center; gap: var(--space-6); padding: 0 var(--margin); text-align: center; }
.headline__title { max-width: 920px; }
.headline__lead { max-width: var(--measure); }
.headline__ctas { display: flex; align-items: center; justify-content: center; gap: var(--space-4); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-4); }
.slider { width: 100%; }   /* the carousel is the one full-bleed block: cards enter and leave at the browser edge */

/* ---------- slider (drag-to-spin marquee) ---------- */
.slider { overflow: hidden; contain: paint; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.slider__track { display: flex; gap: var(--space-4); padding: 0 var(--margin); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__slot { flex: 0 0 720px; scroll-snap-align: start; }
.slider.is-marquee { cursor: grab; }
.slider.is-dragging { cursor: grabbing; }
.slider.is-marquee .slider__track { gap: 0; padding: 0; overflow: visible; will-change: transform; }
.slider.is-marquee .slider__slot { flex: 0 0 33.3333%; padding: 0 var(--space-2); }
.photo { position: relative; aspect-ratio: 9 / 10; border-radius: var(--radius-s); overflow: hidden; background: var(--tint); transform: scale(var(--s, 1)); transform-origin: 50% 50%; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transform: scale(1.08) translateX(var(--p, 0px)); pointer-events: none; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(32, 30, 29, 0) 8%, rgba(32, 30, 29, .35) 67.5%, rgba(32, 30, 29, .75) 100%); }
.photo__caption { position: absolute; left: var(--space-5); right: var(--space-5); bottom: var(--space-5); z-index: 1; color: #fff; }

/* ---------- sections ---------- */
.section { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); padding: var(--space-9) var(--margin); background: var(--bg-primary); }
:where(.section, .textsec, .faq, .res-list, .article, .article-hero) > :where(*) { width: 100%; max-width: 1392px; }   /* content column caps at 1392 and centres above 1440 */
.section--gap-l { gap: var(--space-9); }
.section--tinted { background: var(--tint); }
.sh { display: flex; flex-direction: column; gap: var(--space-5); }
.sh__row { display: flex; gap: var(--space-5); align-items: flex-start; }
.sh__row--controls { align-items: flex-end; }
.sh__title, .sh__desc { flex: 1 1 0; min-width: 0; }
.sh__title .t-h2 { max-width: 572px; }
.sh__controls { flex: 1 1 0; display: flex; justify-content: flex-end; gap: 10px; }
.ctrl { width: 48px; height: 48px; border-radius: 50%; color: var(--ink); transition: background-color .2s var(--ease); }
.ctrl:hover { background: rgba(32, 30, 29, .05); }
.ctrl svg { display: block; width: 48px; height: 48px; }

/* service rows */
.services { display: flex; flex-direction: column; gap: var(--space-4); }
.service { display: flex; align-items: stretch; border-radius: var(--radius-l); overflow: hidden; }
.service--flip { flex-direction: row-reverse; }
.service__image { position: relative; flex: 0 0 50%; width: 50%; min-width: 0; overflow: hidden; background: var(--tint); }
.service__image::before { content: ""; display: block; padding-top: 75%; }   /* 4:3 floor; the half stretches if the copy is taller */
.service__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.duotone::after { content: ""; position: absolute; inset: 0; background: var(--orange); mix-blend-mode: color; pointer-events: none; }
.service__card { flex: 0 0 50%; width: 50%; min-width: 0;   /* flex-basis 0 would add the padding on top and skew the halves */ display: flex; flex-direction: column; justify-content: space-between; padding: var(--space-6); background: var(--tint); }
.service__num { color: var(--text-accent); }
.service__bottom { display: flex; flex-direction: column; gap: var(--space-7); align-items: flex-start; }
.service__text { display: flex; flex-direction: column; gap: var(--space-4); padding-right: var(--space-8); }
.service--orange .service__card { background: var(--orange); }
.service--orange .service__num { color: #fff; }

/* feature grids */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.feature { display: flex; flex-direction: column; gap: var(--space-4); padding: 0 var(--space-8) var(--space-7) 0; border-bottom: 1px solid var(--border-subtle); }
.feature:last-child, .feature:nth-child(odd):nth-last-child(2) { border-bottom: 0; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.person { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: 0 var(--space-8) var(--space-5) 0; }

/* text sections */
.textsec { display: flex; flex-direction: column; align-items: center; gap: var(--space-7); padding: var(--space-9) var(--margin); background: var(--bg-primary); }
.textsec--rule { border-bottom: 1px solid var(--border-subtle); }
.textsec__col { width: 100%; max-width: var(--measure); display: flex; flex-direction: column; gap: var(--space-5); text-align: center; }
.textsec__row { display: flex; gap: var(--space-5); width: 100%; align-items: flex-start; }
.textsec__half { flex: 1 1 0; min-width: 0; }
.textsec__half .t-h2 { max-width: 572px; }
.profile { width: 100%; max-width: var(--measure); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-7); }
.profile__intro { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }

/* quotes carousel */
.quotes { display: flex; gap: var(--space-4); width: var(--vw, 100vw); max-width: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(50% - var(--vw, 100vw) / 2); padding: 0 var(--bleed); scroll-padding: 0 var(--bleed); --bleed: max(var(--margin), calc(var(--vw, 100vw) / 2 - 696px)); cursor: grab; }   /* bleeds to the viewport edge; the first card still lines up with the 1392 column */
.quotes.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.quotes.is-dragging .quote { pointer-events: none; }
.quotes::-webkit-scrollbar { display: none; }
.quote { flex: 0 0 684px; scroll-snap-align: start; display: flex; flex-direction: column; gap: var(--space-7); padding: var(--space-6); border-radius: var(--radius-l); background: var(--tint); }   /* tinted light-grey card on every strip */
.quote__mark { display: block; width: 35px; height: 29px; color: var(--orange); }
.quote__mark svg { display: block; width: 100%; height: 100%; }
.quote__text { flex: 1; font-family: var(--font-text); font-weight: 500; font-size: 28px; line-height: 1.3; letter-spacing: 0; }
.quote__profile { display: flex; align-items: center; gap: var(--space-4); padding-top: var(--space-6); border-top: 1px solid var(--border-subtle); }
.quote__profile strong { font-weight: 600; }

/* numbers + duo */
.features--numbers .feature { gap: var(--space-4); }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); max-width: calc(1392px + 2 * var(--margin)); margin-inline: auto; padding: var(--space-9) var(--margin); }
.duo__col { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5); padding-right: var(--space-8); }

/* CTA band */
.cta { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 700px; padding: var(--space-9) 0; background: var(--bg-primary); color: var(--text-primary); }

/* FAQ */
.faq { display: flex; flex-direction: column; align-items: center; padding: var(--space-9) var(--margin); }
.faq__col { width: 100%; max-width: var(--measure); display: flex; flex-direction: column; gap: var(--space-9); }
.faq__group { display: flex; flex-direction: column; }
.faq__title { padding-bottom: var(--space-5); border-bottom: 1px solid var(--border-subtle); }
.faq__item { border-bottom: 1px solid var(--border-subtle); padding: var(--space-5) 0; }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__chev { display: block; width: 24px; height: 24px; flex: none; color: var(--orange); transition: transform .3s var(--ease); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { overflow: hidden; }
.faq__a-inner { padding: var(--space-4) var(--space-8) 0 0; }

/* Resources + article */
.res-list { display: flex; flex-direction: column; align-items: center; gap: var(--space-7); padding: 0 var(--margin) var(--space-9); }   /* chips row, then the list */
.res-list__items { display: flex; flex-direction: column; align-items: center; gap: var(--space-9); }
.res-list__items > * { width: 100%; }
.res-list__items > .article-item { max-width: var(--measure); }
.featured { width: 100%; display: flex; flex-direction: column; align-items: center; gap: var(--space-4); padding: var(--space-7); border-radius: var(--radius-l); background: var(--tint); text-align: center; transition: background-color .25s var(--ease); }
.featured:hover { background: #E7E5E4; }
.featured__title, .featured__summary { max-width: var(--measure); }
.byline { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.article-item { width: 100%; max-width: var(--measure); display: flex; flex-direction: column; gap: var(--space-4); }
.article-item:hover .t-h4 { color: var(--orange-600); }
.article-item .t-h4 { transition: color .2s var(--ease); }
.article-hero { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4); padding: var(--space-11) var(--margin) var(--space-9); background: var(--tint); text-align: center; }
.article-hero__title, .article-hero__lead { max-width: var(--measure); }
.breadcrumb { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-2); }
.article { display: flex; flex-direction: column; align-items: center; padding: var(--space-9) var(--margin); }
.article__col { width: 100%; max-width: var(--measure); display: flex; flex-direction: column; gap: var(--space-9); }
.prose { display: flex; flex-direction: column; gap: var(--space-5); }
.inline-cta { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); padding: var(--space-7); border-radius: var(--radius-l); background: var(--tint); text-align: center; }
.inline-cta__text { display: flex; flex-direction: column; gap: var(--space-4); }
.related { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-7); }
.related .article-item { max-width: none; }

/* ---------- footer ---------- */
.footer { padding: var(--space-9) var(--margin) var(--space-6); background: var(--tint); }
.footer__inner { width: 100%; max-width: 1392px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-6); }   /* the band runs full width, the content locks to the 1392 column */
.footer__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-4); padding-bottom: var(--space-6); border-bottom: 1px solid var(--border-subtle); }
.footer__brand { grid-column: 1 / span 2; display: flex; flex-direction: column; align-items: flex-start; padding-right: var(--space-9); }
.footer__brand--mobile { display: none; }
.footer__wordmark { display: block; width: 240px; height: auto; aspect-ratio: 240 / 42.2727; color: var(--ink); }
.footer__wordmark svg { display: block; width: 100%; height: 100%; }
/* uppercase wordmark (Figma Footer 921:5024): cap height starts at the cell top, level with the column headings, so no offset */
.footer__cols { display: contents; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5); }
.footer__col:last-child { gap: var(--space-4); }
.footer__label { color: var(--stone); }
.footer__link { font-weight: 500; font-size: 16px; line-height: 1; }
.footer__link:hover { color: var(--orange-600); }
.footer__legal { display: none; color: var(--stone); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.footer__bottom-left { display: flex; align-items: center; gap: var(--space-5); }
.footer__symbol { width: 28px; height: 28px; }

/* ---------- sticky button ---------- */
.sticky { position: fixed; z-index: 40; right: var(--margin); bottom: var(--margin); transform: translateY(150%); opacity: 0; transition: transform .5s var(--ease), opacity .4s var(--ease), visibility 0s .5s; visibility: hidden; }
.sticky[hidden] { display: block; }
.sticky.is-visible { transform: none; opacity: 1; visibility: visible; transition: transform .5s var(--ease), opacity .4s var(--ease), visibility 0s; }
.sticky .btn { width: auto; box-shadow: 0 12px 32px rgba(32, 30, 29, .18); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: var(--space-4); }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(32, 30, 29, .5); backdrop-filter: blur(4px); }
.modal__panel { position: relative; width: min(480px, 100%); background: var(--paper); border-radius: var(--radius-s); padding: var(--space-7) var(--space-6) var(--space-6); animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; top: var(--space-4); right: var(--space-4); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.modal__close svg { width: 24px; height: 24px; }
.modal__close:hover { background: rgba(32, 30, 29, .06); }
.modal__view { display: flex; flex-direction: column; gap: var(--space-5); }
.modal__view[hidden] { display: none; }
.modal__head { display: flex; flex-direction: column; gap: var(--space-2); }
.form { display: flex; flex-direction: column; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field__label { font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--stone); }
.field input, .field textarea { min-height: 48px; padding: 0 var(--space-4); background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-s); color: var(--ink); font: inherit; font-size: 16px; }
.field input:focus, .field textarea:focus { border-color: var(--orange-600); outline: none; }
.field input.is-invalid, .field textarea.is-invalid { border-color: #C0392B; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.slot { height: 48px; border: 1px solid var(--border-subtle); border-radius: var(--radius-s); font-size: 14px; font-weight: 500; transition: background-color .2s, color .2s, border-color .2s; }
.slot:hover { border-color: var(--ink); }
.slot[aria-checked="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .btn, .btn__icon, .nav, .sticky, .symbol, .menu, .nav__bubble { transition: none !important; } .symbol { transform: none !important; } }

@media (min-width: 1441px) {
  .hero:not(.hero--carousel), .article-hero { min-height: calc(100vw * var(--hero-h, 472) / 1440); }   /* the block scales with the viewport, the type does not */
  .cta { min-height: calc(100vw * 700 / 1440); }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .t-hero { font-size: 56px; }
  .t-h2 { font-size: 44px; }
  .t-figure { font-size: 72px; }
  .slider__slot { flex: 0 0 60%; }
  .quote { flex-basis: 80%; }
}

@media (max-width: 860px) {
  :root { --margin: 16px; --radius-l: 24px; }
  .t-hero { font-size: 40px; line-height: 1; }
  .t-h2 { font-size: 40px; }
  .t-h3 { font-size: 28px; }
  .t-h4 { font-size: 22px; }
  .t-figure { font-size: 64px; }
  .t-lead { font-size: 18px; line-height: 1.5; }

  .nav { padding: var(--space-2) 13px var(--space-2) var(--space-4); }
  .nav__primary, .nav__actions { display: none; }
  .nav__burger { display: block; }

  .hero { gap: var(--space-7); padding: var(--space-11) 0 var(--space-7); }
  .hero--image { padding: var(--space-7) 0; }
  .headline { gap: var(--space-5); }
  .headline__ctas { flex-direction: column; width: 100%; gap: var(--space-3); }
  .headline__ctas .btn { width: 100%; }
  .headline__ctas--hero { display: none; }            /* the sticky button stands in for the hero CTA on mobile */
  .chips { flex-direction: row; width: auto; gap: var(--space-2); }
  .chips .btn { width: auto; }
  .headline__ctas [data-faq-toggle] { width: 256px; }

  .slider__track { gap: var(--space-2); }
  .slider__slot { flex: 0 0 calc(100% - 32px); }
  .slider.is-marquee .slider__slot { flex: 0 0 86%; padding: 0 var(--space-2); }
  .photo { aspect-ratio: 358 / 420; }
  .photo__caption { left: var(--space-4); right: var(--space-4); bottom: var(--space-4); }

  .section { gap: var(--space-6); padding: var(--space-7) var(--margin); }
  .section--gap-l { gap: var(--space-6); }
  .sh__row, .sh__row--controls { flex-direction: column; gap: var(--space-5); }
  .sh__title, .sh__desc, .sh__controls { flex: none; width: 100%; }
  .sh__title .t-h2 { max-width: none; }
  .sh__desc .t-lead { font-size: 18px; line-height: 1.5; }
  .sh__desc:empty { display: none; }
  .sh__controls { justify-content: flex-start; }

  .service, .service--flip { flex-direction: column; }
  .service__image { flex: none; width: 100%; }
  .service__card { flex: none; width: 100%; min-height: 358px; justify-content: flex-start; gap: var(--space-7); padding: var(--space-4); }
  .service__text { padding-right: var(--space-1); }

  .features, .people, .duo { grid-template-columns: 1fr; gap: var(--space-4); }
  .feature:nth-child(odd):nth-last-child(2) { border-bottom: 1px solid var(--border-subtle); }
  .features--numbers .feature { background: var(--tint-2); border-bottom: 0; padding: var(--space-4); }
  .person, .duo__col { padding-right: 0; }
  .duo { gap: var(--space-8); padding: var(--space-7) var(--margin); }

  .textsec { padding: var(--space-7) var(--margin); gap: var(--space-9); }
  .textsec__row { flex-direction: column; }
  .textsec__half { width: 100%; }
  .textsec__half .t-h2 { max-width: none; }

  .quote { flex: 0 0 calc(var(--vw, 100vw) - 50px); padding: var(--space-6) var(--space-4); gap: var(--space-7); }   /* 340 of 390: the next card peeks in */
  .quote__text, .t-quote { font-size: 22px; }

  .cta { padding: var(--space-7) 0; }
  .article-hero { padding: var(--space-11) var(--margin) var(--space-7); }
  .faq { padding: var(--space-7) var(--margin); }
  .faq__col { gap: var(--space-7); }
  .faq__a-inner { padding-right: 0; }

  .res-list { gap: var(--space-7); padding-bottom: var(--space-7); }
  .res-list__items { gap: var(--space-7); }
  .featured { padding: var(--space-6) var(--space-4); }
  .article { padding: var(--space-7) var(--margin); }
  .article__col { gap: var(--space-7); }
  .inline-cta { padding: var(--space-5); }
  .inline-cta .headline__ctas { width: 100%; }

  .footer { padding: var(--space-7) var(--margin) var(--space-4); }
  .footer__grid { display: flex; flex-direction: column; gap: var(--space-6); padding-bottom: 0; border-bottom: 0; }
  .footer__grid > .footer__brand:first-child, .footer__bottom { display: none; }
  .footer__cols { display: flex; gap: var(--space-4); padding-bottom: var(--space-6); border-bottom: 1px solid var(--border-subtle); }
  .footer__col { flex: 1 1 0; min-width: 0; gap: var(--space-4); }
  .footer__brand--mobile { display: flex; flex-direction: column; gap: var(--space-6); padding: 0; }
  .footer__wordmark { width: 100%; }
  .footer__legal { display: block; }

  .sticky { left: 0; right: 0; bottom: 0; padding: var(--space-9) var(--margin) max(var(--space-4), env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(250, 250, 249, 0) 0%, #FAFAF9 100%); transform: none; clip-path: inset(100% 0 0 0); transition: clip-path .5s var(--ease), opacity .4s var(--ease), visibility 0s .5s; }
  .sticky.is-visible { clip-path: inset(0); transition: clip-path .5s var(--ease), opacity .4s var(--ease), visibility 0s; }
  .sticky .btn { width: 100%; box-shadow: none; }
}

.field textarea { padding: var(--space-3) var(--space-4); resize: vertical; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.faq__a-inner p + p, .faq__a-inner p + ul, .faq__a-inner ul + p { margin-top: 16px; }
.faq__a-inner ul { padding-left: 22px; }
.faq__a-inner a, .prose__body a { color: var(--orange-600); text-decoration: underline; text-underline-offset: 2px; }
a.byline { color: inherit; }
.article-source { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); max-width: var(--measure); text-align: center; }
.article-source a { color: var(--orange-600); text-decoration: underline; text-underline-offset: 2px; }
.prose__body h3 { margin-top: 27px; }
.prose__body h3 + p { margin-top: var(--space-3); }
.prose__body ol { margin: 0; padding-left: 22px; }
.prose__body li > ul, .prose__body li > ol { margin-top: 8px; }
.prose__body table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose__body th, .prose__body td { padding: var(--space-3); border-bottom: 1px solid var(--border-subtle); text-align: left; vertical-align: top; }
.prose__body blockquote { margin: 0; padding-left: var(--space-5); border-left: 1px solid var(--orange); }
.prose__body :is(p, ul, ol, table, blockquote) + :is(p, ul, ol, table, blockquote, h3) { margin-top: 27px; }
