/* =========================================================================
   Chiranjeevi Gunturi, portfolio (story-first, editorial)
   Monochrome. Bricolage Grotesque (display) + Hanken Grotesk (body)
   + Spectral italic (emphasis).
   ========================================================================= */

:root {
  --bg:        oklch(0.991 0.0015 255);
  --bg-panel:  oklch(0.967 0.0020 255);
  --ink:       oklch(0.205 0.004 260);
  --prose:     oklch(0.305 0.008 262);
  --ink-soft:  oklch(0.400 0.005 260);
  --muted:     oklch(0.545 0.006 260);
  --line:      oklch(0.890 0.004 260);
  --line-soft: oklch(0.935 0.002 260);
  --faint:     oklch(0.800 0.004 260);
  --paper:     oklch(0.997 0.001 255);
  --avail-bg:  oklch(0.97 0.025 145);
  --avail-line: oklch(0.85 0.06 145);
  --avail-dot: oklch(0.62 0.17 145);

  --space-2xs: 4px;  --space-xs: 8px;  --space-sm: 12px; --space-md: 16px;
  --space-lg: 24px;  --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px;
  --space-4xl: 96px; --space-5xl: 140px;

  --maxw: 1120px;
  --measure: 38rem;
  --radius: 12px;
  --radius-sm: 7px;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-accent: "Spectral", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 0.7, 0.22, 1);
}

/* Dark theme: overrides only the 10 colour tokens (everything else is derived).
   Ground is a soft near-black (not #000) for readability; ink lifts to near-white.
   Opt-in: default is light; JS sets data-theme="dark" on <html>. */
[data-theme="dark"] {
  --bg:        oklch(0.185 0.006 260);
  --bg-panel:  oklch(0.225 0.007 260);
  --ink:       oklch(0.965 0.003 260);
  --prose:     oklch(0.860 0.006 260);
  --ink-soft:  oklch(0.760 0.006 260);
  --muted:     oklch(0.620 0.007 260);
  --line:      oklch(0.330 0.008 260);
  --line-soft: oklch(0.275 0.007 260);
  --faint:     oklch(0.420 0.008 260);
  --paper:     oklch(0.215 0.007 260);
  --avail-bg:  oklch(0.32 0.045 145);
  --avail-line: oklch(0.45 0.06 145);
  --avail-dot: oklch(0.72 0.17 145);
}
/* smooth the flip (but respect reduced-motion, handled below) */
html { transition: background-color 0.3s var(--ease); }
body { transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 0.4vw + 0.95rem, 1.1875rem);
  line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; }
::selection { background: color-mix(in oklch, var(--ink) 18%, transparent); color: var(--ink); }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: var(--space-sm) var(--space-md); z-index: 100; font-family: var(--font-display); }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.hero, .story, .path, .moments, .results, .awards, .depth, .believe, .building, .help, .cover, .contact {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(var(--space-lg), 5vw, var(--space-4xl));
}
.story, .path, .moments, .results, .awards, .depth, .believe, .building, .help, .cover { padding-top: clamp(var(--space-4xl), 9vw, var(--space-5xl)); }

.eyebrow {
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: var(--space-md);
}
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 3vw + 1rem, 3rem); line-height: 1.07; letter-spacing: -0.025em;
  max-width: 32ch;
}
.section-title em { font-family: var(--font-accent); font-style: italic; font-weight: 500; }
/* deliberate two-line titles: one clause per line */
.title-line { display: block; }
.section-intro { color: var(--ink-soft); margin-top: var(--space-md); max-width: var(--measure); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { max-width: var(--maxw); margin-inline: auto; padding: var(--space-md) clamp(var(--space-lg), 5vw, var(--space-3xl)); display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.wordmark { display: inline-flex; align-items: center; gap: var(--space-sm); text-decoration: none; }
.wordmark__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--ink); color: var(--paper); font-family: var(--font-display); font-weight: 800; font-size: 0.85rem; letter-spacing: -0.02em; }
.wordmark__name { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; font-size: 1rem; }
.nav__links { display: flex; align-items: center; gap: clamp(var(--space-md), 2vw, var(--space-lg)); margin-left: auto; }
.nav__links a { text-decoration: none; font-family: var(--font-display); font-size: 0.95rem; color: var(--ink-soft); white-space: nowrap; transition: color 0.2s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__cta { color: var(--ink) !important; font-weight: 600; border: 1px solid var(--line); border-radius: 100px; padding: var(--space-2xs) var(--space-md); }
.nav__cta:hover { border-color: var(--ink); }
.nav__toggle { display: none; }

/* theme toggle: the rightmost item in the nav (after the links) */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  padding: 0;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle > svg { grid-area: 1 / 1; transition: opacity 0.2s var(--ease), transform 0.3s var(--ease); }
/* light theme shows the moon (tap -> go dark); dark shows the sun (tap -> go light) */
.theme-toggle__sun { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.theme-toggle__moon { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle__sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle__moon { opacity: 0; transform: rotate(90deg) scale(0.6); }

.btn { display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; padding: var(--space-sm) var(--space-lg); border-radius: 100px; border: 1px solid transparent; transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: oklch(0.32 0.005 260); transform: translateY(-2px); }
.btn--ghost { color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

/* top padding capped at 3xl: the old 10vw/5xl scale left a dead band above
   the cover on wide monitors */
.hero { padding-top: clamp(var(--space-2xl), 5vw, var(--space-3xl)); padding-bottom: clamp(var(--space-2xl), 5vw, var(--space-3xl)); }
.hero__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 5.5vw + 0.5rem, 4.8rem); line-height: 1.03; letter-spacing: -0.035em; max-width: 16ch; }
.hero__title em { font-family: var(--font-accent); font-style: italic; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.hero__lede { margin-top: var(--space-xl); font-size: clamp(1.15rem, 1vw + 1rem, 1.4rem); line-height: 1.55; color: var(--ink-soft); max-width: 70ch; }
/* one sentence per line: the credential, then the present */
.hero__lede-line { display: block; }
/* the skimmer's brand hit: employer names as scannable tokens, so the
   lede doesn't have to carry them in a comma list */
.hero__prev { margin-top: var(--space-md); font-family: var(--font-display); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.03em; color: var(--ink-soft); }
.hero__prev-label { color: var(--muted); font-weight: 500; margin-right: var(--space-2xs); }
.hero__avail { margin-top: var(--space-lg); display: inline-flex; align-items: center; gap: var(--space-sm); font-family: var(--font-display); font-size: 0.9rem; font-weight: 600; color: var(--ink); border: 1px solid var(--avail-line); background: var(--avail-bg); border-radius: 100px; padding: var(--space-2xs) var(--space-md); }
.hero__avail .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--avail-dot); }
.hero__actions { margin-top: var(--space-2xl); display: flex; flex-wrap: wrap; gap: var(--space-md); }

.story { border-top: 1px solid var(--line); }
.prose { margin-top: var(--space-xl); max-width: var(--measure); position: relative; }
.prose p { color: var(--prose); font-size: clamp(1.12rem, 0.5vw + 1rem, 1.28rem); line-height: 1.72; margin-top: var(--space-lg); }
.prose p:first-child { margin-top: 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { font-style: italic; }
.prose .beat { margin-top: 0; }
.sketch-divider { display: block; width: 60px; height: 10px; margin: var(--space-2xl) auto var(--space-xl); opacity: 0.4; overflow: visible; }
.prose .beat:first-of-type { margin-top: 0; }
.story-full[hidden], .story-short[hidden] { display: none; }
.story .prose { max-width: 820px; }
.story-short > p, .story-full p { max-width: var(--measure); }
.story-short > :first-child, .story-full > :first-child { margin-top: 0; }
.story-beat { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2xl); margin: var(--space-2xl) 0; }
.story-beat--rev { flex-direction: row-reverse; }
.story-beat__text { flex: 1 1 auto; max-width: var(--measure); }
.story-beat__text p { margin: 0; }
.story-beat__icon { flex: 0 0 auto; width: 104px; height: 104px; display: block; overflow: visible; }
.story-beat__photo { flex: 0 0 auto; width: 320px; max-width: 42%; height: 280px; object-fit: cover; object-position: center center; border-radius: 3px; display: block; }
/* chat screenshots crop from the bottom so the shopping-transactions reply
   shows first; the click-to-zoom carries the full chat */
.story-beat__photo--chat { object-position: center bottom; border: 1px solid var(--line); }
.cred-trigger { background: none; border: none; padding: 0; margin: 0; cursor: pointer; display: block; line-height: 0; }
.cred-trigger:hover { opacity: 0.6; }
.cred-trigger:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: clamp(var(--space-lg), 5vw, var(--space-3xl)); }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: oklch(0.2 0.01 260 / 0.62); }
.lightbox__inner { position: relative; margin: 0; max-width: 560px; width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__img { max-width: 100%; width: auto; max-height: calc(100vh - 8rem); height: auto; display: block; border-radius: 4px; box-shadow: 0 24px 70px oklch(0 0 0 / 0.45); object-fit: contain; }
.lightbox__close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--ink); color: var(--bg); font-size: 1.4rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.story-beat__icon path { stroke-linecap: round; stroke-linejoin: round; }
.story-toggle { margin-top: var(--space-2xl); font-family: inherit; font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); background: none; border: none; border-bottom: 1.5px solid var(--ink); padding: 0 0 3px; cursor: pointer; }
.story-toggle:hover { opacity: 0.6; }
@media (max-width: 760px) {
  .story .prose { max-width: 100%; }
  .story-beat, .story-beat--rev { flex-direction: column; align-items: flex-start; gap: var(--space-md); margin: var(--space-xl) 0; }
  .story-beat__icon { width: 76px; height: 76px; }
  .story-beat__photo { width: 100%; max-width: 100%; height: 260px; }
}
.pullquote {
  font-family: var(--font-accent); font-style: italic; font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw + 0.6rem, 2.15rem); line-height: 1.28; color: var(--ink);
  max-width: 42ch; margin: var(--space-2xl) 0; padding: 0; text-wrap: balance;
}

.arc {
  list-style: none; padding: 0; margin: var(--space-4xl) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid var(--ink);
}
.arc__item { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-lg) var(--space-lg) var(--space-lg) 0; border-right: 1px solid var(--line); }
.arc__item:last-child { border-right: 0; }
.arc__yr { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; color: var(--muted); }
.arc__nm { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 1.2vw + 0.7rem, 1.45rem); letter-spacing: -0.02em; color: var(--ink); }
.arc__d { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.5; max-width: 30ch; }
.arc__caption { margin-top: var(--space-lg); font-family: var(--font-accent); font-style: italic; color: var(--muted); font-size: 1.1rem; }

.beliefs { list-style: none; padding: 0; margin: var(--space-xl) 0 0; max-width: 46rem; }
.beliefs li {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.25rem, 1.4vw + 0.8rem, 1.7rem); line-height: 1.3; letter-spacing: -0.015em;
  color: var(--ink); padding: var(--space-lg) 0; border-top: 1px solid var(--line);
}
.beliefs li em { font-family: var(--font-accent); font-style: italic; font-weight: 500; }
/* a claim's receipt: the LinkedIn post behind it, linked in the same row */
.post-link { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; margin-left: var(--space-xs); white-space: nowrap; }
.post-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- selected results / metrics ---------- */
.metrics { list-style: none; padding: 0; margin: var(--space-2xl) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-md); }
.metric { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(var(--space-lg), 3vw, var(--space-2xl)); display: flex; flex-direction: column; gap: var(--space-sm); }
.metric__fig { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 3vw + 1rem, 3rem); letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.metric__label { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.45; }
.metric__label strong { color: var(--ink); font-weight: 600; }
.metric__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); }
/* Clickable metrics: the whole card is the trigger; the figure carries the same
   band + underline + "+" language as .hl so "opens depth" reads identically. */
.metric__btn { font: inherit; color: inherit; text-align: left; background: none; border: 0; margin: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; gap: var(--space-sm); width: 100%; -webkit-appearance: none; appearance: none; }
.metric__btn .metric__top { width: 100%; }
.metric__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 2px; }
.metric__btn .metric__fig {
  padding: 0 0.06em;
  /* resting wash near-zero: at display size the old 20% band read as a
     disabled/skeleton state (2026-07-02 critique P1). Underline + "+"
     carry the rest affordance; hover/expanded keep the heavier tints. */
  background-image: linear-gradient(color-mix(in oklch, var(--ink) 6%, transparent), color-mix(in oklch, var(--ink) 6%, transparent));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 100% 100%;
  box-shadow: inset 0 -0.08em 0 var(--ink);
  border-radius: 3px;
  transition: box-shadow 0.16s ease;
}
.metric__btn .metric__fig::after {
  content: "\002B";
  font-weight: 700;
  font-size: 0.5em;
  line-height: 1;
  vertical-align: 0.55em;
  margin-left: 0.12em;
  opacity: 0.85;
}
.metric__btn:hover .metric__fig,
.metric__btn:focus-visible .metric__fig {
  background-image: linear-gradient(color-mix(in oklch, var(--ink) 28%, transparent), color-mix(in oklch, var(--ink) 28%, transparent));
  box-shadow: inset 0 -0.1em 0 var(--ink);
}
.metric__btn[aria-expanded="true"] .metric__fig {
  background-image: linear-gradient(color-mix(in oklch, var(--ink) 38%, transparent), color-mix(in oklch, var(--ink) 38%, transparent));
}
.metric__icon { width: 38px; height: 38px; flex: 0 0 auto; display: block; overflow: visible; margin-top: 4px; }
.metric__icon path { stroke-linecap: round; stroke-linejoin: round; }

/* ---------- awards (DRAFT) ---------- */
.awards-list { list-style: none; padding: 0; margin: var(--space-xl) 0 0; max-width: 54rem; }
.awards-list li { padding: var(--space-md) 0; border-top: 1px solid var(--line); }
.aw-name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; color: var(--ink); display: block; }
.aw-meta { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.5; display: block; margin-top: 3px; }
.aw-org { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-top: 6px; }

.building .section-intro { margin-bottom: var(--space-xl); }
.products { list-style: none; padding: 0; margin: var(--space-lg) 0 0; }
.product { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: clamp(var(--space-sm), 3vw, var(--space-2xl)); padding: var(--space-2xl) 0; border-top: 1px solid var(--line); align-items: start; }
.product:last-of-type { border-bottom: 1px solid var(--line); }
.product__head { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.product__name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 1.4vw + 0.8rem, 1.7rem); letter-spacing: -0.02em; }
.badge { font-family: var(--font-display); font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; padding: 3px var(--space-xs); border-radius: 100px; border: 1px solid var(--line); color: var(--muted); }
.badge--live { color: var(--paper); border-color: var(--ink); background: var(--ink); }
.product__desc { color: var(--ink-soft); max-width: 54ch; }
.product__link { display: inline-block; margin-top: var(--space-md); font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; transition: border-color 0.2s var(--ease); }
.product__link:hover { border-bottom-color: var(--ink); }
.product__proof { margin-top: var(--space-xs); font-size: 0.9rem; color: var(--ink-soft); }
.product__proof a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.product__proof a:hover { color: var(--ink); }

.offers { list-style: none; padding: 0; margin: var(--space-2xl) 0 0; }
.offer { display: grid; grid-template-columns: minmax(0, 80px) 1fr; gap: clamp(var(--space-md), 3vw, var(--space-2xl)); padding: var(--space-2xl) 0; border-top: 1px solid var(--line); }
.offer:last-child { border-bottom: 1px solid var(--line); }
.offer__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2vw, 2rem); color: var(--faint); letter-spacing: -0.02em; line-height: 1; }
.offer__body { max-width: var(--measure); }
.offer__problem { font-family: var(--font-accent); font-style: italic; font-size: clamp(1.2rem, 1.3vw + 0.9rem, 1.55rem); line-height: 1.4; color: var(--ink); margin-bottom: var(--space-md); }
.offer__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.05rem, 0.8vw + 0.8rem, 1.25rem); letter-spacing: -0.01em; margin-bottom: var(--space-xs); color: var(--ink); }
.offer__body p:not(.offer__problem) { color: var(--ink-soft); }
.ways { margin-top: var(--space-3xl); }
.ways__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 1vw + 0.8rem, 1.4rem); letter-spacing: -0.02em; margin-bottom: var(--space-md); }
.ways p { color: var(--ink-soft); }
/* each engagement as its own row: name left, price right, quiet rule above */
.ways-list { list-style: none; margin: 0; padding: 0; }
.way { border-top: 1px solid var(--line); padding: var(--space-md) 0 var(--space-lg); }
.way__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); }
.way__name { font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
.way__price { font-family: var(--font-display); font-size: 0.88rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.way__desc { margin-top: var(--space-2xs); max-width: var(--measure); }
.ways__note { font-size: 0.9rem; border-top: 1px solid var(--line); padding-top: var(--space-sm); margin-top: var(--space-2xs); }

.depth-grid { list-style: none; padding: 0; margin: var(--space-2xl) 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl) var(--space-2xl); }
.depth-card { border-top: 2px solid var(--ink); padding-top: var(--space-md); }
.depth-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-sm); }
.depth-card__icon { display: block; width: 40px; height: 40px; flex: 0 0 auto; overflow: visible; }
.depth-card__icon path { stroke-linecap: round; stroke-linejoin: round; }
.depth-card__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 1vw + 0.85rem, 1.4rem); letter-spacing: -0.02em; margin-bottom: 0; }
.depth-card__items { color: var(--ink-soft); font-size: 0.97rem; line-height: 1.5; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-xs); }
.depth-card__items li { position: relative; padding-left: 16px; }
.depth-card__items li::before { content: "\00B7"; position: absolute; left: 2px; font-weight: 700; color: var(--muted); }
.moments__row { display: flex; flex-wrap: wrap; gap: var(--space-lg); align-items: flex-start; margin-top: var(--space-xl); }
.media-figure { margin: 0; flex: 0 0 auto; }
.media-figure__frame { height: 340px; overflow: hidden; background: var(--paper); border-radius: 2px; }
.media-figure__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-figure--landscape .media-figure__frame { aspect-ratio: 3 / 2; }
.media-figure--portrait .media-figure__frame { aspect-ratio: 3 / 4; }
.media-figure figcaption { margin-top: var(--space-sm); font-size: 0.9rem; line-height: 1.4; color: var(--ink-soft); max-width: 34ch; }
.media-ph { display: flex; align-items: center; justify-content: center; height: 100%; border: 1.5px dashed var(--line); text-align: center; }
.media-ph span { font-size: 0.8rem; line-height: 1.55; color: var(--ink-soft); padding: var(--space-md); }
.cover-band { margin: 0; margin-top: var(--space-xl); }
.cover-band__frame { width: 100%; border-radius: 2px; }
.cover-band__frame img { width: 100%; height: auto; display: block; }
.cover-band figcaption { margin-top: var(--space-sm); font-size: 0.9rem; color: var(--ink-soft); }
.hero__cover { margin: 0 0 var(--space-2xl); }
@media (max-width: 760px) {
  .moments__row { gap: var(--space-md); }
  .media-figure { flex: 1 1 100%; }
  .media-figure__frame { height: auto; width: 100%; }

}
@media (max-width: 760px) { .depth-grid { grid-template-columns: 1fr; gap: var(--space-lg); } }

/* bottom padding stays tight so the sign-off reads as the panel's coda,
   not a stranded element (round-4 q14) */
.contact { padding-bottom: var(--space-2xl); }
.contact__inner { background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(var(--space-2xl), 5vw, var(--space-4xl)); }
.contact__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3.2vw + 1rem, 3rem); line-height: 1.07; letter-spacing: -0.03em; margin-bottom: var(--space-md); max-width: 18ch; }
.contact__copy { color: var(--ink-soft); max-width: 48ch; margin-bottom: var(--space-2xl); }
.contact__actions { display: flex; flex-wrap: wrap; gap: var(--space-md); }
/* the address in plain text: rescues desktop visitors with no mail client
   and anyone who prefers to copy it */
.contact__alt { margin-top: var(--space-md); font-size: 0.92rem; color: var(--muted); }

/* the cert count lives in this button's label ("all seven") instead of
   the sentence, where "two of seven" kept reading as a partial score */
.cred-more__btn { display: inline; margin: 0; font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); background: none; border: none; border-bottom: 1px solid var(--line); padding: 0 0 1px; cursor: pointer; }
.cred-more__btn:hover { color: var(--ink); }
.cred-more__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cred-more__list { margin: var(--space-md) 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 0.88rem; color: var(--ink-soft); }
/* display:grid beats the hidden attribute's UA display:none, so restate it */
.cred-more__list[hidden] { display: none; }

.site-footer { max-width: var(--maxw); margin-inline: auto; padding: var(--space-2xl) clamp(var(--space-lg), 5vw, var(--space-4xl)) var(--space-3xl); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-xl); justify-content: space-between; font-family: var(--font-display); font-size: 0.9rem; color: var(--muted); }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* nav links are nowrap, so hand them to the hamburger before the bar can overflow */
@media (max-width: 980px) {
  .nav__toggle { display: inline-flex; flex-direction: column; gap: 5px; justify-content: center; background: none; border: 0; cursor: pointer; padding: var(--space-xs); }
  /* links collapse to a dropdown, so push the toggle + hamburger to the right edge */
  .theme-toggle { margin-left: auto; }
  .nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
  .nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
  .nav__links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: var(--space-lg); background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--space-xl) clamp(var(--space-lg), 5vw, var(--space-4xl)); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: transform 0.25s var(--ease), opacity 0.25s var(--ease); }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
}
@media (max-width: 760px) {
  .arc { grid-template-columns: 1fr; border-top: 0; }
  .arc__item { border-right: 0; border-top: 1px solid var(--line); padding: var(--space-lg) 0; }
  .metrics { grid-template-columns: 1fr; }
  .pullquote { max-width: none; }
  .offer { grid-template-columns: 1fr; gap: var(--space-sm); }
  .product { grid-template-columns: 1fr; gap: var(--space-md); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .product__link:hover { transform: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ------------------------------------------------------------------ *
 * Story highlights + popovers (Medium-style "read the depth")
 * A .hl is a real <button> styled as an inline highlight, not a link.
 * ------------------------------------------------------------------ */
.hl {
  /* reset button chrome -> inline text */
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0 0.04em;
  cursor: pointer;
  display: inline;
  -webkit-appearance: none;
  appearance: none;
  /* Stronger highlighter band: a full, saturated marker wash behind the
     word PLUS a solid ink underline PLUS the "+", so at rest it clearly
     reads as tappable (not a faint hint people miss). The band + underline
     + "+" are what set it apart from the passive .kw wash. Mixed off --ink
     so it inverts correctly in dark mode. */
  background-image: linear-gradient(color-mix(in oklch, var(--ink) 20%, transparent), color-mix(in oklch, var(--ink) 20%, transparent));
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 100% 100%;
  box-shadow: inset 0 -0.12em 0 var(--ink);
  border-radius: 2px;
  transition: box-shadow 0.16s ease, background-color 0.16s ease, color 0.16s ease;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl::after {
  /* "+" affordance so it reads as expandable/openable, visible at rest */
  content: "\002B";
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.64em;
  line-height: 1;
  vertical-align: 0.45em;
  margin-left: 0.14em;
  opacity: 0.85;
  transition: opacity 0.16s ease;
}
.hl:hover,
.hl:focus-visible {
  /* full-height already; deepen the tint + thicken the underline -> active */
  background-image: linear-gradient(color-mix(in oklch, var(--ink) 28%, transparent), color-mix(in oklch, var(--ink) 28%, transparent));
  box-shadow: inset 0 -0.14em 0 var(--ink);
  outline: none;
}
.hl:hover::after,
.hl:focus-visible::after { opacity: 1; }
.hl[aria-expanded="true"] {
  /* opened: deepest tint, so the active depth source stands out */
  background-image: linear-gradient(color-mix(in oklch, var(--ink) 38%, transparent), color-mix(in oklch, var(--ink) 38%, transparent));
  box-shadow: inset 0 -0.14em 0 var(--ink);
}
.hl:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* the offscreen store never shows; JS moves cards into the drawer panel */
.pop-store { position: absolute; left: -9999px; }

/* ------------------------------------------------------------------ *
 * Story drawer: a right-side reading surface that the highlights open.
 * The .pop cards (tabs + PAR) live inside .drawer__panel; the drawer is
 * anchored to the screen, so depth content never overflows or jumps.
 * ------------------------------------------------------------------ */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  /* the drawer itself is just a positioning context; pieces fade/slide */
}
.drawer[hidden] { display: none; }
.drawer__backdrop {
  position: absolute;
  inset: 0;
  background: oklch(0.2 0.01 260 / 0.42);
  opacity: 0;
  transition: opacity 0.24s var(--ease);
}
.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(34rem, 100vw);
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 48px -24px oklch(0.205 0.004 260 / 0.35);
  /* the panel scrolls internally; content can be any height */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: clamp(var(--space-2xl), 4vw, var(--space-3xl))
           clamp(var(--space-xl), 4vw, var(--space-2xl))
           var(--space-3xl);
  transform: translateX(100%);
  transition: transform 0.28s var(--ease);
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }

/* a story card, now a block inside the drawer (no longer floating) */
.pop {
  position: static;
  width: auto;
  max-width: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.pop[hidden] { display: none; }
.pop__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1vw + 0.8rem, 1.3rem);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 var(--space-2xl) var(--space-2xs) 0; /* room for close btn */
  line-height: 1.22;
}
/* one plain line of "what this company/product is" for readers who don't
   know the brands (round-5 q21) */
.pop__sub { margin: 0 var(--space-2xl) var(--space-lg) 0; font-size: 0.9rem; line-height: 1.5; color: var(--muted); }
.pop__body { font-size: 0.96rem; line-height: 1.68; color: var(--ink-soft); }
.pop__body p { margin: 0 0 var(--space-md); }
.pop__body p:last-child { margin-bottom: 0; }

/* one close button, fixed to the drawer (not per-card) */
.drawer__close {
  position: absolute;
  top: var(--space-md); right: var(--space-md);
  width: 36px; height: 36px;
  display: grid; place-items: center;
  font: inherit; font-size: 1.5rem; line-height: 1;
  color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line); border-radius: 50%;
  cursor: pointer;
  z-index: 1;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}
.drawer__close:hover { background: var(--bg-panel); color: var(--ink); border-color: var(--ink); }
.drawer__close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* per-card close buttons are redundant inside the drawer */
.pop .pop__close { display: none; }

/* mobile: the drawer becomes a full-width sheet rising from the bottom */
@media (max-width: 640px) {
  .drawer__panel {
    top: auto;
    width: 100%;
    max-height: 92vh;
    border-left: 0;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    box-shadow: 0 -18px 48px -24px oklch(0.205 0.004 260 / 0.4);
    transform: translateY(100%);
  }
  .drawer.is-open .drawer__panel { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .drawer__backdrop,
  .drawer__panel { transition: opacity 0.001ms; }
  .drawer__panel { transform: none !important; }
  .hl { transition: none; }
  .metric__btn .metric__fig { transition: none; }
}

/* ------------------------------------------------------------------ *
 * Zoomable images: story photos + cert thumbnail -> shared lightbox
 * ------------------------------------------------------------------ */
.is-zoomable { cursor: zoom-in; transition: filter 0.18s ease, transform 0.18s ease; }
.is-zoomable:hover { filter: brightness(0.97); }
.is-zoomable:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* cert thumbnail trigger (replaces the old sketch badge) */
.cred-trigger--thumb {
  position: relative;
  width: 60px; height: 44px;
  flex: 0 0 auto;
  margin-top: 2px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 1px 2px oklch(0.205 0.004 260 / 0.08);
  cursor: zoom-in;
  line-height: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.cred-trigger--thumb:hover { border-color: var(--ink-soft); box-shadow: 0 3px 10px oklch(0.205 0.004 260 / 0.16); transform: translateY(-1px); }
.cred-trigger--thumb:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cred-thumb { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.cred-thumb__zoom {
  position: absolute;
  right: 3px; bottom: 2px;
  font-size: 0.7rem;
  line-height: 1;
  color: var(--paper);
  text-shadow: 0 1px 2px oklch(0 0 0 / 0.7);
  pointer-events: none;
}

/* lightbox caption */
.lightbox__cap {
  margin-top: var(--space-sm);
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.5;
  color: oklch(0.92 0.004 260);
  text-shadow: 0 1px 3px oklch(0 0 0 / 0.5);
}

/* cert card has no figure now, let the thumbnail sit at the start */
.metric--cred .metric__top { justify-content: flex-start; }

/* ------------------------------------------------------------------ *
 * Tabbed popovers + PAR (Problem / Action / Result) sections
 * ------------------------------------------------------------------ */
.pop__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: 0 0 var(--space-xl);
  border-bottom: 1px solid var(--line);
  /* keep tabs in view while reading long PAR content in the drawer */
  position: sticky;
  top: calc(-1 * clamp(var(--space-2xl), 4vw, var(--space-3xl)));
  background: var(--paper);
  z-index: 1;
}
.pop__tab {
  font: inherit;
  /* labels never break mid-word; if a three-tab row exceeds the drawer,
     whole tabs flow to a second row instead */
  flex: none;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: var(--space-xs) var(--space-2xs) var(--space-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: color 0.15s ease, border-color 0.15s ease;
}
/* hand-drawn glyph; inherits the tab's text colour so it darkens with it */
.pop__tab-ico {
  width: 21px; height: 21px;
  flex: none;
  color: var(--muted);
  overflow: visible;
  transition: color 0.15s ease, transform 0.18s var(--ease);
}
.pop__tab-ico .tab-ico-txt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 7px;
  fill: currentColor;
}
.pop__tab:hover { color: var(--ink); }
.pop__tab:hover .pop__tab-ico { color: var(--ink); }
.pop__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.pop__tab[aria-selected="true"] .pop__tab-ico { color: var(--ink); transform: rotate(-3deg) scale(1.06); }
.pop__tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
/* evidence photos inside story cards; click opens the shared lightbox.
   Tall portraits are cropped to keep the card readable, full image on zoom */
.pop__figure { margin: var(--space-lg) 0 0; }
.pop__figure img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; object-position: 50% 65%; border: 1px solid var(--line); border-radius: 4px; cursor: zoom-in; }
.pop__figure figcaption { margin-top: var(--space-2xs); font-size: 0.82rem; color: var(--muted); }
/* small-source screenshots render at natural size instead of stretching blurry */
.pop__figure--fit img { width: auto; max-width: 100%; max-height: 340px; object-fit: contain; }
/* multi-photo tabs: one figure visible at a time, arrows walk the set */
.pop__gallery { margin-top: var(--space-lg); }
.pop__gallery .pop__figure { margin-top: 0; }
.gal__ctrl { display: flex; align-items: center; gap: var(--space-sm); margin-top: var(--space-xs); }
.gal__btn { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink-soft); cursor: pointer; font-size: 0.95rem; }
.gal__btn:hover { border-color: var(--ink); color: var(--ink); }
.gal__count { font-family: var(--font-display); font-size: 0.8rem; color: var(--muted); }

.pop__panel[hidden] { display: none; }

/* PAR section: Problem / Action / Result, room to read in the drawer */
.par + .par { margin-top: var(--space-xl); }
.par__label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--space-xs);
}
.par p:not(.par__label) { margin: 0 0 var(--space-xs); font-size: 0.96rem; line-height: 1.68; color: var(--ink-soft); }
.par p:not(.par__label):last-child { margin-bottom: 0; }
/* "What I did" reads as moves, not prose: a tucked-in list, same voice as .par p */
.par__list { margin: 0; padding: 0; list-style: none; }
.par__list li {
  position: relative;
  margin: 0 0 var(--space-sm);
  padding-left: var(--space-md);
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.par__list li:last-child { margin-bottom: 0; }
.par__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}
.par__list b { color: var(--ink); font-weight: 600; }
/* the design question that closes a "problem" block: set apart, in the reader's face */
.par__q {
  margin-top: var(--space-sm) !important;
  padding-left: var(--space-md);
  border-left: 2px solid var(--ink);
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.08rem !important;
  line-height: 1.5 !important;
  color: var(--ink) !important;
  text-wrap: pretty;
}
/* personal sign-off: the last human beat before the footer */
.signoff {
  text-align: left;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0 clamp(var(--space-lg), 5vw, var(--space-4xl)) var(--space-3xl);
}
.signoff__line {
  margin: 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
}
.signoff__name {
  margin: 0.15em 0 0;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 1vw + 1.3rem, 2.1rem);
  color: var(--ink);
  letter-spacing: -0.01em;
}
/* .kw = one keyword highlight per PAR block (site-wide, controlled list).
   A passive highlighter wash: NO underline, NO "+", NO hover, so it never
   reads as clickable like .hl. Monochrome, on-palette. Reset <mark> defaults. */
.kw {
  background: color-mix(in oklch, var(--ink) 6%, transparent);
  box-shadow: 0 0 0 0.1em color-mix(in oklch, var(--ink) 6%, transparent);
  color: inherit;
  border-radius: 2px;
  padding: 0 0.02em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* .par a = an external citation/reference link inside a PAR block (e.g. a
   DBS newsroom source). A plain underlined link in the soft ink, so it is
   clearly a link yet distinct from the .hl depth-chip and the .kw wash. */
.par a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklch, var(--ink) 35%, transparent);
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
}
.par a:hover,
.par a:focus-visible {
  color: var(--ink);
  text-decoration-color: var(--ink);
}
.par a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }

/* ------------------------------------------------------------------ *
 * The path: a quiet editorial career timeline. Story-led (org + one
 * line per stop), each stop opening the SAME depth popovers via .hl
 * triggers. Deliberately not a metrics scorecard.
 * ------------------------------------------------------------------ */
.path-list { list-style: none; padding: 0; margin: var(--space-xl) 0 0; max-width: 54rem; }
.path-row { display: grid; grid-template-columns: 110px 1fr; gap: var(--space-lg); padding: var(--space-md) 0; border-top: 1px solid var(--line); align-items: baseline; }
.path-row:last-child { border-bottom: 1px solid var(--line); }
.path-row__yr { font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; color: var(--muted); white-space: nowrap; }
.path-row__body { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.65; }
.path-row__body strong { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  .path-row { grid-template-columns: 1fr; gap: var(--space-2xs); }
}

/* proof line on the four depth cards: the areas stop asserting and point
   at the stories that prove them (same .hl grammar, smaller type) */
.depth-card__proof { margin-top: var(--space-sm); font-size: 0.92rem; line-height: 1.7; color: var(--muted); }
/* the pills inherit color, and the proof line's muted grey made them read
   disabled next to story highlights (round-5 q18): restate ink */
.depth-card__proof .hl { color: var(--ink); }

/* the beliefs' provenance note: quiet, editorial */
.believe__note { margin-top: var(--space-lg); max-width: 46rem; font-family: var(--font-accent); font-style: italic; font-size: 1.02rem; color: var(--muted); }

/* visited depth triggers: once a story was opened, its "+" quiets down,
   a light "which ones did I read" memory */
.hl.is-visited::after { opacity: 0.4; }
.metric__btn.is-visited .metric__fig::after { opacity: 0.4; }
