/* ─────────────────────────────────────────────────────────────────────
   Ninomiya-gumi — Renewal
   Dark / cinematic / Japanese hi-fi
   ───────────────────────────────────────────────────────────────────── */

:root {
  --navy: #1f2d6e;
  --navy-deep: #141d4a;
  --navy-soft: #2a3a85;
  --bg: #0b1028;
  --bg-2: #0f1638;
  --bg-3: #18204a;
  --ink: #f4f1e8;
  --ink-dim: #c4c8dc;
  --ink-mute: #7a82a3;
  --line: rgba(244, 241, 232, 0.10);
  --line-strong: rgba(244, 241, 232, 0.24);
  --gold: #e8a960;
  --gold-deep: #b07a36;
  --red: #a83232;

  --serif: "Shippori Mincho B1", "Noto Serif JP", serif;
  --sans: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --display: "Anton", "Bebas Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --max: 1440px;
  --pad: clamp(20px, 4vw, 56px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* ─── Helpers ─── */
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0.04em; }
.display { font-family: var(--display); letter-spacing: 0.02em; }
.serif { font-family: var(--serif); }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
  color: #fff;
  transition: background .3s, padding .3s;
}
.nav.scrolled {
  mix-blend-mode: normal;
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 14px var(--pad);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--ink);
  padding: 4px;
  border-radius: 2px;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-name {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.brand-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  opacity: 0.7;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-links a {
  position: relative;
  padding: 6px 0;
  opacity: 0.85;
  transition: opacity .2s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  border: 1px solid currentColor;
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}
.nav-cta:hover {
  background: currentColor;
}
.nav-cta:hover span { color: var(--bg); }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  position: relative;
}
.nav-burger::before, .nav-burger::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px;
  height: 1px;
  background: currentColor;
}
.nav-burger::before { top: 15px; }
.nav-burger::after { bottom: 15px; }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #050505;
}
.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 40%, #1a2454 0%, #060920 65%),
    #060920;
  overflow: hidden;
}
.hero-video-placeholder::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(255,255,255,0.012) 3px, rgba(255,255,255,0.012) 4px),
    radial-gradient(circle at 30% 30%, rgba(232,169,96,0.22), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(31,45,110,0.45), transparent 55%);
  animation: pvDrift 18s ease-in-out infinite alternate;
}
.hero-video-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.88  0 0 0 0 0.7  0 0 0 0.16 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: grain 1.6s steps(6) infinite;
}
@keyframes pvDrift {
  0%   { transform: translate(0,0) scale(1.05); }
  100% { transform: translate(-2%, 1%) scale(1.12); }
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-2%, 1%); }
  40% { transform: translate(1%, -2%); }
  60% { transform: translate(-1%, 2%); }
  80% { transform: translate(2%, -1%); }
}
.hero-pv-label {
  position: relative;
  z-index: 1;
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-family: var(--mono);
  letter-spacing: 0.3em;
  font-size: 10px;
  text-transform: uppercase;
}
.hero-pv-label .big {
  display: block;
  font-family: var(--display);
  font-size: clamp(56px, 10vw, 140px);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  margin: 14px 0;
}
.hero-pv-label .meta {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 12px;
}
.hero-pv-label .meta span::before {
  content: "▸ ";
  color: var(--gold);
}

.hero-dark {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.hero-grain {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.88  0 0 0 0 0.7  0 0 0 0.16 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.28;
  mix-blend-mode: overlay;
  pointer-events: none;
  animation: grain 1.6s steps(6) infinite;
}

/* Letterbox + scan */
.hero-letterbox {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 14%, transparent 70%, rgba(0,0,0,0.85) 100%);
}
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0,0,0,0.6) 100%);
}

/* Hero content overlays */
.hero-overlay {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(90px, 12vh, 140px) var(--pad) 36px;
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.hero-top .stamp {
  border: 1px solid rgba(255,255,255,0.25);
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-top .stamp .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff4444;
  box-shadow: 0 0 8px #ff4444;
  animation: rec 1.4s ease-in-out infinite;
}
@keyframes rec { 0%,100%{opacity:1} 50%{opacity:0.4} }
.hero-top .timecode { letter-spacing: 0.15em; }

.hero-center {
  align-self: end;
  display: grid;
  gap: 28px;
  max-width: 1100px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(48px, 8.5vw, 140px);
  line-height: 0.98;
  letter-spacing: 0.01em;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.hero-title .gold {
  color: var(--gold);
  font-style: italic;
}
.hero-sub {
  font-family: var(--display);
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.85);
}
.hero-tag {
  max-width: 480px;
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.8;
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
}
.scroll-cue {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.scroll-cue .line {
  width: 60px; height: 1px;
  background: rgba(255,255,255,0.4);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 36px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-meta dt { color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.hero-meta dd {
  color: #fff;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: none;
}

/* ─── Marquee ─── */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  background: #0d0d0c;
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 56px);
  letter-spacing: 0.04em;
}
.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 60px;
  color: var(--ink);
}
.marquee-track span::after {
  content: "✦";
  color: var(--gold);
  font-size: 0.6em;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Section base ─── */
section { position: relative; }
.section-pad {
  padding: clamp(80px, 12vw, 160px) var(--pad);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 80px);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.section-head .h-jp {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.05;
}
.section-head .h-en {
  font-family: var(--display);
  letter-spacing: 0.18em;
  font-size: clamp(14px, 1.4vw, 18px);
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.section-head .h-desc {
  color: var(--ink-dim);
  font-size: 14.5px;
  max-width: 460px;
  justify-self: end;
}
.section-num {
  position: absolute;
  top: 40px;
  right: var(--pad);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--ink-mute);
}

/* ─── Services ─── */
.services {
  background: var(--bg);
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-card {
  background: var(--bg);
  padding: clamp(28px, 4vw, 56px);
  display: grid;
  gap: 24px;
  transition: background .3s;
}
.service-card:hover { background: #111110; }
.service-img {
  aspect-ratio: 16 / 11;
  background: #181712;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}
.service-img::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0, transparent 22px, rgba(245,241,232,0.04) 22px, rgba(245,241,232,0.04) 23px);
}
.service-img .placeholder-label {
  position: absolute;
  bottom: 14px; left: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(245,241,232,0.5);
  text-transform: uppercase;
}
.service-img .placeholder-label::before {
  content: "◯ ";
  color: var(--gold);
}
.service-num {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.service-title {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.service-title h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.service-title .en {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
}
.service-desc {
  color: var(--ink-dim);
  line-height: 1.85;
  font-size: 14.5px;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
  text-transform: uppercase;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 8px;
  transition: gap .25s;
}
.service-link:hover { gap: 22px; }
.service-link::after { content: "→"; }

/* ─── Stats ─── */
.stats {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.stat {
  background: var(--bg-2);
  padding: clamp(40px, 5vw, 64px) clamp(20px, 3vw, 40px);
}
.stat-num {
  font-family: var(--display);
  font-size: clamp(56px, 8vw, 120px);
  color: var(--ink);
  line-height: 0.9;
  letter-spacing: 0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.stat-num .unit {
  font-family: var(--serif);
  font-size: 0.28em;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.stat-label {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.stat-jp {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-dim);
}

/* ─── Flow ─── */
.flow {
  background: var(--bg);
}
.flow-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.flow-step {
  background: var(--bg);
  display: grid;
  grid-template-columns: 120px 280px 1fr 100px;
  gap: clamp(20px, 4vw, 60px);
  padding: clamp(36px, 5vw, 64px) clamp(8px, 2vw, 40px);
  align-items: center;
  transition: background .3s;
}
.flow-step:hover { background: #0e0d0c; }
.flow-step:hover .flow-img { transform: scale(1.02); }
.flow-step:hover .flow-arrow { color: var(--gold); transform: translateX(6px); }
.flow-step-num {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 88px);
  color: var(--ink);
  line-height: 1;
}
.flow-step-num .slash { color: var(--gold); }
.flow-img {
  aspect-ratio: 4 / 3;
  background: #181712;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .5s;
}
.flow-img::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0, transparent 18px, rgba(245,241,232,0.04) 18px, rgba(245,241,232,0.04) 19px);
}
.flow-img .placeholder-label {
  position: absolute;
  bottom: 10px; left: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: rgba(245,241,232,0.5);
  text-transform: uppercase;
}
.flow-img .placeholder-label::before {
  content: "◯ ";
  color: var(--gold);
}
.flow-text h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 500;
  margin-bottom: 6px;
}
.flow-text .en {
  display: block;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 18px;
}
.flow-text p {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.85;
  max-width: 600px;
}
.flow-arrow {
  font-family: var(--display);
  font-size: 28px;
  color: var(--ink-mute);
  text-align: right;
  transition: color .3s, transform .3s;
}

/* ─── About ─── */
.about {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.about-vis {
  aspect-ratio: 4 / 5;
  background: #181712;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.about-vis::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(232,169,96,0.14), transparent 60%),
    radial-gradient(circle at 70% 75%, rgba(31,45,110,0.55), transparent 60%),
    repeating-linear-gradient(0deg, transparent 0, transparent 28px, rgba(245,241,232,0.04) 28px, rgba(245,241,232,0.04) 29px);
}
.about-logo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 62%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 40px rgba(0,0,0,0.5));
  z-index: 1;
}
.about-vis .placeholder-label {
  position: absolute;
  bottom: 18px; left: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(245,241,232,0.5);
  text-transform: uppercase;
}
.about-vis .placeholder-label::before {
  content: "◯ ";
  color: var(--gold);
}
.about-vis .badge {
  position: absolute;
  top: 18px; right: 18px;
  display: grid;
  place-items: center;
  width: 110px; height: 110px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-align: center;
  line-height: 1.6;
  text-transform: uppercase;
  background: rgba(10,10,10,0.4);
  backdrop-filter: blur(6px);
}
.about-body h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.3;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.about-body h2 em {
  font-style: italic;
  color: var(--gold);
}
.about-body p {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 2;
  margin-bottom: 20px;
}
.about-locations {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.about-locations-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.about-locations-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.04em;
}
.about-locations-list span {
  padding: 0 18px;
  border-right: 1px solid var(--line);
}
.about-locations-list span:last-child { border-right: 0; }
.about-locations-list span:first-child { padding-left: 0; }

/* ─── Contact CTA ─── */
.cta {
  background: var(--bg);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(201,169,97,0.1), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(168,50,50,0.06), transparent 55%);
  pointer-events: none;
}
.cta-inner {
  position: relative;
  text-align: center;
  display: grid;
  gap: 32px;
  justify-items: center;
}
.cta-inner .eyebrow { justify-self: center; }
.cta-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 100px);
  line-height: 1.15;
  letter-spacing: 0.02em;
  max-width: 14ch;
}
.cta-headline em {
  font-style: italic;
  color: var(--gold);
}
.cta-sub {
  font-family: var(--display);
  font-size: clamp(13px, 1.4vw, 17px);
  letter-spacing: 0.3em;
  color: var(--ink-dim);
}
.cta-actions {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: all .25s;
  cursor: pointer;
  background: transparent;
}
.btn:hover {
  background: var(--gold);
  color: var(--bg);
}
.btn::after { content: "→"; transition: transform .25s; }
.btn:hover::after { transform: translateX(4px); }
.btn-solid {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn-solid:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink-dim);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* ─── Footer ─── */
.footer {
  background: #050505;
  padding: clamp(60px, 8vw, 100px) var(--pad) 28px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer-brand .brand {
  margin-bottom: 24px;
  color: var(--ink);
}
.footer-brand p {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.85;
  max-width: 360px;
}
.footer h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer ul a, .footer ul li {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink-dim);
  transition: color .2s;
}
.footer ul a:hover { color: var(--gold); }
.footer-contact .row {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}
.footer-contact .row .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.footer-contact .row .v {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ─── Mobile menu drawer ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #050505;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 20px var(--pad);
  transform: translateY(-100%);
  transition: transform .45s cubic-bezier(.7,0,.2,1);
  pointer-events: none;
}
.mobile-menu.open { transform: translateY(0); pointer-events: auto; }
.mobile-menu-top { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu-close {
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
}
.mobile-menu-links {
  display: grid;
  gap: 12px;
  align-content: center;
}
.mobile-menu-links a {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: var(--ink);
}
.mobile-menu-links a .idx {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--gold);
}
.mobile-menu-foot {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-mute);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
}

/* ─── Reveal animation ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: block; }

  .hero-overlay { padding: 96px var(--pad) 28px; }
  .hero-top .timecode { display: none; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-tag { max-width: 100%; }

  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .section-head .h-desc { justify-self: start; }
  .section-num { top: 24px; right: var(--pad); }

  .services-grid { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .flow-step {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 36px var(--pad);
  }
  .flow-step-num { font-size: 64px; }
  .flow-arrow { display: none; }
  .flow-img { aspect-ratio: 5 / 3; }

  .about-grid { grid-template-columns: 1fr; }
  .about-vis { aspect-ratio: 4 / 3; }
  .about-vis .badge { width: 84px; height: 84px; font-size: 8.5px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }

  .marquee-track { gap: 36px; }
  .marquee-track span { gap: 36px; }
}

@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-title { letter-spacing: 0; }
  .nav { padding: 14px var(--pad); }
  .brand-mark { width: 32px; height: 32px; font-size: 16px; }
  .brand-sub { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-menu-links a { font-size: 32px; }
  .cta-actions { flex-direction: column; width: 100%; }
  .cta-actions .btn { justify-content: center; }
}
