/* ==========================================================================
   WENG — China Sourcing Advisory
   Design system: Swiss/German engineering consultancy × editorial journal
   ========================================================================== */

:root {
  --green: #0f3d2a;
  --green-deep: #0a2b1e;
  --ivory: #f4f1e8;
  --paper: #fdfcf7;
  --ink: #17211c;
  --brass: #a9853f;
  --alert: #b4472f;
  --line: rgba(15, 61, 42, 0.22);
  --line-soft: rgba(15, 61, 42, 0.12);
  --line-faint: rgba(15, 61, 42, 0.07);
  --muted: rgba(23, 33, 28, 0.66);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --wrap: 1140px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--ivory);
  /* faint engineering-grid paper texture */
  background-image:
    linear-gradient(var(--line-faint) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-faint) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass); }
h1, h2, h3, h4 { margin: 0 0 0.5em; font-family: var(--font-display); font-weight: 400; line-height: 1.12; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
::selection { background: var(--green); color: var(--ivory); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.wrap.narrow { max-width: 780px; }
.section { padding: 88px 0; border-top: 1px solid var(--line-soft); }
.section:first-of-type { border-top: 0; }
.section-plain { padding: 72px 0; }

/* ---------- Eyebrow / section numbering ---------- */
.eyebrow {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow .no { color: var(--brass); }
.eyebrow::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
  transform: translateY(-3px);
}

/* ---------- Type helpers ---------- */
.lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 46em;
}
.small { font-size: 14px; color: var(--muted); }
.mono { font-family: var(--font-mono); }
.sig {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--green);
}
.display-italic { font-style: italic; font-weight: 300; }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 22px; }

/* ---------- Ruler ornament (engineering scale) ---------- */
.ruler {
  height: 12px;
  border: 0;
  margin: 0 0 34px;
  background-image:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, var(--line-soft) 0 1px, transparent 1px 8px);
  background-size: 100% 12px, 100% 6px;
  background-repeat: repeat-x;
  background-position: bottom left, bottom left;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 241, 232, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}
.brand { text-decoration: none; color: var(--ink); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--green);
}
.brand-sub {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-list {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.nav-list a:hover::after,
.nav-list a.active::after { transform: scaleX(1); }
.nav-list a.active { color: var(--green); }
.nav-toggle {
  display: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 14px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding: 110px 0 84px; }
.hero h1 {
  font-size: clamp(44px, 7.2vw, 88px);
  font-weight: 350;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  max-width: 12em;
}
.hero .sig { margin-top: 30px; }
.hero-actions { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--ivory);
  transition: background 0.25s ease, color 0.25s ease;
}
.btn:hover { background: var(--green-deep); color: var(--ivory); }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green); color: var(--ivory); }
.link-line {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--brass);
  padding-bottom: 3px;
  color: var(--green);
}
.link-line:hover { color: var(--brass); }

/* ---------- Stats band ---------- */
.stats-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 40px 30px 36px;
  border-left: 1px solid var(--line-soft);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(34px, 3.6vw, 48px);
  line-height: 1;
  color: var(--green);
  margin-bottom: 12px;
}
.stat-num sup { font-size: 0.42em; letter-spacing: 0.08em; color: var(--brass); }
.stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.cell {
  background: var(--paper);
  padding: 34px 30px;
}
.cell .cell-no {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--brass);
  margin-bottom: 16px;
}
.cell h3 { font-size: 20px; margin-bottom: 10px; }
.cell p { font-size: 15.5px; color: var(--muted); margin-bottom: 0; }

/* ---------- Dimension line (engineering annotation) ---------- */
.dim {
  position: relative;
  height: 1px;
  background: var(--line);
  margin: 0 0 26px;
}
.dim::before, .dim::after {
  content: "";
  position: absolute;
  top: -3.5px;
  width: 0;
  height: 0;
  border-style: solid;
}
.dim::before { left: 0; border-width: 4px 7px 4px 0; border-color: transparent var(--green) transparent transparent; }
.dim::after { right: 0; border-width: 4px 0 4px 7px; border-color: transparent transparent transparent var(--green); }
.dim .dim-label {
  position: absolute;
  left: 50%;
  top: -0.85em;
  transform: translateX(-50%);
  padding: 0 12px;
  background: var(--ivory);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- Annotation note (drawing callout style) ---------- */
.annot {
  position: relative;
  margin: 22px 0 0;
  padding: 14px 16px 14px 22px;
  border-left: 1px solid var(--green);
  font-size: 14px;
  color: var(--muted);
}
.annot::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 0;
  width: 7px;
  height: 7px;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: var(--ivory);
}
.annot .annot-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 6px;
}

/* ---------- Process timeline ---------- */
.timeline { position: relative; margin-top: 56px; }
.timeline-track {
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.timeline-track::before, .timeline-track::after {
  content: "";
  position: absolute;
  top: -3.5px;
  border-style: solid;
}
.timeline-track::before { left: 0; border-width: 4px 7px 4px 0; border-color: transparent var(--green) transparent transparent; }
.timeline-track::after { right: 0; border-width: 4px 0 4px 7px; border-color: transparent transparent transparent var(--green); }
.timeline-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tstep { padding-top: 34px; position: relative; }
.tstep::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 11px;
  height: 11px;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: var(--ivory);
}
.tstep .t-no {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--brass);
  margin-bottom: 8px;
}
.tstep h3 { font-size: 18px; margin-bottom: 6px; }
.tstep p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ---------- Spec table ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.spec-table th, .spec-table td {
  text-align: left;
  vertical-align: top;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
}
.spec-table thead th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.spec-table td:first-child {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--green);
  white-space: nowrap;
}
.spec-table .v { font-family: var(--font-mono); font-size: 14px; }
.spec-table .pass { color: var(--green); }
.spec-table .fail { color: var(--alert); font-weight: 500; }

/* ---------- Stamp (rejected mark) ---------- */
.stamp {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--alert);
  border: 2px solid var(--alert);
  border-radius: 3px;
  padding: 10px 16px;
  transform: rotate(-6deg);
  box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 3.5px var(--alert);
  opacity: 0.92;
  user-select: none;
}
.stamp.small { font-size: 10.5px; padding: 7px 11px; letter-spacing: 0.16em; }

/* ---------- Field notes (case studies) ---------- */
.fieldnote {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 44px 44px 40px;
  margin-bottom: 56px;
}
.fieldnote-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 22px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.fieldnote-head .fn-id {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}
.fieldnote-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  padding: 18px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.fieldnote-meta .m-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.fieldnote-meta .m-value { font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.fn-block { margin-bottom: 24px; }
.fn-block h3 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}
.fn-block p { color: var(--ink); margin-bottom: 0.6em; }
.fn-block p.muted { color: var(--muted); }

/* ---------- Principles (What I don't do) ---------- */
.principles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.principles li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.principles .p-no {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--alert);
}
.principles .p-no::before { content: "× "; }
.principles p { margin: 0; font-size: 17px; }

/* ---------- Tick list ---------- */
.tick-list { list-style: none; padding: 0; margin: 0 0 1em; }
.tick-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px solid var(--line-soft);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 19px;
  width: 14px;
  height: 1px;
  background: var(--brass);
}

/* ---------- Engagement tiers ---------- */
.tier { display: flex; flex-direction: column; }
.tier h3 { font-size: 24px; }
.tier .tier-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}
.tier .tier-scope { font-size: 15px; color: var(--muted); flex: 1; }
.tier .tier-foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

/* ---------- CTA band ---------- */
.cta-band {
  border-top: 1px solid var(--line);
  background: var(--green);
  color: var(--ivory);
  padding: 84px 0;
}
.cta-band h2 { color: var(--ivory); }
.cta-band p { color: rgba(244, 241, 232, 0.75); max-width: 44em; }
.cta-band .btn { border-color: var(--ivory); background: var(--ivory); color: var(--green); }
.cta-band .btn:hover { background: transparent; color: var(--ivory); }
.cta-band .btn-ghost { background: transparent; color: var(--ivory); border-color: rgba(244,241,232,0.5); }
.cta-band .btn-ghost:hover { border-color: var(--ivory); }
.cta-band a.inline-mail { color: var(--ivory); border-bottom: 1px solid var(--brass); text-decoration: none; padding-bottom: 3px; }
.cta-band .sig { color: rgba(244, 241, 232, 0.85); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; }
.method { border-top: 1px solid var(--line); padding: 22px 0; }
.method-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.method-value { font-family: var(--font-mono); font-size: 17px; margin-bottom: 6px; }
.method-note { font-size: 14px; color: var(--muted); margin: 0; }
.tz-note {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  background: var(--paper);
  font-size: 14px;
  color: var(--muted);
}
.tz-note .mono { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); display: block; margin-bottom: 6px; }

.contact-form { border: 1px solid var(--line); background: var(--paper); padding: 36px; }
.field { margin-bottom: 22px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  padding: 8px 0 10px;
  border-radius: 0;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--green); }
.form-note { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--ivory);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-inner p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.footer-nav { display: flex; gap: 22px; }
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
}
.footer-nav a:hover { color: var(--green); }

/* ---------- Animation: staggered fade-up + scroll reveal ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.anim { opacity: 0; animation: fadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards; }
.anim-d1 { animation-delay: 0.08s; }
.anim-d2 { animation-delay: 0.18s; }
.anim-d3 { animation-delay: 0.3s; }
.anim-d4 { animation-delay: 0.42s; }
.anim-d5 { animation-delay: 0.54s; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal, .no-io .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .anim, .reveal { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding-left: 24px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .timeline-track { display: none; }
  .timeline-steps { grid-template-columns: 1fr; gap: 0; }
  .tstep { padding: 0 0 28px 30px; border-left: 1px solid var(--line); }
  .tstep::before { top: 5px; left: -6px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .fieldnote { padding: 30px 24px; }
  .fieldnote-meta { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .hero { padding: 72px 0 60px; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 32px 20px;
  }
  .nav-list.open { display: flex; }
  .nav-list li { border-top: 1px solid var(--line-soft); }
  .nav-list a { display: block; padding: 14px 0; }
  .site-header { position: relative; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line-soft); padding: 28px 0 26px; }
  .stat:first-child { border-top: 0; }
  .contact-form { padding: 26px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-inner > * { max-width: 100%; }
  .footer-nav { flex-wrap: wrap; row-gap: 10px; }
  .fieldnote-meta { grid-template-columns: 1fr; gap: 14px; }
  .spec-table th, .spec-table td { padding: 12px 12px; }
}

/* ==========================================================================
   v3 — Engineering control centre
   ========================================================================== */

:root {
  --green-mid: #17553b;
  --ivory-dim: rgba(244, 241, 232, 0.68);
  --paper-warm: #f8f5ec;
  --shadow-sm: 0 12px 30px rgba(10, 43, 30, 0.06);
  --shadow-lg: 0 30px 80px rgba(5, 28, 19, 0.18);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }
main { overflow: clip; }
.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 100; height: 2px; pointer-events: none; background: var(--brass); transform: scaleX(0); transform-origin: left; }
.site-header { transition: box-shadow 0.25s ease, background 0.25s ease; }
.site-header.scrolled { box-shadow: 0 8px 24px rgba(10, 43, 30, 0.07); }
.nav-list { gap: clamp(15px, 1.75vw, 26px); align-items: center; }
.nav-list a { font-size: 11px; letter-spacing: 0.11em; white-space: nowrap; }
.nav-list a.nav-cta { border: 1px solid var(--green); padding: 10px 13px; color: var(--green); }
.nav-list a.nav-cta::after { display: none; }
.nav-list a.nav-cta:hover { background: var(--green); color: var(--ivory); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 50px; cursor: pointer; transition: transform 0.25s var(--ease-out), background 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn .arrow { font-size: 16px; line-height: 1; transition: transform 0.25s var(--ease-out); }
.btn:hover .arrow { transform: translate(3px, -3px); }
.btn-light { background: var(--ivory); border-color: var(--ivory); color: var(--green-deep); }
.btn-light:hover { background: transparent; color: var(--ivory); }
.btn-small { min-height: 42px; padding: 11px 17px; font-size: 10.5px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.text-button { padding: 0; border: 0; border-bottom: 1px solid var(--brass); background: none; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); cursor: pointer; }
.text-button:hover { color: var(--brass); }

/* Home hero — dark technical drawing */
.home-hero { position: relative; isolation: isolate; min-height: calc(100svh - 69px); display: flex; align-items: center; padding: clamp(76px, 9vw, 126px) 0 84px; overflow: hidden; background: radial-gradient(circle at 78% 34%, rgba(62, 118, 87, 0.26), transparent 32%), var(--green-deep); color: var(--ivory); }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(244, 241, 232, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 241, 232, 0.045) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, #000, rgba(0,0,0,0.28)); }
.home-hero::after { content: "W / 01"; position: absolute; right: 28px; bottom: 18px; z-index: -1; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; color: rgba(244, 241, 232, 0.35); writing-mode: vertical-rl; }
.home-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(370px, 0.88fr); gap: clamp(48px, 7vw, 96px); align-items: center; }
.home-hero .eyebrow { color: rgba(244, 241, 232, 0.74); }
.home-hero .eyebrow::after { background: rgba(244, 241, 232, 0.25); }
.home-hero h1 { max-width: 8.5em; margin-bottom: 30px; color: var(--ivory); font-size: clamp(58px, 7.2vw, 102px); font-weight: 300; line-height: 0.98; letter-spacing: -0.035em; }
.home-hero h1 .display-italic { color: #d5c29b; }
.home-hero .lead { max-width: 37em; color: var(--ivory-dim); font-size: clamp(17px, 1.5vw, 20px); }
.home-hero .sig { color: #d5c29b; font-size: 20px; }
.home-hero .hero-actions { margin-top: 32px; }
.home-hero .link-line { color: var(--ivory); border-color: var(--brass); }
.hero-credentials { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 42px 0 0; padding: 20px 0 0; border-top: 1px solid rgba(244, 241, 232, 0.16); list-style: none; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; line-height: 1.7; text-transform: uppercase; color: rgba(244, 241, 232, 0.55); }
.hero-credentials li { position: relative; }
.hero-credentials li + li::before { content: "/"; position: absolute; left: -15px; color: var(--brass); }
.hero-visual { position: relative; perspective: 1000px; }
.blueprint { position: relative; aspect-ratio: 1 / 1.08; border: 1px solid rgba(244, 241, 232, 0.28); background: linear-gradient(rgba(244, 241, 232, 0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 241, 232, 0.055) 1px, transparent 1px), rgba(15, 61, 42, 0.24); background-size: 28px 28px; box-shadow: var(--shadow-lg); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.35s var(--ease-out); }
.blueprint::before, .blueprint::after { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--brass); }
.blueprint::before { top: 12px; left: 12px; border-top: 1px solid; border-left: 1px solid; }
.blueprint::after { right: 12px; bottom: 12px; border-right: 1px solid; border-bottom: 1px solid; }
.blueprint svg { display: block; width: 100%; height: 100%; }
.blueprint .draw-line { fill: none; stroke: rgba(244, 241, 232, 0.72); stroke-width: 1.15; vector-effect: non-scaling-stroke; }
.blueprint .draw-faint { fill: none; stroke: rgba(244, 241, 232, 0.24); stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.blueprint .draw-accent { fill: none; stroke: #c8a968; stroke-width: 1; vector-effect: non-scaling-stroke; }
.blueprint .draw-fill { fill: rgba(244, 241, 232, 0.035); stroke: rgba(244, 241, 232, 0.65); stroke-width: 1; }
.blueprint text { fill: rgba(244, 241, 232, 0.58); font-family: var(--font-mono); font-size: 8px; letter-spacing: 1.2px; }
.drawing-rotate { transform-origin: 250px 246px; animation: drawingRotate 70s linear infinite; }
@keyframes drawingRotate { to { transform: rotate(360deg); } }
.blueprint-label { position: absolute; padding: 11px 13px; border: 1px solid rgba(244, 241, 232, 0.2); background: rgba(10, 43, 30, 0.88); backdrop-filter: blur(8px); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; line-height: 1.6; text-transform: uppercase; color: rgba(244, 241, 232, 0.72); }
.blueprint-label strong { display: block; color: #d5c29b; font-weight: 500; }
.blueprint-label.label-a { top: 8%; left: -22px; }
.blueprint-label.label-b { right: -18px; bottom: 20%; }
.blueprint-caption { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.13em; text-transform: uppercase; color: rgba(244, 241, 232, 0.46); }

/* Interior heroes and section composition */
.page-hero { position: relative; padding: 92px 0 76px; overflow: hidden; }
.page-hero::before { content: attr(data-page); position: absolute; right: max(32px, calc((100vw - var(--wrap)) / 2 + 32px)); top: 36px; font-family: var(--font-mono); font-size: clamp(100px, 17vw, 220px); line-height: 1; color: rgba(15, 61, 42, 0.035); pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { max-width: 13.5em; font-size: clamp(46px, 6.2vw, 78px); }
.page-hero .lead { max-width: 48em; }
.hero-index { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 34px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); }
.hero-index span { display: inline-flex; align-items: center; gap: 8px; }
.hero-index span::before { content: ""; width: 14px; height: 1px; background: var(--brass); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr); gap: 64px; align-items: end; margin-bottom: 48px; }
.section-head h2 { max-width: 16em; margin-bottom: 0; }
.section-head .lead { font-size: 17px; margin-bottom: 0; }
.section-kicker { margin-bottom: 16px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.section-dark { background: var(--green-deep); color: var(--ivory); border-top-color: rgba(244,241,232,0.12); }
.section-dark h2, .section-dark h3 { color: var(--ivory); }
.section-dark .lead, .section-dark .small { color: var(--ivory-dim); }
.section-dark .eyebrow { color: var(--ivory-dim); }
.section-dark .eyebrow::after { background: rgba(244,241,232,0.2); }
/* Light cards placed inside a dark band keep ink-coloured type */
.section-dark .cell, .section-dark .cell h2, .section-dark .cell h3 { color: var(--ink); }
.section-dark .cell p { color: var(--muted); }

/* Evidence and linked cells */
.stats-band { position: relative; }
.stat { position: relative; }
.stat::after { content: ""; position: absolute; top: 40px; right: 24px; width: 5px; height: 5px; border: 1px solid var(--brass); border-radius: 50%; }
.stat-num { font-variant-numeric: tabular-nums; }
.stat-label { max-width: 24em; }
.evidence-ribbon { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--paper); }
.evidence-item { padding: 26px 28px; border-left: 1px solid var(--line-soft); }
.evidence-item:first-child { border-left: 0; }
.evidence-item strong { display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 22px; font-weight: 500; color: var(--green); }
.evidence-item span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; line-height: 1.7; text-transform: uppercase; color: var(--muted); }
.interactive-grid .cell { position: relative; min-height: 270px; transition: background 0.3s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease; }
.interactive-grid .cell::after { content: "↗"; position: absolute; top: 26px; right: 26px; font-family: var(--font-mono); font-size: 14px; color: var(--brass); opacity: 0; transform: translate(-5px, 5px); transition: opacity 0.25s ease, transform 0.25s var(--ease-out); }
.interactive-grid .cell:hover { z-index: 1; background: #fffef9; box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.interactive-grid .cell:hover::after { opacity: 1; transform: none; }
.cell-link { color: inherit; text-decoration: none; }
.cell-link:hover { color: inherit; }
.cell-foot { display: block; margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }

/* Process and industry tabs */
.process-console { display: grid; grid-template-columns: minmax(250px, 0.34fr) minmax(0, 0.66fr); margin-top: 46px; border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow-sm); }
.console-tabs { border-right: 1px solid var(--line); }
.console-tab { width: 100%; display: grid; grid-template-columns: 36px 1fr 18px; gap: 10px; align-items: center; padding: 23px 24px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; text-align: left; cursor: pointer; transition: background 0.25s ease, color 0.25s ease; }
.console-tab:last-child { border-bottom: 0; }
.console-tab .tab-no { font-family: var(--font-mono); font-size: 10px; color: var(--brass); }
.console-tab .tab-title { font-family: var(--font-display); font-size: 19px; }
.console-tab .tab-arrow { font-family: var(--font-mono); font-size: 12px; color: var(--brass); opacity: 0; }
.console-tab:hover { background: var(--paper-warm); }
.console-tab[aria-selected="true"] { background: var(--green); color: var(--ivory); }
.console-tab[aria-selected="true"] .tab-no, .console-tab[aria-selected="true"] .tab-arrow { color: #d5c29b; opacity: 1; }
.console-panels { min-width: 0; }
.console-panel { position: relative; min-height: 100%; padding: 46px 48px; overflow: hidden; }
.console-panel::after { content: attr(data-stage); position: absolute; right: 22px; bottom: -22px; font-family: var(--font-mono); font-size: 150px; line-height: 1; color: rgba(15, 61, 42, 0.045); pointer-events: none; }
.console-panel h3 { max-width: 14em; font-size: clamp(28px, 3vw, 38px); }
.console-panel > p { max-width: 40em; color: var(--muted); }
.console-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.console-meta strong { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--brass); }
.console-meta p { margin: 0; font-size: 13.5px; color: var(--muted); }
.no-js .console-panel { min-height: 0; border-bottom: 1px solid var(--line); }
.industry-explorer { display: grid; grid-template-columns: minmax(250px, 0.36fr) minmax(0, 0.64fr); margin-top: 42px; border: 1px solid var(--line); background: var(--paper); }
.explorer-tabs { border-right: 1px solid var(--line); }
.explorer-tab { width: 100%; display: flex; justify-content: space-between; gap: 16px; padding: 22px 24px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; text-align: left; cursor: pointer; }
.explorer-tab:last-child { border-bottom: 0; }
.explorer-tab span:first-child { font-size: 14px; }
.explorer-tab span:last-child { font-family: var(--font-mono); font-size: 10px; color: var(--brass); }
.explorer-tab:hover { background: var(--paper-warm); }
.explorer-tab[aria-selected="true"] { background: var(--green); color: var(--ivory); }
.explorer-tab[aria-selected="true"] span:last-child { color: #d5c29b; }
.explorer-panel { padding: 40px 42px; }
.explorer-panel h3 { font-size: 30px; }
.explorer-panel > p { color: var(--muted); }
.explorer-panel .tick-list { margin-top: 24px; font-size: 14px; }
.scope-tag { display: inline-block; margin-bottom: 20px; padding: 6px 9px; border: 1px solid var(--line); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.explorer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.application-grid .cell { min-height: 180px; }
.application-grid .cell p { margin-top: 12px; }

/* Tool gateways */
.tool-gateway { position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr); gap: 64px; align-items: center; }
.tool-gateway h2 { font-size: clamp(36px, 4.5vw, 58px); }
.gateway-list { border-top: 1px solid rgba(244, 241, 232, 0.2); }
.gateway-link { display: grid; grid-template-columns: 42px 1fr auto; gap: 18px; align-items: center; padding: 24px 0; border-bottom: 1px solid rgba(244, 241, 232, 0.2); text-decoration: none; color: var(--ivory); transition: padding 0.3s var(--ease-out), color 0.25s ease; }
.gateway-link:hover { padding-left: 12px; color: #d5c29b; }
.gateway-link .g-no { font-family: var(--font-mono); font-size: 10px; color: var(--brass); }
.gateway-link strong { display: block; font-family: var(--font-display); font-size: 23px; font-weight: 400; }
.gateway-link small { display: block; margin-top: 4px; color: var(--ivory-dim); font-size: 13px; }
.gateway-link .g-arrow { font-family: var(--font-mono); color: var(--brass); }

/* Accordions */
.faq-list { margin-top: 36px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item summary { position: relative; display: grid; grid-template-columns: 42px 1fr 24px; gap: 16px; align-items: baseline; padding: 25px 0; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-no { font-family: var(--font-mono); font-size: 10px; color: var(--brass); }
.faq-item summary .faq-q { font-family: var(--font-display); font-size: 21px; line-height: 1.3; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 20px; font-weight: 300; color: var(--green); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { max-width: 650px; padding: 0 42px 26px 58px; color: var(--muted); font-size: 15.5px; }
.faq-answer p:last-child { margin-bottom: 0; }
.section-dark .faq-list, .section-dark .faq-item { border-color: rgba(244,241,232,0.18); }
.section-dark .faq-item summary::after { color: var(--ivory); }
.section-dark .faq-answer { color: var(--ivory-dim); }

/* Services */
.service-list { border-top: 1px solid var(--line); }
.service-detail { border-bottom: 1px solid var(--line); }
.service-detail summary { list-style: none; cursor: pointer; }
.service-detail summary::-webkit-details-marker { display: none; }
.service-summary { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(180px, 0.35fr) 26px; gap: 24px; align-items: center; padding: 30px 0; }
.service-summary .s-no { font-family: var(--font-mono); font-size: 11px; color: var(--brass); }
.service-summary h2 { margin: 0; font-size: clamp(23px, 2.5vw, 31px); }
.service-summary .s-deliverable { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; line-height: 1.7; text-transform: uppercase; color: var(--muted); }
.service-summary::after { content: "+"; font-family: var(--font-mono); font-size: 22px; color: var(--green); }
.service-detail[open] .service-summary::after { content: "−"; }
.service-detail[open] .service-summary h2 { color: var(--green); }
.service-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr); gap: 60px; padding: 0 0 38px 96px; }
.service-body p { color: var(--muted); }
.service-body .annot { margin-top: 0; }
.service-deliverables { margin: 0; padding: 0; list-style: none; }
.service-deliverables li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.service-deliverables li::before { content: "— "; color: var(--brass); }
.engagement-grid { margin-top: 40px; }
.engagement-grid .tier { min-height: 380px; }
.tier-price { margin: 18px 0 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.tier-features { margin: 24px 0; padding: 18px 0 0; border-top: 1px solid var(--line-soft); list-style: none; }
.tier-features li { padding: 5px 0; font-size: 13px; color: var(--muted); }
.tier-features li::before { content: "— "; color: var(--brass); }
.tier .btn { align-self: flex-start; margin-top: 20px; }

/* Case filtering and career */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 36px; }
.filter-btn { padding: 10px 15px; border: 1px solid var(--line); background: transparent; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.filter-btn:hover { border-color: var(--green); color: var(--green); }
.filter-btn[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--ivory); }
.filter-count { margin-left: auto; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.case-article { scroll-margin-top: 96px; }
.case-source { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.career-timeline { margin-top: 42px; border-top: 1px solid var(--line); }
.career-row { display: grid; grid-template-columns: 140px minmax(0, 0.45fr) minmax(0, 1fr); gap: 30px; padding: 28px 0; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.career-year { font-family: var(--font-mono); font-size: 14px; color: var(--brass); }
.career-row h3 { margin: 0; font-size: 21px; }
.career-row p { margin: 0; font-size: 14px; color: var(--muted); }
.operating-card { padding: 42px; border: 1px solid var(--line); background: var(--paper); }
.operating-card .sig { margin-top: 26px; }

/* Forms */
.contact-form { box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.form-grid .field-full { grid-column: 1 / -1; }
.field select, .field input[type="date"], .field input[type="number"] { width: 100%; min-height: 44px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); padding: 8px 0 10px; font-family: var(--font-body); font-size: 15px; }
.field select { cursor: pointer; }
.field select:focus, .field input[type="date"]:focus, .field input[type="number"]:focus { outline: none; border-bottom-color: var(--green); }
.field .input-note { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); }
.form-section-label { grid-column: 1 / -1; margin: 10px 0 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-status { min-height: 1.6em; margin: 14px 0 0; font-size: 13px; color: var(--green); }
.form-status.error { color: var(--alert); }
.method-value { overflow-wrap: anywhere; }
.direct-actions { display: flex; flex-wrap: wrap; gap: 16px; margin: 10px 0 18px; }
.china-clock { display: inline-block; margin-top: 8px; font-family: var(--font-mono); font-size: 18px; color: var(--green); font-variant-numeric: tabular-nums; }
.attachment-note { padding: 14px 16px; border-left: 2px solid var(--brass); background: var(--paper-warm); font-size: 12.5px; color: var(--muted); }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-actions .btn:disabled { opacity: 0.65; cursor: wait; }
.form-note a { text-decoration: underline; text-underline-offset: 3px; }
.legal-copy h2 { margin: 42px 0 12px; font-size: 26px; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy p, .legal-copy li { color: var(--muted); line-height: 1.8; }
.legal-copy ul { padding-left: 22px; }
.legal-copy a { text-decoration: underline; text-underline-offset: 3px; }

/* Advisory tools */
.tools-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.tools-jump a { padding: 9px 13px; border: 1px solid var(--line); text-decoration: none; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.tool-section { scroll-margin-top: 70px; }
.tool-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr); gap: 60px; align-items: end; margin-bottom: 42px; }
.tool-head h2 { margin-bottom: 0; font-size: clamp(34px, 4vw, 50px); }
.tool-head p { margin-bottom: 0; color: var(--muted); }
.tool-id { display: block; margin-bottom: 14px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); }
.risk-workspace { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); gap: 32px; align-items: start; }
.risk-form { min-width: 0; }
.risk-question { min-width: 0; margin: 0 0 18px; padding: 24px; border: 1px solid var(--line); background: var(--paper); }
.risk-question legend { width: 100%; padding: 0; margin-bottom: 18px; font-family: var(--font-display); font-size: 20px; line-height: 1.35; }
.risk-question legend .q-no { display: block; margin-bottom: 7px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; color: var(--brass); }
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.risk-option { position: relative; display: flex; gap: 9px; align-items: flex-start; min-height: 100%; padding: 12px; border: 1px solid var(--line-soft); font-size: 12.5px; line-height: 1.45; color: var(--muted); cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; }
.risk-option:hover { border-color: var(--green); }
.risk-option:has(input:checked) { border-color: var(--green); background: rgba(15, 61, 42, 0.055); color: var(--ink); }
.risk-option input { flex: 0 0 auto; margin: 3px 0 0; accent-color: var(--green); }
.tool-progress { margin: 24px 0 18px; }
.tool-progress-label { display: flex; justify-content: space-between; margin-bottom: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.progress-track { height: 3px; background: var(--line-soft); }
.progress-fill { width: 0; height: 100%; background: var(--brass); transition: width 0.35s var(--ease-out); }
.risk-sidebar { position: sticky; top: 94px; }
.risk-result { padding: 32px; border: 1px solid var(--line); background: var(--green-deep); color: var(--ivory); box-shadow: var(--shadow-lg); }
.risk-result h3 { color: var(--ivory); font-size: 28px; }
.risk-result p { color: var(--ivory-dim); font-size: 14px; }
.result-placeholder { padding: 30px 0; border-top: 1px solid rgba(244,241,232,0.18); border-bottom: 1px solid rgba(244,241,232,0.18); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; line-height: 1.8; text-transform: uppercase; color: var(--ivory-dim); }
.score-line { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 4px; }
.score-number { font-family: var(--font-mono); font-size: 68px; line-height: 1; color: #d5c29b; font-variant-numeric: tabular-nums; }
.score-total { font-family: var(--font-mono); font-size: 13px; color: var(--ivory-dim); }
.score-band { margin-bottom: 20px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: #d5c29b; }
.score-track { display: flex; gap: 3px; margin: 16px 0 24px; }
.score-track i { display: block; flex: 1; height: 5px; background: rgba(244,241,232,0.14); }
.score-track i.active { background: #d5c29b; }
.dimension-list { margin: 24px 0; }
.dimension-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(244,241,232,0.12); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ivory-dim); }
.recommendation-list { padding-left: 18px; font-size: 13px; color: var(--ivory-dim); }
.recommendation-list li { margin-bottom: 8px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.risk-result .btn { border-color: rgba(244,241,232,0.5); }
.tool-disclaimer { margin-top: 16px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.risk-result .tool-disclaimer { color: rgba(244,241,232,0.48); }
.schedule-shell { display: grid; grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr); border: 1px solid var(--line); background: var(--paper); }
.schedule-form { padding: 34px; border-right: 1px solid var(--line); }
.schedule-output { padding: 34px; min-width: 0; }
.schedule-placeholder { height: 100%; min-height: 280px; display: grid; place-items: center; border: 1px dashed var(--line); text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; line-height: 1.8; text-transform: uppercase; color: var(--muted); }
.schedule-verdict { margin-bottom: 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); }
.schedule-verdict strong { display: block; margin-bottom: 6px; font-family: var(--font-display); font-size: 28px; font-weight: 400; color: var(--green); }
.schedule-verdict p { margin: 0; font-size: 13.5px; color: var(--muted); }
.schedule-steps { display: grid; grid-template-columns: repeat(3, 1fr); margin: 28px 0; }
.schedule-step { position: relative; padding: 26px 16px 0 0; border-top: 1px solid var(--line); }
.schedule-step::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border: 1px solid var(--green); border-radius: 50%; background: var(--paper); }
.schedule-step span { display: block; margin-bottom: 7px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.schedule-step strong { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--green); }
.schedule-note { font-size: 12px; color: var(--muted); }
.checklist-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.4fr); gap: 32px; align-items: start; }
.rfq-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; padding: 0; border: 0; }
.check-item { display: flex; gap: 12px; align-items: flex-start; min-height: 100%; padding: 18px; border: 1px solid var(--line); background: var(--paper); font-size: 13.5px; cursor: pointer; }
.check-item input { flex: 0 0 auto; margin-top: 4px; accent-color: var(--green); }
.check-item:has(input:checked) { border-color: var(--green); background: rgba(15,61,42,0.045); }
.check-item:has(input:checked) span { color: var(--green); }
.check-item:has(input:checked) span::after { content: " — ready"; font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; color: var(--brass); }
.rfq-summary { position: sticky; top: 94px; padding: 30px; border: 1px solid var(--line); background: var(--paper); }
.rfq-score { font-family: var(--font-mono); font-size: 54px; line-height: 1; color: var(--green); }
.rfq-summary h3 { margin-top: 16px; font-size: 25px; }
.rfq-summary p { font-size: 13px; color: var(--muted); }

/* Utility UI and footer */
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 120; max-width: min(360px, calc(100vw - 40px)); padding: 14px 18px; border: 1px solid var(--brass); background: var(--green-deep); color: var(--ivory); box-shadow: var(--shadow-lg); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s var(--ease-out); }
.toast.show { opacity: 1; transform: none; }
.back-to-top { position: fixed; right: 22px; bottom: 22px; z-index: 45; width: 42px; height: 42px; border: 1px solid var(--line); background: rgba(253,252,247,0.92); color: var(--green); font-family: var(--font-mono); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity 0.25s ease, transform 0.25s ease; }
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.mobile-cta { display: none; }
.site-footer { background: var(--green-deep); border-top-color: rgba(244,241,232,0.15); }
.footer-inner p, .footer-nav a { color: rgba(244,241,232,0.6); }
.footer-inner p a { color: var(--ivory); }
.footer-nav a:hover { color: #d5c29b; }
.footer-signature { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(244,241,232,0.14); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244,241,232,0.38); }

@media (max-width: 1080px) {
  .home-hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.75fr); gap: 46px; }
  .nav-list { gap: 15px; }
  .nav-list a { font-size: 10px; }
  .option-grid { grid-template-columns: 1fr; }
  .risk-option { min-height: 0; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-block; }
  .site-header { position: sticky; }
  .nav-list { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 32px 20px; box-shadow: var(--shadow-sm); }
  .nav-list.open { display: flex; }
  .nav-list li { border-top: 1px solid var(--line-soft); }
  .nav-list a { display: block; padding: 14px 0; font-size: 11px; }
  .nav-list a.nav-cta { margin-top: 10px; padding: 12px; text-align: center; }
  .home-hero { min-height: 0; }
  .home-hero .wrap { grid-template-columns: 1fr; }
  .home-hero h1 { max-width: 9em; }
  .hero-visual { width: min(100%, 590px); margin: 10px auto 0; }
  .blueprint { aspect-ratio: 1 / 0.9; }
  .section-head, .tool-head { grid-template-columns: 1fr; gap: 22px; align-items: start; }
  .process-console, .industry-explorer { grid-template-columns: 1fr; }
  .console-tabs, .explorer-tabs { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
  .console-tab { min-width: 180px; border-bottom: 0; border-right: 1px solid var(--line-soft); }
  .explorer-tab { min-width: 190px; border-bottom: 0; border-right: 1px solid var(--line-soft); }
  .tool-gateway { grid-template-columns: 1fr; gap: 36px; }
  .service-summary { grid-template-columns: 54px minmax(0, 1fr) 24px; }
  .service-summary .s-deliverable { display: none; }
  .service-body { padding-left: 78px; grid-template-columns: 1fr; gap: 22px; }
  .risk-workspace, .checklist-shell { grid-template-columns: 1fr; }
  .risk-sidebar, .rfq-summary { position: static; }
  .schedule-shell { grid-template-columns: 1fr; }
  .schedule-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .career-row { grid-template-columns: 100px minmax(0, 0.5fr) minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 768px) {
  html { scroll-padding-top: 80px; }
  body { padding-bottom: 64px; }
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .home-hero { padding: 68px 0 58px; }
  .home-hero::before { background-size: 40px 40px; }
  .home-hero h1 { font-size: clamp(50px, 14vw, 72px); }
  .home-hero .hero-actions { align-items: stretch; }
  .home-hero .hero-actions .btn { width: 100%; }
  .hero-credentials { gap: 8px 18px; }
  .hero-credentials li + li::before { left: -11px; }
  .blueprint { aspect-ratio: 1 / 1.02; }
  .blueprint-label.label-a { left: 10px; }
  .blueprint-label.label-b { right: 10px; }
  .page-hero { padding: 66px 0 54px; }
  .page-hero h1 { font-size: clamp(42px, 11vw, 62px); }
  .page-hero::before { right: 20px; top: 20px; }
  .section-head { margin-bottom: 34px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 26px 16px 24px 0; border-top: 1px solid var(--line-soft); }
  .stat:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line-soft); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat::after { top: 26px; right: 10px; }
  .stat-label { font-size: 9px; }
  .evidence-ribbon { grid-template-columns: 1fr; }
  .evidence-item { border-left: 0; border-top: 1px solid var(--line-soft); }
  .evidence-item:first-child { border-top: 0; }
  .interactive-grid .cell { min-height: 0; }
  .console-panel, .explorer-panel { padding: 30px 24px; }
  .console-meta { grid-template-columns: 1fr; gap: 18px; }
  .gateway-link { grid-template-columns: 32px 1fr auto; gap: 12px; }
  .gateway-link strong { font-size: 20px; }
  .faq-item summary { grid-template-columns: 30px 1fr 20px; gap: 10px; }
  .faq-item summary .faq-q { font-size: 19px; }
  .faq-answer { padding-left: 40px; padding-right: 10px; }
  .service-summary { grid-template-columns: 38px minmax(0, 1fr) 20px; gap: 12px; }
  .service-body { padding-left: 0; }
  .engagement-grid .tier { min-height: 0; }
  .filter-count { width: 100%; margin: 8px 0 0; }
  .fieldnote { padding: 26px 20px; }
  .fieldnote-head { margin-bottom: 24px; }
  .career-row { grid-template-columns: 1fr; gap: 8px; }
  .operating-card { padding: 28px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .field-full { grid-column: auto; }
  .contact-form { padding: 26px 20px; }
  .risk-question { padding: 20px 16px; }
  .risk-result { padding: 26px 22px; }
  .schedule-form, .schedule-output { padding: 26px 20px; }
  .schedule-steps { grid-template-columns: 1fr; gap: 20px; }
  .schedule-step { padding-top: 18px; }
  .rfq-checklist { grid-template-columns: 1fr; }
  .footer-inner { padding-bottom: 12px; }
  .back-to-top { display: none; }
  .toast { right: 20px; bottom: 82px; }
  .mobile-cta { position: fixed; inset: auto 0 0; z-index: 80; display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 1px; padding: 8px; border-top: 1px solid rgba(244,241,232,0.18); background: var(--green-deep); }
  .mobile-cta a { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px; border: 1px solid rgba(244,241,232,0.26); text-decoration: none; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ivory); }
  .mobile-cta a:last-child { background: var(--ivory); color: var(--green-deep); border-color: var(--ivory); }
}
@media (max-width: 390px) {
  .brand-name { font-size: 23px; }
  .brand-sub { font-size: 8.5px; letter-spacing: 0.17em; }
  .nav-bar { gap: 12px; }
  .home-hero h1 { font-size: 48px; }
  .stat-num { font-size: 31px; }
  .blueprint-label { font-size: 8px; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .blueprint { transform: none !important; }
  .scroll-progress { display: none; }
}
@media print {
  .site-header, .site-footer, .mobile-cta, .back-to-top, .scroll-progress, .hero-actions, .tools-jump { display: none !important; }
  body { padding: 0; background: #fff; }
  .page-hero { padding: 24px 0; }
  .section { padding: 30px 0; }
  .risk-result { color: #000; background: #fff; box-shadow: none; }
  .risk-result h3, .risk-result p, .score-number, .score-band, .dimension-row, .recommendation-list { color: #000; }
}

/* ==========================================================================
   v4 — Film narrative layer
   Photography-ready, data-authentic. Every media slot renders a real archive
   plate until a licensed photo is registered in assets/photos.js.
   ========================================================================== */

:root {
  --film: #0b1410;
  --film-soft: #131e18;
  --paper-warm: #f7f2e6;
  --brass-soft: #c8a968;
  --ease-cine: cubic-bezier(0.22, 0.61, 0.36, 1);
  --rail-gap: clamp(16px, 2.2vw, 28px);
}

/* ---------- Media frame: photo or archive plate ---------- */
.frame-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ratio, 3 / 2);
  background-color: #10201a;
  background-image:
    linear-gradient(rgba(244, 241, 232, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 241, 232, 0.055) 1px, transparent 1px),
    radial-gradient(120% 92% at 50% 0%, rgba(31, 68, 48, 0.9), rgba(8, 18, 13, 0.96) 74%);
  background-size: 26px 26px, 26px 26px, 100% 100%;
  isolation: isolate;
}
.frame-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.12) contrast(1.03) saturate(0.9);
  transform: scale(1.015);
  transition: transform 1.4s var(--ease-cine), opacity 0.7s ease;
}
.frame-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(158deg, rgba(15, 61, 42, 0.18), rgba(11, 20, 16, 0.03) 48%, rgba(169, 133, 63, 0.1)),
    radial-gradient(120% 90% at 50% 0%, transparent 52%, rgba(6, 20, 14, 0.3));
}
.frame-media:has(img)::after {
  background:
    linear-gradient(158deg, rgba(15, 61, 42, 0.38), rgba(11, 20, 16, 0.08) 48%, rgba(169, 133, 63, 0.14)),
    radial-gradient(120% 90% at 50% 0%, transparent 45%, rgba(6, 20, 14, 0.35));
  mix-blend-mode: multiply;
}
.frame-media.is-revealed img { transform: scale(1); }

/* Archive plate — used when no licensed photograph exists for the slot. */
.frame-archive {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: clamp(16px, 2.4vw, 26px);
  color: rgba(244, 241, 232, 0.68);
  font-family: var(--font-mono);
}
.frame-archive .fa-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 232, 0.52);
}
.frame-archive .fa-mark {
  align-self: center;
  width: clamp(58px, 20%, 110px);
  height: auto;
  color: var(--brass-soft);
  opacity: 0.95;
}
.frame-archive .fa-no {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.4vw, 84px);
  line-height: 0.86;
  color: rgba(244, 241, 232, 0.14);
}
.frame-archive .fa-rule { height: 1px; background: rgba(244, 241, 232, 0.18); margin: 10px 0; }
.frame-archive .fa-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.15em;
  line-height: 1.75;
  text-transform: uppercase;
  color: rgba(244, 241, 232, 0.66);
}
.frame-archive::before {
  content: "";
  position: absolute;
  left: clamp(16px, 2.4vw, 26px);
  right: clamp(16px, 2.4vw, 26px);
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 241, 232, 0.18) 10%, rgba(244, 241, 232, 0.18) 90%, transparent);
  pointer-events: none;
}
.frame-archive .fa-label b { display: block; color: var(--brass-soft); font-weight: 500; margin-bottom: 3px; }
/* Compact archive plates inside small evidence thumbnails */
.evidence-attachments .frame-media { --ratio: 4 / 3; }
.evidence-attachments .frame-archive { padding: 12px; gap: 6px; }
.evidence-attachments .frame-archive .fa-top { font-size: 7px; letter-spacing: 0.14em; }
.evidence-attachments .frame-archive .fa-no { font-size: 30px; }
.evidence-attachments .frame-archive .fa-label { font-size: 7.5px; line-height: 1.5; letter-spacing: 0.1em; }
.evidence-attachments .frame-archive .fa-label b { margin-bottom: 2px; }
.evidence-attachments .frame-archive::before { display: none; }
.frame-media--light { background-color: var(--paper-warm); background-image: linear-gradient(var(--line-faint) 1px, transparent 1px), linear-gradient(90deg, var(--line-faint) 1px, transparent 1px); }
.frame-media--light .frame-archive { color: var(--muted); }
.frame-media--light .frame-archive .fa-top,
.frame-media--light .frame-archive .fa-label { color: var(--muted); }
.frame-media--light .frame-archive .fa-no { color: rgba(15, 61, 42, 0.12); }
.frame-media--light .frame-archive .fa-rule { background: var(--line-soft); }
.frame-media--light::after { display: none; }

/* Corner ticks */
.tick-frame::before,
.tick-frame::after {
  content: "";
  position: absolute;
  z-index: 3;
  width: 15px;
  height: 15px;
  border-color: var(--brass);
  pointer-events: none;
}
.tick-frame::before { top: 10px; left: 10px; border-top: 1px solid; border-left: 1px solid; }
.tick-frame::after { right: 10px; bottom: 10px; border-right: 1px solid; border-bottom: 1px solid; }

/* Photo caption — European documentary format */
.photo-cap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 18px;
  margin: 12px 0 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--muted);
}
.photo-cap b { font-weight: 500; color: var(--green); }
.photo-cap .cap-end { margin-left: auto; color: var(--brass); }
.photo-cap.on-dark,
.section-dark .photo-cap,
.cinema-band .photo-cap { color: rgba(244, 241, 232, 0.55); }
.photo-cap.on-dark b,
.section-dark .photo-cap b,
.cinema-band .photo-cap b { color: var(--brass-soft); }
.on-dark .photo-cap { color: rgba(244, 241, 232, 0.55); }
.on-dark .photo-cap b { color: var(--brass-soft); }

/* ---------- Cinema hero ---------- */
.cinema-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--film); }
.cinema-hero .wrap { position: relative; z-index: 2; }
.cinema-bg {
  position: absolute;
  inset: -10% 0;
  z-index: -4;
  pointer-events: none;
}
.cinema-bg .frame-media { height: 100%; aspect-ratio: auto; }
.cinema-bg .frame-archive { opacity: 0.85; }
.cinema-scrim {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 20, 14, 0.96) 0%, rgba(6, 20, 14, 0.86) 40%, rgba(6, 20, 14, 0.5) 72%, rgba(6, 20, 14, 0.78) 100%),
    linear-gradient(180deg, rgba(6, 20, 14, 0.45), transparent 38%, rgba(6, 20, 14, 0.82));
}
.cinema-hero .hero-visual { z-index: 2; }
.scroll-cue {
  position: absolute;
  left: max(32px, calc((100vw - var(--wrap)) / 2 + 32px));
  bottom: 26px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 241, 232, 0.45);
}
.scroll-cue::after {
  content: "";
  width: 46px;
  height: 1px;
  background: linear-gradient(90deg, rgba(244, 241, 232, 0.55), transparent);
  animation: cue 2.6s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: scaleX(0.35); transform-origin: left; opacity: 0.35; }
  50% { transform: scaleX(1); opacity: 0.9; }
}

/* Portrait frame inside the hero */
.portrait-frame { position: relative; margin: 0; }
.portrait-frame .frame-media { --ratio: 3 / 4; border: 1px solid rgba(244, 241, 232, 0.24); box-shadow: var(--shadow-lg); }
.portrait-frame .photo-cap { padding: 0 2px; }

/* Frame shell with corner ticks, drawn outside the clipping media box */
.media-shell {
  position: relative;
  border: 1px solid rgba(244, 241, 232, 0.26);
  background: rgba(10, 43, 30, 0.45);
  box-shadow: var(--shadow-lg);
}
.media-shell .frame-media { border: 0; box-shadow: none; }
.frame-fallback { position: absolute; inset: 0; display: block; }
.frame-fallback .blueprint {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  background: none;
  box-shadow: none;
  transform: none;
}
.blueprint-archive::before,
.blueprint-archive::after { display: none; }
.hero-media { min-height: 320px; }
@media (max-width: 768px) {
  .hero-portrait-frame .blueprint-label { display: none; }
  .hero-media { min-height: 0; }
}

/* ---------- Full-bleed cinema band ---------- */
.cinema-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(76px, 9vw, 132px) 0;
  background: var(--film);
  color: var(--ivory);
  border-top: 1px solid rgba(244, 241, 232, 0.12);
}
.cinema-band .cb-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: end;
}
.cinema-band h2 { color: var(--ivory); font-size: clamp(34px, 5vw, 62px); line-height: 1.03; letter-spacing: -0.015em; }
.cinema-band .lead { color: var(--ivory-dim); }
.cinema-band .eyebrow { color: rgba(244, 241, 232, 0.62); }
.cinema-band .eyebrow::after { background: rgba(244, 241, 232, 0.22); }
.cinema-band .band-media { margin: 0; }
.cinema-band .band-media .frame-media { --ratio: 16 / 9; border: 1px solid rgba(244, 241, 232, 0.2); }
.cinema-band .band-copy { display: flex; flex-direction: column; gap: 4px; }
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
  border-top: 1px solid rgba(244, 241, 232, 0.2);
}
.stat-strip > div { padding: 18px 20px 0 0; }
.stat-strip > div + div { padding-left: 20px; border-left: 1px solid rgba(244, 241, 232, 0.14); }
.stat-strip strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-mono);
  font-size: clamp(21px, 2.3vw, 30px);
  font-weight: 500;
  color: var(--brass-soft);
}
.stat-strip span {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-transform: uppercase;
  color: rgba(244, 241, 232, 0.5);
}

/* ---------- Split story ---------- */
.split-story {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(30px, 5vw, 84px);
  align-items: start;
}
.split-media { position: sticky; top: 96px; align-self: start; margin: 0; }
.split-media .frame-media { --ratio: 4 / 5; border: 1px solid var(--line); }
.split-track { display: grid; gap: clamp(34px, 5vw, 58px); }
.chapter { position: relative; padding-left: clamp(18px, 3vw, 46px); border-left: 1px solid var(--line-soft); }
.chapter::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 12px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brass);
}
.chapter-no {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}
.chapter h3 { font-size: clamp(23px, 2.6vw, 31px); margin-bottom: 10px; }
.chapter p { color: var(--muted); font-size: 15.5px; margin-bottom: 0; }
.section-dark .chapter { border-left-color: rgba(244, 241, 232, 0.16); }
.section-dark .chapter p { color: var(--ivory-dim); }

/* ---------- Evidence rail ---------- */
.evidence-rail { position: relative; }
.rail-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 26px;
}
.rail-head h2, .rail-head h3 { margin: 0; }
.rail-controls { display: flex; gap: 8px; }
.rail-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.rail-btn:hover { background: var(--green); color: var(--ivory); }
.rail-btn[disabled] { opacity: 0.32; cursor: default; }
.section-dark .rail-btn, .cinema-band .rail-btn { border-color: rgba(244, 241, 232, 0.3); color: var(--ivory); }
.section-dark .rail-btn:hover, .cinema-band .rail-btn:hover { background: var(--ivory); color: var(--green-deep); }
.rail-track {
  display: flex;
  gap: var(--rail-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 6px;
  cursor: grab;
}
.rail-track::-webkit-scrollbar { display: none; }
.rail-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail-card { flex: 0 0 auto; width: clamp(258px, 29vw, 356px); min-width: clamp(258px, 29vw, 356px); scroll-snap-align: start; }
.rail-card .frame-media { --ratio: 4 / 5; border: 1px solid var(--line); }
.rail-card .photo-cap { margin-top: 10px; }
.rail-progress { height: 2px; margin-top: 20px; background: var(--line-soft); }
.rail-progress span { display: block; width: 0; height: 100%; background: var(--brass); transition: width 0.12s linear; }
.section-dark .rail-progress, .cinema-band .rail-progress { background: rgba(244, 241, 232, 0.16); }

/* ---------- Chapter rail (desktop) ---------- */
.chapter-rail {
  position: fixed;
  left: 20px;
  top: 50%;
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 12px;
  transform: translateY(-50%);
}
@media (min-width: 1400px) {
  .chapter-rail { display: flex; }
}
.chapter-rail button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 0;
  border: 0;
  background: none;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.chapter-rail button::before {
  content: "";
  width: 16px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
  transition: width 0.25s var(--ease-cine), opacity 0.25s ease;
}
.chapter-rail button span { opacity: 0; transform: translateX(-4px); transition: opacity 0.25s ease, transform 0.25s ease; }
.chapter-rail button:hover span, .chapter-rail button.active span { opacity: 1; transform: none; }
.chapter-rail button.active { color: var(--brass); }
.chapter-rail button.active::before { width: 26px; opacity: 1; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
}
.marquee-track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.marquee span::after { content: "/"; color: var(--brass); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Title line reveal ---------- */
.title-lines span { display: block; overflow: hidden; }
.title-lines span i {
  display: block;
  font-style: inherit;
  transform: translateY(112%);
  transition: transform 0.95s var(--ease-cine);
}
.title-lines span:nth-child(2) i { transition-delay: 0.09s; }
.title-lines span:nth-child(3) i { transition-delay: 0.18s; }
.title-lines.in span i { transform: none; }

/* ---------- Brand details ---------- */
.seal { width: clamp(74px, 8vw, 96px); height: auto; color: var(--brass); opacity: 0.9; }
.btn { position: relative; overflow: hidden; }
.btn .arrow { display: inline-block; transition: transform 0.3s var(--ease-cine); }
.btn:hover .arrow { transform: translate(3px, -3px); }
.footer-seal {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 241, 232, 0.14);
}
.footer-seal p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  line-height: 1.9;
  text-transform: uppercase;
  color: rgba(244, 241, 232, 0.4);
}

/* ---------- Evidence attachments (field notes) ---------- */
.evidence-attachments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}
.evidence-attachments .frame-media { --ratio: 3 / 2; }
.evidence-attachments .photo-cap { font-size: 8px; }

/* ---------- Industry panel media ---------- */
.panel-media { margin: 0 0 26px; }
.panel-media .frame-media { --ratio: 16 / 9; border: 1px solid var(--line); }

/* ---------- About hero ---------- */
.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.72fr);
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}
.about-hero-grid .lead { max-width: 40em; }
.about-portrait { max-width: 400px; margin-left: auto; }
.about-portrait .frame-media { --ratio: 4 / 5; border: 1px solid var(--line); }

/* ---------- Wide archive figure ---------- */
.wide-figure { margin: 0 0 34px; }
.wide-figure .frame-media { --ratio: 21 / 9; border: 1px solid var(--line); }

/* ---------- Story intro ---------- */
.story-intro {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: 34px;
}
.story-intro p { font-size: 16px; color: var(--muted); }
.story-intro > p { font-size: 19px; color: var(--ink); }
@media (max-width: 768px) { .story-intro { grid-template-columns: 1fr; } }

/* ---------- Contact identity card ---------- */
.identity-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-soft);
}
.identity-card .frame-media { --ratio: 1 / 1; border: 1px solid var(--line); }
.identity-card p { margin: 0; font-size: 14px; color: var(--muted); }
.identity-card strong { display: block; margin-bottom: 4px; font-family: var(--font-display); font-size: 19px; font-weight: 400; color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .chapter-rail { display: none !important; }
}
@media (max-width: 960px) {
  .cinema-band .cb-inner { grid-template-columns: 1fr; align-items: start; }
  .cinema-band .band-media { order: -1; }
  .split-story { grid-template-columns: 1fr; }
  .split-media { position: static; }
  .split-media .frame-media { --ratio: 16 / 9; }
  .rail-card { flex-basis: auto; width: min(78vw, 340px); min-width: min(78vw, 340px); }
  .evidence-attachments { grid-template-columns: 1fr 1fr; }
  .about-hero-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 100%; margin-left: 0; }
  .about-portrait .frame-media { --ratio: 4 / 3; }
}
@media (max-width: 768px) {
  .cinema-hero { min-height: 0; }
  .cinema-scrim {
    background:
      linear-gradient(180deg, rgba(6, 20, 14, 0.88), rgba(6, 20, 14, 0.62) 42%, rgba(6, 20, 14, 0.94)),
      linear-gradient(90deg, rgba(6, 20, 14, 0.8), transparent);
  }
  .scroll-cue { display: none; }
  .stat-strip { grid-template-columns: 1fr; }
  .stat-strip > div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(244, 241, 232, 0.14); }
  .stat-strip > div { padding: 16px 0 0; }
  .evidence-attachments { grid-template-columns: 1fr; }
  .rail-card { flex-basis: auto; width: 82vw; min-width: 82vw; }
  .rail-btn { width: 38px; height: 38px; }
  .identity-card { grid-template-columns: 74px minmax(0, 1fr); gap: 16px; }
  .marquee span { font-size: 8.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .frame-media img { transform: none !important; transition: none !important; }
  .title-lines span i { transform: none !important; transition: none !important; }
  .marquee-track { animation: none !important; }
  .scroll-cue::after { animation: none !important; }
}

@media print {
  .cinema-bg, .cinema-scrim, .scroll-cue, .chapter-rail, .rail-controls, .rail-progress, .marquee { display: none !important; }
}