/* ============================================================
   ZIV8 — Endless Brilliance
   Sports Media Agency · Tokyo / Global
   Palette: Washi Cream · Ai Navy · Kemuri Grey
   Light-first. Brilliance = quiet luminosity, not noise.
   ============================================================ */

:root {
  /* Raw palette — Red · White · (blue inclusion) */
  --washi:    #fbfaf8;   /* near-white base — clean paper */
  --paper:    #ffffff;   /* lightest raised surface */
  --washi-2:  #f4f2ee;   /* faint warm grey for layered cards */
  --washi-3:  #ebe7e1;

  /* Blue — reserved for deep night plates only (inclusion, never dominant) */
  --ai:       #17273f;   /* deep navy blue */
  --ai-deep:  #122035;
  --ai-deeper:#0d182a;
  --ai-darkest:#0a1322;

  /* Charcoal — pillar visual panels */
  --ink-panel:   #141012;
  --ink-panel-2: #0f0c0e;

  /* Red — the dominant brand accent */
  --red:        #c01f2f;   /* deep Japanese red */
  --red-deep:   #a3192a;   /* darker — hovers */
  --red-bright: #e23b34;   /* vermilion — pops on blue / charcoal */

  --kemuri:   #6b7280;   /* smoke grey — structure, never dominant */

  /* ---- Semantic tokens (LIGHT context — default) ---- */
  --bg:          var(--washi);
  --surface:     var(--paper);
  --surface-2:   var(--washi-2);

  --text:        #1d1718;                   /* warm near-black ink — primary */
  --text-soft:   #5a5150;
  --text-faint:  rgba(29, 23, 24, 0.46);
  --text-ghost:  rgba(29, 23, 24, 0.20);

  --accent:      var(--red);                /* brilliance = red */
  --accent-soft: #cf5560;

  --line:        rgba(29, 23, 24, 0.12);
  --line-strong: rgba(29, 23, 24, 0.22);
  --accent-line: rgba(192, 31, 47, 0.30);
  --accent-line-soft: rgba(192, 31, 47, 0.16);

  /* Type */
  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --sans:  'Manrope', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  /* Rhythm */
  --col-gutter: clamp(20px, 4vw, 64px);
  --page-pad:   clamp(20px, 4vw, 56px);
  --section-y:  clamp(96px, 14vw, 184px);
  --max-w:      1440px;

  /* Asanoha textures */
  --asanoha-navy:  url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' width='120' height='120'><g fill='none' stroke='%23c01f2f' stroke-width='0.6'><circle cx='60' cy='60' r='52'/><path d='M60 8 L60 112 M8 60 L112 60 M22 22 L98 98 M98 22 L22 98'/><path d='M60 8 L8 60 L60 112 L112 60 Z'/><path d='M60 8 L22 60 L60 112 L98 60 Z'/><path d='M8 60 L60 22 L112 60 L60 98 Z'/></g></svg>");
  --asanoha-cream: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' width='120' height='120'><g fill='none' stroke='%23f5f0e8' stroke-width='0.6'><circle cx='60' cy='60' r='52'/><path d='M60 8 L60 112 M8 60 L112 60 M22 22 L98 98 M98 22 L22 98'/><path d='M60 8 L8 60 L60 112 L112 60 Z'/><path d='M60 8 L22 60 L60 112 L98 60 Z'/><path d='M8 60 L60 22 L112 60 L60 98 Z'/></g></svg>");
}

/* ---- Semantic tokens (DARK context — navy plates) ---- */
.theme-dark {
  --bg:          var(--ai);
  --surface:     var(--ai-deep);
  --surface-2:   var(--ai-deeper);

  --text:        #efe7db;                       /* cream, slightly settled */
  --text-soft:   rgba(245, 240, 232, 0.62);
  --text-faint:  rgba(245, 240, 232, 0.38);
  --text-ghost:  rgba(245, 240, 232, 0.16);

  --accent:      var(--red-bright);              /* brilliance = vermilion red */
  --accent-soft: #ef8b84;

  --line:        rgba(245, 240, 232, 0.10);
  --line-strong: rgba(245, 240, 232, 0.20);
  --accent-line: rgba(226, 59, 52, 0.42);
  --accent-line-soft: rgba(226, 59, 52, 0.20);

  background: var(--bg);
  color: var(--text);
}

/* Baked production spacing (tuned via Tweaks) */
:root {
  --section-y: 184px;
  --contact-pad-top: 48px;
  --contact-pad-bottom: 20px;
  --pillar-pad: 84px;
  --pillar-gap: 28px;
  --disc-pad: 72px;
  --manifesto-pad: 96px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  cursor: default;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }

/* ============================================================
   Typography
   ============================================================ */

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow--mist { color: var(--text-soft); }
.eyebrow--gold { color: var(--accent); }

.display {
  font-family: var(--serif);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 0.96;
}

.display em { font-style: italic; font-weight: 300; color: var(--accent); }

.h1 { font-size: clamp(48px, 9vw, 132px); }
.h2 { font-size: clamp(40px, 6.5vw, 96px); }
.h3 { font-size: clamp(28px, 3.6vw, 52px); }
.h4 { font-size: clamp(20px, 2.2vw, 32px); }

.lede {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 56ch;
}

.body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-soft);
  max-width: 60ch;
}

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.25;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.numeral {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
}

/* ============================================================
   Layout primitives
   ============================================================ */

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--page-pad); }
.section { padding-block: var(--section-y); position: relative; }
.grid { display: grid; gap: var(--col-gutter); }

/* ---- Scroll snap (toggled via Tweaks: html.snap) ---- */
html.snap { scroll-snap-type: y proximity; scroll-padding-top: 0; }
html.snap .hero,
html.snap .disciplines,
html.snap .pillar,
html.snap .manifesto,
html.snap .contact {
  scroll-snap-align: start;
}

.divider { height: 1px; background: var(--line); width: 100%; }
.divider--gold {
  background: linear-gradient(to right, transparent, var(--accent-line) 20%, var(--accent-line) 80%, transparent);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  transition: all 240ms ease;
  position: relative;
  overflow: hidden;
}

.btn:hover { border-color: var(--accent); color: var(--accent); }

.btn .arrow {
  width: 18px; height: 1px;
  background: currentColor;
  position: relative;
  transition: width 240ms ease;
}

.btn .arrow::after {
  content: '';
  position: absolute;
  right: 0; top: -3px;
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

.btn:hover .arrow { width: 28px; }

/* Primary filled — navy on light, cream on dark */
.btn--gold {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn--gold:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
  color: #fff;
}
.theme-dark .btn--gold {
  background: var(--red-bright);
  border-color: var(--red-bright);
  color: #fff;
}
.theme-dark .btn--gold:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ai);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  transition: gap 200ms ease;
}
.link:hover { gap: 18px; }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--page-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 320ms ease, padding 320ms ease, border-color 320ms ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(245, 240, 232, 0.82);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom-color: var(--line);
  padding-block: 16px;
}

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 22px;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--red);
}
.wordmark .glyph { color: var(--red); font-style: italic; }

.nav-links { display: flex; align-items: center; gap: 40px; list-style: none; }

.nav-links a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--kemuri);
  position: relative;
  padding-bottom: 4px;
  transition: color 200ms ease;
}
.nav-links a:hover { color: var(--red); }

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--red);
  transition: width 240ms ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--accent-line);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  transition: all 240ms ease;
}
.nav-cta:hover { background: var(--red); color: #fff; border-color: var(--red); }

.nav-cta .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 2.4s ease-in-out infinite;
}
.nav-cta:hover .dot { background: var(--washi); }

@keyframes pulse { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { width: 22px; height: 1px; background: var(--red); }

/* ============================================================
   HERO  (light)
   ============================================================ */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--hero-pad-top, 80px);
  padding-bottom: 140px;
  overflow: hidden;
  background: var(--washi);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero-bg .vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 38%, var(--paper) 0%, rgba(245,240,232,0) 55%),
    linear-gradient(180deg, #fdfdfc 0%, var(--washi) 60%, var(--washi-2) 100%);
}

.hero-bg .asanoha {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: var(--asanoha-navy);
  background-size: 120px 120px;
  mask: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-bg .grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  opacity: 0.5;
}

.laser {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%, var(--accent-line-soft) 12%, var(--red) 50%, var(--accent-line-soft) 88%, transparent 100%);
  opacity: 0;
  animation: laser-pass 7s ease-in-out infinite;
}
.laser--1 { top: 22%; animation-delay: 0s; }
.laser--2 { top: 68%; animation-delay: 3.5s; }
.laser--3 { top: 82%; animation-delay: 5.2s; opacity: 0.4; }

@keyframes laser-pass {
  0%   { opacity: 0; transform: translateX(-30%); }
  20%  { opacity: 0.7; }
  80%  { opacity: 0.7; }
  100% { opacity: 0; transform: translateX(30%); }
}

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 36px; }

.hero-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; }

.hero-meta { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.hero-meta .label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text-faint);
}
.hero-meta .value { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--text-soft); }

.hero-headline {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 8.5vw, var(--hero-h-max, 116px));
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--text);
}

.hero-headline em {
  font-style: italic;
  font-weight: 300;
  background: linear-gradient(180deg, #e23b34 0%, var(--red) 45%, #a3192a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-headline .ampersand { font-style: italic; color: var(--accent); font-weight: 300; }

.hero-body { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }

.hero-lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.8vw, 26px);
  line-height: 1.4;
  color: var(--text);
  max-width: 38ch;
  letter-spacing: -0.005em;
}

.hero-actions { display: flex; flex-direction: column; gap: 22px; align-items: flex-end; }
.hero-actions .btn-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }

.hero-scroll {
  position: absolute;
  bottom: 120px; left: var(--page-pad);
  z-index: 2;
  display: flex; align-items: center; gap: 14px;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text-faint);
}

.hero-scroll .scroll-line {
  width: 60px; height: 1px;
  background: linear-gradient(to right, var(--red), transparent);
  position: relative; overflow: hidden;
}
.hero-scroll .scroll-line::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent, var(--red), transparent);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }

.hero-stamp {
  position: absolute;
  right: var(--page-pad); bottom: 120px;
  z-index: 2;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--text-faint);
  text-align: right; line-height: 1.6;
}

/* ============================================================
   INTRO STRIP  (dark navy band)
   ============================================================ */

.hero > .strip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  border-bottom: none;
  z-index: 2;
}

.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 28px;
  background: var(--ai);
}

.strip-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }

.strip-label {
  font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--text-faint);
  white-space: nowrap;
  font-weight: 600;
}

.strip-text {
  font-family: var(--serif);
  font-style: italic; font-weight: 400;
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--text);
  text-align: center;
  letter-spacing: -0.005em;
}

.strip-text .dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  vertical-align: middle;
  margin-inline: 14px;
  transform: translateY(-2px);
}

/* ============================================================
   THE DISCIPLINES  (light)
   ============================================================ */

.disciplines { padding-block: var(--disc-pad, 72px); position: relative; background: var(--washi); }

.section-head {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: var(--col-gutter); margin-bottom: 44px; align-items: start;
}
.section-head .left { display: flex; flex-direction: column; gap: 18px; }
.section-head .right {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.18; letter-spacing: -0.015em;
  color: var(--text); max-width: 24ch;
}
.section-head .right em { font-style: italic; color: var(--accent); }

.discipline-row {
  display: grid;
  grid-template-columns: 80px minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) 80px;
  gap: var(--col-gutter);
  align-items: start;
  padding-block: var(--disc-row-pad, 22px);
  border-top: 1px solid var(--line);
  transition: background 300ms ease;
}
.discipline-row:last-of-type { border-bottom: 1px solid var(--line); }
.discipline-row:hover { background: var(--paper); }

.discipline-row .num {
  font-family: var(--serif);
  font-style: italic; font-weight: 300;
  font-size: 28px; color: var(--accent);
  letter-spacing: -0.02em;
}

.discipline-row .name { display: flex; flex-direction: column; gap: 6px; }
.discipline-row .name .key {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 2.6vw, 38px);
  letter-spacing: -0.015em; color: var(--text);
  transition: color 240ms ease;
}
.discipline-row .name .meaning {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: 24px; color: var(--accent);
}

.discipline-row .summary {
  font-family: var(--sans); font-weight: 300;
  font-size: 14px; line-height: 1.65;
  color: var(--text-soft); max-width: 36ch;
}

.discipline-row .arrow-cell {
  display: flex; justify-content: flex-end; align-items: center;
  color: var(--text-faint);
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 600;
  transition: color 240ms ease;
}
.discipline-row .arrow-cell .arrow {
  width: 16px; height: 1px;
  background: currentColor; position: relative; margin-left: 10px;
}
.discipline-row .arrow-cell .arrow::after {
  content: '';
  position: absolute; right: 0; top: -3px;
  width: 6px; height: 6px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.discipline-row:hover .arrow-cell { color: var(--accent); }
.discipline-row:hover .name .key { color: var(--accent); }

/* ============================================================
   PILLAR BLOCK (shared layout)
   ============================================================ */

.pillar { position: relative; padding-block: var(--pillar-pad, 88px); overflow: hidden; }

.pillar--01 { background: var(--washi); }
.pillar--02 { background: var(--ai); }            /* dark — brilliance from dark */
.pillar--03 { background: var(--washi-2); }

.pillar-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--col-gutter); margin-bottom: 64px; align-items: start;
}

.pillar-header .stamp { display: flex; align-items: baseline; gap: 20px; }
.pillar-header .stamp .num {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(80px, 12vw, 180px);
  color: var(--accent); line-height: 0.85; letter-spacing: -0.04em;
}
.pillar-header .stamp .info { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
.pillar-header .stamp .info .small {
  font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--text-faint); font-weight: 600;
}
.pillar-header .stamp .info .name {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--text);
}

.pillar-header .meaning {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--text); align-self: center;
}
.pillar-header .meaning em { font-style: italic; color: var(--accent); }

.pillar-body { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--col-gutter); align-items: stretch; }
.pillar-body--solo { grid-template-columns: 1fr; max-width: 820px; gap: var(--pillar-gap, 28px); }

.pillar-text { display: flex; flex-direction: column; gap: 36px; padding-right: 20px; }

.pillar-tagline {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 3.4vw, 48px);
  line-height: 1.15; letter-spacing: -0.015em;
  color: var(--accent);
  padding-left: 28px;
  border-left: 1px solid var(--accent-line);
}

.pillar-body-text {
  font-family: var(--sans); font-weight: 300;
  font-size: 16px; line-height: 1.7;
  color: var(--text-soft); max-width: 50ch;
}
.pillar-body-text em { font-style: italic; color: var(--accent); }
.pillar-body-text + .pillar-body-text { margin-top: 6px; }

.pillar-list {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  column-gap: var(--col-gutter);
  border-top: 1px solid var(--line); margin-top: 12px;
}
.pillar-cta { grid-column: 1 / -1; }
.pillar-list li {
  list-style: none;
  display: grid; grid-template-columns: 32px 1fr auto;
  gap: 16px; padding-block: 14px;
  border-bottom: 1px solid var(--line);
  align-items: baseline; font-size: 14px;
}
.pillar-list .num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 13px; }
.pillar-list .label { color: var(--text); font-weight: 400; }
.pillar-list .meta {
  color: var(--text-faint); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
}

/* ---- Pillar visual canvas — ALWAYS a dark navy plate ---- */
.pillar-visual {
  position: relative;
  min-height: 580px;
  border: 1px solid rgba(29, 23, 24, 0.20);
  background: var(--ink-panel);
  overflow: hidden;
}
.pillar--02 .pillar-visual { background: var(--ink-panel-2); border-color: rgba(245,240,232,0.12); }
.pillar--03 .pillar-visual { background: var(--ink-panel); }

/* cream-accent tokens scoped to the dark visual */
.pillar-visual {
  --v-line:   rgba(245, 240, 232, 0.10);
  --v-acc:    #e23b34;       /* red — reticle, nodes, scan lines */
  --v-acc-soft: rgba(226, 59, 52, 0.32);
  --v-faint:  rgba(245, 240, 232, 0.42);
  --v-text:   rgba(245, 240, 232, 0.82);
}

.visual-corner { position: absolute; width: 16px; height: 16px; border: 1px solid var(--v-acc); }
.visual-corner.tl { top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.visual-corner.tr { top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.visual-corner.bl { bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.visual-corner.br { bottom: 16px; right: 16px; border-left: 0; border-top: 0; }

.visual-tag {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  font-family: var(--sans); font-size: 9px; font-weight: 700;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--v-faint); z-index: 5;
}
.visual-tag-bl {
  position: absolute; bottom: 24px; left: 32px;
  font-family: var(--sans); font-size: 9px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--v-faint); z-index: 5;
}
.visual-tag-br {
  position: absolute; bottom: 24px; right: 32px;
  font-family: var(--serif); font-style: italic; font-size: 12px;
  color: var(--v-acc); z-index: 5;
}

/* ============================================================
   PILLAR 01 — ZANSHIN  (grid + reticle, cream lines on navy)
   ============================================================ */

.zanshin-canvas { position: absolute; inset: 0; }

.zanshin-grid {
  position: absolute; inset: 60px 40px;
  background-image:
    linear-gradient(to right, var(--v-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--v-line) 1px, transparent 1px);
  background-size: 8.333% 8.333%;
}

.zanshin-vline {
  position: absolute; width: 1px;
  background: linear-gradient(180deg, transparent, var(--v-acc) 30%, var(--v-acc) 70%, transparent);
  opacity: 0.55; animation: vscan 5s ease-in-out infinite;
}
.zanshin-vline--1 { left: 28%; top: 60px; bottom: 60px; }
.zanshin-vline--2 { left: 58%; top: 60px; bottom: 60px; animation-delay: 1.4s; }
.zanshin-vline--3 { left: 78%; top: 60px; bottom: 60px; animation-delay: 2.8s; opacity: 0.3; }
@keyframes vscan { 0%, 100% { opacity: 0.18; } 50% { opacity: 0.75; } }

.zanshin-hline {
  position: absolute; height: 1px; left: 40px; right: 40px;
  background: linear-gradient(to right, transparent, var(--v-acc) 30%, var(--v-acc) 70%, transparent);
  opacity: 0; animation: hscan 6s ease-in-out infinite;
}
.zanshin-hline--1 { top: 38%; animation-delay: 0.5s; }
.zanshin-hline--2 { top: 70%; animation-delay: 3s; }
@keyframes hscan {
  0% { opacity: 0; transform: translateX(-20px); }
  40% { opacity: 0.9; }
  60% { opacity: 0.9; }
  100% { opacity: 0; transform: translateX(20px); }
}

.reticle {
  position: absolute; width: 88px; height: 88px;
  top: 42%; left: 56%; transform: translate(-50%, -50%);
}
.reticle::before, .reticle::after { content: ''; position: absolute; background: var(--v-acc); }
.reticle::before { left: 50%; top: -8px; bottom: -8px; width: 1px; transform: translateX(-50%); }
.reticle::after { top: 50%; left: -8px; right: -8px; height: 1px; transform: translateY(-50%); }
.reticle .ring { position: absolute; inset: 0; border: 1px solid var(--v-acc); border-radius: 50%; }
.reticle .ring--inner { inset: 24px; border-color: var(--v-acc-soft); }
.reticle .dot {
  position: absolute; width: 4px; height: 4px;
  background: var(--v-acc); border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--v-acc);
}
.reticle .coord {
  position: absolute; top: -22px; left: 100%; margin-left: 12px;
  font-family: var(--sans); font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--v-acc); white-space: nowrap;
}

.data-blip {
  position: absolute; display: flex; gap: 6px; align-items: center;
  font-family: var(--sans); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--v-faint);
}
.data-blip::before {
  content: ''; width: 6px; height: 6px;
  border: 1px solid var(--v-acc); background: rgba(245, 240, 232, 0.18);
}
.data-blip--1 { top: 22%; left: 18%; }
.data-blip--2 { top: 76%; left: 30%; }
.data-blip--3 { top: 28%; right: 14%; }
.data-blip--3::before { background: var(--v-acc); }

/* ============================================================
   PILLAR 02 — KAGAYAKI  (silhouette + cream brush on darkest navy)
   ============================================================ */

.kagayaki-canvas { position: absolute; inset: 0; cursor: none; }

.kagayaki-canvas .silhouette {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  filter: contrast(1.05) brightness(1);
}
.kagayaki-canvas .silhouette svg { width: 70%; height: 90%; opacity: 0.95; }

.kagayaki-canvas .ink-layer { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }
.kagayaki-canvas .ink-layer svg { width: 100%; height: 100%; }

.kagayaki-canvas #brush-canvas { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }

.kagayaki-canvas .glow {
  position: absolute; width: 60%; height: 60%; top: 20%; left: 20%;
  background: radial-gradient(circle,
    rgba(245, 240, 232, 0.16) 0%, rgba(245, 240, 232, 0.05) 32%, transparent 62%);
  filter: blur(22px); pointer-events: none;
}

.kagayaki-cursor {
  position: absolute; width: 28px; height: 28px;
  border: 1px solid var(--v-acc); border-radius: 50%;
  pointer-events: none; transform: translate(-50%, -50%);
  z-index: 10; opacity: 0; transition: opacity 180ms ease;
  mix-blend-mode: difference;
}
.kagayaki-cursor::after {
  content: ''; position: absolute; inset: 50%;
  width: 4px; height: 4px; margin: -2px;
  background: var(--v-acc); border-radius: 50%;
}
.kagayaki-canvas:hover .kagayaki-cursor { opacity: 1; }

.kagayaki-hint {
  position: absolute; bottom: 56px; left: 50%; transform: translateX(-50%);
  font-family: var(--serif); font-style: italic; font-size: 13px;
  color: var(--v-text); letter-spacing: 0.02em;
  pointer-events: none; z-index: 6; opacity: 0.7;
}

/* ============================================================
   PILLAR 03 — MUSUBI  (asanoha + nodes, cream on navy)
   ============================================================ */

.musubi-canvas { position: absolute; inset: 0; }
.musubi-asanoha {
  position: absolute; inset: 0;
  background-image: var(--asanoha-cream);
  background-size: 96px 96px; opacity: 0.10;
}
.musubi-nodes { position: absolute; inset: 0; }
.musubi-nodes svg { width: 100%; height: 100%; }

.musubi-nodes .link {
  stroke: var(--v-acc-soft); stroke-width: 1; fill: none;
  stroke-dasharray: 3 6; animation: link-flow 4s linear infinite;
}
.musubi-nodes .link--bright {
  stroke: var(--v-acc); opacity: 0.7;
  stroke-dasharray: none; animation: none;
}
@keyframes link-flow { to { stroke-dashoffset: -36; } }

.musubi-nodes .node { fill: var(--v-acc); filter: drop-shadow(0 0 6px var(--v-acc)); }
.musubi-nodes .node--dim { fill: rgba(245, 240, 232, 0.55); opacity: 0.6; filter: none; }

.musubi-nodes .node-ring {
  fill: none; stroke: var(--v-acc); stroke-width: 1; opacity: 0.4;
  animation: ring-pulse 3s ease-out infinite;
}
@keyframes ring-pulse {
  0% { transform-origin: center; opacity: 0.6; r: 4; }
  100% { opacity: 0; r: 22; }
}

.musubi-labels {
  position: absolute; inset: 0;
  font-family: var(--sans); font-size: 9px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--v-text);
}
.musubi-label { position: absolute; display: flex; gap: 8px; align-items: center; font-weight: 600; }
.musubi-label .kbd {
  font-family: var(--serif); font-style: italic;
  text-transform: none; letter-spacing: 0;
  font-size: 11px; color: var(--v-acc);
}

/* ============================================================
   MANIFESTO  (dark navy)
   ============================================================ */

.manifesto { background: var(--ai); padding-block: var(--manifesto-pad, 96px); position: relative; overflow: hidden; }

.manifesto-bg {
  position: absolute; inset: 0;
  background-image: var(--asanoha-cream);
  background-size: 160px 160px; opacity: 0.05;
  mask: radial-gradient(ellipse at 50% 60%, black 20%, transparent 70%);
  -webkit-mask: radial-gradient(ellipse at 50% 60%, black 20%, transparent 70%);
}

.manifesto-inner {
  position: relative; z-index: 2;
  max-width: 1080px; margin: 0 auto; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 56px;
}

.manifesto-eyebrow { display: flex; align-items: center; gap: 14px; }
.manifesto-eyebrow .line { width: 36px; height: 1px; background: var(--accent); }

.manifesto-body {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.25; letter-spacing: -0.018em;
  color: var(--text); text-wrap: pretty;
}
.manifesto-body em { font-style: italic; color: var(--accent); font-weight: 300; }
.manifesto-body .quiet { color: var(--text-soft); font-style: italic; }

.manifesto-signature { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 12px; }
.manifesto-signature .ziv8 {
  font-family: var(--serif); font-weight: 600;
  font-size: 28px; letter-spacing: 0.08em;
}
.manifesto-signature .ziv8 em { color: var(--accent); font-style: italic; }
.manifesto-signature .meta {
  font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--text-faint); font-weight: 600;
}

/* ============================================================
   CONTACT  (light)
   ============================================================ */

.contact {
  background: var(--washi);
  padding-top: var(--contact-pad-top, 88px);
  padding-bottom: var(--contact-pad-bottom, 64px);
  border-top: 1px solid var(--line);
  position: relative;
}

.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gutter); align-items: end; }
.contact-left { display: flex; flex-direction: column; gap: 32px; }

.contact-headline {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(44px, 6.5vw, 96px);
  line-height: 0.95; letter-spacing: -0.025em;
  color: var(--text);
}
.contact-headline em { font-style: italic; color: var(--accent); font-weight: 300; }

.contact-meta { display: flex; flex-direction: column; gap: 24px; font-family: var(--sans); }
.contact-meta .row {
  display: grid; grid-template-columns: 130px 1fr;
  gap: 24px; padding-block: 12px;
  border-bottom: 1px solid var(--line); align-items: baseline;
}
.contact-meta .row .key {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-faint);
}
.contact-meta .row .val { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--text); }
.contact-meta .row .val a:hover { color: var(--accent); }

/* ============================================================
   FOOTER  (dark navy, deepest)
   ============================================================ */

.foot {
  background: var(--ai-deeper);
  padding: 56px var(--page-pad) 36px;
  border-top: 1px solid var(--line);
}

.foot-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--col-gutter);
  padding-bottom: 48px; border-bottom: 1px solid var(--line);
}

.foot-brand { display: flex; flex-direction: column; gap: 18px; }
.foot-brand .wordmark { font-size: 28px; color: var(--text); }
.foot-brand .wordmark .glyph { color: var(--accent); }
.foot-brand .tag { font-family: var(--serif); font-style: italic; color: var(--text-soft); font-size: 15px; max-width: 30ch; }

.foot-col h6 {
  font-family: var(--sans); font-size: 10px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 13px; color: var(--text-soft); font-weight: 300; transition: color 200ms ease; }
.foot-col a:hover { color: var(--text); }

.foot-bottom {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; padding-top: 28px;
  font-size: 11px; color: var(--text-faint);
  letter-spacing: 0.06em; flex-wrap: wrap;
}
.foot-bottom .creed { font-family: var(--serif); font-style: italic; color: var(--text-soft); }
.foot-bottom .creed em { color: var(--accent); font-style: italic; }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */

.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 900ms cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 100ms; }
.reveal.delay-2 { transition-delay: 200ms; }
.reveal.delay-3 { transition-delay: 320ms; }
.reveal.delay-4 { transition-delay: 440ms; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .hero-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-meta { text-align: left; flex-direction: row; gap: 24px; }
  .hero-body { grid-template-columns: 1fr; gap: 36px; }
  .hero-actions { align-items: flex-start; }
  .hero-actions .btn-row { justify-content: flex-start; }
  .hero-scroll { display: none; }
  .hero-stamp { display: none; }

  .strip-inner { grid-template-columns: 1fr; text-align: left; }
  .strip-text { text-align: left; }

  .section-head { grid-template-columns: 1fr; gap: 36px; }

  .discipline-row { grid-template-columns: 40px 1fr; grid-template-rows: auto auto auto; row-gap: 14px; }
  .discipline-row .num { grid-row: 1; grid-column: 1; }
  .discipline-row .name { grid-row: 1; grid-column: 2; }
  .discipline-row .summary { grid-column: 1 / -1; grid-row: 2; }
  .discipline-row .arrow-cell { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; }

  .pillar-header { grid-template-columns: 1fr; gap: 36px; }
  .pillar-body { grid-template-columns: 1fr; gap: var(--pillar-gap, 28px); }
  .pillar-text { padding-right: 0; }
  .pillar-visual { min-height: 460px; }

  .contact-inner { grid-template-columns: 1fr; gap: 48px; }

  .foot-inner { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .foot-brand { grid-column: 1 / -1; }

  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 540px) {
  .pillar-header .stamp { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pillar-list li { grid-template-columns: 24px 1fr; }
  .pillar-list .meta { grid-column: 2; }
  .pillar-list { grid-template-columns: 1fr; grid-auto-flow: row; }
  .foot-inner { grid-template-columns: 1fr; }
  .kagayaki-canvas { cursor: default; }
  .kagayaki-canvas .kagayaki-cursor { display: none; }
}
