/* ==========================================================================
   Raju Mudireddy — personal site
   One stylesheet, no framework. Edit the tokens in :root to restyle.
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/inter-regular.woff?v=20261008") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-medium.woff?v=20261008") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-semibold.woff?v=20261008") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-var.woff?v=20261008") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-italic-var.woff?v=20261008") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
/* Metric-matched fallbacks so text doesn't jump when the web fonts arrive */
@font-face { font-family: "Lora Fallback"; src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Liberation Serif"); size-adjust: 117%; ascent-override: 86%; descent-override: 23.4%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"); size-adjust: 106.7%; ascent-override: 90.8%; descent-override: 22.6%; line-gap-override: 0%; }

:root {
  --paper: #f6f4ef;
  --paper-2: #eeebe3;
  --card: #fbfaf7;
  --ink: #15171b;
  --ink-2: #3a3f47;
  --muted: #646a74;
  --rule: #dcd7cb;
  --accent: #1d5a46;
  --accent-hover: #164a39;
  --accent-ink: #ffffff;
  --accent-soft: #e2ece6;
  --band: #15171b;
  --band-ink: #f2f0ea;
  --band-muted: #a9adb3;

  --serif: "Lora", "Lora Fallback", Georgia, serif;
  --sans: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 10vw, 128px);
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111312;
    --paper-2: #181b1a;
    --card: #1b1e1d;
    --ink: #ecebe6;
    --ink-2: #c9c7c0;
    --muted: #9b9e9a;
    --rule: #2d312f;
    --accent: #86c8ad;
    --accent-hover: #a2d7c1;
    --accent-ink: #0d1813;
    --accent-soft: #1c2a24;
    --band: #0b0c0c;
    --band-ink: #ecebe6;
    --band-muted: #9b9e9a;
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 18px;
}
.h-section {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.012em;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.15; max-width: 22ch;
}
.lede { font-size: clamp(1.08rem, 1.5vw, 1.2rem); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 600 .95rem/1 var(--sans); text-decoration: none; letter-spacing: .005em;
  border: 1px solid transparent; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.link {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule);
  text-underline-offset: .22em; text-decoration-thickness: 1px; transition: text-decoration-color .2s;
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; letter-spacing: -.005em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; font-size: .95rem; color: var(--ink-2); padding: 6px 0; position: relative; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--ink); }
.nav-links a[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent); }
.nav .btn { min-height: 42px; padding: 10px 18px; font-size: .9rem; }
.menu-toggle {
  display: none; background: none; border: 1px solid var(--rule); border-radius: 999px;
  min-height: 44px; padding: 0 16px; font: 600 .9rem var(--sans); color: var(--ink); cursor: pointer;
  align-items: center; gap: 8px;
}
.menu-toggle-bars { width: 16px; height: 10px; position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .25s var(--ease), top .25s var(--ease); }
.menu-toggle-bars::before { top: 1px; }
.menu-toggle-bars::after { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { top: 4.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { top: 4.5px; transform: rotate(-45deg); }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--rule); }
  .nav-links a[aria-current="true"]::after { display: none; }
  .nav .btn { margin-top: 18px; justify-content: center; min-height: 48px; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-name { margin: 0 0 22px; display: flex; align-items: center; gap: 14px; }
.hero-name-text { font-weight: 600; font-size: 1rem; color: var(--ink); display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.hero-name-text span { font-weight: 500; font-size: .92rem; color: var(--muted); }
.hero-avatar { display: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; flex: none; }
.hero h1 {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.02em;
  font-size: clamp(2.3rem, 4.2vw, 3.7rem); line-height: 1.06; letter-spacing: -.025em; margin-bottom: 28px; max-width: 19ch; text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { margin-bottom: 34px; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-status { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.hero-status .status-dot { margin-top: .5em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.portrait { margin: 0; position: relative; }
.portrait { position: relative; }
.portrait picture { position: relative; display: block; }
.portrait picture::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--accent); opacity: .35; border-radius: var(--radius); z-index: -1; }
.portrait { isolation: isolate; }
.portrait img { width: 100%; aspect-ratio: 960 / 1002; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.portrait figcaption { position: relative; z-index: 1; display: flex; justify-content: space-between; margin-top: 32px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { display: none; }
  .hero-avatar { display: block; }
  .hero-name-text { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { justify-content: center; padding-inline: 14px; }
  .hero-actions .btn-primary { grid-column: 1 / -1; }
}

/* ---------- Thread line ---------- */
.thread { border-top: 1px solid var(--rule); }
.thread-line { margin: 0; padding-block: clamp(18px, 2.4vw, 26px); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; font-family: var(--serif); font-size: clamp(1.15rem, 2.3vw, 1.85rem); letter-spacing: -.01em; color: var(--ink); }
.thread-line i { font-style: normal; color: var(--accent); font-size: .8em; }
@media (max-width: 560px) { .thread-line { justify-content: flex-start; } }

/* ---------- Proof band ---------- */
.proof { background: var(--paper-2); border-block: 1px solid var(--rule); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
.proof-grid li { padding: clamp(28px, 4vw, 44px) clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--rule); }
.proof-grid li:first-child { border-left: 0; padding-left: 0; }
.proof-figure { display: block; font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1; letter-spacing: -.02em; margin-bottom: 12px; font-variant-numeric: lining-nums; }
.proof-label { display: block; font-size: .93rem; line-height: 1.45; color: var(--ink-2); }
.proof-source { display: block; margin-top: 8px; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
@media (max-width: 560px) {
  .proof-grid { grid-template-columns: 1fr !important; }
  .proof-grid li { display: grid; grid-template-columns: 112px 1fr; column-gap: 16px; padding: 22px 0 !important; border-left: 0 !important; border-top: 1px solid var(--rule); }
  .proof-grid li:first-child { border-top: 0; }
  .proof-figure { grid-row: span 2; font-size: 2rem; margin: 0; }
  .proof-source { margin-top: 6px; }
}
@media (max-width: 860px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid li { border-left: 0; padding-inline: 0; }
  .proof-grid li:nth-child(odd) { padding-right: 20px; }
  .proof-grid li:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--rule); }
  .proof-grid li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head .lede { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Case studies ---------- */
.cases { display: grid; gap: clamp(64px, 8vw, 104px); }
.case { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--rule); }
.case:nth-child(odd):not(.case-featured) .case-aside { order: -1; }
.case-media { margin: 0 0 20px; }
.case-media img, .case-hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); }
.case-media figcaption, .case-hero figcaption { margin-top: 12px; font-size: .85rem; color: var(--muted); }
.case-featured { display: block; border-top: 0; padding-top: 0; }
.case-hero { margin: 0 0 clamp(32px, 4vw, 48px); }
.case-hero img { aspect-ratio: 21 / 9; object-position: 50% 30%; }
.case-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.case-featured h3 { font-size: clamp(1.75rem, 3vw, 2.4rem); max-width: 22ch; }
.case-index span { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 4px 8px; border-radius: 999px; }
.case-featured .case-aside .case-label { margin-top: 0; }
.outcomes-lg li { padding: 22px 22px 24px; }
.outcomes-lg b { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.case-index { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 18px; font-size: .85rem; color: var(--muted); }
.case-index b { font-family: var(--serif); font-weight: 500; font-size: 1rem; color: var(--accent); }
.case h3 { font-family: var(--serif); font-size: clamp(1.55rem, 2.6vw, 2.05rem); line-height: 1.2; letter-spacing: -.01em; margin-bottom: 14px; }
.case-role { font-size: .95rem; color: var(--ink-2); margin-bottom: 20px; }
.case-role strong { display: block; font-weight: 600; color: var(--ink); }
.case p.case-summary { color: var(--ink-2); }
.case-label { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 30px 0 12px; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.ticks li::before { content: ""; position: absolute; left: 0; top: calc(.78em - 1px); width: 9px; height: 2px; border-radius: 1px; background: var(--accent); }
.outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; list-style: none; }
.outcomes li { background: var(--card); padding: 18px 20px; }
.outcomes b { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.01em; margin-bottom: 6px; }
.outcomes span { display: block; font-size: .88rem; line-height: 1.45; color: var(--ink-2); }
.roles { list-style: none; border-top: 1px solid var(--rule); }
.roles li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: .95rem; }
.roles li span:last-child { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.roles em { font-style: normal; color: var(--muted); display: block; font-size: .88rem; }
@media (max-width: 860px) {
  .case, .case-grid { grid-template-columns: 1fr; }
  .case:nth-child(odd):not(.case-featured) .case-aside { order: 0; }
  .case-hero img { aspect-ratio: 3 / 2; }
}
@media (max-width: 360px) { .outcomes { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .roles li { grid-template-columns: 1fr; } }

/* ---------- Capabilities ---------- */
.capabilities { background: var(--paper-2); border-block: 1px solid var(--rule); }
.cap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 44px); list-style: none; }
.cap-grid li { border-top: 1.5px solid var(--ink); padding-top: 22px; }
.cap-grid h3 { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; margin-bottom: 12px; }
.cap-grid p { font-size: .97rem; color: var(--ink-2); margin-bottom: 14px; }
.cap-grid .tags { font-size: .85rem; color: var(--muted); line-height: 1.6; margin: 0; }
@media (max-width: 1000px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cap-grid { grid-template-columns: 1fr; } }

/* ---------- Experience timeline ---------- */
.timeline { list-style: none; border-top: 1px solid var(--ink); }
.job { border-bottom: 1px solid var(--rule); }
.job > details > summary {
  list-style: none; cursor: pointer; display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto; gap: 8px 32px; align-items: baseline;
  padding: 26px 0;
}
.job > details > summary::-webkit-details-marker { display: none; }
.job-dates { font-size: .92rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.job-title { font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.3; }
.job-org { display: block; font-family: var(--sans); font-size: .97rem; color: var(--ink-2); margin-top: 4px; }
.job-org .loc { color: var(--muted); }
.job-gist { display: block; margin-top: 10px; font-family: var(--sans); font-size: .97rem; color: var(--ink-2); max-width: 62ch; }
.job-toggle {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--accent); white-space: nowrap;
}
.job-toggle::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s var(--ease); }
details[open] .job-toggle::after { transform: translateY(2px) rotate(-135deg); }
details[open] .job-toggle .t-more, .job-toggle .t-less { display: none; }
details[open] .job-toggle .t-less { display: inline; }
.job summary:hover .job-title { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .2em; }
.job-body { padding: 0 0 30px calc(190px + 32px); }
.job-body .ticks { max-width: 70ch; }
@media (max-width: 760px) {
  .job > details > summary { grid-template-columns: 1fr auto; padding: 22px 0; }
  .job-dates { grid-column: 1 / -1; }
  .job-body { padding-left: 0; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); }
.about-copy p { font-size: 1.08rem; color: var(--ink-2); max-width: 62ch; }
.about-copy > p:first-child { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.45; color: var(--ink); }
.about-side .h-section { margin-bottom: 8px; }
.facts { list-style: none; border-top: 1px solid var(--rule); margin-top: 36px; }
.facts li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: .97rem; }
.facts li span:first-child { color: var(--muted); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .facts li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Chapters head ---------- */
.chapters-head { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(64px, 8vw, 112px); }
.chapters-photo { margin: 0; }
.chapters-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); filter: saturate(.92); }
.chapters-intro .lede { margin-bottom: 32px; }
.chapter-index { list-style: none; border-top: 1px solid var(--ink); }
.chapter-index a { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--rule); text-decoration: none; transition: padding-left .3s var(--ease), color .2s; }
.chapter-index b { font-family: var(--serif); font-weight: 500; color: var(--accent); }
.chapter-index span { font-family: var(--serif); font-size: clamp(1.1rem, 1.7vw, 1.3rem); }
.chapter-index em { font-style: normal; font-size: .85rem; color: var(--muted); }
.chapter-index a:hover { padding-left: 8px; }
.chapter-index a:hover span { color: var(--accent); }
@media (max-width: 860px) {
  .chapters-head { grid-template-columns: 1fr; align-items: start; }
  .chapters-photo { max-width: 300px; }
}
@media (max-width: 520px) { .chapter-index a { grid-template-columns: 40px 1fr; } .chapter-index em { grid-column: 2; } }

/* ---------- Case extras ---------- */
.case-index b { font-size: 1.5rem; line-height: 1; }
.case-yuva .case-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.case-desh .case-hero img { object-position: 50% 62%; }
.case-media-tall img { aspect-ratio: 562 / 754; object-position: 50% 30%; }
.case-media, .case-hero { overflow: hidden; }
.case-media picture, .case-hero picture { display: block; overflow: hidden; border-radius: var(--radius); }
.case-media img, .case-hero img { transition: transform .9s var(--ease); }
.case-media:hover img, .case-hero:hover img { transform: scale(1.025); }
.disciplines { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.disciplines li { font-size: .8rem; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.progression { list-style: none; display: grid; grid-template-columns: 1fr 1fr; margin: 6px 0 24px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); position: relative; }
.progression li { padding: 16px 20px; font-family: var(--serif); font-size: 1.08rem; line-height: 1.3; }
.progression li + li { border-left: 1px solid var(--rule); padding-left: 36px; position: relative; }
.progression li + li::before { content: "→"; position: absolute; left: -12px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--rule); border-radius: 50%; font-family: var(--sans); font-size: .8rem; color: var(--accent); }
.progression span { display: block; font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .86rem; color: var(--ink-2); border: 1px solid var(--rule); padding: 5px 12px; border-radius: 999px; background: var(--card); }
.split3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); margin-top: clamp(36px, 4vw, 52px); padding-top: clamp(28px, 3vw, 36px); border-top: 1px solid var(--rule); }
.split3 .case-label { margin-top: 0; }
.split3 .ticks li { font-size: .95rem; }
@media (max-width: 860px) { .split3 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .progression { grid-template-columns: 1fr; } .progression li + li { border-left: 0; border-top: 1px solid var(--rule); padding-left: 20px; } .progression li + li::before { content: "↓"; left: 20px; top: -12px; transform: none; } }

/* ---------- Experience detail extras ---------- */
.job-context { font-size: .95rem; color: var(--ink); margin: 0 0 16px; padding-left: 14px; border-left: 2px solid var(--accent); max-width: 70ch; }
.job-sub { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 10px; }
.job-context + .job-sub, .job-body > .job-sub:first-child { margin-top: 0; }
.job-functions { margin: 18px 0 0; font-size: .88rem; color: var(--muted); max-width: 75ch; }
.job-functions b { font-weight: 600; color: var(--ink-2); margin-right: 6px; }

/* ---------- Career arc ---------- */
.arc { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--ink); counter-reset: arc; }
.arc li { position: relative; padding: 28px 28px 4px 0; }
.arc li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.arc li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.arc li + li::before { left: 28px; }
.arc b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; margin-bottom: 12px; font-variant-numeric: lining-nums; }
.arc span { display: block; font-weight: 600; margin-bottom: 6px; }
.arc em { display: block; font-style: normal; font-size: .93rem; color: var(--ink-2); }
@media (max-width: 760px) { .arc { grid-template-columns: 1fr; } .arc li, .arc li + li { padding: 22px 0 18px; border-left: 0; border-bottom: 1px solid var(--rule); } .arc li + li::before { left: 0; } }

/* ---------- Beyond work ---------- */
.beyond { border-top: 1px solid var(--rule); }
.beyond-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 6vw, 96px); align-items: center; padding-block: clamp(56px, 7vw, 96px); }
.beyond-mark { font-family: var(--serif); font-weight: 600; font-size: clamp(5rem, 13vw, 10rem); line-height: .85; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--accent); }
.beyond-copy h2 { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; margin-bottom: 16px; }
.beyond-copy p:last-child { color: var(--ink-2); max-width: 62ch; margin: 0; }
.beyond-copy strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) { .beyond-row { grid-template-columns: 1fr; } }

/* ---------- Field notes (photos) ---------- */
.photo-set + .photo-set { margin-top: clamp(48px, 6vw, 72px); }
.photo-set-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-bottom: 14px; margin-bottom: 20px; border-bottom: 1px solid var(--rule); }
.photo-set-head h3 { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.5rem); }
.photo-set-head p { margin: 0; font-size: .9rem; color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 16px); list-style: none; }
.photo-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; color: inherit; font: inherit; }
.photo-btn img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--paper-2); transition: opacity .25s var(--ease); }
.photo-btn { overflow: hidden; border-radius: var(--radius); }
.photo-btn img { transition: transform .8s var(--ease), opacity .25s; }
.photo-btn:hover img { transform: scale(1.04); }
.photo-cap { display: block; margin-top: 10px; font-size: .82rem; color: var(--muted); }
@media (max-width: 760px) {
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-set-head { flex-direction: column; gap: 2px; }
}

.lightbox {
  border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  background: #0b0c0c; color: #f2f0ea;
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox::backdrop { background: transparent; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; }
.lb-count { font-size: .85rem; color: #b8bab6; padding-left: 8px; }
.lb-stage { display: grid; place-items: center; padding: 0 64px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: 4px; }
.lb-cap { text-align: center; padding: 16px 20px 22px; font-size: .9rem; color: #c9cbc7; }
.lb-btn {
  background: rgba(255,255,255,.08); color: #fff; border: 0; border-radius: 999px;
  width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer; transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-btn svg { width: 20px; height: 20px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
@media (max-width: 600px) { .lb-stage { padding: 0 8px; } .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } }

/* ---------- Contact ---------- */
.contact { background: var(--band); color: var(--band-ink); }
.contact .eyebrow { color: var(--band-muted); }
.contact h2 { font-family: var(--serif); font-size: clamp(2.1rem, 5vw, 3.9rem); line-height: 1.08; letter-spacing: -.02em; max-width: 18ch; margin-bottom: 28px; }
.contact .lede { color: var(--band-muted); margin-bottom: 44px; }
.contact-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.14); }
.contact-list li { padding: 24px 24px 24px 0; }
.contact-list li + li { padding-left: 24px; border-left: 1px solid rgba(255,255,255,.14); }
.contact-list span { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--band-muted); margin-bottom: 8px; font-weight: 600; }
.contact-list a { color: var(--band-ink); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: .22em; font-size: 1.02rem; word-break: break-word; }
.contact-list a:hover { text-decoration-color: currentColor; }
.contact .btn-primary { background: var(--band-ink); color: var(--band); }
.contact .btn-primary:hover { background: #fff; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 56px; }
.contact .btn-ghost { color: var(--band-ink); border-color: rgba(255,255,255,.25); }
.contact .btn-ghost:hover { border-color: var(--band-ink); }
@media (max-width: 900px) {
  .contact-list { grid-template-columns: 1fr 1fr; }
  .contact-list li, .contact-list li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
  .contact-list li:nth-child(even) { padding-left: 20px; border-left: 1px solid rgba(255,255,255,.14); }
}
@media (max-width: 520px) {
  .contact-list { grid-template-columns: 1fr; }
  .contact-list li:nth-child(even) { padding-left: 0; border-left: 0; }
}

.site-footer { background: var(--band); color: var(--band-muted); font-size: .85rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 0 32px; }
.site-footer a { color: var(--band-muted); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .photos, .contact-actions, .job-toggle, .skip-link { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .job-body { display: block !important; }
  body { background: #fff; color: #000; }
}

/* ---------- Final-pass fixes ---------- */
.chapters-intro .h-section { margin-bottom: 20px; }
@media (max-width: 860px) {
  .case-yuva .case-grid { grid-template-columns: 1fr; }
  .case-media-tall { max-width: 420px; }
}
@media (max-width: 520px) { .chapter-index a { padding: 14px 0; row-gap: 2px; } }

/* ---------- Custom cursor (fine pointers only; added by site.js) ---------- */
.is-viewable { cursor: zoom-in; }
.is-viewable:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
.cursor { position: fixed; inset: 0 auto auto 0; width: 0; height: 0; z-index: 200; pointer-events: none; opacity: 0; transition: opacity .25s var(--ease); }
.cursor.is-on { opacity: 1; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; mix-blend-mode: difference; }
.cursor-ring { display: grid; place-items: center; }
.cursor-ring::before { content: ""; position: absolute; width: 30px; height: 30px; left: -15px; top: -15px; border-radius: 50%; border: 1px solid var(--ink); opacity: .28; transition: width .35s var(--ease), height .35s var(--ease), left .35s var(--ease), top .35s var(--ease), opacity .3s, background-color .3s, border-color .3s; }
.cursor-label { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.6); font: 600 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); opacity: 0; white-space: nowrap; transition: opacity .2s, transform .35s var(--ease); }
.cursor-dot { transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), opacity .2s; }
.cursor[data-mode="link"] .cursor-ring::before { width: 8px; height: 8px; left: -4px; top: -4px; opacity: 0; }
.cursor[data-mode="link"] .cursor-dot { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
.cursor[data-mode="view"] .cursor-ring::before,
.cursor[data-mode="open"] .cursor-ring::before,
.cursor[data-mode="close"] .cursor-ring::before { width: 64px; height: 64px; left: -32px; top: -32px; opacity: .94; background: var(--accent); border-color: var(--accent); }
.cursor[data-mode="view"] .cursor-label,
.cursor[data-mode="open"] .cursor-label,
.cursor[data-mode="close"] .cursor-label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor[data-mode="view"] .cursor-dot,
.cursor[data-mode="open"] .cursor-dot,
.cursor[data-mode="close"] .cursor-dot,
.cursor[data-mode="hide"] { opacity: 0; }
.cursor.is-down .cursor-ring::before { transform: scale(.85); }
.cursor.on-dark .cursor-ring::before { border-color: #f2f0ea; }
html.has-cursor, html.has-cursor body, html.has-cursor a, html.has-cursor button, html.has-cursor summary, html.has-cursor .is-viewable, html.has-cursor .photo-btn { cursor: none; }
html.has-cursor .lightbox, html.has-cursor .lightbox * { cursor: auto; }
html.has-cursor .lightbox button { cursor: pointer; }
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) { .cursor { display: none !important; } }
@media print { .cursor { display: none !important; } }
.case-yuva .case-media img { aspect-ratio: 565 / 482; }

/* ---------- Organisation links (external) ---------- */
.org-link { color: inherit; text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color .2s var(--ease), text-decoration-color .2s var(--ease); }
.org-link::after { content: "↗"; display: inline-block; margin-left: .18em; font-size: .78em; color: var(--muted); transform: translateY(-.08em); transition: transform .2s var(--ease), color .2s var(--ease); }
.org-link:hover { color: var(--accent); text-decoration-color: currentColor; }
.org-link:hover::after { color: var(--accent); transform: translate(.08em, -.2em); }
.roles .org-link { font-weight: inherit; }

/* ---------- Blog (listing, article pages, home teaser) ---------- */
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent); }
@media (max-width: 860px) { .nav-links a[aria-current="page"]::after { display: none; } .nav-links a[aria-current="page"] { font-weight: 600; } }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 20px; }
.site-footer-plain .footer-inner { padding-block: 32px; }

/* Shared frame for every blog image: same border, radius and dark backdrop */
.post-card-media, .post-cover, .post-figure-link { display: block; overflow: hidden; border-radius: var(--radius); background: #141615; box-shadow: 0 0 0 1px var(--rule); }
.post-card-media img, .post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Cards (blog listing, homepage section, read next) */
.post-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4vw, 56px); }
.post-card { position: relative; display: flex; flex-direction: column; }
.post-card-media { margin: 0 0 20px; }
.post-card-media img { transition: transform .8s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.02); }
.post-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: .85rem; color: var(--muted); margin: 0 0 10px; }
.post-meta a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .22em; }
.post-meta a:hover { text-decoration-color: currentColor; }
.post-card-title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.22; letter-spacing: -.01em; margin-bottom: 12px; text-wrap: balance; }
.post-card-title a { text-decoration: none; }
.post-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.post-card-title a:focus-visible { outline: none; }
.post-card:focus-within { outline: 2px solid var(--accent); outline-offset: 8px; border-radius: var(--radius); }
.post-card:hover .post-card-title a { text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .18em; text-decoration-thickness: 1px; }
.post-card-summary { color: var(--ink-2); font-size: 1rem; margin-bottom: 14px; max-width: 58ch; }
.post-card-more { margin-top: auto; font-size: .88rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.post-card-more::after { content: "→"; transition: transform .2s var(--ease); }
.post-card:hover .post-card-more::after { transform: translateX(3px); }
.blog-teaser { border-top: 1px solid var(--rule); }
.blog-teaser-more { margin: clamp(36px, 4vw, 52px) 0 0; }
@media (max-width: 760px) { .post-list { grid-template-columns: 1fr; } }

/* Blog listing header */
.blog-index { padding-top: clamp(40px, 6vw, 80px); }
.blog-index .section-head { display: block; max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.blog-index .section-head .lede { margin-top: 18px; }
.blog-index .h-section { max-width: 24ch; text-wrap: balance; }

/* Article: one centred column; every block shares the same left edge */
.post { --col: 760px; --flow: 1.25rem; padding-block: clamp(32px, 5vw, 64px) var(--section); }
.post-head, .post-cover, .post-body, .post-foot { width: 100%; max-width: var(--col); margin-inline: auto; }
.post-crumb { margin: 0 0 18px; }
.post-crumb a { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.post-crumb a:hover { text-decoration: underline; text-underline-offset: .25em; }
.post-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.022em; margin-bottom: 20px; text-wrap: balance; }
.post-head { padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--rule); }
.post-head .post-meta { margin: 0; }
.post-cover { margin-bottom: 44px; }

.post-body { font-size: 1.1rem; line-height: 1.75; color: var(--ink-2); }
.post-body > * { margin: 0; }
.post-body > * + * { margin-top: var(--flow); }
.post-body strong { color: var(--ink); font-weight: 600; }
.post-body h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.22; letter-spacing: -.01em; color: var(--ink); margin-top: calc(var(--flow) * 2.4); scroll-margin-top: 96px; }
.post-body h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.3; color: var(--ink); margin-top: calc(var(--flow) * 1.8); scroll-margin-top: 96px; }
.post-body h2 + *, .post-body h3 + * { margin-top: calc(var(--flow) * .6); }
.post-body ul, .post-body ol { padding-left: 1.25em; display: grid; gap: .5em; }
.post-body li::marker { color: var(--accent); }
.post-body ol li::marker { font-weight: 600; }
.post-body blockquote { margin-inline: 0; padding: 20px 24px; background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: var(--radius); font-size: 1rem; color: var(--ink); }
.post-body blockquote p { margin: 0; }
.post-body a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: .22em; }
.post-body > p:last-child { margin-top: calc(var(--flow) * 1.6); padding-top: var(--flow); border-top: 1px solid var(--rule); color: var(--ink); }

/* In-article diagrams: full column width, same frame as the cover */
.post-body > .post-figure { margin-block: calc(var(--flow) * 1.6); }
.post-body > .post-figure + * { margin-top: calc(var(--flow) * 1.6); }
.post-figure-link { cursor: zoom-in; }
.post-figure img { display: block; width: 100%; height: auto; }
.post-figure figcaption { margin-top: 10px; font-size: .88rem; line-height: 1.5; color: var(--muted); }

.post-foot { margin-top: clamp(48px, 6vw, 72px); }
.post-share { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: clamp(40px, 5vw, 56px); border-bottom: 1px solid var(--rule); }
.post-next { padding-top: clamp(32px, 4vw, 44px); }
.post-next .case-label { margin-top: 0; margin-bottom: 20px; }
.post-list-single { grid-template-columns: 1fr; }
.post-list-single .post-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 28px; align-content: start; }
.post-list-single .post-card-media { grid-row: span 4; margin: 0; align-self: start; }
@media (max-width: 560px) {
  .post { --flow: 1.1rem; }
  .post-body { font-size: 1.05rem; }
  .post-list-single .post-card { grid-template-columns: 1fr; }
  .post-list-single .post-card-media { grid-row: auto; margin-bottom: 16px; }
}
@media print { .post-share, .post-next { display: none !important; } .post-body { color: #000; } }

/* ---------- Animated SVG diagrams (blog) ---------- */
/* The SVGs are wide (1200px artboards). On small screens keep labels readable by letting the diagram scroll sideways inside its frame. */
@media (max-width: 640px) {
  .post-figure-anim .post-figure-link { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .post-figure-anim img { width: 680px; max-width: none; }
}
.post-figure-anim .post-figure-link { background: none; box-shadow: none; border-radius: 14px; }

/* ---------- Reading progress (article pages) ---------- */
.read-progress { position: fixed; top: 72px; left: 0; right: 0; z-index: 49; height: 3px; background: transparent; pointer-events: none; }
.read-progress-bar { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .12s linear; will-change: transform; }
.read-status { position: fixed; right: max(16px, var(--gutter)); bottom: 18px; z-index: 40; margin: 0; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; background: var(--paper); color: var(--muted); font-size: .78rem; font-weight: 500; line-height: 1.3; font-variant-numeric: tabular-nums; box-shadow: 0 4px 14px rgba(0,0,0,.06); opacity: 0; transform: translateY(6px); transition: opacity .25s var(--ease), transform .25s var(--ease); pointer-events: none; }
.read-status.is-visible { opacity: 1; transform: none; }
.read-status.is-done { color: var(--accent); border-color: var(--accent); }
@media (max-width: 560px) { .read-status { left: 50%; right: auto; bottom: 14px; transform: translate(-50%, 6px); } .read-status.is-visible { transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .read-progress-bar, .read-status { transition: none; } }
@media print { .read-progress, .read-status { display: none !important; } }

/* ---------- Logo + Morse signal ---------- */
:root { --signal: #E2711D; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --signal: #F08A3E; } }
.logo-mark { width: 40px; height: 40px; flex: none; color: var(--ink); overflow: visible; }
.logo-signal { fill: var(--signal); stroke: var(--signal); }
.logo-signal circle { stroke: none; }
/* Hover: the logo "sends" its ·–· once */
@keyframes signal-blink { 0%, 100% { opacity: 1; } 40% { opacity: .15; } }
.brand:hover .logo-signal > *, .nf-logo:hover .logo-signal > * { animation: signal-blink .5s var(--ease) both; }
.brand:hover .logo-signal .s2, .nf-logo:hover .logo-signal .s2 { animation-delay: .18s; animation-duration: .7s; }
.brand:hover .logo-signal .s3, .nf-logo:hover .logo-signal .s3 { animation-delay: .5s; }
.morse { display: inline-block; height: 5px; width: auto; fill: var(--signal); flex: none; }
.hero-morse { flex-basis: 100%; display: block; margin-top: 8px; line-height: 0; }
.hero-morse .morse { height: 5px; }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-morse { height: 5px; }
.contact-signal { display: flex; align-items: center; gap: 14px; margin: -24px 0 44px; color: var(--band-muted); font-size: .92rem; max-width: 62ch; }
.contact-signal .morse { height: 6px; }
.contact-signal strong { color: var(--band-ink); font-weight: 600; }
.footer-sign { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-sign .logo-mark { width: 26px; height: 26px; color: var(--band-ink); }
.footer-morse { height: 4px; opacity: .75; }
.nf-logo { display: inline-block; margin-bottom: 28px; }
.nf-logo .logo-mark { width: 64px; height: 64px; }
@media (prefers-reduced-motion: reduce) { .brand:hover .logo-signal > *, .nf-logo:hover .logo-signal > * { animation: none; } }
@media (max-width: 560px) { .footer-morse { display: none; } }
