/* ==========================================================================
   Sunday Practice · editorial structure + Ortolan warmth + Fold7 voltage
   ========================================================================== */
:root {
  color-scheme: light;
  interpolate-size: allow-keywords;

  /* palette */
  --ink: #151515;
  --paper: #FFFFFF;
  --blush: #FFF5F0;
  --greige: #D3CCC1;
  --greige-soft: color-mix(in oklch, var(--greige) 38%, var(--paper));
  --cobalt: #0233CB;
  --cobalt-deep: color-mix(in oklch, var(--cobalt) 82%, black);
  --cream: #FBEBE1;
  --lime: #F5FF68;
  --text-2: #55514C;
  --text-3: #6A655F;
  --faint: #C9C2B8;
  --line: #E4DFD8;
  --line-strong: #CEC7BD;
  --night: #1F1E1C;
  --tile-dark: #211F1D;
  --tile-grey: #969696;
  --tile-sand: #D3CBBF;
  --tile-blue: #0433C9;
  /* section surfaces (editable in the Tweak panel); all start at greige-soft */
  --stat-bg: #F0EAEC;
  --testi-bg: #F0EAEC;
  --award-hover: #F0EAEC;
  --night-line: #3A3835;
  --night-text: #A29C94;

  /* type */
  --f-display: "Marcellus", "Newsreader", Georgia, serif;
  --f-serif: "Newsreader", Georgia, serif;
  --f-sans: "Switzer", "Helvetica Neue", Helvetica, sans-serif;

  --t-statement: clamp(32px, 3.9vw, 56px);
  --t-h2: clamp(40px, 3.9vw, 56px);
  --t-price: clamp(44px, 3.9vw, 56px);
  --t-stat: clamp(44px, 3.9vw, 56px);
  --t-ribbon: clamp(28px, 2.8vw, 40px);
  --t-title: clamp(22px, 1.95vw, 28px);
  --t-label: 18px;
  --t-body-lg: clamp(17px, 1.39vw, 20px);
  --t-body: 16px;
  --t-small: 14px;
  --t-eyebrow: 12px;

  /* space */
  --m: clamp(20px, 2.78vw, 40px);
  --g: 8px;
  --section: clamp(80px, 8.33vw, 120px);
  --stack-gap: clamp(56px, 7.4vw, 112px); /* equal rhythm: work tiles / About statement / stats / Awards statement */
  --r-panel: 20px;
  --r-card: 16px;
  --r-shot: 12px;
  --r-pill: 999px;
  --nav-h: 56px;

  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-roll: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--t-body);
  line-height: 1.45;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, .display { text-wrap: balance; }
p, li { text-wrap: pretty; }
::selection { background: var(--lime); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 4px;
  border-radius: 4px;
}
.on-dark :focus-visible, .hero__panel :focus-visible { outline-color: var(--lime); }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: fixed; left: var(--m); top: 12px; z-index: 100;
  background: var(--lime); color: var(--ink); padding: 12px 20px; border-radius: var(--r-pill);
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

.wrap { padding-inline: var(--m); }
.section { padding-block: var(--section); }

/* ----- shared type ------------------------------------------------------- */
.eyebrow {
  font-family: var(--f-sans);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
}
.h2 {
  font-family: var(--f-serif);
  font-weight: 350;
  font-size: var(--t-h2);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-box: trim-both cap alphabetic;
}
.lede {
  color: var(--text-2);
  max-width: 36ch;
}
.serif { font-family: var(--f-serif); }

/* ----- pill buttons (Fold7) ---------------------------------------------- */
.pill {
  --pill-bg: var(--lime);
  --pill-fg: var(--ink);
  --pill-bg-hover: var(--ink);
  --pill-fg-hover: var(--lime);
  position: relative;
  isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  background: var(--pill-bg);
  color: var(--pill-fg);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  overflow: hidden;
  transition: color .4s var(--ease-roll);
}
.pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--pill-bg-hover);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .5s var(--ease-roll);
}
.pill:is(:hover, :focus-visible) { color: var(--pill-fg-hover); }
.pill:is(:hover, :focus-visible)::before { transform: none; }
.pill--sm { min-height: 32px; padding: 4px 16px; font-size: 14px; }
.pill--block { width: 100%; }
.pill--ink { --pill-bg: var(--ink); --pill-fg: var(--paper); --pill-bg-hover: var(--cobalt); --pill-fg-hover: var(--cream); }
.pill__arrow { width: 16px; height: 16px; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 32px;
  min-width: 180px; min-height: 44px;
  border-bottom: 1px solid currentColor;
  font-weight: 500;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform .4s var(--ease-roll); }
.link-arrow:is(:hover, :focus-visible) svg { transform: translateX(4px); }

/* ==========================================================================
   HERO · cobalt panel + greige band (Fold7) · bleeding wordmark (Ortolan)
   ========================================================================== */
.hero { position: relative; }
.hero__panel {
  position: relative;
  z-index: 2;
  height: clamp(560px, 84svh, 860px);
  background: var(--cobalt);
  color: var(--cream);
  border-radius: 0 0 var(--r-panel) var(--r-panel);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.hero__kicker {
  position: absolute;
  left: 50%; bottom: calc(var(--wm, 200px) * 0.66 + clamp(24px, 3.33vw, 48px));
  translate: -50% 0;
  white-space: nowrap;
  font-family: var(--f-display);
  font-size: clamp(14px, 1.25vw, 18px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.wordmark {
  position: absolute;
  left: var(--m); right: var(--m); bottom: 0;
  font-family: var(--f-display);
  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.015em;
  white-space: nowrap;
  translate: 0 0.07em;
  font-size: 12vw; /* JS refits to the exact field width */
  user-select: none;
}
.wordmark__letters { display: block; }
.wordmark__letters i { font-style: normal; }
.wordmark__line > span { display: inline-block; }
.wordmark__letters .reg { font-size: 0.42em; vertical-align: 1.18em; margin-left: 0.04em; }
.wordmark__line { display: block; }
.wordmark__letters .reg { display: inline-block; }

.hero__band {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--r-panel) * -1);
  padding-top: calc(var(--r-panel) + clamp(101px, 11.96vw, 196px)); /* +15% */
  padding-bottom: clamp(101px, 11.96vw, 196px);
  background: var(--greige);
  border-radius: 0 0 var(--r-panel) var(--r-panel);
  overflow: hidden;
}
.hero__intro {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  align-items: end;
  gap: 40px;
  padding-inline: var(--m);
}
.hero__statement {
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: clamp(56px, 6.1vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 30ch; /* wide enough that the last line is never a single word */
  text-wrap: balance;
}
.hero__statement .pill { vertical-align: 0.25em; margin-left: 8px; font-family: var(--f-sans); letter-spacing: 0; }
.hero__meta {
  justify-self: end; align-self: end;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 8px 18px;
  border-radius: var(--r-pill); background: var(--lime);
  color: var(--ink); font-size: var(--t-small); line-height: 1.2; white-space: nowrap;
}
.hero__meta strong { font-weight: 500; }
.hero__meta span { color: var(--text-2); display: inline-flex; align-items: center; gap: 10px; } /* 7.3:1 on lime */
.hero__meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }

.ticker { overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; }
.ticker:active { cursor: grabbing; }
.ticker__track { display: flex; width: max-content; }
.ticker__group { display: flex; align-items: center; flex: none; }

.logos {
  margin-top: clamp(56px, 6.9vw, 100px);
  padding-block: 24px 32px;
  border-top: 1px solid color-mix(in oklch, var(--ink) 14%, var(--greige));
}
.logos .ticker__group { gap: 64px; padding-right: 64px; }
.logo {
  color: color-mix(in oklch, var(--ink) 62%, var(--greige));
  white-space: nowrap;
  font-size: 24px;
  line-height: 1;
}
.logo--1 { font-family: var(--f-sans); font-weight: 600; letter-spacing: -0.04em; }
.logo--1::before { content: "●"; font-size: 0.6em; margin-right: 8px; vertical-align: 0.2em; }
.logo--2 { font-family: var(--f-display); letter-spacing: 0.3em; }
.logo--3 { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 28px; }
.logo--4 { font-family: var(--f-sans); font-weight: 500; letter-spacing: 0.24em; font-size: 16px; }
.logo--5 { font-family: var(--f-serif); font-weight: 500; letter-spacing: -0.03em; font-size: 28px; }
.logo--5::after { content: "✳"; font-size: 0.6em; margin-left: 4px; vertical-align: 0.5em; }
.logo--6 { font-family: var(--f-sans); font-weight: 400; letter-spacing: -0.02em; text-transform: lowercase; }

/* ==========================================================================
   WORK MOSAIC · full-bleed 2-up, Ortolan captions, hover ticker
   ========================================================================== */
.mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--g);
  padding-top: var(--g);
}
.tile {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--greige-soft);
  color: var(--paper);
}
/* every work image gets rounded corners */
.mosaic > .tile { border-radius: var(--r-panel); }
.mosaic > .tile, .mosaic img { -webkit-user-drag: none; user-select: none; }
/* laptop sits near the photo's top and side edges: show the whole 4:3 photo, no parallax overscan */
.tile--still .tile__media { inset: 0; animation: none !important; transform: none !important; }
.tile--dark { background: var(--tile-dark); }
.tile--grey { background: var(--tile-grey); }
.tile--sand { background: var(--tile-sand); }
.tile--blue { background: var(--tile-blue); }
/* screenshot tiles: transparent card centered, pinned to the top, bleeding off the bottom */
.tile--shot .tile__media { inset: 0; }
.tile--shot .tile__media img {
  position: absolute; top: 0; left: 50%;
  width: 76%;          /* card was 80% of a 95%-wide frame */
  margin-top: 9.5%;    /* frame's 10% top margin x 95%; % margins resolve against width, so this holds at any size */
  height: auto; translate: -50% 0; object-fit: fill;
  border-radius: var(--r-shot) var(--r-shot) 0 0;
}
/* at 95% width the card only bleeds ~1% past the bottom, so drift downward only (never exposes a strip under the card) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tile--shot .tile__media { animation-name: parallax-shot; }
  }
}
@keyframes parallax-shot { from { transform: translateY(-1%); } to { transform: translateY(7%); } }
.tile__media { position: absolute; inset: -12% 0; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__caption {
  position: absolute; inset: 50% 0 auto;
  translate: 0 -50%;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 16px;
  padding-inline: 24px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgb(0 0 0 / .28);
  transition: opacity .35s ease;
}
.tile__caption span:nth-child(2) { text-align: center; }
.tile__caption span:nth-child(3) { text-align: right; }
.tile__band {
  display: none;
  position: absolute; inset: 50% 0 auto;
  translate: 0 -50%;
  background: var(--cream);
  color: var(--ink);
  padding-block: 8px;
  clip-path: inset(50% 0 50% 0);
  transition: clip-path .55s var(--ease-out);
}
.tile__band .ticker__group { gap: 16px; padding-right: 16px; font-family: var(--f-serif); font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.tile__band .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .5; }
.tile__band .yr { font-family: var(--f-sans); font-size: 14px; color: var(--text-3); letter-spacing: 0; }
@media (hover: hover) {
  .tile:is(:hover, :focus-visible) .tile__band { clip-path: inset(0 0 0 0); }
  .tile:is(:hover, :focus-visible) .tile__caption { opacity: 0; }
}
@media (hover: none) {
  .tile__band { clip-path: inset(0 0 0 0); }
  .tile__caption { opacity: 0; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tile__media, .showreel__media { animation: parallax linear both; animation-timeline: view(); }
  }
}
@keyframes parallax { from { transform: translateY(-9%); } to { transform: translateY(9%); } }

/* ==========================================================================
   RAIL HEADER + STATEMENT REVEAL
   ========================================================================== */
.rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  column-gap: var(--g);
  row-gap: 32px;
}
.rail__label { display: flex; align-items: baseline; gap: 12px; padding-top: 8px; }
.rail__label .num { color: var(--text-3); }
.rail__label .name { font-family: var(--f-serif); font-size: var(--t-label); letter-spacing: -0.01em; }
/* section titles hidden: the empty rail column keeps content on the shared column line; still read by screen readers */
.rail > .rail__label { visibility: hidden; }
.statement {
  font-family: var(--f-serif);
  font-weight: 300;
  font-size: var(--t-statement);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 30ch;
  text-box: trim-both cap alphabetic;
}
.statement .w { display: inline-block; white-space: nowrap; }
.statement .l { display: inline-block; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.stats {
  margin-top: var(--stack-gap);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--g);
}
.stat {
  min-height: 240px;
  padding: 24px;
  border-radius: var(--r-card);
  background: var(--stat-bg);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.stat:nth-child(4) { background: var(--cobalt); color: var(--paper); } /* white on cobalt 9.0:1 (AAA) */
.stat:nth-child(4) .stat__desc { color: var(--paper); }
.stat__num {
  font-family: var(--f-serif); font-weight: 300;
  font-size: var(--t-stat); line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: lining-nums tabular-nums;
}
.stat__num sup { font-size: 0.5em; vertical-align: 0.8em; margin-left: 4px; color: var(--text-3); }
.stat:nth-child(4) .stat__num sup { color: var(--paper); opacity: 1; }
.stat__desc { color: var(--text-2); max-width: 24ch; }

.about-foot {
  margin-top: var(--g);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--g);
}
.about-foot__portrait { aspect-ratio: 4 / 5; overflow: hidden; }
.about-foot__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-foot__mid {
  padding: 8px 24px 0;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.about-foot__quote { font-size: var(--t-body-lg); line-height: 1.4; color: var(--text-2); max-width: 32ch; }
.clients { display: flex; align-items: center; gap: 16px; }
.avatars { display: flex; }
.avatars img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--paper); object-fit: cover; }
.avatars img + img { margin-left: -12px; }
.rating { font-size: var(--t-small); color: var(--text-2); line-height: 1.4; }
.rating b { color: var(--ink); font-weight: 500; letter-spacing: 0.02em; }
.about-foot__side { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-top: 8px; }
.about-foot__time { display: flex; justify-content: space-between; font-size: var(--t-small); color: var(--text-2); }
.about-foot__time strong { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ==========================================================================
   STACKED HEADER + LEDGERS
   ========================================================================== */
.head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  margin-bottom: clamp(48px, 4.17vw, 60px);
}
.head .lede { margin-top: 24px; }
.head__num { color: var(--text-3); }

.ledger { border-top: 1px solid var(--line); }
.job {
  display: grid;
  grid-template-columns: minmax(0, 544fr) minmax(0, 400fr) minmax(0, 400fr);
  column-gap: var(--g);
  padding-block: 28px 32px;
  border-bottom: 1px solid var(--line);
}
.job__title { font-family: var(--f-serif); font-weight: 400; font-size: var(--t-title); line-height: 1.15; letter-spacing: -0.02em; }
.job__company { font-weight: 500; padding-top: 4px; }
.job__dates { color: var(--text-3); font-size: var(--t-small); text-align: right; padding-top: 4px; font-variant-numeric: tabular-nums; }
.job__desc { grid-column: 2 / 4; margin-top: 16px; color: var(--text-2); max-width: 52ch; }

/* ==========================================================================
   SHOWREEL
   ========================================================================== */
.showreel {
  position: relative;
  display: block;
  width: 100%;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
  text-align: left;
}
.showreel__media { position: absolute; inset: -10% 0; }
.showreel__media img { width: 100%; height: 100%; object-fit: cover; }
.showreel__ribbon {
  position: absolute; left: 0; right: 0; top: 46%;
  background: var(--cobalt);
  color: var(--cream);
  padding-block: 16px;
}
.showreel__ribbon .ticker__group { gap: 24px; padding-right: 24px; font-family: var(--f-serif); font-weight: 300; font-size: var(--t-ribbon); line-height: 1.1; letter-spacing: -0.02em; }
.showreel__ribbon .muted { color: color-mix(in oklch, var(--cream) 62%, var(--cobalt)); }
.showreel__ribbon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }

.reel-dialog {
  width: min(1120px, calc(100vw - 2 * var(--m)));
  padding: 0; border: 0; border-radius: var(--r-panel);
  background: var(--ink); color: var(--cream); overflow: hidden;
  opacity: 1; scale: 1;
  transition: opacity .45s var(--ease-out), scale .45s var(--ease-out), display .45s allow-discrete, overlay .45s allow-discrete;
}
.reel-dialog:not([open]) { opacity: 0; scale: .96; }
@starting-style { .reel-dialog[open] { opacity: 0; scale: .96; } }
.reel-dialog::backdrop { background: rgb(21 21 21 / .72); }
.reel-dialog img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.reel-dialog__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; font-size: var(--t-small); }

/* ==========================================================================
   ACCORDIONS (services + FAQ)
   ========================================================================== */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); border-radius: 0; transition: background-color .5s var(--ease-out), border-radius .5s var(--ease-out); }
.acc__item[data-open="true"] { background: var(--greige-soft); border-radius: var(--r-card); border-bottom-color: transparent; }
.acc__item:has(+ .acc__item[data-open="true"]) { border-bottom-color: transparent; }
.acc__btn {
  width: 100%;
  display: flex; align-items: center; gap: 16px;
  min-height: 72px;
  padding: 16px 0;
  text-align: left;
  transition: padding .5s var(--ease-out);
}
.acc__item[data-open="true"] .acc__btn { padding-inline: 24px; }
.acc__num { color: var(--text-3); width: 32px; flex: none; }
.acc__title { flex: 1; font-family: var(--f-serif); font-weight: 400; font-size: var(--t-title); line-height: 1.15; letter-spacing: -0.02em; }
.acc__icon { position: relative; width: 20px; height: 20px; flex: none; transition: rotate .4s cubic-bezier(.34, 1.4, .64, 1); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: currentColor; }
.acc__icon::after { rotate: 90deg; }
.acc__item[data-open="true"] .acc__icon { rotate: 45deg; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.acc__item[data-open="true"] .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; min-height: 0; }
.acc__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 408px);
  gap: 40px;
  padding: 0 24px 24px 72px;
}
.acc__desc { font-size: var(--t-body-lg); line-height: 1.4; color: var(--text-2); max-width: 44ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--paper);
  font-size: 13px; color: var(--text-2);
}
.chip::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--cobalt); }
.acc__media { aspect-ratio: 16 / 9; overflow: hidden; align-self: start; }
.acc__media img { width: 100%; height: 100%; object-fit: cover; }

.faq .acc__btn { min-height: 64px; }
.faq .acc__title { font-size: var(--t-label); font-weight: 400; letter-spacing: -0.01em; }
.faq .acc__body { display: block; padding: 0 24px 24px; color: var(--text-2); max-width: 64ch; }

/* ==========================================================================
   TESTIMONIALS · blush panel (Ortolan)
   ========================================================================== */
.panel { border-radius: var(--r-panel); }
.panel--blush { background: var(--testi-bg); }
/* panels sit one margin inside the page grid — pull their rail back onto the shared column line */
.panel--blush .rail, .news .news__head { grid-template-columns: calc(25% - var(--m) / 2) minmax(0, 1fr); }
/* heading above the cards: same type and spacing as the News & Insights head */
.panel--blush .rail { row-gap: 0; }
.testi__head, .panel--blush .quotes { grid-column: 2; }
.testi__head { margin-bottom: clamp(48px, 4.17vw, 60px); }
.testi__head .lede { margin-top: 20px; }
/* single-line ledes on the Testimonials and News heads (wrap naturally only when the column is too narrow) */
.testi__head .lede, .news__head .lede { max-width: none; text-wrap: pretty; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--g); }
.quote {
  min-height: 280px;
  padding: 32px;
  border-radius: var(--r-card);
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.quote[hidden] { display: none; }
.quote__mark { width: 24px; height: 20px; color: var(--cobalt); }
.quote blockquote { margin-top: 20px; font-size: var(--t-body-lg); line-height: 1.4; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.quote__name { font-weight: 500; font-size: var(--t-small); }
.quote__role { font-size: 13px; color: var(--text-3); }

/* ==========================================================================
   AWARDS
   ========================================================================== */
/* with Testimonials hidden, About and Awards would double up their section padding; tighten the gap */
.wrap[hidden] + .awards-section { padding-top: var(--stack-gap); }
#about:has(+ .wrap[hidden]) { padding-bottom: 0; }
/* gap 1: work tiles -> About statement */
#about { padding-block: var(--stack-gap); }
.awards { margin-top: clamp(56px, 5.56vw, 80px); border-top: 1px solid var(--line); }
.award {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  column-gap: var(--g);
  align-items: baseline;
  min-height: 64px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
  transition: padding .45s var(--ease-out), background-color .45s var(--ease-out);
}
.award__year { color: var(--text-3); font-size: var(--t-small); font-variant-numeric: tabular-nums; }
.award__name { font-family: var(--f-serif); font-size: var(--t-body-lg); letter-spacing: -0.015em; }
.award__org { text-align: right; color: var(--text-2); font-size: var(--t-small); }
@media (hover: hover) {
  .award:hover { padding-inline: 16px; background: var(--award-hover); }
}

/* ==========================================================================
   PRICING
   ========================================================================== */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
.plan {
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  display: flex; flex-direction: column;
}
.plan--featured { background: var(--cobalt); border-color: var(--cobalt); color: var(--cream); }
.plan__top { padding: 28px 28px 32px; border-bottom: 1px solid var(--line); }
.plan--featured .plan__top { border-color: color-mix(in oklch, var(--cream) 22%, var(--cobalt)); }
.plan__tag { display: flex; align-items: center; gap: 8px; }
.plan__chip {
  font-family: var(--f-serif); font-size: 17px;
  padding: 4px 12px; border-radius: var(--r-pill);
  background: var(--greige-soft);
}
.plan--featured .plan__chip { background: var(--lime); color: var(--ink); }
.plan__popular { font-size: 13px; color: color-mix(in oklch, var(--cream) 75%, var(--cobalt)); }
.plan__price { display: flex; align-items: baseline; gap: 8px; margin-top: 48px; }
.plan__amount { font-family: var(--f-serif); font-weight: 300; font-size: var(--t-price); line-height: 1; letter-spacing: -0.04em; font-variant-numeric: lining-nums; }
.plan__old { font-family: var(--f-serif); font-size: 22px; text-decoration: line-through; text-decoration-thickness: 1px; opacity: .6; }
.plan__per { font-size: var(--t-small); color: var(--text-3); }
.plan--featured .plan__per { color: color-mix(in oklch, var(--cream) 75%, var(--cobalt)); }
.plan__desc { margin-top: 24px; color: var(--text-2); max-width: 32ch; }
.plan--featured .plan__desc { color: color-mix(in oklch, var(--cream) 86%, var(--cobalt)); }
.plan__body { flex: 1; display: flex; flex-direction: column; gap: 40px; padding: 28px; }
.plan__incl { font-size: var(--t-small); color: var(--text-3); }
.plan--featured .plan__incl { color: color-mix(in oklch, var(--cream) 75%, var(--cobalt)); }
.plan__list { margin-top: 16px; display: grid; gap: 12px; font-size: 15px; }
.plan__list li { display: flex; gap: 12px; align-items: baseline; }
.plan__list li::before { content: ""; flex: none; width: 12px; height: 7px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: -45deg; translate: 0 -3px; opacity: .8; }
.plan__cta { margin-top: auto; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); column-gap: var(--g); row-gap: 40px; }
.faq-side { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; padding-right: 40px; }
.faq-side .lede { color: var(--text-2); font-size: var(--t-body-lg); line-height: 1.4; }

/* ==========================================================================
   NEWS · lime panel (Fold7) with ragged images
   ========================================================================== */
.news {
  position: relative;
  z-index: 2;
  margin-top: 0;
  background: var(--lime);
  border-radius: var(--r-panel);
}
.news__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  column-gap: var(--g);
  align-items: end;
  margin-bottom: clamp(48px, 4.17vw, 60px);
}
.news__head { row-gap: 16px; }
.news__head > .eyebrow { align-self: start; padding-top: 12px; }
/* no section number: keep the heading on the shared content column */
.news__head-main { grid-column: 2; }
.news__head-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.news__head .lede { margin-top: 20px; color: color-mix(in oklch, var(--ink) 78%, var(--lime)); }
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); align-items: start; }
.post { display: block; }
.post__media { overflow: hidden; }
.post__media img { width: 100%; transition: scale .8s var(--ease-out); }
.post:is(:hover, :focus-visible) .post__media img { scale: 1.04; }
.post__meta { margin-top: 16px; }
.post__title { margin-top: 8px; font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 500; max-width: 26ch; }
.post__read { display: inline-block; margin-top: 12px; color: color-mix(in oklch, var(--ink) 66%, var(--lime)); }

/* ==========================================================================
   FOOTER · black (Fold7) with light serif (Ortolan) and giant wordmark
   ========================================================================== */
.to-top { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 24px var(--m); font-size: var(--t-small); }
.to-top svg { width: 16px; height: 16px; }
.footer {
  position: relative;
  margin-top: calc(var(--r-panel) * -1 + 92px);
  padding-top: calc(var(--r-panel) + var(--section));
  background: var(--night);
  color: var(--cream);
  border-radius: var(--r-panel) var(--r-panel) 0 0;
  overflow: hidden;
}
/* blue footer: remove the footer--blue class to go back to the dark footer.
   sRGB mixes keep the tints on-hue (oklch mixes of cream into cobalt drift pink) */
.footer--blue {
  --night: var(--cobalt);
  --night-text: color-mix(in srgb, var(--cream) 80%, var(--cobalt));
  --night-line: color-mix(in srgb, var(--cream) 24%, var(--cobalt));
}
.footer--blue .field :is(input, select, textarea) { background: color-mix(in srgb, #FFFFFF 12%, var(--cobalt)); }
.footer--blue .field :is(input, select, textarea):hover { border-color: color-mix(in srgb, var(--cream) 40%, var(--cobalt)); }
.footer--blue .field :is(input, select, textarea):focus-visible { background: color-mix(in srgb, #FFFFFF 16%, var(--cobalt)); }
.footer--blue .field ::placeholder { color: color-mix(in srgb, var(--cream) 86%, var(--cobalt)); } /* 4.7:1 on the field */
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: var(--g); }
.footer__portrait { aspect-ratio: 4 / 5; overflow: hidden; }
.footer__portrait img { width: 100%; height: 100%; object-fit: cover; }
.footer__intro { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding-inline: 24px 8px;
  align-self: start; aspect-ratio: 4 / 5; } /* same width + ratio as the portrait, so the email baseline lands on the photo's bottom edge */
.footer__title { font-family: var(--f-serif); font-weight: 300; font-size: clamp(36px, 3.33vw, 48px); line-height: 1.04; letter-spacing: -0.025em; }
.footer__sub { margin-top: 20px; color: var(--night-text); max-width: 30ch; }
.footer__contacts { display: grid; gap: 24px; }
.footer__email { display: block; width: fit-content; line-height: 1; margin-bottom: -0.136em; } /* pull the descender below the column so the baseline sits on the photo's bottom edge (works without text-box support) */
.footer__contacts .eyebrow { color: var(--night-text); margin-bottom: 8px; }
.footer__email { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.footer__links { display: flex; gap: 20px; }
.footer__links a { min-height: 32px; display: inline-flex; align-items: center; }

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px var(--g); align-content: start; padding-left: clamp(0px, 5.56vw, 80px); }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--night-text); }
.field :is(input, select, textarea) {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: color-mix(in oklch, var(--cream) 7%, var(--night));
  color: var(--cream);
  font: inherit;
  transition: border-color .3s ease, background-color .3s ease;
  appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { min-height: 148px; resize: vertical; }
.field ::placeholder { color: color-mix(in oklch, var(--cream) 40%, var(--night)); }
.field :is(input, select, textarea):hover { border-color: var(--night-line); }
.field :is(input, select, textarea):focus-visible { outline: none; border-color: var(--lime); background: color-mix(in oklch, var(--cream) 10%, var(--night)); }
.field:has(:user-invalid) label { color: #FFB4A8; }
.field :user-invalid { border-color: #FFB4A8; }
.form .pill { grid-column: 1 / -1; justify-content: space-between; }
.form__status { grid-column: 1 / -1; min-height: 20px; font-size: 13px; color: var(--lime); }

.footer__mark {
  margin-top: clamp(80px, 11vw, 160px);
  padding-inline: var(--m);
  font-family: var(--f-display);
  color: var(--lime);
  line-height: 0.8;
  white-space: nowrap;
  font-size: 12vw;
  letter-spacing: -0.015em;
  translate: 0 0.06em;
  user-select: none;
}
.footer__mark .reg { font-size: 0.42em; vertical-align: 1.18em; margin-left: 0.04em; }
.footer__legal {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: flex-start;
  margin-top: 40px;
  padding: 20px var(--m) 24px;
  border-top: 1px solid var(--night-line);
  font-size: 13px; color: var(--night-text);
}
.footer__legal nav { display: flex; gap: 24px; }
.footer__legal p:last-child { text-align: left; }
.footer__legal a:hover { color: var(--cream); }

/* ==========================================================================
   GRAIN + CURSOR
   ========================================================================== */
.grain {
  position: fixed; inset: 0; z-index: 50;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.05;
}
.grain::before {
  content: ""; position: absolute; inset: -256px; /* one texture tile of overscan, not 3x the viewport */
  background: url("img/grain.png") repeat;
  background-size: 256px 256px;
}
@media (prefers-reduced-motion: no-preference) {
  .grain::before { animation: grain 8s steps(10) infinite; }
}
@keyframes grain {
  0% { transform: translate(0, 0); } 10% { transform: translate(-64px, -128px); } 20% { transform: translate(-192px, 64px); }
  30% { transform: translate(96px, -224px); } 40% { transform: translate(-48px, 192px); } 50% { transform: translate(-224px, 96px); }
  60% { transform: translate(192px, 0); } 70% { transform: translate(0, 160px); } 80% { transform: translate(32px, 240px); }
  90% { transform: translate(-128px, 128px); } 100% { transform: translate(0, 0); }
}

.cursor { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; display: none; }
.cursor__bubble {
  position: absolute; margin: -52px 0 0 -52px;
  width: 104px; height: 104px; border-radius: 50%;
  display: grid; place-items: center;
  padding: 16px; text-align: center; text-wrap: balance; line-height: 1.15;
  background: var(--lime); color: var(--ink);
  font-size: 14px; font-weight: 500; /* hover label */
  scale: 0;
  transition: scale .45s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  body.cursor-media .cursor__bubble { scale: 1; }
  body.cursor-media :is(.tile, .showreel, .wordmark[data-cursor], .footer__mark[data-cursor]) { cursor: none; }
}

/* ==========================================================================
   INTRO + ENTER
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .js .hero__panel { animation: panel-in 1.4s var(--ease-out) backwards; }
  .js .wordmark .wordmark__line i { display: inline-block; animation: letter-in 1.5s var(--ease-out) both; animation-delay: calc(.25s + var(--i) * 45ms); }
  .js .hero__kicker { animation: fade-up 1.2s var(--ease-out) .9s both; }
  .js .nav { animation: fade 1s ease 1.1s both; }
  .js .hero__band > * { animation: fade-up 1.2s var(--ease-out) both; }
  .js .hero__intro { animation-delay: 1.1s; }
  .js .logos { animation-delay: 1.3s; }
  .js .mosaic { animation: fade-up 1.4s var(--ease-out) 1.4s both; }
}
@keyframes panel-in { from { clip-path: inset(0 0 22% 0 round 0 0 var(--r-panel) var(--r-panel)); } to { clip-path: inset(0 0 0 0 round 0 0 var(--r-panel) var(--r-panel)); } }
@keyframes letter-in { from { transform: translateY(60%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1199px) {
  .rail { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .about-foot__side { grid-column: 1 / -1; flex-direction: row; align-items: center; }
  .about-foot__side .pill { width: auto; min-width: 240px; }
  .about-foot__time { gap: 40px; }
  .job { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .job__company { grid-column: 1; grid-row: 2; padding-top: 0; }
  .job__dates { grid-column: 2; grid-row: 1; }
  .job__desc { grid-column: 1 / -1; }
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 720px; }
  .acc__body { grid-template-columns: minmax(0, 1fr) minmax(200px, 288px); padding-left: 72px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 64px; }
  .form { grid-column: 1 / -1; padding-left: 0; }
}

@media (max-width: 809px) {
  :root { --r-panel: 16px; --r-card: 12px; }
  .hero__panel { height: clamp(520px, 84svh, 720px); }
  .hero__kicker { font-size: 12px; }
  .wordmark { line-height: 0.84; translate: 0 0.1em; }
  .hero__intro { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .hero__statement { font-size: clamp(34px, 9.4vw, 56px); line-height: 1.08; }
  .hero__meta { justify-self: start; }
  .logos .ticker__group { gap: 40px; padding-right: 40px; }
  .mosaic { grid-template-columns: minmax(0, 1fr); }
  .tile__band .ticker__group { font-size: 18px; }
  .tile__caption { grid-template-columns: 1fr 1fr; }
  .tile__caption span:nth-child(2) { display: none; }
  .news__head > .eyebrow { padding-top: 0; }
  .nav { background: var(--nav-bg, transparent); transition: color .35s ease, background-color .35s ease; }
  .rail, .faq-grid, .news__head { grid-template-columns: minmax(0, 1fr); }
  .news__head-main { grid-column: auto; }
  .rail > .rail__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .panel--blush .rail, .news .news__head { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat { min-height: 180px; }
  .about-foot { grid-template-columns: minmax(0, 1fr); }
  .about-foot__mid { padding: 16px 0 0; }
  .about-foot__side { flex-direction: column; align-items: stretch; }
  .about-foot__side .pill { width: 100%; }
  .head { grid-template-columns: minmax(0, 1fr); }
  .head__num { order: -1; }
  .job { grid-template-columns: minmax(0, 1fr); }
  .job__dates { grid-column: 1; grid-row: 3; text-align: left; }
  .showreel { height: 72svh; }
  .showreel__ribbon { top: 42%; }
  .acc__body { grid-template-columns: minmax(0, 1fr); padding: 0 16px 16px; }
  .acc__item[data-open="true"] .acc__btn { padding-inline: 16px; }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .testi__head, .panel--blush .quotes { grid-column: auto; }
  .quote { min-height: 0; padding: 24px; }
  .panel--blush { border-radius: var(--r-panel); }
  .award { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .award__name { grid-column: 1 / -1; grid-row: 1; }
  .award__org { text-align: left; }
  .faq-side { padding-right: 0; }
  .posts { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .footer__intro { padding-inline: 0; aspect-ratio: auto; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .footer__mark .wordmark__line { display: block; }
.wordmark__letters .reg { display: inline-block; }
  .footer__legal { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer__legal p:last-child { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
