:root {
  --ink: #11161b;
  --panel: #161c21;
  --panel-2: #1d252b;
  --paper: #f2f1ec;
  --muted: #8d989d;
  --line: rgba(255,255,255,.14);
  --line-dark: rgba(17,22,27,.18);
  --amber: #e5a927;
  --cyan: #55c4d1;
  --white: #f7f8f5;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 clamp(20px, 4vw, 64px); border-bottom: 1px solid var(--line-dark); background: rgba(242,241,236,.94); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand span { font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.topbar-tools { display: flex; align-items: center; gap: 20px; }
.language-switcher { display: flex; gap: 4px; }
.language-button { border: 0; background: transparent; color: #657078; font: 600 10px var(--mono); padding: 8px 4px; }
.language-button.is-active { color: var(--ink); border-bottom: 2px solid var(--amber); }
.topbar-link { font-size: 13px; color: #5e686e; }
.topbar-link:hover, .topbar-link:focus-visible { color: var(--ink); }
.topbar-cta { display: inline-flex; align-items: center; gap: 20px; background: var(--ink); color: var(--white); padding: 14px 18px; font-size: 12px; font-weight: 700; transition: background .2s ease, transform .2s ease; }
.topbar-cta:hover, .topbar-cta:focus-visible { background: #263139; transform: translateY(-2px); }

.hero-showcase { min-height: calc(100vh - 72px); display: grid; grid-template-columns: minmax(280px, .7fr) minmax(560px, 1.3fr); gap: clamp(30px, 5vw, 92px); padding: clamp(54px, 8vw, 110px) clamp(20px, 5vw, 80px) clamp(44px, 7vw, 92px); background: var(--ink); color: var(--white); overflow: hidden; }
.hero-copy { max-width: 530px; align-self: center; padding-bottom: 8vh; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 24px; color: var(--amber); font: 600 10px var(--mono); letter-spacing: .12em; }
.eyebrow-dot, .status-dot { display: inline-block; width: 7px; height: 7px; background: var(--amber); border-radius: 50%; box-shadow: 0 0 0 4px rgba(229,169,39,.14); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 700px; margin-bottom: 24px; font-size: clamp(42px, 6vw, 86px); line-height: .95; letter-spacing: -.045em; }
h1 em, h2 em { color: var(--amber); font-style: normal; }
.hero-lead { max-width: 470px; color: #b8c0c1; font-size: 16px; line-height: 1.65; }
.persona-switcher { display: flex; gap: 8px; margin: 34px 0 16px; }
.persona-button { border: 1px solid rgba(255,255,255,.25); color: #b8c0c1; background: transparent; padding: 10px 13px; font-size: 12px; }
.persona-button.is-active, .persona-button:hover, .persona-button:focus-visible { color: var(--ink); background: var(--amber); border-color: var(--amber); }
.persona-note { min-height: 24px; max-width: 390px; color: #889396; font-size: 13px; line-height: 1.5; }
.hero-link { display: inline-flex; gap: 16px; align-items: center; margin-top: 22px; padding-bottom: 8px; border-bottom: 1px solid var(--amber); color: var(--white); font-size: 13px; font-weight: 700; }
.hero-link span { color: var(--amber); font-size: 18px; }

.hero-scene-wrap { min-width: 0; align-self: center; }
.scene-shell { position: relative; height: min(74vh, 780px); min-height: 520px; overflow: hidden; border: 1px solid rgba(255,255,255,.24); background: #20282e; box-shadow: 0 28px 80px rgba(0,0,0,.35); }
#wagon-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#wagon-canvas:active { cursor: grabbing; }
.scene-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; filter: saturate(.7) contrast(1.08); transition: opacity .45s ease; }
.scene-shell.model-ready .scene-poster { opacity: 0; }
.scene-grid { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent); opacity: .45; }
.scene-grid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 0 47%, rgba(229,169,39,.4) 48% 48.15%, transparent 49%), linear-gradient(20deg, transparent 0 62%, rgba(85,196,209,.22) 62.2% 62.35%, transparent 62.5%); }
.scene-toolbar { position: absolute; inset: 16px 16px auto; display: flex; align-items: center; gap: 12px; z-index: 3; }
.scene-status { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; color: var(--white); font: 600 10px var(--mono); letter-spacing: .08em; }
.status-dot { width: 5px; height: 5px; background: #58d18e; box-shadow: 0 0 0 4px rgba(88,209,142,.16); }
.scene-control { display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(255,255,255,.28); background: rgba(17,22,27,.76); color: var(--white); padding: 10px 12px; font-size: 11px; }
.scene-control:hover, .scene-control:focus-visible, .scene-control[aria-pressed="true"] { border-color: var(--amber); color: var(--amber); }
.section-indicator { position: absolute; top: 50%; left: 50%; display: none; align-items: center; gap: 9px; width: 100%; transform: translate(-50%, -50%); pointer-events: none; color: var(--amber); font: 600 10px var(--mono); letter-spacing: .1em; z-index: 2; }
.section-indicator i { display: block; flex: 1; border-top: 1px dashed rgba(229,169,39,.8); }
.scene-shell.is-cutaway .section-indicator { display: flex; }
.scene-caption { position: absolute; inset: auto 16px 14px; z-index: 3; display: flex; justify-content: space-between; gap: 16px; color: rgba(255,255,255,.75); font: 10px var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.scene-caption-code { color: var(--amber); }
.scene-side-note { margin-top: 12px; color: #78858a; font: 10px var(--mono); text-align: right; text-transform: uppercase; letter-spacing: .08em; }
.scene-loader { position: absolute; inset: 50% auto auto 50%; z-index: 5; display: flex; align-items: center; gap: 14px; transform: translate(-50%, -50%); color: var(--white); font: 11px var(--mono); white-space: nowrap; }
.loader-line { width: 42px; height: 2px; background: var(--amber); animation: pulse 1s ease-in-out infinite alternate; }
.scene-loader.is-hidden { display: none; }
.scene-fallback { position: absolute; inset: auto 24px 56px; z-index: 6; padding: 12px 14px; border-left: 2px solid var(--amber); background: rgba(17,22,27,.86); color: var(--white); font: 11px/1.5 var(--mono); }
.hotspot-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.hotspot { position: absolute; pointer-events: auto; transform: translate(-50%, -50%); border: 1px solid var(--amber); background: rgba(17,22,27,.86); color: var(--white); padding: 7px 9px; font: 10px var(--mono); cursor: pointer; opacity: .9; transition: opacity .2s, transform .2s; }
.hotspot:hover, .hotspot:focus-visible { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
.hotspot span { display: block; margin-bottom: 3px; color: var(--amber); font-size: 9px; }

.section-band { padding: clamp(76px, 10vw, 150px) clamp(20px, 8vw, 140px); }
.process-section { display: grid; grid-template-columns: minmax(250px, .7fr) minmax(500px, 1.3fr); gap: clamp(40px, 8vw, 140px); background: var(--paper); }
.section-heading { max-width: 450px; }
h2 { margin-bottom: 22px; font-size: clamp(36px, 5vw, 66px); line-height: .98; letter-spacing: -.045em; }
.section-heading > p:last-child, .systems-intro > p:last-child, .section-heading-inline > p { color: #647177; font-size: 15px; line-height: 1.65; }
.process-rail { border-top: 1px solid var(--line-dark); }
.process-step { width: 100%; display: grid; grid-template-columns: 45px 1fr 20px; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid var(--line-dark); background: transparent; padding: 22px 0; color: var(--ink); text-align: left; }
.process-step:hover, .process-step:focus-visible, .process-step.is-active { color: var(--ink); }
.process-step.is-active .step-number, .process-step:hover .step-number { color: var(--amber); }
.step-number { color: #90999b; font: 12px var(--mono); }
.process-step strong, .process-step small { display: block; }
.process-step strong { font-size: 15px; }
.process-step small { margin-top: 5px; color: #798487; font-size: 12px; line-height: 1.4; }
.process-step > span:last-child { color: #7f898d; }
.process-detail { align-self: end; min-height: 250px; padding: 30px; border: 1px solid var(--line-dark); background: #e9e8e1; position: relative; overflow: hidden; }
.process-detail::after { content: "A.T.O.R."; position: absolute; right: -16px; bottom: -32px; color: rgba(17,22,27,.06); font: 800 120px/1 var(--sans); letter-spacing: -.08em; }
.detail-index, .detail-meta { position: relative; z-index: 1; color: #798487; font: 10px var(--mono); letter-spacing: .08em; }
.detail-index strong { color: var(--amber); }
.process-detail h3 { position: relative; z-index: 1; margin: 55px 0 14px; font-size: clamp(28px, 4vw, 48px); line-height: 1; letter-spacing: -.04em; }
.process-detail p { position: relative; z-index: 1; max-width: 540px; color: #647177; line-height: 1.6; }
.detail-meta { display: flex; justify-content: space-between; margin-top: 30px; color: #59656a; }

.systems-section { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(460px, 1.2fr); gap: clamp(40px, 9vw, 150px); color: var(--white); background: var(--panel); }
.systems-section .eyebrow { color: var(--cyan); }
.systems-section .eyebrow-dot { background: var(--cyan); box-shadow: 0 0 0 4px rgba(85,196,209,.14); }
.systems-section h2 { color: var(--white); }
.systems-section h2 em { color: var(--cyan); }
.systems-intro > p:last-child { color: #a2afb2; }
.system-points { border-top: 1px solid var(--line); }
.system-point { width: 100%; display: grid; grid-template-columns: 100px 1fr; gap: 18px; padding: 26px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--white); text-align: left; }
.system-point:hover, .system-point:focus-visible, .system-point.is-active { padding-left: 14px; background: rgba(255,255,255,.035); }
.point-code { color: var(--cyan); font: 10px var(--mono); }
.system-point strong, .system-point small { display: block; }
.system-point strong { font-size: 20px; }
.system-point small { margin-top: 6px; color: var(--muted); line-height: 1.5; }

.catalog-section { background: #deded8; }
.section-heading-inline { display: grid; grid-template-columns: 1fr 1fr; max-width: none; align-items: end; gap: 60px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 54px; }
.catalog-card { background: var(--paper); border: 1px solid var(--line-dark); }
.catalog-image { height: 230px; overflow: hidden; background: #d1d1cc; }
.catalog-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.catalog-card:hover img { transform: scale(1.04); }
.catalog-card-body { padding: 22px; }
.card-code { color: #7a8588; font: 10px var(--mono); }
.catalog-card h3 { min-height: 48px; margin: 26px 0 28px; font-size: 21px; letter-spacing: -.03em; }
.catalog-card a { display: inline-flex; justify-content: space-between; width: 100%; border-top: 1px solid var(--line-dark); padding-top: 14px; font-size: 12px; font-weight: 700; }
.catalog-card a span { color: var(--amber); font-size: 18px; }

.contact-band { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 80px clamp(20px, 8vw, 140px); background: var(--amber); }
.contact-band .eyebrow { color: var(--ink); }
.contact-band .eyebrow-dot { background: var(--ink); box-shadow: 0 0 0 4px rgba(17,22,27,.13); }
.contact-band h2 { margin-bottom: 0; color: var(--ink); }
.contact-band h2 em { color: var(--white); }
.contact-actions { display: flex; align-items: flex-end; flex-direction: column; justify-content: center; gap: 20px; }
.contact-actions p { max-width: 450px; margin-bottom: 0; color: rgba(17,22,27,.72); font-size: 15px; line-height: 1.6; }
.contact-band .topbar-cta { background: var(--ink); }

button:focus-visible, a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
@keyframes pulse { from { opacity: .35; transform: scaleX(.6); transform-origin: left; } to { opacity: 1; transform: scaleX(1); } }

@media (max-width: 1000px) {
  .hero-showcase, .process-section, .systems-section { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; max-width: 720px; }
  .hero-scene-wrap { width: 100%; }
  .scene-shell { height: 66vh; min-height: 480px; }
  .process-detail { min-height: 220px; }
}
@media (max-width: 700px) {
  .topbar { min-height: 62px; padding: 0 16px; }
  .brand img { width: 38px; height: 38px; }
  .brand span, .topbar-link { display: none; }
  .topbar-tools { gap: 12px; }
  .topbar-cta { padding: 11px 12px; font-size: 11px; }
  .hero-showcase { min-height: auto; padding: 54px 16px 46px; }
  h1 { font-size: clamp(42px, 14vw, 66px); }
  .hero-lead { font-size: 14px; }
  .persona-switcher { flex-wrap: wrap; }
  .scene-shell { height: 62vh; min-height: 430px; }
  .scene-toolbar { inset: 10px 10px auto; gap: 6px; }
  .scene-status { font-size: 8px; }
  .scene-control { padding: 8px 9px; font-size: 10px; }
  .scene-caption { inset: auto 10px 10px; font-size: 8px; }
  .scene-caption-code { display: none; }
  .scene-side-note { text-align: left; font-size: 8px; }
  .hotspot { font-size: 8px; }
  .section-band { padding: 72px 16px; }
  .section-heading-inline, .contact-band { grid-template-columns: 1fr; gap: 24px; }
  .catalog-grid { grid-template-columns: 1fr; margin-top: 34px; }
  .catalog-image { height: 210px; }
  .catalog-card h3 { min-height: auto; }
  .contact-band { padding: 72px 16px; }
  .contact-actions { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
