/* ============================================================
   STUDIO ROO — Art & Design
   "The Drafting Table" — navy ink on flecked paper,
   scroll-driven sign-painter craft
   ============================================================ */

:root {
  /* ---------- Official brand palette ----------
     Source: StudioRoo_BrandGuidelines (7.2.26).jpg
     These five are canonical. Do not edit without a guideline update. */
  --brand-white:  #FFFFFF;
  --brand-navy:   #1C365B;
  --brand-blue:   #27528D;
  --brand-orange: #DA553B;
  --brand-black:  #000000;

  /* ---------- Semantic aliases ----------
     Legacy names kept so ~900 lines of rules stay untouched.
     Every one now resolves to an official value. */
  --ink:   var(--brand-navy);    /* corrected 2026-07-20, was off-guideline */
  --pen:   var(--brand-blue);    /* corrected 2026-07-20, was off-guideline */
  --brick: var(--brand-orange);  /* corrected 2026-07-20, was off-guideline */

  /* ---------- Derived ----------
     Proportional shades of the official anchors, not hand-picked. */
  --ink-deep:    #122239;  /* navy darkened ~63%, matches prior ratio */

  /* ---------- Channel triplets ----------
     rgba() cannot read a hex custom property, so every translucent rule in
     this file used to carry its own literal numbers. Those literals were
     still the OLD off-guideline navy, blue and orange after the 2026-07-20
     correction. These give the translucent rules one source as well.
     Usage: rgb(var(--navy-rgb) / .3) */
  --navy-rgb:     28 54 91;    /* #1C365B */
  --blue-rgb:     39 82 141;   /* #27528D */
  --orange-rgb:   218 85 59;   /* #DA553B */
  --paper-rgb:    237 234 227; /* #EDEAE3 */
  --ink-deep-rgb: 18 34 57;    /* #122239 */

  /* ---------- Surfaces ----------
     Surface flip 2026-07-22 (H0): white is the dominant surface, paper texture is
     an opt-in accent via .texture. Riley: "clean white backgrounds as much as
     possible… every so often, use my paper textured light background tastefully." */
  --surface: #FFFFFF;
  --surface-rgb: 255 255 255;
  --paper: #EDEAE3;
  --paper-deep: #E3DFD5;

  /* AA-passing orange for text under 24px on light surfaces (F2).
     #DA553B stays for display sizes and decoration only. */
  --orange-text: #B84325;

  /* ---------- Type ----------
     Sofia Pro (real brand face, licensed, self-hosted via css/fonts.css) is the
     display everywhere — Riley 7/24: "I hate a serif font for Studio Roo."
     Professor is the script face (Riley's brand font, live 7/25); Caveat backs it up
     for punctuation because Professor's punctuation glyphs are blank. */
  --display: "Sofia Pro", "Archivo", Arial, sans-serif;
  --script: "Professor", "Caveat", cursive;   /* Caveat renders the punctuation Professor lacks */
  /* DEPRECATED 7/27 (Riley): raw Caveat is retired. Zero usages remain — informational
     lines went to Neulis Neue, script accents to var(--script). Do not reintroduce.
     Caveat itself stays loaded because var(--script) needs it for punctuation. */
  --hand: "Caveat", cursive;
  --sans: "Archivo", Arial, sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--surface); }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--surface);
  overflow-x: hidden;
}

/* opt-in paper accent surface — apply only where paper earns its place */
.texture {
  background-color: var(--paper);
  background-image:
    /* dark flecks — paper inclusions (denser) */
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='240'%20height='240'%3E%3Cfilter%20id='s'%3E%3CfeTurbulence%20type='turbulence'%20baseFrequency='0.68'%20numOctaves='1'%20seed='9'%20stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='discrete'%20tableValues='0%200%200%200%200%200%200%201'/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix%20values='0%200%200%200%200.1%200%200%200%200%200.16%200%200%200%200%200.29%200%200%200%200.7%200'/%3E%3C/filter%3E%3Crect%20width='240'%20height='240'%20filter='url(%23s)'/%3E%3C/svg%3E"),
    /* lighter flecks — smaller, second pass */
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='190'%20height='190'%3E%3Cfilter%20id='s2'%3E%3CfeTurbulence%20type='turbulence'%20baseFrequency='0.9'%20numOctaves='1'%20seed='23'%20stitchTiles='stitch'/%3E%3CfeComponentTransfer%3E%3CfeFuncA%20type='discrete'%20tableValues='0%200%200%200%200%200%201'/%3E%3C/feComponentTransfer%3E%3CfeColorMatrix%20values='0%200%200%200%200.12%200%200%200%200%200.19%200%200%200%200%200.33%200%200%200%200.4%200'/%3E%3C/filter%3E%3Crect%20width='190'%20height='190'%20filter='url(%23s2)'/%3E%3C/svg%3E"),
    /* fine overall grain */
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='170'%20height='170'%3E%3Cfilter%20id='g'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.9'%20numOctaves='2'%20seed='4'/%3E%3CfeColorMatrix%20values='0%200%200%200%200.12%200%200%200%200%200.16%200%200%200%200%200.26%200%200%200%200.09%200'/%3E%3C/filter%3E%3Crect%20width='170'%20height='170'%20filter='url(%23g)'/%3E%3C/svg%3E"),
    /* soft paper unevenness */
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='360'%20height='360'%3E%3Cfilter%20id='b'%3E%3CfeTurbulence%20type='fractalNoise'%20baseFrequency='0.014'%20numOctaves='3'%20seed='11'/%3E%3CfeColorMatrix%20values='0%200%200%200%200.13%200%200%200%200%200.2%200%200%200%200%200.34%200%200%200%200.06%200'/%3E%3C/filter%3E%3Crect%20width='360'%20height='360'%20filter='url(%23b)'/%3E%3C/svg%3E");
  background-size: 240px 240px, 190px 190px, 170px 170px, 360px 360px;
  background-position: 0 0, 55px 40px, 40px 30px, 0 0;
}

::selection { background: var(--brick); color: var(--paper); }

img { max-width: 100%; display: block; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--pen);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--surface);
  display: grid; place-items: center;
  transition: transform .7s var(--ease-out), visibility 0s .7s;
}
.preloader.done { transform: translateY(-101%); visibility: hidden; }
.preloader__inner { text-align: center; }
.preloader__badge {
  display: block;
  width: min(170px, 40vw);
  margin: 0 auto;
  animation: stampIn .55s var(--ease-out) both;
}
@keyframes stampIn {
  0% { opacity: 0; transform: scale(1.6) rotate(-6deg); }
  60% { opacity: 1; transform: scale(.96) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* ---------- custom cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 190;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brick);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, background .25s, opacity .25s;
  opacity: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-size: 0; font-weight: 700; letter-spacing: .1em;
  color: var(--paper);
}
.cursor.on { opacity: .9; }
.cursor.grow { width: 44px; height: 44px; background: var(--ink); opacity: .92; }
.cursor.view { width: 64px; height: 64px; background: var(--brick); font-size: .6rem; }
.cursor.view::after { content: "VIEW"; }
@media (hover: none), (prefers-reduced-motion: reduce) {
  .cursor { display: none; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem clamp(1.2rem, 4vw, 3rem);
  background: transparent;
  transition: background .35s, box-shadow .35s, padding .35s;
}
.nav.scrolled {
  background: rgb(var(--surface-rgb) / .96);
  box-shadow: 0 1px 0 rgb(var(--navy-rgb) / .25);
  padding-top: .55rem; padding-bottom: .55rem;
}
/* blur only on desktop: backdrop-filter would make the fixed
   mobile menu position against the nav instead of the viewport */
@media (min-width: 721px) {
  .nav.scrolled { background: rgb(var(--surface-rgb) / .9); backdrop-filter: blur(6px); }
}
.nav__logo { position: relative; display: inline-flex; align-items: center; height: 42px; text-decoration: none; }
.nav__logo-lockup { height: 34px; width: auto; display: block; opacity: 1; }
.nav__logo-mark {
  position: absolute; left: 0; top: 50%;
  height: 42px; width: auto; object-fit: contain;
  transform: translateY(-50%); transform-origin: left center;
  opacity: 0;
}
/* logo choreography: JS adds .logo-anim (motion only). At the top of the page the
   pencil monogram sits centered in the header; on first scroll it slides to the
   top-left and cross-fades into the full CrestLong lockup — the standalone mark and
   the wordmark resolve into one combined logo. JS drives the transforms/opacity
   inline every frame so the move tracks the scroll. These are the pre-JS / fallback
   states; no JS or reduced motion = static lockup, top-left. */
.nav.logo-anim .nav__logo-mark { opacity: 1; transition: opacity .18s linear; }
.nav.logo-anim .nav__logo-lockup { opacity: 0; transition: opacity .2s linear; }
/* links fade in with the scroll and only become clickable once the mark has docked.
   Desktop only (mobile uses the burger). */
@media (min-width: 721px) {
  .nav.logo-anim .nav__links { opacity: 0; pointer-events: none; transition: opacity .15s linear; }
  .nav.logo-anim.nav-docked .nav__links:not(.open) { pointer-events: auto; }
}
.nav__links { display: flex; align-items: center; gap: clamp(.9rem, 2.2vw, 1.9rem); }
.nav__links a {
  text-decoration: none;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  position: relative; padding: .3rem 0;
}
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--brick);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta {
  border: 2px solid var(--ink);
  padding: .55rem 1.1rem !important;
  transition: background .3s, color .3s;
}
.nav__cta:hover { background: var(--ink); color: var(--paper); }
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.nav__burger span {
  display: block; width: 26px; height: 3px; background: var(--ink);
  transition: transform .3s var(--ease-out), background .3s;
}
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }

/* ---------- shared ---------- */
.section { padding: clamp(4.5rem, 9vw, 8rem) clamp(1.6rem, 5vw, 4rem); }

.section__head { text-align: center; max-width: 820px; margin: 0 auto clamp(2rem, 4vw, 3.5rem); }

.section__title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: .8rem 0 1rem;
}

.label {
  display: inline-flex; align-items: center; gap: .9rem;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase;
}
/* Riley's slider divider (Drive: StudioRoo_DividerSlider, 556x56) replaces the
   old CSS-drawn line-and-dot — navy on light surfaces, white via .label--paper.
   Sized small per Riley 7/25 ("scale the slider dividers much smaller"). */
.label__dot {
  width: 38px; aspect-ratio: 556 / 56;
  background: url(../assets/brand/dividers/divider-navy.png) center / contain no-repeat;
}
.label--paper .label__dot { background-image: url(../assets/brand/dividers/divider-white.png); }

.btn {
  display: inline-block;
  font-family: var(--sans); font-size: .8rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.8rem;
  border: 2px solid var(--ink);
  position: relative; overflow: hidden;
  cursor: pointer;
  background: transparent; color: var(--ink);
}
.btn span { position: relative; z-index: 1; transition: color .35s; }
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .35s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:hover span, .btn:focus-visible span { color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink::before { background: var(--brick); }
.btn--paper { border-color: var(--paper); color: var(--paper); }
.btn--paper::before { background: var(--paper); }
.btn--paper:hover span, .btn--paper:focus-visible span { color: var(--ink); }

/* pen annotations */
.pen-note { position: relative; display: inline-block; white-space: nowrap; }
.pen-underline {
  position: absolute; left: 0; right: 0; bottom: -.18em;
  width: 100%; color: var(--brick);
  pointer-events: none;
}
.pen-underline path, .pen-arrow path {
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
}
.drawn .pen-underline path, .drawn.pen-arrow path, .drawn .pen-arrow path {
  animation: penDraw 1.15s var(--ease-out) forwards;
}
@keyframes penDraw { to { stroke-dashoffset: 0; } }

/* a little pencil rides along the underline as it draws in (fires with .drawn,
   so it runs everywhere the underline reveals: home, story, case studies) */
.pen-note--under::after {
  content: "\270E";
  position: absolute; left: 0; bottom: -.58em;
  font-size: .72em; line-height: 1; color: var(--brick);
  opacity: 0; pointer-events: none;
  transform: rotate(6deg); will-change: left, opacity;
}
.drawn.pen-note--under::after, .drawn .pen-note--under::after {
  animation: pencilTrace 1.15s var(--ease-out) forwards;
}
@keyframes pencilTrace {
  0%   { opacity: 0; left: 0; }
  12%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { opacity: 0; left: calc(100% - .5em); }
}

/* Riley 7/27: the informational script lines move to Neulis Neue. The handwritten
   look is now reserved for Professor (var(--script)) on the deliberate quips. */
.pen-script { font-family: "Neulis Neue", var(--sans); font-weight: 500; font-size: 1.5rem; color: var(--orange-text); }
.pen-script--paper { color: var(--brand-orange); }
.pen-arrow { width: 70px; color: var(--brick); overflow: visible; }

/* giant ink-fill headlines */
.fill-text {
  position: relative;
  display: block;
  font-family: var(--sans); font-weight: 900;
  font-size: clamp(3rem, 11vw, 9rem);
  letter-spacing: .06em;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  user-select: none;
}
.fill-text__ghost {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px rgb(var(--navy-rgb) / .5);
}
.fill-text__ink {
  position: absolute; inset: 0;
  display: block;
  color: var(--ink);
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}
.fill-text__ink--paper { color: var(--paper); }
.services .fill-text__ghost { -webkit-text-stroke-color: rgb(var(--paper-rgb) / .45); }

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
/* directional reveals: content slides in from a side as it enters */
.reveal--left  { transform: translateX(-44px); }
.reveal--right { transform: translateX(44px); }
.reveal--left.in, .reveal--right.in { transform: none; }

/* load sequence */
.load-rise { opacity: 0; transform: translateY(28px); }
body.ready .load-rise {
  animation: riseIn .8s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }
.load-draw { opacity: 0; }
body.ready .load-draw { opacity: 1; transition: opacity .2s; transition-delay: var(--d, 0s); }

/* ---------- pinned scrub sections (JS sets outer height) ---------- */
.pin { position: relative; }
.pin__stage {
  position: sticky; top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 7rem clamp(1.6rem, 5vw, 4rem) 5rem;
  position: relative;
  overflow: hidden;
}
.hero__side {
  position: absolute; top: 50%;
  font-size: .68rem; font-weight: 600; letter-spacing: .32em;
  opacity: .55; white-space: nowrap;
}
.hero__side--l { left: 34px; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; }
.hero__side--r { right: 14px; transform: translateY(-50%); writing-mode: vertical-rl; }

.hero__layer { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.spark {
  position: absolute;
  font-size: 1.2rem; color: var(--ink); opacity: 0;
}
.spark--pen { color: var(--pen); font-size: 1.6rem; }
.hero__bolt {
  position: absolute;
  font-size: 2rem; color: var(--brick); opacity: 0;
  transform: rotate(12deg);
}
body.ready .spark { animation: twinkle 4.5s ease-in-out infinite; }
body.ready .spark:nth-child(2n) { animation-delay: 1.4s; font-size: 1rem; }
body.ready .spark:nth-child(3n) { animation-delay: 2.6s; }
body.ready .hero__bolt { animation: twinkle 6s 1.8s ease-in-out infinite; }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.6) rotate(-8deg); }
  50% { opacity: .55; transform: scale(1) rotate(6deg); }
}

.hero__monogram {
  width: clamp(84px, 11vw, 120px);
  margin: 1.6rem auto 1rem;
}
.hero__title { display: flex; flex-direction: column; position: relative; }
.hero__script {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  line-height: 1;
  transform: rotate(-2deg);
  position: relative; z-index: 3;   /* keep the script above the circle so the loop sits under it, not over */
}
body.ready .hero__script.load-rise { animation-name: riseInTilt; }
@keyframes riseInTilt { to { opacity: 1; transform: translateY(0) rotate(-2deg); } }

/* paint-swipe slab: outline sits under, ink version wipes across */
.hero__slab {
  position: relative;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2rem, 9.4vw, 8rem);
  line-height: .95;
  letter-spacing: .01em;
  margin-top: .1em;
}
.hero__slab-outline {
  display: block;
  position: relative; z-index: 2;
  color: transparent;
  -webkit-text-stroke: 2px rgb(var(--navy-rgb) / .38);
  opacity: 0;
}
body.ready .hero__slab-outline { animation: fadeIn .4s .55s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.hero__slab-paint {
  position: absolute; inset: 0;
  display: block;
  z-index: 2;
  color: var(--ink);
  clip-path: inset(-10% 100% -10% 0);
}
body.ready .hero__slab-paint { animation: paintSwipe 1s .75s var(--ease-out) forwards; }
@keyframes paintSwipe { to { clip-path: inset(-10% -2% -10% 0); } }
.hero__dot { color: var(--brick); }


.hero__sub { margin: 1.8rem auto 2.2rem; max-width: 520px; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  text-decoration: none;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase;
  opacity: .7;
}
.hero__pencil { font-size: 1.3rem; display: block; }
body.ready .hero__pencil { animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(7px) rotate(8deg); } }

/* solid color band divider (~1in tall) */
.band--blue { height: clamp(72px, 10vh, 96px); background: var(--brand-blue); }

/* ---------- minimal hero (Riley 7/25 mockup: left-aligned, compact, carousel
   below must be TALLER than this hero text block) ---------- */
.hero--min {
  min-height: auto;
  align-items: flex-start;
  text-align: left;
  padding: clamp(7rem, 14vh, 9.5rem) clamp(1.6rem, 5vw, 4rem) clamp(2.6rem, 5vh, 4rem) 8.6vw;
}
.hero__head {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.9rem, 3.4vw, 3.4rem);
  line-height: 1.1; letter-spacing: -.005em;
  max-width: 24ch; margin: 0;
}
.hero--min .hero__sub { margin: 1.3rem 0 1.7rem; }
.hero--min .hero__actions { justify-content: flex-start; }

/* ---------- craft (pinned index-card flip) ----------
   The section pins for extra viewports; a stack of five studio index cards flips
   through one at a time, scroll-linked (JS drives each card's rotateX). Default
   (no JS / reduced motion) = the cards stack in normal flow, all readable.
   Riley 7/25: the section fades to DARK MODE (black bg, white elements) as you
   scroll into it, matching his CRAFT infographic; the paper cards pop on black. */
.craft { background: var(--surface); transition: background .7s var(--ease-out); }
.craft.is-dark { background: #0B0C0E; }
.craft .section__head .label,
.craft .section__title { transition: color .7s var(--ease-out); }
.craft.is-dark .section__head .label,
.craft.is-dark .section__title { color: #FFFFFF; }
.craft.is-dark .label__dot { background-image: url(../assets/brand/dividers/divider-white.png); }
.craft.is-dark .craft__tog { color: #FFFFFF; }
.craft.is-dark .craft__toggle { border-color: #FFFFFF; }
.craft.is-dark .craft__tog:hover { background: rgb(255 255 255 / .14); }
.craft.is-dark .craft__tog.is-active { background: #FFFFFF; color: #0B0C0E; }
.craft__stage { justify-content: center; gap: clamp(1.4rem, 4vh, 2.6rem); }
.craft__stage .section__head { margin-bottom: 0; padding: 0 clamp(1.6rem, 5vw, 4rem); }
.craft__deck {
  list-style: none;
  display: flex; flex-direction: column; gap: 1.1rem;
  width: min(460px, 88vw); margin: 1rem auto 0;
}
.craft__card {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 190px;
  background: var(--paper);
  padding: clamp(1.5rem, 3vw, 2.3rem) clamp(1.4rem, 2.4vw, 2rem);
  box-shadow: 0 16px 38px rgb(var(--ink-deep-rgb) / .18);
  border-radius: 5px;
  transform-origin: top center;
  backface-visibility: hidden;
}
/* faint ruled index-card lines */
.craft__card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: 5px;
  background-image: repeating-linear-gradient(rgb(var(--navy-rgb)/0) 0 29px, rgb(var(--navy-rgb)/.09) 29px 30px);
  pointer-events: none;
}
/* strip of "tape" pinning the top of each card */
.craft__card::before {
  content: ""; position: absolute; z-index: 2; top: -11px; left: 50%;
  width: 92px; height: 22px;
  transform: translateX(-50%) rotate(-2.5deg);
  background: rgb(var(--orange-rgb) / .5);
}
.craft__card > * { position: relative; z-index: 1; }
.craft__letter {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.8rem, 6vw, 4.4rem); line-height: 1;
  color: var(--brick); display: block;
}
.craft__card:nth-child(2n) .craft__letter { color: var(--pen); }
.craft__card h3 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin: .3rem 0 .45rem;
}
.craft__card p { font-size: 1rem; line-height: 1.55; }
/* JS enables the scroll-flip: cards stack absolutely inside the pinned stage */
.craft__deck.is-stacked {
  display: block; position: relative;
  height: min(340px, 58vh);
  perspective: 1600px;
}
.craft__deck.is-stacked .craft__card {
  position: absolute; inset: 0; margin: 0; will-change: transform, opacity;
}

/* ---------- work (5:4 medium thumbnail grid, Riley 7/24) ----------
   Every case study is an equal 5:4 card, including the photo-only Individuals.
   Cards linking to a page carry --page (chevron affordance). */
.gallery { background: var(--surface); padding-bottom: clamp(2.6rem, 5vw, 4rem); }
/* The Work as its own page (Riley 7/25): clear the fixed nav */
.gallery--page { padding-top: clamp(7.5rem, 14vh, 10rem); }
.gallery__bigword { margin-bottom: clamp(1.6rem, 4vw, 3rem); }
.workgrid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem) clamp(1.1rem, 2.2vw, 1.8rem);
  max-width: 1280px; margin: 0 auto;
}
.workcard { display: block; text-decoration: none; color: var(--ink); }
.workcard__media { overflow: hidden; border-radius: 3px; }
.workcard__media img {
  width: 100%; height: 100%; object-fit: cover;
  aspect-ratio: 5 / 4;
  transition: transform .7s var(--ease-out), filter .5s var(--ease-out);
}
.workcard:hover .workcard__media img { transform: scale(1.04); }
/* darken-the-siblings: hovering one card dims the rest so it glows */
@media (hover: hover) {
  .workgrid:hover .workcard:not(:hover) .workcard__media img { filter: brightness(.55) saturate(.6); }
  .workgrid:hover .workcard:not(:hover) .workcard__head { opacity: .4; }
  .workcard__head { transition: opacity .5s var(--ease-out); }
}
.workcard__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: .8rem;
  padding-top: .6rem;
}
.workcard__head h3 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.02rem, 1.6vw, 1.3rem);
  line-height: 1.15;
  transition: color .3s;
}
.workcard:hover .workcard__head h3 { color: var(--orange-text); }
/* small grey chevron only on cards that open a case page */
.workcard--page .workcard__head h3::after {
  content: "\203A";
  margin-left: .35em;
  color: rgb(var(--navy-rgb) / .32);
  font-weight: 700;
  display: inline-block;
  transition: transform .3s var(--ease-out), color .3s;
}
.workcard--page:hover .workcard__head h3::after { color: var(--orange-text); transform: translateX(5px); }
.workcard__head span {
  font-size: .62rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  white-space: nowrap;
  opacity: .55;
}
@media (max-width: 980px) { .workgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .workgrid { grid-template-columns: 1fr; } }
.gallery__end {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding-top: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

/* ---------- mural wipe ---------- */
.mural { background: var(--ink-deep); color: var(--paper); }
.mural__stage { padding: 0; }
.mural__before {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem;
  text-align: center;
  will-change: opacity, transform;
  overflow: hidden;
  /* the real blank wall, with a soft center wash so the cream headline reads.
     Locked to the sticky stage so it aligns pixel-for-pixel with the reveal.
     (the "studio blue" concept wall was a website-only device — removed 2026-07-24) */
  background:
    radial-gradient(ellipse at center, rgb(var(--ink-deep-rgb) / .55) 0%, rgb(var(--ink-deep-rgb) / .1) 62%),
    url(../assets/work/blank-wall-before.jpg) center / cover no-repeat;
}
.mural__before > * { position: relative; z-index: 1; }
.mural__boring {
  font-family: var(--sans); font-weight: 900;
  font-size: clamp(3rem, 10vw, 8.5rem);
  line-height: .96; letter-spacing: .02em;
  color: var(--paper);
}
/* stays script (Professor) — it's a quip, not an informational line */
.mural__boring-sub { font-family: var(--script); font-weight: 400; font-size: 1.7rem; color: var(--paper); }
.mural__reveal {
  position: absolute; inset: 0;
  clip-path: inset(0 100% 0 0);
  will-change: clip-path;
}
.mural__reveal img {
  width: 100%; height: 100%; object-fit: cover;
}
.mural__roller {
  position: absolute; top: 0; bottom: 0; left: 100%;
  width: 10px;
  background: var(--brick);
  box-shadow: 0 0 24px rgb(var(--orange-rgb) / .8);
  opacity: 0;
  transition: opacity .3s;
}
.mural__after {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.6rem;
  text-align: center;
  background: linear-gradient(rgb(var(--ink-deep-rgb) / .55), rgb(var(--ink-deep-rgb) / .72));
  opacity: 0;
  will-change: opacity;
  padding: 1.5rem;
}
.mural__quote {
  font-family: var(--sans); font-weight: 900;
  font-size: clamp(2rem, 6vw, 4.6rem);
  line-height: 1.05;
  color: var(--paper);
  text-shadow: 0 2px 18px rgb(var(--ink-deep-rgb) / .6);
}
.mural__quote-script {
  display: block;
  font-family: var(--script); font-weight: 400;
  font-size: .55em;
  color: var(--brand-orange);
  transform: rotate(-2deg);
  margin-bottom: .2em;
}
/* slab + CTAs are staged by JS after the script line; inline-block so they can translate.
   Default opacity stays 1 so no-JS / reduced-motion still shows everything. */
.mural__quote-slab { display: inline-block; }
/* Riley's quip artwork stands in for the quote text (7/25). Orange on the dark
   scrim; a soft drop shadow keeps it readable over busy mural photography. */
.mural__quote-art {
  width: min(640px, 80vw);
  filter: drop-shadow(0 4px 22px rgb(0 0 0 / .45));
}
/* deliberately quiet corner link to the Abandoned Mural case study */
.mural__case-link {
  position: absolute; left: clamp(1.2rem, 3vw, 2.4rem); bottom: clamp(1.1rem, 3vw, 2rem);
  font-size: .68rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--brand-white);
  text-decoration: none;
  opacity: .7;
  border-bottom: 1px solid rgb(var(--surface-rgb) / .4);
  padding-bottom: .2rem;
  transition: opacity .3s;
}
.mural__case-link:hover, .mural__case-link:focus-visible { opacity: 1; }
/* label that resolves under the framed piece as it shrinks into a case study */
.mural__caption {
  position: absolute; left: 0; right: 0; bottom: 10%;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  text-align: center; opacity: 0; pointer-events: none;
  z-index: 3;
}
.mural__caption-name {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.4rem, 3.2vw, 2.4rem); color: var(--paper); letter-spacing: .01em;
}
.mural__caption-cat {
  font-size: .82rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--paper); opacity: .82;
}

/* ---------- services ----------
   Hard-edged blue slab on the white page: solid borders, no rounding,
   blue stays blue (no blue-to-white transition — Riley's explicit call). */
.services { background: var(--ink); color: var(--paper); position: relative; overflow: hidden; border-top: 6px solid var(--ink-deep); border-bottom: 6px solid var(--ink-deep); }
.services__bigword { margin-bottom: .4rem; }
.services__tag { text-align: center; margin-bottom: clamp(2rem, 4vw, 3.4rem); }
.services__list { list-style: none; max-width: 900px; margin: 0 auto; border: 2px solid rgb(var(--surface-rgb) / .85); }
/* each services row slides in from the left as it scrolls into view
   (per-row reveal so the motion actually plays on screen, not before) */
.service.reveal { transform: translate(-38px, 14px); }
.service.reveal.in { transform: none; }
.service {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "num name note" "num desc note";
  column-gap: 1.6rem;
  align-items: center;
  padding: 1.7rem 1.2rem;
  border-bottom: 2px solid rgb(var(--surface-rgb) / .85);
  position: relative;
  transition: padding-left .4s var(--ease-out), opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.service:last-child { border-bottom: none; }
.service::before {
  content: ""; position: absolute; inset: 0;
  background: var(--ink-deep);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
  z-index: 0;
}
.service:hover { padding-left: 1.6rem; }
.service:hover::before { transform: scaleX(1); }
.service > * { position: relative; z-index: 1; }
.service__num { grid-area: num; font-size: 1.1rem; color: var(--brick); }
.service__name {
  grid-area: name;
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.service__desc { grid-area: desc; opacity: .85; font-size: .98rem; max-width: 560px; }
.service__note {
  grid-area: note;
  font-family: var(--script); font-weight: 400; font-size: 1.35rem;
  color: var(--paper);
  transform: rotate(-3deg);
  opacity: 0;
  transition: opacity .35s, transform .35s var(--ease-out);
}
.service:hover .service__note { opacity: 1; transform: rotate(-6deg) translateY(-2px); }

/* ---- sub-services dropdown (Riley 7/24): click a service to expand ---- */
.service--subs { cursor: pointer; grid-template-areas: "num name note" "num desc note" "num subs note"; }
.service__caret {
  display: inline-block; margin-left: .55em;
  width: .55em; height: .55em;
  border-right: 2.5px solid rgb(var(--paper-rgb) / .6);
  border-bottom: 2.5px solid rgb(var(--paper-rgb) / .6);
  transform: translateY(-.15em) rotate(45deg);
  transition: transform .35s var(--ease-out);
}
.service.open .service__caret { transform: translateY(.05em) rotate(225deg); }
.service__subs {
  grid-area: subs;
  list-style: none;
  display: flex; flex-wrap: wrap; gap: .45rem .5rem;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .5s var(--ease-out), opacity .4s, margin .4s;
}
.service.open .service__subs { max-height: 260px; opacity: 1; margin-top: .9rem; }
.service__subs li {
  font-size: .74rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid rgb(var(--paper-rgb) / .45);
  border-radius: 999px;
  padding: .32rem .8rem;
  color: var(--paper); opacity: .92;
}
.service:focus-visible { outline: 3px solid var(--paper); outline-offset: -3px; }

/* ---------- story teaser (full About content lives on the Story page, S2) ---------- */
.story__teaser {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  max-width: 980px; margin: 0 auto;
}
.story__teaser-photo {
  background: var(--brand-white);
  padding: .7rem;
  box-shadow: 0 14px 34px rgb(var(--ink-deep-rgb) / .18);
  transform: rotate(-1.6deg);
  transition: transform .5s var(--ease-out);
}
.story__teaser-photo:hover { transform: rotate(0); }
.story__teaser-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 8%;
}
.story__teaser-text p { margin-bottom: 1.1rem; max-width: 52ch; }
.story__teaser-text .section__title { margin-bottom: 1rem; }

/* FAQ removed 2026-07-24 per Riley */

/* ---------- contact ---------- */
.contact {
  background: var(--ink-deep);
  background-image: radial-gradient(ellipse at 30% 0%, rgb(var(--blue-rgb) / .18), transparent 55%);
  color: var(--paper);
}
/* Project Inquiry as its own page (Riley 7/25): clear the fixed nav */
.contact--page { padding-top: clamp(8rem, 15vh, 11rem); min-height: 92vh; }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  max-width: 1150px; margin: 0 auto;
  align-items: start;
}
.contact .section__title { color: var(--paper); }
.contact__script {
  font-family: var(--script); font-weight: 400;
  font-size: .62em; display: inline-block;
  transform: rotate(-2deg);
  color: var(--brick);
}
.contact__lite { margin-top: 1.4rem; font-size: .95rem; opacity: .85; }
.contact__lite a { color: var(--paper); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.contact__lite svg { width: 20px; height: 20px; vertical-align: -4px; margin-right: .45rem; }
.contact__form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; grid-column: span 2; }
.field--half { grid-column: span 1; }
.field label {
  font-size: .68rem; font-weight: 700;
  letter-spacing: .26em; text-transform: uppercase;
  opacity: .8;
}
.field input, .field textarea, .field select {
  width: 100%; min-width: 0;   /* inputs must shrink with their grid track (mobile) */
  font-family: var(--sans); font-size: 1rem;
  color: var(--paper);
  background: rgb(var(--paper-rgb) / .06);
  border: 1px solid rgb(var(--paper-rgb) / .35);
  padding: .85rem .9rem;
  transition: border-color .3s, background .3s;
  resize: vertical;
}
.field select option { color: var(--ink); background: var(--brand-white); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--brick);
  background: rgb(var(--paper-rgb) / .1);
}
.field ::placeholder { color: rgb(var(--paper-rgb) / .45); }
.contact__submit { grid-column: span 2; justify-self: start; }
.contact__stamp { position: absolute; inset: 0; display: none; place-items: center; text-align: center; }
.contact__stamp.show { display: grid; }
.contact__stamp .stampbox {
  border: 3px solid var(--brick);
  color: var(--brick);
  padding: 1.2rem 2rem;
  font-family: var(--sans); font-weight: 800; font-size: 1.4rem; letter-spacing: .3em;
  transform: rotate(-7deg);
  animation: stampIn .5s var(--ease-out) both;
  background: rgb(var(--ink-deep-rgb) / .85);
}
.contact__stamp small {
  display: block; margin-top: .8rem;
  font-family: "Neulis Neue", var(--sans); font-weight: 500; font-size: 1.25rem; letter-spacing: .02em;
  color: var(--paper);
}
.contact__form.sent .field, .contact__form.sent .contact__submit { opacity: .08; pointer-events: none; }
.footer__form.sent .field, .footer__form.sent .footer__send { opacity: .08; pointer-events: none; }

/* ---------- footer (Riley 7/25 mockup: navy, badge + nav + mission + socials
   on the left, simple Contact form on the right, legal base row) ---------- */
.footer {
  background: var(--brand-navy);
  color: var(--brand-white);
  padding: clamp(3.5rem, 7vw, 5.5rem) clamp(2rem, 8vw, 8rem) 2rem;
}
.footer__grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
  max-width: 1240px; margin: 0 auto;
}
/* --noform (Project Inquiry page): the big form lives right above, so the footer
   is the brand column only, centered — no second form on the same page */
.footer--noform .footer__grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.footer--noform .footer__brandrow { justify-content: center; }
.footer--noform .footer__mission { text-align: center; }
.footer--noform .footer__socials { justify-content: center; }
.footer__brandrow { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.6rem); margin-bottom: 1.6rem; }
.footer__badge { width: clamp(130px, 14vw, 180px); opacity: .95; }
.footer__nav { display: flex; flex-direction: column; gap: .55rem; }
.footer__nav a {
  color: var(--brand-white); text-decoration: none;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  opacity: .9; transition: opacity .3s;
}
.footer__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.footer__mission {
  font-style: italic; text-align: justify;
  font-size: .96rem; opacity: .92;
  max-width: 46ch; margin-bottom: 1.2rem;
}
.footer__script {
  font-family: var(--script);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  color: var(--brand-orange);
  transform: rotate(-1.5deg);
  margin-bottom: 1.3rem;
}
.footer__socials { list-style: none; display: flex; gap: .9rem; margin-bottom: 1.5rem; }
.footer__socials a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  color: var(--brand-white);
  opacity: .85;
  transition: opacity .3s, transform .3s var(--ease-out);
}
.footer__socials a:hover, .footer__socials a:focus-visible { opacity: 1; transform: translateY(-3px); }
.footer__socials svg { width: 26px; height: 26px; }
.footer__loc {
  font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  opacity: .8; line-height: 2;
}
.footer__loc a { color: var(--brand-white); text-transform: none; letter-spacing: .04em; text-decoration: underline; text-underline-offset: 3px; }
.footer__eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  opacity: .85; margin-bottom: 1.1rem;
}
.footer__form { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; position: relative; }
.footer__form .field { grid-column: span 2; }
.footer__form .field--half { grid-column: span 1; }
.footer__send { grid-column: span 2; justify-self: start; }
.footer__base {
  display: flex; flex-direction: column; align-items: center; gap: .9rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.4rem;
}
.footer__base-ornament { background-image: url(../assets/brand/dividers/divider-white.png); }
.footer__legal { font-size: .72rem; letter-spacing: .06em; opacity: .78; text-align: center; }
.footer__legal a { color: var(--brand-white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer { padding-inline: clamp(1.5rem, 6vw, 3rem); }
}
@media (max-width: 720px) {
  /* beats the desktop .footer__form .field--half rule so Email/Phone stack on phones */
  .footer__form .field--half { grid-column: span 2; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .story__teaser { grid-template-columns: 1fr; }
  .story__teaser-photo { max-width: 320px; }
  .contact__inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed; inset: 0;
    background: var(--ink);
    flex-direction: column; justify-content: center;
    gap: 2rem;
    transform: translateY(-102%);
    transition: transform .5s var(--ease-out);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { color: var(--paper); font-size: 1.05rem; }
  .nav__cta { border-color: var(--paper); }
  .nav__burger { position: relative; z-index: 5; }
  .nav.menu-open .nav__burger span { background: var(--paper); }
  .hero__side { display: none; }
    .service { grid-template-columns: auto 1fr; grid-template-areas: "num name" "num desc"; }
  .service--subs { grid-template-areas: "num name" "num desc" "num subs"; }
  .service__note { display: none; }
  .field--half { grid-column: span 2; }
}

/* ---------- reduced motion: static, fully readable ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
  }
  .load-rise, .load-draw, .reveal, .hero__slab-outline, .services__list .service { opacity: 1 !important; transform: none !important; }
  .hero__slab-paint { clip-path: inset(-10% -2% -10% 0) !important; }
  .pen-underline path, .pen-arrow path { stroke-dashoffset: 0 !important; }
  .fill-text__ink { clip-path: inset(0 0 0 0) !important; }
  .preloader, .cursor { display: none !important; }
  /* logo choreography static: crest lockup left, always */
  .nav__logo-mark { opacity: 0 !important; }
  .nav__logo-lockup { opacity: 1 !important; }
  /* pinned sections flatten to normal flow */
  .pin { height: auto !important; }
  .pin__stage { position: static; height: auto; overflow: visible; padding: 3rem 0; }
  /* craft cards stay in normal stacked flow (JS never adds .is-stacked here) */
  .craft__deck { display: flex !important; }
  .mural .pin__stage { min-height: 70vh; }
  .mural__before { display: none; }
  .mural__reveal { clip-path: none !important; position: relative; height: 60vh; }
  .mural__roller { display: none; }
  .mural__after { opacity: 1 !important; }
}

/* mural intro sequencing: scroll-staged to mirror the quote — the script line
   lands first, the slab second (JS drives opacity/translate per frame) */
.mural__lead {
  font-family: var(--script);
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  color: var(--brand-orange);
  transform: rotate(-2deg);
}
.m-stage1, .m-stage2 { opacity: 0; translate: 0 18px; }
@media (prefers-reduced-motion: reduce) {
  .m-stage1, .m-stage2 { opacity: 1 !important; translate: 0 0 !important; }
}

/* ============================================================
   Story page (story.html)
   ============================================================ */
/* Riley 7/25: no hero — the Lettering Vault gif centered at medium scale,
   then his word-for-word lead, belief, and "big story" lines */
.story-top {
  text-align: center;
  padding: clamp(7rem, 14vh, 10rem) clamp(1.6rem, 5vw, 4rem) clamp(2.5rem, 5vh, 4rem);
}
.story-top__gif { width: min(440px, 72vw); margin: 0 auto 2.2rem; display: block; }
.story-top__lead {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.3; letter-spacing: 0;
  max-width: 46ch; margin: 0 auto 1.4rem;
  color: var(--ink);
}
.story-top__belief {
  font-weight: 600;
  max-width: 54ch; margin: 0 auto 1.6rem;
  color: var(--ink); opacity: .9;
}
.story-top__big {
  font-family: var(--script);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  color: var(--orange-text);
  max-width: 44ch; margin: 0 auto;
  transform: rotate(-1deg);
}

/* alternating story rows */
.about-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  max-width: 1180px; margin: 0 auto;
}
.about-row--reverse .about__media { order: 2; }
.about__text .section__title { margin: .4rem 0 1.4rem; }
/* Riley 7/25: large text bodies justified */
.about__text p { max-width: 48ch; color: var(--ink); opacity: .9; text-align: justify; }
.cs-overview__text p { text-align: justify; }
.about__text p + p { margin-top: 1rem; }
.about__media {
  position: relative; margin: 0; overflow: hidden;
  border-radius: 4px; box-shadow: 0 18px 44px rgb(var(--navy-rgb) / .16);
}
.about__media img {
  width: 100%; display: block; aspect-ratio: 4 / 5; object-fit: cover;
  transform: scale(1.06); will-change: transform;   /* base zoom so the scroll drift never exposes an edge */
}
.about__tag {
  position: absolute; left: -.4rem; bottom: 1.1rem;
  background: var(--ink); color: var(--paper);
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .5rem .9rem;
}
.about__tag--right { left: auto; right: -.4rem; }
.about--texture { background-color: var(--paper); }

/* beliefs */
.beliefs-section .section__head { text-align: center; margin: 0 auto clamp(2rem, 5vw, 3.5rem); }
.beliefs {
  list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 1.8rem); max-width: 1180px; margin: 0 auto;
}
.beliefs.reveal { transform: none; }
.belief {
  border: 1.5px solid rgb(var(--navy-rgb) / .16);
  padding: clamp(1.4rem, 2.5vw, 2rem) clamp(1.2rem, 2vw, 1.6rem);
  background: var(--surface);
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.beliefs.in .belief { opacity: 1; transform: none; }
.beliefs.in .belief:nth-child(1) { transition-delay: .04s; }
.beliefs.in .belief:nth-child(2) { transition-delay: .14s; }
.beliefs.in .belief:nth-child(3) { transition-delay: .24s; }
.beliefs.in .belief:nth-child(4) { transition-delay: .34s; }
.belief__mark { color: var(--brand-orange); font-size: 1.4rem; }
.belief h3 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.15rem, 2vw, 1.5rem); margin: .6rem 0 .5rem; letter-spacing: .01em;
}
.belief p { font-size: .95rem; color: var(--ink); opacity: .85; }

/* story CTA band */
.story-cta {
  background: var(--ink); color: var(--paper);
  text-align: center;
  padding: clamp(4.5rem, 10vw, 8rem) clamp(1.6rem, 5vw, 4rem);
}
.story-cta__script {
  font-family: var(--script); font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--paper); opacity: .9;
}
.story-cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn--ghost { border-color: rgb(var(--paper-rgb) / .5); color: var(--paper); }
.btn--ghost::before { background: var(--paper); }
.btn--ghost:hover span, .btn--ghost:focus-visible span { color: var(--ink); }

@media (max-width: 820px) {
  .about-row { grid-template-columns: 1fr; gap: 1.6rem; }
  .about-row--reverse .about__media { order: 0; }
  .about__media img { aspect-ratio: 3 / 2; }
  .beliefs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .beliefs { grid-template-columns: 1fr; }
}

/* ============================================================
   Case study template (urbana-mural.html)
   ============================================================ */
.cs-hero {
  position: relative; text-align: center;
  padding: clamp(6.5rem, 13vh, 9rem) clamp(1.6rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
}
.cs-back {
  position: absolute; top: clamp(5rem, 11vh, 7rem); left: clamp(1.6rem, 5vw, 4rem);
  text-decoration: none; color: var(--ink); opacity: .6;
  font-size: .75rem; letter-spacing: .16em; text-transform: uppercase;
}
.cs-back:hover, .cs-back:focus-visible { opacity: 1; }
.cs-hero__title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.4rem, 7vw, 5rem); line-height: .98; letter-spacing: .01em;
  margin: .6rem 0 0;
}
.cs-hero__sub { max-width: 620px; margin: 1rem auto 0; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink); opacity: .82; }
.cs-cover { margin: 0 auto; max-width: 1180px; padding: 0 clamp(1.6rem, 5vw, 4rem); }
.cs-cover img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; box-shadow: 0 20px 50px rgb(var(--navy-rgb) / .18); }
/* scribble-reveal cover: the photo shows only through a thick pen stroke that
   draws itself across the frame on load (pilot on beta-theta-pi) */
.cs-draw { width: 100%; display: block; border-radius: 4px; box-shadow: 0 20px 50px rgb(var(--navy-rgb) / .18); }
.cs-draw__stroke { stroke-dasharray: 1; stroke-dashoffset: 1; }
body.ready .cs-draw__stroke { animation: csScribble 2s .3s cubic-bezier(.5, 0, .3, 1) forwards; }
@keyframes csScribble { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .cs-draw__stroke { stroke-dashoffset: 0 !important; } }
.cs-overview__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); max-width: 1180px; margin: 0 auto; align-items: start; }
.cs-overview__text .section__title { margin: 0 0 1.2rem; }
.cs-overview__text p { max-width: 54ch; color: var(--ink); opacity: .9; }
.cs-overview__text p + p { margin-top: 1rem; }
.cs-spec dl { margin: 0; border-top: 2px solid var(--ink); }
.cs-spec__row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid rgb(var(--navy-rgb) / .18); }
.cs-spec dt { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); opacity: .6; }
.cs-spec dd { margin: 0; font-weight: 700; color: var(--ink); }
.cs-ba .section__head { text-align: center; margin: 0 auto clamp(1.8rem, 4vw, 3rem); }
.cs-ba__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); max-width: 1180px; margin: 0 auto; }
.cs-ba__item { margin: 0; position: relative; }
.cs-ba__item img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
/* --fit: graphic tiles (logo sheets, palettes, banners, brand slides) must never
   crop — the whole artwork shows at its natural ratio. Photos keep the 4:3 crop. */
.cs-ba__item--fit img { aspect-ratio: auto; object-fit: contain; background: var(--brand-white); }
.cs-ba__item figcaption { position: absolute; left: 0; bottom: 0; background: var(--ink); color: var(--paper); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; padding: .45rem .9rem; }
@media (max-width: 820px) {
  .cs-overview__grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .cs-ba__grid { grid-template-columns: 1fr; }
}

/* ============ C.R.A.F.T. murals/branding toggle ============ */
.craft__toggle {
  display: flex; width: fit-content; margin: 1.3rem auto 0;
  border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden;
}
.craft__tog {
  font-family: var(--sans); font-size: .72rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: .58rem 1.35rem; border: 0; background: transparent; color: var(--ink);
  cursor: pointer; transition: background .25s var(--ease-out), color .25s var(--ease-out);
}
.craft__tog:hover { background: rgb(var(--navy-rgb) / .08); }
.craft__tog.is-active { background: var(--ink); color: var(--paper); }
.craft__tog.is-active:hover { background: var(--ink); }
.craft__step p { transition: opacity .2s; }

/* ============ logo-folio (selected clients — sticker wall) ============
   Real client marks as pinned-up stickers: each tile keeps its brand's own
   color, sits slightly rotated, and straightens + pops on hover. */
/* the clients band sits on paper (via .texture in the markup) so it reads as its
   own section instead of an empty white gap after the Work grid's Behance button */
.logofolio { text-align: center; border-top: 1px solid rgb(var(--navy-rgb) / .12); box-shadow: inset 0 1px 0 rgb(var(--surface-rgb) / .6); }
.logofolio .section__head { margin: 0 auto clamp(2rem, 4.5vw, 3.2rem); }
.logofolio__wall {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.1rem, 2.4vw, 1.9rem);
  max-width: 1100px; margin: 0 auto;
}
.logofolio__sticker {
  margin: 0; display: block; text-decoration: none;
  background: var(--brand-white);
  padding: .45rem;
  box-shadow: 0 10px 26px rgb(var(--ink-deep-rgb) / .16);
  transform: rotate(var(--tilt, -1.5deg));
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.logofolio__sticker:nth-child(2n)  { --tilt: 1.6deg; }
.logofolio__sticker:nth-child(3n)  { --tilt: -2.2deg; }
.logofolio__sticker:nth-child(4n)  { --tilt: 1.1deg; }
.logofolio__sticker:hover {
  transform: rotate(0) scale(1.05);
  box-shadow: 0 18px 44px rgb(var(--ink-deep-rgb) / .28);
  z-index: 2; position: relative;
}
.logofolio__sticker img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
}
@media (max-width: 720px) { .logofolio__wall { grid-template-columns: repeat(2, 1fr); } }

/* ---------- client stories (testimonials) ----------
   One quote per row on its own warm-grey band, rules between rows. No ratings. */
.stories {
  background: #E2E2DE;
  border-top: 1px solid rgb(var(--navy-rgb) / .12);
}
.stories__sub {
  font-family: "Neulis Neue", var(--sans); font-weight: 400;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--ink); opacity: .7;
}
.stories__list { max-width: 1000px; margin: 0 auto; }
.stories__row {
  margin: 0;
  padding: clamp(2.2rem, 5vw, 3.6rem) 0;
  border-top: 1px solid rgb(var(--navy-rgb) / .18);
}
.stories__row:first-child { border-top: 0; padding-top: 0; }
.stories__row:last-child { padding-bottom: 0; }
.stories__quote {
  margin: 0;
  font-family: "Neulis Neue", var(--sans); font-weight: 400;
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  line-height: 1.34;
  color: var(--ink);
}
.stories__by { margin-top: clamp(1rem, 2vw, 1.5rem); }
.stories__name {
  display: block;
  font-family: var(--sans); font-weight: 700;
  font-size: .76rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink);
}
.stories__org {
  display: block; margin-top: .35rem;
  font-family: "Neulis Neue", var(--sans); font-weight: 400;
  font-size: .95rem; color: var(--ink); opacity: .62;
}

/* ============ featured-work carousel (Tyrsa-style, big) ============ */
.castrip { position: relative; background: var(--ink-deep); }
.castrip__viewport { position: relative; height: clamp(150px, 20vw, 240px); }
/* --big: the top-of-page featured carousel — tall slides, bigger meta.
   Riley 7/25: taller than the hero text block above it. */
.castrip--big .castrip__viewport { height: clamp(480px, 72vh, 860px); }
.castrip--big .castrip__name { font-size: clamp(2rem, 5.4vw, 4.2rem); }
.castrip--big .castrip__eyebrow { font-size: .74rem; }
.castrip--big .castrip__cat { font-size: .8rem; }
.castrip--big .castrip__dots { bottom: 1.4rem; }
.castrip__slide {
  position: absolute; inset: 0; display: block; text-decoration: none; overflow: hidden;
  opacity: 0; pointer-events: none; transition: opacity .8s var(--ease-out);
}
.castrip__slide.is-active { opacity: 1; pointer-events: auto; }
.castrip__slide img { width: 100%; height: 100%; object-fit: cover; }
.castrip__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(var(--ink-deep-rgb) / .86) 0%, rgb(var(--ink-deep-rgb) / .45) 55%, rgb(var(--ink-deep-rgb) / .12) 100%);
}
.castrip__meta {
  position: absolute; left: clamp(1.6rem, 5vw, 4rem); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: .28rem;
}
.castrip__eyebrow { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--paper); opacity: .78; }
.castrip__name { font-family: var(--display); font-weight: 900; font-size: clamp(1.4rem, 3.4vw, 2.7rem); line-height: 1; color: var(--paper); }
.castrip__cat { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--paper); opacity: .8; }
.castrip__dots { position: absolute; right: clamp(1.6rem, 5vw, 4rem); bottom: 1rem; display: flex; gap: .5rem; z-index: 2; }
.castrip__dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgb(var(--paper-rgb) / .4); cursor: pointer; transition: background .3s, transform .3s; }
.castrip__dot.is-active { background: var(--paper); transform: scale(1.3); }
@media (prefers-reduced-motion: reduce) { .castrip__slide { transition: none; } }

/* ============================================================
   Case-study chooser popup (Design 1 / Design 2)
   Intercepts links into the Urbana case study so Riley can pick a layout.
   ============================================================ */
.cs-choose {
  position: fixed; inset: 0; z-index: 300;
  display: none; place-items: center; padding: 1.5rem;
  background: rgb(var(--ink-deep-rgb) / .74);
  opacity: 0; transition: opacity .3s var(--ease-out);
}
@media (min-width: 721px) { .cs-choose { backdrop-filter: blur(5px); } }
.cs-choose.open { display: grid; opacity: 1; }
.cs-choose__panel {
  position: relative;
  background: var(--surface); color: var(--ink);
  width: 100%; max-width: 660px;
  padding: clamp(2rem, 4.5vw, 3.2rem);
  text-align: center; border-radius: 6px;
  box-shadow: 0 34px 90px rgb(var(--ink-deep-rgb) / .55);
  transform: translateY(14px) scale(.98);
  transition: transform .35s var(--ease-out);
}
.cs-choose.open .cs-choose__panel { transform: none; }
.cs-choose__close {
  position: absolute; top: .5rem; right: .8rem;
  width: 40px; height: 40px; line-height: 1;
  background: none; border: none; cursor: pointer;
  font-size: 1.6rem; color: var(--ink); opacity: .6;
}

.cs-choose__close:hover { opacity: 1; }
.cs-choose__title { font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 4vw, 2.4rem); margin: .5rem 0 .2rem; }
.cs-choose__sub { opacity: .72; margin-bottom: 1.6rem; }
.cs-choose__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cs-choose__opt {
  display: flex; flex-direction: column; gap: .4rem;
  padding: 1.5rem 1.1rem; text-decoration: none; color: var(--ink);
  border: 2px solid var(--ink);
  transition: background .25s var(--ease-out), color .25s var(--ease-out), transform .25s var(--ease-out);
}
.cs-choose__opt:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); }
.cs-choose__opt b { font-family: var(--display); font-size: 1.25rem; }
.cs-choose__opt span { font-size: .8rem; opacity: .8; letter-spacing: .04em; }
@media (max-width: 520px) { .cs-choose__opts { grid-template-columns: 1fr; } }

/* ============================================================
   Case study — Design 1 (editorial / full-bleed, Tyrsa-style)
   ============================================================ */
.cs1-hero { position: relative; text-align: center; padding: clamp(6.5rem, 13vh, 9rem) clamp(1.6rem, 5vw, 4rem) clamp(1.4rem, 3vw, 2.2rem); }
.cs1-back { position: absolute; top: clamp(5rem, 11vh, 7rem); left: clamp(1.6rem, 5vw, 4rem); text-decoration: none; color: var(--ink); opacity: .6; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.cs1-back:hover, .cs1-back:focus-visible { opacity: 1; }
.cs1-hero__eyebrow { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; opacity: .6; }
.cs1-hero__title { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 8vw, 6rem); line-height: .95; letter-spacing: .01em; margin: .5rem 0 .4rem; }
.cs1-hero__sub { max-width: 620px; margin: 0 auto; font-size: clamp(1.05rem, 1.6vw, 1.35rem); opacity: .8; }
.cs1-hero__year { display: block; margin-top: .7rem; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; opacity: .55; }
.cs1-cover img { width: 100%; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.cs1-intro { max-width: 760px; margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) clamp(1.6rem, 5vw, 4rem) clamp(1.6rem, 4vw, 2.5rem); }
.cs1-intro p { font-size: clamp(1.1rem, 1.7vw, 1.4rem); line-height: 1.62; }
.cs1-intro p + p { margin-top: 1.1rem; }
.cs1-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 760px; margin: 0 auto clamp(3rem, 7vw, 5rem); padding: 1.5rem clamp(1.6rem, 5vw, 4rem) 0; }
.cs1-meta__col { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
.cs1-meta h4 { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; opacity: .55; margin-bottom: .6rem; }
.cs1-meta ul { list-style: none; }
.cs1-meta li { font-weight: 600; margin-bottom: .2rem; }
.cs1-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.cs1-tag { border: 1.5px solid var(--ink); padding: .32rem .8rem; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.cs1-gallery { display: flex; flex-direction: column; gap: clamp(2.5rem, 6vw, 5rem); }
.cs1-shot img { width: 100%; display: block; }
.cs1-shot--wide img { aspect-ratio: 16 / 9; object-fit: cover; }
.cs1-block { max-width: 640px; margin: 0 auto; padding: 0 clamp(1.6rem, 5vw, 4rem); text-align: center; }
.cs1-block h3 { font-family: var(--display); font-weight: 900; font-size: clamp(1.4rem, 3vw, 2.1rem); margin-bottom: .6rem; }
.cs1-block p { opacity: .85; }
.cs1-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(.6rem, 1.5vw, 1.2rem); }
.cs1-duo img { width: 100%; display: block; aspect-ratio: 3 / 4; object-fit: cover; }
.cs1-outro { padding: clamp(3.5rem, 7vw, 6rem) clamp(1.6rem, 5vw, 4rem); }
@media (max-width: 720px) { .cs1-meta { grid-template-columns: 1fr; gap: 1.4rem; } .cs1-duo { grid-template-columns: 1fr; } }

/* prev / next project nav (shared by both case-study designs) */
.cs-nav { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
.cs-nav a { display: flex; flex-direction: column; gap: .35rem; padding: clamp(2rem, 4vw, 3rem) clamp(1.6rem, 5vw, 4rem); text-decoration: none; color: var(--ink); transition: background .3s, color .3s; }
.cs-nav a:last-child { text-align: right; align-items: flex-end; border-left: 2px solid var(--ink); }
.cs-nav a:hover, .cs-nav a:focus-visible { background: var(--ink); color: var(--paper); }
.cs-nav small { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; opacity: .6; }
.cs-nav b { font-family: var(--display); font-weight: 900; font-size: clamp(1.1rem, 2.5vw, 1.6rem); }
@media (max-width: 560px) { .cs-nav { grid-template-columns: 1fr; } .cs-nav a:last-child { text-align: left; align-items: flex-start; border-left: 0; border-top: 2px solid var(--ink); } }

/* Design 2 additions: three-up before / blue / after + pull quote */
.cs-ba__grid--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .cs-ba__grid--three { grid-template-columns: 1fr; } }
.cs-quote { max-width: 900px; margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) clamp(1.6rem, 5vw, 4rem); text-align: center; }
.cs-quote blockquote { font-family: var(--display); font-weight: 900; font-size: clamp(1.6rem, 4vw, 2.8rem); line-height: 1.15; }
.cs-quote cite { display: block; margin-top: 1.2rem; font-family: "Neulis Neue", var(--sans); font-weight: 500; font-style: normal; font-size: 1.4rem; color: var(--orange-text); }

/* ===== story-top v2 (Riley mockup 7/27) — overrides the rules above ===== */
/* Two columns, top-aligned: text at 65% of a 1480px container, the lettering
   photo at 28%. Ratios and type sizes come from the measured artboard. */
.story-top__inner {
  display: grid;
  grid-template-columns: minmax(0, 65fr) minmax(0, 28fr);
  gap: clamp(2rem, 7%, 6.5rem);
  align-items: start;
  max-width: 1480px;
  margin: 0 auto;
  text-align: left;            /* .story-top above still sets center */
}
.story-top__text { min-width: 0; }
/* the gif now centres on the text column, not the page */
.story-top__gif {
  width: min(220px, 46vw);
  margin: 0 auto 2rem;
  display: block;
}
.story-top__lead {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.6rem, 2.32vw, 2.5rem);
  line-height: 1.21; letter-spacing: 0;
  text-align: left;
  max-width: none; margin: 0;
  color: var(--ink);
}
.story-top__belief,
.story-top__big {
  font-family: "Neulis Neue", var(--sans);
  font-size: clamp(1.2rem, 1.82vw, 1.96rem);
  line-height: 1.2;
  text-align: justify;
  max-width: none;
  color: var(--ink);
  opacity: 1;
}
.story-top__belief { font-weight: 500; margin: 2.75rem 0 0; }
.story-top__big    { font-weight: 400; margin: 2.25rem 0 0; transform: none; }
/* Professor is unicode-range-limited to letters, so the period falls
   through to Caveat — see fonts.css. Leave that mechanism alone. */
.story-top__big .story-top__script {
  font-family: var(--script);
  font-size: 1.35em;
  color: var(--brand-blue);
}
.story-top__photo { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .story-top__inner { grid-template-columns: 1fr; }
  /* justify opens rivers once the measure narrows */
  .story-top__belief,
  .story-top__big { text-align: left; }
}

/* case pages: hold "The brief" underline an extra second so the draw-in is
   seen, not missed (the observer fires almost immediately after the cover) */
.cs-overview .pen-underline path { animation-delay: 1s; }
.cs-overview .drawn.pen-note--under::after,
.cs-overview .drawn .pen-note--under::after { animation-delay: 1s; }
/* mixed-height galleries: figures hug their image so the caption tag sits on
   the artwork, not stranded at the bottom of a stretched grid row */
.cs-ba__grid { align-items: start; }