/* ─────────────────────────────────────────────────────────────────────
   KAIZEN — Marketing site
   Production stylesheet. Recreated from the Kaizen Design System
   marketing-site UI kit (colors_and_type.css + site.css).
   Body type follows Roman's landing-page rule: 15px baseline,
   17px lede/principles — not the prototype's 13-14px.
   ───────────────────────────────────────────────────────────────────── */

:root {
  /* ── Core palette ──────────────────────────────────────────────── */
  --ink:   #0c0b09;
  --ash:   #1a1814;
  --dust:  #2a2620;
  --fog:   #3d3830;
  --mist:  #8a8278;
  --ghost: #e8e0d0;
  --bone:  #f2ede4;

  /* ── Accents ──────────────────────────────────────────────────── */
  --ember: #d4724a;
  --ember-deep: #a8552f;
  --sand:  #c4a96d;
  --cold:  #6b8fa3;

  /* ── Typography stacks ────────────────────────────────────────── */
  --font-display: "Bebas Neue", "Oswald", "Impact", sans-serif;
  --font-body:    "Space Mono", "JetBrains Mono", ui-monospace, monospace;
  --font-jp:      "Noto Serif JP", "Hiragino Mincho ProN", serif;

  /* ── Motion ───────────────────────────────────────────────────── */
  --ease:     cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Grain texture ────────────────────────────────────────────── */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.045'/></svg>");
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--ink);
  color: var(--ghost);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* fixed film-grain overlay — defining brand element */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--grain);
  pointer-events: none;
  z-index: 1000;
  opacity: 0.55;
  mix-blend-mode: overlay;
}

::selection { background: var(--ember); color: var(--ink); }

:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }

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

.page { max-width: 1080px; margin: 0 auto; padding: 0 48px; }

/* ── nav ──────────────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--fog);
}
.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.brand .jp {
  font-family: var(--font-jp); font-weight: 300; font-size: 11px;
  color: var(--mist); letter-spacing: 0.3em;
}
.brand .wm {
  font-family: var(--font-display); font-size: 28px; line-height: 1;
  letter-spacing: 0.1em; color: var(--bone);
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-family: var(--font-body); font-size: 10px;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ghost); text-decoration: none;
  transition: opacity 140ms var(--ease);
}
.nav-links a:hover { opacity: 0.7; }
.nav-cta {
  font-family: var(--font-body); font-weight: 700; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--ember); color: var(--ink);
  padding: 10px 16px; border: 0; text-decoration: none;
  transition: all 240ms var(--ease); cursor: pointer;
  white-space: nowrap;
}
.nav-cta:hover {
  background: #e08560;
  box-shadow: 0 0 0 1px rgba(212,114,74,0.4), 0 10px 30px -8px rgba(212,114,74,0.5);
}

/* ── hero ─────────────────────────────────────────────────────────── */
.hero { padding: 96px 0 80px; position: relative; }
.hero-eyebrow {
  font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--ember); margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 132px);
  line-height: 0.88;
  letter-spacing: 0.04em;
  color: var(--bone);
  text-transform: uppercase;
  margin: 0 0 32px;
  max-width: 920px;
}
.hero h1 em { color: var(--ember); font-style: normal; }
.hero .lede {
  font-size: 17px; line-height: 1.8;
  color: var(--ghost); max-width: 560px; margin: 0 0 16px;
}
.hero .lede em { color: var(--mist); font-style: italic; }

/* "choose you" accent — matches ember treatment of "invest" in h1 */
.lede-accent { color: var(--ember); font-style: normal; font-weight: 700; }

.cta-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 20px; }

/* ── buttons ──────────────────────────────────────────────────────── */
.btn {
  font-family: var(--font-body); font-weight: 700; font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 16px 24px; border: 1px solid transparent; cursor: pointer;
  transition: all 240ms var(--ease);
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
}
.btn-primary { background: var(--ember); color: var(--ink); }
.btn-primary:hover {
  background: #e08560;
  box-shadow: 0 0 0 1px rgba(212,114,74,0.4), 0 12px 36px -10px rgba(212,114,74,0.55);
}
.btn-primary:active { transform: translateY(1px); }

/* quiet secondary action — a text link, never a second button */
.text-link {
  font-family: var(--font-body); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mist); text-decoration: none;
  border-bottom: 1px solid var(--fog);
  padding-bottom: 3px;
  transition: color 140ms var(--ease), border-color 140ms var(--ease);
}
.text-link:hover { color: var(--ghost); border-color: var(--mist); }

.hero-jp {
  position: absolute; right: -28px; bottom: -28px;
  font-family: var(--font-jp); font-weight: 300; font-size: 280px;
  line-height: 1; color: rgba(255,255,255,0.025); pointer-events: none;
  user-select: none;
}

/* ── section + section label ──────────────────────────────────────── */
.section { padding: 64px 0; }
.section-label {
  display: flex; align-items: center; gap: 14px;
  font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--mist); margin-bottom: 28px;
}
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--fog); }

/* ── cards (kept for work page) ───────────────────────────────────── */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card {
  background: var(--ash); border: 1px solid var(--fog);
  padding: 32px; position: relative; overflow: hidden;
  transition: border-color 240ms var(--ease);
}
.card:hover { border-color: var(--mist); }
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.card.ember::before { background: var(--ember); }
.card.sand::before  { background: var(--sand); }
.card.cold::before  { background: var(--cold); }
.card.ghost::before { background: var(--ghost); }
.card .tag { font-size: 9px; letter-spacing: 0.3em; color: var(--mist); text-transform: uppercase; margin-bottom: 16px; }
.card .ttl { font-family: var(--font-display); font-size: 34px; letter-spacing: 0.05em; color: var(--bone); line-height: 1.1; margin: 0 0 12px; text-transform: uppercase; }
.card .body { font-size: 14px; line-height: 1.75; color: var(--mist); max-width: 38ch; }
.card .kanji { position: absolute; bottom: -22px; right: -16px; font-family: var(--font-jp); font-weight: 300; font-size: 110px; line-height: 1; color: rgba(255,255,255,0.03); pointer-events: none; user-select: none; }

/* ── system timeline — horizontal accordion ───────────────────────── */
.timeline {
  display: flex;
  min-height: 380px;
  align-items: stretch;
  gap: 8px;
}

.stage {
  flex: 1;
  background: var(--ash);
  border: 1px solid var(--fog);
  padding: 26px 20px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  transition:
    flex 420ms var(--ease-out),
    background 300ms var(--ease),
    border-color 240ms var(--ease);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stage:focus-visible { outline: 2px solid var(--ember); outline-offset: -2px; }

/* top accent bar */
.stage::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  transition: height 240ms var(--ease);
}
.stage.ember::before { background: var(--ember); }
.stage.sand::before  { background: var(--sand); }
.stage.cold::before  { background: var(--cold); }
.stage.ghost::before { background: var(--ghost); }

/* ── active card ── */
.stage.active {
  flex: 4;
  background: var(--dust);
  border-color: var(--mist);
  cursor: default;
  align-items: flex-start;
  justify-content: flex-start;
}
.stage.active::before { height: 4px; }

/* ── inactive: hide all content, show vertical label only ── */
.stage:not(.active) .stage-header,
.stage:not(.active) .stage-name,
.stage:not(.active) .stage-channel,
.stage:not(.active) .stage-content { display: none; }

.stage:not(.active) .stage-label-v { display: block; }

/* ── active: show content, hide vertical label ── */
.stage.active .stage-label-v { display: none; }

/* hover lift on inactive */
.stage:not(.active):hover { border-color: var(--mist); background: var(--dust); }

/* ── vertical stage name (inactive state) ── */
.stage-label-v {
  writing-mode: vertical-lr;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
  line-height: 1;
  transition: color 200ms var(--ease);
}
.stage:not(.active):hover .stage-label-v { color: var(--ghost); }

/* ── active card content ── */
.stage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  gap: 8px;
  width: 100%;
}
.stage-num {
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--bone);
  opacity: 0.1;
  flex-shrink: 0;
}
.stage-timing {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mist);
  background: var(--fog);
  padding: 4px 7px;
  border: 1px solid var(--mist);
  white-space: nowrap;
  align-self: flex-start;
  margin-top: 6px;
}
.stage-name {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--bone);
  text-transform: uppercase;
  margin: 0 0 10px;
}
.stage-channel {
  display: block;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0;
}
.stage.ember .stage-channel { color: var(--ember); }
.stage.sand  .stage-channel { color: var(--sand); }
.stage.cold  .stage-channel { color: var(--cold); }
.stage.ghost .stage-channel { color: var(--ghost); }

.stage-content {
  padding-top: 20px;
  animation: stage-reveal 280ms var(--ease);
  flex: 1;
  width: 100%;
}

@keyframes stage-reveal {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

.stage-body {
  font-size: 14px;
  line-height: 1.75;
  color: var(--mist);
  margin: 0 0 16px;
}
.stage-outcome {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ghost);
  border-top: 1px solid var(--fog);
  padding-top: 14px;
  margin: 0;
  font-style: italic;
}

/* ── lead magnet ──────────────────────────────────────────────────── */
.lm {
  background: var(--ash); border: 1px solid var(--fog);
  padding: 48px 56px;
  display: grid; grid-template-columns: 1fr 240px;
  gap: 56px; align-items: center;
  position: relative; overflow: hidden;
}
.lm::after {
  content: ""; position: absolute; top: 0; right: 0;
  width: 280px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(212,114,74,0.06));
  pointer-events: none;
}
.lm-eyebrow { font-size: 10px; letter-spacing: 0.35em; color: var(--ember); text-transform: uppercase; margin-bottom: 14px; }
.lm h2 { font-family: var(--font-display); font-size: 48px; line-height: 1; letter-spacing: 0.05em; color: var(--bone); margin: 0 0 18px; text-transform: uppercase; }
.lm p { font-size: 15px; line-height: 1.75; color: var(--mist); margin: 0 0 24px; max-width: 46ch; }
.lm-form { display: flex; gap: 8px; flex-wrap: wrap; }
.lm-form input {
  flex: 1; min-width: 220px;
  background: var(--dust); border: 1px solid var(--fog);
  color: var(--ghost); font-family: var(--font-body); font-size: 14px;
  padding: 14px; outline: none;
  transition: border-color 140ms var(--ease);
}
.lm-form input:focus { border-color: var(--ember); }
.lm-form input::placeholder { color: var(--mist); }
.lm-cover {
  background: var(--dust); border: 1px solid var(--fog);
  aspect-ratio: 3/4; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  position: relative; overflow: hidden;
}
.lm-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(196,169,109,0.08), transparent 60%); }
.lm-cover .ttl { font-family: var(--font-display); font-size: 22px; letter-spacing: 0.1em; color: var(--bone); text-align: center; padding: 0 18px; line-height: 1.15; text-transform: uppercase; }
.lm-cover .ln { width: 40px; height: 1px; background: var(--ember); }
.lm-cover .sub { font-size: 9px; letter-spacing: 0.3em; color: var(--mist); text-transform: uppercase; }

/* ── founder ──────────────────────────────────────────────────────── */
.founder-card { display: grid; grid-template-columns: 1fr 1fr; min-height: 580px; border: 1px solid var(--fog); overflow: hidden; }
.founder-portrait { position: relative; overflow: hidden; }
.founder-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; filter: saturate(0.7) contrast(1.05) brightness(0.92); display: block; }
.founder-content { background: var(--ash); padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; }
.founder-content .role { font-size: 10px; letter-spacing: 0.35em; color: var(--sand); text-transform: uppercase; margin: 0 0 20px; }
.founder-content h2 { font-family: var(--font-display); font-size: 52px; line-height: 0.95; letter-spacing: 0.04em; color: var(--bone); text-transform: uppercase; margin: 0 0 32px; }
.founder-content p { font-size: 15px; line-height: 1.85; color: var(--ghost); margin: 0 0 18px; }
.founder-content p:last-child { margin-bottom: 0; }
#founder { padding: 64px 0 96px; }

/* ── footer ───────────────────────────────────────────────────────── */
.footer {
  margin-top: 96px; padding: 36px 0 44px;
  border-top: 1px solid var(--fog);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.footer .brand-jp { font-family: var(--font-jp); font-weight: 300; font-size: 13px; color: var(--mist); letter-spacing: 0.3em; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-family: var(--font-body); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ghost); text-decoration: none; transition: color 140ms var(--ease); }
.footer-links a:hover { color: var(--ember); }
.footer .ver { font-size: 9px; letter-spacing: 0.2em; color: var(--fog); text-transform: uppercase; width: 100%; }

/* ── responsive ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }

  /* timeline: collapse to vertical stack on tablet */
  .timeline {
    flex-direction: column;
    min-height: auto;
    gap: 6px;
  }
  /* on mobile all stages show full content — no accordion */
  .stage {
    flex: none !important;
    cursor: default;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 24px 22px;
  }
  .stage:not(.active) .stage-header,
  .stage:not(.active) .stage-name,
  .stage:not(.active) .stage-channel,
  .stage:not(.active) .stage-content { display: block; }
  .stage:not(.active) .stage-content { display: block; }
  .stage:not(.active) .stage-label-v,
  .stage.active .stage-label-v { display: none; }
  .stage:not(.active) { background: var(--ash); border-color: var(--fog); }

  .lm { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
  .lm-cover { max-width: 240px; }
  .founder-card { grid-template-columns: 1fr; }
  .founder-portrait { aspect-ratio: 1/1; min-height: 300px; }
  .founder-portrait img { position: absolute; object-position: center 15%; }
  .founder-content { padding: 40px 32px; }
  .founder-content h2 { font-size: 38px; }
  .hero-jp { font-size: 200px; right: -16px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 48px 0; }
}

@media (max-width: 560px) {
  .page { padding: 0 24px; }
  .hero .lede { font-size: 16px; }
  .lm { padding: 32px 24px; }
  .card { padding: 28px 24px; }
  .stage { padding: 24px 18px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .hero-jp { font-size: 140px; bottom: -14px; }
}

/* ─────────────────────────────────────────────────────────────────────
   WORK / CASE STUDIES PAGE
   ───────────────────────────────────────────────────────────────────── */

.page-hero { padding: 80px 0 8px; position: relative; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(56px, 8vw, 104px); line-height: 0.9; letter-spacing: 0.04em; color: var(--bone); text-transform: uppercase; margin: 0 0 24px; }
.page-hero .lede { font-size: 17px; line-height: 1.8; color: var(--ghost); max-width: 580px; margin: 0; }
.page-hero .hero-jp { position: absolute; right: -20px; top: 24px; font-family: var(--font-jp); font-weight: 300; font-size: 220px; line-height: 1; color: rgba(255,255,255,0.025); pointer-events: none; user-select: none; }

.cases { display: flex; flex-direction: column; gap: 20px; }
.case { background: var(--ash); border: 1px solid var(--fog); position: relative; overflow: hidden; padding: 44px 48px; display: grid; grid-template-columns: 1fr 280px; gap: 48px; transition: border-color 240ms var(--ease); }
.case:hover { border-color: var(--mist); }
.case::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.case.ember::before { background: var(--ember); }
.case.sand::before  { background: var(--sand); }
.case.cold::before  { background: var(--cold); }

.case-eyebrow { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mist); margin: 0 0 16px; }
.case-name { font-family: var(--font-display); font-size: 34px; line-height: 1.05; letter-spacing: 0.05em; color: var(--bone); text-transform: uppercase; margin: 0 0 6px; }
.case-role { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sand); margin: 0 0 22px; }
.case-body p { font-size: 15px; line-height: 1.8; color: var(--ghost); margin: 0 0 14px; }
.case-body p:last-child { margin: 0; }

.case-media { align-self: stretch; min-height: 200px; background: var(--dust); border: 1px solid var(--fog); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; position: relative; overflow: hidden; }
.case-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(212,114,74,0.05), transparent 65%); pointer-events: none; }
.case-media .mk { font-family: var(--font-jp); font-weight: 300; font-size: 46px; color: rgba(255,255,255,0.07); line-height: 1; }
.case-media .label { font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--mist); }

.outro { margin-top: 20px; padding: 64px 48px; background: var(--ash); border: 1px solid var(--fog); position: relative; overflow: hidden; text-align: center; }
.outro::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ember); }
.outro p { font-size: 17px; line-height: 1.7; color: var(--ghost); max-width: 440px; margin: 0 auto 26px; }

@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
  .case-media { align-self: auto; aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 560px) {
  .case { padding: 32px 24px; }
  .outro { padding: 48px 24px; }
  .page-hero .hero-jp { font-size: 120px; }
}

/* ─────────────────────────────────────────────────────────────────────
   INDIVIDUAL CASE STUDY PAGES
   ───────────────────────────────────────────────────────────────────── */

/* breadcrumb navigation */
.back-link {
  display: block;
  font-family: var(--font-body); font-size: 10px;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--mist); text-decoration: none;
  margin: 40px 0 0;
  transition: color 140ms var(--ease);
}
.back-link::before { content: "← "; }
.back-link:hover { color: var(--ghost); }

/* metric callout boxes */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 0 0 40px;
}
.metric {
  background: var(--ash); border: 1px solid var(--fog);
  padding: 26px 22px; position: relative; overflow: hidden;
}
.metric::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
}
.metric.ember::before { background: var(--ember); }
.metric.sand::before  { background: var(--sand); }
.metric.cold::before  { background: var(--cold); }

.metric-num {
  font-family: var(--font-display);
  font-size: 52px; line-height: 1; letter-spacing: 0.04em;
  color: var(--bone); display: block; margin-bottom: 8px;
}
.metric-label {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mist); display: block; line-height: 1.5;
}

/* ── media block — screenshots and video testimonials ─────────────── */
.case-media-wrap {
  background: var(--ash);
  border: 1px solid var(--fog);
  position: relative;
  overflow: hidden;
}
.case-media-wrap::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
}
.case-media-wrap.ember::before { background: var(--ember); }
.case-media-wrap.sand::before  { background: var(--sand); }
.case-media-wrap.cold::before  { background: var(--cold); }

/* video: lock to 16:9 */
.case-media-wrap.video { aspect-ratio: 16/9; }
/* screenshot: natural height, min 280px */
.case-media-wrap.screenshot { min-height: 280px; display: flex; align-items: center; justify-content: center; }

/* actual media elements */
.case-media-wrap video { width: 100%; display: block; }
.case-media-wrap img  { width: 100%; height: auto; display: block; }

/* placeholder shown until files are dropped in */
.media-placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 14px; padding: 48px 24px;
  width: 100%;
}
.case-media-wrap.video .media-placeholder { position: absolute; inset: 0; }

.media-play {
  font-size: 40px;
  color: var(--fog);
  line-height: 1;
}
.media-placeholder .mk {
  font-family: var(--font-jp); font-weight: 300;
  font-size: 56px; color: rgba(255,255,255,0.06); line-height: 1;
}
.media-label {
  font-family: var(--font-body);
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--mist);
}

/* ── media coverage hits ──────────────────────────────────────────── */
.media-hits { display: flex; flex-direction: column; gap: 10px; }

.media-hit {
  background: var(--ash);
  border: 1px solid var(--fog);
  padding: 28px 32px;
  text-decoration: none;
  position: relative; overflow: hidden;
  display: block;
  transition: border-color 240ms var(--ease), background 200ms var(--ease);
}
.media-hit:hover { border-color: var(--mist); background: var(--dust); }

/* colour accent bar — inherits case colour */
.media-hit::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
}
.media-hit.ember::before { background: var(--ember); }
.media-hit.sand::before  { background: var(--sand); }
.media-hit.cold::before  { background: var(--cold); }

.media-hit-top {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.media-hit-outlet {
  font-family: var(--font-display);
  font-size: 26px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--bone); line-height: 1;
}
.media-hit-type {
  font-size: 9px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ember);
  background: var(--dust); border: 1px solid var(--fog);
  padding: 4px 8px;
  white-space: nowrap;
}
.media-hit.sand .media-hit-type  { color: var(--sand); }
.media-hit.cold .media-hit-type  { color: var(--cold); }

.media-hit-desc {
  font-size: 14px; line-height: 1.75;
  color: var(--mist); margin: 0 0 16px;
  max-width: 72ch;
}
.media-hit-cta {
  font-family: var(--font-body); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--mist);
  display: inline-block;
  border-bottom: 1px solid var(--fog);
  padding-bottom: 2px;
  transition: color 140ms var(--ease), border-color 140ms var(--ease);
}
.media-hit:hover .media-hit-cta { color: var(--ghost); border-color: var(--mist); }

/* narrative body */
.case-narrative { max-width: 760px; }
.case-narrative p {
  font-size: 16px; line-height: 1.85;
  color: var(--ghost); margin: 0 0 20px;
}
.case-narrative p:last-child { margin: 0; }
.case-narrative em { color: var(--mist); font-style: italic; }

/* "Read case study" link on the work.html cards */
.case-read-more { display: inline-block; margin-top: 20px; }

@media (max-width: 720px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .media-hit { padding: 24px; }
}
@media (max-width: 400px) {
  .metric-num { font-size: 40px; }
  .metrics { grid-template-columns: 1fr; }
}

/* ── narrative chapter labels ─────────────────────────────────────── */
.narrative-label {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mist);
  margin: 44px 0 14px;
}
.case-narrative .narrative-label:first-child { margin-top: 0; }

/* ── pull quotes ─────────────────────────────────────────────────── */
.pull-quote {
  border-left: 3px solid var(--ember);
  margin: 36px 0;
  padding: 4px 0 4px 28px;
  font-size: 19px;
  line-height: 1.65;
  color: var(--bone);
  font-style: italic;
  max-width: 56ch;
}
.pull-quote.sand { border-left-color: var(--sand); }
.pull-quote.cold { border-left-color: var(--cold); }

/* ── inline narrative highlights ──────────────────────────────────── */
.case-narrative strong {
  color: var(--bone);
  font-weight: 700;
}

/* ── work.html card images ─────────────────────────────────────────── */
.case-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

/* ── audit section ────────────────────────────────────────────────── */
#audit { padding-bottom: 96px; }
.audit-intro { max-width: 640px; margin-bottom: 48px; }
.audit-intro h2 { font-family: var(--font-display); font-size: 48px; line-height: 1; letter-spacing: 0.04em; color: var(--bone); text-transform: uppercase; margin: 0 0 20px; }
.audit-intro p { font-size: 16px; line-height: 1.8; color: var(--ghost); margin: 0; max-width: 58ch; }
.calendly-inline-widget { border: 1px solid var(--fog); }

/* ── Kit form overrides ───────────────────────────────────────────── */
.formkit-form { background: transparent !important; }
.lm .formkit-form { margin-top: 24px; }

@media (max-width: 680px) {
  .audit-intro h2 { font-size: 36px; }
}

/* ── audit host indicator ─────────────────────────────────────────── */
.audit-host { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.audit-host-img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: top; border: 1px solid var(--fog); filter: saturate(0.7) contrast(1.05) brightness(0.92); flex-shrink: 0; }
.audit-host-label { font-family: var(--font-body); font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--mist); }

/* ── outro portrait ───────────────────────────────────────────────── */
.outro-portrait { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; margin: 0 auto 28px; border: 1px solid var(--fog); }
.outro-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(0.7) contrast(1.05) brightness(0.92); display: block; }

/* ── hamburger nav ────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--fog);
  cursor: pointer;
  padding: 7px 9px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ghost);
  transition: transform 200ms var(--ease), opacity 150ms;
}
.nav.open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav.open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 720px) {
  .nav { flex-wrap: wrap; }
  .nav-hamburger { display: flex; }
  .nav-cta { font-size: 8px; letter-spacing: 0.12em; padding: 8px 10px; white-space: nowrap; }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--ash);
    border-top: 1px solid var(--fog);
    padding: 4px 0 16px;
    gap: 0;
    order: 10;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--fog); font-size: 11px; }
  .nav-links a:last-child { border-bottom: none; }
}

/* ── photo hero (named clients) ───────────────────────────────────── */
.page-hero-photo {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
}
.hero-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-photo-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.45) brightness(0.72);
  display: block;
}
.hero-photo-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(12,11,9,0.08) 0%,
    rgba(12,11,9,0.45) 45%,
    rgba(12,11,9,0.92) 78%,
    #0c0b09 100%
  );
}
.page-hero-photo .hero-photo-content {
  position: relative;
  z-index: 2;
  padding: 0 0 32px;
}
@media (max-width: 720px) {
  .page-hero-photo { min-height: 420px; }
}

/* ── Option A: breathing room after photo hero ────────────────────── */
.page-hero-photo + .metrics { margin-top: 28px; }

/* ── Option B: narrative with full-height sidebar photo ───────────── */
.case-narrative-with-photo { display: grid; grid-template-columns: 1fr 300px; gap: 64px; }
.case-narrative-portrait { overflow: hidden; border: 1px solid var(--fog); position: relative; align-self: stretch; min-height: 400px; }
.case-narrative-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; filter: saturate(0.4) brightness(0.82); display: block; }
@media (max-width: 780px) {
  .case-narrative-with-photo { grid-template-columns: 1fr; }
  .case-narrative-portrait { min-height: 320px; align-self: auto; }
}

/* ── Case hero card — Option A (founder card pattern) ─────────────── */
.case-hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  border: 1px solid var(--fog);
  overflow: hidden;
  margin: 24px 0 64px;
}
.case-hero-photo {
  position: relative;
  overflow: hidden;
}
.case-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.45) brightness(0.72);
  display: block;
}
.case-hero-panel {
  background: var(--ash);
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--fog);
}
.case-hero-name {
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: var(--bone);
  text-transform: uppercase;
  margin: 8px 0 12px;
}
.case-hero-panel .case-role { margin-bottom: 44px; }
.case-hero-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--cold);
  padding-top: 28px;
  gap: 24px 32px;
}
.case-hero-metrics.sand { border-top-color: var(--sand); }
.case-hero-metrics.ember { border-top-color: var(--ember); }
.case-metric .metric-num {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--bone);
  display: block;
  margin-bottom: 6px;
}
.case-metric .metric-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
  display: block;
  line-height: 1.5;
}
@media (max-width: 900px) {
  .case-hero-card { grid-template-columns: 1fr; }
  .case-hero-photo { aspect-ratio: 1 / 1; min-height: 300px; position: relative; }
  .case-hero-panel { padding: 40px 28px; border-left: none; border-top: 1px solid var(--fog); }
  .case-hero-name { font-size: 40px; }
}

/* ── LinkedIn post embeds ─────────────────────────────────────────── */
.post-embeds {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.post-embeds iframe {
  max-width: 504px;
  width: 100%;
  border: none;
  display: block;
  border-radius: 0;
}
@media (max-width: 560px) {
  .post-embeds { gap: 16px; }
}

/* ── LinkedIn post embeds — 3-col grid (overrides earlier flex rules) ─ */
.post-embeds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
}
.post-embeds iframe {
  width: 100%;
  max-width: none;
  border: none;
  display: block;
}
.post-embeds-group { margin-bottom: 40px; }
.post-embeds-group:last-child { margin-bottom: 0; }
.post-embeds-label {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 16px;
}
/* Fix media-hits stretching full-width */
.media-hits { max-width: 640px; }
@media (max-width: 900px) {
  .post-embeds { grid-template-columns: 1fr; }
}

/* ── Trusted by ───────────────────────────────────────────────────── */
.trusted-by {
  padding: 16px 0 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.trusted-by-label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mist);
}
.trusted-by-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.trusted-by-logos img {
  height: 38px;
  width: auto;
  opacity: 0.5;
  display: block;
}
@media (max-width: 560px) {
  .trusted-by-logos { gap: 36px; }
  .trusted-by-logos img { height: 28px; }
}

/* ── Inline link colours — reset browser purple default ──────────────── */
.case-role a,
.case-role a:visited {
  color: inherit;
  text-underline-offset: 3px;
}
.case-role a:hover { opacity: 0.7; }

.case-narrative a,
.case-narrative a:visited {
  color: var(--bone);
  text-decoration-color: rgba(242, 237, 228, 0.28);
  text-underline-offset: 3px;
}
.case-narrative a:hover { color: var(--mist); }

.case-hero-panel a,
.case-hero-panel a:visited {
  color: inherit;
  text-underline-offset: 3px;
}
.case-hero-panel a:hover { opacity: 0.7; }
