/* Layout concept: photo-led chapters at dusk; the product's real screens framed like cockpit displays. */
:root {
  --ink: #0A0B0E;        /* page ground, night sky */
  --char: #121419;       /* raised surfaces */
  --line: #252932;       /* hairlines */
  --fg: #F3EFE9;         /* warm white text */
  --mute: #AEA89F;       /* secondary text */
  --dim: #8C867D;        /* labels */
  --accent: #FF6A13;     /* safety orange, the ERP's own accent */
  --sun: #FFB36B;        /* low-sun gold for small accents */
  --screen: #141619;     /* ERP screen ground */
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --gutter-l: max(24px, env(safe-area-inset-left, 0px));
  --gutter-r: max(24px, env(safe-area-inset-right, 0px));
  --max: 1240px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--ink); }
img { max-width: 100%; display: block; }
a { color: var(--sun); }
a:hover { color: #FFD3A6; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: calc(var(--max) + 48px); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--sun); }
.h2 { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(32px, 4.2vw, 56px); line-height: 1.02; letter-spacing: -.02em; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--mute); max-width: 62ch; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 6px; font-family: var(--body); font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn-primary { background: var(--accent); color: #140A04; }
.btn-primary:hover { background: #FF7F33; color: #140A04; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(243,239,233,.35); color: var(--fg); background: rgba(10,11,14,.25); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--fg); color: var(--fg); }
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Header */
.site-header { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.is-solid { background: rgba(10,11,14,.86); backdrop-filter: blur(14px); border-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; }
.brand:hover { color: var(--fg); }
.brand-logo { height: 34px; width: auto; display: block; }
@media (max-width: 520px) { .brand-logo { height: 28px; } }
.brand-mark { width: 36px; height: 36px; border-radius: 7px; background: var(--accent); color: #140A04; display: grid; place-items: center; font-weight: 800; font-size: 22px; font-family: var(--display); }
.brand-name { font-family: var(--display); font-stretch: 118%; font-weight: 800; letter-spacing: .1em; font-size: 15px; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--fg); opacity: .82; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; color: var(--fg); }
.nav-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 4px; }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--fg); }
@media (max-width: 900px) {
  .menu-btn { display: grid; place-items: center; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(10,11,14,.97); border-bottom: 1px solid var(--line); padding: 8px var(--gutter-r) 20px var(--gutter-l); display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 14px; justify-content: center; }
}

/* ---------- Hero */
.hero { position: relative; min-height: clamp(640px, 92vh, 940px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: -6% 0 -6% 0; z-index: -2; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,11,14,.82) 0%, rgba(10,11,14,.55) 38%, rgba(10,11,14,0) 70%), linear-gradient(0deg, var(--ink) 0%, rgba(10,11,14,0) 34%); }
.hero-inner { width: 100%; padding-block: 160px 72px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-family: var(--display); font-stretch: 118%; font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 6.6vw, 98px); line-height: .94; letter-spacing: -.015em; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero .lede { color: #DDD6CC; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-foot { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; padding-top: 28px; margin-top: 16px; border-top: 1px solid rgba(243,239,233,.18); }
.cert { display: flex; align-items: center; gap: 12px; }
.cert-ring { width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--accent); display: grid; place-content: center; text-align: center; line-height: 1; }
.cert-ring small { font-family: var(--mono); font-size: 9px; color: var(--mute); letter-spacing: .08em; }
.cert-ring b { font-family: var(--display); font-weight: 800; font-size: 14px; }
.cert span { font-size: 14px; color: #DDD6CC; line-height: 1.35; max-width: 18ch; }
.scroll-cue { margin-left: auto; font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; color: var(--mute); display: flex; align-items: center; gap: 10px; }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--sun), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%,100% { transform: scaleY(.3); opacity: .4 } 50% { transform: scaleY(1); opacity: 1 } }

/* ---------- Scroll-linked motion (resting state = fully visible) */
[data-reveal] { opacity: calc(.18 + .82 * var(--p, 1)); transform: translateY(calc((1 - var(--p, 1)) * 48px)); will-change: opacity, transform; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; } .scroll-cue i { animation: none; } }

/* ---------- Statement */
.statement { padding-block: clamp(96px, 14vw, 180px); position: relative; overflow: hidden; isolation: isolate; }
.statement-mark { position: absolute; right: -6%; top: 50%; width: min(62vw, 900px); transform: translateY(-50%); opacity: .07; z-index: -1; pointer-events: none; }
.statement p { font-family: var(--display); font-stretch: 108%; font-weight: 700; font-size: clamp(26px, 3.4vw, 46px); line-height: 1.22; letter-spacing: -.01em; max-width: 30ch; }
.statement .w { color: #3B3833; transition: color .25s; }
.statement .w.on { color: var(--fg); }
.statement .w.hl.on { color: var(--sun); }
.statement-meta { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 32px; font-family: var(--mono); font-size: 13px; color: var(--mute); letter-spacing: .06em; }
.statement-meta span::before { content: "\2014  "; color: var(--accent); }

/* ---------- Screens (real ERP panels, scaled to fit) */
.screen { margin: 0; border-radius: 12px; overflow: hidden; background: var(--screen); border: 1px solid #2A2F37; box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.02); }
.screen-bar { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; background: #0E1013; border-bottom: 1px solid #23272E; font-family: var(--mono); font-size: 11.5px; color: #8E959E; }
.screen-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2C3138; }
.screen-bar span { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen-bar b { margin-left: auto; font-weight: 500; color: #6E757E; }
.screen-view { position: relative; overflow: hidden; background: var(--screen); }
.screen-scale { transform-origin: 0 0; padding: 0; }
.screen-scale > .scr-inner { box-sizing: border-box; }

/* ---------- Job flow (sticky tour) */
.flow { padding-block: 40px 120px; }
.flow-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; }
.flow-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.flow-steps { display: flex; flex-direction: column; }
.flow-step { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding-block: 40px; transition: opacity .12s linear; }
.flow-step .num { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--sun); display: flex; align-items: center; gap: 14px; }
.flow-step .num::after { content: ""; flex: 1; max-width: 120px; height: 1px; background: var(--line); }
.flow-step h3 { font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.08; letter-spacing: -.015em; }
.flow-step p { color: var(--mute); font-size: 18px; max-width: 44ch; }
.flow-step .screen { display: none; margin-top: 12px; }
.flow-stage { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 110px); }
@media (max-width: 980px) {
  .flow-grid { grid-template-columns: minmax(0, 1fr); }
  .flow-stage { display: none; }
  .flow-step { min-height: 0; opacity: 1; padding-block: 36px; border-top: 1px solid var(--line); }
  .flow-step .screen { display: block; }
}

/* ---------- Feature (map) */
.feature { padding-block: clamp(80px, 10vw, 140px); }
.feature-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: end; margin-bottom: 48px; }
.feature-head .lede { justify-self: end; }
.zoom { transform: scale(calc(.9 + .1 * var(--p, 1))); transform-origin: 50% 0; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.fact { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.fact h3 { font-size: 18px; font-weight: 700; }
.fact p { color: var(--mute); font-size: 16px; }
.fact code { font-family: var(--mono); font-size: 14px; color: var(--sun); }
@media (max-width: 820px) { .feature-head { grid-template-columns: minmax(0, 1fr); } .feature-head .lede { justify-self: start; } .facts { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Photo band */
.band { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(520px, 80vh, 820px); display: flex; align-items: center; }
.band-media { position: absolute; inset: -12% 0; z-index: -2; will-change: transform; }
.band-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink) 0%, rgba(10,11,14,.15) 22%, rgba(10,11,14,.15) 70%, var(--ink) 100%), linear-gradient(90deg, rgba(10,11,14,.7), rgba(10,11,14,0) 60%); }
.band-copy { display: flex; flex-direction: column; gap: 22px; max-width: 640px; padding-block: 96px; }
.band-copy .lede { color: #E6DED2; }

/* ---------- Capability index */
.index { padding-block: clamp(96px, 12vw, 160px); }
.index-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.index-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.group-card { background: var(--ink); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.group-card h3 { font-family: var(--display); font-stretch: 110%; font-size: 22px; font-weight: 800; }
.group-card p { color: var(--mute); font-size: 15.5px; }
.group-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.group-card li a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--fg); text-decoration: none; font-weight: 500; font-size: 16px; }
.group-card li a:hover { color: var(--sun); }
.group-card li a svg { opacity: .4; transition: transform .2s, opacity .2s; flex: none; }
.group-card li a:hover svg { opacity: 1; transform: translateX(3px); }

/* ---------- Split sections */
.split { padding-block: clamp(80px, 10vw, 140px); }
.split-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: center; }
.split-grid.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split-grid.rev > .split-copy { order: 2; }
.split-copy { display: flex; flex-direction: column; gap: 22px; }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: 16.5px; color: #DDD6CC; }
.checks li svg { margin-top: 4px; }
.checks b { color: var(--fg); font-weight: 700; }
@media (max-width: 980px) { .split-grid, .split-grid.rev { grid-template-columns: minmax(0, 1fr); gap: 40px; } .split-grid.rev > .split-copy { order: 0; } }

/* ---------- Origin */
.origin { padding-block: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); }
.origin-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.origin-photo { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 7 / 4; max-width: 100%; }
.origin-photo img { width: 100%; height: 100%; object-fit: cover; }
.origin-photo figcaption { position: absolute; left: 16px; bottom: 14px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: #F3EFE9; background: rgba(10,11,14,.55); padding: 5px 9px; border-radius: 4px; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 8px; }
.specs div { border-top: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; gap: 4px; }
.specs dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.specs dd { margin: 0; font-size: 16px; font-weight: 600; }
@media (max-width: 980px) { .origin-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 520px) { .specs { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Demo */
.demo { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(96px, 12vw, 160px); }
.demo-media { position: absolute; inset: 0; z-index: -2; }
.demo-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; opacity: .55; }
.demo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink) 25%, rgba(10,11,14,.6) 60%, rgba(10,11,14,.85)), linear-gradient(180deg, var(--ink), rgba(10,11,14,0) 25%); }
.demo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.demo-copy { display: flex; flex-direction: column; gap: 22px; }
.contact-lines { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; font-size: 16px; }
.contact-lines div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
.contact-lines dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding-top: 4px; }
.contact-lines dd { margin: 0; user-select: all; }
.form { background: rgba(18,20,25,.92); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 12px; padding: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; color: var(--fg); background: var(--ink); border: 1px solid #343944; border-radius: 6px; padding: 12px 14px; min-height: 48px; width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,106,19,.22); }
.form .btn { grid-column: 1 / -1; justify-content: center; }
.form-note { grid-column: 1 / -1; font-size: 13.5px; color: var(--dim); }
.form-done { grid-column: 1 / -1; border: 1px solid #3B4A2E; background: #141A10; border-radius: 8px; padding: 16px; font-size: 15px; color: #DDE8D2; }
@media (max-width: 980px) { .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 560px) { .form { grid-template-columns: minmax(0, 1fr); padding: 22px; } }

/* ---------- Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--mute); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-grid h4 { margin: 0 0 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-grid a { color: var(--mute); text-decoration: none; }
.foot-grid a:hover { color: var(--fg); }
.foot-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--dim); }
@media (max-width: 820px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Capabilities page */
.cap-hero { position: relative; overflow: hidden; isolation: isolate; min-height: clamp(520px, 72vh, 760px); display: flex; align-items: flex-end; }
.cap-hero .hero-media img { object-position: 50% 45%; }
.cap-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,11,14,.85), rgba(10,11,14,.35) 55%, rgba(10,11,14,.1)), linear-gradient(0deg, var(--ink), rgba(10,11,14,0) 40%); }
.cap-hero h1 { font-family: var(--display); font-stretch: 118%; font-weight: 800; text-transform: uppercase; font-size: clamp(40px, 6vw, 88px); line-height: .95; letter-spacing: -.015em; }
.cap-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 64px; align-items: start; padding-block: 72px 120px; }
.cap-nav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 100px); max-height: calc(100vh - 130px); overflow-y: auto; padding-right: 8px; scrollbar-width: thin; }
.cap-nav h4 { margin: 22px 0 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.cap-nav h4:first-child { margin-top: 0; }
.cap-nav a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); color: var(--mute); text-decoration: none; font-size: 14.5px; line-height: 1.35; }
.cap-nav a:hover { color: var(--fg); }
.cap-nav a.on { color: var(--fg); border-left-color: var(--accent); }
.cap-group-head { display: flex; flex-direction: column; gap: 12px; padding-block: 24px 8px; }
.cap-group-head + .cap { border-top: 0; }
.cap-group-head h2 { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.02em; line-height: 1.04; }
.cap-group-head p { color: var(--mute); font-size: 18px; }
.cap-group { padding-top: 64px; }
.cap-group:first-child { padding-top: 0; }
.cap { scroll-margin-top: 100px; padding-block: 48px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 28px; }
.cap-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.cap-label { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin-bottom: 12px; }
.cap h3 { font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.015em; }
.cap-body { display: flex; flex-direction: column; gap: 14px; color: #D6CFC5; font-size: 16.5px; }
.cap-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0 28px; }
.cap-feats li { border-top: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; gap: 4px; }
.cap-feats b { font-size: 15.5px; }
.cap-feats span { font-size: 14.5px; color: var(--mute); line-height: 1.5; }
@media (max-width: 1100px) { .cap-layout { grid-template-columns: minmax(0, 1fr); } .cap-nav { display: none; } }
@media (max-width: 820px) { .cap-top { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.cta-strip { border-top: 1px solid var(--line); padding-block: 80px; }
.cta-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }

/* Phone-sized screen (supplier portal) */
.screen.phone { width: 100%; max-width: 360px; border-radius: 22px; }
.screen.phone .screen-bar b { display: none; }


/* Brand: full logo in the hero that shrinks into a horse-only mark in the header as you scroll */
.brand-slot { display: block; width: 66px; height: 44px; }
.brand-horse { width: 66px; height: 44px; display: block; }
@media (max-width: 520px) { .brand-slot, .brand-horse { width: 54px; height: 36px; } }
.hero-logo-slot { width: min(100%, 980px); aspect-ratio: 1790 / 260; max-width: 100%; }
.hero-logo-slot img { width: 100%; height: auto; display: block; }
.brand-morph { display: none; }
.bm-on .brand-morph { display: block; position: fixed; left: 0; top: 0; width: 1790px; height: 260px; transform-origin: 0 0; z-index: 55; pointer-events: none; will-change: transform; }
.bm-on .brand-morph .bm-svg { width: 1790px; height: 260px; display: block; overflow: visible; }
.bm-on .hero-logo-slot img, .bm-on .brand-slot .brand-horse { visibility: hidden; }
.bm-on .brand-morph.intro .bm-svg { animation: bm-in 1.3s cubic-bezier(.2,.8,.2,1) both; }
@keyframes bm-in { from { opacity: 0; transform: translateX(-180px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bm-on .brand-morph.intro .bm-svg { animation: none; } }

/* Tour stage: screens stack like a deck, wipe in with a scan line, and push in while their step is read */
.stage-frame { position: relative; min-height: 200px; perspective: 1800px; perspective-origin: 50% 20%; }
.stage-glow { position: absolute; inset: 8% 6% -6%; border-radius: 40px; background: radial-gradient(60% 60% at 50% 60%, rgba(255,106,19,.22), rgba(255,106,19,0) 70%); filter: blur(30px); z-index: 0; transition: opacity .6s; pointer-events: none; }
.stage-frame .screen { position: absolute; inset: 0 0 auto 0; z-index: 1; opacity: 0;
  transform: translate3d(0, 90px, 0) rotateX(16deg) scale(.94); transform-origin: 50% 100%;
  clip-path: inset(0 0 100% 0 round 12px);
  transition: transform .95s cubic-bezier(.16,1,.3,1), opacity .5s ease, clip-path .85s cubic-bezier(.65,0,.35,1), filter .7s ease; }
.stage-frame .screen.is-active { opacity: 1; z-index: 4; clip-path: inset(0 0 0 0 round 12px);
  transform: rotateY(var(--tilt, 0deg)) rotateX(calc(var(--tilt, 0deg) * -.4)); }
.stage-frame .screen.is-past { opacity: .42; z-index: 3; clip-path: inset(0 0 0 0 round 12px);
  transform: translate3d(0, -34px, -90px) scale(.93); filter: brightness(.5) saturate(.6) blur(1.2px); }
.stage-frame .screen.is-past2 { opacity: 0; z-index: 2; clip-path: inset(0 0 0 0 round 12px);
  transform: translate3d(0, -60px, -180px) scale(.86); filter: brightness(.35) blur(2px); }
.stage-frame .screen.is-active .screen-bar span { animation: stage-type .6s steps(18) .35s both; }
@keyframes stage-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.stage-meta { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.stage-count { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--dim); white-space: nowrap; }
.stage-count b { color: var(--fg); font-weight: 600; }
.stage-rail { display: flex; gap: 6px; flex: 1; }
.stage-rail i { position: relative; flex: 1; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.stage-rail i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); transition: transform .15s linear; }
@media (prefers-reduced-motion: reduce) {
  .stage-frame .screen { transition: opacity .3s ease; transform: none !important; clip-path: none !important; filter: none !important; }
  .stage-frame .screen.is-past, .stage-frame .screen.is-past2 { opacity: 0; }
  .stage-frame .screen.is-active .screen-bar span { animation: none; }
}

/* Each window assembles itself: its parts fly in from different depths, overlap, then lock into place */
.flow-stage.live .stage-frame .screen.is-active .asm {
  animation: asm-in 1.05s cubic-bezier(.16,1,.3,1) backwards;
  animation-delay: calc(.18s + var(--i, 0) * 70ms);
}
@keyframes asm-in {
  0% { opacity: 0; transform: perspective(1100px) translate3d(var(--ax), var(--ay), var(--az)) rotateX(var(--rx)) rotateY(var(--ry)); filter: blur(3px); }
  45% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: perspective(1100px) translate3d(0, 0, 0) rotateX(0) rotateY(0); }
}
@media (prefers-reduced-motion: reduce) { .flow-stage.live .stage-frame .screen.is-active .asm { animation: none; } }

/* Phone-sized screen inside a tour stage */
.stage-frame .screen.phone { left: 50%; right: auto; width: 290px; margin-left: -145px; }
.flow-step .screen.phone { width: 100%; max-width: 300px; }
.flow + .flow { padding-top: 0; }
