/* ═══════════════════════════════════════════════════════════════
   QUIET  APPARATUS — stylesheet
   Act I (dark, WebGL-driven hero + positioning)
   Act II (light, archival register)
   Act III (dark close, secondary WebGL)
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* palette */
  --paper:     #EEE7D8;
  --paper-2:   #E6DDCC;
  --paper-3:   #DFD5BE;
  --ink:       #111114;
  --ink-1:     #17171B;
  --ink-2:     #1F1F24;
  --ink-soft:  #2A2A2D;
  --graphite:  #6E6C66;
  --hairline:  #BAB0A0;
  --copper:    #BD5A33;
  --copper-l:  #D8784F;
  --copper-d:  #8B3F1F;

  /* typography */
  --f-display: "Bodoni Moda", "Didot", "Palatino Linotype", serif;
  --f-italic:  "Instrument Serif", "Bodoni Moda", Georgia, serif;
  --f-mono:    "JetBrains Mono", "Consolas", "Menlo", monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  font-family: var(--f-mono);
  color: var(--paper);
  font-size: 15px;
  line-height: 1.55;
  background: var(--ink);
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none), (max-width: 900px) {
  body { cursor: auto; }
}

/* ═════ grain overlay ═════ */
.grain-overlay {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  mix-blend-mode: overlay;
  opacity: 0.10;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.08  0 0 0 0 0.08  0 0 0 0.7 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
}

/* ═════ custom cursor ═════ */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  will-change: transform;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #EEE7D8;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, background 0.25s;
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid #EEE7D8;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.35s, height 0.35s, border-color 0.35s;
}
body.cursor-active .cursor-dot { width: 10px; height: 10px; background: var(--copper); }
body.cursor-active .cursor-ring { width: 56px; height: 56px; border-color: var(--copper); }

@media (hover: none), (max-width: 900px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ═════ preloader ═════ */
.preloader {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 1000;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 32px;
  opacity: 1;
  transition: opacity 0.6s ease;
  overflow: hidden;
  /* Safety net: if JS never runs (module load fails, CDN times out),
     the preloader still fades out so the page renders. JS's .done
     class short-circuits the animation when it finishes sooner. */
  animation: preloaderSafetyHide 0.6s 2.8s forwards;
}
@keyframes preloaderSafetyHide {
  to { opacity: 0; pointer-events: none; visibility: hidden; }
}
.preloader.done { animation: none; }
.preloader-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}
.preloader .pre-grid,
.preloader .pre-centre,
.preloader .pre-progress {
  position: relative;
  z-index: 1;
}
.preloader.done {
  opacity: 0;
  pointer-events: none;
}
.preloader.done .pre-centre {
  transform: translateY(-32px);
  opacity: 0;
}

.pre-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pre-mono {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--paper);
  opacity: 0.65;
  text-transform: uppercase;
}
.pre-mono.right { text-align: right; }

/* centre block — kicker + name letter reveal + tagline */
.pre-centre {
  align-self: center;
  justify-self: center;
  text-align: center;
  max-width: 90vw;
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.pre-kicker {
  display: block;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 28px;
  opacity: 0;
  animation: pre-fade 0.6s 0.1s ease forwards;
}
.pre-name {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin: 0;
  display: inline-flex;
  justify-content: center;
}
.pre-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(80%);
  animation: pre-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.pre-name .pre-char:nth-child(1)  { animation-delay: 0.10s; }
.pre-name .pre-char:nth-child(2)  { animation-delay: 0.16s; }
.pre-name .pre-char:nth-child(3)  { animation-delay: 0.22s; }
.pre-name .pre-char:nth-child(4)  { animation-delay: 0.28s; }
.pre-name .pre-char:nth-child(5)  { animation-delay: 0.34s; }
.pre-name .pre-char:nth-child(6)  { animation-delay: 0.40s; }
.pre-name .pre-char:nth-child(7)  { animation-delay: 0.46s; }
.pre-name .pre-char:nth-child(8)  { animation-delay: 0.52s; }
.pre-name .pre-char:nth-child(9)  { animation-delay: 0.58s; }
.pre-name .pre-char:nth-child(10) { animation-delay: 0.64s; }
.pre-name .pre-char:nth-child(11) { animation-delay: 0.70s; }
.pre-name .pre-char:nth-child(12) { animation-delay: 0.76s; }

.pre-rules {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px auto 22px;
  max-width: 360px;
  opacity: 0;
  animation: pre-fade 0.6s 0.9s ease forwards;
}
.pre-rules .pre-r {
  flex: 1;
  height: 1px;
  background: rgba(238,231,216,0.25);
}
.pre-rules .pre-dot {
  width: 6px; height: 6px;
  background: var(--copper);
  border-radius: 50%;
}
.pre-tagline {
  display: block;
  font-family: var(--f-italic);
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1.4;
  color: rgba(238,231,216,0.6);
  max-width: 640px;
  margin: 0 auto;
  opacity: 0;
  animation: pre-fade 0.8s 1.0s ease forwards;
}

@keyframes pre-fade { to { opacity: 1; } }
@keyframes pre-rise {
  to { opacity: 1; transform: translateY(0); }
}

.pre-progress {
  display: flex;
  align-items: center;
  gap: 24px;
}
.pre-bar {
  flex: 1;
  height: 1px;
  background: rgba(238,231,216,0.2);
  overflow: hidden;
  position: relative;
}
.pre-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--copper);
  transition: width 0.35s ease;
}
.pre-bar-shine {
  position: absolute;
  top: 0; left: 0;
  width: 30%; height: 100%;
  background: linear-gradient(90deg,
    rgba(238,231,216,0) 0%,
    rgba(238,231,216,0.6) 50%,
    rgba(238,231,216,0) 100%);
  animation: pre-shine 1.6s ease-in-out infinite;
  pointer-events: none;
  will-change: transform;
}
@keyframes pre-shine {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(500%); }
  100% { transform: translateX(500%); }
}

/* ═════ scroll progress rail ═════ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--copper);
  z-index: 150;
  pointer-events: none;
  transition: width 0.15s linear;
  box-shadow: 0 0 8px rgba(189,90,51,0.5);
}

/* ═════ nav ═════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  padding: 24px 40px;
  background: linear-gradient(to bottom, rgba(17,17,20,0.7) 0%, rgba(17,17,20,0) 100%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.nav.light {
  background: rgba(238,231,216,0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-sig {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.nav.light .nav-sig { color: var(--ink); }
.nav-mark { transition: transform 0.6s ease; }
.nav-sig:hover .nav-mark { transform: rotate(90deg); }

.nav-links {
  display: flex;
  gap: 26px;
  list-style: none;
}
.nav-links a {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.65;
  transition: opacity 0.3s, color 0.3s;
  position: relative;
  white-space: nowrap;
}
.nav.light .nav-links a { color: var(--ink); }
.nav-links a:hover { opacity: 1; }
.nav-links a::before {
  content: attr(data-n);
  color: var(--copper);
  margin-right: 8px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-links a:hover::before { opacity: 1; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta, .nav-pdf {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid rgba(238,231,216,0.35);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.nav.light .nav-cta,
.nav.light .nav-pdf { color: var(--ink); border-color: var(--ink); }

.nav-cta:hover,
.nav-pdf:hover {
  background: var(--copper);
  border-color: var(--copper);
  color: var(--paper);
}
.nav.light .nav-cta:hover,
.nav.light .nav-pdf:hover { color: var(--paper); }

/* global keyboard-focus visibility */
a:focus-visible,
button:focus-visible,
.cta-btn:focus-visible,
.c-item:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 1px;
}

@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-cta span, .nav-pdf span { display: none; }
  .nav-cta, .nav-pdf { padding: 10px 12px; gap: 0; }
  .nav-right { gap: 6px; }
}

/* ═════ shared ═════ */
.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
}
@media (max-width: 720px) { .wrap { padding: 0 24px; } }

.sec-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--graphite);
  margin-bottom: 64px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
}
.sec-meta.light {
  color: rgba(238,231,216,0.55);
  border-color: rgba(238,231,216,0.25);
}
.sec-meta .num { color: var(--copper); font-weight: 700; }
.sec-meta .dim { opacity: 0.7; }

.mono-11 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--paper);
}
.mono-11.dim { opacity: 0.5; }

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  /* Safety net: if IntersectionObserver doesn't fire (JS error, disabled),
     content becomes visible after 2s via this CSS animation. */
  animation: revealSafety 0.6s 2s forwards;
}
.reveal.in { animation: none; opacity: 1; transform: translateY(0); }
@keyframes revealSafety {
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--ink);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding: 24px 0 0;
}

.hero-canvas {
  display: none;
}

.hero-top-bar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 48px 0;
}
.tb-left, .tb-right {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tb-right { align-items: flex-end; }

@media (max-width: 900px) {
  .hero-top-bar { padding: 70px 24px 0; }
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 60px 48px 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}
@media (max-width: 720px) { .hero-content { padding: 40px 24px 30px; } }

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--copper);
  text-transform: uppercase;
  margin-bottom: 40px;
}
.hero-kicker .dot {
  width: 5px; height: 5px;
  background: var(--copper);
  border-radius: 50%;
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: rgba(238,231,216,0.75);
}
.title-line.big {
  font-size: clamp(64px, 13vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin-top: 2px;
  margin-bottom: 18px;
}
@keyframes fadeIn { to { opacity: 1; } }

.hero-lede {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.4;
  color: rgba(238,231,216,0.75);
  max-width: 880px;
  opacity: 0;
  animation: fadeIn 0.8s 1.8s forwards;
}
.hero-lede strong {
  font-weight: 400;
  color: var(--paper);
}

.hero-legend {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 24px 48px;
  border-top: 1px solid rgba(238,231,216,0.18);
  margin: 60px 0 0;
  opacity: 0;
  animation: fadeIn 0.8s 2.2s forwards;
}
@media (max-width: 720px) {
  .hero-legend {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
  }
}
.legend-ref {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--copper);
  font-weight: 700;
  min-width: 90px;
}
.legend-label {
  font-size: 9.5px;
  color: rgba(238,231,216,0.65);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.legend-body { min-width: 0; }
.legend-name {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--paper);
  line-height: 1.2;
  transition: opacity 0.4s;
}
.legend-sub {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 13px;
  color: var(--graphite);
}
.legend-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(238,231,216,0.55);
}
.legend-bar {
  width: 140px;
  height: 1px;
  background: rgba(238,231,216,0.2);
  position: relative;
  overflow: hidden;
}
.legend-bar-fill {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--copper);
  transition: width 0.2s linear;
}
.legend-idx { color: var(--paper); }
.legend-idx span { color: var(--copper); }

/* ═══════════════════════════════════════════════════════════════
   POSITIONING (still dark, Act I)
   ═══════════════════════════════════════════════════════════════ */
.positioning {
  background: var(--ink);
  padding: 160px 0;
  position: relative;
  border-top: 1px solid rgba(238,231,216,0.1);
}
.positioning .sec-meta {
  color: rgba(238,231,216,0.55);
  border-color: rgba(238,231,216,0.25);
}

.pos-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 100px;
  align-items: start;
}
@media (max-width: 900px) {
  .pos-grid { grid-template-columns: 1fr; gap: 50px; }
}

.pos-portrait {
  margin: 0 0 36px;
  padding: 18px 18px 14px;
  border: 1px solid rgba(238,231,216,0.18);
  background: rgba(17,17,20,0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  position: relative;
  max-width: 300px;
}
.pos-portrait::before,
.pos-portrait::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--copper);
  pointer-events: none;
}
.pos-portrait::before { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.pos-portrait::after  { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.pos-portrait img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
  object-position: center bottom;
}
.pos-portrait figcaption {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(238,231,216,0.15);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pp-name {
  font-family: var(--f-display);
  font-size: 16px;
  color: var(--paper);
  letter-spacing: -0.005em;
}
.pp-role {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
}

.pos-lead p {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 78px);
  line-height: 1.05;
  color: var(--paper);
  margin-bottom: 6px;
}
.pos-lead p em {
  font-family: var(--f-italic);
  font-style: italic;
  color: var(--copper);
}

.pos-body p {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
  color: rgba(238,231,216,0.8);
  margin-bottom: 24px;
}
.pos-body p strong { color: var(--paper); font-weight: 400; }

.pos-tag {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--paper);
  padding: 20px 24px;
  border: 1px solid rgba(238,231,216,0.2);
}
.pos-tag .sep { color: var(--copper); }

/* ═══════════════════════════════════════════════════════════════
   ACT DIVIDER
   ═══════════════════════════════════════════════════════════════ */
.act-divider {
  background: transparent;
  padding: 40px 0;
}
.act-divider .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
}
.divider-line {
  flex: 1;
  height: 1px;
  background: var(--graphite);
}
.divider-mark {
  flex: none;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════
   ACT II — LIGHT
   ═══════════════════════════════════════════════════════════════ */
.act-two {
  background: var(--paper);
  color: var(--ink);
  position: relative;
}
.act-two section { padding: 140px 0; border-bottom: 1px solid var(--hairline); }
.act-two section:last-of-type { border-bottom: none; }

.act-two .sec-meta {
  color: var(--graphite);
  border-color: var(--ink);
}
.act-h {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 1100px;
  margin-bottom: 80px;
}
.act-h em { font-family: var(--f-italic); font-style: italic; color: var(--copper); }

/* ═════ specimen cards (Selected Work) ═════ */
.specimen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .specimen-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .specimen-grid { grid-template-columns: 1fr; } }

.specimen {
  background: var(--paper);
  border: 1px solid var(--hairline);
  padding: 28px 28px 24px;
  position: relative;
  transition: border-color 0.4s, transform 0.4s;
  display: flex;
  flex-direction: column;
}
.specimen::before, .specimen::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--copper);
  pointer-events: none;
}
.specimen::before { top: 10px; left: 10px; border-right: none; border-bottom: none; }
.specimen::after  { bottom: 10px; right: 10px; border-left: none; border-top: none; }
.specimen:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}

.specimen header {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.specimen .ref { color: var(--copper); font-weight: 700; }
.specimen .spec-idx { color: var(--graphite); }

.specimen h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
}
.specimen .sub {
  font-family: var(--f-italic);
  font-style: italic;
  color: var(--graphite);
  font-size: 14px;
  margin-bottom: 20px;
}

.spec-canvas {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 24px 0;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.spec-canvas canvas {
  width: 180px;
  height: 180px;
  display: block;
}

.specimen p.desc {
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  flex: 1;
  margin-bottom: 20px;
}
.specimen footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--hairline);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.specimen .stack-label { color: var(--copper); font-weight: 700; }
.specimen .stack-list { color: var(--graphite); text-align: right; }

.spec-metrics {
  list-style: none;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px dashed rgba(238,231,216,0.18);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.spec-metrics li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.m-value {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1;
  color: var(--copper);
  letter-spacing: -0.01em;
}
.m-label {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(238,231,216,0.65);
  line-height: 1.4;
}

.specimen-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 8px 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: gap 0.3s, border-color 0.3s;
}
.specimen-link:hover { gap: 10px; border-color: var(--copper); }

/* ═════ stack grid ═════ */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 80px;
}
@media (max-width: 900px) { .stack-grid { grid-template-columns: 1fr; gap: 50px; } }

.sblock h4 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 4px;
}
.sblock h4 .n {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--copper);
  font-weight: 700;
}
.sblock h4 .l { flex: 1; height: 1px; background: var(--hairline); }
.sblock p {
  font-family: var(--f-mono);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-soft);
  margin-top: 16px;
}

/* ═════ experience list ═════ */
.exp-list { list-style: none; }
.exp {
  display: grid;
  grid-template-columns: 48px 200px 1fr;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px dashed var(--hairline);
  align-items: start;
}
.exp:last-child { border-bottom: none; }
@media (max-width: 900px) {
  .exp { grid-template-columns: 48px 1fr; gap: 16px 20px; }
  .exp .exp-date { grid-column: 2; }
  .exp .exp-body { grid-column: 2; }
}

.exp-num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 28px;
  color: var(--copper);
  line-height: 1;
}
.exp-date {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--graphite);
  text-transform: uppercase;
  padding-top: 6px;
}
.exp-body h4 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 10px;
}
.exp-body h4 .co {
  color: var(--graphite);
  font-family: var(--f-italic);
  font-style: italic;
}
.exp-body p {
  font-family: var(--f-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 780px;
}

/* ═════ credentials ═════ */
.creds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
@media (max-width: 720px) { .creds-grid { grid-template-columns: 1fr; gap: 40px; } }

.creds-grid h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--copper);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}
.creds-grid ul { list-style: none; }
.creds-grid li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--hairline);
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-soft);
}
.creds-grid li .y {
  color: var(--copper);
  font-weight: 700;
  letter-spacing: 0.1em;
}

/* ═══════════════════════════════════════════════════════════════
   CLOSE (Act III — dark)
   ═══════════════════════════════════════════════════════════════ */
.close {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  padding: 180px 0 160px;
  overflow: hidden;
}
.close-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.55;
}
.close .wrap { position: relative; z-index: 2; }

.close-h {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 5.8vw, 88px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 32px;
  max-width: 1200px;
}
.close-h em { font-family: var(--f-italic); font-style: italic; color: var(--copper); }

.manifesto {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.55;
  color: rgba(238,231,216,0.65);
  max-width: 880px;
  margin-bottom: 100px;
}
.manifesto strong { color: var(--paper); font-weight: 400; }

.close-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}
.cv-hint {
  max-width: 760px;
  margin: 0 0 60px;
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(238,231,216,0.7);
}
.cv-hint em { color: var(--copper); font-style: italic; }
.cv-hint strong { color: var(--paper); font-weight: 700; font-style: normal; }
.close-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border: 1px solid rgba(238,231,216,0.35);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s, padding 0.3s;
}
.close-cta.primary {
  background: var(--copper);
  border-color: var(--copper);
}
.close-cta:hover {
  background: var(--copper);
  border-color: var(--copper);
  padding-right: 32px;
}
.close-cta.primary:hover {
  background: transparent;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(238,231,216,0.2);
}
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }

.c-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 0;
  padding: 32px 24px 32px 0;
  border-bottom: 1px solid rgba(238,231,216,0.15);
  border-right: 1px solid rgba(238,231,216,0.15);
  color: var(--paper);
  text-decoration: none;
  transition: padding 0.4s;
  position: relative;
}
.c-item:nth-child(2n) { padding-right: 0; border-right: none; padding-left: 24px; }
.c-item:nth-last-child(-n+2) { border-bottom: none; }
.c-item.non-link { pointer-events: none; opacity: 0.85; }

.c-label {
  grid-column: 1;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(238,231,216,0.7);
  text-transform: uppercase;
}
.c-value {
  grid-column: 1;
  font-family: var(--f-display);
  font-size: clamp(22px, 2.4vw, 34px);
  color: var(--paper);
  transition: color 0.3s;
  line-height: 1.2;
}
.c-arrow {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-family: var(--f-display);
  font-size: 28px;
  color: var(--copper);
  transition: transform 0.4s;
}
.c-item:hover .c-value { color: var(--copper); }
.c-item:hover .c-arrow { transform: translateX(8px); }

/* ═════ footer ═════ */
.foot {
  background: var(--ink);
  color: rgba(238,231,216,0.4);
  border-top: 1px solid rgba(238,231,216,0.15);
  padding: 28px 0;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.foot .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.foot .copper { color: var(--copper); }
.foot a {
  color: rgba(238,231,216,0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(238,231,216,0.25);
  transition: color 0.3s, border-color 0.3s;
}
.foot a:hover { color: var(--copper); border-color: var(--copper); }

/* ═══════════════════════════════════════════════════════════════
   HERO ADDITIONS — status dot, title typewriter, CTA, metrics
   ═══════════════════════════════════════════════════════════════ */

.status { display: inline-flex; align-items: center; gap: 10px; }
.status-dot {
  width: 7px; height: 7px;
  background: var(--copper);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 0 0 rgba(189,90,51,0.6);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(189,90,51,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(189,90,51,0); }
  100% { box-shadow: 0 0 0 0 rgba(189,90,51,0); }
}

/* new title typewriter style */
.title-line {
  display: block;
  overflow: visible;
  margin-bottom: 2px;
}
.title-line.sub em {
  font-family: var(--f-italic);
  font-style: italic;
  color: var(--copper);
}
.tw-line {
  display: inline-block;
  opacity: 0;
  transform: translateY(18%) translateZ(0);
  clip-path: inset(0 100% 0 0);
  transition:
    opacity 0.1s linear,
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.tw-line.in {
  opacity: 1;
  transform: translateY(0);
  clip-path: inset(0 0 0 0);
}

/* CTAs */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
  opacity: 0;
  animation: fadeIn 0.9s 2.4s forwards;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 26px;
  border: 1px solid rgba(238,231,216,0.35);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, color 0.4s, padding 0.4s;
  isolation: isolate;
}
.cta-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--copper);
  transform: translateX(-101%);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}
.cta-btn.primary {
  border-color: var(--copper);
  background: transparent;
}
.cta-btn.primary::before { transform: translateX(0); }
.cta-btn.primary .cta-label,
.cta-btn.primary .cta-arrow { color: var(--paper); }
.cta-btn:hover {
  border-color: var(--copper);
  padding-right: 30px;
}
.cta-btn:hover::before { transform: translateX(0); }
.cta-btn .cta-arrow {
  font-size: 14px;
  transition: transform 0.4s;
}
.cta-btn:hover .cta-arrow { transform: translate(4px, -2px); }

/* metric strip */
.hero-metrics {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 40px 48px;
  border-top: 1px solid rgba(238,231,216,0.18);
  border-bottom: 1px solid rgba(238,231,216,0.18);
  margin-top: 30px;
  opacity: 0;
  animation: fadeIn 0.9s 2.8s forwards;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 24px;
  border-right: 1px solid rgba(238,231,216,0.15);
  position: relative;
}
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: none; }
.metric-num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1;
  color: var(--paper);
  letter-spacing: -0.03em;
  display: block;
}
.metric-num::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--copper);
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: top;
  transform: translateY(6px);
}
.metric-unit {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--paper);
  text-transform: uppercase;
  margin-top: 4px;
}
.metric-sub {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 13px;
  color: var(--graphite);
}

@media (max-width: 900px) {
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 0;
    padding: 32px 24px;
  }
  .metric { padding: 0 16px; border-right: none; }
  .metric:nth-child(2n) { padding-right: 0; }
  .metric:nth-child(2n+1) { padding-left: 0; border-right: 1px solid rgba(238,231,216,0.15); }
}

/* ═══════════════════════════════════════════════════════════════
   THE TOOLING — code as artifact section
   ═══════════════════════════════════════════════════════════════ */

.tooling { background: var(--paper); }
.tooling-intro {
  max-width: 820px;
  font-family: var(--f-italic);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin-bottom: 70px;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 60px;
}
@media (max-width: 900px) { .code-grid { grid-template-columns: 1fr; gap: 20px; } }

.code-plate {
  background: var(--paper-2);
  border: 1px solid var(--hairline);
  padding: 28px 0 0;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.4s;
}
.code-plate:hover { border-color: var(--ink); }
.code-plate::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.code-plate.in::before { transform: scaleX(1); }

.plate-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  margin-bottom: 8px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.plate-ref { color: var(--copper); font-weight: 700; }
.plate-file { color: var(--graphite); }

.code-plate h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 0 28px;
  margin-bottom: 4px;
}
.plate-sub {
  font-family: var(--f-italic);
  font-style: italic;
  color: var(--graphite);
  font-size: 14px;
  padding: 0 28px;
  margin-bottom: 22px;
}

.plate-window {
  margin: 0 20px 20px;
  background: #14161A;
  border: 1px solid rgba(20,20,22,0.5);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(17,17,20,0.15);
}

.plate-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #1A1C20;
  border-bottom: 1px solid rgba(238,231,216,0.08);
}
.plate-chrome .cd {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #3A3C42;
}
.plate-chrome .cd:first-child { background: #D8784F; }
.plate-chrome .plate-tag {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: rgba(238,231,216,0.65);
  text-transform: uppercase;
}

.code {
  margin: 0;
  padding: 18px 0;
  font-family: "JetBrains Mono", "Consolas", monospace;
  font-size: 12.5px;
  line-height: 1.85;
  color: #E8DFC8;
  background: transparent;
  white-space: pre;
  overflow-x: auto;
}
.code-body { display: block; }
.code-line {
  display: block;
  padding: 0 20px;
  transition: background-color 0.3s;
}
.code-line:hover { background: rgba(189,90,51,0.08); }

.code .ln {
  display: inline-block;
  width: 28px;
  color: #8B3F1F;
  -webkit-user-select: none;
  user-select: none;
  font-weight: 700;
  margin-right: 10px;
  text-align: right;
  opacity: 0.75;
}
.code .k  { color: #D8784F; font-weight: 500; }          /* keyword */
.code .fn { color: #EED8C0; font-weight: 600; }          /* function name */
.code .s  { color: #C9A27A; }                            /* string */
.code .n  { color: #BD5A33; font-weight: 600; }          /* number */
.code .c  {
  color: #8F877A;
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 13.5px;
}
.code .at { color: #BD5A33; }                            /* decorator */

/* code line reveal (scroll-linked typewriter) */
.code-plate .code-line {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.code-plate.in .code-line { opacity: 1; transform: translateX(0); }
.code-plate.in .code-line:nth-child(1)  { transition-delay: 0.05s; }
.code-plate.in .code-line:nth-child(2)  { transition-delay: 0.12s; }
.code-plate.in .code-line:nth-child(3)  { transition-delay: 0.19s; }
.code-plate.in .code-line:nth-child(4)  { transition-delay: 0.26s; }
.code-plate.in .code-line:nth-child(5)  { transition-delay: 0.33s; }
.code-plate.in .code-line:nth-child(6)  { transition-delay: 0.40s; }
.code-plate.in .code-line:nth-child(7)  { transition-delay: 0.47s; }
.code-plate.in .code-line:nth-child(8)  { transition-delay: 0.54s; }
.code-plate.in .code-line:nth-child(9)  { transition-delay: 0.61s; }
.code-plate.in .code-line:nth-child(10) { transition-delay: 0.68s; }
.code-plate.in .code-line:nth-child(11) { transition-delay: 0.75s; }
.code-plate.in .code-line:nth-child(12) { transition-delay: 0.82s; }

.plate-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px 22px;
  border-top: 1px dashed var(--hairline);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--graphite);
}
.plate-metric { color: var(--copper); font-weight: 700; }
.plate-rule {
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

/* tooling closing tag */
.tooling-tag {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 0 0;
}
.tt-rule {
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.tt-text {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-soft);
  text-align: center;
  max-width: 640px;
}
.tt-text strong { color: var(--copper); font-style: normal; font-weight: 700; }

@media (max-width: 720px) {
  .tooling-tag { flex-direction: column; gap: 18px; }
  .tt-rule { width: 80px; flex: none; }
}

/* ═══════════════════════════════════════════════════════════════
   FULL-SITE NEURON — Act II is transparent so the fixed canvas
   shows through; components re-skinned for a dark background
   ═══════════════════════════════════════════════════════════════ */

html, body { background: var(--ink); }

.act-two {
  background: transparent;
  color: var(--paper);
  position: relative;
  z-index: 1;
}
.act-two section { border-bottom: 1px solid rgba(238,231,216,0.12); }
.act-two .sec-meta {
  color: rgba(238,231,216,0.55);
  border-color: rgba(238,231,216,0.25);
}
.act-two .act-h { color: var(--paper); }
.act-two .act-h em { color: var(--copper); }

/* tooling / code plates */
.tooling { background: transparent; }
.tooling-intro { color: rgba(238,231,216,0.85); }
.code-plate {
  background: rgba(17,17,20,0.82);
  border-color: rgba(238,231,216,0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.code-plate:hover { border-color: var(--copper); }
.code-plate h3 { color: var(--paper); }
.plate-sub { color: rgba(238,231,216,0.72); }
.plate-file { color: rgba(238,231,216,0.70); }
.plate-foot { border-top-color: rgba(238,231,216,0.18); color: rgba(238,231,216,0.75); }
.plate-rule { background: rgba(238,231,216,0.2); }
.tt-text { color: rgba(238,231,216,0.85); }
.tt-rule { background: rgba(238,231,216,0.25); }

/* specimen cards */
.specimen {
  background: rgba(17,17,20,0.82);
  border-color: rgba(238,231,216,0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.specimen:hover { border-color: var(--copper); }
.specimen h3 { color: var(--paper); }
.specimen .sub { color: rgba(238,231,216,0.72); }
.specimen .spec-idx { color: rgba(238,231,216,0.65); }
.specimen .spec-canvas {
  border-top-color: rgba(238,231,216,0.18);
  border-bottom-color: rgba(238,231,216,0.18);
}
.specimen p.desc { color: rgba(238,231,216,0.90); }
.specimen footer { border-top-color: rgba(238,231,216,0.18); }
.specimen .stack-list { color: rgba(238,231,216,0.70); }

/* stack / skills */
.sblock h4 { color: var(--paper); }
.sblock h4 .l { background: rgba(238,231,216,0.22); }
.sblock p { color: rgba(238,231,216,0.88); }

/* experience */
.exp { border-bottom-color: rgba(238,231,216,0.14); }
.exp-date { color: rgba(238,231,216,0.65); }
.exp-body h4 { color: var(--paper); }
.exp-body h4 .co { color: rgba(238,231,216,0.70); }
.exp-body p { color: rgba(238,231,216,0.88); }

/* credentials */
.creds-grid li {
  color: rgba(238,231,216,0.88);
  border-bottom-color: rgba(238,231,216,0.14);
}

/* act divider — just a single thin copper-dot row */
.act-divider .divider-line { background: rgba(238,231,216,0.2); }

/* close section — also transparent so neuron extends into it */
.close { background: transparent; position: relative; z-index: 1; }
.foot  { background: rgba(17,17,20,0.8); position: relative; z-index: 1; }

/* nav keeps its own backdrop blur, but 'light' state no longer fires */
.nav.light {
  background: rgba(17,17,20,0.72);
  color: var(--paper);
  border-bottom: 1px solid rgba(238,231,216,0.12);
}
.nav.light .nav-sig     { color: var(--paper); }
.nav.light .nav-links a { color: var(--paper); }
.nav.light .nav-cta,
.nav.light .nav-pdf     { color: var(--paper); border-color: rgba(238,231,216,0.35); }
.nav.light .nav-cta:hover,
.nav.light .nav-pdf:hover { background: var(--copper); border-color: var(--copper); color: var(--paper); }

/* ═════ CAPABILITIES — BrandiVibe-style service grid ═════ */
.capabilities-sec { padding: 140px 0; }

.cap-intro {
  max-width: 820px;
  font-family: var(--f-italic);
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: rgba(238,231,216,0.82);
  margin: -40px 0 60px;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .cap-grid { grid-template-columns: 1fr; } }

.cap-tile {
  background: rgba(17,17,20,0.82);
  border: 1px solid rgba(238,231,216,0.18);
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.4s, transform 0.3s;
}
.cap-tile:hover {
  border-color: var(--copper);
}

.cap-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cap-icon {
  width: 40px; height: 40px;
  border: 1px solid rgba(238,231,216,0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper);
  background: rgba(189,90,51,0.06);
}
.cap-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(238,231,216,0.7);
}
.cap-dot {
  width: 6px; height: 6px;
  background: var(--copper);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(189,90,51,0.6);
  animation: pulse 2s ease-out infinite;
}

.cap-tile h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 4px 0 0;
}
.cap-tile p {
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(238,231,216,0.82);
  margin: 0;
  flex: 1;
}

.cap-tile footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
  border-top: 1px dashed rgba(238,231,216,0.2);
  font-family: var(--f-mono);
  text-transform: uppercase;
}
.cap-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: rgba(238,231,216,0.7);
}
.cap-value {
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--copper);
  font-weight: 700;
}

/* ═════ RECOGNITION — text-tile grid ═════ */
.recognition-sec { padding: 140px 0; }
.rec-intro {
  max-width: 820px;
  font-family: var(--f-italic);
  font-style: italic;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: rgba(238,231,216,0.82);
  margin: -40px 0 56px;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1000px) { .rec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .rec-grid { grid-template-columns: 1fr; } }

.rec-card {
  background: rgba(17,17,20,0.82);
  border: 1px solid rgba(238,231,216,0.18);
  padding: 28px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.4s, transform 0.3s;
}
.rec-card:hover {
  border-color: var(--copper);
  transform: translateY(-3px);
}

.rec-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.rec-icon {
  width: 40px; height: 40px;
  border: 1px solid rgba(238,231,216,0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper);
  background: rgba(189,90,51,0.06);
  flex: none;
}
.rec-label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
}

.rec-value {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin-top: 4px;
}
.rec-meta {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(238,231,216,0.72);
  margin-top: 2px;
}

/* ═════ PRAISE — featured testimonial block ═════ */
.praise-sec { padding: 140px 0; }

.featured-quote {
  margin: 0;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  background: rgba(17,17,20,0.82);
  border: 1px solid rgba(238,231,216,0.18);
  padding: 56px clamp(28px, 5vw, 72px) 48px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: relative;
}
.featured-quote::before,
.featured-quote::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--copper);
  pointer-events: none;
}
.featured-quote::before { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.featured-quote::after  { bottom: 14px; right: 14px; border-left: none; border-top: none; }

.quote-credibility {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px 14px;
  padding: 10px 22px;
  border: 1px solid rgba(238,231,216,0.22);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(238,231,216,0.88);
  margin-bottom: 40px;
}
.quote-credibility .qc-num {
  color: var(--copper);
  font-weight: 700;
  font-size: 13px;
}
.quote-credibility .qc-cap { color: rgba(238,231,216,0.75); }
.quote-credibility .qc-sep { color: rgba(238,231,216,0.35); padding: 0 2px; }

.pull-quote {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(32px, 4.4vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin: 0 0 36px;
  max-width: 780px;
  margin-inline: auto;
}
.pull-quote em {
  font-family: var(--f-italic);
  font-style: italic;
  color: var(--copper);
}

.quote-body {
  margin: 0 0 44px;
  padding: 0;
  border: none;
  text-align: left;
  max-width: 720px;
  margin-inline: auto;
  color: rgba(238,231,216,0.88);
}
.quote-body p {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.7;
  margin: 0 0 18px;
}
.quote-body p:last-child { margin-bottom: 0; }

.quote-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 28px;
  border-top: 1px solid rgba(238,231,216,0.18);
  font-family: var(--f-mono);
}
.quote-caption .qc-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper);
}
.qc-dot {
  width: 7px; height: 7px;
  background: var(--copper);
  border-radius: 50%;
}
.quote-caption .qc-role {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 13px;
  color: rgba(238,231,216,0.7);
  text-transform: none;
  letter-spacing: 0;
}
.qc-link {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: gap 0.3s, border-color 0.3s;
}
.qc-link:hover { gap: 12px; border-color: var(--copper); }

@media (max-width: 720px) {
  .featured-quote { padding: 44px 24px 36px; }
  .quote-credibility { font-size: 10px; padding: 8px 16px; }
}

/* supporting quotes — appear below the featured quote once filled */
.support-quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}
@media (max-width: 720px) { .support-quotes { grid-template-columns: 1fr; } }
.support-quote {
  margin: 0;
  padding: 28px 28px 24px;
  background: rgba(17,17,20,0.75);
  border: 1px solid rgba(238,231,216,0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  position: relative;
}
.support-quote::before {
  content: "";
  position: absolute;
  left: 0; top: 28px;
  width: 2px; height: calc(100% - 56px);
  background: var(--copper);
}
.support-quote blockquote {
  margin: 0 0 18px;
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(238,231,216,0.9);
  padding-left: 18px;
}
.support-quote figcaption {
  font-family: var(--f-mono);
  padding-left: 18px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(238,231,216,0.65);
  line-height: 1.5;
  text-transform: uppercase;
}
.support-quote figcaption strong {
  display: block;
  color: var(--paper);
  font-weight: 700;
}

/* preserve a base fill so the canvas has real dark beneath it */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background: var(--ink);
  pointer-events: none;
}

/* ═════ A11Y — skip link + reduced motion ═════ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--copper);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-canvas { display: none; }
  .status-dot, .cap-dot, .qc-dot, .pre-bar-shine { animation: none !important; }
  .scroll-progress { display: none; }
  .tw-line {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
  .preloader { display: none !important; }
  body { opacity: 1 !important; }
}

/* ═════ Mobile perf — conditional backdrop-blur ═════ */
@media (max-width: 720px) {
  .specimen,
  .code-plate,
  .cap-tile,
  .rec-card,
  .featured-quote {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(17,17,20,0.94);
  }
}

/* ═══════════════════════════════════════════════════════════════
   SUB-PAGE SHELL — used by /about, /work, /services, /contact,
   /experience, /credentials, /code, /recognition, /praise and all
   their child pages.
   ═══════════════════════════════════════════════════════════════ */

.sub-hero {
  padding: 140px 0 60px;
  position: relative;
  z-index: 1;
}
.sub-hero .wrap { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 720px) { .sub-hero .wrap { padding: 0 24px; } }

.sub-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(238,231,216,0.7);
  margin-bottom: 18px;
}
.sub-meta .copper { color: var(--copper); font-weight: 700; }

.sub-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 110px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 0 0 18px;
}
.sub-sub {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.45;
  color: rgba(238,231,216,0.72);
  max-width: 900px;
  margin: 0;
}

.sub-body {
  padding-bottom: 140px;
  position: relative;
  z-index: 1;
}
.sub-body .wrap { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
@media (max-width: 720px) { .sub-body .wrap { padding: 0 24px; } }

.prose h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 48px 0 16px;
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  font-family: var(--f-mono);
  font-size: 14.5px;
  line-height: 1.75;
  color: rgba(238,231,216,0.88);
  margin: 0 0 16px;
  max-width: 780px;
}
.prose p strong { color: var(--paper); font-weight: 700; }
.prose p a { color: var(--copper); text-decoration: none; border-bottom: 1px solid rgba(189,90,51,0.4); padding-bottom: 1px; }
.prose p a:hover { border-bottom-color: var(--copper); }
.prose ul, .prose ol { list-style: none; padding: 0; margin: 16px 0; max-width: 780px; }
.prose ul li, .prose ol li {
  padding: 12px 0 12px 28px;
  border-bottom: 1px dashed rgba(238,231,216,0.15);
  position: relative;
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(238,231,216,0.88);
}
.prose ul li::before, .prose ol li::before {
  content: "";
  position: absolute;
  left: 0; top: 22px;
  width: 12px; height: 1px;
  background: var(--copper);
}
.prose strong { color: var(--paper); font-weight: 700; }
.prose em { color: var(--copper); font-style: italic; font-family: var(--f-italic); }
.prose .big-quote {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.5vw, 44px);
  line-height: 1.15;
  color: var(--paper);
  margin: 24px 0;
}
.prose .big-quote em {
  font-family: var(--f-italic);
  font-style: italic;
  color: var(--copper);
}
.prose-tag {
  margin-top: 32px;
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid rgba(238,231,216,0.2);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--paper);
}

.prose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 720px) { .prose-grid { grid-template-columns: 1fr; gap: 36px; } }
.prose-grid h2 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--copper);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.cred-list { list-style: none; padding: 0; margin: 0; }
.cred-list li {
  padding: 12px 0;
  border-bottom: 1px dashed rgba(238,231,216,0.15);
  font-family: var(--f-mono);
  font-size: 13.5px;
  color: rgba(238,231,216,0.88);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.cred-list li span:first-child { color: var(--paper); font-weight: 700; }
.cred-list .y { color: var(--copper); font-weight: 700; letter-spacing: 0.1em; }

/* ═════ work index grid ═════ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 720px) { .work-grid { grid-template-columns: 1fr; } }
.work-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px 28px;
  background: rgba(17,17,20,0.82);
  border: 1px solid rgba(238,231,216,0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-decoration: none;
  transition: border-color 0.3s, transform 0.3s;
}
.work-card:hover { border-color: var(--copper); transform: translateY(-3px); }
.work-card .wc-idx {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--copper);
  font-weight: 700;
}
.work-card h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.15;
  color: var(--paper);
  margin: 0;
}
.work-card .wc-metric {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
  margin: 0;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(238,231,216,0.2);
  margin-bottom: 8px;
}
.work-card p {
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(238,231,216,0.82);
  margin: 0;
  flex: 1;
}
.work-card .wc-arrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
  margin-top: 12px;
}
.work-card .wc-arrow span { transition: margin-left 0.3s; }
.work-card:hover .wc-arrow span { margin-left: 6px; }

/* ═════ services index grid ═════ */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 1000px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px 22px;
  background: rgba(17,17,20,0.82);
  border: 1px solid rgba(238,231,216,0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-decoration: none;
  transition: border-color 0.3s, transform 0.3s;
}
.svc-card:hover { border-color: var(--copper); transform: translateY(-3px); }
.svc-card .sc-idx {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  color: var(--copper);
  font-weight: 700;
}
.svc-card h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 24px;
  color: var(--paper);
  margin: 0;
}
.svc-card p {
  font-family: var(--f-mono);
  font-size: 12.5px;
  line-height: 1.65;
  color: rgba(238,231,216,0.82);
  margin: 0;
  flex: 1;
}
.svc-card .sc-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 12px;
  border-top: 1px dashed rgba(238,231,216,0.2);
  font-family: var(--f-mono);
  text-transform: uppercase;
  margin-top: 8px;
}
.svc-card .sc-label { font-size: 9.5px; letter-spacing: 0.22em; color: rgba(238,231,216,0.6); }
.svc-card .sc-value { font-size: 12px; letter-spacing: 0.15em; color: var(--copper); font-weight: 700; }

/* ═════ service detail summary ═════ */
.svc-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
  padding: 24px 28px;
  background: rgba(17,17,20,0.55);
  border: 1px solid rgba(238,231,216,0.18);
}
@media (max-width: 720px) { .svc-summary { grid-template-columns: 1fr; } }
.svc-summary .svc-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
  margin-bottom: 6px;
}
.svc-summary .svc-value {
  display: block;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 18px;
  color: var(--paper);
  line-height: 1.3;
}

/* ═════ experience long page ═════ */
.exp-long { list-style: none; padding: 0; margin: 40px 0; max-width: 900px; }
.exp-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px dashed rgba(238,231,216,0.18);
}
@media (max-width: 900px) { .exp-row { grid-template-columns: 1fr; gap: 10px; } }
.er-date {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
  padding-top: 6px;
}
.er-body h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 24px;
  color: var(--paper);
  line-height: 1.2;
  margin: 0 0 10px;
}
.er-body h3 .er-co { color: rgba(238,231,216,0.65); font-style: italic; font-family: var(--f-italic); }
.er-body p {
  font-family: var(--f-mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: rgba(238,231,216,0.88);
  margin: 0;
}

/* ═════ code page teasers ═════ */
.code-plate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 720px) { .code-plate-grid { grid-template-columns: 1fr; } }
.code-plate-teaser {
  padding: 28px 26px 24px;
  background: rgba(17,17,20,0.82);
  border: 1px solid rgba(238,231,216,0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.code-plate-teaser header {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.code-plate-teaser .plate-ref { color: var(--copper); font-weight: 700; }
.code-plate-teaser .plate-file { color: rgba(238,231,216,0.7); }
.code-plate-teaser h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 24px;
  color: var(--paper);
  margin: 0 0 4px;
}
.code-plate-teaser p {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 14px;
  color: rgba(238,231,216,0.72);
  margin: 0 0 14px;
}
.code-plate-teaser footer {
  padding-top: 12px;
  border-top: 1px dashed rgba(238,231,216,0.2);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.code-plate-teaser .plate-metric { color: var(--copper); font-weight: 700; }

/* ═══════════════════════════════════════════════════════════════
   SITE FOOTER — used on every sub-page, will replace the simpler
   footer on the landing page in a follow-up edit.
   ═══════════════════════════════════════════════════════════════ */
.site-foot {
  background: rgba(11,11,14,0.96);
  color: rgba(238,231,216,0.72);
  border-top: 1px solid rgba(238,231,216,0.12);
  padding: 80px 0 30px;
  position: relative;
  z-index: 2;
}
.site-foot .wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 720px) { .site-foot .wrap { padding: 0 24px; } }
.sf-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(238,231,216,0.12);
}
@media (max-width: 900px) { .sf-top { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 480px) { .sf-top { grid-template-columns: 1fr; gap: 28px; } }
.sf-col h5 {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
  margin: 0 0 16px;
}
.sf-col p {
  font-family: var(--f-italic);
  font-style: italic;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(238,231,216,0.72);
  margin: 0;
  max-width: 280px;
}
.sf-col ul { list-style: none; padding: 0; margin: 0; }
.sf-col li { margin-bottom: 8px; }
.sf-col a {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: rgba(238,231,216,0.82);
  text-decoration: none;
  transition: color 0.2s;
}
.sf-col a:hover { color: var(--copper); }

.sf-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 30px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(238,231,216,0.55);
}
.sf-bottom .copper { color: var(--copper); }
.sf-bottom a { color: rgba(238,231,216,0.7); text-decoration: none; border-bottom: 1px solid rgba(238,231,216,0.2); padding-bottom: 2px; }
.sf-bottom a:hover { color: var(--copper); border-color: var(--copper); }

/* Hide the old .foot on pages that now use .site-foot */
.site-foot ~ .foot { display: none; }


/* ═══════════════════════════════════════════════════════════════
   MOBILE MENU — hamburger + full-screen drawer
   Desktop hides the burger; below 900px the nav links collapse
   into a touch-friendly drawer triggered by the burger.
   ═══════════════════════════════════════════════════════════════ */

.nav-burger {
  display: none;
  background: transparent;
  border: 1px solid rgba(238,231,216,0.35);
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border-radius: 2px;
  transition: border-color 0.25s, background 0.25s;
  margin-left: 4px;
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--paper);
  transition: transform 0.3s, opacity 0.25s;
}
.nav.light .nav-burger { border-color: rgba(238,231,216,0.35); }
.nav.light .nav-burger span { background: var(--paper); }
body.nav-open .nav-burger { border-color: var(--copper); }
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 90;                 /* below nav (z:100) so burger stays clickable */
  background: rgba(17,17,20,0.98);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 96px 28px 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s 0.35s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
body.nav-open .nav-mobile {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s;
}
.nav-mobile-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-mobile-links a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 18px 6px;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--f-display);
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(238,231,216,0.12);
  transition: color 0.2s, padding-left 0.3s;
  min-height: 48px;
}
.nav-mobile-links a::before {
  content: attr(data-n);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--copper);
  flex: 0 0 auto;
}
.nav-mobile-links a:hover,
.nav-mobile-links a:focus-visible { padding-left: 14px; color: var(--copper); }
.nav-mobile-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(238,231,216,0.72);
}
.nav-mobile-foot a {
  color: var(--paper);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(238,231,216,0.12);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-mobile-foot a:last-child { text-transform: none; letter-spacing: 0.08em; font-size: 12px; }
.nav-mobile-foot a:hover { color: var(--copper); }

/* Show burger + lock scroll only below 900px */
@media (max-width: 900px) {
  .nav-burger { display: flex; }
  body.nav-open { overflow: hidden; touch-action: none; }
}
@media (min-width: 901px) {
  .nav-mobile { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE TROUBLE-SPOT FIXES — hero top-bar wrap, preloader sizing,
   smaller section padding, safer tap targets.
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 720px) {
  /* Hero top bar: stack status + location vertically, trim extra copy */
  .hero-top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 64px;
  }
  .tb-right { align-items: flex-start; }
  .tb-right .mono-11 { font-size: 10px; letter-spacing: 0.18em; }

  /* Hero title: tighten clamp so "Muraduzzaman." fits 320px viewports */
  .title-line.big { font-size: clamp(48px, 14vw, 96px); }
  .title-line    { font-size: clamp(22px, 5.5vw, 32px); }
  .hero-lede     { font-size: clamp(15px, 4.2vw, 20px); }

  /* Heavy top/bottom padding shrinks on small screens */
  .positioning        { padding: 90px 0; }
  .capabilities-sec   { padding: 80px 0; }

  /* Minimum tap target on CTA buttons */
  .cta-btn { min-height: 48px; }
}

@media (max-width: 480px) {
  /* Preloader headline — 12-char name goes very big via display font.
     Scale it down further at phone widths so it never overflows. */
  .pre-name      { font-size: clamp(34px, 13vw, 60px) !important; letter-spacing: -0.015em; }
  .pre-tagline   { font-size: 13px; padding: 0 6px; }
  .pre-kicker    { font-size: 9.5px; letter-spacing: 0.18em; }
  .pre-progress  { padding: 0 14px 28px; }

  /* Hero metric numbers: keep readable without blowing up the card */
  .metric-num { font-size: clamp(36px, 11vw, 60px); }
  .metric-unit { font-size: 10px; letter-spacing: 0.22em; }
  .metric-sub { font-size: 12px; }

  /* Nav CTA pills stay compact */
  .nav-cta, .nav-pdf { padding: 10px 10px; }
  .nav-inner { gap: 6px; }
}

/* Accessibility: reduced-motion users skip the drawer slide */
@media (prefers-reduced-motion: reduce) {
  .nav-mobile,
  .nav-burger span { transition: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT FORM — professional project inquiry form
   ═══════════════════════════════════════════════════════════════ */

.contact-form-wrap {
  margin: 40px 0 20px;
  padding: 48px 48px 40px;
  border: 1px solid rgba(238,231,216,0.22);
  background: rgba(17,17,20,0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: relative;
}
.contact-form-wrap::before,
.contact-form-wrap::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--copper);
}
.contact-form-wrap::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.contact-form-wrap::after  { bottom: -1px; right: -1px; border-left: none; border-top: none; }

@media (max-width: 720px) {
  .contact-form-wrap { padding: 28px 22px 26px; }
}

.cf-head { margin-bottom: 32px; border-bottom: 1px solid rgba(238,231,216,0.18); padding-bottom: 22px; }
.cf-head h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--paper);
  margin: 0 0 10px;
}
.cf-head p {
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(238,231,216,0.80);
  max-width: 640px;
  margin: 0;
}
.cf-head p strong { color: var(--copper); font-weight: 700; }

.contact-form { display: flex; flex-direction: column; gap: 22px; }

.cf-row { display: grid; gap: 22px; }
.cf-row.two   { grid-template-columns: 1fr 1fr; }
.cf-row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 720px) {
  .cf-row.two, .cf-row.three { grid-template-columns: 1fr; gap: 18px; }
}

.cf-field { display: flex; flex-direction: column; gap: 8px; position: relative; }
.cf-field label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 700;
}
.cf-field label .req { color: var(--copper); }
.cf-field label .opt {
  color: rgba(238,231,216,0.45);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: none;
  font-size: 10px;
  margin-left: 4px;
}

.cf-field input,
.cf-field select,
.cf-field textarea {
  width: 100%;
  background: rgba(17,17,20,0.55);
  border: 1px solid rgba(238,231,216,0.22);
  color: var(--paper);
  padding: 12px 14px;
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.5;
  border-radius: 2px;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  -webkit-appearance: none;
  appearance: none;
}
.cf-field textarea { min-height: 140px; resize: vertical; }
.cf-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23BD5A33' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: var(--copper);
  background: rgba(17,17,20,0.80);
  box-shadow: 0 0 0 3px rgba(189,90,51,0.18);
}
.cf-field input:invalid:not(:placeholder-shown),
.cf-field textarea:invalid:not(:placeholder-shown) { border-color: #d35555; }

.cf-counter {
  align-self: flex-end;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: rgba(238,231,216,0.50);
  margin-top: -4px;
}
.cf-counter.warn { color: #d8784f; }

.cf-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cf-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--copper);
  color: var(--paper);
  border: 1px solid var(--copper);
  padding: 14px 28px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  border-radius: 2px;
  min-height: 48px;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.cf-submit:hover { background: transparent; color: var(--copper); }
.cf-submit:hover svg path { stroke: var(--copper); }
.cf-submit:active { transform: translateY(1px); }
.cf-submit:disabled { cursor: not-allowed; opacity: 0.65; }
.cf-submit.loading .cf-submit-label::after {
  content: "…";
  animation: cfDots 1.4s infinite;
}
@keyframes cfDots { 0%,100%{opacity:.2} 50%{opacity:1} }
.cf-submit.loading svg { animation: cfSpin 1.2s linear infinite; }
@keyframes cfSpin { to { transform: rotate(360deg); } }

.cf-meta {
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: rgba(238,231,216,0.55);
  margin: 0;
  flex: 1;
  min-width: 240px;
}

.cf-success,
.cf-error {
  margin-top: 8px;
  padding: 22px 24px;
  border: 1px solid;
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: 14px;
  line-height: 1.7;
}
.cf-success {
  border-color: #4a8a5e;
  background: rgba(46,94,58,0.14);
  color: var(--paper);
}
.cf-success strong { color: #8fd1a0; display: block; margin-bottom: 6px; letter-spacing: 0.05em; }
.cf-error {
  border-color: #d35555;
  background: rgba(211,85,85,0.12);
  color: var(--paper);
}
.cf-error strong { color: #e07a7a; display: block; margin-bottom: 6px; letter-spacing: 0.05em; }
.cf-success a, .cf-error a { color: var(--copper); border-bottom: 1px solid var(--copper); padding-bottom: 1px; }
