:root {
  --cream-50: #fdfbf7;
  --cream-100: #faf8f5;
  --cream-200: #f5f0e8;
  --cream-300: #e8e2d9;
  --cream-400: #d4cbc0;
  --cream-500: #b8ada0;
  --warm-400: #a8a29e;
  --warm-500: #8a837d;
  --warm-600: #78716c;
  --warm-700: #57534e;
  --warm-800: #44403c;
  --warm-900: #292524;
  --ink: #1c1917;
  --accent: #a8702f;
  --accent-2: #d6a25c;
  --accent-soft: #f6ead8;
  --sage: #7d9468;
  --line: rgba(41, 37, 36, .14);
  --line-dash: rgba(41, 37, 36, .22);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --head: "Manrope", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--cream-100);
  color: var(--warm-900);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
::selection { background: var(--accent); color: #fff; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }

/* labels */
.mono-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--warm-600);
}
.mono-label.light { color: var(--cream-500); }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent);
  animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* corner registration marks */
.corner { position: absolute; width: 7px; height: 7px; border: 1.5px solid var(--accent); background: var(--cream-100); z-index: 2; }
.corner.tl { top: -4px; left: -4px; }
.corner.tr { top: -4px; right: -4px; }
.corner.bl { bottom: -4px; left: -4px; }
.corner.br { bottom: -4px; right: -4px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 8px; border: 1.5px solid transparent;
  font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .3s var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-dark { background: var(--warm-900); color: var(--cream-100); }
.btn-dark:hover { background: var(--ink); }
.btn-line { border-color: var(--warm-900); color: var(--warm-900); }
.btn-line:hover { background: var(--warm-900); color: var(--cream-100); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); }
.btn-line-light { border-color: var(--cream-500); color: var(--cream-100); }
.btn-line-light:hover { border-color: var(--cream-100); }
.btn-wide { width: 100%; }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(250, 248, 245, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { width: min(1200px, 100% - 48px); margin-inline: auto; height: 68px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { display: block; width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.logo-text { font-family: var(--head); font-weight: 600; font-size: 19px; letter-spacing: -.02em; }
.logo-text b { color: var(--accent); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; }
.nav-links a:not(.btn) { color: var(--warm-700); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--accent); }
.burger { display: none; width: 30px; height: 20px; position: relative; background: none; border: 0; cursor: pointer; }
.burger span { position: absolute; left: 0; right: 0; height: 1.5px; background: var(--warm-900); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger span:first-child { top: 5px; }
.burger span:last-child { top: 14px; }
.burger.open span:first-child { top: 10px; transform: rotate(45deg); }
.burger.open span:last-child { top: 10px; transform: rotate(-45deg); }

/* HERO */
.hero { padding: 140px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 {
  font-family: var(--head); font-weight: 700; letter-spacing: -.035em;
  font-size: clamp(38px, 5vw, 64px); line-height: 1.05; margin: 22px 0 22px;
}
.hero-sub { font-size: 18px; color: var(--warm-700); max-width: 540px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 32px; }
.chips li {
  font-family: var(--mono); font-size: 12px; padding: 6px 12px;
  border: 1px dashed var(--line-dash); border-radius: 4px; color: var(--warm-700); background: var(--cream-50);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 16px; font-size: 12px; color: var(--warm-600); }

/* schematic panel */
.schematic {
  position: relative; background: var(--warm-900); color: var(--cream-300);
  border-radius: 4px; padding: 18px; box-shadow: 0 30px 60px -30px rgba(41, 37, 36, .55);
}
.schematic-head { display: flex; justify-content: space-between; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-500); padding-bottom: 12px; border-bottom: 1px dashed rgba(232, 226, 217, .18); }
.schema { display: block; width: 100%; height: auto; color: var(--cream-300); }
.schema .links path { stroke-opacity: .28; }
.schema .flow path { stroke: var(--accent-2); stroke-dasharray: 6 220; animation: flow 3.2s linear infinite; }
.schema .flow path:nth-child(2) { animation-delay: -.6s; }
.schema .flow path:nth-child(3) { animation-delay: -1.2s; }
.schema .flow path:nth-child(4) { animation-delay: -1.8s; }
.schema .flow path:nth-child(5) { animation-delay: -2.4s; }
.schema .flow path:nth-child(6) { animation-delay: -.3s; }
@keyframes flow { from { stroke-dashoffset: 226; } to { stroke-dashoffset: 0; } }
.schema .spin { transform-origin: 260px 210px; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.schema .core-nine { font-family: var(--mono); font-size: 44px; font-weight: 600; fill: var(--accent-2); }
.schema .node rect { fill: var(--warm-900); stroke: var(--cream-300); stroke-opacity: .55; stroke-width: 1.2; }
.schema .node text { font-family: var(--mono); font-size: 12px; fill: var(--cream-200); text-anchor: middle; }
.schema .anno text { font-family: var(--mono); font-size: 10px; fill: var(--cream-500); fill-opacity: .8; }
.spec { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px dashed rgba(232, 226, 217, .18); }
.spec div { padding: 14px 4px 16px; }
.spec div + div { padding-left: 14px; border-left: 1px dashed rgba(232, 226, 217, .18); }
.spec small { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--cream-500); }
.spec b { font-size: 13px; font-weight: 500; color: var(--cream-100); }

/* ticker */
.ticker { border-block: 1px dashed var(--line-dash); overflow: hidden; padding: 16px 0; background: var(--cream-50); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { font-size: 13px; color: var(--warm-600); padding: 0 28px; position: relative; white-space: nowrap; }
.ticker span::after { content: "/"; position: absolute; right: -4px; color: var(--accent); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* sections */
.section { padding: clamp(80px, 11vw, 130px) 0; }
.section-alt { background: var(--cream-200); border-block: 1px solid var(--line); }
.section-head { margin-bottom: clamp(40px, 6vw, 64px); max-width: 780px; }
.section-head h2, .contact h2 {
  font-family: var(--head); font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(30px, 4vw, 48px); line-height: 1.1; margin-top: 16px;
}

/* scenario cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card {
  position: relative; padding: 28px; background: var(--cream-50);
  border: 1.5px dashed var(--line-dash); border-radius: 2px;
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(41, 37, 36, .35); }
.card-top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--warm-600); }
.card-top span:first-child { color: var(--accent); font-weight: 600; }
.card h3 { font-family: var(--head); font-weight: 700; font-size: 23px; letter-spacing: -.02em; line-height: 1.2; margin: 18px 0 10px; }
.card > p { color: var(--warm-700); font-size: 15px; }
.effect { margin-top: 22px; padding: 16px 18px; background: var(--cream-200); border-left: 2px solid var(--accent); }
.effect .mono { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--warm-600); margin-bottom: 8px; }
.effect ul { list-style: none; display: grid; gap: 6px; }
.effect li { font-size: 14px; font-weight: 500; padding-left: 18px; position: relative; }
.effect li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.cards-foot { margin-top: 36px; font-size: 13px; color: var(--warm-600); }
.cards-foot a { color: var(--accent); border-bottom: 1px solid currentColor; }

/* tabs */
.tab-list { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 20px; border-bottom: 1px dashed var(--line-dash); }
.tab {
  padding: 10px 18px; border-radius: 6px; border: 1.5px solid var(--line);
  background: transparent; color: var(--warm-700); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.tab:hover { border-color: var(--warm-900); color: var(--warm-900); }
.tab.active { background: var(--warm-900); border-color: var(--warm-900); color: var(--cream-100); }
.tab-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 36px; animation: fade .45s var(--ease); }
.tab-panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } }
.panel-col > .mono { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.panel-lead { font-family: var(--head); font-size: clamp(20px, 2vw, 24px); font-weight: 600; line-height: 1.35; letter-spacing: -.015em; }
.checks { list-style: none; display: grid; gap: 14px; }
.checks li { position: relative; padding: 0 0 14px 30px; border-bottom: 1px dashed var(--line); color: var(--warm-800); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 3px;
  border: 1.5px solid var(--sage); background: linear-gradient(var(--sage), var(--sage)) center / 6px 6px no-repeat;
}

/* case */
.case {
  position: relative; display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px;
  padding: clamp(28px, 4vw, 48px); background: var(--cream-50);
  border: 1.5px dashed var(--line-dash); border-radius: 2px;
}
.case-meta { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--warm-600); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 100px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.case h3 { font-family: var(--head); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.025em; line-height: 1.12; margin: 22px 0 14px; }
.case-side > p { color: var(--warm-700); }
.case-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 28px; border-top: 1.5px solid var(--warm-900); }
.case-facts div { padding: 14px 0 0; }
.case-facts div + div { padding-left: 14px; border-left: 1px dashed var(--line-dash); }
.case-facts dt { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--warm-600); }
.case-facts dd { font-size: 15px; font-weight: 600; color: var(--warm-900); margin-top: 4px; }
.case-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.case .checks b { font-weight: 600; color: var(--warm-900); }

/* model */
.model { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; margin-bottom: 56px; }
.model-col { padding: 32px; border: 1.5px solid var(--warm-900); border-radius: 4px; background: var(--cream-50); }
.model-col:last-child { background: var(--warm-900); color: var(--cream-200); }
.model-step { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.model-col:last-child .model-step { color: var(--accent-2); }
.model-col h3 { font-family: var(--head); font-weight: 700; font-size: 26px; letter-spacing: -.02em; margin: 10px 0 8px; }
.model-col:last-child h3 { color: var(--cream-50); }
.model-col > p { color: var(--warm-700); font-size: 15px; }
.model-col:last-child > p { color: var(--cream-400); }
.model-list { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.model-list li { position: relative; padding-left: 20px; font-size: 15px; }
.model-list li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.model-col:last-child .model-list li::before { color: var(--accent-2); }
.model-arrow { align-self: center; font-family: var(--mono); font-size: 28px; color: var(--accent); }

/* about */
.about-lead { font-size: clamp(18px, 1.8vw, 21px); color: var(--warm-700); max-width: 780px; margin: -24px 0 56px; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--warm-900); }
.pillar { padding: 28px 28px 8px 0; }
.pillar + .pillar { padding-left: 28px; border-left: 1px dashed var(--line-dash); }
.pillar-num { font-size: 12px; color: var(--accent); font-weight: 600; }
.pillar h3 { font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: -.015em; line-height: 1.25; margin: 14px 0 10px; }
.pillar p { color: var(--warm-700); font-size: 15px; }

/* timeline */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 37px; border-top: 1.5px dashed var(--cream-500); }
.timeline li { position: relative; }
.t-when { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--warm-600); }
.t-dot { display: block; width: 14px; height: 14px; margin: 14px 0 22px; border-radius: 50%; background: var(--cream-200); border: 2px solid var(--accent); position: relative; z-index: 1; }
.timeline li:first-child .t-dot { background: var(--accent); }
.timeline h3 { font-family: var(--head); font-weight: 700; font-size: 20px; letter-spacing: -.015em; margin-bottom: 8px; }
.timeline p { font-size: 15px; color: var(--warm-700); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.section-head.single { margin-bottom: 0; position: sticky; top: 100px; }
.faq details { border-bottom: 1px dashed var(--line-dash); }
.faq details:first-child { border-top: 1.5px solid var(--warm-900); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--head); font-weight: 600; font-size: 18px; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 20px; color: var(--accent); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--warm-700); animation: fade .35s var(--ease); }

/* contact */
.contact-box {
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px;
  background: var(--warm-900); color: var(--cream-200); border-radius: 4px;
  padding: clamp(32px, 5vw, 64px);
  background-image: linear-gradient(rgba(232,226,217,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(232,226,217,.05) 1px, transparent 1px);
  background-size: 24px 24px;
}
.contact-box .corner { background: var(--warm-900); }
.contact h2 { color: var(--cream-50); }
.contact .accent { color: var(--accent-2); }
.contact-copy > p:not(.mono-label) { color: var(--cream-400); margin: 18px 0 28px; max-width: 440px; }
.form { display: grid; gap: 16px; align-content: start; }
.field { display: grid; gap: 6px; }
.field span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-500); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 6px; resize: vertical;
  background: rgba(250, 248, 245, .05); border: 1px dashed rgba(232, 226, 217, .25);
  color: var(--cream-50); font: inherit; font-size: 15px; outline: none; transition: border-color .2s, background .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--warm-500); }
.field input:focus, .field textarea:focus { border-style: solid; border-color: var(--accent-2); background: rgba(250, 248, 245, .08); }
.field.error input { border-color: #e07a6a; border-style: solid; }
.form-note { font-size: 11px; color: var(--warm-400); text-align: center; }
.form-note.ok { color: var(--accent-2); }

/* footer */
.footer { padding: 28px 0 36px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--warm-600); }
.footer-inner > a:last-child:hover { color: var(--accent); }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 980px) {
  .hero-grid, .faq-grid, .contact-box { grid-template-columns: 1fr; }
  .section-head.single { position: static; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .case { grid-template-columns: 1fr; gap: 32px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .pillar:nth-child(3) { padding-left: 0; border-left: 0; }
  .pillar:nth-child(n+3) { border-top: 1px dashed var(--line-dash); }
  .timeline::before { display: none; }
}
@media (max-width: 760px) {
  .container, .nav-inner { width: calc(100% - 32px); }
  .burger { display: block; z-index: 2; }
  .nav-links {
    position: fixed; inset: 68px 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream-100); border-bottom: 1px solid var(--line); padding: 8px 16px 20px;
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .25s, transform .25s;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
  .nav-links .nav-cta { margin-top: 16px; padding: 14px; }
  .hero { padding-top: 110px; }
  .cards, .tab-panel, .pillars, .timeline, .model { grid-template-columns: 1fr; }
  .model-arrow { justify-self: center; transform: rotate(90deg); }
  .case-facts { grid-template-columns: 1fr 1fr 1fr; }
  .tab-panel { gap: 28px; }
  .pillar, .pillar + .pillar { padding: 24px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px dashed var(--line-dash); }
  .spec { grid-template-columns: 1fr; }
  .spec div + div { padding-left: 4px; border-left: 0; border-top: 1px dashed rgba(232, 226, 217, .18); }
  .schema .anno { display: none; }
  .hero-actions .btn { flex: 1; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
