/* ============================================================
   Brooke Martinez — Portfolio
   Black & white editorial system. All knobs are CSS variables
   so the Tweaks panel can repaint the whole site live.
   ============================================================ */

:root {
  /* Palette — the single, locked palette for the whole portfolio */
  --fg: #10100f;
  --bg: #ffffff;
  --accent: #c75d34;

  /* Derived tones */
  --line: color-mix(in oklab, var(--fg) 14%, var(--bg));
  --line-strong: color-mix(in oklab, var(--fg) 26%, var(--bg));
  --muted: color-mix(in oklab, var(--fg) 52%, var(--bg));
  --faint: color-mix(in oklab, var(--fg) 6%, var(--bg));
  --paper-2: color-mix(in oklab, var(--fg) 3.5%, var(--bg));
  --accent-soft: color-mix(in oklab, var(--accent) 14%, var(--bg));

  /* Riso print treatment (project photos) */
  --riso-paper: #f2ece0;
  --riso-ink: #f2641a;

  /* Type — one family: Archivo (Expanded reserved for the wordmark) */
  --font-display: "Playfair Display", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --display-weight: 680;

  /* Spacing rhythm (scaled by density) */
  --density: 1;
  --section-y: calc(120px * var(--density));
  --gutter: clamp(20px, 6vw, 96px);
  --maxw: 1280px;
  --content-w: 720px;

  /* Fluid type scale */
  --t-hero: clamp(2.6rem, 1.2rem + 5.4vw, 5.6rem);
  --t-display: clamp(2rem, 1rem + 3.4vw, 3.6rem);
  --t-h2: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem);
  --t-h3: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);
  --t-body: clamp(1.02rem, 0.97rem + 0.2vw, 1.15rem);
  --t-lead: clamp(1.15rem, 1rem + 0.7vw, 1.5rem);
  --t-eyebrow: 0.78rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.62;
  font-weight: 380;
  letter-spacing: -0.003em;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

::selection { background: var(--fg); color: var(--bg); }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  line-height: 1.04;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

/* ---------- Layout primitives ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.measure { max-width: var(--content-w); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ============================================================
   Site header
   ============================================================ */
.site-head {
  position: relative;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-head[data-scrolled="1"] { border-bottom-color: var(--line); }
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}
.brand {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-stretch: 125%;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 0.25s var(--ease);
}
.brand:hover { color: var(--accent); }
.brand b { font-weight: inherit; }
.nav {
  display: flex;
  gap: clamp(18px, 3vw, 40px);
  align-items: center;
}
.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  transition: color 0.2s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover { color: var(--fg); }
.nav a:hover::after { transform: scaleX(1); }
.nav a.cta {
  transition: color 0.2s var(--ease);
}
.nav a.cta:hover { color: var(--fg); }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding-top: clamp(24px, 4vw, 48px); padding-bottom: var(--section-y); }

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* Hero statement style (the running sentence) — locked as the only hero style */
.hero-statement {
  font-size: clamp(1.5rem, 0.95rem + 2.4vw, 2.7rem);
  max-width: 16ch;
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -0.012em;
  color: color-mix(in oklab, var(--fg) 82%, var(--bg));
  display: block;
}
.hero-statement .name { font-weight: 700; color: var(--accent); }

.hero-sub {
  margin-top: clamp(24px, 3vw, 36px);
  max-width: 52ch;
  color: var(--muted);
  font-size: var(--t-lead);
  line-height: 1.45;
  font-weight: 400;
}
.hero-sub .strong { color: var(--fg); font-weight: 500; }

/* Layout A — split: text left, portrait right */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(8px, 1.2vw, 20px);
  align-items: end;
}
.hero-copy { padding-bottom: 24px; }

.hero-photo {
  aspect-ratio: 1 / 1;
  width: 100%;
}

.hero-copy {
  display: flex;
  flex-direction: column;
}
.hero-copy .hero-meta { margin-top: clamp(36px, 4vw, 52px); }

.hero-meta {
  margin-top: clamp(18px, 2vw, 26px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
}
.hero-meta .label { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.logo-lockup img { height: 26px; width: auto; display: block; }
.logo-lockup strong {
  font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em;
  color: var(--fg);
}

/* Layout B — editorial centered, portrait below offset */
:root[data-hero-layout="B"] .hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
  gap: clamp(40px, 5vw, 64px);
}
:root[data-hero-layout="B"] .hero-statement { max-width: 28ch; font-size: clamp(1.7rem, 1rem + 3vw, 3.3rem); }
:root[data-hero-layout="B"] .hero-sub { margin-inline: auto; }
:root[data-hero-layout="B"] .hero-meta { justify-content: center; }
:root[data-hero-layout="B"] .hero-copy { order: 1; }
:root[data-hero-layout="B"] .hero-photo {
  order: 2;
  aspect-ratio: 16 / 9;
  max-width: 920px;
}

/* ============================================================
   Real imagery inside media boxes
   ============================================================ */
.media-img {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3.5%, 36px);
  padding: clamp(18px, 4.5%, 44px);
}
.media-img img {
  height: 100%;
  width: auto;
  min-width: 0;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px color-mix(in oklab, var(--fg) 8%, transparent));
}

/* ============================================================
   Before / after carousel
   ============================================================ */
.ba-carousel {
  position: relative;
  background: #ffffff;
  overflow: hidden;
}
.ba-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.ba-track::-webkit-scrollbar { display: none; }
.ba-track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.ba-slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.ba-slide img {
  display: block;
  width: 100%;
  height: auto;
}
.ba-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px 16px 16px;
}
.ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.ba-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.ba-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ba-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: color-mix(in oklab, var(--fg) 18%, transparent);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.ba-dot:hover { background: color-mix(in oklab, var(--fg) 38%, transparent); }
.ba-dot.on {
  background: var(--accent);
  transform: scale(1.25);
}

/* ============================================================
   Media placeholders (images + looping video)
   ============================================================ */
.media-ph {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(
      135deg,
      var(--faint),
      var(--faint) 11px,
      transparent 11px,
      transparent 22px
    ),
    var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
}
.media-ph > .ph-label {
  position: relative;
  margin: 14px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 28px);
}
.media-ph.is-video > .ph-label::before {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--fg);
  flex: none;
}
/* scanning bar to suggest a looping recording */
.media-ph.is-video::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 40%;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in oklab, var(--fg) 7%, transparent),
    transparent
  );
  animation: scan 3.6s linear infinite;
}
@keyframes scan { 0%{transform:translateX(0)} 100%{transform:translateX(350%)} }
.media-ph.center { align-items: center; justify-content: center; }
.media-ph.center > .ph-label { margin: 0; }

/* Portrait placeholders: ink-on-white to match the homepage sketch language
   (no real photo yet, so nothing to solidify — just a clean sketch frame). */
.hero-photo.media-ph,
.about-portrait.media-ph {
  background: #ffffff;
  border-style: dashed;
  border-color: color-mix(in oklab, var(--fg) 26%, var(--bg));
}

/* ============================================================
   Section scaffolding
   ============================================================ */
.section { padding-block: var(--section-y); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(40px, 5vw, 72px);
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(1.7rem, 1rem + 2.4vw, 3rem); }
.section-head .idx {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* ============================================================
   Work / case study cards
   ============================================================ */
.work-list { display: flex; flex-direction: column; gap: clamp(44px, 6vw, 86px); }

/* Capability ribbon — full-bleed infinite marquee between hero & work */
.ribbon {
  margin-block: clamp(10px, 4vw, 40px);
  padding-block: clamp(16px, 1.8vw, 26px);
  border-block: 1px solid var(--line);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ribbon-track {
  display: flex;
  width: max-content;
  animation: ribbonScroll 38s linear infinite;
}
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-set {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.ribbon-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(0.92rem, 0.78rem + 0.7vw, 1.3rem);
  letter-spacing: -0.012em;
  color: var(--fg);
  padding-inline: 0;
}
/* accent diamond separator before every item */
.ribbon-item::before {
  content: "";
  width: clamp(7px, 0.7vw, 10px);
  height: clamp(7px, 0.7vw, 10px);
  margin-inline: clamp(22px, 2.4vw, 44px);
  background: var(--accent);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
@keyframes ribbonScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .ribbon { -webkit-mask-image: none; mask-image: none; }
}

/* Vertical list: each card is a media + text row, alternating sides */
.work-list .work-card {
  display: grid;
  grid-template-columns: 1.22fr 1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.work-list .work-card:nth-child(even) { grid-template-columns: 1fr 1.22fr; }
.work-list .work-card:nth-child(even) .card-media { order: 2; }
.card-body { display: flex; flex-direction: column; }
@media (max-width: 820px) {
  .work-list { gap: clamp(48px, 8vw, 80px); }
  .work-list .work-card { grid-template-columns: 1fr; gap: 22px; }
  .work-list .work-card:nth-child(even) .card-media { order: 0; }
}

.work-card { display: block; }
.work-card .card-media {
  position: relative;
  aspect-ratio: var(--ar, 16 / 10);
  margin-bottom: 26px;
  transition: transform 0.5s var(--ease);
}
/* uniform media height so the titles line up; each hero image fills via
   object-fit so the sketch and the real photo still overlay closely */
.work-list .work-card .card-media { aspect-ratio: 1.6; margin-bottom: 0; }

/* ---- Ink-sketch card: messy ink on white that solidifies on hover ---- */
.sketchcard {
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.sketchcard .layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sketchcard .ink {
  opacity: 1;
  transition: opacity 0.5s var(--ease), transform 0.65s var(--ease);
}
.wire-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap, 2%);
  width: 100%;
  height: 100%;
}
.wire-phone {
  height: var(--ph, 84%);
  width: auto;
  display: block;
  overflow: visible;
}
.sketchcard .real {
  object-fit: cover;
  border-radius: clamp(12px, 1.6vw, 20px);
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 0.55s var(--ease), transform 0.75s var(--ease), filter 0.55s var(--ease);
  will-change: opacity, transform;
}
.work-card:hover .sketchcard .ink,
.work-card:focus-visible .sketchcard .ink {
  opacity: 0;
  transform: scale(0.985);
}
.work-card:hover .sketchcard .real,
.work-card:focus-visible .sketchcard .real {
  opacity: 1;
  transform: scale(1);
  filter: drop-shadow(0 24px 50px color-mix(in oklab, var(--fg) 26%, transparent));
}
/* GoGood ink placeholder (no finished hero yet — wireframe stays on hover) */
.work-card:hover .gogood-ph .ink,
.work-card:focus-visible .gogood-ph .ink { opacity: 1; }

/* ---- GoGood card: hand-drawn wireframe (phone resting on a desktop,
   mirroring the case-study hero) → real hero screenshot on hover. ---- */
.wire-desk { width: auto; display: block; overflow: visible; }
.wire-gogood { position: absolute; inset: 0; }
.wire-gogood .wire-desk {
  position: absolute; right: 3%; top: 50%; width: 65%;
  transform: translateY(-47%) rotate(1.5deg); z-index: 1;
}
.wire-gogood .wire-phone {
  position: absolute; left: 9%; top: 50%; width: 27%; height: auto;
  transform: translateY(-36%) rotate(-4deg); z-index: 2;
}
.work-card .card-media .media-ph { width: 100%; height: 100%; }
.work-card .card-media .media-ph.is-fill {
  background: var(--fg);
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.work-card .card-media .media-ph.is-fill > iframe {
  width: 100%; height: 100%; border: 0; display: block;
  pointer-events: none;
}
/* hover-only side-to-side sway (Brain Game). iframe is oversized so the
   dark backdrop always covers the card edges as it shifts. */
.work-card .card-media .media-ph.sway > iframe {
  position: absolute;
  top: -24px; left: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
}
.work-card:hover .card-media .media-ph.sway > iframe {
  animation: phoneSway 3.6s ease-in-out infinite;
}
@keyframes phoneSway {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-11px); }
  75%      { transform: translateX(11px); }
}
@media (prefers-reduced-motion: reduce) {
  .work-card:hover .card-media .media-ph.sway > iframe { animation: none; }
}
.work-card .card-media .media-ph.is-fill > img.phone-gif {
  height: 96%; width: auto; max-width: 92%; display: block; object-fit: contain;
}
/* ATN card: stacked poster + GIF, cross-faded on hover (motion only while hovered) */
.work-card .card-media .media-ph.atn-motion { position: relative; overflow: hidden; }
/* tiled flower wash — matches the case-study hero header */
.work-card .card-media .media-ph.atn-motion::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url('../assets/atn/hero-flowers.png');
  background-size: 300px auto;
  background-repeat: repeat;
  opacity: .13;
}
/* soft lagoon / coral glow, as in the hero */
.work-card .card-media .media-ph.atn-motion::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 50% -8%, rgba(23,160,176,.30), transparent 70%),
    radial-gradient(700px 480px at 88% 12%, rgba(224,121,91,.12), transparent 70%);
}
.work-card .card-media .media-ph.atn-motion > img.phone-gif {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 2;
  height: 78%; width: auto; max-width: 80%;
  transition: opacity 0.12s var(--ease);
}
.work-card .card-media .media-ph.atn-motion > img.motion { opacity: 0; }
.work-card:hover .card-media .media-ph.atn-motion > img.motion { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .work-card:hover .card-media .media-ph.atn-motion > img.motion { opacity: 0; }
}

/* ATN card: horizontal filmstrip of the redesigned screens, panning on hover */
.work-card .card-media .media-ph.atn-strip { display: block; padding: 0; overflow: hidden; }
/* paper grain wash for the riso look */
.work-card .card-media .media-ph.atn-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.work-card .card-media .atn-track {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 0;
  width: max-content;
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 28px);
  padding: 0 clamp(18px, 5%, 48px);
  transform: translateY(-50%) translateX(0);
  will-change: transform;
}
.work-card:hover .card-media .atn-track { animation: atnPan 22s linear infinite; }
@keyframes atnPan {
  from { transform: translateY(-50%) translateX(0); }
  to   { transform: translateY(-50%) translateX(-50%); }
}
.work-card .card-media .atn-phone {
  flex: 0 0 auto;
  height: 84%;
  aspect-ratio: 388 / 842;
  background: none;
  padding: 0;
}
.work-card .card-media .atn-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: clamp(20px, 2.4vw, 34px);
  display: block;
  /* riso mis-registration: hard offset spot-colour, like the snake loader */
  filter:
    drop-shadow(-7px 9px 0 rgba(242, 100, 26, 0.55))
    drop-shadow(0 7px 13px rgba(16, 16, 15, 0.12));
}
@media (prefers-reduced-motion: reduce) {
  .work-card:hover .card-media .atn-track { animation: none; }
}
.work-card:hover .card-media { transform: translateY(-6px); }
.work-card .card-media .frame {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  pointer-events: none;
  transition: border-color 0.4s var(--ease), box-shadow 0.5s var(--ease);
}
.work-card:hover .card-media .frame {
  border-color: var(--line-strong);
  box-shadow: 0 30px 60px -30px color-mix(in oklab, var(--fg) 28%, transparent);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}
.card-num {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--muted);
}
.work-card h3 {
  font-size: clamp(1.6rem, 1.1rem + 1.5vw, 2.3rem);
  margin-top: 8px;
  transition: opacity 0.2s var(--ease);
}
.work-card .card-sub {
  margin-top: 12px;
  color: var(--muted);
  max-width: 56ch;
  font-size: 1.05rem;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.card-go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-weight: 600;
  font-size: 0.95rem;
}
.card-go .arrow { transition: transform 0.3s var(--ease); color: var(--accent); }
.work-card:hover .card-go .arrow { transform: translateX(6px); }
.work-card:hover h3 { color: var(--accent); }

/* ============================================================
   Work — layout toggle (Tweak): List · Gallery · Index · Showcase
   ============================================================ */
/* ============================================================
   Work — index view (single locked layout)
   ============================================================ */
.index-section { display: block; }

/* ---- Featured gallery: list's ink-sketch cards arranged in a row ---- */
.featured-section {
  background: var(--bg);
  color: var(--fg);
  padding-block: var(--section-y);
}
.featured-inner { display: block; }
.featured-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.featured-kicker {
  font-size: clamp(1.7rem, 1rem + 2.4vw, 3rem);
  font-weight: var(--display-weight);
  letter-spacing: -0.022em;
  color: var(--fg);
}
.featured-head .idx {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 52px);
}

.feat-card {
  display: block;
  color: var(--fg);
}
.feat-card .card-media {
  position: relative;
  height: 0;
  padding-bottom: 70%;
  overflow: hidden;
  border-radius: clamp(12px, 1.4vw, 18px);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.feat-card .card-media .sketchcard { position: absolute; inset: 0; }
.feat-name {
  margin-top: 16px;
  font-size: clamp(1.3rem, 1.05rem + 0.9vw, 1.75rem);
  letter-spacing: -0.02em;
  transition: color 0.3s var(--ease);
}
/* ink → real solidify on hover (mirrors the list cards) */
.feat-card:hover .sketchcard .ink,
.feat-card:focus-visible .sketchcard .ink {
  opacity: 0;
  transform: scale(0.985);
}
.feat-card:hover .sketchcard .real,
.feat-card:focus-visible .sketchcard .real {
  opacity: 1;
  transform: scale(1);
  filter: none;
}
.feat-card:hover .gogood-shot .ink,
.feat-card:focus-visible .gogood-shot .ink { opacity: 1; }
.feat-card:hover .card-media {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px -26px color-mix(in oklab, var(--fg) 30%, transparent);
}
.feat-card:hover .feat-name { color: var(--accent); }

.featured-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(28px, 3.5vw, 48px);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--fg);
  border-bottom: 1.5px solid var(--line-strong);
  padding-bottom: 3px;
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.featured-more:hover {
  gap: 13px;
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 820px) {
  .featured-grid { grid-template-columns: 1fr; gap: clamp(40px, 8vw, 64px); }
}

/* ---- Index: minimal typographic rows + hover-reveal floating preview ---- */
.index-list {
  list-style: none;
  margin: clamp(8px, 1.5vw, 20px) 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.index-list li { margin: 0; }
.index-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: baseline;
  gap: clamp(16px, 3vw, 44px);
  padding: clamp(22px, 2.8vw, 38px) 6px;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  transition: padding-left 0.45s var(--ease), background 0.35s var(--ease);
}
.index-row:hover,
.index-row:focus-visible {
  padding-left: clamp(10px, 1.4vw, 22px);
  background: linear-gradient(90deg, var(--faint), transparent 70%);
}
.ix-num {
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--muted);
}
.ix-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.55rem, 1rem + 2.4vw, 2.9rem);
  letter-spacing: -0.024em;
  line-height: 1;
  transition: color 0.3s var(--ease);
}
.index-row:hover .ix-title,
.index-row:focus-visible .ix-title { color: var(--accent); }
.ix-tags {
  justify-self: end;
  text-align: right;
  font-size: 0.96rem;
  color: var(--muted);
  white-space: nowrap;
}
.ix-go {
  font-size: 1.15rem;
  color: var(--accent);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.index-row:hover .ix-go,
.index-row:focus-visible .ix-go { opacity: 1; transform: none; }

/* floating cursor preview (desktop / fine-pointer only) — transparent device
   cutouts that float on the page, no background panel */
.index-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: clamp(230px, 24vw, 332px);
  pointer-events: none;
  z-index: 70;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.28s var(--ease), transform 0.45s var(--ease);
  will-change: transform, opacity;
}
.index-preview.show { opacity: 1; }
.index-preview img {
  width: auto;
  height: 100%;
  display: block;
  filter: drop-shadow(0 14px 26px color-mix(in oklab, var(--fg) 20%, transparent));
}

@media (max-width: 820px) {
  .index-row { grid-template-columns: auto 1fr; gap: 14px 18px; }
  .ix-tags { grid-column: 2; justify-self: start; text-align: left; white-space: normal; margin-top: 4px; }
  .ix-go { display: none; }
}
@media (hover: none), (pointer: coarse) {
  .index-preview { display: none; }
}

/* ---- Showcase: full-bleed stacked bands ---- */
.showcase-section { padding-block: var(--section-y); }
.showcase-section .section-head { margin-bottom: clamp(28px, 4vw, 56px); }
.show-band {
  display: block;
  color: var(--fg);
  margin-bottom: clamp(60px, 8vw, 120px);
}
.show-band:last-of-type { margin-bottom: 0; }
.show-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.show-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.85s var(--ease);
}
.show-band:hover .show-media img,
.show-band:focus-visible .show-media img { transform: scale(1.035); }
.show-caption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: clamp(20px, 2.4vw, 32px);
}
.sb-num {
  font-family: ui-monospace, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.sb-title {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem);
  letter-spacing: -0.024em;
  line-height: 1;
  transition: color 0.3s var(--ease);
}
.show-band:hover .sb-title,
.show-band:focus-visible .sb-title { color: var(--accent); }
.sb-line {
  font-size: var(--t-lead);
  color: var(--muted);
  max-width: 640px;
}
.sb-go {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--fg);
  border-bottom: 1.5px solid var(--line-strong);
  padding-bottom: 3px;
  transition: gap 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.show-band:hover .sb-go,
.show-band:focus-visible .sb-go {
  gap: 13px;
  border-color: var(--accent);
  color: var(--accent);
}
@media (max-width: 820px) {
  .show-media { aspect-ratio: 4 / 3; }
}

/* ============================================================
   About
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.about-portrait { aspect-ratio: 3 / 4; position: sticky; top: 110px; }
.about-body p { font-size: var(--t-lead); line-height: 1.5; font-weight: 400; }
.about-body p + p { margin-top: 1.4em; }
.about-body .lead { color: var(--fg); }
.about-body p:not(.lead) { color: var(--muted); }
.about-facts {
  margin-top: clamp(36px, 4vw, 52px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   Testimonials
   ============================================================ */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.quote {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(26px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--paper-2);
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 0.7vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.quote .by { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote .avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.quote .by .name { font-weight: 600; font-size: 0.95rem; }
.quote .by .role { color: var(--muted); font-size: 0.86rem; }
.quotes-note {
  margin-top: 24px;
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ============================================================
   Contact
   ============================================================ */
.contact { text-align: center; }
.contact h2 {
  font-size: clamp(1.9rem, 1rem + 3vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  max-width: 16ch;
  margin-inline: auto;
}
.contact h2 .em { color: var(--accent); }
.contact-links {
  margin-top: clamp(36px, 4vw, 52px);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: center;
}
.contact-copy {
  margin: clamp(22px, 3vw, 30px) auto 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: var(--t-lead);
  line-height: 1.5;
  font-weight: 400;
}
.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.45rem);
  font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.contact-links a:hover { border-color: var(--fg); }

/* ============================================================
   Footer (desert-horizon)
   ============================================================ */
.site-footer {
  position: relative;
  background: var(--bg);
  margin-top: var(--section-y);
  padding-top: clamp(56px, 8vw, 104px);
  overflow: hidden;
  isolation: isolate;
}
.footer-inner {
  width: min(1240px, 100% - clamp(40px, 8vw, 140px));
  margin: 0 auto;
  padding-bottom: clamp(28px, 4vw, 44px);
}
.footer-top {
  display: block;
}
.footer-top .wordmark {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-stretch: 125%;
  font-weight: 700;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  display: inline-block;
}
.footer-top .tagline {
  margin: clamp(16px, 2.4vw, 26px) 0 0;
  max-width: 32ch;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  color: var(--muted);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vw, 24px);
}
.nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
}
.nav-row a {
  color: var(--fg);
  text-decoration: none;
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 500;
  position: relative;
  width: max-content;
  transition: color 0.25s var(--ease);
}
.nav-row a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease);
}
.nav-row a:hover { color: var(--accent); }
.nav-row a:hover::after { transform: scaleX(1); }
.nav-row a.nav-push { margin-left: auto; }

.footer-base { display: none; }
.to-top {
  appearance: none; border: none; background: none; cursor: pointer;
  font: inherit; color: var(--fg); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 0;
}
.to-top .arrow {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.to-top:hover .arrow { transform: translateY(-3px); border-color: var(--accent); background: var(--accent); color: var(--bg); }

/* ---------------- Footer nav row: links / social centered / back-to-top right ---------------- */
.nav-row { align-items: center; }
.nav-row .nav-links { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 40px); }
.nav-row .nav-social { display: flex; gap: clamp(20px, 3vw, 40px); margin: 0 auto; }
.nav-row .to-top {
  margin-left: 0;
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
  font-size: clamp(15px, 1.5vw, 17px);
  font-weight: 500;
  color: var(--fg);
}
.nav-row .to-top .arrow {
  border: none;
  width: auto; height: auto;
  border-radius: 0;
  font-size: 1.1em;
}
.nav-row .to-top:hover .arrow {
  background: none;
  color: var(--accent);
}

/* hand-drawn saguaro skyline — ink mask, draws on when in view */
.desert {
  position: relative;
  width: 100%;
  aspect-ratio: 3641 / 650;
  background-color: var(--fg);
  -webkit-mask: url("../assets/desert-horizon.png") no-repeat center bottom / 100% 100%;
  mask: url("../assets/desert-horizon.png") no-repeat center bottom / 100% 100%;
  clip-path: inset(0 0 0 0);
  transition: clip-path 2400ms cubic-bezier(0.33, 0.85, 0.3, 1);
}
.desert.predraw { clip-path: inset(0 100% 0 0); }
:root[data-anim="none"] .desert { transition: none; clip-path: inset(0 0 0 0); }

@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav { max-width: 420px; }
}
@media (max-width: 440px) {
  .nav-row { gap: 18px 28px; }
  .footer-base { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .desert { transition: none !important; clip-path: inset(0 0 0 0) !important; }
}

/* ============================================================
   Case study pages
   ============================================================ */
.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--muted);
  margin-top: clamp(40px, 6vw, 72px);
  transition: color 0.2s var(--ease), gap 0.2s var(--ease);
}
.cs-back:hover { color: var(--fg); gap: 12px; }

.cs-header { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 88px); }
.cs-kicker { display: flex; gap: 14px; align-items: center; margin-bottom: 26px; }
.cs-kicker .num { font-family: ui-monospace, monospace; color: var(--muted); font-size: 0.85rem; }
.cs-header h1 { font-size: clamp(2.5rem, 1.2rem + 4.2vw, 4.5rem); max-width: 16ch; }
.cs-subtitle {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: var(--t-h2);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-top: clamp(14px, 1.8vw, 22px);
  max-width: 28ch;
  text-wrap: balance;
}
.cs-header .deck {
  margin-top: clamp(22px, 3vw, 34px);
  font-size: var(--t-lead);
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.45;
  font-weight: 400;
}

.cs-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 28px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.cs-fact .k { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cs-fact .v { margin-top: 8px; font-size: 1.02rem; font-weight: 500; }

.cs-hero-media { aspect-ratio: 16 / 9; margin-block: clamp(20px, 3vw, 40px); }
.cs-hero-media.hero-gif {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  overflow: hidden;
}
.cs-hero-media.hero-gif img {
  height: 100%;
  width: auto;
  min-width: 0;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px color-mix(in oklab, var(--fg) 8%, transparent));
}

/* Case study body — narrative blocks */
.cs-body { padding-bottom: var(--section-y); }
.cs-block { padding-block: clamp(40px, 5vw, 72px); }
.cs-block + .cs-block { border-top: 1px solid var(--line); }
.cs-block .blk-grid {
  display: grid;
  grid-template-columns: 0.36fr 0.64fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.cs-block h2 { font-size: var(--t-h2); }
.cs-block .blk-num { font-family: ui-monospace, monospace; font-size: 0.8rem; color: var(--muted); margin-bottom: 12px; }
.cs-block .prose p { font-size: var(--t-body); line-height: 1.66; color: color-mix(in oklab, var(--fg) 88%, var(--bg)); }
.cs-block .prose p + p { margin-top: 1.1em; }
.cs-block .prose h3 { font-size: var(--t-h3); margin-top: 1.8em; font-family: var(--font-body); font-weight: 650; letter-spacing: -0.01em; }
.cs-block .prose ul { margin: 1.1em 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.cs-block .prose li { position: relative; padding-left: 26px; color: var(--muted); }
.cs-block .prose li::before { content: "—"; position: absolute; left: 0; color: var(--fg); }

.cs-media { margin-top: clamp(28px, 3vw, 44px); }
.cs-media.wide { aspect-ratio: 16 / 9; }
.cs-media.tall { aspect-ratio: 4 / 5; }
.cs-media.square { aspect-ratio: 1 / 1; }
.cs-media .media-ph { width: 100%; height: 100%; }
.cs-media .cap { margin-top: 12px; font-family: ui-monospace, monospace; font-size: 0.74rem; color: var(--muted); }

.cs-media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(28px, 3vw, 44px); }
.cs-media-row .cs-media { margin-top: 0; }

/* Section label (left rail of each block) */
.blk-side { display: flex; flex-direction: column; gap: 10px; }
.blk-label {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.cs-block .prose h2 { margin-bottom: 0.7em; }
.cs-block .prose p strong { color: var(--fg); font-weight: 650; }
.cs-block .prose li strong { color: var(--fg); font-weight: 650; }

/* Highlighted callout line (e.g. "Piedmont Gardens signed with GoGood.") */
.cs-block .prose .callout {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.7rem);
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--fg);
  margin-top: 0.4em;
}

/* Before / after comparison (Brain Game) */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 1.5em; }
.compare .box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 24px;
  background: var(--paper-2);
}
.compare .lab {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}
.compare .before .lab { color: var(--muted); }
.compare .after { border-color: color-mix(in oklab, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
.compare .after .lab { color: var(--accent); }
.compare p { font-size: 0.98rem; line-height: 1.5; margin: 0; color: var(--muted); }
.compare .after p { color: var(--fg); }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }

.pull {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 22ch;
}
.pull .em { color: var(--accent); }

/* Next case study */
.cs-next { border-top: 1px solid var(--line); }
.cs-next a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(48px, 7vw, 96px);
  flex-wrap: wrap;
}
.cs-next .nx-label { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.cs-next .nx-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.2rem + 3vw, 4rem);
  font-weight: var(--display-weight);
  letter-spacing: -0.02em;
  transition: transform 0.35s var(--ease);
}
.cs-next a:hover .nx-title { transform: translateX(10px); color: var(--accent); }
.cs-next .nx-arrow { font-size: 2rem; }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); }
:root[data-anim="none"] .reveal { opacity: 1; transform: none; }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

/* Hero load animations */
:root[data-anim="fade"] .hero-anim,
:root[data-anim="float"] .hero-anim,
:root[data-anim="parallax"] .hero-anim {
  opacity: 0;
  transform: translateY(26px);
  animation: heroIn 1s var(--ease) forwards;
}
:root[data-anim="fade"] .hero-anim:nth-child(2) { animation-delay: 0.08s; }
:root .hero-copy > .hero-anim:nth-child(1) { animation-delay: 0.02s; }
:root .hero-copy > .hero-anim:nth-child(2) { animation-delay: 0.12s; }
:root .hero-copy > .hero-anim:nth-child(3) { animation-delay: 0.22s; }
:root .hero-copy > .hero-anim:nth-child(4) { animation-delay: 0.32s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

:root[data-anim="float"] .hero-photo { animation: floatY 6s ease-in-out infinite 1.1s; }
@keyframes floatY { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-14px) } }

:root[data-anim="none"] .hero-anim { opacity: 1 !important; transform: none !important; animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-anim { opacity: 1 !important; transform: none !important; animation: none !important; }
  .media-ph.is-video::after, .hero-eyebrow .dot { animation: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { aspect-ratio: 16 / 11; order: -1; }
  :root[data-hero-layout="B"] .hero-photo { order: 2; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { position: static; aspect-ratio: 16 / 10; }
  .cs-block .blk-grid { grid-template-columns: 1fr; gap: 16px; }
  .cs-media-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav { gap: 16px; }
  .nav .hide-sm { display: none; }
  .site-head .wrap { flex-wrap: wrap; row-gap: 10px; padding-block: 14px; min-height: 0; }
  .brand { font-size: 0.9rem; white-space: normal; overflow: visible; max-width: none; flex: 1 1 100%; }
  .nav { flex: 1 1 100%; }
  .section-head { margin-bottom: 36px; }
}
