/* ============================================================
   Portfolio — shared design system
   Dark theme · Scoped to .brutalist-root
   New homepage layout scoped to .brutalist-root.dark-home
   ============================================================ */

:root {
  /* Core palette */
  --bg: #0a0a0b;
  --bg-2: #111114;
  --bg-3: #16161b;
  --fg: #e8e8ea;
  --fg-2: #b4b4ba;
  --fg-dim: #6a6a72;
  --fg-faint: #3a3a40;

  /* Accent — electric cyan-blue */
  --accent: oklch(0.78 0.14 220);
  --accent-glow: oklch(0.78 0.14 220 / 0.16);
  --accent-soft: oklch(0.78 0.14 220 / 0.08);

  /* Border / line */
  --border: rgba(232, 232, 234, 0.1);
  --line: rgba(232, 232, 234, 0.08);
  --line-2: rgba(232, 232, 234, 0.16);

  /* Radius */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* Scoped reset — only inside .brutalist-root */
.brutalist-root *, .brutalist-root *::before, .brutalist-root *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.brutalist-root {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
}

.brutalist-root a { color: inherit; text-decoration: none; }
.brutalist-root button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Grid overlay for secondary pages */
.brutalist-root::before {
  content: '';
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--border) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  opacity: 0.4;
}

/* ============================================================
   Nav ticker (secondary pages)
   ============================================================ */

nav.ticker {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr 1fr;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
nav.ticker > * {
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  color: var(--fg-dim);
}
nav.ticker > *:last-child { border-right: none; }
nav.ticker .brand { color: var(--fg); font-weight: 700; }
nav.ticker .brand b { color: var(--accent); }
nav.ticker a { transition: background 0.2s, color 0.2s; display: flex; align-items: center; }
nav.ticker a:hover, nav.ticker a.active { background: var(--accent); color: #0a0a0b; }
nav.ticker .live { display: flex; align-items: center; gap: 4px; justify-content: flex-end; padding: 0 !important; }
nav.ticker .live .lang-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  background: none; border: none; padding: 16px 14px; cursor: pointer;
  transition: color 0.2s, background 0.2s;
  min-width: 44px;
}
nav.ticker .live .lang-btn:hover { color: var(--accent); }
nav.ticker .live .lang-btn.active { color: #0a0a0b; background: var(--accent); font-weight: 700; }
nav.ticker .live .lang-sep { color: var(--fg-dim); font-size: 12px; opacity: 0.4; padding: 0 2px; }

/* ============================================================
   Page heading row (secondary pages)
   ============================================================ */

.page-head {
  padding-top: 50px;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 2;
  background: var(--bg);
}
.page-head > * {
  padding: 40px 48px;
  border-right: 1px solid var(--border);
}
.page-head > *:last-child { border-right: none; }
.page-head .crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: flex-start; align-self: start;
}
.page-head h1 {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(56px, 10vw, 160px);
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--fg);
}
.page-head h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  text-transform: none;
  letter-spacing: -0.02em;
}
.page-head .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex; align-items: flex-end; justify-content: flex-end;
  text-align: right;
  line-height: 1.8;
}
.page-head .meta b { color: var(--fg); display: block; }

/* ============================================================
   Section (secondary pages)
   ============================================================ */

.section { position: relative; z-index: 2; border-bottom: 1px solid var(--border); background: var(--bg); }
.section-head {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  border-bottom: 1px solid var(--border);
}
.section-head > * {
  padding: 32px 48px;
  border-right: 1px solid var(--border);
}
.section-head > *:last-child { border-right: none; }
.section-head .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center;
}
.section-head h2 {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 0.9;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: -0.04em;
}
.section-head h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  text-transform: none;
  letter-spacing: -0.02em;
}
.section-head .count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex; align-items: center; justify-content: flex-end;
}

/* ============================================================
   Marquee band
   ============================================================ */

.marquee-band {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  background: var(--bg);
  z-index: 2;
}
.marquee-inner {
  display: inline-flex;
  gap: 48px;
  animation: marquee 40s linear infinite;
}
.marquee-inner span {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  color: var(--fg);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.marquee-inner span.star {
  color: var(--accent);
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
}
.marquee-inner span em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  text-transform: none;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Buttons (secondary pages)
   ============================================================ */

.book-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 32px;
  background: var(--accent);
  color: #0a0a0b;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s;
  cursor: pointer;
}
.book-btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--fg);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.book-btn:hover::before { transform: translateY(0); }
.book-btn:hover { color: #0a0a0b; }
.book-btn > * { position: relative; z-index: 1; }
.book-btn .arr { transition: transform 0.3s; }
.book-btn:hover .arr { transform: translate(6px, -6px) rotate(-45deg); }
.book-btn.submit { width: 100%; }

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 24px 32px;
  border: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
  cursor: pointer;
}
.ghost-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   Footer (secondary pages)
   ============================================================ */

footer.page-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  position: relative; z-index: 2;
}
footer.page-footer > div {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
}
footer.page-footer > div:last-child { border-right: none; text-align: right; }
footer.page-footer .sig {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
}
footer.page-footer a { color: var(--fg-dim); transition: color 0.2s; }
footer.page-footer a:hover { color: var(--accent); }

/* ============================================================
   Reveal animations
   ============================================================ */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(16px); transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.06s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.12s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.18s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 0.3s; }

/* ============================================================
   HOME PAGE — Hero (secondary / old)
   ============================================================ */

.hero { padding-top: 50px; position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; border-bottom: 1px solid var(--border); background: var(--bg); }
.hero-title-cell { padding: 48px; border-right: 1px solid var(--border); overflow: hidden; }
.hero-title {
  font-family: var(--font-sans); font-weight: 900;
  font-size: clamp(80px, 15vw, 260px); line-height: 0.85;
  letter-spacing: -0.05em; color: var(--fg); text-transform: uppercase;
}
.hero-title .italic {
  font-family: var(--font-serif); font-weight: 400; font-style: italic;
  color: var(--accent); text-transform: none; letter-spacing: -0.02em;
}
.hero-title .word { display: block; overflow: hidden; }
.hero-title .word span { display: inline-block; transform: translateY(105%); animation: slideUp 1s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-title .word:nth-child(1) span { animation-delay: 0.1s; }
.hero-title .word:nth-child(2) span { animation-delay: 0.2s; }
.hero-title .word:nth-child(3) span { animation-delay: 0.3s; }
@keyframes slideUp { to { transform: translateY(0); } }

.hero-meta-cell { display: flex; flex-direction: column; }
.hero-meta-cell .cell {
  padding: 24px; border-bottom: 1px solid var(--border);
  flex: 1; display: flex; flex-direction: column; justify-content: space-between;
}
.hero-meta-cell .cell:last-child { border-bottom: none; }
.hero-meta-cell .cell .label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 24px;
}
.hero-meta-cell .cell .value { font-size: 28px; color: var(--fg); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.hero-meta-cell .cell .value em { font-family: var(--font-serif); font-style: italic; color: var(--accent); font-weight: 400; }
.hero-meta-cell .cell.accent-cell { background: var(--accent); color: #0a0a0b; }
.hero-meta-cell .cell.accent-cell * { color: #0a0a0b; }

.hero-meta-cell .book-cell { position: relative; overflow: hidden; transition: background 0.4s; display:flex; flex-direction:column; justify-content: space-between; }
.hero-meta-cell .book-cell::before { content:''; position:absolute; inset:0; background: var(--accent); transform: translateY(100%); transition: transform 0.5s cubic-bezier(.2,.7,.2,1); z-index:0; }
.hero-meta-cell .book-cell > * { position: relative; z-index: 1; }
.hero-meta-cell .book-cell:hover::before { transform: translateY(0); }
.hero-meta-cell .book-cell:hover *, .hero-meta-cell .book-cell:hover .value em { color: #0a0a0b !important; }
.hero-meta-cell .book-cell .book-value { display:flex; align-items:center; gap:12px; }
.hero-meta-cell .book-cell .book-value em { font-family:var(--font-serif); font-style: italic; color: var(--accent); font-weight: 400; }
.hero-meta-cell .book-cell .cal-ico { color: var(--accent); display:inline-flex; align-items:center; }
.hero-meta-cell .book-cell .book-sub { font-family:var(--font-mono); font-size: 10px; letter-spacing:0.12em; text-transform: uppercase; color: var(--fg-dim); margin-top: 14px; }

.hero-strip { display: grid; grid-template-columns: 2fr 3fr 1fr; border-bottom: 1px solid var(--border); background: var(--bg); position: relative; z-index: 2; }
.hero-strip > * { padding: 32px 48px; border-right: 1px solid var(--border); }
.hero-strip > *:last-child { border-right: none; }
.hero-strip .lede { font-size: 20px; color: var(--fg); line-height: 1.4; font-weight: 300; max-width: 560px; }
.hero-strip .lede strong { font-weight: 600; }
.hero-strip .lede em { color: var(--accent); font-style: normal; font-weight: 500; }
.hero-strip .empty { display: flex; align-items: center; justify-content: center; color: var(--fg-dim); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; }
.hero-strip .scroll-cell { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-dim); }
.hero-strip .scroll-cell span:last-child { color: var(--accent); animation: bob 2s infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

.fw-grid { display: grid; grid-template-columns: 1fr 1fr; }
.fw-cell { padding: 48px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); min-height: 420px; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; position: relative; overflow: hidden; transition: background 0.4s; }
.fw-cell:nth-child(2n) { border-right: none; }
.fw-cell:hover { background: var(--accent); }
.fw-cell:hover * { color: #0a0a0b !important; border-color: #0a0a0b !important; }
.fw-cell .top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); }
.fw-cell .top b { color: var(--fg); }
.fw-cell h3 { font-family: var(--font-sans); font-weight: 900; font-size: 72px; color: var(--fg); letter-spacing: -0.03em; text-transform: uppercase; line-height: 0.9; margin: 24px 0; }
.fw-cell h3 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); text-transform: none; }
.fw-cell p { color: var(--fg-dim); font-size: 15px; line-height: 1.6; max-width: 440px; }
.fw-cell .stack { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.fw-cell .stack span { padding: 4px 10px; border: 1px solid var(--fg-dim); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); font-family: var(--font-mono); }
.fw-cell .arr { position: absolute; bottom: 48px; right: 48px; font-size: 28px; color: var(--fg); transition: transform 0.4s; }
.fw-cell:hover .arr { transform: translate(8px, -8px) rotate(-45deg); }

.svc-lite { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); }
.svc-lite a { padding: 40px 32px; border-right: 1px solid var(--border); transition: background 0.3s; position: relative; display: block; }
.svc-lite a:last-child { border-right: none; }
.svc-lite a:hover { background: var(--bg-2); }
.svc-lite a:hover h4 { color: var(--accent); }
.svc-lite .n { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 20px; }
.svc-lite h4 { font-family: var(--font-sans); font-weight: 800; font-size: 20px; color: var(--fg); text-transform: uppercase; letter-spacing: -0.01em; transition: color 0.3s; }

.dual-cta { display: grid; grid-template-columns: 2fr 1fr; border-bottom: 1px solid var(--border); }
.dual-cta > * { padding: 48px; border-right: 1px solid var(--border); }
.dual-cta > *:last-child { border-right: none; }
.dual-cta .big {
  font-family: var(--font-sans); font-weight: 900;
  font-size: clamp(48px, 7vw, 100px); line-height: 0.9;
  letter-spacing: -0.04em; color: var(--fg); text-transform: uppercase;
}
.dual-cta .big em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); text-transform: none; }
.dual-cta .right-cta { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.dual-cta .right-cta p { color: var(--fg-dim); font-size: 15px; line-height: 1.6; }

/* ============================================================
   ABOUT PAGE (secondary)
   ============================================================ */

.about-grid { display: grid; grid-template-columns: 3fr 1fr 1fr 1fr 1fr; border-bottom: 1px solid var(--border); }
.about-grid > * { padding: 48px; border-right: 1px solid var(--border); }
.about-grid > *:last-child { border-right: none; }
.about-main { display: flex; flex-direction: column; gap: 24px; }
.about-main p { color: var(--fg); font-size: 18px; line-height: 1.6; font-weight: 300; max-width: 580px; }
.about-main p strong { font-weight: 600; }
.about-main p em { color: var(--accent); font-style: normal; font-weight: 500; }
.stat-cell { display: flex; flex-direction: column; justify-content: flex-end; transition: background 0.4s; }
.stat-cell:hover { background: var(--accent); }
.stat-cell:hover * { color: #0a0a0b; }
.stat-cell .stat-n { font-family: var(--font-sans); font-weight: 900; font-size: 80px; line-height: 0.9; color: var(--fg); letter-spacing: -0.05em; margin-bottom: 16px; }
.stat-cell .stat-l { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-dim); }

.portrait-row { display: grid; grid-template-columns: 1fr 2fr; border-bottom: 1px solid var(--border); }
.portrait { border-right: 1px solid var(--border); aspect-ratio: 3/4;
  background: repeating-linear-gradient(135deg, #111114 0 14px, #16161b 14px 28px);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-dim); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase; position: relative;
}
.portrait::after { content: '[ PORTRAIT ]'; }
.portrait-right { padding: 48px; display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.portrait-quote { font-family: var(--font-serif); font-size: clamp(36px, 4.5vw, 64px); line-height: 1.1; color: var(--fg); letter-spacing: -0.02em; }
.portrait-quote em { font-style: italic; color: var(--accent); }
.portrait-signature { font-family: var(--font-serif); font-style: italic; font-size: 24px; color: var(--accent); }

.values { display: grid; grid-template-columns: 1fr 1fr 1fr; border-bottom: 1px solid var(--border); }
.val { padding: 48px; border-right: 1px solid var(--border); min-height: 320px; display: flex; flex-direction: column; justify-content: space-between; transition: background 0.4s; }
.val:last-child { border-right: none; }
.val:hover { background: var(--bg-2); }
.val .n { font-family: var(--font-sans); font-weight: 900; font-size: 96px; line-height: 1; color: var(--accent); letter-spacing: -0.05em; }
.val h3 { font-family: var(--font-sans); font-weight: 800; font-size: 24px; color: var(--fg); text-transform: uppercase; letter-spacing: -0.02em; margin: 24px 0 12px; }
.val p { color: var(--fg-dim); font-size: 14px; line-height: 1.6; }

.tl-table { display: flex; flex-direction: column; }
.tl-row { display: grid; grid-template-columns: 200px 1fr 2fr 100px; border-bottom: 1px solid var(--border); transition: background 0.3s; }
.tl-row:last-child { border-bottom: none; }
.tl-row:hover { background: rgba(125, 211, 252, 0.04); }
.tl-row:hover .tl-year { color: var(--accent); }
.tl-row > * { padding: 28px 48px; border-right: 1px solid var(--border); display: flex; align-items: center; }
.tl-row > *:last-child { border-right: none; }
.tl-year { font-family: var(--font-sans); font-weight: 900; font-size: 48px; color: var(--fg); letter-spacing: -0.04em; transition: color 0.3s; }
.tl-event { font-size: 17px; color: var(--fg); font-weight: 500; }
.tl-detail { color: var(--fg-dim); font-size: 14px; font-weight: 300; }
.tl-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); justify-content: flex-end; }

.toolkit { padding: 48px; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.toolkit .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }
.toolkit .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.toolkit .tags span { padding: 8px 16px; border: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--fg); transition: background 0.3s, color 0.3s; }
.toolkit .tags span:hover { background: var(--accent); color: #0a0a0b; }

/* ============================================================
   WORK PAGE
   ============================================================ */

.filter-bar { display: grid; grid-template-columns: 1fr repeat(5, auto) 1fr; border-bottom: 1px solid var(--border); background: var(--bg); position: relative; z-index: 2; }
.filter-bar .fl-label { padding: 24px 48px; border-right: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-dim); display: flex; align-items: center; }
.filter-bar button.fl { padding: 24px 28px; border-right: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-dim); transition: background 0.2s, color 0.2s; }
.filter-bar button.fl:hover, .filter-bar button.fl.active { background: var(--accent); color: #0a0a0b; }
.filter-bar .count { padding: 24px 48px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg); text-align: right; display: flex; align-items: center; justify-content: flex-end; }

.work-list { display: flex; flex-direction: column; position: relative; z-index: 2; background: var(--bg); }
.work-row { display: grid; grid-template-columns: 80px 2fr 1fr 1fr 140px; border-bottom: 1px solid var(--border); transition: background 0.3s; cursor: pointer; text-decoration: none; }
.work-row:hover { background: var(--accent); }
.work-row:hover * { color: #0a0a0b !important; border-color: #0a0a0b !important; }
.work-row:hover .wr-arr { transform: translate(8px, -8px) rotate(-45deg); }
.work-row > * { padding: 40px 32px; border-right: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; }
.work-row > *:last-child { border-right: none; }
.wr-num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--fg-dim); }
.wr-name { font-family: var(--font-sans); font-weight: 900; font-size: clamp(28px, 3.5vw, 48px); color: var(--fg); text-transform: uppercase; letter-spacing: -0.03em; line-height: 1; }
.wr-name em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); text-transform: none; }
.wr-desc { color: var(--fg-dim); font-size: 14px; line-height: 1.5; }
.wr-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); }
.wr-meta b { color: var(--fg); display: block; font-weight: 700; margin-bottom: 6px; }
.wr-arr { font-size: 28px; color: var(--fg); text-align: center; align-items: center !important; display: flex !important; justify-content: center; transition: transform 0.4s; }

.work-cta { padding: 80px 48px; text-align: center; }
.work-cta-serif { font-family: var(--font-serif); font-style: italic; font-size: clamp(40px, 6vw, 80px); color: var(--fg); max-width: 900px; margin: 0 auto; line-height: 1.1; }
.work-cta-serif span { color: var(--accent); }
.work-cta-actions { margin-top: 48px; display: inline-flex; gap: 16px; }

/* ============================================================
   SERVICES PAGE
   ============================================================ */

.svc { border-bottom: 1px solid var(--border); display: grid; grid-template-columns: 180px 1fr 1fr 1fr; transition: background 0.4s; position: relative; z-index: 2; background: var(--bg); }
.svc:hover { background: var(--bg-2); }
.svc > * { padding: 56px 40px; border-right: 1px solid var(--border); }
.svc > *:last-child { border-right: none; }
.svc .svc-n { font-family: var(--font-sans); font-weight: 900; font-size: 96px; line-height: 0.9; color: var(--accent); letter-spacing: -0.05em; }
.svc .svc-title { display: flex; flex-direction: column; gap: 20px; }
.svc .svc-title h3 { font-family: var(--font-sans); font-weight: 900; font-size: clamp(36px, 4.5vw, 64px); color: var(--fg); text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.9; }
.svc .svc-title h3 em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); text-transform: none; }
.svc .svc-title p { color: var(--fg-dim); font-size: 15px; line-height: 1.5; }
.svc .svc-desc ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.svc .svc-desc li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14px; line-height: 1.5; color: var(--fg); }
.svc .svc-desc li::before { content: '→'; color: var(--accent); font-family: var(--font-mono); }
.svc .svc-cost { display: flex; flex-direction: column; gap: 16px; justify-content: space-between; }
.svc .svc-cost .price { font-family: var(--font-sans); font-weight: 900; font-size: 40px; color: var(--fg); letter-spacing: -0.03em; line-height: 1; }
.svc .svc-cost .price em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); font-size: 32px; }
.svc .svc-cost .price-note { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); }

.process { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); }
.process .step { padding: 48px 32px; border-right: 1px solid var(--border); min-height: 260px; display: flex; flex-direction: column; gap: 20px; }
.process .step:last-child { border-right: none; }
.process .step:hover { background: var(--bg-2); }
.process .step .num { font-family: var(--font-sans); font-weight: 900; font-size: 72px; line-height: 0.9; color: var(--accent); letter-spacing: -0.05em; }
.process .step h4 { font-family: var(--font-sans); font-weight: 800; font-size: 18px; color: var(--fg); text-transform: uppercase; letter-spacing: -0.01em; }
.process .step p { color: var(--fg-dim); font-size: 13px; line-height: 1.6; }

.faq { border-bottom: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); padding: 32px 48px; display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: center; transition: background 0.3s; }
.faq-item:last-child { border-bottom: none; }
.faq-item:hover { background: var(--bg-2); }
.faq-item:hover .faq-q { color: var(--accent); }
.faq-q { font-family: var(--font-sans); font-weight: 800; font-size: 22px; color: var(--fg); text-transform: uppercase; letter-spacing: -0.02em; line-height: 1.2; transition: color 0.3s; }
.faq-q em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); text-transform: none; }
.faq-a { color: var(--fg-dim); font-size: 15px; line-height: 1.6; }

.svc-cta { padding: 80px 48px; text-align: center; }
.svc-cta-serif { font-family: var(--font-serif); font-style: italic; font-size: clamp(40px, 6vw, 80px); color: var(--fg); max-width: 900px; margin: 0 auto; line-height: 1.1; }
.svc-cta-serif span { color: var(--accent); }
.svc-cta-actions { margin-top: 48px; display: inline-flex; gap: 16px; }

/* ============================================================
   CONTACT PAGE (secondary)
   ============================================================ */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); position: relative; z-index: 2; background: var(--bg); }
.contact-grid > * { padding: 48px; border-right: 1px solid var(--border); }
.contact-grid > *:last-child { border-right: none; }

.contact-left { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 640px; }
.contact-left .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.contact-left .big {
  font-family: var(--font-sans); font-weight: 900;
  font-size: clamp(56px, 7vw, 112px); line-height: 0.88; letter-spacing: -0.04em;
  color: var(--fg); text-transform: uppercase;
}
.contact-left .big em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); text-transform: none; }
.contact-left .direct { display: flex; flex-direction: column; gap: 16px; }
.contact-left .direct a {
  font-family: var(--font-mono); font-size: 14px;
  color: var(--fg); transition: color 0.2s;
}
.contact-left .direct a:hover { color: var(--accent); }
.contact-left .direct .k { font-size: 10px; letter-spacing: 0.15em; color: var(--fg-dim); margin-bottom: 4px; display: block; text-transform: uppercase; }

.contact-form { display: flex; flex-direction: column; gap: 28px; }
.contact-form .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }
.contact-form .field { display: flex; flex-direction: column; gap: 10px; }
.contact-form label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-dim); }
.contact-form input, .contact-form textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 18px;
  padding: 12px 0;
  font-weight: 400;
  transition: border-color 0.2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-bottom-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.contact-form .choices button {
  padding: 8px 14px; border: 1px solid var(--border); color: var(--fg-dim);
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: all 0.2s;
}
.contact-form .choices button.on, .contact-form .choices button:hover { background: var(--accent); color: #0a0a0b; border-color: var(--accent); }
.contact-form .submit { margin-top: 16px; }

.locations { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); position: relative; z-index: 2; background: var(--bg); }
.loc { padding: 40px 32px; border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.loc:last-child { border-right: none; }
.loc .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-dim); }
.loc .v { font-family: var(--font-sans); font-weight: 800; font-size: 28px; color: var(--fg); text-transform: uppercase; letter-spacing: -0.02em; }
.loc .v em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); text-transform: none; }

/* ============================================================
   PROJECT DETAIL (Case Study)
   ============================================================ */

.cs-meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); position: relative; z-index: 2; background: var(--bg); }
.cs-meta-grid > div { padding: 32px 32px; border-right: 1px solid var(--border); }
.cs-meta-grid > div:last-child { border-right: none; }
.cs-meta-grid .lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 12px; }
.cs-meta-grid .val { color: var(--fg); font-size: 18px; font-weight: 500; letter-spacing: -0.01em; display: block; min-height: unset; padding: 0; border-right: none; }
.cs-meta-grid .val:hover { background: none; }
.cs-meta-grid .val em { font-family: var(--font-serif); font-style: italic; color: var(--accent); font-weight: 400; }

.hero-img { padding: 48px; border-bottom: 1px solid var(--border); position: relative; z-index: 2; background: var(--bg); }
.hero-img .ph {
  aspect-ratio: 16/9;
  background: repeating-linear-gradient(45deg, #111114 0 20px, #16161b 20px 40px);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-dim); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.hero-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }

.two-col { display: grid; grid-template-columns: 1fr 2fr; border-bottom: 1px solid var(--border); position: relative; z-index: 2; background: var(--bg); }
.two-col > * { padding: 48px; border-right: 1px solid var(--border); }
.two-col > *:last-child { border-right: none; }
.two-col .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }
.two-col p { color: var(--fg); font-size: 17px; line-height: 1.6; font-weight: 300; max-width: 640px; }
.two-col p + p { margin-top: 20px; }
.two-col p em { color: var(--accent); font-style: normal; font-weight: 500; }
.two-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.two-col ul li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; color: var(--fg); font-size: 16px; line-height: 1.5; }
.two-col ul li::before { content: '→'; color: var(--accent); font-family: var(--font-mono); }

.metrics { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--border); position: relative; z-index: 2; background: var(--bg); }
.metric { padding: 48px; border-right: 1px solid var(--border); min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; transition: background 0.4s; }
.metric:last-child { border-right: none; }
.metric:hover { background: var(--accent); }
.metric:hover * { color: #0a0a0b !important; }
.metric .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-dim); }
.metric .big { font-family: var(--font-sans); font-weight: 900; font-size: clamp(72px, 9vw, 140px); line-height: 1; color: var(--fg); letter-spacing: -0.05em; }
.metric .big em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); }

.gallery { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); position: relative; z-index: 2; background: var(--bg); }
.gallery .ph {
  aspect-ratio: 4/3;
  background: repeating-linear-gradient(135deg, #111114 0 18px, #16161b 18px 36px);
  border-right: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--fg-dim); font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.15em; text-transform: uppercase;
}
.gallery .ph:last-child { border-right: none; }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; display: block; border-right: 1px solid var(--border); }
.gallery img:last-child { border-right: none; }

.next-cs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--border); position: relative; z-index: 2; background: var(--bg); }
.next-cs a { padding: 48px; border-right: 1px solid var(--border); transition: background 0.3s; display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; }
.next-cs a:last-child { border-right: none; }
.next-cs a:hover { background: var(--bg-2); }
.next-cs .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }
.next-cs .nm { font-family: var(--font-sans); font-weight: 900; font-size: 48px; color: var(--fg); text-transform: uppercase; letter-spacing: -0.03em; }
.next-cs .nm em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); text-transform: none; }

/* ============================================================
   ✦ NEW HOMEPAGE — dark-home scope
   All styles below are scoped to .brutalist-root.dark-home
   ============================================================ */

/* Override: homepage uses sidebar layout, not grid overlay */
.brutalist-root.dark-home {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(120, 90, 200, 0.05), transparent 60%),
    var(--bg);
}

/* Suppress the column-grid overlay on homepage */
.brutalist-root.dark-home::before { display: none; }

/* Subtle grain on homepage */
.brutalist-root.dark-home::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Sidebar ── */
.dark-home .sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--line);
  background: rgba(10, 10, 11, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
}

.dark-home .sb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 56px;
}
.dark-home .sb-brand .dot {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), oklch(0.65 0.16 280));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--bg);
  font-size: 16px;
  font-weight: 500;
  flex-shrink: 0;
}
.dark-home .sb-brand .name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.dark-home .sb-brand .role {
  font-size: 11px;
  color: var(--fg-dim);
  font-family: var(--font-mono);
}

.dark-home .sb-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dark-home .sb-nav .group-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin: 24px 8px 10px;
}
.dark-home .sb-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--fg-2);
  transition: background 0.18s, color 0.18s;
  position: relative;
}
.dark-home .sb-nav a .ix {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-faint);
  width: 18px;
}
.dark-home .sb-nav a:hover { color: var(--fg); background: rgba(255,255,255,0.03); }
.dark-home .sb-nav a.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.dark-home .sb-nav a.active .ix { color: var(--accent); }

.dark-home .sb-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
}
.dark-home .sb-foot .status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dark-home .sb-foot .status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e;
  animation: dh-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes dh-pulse { 50% { opacity: 0.5; } }

.dark-home .sb-foot .lang {
  display: flex;
  gap: 4px;
}
.dark-home .sb-foot .lang button {
  padding: 4px 8px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  border: 1px solid var(--line);
  transition: all 0.15s;
}
.dark-home .sb-foot .lang button.on {
  color: var(--bg);
  background: var(--fg);
  border-color: var(--fg);
}

/* ── Main scroll area ── */
.dark-home .dh-main {
  position: relative;
  z-index: 2;
  overflow-x: hidden;
}

/* ── Scenes (sections) ── */
.dark-home .scene {
  min-height: 100vh;
  padding: 80px 64px;
  position: relative;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.dark-home .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}
.dark-home .eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

/* ── Hero ── */
.dark-home .scene.dh-hero { justify-content: center; }

.dark-home .hero-eyebrow { margin-bottom: 28px; }

.dark-home .dh-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1280px;
  margin-top: 0;
}

.dark-home .dh-hero h1 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin-bottom: 28px;
}
.dark-home .dh-hero h1 .it {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.dark-home .dh-hero .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 560px;
  margin-bottom: 40px;
}
.dark-home .dh-hero .lede em {
  font-style: normal;
  color: var(--fg);
  font-weight: 500;
}

.dark-home .dh-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.dark-home .dh-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
}
.dark-home .dh-btn-primary {
  background: var(--fg);
  color: var(--bg);
  border: none;
}
.dark-home .dh-btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
}
.dark-home .dh-btn-ghost {
  border: 1px solid var(--line-2);
  color: var(--fg);
  background: none;
}
.dark-home .dh-btn-ghost:hover {
  border-color: var(--fg);
  background: rgba(255,255,255,0.03);
}
.dark-home .dh-btn .arr {
  display: inline-flex;
  transition: transform 0.25s;
}
.dark-home .dh-btn:hover .arr { transform: translate(2px, -2px); }

.dark-home .dh-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0;
  border-top: 1px solid var(--line);
  padding-top: 32px;
  max-width: 600px;
}
.dark-home .dh-stats .stat {
  padding-right: 36px;
  border-right: 1px solid var(--line);
  margin-right: 36px;
}
.dark-home .dh-stats .stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.dark-home .dh-stats .v {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--fg);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.dark-home .dh-stats .v em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.dark-home .dh-stats .l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 6px;
}

.dark-home .chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  max-width: 700px;
}
.dark-home .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.02em;
}
.dark-home .chip .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* Portrait card */
.dark-home .portrait-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  padding: 24px;
  overflow: hidden;
}
.dark-home .portrait-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 80% 0%, var(--accent-glow), transparent 60%);
  pointer-events: none;
}
.dark-home .portrait-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--bg-3);
  overflow: hidden;
  position: relative;
}
.dark-home .portrait-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
}
.dark-home .portrait-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,11,0.7));
}
.dark-home .portrait-meta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 0;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.dark-home .portrait-meta .k { color: var(--accent); letter-spacing: 0.05em; text-transform: uppercase; }
.dark-home .portrait-meta .v { color: var(--fg); text-align: right; font-weight: 500; }
.dark-home .portrait-meta .v em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--fg);
  font-size: 13px;
  font-weight: 400;
}

/* ── About ── */
.dark-home .dh-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 56px;
  align-items: start;
}
.dark-home .dh-about-grid h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.dark-home .dh-about-grid h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.dark-home .dh-about-grid p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--fg-2);
  margin-bottom: 18px;
}
.dark-home .dh-about-grid p strong { color: var(--fg); font-weight: 500; }

.dark-home .dh-timeline {
  display: flex;
  flex-direction: column;
}
.dark-home .dh-timeline .row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.dark-home .dh-timeline .row:last-child { border-bottom: 1px solid var(--line); }
.dark-home .dh-timeline .yr {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
  padding-top: 2px;
}
.dark-home .dh-timeline .ev {
  font-size: 15px;
  color: var(--fg);
}
.dark-home .dh-timeline .ev .det {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--fg-dim);
}
.dark-home .dh-timeline .row:hover { background: rgba(255,255,255,0.015); }

.dark-home .dh-skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 48px;
}
.dark-home .skill-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.dark-home .skill-col ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.dark-home .skill-col li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--fg-2);
  padding: 8px 0;
}
.dark-home .skill-col li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Projects stage ── */
.dark-home .dh-projects {
  padding-bottom: 100px;
}
.dark-home .projects-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  gap: 32px;
}
.dark-home .projects-head h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-top: 16px;
}
.dark-home .projects-head h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.dark-home .projects-head .hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.dark-home .stage-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 280px 1fr;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-2);
  min-height: 600px;
}

.dark-home .rail {
  background: rgba(0,0,0,0.35);
  border-right: 1px solid var(--line);
  padding: 28px 0;
  display: flex;
  flex-direction: column;
}
.dark-home .rail-head {
  padding: 0 24px 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex;
  justify-content: space-between;
}
.dark-home .rail-head b { color: var(--accent); font-weight: 500; }

.dark-home .rail-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 16px 24px;
  cursor: pointer;
  transition: background 0.25s;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.dark-home .rail-item:last-child { border-bottom: none; }
.dark-home .rail-item:hover { background: rgba(255,255,255,0.03); }
.dark-home .rail-item .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-faint);
  transition: color 0.25s;
}
.dark-home .rail-item .body { min-width: 0; }
.dark-home .rail-item .title {
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-2);
  letter-spacing: -0.01em;
  transition: color 0.25s;
}
.dark-home .rail-item .sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--fg-dim);
  margin-top: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.dark-home .rail-item:hover .title { color: var(--fg); }
.dark-home .rail-item.active { background: rgba(255,255,255,0.04); }
.dark-home .rail-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.dark-home .rail-item.active .num { color: var(--accent); }
.dark-home .rail-item.active .title { color: var(--fg); }

.dark-home .rail-foot {
  margin-top: auto;
  padding: 16px 24px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.dark-home .stage {
  position: relative;
  overflow: hidden;
  min-height: 600px;
}
.dark-home .stage-bg {
  position: absolute;
  inset: 0;
}
.dark-home .stage-bg .layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}
.dark-home .stage-bg .layer.on { opacity: 1; }
.dark-home .stage-bg .layer.placeholder {
  background:
    repeating-linear-gradient(45deg, transparent 0 24px, rgba(255,255,255,0.03) 24px 25px),
    linear-gradient(135deg, var(--bg-2), var(--bg-3));
}
.dark-home .stage-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,11,0.4) 0%, rgba(10,10,11,0.15) 30%, rgba(10,10,11,0.55) 70%, rgba(10,10,11,0.95)),
    linear-gradient(90deg, rgba(10,10,11,0.4), transparent 30%);
  pointer-events: none;
}

.dark-home .stage-content {
  position: relative;
  z-index: 1;
  height: 100%;
  min-height: 600px;
  padding: 36px 44px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
}
.dark-home .stage-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dark-home .stage-top .role-tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  letter-spacing: 0.08em;
}
.dark-home .stage-top .yr { color: var(--fg-dim); }
.dark-home .stage-top .index { color: var(--fg); font-weight: 500; }

.dark-home .stage-mid {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dark-home .stage-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(64px, 9vw, 140px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 18px;
  transition: color 0.3s;
  width: fit-content;
}
.dark-home .stage-title:hover { color: var(--accent); }
.dark-home .stage-title .ar {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-size: 0.4em;
  font-weight: 400;
  transition: transform 0.3s;
  display: inline-block;
}
.dark-home .stage-title:hover .ar { transform: translate(10px, -10px); }
.dark-home .stage-sub {
  margin-top: 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 24px;
  color: var(--fg-2);
}
.dark-home .stage-desc {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 560px;
}

.dark-home .stage-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.dark-home .stage-stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.dark-home .stage-stack span {
  padding: 5px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--fg-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dark-home .stage-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dark-home .stage-controls .progress {
  width: 140px;
  height: 2px;
  background: rgba(255,255,255,0.12);
  border-radius: 2px;
  overflow: hidden;
}
.dark-home .stage-controls .progress > span {
  display: block;
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s linear;
}
.dark-home .stage-controls button {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  transition: all 0.2s;
}
.dark-home .stage-controls button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.dark-home .stage-controls button.playing {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

/* ── Detail Overlay ── */
.dark-home .detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.dark-home .detail-overlay.open { opacity: 1; pointer-events: auto; }

.dark-home .detail-panel {
  width: min(900px, 92vw);
  background: var(--bg);
  border-left: 1px solid var(--line-2);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1);
}
.dark-home .detail-overlay.open .detail-panel { transform: translateX(0); }

.dark-home .detail-head {
  position: sticky;
  top: 0;
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.dark-home .detail-head .crumb {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.dark-home .detail-head .crumb b { color: var(--accent); }
.dark-home .detail-head .close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  transition: all 0.2s;
  flex-shrink: 0;
}
.dark-home .detail-head .close:hover { background: var(--fg); color: var(--bg); }

.dark-home .detail-body { padding: 40px; }
.dark-home .detail-hero h2 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 12px;
}
.dark-home .detail-hero h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.dark-home .detail-hero .sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 22px;
  color: var(--fg-dim);
}
.dark-home .detail-hero .desc {
  margin-top: 24px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg-2);
  max-width: 640px;
}

.dark-home .detail-cover {
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
}
.dark-home .detail-cover img { width: 100%; height: auto; display: block; }
.dark-home .detail-cover .ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em;
  color: var(--fg-dim);
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
}

.dark-home .detail-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.dark-home .detail-metrics .m {
  padding: 0 20px;
  border-right: 1px solid var(--line);
}
.dark-home .detail-metrics .m:last-child { border-right: none; }
.dark-home .detail-metrics .v {
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.dark-home .detail-metrics .v em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.dark-home .detail-metrics .l {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 6px;
}

.dark-home .detail-ext-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 24px var(--accent-glow);
}
.dark-home .detail-ext-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--accent-glow);
}

.dark-home .detail-gallery {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.dark-home .detail-gallery img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  display: block;
}
.dark-home .detail-gallery img:first-child {
  grid-column: 1 / -1;
}

.dark-home .detail-cards {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.dark-home .detail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255,255,255,0.015);
}
.dark-home .detail-card h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.dark-home .detail-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-2);
}
.dark-home .detail-card ul { list-style: none; }
.dark-home .detail-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--fg-2);
  padding: 5px 0;
}
.dark-home .detail-card li::before {
  content: '→';
  color: var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  flex-shrink: 0;
}

/* ── Contact ── */
.dark-home .dh-contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  margin-top: 48px;
  align-items: start;
}
.dark-home .dh-contact h2 {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 24px;
}
.dark-home .dh-contact h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.dark-home .dh-contact p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 540px;
  margin-bottom: 32px;
}

.dark-home .contact-channels {
  display: flex;
  flex-direction: column;
}
.dark-home .channel {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  cursor: pointer;
  transition: padding 0.2s;
}
.dark-home .channel:last-child { border-bottom: 1px solid var(--line); }
.dark-home .channel:hover { padding-left: 8px; }
.dark-home .channel:hover .cv { color: var(--accent); }
.dark-home .channel .ck {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.dark-home .channel .cv {
  font-size: 16px;
  color: var(--fg);
  transition: color 0.2s;
}
.dark-home .channel .ca {
  color: var(--fg-dim);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  transition: transform 0.2s, color 0.2s;
}
.dark-home .channel:hover .ca { color: var(--accent); transform: translate(4px, -4px); }

.dark-home .contact-card {
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  position: relative;
  overflow: hidden;
}
.dark-home .contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 300px at 100% 0%, var(--accent-glow), transparent 60%);
  pointer-events: none;
}
.dark-home .contact-card .cc-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  position: relative;
}
.dark-home .contact-card .cc-title {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
  position: relative;
}
.dark-home .contact-card .cc-title em { font-family: var(--font-serif); font-style: italic; color: var(--accent); font-weight: 400; }
.dark-home .contact-card .cc-body {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.6;
  margin-bottom: 28px;
  position: relative;
}
.dark-home .contact-card .cc-when {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 11px;
  position: relative;
}
.dark-home .contact-card .cc-when .b {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.dark-home .contact-card .cc-when .b .bk { color: var(--fg-dim); margin-bottom: 4px; }
.dark-home .contact-card .cc-when .b .bv { color: var(--fg); font-size: 13px; }
.dark-home .book-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--fg);
  color: var(--bg);
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  width: 100%;
  transition: background 0.2s;
  position: relative;
  cursor: pointer;
}
.dark-home .book-cta:hover { background: var(--accent); }

/* ── Footer ── */
.dark-home .dh-foot {
  padding: 32px 64px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
  border-top: 1px solid var(--line);
}
.dark-home .dh-foot .sig {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0;
}

/* ============================================================
   Responsive — secondary pages (≤1000px)
   ============================================================ */

@media (max-width: 1000px) {
  nav.ticker { grid-template-columns: 1fr 1fr; }
  nav.ticker > *:nth-child(n+3):not(.live) { display: none; }
  .page-head, .section-head { grid-template-columns: 1fr; }
  .page-head > *, .section-head > * { border-right: none; border-bottom: 1px solid var(--border); }
  footer.page-footer { grid-template-columns: 1fr; }
  footer.page-footer > div { border-right: none; border-bottom: 1px solid var(--border); text-align: left !important; }

  .hero-grid, .hero-strip, .fw-grid, .svc-lite, .dual-cta { grid-template-columns: 1fr; }
  .hero-strip > *, .fw-grid > *, .svc-lite > a, .dual-cta > * { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-title-cell { border-right: none; border-bottom: 1px solid var(--border); }

  .about-grid, .portrait-row, .values, .toolkit { grid-template-columns: 1fr; }
  .about-grid > *, .portrait-row > *, .values > *, .toolkit > * { border-right: none; border-bottom: 1px solid var(--border); }
  .tl-row { grid-template-columns: 100px 1fr; }
  .tl-row .tl-detail, .tl-row .tl-tag { display: none; }

  .filter-bar { grid-template-columns: 1fr 1fr; }
  .filter-bar .fl-label, .filter-bar .count { grid-column: 1 / -1; }
  .work-row { grid-template-columns: 60px 1fr 80px; }
  .work-row .wr-desc, .work-row .wr-meta { display: none; }

  .svc, .process, .faq-item { grid-template-columns: 1fr; }
  .svc > *, .process .step { border-right: none; border-bottom: 1px solid var(--border); }

  .contact-grid, .locations { grid-template-columns: 1fr; }
  .contact-grid > *, .loc { border-right: none; border-bottom: 1px solid var(--border); }

  .cs-meta-grid, .two-col, .metrics, .gallery, .next-cs { grid-template-columns: 1fr; }
  .cs-meta-grid > div, .two-col > *, .metric, .gallery .ph, .gallery img, .next-cs a { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ============================================================
   Responsive — new homepage (≤1100px)
   ============================================================ */

@media (max-width: 1100px) {
  .brutalist-root.dark-home {
    grid-template-columns: 1fr;
  }
  .dark-home .sidebar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 12px 20px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    z-index: 100;
  }
  .dark-home .sb-brand { margin-bottom: 0; flex-shrink: 0; }
  .dark-home .sb-brand .name { white-space: nowrap; }
  .dark-home .sb-brand .role { display: none; }
  .dark-home .sb-nav { flex-direction: row; margin-left: auto; gap: 4px; }
  .dark-home .sb-nav .group-label { display: none; }
  .dark-home .sb-nav a { padding: 6px 10px; }
  .dark-home .sb-nav a .ix { display: none; }
  .dark-home .sb-foot { display: none; }

  .dark-home .scene { padding: 100px 32px 60px; }
  .dark-home .dh-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .dark-home .dh-about-grid { grid-template-columns: 1fr; gap: 40px; }
  .dark-home .dh-skills-grid { grid-template-columns: 1fr; }
  .dark-home .dh-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .dark-home .detail-cards { grid-template-columns: 1fr; }

  .dark-home .stage-wrap { grid-template-columns: 1fr; min-height: 0; }
  .dark-home .rail { border-right: none; border-bottom: 1px solid var(--line); padding: 16px 0; }
  .dark-home .rail-item { padding: 12px 20px; }
  .dark-home .stage { min-height: 480px; }
  .dark-home .stage-content { padding: 28px; min-height: 480px; }

  .dark-home .dh-foot { padding: 24px 32px; flex-direction: column; gap: 8px; }
}
