/* Layout: dark-first executive portfolio. Wide 1120px frame for home (hero, stats bar, card grids); 680px reading column for case study and article views. Navy + gold "Gulf Night" identity, serif display. Placeholders shown as dashed lavender blocks. */
:root {
  --bg: #0c1424;
  --surface: #111c31;
  --surface-2: #17243d;
  --fg: #f1ece2;
  --muted: #a3acbb;
  --rule: #233049;
  --accent: #c9a45c;
  --accent-soft: rgba(201,164,92,0.12);
  --ph: #b9a7ec;
  --ph-soft: rgba(185,167,236,0.08);
  --bad: #e2786b;
  --bad-soft: rgba(226,120,107,0.14);
  --fig-blue: #7fa8e8;
  --fig-amber: #e0a94a;
  --on-accent: #0c1424;
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f8f6f1; --surface: #ffffff; --surface-2: #efebe2; --fg: #0f1a2e; --muted: #5a6274; --rule: #e1dcd0; --accent: #9a7425; --accent-soft: #f3ead6; --ph: #6a4fc0; --ph-soft: rgba(106,79,192,0.06); --bad: #b8432f; --bad-soft: rgba(184,67,47,0.10); --fig-blue: #2f5fb3; --fig-amber: #a8700f; --on-accent: #ffffff; color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f8f6f1; --surface: #ffffff; --surface-2: #efebe2; --fg: #0f1a2e; --muted: #5a6274; --rule: #e1dcd0; --accent: #9a7425; --accent-soft: #f3ead6; --ph: #6a4fc0; --ph-soft: rgba(106,79,192,0.06); --bad: #b8432f; --bad-soft: rgba(184,67,47,0.10); --fig-blue: #2f5fb3; --fig-amber: #a8700f; --on-accent: #ffffff; color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 18px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.frame { max-width: 1120px; margin: 0 auto; }

/* Preview banner */
.banner {
  max-width: 1120px; margin: 14px auto 0; padding: 10px 16px;
  display: flex; gap: 10px 20px; flex-wrap: wrap; align-items: center; justify-content: space-between;
  border: 1px dashed var(--ph); background: var(--ph-soft); border-radius: 8px;
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
}
.banner b { color: var(--ph); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot.ok { background: var(--accent); }
.dot.ph { background: var(--ph); }

/* Top bar */
.bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.bar-in { max-width: 1120px; margin: 0 auto; padding-block: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--fg); text-decoration: none; letter-spacing: -0.01em; }
.brand span { color: var(--muted); font-weight: 500; }
.bar nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; font-family: var(--font-body); font-size: 14.5px; }
.bar nav a { color: var(--muted); text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--fg); }
.theme-btn { font: 500 13px var(--font-body); color: var(--fg); background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 12px; cursor: pointer; }

/* Type */
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px 14px; flex-wrap: wrap; }
.eyebrow b { color: var(--accent); font-weight: 500; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; letter-spacing: -0.01em; }
h2.sec { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; margin: 0; line-height: 1.15; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head p { margin: 0; color: var(--muted); max-width: 46ch; }
section.block { padding-block: 72px 0; }

/* Placeholder chip + block */
.tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; white-space: nowrap; }
.tag.ok { color: var(--accent); background: var(--accent-soft); }
.tag.ph { color: var(--ph); border: 1px dashed var(--ph); }
.ph-note { font-family: var(--font-mono); font-size: 12.5px; color: var(--ph); line-height: 1.5; }
.ph-box { border: 1px dashed var(--ph); background: var(--ph-soft); border-radius: 10px; }

/* Hero */
.hero { padding-block: 84px 40px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: end; }
.hero h1 { font-size: clamp(42px, 6.6vw, 76px); line-height: 1.0; font-weight: 600; margin: 0 0 24px; max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .sub { font-size: 20px; color: var(--muted); max-width: 54ch; margin: 0 0 30px; }
.hero .sub strong { color: var(--fg); font-weight: 600; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { font: 600 14.5px var(--font-body); padding: 11px 20px; border-radius: 2px; text-decoration: none; border: 1px solid var(--rule); color: var(--fg); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.photo { aspect-ratio: 4 / 5; max-width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; text-align: center; padding: 18px; }
.hero .ph-note.headline { margin-top: -8px; margin-bottom: 26px; }

/* Stats bar */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.stat { padding: 26px 22px 24px 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.stat + .stat { padding-left: 22px; border-left: 1px solid var(--rule); }
.stat .n { font-family: var(--font-display); font-weight: 600; color: var(--accent); font-size: clamp(40px, 5vw, 58px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: lining-nums tabular-nums; }
.stat .l { font-size: 15.5px; line-height: 1.35; }
.stat .s { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.stat.draft .n { color: var(--ph); }

/* Cards */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; text-decoration: none; color: var(--fg); }
a.card:hover { border-color: var(--accent); }
a.card:hover .more { text-decoration: underline; }
.card.ph-box { background: var(--ph-soft); border-color: var(--ph); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.card .meta { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.card h3 { font-size: 27px; line-height: 1.2; margin: 0; font-weight: 700; }
.card p { margin: 0; font-size: 16.5px; color: var(--muted); }
.card .kpis { display: flex; gap: 22px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.card .kpis div { display: flex; flex-direction: column; }
.card .kpis b { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--accent); line-height: 1.1; }
.card .kpis span { font-size: 13px; color: var(--muted); }
.card .more { font-family: var(--font-body); font-weight: 600; font-size: 15px; color: var(--accent); }
.card.feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.card.feature-ph { grid-column: 1 / -1; }
.card.feature > .txt { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card.feature h3 { font-size: 34px; }
.mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border-radius: 8px; overflow: hidden; border: 1px solid var(--rule); }
.mini div { background: var(--surface-2); padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.mini b { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; }
.mini b { color: var(--accent); }
.mini span { font-size: 13.5px; color: var(--muted); line-height: 1.3; }

/* Writing list */
.writing { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px; }
.ph-list { display: flex; flex-direction: column; gap: 12px; }
.ph-row { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.ph-row h4 { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 600; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.about .bio { padding: 0; display: flex; flex-direction: column; gap: 12px; }
.about .bio p { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.timeline .yr { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); padding-top: 3px; font-variant-numeric: lining-nums tabular-nums; }
.timeline b { font-family: var(--font-display); font-weight: 600; display: block; line-height: 1.3; }
.timeline span { font-size: 15.5px; color: var(--muted); }

/* Contact */
.contact { margin-top: 72px; border-top: 1px solid var(--rule); padding-block: 56px 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.contact h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 600; margin: 0 0 12px; line-height: 1.05; }
.contact p { color: var(--muted); margin: 0; }
.links { display: flex; flex-direction: column; gap: 10px; }
.links .ph-row { flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.links .ph-row span:first-child { font-family: var(--font-display); font-weight: 600; }

.link-row { border: 1px solid var(--rule); border-radius: 10px; background: var(--surface); text-decoration: none; color: var(--fg); }
.link-row span:last-child { color: var(--accent); font-size: 15px; }
a.link-row:hover { border-color: var(--accent); }
.portrait { display: block; width: 100%; height: auto; max-width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 3px; border: 1px solid var(--rule); box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--accent-soft); }
@media (max-width: 900px) { .portrait { max-width: 280px; } }
.copy-btn { font: 500 12px var(--font-body); color: var(--fg); background: transparent; border: 1px solid var(--rule); border-radius: 999px; padding: 3px 10px; margin-left: 8px; cursor: pointer; }
.email-val a { text-decoration: none; }
.industries { margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--font-body); font-size: 15.5px; font-weight: 600; letter-spacing: 0.01em; color: var(--accent); line-height: 1.5; }
.industries i { font-style: normal; color: var(--rule); }
.industries span:last-child { color: var(--muted); }
/* Header v2: one cohesive bar */
.bar-in { flex-direction: column; align-items: stretch; gap: 0; padding-block: 0; }
.bar-top { display: flex; justify-content: space-between; align-items: center; gap: 10px 28px; flex-wrap: wrap; padding-block: 16px 14px; }
.brand { display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; font-size: inherit; }
.brand .nm { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.005em; color: var(--fg); line-height: 1.1; }
.brand .tl { font-family: var(--font-body); font-weight: 500; font-size: 14.5px; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--rule); line-height: 1.2; }
.bar nav { gap: 22px; }
.bar nav a { font-weight: 500; position: relative; padding-block: 4px; }
.bar nav a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--accent); }
.bar .industries { margin: 0; padding-block: 9px 10px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 2px 10px; font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0.01em; color: var(--muted); line-height: 1.5; }
.bar .industries span:first-child { color: var(--accent); }
.bar .industries i { font-style: normal; color: var(--rule); }
@media (max-width: 640px) {
  .bar { position: static; }
  .bar-top { padding-block: 14px 12px; }
  .brand .tl { padding-left: 0; border-left: 0; flex-basis: 100%; }
  .bar .industries { flex-direction: column; gap: 0; }
  .bar .industries i { display: none; }
}
.about-lead { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.3; font-weight: 600; margin: 0 0 18px; text-wrap: balance; }
.about .bio p:not(.about-lead) { color: var(--muted); }
.prin-head { font-size: 26px; font-weight: 600; margin: 48px 0 20px; }
.prin { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--rule); }
.prin div { padding: 18px 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.prin b { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.25; color: var(--fg); }
.prin span { font-size: 16px; color: var(--muted); line-height: 1.55; }
.hook { font-family: var(--font-display); font-style: italic; font-size: clamp(24px, 3vw, 34px); line-height: 1.3; color: var(--accent); margin: 48px 0 12px; max-width: 44ch; text-wrap: balance; }
@media (max-width: 640px) { .prin { grid-template-columns: minmax(0, 1fr); } }
.outside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; margin-top: 40px; }
.outside div { min-width: 0; }
.outside b { font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 6px; }
.outside p { margin: 0; color: var(--muted); font-size: 16.5px; }
@media (max-width: 640px) { .outside { grid-template-columns: minmax(0, 1fr); } }
/* Reading pages v2: wide layout with contents rail */
.read { max-width: 1120px; margin: 0 auto; }
.doc-hero { padding-block: 28px 36px; border-bottom: 1px solid var(--rule); margin-bottom: 40px; }
.doc-hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; max-width: 26ch; margin: 18px 0 24px; }
.doc-hero .lede, .doc-hero .dek { max-width: 72ch; font-size: clamp(19px, 1.8vw, 22px); }
.doc-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 64px; align-items: start; }
.toc { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 132px); display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.toc small { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc a { color: var(--muted); text-decoration: none; font-size: 14.5px; line-height: 1.4; padding: 6px 0 6px 12px; border-left: 1.5px solid var(--rule); }
.toc a:hover { color: var(--fg); border-left-color: var(--accent); }
.doc-main { min-width: 0; }
.doc-main article { font-size: 18.5px; }
.doc-main article > p, .doc-main article > ul, .doc-main article > ol, .doc-main article > h2, .doc-main article > h3 { max-width: 70ch; }
.doc-main article h2 { scroll-margin-top: 140px; }
.doc-main .caption { margin-top: 0; }
.doc-main .gcc { max-width: none; }
.doc-main figure, .doc-main .scroll { max-width: none; }
@media (max-width: 960px) {
  .doc-body { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
footer { max-width: 1120px; margin: 40px auto 0; padding-block: 24px 44px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* Reading views */
.back { display: inline-block; margin-top: 36px; font-family: var(--font-body); font-weight: 600; font-size: 15px; text-decoration: none; }
.doc-hero { padding-block: 30px 24px; }
.doc-hero h1 { font-size: clamp(34px, 5.2vw, 52px); line-height: 1.08; font-weight: 600; margin: 18px 0 22px; }
.lede { font-size: 20px; line-height: 1.6; margin: 0; }
.dek { font-size: 21px; font-style: italic; color: var(--muted); margin: 0 0 18px; line-height: 1.5; }
.caption { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin: 34px 0 12px; }
.cs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.cs-stats .st { background: var(--surface); padding: 22px; display: flex; flex-direction: column; gap: 6px; line-height: 1.35; }
.cs-stats .st b { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1; letter-spacing: -0.02em; }
.cs-stats .st.lead b { color: var(--accent); }
.cs-stats .st .l { font-weight: 600; font-size: 16.5px; }
.cs-stats .st .s { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: auto; }
article h2 { font-size: 27px; font-weight: 700; line-height: 1.2; margin: 44px 0 14px; }
article h3 { font-size: 20px; font-weight: 600; margin: 28px 0 8px; display: flex; gap: 12px; align-items: baseline; letter-spacing: -0.01em; }
article h3 .k { font-family: var(--font-mono); font-size: 15px; color: var(--accent); min-width: 1.4em; }
article p { margin: 0 0 16px; }
article ol, article ul { padding-left: 1.2em; margin: 0 0 16px; }
article li { margin-bottom: 8px; }
article li::marker { color: var(--accent); }
.span { border-left: 2px solid var(--accent); background: var(--accent-soft); padding: 14px 18px; margin: 4px 0 18px; border-radius: 0 6px 6px 0; }
.scroll { overflow-x: auto; margin: 10px 0 18px; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; }
th { text-align: left; font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); }
td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
td.date { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
td.outlet { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
td:first-child.rowh { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.lessons { list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.lessons li { margin: 0; padding-left: 18px; border-left: 1px solid var(--rule); }
.gcc { margin-top: 44px; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 30px 26px 14px; }
.gcc h2 { margin-top: 10px; }

/* Article figures */
figure { margin: 22px 0 24px; }
figcaption { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-bottom: 12px; }
.four { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.four div { border: 1px solid var(--rule); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.four b { font-family: var(--font-display); font-size: 38px; font-weight: 600; line-height: 1; }
.four .blue b { color: var(--fig-blue); }
.four .amber b { color: var(--fig-amber); }
.four span { font-size: 15px; line-height: 1.4; }
.four small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: auto; }
.compare { min-width: 560px; }
.compare td { font-size: 14.5px; }
.compare td b { font-family: var(--font-display); font-size: 22px; display: block; line-height: 1.15; }
.compare .gcc-col b { color: var(--fig-amber); }
.chip { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; }
.flow { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 8px; min-width: 780px; }
.flow div { background: var(--surface-2); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); line-height: 1.4; }
.flow div strong { color: var(--fg); font-family: var(--font-display); font-size: 15px; line-height: 1.3; }
.flow div .chip { margin: 0; }
.flow div.lost { background: var(--bad-soft); border: 1.5px solid var(--bad); color: var(--fg); }
.flow div.lost .chip { color: var(--bad); }
.bars { display: grid; gap: 12px; }
.bars .r { display: grid; grid-template-columns: minmax(120px, 210px) minmax(0, 1fr) 44px; gap: 14px; align-items: center; font-size: 15px; }
.bars .t { height: 12px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.bars .t i { display: block; height: 100%; background: var(--bad); border-radius: 6px; }
.bars .v { font-weight: 600; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.fig-sub { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); margin: -6px 0 14px; }
.sources { font-size: 15.5px; }


@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .photo { aspect-ratio: auto; min-height: 120px; max-width: 320px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .card.feature, .writing, .about, .contact { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .cs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-stats .st { padding: 16px; }
  .cs-stats .st b { font-size: 30px; }
  .four { grid-template-columns: minmax(0, 1fr); }
  .bars .r { grid-template-columns: minmax(0, 1fr) 44px; }
  .bars .r .t { grid-column: 1 / -1; grid-row: 2; }
  .hero .sub, .lede { font-size: 18px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .bar nav { gap: 14px; }
}
.hero .pitch { font-size: clamp(19px, 1.9vw, 22px); color: var(--fg); font-weight: 500; margin-bottom: 14px; }
.tag.soon { color: var(--muted); border: 1px solid var(--rule); }
.card.soon { border-style: dashed; }
.card.soon h3 { color: var(--muted); }
