/* =====================================================================
   Treehouse Collabs — v2
   One continuous scroll. Every section is a "page" from the brand deck:
   its own ground color, the TREEHOUSE → COLLABS frame, and the left rail.
   ===================================================================== */

@font-face { font-family: "Butler"; src: url("../assets/fonts/Butler_Ultra_Light.woff2") format("woff2"); font-weight: 200; font-display: swap; }
@font-face { font-family: "Butler"; src: url("../assets/fonts/Butler_Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Butler"; src: url("../assets/fonts/Butler_Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Butler"; src: url("../assets/fonts/Butler_Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Butler"; src: url("../assets/fonts/Butler_Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../assets/fonts/Archivo_Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../assets/fonts/Archivo_Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Hue system, sampled from the guide's shape tiles and page grounds */
  --cream: #F4F4E7;
  --white: #F9FFFF;
  --ink: #2B2222;
  --black: #111111;
  --orange: #F8A86A;
  --coral: #F3847A;
  --pink: #F5A5C3;
  --lavender: #C5A5CE;
  --red: #ED272E;
  --wine: #5D041E;
  --indigo: #39449A;
  --blue: #3E57A6;
  --periwinkle: #82A4D5;
  --ice: #BCE4ED;
  --green: #025D3F;
  --rust: #8B3000;
  --mist: #A9AFBC;
  --mist-2: #C2C7D0;

  --font-display: "Butler", "Bodoni Moda", Didot, Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(.78rem, .74rem + .2vw, .9rem);
  --step-0: clamp(1rem, .95rem + .25vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.1rem + .7vw, 1.6rem);
  --step-2: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem);
  --step-3: clamp(2.3rem, 1.5rem + 3.4vw, 4.4rem);
  --step-4: clamp(3rem, 1.6rem + 6vw, 7.2rem);
  --step-5: clamp(3.6rem, 1rem + 11vw, 11rem);

  --frame-h: clamp(56px, 8vh, 96px);
  --rail-w: 0px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --arch: 999px 999px 0 0;

  /* spacing rhythm, shared by every section */
  --pad-top: calc(var(--frame-h) + clamp(2rem, 6vh, 4rem));
  --pad-bottom: clamp(3.5rem, 9vh, 6.5rem);
  --head-gap: clamp(1.75rem, 4.5vh, 3rem);
  --edge: calc(var(--gutter) + var(--rail-w));  /* the one left edge all text aligns to */

  /* frame ink, swapped by JS per section */
  --frame-ink: var(--ink);
  --frame-line: rgba(43, 34, 34, .35);
}
@media (min-width: 960px) { :root { --rail-w: 18.75vw; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; overflow-x: clip; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; line-height: 1; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
::selection { background: var(--pink); color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.label { font-family: var(--font-body); font-size: var(--step--1); letter-spacing: .2em; text-transform: uppercase; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--cream); padding: .6rem 1rem; z-index: 300; }
.skip:focus { top: 1rem; }

/* Arrow glyph used everywhere (deck's thin line + open chevron) */
.arrow { display: inline-block; height: 12px; vertical-align: middle; }
.arrow { overflow: visible; }
.arrow line, .arrow path { stroke: currentColor; stroke-width: 1.3; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* =========================== FRAME =========================== */
.frame { position: fixed; inset: 0 0 auto 0; height: var(--frame-h); z-index: 100; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-inline: var(--gutter); color: var(--frame-ink); transition: color .15s linear, transform .5s var(--ease); pointer-events: none; }
.frame > * { pointer-events: auto; }
.frame__word { text-decoration: none; font-size: var(--step--1); letter-spacing: .22em; text-transform: uppercase; }
.frame__word--r { justify-self: end; }
.frame__arrow { width: clamp(44px, 6vw, 100px); justify-self: center; }
/* Brandmark: <html data-brandmark="logo"> shows the one line logo, "wordmark" shows the TREEHOUSE -> COLLABS lockup */
.frame__logo { grid-column: 1; justify-self: start; display: block; line-height: 0; }
.frame__logo > span { display: block; width: auto; height: clamp(34px, 3.2vw, 46px); aspect-ratio: 2544 / 773; background: currentColor;
  -webkit-mask: url("../assets/brand/logo-lockup.png") left center / contain no-repeat; mask: url("../assets/brand/logo-lockup.png") left center / contain no-repeat; }
[data-brandmark="logo"] .frame__word, [data-brandmark="logo"] .frame__arrow { display: none; }
[data-brandmark="wordmark"] .frame__logo { display: none; }
.frame__arrow line { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.4s var(--ease) .3s forwards; }
.frame__arrow path { opacity: 0; animation: fadein .4s 1.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
.frame__nav { grid-column: 3; justify-self: end; align-items: center; display: none; gap: 1.6rem; }   /* sits on the logo's line */
[data-brandmark="wordmark"] .frame__nav { position: absolute; right: var(--gutter); top: 100%; }
.frame__nav a { text-decoration: none; font-size: var(--step--1); letter-spacing: .16em; text-transform: uppercase; position: relative; padding-block: .2rem; }
.frame__nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.frame__nav a:hover::after, .frame__nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

.menu-btn { grid-column: 3; justify-self: end; background: none; border: 0; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; padding: 0; font: inherit; font-size: var(--step--1); letter-spacing: .2em; text-transform: uppercase; }
.menu-btn__ico { width: 26px; height: 12px; position: relative; }
.menu-btn__ico i { position: absolute; left: 0; width: 100%; height: 1.3px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease), opacity .2s; }
.menu-btn__ico i:nth-child(1) { top: 0; } .menu-btn__ico i:nth-child(2) { top: 10px; }
.menu-open .menu-btn__ico i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-open .menu-btn__ico i:nth-child(2) { top: 5px; transform: rotate(-45deg); }
.menu-open .frame { color: var(--ink); }

/* Rail: left column with hairlines, the current section's name, and the corner arrow (deck pages 6, 12, 13, 20, 22, 23, 27) */
.rail { position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail-w); z-index: 90; display: none; color: var(--frame-ink); pointer-events: none; transition: color .15s linear; }
.rail::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 1px; background: currentColor; opacity: .55; }
.rail::after { content: ""; position: absolute; left: 0; right: 0; top: var(--frame-h); height: 1px; background: currentColor; opacity: .55; }
.rail__label { position: absolute; left: var(--gutter); top: 54%; font-family: var(--font-display); font-size: var(--step-1); letter-spacing: .04em; overflow: hidden; height: 1.3em; line-height: 1.3; }
.rail__label span { display: block; transition: transform .6s var(--ease), opacity .6s; }
.rail__label.swap span { transform: translateY(-110%); opacity: 0; }
.rail__glyph { position: absolute; left: calc(var(--gutter) * .55); bottom: 15%; width: 26%; aspect-ratio: 1; }
.rail__glyph path { stroke: currentColor; stroke-width: 1.3; fill: none; }
.rail__count { position: absolute; left: var(--gutter); top: calc(var(--frame-h) + 1.5rem); font-variant-numeric: tabular-nums; }
@media (min-width: 960px) { .rail { display: block; } .frame__nav { display: flex; } .menu-btn { display: none; } }

/* Progress: thin line along the bottom edge */
.progress { position: fixed; left: 0; bottom: 0; height: 2px; width: 100%; z-index: 100; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--frame-ink); transform: scaleX(var(--p, 0)); transform-origin: left; transition: background .5s; }

/* Menu: the deck's table-of-contents page (orange rows, green Butler, rust arrows) */
.menu { position: fixed; inset: 0; z-index: 95; background: var(--orange); color: var(--ink); padding: var(--frame-h) 0 0; display: flex; flex-direction: column; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease); visibility: hidden; }
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__list { list-style: none; margin: auto 0; padding: 0; border-top: 1px solid var(--ink); }
.menu__list li { border-bottom: 1px solid var(--ink); transform: translateY(20px); opacity: 0; transition: transform .6s var(--ease), opacity .6s; }
.menu-open .menu__list li { transform: none; opacity: 1; }
.menu-open .menu__list li:nth-child(2) { transition-delay: .07s; } .menu-open .menu__list li:nth-child(3) { transition-delay: .14s; } .menu-open .menu__list li:nth-child(4) { transition-delay: .21s; } .menu-open .menu__list li:nth-child(5) { transition-delay: .28s; }
.menu__list a { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: clamp(.9rem, 3.5vh, 1.6rem) var(--gutter); text-decoration: none; font-family: var(--font-display); font-size: var(--step-3); color: var(--green); font-weight: 300; }
.menu__list a .chev { flex: none; width: 34px; color: var(--ink); transform: translateX(-6px); opacity: 0; transition: transform .5s var(--ease) .25s, opacity .5s .25s; }   /* same spot on every row */
.menu-open .menu__list a .chev { transform: none; opacity: 1; }
.menu__foot { display: flex; justify-content: space-between; padding: 1.2rem var(--gutter) calc(1.2rem + env(safe-area-inset-bottom)); font-size: var(--step--1); letter-spacing: .2em; text-transform: uppercase; }

/* =========================== PAGES =========================== */
.page { position: relative; padding: var(--pad-top) var(--gutter) var(--pad-bottom) var(--edge); overflow: hidden; }
.page { scroll-margin-top: var(--frame-h); }   /* menu links land just below the fixed header */
.work, .expertise, .reviews, .brands { padding-top: var(--pad-bottom); }  /* no header band above these sections */
.page--rail::before { content: ""; position: absolute; left: 0; right: 0; top: var(--frame-h); height: 1px; background: currentColor; opacity: .35; }
@media (min-width: 960px) { .page--rail::before { left: var(--rail-w); } }
.page__hairline { position: absolute; left: 0; right: 0; top: var(--frame-h); height: 1px; background: currentColor; opacity: .35; }

/* Arch image */
.arch { position: relative; overflow: hidden; border-radius: var(--arch); background: linear-gradient(160deg, var(--mist-2), var(--mist)); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch--frame { padding: clamp(10px, 2.2vw, 26px); }
.arch--frame > div { border-radius: var(--arch); overflow: hidden; height: 100%; }
.arch--grow { clip-path: inset(100% 0 0 0 round var(--arch)); transition: clip-path 1.2s var(--ease); }
.arch--grow.in { clip-path: inset(0 0 0 0 round var(--arch)); }
.arch--outline { border: 1.3px solid currentColor; background: none; border-radius: var(--arch); }
.arch--outline::after { content: ""; position: absolute; inset: -1.3px; border: 1.3px solid currentColor; border-radius: var(--arch); transform: translate(6%, -6%); opacity: .8; }

/* Reveal primitives */
.rv { --d: 0ms; }
.rv > .rv-line { display: block; overflow: hidden; padding-block: .14em; margin-block: -.14em; }
.rv > .rv-line > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease); transition-delay: var(--d); }
.rv.in > .rv-line > span, .no-io .rv > .rv-line > span { transform: none; }
.fade { opacity: .25; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.fade.in, .no-io .fade { opacity: 1; transform: none; }
.w { display: inline-block; opacity: .2; transform: translateY(.2em); transition: opacity .6s, transform .6s var(--ease); transition-delay: calc(var(--i) * 40ms); }
.in .w, .no-io .w { opacity: 1; transform: none; }
.outline { -webkit-text-stroke: 1px currentColor; color: transparent; transition: color 1.2s var(--ease); }
.in .outline, .no-io .outline { color: currentColor; }
.in .outline--stay, .no-io .outline--stay { color: transparent; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .9rem; text-decoration: none; padding: .9rem 1.4rem; min-height: 48px; border: 1.3px solid currentColor; border-radius: 999px; font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase; position: relative; isolation: isolate; overflow: hidden; transition: color .35s; -webkit-tap-highlight-color: transparent; }
.btn::before { content: ""; position: absolute; inset: 0; background: currentColor; z-index: -1; transform: translateY(101%); transition: transform .45s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: none; }
.btn:hover, .btn:focus-visible { color: var(--btn-flip, var(--cream)); }
.btn .arrow { width: 34px; }
.btn:active { transform: scale(.97); }

/* Pattern tiles from the supplied shapes */
.tile { background-size: cover; background-position: center; }
.tile--1 { background-image: url("../assets/brand/shape-1.jpg"); }
.tile--2 { background-image: url("../assets/brand/shape-2.jpg"); }
.tile--3 { background-image: url("../assets/brand/shape-3.jpg"); }
.tile--4 { background-image: url("../assets/brand/shape-4.jpg"); }
.tile--5 { background-image: url("../assets/brand/shape-5.jpg"); }
.tile--6 { background-image: url("../assets/brand/shape-6.jpg"); }

/* =========================== 01 HERO (deck p9: periwinkle mission page) =========================== */
.hero { min-height: 100svh; background: var(--wine); color: var(--cream); display: grid; align-content: center; --gap: clamp(1.25rem, 3vh, 2rem); }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 6vh, 4rem); align-items: center; }
.hero__copy { display: grid; gap: var(--gap); max-width: 58ch; }
.hero__title { font-family: var(--font-display); font-weight: 300; font-size: clamp(3rem, 7.4vw, 6.2rem); max-width: none; line-height: .98; color: var(--orange); letter-spacing: -.005em; }
.hero__lede { font-family: var(--font-display); font-weight: 300; font-size: var(--step-2); line-height: 1.15; color: var(--pink); text-transform: none; }
.hero__lede .lede-line { display: block; white-space: nowrap; }  /* rotating word gets its own line, so nothing re-wraps */
.hero__lede .rot { display: inline-grid; vertical-align: bottom; overflow: hidden; height: 1.2em; line-height: 1.2; width: var(--w, auto); transition: width .7s var(--ease); }
.hero__lede .rot > span { grid-area: 1/1; justify-self: start; display: block; white-space: nowrap; opacity: 0; transform: translateY(80%); transition: transform .7s var(--ease), opacity .45s ease; }
.hero__lede .rot > span.on { opacity: 1; transform: none; transition-delay: .12s, .12s; }
.hero__lede .rot > span.off { opacity: 0; transform: translateY(-80%); }
.hero__text { display: grid; gap: 1rem; line-height: 1.65; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; --btn-flip: var(--wine); }
.hero__arch { width: min(100%, 300px); aspect-ratio: 3/4; background: var(--orange); justify-self: center; }
/* Phones: the photo sits right under the title, with the advisory line and copy below it */
@media (max-width: 719px) {
  .hero__copy { display: contents; }
  .hero__title { order: 1; }
  .hero__arch { order: 2; width: 100%; justify-self: stretch; aspect-ratio: auto; height: min(44svh, 380px); margin: clamp(.75rem, 2.5vh, 1.5rem) 0; }   /* short enough that the advisory line shows on first screen */
  .hero__lede { order: 3; }
  .hero__text { order: 4; }
  .hero__actions { order: 5; }
  .hero__grid { gap: var(--gap); }
}
.hero__scroll { position: absolute; right: var(--gutter); bottom: 1.5rem; display: none; align-items: center; gap: .6rem; font-size: var(--step--1); letter-spacing: .2em; text-transform: uppercase; }
.hero__scroll .arrow { width: 40px; transform: rotate(90deg); animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: rotate(90deg) translateX(6px); } }
@media (min-width: 720px) {
  .hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); column-gap: clamp(2rem, 6vw, 6rem); }
  .hero__arch { width: min(100%, 420px); justify-self: end; }
  .hero__scroll { display: flex; }
}

/* =========================== 02 OUR WORK (deck p13/p20: cream rail page) =========================== */
.work { background: var(--cream); color: var(--ink); }
.work__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: var(--head-gap); }
.work__head h2, .reviews__head h2, .collabs h2, .brands h2, .expertise h2, .cta h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.1rem, 1rem + 5vw, 6rem); line-height: 1; letter-spacing: 0; }
.ctrls { display: flex; gap: .5rem; }
.ctrl { width: 48px; height: 48px; border-radius: 50%; border: 1.3px solid currentColor; background: none; color: inherit; cursor: pointer; display: grid; place-items: center; transition: background .3s, color .3s; }
.ctrl .arrow { width: 24px; }
.ctrl:hover { background: currentColor; }
.ctrl:hover .arrow { color: var(--cream); }
.ctrl:disabled { opacity: .3; cursor: default; background: none; }
.ctrl:disabled .arrow { color: inherit; }
.rail-track { display: flex; gap: clamp(1rem, 2.5vw, 2.2rem); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); cursor: grab; -webkit-overflow-scrolling: touch; }
.rail-track::-webkit-scrollbar { display: none; }
.rail-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail-track::after { content: ""; flex: 0 0 1px; }
@media (min-width: 960px) { .rail-track { margin-left: 0; padding-left: 0; scroll-padding-left: 0; } }
.card { flex: 0 0 min(80vw, 360px); scroll-snap-align: start; display: grid; gap: 1rem; text-decoration: none; }
.card__media { aspect-ratio: 3/4; }
.card__media img { transition: transform 1s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card:nth-child(1) .card__media { background: var(--coral); } .card:nth-child(2) .card__media { background: var(--indigo); } .card:nth-child(3) .card__media { background: var(--green); } .card:nth-child(4) .card__media { background: var(--lavender); } .card:nth-child(5) .card__media { background: var(--orange); }
.card h3 { font-size: var(--step-2); }
.card p { font-size: var(--step--1); letter-spacing: .06em; margin-top: .4rem; opacity: .8; }
.card__cta { display: inline-flex; align-items: center; gap: .6rem; margin-top: .8rem; font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase; color: var(--rust); }
.card__cta .arrow { width: 34px; transition: transform .35s var(--ease); }
.card:hover .card__cta .arrow { transform: translateX(6px); }
.dots { display: flex; gap: .4rem; margin-top: 1.5rem; }
.dots button { width: 34px; height: 24px; background: none; border: 0; padding: 0; cursor: pointer; display: grid; align-items: center; }
.dots button i { display: block; height: 1.3px; background: currentColor; opacity: .25; transition: opacity .3s; }
.dots button[aria-current="true"] i { opacity: 1; }

/* =========================== 03 EXPERTISE (deck p30: indigo PROCESS / STAGE list) =========================== */
.expertise { background: var(--coral); color: var(--wine); }
.expertise h2 { color: var(--wine); }
.stages { position: relative; margin-top: var(--head-gap); border-left: 1px solid var(--wine); padding-left: 0; padding-right: 1rem; list-style: none; }
.stage { position: relative; padding: 0 0 2.2rem clamp(1.2rem, 4vw, 3rem); }
.stage::before { content: ""; position: absolute; left: 0; top: .9em; width: clamp(1rem, 3vw, 2.2rem); height: 1px; background: var(--wine); }
.stage__head { display: flex; align-items: baseline; gap: 1rem; margin: 0; }
.stage__num { font-family: var(--font-display); font-size: var(--step-2); color: var(--red); flex: none; line-height: 1.2; }
.stage__title { font-family: var(--font-display); font-size: var(--step-2); font-weight: 300; line-height: 1.15; }
.stage__body { padding-top: 1rem; max-width: 56ch; line-height: 1.7; display: grid; gap: 1.2rem; }
@media (min-width: 960px) {
  .expertise__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4vw; align-items: start; }
  .stages { margin-top: 0; }
}

/* =========================== 04 QUOTE (deck p21: wine + pink caps + arch) =========================== */
.quote { background: var(--wine); color: var(--pink); display: grid; place-items: center; min-height: 70svh; text-align: center; }
.quote blockquote { margin: 0 auto; }
.quote blockquote p { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.8rem); line-height: 1.08; letter-spacing: .01em; text-wrap: balance; max-width: 22ch; margin-inline: auto; }
@media (max-width: 719px) { .quote blockquote { padding-inline: clamp(1.25rem, 7vw, 2.25rem); } .quote blockquote p { font-size: clamp(2rem, 8.6vw, 2.4rem); } }
.quote--dream { background: var(--red); color: var(--cream); }
.quote cite { display: block; font-style: normal; margin-top: 1.75rem; font-family: var(--font-body); font-size: var(--step--1); letter-spacing: .2em; text-transform: uppercase; }

/* =========================== 05 FOUNDER (deck p5: green pattern | coral copy) =========================== */
.founder { background: var(--coral); color: var(--wine); padding: 0; display: grid; grid-template-columns: 1fr; }
.founder__strip { position: relative; background: var(--green); min-height: clamp(70px, 12vh, 110px); overflow: hidden; }
/* Half-moon pattern redrawn as vector (assets/brand/pattern-halfmoon.svg) so it stays sharp at any size */
.founder__moons { position: absolute; inset: 0; background: var(--green) url("../assets/brand/pattern-halfmoon.svg") center / clamp(96px, 14vw, 205px) auto repeat; opacity: 0; transition: opacity 1.2s; }
.founder__strip.in .founder__moons, .no-io .founder__moons { opacity: 1; }
.founder__photo { margin: 0; background: var(--wine); overflow: hidden; }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/5; }
.founder__copy { padding: clamp(2.5rem, 6vh, 5rem) var(--gutter); }
.founder__title { display: grid; gap: 1.25rem; }
.founder__kicker { display: block; font-size: var(--step-3); line-height: 1; text-transform: uppercase; }
.founder__sub { display: block; font-size: var(--step-1); line-height: 1.3; text-transform: none; color: var(--cream); max-width: 26ch; padding-top: 1.25rem; border-top: 1px solid currentColor; }
.founder__copy .label { display: block; margin-bottom: 1rem; }
.founder__bio { display: grid; gap: 1rem; margin-top: 1.5rem; max-width: 54ch; line-height: 1.7; color: var(--cream); }
.founder__link { display: inline-flex; align-items: center; gap: .7rem; margin-top: 1.5rem; text-decoration: none; font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: .3rem; min-height: 44px; }
.founder__link .arrow { width: 34px; transition: transform .35s var(--ease); }
.founder__link:hover .arrow { transform: translateX(6px); }
@media (min-width: 960px) {
  /* rail | moons strip | photo | copy */
  /* rail | photo (runs right up to the sidebar line) | copy */
  .founder { grid-template-columns: var(--rail-w) minmax(0, 1fr) minmax(0, 1.1fr); align-items: stretch; }
  .founder::before { content: ""; background: var(--green); }
  .founder__strip { display: none; }
  .founder__photo img { height: 100%; aspect-ratio: auto; min-height: 90svh; }
  .founder__copy { padding: clamp(3rem, 12vh, 8rem) var(--gutter); align-self: center; }
}

/* =========================== 06 REVIEWS (deck p33: periwinkle profiles) =========================== */
.reviews { background: var(--periwinkle); color: var(--ink); }
.reviews__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: var(--head-gap); }

.reviews .ctrl:hover .arrow { color: var(--periwinkle); }
/* Phones: one review per "page", arrows to switch. Desktop: both side by side, static. */
.reviews__grid { display: flex; align-items: flex-start; gap: var(--gutter); overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y; }
.reviews__grid::-webkit-scrollbar { display: none; }
.reviews__grid > .review { flex: 0 0 100%; scroll-snap-align: start; }
@media (min-width: 900px) {
  .reviews__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); overflow: visible; }
  .reviews__ctrls, .reviews__dots { display: none; }
}
.review { border-left: 1px solid var(--ink); padding-left: clamp(1rem, 3vw, 2.5rem); display: grid; gap: 1.2rem; align-content: start; }
.review__arch { width: 100%; max-width: 380px; aspect-ratio: 5/4; }
.review h4 { font-family: var(--font-display); font-weight: 300; font-size: var(--step-2); border-bottom: 1px solid var(--ink); padding-bottom: 1rem; }
.review blockquote { margin: 0; display: grid; gap: .9rem; font-family: var(--font-body); font-size: var(--step-0); line-height: 1.65; max-width: 60ch; }
.review blockquote p:first-of-type::before { content: "“"; } .review blockquote p:last-of-type::after { content: "”"; }
.review strong, .hero__text strong, .founder__bio strong, .stage__body strong { font-weight: 700; }

/* =========================== 07 WHY (deck p11: red + stacked pink type + arch) =========================== */
.why { background: var(--red); color: var(--pink); padding-bottom: 0; }
.why__stage { position: relative; min-height: 60svh; display: grid; align-items: center; }
.why__stack { font-family: var(--font-body); font-weight: 400; text-transform: uppercase; font-size: clamp(3rem, 10vw, 9.5rem); line-height: .9; letter-spacing: -.01em; }
.why__stack span { display: block; overflow: hidden; }
.why__stack span b { display: block; font-weight: 400; transform: translateX(-100%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.why__stack.in span b, .no-io .why__stack span b { transform: none; }
.why__stack span:nth-child(even) b { transform: translateX(100%); }
.why__stack.in span:nth-child(even) b { transform: none; }
.why__arch { position: absolute; right: 0; bottom: 0; width: clamp(160px, 28vw, 360px); aspect-ratio: 3/4; }
.why__ghost { position: absolute; right: 8%; bottom: 6%; width: clamp(160px, 28vw, 360px); aspect-ratio: 3/4; color: var(--ink); }
.why__lead { background: var(--cream); color: var(--ink); margin-inline: calc(var(--gutter) * -1); margin-left: calc(-1 * (var(--gutter) + var(--rail-w))); padding: clamp(2.5rem, 7vh, 5rem) var(--gutter) clamp(2.5rem, 7vh, 5rem) calc(var(--gutter) + var(--rail-w)); }
.why__lead h2 { font-size: var(--step-3); color: var(--rust); }
.why__lead p { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.35; max-width: 44ch; margin-top: 1.2rem; }
.gallery { margin-top: 2.5rem; columns: 2; column-gap: .75rem; }
.gallery button { display: block; width: 100%; margin: 0 0 .75rem; padding: 0; border: 0; background: var(--mist); cursor: zoom-in; break-inside: avoid; overflow: hidden; position: relative; }
.gallery button:nth-child(1), .gallery button:nth-child(4), .gallery button:nth-child(7) { border-radius: var(--arch); }
.gallery img { transition: transform 1s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery button::after { content: "+"; position: absolute; right: .6rem; bottom: .6rem; width: 30px; height: 30px; border-radius: 50%; background: var(--cream); color: var(--ink); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.2rem; }
@media (min-width: 720px) { .gallery { columns: 4; column-gap: 1rem; } .gallery button { margin-bottom: 1rem; } }

.lightbox { position: fixed; inset: 0; z-index: 150; background: var(--ink); color: var(--cream); display: none; flex-direction: column; }
.lightbox.open { display: flex; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: .75rem var(--gutter); }
.lightbox__close { background: none; border: 1px solid currentColor; color: inherit; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; }
.lightbox__stage { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lightbox__stage::-webkit-scrollbar { display: none; }
.lightbox__stage figure { flex: 0 0 100%; scroll-snap-align: center; margin: 0; display: grid; place-items: center; padding: 1rem; }
.lightbox__stage img { max-height: calc(100svh - 150px); width: auto; max-width: 100%; object-fit: contain; border-radius: var(--arch); }
.lightbox__nav { display: flex; justify-content: center; gap: .75rem; padding: .75rem calc(.75rem + env(safe-area-inset-bottom)); }

/* =========================== 08 BRANDS (deck p4: lavender typography page) =========================== */
.brands { background: var(--lavender); color: var(--ink); }
.brands__head { margin-bottom: var(--head-gap); }
.brands h2 { color: var(--indigo); }
.brands__sub { max-width: 46ch; }
.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.25rem) clamp(.75rem, 1.6vw, 1.25rem); }
.logo-card { display: grid; grid-template-rows: auto 1fr; gap: .9rem; }
.logo-card__arch { position: relative; aspect-ratio: 4/5; border-radius: var(--arch); background: var(--cream); overflow: hidden; display: grid; place-items: center; padding-top: 16%; isolation: isolate; cursor: default; -webkit-tap-highlight-color: transparent; }
.logo-card__arch::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill, var(--orange)); transform: translateY(101%); transition: transform .6s var(--ease); }
.logo-card__arch img { width: var(--lw); height: auto; transition: transform .6s var(--ease); }
.logo-card:hover .logo-card__arch::before, .logo-card.lit .logo-card__arch::before { transform: none; }
.logo-card:hover .logo-card__arch img, .logo-card.lit .logo-card__arch img { transform: scale(1.06); }
.logo-card__cap { font-size: var(--step--1); line-height: 1.45; color: var(--ink); max-width: 24ch; }
.logo-card:nth-child(5n+1) { --fill: var(--orange); } .logo-card:nth-child(5n+2) { --fill: var(--pink); } .logo-card:nth-child(5n+3) { --fill: var(--ice); } .logo-card:nth-child(5n+4) { --fill: var(--coral); } .logo-card:nth-child(5n) { --fill: var(--periwinkle); }
@media (min-width: 720px) { .logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .logo-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================== 09 COLLABORATORS (deck p27: About me tile + arch outline) =========================== */
.collabs { background: var(--ice); color: var(--indigo); }
.collabs__head { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; margin-bottom: var(--head-gap); }
.collabs__tile { width: clamp(56px, 9vw, 120px); order: -1; aspect-ratio: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden; }
.collabs__tile i { display: block; background-size: 200% 200%; background-image: url("../assets/brand/shape-5.jpg"); transform: scale(0); transition: transform .8s var(--ease); transition-delay: calc(var(--i) * 90ms); }
.collabs__tile i:nth-child(1) { background-position: 0 0; } .collabs__tile i:nth-child(2) { background-position: 100% 0; } .collabs__tile i:nth-child(3) { background-position: 0 100%; } .collabs__tile i:nth-child(4) { background-position: 100% 100%; }
.collabs__tile.in i, .no-io .collabs__tile i { transform: none; }

.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 3vw, 2.5rem); list-style: none; margin: 0; padding: 0; }
.person__media { aspect-ratio: 4/5; background: var(--indigo); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.person__media img { transition: transform 1s var(--ease); }
.person.flip img, .person:hover img { transform: scale(1.06); }
.person h4 { font-family: var(--font-display); font-weight: 300; font-size: var(--step-1); margin-top: 1rem; color: var(--ink); }
.person p { font-size: var(--step--1); letter-spacing: .06em; margin-top: .25rem; color: var(--ink); opacity: .8; }
@media (min-width: 720px) { .people { grid-template-columns: repeat(4, 1fr); } .collabs__head { grid-template-columns: 1fr auto; } .collabs__tile { order: 2; grid-column: 2; grid-row: 1 / span 2; align-self: end; } }

/* Desktop: sidebar stays; title sits above the people, who run in one row of four */
}

/* =========================== 11 CTA (deck p29: REACH) =========================== */
.cta { background: var(--white); color: var(--ink); display: grid; align-content: center; }
.cta__grid { display: grid; gap: 2rem; }
.cta__mark { position: relative; width: min(78%, 340px); aspect-ratio: 3/4; display: grid; place-items: center; background: var(--ice); border-radius: var(--arch); overflow: visible; }
.cta__mark::after { content: ""; position: absolute; inset: 0; border: 1.3px solid var(--ink); border-radius: var(--arch); transform: translate(7%, -5%); pointer-events: none; }

.cta__mark .cta__icon { position: relative; width: 50%; height: auto; object-fit: contain; margin-top: 16%; height: auto; clip-path: inset(100% 0 0 0); transition: clip-path 1.8s var(--ease) .35s; }
.cta__mark.in .cta__icon, .no-io .cta__mark .cta__icon { clip-path: inset(0 0 0 0); }
.cta h2 { text-transform: uppercase; line-height: 1; }
.cta p { font-family: var(--font-body); font-size: var(--step-0); line-height: 1.65; max-width: 38ch; margin-top: 1.5rem; }
.cta .btn { margin-top: 1.6rem; --btn-flip: var(--white); }
@media (min-width: 960px) { .cta__grid { grid-template-columns: auto 1fr; column-gap: clamp(3rem, 6vw, 7rem); align-items: center; } }

/* =========================== FOOTER =========================== */
.footer { background: var(--green); color: var(--cream); padding: clamp(2.5rem, 7vh, 5rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom)); display: grid; gap: 2rem; }
.footer__logo { display: block; width: min(70%, 380px); aspect-ratio: 2801 / 883; background: currentColor;   /* full lockup with the tree mark, in the footer ink */
  -webkit-mask: url("../assets/brand/logo-footer.png") left center / contain no-repeat; mask: url("../assets/brand/logo-footer.png") left center / contain no-repeat; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.footer__nav a { text-decoration: none; font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase; padding-block: .5rem; }
.footer__nav a:hover { color: var(--ice); }
.footer__meta { display: flex; justify-content: space-between; border-top: 1px solid rgba(244,244,231,.25); padding-top: 1.2rem; font-size: var(--step--1); letter-spacing: .2em; text-transform: uppercase; }
@media (min-width: 960px) { .footer { padding-left: calc(var(--gutter) + var(--rail-w)); } }

.to-top { position: fixed; right: 1rem; bottom: 1.2rem; z-index: 80; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: var(--cream); cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top .arrow { width: 24px; transform: rotate(-90deg); }

/* =========================== MOTION PREFS =========================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .values__strip, .hero__scroll .arrow, .frame__arrow line, .frame__arrow path { animation: none; }
  .frame__arrow line { stroke-dashoffset: 0; } .frame__arrow path { opacity: 1; }
  .rv > .rv-line > span, .fade, .w, .collabs__tile i, .arch--grow, .cta__icon, .cta__tile { transition: none !important; transform: none !important; opacity: 1 !important; clip-path: none !important; }
  .outline { color: currentColor; }
  .hero__copy h2 .rot > span { transition: none; }
  * { transition-duration: .01ms !important; }
}

/* =========================== SECTION TITLES: ALL CAPS =========================== */
.page > h2, .work__head h2, .reviews__head h2, .collabs h2, .why__lead h2, .brands h2, .expertise h2, .cta h2, .values__title { text-transform: uppercase; }
.page--norail { padding-left: var(--gutter); }
.rail { transition: color .15s linear, opacity .5s; }
.rail > * { transition: color .15s linear, opacity .25s linear; }
.rail.off { opacity: 0; }

.section-sub { font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; max-width: 46ch; margin-top: 1rem; }
.collabs__head .section-sub { grid-column: 1; }

/* =========================== 02 VALUES (typographic strip) =========================== */
.values { background: var(--orange); color: var(--green); min-height: 0; padding: clamp(2.5rem, 6vh, 4rem) 0; border-block: 1px solid var(--ink); overflow: hidden; }
.values__title { padding-inline: var(--edge) var(--gutter); margin-bottom: 1.25rem; font-family: var(--font-display); font-weight: 300; font-size: var(--step-1); letter-spacing: .02em; color: var(--ink); }
.values__strip { display: flex; width: max-content; animation: marquee 40s linear infinite; }
@media (min-width: 960px) { .values__strip-clip { margin-left: var(--rail-w); overflow: hidden; } }
.values__strip.paused, .values:hover .values__strip { animation-play-state: paused; }
.values__track { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); padding-right: clamp(1.5rem, 4vw, 4rem); }
.values__word { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 7vw, 6.5rem); line-height: 1; white-space: nowrap; }
.values__track .arrow { width: clamp(60px, 8vw, 140px); color: var(--rust); flex: none; }

/* =========================== CASE SHEET (deck p14: rust | periwinkle PROFILE page) =========================== */
.case { position: fixed; inset: 0; z-index: 140; display: none; grid-template-rows: 52svh 1fr; background: var(--periwinkle); color: var(--ink); overflow: hidden; }
.case.open { display: grid; }
.case__media { background: var(--rust); display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-content: center; padding: clamp(1rem, 3vw, 2rem); min-height: 0; overflow: hidden; }
/* Case media: one arch, identical size in every case, filled edge to edge */
.case__shot { margin: 0; justify-self: center; align-self: center; position: relative; overflow: hidden;
  width: min(88vw, 440px); aspect-ratio: 3/4; max-height: 100%; border-radius: var(--arch); background: var(--orange); }
.case__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
@media (max-width: 719px) {
  /* phones: the full arch sits in the rust panel, photo at its natural proportions */
  .case { grid-template-rows: auto 1fr; }
  .case__media { padding: 1.25rem 1rem 1.5rem; }
  .case__shot { width: min(86vw, 360px); aspect-ratio: 3/4; height: auto; max-height: 58svh; }
  .case__shot img { object-position: center 28%; }
}
}
.case__shots { display: flex; align-items: center; justify-content: center; gap: 1rem; padding-top: .9rem; }
.shot-nav { background: none; border: 0; color: var(--cream); cursor: pointer; padding: .4rem; display: grid; place-items: center; min-height: 44px; min-width: 44px; }
.shot-nav .arrow { width: 26px; }
.shot-nav[disabled] { opacity: .35; cursor: default; }
.case__dots { display: flex; gap: .5rem; }
.case__dots button { width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; background: var(--cream); opacity: .4; cursor: pointer; }
.case__dots button[aria-current="true"] { opacity: 1; }
.case__shots[hidden] { display: none !important; }
.case__body { position: relative; overflow-y: auto; padding: clamp(1.5rem, 4vw, 4rem) var(--gutter) 0; }
.case__close { position: sticky; top: 0; float: right; background: var(--periwinkle); border: 1px solid currentColor; color: inherit; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; z-index: 2; }
.case__content h3 { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; font-size: clamp(1.8rem, 4.4vw, 4.2rem); line-height: 1; max-width: 14ch; margin-top: .5rem; }
.case__sub { font-family: var(--font-body); font-size: var(--step-0); letter-spacing: .04em; margin-top: .6rem; }
.case__content dl { margin: 2rem 0 0; display: grid; gap: 1.4rem; max-width: 56ch; }
.case__content dt { font-size: var(--step--1); letter-spacing: .2em; text-transform: uppercase; font-weight: 700; }
.case__content dd { margin: .4rem 0 0; line-height: 1.7; }
.case__content a { color: var(--wine); }
.case__nav { position: sticky; bottom: 0; display: flex; gap: .5rem; justify-content: flex-end; margin: 2rem calc(var(--gutter) * -1) 0;
  padding: 1rem var(--gutter) 1.25rem; background: var(--periwinkle); box-shadow: 0 -18px 18px -12px var(--periwinkle); }   /* always in view, every screen size */
.case .ctrl:hover .arrow { color: var(--periwinkle); }
.case__content { animation: caseIn .6s var(--ease); }
@keyframes caseIn { from { opacity: 0; transform: translateY(14px); } }
@media (min-width: 960px) {
  .case { grid-template-rows: 1fr; grid-template-columns: 50% 50%; }
  .case__media { padding: 6vh 4vw; }
  .case__shot { width: min(90%, 520px); }

  .case__body { padding: 10vh 6vw 0; align-self: center; }
  .case__nav { margin-inline: -6vw; padding-inline: 6vw; }
}
/* card is a <button> */
.card { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.card .card__media { position: relative; }

/* =========================== TOUCH / PHONE STABILITY =========================== */
@media (max-width: 959px) {
  /* one row: TREEHOUSE ——→ COLLABS ........ MENU */
  .frame { grid-template-columns: auto auto auto 1fr; column-gap: .6rem; }
  .frame__word { letter-spacing: .16em; font-size: clamp(.68rem, 3vw, .8rem); }
  .frame__word--r { justify-self: start; }
  .frame__arrow { width: clamp(22px, 7vw, 40px); }
  .menu-btn { grid-column: 4; justify-self: end; font-size: clamp(.68rem, 3vw, .8rem); }
  /* footer links on one line */
  .footer__nav { flex-wrap: nowrap; justify-content: space-between; gap: .4rem; }
  .footer__nav a { font-size: clamp(.58rem, 2.65vw, .78rem); letter-spacing: .06em; white-space: nowrap; }
  .footer { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom)); }  /* clear the back-to-top button */
  /* header gets the colour of the section under it, so words never collide with content */
  .menu-open .frame { background: var(--orange); }
  .frame { background: var(--frame-bg, var(--periwinkle)); transition: background-color .15s linear, color .15s linear; border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
}
@media (hover: none) {
  /* no ghosted text on fast flicks: content is fully opaque, only a short lift plays */
  .fade { opacity: 1; transform: translateY(12px); transition: transform .6s var(--ease); }
  .w { opacity: 1; transform: none; transition: none; }
}


/* =========================== PATTERN PANELS (founder treatment, carried through the page) ===========================
   Services gets the founder treatment: a pattern panel with an arched photo. */
.pat-bg--6 { --pat: url("../assets/brand/pattern-quarters.svg"); }   /* coral quarter arcs on deep red, drawn as vector */
/* Whole squares only: JS picks a whole number of columns and rows that fill the panel exactly; each square stays square and centred in its cell, so spacing is even and every edge is blue */
.panel__bg { --tile: clamp(160px, 20vw, 300px); background: var(--pat) 0 0 / var(--tile-w, var(--tile)) var(--tile-h, var(--tile)) repeat; opacity: 0; transition: opacity 1.2s; }
.expertise__panel.in .panel__bg, .no-io .panel__bg { opacity: 1; }

/* Services: a founder style panel with an arched photo */
.expertise__side { display: flex; flex-direction: column; }
.expertise__panel { order: -1; position: relative; display: grid; place-items: center; min-height: 46vh; margin: calc(var(--pad-bottom) * -1) calc(var(--gutter) * -1) var(--head-gap); padding: clamp(2rem, 6vw, 4rem) 0; overflow: hidden; }
.panel__bg { position: absolute; inset: 0; }
.expertise__arch { position: relative; width: min(62%, 320px); aspect-ratio: 3/4; background: var(--pink); z-index: 1; }
@media (min-width: 960px) {
  /* Founder layout: coral rail column, full height pattern panel on the left, title and services on the right */
  .expertise { padding: 0; }
  .expertise__grid { display: grid; grid-template-columns: var(--rail-w) minmax(0, .95fr) minmax(0, 1.05fr); grid-template-rows: auto 1fr; min-height: 100svh; gap: 0; align-items: stretch; }
  .expertise__grid::before { content: ""; grid-column: 1; grid-row: 1 / -1; background: var(--coral); }
  .expertise__side { display: contents; }
  .expertise__panel { grid-column: 2; grid-row: 1 / -1; min-height: 0; margin: 0; }
  .expertise__side .head-stack { grid-column: 3; grid-row: 1; padding: var(--pad-bottom) clamp(2rem, 5vw, 5.5rem) 0; }
  .expertise .stages { grid-column: 3; grid-row: 2; align-self: start; margin: var(--head-gap) clamp(2rem, 5vw, 5.5rem) var(--pad-bottom); padding-right: 0; }
  .expertise__arch { width: min(70%, 340px); }
}
@media (prefers-reduced-motion: reduce) { .panel__bg { transition: none; opacity: 1; } }


/* Phones: links in two left aligned columns, logo underneath at the bottom */
@media (max-width: 719px) {
  .footer { justify-items: stretch; text-align: left; gap: 1.5rem; padding-top: clamp(2.5rem, 7vh, 4rem); }
  .footer__logo { order: 1; width: min(68%, 250px); margin: .5rem 0 0; }   /* under the links */
  .footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid rgba(244,244,231,.25); }
  .footer__nav a { padding: .95rem .25rem; font-size: var(--step--1); letter-spacing: .14em; border-bottom: 1px solid rgba(244,244,231,.25); }
  .footer__nav a:nth-child(odd) { padding-right: 1rem; }
}

/* Desktop: links on the left, logo to the right */
@media (min-width: 720px) {
  /* links left, logo right, both on the same line */
  .footer { grid-template-columns: 1fr auto; align-items: start; column-gap: clamp(2rem, 5vw, 5rem); padding-bottom: clamp(3rem, 7vh, 5rem); }
  .footer__nav { grid-column: 1; grid-row: 1; align-items: start; }
  .footer__logo { grid-column: 2; grid-row: 1; justify-self: end; align-self: start; width: min(34vw, 260px); margin: calc(.5rem + .35em) clamp(.5rem, 3vw, 3rem) 0 0; }   /* top of the mark lines up with the cap height of the links */
}
@media (min-width: 720px) and (max-width: 1100px) {
  .footer__logo { width: min(26vw, 190px); }   /* keeps the links on one line at tablet widths */
  .footer__nav { gap: .8rem 1.4rem; }
}

/* =========================== CONNECT FORM =========================== */
.cta__form { display: grid; gap: 1rem; max-width: 34rem; margin-top: 1.5rem; }
.cta__form .field { display: grid; gap: .4rem; }
.cta__form .field > span { font-size: var(--step--1); letter-spacing: .18em; text-transform: uppercase; }
.cta__form input, .cta__form textarea { font: inherit; font-size: var(--step-0); color: inherit; background: none;
  border: 1.3px solid currentColor; border-radius: 0; padding: .7rem .8rem; width: 100%; }
.cta__form textarea { resize: vertical; min-height: 7rem; }
.cta__form input:focus-visible, .cta__form textarea:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.cta__form .btn { justify-self: start; cursor: pointer; background: none; font: inherit; color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================== THANK YOU PAGE =========================== */
.thanks-page { background: var(--wine); color: var(--cream); }
.thanks { min-height: 100svh; display: grid; align-content: center; gap: 1.25rem; padding: var(--gutter); max-width: 44rem; margin-inline: auto; }
.thanks h1 { font-family: var(--font-display); font-weight: 300; text-transform: uppercase; font-size: clamp(2.6rem, 8vw, 5rem); line-height: 1; color: var(--orange); }
.thanks p { font-size: var(--step-1); line-height: 1.5; max-width: 32ch; }
.thanks .btn { justify-self: start; margin-top: 1rem; --btn-flip: var(--wine); }


/* Hero reel: the Sizzle Reel button and the play mark on the arch photo both open the film full height over the page */
.hero__arch { position: relative; }
.hero__play { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; border: 0; background: none; cursor: pointer; border-radius: var(--arch); }
.hero__play-mark { width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center;
  border: 1.3px solid var(--cream); background: rgba(43, 34, 34, .42); color: var(--cream);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .3s, color .3s, transform .4s var(--ease); }
.hero__play-mark svg { width: 46px; height: 46px; fill: currentColor; margin-left: 2px; }
.hero__play:hover .hero__play-mark, .hero__play:focus-visible .hero__play-mark { background: var(--cream); color: var(--ink); transform: scale(1.06); }
.hero__play:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
@media (min-width: 720px) { .hero__play-mark { width: 98px; height: 98px; } .hero__play-mark svg { width: 56px; height: 56px; margin-left: 2px; } }
button.btn { background: none; color: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; cursor: pointer; }

.reel-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 56px 16px 24px;
  background: rgba(43, 34, 34, .94); opacity: 0; transition: opacity .35s var(--ease); }
.reel-modal[hidden] { display: none !important; }
.reel-modal.open { opacity: 1; }
.reel-modal__video { display: block; aspect-ratio: 9 / 16; height: auto; width: min(100%, calc(86svh * 9 / 16), 720px); object-fit: cover; background: transparent; }
.reel-modal__close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  border: 1.3px solid var(--cream); background: none; color: var(--cream); font-size: 26px; line-height: 1; cursor: pointer; }
.reel-modal__close:hover { background: var(--cream); color: var(--ink); }
@media (max-width: 719px) { .reel-modal__video { width: min(100%, calc(82svh * 9 / 16)); } }
