:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --surface-soft: #eeeeea;
  --ink: #090909;
  --ink-soft: #4b4b47;
  --ink-muted: #6b6b64; /* ≥4.5:1 on all light surfaces (was #797972 at ~4.3:1) */
  --line: rgba(9, 9, 9, 0.11);
  --line-strong: rgba(9, 9, 9, 0.2);
  --accent: #b8ff3d;
  --accent-soft: rgba(184, 255, 61, 0.18);
  --accent-blue: #007aff;
  --accent-blue-ink: #0063cc; /* text-safe blue, ≥4.5:1 on white; keep #007aff for chart fills */
  --shadow: 0 24px 80px rgba(9, 9, 9, 0.12);
  --shadow-tight: 0 10px 34px rgba(9, 9, 9, 0.12);
  --max: 1180px;
  --side: clamp(20px, 4vw, 56px);
  --page-width: min(100%, var(--max));
  --radius: 22px;
  --radius-sm: 14px;
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Paragraph type scale ── */
  --text-lede: clamp(1.18rem, 2.4vw, 1.72rem); /* hero lede — largest paragraph, homepage hero only */
  --text-lg: clamp(1.05rem, 1.8vw, 1.32rem); /* section lede / standfirst — emphasized intro copy */
  --text-base: 1rem; /* body — unified card/step/body copy */
  --text-sm: 0.875rem; /* small body — substantive prose in dense components */
  --text-xs: 0.78rem; /* caption / footnote — smallest reading tier */

  /* ── Layout / spacing design system ── */
  --content-max: 52rem;
  --prose-max: 42rem;
  --layout-gap: clamp(24px, 4vw, 48px);
  --grid-gap: 12px;
  --grid-gap-md: 18px;
  --card-pad: clamp(18px, 2.8vw, 28px);
  --card-bg: rgba(255, 255, 255, 0.84);
  --card-bg-soft: rgba(247, 247, 245, 0.86);
  --card-shadow: 0 12px 34px rgba(9, 9, 9, 0.06);
  --stack-eyebrow: 10px;
  --stack-title: 12px;
  --stack-label: 10px;
  --stack-inline: 8px;
  --stack-block: clamp(18px, 2.8vw, 28px);
  --section-pad-top: clamp(20px, 3.5vw, 40px);
  --section-pad-bottom: clamp(40px, 6vw, 72px);
  --section-pad-band: clamp(52px, 8vw, 96px); /* symmetric padding for full-bleed band sections */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* fixed pill header clearance for anchor/TOC jumps */
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 247, 245, 0.82) 40%, var(--bg)),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  padding: 10px 14px;
  transition: transform 180ms var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 14px var(--side);
  pointer-events: none;
}

.nav-shell {
  width: var(--page-width);
  margin: 0 auto;
  min-height: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 8px 30px rgba(9, 9, 9, 0.08);
  padding: 8px 10px;
  backdrop-filter: blur(26px) saturate(180%);
  pointer-events: auto;
  transition: min-height 260ms var(--ease), box-shadow 260ms var(--ease), background 260ms var(--ease);
}

.site-header.is-compact .nav-shell {
  min-height: 48px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 36px rgba(9, 9, 9, 0.11);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
}

.brand-avatar {
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.brand-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 999px;
  background: rgba(9, 9, 9, 0.045);
  padding: 4px;
}

.nav-links a {
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.nav-cta {
  justify-self: end;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  padding: 11px 16px;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(9, 9, 9, 0.18);
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.nav-cta:hover {
  background: #222222;
}

.project-toc {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  top: 50%;
  z-index: 35;
  max-height: min(70vh, 520px);
  transform: translateY(-50%);
  pointer-events: none;
}

.project-toc ul {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  pointer-events: auto;
}

.project-toc a {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 7px 2px 7px 20px;
  color: inherit;
  text-decoration: none;
  border-radius: 8px;
  transition: background 180ms var(--ease);
}

.project-toc a:hover,
.project-toc a:focus-visible {
  outline: none;
}

.project-toc-label {
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.2;
  color: var(--ink-soft);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition:
    opacity 220ms var(--ease),
    transform 220ms var(--ease),
    color 180ms var(--ease);
}

.project-toc:hover .project-toc-label,
.project-toc a:hover .project-toc-label,
.project-toc a:focus-visible .project-toc-label,
.project-toc a.is-active .project-toc-label {
  opacity: 1;
  transform: translateX(0);
}

.project-toc:hover .project-toc-label {
  opacity: 0.55;
}

.project-toc a:hover .project-toc-label,
.project-toc a:focus-visible .project-toc-label,
.project-toc a.is-active .project-toc-label {
  opacity: 1;
  color: var(--ink);
}

.project-toc-mark {
  flex-shrink: 0;
  width: 12px;
  height: 1px;
  background: rgba(9, 9, 9, 0.28);
  transition:
    width 220ms var(--ease),
    background 180ms var(--ease);
}

.project-toc a:hover .project-toc-mark,
.project-toc a:focus-visible .project-toc-mark {
  width: 16px;
  background: rgba(9, 9, 9, 0.62);
}

.project-toc a.is-active .project-toc-mark {
  width: 24px;
  background: var(--ink);
}

@media (max-width: 1279px) {
  .project-toc {
    display: none;
  }
}

.nav-toggle {
  display: none;
  position: relative;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-line {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  margin-left: -11px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 260ms var(--ease), opacity 260ms var(--ease);
}

.nav-toggle-line:first-child {
  transform: translateY(-4px);
}

.nav-toggle-line:last-child {
  transform: translateY(4px);
}

body.nav-open .nav-toggle-line:first-child {
  transform: rotate(45deg);
}

body.nav-open .nav-toggle-line:last-child {
  transform: rotate(-45deg);
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  background: var(--accent);
  padding: calc(88px + env(safe-area-inset-top, 0px)) var(--side) calc(28px + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 280ms var(--ease), visibility 280ms var(--ease);
}

.nav-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-drawer-inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(28px, 8vw, 48px);
  width: min(100%, var(--max));
  margin: 0 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-drawer-nav {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 5vw, 28px);
}

.nav-drawer-group {
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 2vw, 10px);
}

.nav-drawer-group-label,
.nav-drawer-link {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(2rem, 7.5vw, 3.1rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-transform: none;
}

.nav-drawer-link {
  display: block;
  width: fit-content;
  text-decoration: none;
  transition: opacity 180ms var(--ease);
}

.nav-drawer-sub {
  display: flex;
  flex-direction: column;
  gap: clamp(2px, 1.2vw, 6px);
  margin: 0;
  padding: 0 0 0 clamp(2px, 1vw, 4px);
  list-style: none;
}

.nav-drawer-sub-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
  padding: 4px 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 5.2vw, 1.85rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-decoration: none;
  transition: opacity 180ms var(--ease);
}

.nav-external {
  display: inline-block;
  font-size: 0.72em;
  line-height: 1;
  transform: translateY(-0.08em);
}

.nav-drawer-link:hover,
.nav-drawer-link:focus-visible,
.nav-drawer-sub-link:hover,
.nav-drawer-sub-link:focus-visible {
  opacity: 0.58;
  outline: none;
}

.nav-drawer-link.is-active,
.nav-drawer-sub-link.is-active {
  opacity: 1;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.nav-drawer-footer {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 3vw, 14px);
  padding-top: clamp(18px, 4vw, 24px);
  border-top: 1px solid rgba(9, 9, 9, 0.14);
}

.nav-drawer-footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  width: fit-content;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: clamp(0.82rem, 2.8vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 180ms var(--ease);
}

.nav-drawer-footer-link:hover,
.nav-drawer-footer-link:focus-visible {
  opacity: 0.62;
  outline: none;
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .site-header {
  z-index: 60;
}

body.nav-open .nav-shell {
  border-color: rgba(9, 9, 9, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

main {
  overflow: hidden;
}

.section-grid {
  width: var(--page-width);
  margin: 0 auto;
  padding-left: var(--side);
  padding-right: var(--side);
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: var(--layout-gap);
  align-items: center;
}

/* Shared horizontal shell — keep all page sections the same width */
.work-section,
.notes-section,
.apps-section,
.method-section,
.closing,
.site-footer,
.project-page .project-section {
  width: var(--page-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--side);
  padding-right: var(--side);
}

.project-page > main > .case-detail {
  width: var(--page-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--side);
  padding-right: var(--side);
}

/* ── Design system: section rhythm ── */
.work-section,
.notes-section,
.apps-section,
.method-section,
.mobile-systems,
.project-section {
  padding-top: var(--section-pad-top);
  padding-bottom: var(--section-pad-bottom);
}

.project-section:last-of-type {
  padding-bottom: var(--section-pad-bottom);
}

/* Project case studies — more air between sections */
.project-page .project-section {
  padding-top: clamp(52px, 7.5vw, 104px);
  padding-bottom: clamp(72px, 10vw, 136px);
}

.project-page .project-section--stacked {
  gap: clamp(56px, 8vw, 120px);
}

.project-page .project-section--gallery {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(64px, 9vw, 120px);
}

/* ── Full-bleed band sections (ex section-as-card wrappers) — must follow the
   shell + rhythm rules above: ties on specificity are won by source order ── */
.project-page .project-section--band {
  width: 100%;
  padding-inline: 0;
  padding-block: var(--section-pad-band);
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.project-page .project-section--band > * {
  width: var(--page-width);
  margin-inline: auto;
  padding-inline: var(--side);
}

.project-page .project-section--band.is-tinted {
  background:
    linear-gradient(135deg, rgba(184, 255, 61, 0.14), transparent 38%),
    var(--surface);
}

.section-heading .case-meta {
  margin-bottom: clamp(14px, 2.2vw, 22px);
}

.project-page > main > .case-detail {
  margin-top: clamp(40px, 6vw, 80px);
  margin-bottom: clamp(40px, 6vw, 80px);
}

/* ── Design system: heading blocks (eyebrow → title → body) ── */
.section-heading {
  max-width: none;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-heading .eyebrow,
.contribution-intro .eyebrow,
.case-detail-header .eyebrow,
.component-copy .eyebrow {
  margin: 0 0 var(--stack-eyebrow);
}

.section-heading h2,
.contribution-intro h2,
.component-copy h2 {
  max-width: var(--content-max);
  margin: 0 0 clamp(16px, 2.5vw, 24px);
}

.case-detail-header h3 {
  max-width: var(--content-max);
  margin: 0 0 clamp(16px, 2.5vw, 28px);
}

.section-heading p,
.contribution-intro p:not(.eyebrow),
.case-detail-header p,
.component-copy p {
  max-width: var(--prose-max);
  margin: 0;
}

/* Standfirst role: section-heading copy reads one tier above body everywhere */
.section-heading p:not(.eyebrow),
.component-copy p:not(.eyebrow) {
  font-size: var(--text-lg);
}

.section-heading p:not(.eyebrow) + p:not(.eyebrow),
.component-copy p:not(.eyebrow) + p:not(.eyebrow) {
  margin-top: 1rem;
}

/* ── Design system: content after heading blocks ── */
.case-detail .detail-grid,
.case-detail .system-layers {
  align-items: stretch;
  margin-top: clamp(28px, 4vw, 48px);
  gap: var(--layout-gap);
}

.contribution-block {
  gap: var(--stack-block);
}

.component-showcase {
  gap: var(--layout-gap);
}

/* ── Design system: grids ── */
.detail-grid,
.contribution-list,
.apps-list,
.notes-grid,
.project-gallery,
.interface-gallery,
.impact-strip,
.chart-grid {
  gap: var(--grid-gap);
}

.chart-grid,
.case-grid {
  gap: var(--grid-gap-md);
}

.hero {
  min-height: 74svh;
  align-items: start;
  padding-top: 92px;
  padding-bottom: 44px;
}

.hero-copy {
  align-self: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: var(--font-display);
  margin-bottom: 18px;
  font-size: clamp(3.8rem, 10vw, 8.6rem);
  line-height: 0.94;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-lede {
  width: min(100%, 650px);
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: var(--text-lede);
  line-height: 1.28;
  font-weight: 520;
}

.hero-actions,
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 13px 18px;
  font-size: 0.95rem;
  font-weight: 740;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 180ms var(--ease);
}

.button:active,
.nav-cta:active {
  transform: scale(0.97);
}

.button-primary {
  background: var(--ink);
  color: var(--surface);
  box-shadow: 0 14px 34px rgba(9, 9, 9, 0.2);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #222222;
  box-shadow: 0 18px 46px rgba(9, 9, 9, 0.24);
  outline: none;
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--surface);
  border-color: var(--line-strong);
  outline: none;
}

.hero-stage {
  position: relative;
  min-height: clamp(420px, 56vw, 720px);
}

.device-stack {
  position: relative;
  width: min(100%, 620px);
  min-height: clamp(420px, 56vw, 720px);
  margin-left: auto;
  transform-style: preserve-3d;
}

.portrait-panel,
.hero-card {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: clamp(14px, 2vw, 18px);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(9, 9, 9, 0.08);
}

.hero-card-kicker {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-card-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.55vw, 1.32rem);
  font-weight: 400;
  line-height: 1.15;
}

.hero-card-top {
  z-index: 4;
  right: 0;
  top: 50%;
  bottom: auto;
  transform: translateY(calc(-50% + 60px));
  width: 46%;
  min-height: 0;
  opacity: 1;
}

.hero-card-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(14px, 2vw, 18px);
  right: clamp(14px, 2vw, 18px);
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0.72;
}

.portrait-panel {
  inset: 4% 28% 4% 0;
  z-index: 2;
}

.portrait-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.portrait-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.metric-ribbon {
  width: min(100% - 2 * var(--side), var(--max));
  margin-inline: auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow-tight);
}

.metric {
  min-width: 0;
  min-height: 126px;
  padding: var(--card-pad);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.metric strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: var(--stack-inline);
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1;
  font-weight: 400;
}

.metric span {
  display: block;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.intro {
  display: grid;
  width: var(--page-width);
  margin: 0 auto;
  padding: clamp(92px, 13vw, 170px) var(--side) clamp(70px, 10vw, 130px);
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}

.intro .intro-copy {
  max-width: var(--content-max);
}

.intro .positioning-chart {
  width: 100%;
}

.positioning-chart {
  display: grid;
  min-height: 0;
  align-content: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 14px 42px rgba(9, 9, 9, 0.07);
}

.positioning-chart .section-kicker {
  margin-bottom: 20px;
}

.positioning-chart h3 {
  font-family: var(--font-display);
  max-width: 520px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(1.9rem, 3.5vw, 3.3rem);
  font-weight: 400;
  line-height: 1;
}

.positioning-chart > p:not(.positioning-footnote) {
  margin: 0 0 clamp(24px, 3.5vw, 32px);
  color: var(--ink-muted);
  font-size: var(--text-base);
  line-height: 1.35;
}

.strategy-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: clamp(12px, 2.2vw, 20px);
  min-height: 300px;
  margin-top: 0;
  padding-top: 8px;
  background-image: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 58px,
    rgba(9, 9, 9, 0.08) 59px,
    transparent 60px
  );
}

.strategy-bar {
  display: flex;
  min-height: var(--value);
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  border-radius: 18px 18px 8px 8px;
  background: rgba(9, 9, 9, 0.08);
  padding: 12px 8px;
  text-align: center;
}

.strategy-bar.is-highlight {
  background: var(--accent);
}

.strategy-bar.is-foundation {
  border: 1px solid rgba(9, 9, 9, 0.06);
}

.strategy-bar-label {
  display: block;
  color: var(--ink);
  font-size: clamp(0.82rem, 1.5vw, 1rem);
  font-weight: 820;
  line-height: 1.15;
}

.strategy-bar-note {
  display: block;
  color: var(--ink-soft);
  font-size: clamp(0.62rem, 1.1vw, 0.72rem);
  font-weight: 600;
  line-height: 1.3;
}

.positioning-footnote {
  margin: 16px 0 0;
  color: var(--ink-muted);
  font-size: var(--text-xs);
  line-height: 1.35;
}

.intro-copy h2,
.systems-copy h2,
.closing h2 {
  font-family: var(--font-display);
  margin-bottom: var(--stack-title);
  font-size: clamp(2.1rem, 4.8vw, 4.4rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.8vw, 4.4rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
}

.intro-copy p,
.systems-copy p,
.closing p {
  max-width: var(--prose-max);
  color: var(--ink-soft);
  font-size: var(--text-lg);
  line-height: 1.45;
}

.intro-copy p + p {
  margin-top: 1rem;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--stack-block);
}

.case {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  transform-style: preserve-3d;
}

.case-link {
  display: block;
  color: inherit;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.case-link:hover {
  border-color: var(--line-strong);
  box-shadow: 0 18px 54px rgba(9, 9, 9, 0.11);
}

.case-link:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.38);
  outline-offset: 4px;
}

.case-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  align-items: start;
  min-height: 0;
}

.case-feature .case-media {
  position: relative;
  width: 100%;
  min-height: 0;
  max-height: min(380px, 52vh);
  aspect-ratio: 4 / 5;
  align-self: start;
}

.case-feature .case-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.case-feature .case-content {
  justify-content: flex-start;
  gap: clamp(12px, 1.8vw, 18px);
  min-height: auto;
  padding: clamp(20px, 2.8vw, 28px);
}

.case-media {
  position: relative;
  min-height: 260px;
  background: #101010;
  overflow: hidden;
}

.case-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 700ms var(--ease);
}

.case:not(.case-feature) .case-media {
  aspect-ratio: 2 / 1;
  min-height: 0;
  max-height: min(210px, 28vw);
  width: 100%;
}

.case:not(.case-feature) .case-media:not(.case-placeholder) img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.case:hover .case-media img {
  transform: scale(1.035);
  filter: saturate(1.03) contrast(1.02);
}

.case-placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(184, 255, 61, 0.28), transparent 40%),
    linear-gradient(180deg, #171717, #050505);
}

.case-placeholder img {
  position: static;
  width: clamp(96px, 18vw, 140px);
  height: auto;
  object-fit: contain;
}

.case-placeholder span {
  color: var(--surface);
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  font-weight: 400;
  line-height: 0.94;
}

.case-placeholder-logo {
  background:
    radial-gradient(circle at center, rgba(220, 38, 38, 0.35), transparent 62%),
    linear-gradient(180deg, #171717, #050505);
}

.case-placeholder-logo img {
  width: clamp(96px, 18vw, 140px);
  height: auto;
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.case-content {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--grid-gap);
  padding: var(--card-pad);
}

.case:not(.case-feature) .case-content {
  min-height: auto;
  justify-content: flex-start;
  gap: var(--grid-gap);
  padding: var(--card-pad);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 0.86rem;
  font-weight: 680;
}

.case-meta img {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  object-fit: cover;
}

.case-logo-text {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--surface);
  font-size: 0.7rem;
  font-weight: 820;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.case-tags span {
  border: 1px solid rgba(9, 9, 9, 0.08);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
  padding: 6px 9px;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 780;
  letter-spacing: -0.01em;
}

.case h3 {
  font-family: var(--font-display);
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(1.9rem, 3.2vw, 3.2rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
}

.case:not(.case-feature) h3 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 1;
}

.case p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: var(--text-base);
}

.project-page {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 245, 0.86) 45%, var(--bg)),
    var(--bg);
}

.project-page .chart-card-wide {
  max-width: none;
}

/* Nested case cards fill the section shell — keep internal card padding */
.project-page .project-section > .case-detail {
  width: 100%;
  margin-inline: 0;
  padding: clamp(32px, 5vw, 64px);
}

.project-hero {
  min-height: auto;
  align-items: start;
  padding-top: 116px;
  padding-bottom: clamp(56px, 8vw, 120px);
}

.project-hero.section-grid {
  align-items: start;
  gap: var(--layout-gap);
}

.project-hero:has(.project-hero-logo) {
  min-height: auto;
  padding-bottom: clamp(40px, 6vw, 88px);
}

.project-hero-copy h1 {
  font-family: var(--font-display);
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6.8vw, 6.8rem);
  line-height: 0.95;
  font-weight: 400;
}

.project-hero-copy p {
  max-width: 680px;
  color: var(--ink-soft);
  font-size: var(--text-lg);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.project-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  padding: 9px 12px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 760;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.project-hero-media {
  min-height: 0;
  aspect-ratio: 4 / 5;
  max-height: min(680px, 72vh);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.project-hero-media.project-hero-logo {
  min-height: min(380px, 46vh);
}

.project-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(184, 255, 61, 0.22), transparent 42%),
    linear-gradient(180deg, #181818, #050505);
}

.project-hero-placeholder span {
  max-width: 520px;
  color: var(--surface);
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 7vw, 6.2rem);
  font-weight: 400;
  line-height: 0.94;
}

.project-hero-logo {
  display: grid;
  place-items: center;
  min-height: min(380px, 46vh);
  background:
    radial-gradient(circle at center, rgba(220, 38, 38, 0.28), transparent 62%),
    linear-gradient(180deg, #181818, #050505);
}

.project-hero-logo img {
  width: auto;
  max-width: min(240px, 58%);
  height: auto;
  object-fit: contain;
  border-radius: 36px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.32);
}

.case-detail {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72)),
    var(--surface);
  padding: clamp(28px, 4.5vw, 52px);
  box-shadow: var(--card-shadow);
}

.case-detail-header {
  margin-bottom: clamp(8px, 2vw, 16px);
}

.case-detail-header .case-meta {
  margin-bottom: clamp(14px, 2.2vw, 22px);
}

.case-detail + .case-detail {
  margin-top: var(--grid-gap);
}

.case-detail-feature {
  background:
    linear-gradient(135deg, rgba(184, 255, 61, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.74)),
    var(--surface);
}

.case-detail-header h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(1.9rem, 4vw, 4.2rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0;
}

.case-detail-header p {
  color: var(--ink-soft);
  font-size: var(--text-lg);
  line-height: 1.56;
}

.case-detail .detail-grid:has(.detail-panel:nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.case-detail .system-layers--vertical:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-detail .detail-panel,
.case-detail .system-layers > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  height: 100%;
  min-height: 100%;
}

.case-detail .detail-panel h4,
.case-detail .system-layers strong {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.08;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  align-items: stretch;
}

.detail-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg-soft);
  padding: clamp(24px, 3.6vw, 40px);
  box-shadow: var(--card-shadow);
}

.detail-panel span {
  display: block;
  margin-bottom: clamp(10px, 1.5vw, 14px);
  color: var(--accent-blue-ink);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.detail-panel h4 {
  font-family: var(--font-display);
  margin-bottom: clamp(10px, 1.5vw, 14px);
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.08;
  font-weight: 400;
}

.detail-panel p {
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: var(--text-base);
  line-height: 1.55;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chart-grid .chart-card {
  margin: 0;
}

/* keep a chart from gluing to an impact-strip right below it */
.chart-card + .impact-strip {
  margin-top: clamp(28px, 4vw, 44px);
}

.chart-card {
  margin: var(--stack-block) 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  padding: var(--card-pad);
  box-shadow: var(--card-shadow);
}

.chart-card-wide {
  max-width: 780px;
}

.chart-card figcaption {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}

.chart-card figcaption strong {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(1.45rem, 2.3vw, 2.35rem);
  line-height: 1;
  font-weight: 400;
}

.chart-card figcaption span {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: clamp(10px, 2vw, 18px);
  min-height: 300px;
  padding: 28px 0 0;
  background-image: repeating-linear-gradient(
    to top,
    transparent 0,
    transparent 58px,
    rgba(9, 9, 9, 0.08) 59px,
    transparent 60px
  );
}

.bar-chart-compact,
.bar-chart--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bar-chart--cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(6px, 1.4vw, 14px);
}

.chart-bar {
  position: relative;
  display: flex;
  min-width: 0;
  height: var(--value);
  min-height: 18px;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 12px 12px 4px 4px;
  background: rgba(9, 9, 9, 0.1);
  padding: 10px 8px;
}

.chart-bar.is-highlight {
  background: var(--accent);
}

.chart-bar.is-textured {
  background-color: var(--accent);
  background-image: radial-gradient(rgba(0, 0, 0, 0.22) 1.1px, transparent 1.1px);
  background-size: 7px 7px;
}

.chart-bar span {
  position: absolute;
  left: 0;
  right: 0;
  top: -28px;
  color: var(--ink);
  text-align: center;
  font-size: 0.88rem;
  font-weight: 820;
  line-height: 1;
}

.chart-bar small {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 740;
  line-height: 1.12;
  text-align: center;
}

/* ── FNZ adoption steps ── */
.adoption-step {
  padding: clamp(56px, 9vw, 96px) 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.adoption-step--soft {
  background: var(--bg);
}

.adoption-step-inner {
  display: grid;
  width: var(--page-width);
  margin: 0 auto;
  padding-inline: var(--side);
  grid-template-columns: minmax(0, 1.02fr) minmax(260px, 0.98fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.adoption-step-inner.is-reverse {
  grid-template-columns: minmax(260px, 0.98fr) minmax(0, 1.02fr);
}

.adoption-step-inner.is-reverse .adoption-step-copy {
  order: 2;
}

.adoption-step-inner.is-reverse .adoption-step-visual {
  order: 1;
}

.adoption-step-inner--stacked {
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 52px);
  align-items: stretch;
}

.adoption-step-inner--stacked .adoption-step-copy p:not(.eyebrow) {
  max-width: var(--content-max);
}

.adoption-step-inner--stacked .adoption-step-visual {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.adoption-step-inner--stacked .pie-row {
  gap: clamp(16px, 2.5vw, 24px);
}

.adoption-step-inner--stacked .pie-card {
  padding: var(--card-pad);
}

.adoption-step-inner--stacked .donut {
  width: clamp(92px, 10vw, 112px);
  height: clamp(92px, 10vw, 112px);
}

.adoption-step-copy h2 {
  margin: 0 0 var(--stack-title);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
  font-weight: 400;
  line-height: 1.02;
}

.adoption-step-copy p:not(.eyebrow) {
  max-width: var(--prose-max);
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-lg);
  line-height: 1.5;
}

.adoption-step-copy p:not(.eyebrow) + p:not(.eyebrow) {
  margin-top: 14px;
}

.adoption-step-visual {
  margin: 0;
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.adoption-visual-label {
  display: block;
  margin-bottom: 16px;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.adoption-visual-note {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: var(--text-xs);
  line-height: 1.35;
}

.audit-paths {
  display: grid;
  gap: 12px;
}

.audit-path {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card-bg-soft);
}

.audit-path.is-fast {
  border-color: rgba(184, 255, 61, 0.45);
}

.audit-path-tag {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.audit-path strong {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

.audit-path p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: 1.4;
}

.audit-path-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(9, 9, 9, 0.08);
  overflow: hidden;
}

.audit-path-bar::after {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: rgba(9, 9, 9, 0.22);
}

.audit-path.is-fast .audit-path-bar::after {
  background: var(--accent);
}

.token-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.token-chip {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card-bg-soft);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
}

.token-impact-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 120px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.token-impact-bar span {
  display: flex;
  min-height: var(--value);
  align-items: flex-end;
  justify-content: center;
  border-radius: 10px 10px 4px 4px;
  background: rgba(9, 9, 9, 0.1);
  padding: 8px 4px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
}

.token-impact-bar span:first-child {
  background: var(--accent);
}

.inject-diagram {
  padding: 4px 0;
}

.inject-shell {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--card-bg-soft);
}

.inject-shell-label {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inject-slice {
  padding: 12px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--accent);
}

.inject-slice-form {
  background: rgba(184, 255, 61, 0.72);
}

.inject-slice-table {
  background: rgba(184, 255, 61, 0.55);
}

.inject-legacy-block {
  padding: 22px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(9, 9, 9, 0.06);
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 650;
  text-align: center;
}

.pie-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pie-card {
  display: grid;
  gap: 6px;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card-bg-soft);
  text-align: center;
}

.pie-card strong {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.pie-card > span {
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pie-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-sm);
  line-height: 1.35;
}

.donut {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 4px;
  border-radius: 50%;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 24%;
  border-radius: 50%;
  background: var(--card-bg);
}

.donut--simple {
  background: conic-gradient(var(--accent) 0 32%, rgba(9, 9, 9, 0.1) 32% 100%);
}

.donut--medium {
  background: conic-gradient(
    var(--accent) 0 28%,
    var(--accent-blue) 28% 62%,
    rgba(9, 9, 9, 0.1) 62% 100%
  );
}

.donut--full {
  background: conic-gradient(
    var(--accent) 0 22%,
    var(--accent-blue) 22% 48%,
    rgba(9, 9, 9, 0.48) 48% 82%,
    rgba(9, 9, 9, 0.1) 82% 100%
  );
}

.pie-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.pie-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 650;
}

.pie-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.pie-legend-swatch.is-tokens {
  background: var(--accent);
}

.pie-legend-swatch.is-components {
  background: var(--accent-blue);
}

.pie-legend-swatch.is-patterns {
  background: rgba(9, 9, 9, 0.48);
}

.pie-legend-swatch.is-legacy {
  background: rgba(9, 9, 9, 0.12);
}

/* ── FNZ maturity levels ── */
.maturity-step {
  padding: clamp(52px, 8vw, 88px) 0;
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.maturity-step--soft {
  background: var(--bg);
}

.maturity-step-inner {
  width: var(--page-width);
  max-width: calc(var(--content-max) + 2 * var(--side));
  margin: 0 auto;
  padding-inline: var(--side);
}

.maturity-step-inner h2 {
  margin: 0 0 var(--stack-title);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 400;
  line-height: 1.02;
}

.maturity-step-inner p:not(.eyebrow) {
  max-width: var(--prose-max);
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text-lg);
  line-height: 1.5;
}

.detail-grid--spaced {
  margin-bottom: clamp(8px, 2vw, 16px);
  gap: var(--layout-gap);
}

.detail-grid--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 64px);
  row-gap: clamp(40px, 6vw, 72px);
}

.detail-grid.detail-grid--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-grid--3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4.5vw, 56px);
}

.detail-grid.detail-grid--3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.impact-strip--spaced {
  gap: clamp(20px, 3vw, 32px);
  margin-top: 0;
}

.impact-strip--spaced > div {
  padding: clamp(20px, 2.8vw, 28px);
}

.project-section--stacked {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 96px);
}

.project-section--stacked > .section-heading {
  margin-bottom: 0;
}

.project-section .detail-grid {
  gap: var(--layout-gap);
}

.section-block {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 5vw, 56px);
}

.section-block--loose {
  gap: clamp(48px, 7vw, 88px);
}

.project-section--stacked > .section-heading + .detail-grid,
.project-section--stacked > .section-block > .section-heading + .detail-grid {
  margin-top: clamp(8px, 2vw, 16px);
}

.section-block--feature {
  padding: clamp(32px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(184, 255, 61, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.74)),
    var(--surface);
  box-shadow: var(--card-shadow);
}

.section-block--feature .section-heading--compact h2 {
  font-family: var(--font-display);
  max-width: var(--content-max);
  margin: 0 0 clamp(16px, 2.5vw, 24px);
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  line-height: 1.02;
  font-weight: 400;
}

.section-block--feature .case-meta {
  margin-bottom: clamp(16px, 2.5vw, 24px);
}

.section-heading--compact {
  margin-bottom: 0;
}

.contribution-block {
  display: grid;
  grid-template-columns: 1fr;
}

.contribution-intro {
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.contribution-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 3.2rem);
  line-height: 1.05;
  font-weight: 400;
}

.contribution-intro p:not(.eyebrow) {
  color: var(--ink-soft);
}

.contribution-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  padding: var(--card-pad);
}

.contribution-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contribution-list:has(> :nth-child(4)) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contribution-list span {
  display: block;
  margin-bottom: var(--stack-label);
  color: var(--accent-blue-ink);
  font-size: 0.8rem;
  font-weight: 820;
}

.contribution-list h3 {
  font-family: var(--font-display);
  margin-bottom: var(--stack-inline);
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.08;
  font-weight: 400;
}

.contribution-list p {
  margin: 0;
  color: var(--ink-muted);
}

.component-showcase {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: var(--layout-gap);
}

.component-showcase:has(> .component-copy:only-child) {
  grid-template-columns: 1fr;
  max-width: none;
}

/* .component-copy plays the section-heading role — no card chrome (see .contribution-intro) */
.workflow-board {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  padding: var(--card-pad);
}

.component-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 3.2rem);
  line-height: 1.05;
  font-weight: 400;
}

.component-copy p {
  color: var(--ink-soft);
}

.project-gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
}

.project-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 48px rgba(9, 9, 9, 0.1);
}

.interface-gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.interface-gallery figure {
  overflow: visible;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.interface-gallery figure:first-child,
.interface-gallery figure:nth-child(2) {
  grid-column: span 3;
}

.interface-gallery figure:nth-child(n + 3) {
  grid-column: span 2;
}

.interface-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 34px rgba(9, 9, 9, 0.06);
}

.interface-gallery figcaption {
  padding: 10px 8px 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: var(--text-xs);
  font-weight: 680;
  line-height: 1.4;
}

.interface-gallery-wide {
  grid-template-columns: 1fr;
}

.interface-gallery-wide figure,
.interface-gallery-wide figure:first-child,
.interface-gallery-wide figure:nth-child(2),
.interface-gallery-wide figure:nth-child(n + 3) {
  grid-column: auto;
}

.interface-gallery-wide img {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(9, 9, 9, 0.06);
}

.mobile-screen-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.project-page .mobile-screen-gallery {
  padding-block: clamp(16px, 3vw, 32px);
}

.mobile-screen-gallery figure {
  overflow: visible;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.mobile-screen-gallery figure:nth-child(2),
.mobile-screen-gallery figure:nth-child(5) {
  margin-top: 54px;
}

.mobile-screen-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 48px rgba(9, 9, 9, 0.08);
}

.mobile-screen-gallery figcaption {
  padding: clamp(16px, 2.5vw, 24px) 10px 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: var(--text-xs);
  font-weight: 680;
  line-height: 1.45;
}

.workflow-board {
  display: grid;
  gap: var(--grid-gap);
}

.workflow-node {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(247, 247, 245, 0.9);
  padding: 18px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 760;
}

.workflow-node::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -13px;
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

.workflow-node:last-child::after {
  display: none;
}

.workflow-node.is-active {
  background: var(--accent);
}

.workflow-node.is-review {
  background: var(--ink);
  color: var(--surface);
}

.system-layers,
.music-components {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.impact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.system-layers {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--layout-gap);
  overflow: visible;
  margin-top: var(--stack-block);
  border: 0;
  border-radius: 0;
  background: transparent;
  align-items: stretch;
}

.system-layers--vertical,
.system-layers:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.component-showcase .system-layers {
  margin-top: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--layout-gap);
}

.system-layers--vertical div,
.component-showcase .system-layers div,
.system-layers div {
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(20px, 2.8vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg-soft);
  box-shadow: var(--card-shadow);
}

.system-layers span,
.music-components span {
  display: block;
  margin-bottom: var(--stack-label);
  color: var(--accent-blue-ink);
  font-size: 0.8rem;
  font-weight: 820;
}

.system-layers strong,
.music-components strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: var(--stack-inline);
  color: var(--ink);
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1;
  font-weight: 400;
}

.system-layers p,
.music-components p {
  margin: 0;
  color: var(--ink-muted);
}

.music-components {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.music-components article {
  min-height: 280px;
  padding: var(--card-pad);
  box-shadow: var(--card-shadow);
}

.impact-strip div {
  min-height: 0;
  padding: var(--card-pad);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg-soft);
  box-shadow: var(--card-shadow);
}

.impact-strip strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: var(--stack-inline);
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  line-height: 1;
  font-weight: 400;
}

.impact-strip span {
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 680;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notes-coming-soon {
  display: inline-block;
  width: fit-content;
  margin: 0 0 var(--stack-eyebrow);
  padding: 6px 12px;
  border: 1px solid rgba(9, 9, 9, 0.12);
  border-radius: 999px;
  background: rgba(184, 255, 61, 0.22);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.note-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--grid-gap);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.66)),
    var(--surface);
  padding: var(--card-pad);
  box-shadow: var(--card-shadow);
}

.notes-grid .note-card:first-child {
  background:
    linear-gradient(135deg, rgba(184, 255, 61, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72)),
    var(--surface);
}

.note-index {
  color: var(--accent-blue-ink);
  font-size: 0.84rem;
  font-weight: 780;
}

.note-card h3 {
  font-family: var(--font-display);
  margin-bottom: var(--stack-inline);
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: 0;
}

.note-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: var(--text-base);
  line-height: 1.55;
}

.note-card a {
  width: fit-content;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 740;
  transition: transform 180ms var(--ease), background 180ms var(--ease);
}

.note-card a:hover,
.note-card a:focus-visible {
  background: #222222;
  outline: none;
  transform: translateY(-1px);
}

.apps-list {
  display: grid;
  gap: clamp(16px, 2.4vw, 22px);
}

.app-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 2vw, 18px);
  min-height: 116px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  padding: var(--card-pad);
  transform-style: preserve-3d;
  transition:
    border-color 220ms var(--ease),
    box-shadow 260ms var(--ease),
    transform 260ms var(--ease);
}

.app-row:hover {
  border-color: var(--line-strong);
  box-shadow: 0 18px 44px rgba(9, 9, 9, 0.09);
  transform: translateY(-3px);
}

.app-row:focus-within {
  border-color: rgba(0, 122, 255, 0.28);
  box-shadow: 0 18px 44px rgba(9, 9, 9, 0.09);
}

.app-row img,
.app-icon-text {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  object-fit: contain;
  padding: 0;
  transition: transform 280ms var(--ease), border-color 220ms var(--ease);
}

.app-row:hover img {
  transform: scale(1.06);
  border-color: var(--line-strong);
}

.app-icon-text {
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 820;
}

.app-row h3 {
  font-family: var(--font-display);
  margin-bottom: 4px;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 400;
  transition: color 220ms var(--ease);
}

.app-row:hover h3 {
  color: var(--ink);
}

.app-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.app-tags span {
  border: 1px solid rgba(9, 9, 9, 0.08);
  border-radius: 999px;
  background: rgba(9, 9, 9, 0.045);
  color: var(--ink-soft);
  padding: 4px 7px;
  font-size: 0.64rem;
  line-height: 1;
  font-weight: 760;
  transition: background 220ms var(--ease), border-color 220ms var(--ease);
}

.app-row:hover .app-tags span {
  background: rgba(184, 255, 61, 0.14);
  border-color: rgba(184, 255, 61, 0.28);
}

.app-row p {
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: var(--text-base);
  line-height: 1.35;
}

.app-live-link {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  border-radius: 999px;
  background: rgba(184, 255, 61, 0.44);
  color: #243900;
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 820;
  line-height: 1;
  text-transform: uppercase;
  transition:
    background 220ms var(--ease),
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease);
}

.app-live-link::after {
  content: "↗";
  font-size: 0.9em;
  line-height: 1;
  transition: transform 220ms var(--ease);
}

.app-row:hover .app-live-link {
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(184, 255, 61, 0.35);
}

.app-live-link:hover,
.app-live-link:focus-visible {
  background: var(--accent);
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(184, 255, 61, 0.4);
}

.app-live-link:hover::after,
.app-live-link:focus-visible::after {
  transform: translate(2px, -2px);
}

@media (prefers-reduced-motion: reduce) {
  .app-row,
  .app-row img,
  .app-row h3,
  .app-tags span,
  .app-live-link,
  .app-live-link::after {
    transition: none;
  }

  .app-row:hover {
    transform: none;
  }

  .app-row:hover img {
    transform: none;
  }
}

.closing {
  padding-bottom: var(--section-pad-bottom);
}

.closing-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    #080808;
  color: var(--surface);
  padding: var(--layout-gap);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.method-item {
  min-height: 0;
  padding: var(--card-pad);
  background: var(--card-bg);
  transition: background 220ms var(--ease);
}

.method-item:hover {
  background: rgba(255, 255, 255, 0.96);
}

.method-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--stack-label);
}

.method-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card-bg-soft);
  color: var(--ink);
  transition:
    background 220ms var(--ease),
    border-color 220ms var(--ease),
    transform 220ms var(--ease);
}

.method-icon svg {
  width: 22px;
  height: 22px;
}

.method-item:hover .method-icon {
  border-color: rgba(184, 255, 61, 0.4);
  background: rgba(184, 255, 61, 0.16);
  transform: translateY(-1px);
}

.method-index {
  color: var(--accent-blue-ink);
  font-size: 0.86rem;
  font-weight: 780;
}

.method-item h3 {
  font-family: var(--font-display);
  margin-bottom: var(--stack-title);
  font-size: clamp(1.8rem, 2.8vw, 2.8rem);
  line-height: 1;
  font-weight: 400;
}

.method-item p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.systems-gallery {
  margin: 0;
  min-height: 0;
  transform-style: preserve-3d;
}

.systems-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  max-height: 640px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 48px rgba(9, 9, 9, 0.1);
}

.systems-gallery img.systems-gallery-phone {
  width: auto;
  max-width: min(100%, 320px);
  margin-inline: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: #f7f7f5;
}

.closing-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(184, 255, 61, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(0, 122, 255, 0.14), transparent 42%);
  opacity: 0.74;
  pointer-events: none;
}

.closing-panel > * {
  position: relative;
  z-index: 1;
}

.closing .eyebrow,
.closing p {
  color: rgba(255, 255, 255, 0.68);
}

.closing h2 {
  max-width: var(--content-max);
  color: var(--surface);
}

.closing .button-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.09);
  color: var(--surface);
}

.closing .button-primary {
  background: var(--surface);
  color: var(--ink);
}

/* Footer = the dark "For recruiters" panel; keeps the .closing class so all
   dark-panel styles (.closing h2/p/buttons/focus) still apply. */
.site-footer {
  padding-bottom: var(--section-pad-bottom);
}

.closing-panel-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-top: clamp(24px, 4vw, 40px);
  padding-top: clamp(18px, 3vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.closing-panel .footer-brand {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
  color: var(--surface);
}

.closing-panel .site-footer-meta {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.footer-brand {
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(9, 9, 9, 0.07);
  color: var(--ink);
  transition: box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.footer-brand:hover {
  box-shadow: 0 10px 28px rgba(9, 9, 9, 0.1);
  transform: translateY(-1px);
}

.site-footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-tilt] {
  will-change: transform;
  transition: transform 180ms var(--ease);
}

@media (min-width: 941px) {
  .detail-grid:has(.detail-panel:nth-child(3):last-child):not(.detail-grid--2col) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
  }
}

@media (max-width: 1100px) {
  .contribution-list:not(:has(> :nth-child(4))) {
    grid-template-columns: 1fr;
  }

  .contribution-list:has(> :nth-child(4)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .nav-shell {
    grid-template-columns: 1fr auto;
    gap: 8px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .section-grid,
  .case-feature,
  .case-grid,
  .detail-grid,
  .detail-grid:has(.detail-panel:nth-child(3):last-child),
  .chart-grid,
  .contribution-block,
  .component-showcase,
  .project-gallery,
  .interface-gallery,
  .mobile-screen-gallery,
  .system-layers,
  .music-components,
  .impact-strip,
  .notes-grid,
  .apps-list,
  .method-grid,
  .detail-grid--2col,
  .detail-grid--3col {
    grid-template-columns: 1fr;
  }

  .adoption-step-inner,
  .adoption-step-inner.is-reverse {
    grid-template-columns: 1fr;
  }

  .adoption-step-inner.is-reverse .adoption-step-copy,
  .adoption-step-inner.is-reverse .adoption-step-visual {
    order: initial;
  }

  .pie-row {
    grid-template-columns: 1fr;
  }

  .token-list {
    grid-template-columns: 1fr;
  }

  .contribution-list {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 108px;
  }

  .hero-stage,
  .device-stack {
    min-height: 540px;
  }

  .device-stack {
    margin: 0 auto;
  }

  .metric-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-feature {
    min-height: 0;
  }

  .case-feature .case-media {
    max-height: min(360px, 56vw);
    aspect-ratio: 3 / 2;
  }

  .project-hero {
    min-height: auto;
    padding-top: 108px;
  }

  .project-hero-media {
    min-height: 0;
    max-height: min(560px, 68vh);
  }

  .method-item {
    min-height: 0;
  }

  .detail-panel {
    min-height: 0;
  }

  .detail-panel span {
    margin-bottom: 14px;
  }

  .method-item span {
    margin-bottom: 44px;
  }
}

@media (max-width: 620px) {
  :root {
    --side: 16px;
  }

  .site-header {
    padding-top: 10px;
  }

  .nav-shell {
    min-height: 50px;
    padding: 6px;
  }

  .nav-shell .brand-link span:last-child {
    display: none;
  }

  .brand-avatar {
    width: 36px;
    height: 36px;
  }

  .nav-cta {
    padding: 10px 14px;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5.4rem);
  }

  .hero-stage,
  .device-stack {
    min-height: 430px;
  }

  .portrait-panel {
    inset: 4% 18% 3% 0;
  }

  .hero-card-top {
    width: 62%;
    right: 0;
    top: auto;
    bottom: 5%;
    transform: none;
  }

  .metric-ribbon {
    grid-template-columns: 1fr;
  }

  .strategy-bars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 320px;
  }

  .positioning-chart {
    min-height: auto;
  }

  .case-detail-header h3,
  .project-section--band .section-heading h2 {
    font-size: clamp(2rem, 10vw, 3.4rem);
  }

  .bar-chart {
    min-height: 260px;
    gap: 8px;
  }

  .chart-bar {
    padding: 8px 5px;
  }

  .chart-bar small {
    font-size: 0.64rem;
  }

  .metric {
    min-height: 108px;
  }

  .case:not(.case-feature) .case-media {
    min-height: 0;
    max-height: 200px;
    aspect-ratio: 2 / 1;
  }

  .project-hero-media {
    min-height: 360px;
  }

  .project-hero-copy h1 {
    font-size: clamp(2.7rem, 13vw, 4.6rem);
  }

  .note-card {
    min-height: 0;
  }

  .app-row {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
  }

  .app-row img,
  .app-icon-text {
    width: 46px;
    height: 46px;
  }

  .app-live-link {
    grid-column: 2;
    width: fit-content;
    justify-self: start;
  }

  .systems-gallery img {
    aspect-ratio: 4 / 5;
    max-height: none;
  }

  .project-gallery img {
    aspect-ratio: 1;
  }

  .interface-gallery figure,
  .interface-gallery figure:first-child,
  .interface-gallery figure:nth-child(2),
  .interface-gallery figure:nth-child(n + 3) {
    grid-column: auto;
  }

  .mobile-screen-gallery figure,
  .mobile-screen-gallery figure:nth-child(2),
  .mobile-screen-gallery figure:nth-child(5) {
    margin-top: 0;
  }

  .button {
    width: 100%;
  }

  .closing-panel-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ── Keyboard focus visibility (WCAG 2.4.7) — must stay last to win over outline:none ── */
a:focus-visible,
button:focus-visible,
.nav-links a:focus-visible,
.nav-cta:focus-visible,
.button:focus-visible,
.note-card a:focus-visible,
.app-live-link:focus-visible,
.case-link:focus-visible,
.nav-drawer-link:focus-visible,
.nav-drawer-sub-link:focus-visible,
.nav-drawer-footer-link:focus-visible,
.project-toc a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.closing a:focus-visible {
  outline-color: var(--surface);
}

/* ── Visible contact fallback (mailto can fail silently on corporate machines) ── */
.closing .closing-email {
  margin: 14px 0 0;
  font-size: var(--text-sm);
}

.closing-email a {
  color: var(--surface);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.footer-email {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

/* ── Email hover tip with copy on the contact CTAs ── */
.email-tip {
  position: fixed;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 14px 36px rgba(9, 9, 9, 0.2);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
}

.email-tip.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.email-tip-copy {
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  padding: 5px 11px;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}

.email-tip-copy:hover,
.email-tip-copy:focus-visible {
  background: #222222;
  outline: none;
}

.email-tip-copy.is-copied {
  background: var(--accent);
  color: var(--ink);
}

/* ── Print / save-as-PDF ── */
@media print {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .site-header,
  .project-toc,
  .nav-drawer,
  .nav-toggle {
    display: none !important;
  }

  .hero,
  .project-hero {
    padding-top: 24px;
  }
}
