/* ==========================================================================
   Good Mischief
   Layout and UI after sandracreates.com, on white: tan, light blue and the
   coffee browns are the accents. The home hero is a 3D cinema camera
   (js/camera-hero.js); scrolling dives through its iris.
   Fonts: Bricolage Grotesque (display), Inter Tight (body), Inter (nav,
   footer, italic tagline), Azeret Mono (small labels and links).
   ========================================================================== */

:root {
  --bg: #ffffff;            /* page background */
  --panel: #f3ebdd;         /* form card and empty media */
  --ink: #2a1d15;           /* text */
  --latte: #bc9370;         /* hero (her red) */
  --tan: #f3ebdd;           /* her pink */
  --tan-2: #e6d9c3;
  --paper: #fbf6ec;         /* her cream */
  --paper-2: #f2eadb;
  --blue: #a9cbe2;          /* fills only: too light for text on white */
  --blue-ink: #4a7898;      /* blue for text and focus rings */
  --coffee: #8d6547;
  --text: #2a1d15;
  --text-2: #6e5848;
  --line: #e6d9c3;
  --muted: #6e5848;

  --display: "Bricolage Grotesque", "Inter Tight", system-ui, sans-serif;
  --body: "Inter Tight", "Inter", system-ui, sans-serif;
  --ui: "Inter", system-ui, sans-serif;
  --mono: "Azeret Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --nav-h: 82px;
  --pad: clamp(16px, 2.8vw, 40px);
  --wrap: 1056px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 3px; }
::selection { background: #cfe1ee; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--blue); color: var(--ink); text-decoration: none; }
.skip-link:focus { top: 16px; }

/* ---------------------------------------------------------------- shared type */
.h-section {
  font: 700 clamp(36px, 3.8vw, 55px)/1.2 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h-center { text-align: center; }
.hl { font-style: normal; }
.hl--blue { color: var(--blue-ink); }
.hl--latte { color: var(--coffee); }
.group-note { margin: 12px auto 0; max-width: 46ch; text-align: center; font: 400 18px/1.4 var(--ui); color: var(--text-2); }
/* Text links: sentence case, underlined in latte (the class name is historical) */
.mono-link {
  font: 500 15px/1.3 var(--ui);
  color: var(--ink);
  text-decoration: underline 1px var(--latte);
  text-underline-offset: 5px;
  transition: text-decoration-thickness 160ms var(--ease-out);
}
.mono-link:hover { text-decoration-thickness: 2px; }
.mono-link--light { color: var(--text); }
.fine-print { max-width: var(--wrap); margin: 24px auto 0; font: 400 15px/1.4 var(--ui); color: var(--text-2); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 10px;
  font: 500 15px/1 var(--ui);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 160ms, color 160ms, transform 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--blue { background: var(--blue); color: var(--ink); }
.btn--blue:hover { background: var(--tan); }
.btn--line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn--line:hover { background: var(--text); color: var(--ink); }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* ---------------------------------------------------------------- nav (full-width dark bar) */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 var(--pad);
  background: var(--bg);   /* same as the page, so the bar blends in */
  box-shadow: 0 1px 0 var(--line);
  transition: transform 420ms var(--ease-out), visibility 0s;
}
/* Home: no bar over the hero. It slides in once you're past it (JS adds the classes). */
.nav-auto .nav:not(.is-shown) { transform: translateY(-100%); visibility: hidden; transition: transform 320ms var(--ease-out), visibility 0s 320ms; }
.nav-avatar { display: block; width: 44px; height: 44px; flex: none; }
.avatar { width: 100%; height: 100%; }
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font: 400 15px/18px var(--ui);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  padding: 6px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 220ms var(--ease-out);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { background-size: 100% 1.5px; }
.nav-cta { margin-left: auto; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
.nav-toggle svg { width: 24px; margin: auto; stroke: var(--text); stroke-width: 2; stroke-linecap: round; fill: none; transition: transform 200ms var(--ease-out); }
.nav.is-open .nav-toggle svg { transform: rotate(90deg); }
@media (max-width: 860px) {
  :root { --nav-h: 68px; }
  .nav { gap: 12px; }
  .nav-avatar { width: 40px; height: 40px; }
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 8px var(--pad) 20px;
    background: var(--bg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s 180ms;
  }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out); }
  .nav-links a { padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line); background: none; }
}

/* ==========================================================================
   HOME HERO + LENS
   A 3D cinema camera on white (js/camera-hero.js). Until it's ready, and
   without WebGL or with reduced motion, a still of the same render shows and
   the statement is a plain screen below. With the dive (html.lens-on), the
   hero is a tall scroll track with a sticky stage, and the statement shows
   through the camera's iris above the canvas.
   ========================================================================== */
.hero { position: relative; background: var(--bg); color: var(--ink); }
.lens-stage { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
/* Name centred at the top, tagline centred at the bottom */
.hero-brand, .hero-tag {
  position: absolute; z-index: 5;
  left: 50%; translate: -50% 0;
  margin: 0;
  font-size: clamp(22px, 3vw, 44px);
  line-height: 0;
  max-width: calc(100% - 2 * var(--pad));
}
.hero-brand { top: 36px; }
.hero-tag { bottom: 32px; }
.brand-lettering { display: block; width: auto; height: 0.75em; max-width: 100%; }
.wordmark-pupil {
  transform-box: fill-box; transform-origin: center;
  transition: scale 70ms ease-in;
}
.is-blinking .wordmark-pupil { scale: 1 0.12; }

.hero-camera { position: absolute; inset: 0; z-index: 2; overflow: hidden; }   /* the wide still must never widen the page on phones */
.hero-camera canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 500ms var(--ease-out); }
/* The still is the same frame as the 3D camera's first one: full height, centred. */
.hero-still {
  position: absolute; left: 50%; top: 0;
  width: auto; height: 100%; max-width: none;
  translate: -50% 0;
  transition: opacity 500ms var(--ease-out), visibility 0s 500ms;
}
@media (max-aspect-ratio: 1/1) {
  /* portrait: the 3D view widens its lens, so the camera reads smaller */
  .hero-still { top: 17.5%; height: 65%; }
}
.camera-ready .hero-camera canvas { opacity: 1; }
.camera-ready .hero-still { opacity: 0; visibility: hidden; }

/* Scroll cue: quiet coffee type with a line that draws downward */
.hero-cue {
  position: absolute; z-index: 5; left: 50%; bottom: calc(32px + clamp(22px, 3vw, 44px) + 34px);
  translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 500 11px/1 var(--ui); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--coffee);
  pointer-events: none;
}
.hero-cue i { width: 1px; height: 30px; background: currentColor; transform-origin: top; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 700px) {
  .hero-brand { top: 24px; }
  .hero-tag { bottom: 24px; }
  .hero-cue { bottom: calc(24px + 22px + 28px); }
}

/* What-we-do screen (her statement screen): the statement, centred, and the
   contained marquee below it */
.statement {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;   /* headline + strip, centred together like hers */
  padding: 64px var(--pad);
  background: var(--bg);
  color: var(--text);
  text-align: center;
}
.statement-body { width: 100%; transform-origin: 50% 50%; }
.statement-inner { max-width: var(--wrap); margin: 0 auto; }
.statement-text { max-width: 760px; margin: 0 auto; font: 600 clamp(26px, 2.5vw, 36px)/1.25 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.statement-sub { max-width: 650px; margin: 20px auto 0; font: 400 clamp(16px, 1.5vw, 20px)/1.5 var(--ui); color: var(--text-2); text-wrap: pretty; }

.lens-on .hero { height: calc(100svh + 220vh); }
.lens-on .lens-stage { position: sticky; top: 0; overflow: visible; isolation: isolate; }
.lens-on .statement {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  clip-path: circle(0px at 50% 50%);
  will-change: clip-path;
}
.lens-on .statement-body { will-change: transform, filter; }

/* Ninja eyes (nav and footer): JS nudges them toward the pointer; they blink now and then */
[data-ninja-eyes] { transition: transform 420ms var(--ease-out); }
[data-ninja-eye] { transform-box: fill-box; transform-origin: 50% 60%; transition: transform 70ms ease-in; }
.is-blinking [data-ninja-eye] { transform: scaleY(0.08); }

/* ---------------------------------------------------------------- shared dark block, placeholders, marquee */
.dark { background: var(--bg); color: var(--text); }
.ph-file { font: 500 12px/1.4 var(--mono); opacity: 0.8; }
.ph-corner { position: absolute; width: 22px; height: 22px; border: 0 solid currentColor; opacity: 0.55; }
.ph-corner:nth-child(1) { top: 18px; left: 18px; border-width: 2px 0 0 2px; }
.ph-corner:nth-child(2) { top: 18px; right: 18px; border-width: 2px 2px 0 0; }
.ph-corner:nth-child(3) { bottom: 18px; left: 18px; border-width: 0 0 2px 2px; }
.ph-corner:nth-child(4) { bottom: 18px; right: 18px; border-width: 0 2px 2px 0; }

/* Her logo strip: contained, small, quiet */
.marquee {
  display: flex; gap: 40px;
  width: 100%; max-width: 1150px;
  margin: clamp(120px, 22svh, 260px) auto 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; flex: none; gap: 40px; animation: marquee 34s linear infinite; }
.marquee-track li { font: 600 clamp(18px, 1.6vw, 23px)/1 var(--ui); letter-spacing: -0.03em; color: var(--text); white-space: nowrap; display: flex; align-items: center; gap: 40px; }
.marquee-track li:nth-child(3n+2) { color: var(--blue-ink); }
.marquee-track li:nth-child(3n) { color: var(--coffee); }
.marquee-track li::after { content: "✦"; color: var(--latte); font-size: 0.7em; }
@keyframes marquee { to { transform: translateX(calc(-100% - 40px)); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------------------------------------------------------------- service stack */
.services { padding: 0 var(--pad) clamp(100px, 10vw, 160px); }
.h-gap { margin-top: clamp(100px, 10vw, 160px); }
.stack { max-width: var(--wrap); margin: 48px auto 0; display: grid; gap: 24px; }
.stack-item { position: sticky; top: calc(var(--nav-h) + 13px); }
.stack-item:nth-child(2) { top: calc(var(--nav-h) + 23px); }
.stack-item:nth-child(3) { top: calc(var(--nav-h) + 33px); }
.stack-card {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 321px;
  padding: 32px;
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
  transform-origin: 50% 0;
  overflow: hidden;
}
.tone-tan { background: var(--tan); }
.tone-blue { background: var(--blue); }
.tone-latte { background: var(--latte); }
.group-note a { color: var(--blue-ink); text-underline-offset: 3px; }

/* Two ways to work with us: the choice, side by side. Pale blue is ongoing,
   pale tan is projects, and the service sheets below keep the same tints.
   Quiet on purpose: the tint is the key, the type does the rest. */
.way, .svc { color: var(--ink); }
.way--ongoing, .svc--ongoing { --tint: #e9f1f7; --tint-ink: #3d6480; --tint-line: #cfdfeb; }
.way--project, .svc--project { --tint: #f6efe4; --tint-ink: #76543a; --tint-line: #e4d6c1; }
.ways {
  max-width: var(--wrap); margin: 48px auto 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px;
}
.way {
  display: flex; flex-direction: column; gap: 12px;
  padding: clamp(28px, 3vw, 40px);
  border-radius: 20px;
  background: var(--tint);
  box-shadow: inset 0 0 0 1px var(--tint-line);
}
.way-title { font: 600 clamp(28px, 2.6vw, 36px)/1.15 var(--display); letter-spacing: -0.025em; }
.way-text { font: 400 17px/1.55 var(--body); max-width: 34em; }
.way-label { margin-top: 12px; font: 500 14px/1.3 var(--ui); color: var(--tint-ink); }
.way-options { border-top: 1px solid var(--tint-line); }
.way-options a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--tint-line);
  text-decoration: none;
}
.way-options span { font: 400 15px/1.3 var(--ui); color: var(--tint-ink); white-space: nowrap; }
.way-options strong { font: 500 17px/1.3 var(--ui); text-align: right; text-decoration: underline 1px transparent; text-underline-offset: 5px; transition: text-decoration-color 160ms var(--ease-out); }
.way-options a:hover strong, .way-options a:focus-visible strong { text-decoration-color: currentColor; }
@media (max-width: 760px) {
  .ways { grid-template-columns: 1fr; gap: 16px; }
  .way { padding: 24px; }
}
.card-copy { display: grid; gap: 10px; max-width: 620px; }
.card-eyebrow { font: 500 13px/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.02em; }
.card-title { font: 700 clamp(34px, 3.8vw, 55px)/1.2 var(--display); letter-spacing: -0.02em; }
.card-text { font: 400 clamp(19px, 1.75vw, 25px)/1.2 var(--body); max-width: 22em; }
.card-link { margin-top: 28px; font: 700 clamp(15px, 1.25vw, 18px)/1.2 var(--mono); text-transform: uppercase; }
.sticker { height: auto; overflow: visible; }

/* Each service as a spec sheet: name and a plain definition on the left,
   the facts that decide it on the right. Sheets keep their group's tint. */
.svc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-rows: auto 1fr;
  gap: 20px clamp(32px, 5vw, 72px);
  min-height: 0;
  padding: clamp(28px, 3.4vw, 48px);
  border-radius: 20px;
  background: var(--tint);
  /* a soft shadow cast upward separates each sheet from the one it lands on */
  box-shadow: inset 0 0 0 1px var(--tint-line), 0 -12px 32px -20px rgb(42 29 21 / 0.22);
}
.svc-main { grid-column: 1; grid-row: 1; display: grid; gap: 12px; align-content: start; }
.svc-title { font: 600 clamp(28px, 2.8vw, 40px)/1.12 var(--display); letter-spacing: -0.025em; text-wrap: balance; }
.svc-lead { font: 400 clamp(17px, 1.4vw, 19px)/1.5 var(--body); max-width: 30em; text-wrap: pretty; }
.svc-facts { grid-column: 2; grid-row: 1 / span 2; border-top: 1px solid var(--tint-line); }
.svc-facts > div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--tint-line); }
.svc-facts dt { font: 500 14px/1.5 var(--ui); color: var(--tint-ink); }
.svc-facts dd { margin: 0; font: 400 15px/1.5 var(--ui); }
.svc-link {
  grid-column: 1; grid-row: 2; align-self: end; justify-self: start;
  font: 500 15px/1.3 var(--ui); color: var(--ink);
  text-decoration: underline 1px var(--tint-ink); text-underline-offset: 5px;
  transition: text-decoration-thickness 160ms var(--ease-out);
}
.svc-link:hover { text-decoration-thickness: 2px; }
@media (max-width: 760px) {
  .svc { grid-template-columns: 1fr; grid-template-rows: none; padding: 24px; gap: 18px; }
  .svc-main, .svc-facts, .svc-link { grid-column: 1; grid-row: auto; }
  .svc-facts > div { grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 700px) {
  .stack-card { min-height: 0; padding: 24px; }
  .stack-item:nth-child(n) { top: calc(var(--nav-h) + 12px); }
}

/* ---------------------------------------------------------------- selected work horizontal scroll */
.showcase {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 20px) var(--pad) 24px; background: var(--bg);
}
.showcase-head { margin-bottom: 20px; }
.showcase .group-note { max-width: 70ch; font-size: 15px; }
.deck { width: 100%; max-width: 1000px; margin: 0 auto; }
.deck-stage { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.deck-stage::-webkit-scrollbar { display: none; }
.showcase.is-scroll-deck .deck-stage { overflow: hidden; scroll-snap-type: none; }
.deck-track { display: flex; gap: 24px; }
.showcase.is-scroll-deck .deck-track { will-change: transform; }
.deck-card {
  flex: 0 0 100%; min-width: 0; scroll-snap-align: start;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 24px;
  min-height: clamp(320px, 48svh, 400px); padding: 24px;
  border-radius: 16px; background: var(--paper); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}
.deck-copy { display: flex; flex-direction: column; gap: 18px; }
.badge {
  display: inline-flex; width: fit-content; align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e9f1f7; color: #3d6480;
  box-shadow: inset 0 0 0 1px #cfdfeb;
  font: 500 12.5px/1 var(--ui);
}
.deck-quote { font: 700 64px/0.6 var(--display); color: var(--latte); height: 30px; }
.deck-title { font: 700 clamp(26px, 2.4vw, 34px)/1.15 var(--display); letter-spacing: -0.02em; }
.deck-line { font: 400 clamp(19px, 1.7vw, 24px)/1.2 var(--body); letter-spacing: -0.02em; }
.deck-meta { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.deck-meta .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); padding: 3px; }
.deck-meta strong { display: block; font: 500 17px/1.4 var(--ui); }
.deck-meta span { display: block; font: 400 15px/1.4 var(--ui); color: rgb(42 29 21 / 0.75); }
.deck-media { position: relative; border-radius: 16px; overflow: hidden; background: var(--paper-2); min-height: 260px; }
.deck-media img, .deck-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.deck-controls { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; }
.deck-count { margin-right: 12px; font: 500 13px/1 var(--mono); color: var(--text-2); }
.deck-btn:disabled { opacity: 0.3; cursor: default; }
.deck-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; color: var(--text); }
.deck-btn svg { width: 30px; stroke: currentColor; stroke-width: 1.4; fill: none; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms var(--ease-out); }
.deck-btn:hover svg { transform: scale(1.12); }
.deck-more { text-align: center; margin-top: 10px; }
@media (max-width: 760px) {
  .showcase { padding-top: calc(var(--nav-h) + 16px); padding-bottom: 24px; }
  .deck-card { grid-template-columns: 1fr; padding: 18px; gap: 16px; }
  .deck-copy { gap: 12px; }
  .deck-quote { display: none; }
  .deck-line { font-size: 18px; }
  /* the photo gets a real share of the screen, not a thin strip */
  .deck-media { min-height: 0; height: clamp(180px, 32svh, 380px); order: -1; }
}

/* placeholder frames (work media) */
.ph {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 8px;
  padding: 16px; text-align: center; color: var(--ink);
  background-image: repeating-linear-gradient(-45deg, rgb(42 29 21 / 0.07) 0 2px, transparent 2px 18px);
  transition: transform 600ms var(--ease-out);
}
.ph--blue { background-color: var(--blue); }
.ph--latte { background-color: var(--latte); }
.ph--tan { background-color: var(--tan-2); }
.ph--ink { background-color: #3a2b21; color: var(--text); background-image: repeating-linear-gradient(-45deg, rgb(243 235 221 / 0.06) 0 2px, transparent 2px 18px); }
.ph-label { font: 700 clamp(18px, 1.8vw, 26px)/1 var(--display); letter-spacing: -0.02em; }

/* ---------------------------------------------------------------- process (her blue "different" section) */
.process {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(32px, 4vw, 64px);
  padding: clamp(60px, 5vw, 70px) max(var(--pad), calc((100vw - 1200px) / 2)) clamp(70px, 6vw, 90px);
  background: #e9f1f7; color: var(--ink);
}
.process-head { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
.process-note { margin-top: 14px; max-width: 26em; font: 400 18px/1.45 var(--ui); color: #3d6480; }
.process-list li {
  display: grid; grid-template-columns: 56px 1fr; gap: 0 4px;
  position: relative; isolation: isolate;
  padding: 22px 16px 26px;
  border-bottom: 1px solid #cfdfeb;
}
.process-list li::before {
  content: ""; position: absolute; inset: 7px 0; z-index: -1;
  background: #fff; border-radius: 12px; opacity: 0;
  transition: opacity 280ms var(--ease-out);
}
.process-list li.is-focused::before { opacity: 1; }
.process-num { font: 500 15px/2 var(--ui); color: #3d6480; font-variant-numeric: tabular-nums; }
.process-list h3 { font: 600 clamp(22px, 1.8vw, 26px)/1.35 var(--display); letter-spacing: -0.02em; margin-bottom: 8px; }
.process-list p { font: 400 18px/1.5 var(--ui); max-width: 34em; }
@media (max-width: 860px) { .process { grid-template-columns: 1fr; } .process-head { position: static; } }

/* ==========================================================================
   ABOUT PAGE (her Founder page): a white hero with the cut-out
   portrait, then the same process steps as Services
   ========================================================================== */
.about-hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px;
  min-height: 100svh;
  padding: var(--nav-h) var(--pad) 0;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}
.about-hero-copy { align-self: end; display: grid; gap: 16px; max-width: 540px; padding-bottom: clamp(48px, 10svh, 110px); }
.about-hero-title { font: 700 clamp(44px, 4.6vw, 66px)/1.12 var(--display); letter-spacing: -0.02em; margin-bottom: 4px; }
.about-hero-copy p { font: 400 clamp(17px, 1.4vw, 20px)/1.4 var(--body); }
.about-hero-copy p:last-child { font-weight: 500; }
.about-hero-media { position: relative; align-self: end; height: min(82svh, 760px); }
.about-photo {
  position: absolute; left: 12%; bottom: 0;
  width: 70%; height: 92%;
  border-radius: 260px 260px 0 0;
  object-fit: cover; object-position: top;
}
.about-ph {
  display: grid; place-content: center; justify-items: center; gap: 8px; text-align: center;
  background: #f6efe4 repeating-linear-gradient(-45deg, rgb(42 29 21 / 0.05) 0 1px, transparent 1px 14px);
  box-shadow: inset 0 0 0 1px #e4d6c1;
}
.ph-label { font: 700 clamp(18px, 1.8vw, 26px)/1 var(--display); letter-spacing: -0.02em; }
@media (max-width: 860px) {
  .about-hero { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 40px); }
  .about-hero-copy { padding-bottom: 0; }
  .about-hero-media { height: 440px; }
}


/* ---------------------------------------------------------------- contact (her dark form card) */
.contact { padding: clamp(80px, 9vw, 140px) var(--pad); }
.form-card {
  max-width: 760px; margin: 0 auto;
  padding: clamp(32px, 5vw, 72px) clamp(20px, 9vw, 126px);
  border-radius: 20px;
  background: #f6efe4;
  box-shadow: inset 0 0 0 1px #e4d6c1;
  text-align: center;
}
.form-avatar { width: 52px; height: 52px; margin: 0 auto 18px; padding: 7px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #e4d6c1; }
.form-title { font: 600 clamp(28px, 2.6vw, 36px)/1.2 var(--display); letter-spacing: -0.02em; }
.form-intro { margin: 12px auto 0; max-width: 34em; font: 400 16px/1.45 var(--ui); color: var(--text-2); }
.form-card--cta .btn { margin-top: 28px; }
.contact-form { display: grid; gap: 16px; margin-top: 44px; text-align: left; }
.row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 24px; align-items: start; margin: 0; padding: 0; border: 0; min-width: 0; }
.row-label { padding: 9px 0 0; font: 500 15px/1.35 var(--ui); color: var(--text); float: left; }
fieldset.row > .row-label { padding-top: 0; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 0; border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e4d6c1;
  color: var(--ink);
  font: 400 16px/1.35 var(--ui);
}
textarea { resize: vertical; min-height: 92px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1d15' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 36px; }
::placeholder { color: #8a7563; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--blue-ink); outline-offset: 0; }
[aria-invalid="true"] { outline: 3px solid #b5523a; outline-offset: 0; }
.radios { display: grid; gap: 8px; }
.radios label { display: flex; align-items: center; gap: 10px; font: 400 15px/1.3 var(--ui); cursor: pointer; }
.radios input { appearance: none; flex: none; width: 16px; height: 16px; margin: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--latte); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.radios input:checked { background: var(--blue-ink); box-shadow: inset 0 0 0 4px #fff, 0 0 0 1px var(--blue-ink); }
.form-foot { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 8px; }
.form-status { flex: 1; font: 400 15px/1.4 var(--ui); }
.form-status:empty { display: none; }
.form-status.is-error { color: #a8432c; }
.form-alt { font: 400 13px/1.4 var(--ui); color: var(--text-2); }
.form-alt a { color: var(--blue-ink); }
@media (max-width: 600px) { .row { grid-template-columns: 1fr; } .row-label { padding: 0; } }

.contact-page .contact { padding-top: calc(var(--nav-h) + clamp(48px, 6vw, 96px)); min-height: 100svh; }

/* ---------------------------------------------------------------- footer (blue, big links, peeking ninja) */
.footer { --footer-inset: max(var(--pad), 76px); position: relative; background: var(--blue); color: var(--ink); padding: 80px var(--footer-inset) 0; overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 40px; }
.footer-links { padding-top: 30px; display: grid; grid-template-rows: repeat(3, auto); grid-auto-flow: column; gap: 8px 44px; justify-content: start; }
.footer-links a {
  font: 500 clamp(26px, 2.4vw, 34px)/1.2 var(--ui);
  letter-spacing: -0.06em;
  text-transform: uppercase;
  text-decoration: none;
  width: fit-content;
}
.footer-links a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.footer-note { display: grid; gap: 4px; align-content: start; padding-top: 30px; margin-right: clamp(0px, 4vw, 60px); }
.footer-note p:first-child { font: 400 20px/1.2 var(--body); text-transform: uppercase; }
.footer-note a { font: 500 22px/1.2 var(--ui); letter-spacing: -0.06em; text-transform: uppercase; text-decoration: none; }
.footer-note a:hover { text-decoration: underline; }
.footer-legal { margin-top: 14px; font: 400 13px/1 var(--ui); }
/* Center the head above a single, full-width wordmark at the footer's base. */
.peek {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3.687fr) minmax(0, 6.353fr);
  align-items: end;
  column-gap: clamp(8px, 1.5vw, 28px);
  row-gap: clamp(10px, 1.5vw, 24px);
  margin-inline: calc(var(--pad) - var(--footer-inset));
  /* Tuck the head into the open center between the two footer text blocks. */
  margin-top: -24px;
  margin-bottom: clamp(16px, 2vw, 32px);
}
.peek-ninja {
  grid-column: 1 / -1; grid-row: 1;
  justify-self: center;
  position: relative; left: auto; right: auto; top: auto;
  width: 34.25%; height: auto; margin: 0;
  /* Account for the tie: the face center is x=400 in the 150..750 viewBox. */
  transform: translateX(8.333333%);
  aspect-ratio: 600 / 470;
}
.footer-word {
  grid-row: 2; min-width: 0; width: 100%; position: relative;
}
.footer-good { grid-column: 1; }
.footer-mischief { grid-column: 2; }
.footer-word .brand-lettering { width: 100%; height: auto; max-width: none; }

@media (max-width: 800px) {
  .peek { margin-top: 12px; }
  .footer-top { gap: 24px; }
  .footer-links, .footer-note { padding-top: 0; }
}
@media (max-width: 640px) {
  .footer { --footer-inset: var(--pad); }
  .footer-links { grid-template-rows: none; grid-auto-flow: row; }
}

/* ==========================================================================
   SERVICES PAGE (her service page)
   ========================================================================== */
.page-hero { position: relative; padding: calc(var(--nav-h) + clamp(90px, 12vw, 160px)) var(--pad) clamp(90px, 10vw, 140px); text-align: center; overflow: hidden; }
/* Let the Services introduction occupy the opening screen. */
.page-services .page-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + clamp(64px, 8vw, 112px)) var(--pad) clamp(64px, 8vw, 112px);
}
.page-services .ways-block { padding-top: clamp(64px, 8vw, 120px); }
.page-statement { max-width: 900px; margin: 0 auto; font: 600 clamp(36px, 4.4vw, 62px)/1.15 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.page-sub { max-width: 34em; margin: 22px auto 0; font: 400 clamp(17px, 1.4vw, 20px)/1.45 var(--ui); color: var(--text-2); }
.cells-block { padding: 0 var(--pad) clamp(80px, 8vw, 120px); }
.svc-list { max-width: 1200px; margin: 0 auto; display: grid; gap: 20px; }
.svc-list .svc { box-shadow: inset 0 0 0 1px var(--tint-line); scroll-margin-top: calc(var(--nav-h) + 24px); }
.svc-facts ul { display: grid; gap: 6px; }
.svc-facts li { position: relative; padding-left: 16px; }
.svc-facts li::before { content: ""; position: absolute; left: 1px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--tint-ink); opacity: 0.7; }
.cells-head { max-width: 1200px; margin: 0 auto 32px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; }
.cells-head p { max-width: 38ch; font: 400 18px/1.45 var(--ui); color: var(--text-2); }
.ways-block { padding: 0 var(--pad) clamp(100px, 10vw, 160px); }
.ways-block .ways { max-width: 1200px; }

.faq { padding: clamp(80px, 8vw, 120px) var(--pad) 0; }
.faq-ninja { width: 110px; margin: 0 auto 16px; filter: drop-shadow(3px 0 0 var(--paper)) drop-shadow(-3px 0 0 var(--paper)) drop-shadow(0 3px 0 var(--paper)) drop-shadow(0 -3px 0 var(--paper)); }
.faq-list { max-width: 1200px; margin: 40px auto 0; overflow: hidden; border-radius: 20px; background: #f6efe4; color: var(--ink); box-shadow: inset 0 0 0 1px #e4d6c1; }
.faq-list details + details { border-top: 1px solid #e4d6c1; }
.faq-list details[open] { background: #f1e8da; }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 28px;
  font: 600 clamp(18px, 1.6vw, 22px)/1.4 var(--display);
  letter-spacing: -0.02em;
  cursor: pointer; list-style: none;
}
/* Move only the question, keeping the arrow and clickable row in place. */
.faq-question { display: block; min-width: 0; transition: transform 280ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .faq-list summary:hover .faq-question { transform: translateX(10px); }
}
.faq-list summary:focus-visible .faq-question { transform: translateX(10px); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a1d15' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14M6 13l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 220ms var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(180deg); }
.faq-list details p { padding: 0 28px 24px; max-width: 70ch; font: 400 17px/1.55 var(--ui); color: #3d2d22; }

/* ==========================================================================
   WORK PAGE (her work page)
   ========================================================================== */
.work-page { padding: calc(var(--nav-h) + 72px) var(--pad) clamp(60px, 6vw, 100px); }
.work-title-xl { max-width: 12ch; font: 700 clamp(44px, 4.4vw, 64px)/1.2 var(--display); letter-spacing: -0.02em; }
.work-sub { margin-top: 12px; font: 400 19px/1.45 var(--ui); color: var(--text-2); }
.work-note { margin: 18px 0 clamp(48px, 7vw, 90px); max-width: 60ch; font: 400 14px/1.45 var(--ui); color: var(--text-2); }
.filters { display: flex; flex-wrap: wrap; align-items: center; margin: 10px 0 0; }
.filters { gap: 8px; }
.filters button {
  padding: 8px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: #f6efe4; box-shadow: inset 0 0 0 1px #e4d6c1;
  font: 500 15px/1.2 var(--ui); color: var(--ink);
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.filters button:hover { background: #efe4d3; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.work-group { margin-top: clamp(56px, 6vw, 80px); }
.work-group[hidden] { display: none; }
.group-title { font: 600 clamp(22px, 2vw, 28px)/1.2 var(--display); letter-spacing: -0.02em; }
.group-sub { margin: 8px 0 24px; max-width: 64ch; font: 400 16px/1.45 var(--ui); color: var(--text-2); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
.work-grid li[hidden] { display: none; }
@media (max-width: 700px) { .work-grid { grid-template-columns: 1fr; } }
.work-card { display: grid; gap: 10px; width: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; text-decoration: none; cursor: pointer; }
div.work-card { cursor: default; }
.work-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: var(--panel); }
.work-media img, .work-media video { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.work-media .badge { position: absolute; top: 14px; left: 14px; z-index: 1; }
@media (hover: hover) { .work-card:hover .work-media > :not(.badge) { transform: scale(1.03); } }
.work-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.work-name { font: 500 18px/1.3 var(--ui); }
.work-cat { font: 400 13px/1.3 var(--ui); color: var(--text-2); white-space: nowrap; }
.work-line { font: 400 15px/1.4 var(--ui); color: var(--text-2); }
.work-empty { font: 400 16px/1 var(--ui); color: var(--text-2); margin-top: 32px; }

.work-dialog {
  width: min(1040px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: 16px;
  background: var(--paper); color: var(--ink);
  overflow: auto; overscroll-behavior: contain;
}
.work-dialog::backdrop { background: rgb(18 12 8 / 0.75); }
.work-dialog[open] { animation: dialog-in 260ms var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.dialog-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 32px; }
.dialog-inner .work-media { border-radius: 16px; align-self: start; }
.dialog-copy { display: grid; gap: 14px; align-content: start; padding-right: 40px; }
.dialog-copy h2 { font: 700 clamp(30px, 3.4vw, 48px)/1.1 var(--display); letter-spacing: -0.02em; }
.dialog-lead { font: 400 21px/1.3 var(--body); }
.dialog-note { padding: 10px 14px; background: var(--paper-2); font: 400 14px/1.4 var(--ui); }
.dialog-facts { display: grid; gap: 16px; margin-top: 8px; }
.dialog-facts dt { font: 500 12px/1.3 var(--mono); text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.dialog-facts dd { font: 400 16px/1.45 var(--ui); }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: var(--blue); cursor: pointer; }
.dialog-close svg { width: 20px; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; fill: none; }
@media (max-width: 760px) { .dialog-inner { grid-template-columns: 1fr; padding: 16px; } .dialog-copy { padding-right: 0; } }

/* Client photo galleries preserve each photograph's original proportions. */
.dialog-story { font: 400 16px/1.5 var(--ui); color: #3d2d22; }
.dialog-actions { position: sticky; top: 0; z-index: 3; height: 0; }
.project-gallery { grid-column: 1 / -1; columns: 2; column-gap: 16px; }
.project-gallery figure { break-inside: avoid; margin-bottom: 16px; }
.project-gallery h3 { column-span: all; font: 600 26px/1.2 var(--display); margin: 8px 0 24px; }
.project-gallery img { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--paper-2); }
@media (max-width: 640px) { .project-gallery { columns: 1; } .work-row { flex-wrap: wrap; gap: 4px 16px; } }

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .stack-item { position: static; }
  .marquee { flex-wrap: wrap; }
  .marquee-track[aria-hidden="true"] { display: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; }
}

/* ==========================================================================
   ABOUT: a note from Casey beside his portrait, then the crew he brings in
   ========================================================================== */
/* Founder: Casey's blurb beside his portrait (his original layout and wording) */
.about-founder {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.88fr);
  gap: clamp(36px, 7vw, 120px);
  padding: calc(var(--nav-h) + clamp(44px, 6vw, 88px)) var(--pad) clamp(64px, 7vw, 104px);
  align-items: center;
}
.about-founder .about-hero-copy { align-self: center; padding-bottom: 0; max-width: 580px; gap: 20px; }
.about-founder .about-hero-title { font-size: clamp(44px, 5.4vw, 78px); max-width: 9ch; }
.about-founder .team-eyebrow, .team-eyebrow { font: 500 13px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.about-founder .founder-role { font-size: clamp(17px, 1.5vw, 21px); font-weight: 600; color: var(--text-2); }
.about-founder .about-hero-media { align-self: center; height: auto; width: 100%; max-width: 520px; justify-self: center; }
.about-founder .about-photo { position: static; width: 100%; height: auto; display: block; border-radius: 16px; }
.about-founder .mono-link { justify-self: start; margin-top: 8px; }
@media (max-width: 860px) {
  .about-founder { grid-template-columns: 1fr; }
  .about-founder .about-hero-title { max-width: 12ch; }
  .about-founder .about-hero-media { max-width: 460px; }
}
@media (min-width: 861px) {
  .about-founder { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 48px; }
  .about-founder .about-photo { width: auto; max-width: 100%; max-height: calc(100svh - var(--nav-h) - 96px); margin-inline: auto; }
}

.crew { max-width: 1320px; margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--pad) clamp(80px, 9vw, 136px); }
.crew-head { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px clamp(40px, 6vw, 96px); align-items: end; }
.crew-head p { max-width: 36em; font: 400 clamp(17px, 1.4vw, 20px)/1.55 var(--body); color: var(--text-2); }
.crew-list { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.crew-member {
  display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 4vw, 48px) 0;
  border-bottom: 1px solid var(--line);
}
.crew-portrait { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #f6efe4; }
/* a hairline holds the edge where a bright sky meets the white page */
.crew-portrait::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px #e4d6c1; pointer-events: none; }
.crew-portrait img { width: 100%; height: 100%; object-fit: cover; }
.crew-copy { display: grid; gap: 8px; max-width: 38em; }
.crew-copy h3 { font: 600 clamp(28px, 2.8vw, 40px)/1.12 var(--display); letter-spacing: -0.025em; }
.crew-role { font: 500 16px/1.4 var(--ui); color: var(--text-2); }
.crew-copy > p:not(.crew-role):not(.crew-links) { margin-top: 8px; font: 400 17px/1.6 var(--ui); }
.crew-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; }

@media (max-width: 860px) {
  .crew-head { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  /* portrait beside the name and role; the bio and links run full width beneath */
  .crew-member { grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 4px 20px; }
  .crew-copy { display: contents; }
  .crew-portrait { grid-row: 1 / span 2; }
  .crew-copy h3 { grid-column: 2; align-self: end; }
  .crew-role { grid-column: 2; align-self: start; }
  .crew-copy > p:not(.crew-role):not(.crew-links), .crew-links { grid-column: 1 / -1; }
  .crew-copy > p:not(.crew-role):not(.crew-links) { margin-top: 16px; }
}
