/* ITO marketing — shared styles */
:root {
  --paper: oklch(0.985 0.005 85);
  --paper-2: oklch(0.965 0.008 85);
  --ink: oklch(0.18 0.01 60);
  --ink-2: oklch(0.45 0.01 60);
  --rule: oklch(0.88 0.01 60);
  --accent: oklch(0.62 0.16 40);
  --accent-ink: oklch(0.32 0.10 40);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 24px -12px rgba(0,0,0,0.10);
  --shadow-lg: 0 1px 0 rgba(0,0,0,0.05), 0 30px 60px -30px rgba(0,0,0,0.18);
}

* { box-sizing: border-box; }

.ito-page {
  font-family: "Geist", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
  overflow-x: hidden;
}

.mono-label {
  font-family: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.logo-mark { display: inline-flex; color: var(--ink); }
.logo strong { font-size: 17px; letter-spacing: 0.02em; font-weight: 600; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, color 0.15s;
  font-family: inherit;
  white-space: nowrap;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { transform: translateY(-1px); background: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: var(--paper-2); }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 64px 40px 24px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 80%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
  min-height: 460px;
}
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; white-space: nowrap; }
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 0.4; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }
.hero-title {
  font-size: clamp(48px, 6vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero-title em { font-style: italic; font-family: "Instrument Serif", "Times New Roman", serif; font-weight: 400; color: var(--accent); letter-spacing: -0.02em; }
.hero-sub {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 480px;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.hero-cta { display: flex; gap: 12px; margin-bottom: 36px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, auto); gap: 32px; padding-top: 24px; border-top: 1px solid var(--rule); max-width: 480px; }
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }

/* ---- Hero stage / floating cards ---- */
.hero-stage { position: relative; height: 440px; }
.float-stage { position: relative; width: 100%; height: 100%; }
.float-card {
  position: absolute;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  animation: float 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  20% { transform: translate3d(-6px, -14px, 0) rotate(-0.8deg); }
  45% { transform: translate3d(4px, -22px, 0) rotate(0.6deg); }
  70% { transform: translate3d(8px, -10px, 0) rotate(-0.4deg); }
  85% { transform: translate3d(-3px, -6px, 0) rotate(0.3deg); }
}
/* Tight: cards close together, overlapping more — Doss-y composition */
.card-main {
  width: 270px;
  top: 60px;
  left: 50%;
  transform: translateX(-52%);
  z-index: 3;
  border-left: 3px solid var(--accent);
}
.card-tna  { width: 300px; top: 130px; left: 8%;  z-index: 2; animation-delay: -1.8s; }
.card-ship { width: 250px; bottom: 90px; right: 4%; z-index: 2; animation-delay: -3.6s; }
.card-bom  { width: 190px; bottom: 40px; left: 18%; z-index: 1; animation-delay: -1.1s; }

/* Density variants */
[data-density="tight"] .card-main  { top: 40px; }
[data-density="tight"] .card-tna   { top: 150px; left: 0%; }
[data-density="tight"] .card-ship  { bottom: 110px; right: 4%; }
[data-density="tight"] .card-bom   { bottom: 60px; left: 22%; }

[data-density="normal"] .card-tna  { top: 100px; left: -4%; }
[data-density="normal"] .card-ship { bottom: 60px; right: -4%; }
[data-density="normal"] .card-bom  { bottom: 30px; left: 14%; }

[data-density="spread"] .card-main { top: 10px; }
[data-density="spread"] .card-tna  { top: 60px; left: -10%; }
[data-density="spread"] .card-ship { bottom: 30px; right: -10%; }
[data-density="spread"] .card-bom  { bottom: 0px; left: 8%; }

.bom-cost { font-family: "Geist Mono", monospace; font-size: 11px; color: var(--ink-2); margin-left: 6px; }

.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-family: "Geist Mono", monospace; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; white-space: nowrap; }
.pill-risk { background: oklch(0.92 0.05 25); color: oklch(0.4 0.15 25); }
.pill-warn { background: oklch(0.95 0.06 80); color: oklch(0.4 0.12 80); }
.pill-ok { background: oklch(0.92 0.04 250); color: oklch(0.4 0.12 250); }
.pill-info { background: color-mix(in oklab, var(--accent) 18%, var(--paper)); color: var(--accent-ink); }
.pill-default { background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--rule); }

.sketch-wrap { background: white; border-radius: var(--r-sm); padding: 8px; margin-bottom: 12px; }
.sketch { width: 100%; height: auto; display: block; }
.card-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; letter-spacing: -0.01em; }
.card-body > * + * { margin-top: 10px; }
.progress-row { display: flex; justify-content: space-between; }
.progress-dots { display: flex; gap: 4px; }
.pdot { width: 6px; height: 6px; border-radius: 50%; background: var(--rule); }
.pdot.done { background: oklch(0.65 0.15 145); }
.pdot.risk { background: oklch(0.6 0.18 25); }
.milestone { padding-top: 10px; border-top: 1px solid var(--rule); }
.milestone-row { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.milestone-row strong { font-size: 13px; }
.late { color: oklch(0.55 0.18 25); font-family: "Geist Mono", monospace; font-size: 12px; }

.gantt-mini { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.gantt-axis {
  display: grid; grid-template-columns: 60px repeat(7, 1fr);
  font-family: "Geist Mono", monospace; font-size: 9px; color: var(--ink-2);
  letter-spacing: 0.05em; padding-bottom: 4px; border-bottom: 1px solid var(--rule);
}
.gantt-axis span { grid-column: span 1; }
.gantt-axis span:first-child { grid-column: 2 / 3; }
.gantt-foot { display: flex; justify-content: space-between; padding-top: 6px; border-top: 1px solid var(--rule); margin-top: 2px; }
.gantt-row { display: flex; align-items: center; gap: 8px; }
.gantt-label { font-size: 11px; width: 80px; color: var(--ink-2); }
.gantt-track { position: relative; flex: 1; height: 14px; background: var(--paper); border-radius: 4px; }
.gantt-bar { position: absolute; top: 4px; height: 6px; background: color-mix(in oklab, var(--accent) 50%, transparent); border-radius: 3px; }
.gantt-bar.done { background: var(--accent); }
.gantt-today { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: oklch(0.6 0.18 25); }

.ship-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.ship-row span { font-family: "Geist Mono", monospace; }
.ship-route { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 13px; }
.ship-route .dash { flex: 1; height: 1px; border-bottom: 1px dashed var(--rule); }
.ship-arc { width: 100%; height: 50px; }

.card-bom strong { display: block; font-size: 14px; margin: 4px 0; }
.bom-bars { display: flex; flex-direction: column; gap: 3px; }
.bom-bars > div { height: 4px; background: var(--accent); border-radius: 2px; opacity: 0.7; }

/* ---- Marquee ---- */
.hero-marquee {
  margin-top: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee 35s linear infinite;
  white-space: nowrap;
  width: max-content;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}
[data-motion="off"] .marquee-track,
[data-motion="off"] .float-card,
[data-motion="off"] .hero-eyebrow .dot { animation: none !important; }

/* ---- Logo strip ---- */
.logo-strip { padding: 60px 40px; max-width: 1400px; margin: 0 auto; text-align: center; }
.strip-eyebrow { display: block; margin-bottom: 24px; }
.logo-row { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.logo-item {
  font-family: "Instrument Serif", serif;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  opacity: 0.7;
  transition: opacity 0.2s;
}
.logo-item:hover { opacity: 1; color: var(--ink); }

/* ---- Feature ---- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  padding: 120px 40px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: center;
  border-top: 1px solid var(--rule);
}
.feature.reverse { grid-template-columns: 1.1fr 1fr; }
.feature.reverse .feature-copy { order: 2; }
.feature.reverse .feature-visual { order: 1; }

.feature-title {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 16px 0 20px;
  text-wrap: balance;
}
.feature-body { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin: 0 0 28px; max-width: 460px; }
.feature-bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.feature-bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--ink); }
.feature-bullets .tick { color: var(--accent); font-weight: 600; }

.feature-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ---- Tech pack visual ---- */
.vis-techpack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; height: 100%; }
.vis-techpack .tp-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease calc(var(--i) * 0.12s), transform 0.5s ease calc(var(--i) * 0.12s);
}
.vis-techpack.in .tp-card { opacity: 1; transform: translateY(0); }
.tp-head { display: flex; justify-content: space-between; }
.tp-thumb { aspect-ratio: 4/3; background: white; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; }
.tp-name { font-weight: 600; font-size: 13px; }

/* ---- TNA visual ---- */
.vis-tna { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.tna-head { display: flex; justify-content: space-between; align-items: center; }
.tna-timeline-head {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 0;
  font-family: "Geist Mono", monospace; font-size: 10px; color: var(--ink-2);
  border-bottom: 1px solid var(--rule); padding-bottom: 6px;
}
.tna-rows { display: flex; flex-direction: column; gap: 6px; }
.tna-row {
  display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 12px;
  opacity: 0; transform: translateX(-12px);
  transition: opacity 0.5s ease calc(var(--i) * 0.06s), transform 0.5s ease calc(var(--i) * 0.06s);
}
.vis-tna.in .tna-row { opacity: 1; transform: translateX(0); }
.tna-name { font-size: 11px; color: var(--ink-2); }
.tna-track { position: relative; height: 14px; background: var(--paper); border-radius: 4px; }
.tna-bar { position: absolute; top: 3px; height: 8px; border-radius: 3px; background: var(--accent); }
.tna-bar.future { background: color-mix(in oklab, var(--accent) 50%, transparent); }
.tna-today { position: absolute; top: -2px; bottom: -2px; left: 56%; width: 1px; background: oklch(0.6 0.18 25); }

/* ---- Map visual ---- */
.vis-map { position: relative; height: 100%; display: flex; flex-direction: column; }
.world-svg { flex: 1; width: 100%; height: 100%; }
.map-legend { display: flex; gap: 20px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--ink-2); }
.map-legend .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.map-legend .dot.accent { background: var(--accent); }
.map-legend .dot.ink { background: var(--ink); }

/* ---- AI visual ---- */
.vis-ai { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.ai-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.ai-spark { color: var(--accent); }
.ai-line {
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-size: 13px;
  line-height: 1.45;
  max-width: 85%;
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s ease calc(var(--i) * 0.2s), transform 0.4s ease calc(var(--i) * 0.2s);
}
.vis-ai.in .ai-line { opacity: 1; transform: translateY(0); }
.ai-line.user { background: var(--ink); color: var(--paper); align-self: flex-end; }
.ai-line.bot { background: var(--paper); border: 1px solid var(--rule); align-self: flex-start; display: flex; gap: 6px; }
.ai-suggest { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--rule); }
.ai-chips { display: flex; gap: 6px; margin-top: 6px; }
.ai-chips span { font-size: 11px; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; }

/* ---- How ---- */
.how { padding: 120px 40px; max-width: 1400px; margin: 0 auto; border-top: 1px solid var(--rule); }
.how-head { text-align: center; margin-bottom: 60px; }
.how-head h2 { font-size: clamp(36px, 4vw, 56px); font-weight: 500; letter-spacing: -0.03em; margin: 12px 0 0; line-height: 1.05; }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 80px; }
.how-step {
  border-top: 1px solid var(--ink);
  padding: 20px 0 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease calc(var(--i) * 0.1s), transform 0.6s ease calc(var(--i) * 0.1s);
}
.how.in .how-step { opacity: 1; transform: translateY(0); }
.how-step h3 { font-size: 18px; font-weight: 600; margin: 12px 0 8px; letter-spacing: -0.01em; }
.how-step p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0; }

.how-flow {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  align-items: center;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 32px;
}
.flow-side { display: flex; flex-direction: column; gap: 12px; }
.flow-side.flow-right { text-align: right; align-items: flex-end; }
.flow-rows { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.flow-rows > div {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-sm);
  padding: 6px 12px; font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
}
.flow-pipe { position: relative; text-align: center; }
.flow-pipe svg { width: 100%; height: 80px; }
.flow-pipe .mono-label {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -180%);
  background: var(--paper-2); padding: 2px 8px;
}

/* ---- Quote ---- */
.quote-sec {
  padding: 120px 40px; max-width: 1000px; margin: 0 auto; text-align: center;
  border-top: 1px solid var(--rule);
}
.quote-sec blockquote {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 24px 0 32px;
  text-wrap: balance;
}
.quote-sec blockquote em { font-family: "Instrument Serif", serif; font-style: italic; color: var(--accent); }
.quote-attr { display: inline-flex; gap: 12px; align-items: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--ink)); }
.quote-attr div { text-align: left; }

/* ---- CTA ---- */
.cta { position: relative; padding: 120px 40px; border-top: 1px solid var(--rule); overflow: hidden; }
.cta-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 30%, transparent 80%);
}
.cta-inner { position: relative; max-width: 700px; margin: 0 auto; text-align: center; }
.cta-inner h2 { font-size: clamp(40px, 5vw, 64px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; margin: 16px 0 16px; text-wrap: balance; }
.cta-inner p { color: var(--ink-2); font-size: 17px; margin: 0 0 32px; }
.cta-form { display: flex; gap: 8px; max-width: 480px; margin: 0 auto 16px; }
.cta-form input {
  flex: 1; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 999px;
  background: var(--paper); font-family: inherit; font-size: 14px; color: var(--ink);
}
.cta-form input:focus { outline: none; border-color: var(--accent); }
.cta-foot { display: block; }

/* ---- Footer ---- */
.footer {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding: 40px 40px 60px;
  border-top: 1px solid var(--rule);
  max-width: 1400px; margin: 0 auto;
}
.foot-mark { display: flex; flex-direction: column; gap: 16px; }
.foot-cols { display: contents; }
.foot-cols > div { display: flex; flex-direction: column; gap: 8px; }
.foot-cols > div .mono-label { margin-bottom: 6px; }
.foot-cols a { color: var(--ink-2); text-decoration: none; font-size: 14px; cursor: pointer; }
.foot-cols a:hover { color: var(--ink); }

/* ---- Feature reveal ---- */
.feature .feature-copy, .feature .feature-visual {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.feature.in .feature-copy, .feature.in .feature-visual { opacity: 1; transform: translateY(0); }
.feature.in .feature-visual { transition-delay: 0.15s; }

/* ---- v2 specific overrides applied via parent class ---- */
.ito-page.v2 {
  --paper: oklch(0.99 0.003 250);
  --paper-2: oklch(0.97 0.005 250);
  --ink: oklch(0.18 0.02 250);
  --ink-2: oklch(0.45 0.02 250);
  --rule: oklch(0.9 0.01 250);
}
.ito-page.v2 .hero-title em { font-family: inherit; font-style: normal; font-weight: 600; color: var(--accent); }
.ito-page.v2 .feature-visual { box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 30px 80px -40px color-mix(in oklab, var(--accent) 30%, transparent); }
.ito-page.v2 .float-card { border-radius: 12px; }
.ito-page.v2 .quote-sec blockquote em { font-family: inherit; }

/* ---- Modules grid (Doss-style) ---- */
.modules { padding: 120px 40px; max-width: 1400px; margin: 0 auto; border-top: 1px solid var(--rule); }
.modules-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: end; margin-bottom: 60px; }
.modules-head h2 { font-size: clamp(40px, 4.5vw, 64px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; margin: 14px 0 0; text-wrap: balance; }
.modules-head h2 em { font-style: italic; font-family: "Instrument Serif", serif; font-weight: 400; color: var(--accent); }
.modules-head p { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 520px; margin: 0; }
.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}
.mod-card {
  position: relative;
  background: var(--paper);
  padding: 36px 32px 32px;
  min-height: 240px;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.25s ease, transform 0.25s ease;
  opacity: 0; transform: translateY(14px);
  animation: mod-rise 0.6s ease forwards calc(var(--i, 0) * 0.06s);
}
@keyframes mod-rise { to { opacity: 1; transform: none; } }
.mod-card:hover { background: var(--paper-2); }
.mod-card.active { background: color-mix(in oklab, var(--accent) 14%, var(--paper)); }
.mod-card.active .mod-icon { color: var(--accent); }
.mod-icon { color: var(--ink); margin-bottom: auto; padding-bottom: 36px; }
.mod-meta h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 6px; }
.mod-meta p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.45; }
.mod-arrow { position: absolute; top: 24px; right: 28px; font-size: 16px; color: var(--ink-2); opacity: 0; transition: opacity 0.2s, transform 0.2s; }
.mod-card:hover .mod-arrow { opacity: 1; transform: translateX(4px); }
.mod-card.active .mod-arrow { opacity: 1; color: var(--accent); }

/* ---- Isometric stage ---- */
.iso-sec { padding: 100px 40px 120px; max-width: 1400px; margin: 0 auto; border-top: 1px solid var(--rule); }
.iso-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: end; margin-bottom: 30px; }
.iso-head h2 { font-size: clamp(40px, 4.5vw, 64px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; margin: 14px 0 0; text-wrap: balance; }
.iso-head h2 em { font-style: italic; font-family: "Instrument Serif", serif; font-weight: 400; color: var(--accent); }
.iso-head p { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 520px; margin: 0; }
.iso-stage {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  padding: 24px;
}
.iso-svg { width: 100%; height: auto; display: block; }

.iso-box, .iso-tag {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: calc(var(--d, 0) * 1s);
}
.iso-sec.in .iso-box, .iso-sec.in .iso-tag { opacity: 1; transform: none; }

/* ---- Garment digital render ---- */
.g-render {
  --garment-bg-1: oklch(0.97 0.01 80);
  --garment-bg-2: oklch(0.92 0.012 80);
  --garment-grid: oklch(0.85 0.01 80);
  --garment-fill: oklch(0.86 0.012 80);
  --garment-stroke: oklch(0.32 0.02 60);
  --garment-mark: oklch(0.4 0.02 60);
  position: relative;
  width: 100%;
  aspect-ratio: 200 / 180;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.g-svg { display: block; width: 100%; height: 100%; }
.g-scan { animation: g-scan 5s linear infinite; }
@keyframes g-scan {
  0% { transform: translateY(0); opacity: 0.2; }
  50% { opacity: 0.7; }
  100% { transform: translateY(178px); opacity: 0.2; }
}
.g-spark {
  position: absolute; top: 8px; right: 10px;
  font-size: 12px; color: var(--accent);
  animation: g-twinkle 3s ease-in-out infinite;
}
@keyframes g-twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.85) rotate(0); }
  50% { opacity: 1; transform: scale(1.1) rotate(45deg); }
}
[data-motion="off"] .g-scan,
[data-motion="off"] .g-spark { animation: none !important; }

/* ---- Hero mosaic (non-overlapping grid) ---- */
.hero-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  width: 100%;
  height: 100%;
  align-content: stretch;
}
.hm-card {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  min-height: 0;
  overflow: hidden;
  animation: hm-bob 9s ease-in-out infinite;
  will-change: transform;
}
.hm-card:nth-child(1) { animation-delay: -0.5s; }
.hm-card:nth-child(2) { animation-delay: -2.5s; }
.hm-card:nth-child(3) { animation-delay: -4.5s; }
.hm-card:nth-child(4) { animation-delay: -1.5s; }
@keyframes hm-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hm-style { grid-row: 1 / span 2; border-left: 3px solid var(--accent); }
.hm-style .hm-render { flex: 1 1 auto; min-height: 0; aspect-ratio: auto; }
.hm-style .hm-render .g-svg { height: 100%; }
.hm-tna { grid-row: 1; }
.hm-ship { grid-row: 2; }
.hm-tna .gantt-mini { flex: 1; justify-content: space-between; }
.hm-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
.hm-render { margin: 2px 0 4px; }
.hm-body { display: flex; flex-direction: column; gap: 8px; }
.hm-body > strong { font-size: 14px; letter-spacing: -0.01em; }
.hm-next {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; border-top: 1px solid var(--rule);
}
.hm-next strong { font-size: 13px; display: block; margin-top: 2px; white-space: nowrap; }
.hm-next .late { white-space: nowrap; flex-shrink: 0; margin-left: 8px; }
.hm-next > div { min-width: 0; }
.hm-bom-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; gap: 8px; flex-wrap: nowrap; }
.hm-bom-row strong { font-size: 14px; white-space: nowrap; }
.hm-bom-row .bom-cost { white-space: nowrap; font-family: "Geist Mono", monospace; font-size: 11px; color: var(--ink-2); }
.hm-ship .pill { white-space: nowrap; flex-shrink: 0; }
.hm-ship .ship-row { gap: 8px; }
.hm-ship .ship-row span { white-space: nowrap; }
[data-density="tight"] .hero-mosaic { gap: 8px; }
[data-density="spread"] .hero-mosaic { gap: 16px; }
[data-motion="off"] .hm-card { animation: none !important; }

/* ---- Style dashboard visual (rich style cards) ---- */
.vis-styles { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.vis-styles-head { display: flex; justify-content: space-between; align-items: flex-end; }
.vis-styles-head h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.vis-styles-filters { display: flex; gap: 10px; font-size: 11px; color: var(--ink-2); }
.vis-styles-filters span {
  font-family: "Geist Mono", monospace; padding: 4px 10px;
  border: 1px solid var(--rule); border-radius: 999px;
}
.vis-styles-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  flex: 1; min-height: 0;
}

.sc-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
  cursor: pointer;
}
.sc-card.sc-risk { border-left: 3px solid oklch(0.6 0.18 25); }
.sc-card.sc-warn { border-left: 3px solid oklch(0.65 0.15 75); }
.sc-card.sc-ok { border-left: 3px solid oklch(0.6 0.14 145); }
.sc-card:hover { box-shadow: var(--shadow-lg); border-color: color-mix(in oklab, var(--accent) 50%, var(--rule)); }
.sc-main { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.sc-head { display: flex; justify-content: space-between; align-items: center; }
.sc-thumb { aspect-ratio: 4 / 3; }
.sc-body { display: flex; flex-direction: column; gap: 6px; }
.sc-name { font-size: 13px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
.sc-factory { font-size: 11px; color: var(--ink-2); display: flex; align-items: center; gap: 4px; }
.sc-pin { color: var(--accent); }
.sc-progress { display: flex; flex-direction: column; gap: 4px; }
.sc-progress-head { display: flex; justify-content: space-between; }
.sc-next {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; border-top: 1px solid var(--rule);
}
.sc-next strong { display: block; font-size: 12px; margin-top: 2px; }
.sc-late { font-family: "Geist Mono", monospace; font-size: 11px; }
.sc-late.is-late { color: oklch(0.6 0.18 25); }
.sc-late.is-ok { color: oklch(0.55 0.14 145); }

.sc-detail {
  position: absolute;
  inset: 0 0 0 50%;
  background: var(--paper);
  border-left: 1px solid var(--rule);
  padding: 14px;
  display: flex; flex-direction: column; gap: 12px;
  transform: translateX(110%);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
  font-size: 11px;
  z-index: 2;
  box-shadow: -20px 0 40px -20px rgba(0,0,0,0.25);
}
.sc-card.open .sc-detail { transform: translateX(0); }
.sc-detail-head h4 { margin: 4px 0 0; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.sc-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px;
}
.sc-detail-grid strong { font-size: 12px; display: block; margin-top: 2px; }
.sc-detail-ms { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.sc-detail-ms ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 3px; overflow: auto; }
.sc-ms { display: flex; align-items: center; gap: 6px; font-size: 11px; }
.sc-ms em { margin-left: auto; font-style: normal; color: var(--ink-2); font-family: "Geist Mono", monospace; font-size: 9px; }
.sc-ms-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rule); }
.sc-ms.done .sc-ms-dot { background: oklch(0.6 0.14 145); }
.sc-ms.now .sc-ms-dot { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 25%, transparent); }
.sc-detail-cta { align-self: flex-start; }
[data-motion="off"] .sc-detail { transition: none !important; }

/* ---- Tech pack reader visual ---- */
.vis-reader { display: flex; flex-direction: column; height: 100%; }
.reader-stage {
  position: relative;
  display: grid; grid-template-columns: 1fr 80px 1.4fr;
  gap: 0; align-items: stretch;
  height: 100%;
}
.reader-pdf {
  position: relative;
  background: white;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
}
.reader-pdf-head { display: flex; gap: 10px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid oklch(0.9 0.01 60); }
.reader-pdf-icon {
  background: oklch(0.55 0.18 25); color: white;
  font-family: "Geist Mono", monospace; font-size: 9px; font-weight: 700; letter-spacing: 0.1em;
  padding: 4px 6px; border-radius: 3px;
}
.reader-pdf-head strong { font-size: 12px; color: oklch(0.18 0.01 60); display: block; margin-bottom: 2px; }
.reader-pdf-head .mono-label { color: oklch(0.45 0.01 60); }
.reader-pdf-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.reader-pdf-line { height: 6px; background: oklch(0.92 0.005 60); border-radius: 2px; }
.reader-pdf-line.w-80 { width: 80%; } .reader-pdf-line.w-70 { width: 70%; }
.reader-pdf-line.w-72 { width: 72%; } .reader-pdf-line.w-65 { width: 65%; }
.reader-pdf-line.w-60 { width: 60%; } .reader-pdf-line.w-55 { width: 55%; }
.reader-pdf-line.w-50 { width: 50%; } .reader-pdf-line.w-40 { width: 40%; }
.reader-pdf-scan {
  position: absolute; left: 0; right: 0; height: 24px;
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--accent) 30%, transparent), transparent);
  animation: pdf-scan 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pdf-scan {
  0%, 100% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  50% { top: calc(100% - 24px); }
}
.reader-arrow { width: 100%; height: 100%; align-self: center; }

.reader-out {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
  overflow: hidden;
}
.reader-out-head { display: flex; justify-content: space-between; align-items: center; }
.reader-out-head strong { font-size: 12px; }
.reader-lang {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: "Geist Mono", monospace; font-size: 10px;
  padding: 3px 8px; border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 15%, var(--paper));
  color: var(--accent-ink);
  transition: background 0.4s;
}
.ai-spark { color: var(--accent); }
.reader-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.reader-table th {
  text-align: left; padding: 4px 6px;
  font-family: "Geist Mono", monospace; font-weight: 600; letter-spacing: 0.06em;
  color: var(--ink-2); border-bottom: 1px solid var(--rule);
}
.reader-table td {
  padding: 5px 6px; border-bottom: 1px solid var(--rule);
  animation: row-flip 0.4s ease both;
}
[data-lang] .reader-table tr td { animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes row-flip {
  0% { opacity: 0; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}
.reader-table td:first-child { font-family: "Geist Mono", monospace; color: var(--ink-2); }
.reader-table td:last-child { text-align: right; font-family: "Geist Mono", monospace; }
.reader-out-foot {
  display: flex; justify-content: space-between; padding-top: 8px;
  border-top: 1px solid var(--rule); margin-top: auto;
}
.reader-langs {
  position: absolute; right: -4px; top: -4px;
  display: flex; gap: 4px;
}
.reader-lang-chip {
  font-family: "Geist Mono", monospace; font-size: 9px;
  padding: 3px 7px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--paper);
  color: var(--ink-2);
  transition: all 0.3s;
}
.reader-lang-chip.on {
  background: var(--accent); color: white; border-color: var(--accent);
}
[data-motion="off"] .reader-pdf-scan { animation: none !important; }
[data-motion="off"] .reader-table td { animation: none !important; }

/* in-canvas focus mode */
@media (max-width: 1280px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stage { height: 480px; }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 40px; padding: 60px 24px; }
  .feature.reverse .feature-copy, .feature.reverse .feature-visual { order: unset; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { grid-template-columns: 1fr 1fr; }
}
