/* ---------- Fonts (self-hosted: same-origin, no render-blocking third party) ----------
   Variable woff2, latin subset. Weight ranges cover every weight the site uses. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/fraunces-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0a0908;
  --bg-raised: #121110;
  --bg-card: #17150f14;
  --line: #2a2621;
  --line-strong: #6a6357; /* interactive borders: WCAG 1.4.11 needs 3:1, --line is decorative only */
  --ink: #f3efe7;
  --ink-dim: #b8b0a3;
  --ink-faint: #847d70; /* 4.88:1 on --bg; #7d766a was 4.43:1 and failed AA for 13-14px text */
  --ember-1: #ffd27a;
  --ember-2: #ff8a3d;
  --ember-3: #d8390f;
  --ember-grad: linear-gradient(120deg, var(--ember-1), var(--ember-2) 55%, var(--ember-3));
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 500; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Texture layers ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 420px; height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(255,138,61,0.06), transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  opacity: 0;
}
@media (hover: hover) {
  .cursor-glow.active { opacity: 1; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(10,9,8,0.85), rgba(10,9,8,0));
}

.wordmark {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.wordmark.small { font-size: 18px; }
.wordmark-kore {
  background: var(--ember-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark-foundry { color: var(--ink); }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--ink-dim);
}
.nav-links a { transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--ink); }

.nav-links a.is-current { color: var(--ember-2); }

/* Scroll spy: which section you're currently reading */
.nav-links a {
  position: relative;
  padding-bottom: 4px;
}
.nav-links a.is-active { color: var(--ink); }
.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--ember-grad);
}
@media (prefers-reduced-motion: no-preference) {
  .nav-links a::after { transition: opacity 0.3s var(--ease); }
}

/* Mobile: keep nav present (a multi-page site needs it) as a scrollable strip */
@media (max-width: 780px) {
  .nav {
    flex-wrap: wrap;
    gap: 12px 0;
    padding: 16px 20px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    gap: 20px;
    font-size: 13px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  will-change: transform;
}
.btn-small { padding: 10px 18px; font-size: 13px; }
.btn-large { padding: 18px 34px; font-size: 16px; }
.btn-primary {
  background: var(--ember-grad);
  color: #1a0e04;
  box-shadow: 0 8px 30px -8px rgba(255, 138, 61, 0.55);
}
.btn-primary:hover { box-shadow: 0 12px 40px -6px rgba(255, 138, 61, 0.75); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ember-2); }

/* Keyboard focus: visible for keyboard users, absent for mouse users */
:focus-visible {
  outline: 2px solid var(--ember-2);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 32px 80px;
  overflow: hidden;
}

#embers {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-glow {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(216,57,15,0.35), rgba(216,57,15,0.08) 45%, transparent 70%);
  filter: blur(40px);
  animation: pulse 9s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
  text-align: center;
  /* CSS-only entrance: above-the-fold content must never depend on JS to become
     visible (no-JS = blank hero, and it pushes LCP behind a script round-trip). */
  animation: heroIn 0.7s var(--ease) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-inner { animation: none; }
}

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-2);
  margin: 0 0 22px;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-dim);
  max-width: 600px;
  margin: 28px auto 0;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 56px;
  font-size: 13px;
  color: var(--ink-faint);
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--ink-faint));
  overflow: hidden;
}
.scroll-cue span {
  position: absolute;
  top: -48px;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--ember-2));
  animation: scrollCue 2.2s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(0); }
  100% { transform: translateY(96px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; }
  .scroll-cue span { animation: none; }
}

/* ---------- Sections ---------- */
.section { padding: 140px 0; position: relative; }
.kicker {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember-2);
  font-weight: 600;
  margin: 0 0 18px;
}
.section-title {
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 640px;
}
.section-lede {
  color: var(--ink-dim);
  font-size: 17px;
  max-width: 560px;
  margin-top: 20px;
}

/* Problem grid */
.grid-problems {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.problem-card {
  background: var(--bg);
  padding: 34px 30px;
  transition: background 0.4s var(--ease);
}
.problem-card:hover { background: var(--bg-raised); }
.problem-icon {
  display: inline-block;
  font-size: 20px;
  color: var(--ember-2);
  margin-bottom: 18px;
}
.problem-card h3 {
  font-size: 17px;
  font-weight: 600;
  font-family: var(--sans);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.problem-card p {
  font-size: 14px;
  color: var(--ink-faint);
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .grid-problems { grid-template-columns: 1fr; }
}

/* Manifesto */
.manifesto {
  padding: 160px 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,138,61,0.06), transparent 60%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.manifesto-inner { text-align: center; max-width: 760px; }
.manifesto-quote {
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.2;
  color: var(--ink);
}
.manifesto-quote em {
  font-style: normal;
  font-weight: 700;
}
.manifesto-body {
  margin-top: 32px;
  font-size: 18px;
  color: var(--ink-dim);
  line-height: 1.7;
}
/* one clause per line; spans (not <br>) so each still wraps cleanly on narrow screens */
.manifesto-body span {
  display: block;
}
.manifesto-body span + span { margin-top: 6px; }
.manifesto-label {
  margin-top: 28px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember-2);
  font-weight: 600;
}

/* Stepper */
.stepper {
  position: relative;
  max-width: 720px;
  margin: 80px auto 0;
  padding: 0 32px;
}
.stepper-line {
  position: absolute;
  left: 32px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.stepper-line-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0%;
  background: var(--ember-grad);
  transition: height 0.25s linear;
}
.step {
  position: relative;
  display: flex;
  gap: 28px;
  padding: 30px 0 30px 48px;
  opacity: 0.35;
  transition: opacity 0.5s var(--ease);
}
.step.active { opacity: 1; }
.step-num {
  position: absolute;
  left: -3px;
  top: 30px;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
  transition: all 0.4s var(--ease);
}
.step.active .step-num {
  border-color: var(--ember-2);
  color: var(--ember-1);
  box-shadow: 0 0 0 4px rgba(255,138,61,0.12);
}
.step-body h3 {
  font-size: 24px;
  margin-bottom: 8px;
}
.step-body p {
  color: var(--ink-dim);
  font-size: 15px;
  max-width: 460px;
  margin: 0;
}

/* AI think cards */
.grid-three {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.think-card {
  padding: 32px 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,0.02), transparent);
}
.think-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.tag-rules { background: rgba(120,130,140,0.15); color: #b9c2c9; }
.tag-ai { background: rgba(255,138,61,0.15); color: var(--ember-1); }
.tag-human { background: rgba(255,255,255,0.08); color: var(--ink); }
.think-card p { color: var(--ink-dim); font-size: 15px; margin: 0; line-height: 1.6; }
@media (max-width: 900px) {
  .grid-three { grid-template-columns: 1fr; }
}

/* ---------- Worked example: traced pipeline ---------- */
.trace-section {
  background:
    radial-gradient(ellipse at 15% 30%, rgba(255, 138, 61, 0.05), transparent 55%),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trace-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 40px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.legend-item { display: inline-flex; align-items: center; gap: 9px; }
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.dot-rules { background: #8fa0ad; }
.dot-ai { background: var(--ember-2); box-shadow: 0 0 10px rgba(255, 138, 61, 0.7); }
.dot-human { background: var(--ink); }

.trace {
  list-style: none;
  margin: 44px 0 0;
  padding: 0 0 0 40px;
  position: relative;
  max-width: 780px;
}
/* the spine */
.trace::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: var(--line);
}

.trace-stage {
  position: relative;
  padding: 0 0 34px;
  opacity: 0.34;
  transition: opacity 0.55s var(--ease);
}
.trace-stage:last-child { padding-bottom: 0; }
.trace-stage.lit { opacity: 1; }

.trace-marker {
  position: absolute;
  left: -40px;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
  transition: border-color 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.45s var(--ease);
}
.trace-stage.lit .trace-marker { border-color: #8fa0ad; }
.trace-stage.lit[data-layer="ai"] .trace-marker {
  border-color: var(--ember-2);
  background: var(--ember-2);
  box-shadow: 0 0 0 5px rgba(255, 138, 61, 0.16), 0 0 20px rgba(255, 138, 61, 0.6);
}
.trace-stage.lit[data-layer="human"] .trace-marker {
  border-color: var(--ink);
  background: var(--ink);
}
.trace-stage.lit[data-layer="entry"] .trace-marker { border-color: var(--ink-faint); }

.trace-layer {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8fa0ad;
  margin-bottom: 7px;
}
.trace-stage[data-layer="ai"] .trace-layer { color: var(--ember-2); }
.trace-stage[data-layer="human"] .trace-layer { color: var(--ink); }
.trace-stage[data-layer="entry"] .trace-layer { color: var(--ink-faint); }

.trace-body h3 {
  font-size: 21px;
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}
.trace-body p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.65;
}
.trace-body em { font-size: 15px; }

/* The AI stage is the point of the whole diagram, so give it presence.
   Accent sits on the RIGHT so the text stays flush-left with every other stage. */
.trace-stage[data-layer="ai"] .trace-body {
  border-right: 2px solid rgba(255, 138, 61, 0.45);
  padding-right: 20px;
}

.trace-note {
  margin-top: 48px;
  max-width: 780px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 138, 61, 0.05), transparent);
}
.trace-note p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 15.5px;
  line-height: 1.7;
}
.trace-note strong { color: var(--ink); font-weight: 600; }

@media (max-width: 640px) {
  .trace { padding-left: 32px; }
  .trace::before { left: 5px; }
  .trace-marker { left: -32px; width: 13px; height: 13px; }
  .trace-stage[data-layer="ai"] .trace-body {
    padding-right: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .trace-stage { opacity: 1; }
}

.work-stats {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-self: center;
  border-left: 1px solid var(--line);
  padding-left: 32px;
}
.work-stats div { display: flex; flex-direction: column-reverse; gap: 2px; }
.work-stats dt {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.work-stats dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  background: var(--ember-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.work-stats dd span {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  -webkit-text-fill-color: var(--ink-faint);
  margin-left: 4px;
}

@media (max-width: 860px) {
  .work-stats {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 26px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
}
.fallback {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--line);
}
.fallback li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg);
  font-size: 14.5px;
  transition: background 0.35s var(--ease);
}
.fallback li:hover { background: var(--bg-raised); }
.fallback-rank {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
}
/* each rung down is a little dimmer; the degradation is the point */
.fallback li:nth-child(1) .fallback-step { color: var(--ink); }
.fallback li:nth-child(2) .fallback-step { color: #ddd6ca; }
.fallback li:nth-child(3) .fallback-step { color: var(--ink-dim); }
.fallback li:nth-child(4) .fallback-step { color: #9d9586; }
.fallback li:nth-child(5) .fallback-step { color: var(--ink-faint); }

/* Third feature: single column, decisions instead of stats */
.work-feature-plain {
  margin-top: 24px;
  grid-template-columns: 1fr;
  border-color: var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.018), transparent);
}

.decisions {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 34px;
}
.decisions li {
  padding-left: 16px;
  border-left: 2px solid var(--line);
  transition: border-color 0.4s var(--ease);
}
.decisions li:hover { border-left-color: var(--ember-2); }
.decisions h4 {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 7px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.decisions p {
  margin: 0 !important;
  font-size: 14.5px !important;
  line-height: 1.65;
  color: var(--ink-dim) !important;
}

@media (max-width: 760px) {
  .decisions { grid-template-columns: 1fr; gap: 20px; }
}

/* Manifesto proof link */
.manifesto-proof {
  margin-top: 30px;
  font-size: 15px;
  color: var(--ink-faint);
}
.manifesto-proof a {
  color: var(--ember-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.manifesto-proof a:hover { color: var(--ember-1); }

/* Badge variants */
.badge-live {
  color: var(--ember-1);
  border-color: rgba(255, 138, 61, 0.55);
  background: rgba(255, 138, 61, 0.1);
}
.badge {
  position: absolute;
  top: 24px; right: 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ember-1);
  border: 1px solid rgba(255,138,61,0.35);
  padding: 4px 10px;
  border-radius: 999px;
}
.work-tag {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 10px;
}
@media (max-width: 900px) {
}

/* Engagement flow */
.flow {
  margin-top: 60px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.flow-step {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s var(--ease);
}
.flow-step:hover {
  border-color: var(--ember-2);
  transform: translateY(-3px);
  background: linear-gradient(160deg, rgba(255,138,61,0.06), transparent);
}
.flow-step small {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ember-2);
}
.flow-arrow {
  display: flex;
  align-items: center;
  color: var(--ink-faint);
  font-size: 18px;
}
.flow-arrow-glyph { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .flow-arrow-glyph {
    animation: arrowPulse 2.2s ease-in-out infinite;
  }
  .flow-arrow:nth-child(2) .flow-arrow-glyph { animation-delay: 0s; }
  .flow-arrow:nth-child(4) .flow-arrow-glyph { animation-delay: 0.3s; }
  .flow-arrow:nth-child(6) .flow-arrow-glyph { animation-delay: 0.6s; }
  .flow-arrow:nth-child(8) .flow-arrow-glyph { animation-delay: 0.9s; }
}
@keyframes arrowPulse {
  0%, 100% { opacity: 0.4; transform: translateX(0); color: var(--ink-faint); }
  50% { opacity: 1; transform: translateX(5px); color: var(--ember-2); }
}
@media (max-width: 780px) {
  .flow-arrow-glyph { animation: none !important; }
}
@media (max-width: 780px) {
  .flow { flex-direction: column; align-items: stretch; }
  .flow-arrow { align-self: center; }
  .flow-arrow-glyph { transform: rotate(90deg); }
}

/* FAQ */
.faq-list {
  margin-top: 48px;
  max-width: 760px;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 20px;
  color: var(--ember-2);
  transition: transform 0.35s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 16px 0 0;
  color: var(--ink-dim);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 620px;
}

/* ---------- Work list (home + /work/) ---------- */
.work-list {
  margin-top: 52px;
  border-top: 1px solid var(--line);
}
.work-list-item {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 36px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.4s var(--ease), padding-left 0.4s var(--ease);
}
.work-list-item:hover {
  background: linear-gradient(90deg, rgba(255, 138, 61, 0.05), transparent 70%);
  padding-left: 16px;
}
.work-list-meta .badge { position: static; display: inline-block; margin-bottom: 10px; }
.work-list-meta .work-tag { margin: 0; }
.work-list-body h2,
.work-list-body h3 {
  font-size: 23px;
  line-height: 1.25;
  margin-bottom: 9px;
  letter-spacing: -0.012em;
  transition: color 0.3s var(--ease);
}
.work-list-item:hover .work-list-body h2,
.work-list-item:hover .work-list-body h3 { color: var(--ember-1); }
.work-list-body p {
  margin: 0 0 12px;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.65;
}
.work-list-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.work-list-arg {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ember-2);
}
/* Explicit affordance: the whole row is a link, but nothing said so */
.work-list-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.work-list-cta i {
  font-style: normal;
  transition: transform 0.3s var(--ease);
}
.work-list-item:hover .work-list-cta {
  color: var(--ember-1);
  border-color: var(--ember-2);
}
.work-list-item:hover .work-list-cta i { transform: translateX(4px); }
.work-more {
  margin-top: 30px;
  color: var(--ink-faint);
  font-size: 15px;
}
.work-more a {
  color: var(--ember-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 760px) {
  .work-list-item { grid-template-columns: 1fr; gap: 14px; }
  .work-list-item:hover { padding-left: 0; }
}

/* ---------- Case study pages ---------- */
.case { padding: 60px 0 100px; }
.breadcrumb {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 40px;
  display: flex;
  gap: 9px;
}
.breadcrumb a { color: var(--ink-faint); transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--ember-2); }

.case-head { max-width: 760px; margin-bottom: 48px; }
.case-head .badge { position: static; display: inline-block; margin-bottom: 16px; }
.case-head .work-tag { margin-bottom: 14px; }
.case-head h1 {
  font-size: clamp(32px, 5.2vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.case-lede {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ink-dim);
  line-height: 1.6;
  margin: 0;
}
.case-stats {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px;
  border-left: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  margin-bottom: 52px;
  align-self: stretch;
}

.case-body { max-width: 720px; }
.case-body h2 {
  font-size: 27px;
  letter-spacing: -0.015em;
  margin: 48px 0 16px;
}
.case-body h2:first-child { margin-top: 0; }
.case-body h3 {
  font-size: 20px;
  margin: 34px 0 12px;
  color: var(--ink);
}
.case-body p {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.75;
  margin: 0 0 18px;
}
.case-body strong { color: var(--ink); font-weight: 600; }
.case-body a {
  color: var(--ember-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.case-callout {
  padding: 22px 24px;
  border-left: 2px solid var(--ember-2);
  background: linear-gradient(90deg, rgba(255, 138, 61, 0.06), transparent);
  border-radius: 0 12px 12px 0;
  margin: 26px 0 !important;
}
.case-question {
  font-family: var(--serif);
  font-size: clamp(21px, 3vw, 27px) !important;
  line-height: 1.35 !important;
  color: var(--ink) !important;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 26px 0 !important;
}
.decisions-full {
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 26px;
}
.decisions-full h3 { margin: 0 0 10px; font-size: 19px; }
.decisions-full p { font-size: 15.5px !important; margin-bottom: 12px !important; }
.decisions-full p:last-child { margin-bottom: 0 !important; }

.case-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 72px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
  max-width: 860px;
}
.case-next-link {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.case-next-link:hover { border-color: var(--ember-2); transform: translateY(-3px); }
.case-next-link span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.case-next-link strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}
@media (max-width: 700px) {
  .case-next { grid-template-columns: 1fr; }
  .case-stats { gap: 26px; }
}

/* /work/ index extras */
.work-index { padding-top: 60px; }
.work-index h1.section-title { font-size: clamp(32px, 5vw, 50px); }
.work-inflight {
  margin-top: 64px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
  max-width: 760px;
}
.work-inflight h2 {
  font-size: 21px;
  margin-bottom: 20px;
}
.work-inflight ul { list-style: none; margin: 0; padding: 0; }
.work-inflight li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.6;
}
.work-inflight li strong { color: var(--ink); font-weight: 600; }
.work-inflight li span {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ember-2);
}
.work-inflight-note {
  margin-top: 20px;
  font-size: 14px;
  color: var(--ink-faint);
}

/* Final CTA */
.cta-final {
  padding: 160px 0 120px;
  text-align: center;
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 100%, rgba(255,138,61,0.08), transparent 60%);
}
.cta-final h2 {
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.25;
  max-width: 760px;
  margin: 0 auto 44px;
}
.cta-email {
  margin-top: 22px;
  font-size: 14px;
  color: var(--ink-faint);
}
.cta-email a { color: var(--ember-2); }

/* Footer */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: 14px;
}
.footer-inner p { margin: 0; }
.footer-inner a { color: var(--ink-dim); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
