/* ==========================================================================
   CookTech shared design tokens
   Used by both cooktechnology.com (client) and cooktech.us (tech).
   Modern-technical aesthetic: dark base, monospace accents, sharp type.
   ========================================================================== */

:root {
  /* ---------- Typography ----------
     Display : Space Grotesk  — geometric, techy, legible, used by modern
               tech product teams (Linear, Mercury era, Vercel blog, etc.)
     Body    : Inter          — neutral, legible, rock-solid body face
     Mono    : JetBrains Mono — engineering accents, stat labels, eyebrows
     Serif   : Fraunces       — optional editorial accent (pull quotes) */
  --font-sans:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif:   "Fraunces", "Source Serif Pro", Georgia, serif;
  --font-display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;

  /* Fluid type scale — base-16 with clamp() so pages breathe down to mobile */
  --text-xs:   0.75rem;
  --text-sm:   0.8125rem;
  --text-base: 1rem;
  --text-lg:   clamp(1.0625rem, 0.6vw + 0.95rem, 1.125rem);
  --text-xl:   clamp(1.1875rem, 0.7vw + 1.05rem, 1.3125rem);
  --text-2xl:  clamp(1.4rem,  0.9vw + 1.2rem, 1.75rem);
  --text-3xl:  clamp(1.75rem, 1.3vw + 1.4rem, 2.25rem);
  --text-4xl:  clamp(2.1rem,  2.2vw + 1.4rem, 3rem);
  --text-5xl:  clamp(2.6rem,  3.4vw + 1.4rem, 4rem);
  --text-6xl:  clamp(3.2rem,  4.6vw + 1.4rem, 5.25rem);

  --tracking-tight:   -0.015em;
  --tracking-tighter: -0.028em;
  --tracking-mono:     0.02em;
  --tracking-label:    0.16em;

  --leading-tight: 1.02;
  --leading-snug:  1.18;
  --leading-base:  1.52;

  /* ---------- Color system (shared) ---------- */
  --bg:            #07080A;
  --bg-elev-1:     #0C0E12;
  --bg-elev-2:     #11141A;
  --bg-elev-3:     #171B23;

  --line:          #1E232C;
  --line-strong:   #2A313D;

  --fg:            #F4F5F7;
  --fg-muted:      #A8ADBA;
  --fg-dim:        #6B7180;
  --fg-faint:      #434956;

  --ok:            #3DDC84;
  --warn:          #F5C451;
  --danger:        #FF5D5D;

  /* Brand accents — each site overrides --accent */
  --accent-cyan:   #4FD1FF;  /* cooktechnology.com (client) */
  --accent-green:  #7AF29E;  /* cooktech.us (tech) */
  --accent-white:  #EAF3FF;

  /* Default; each site redefines in its own :root override */
  --accent:        var(--accent-cyan);
  --accent-ink:    #05121C;

  /* ---------- Space, radius, motion ----------
     Fluid spacing: tight on mobile, generous on desktop. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 22px;
  --space-6: clamp(24px, 2.2vw, 32px);
  --space-7: clamp(32px, 3.6vw, 48px);
  --space-8: clamp(44px, 5vw, 64px);
  --space-9: clamp(56px, 7vw, 88px);
  --space-10: clamp(64px, 9vw, 112px);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --ease: cubic-bezier(.2,.65,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --dur-1: 120ms;
  --dur-2: 220ms;
  --dur-3: 380ms;

  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 1px 0 rgba(255,255,255,0.05) inset, 0 8px 24px rgba(0,0,0,.45);
  --glow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent),
          0 8px 40px -8px color-mix(in srgb, var(--accent) 45%, transparent);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  color: var(--fg);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-8) 0; }
::selection { background: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--bg); }

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-narrow { max-width: 960px; }

.section {
  padding: var(--space-9) 0;
  position: relative;
}
.section-tight { padding: var(--space-7) 0; }
@media (max-width: 760px) {
  .section { padding: var(--space-8) 0; }
  .section-tight { padding: var(--space-6) 0; }
}

/* ==========================================================================
   Typography
   ========================================================================== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: var(--tracking-tighter);
  line-height: var(--leading-tight);
  margin: 0;
  font-weight: 500;
  text-wrap: balance;
}
h1 { font-size: var(--text-6xl); font-weight: 500; letter-spacing: -0.035em; }
h2 { font-size: var(--text-4xl); font-weight: 500; letter-spacing: -0.028em; }
h3 { font-size: var(--text-2xl); font-weight: 500; letter-spacing: var(--tracking-tight); }
h4 { font-size: var(--text-xl); font-weight: 600; letter-spacing: var(--tracking-tight); }

/* Fraunces italic inside display-context em — editorial accent only.
   Applies to headings, stats, CTAs, voice quotes, rungs, etc. */
h1 em, h2 em, h3 em, h4 em,
.stat-num em, .rating-num em, .rating-stat em,
.rung h3 em, .voice p em, .cta-band h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  color: var(--accent);
}

p  { margin: 0 0 var(--space-4) 0; color: var(--fg-muted); max-width: 68ch; text-wrap: pretty; }
p.lead { font-size: var(--text-xl); color: var(--fg); line-height: 1.4; max-width: 58ch; letter-spacing: -0.005em; }
.mono { font-family: var(--font-mono); letter-spacing: var(--tracking-mono); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: var(--space-5);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--fg);
}

/* Tiny LIVE status indicator next to the brand */
.brand-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding: 3px 9px 3px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--fg-muted);
  background: color-mix(in srgb, var(--bg-elev-2) 60%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.brand-live::before {
  content: "";
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent);
  animation: live-blink 3.4s cubic-bezier(.37, 0, .25, 1) infinite;
  will-change: opacity, box-shadow;
}
/* Soft breathing pulse. No hard blink — opacity stays 0.78–1.0
   and the halo grows/decays in a smooth cubic curve. */
@keyframes live-blink {
  0%, 100% { opacity: 1;    box-shadow: 0 0 0 0   color-mix(in srgb, var(--ok) 55%, transparent); }
  45%      { opacity: .82;  box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 0%,  transparent); }
  55%      { opacity: .82;  box-shadow: 0 0 0 6px color-mix(in srgb, var(--ok) 0%,  transparent); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-live::before { animation: none; }
}
@media (max-width: 640px) { .brand-live { display: none; } }
.brand-mark {
  width: 34px; height: 34px;
  display: inline-grid;
  place-items: center;
  color: var(--accent);
  font-size: 0;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 22%, transparent));
}
.brand-mark svg { width: 100%; height: 100%; display: block; }

/* Circuit-pad breath: six pads ease in and out of glow on a long, soft 4.8s
   loop. Staggered offsets simulate a signal traveling through the trace —
   smooth, not blinky. Honors prefers-reduced-motion. */
@keyframes ct-pulse {
  0%, 100% { opacity: .6; filter: drop-shadow(0 0 0   transparent); }
  50%      { opacity: 1;  filter: drop-shadow(0 0 2.4px currentColor); }
}
.brand-mark svg g:last-of-type circle {
  animation: ct-pulse 4.8s cubic-bezier(.45, 0, .3, 1) infinite;
  opacity: .6;
  will-change: opacity, filter;
}
.brand-mark svg g:last-of-type circle:nth-of-type(1) { animation-delay: 0s;    }
.brand-mark svg g:last-of-type circle:nth-of-type(2) { animation-delay: .7s;   }
.brand-mark svg g:last-of-type circle:nth-of-type(3) { animation-delay: 2.4s;  }
.brand-mark svg g:last-of-type circle:nth-of-type(4) { animation-delay: 3.1s;  }
.brand-mark svg g:last-of-type circle:nth-of-type(5) { animation-delay: 1.5s;  }
.brand-mark svg g:last-of-type circle:nth-of-type(6) { animation-delay: 3.9s;  }
@media (prefers-reduced-motion: reduce) {
  .brand-mark svg g:last-of-type circle { animation: none; opacity: .9; }
}
.nav-links {
  display: flex;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: var(--fg-muted);
}
.nav-links a { color: var(--fg-muted); transition: color var(--dur-1) var(--ease); }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; align-items: center; gap: var(--space-3); }
@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  --btn-bg: var(--bg-elev-2);
  --btn-fg: var(--fg);
  --btn-border: var(--line-strong);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-5);
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: background var(--dur-2) var(--ease), color var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease), transform var(--dur-1) var(--ease);
  white-space: nowrap;
}
.btn:hover { border-color: var(--fg-faint); color: var(--fg); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-ink);
  --btn-border: transparent;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 30px -12px color-mix(in srgb, var(--accent) 60%, transparent);
}
.btn-primary:hover {
  --btn-bg: color-mix(in srgb, var(--accent) 86%, #fff);
  --btn-fg: var(--accent-ink);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-border: var(--line-strong);
  color: var(--fg-muted);
}
.btn-ghost:hover { color: var(--fg); border-color: var(--fg-faint); background: var(--bg-elev-1); }

.btn-lg { height: 48px; padding: 0 var(--space-6); font-size: var(--text-base); }

.arrow-right::after {
  content: "→";
  display: inline-block;
  transform: translateX(0);
  transition: transform var(--dur-2) var(--ease);
}
.arrow-right:hover::after { transform: translateX(4px); }

/* ==========================================================================
   Cards, surfaces
   ========================================================================== */
.card {
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease);
}
.card:hover { border-color: var(--line-strong); background: var(--bg-elev-2); }
.card-title { font-size: var(--text-xl); margin-bottom: var(--space-3); }
.card-body  { color: var(--fg-muted); font-size: var(--text-base); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-muted);
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.chip-live::before {
  content: "";
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}

/* ==========================================================================
   Grid helpers
   ========================================================================== */
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr);} .grid-3 { grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr;} }

/* ==========================================================================
   Hero / background fx
   ========================================================================== */
.hero {
  padding: var(--space-9) 0 var(--space-8);
  position: relative;
  overflow: hidden;
}
.hero h1 {
  margin-bottom: var(--space-4);
  letter-spacing: -0.04em;
}
.hero .lead { margin-bottom: var(--space-6); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elev-1) 60%, transparent);
  margin-bottom: var(--space-5);
}
.hero-kicker::before {
  content: "";
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: live-blink 1.6s ease-in-out infinite;
}

.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--fg) 4%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--fg) 4%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 40%, transparent 80%);
}

/* ==========================================================================
   Stats row
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: var(--space-6);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--fg);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.1em;
}
.stat-num em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.7em;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.stat-lbl {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: var(--space-2);
}
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Client marquee
   ========================================================================== */
.clients-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-4) 0;
}
.client-cell {
  text-align: center;
  padding: var(--space-3) var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg-elev-1) 60%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  transition: border-color var(--dur-2) var(--ease), background var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.client-cell img {
  max-height: 30px;
  max-width: 100%;
  width: auto;
  height: auto;
  opacity: .78;
  filter: saturate(0.9);
  transition: opacity var(--dur-2) var(--ease), filter var(--dur-2) var(--ease);
}
.client-name {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .01em;
  color: #E5E7EB;
  line-height: 1;
  opacity: .92;
}
.client-cell:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  background: var(--bg-elev-2);
  transform: translateY(-1px);
}
.client-cell:hover img,
.client-cell:hover .client-name {
  opacity: 1;
  filter: saturate(1);
}
.client-cell--more {
  font-family: var(--font-serif);
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  color: var(--fg-dim);
  letter-spacing: -0.01em;
}
@media (max-width: 960px) { .clients-row { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .clients-row { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  margin-top: var(--space-10);
  border-top: 1px solid var(--line);
  padding: var(--space-8) 0 var(--space-6);
  color: var(--fg-muted);
  font-size: var(--text-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}
.footer h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0 0 var(--space-3) 0;
  font-weight: 500;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: var(--space-2); }
.footer li a { color: var(--fg-muted); }
.footer li a:hover { color: var(--fg); }
.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: var(--space-5);
  display: flex; justify-content: space-between; gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--fg-dim);
  font-family: var(--font-mono);
  letter-spacing: var(--tracking-mono);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Badges, pills, small UI
   ========================================================================== */
.tag {
  display: inline-block;
  padding: 2px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  color: var(--fg-muted);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
}

/* ==========================================================================
   Utility
   ========================================================================== */
.row { display: flex; align-items: center; gap: var(--space-3); }
.row-between { display:flex; align-items:center; justify-content:space-between; gap: var(--space-4); }
.stack { display:flex; flex-direction:column; gap: var(--space-4); }
.muted { color: var(--fg-muted); }
.dim { color: var(--fg-dim); }
.accent-text { color: var(--accent); }
.hide-mobile { display: initial; }
@media (max-width: 760px) { .hide-mobile { display: none; } }

/* Subtle entrance — only hide initially when JS is available & motion is allowed.
   This keeps the page readable with JS disabled, in screenshots, and for reduced-motion users. */
[data-reveal] { opacity: 1; transform: none; transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
html.js [data-reveal] { opacity: 0; transform: translateY(8px); }
html.js [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; }
}

/* Focus states */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip to content — visible only on focus */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  padding: 10px 14px;
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus {
  left: 0;
}

/* Better form controls */
input, textarea, select {
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--fg);
  background: var(--bg-elev-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-color: var(--accent);
}
label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 6px;
}

/* Print polish */
@media print {
  .nav, .footer, .hero-ctas, .cta-band, .btn { display: none !important; }
  body { background: white; color: black; }
  a { color: black; text-decoration: underline; }
  .card, .section { break-inside: avoid; }
}

/* ==========================================================================
   EDITORIAL LAYER — added for the photo-forward redesign
   Photos, captions, pull quotes, chart wrappers, figure composition.
   ========================================================================== */

/* Duotone SVG filters applied to <img>. Sites override the duotone palette. */
:root {
  --duotone-shadow: #07080A;  /* dark stop */
  --duotone-mid:    #2A313D;  /* midtone */
  --duotone-hi:     #F4F5F7;  /* highlight */
}

/* Editorial display — use this on section-level headlines when you want
   the full Fraunces serif vibe. Body H1/H2 already use var(--font-display). */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 40;
}
.display-italic { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 60; }

/* Figure / photo composition ---------------------------------------------- */
figure.photo {
  margin: 0;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elev-1);
  border: 1px solid var(--line);
}
figure.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-3) var(--ease-out), filter var(--dur-2) var(--ease);
}
figure.photo:hover img { transform: scale(1.015); }

/* Duotone muted treatment — uses SVG filter defined inline in each page. */
.photo-duotone img { filter: url(#ct-duotone) contrast(1.02) saturate(0.6); }
.photo-mono img    { filter: grayscale(1) contrast(1.05) brightness(0.95); }
.photo-warm img    { filter: saturate(0.55) contrast(1.05) sepia(0.12); }

/* Caption / credit lockup */
figcaption.photo-caption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  color: var(--fg-dim);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: var(--space-4);
  background: var(--bg-elev-1);
}
figcaption.photo-caption .credit { color: var(--fg-faint); }

/* Aspect ratios — keep heights predictable in the grid */
.aspect-16-9  { aspect-ratio: 16 / 9; }
.aspect-3-2   { aspect-ratio: 3 / 2; }
.aspect-4-5   { aspect-ratio: 4 / 5; }
.aspect-square{ aspect-ratio: 1 / 1; }
.aspect-2-3   { aspect-ratio: 2 / 3; }

/* Photo-forward HERO: text left, full-bleed photo right */
.hero-photo {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-9) 0 var(--space-9);
}
.hero-photo .photo { aspect-ratio: 4 / 5; border-radius: var(--radius-md); }
@media (max-width: 960px) {
  .hero-photo { grid-template-columns: 1fr; gap: var(--space-6); }
  .hero-photo .photo { aspect-ratio: 3 / 2; }
}

/* Pull quote — editorial call-out */
.pull-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, var(--text-3xl));
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--fg);
  padding: var(--space-7) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  font-variation-settings: "opsz" 96, "SOFT" 30;
}
.pull-quote::before {
  content: "\201C";
  position: absolute;
  left: -0.2em;
  top: 0.2em;
  font-size: 3em;
  color: var(--accent);
  line-height: 1;
  opacity: 0.4;
  pointer-events: none;
}
.pull-quote cite {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-dim);
  font-style: normal;
}

/* Chart wrapper — labels, axis type, captions */
.chart {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--bg-elev-1), var(--bg));
  padding: var(--space-6);
  position: relative;
}
.chart-head {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--space-5);
}
.chart-head h3 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 500; }
.chart-head .source {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--fg-dim);
}
.chart svg { width: 100%; height: auto; display: block; }
.chart-note {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  color: var(--fg-dim);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px dashed var(--line);
}

/* Rule — editorial horizontal rule with a small mark */
.rule-mark {
  position: relative;
  border-top: 1px solid var(--line);
  padding-top: var(--space-6);
  margin-top: var(--space-8);
}
.rule-mark::before {
  content: "";
  position: absolute; top: -3px; left: 0;
  width: 40px; height: 5px;
  background: var(--accent);
}

/* Drop-cap — editorial first-paragraph treatment */
.dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: 450;
  float: left;
  font-size: 4.4em;
  line-height: 0.85;
  padding-right: 0.1em;
  padding-top: 0.05em;
  color: var(--accent);
  font-variation-settings: "opsz" 144, "SOFT" 30;
}

/* Sources line for citations */
.citation {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-mono);
  color: var(--fg-faint);
}
.citation a { color: var(--fg-dim); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.citation a:hover { color: var(--fg-muted); text-decoration-color: var(--accent); }
