/* Euporia website remake. Brand: Prata + Manrope, deep red and grays. */
@font-face { font-family: "Prata"; src: url("../fonts/Prata-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/Manrope-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --white: #FFFFFF; --warm: #F9F7F7; --ink: #201B18; --charcoal: #504C49;
  --red: #632523; --cream: #F3E3D8; --hair: #E5E0DF; --muted: #8A817C;
  --terracotta: #B5653F; --night: #0D0C0B; --night-2: #171513;
  --serif: "Prata", Georgia, serif; --sans: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bg: var(--warm); --panel: var(--white); --text: var(--ink); --soft: var(--charcoal);
  --accent: var(--red); --line: var(--hair); --note: var(--muted);
  --wrap: 1160px; --gutter: clamp(20px, 4vw, 48px);
}
body.space {
  --bg: var(--night); --panel: var(--night-2); --text: var(--cream); --soft: #BDB5B0;
  --accent: var(--terracotta); --line: #2E2A27; --note: #8A817C;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 18px; line-height: 1.6; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.12; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.18; }
h3 { font-family: var(--sans); font-weight: 700; font-size: 20px; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.label { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.lead { font-size: clamp(19px, 1.7vw, 22px); color: var(--soft); max-width: 34em; margin-top: 18px; }
.note { font-size: 14px; color: var(--note); margin-top: 20px; max-width: 60em; }
.accent { color: var(--accent); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.site-header .logo img { height: 34px; width: auto; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); font-size: 15px; font-weight: 500; }
.site-header nav a { text-decoration: none; color: var(--soft); transition: color .2s; }
.site-header nav a:hover { color: var(--text); }
.site-header nav a.switch { color: var(--accent); }
@media (max-width: 760px) { .site-header nav a.hide-s { display: none; } }

.btn { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; padding: 14px 26px; border-radius: 4px; transition: transform .25s var(--ease), opacity .2s; }
.btn:hover { transform: translateY(-2px); opacity: .92; }
.site-header .btn { padding: 9px 18px; font-size: 14px; color: #fff; }
.textlink { font-weight: 700; color: var(--accent); text-underline-offset: 4px; }

/* Sections */
section { padding: clamp(64px, 9vw, 120px) 0; }
section.panel { background: var(--panel); }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.flip { grid-template-columns: 7fr 5fr; }
.split.flip .text { order: 2; }
@media (max-width: 860px) { .split, .split.flip { grid-template-columns: 1fr; } .split.flip .text { order: 0; } }

figure { margin: 0; position: relative; }
figure img, figure video { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
figure .tag { position: absolute; right: 10px; bottom: 10px; font-size: 12px; font-weight: 500; color: #fff; background: rgba(32, 27, 24, .55); padding: 3px 9px; border-radius: 3px; }
.ratio-43 { aspect-ratio: 4 / 3; } .ratio-32 { aspect-ratio: 3 / 2; } .ratio-11 { aspect-ratio: 1 / 1; } .ratio-169 { aspect-ratio: 16 / 9; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero .btn { margin-top: 32px; }
.hero .sub { margin-top: 14px; font-size: 15px; color: var(--note); }

/* Lists of points, separated by hairlines instead of boxes */
.points { margin-top: 28px; border-top: 1px solid var(--line); }
.points > div { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 11em 1fr; gap: 20px; }
.points h3 { font-size: 18px; }
.points p { color: var(--soft); }
@media (max-width: 560px) { .points > div { grid-template-columns: 1fr; gap: 4px; } }

/* Steps (demonstrate, train, deploy) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.6vw, 32px); margin-top: 44px; }
.steps figure { aspect-ratio: 4 / 5; background: var(--line); border-radius: 4px; overflow: hidden; }
.steps .n { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--accent); margin-top: 18px; }
.steps h3 { margin-top: 4px; font-size: 22px; }
.steps p { color: var(--soft); margin-top: 6px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps figure { aspect-ratio: 4 / 3; } }

/* Journey */
.journey { margin-top: 44px; display: grid; grid-template-columns: 3fr 6fr 3fr; gap: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); }
.journey .phase { padding: 26px clamp(18px, 2vw, 28px) 30px; border-left: 1px solid var(--line); }
.journey .phase:first-child { border-left: 0; }
.journey .phase-name { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.journey .stages { display: grid; gap: 22px; margin-top: 18px; }
.journey .phase.dev .stages { grid-template-columns: repeat(3, 1fr); }
.journey h3 { font-size: 19px; }
.journey .price { font-size: 14px; font-weight: 700; color: var(--accent); margin-top: 2px; }
.journey p { color: var(--soft); font-size: 16px; margin-top: 8px; }
.journey ol { margin: 10px 0 0; padding-left: 1.2em; color: var(--soft); font-size: 16px; }
@media (max-width: 960px) { .journey { grid-template-columns: 1fr; } .journey .phase { border-left: 0; border-top: 1px solid var(--line); } .journey .phase:first-child { border-top: 0; } }
@media (max-width: 560px) { .journey .phase.dev .stages { grid-template-columns: 1fr; } }
.callout { margin-top: 28px; padding: 20px 24px; border-left: 3px solid var(--accent); background: var(--bg); font-size: 18px; max-width: 46em; }
section.panel .callout, section.panel .journey { background: var(--bg); }

/* Robot bodies hub */
.bodies { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: clamp(14px, 2vw, 24px); margin-top: 40px; }
.bodies figure { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; }
.bodies h3 { margin-top: 12px; font-size: 17px; }
.hubline { margin-top: 40px; text-align: center; font-weight: 700; padding: 16px; border: 1px solid var(--accent); color: var(--accent); border-radius: 4px; }
.hubline span { display: block; font-weight: 400; font-size: 15px; color: var(--soft); }

/* Roadmap */
.roadmap { margin-top: 44px; display: grid; grid-template-columns: repeat(6, 1fr); border-top: 2px solid var(--line); }
.roadmap > div { padding: 22px 18px 0 0; position: relative; }
.roadmap > div::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--soft); }
.roadmap > div.orbit::before { background: var(--accent); }
.roadmap .where { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--note); }
.roadmap .orbit .where { color: var(--accent); }
.roadmap h3 { font-size: 18px; margin-top: 6px; }
.roadmap .when { font-size: 15px; font-weight: 700; margin-top: 2px; }
.roadmap p { font-size: 15px; color: var(--soft); margin-top: 8px; }
@media (max-width: 960px) { .roadmap { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--line); } .roadmap > div { padding: 0 0 26px 24px; } .roadmap > div::before { top: 6px; left: -7px; } }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); border-radius: 100px; padding: 6px 16px; font-size: 15px; color: var(--soft); }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: 44px; }
.team img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }
.team h3 { margin-top: 16px; }
.team .role { color: var(--accent); font-weight: 700; font-size: 15px; }
.team ul { list-style: none; margin: 10px 0 0; padding: 0; font-size: 15.5px; color: var(--soft); }
.team li { padding: 3px 0; }
@media (max-width: 760px) { .team { grid-template-columns: 1fr; } }
blockquote { margin: 56px 0 0; padding: 0 0 0 24px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; max-width: 32em; }

/* Contact and footer */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); }
.contact .people { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.contact .people p { color: var(--soft); font-size: 16px; }
.contact .people a { color: var(--accent); font-weight: 500; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .contact .people { grid-template-columns: 1fr; } }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--note); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; }
footer a { color: var(--soft); }

/* Gateway */
body.gateway { min-height: 100vh; display: flex; flex-direction: column; background: var(--white); }
.gate-head { padding: clamp(24px, 3.4vw, 44px) var(--gutter) clamp(22px, 3vw, 36px); text-align: center; }
.gate-head img { height: clamp(40px, 5vw, 56px); margin: 0 auto clamp(20px, 2.6vw, 32px); }
.gate-head h1 { font-size: clamp(30px, 4vw, 52px); }
.gate-head p { margin: 12px auto 0; color: var(--charcoal); font-size: clamp(17px, 1.6vw, 21px); }
.doors { flex: 1; display: grid; grid-template-columns: 1fr 1fr; min-height: 460px; }
.door { position: relative; overflow: hidden; display: flex; align-items: flex-end; text-decoration: none; color: #fff; min-height: 380px; }
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.door:hover img, .door:focus-visible img { transform: scale(1.04); }
.door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(13, 12, 11, .88) 0%, rgba(13, 12, 11, .45) 38%, rgba(13, 12, 11, 0) 68%); }
.door .in { position: relative; z-index: 1; padding: clamp(24px, 3.4vw, 48px); max-width: 30em; }
.door .label { color: var(--cream); margin-bottom: 10px; }
.door h2 { font-size: clamp(26px, 3vw, 40px); }
.door p { margin-top: 10px; color: #E8E1DC; }
.door .go { display: inline-block; margin-top: 20px; font-weight: 700; font-size: 16px; padding: 12px 22px; border-radius: 4px; background: #fff; color: var(--ink); transition: transform .25s var(--ease); }
.door.orbit .go { background: var(--terracotta); color: #fff; }
.door:hover .go { transform: translateY(-2px); }
.door .tag { position: absolute; z-index: 1; top: 12px; right: 12px; font-size: 12px; color: #fff; background: rgba(32, 27, 24, .5); padding: 3px 9px; border-radius: 3px; }
.gate-foot { padding: 16px var(--gutter); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.gate-foot a { color: var(--charcoal); }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; } }

/* Calm reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transform: none; transition: opacity .4s; } html { scroll-behavior: auto; } }
.no-js .reveal { opacity: 1; transform: none; }

/* Points inside a narrow text column stack label over text */
.split .text .points > div { grid-template-columns: 1fr; gap: 4px; }
.split + .wrap .callout, .wrap > .callout { margin-top: 40px; }
h1 { font-size: clamp(36px, 4.6vw, 58px); }

/* ===== Version 2 (Nov 13): side-panel gateway, journey icons, and scroll motion ===== */

/* Gateway: logo and message on the side, two doors beside it */
body.gateway { display: grid; grid-template-columns: minmax(340px, 31%) 1fr; height: 100vh; min-height: 620px; overflow: hidden; }
.gate-side { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 3.4vw, 56px); background: var(--white); }
.gate-logo { width: clamp(200px, 19vw, 300px); height: auto; }
.gate-copy h1 { font-size: clamp(30px, 2.95vw, 48px); line-height: 1.12; }
.gate-copy p { margin-top: 18px; color: var(--charcoal); font-size: clamp(17px, 1.35vw, 21px); max-width: 22em; }
.gate-choose { margin-top: clamp(28px, 4vh, 48px); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: 14px; }
.gate-choose::after { content: ""; flex: 1; height: 1px; background: var(--red); transform-origin: left; animation: lineGrow 1.4s var(--ease) .9s both; }
.gate-side .gate-foot { padding: 0; flex-direction: column; gap: 4px; justify-content: flex-start; }
.doors { display: flex; min-height: 0; }
.door { flex: 1 1 0; min-height: 0; transition: flex-grow .9s var(--ease); animation: doorIn 1.2s var(--ease) both; }
.door.orbit { animation-delay: .15s; }
.door img { animation: kenBurns 2.4s var(--ease) both; }
.doors:hover .door { flex-grow: .82; }
.doors .door:hover, .doors .door:focus-visible { flex-grow: 1.3; }
.door .in > * { animation: fadeUp .9s var(--ease) both; }
.door .in > :nth-child(1) { animation-delay: .7s; } .door .in > :nth-child(2) { animation-delay: .8s; }
.door .in > :nth-child(3) { animation-delay: .9s; } .door .in > :nth-child(4) { animation-delay: 1s; }
.gate-side > *, .gate-copy > * { animation: fadeUp .9s var(--ease) both; }
.gate-copy { animation: none; }
.gate-copy > :nth-child(1) { animation-delay: .15s; } .gate-copy > :nth-child(2) { animation-delay: .3s; } .gate-copy > :nth-child(3) { animation-delay: .45s; }
.gate-side > .gate-foot { animation-delay: .6s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes doorIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes kenBurns { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 900px) {
  body.gateway { display: block; height: auto; overflow: visible; }
  .gate-side { gap: 28px; }
  .doors { flex-direction: column; }
  .door { min-height: 62vh; flex: none; }
  .doors:hover .door, .doors .door:hover { flex-grow: 0; }
}

/* Scroll progress bar */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(var(--scroll, 0)); transform-origin: left; z-index: 30; }
.site-header { transition: transform .5s var(--ease); }
.site-header.away { transform: translateY(-100%); }

/* Hero: headline rises, image wipes in and drifts */
.rise { overflow: hidden; padding-bottom: .08em; }
.rise span { display: block; animation: riseUp 1.1s var(--ease) .1s both; }
@keyframes riseUp { from { transform: translateY(105%); } to { transform: none; } }
.hero .label, .hero .lead, .hero .btn, .hero .sub { animation: fadeUp .9s var(--ease) both; }
.hero .label { animation-delay: 0s; } .hero .lead { animation-delay: .45s; } .hero .btn { animation-delay: .6s; } .hero .sub { animation-delay: .7s; }
.wipe { overflow: hidden; border-radius: 4px; animation: wipeIn 1.3s var(--ease) .2s both; }
.wipe img { transform: translateY(calc(var(--par, 0) * 1px)) scale(1.12); will-change: transform; }
@keyframes wipeIn { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.drift { animation: driftY 9s ease-in-out infinite alternate; }
@keyframes driftY { from { translate: 0 -8px; } to { translate: 0 8px; } }

/* Staggered groups */
[data-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--n, 0) * 90ms); }
[data-stagger].in-view > * { opacity: 1; transform: none; }
.bodies figure img { transition: transform 1.2s var(--ease); }
.bodies > div:hover figure img { transform: scale(1.05); }

/* How it works: the picture stays, the steps advance */
.pin { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(28px, 5vw, 80px); margin-top: 44px; align-items: start; }
.pin-media { position: sticky; top: 96px; height: min(72vh, 620px); border-radius: 4px; overflow: hidden; background: var(--ink); }
.pin-media figure { position: absolute; inset: 0; opacity: 0; transform: scale(1.05); transition: opacity .8s var(--ease), transform 1.4s var(--ease); }
.pin-media figure.on { opacity: 1; transform: none; }
.pin-media figure img, .pin-media figure video { border-radius: 0; }
.pin-media figure:nth-of-type(2) img { object-fit: contain; background: #fff; }
.pin-bar { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; gap: 6px; }
.pin-bar i { flex: 1; height: 3px; background: rgba(255, 255, 255, .35); transition: background .4s; }
.pin-bar i.on { background: #fff; }
.pin-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .6s var(--ease); }
.pin-step.on { opacity: 1; }
.pin-step .n { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.pin-step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); margin-top: 6px; }
.pin-step p { color: var(--soft); font-size: 20px; margin-top: 10px; max-width: 20em; }
.pin-step p.note { font-size: 14px; color: var(--note); }
@media (max-width: 860px) {
  .pin { grid-template-columns: 1fr; gap: 0; }
  .pin-media { top: 72px; height: 44vh; z-index: 2; }
  .pin-step { min-height: 46vh; }
}

/* Journey: site visit card, then a rail with four stations (from customer slide 6) */
.draw .d { stroke-dasharray: 1; stroke-dashoffset: 1; }
.in-view .draw .d, .draw.in-view .d, .on .draw .d { stroke-dashoffset: 0; transition: stroke-dashoffset .8s ease calc(var(--i, 0) * 80ms); }
.no-js .draw .d { stroke-dashoffset: 0; }
.visit { margin-top: 44px; display: grid; grid-template-columns: 130px 1fr 1.25fr; gap: clamp(22px, 3vw, 48px); align-items: center; padding: clamp(22px, 2.6vw, 36px); background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.visit .art svg { width: 100%; height: auto; color: var(--red); overflow: visible; }
.visit .ring { fill: none; stroke: currentColor; stroke-width: 2; opacity: 0; transform-origin: 112px 146px; transform-box: view-box; }
.visit .dot { opacity: 0; transition: opacity .4s ease 1.4s; }
.visit.in-view .dot { opacity: 1; }
.visit.in-view .ring { animation: ringPulse 2.4s ease-out 1.6s infinite; }
@keyframes ringPulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
.visit .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--note); }
.visit .meta span:first-child { color: var(--accent); }
.visit .pill { letter-spacing: 0; text-transform: none; font-size: 14px; color: var(--accent); border: 1px solid var(--accent); border-radius: 100px; padding: 3px 12px; }
.visit h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); margin-top: 12px; }
.visit p { color: var(--soft); margin-top: 8px; }
.visit ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.visit li { font-size: 16.5px; color: var(--text); border-top: 1px solid var(--line); padding-top: 10px; }
.visit li b { display: block; font-size: 13px; letter-spacing: .12em; color: var(--accent); }
@media (max-width: 900px) { .visit { grid-template-columns: 90px 1fr; } .visit ol { grid-column: 1 / -1; } }

.flow { margin-top: 56px; position: relative; }
.phases { display: grid; grid-template-columns: 3fr 1fr; gap: 12px; }
.phases div { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 9px; border-radius: 4px; }
.phases .dev { background: var(--panel); border: 1px solid var(--line); color: var(--soft); }
.phases .com { background: var(--red); color: #fff; }
.rail { position: relative; height: 3px; background: var(--line); margin: 78px 0 0; }
.rail i { position: absolute; inset: 0; background: var(--red); transform: scaleX(var(--p, 0)); transform-origin: left; }
.rail .runner { position: absolute; top: -6px; left: calc(var(--p, 0) * 100%); width: 15px; height: 15px; margin-left: -7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px color-mix(in srgb, var(--red) 16%, transparent); }
.stns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: -50px; position: relative; }
.stn { text-align: center; padding: 0 8px; }
.stn .ci { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); display: grid; place-items: center; color: var(--red); transition: border-color .5s, background .5s, color .5s, transform .7s var(--ease); transform: scale(.86); }
.stn .ci svg { width: 56px; height: 56px; overflow: visible; }
.stn.on .ci { border-color: var(--red); transform: none; }
.stn.com.on .ci { background: var(--red); color: #fff; }
.stn h3, .stn .price, .stn p { opacity: .3; transition: opacity .6s var(--ease); }
.stn.on h3, .stn.on .price, .stn.on p { opacity: 1; }
.stn .price { font-size: 14px; font-weight: 700; color: var(--accent); margin-top: 2px; }
.stn p { font-size: 16px; color: var(--soft); margin-top: 8px; }
@media (max-width: 760px) {
  .phases, .rail { display: none; }
  .stns { grid-template-columns: 1fr 1fr; margin-top: 0; gap: 32px 12px; }
}

/* Roadmap line fills as you scroll */
.roadmap { position: relative; }
.roadmap::after { content: ""; position: absolute; top: -2px; left: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }
.roadmap > div { opacity: .25; transition: opacity .7s var(--ease), transform .7s var(--ease); transform: translateY(10px); }
.roadmap > div.on { opacity: 1; transform: none; }
.roadmap > div::before { z-index: 1; transition: transform .5s var(--ease); transform: scale(.6); }
.roadmap > div.on::before { transform: none; }
@media (max-width: 960px) { .roadmap::after { top: 0; left: -2px; width: 2px; height: 100%; transform: scaleY(var(--p, 0)); transform-origin: top; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .wipe img { transform: none; }
  .site-header.away { transform: none; }
}
.pin-media { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }

/* ===== Version 3 (Nov 13, evening): the five patterns ===== */

/* 1. Highlighter rule: the accent is only for what people click. Structure uses ink and grays. */
:root { --mark: var(--ink); --mark-soft: var(--charcoal); }
body.space { --mark: var(--cream); --mark-soft: #BDB5B0; }
.label, .steps .n, .pin-step .n, .journey .phase-name, .visit .meta span:first-child, .visit li b, .roadmap .orbit .where { color: var(--mark-soft); }
.journey .price, .stn .price, .team .role { color: var(--mark-soft); }
.callout, blockquote { border-left-color: var(--mark); }
.hubline { border-color: var(--line); color: var(--text); }
.roadmap > div.orbit::before, .roadmap::after { background: var(--mark); }
.gate-choose { color: var(--charcoal); } .gate-choose::after { background: var(--hair); animation: none; }
.visit .art svg, .stn .ci { color: var(--mark); }
.visit .pill { color: var(--mark-soft); border-color: var(--line); }
.phases .com { background: var(--mark); color: var(--bg); }
.rail i, .rail .runner { background: var(--mark); }
.rail .runner { box-shadow: 0 0 0 6px color-mix(in srgb, var(--mark) 14%, transparent); }
.stn.on .ci { border-color: var(--mark); }
.stn.com.on .ci { background: var(--mark); color: var(--bg); }
.btn { box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent); }

/* 2. Front, middle, back: the picture sits behind, the words in the middle, one card in front breaks the edge */
.hero-layer { position: relative; padding: 0; min-height: min(86vh, 820px); display: flex; align-items: center; }
.hero-layer + section { padding-top: clamp(110px, 12vw, 170px); }
.hero-back { position: absolute; top: 0; right: 0; bottom: 0; width: 66%; margin: 0; }
.hero-back img { border-radius: 0; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%); mask-image: linear-gradient(to right, transparent 0%, #000 42%); }
body.space .hero-back { width: 60%; }
body.space .hero-back img { object-position: 60% 50%; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 30%); mask-image: linear-gradient(to right, transparent 0%, #000 30%); }
.hero-back .tag { right: 16px; top: 16px; bottom: auto; }
.hero-layer .wrap { position: relative; width: 100%; padding-top: 72px; padding-bottom: 96px; }
.hero-mid { max-width: 560px; }
.hero-mid .btn { margin-top: 32px; }
.hero-front { position: absolute; right: var(--gutter); bottom: -76px; width: min(360px, 80vw); z-index: 3; background: var(--panel); border-radius: 6px; padding: 26px 28px 28px; box-shadow: 0 30px 60px -28px rgba(32, 27, 24, .45), 0 2px 0 0 var(--line); }
body.space .hero-front { background: #1D1A18; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8), inset 0 0 0 1px #2E2A27; }
.hero-front h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; }
.hero-front p { color: var(--soft); font-size: 16px; margin: 8px 0 14px; }
@media (max-width: 900px) {
  .hero-layer { display: block; min-height: 0; }
  .hero-back, body.space .hero-back { position: relative; width: 100%; height: 46vh; }
  .hero-back img, body.space .hero-back img { -webkit-mask-image: none; mask-image: none; }
  .hero-layer .wrap { padding-top: 36px; padding-bottom: 0; }
  .hero-front { position: relative; right: auto; bottom: auto; width: auto; margin: 36px 0 -60px; }
}

/* 3. Motion with a job: the first words are there at once, and one thing moves per screen */
.gate-side > *, .gate-copy > *, .door .in > *, .door, .door img { animation: none; }
.hero .label, .hero .lead, .hero .btn, .hero .sub, .rise span, .wipe, .drift { animation: none; }
.reveal, [data-stagger] > * { transform: none; transition: opacity .5s ease; transition-delay: 0s; }
.site-header.away { transform: none; }
.visit.in-view .ring { animation: none; opacity: 0; }
.roadmap > div, .roadmap > div.on { transform: none; }
.stn .ci { transform: none; }
.motion-toggle { font: inherit; font-size: 14px; color: var(--soft); background: none; border: 1px solid var(--line); border-radius: 100px; padding: 4px 14px; cursor: pointer; }
.calm *, .calm *::before, .calm *::after { animation: none !important; transition: none !important; }
.calm .reveal, .calm [data-stagger] > * { opacity: 1; }
.calm .draw .d { stroke-dashoffset: 0; }
.hero-layer .wrap { position: static; }
.hero-front { right: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
body.space .hero-back { width: 54%; }
body.space .hero-back img { -webkit-mask-image: linear-gradient(to right, transparent 12%, #000 58%); mask-image: linear-gradient(to right, transparent 12%, #000 58%); }
.site-header nav a { white-space: nowrap; }
@media (max-width: 520px) { .site-header nav a.switch { display: none; } }
@media (max-width: 900px) { .hero-front { right: auto; } body.space .hero-back { width: 100%; } body.space .hero-back img { -webkit-mask-image: none; mask-image: none; } }

/* ===== Version 4 (Nov 13, late): brand colors and brand boxes ===== */
/* Dark theme from the brand tokens: ink ground, dark panel, cream as the accent on dark. Terracotta is the brand's #C0504D, for selective emphasis only. */
:root { --terracotta: #C0504D; --night: #201B18; --night-2: #2C2623; --soft-gray: #F1F0F0; }
body.space { --text: #F9F7F7; --soft: #C9C0BB; --line: #4A403B; --note: #9A8F8A; --accent: var(--cream); --emph: var(--terracotta); }
body.space .btn { color: var(--ink); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .7); }
body.space .site-header .btn { color: var(--ink); }
body.space .hero-front { background: var(--night-2); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7), inset 0 0 0 1px var(--line); }
body.space .roadmap > div.orbit::before { background: var(--emph); }
body.space .roadmap .orbit .where { color: var(--emph); }
.door.orbit .go { background: var(--cream); color: var(--ink); }

/* Red is back on the marks that carry meaning (icons, numbers, the rail); labels stay quiet; nothing but buttons is a solid red block */
.visit .art svg, .stn .ci { color: var(--red); }
.visit li b, .pin-step .n, .steps .n { color: var(--red); }
.rail i, .rail .runner { background: var(--red); }
.rail .runner { box-shadow: 0 0 0 6px color-mix(in srgb, var(--red) 14%, transparent); }
.stn.on .ci { border-color: var(--red); }
/* Brand boxes: soft gray tile for the development phase, outline box for the commercial phase, cream for the one highlighted station, lead with bar for the closing line */
.phases .dev { background: var(--soft-gray); border: 0; color: var(--charcoal); }
.phases .com { background: transparent; border: 1.25px solid var(--red); color: var(--ink); }
.stn.com.on .ci { background: var(--cream); color: var(--red); border-color: var(--red); }
.callout { border-left: 2px solid var(--red); background: none; padding: 4px 0 4px 22px; }
body.space .callout, body.space blockquote { border-left-color: var(--cream); }
blockquote { border-left: 2px solid var(--red); }
.hubline { border: 1.25px solid var(--red); }
body.space .hubline { border-color: #fff; }
.hero-front { border-radius: 6px; } .btn { border-radius: 6px; }

/* ===== Version 5 (Nov 13, night): deep red accent on dark, image bands, statement, film row, larger portraits ===== */
/* Accent on the dark site: the brand's deep red for buttons; links are light text with a deep red underline (deep red text is unreadable on ink) */
body.space { --accent: var(--red); }
body.space .btn, body.space .site-header .btn { color: #F9F7F7; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(243, 227, 216, .14); }
body.space .textlink, body.space .contact .people a, body.space .site-header nav a.switch, body.space footer a { color: var(--cream); text-decoration: underline; text-decoration-color: #9C3B37; text-decoration-thickness: 2px; text-underline-offset: 5px; }
body.space .callout, body.space blockquote { border-left-color: #9C3B37; }
body.space .hubline { border-color: var(--line); }
.door.orbit .go { background: var(--red); color: #fff; }

/* Image bands: the hero treatment carried down the page. The picture fills one side to the edge and fades into the ground. */
.band { position: relative; padding: 0; min-height: min(78vh, 720px); display: flex; align-items: center; background: var(--panel); overflow: hidden; }
.band-back { position: absolute; top: 0; bottom: 0; left: 0; width: 58%; margin: 0; }
.band-back img { border-radius: 0; -webkit-mask-image: linear-gradient(to left, transparent 0%, #000 45%); mask-image: linear-gradient(to left, transparent 0%, #000 45%); }
.band-back .tag { left: 16px; right: auto; bottom: 16px; }
.band .wrap { width: 100%; padding-top: 80px; padding-bottom: 80px; }
.band-text { margin-left: 56%; }
.band-text .points > div { grid-template-columns: 1fr; gap: 4px; }
.band-right .band-back { left: auto; right: 0; }
.band-right .band-back img { -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%); mask-image: linear-gradient(to right, transparent 0%, #000 45%); }
.band-right .band-back .tag { left: auto; right: 16px; }
.band-right .band-text { margin-left: 0; margin-right: 56%; }
@media (max-width: 900px) {
  .band { display: block; min-height: 0; }
  .band-back, .band-right .band-back { position: relative; width: 100%; height: 44vh; }
  .band-back img, .band-right .band-back img { -webkit-mask-image: none; mask-image: none; }
  .band .wrap { padding-top: 40px; padding-bottom: 64px; }
  .band-text, .band-right .band-text { margin: 0; }
}

/* One large statement; the words come into focus as you scroll */
.statement { padding: clamp(90px, 13vw, 190px) 0; }
.statement p { font-family: var(--serif); font-size: clamp(34px, 5.6vw, 84px); line-height: 1.12; max-width: 14em; text-wrap: balance; }
.statement p span { opacity: .16; transition: opacity .5s ease; }
.statement p span.on { opacity: 1; }
.no-js .statement p span, .calm .statement p span { opacity: 1; }

/* How it works: three smaller frames in a row, joined by a line that fills */
.film { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 64px); margin-top: 56px; padding-top: 34px; }
.film-line { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.film-line i { position: absolute; inset: 0; background: var(--red); transform: scaleX(var(--p, 0)); transform-origin: left; }
.film-step { position: relative; opacity: .35; transition: opacity .6s ease; }
.film-step.on { opacity: 1; }
.film-step::before { content: ""; position: absolute; top: -41px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--line); transition: background .4s; }
.film-step.on::before { background: var(--red); }
.film-step:nth-child(3) { margin-top: 48px; } .film-step:nth-child(4) { margin-top: 96px; }
.film-step figure { aspect-ratio: 4 / 5; max-width: 300px; border-radius: 6px; overflow: hidden; background: var(--line); box-shadow: 0 30px 50px -30px rgba(32, 27, 24, .5); }
.film-step figure img, .film-step figure video { border-radius: 0; transition: transform 6s ease-out; transform: scale(1.08); }
.film-step.on figure img, .film-step.on figure video { transform: scale(1); }
.film-step .n { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--red); margin-top: 20px; }
.film-step h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin-top: 4px; }
.film-step p { color: var(--soft); margin-top: 6px; max-width: 18em; }
@media (max-width: 760px) {
  .film { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; padding-bottom: 12px; margin-right: calc(var(--gutter) * -1); }
  .film-line, .film-step::before { display: none; }
  .film-step { flex: 0 0 72vw; scroll-snap-align: start; margin-top: 0 !important; opacity: 1; }
}

/* Larger portraits */
.team img { width: min(100%, 230px); height: auto; aspect-ratio: 1; border-radius: 6px; filter: saturate(.92); }
.team h3 { margin-top: 20px; font-size: 22px; }
.film-step:nth-child(3) { margin-top: 0; padding-top: 48px; } .film-step:nth-child(4) { margin-top: 0; padding-top: 96px; }
@media (max-width: 760px) { .film-step:nth-child(3), .film-step:nth-child(4) { padding-top: 0; } }

/* ===== Version 6: fit check ===== */
.fit-section { background: var(--panel); }
.fit-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .fit-grid { grid-template-columns: 1fr; } }
.fit-card { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: clamp(22px, 3vw, 40px); min-height: 420px; box-shadow: 0 30px 60px -40px rgba(32, 27, 24, .35); }
.fit-top { display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--charcoal); }
.fit-bar { flex: 1; height: 2px; background: var(--line); }
.fit-bar i { display: block; height: 100%; background: var(--red); transform-origin: left; transition: transform .5s var(--ease); }
.fit-q { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); margin: 22px 0 22px; }
.fit-options { display: grid; gap: 10px; }
.fit-options button { font: inherit; font-size: 17px; text-align: left; padding: 14px 18px; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; transition: border-color .2s, transform .25s var(--ease); }
.fit-options button:hover, .fit-options button:focus-visible, .fit-options button.picked { border-color: var(--red); transform: translateX(4px); outline: none; }
.fit-back { font: inherit; font-size: 15px; color: var(--soft); background: none; border: 0; padding: 0; margin-top: 20px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.fit-result { background: var(--cream); color: var(--ink); margin: calc(clamp(22px, 3vw, 40px) * -1); padding: clamp(22px, 3vw, 40px); border-radius: 8px; min-height: 420px; }
.fit-verdict { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 48px); margin: 14px 0 14px; }
.fit-result p { margin-top: 12px; max-width: 34em; }
.fit-result .btn { margin-top: 26px; margin-right: 18px; }
.fit-result .note { color: var(--charcoal); }
.fit-result .fit-back { color: var(--charcoal); }
/* Moving hero: a short silent loop in place of the still, same fade as the picture */
.hero-back video { width: 100%; height: 100%; object-fit: cover; border-radius: 0; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 42%); mask-image: linear-gradient(to right, transparent 0%, #000 42%); }
body.space .hero-back video { object-position: 60% 50%; -webkit-mask-image: linear-gradient(to right, transparent 12%, #000 58%); mask-image: linear-gradient(to right, transparent 12%, #000 58%); }
@media (max-width: 900px) { .hero-back video, body.space .hero-back video { -webkit-mask-image: none; mask-image: none; } }
.door video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.door:hover video, .door:focus-visible video { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .door video { display: none; } .door.orbit { background: #000 url("../img/worker_softened_blanket.jpg") center / cover; } }

/* ===== Version 8 (Nov 14): the hero is the only full-width picture near the top; a company page for people who may join ===== */
.inset { padding-bottom: clamp(64px, 9vw, 120px); }
.inset-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.inset-grid .text { max-width: 620px; }
.inset-fig { aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -34px rgba(32, 27, 24, .5); }
.inset-fig img { border-radius: 0; }
body.space .inset-fig { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
@media (max-width: 860px) { .inset-grid { grid-template-columns: 1fr; } .inset-fig { aspect-ratio: 3 / 2; } }

.gate-company { display: inline-block; margin-top: 18px; font-size: 15px; font-weight: 500; color: var(--charcoal); text-underline-offset: 4px; }
.gate-company:hover { color: var(--red); }

.purpose { padding: clamp(90px, 13vw, 190px) 0 clamp(70px, 9vw, 130px); }
.purpose h1 { font-size: clamp(42px, 7vw, 104px); line-height: 1.06; max-width: 11em; }
.purpose .lead { max-width: 30em; margin-top: 28px; }
.prose p { color: var(--soft); max-width: 36em; }
.prose p + p { margin-top: 16px; }
.prose h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin-bottom: 6px; }
.pillars { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 28px); }
.pillars li { border-top: 2px solid var(--red); padding-top: 16px; }
.pillars b { font-size: 13px; letter-spacing: .14em; color: var(--red); }
.pillars h3 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 8px 0 8px; }
.pillars p { font-size: 15.5px; color: var(--soft); }
@media (max-width: 1000px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }
.team-large img { width: min(100%, 320px); }

/* ===== Version 9 (Nov 14): premium pass with the real photos ===== */
/* One look for everything real: lab photos, lab videos, and portraits are warm monochrome; illustrations keep their color. */
.bodies figure:not(:has(.tag)) img, .film-step figure img, .film-step figure video, .team img, figure.lab video, figure.lab img { filter: grayscale(1) sepia(.14) contrast(1.05); transition: filter .6s ease, transform 1.2s var(--ease); }
.bodies > div:hover figure img, .film-step:hover figure video, .film-step:hover figure img, .team > div:hover img { filter: none; }

/* The robot photos become a wide strip that runs off the right edge and scrolls sideways */
.bodies.gallery { display: flex; gap: clamp(14px, 1.6vw, 24px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-right: calc(-1 * (max(0px, (100vw - var(--wrap)) / 2) + var(--gutter))); padding-right: var(--gutter); padding-bottom: 6px; }
.bodies.gallery::-webkit-scrollbar { display: none; }
.bodies.gallery > div { flex: 0 0 clamp(260px, 27vw, 400px); scroll-snap-align: start; }
.bodies.gallery figure { aspect-ratio: 4 / 5; border-radius: 6px; }
.bodies.gallery h3 { margin-top: 14px; font-family: var(--serif); font-weight: 400; font-size: 22px; }
.hubline { margin-top: 44px; font-family: var(--serif); font-weight: 400; font-size: 24px; padding: 22px; }
.hubline span { font-family: var(--sans); margin-top: 4px; }

/* A strong close: the last section of each page changes ground */
.closing { --text: #F9F7F7; --soft: #C9C0BB; --line: #4A403B; background: var(--ink); color: var(--text); padding: clamp(90px, 12vw, 170px) 0; }
.closing h2 { font-size: clamp(44px, 6.4vw, 92px); line-height: 1.04; }
.closing .lead { max-width: 26em; }
.closing .btn { color: #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(243, 227, 216, .14); padding: 18px 34px; font-size: 18px; }
.closing .contact { align-items: end; }
.closing .contact .people a, .closing .textlink { color: var(--cream); text-decoration: underline; text-decoration-color: #9C3B37; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.closing .prose h3 { color: var(--text); }
.closing-cream { --text: var(--ink); --soft: var(--charcoal); --line: #DCCDC2; background: var(--cream); color: var(--ink); }
.closing-cream .contact .people a, .closing-cream .textlink { color: var(--red); text-decoration-color: currentColor; text-decoration-thickness: 1px; }
body.space .closing-cream .btn { color: #fff; box-shadow: 0 14px 30px -12px rgba(99, 37, 35, .6); }
.closing + footer, footer { border-top: 0; }

/* Type and rhythm */
h2 { font-size: clamp(32px, 3.9vw, 50px); letter-spacing: -0.005em; }
h1 { letter-spacing: -0.01em; }
.lead { line-height: 1.5; }
section { padding: clamp(72px, 10vw, 140px) 0; }
.hero-layer, .band { padding: 0; }
.statement { padding: clamp(90px, 13vw, 190px) 0; }
.closing { padding: clamp(90px, 12vw, 170px) 0; }
.purpose { padding: clamp(90px, 13vw, 190px) 0 clamp(70px, 9vw, 130px); }
.site-header .wrap { height: 68px; }
body.space .closing-cream .contact .people a, body.space .closing-cream .textlink { color: var(--red); text-decoration-color: currentColor; text-decoration-thickness: 1px; }
.team img { width: min(100%, 270px); }
.team-large img { width: min(100%, 320px); }
@media (max-width: 760px) { .closing .contact { align-items: start; } .bodies.gallery > div { flex-basis: 70vw; } }
/* Team portraits stay in color (Adriell, Nov 14) */
.team img { filter: none; }

/* ===== Version 10, pass 1: landing page ===== */
.gate-side { justify-content: flex-start; gap: 0; }
.gate-copy { margin-top: auto; }
.gate-nav { margin: clamp(24px, 4vh, 44px) 0 auto; border-top: 1px solid var(--hair); }
.gate-nav a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--hair); text-decoration: none; color: var(--ink); transition: padding .35s var(--ease), color .2s; }
.gate-nav span { font-family: var(--serif); font-size: clamp(20px, 1.6vw, 24px); }
.gate-nav small { font-size: 14px; color: var(--muted); text-align: right; }
.gate-nav a:hover, .gate-nav a:focus-visible { padding-left: 10px; color: var(--red); outline: none; }
.gate-side .gate-foot { margin-top: 0; flex-direction: row; justify-content: space-between; flex-wrap: wrap; }
/* Hovering a row opens its door */
.gateway:has(.gate-nav a[data-door="earth"]:hover) .door.earth, .gateway:has(.gate-nav a[data-door="orbit"]:hover) .door.orbit { flex-grow: 1.3; }
.gateway:has(.gate-nav a[data-door="earth"]:hover) .door.orbit, .gateway:has(.gate-nav a[data-door="orbit"]:hover) .door.earth { flex-grow: .82; }
.door.earth img { object-position: 74% 50%; }
.door .go, .door.orbit .go { background: var(--red); color: #fff; padding: 12px 26px; box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .7); }
.door h2 { font-size: clamp(28px, 3.1vw, 44px); }
@media (max-width: 900px) { .gate-copy { margin-top: 28px; } .gate-nav { margin-bottom: 24px; } }
.door.earth img { object-position: 57% 50%; }

/* ===== Version 10, pass 2 and 3: rhythm down the page ===== */
/* The statement changes ground, so the middle of the page has a second beat */
.statement-dark { background: var(--ink); color: #F9F7F7; }
.statement-earth { position: relative; background: #000 url("../img/worker_softened_blanket.jpg") center bottom / 100% auto no-repeat; padding-bottom: clamp(220px, 30vw, 460px); overflow: hidden; }
.statement-earth::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--night) 0%, rgba(0, 0, 0, 0) 45%); }
.statement-earth .wrap { position: relative; }
.statement-earth .tag { position: absolute; right: 16px; bottom: 16px; font-size: 12px; color: #fff; background: rgba(32, 27, 24, .55); padding: 3px 9px; border-radius: 3px; z-index: 1; }
/* Larger point titles where a section is only words */
.points.big > div { grid-template-columns: 1fr; gap: 6px; padding: 24px 0; }
.points.big h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); }
.points.big p { font-size: 18px; max-width: 30em; }
.statement-earth { background: var(--night) url("../img/earth_limb.jpg") center bottom / 100% auto no-repeat; padding-bottom: clamp(200px, 30vw, 480px); }
.statement-earth::before { background: linear-gradient(to bottom, var(--night) 0%, var(--night) 38%, rgba(32, 27, 24, 0) 62%); }

/* ===== Version 10, pass 4 and 5: company photo, footer, focus, small things ===== */
.company .inset { padding-top: 0; }
.inset-fig.lab .tag { left: 10px; right: auto; }
.site-footer { background: var(--ink); color: #C9C0BB; border-top: 1px solid #3A322E; padding: 56px 0 44px; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.site-footer .f-brand img { height: 44px; width: auto; margin-bottom: 16px; }
.site-footer .f-brand p { color: #9A8F8A; max-width: 26em; }
.site-footer nav, .site-footer .f-contact { display: grid; gap: 10px; justify-items: start; }
.site-footer a { color: #F9F7F7; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: #9C3B37; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.site-footer .motion-toggle { color: #C9C0BB; border-color: #4A403B; margin-top: 6px; }
body.space .site-footer a, body.space footer.site-footer a { color: #F9F7F7; text-decoration: none; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
.site-header nav a:not(.btn) { position: relative; padding: 6px 0; }
.site-header nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-header nav a:not(.btn):hover::after { transform: scaleX(1); }
body.space .site-header nav a.switch { text-decoration: none; }
::selection { background: #D8CCC7; color: var(--ink); }

/* ===== Version 11: a small footer that does not compete with the call to action ===== */
.site-footer { padding: 22px 0; font-size: 14px; border-top: 1px solid #3A322E; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; }
.site-footer .f-brand img { height: 26px; margin: 0; }
.site-footer nav, .site-footer .f-contact { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }
.site-footer a { color: #C9C0BB; }
.site-footer .f-contact span { color: #9A8F8A; }
.site-footer .motion-toggle { margin: 0; padding: 2px 12px; font-size: 13px; }

/* ===== Version 12, passes 1 to 6: manufacturers page ===== */
/* 1. Header: larger logo, a soft shadow once you scroll, and the current section marked */
.site-header .logo img { height: 40px; }
.site-header { transition: box-shadow .4s ease, background .4s ease; }
.site-header.scrolled { box-shadow: 0 10px 30px -22px rgba(32, 27, 24, .55); }
.site-header nav a.current:not(.btn) { color: var(--text); }
.site-header nav a.current:not(.btn)::after { transform: scaleX(1); }

/* 2. Problem and solution: slightly larger reading size, rows arrive one after another */
.points h3 { font-size: 19px; }
.points p { font-size: 17.5px; }
.reveal .points > div, .points.reveal > div { opacity: 0; transition: opacity .7s ease; }
.reveal.in-view .points > div, .points.reveal.in-view > div { opacity: 1; }
.reveal.in-view .points > div:nth-child(2), .points.reveal.in-view > div:nth-child(2) { transition-delay: .18s; }
.reveal.in-view .points > div:nth-child(3), .points.reveal.in-view > div:nth-child(3) { transition-delay: .36s; }
.no-js .points > div, .calm .points > div { opacity: 1 !important; }

/* 3. Learning steps: each frame rises into place as the line reaches it */
.film-step { transform: translateY(26px); transition: opacity .7s ease, transform .9s var(--ease); }
.film-step.on { transform: none; }
.film-step figure { transition: box-shadow .5s ease, transform .6s var(--ease); }
.film-step:hover figure { transform: translateY(-4px); box-shadow: 0 40px 60px -34px rgba(32, 27, 24, .6); }
.calm .film-step { transform: none; opacity: 1; }

/* 4. Journey: the four report points tick in; on a phone the stations become a list */
.visit li { opacity: .25; transition: opacity .6s ease; }
.visit.in-view li { opacity: 1; }
.visit.in-view li:nth-child(1) { transition-delay: .5s; } .visit.in-view li:nth-child(2) { transition-delay: .8s; }
.visit.in-view li:nth-child(3) { transition-delay: 1.1s; } .visit.in-view li:nth-child(4) { transition-delay: 1.4s; }
.calm .visit li { opacity: 1; }
.callout { font-size: 19px; }
@media (max-width: 760px) {
  .stns { grid-template-columns: 1fr; gap: 22px; }
  .stn { display: grid; grid-template-columns: 76px 1fr; column-gap: 16px; text-align: left; padding: 0; align-items: start; }
  .stn .ci { width: 68px; height: 68px; margin: 0; grid-row: span 3; }
  .stn .ci svg { width: 40px; height: 40px; }
  .stn h3, .stn .price, .stn p { opacity: 1; }
}

/* 5. Gallery: cards lift on hover; the "brain" under the bodies is one solid bar */
.bodies.gallery > div figure { transition: transform .6s var(--ease), box-shadow .5s ease; }
.bodies.gallery > div:hover figure { transform: translateY(-6px); box-shadow: 0 34px 50px -30px rgba(32, 27, 24, .55); }
.hubline { background: var(--ink); color: #F9F7F7; border: 0; border-radius: 6px; position: relative; }
.hubline span { color: #C9C0BB; }
.hubline::before { content: ""; position: absolute; left: 50%; top: -28px; width: 1px; height: 28px; background: var(--line); }
body.space .hubline { background: var(--cream); color: var(--ink); border: 0; }
body.space .hubline span { color: var(--charcoal); }

/* 6. Fit check: the card fits its question; each answer carries a letter */
.fit-card { min-height: 0; }
.fit-result { min-height: 0; }
.fit-options { counter-reset: opt; }
.fit-options button { display: flex; align-items: center; gap: 14px; }
.fit-options button::before { counter-increment: opt; content: counter(opt, upper-alpha); flex: 0 0 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--charcoal); transition: background .2s, color .2s, border-color .2s; }
.fit-options button:hover::before, .fit-options button:focus-visible::before { background: var(--red); border-color: var(--red); color: #fff; }
.fit-bar { height: 3px; border-radius: 3px; overflow: hidden; }
.fit-grid { align-items: center; }

/* ===== Version 12, passes 7 to 10: space page, company page, motion to try ===== */
/* 7. The service is a sequence, so it reads as one: three steps on a line that fills */
.seq { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 64px); margin-top: 56px; padding-top: 36px; }
.seq-line { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line); }
.seq-line i { position: absolute; inset: 0; background: var(--emph, var(--red)); transform: scaleX(var(--p, 0)); transform-origin: left; }
.seq-step { position: relative; opacity: .3; transform: translateY(16px); transition: opacity .7s ease, transform .9s var(--ease); }
.seq-step.on { opacity: 1; transform: none; }
.seq-step::before { content: ""; position: absolute; top: -42px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--line); transition: background .4s; }
.seq-step.on::before { background: var(--emph, var(--red)); }
.seq-step b { font-size: 13px; letter-spacing: .14em; color: var(--soft); }
.seq-step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 46px); margin: 6px 0 10px; }
.seq-step p { color: var(--soft); font-size: 18px; max-width: 18em; }
.calm .seq-step { opacity: 1; transform: none; }
@media (max-width: 760px) { .seq { grid-template-columns: 1fr; padding-top: 0; gap: 28px; } .seq-line, .seq-step::before { display: none; } .seq-step { opacity: 1; transform: none; } }

/* 8. Roadmap: Earth stages are light cards on the dark page, orbit stages are dark cards */
.roadmap { gap: 12px; border-top-color: var(--line); padding-top: 22px; }
.roadmap > div { padding: 18px 16px 20px; border-radius: 6px; background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); }
.roadmap > div:not(.orbit) { background: #F9F7F7; color: var(--ink); box-shadow: none; }
.roadmap > div:not(.orbit) p { color: var(--charcoal); }
.roadmap > div:not(.orbit) .where { color: var(--muted); }
.roadmap > div::before { top: -29px; }
.roadmap::after { top: -2px; }
@media (max-width: 960px) { .roadmap { padding-top: 0; padding-left: 22px; } .roadmap > div { padding: 16px; margin-bottom: 12px; } .roadmap > div::before { top: 18px; left: -29px; } }

/* 9. Company page: large numerals on the pillars, a cream band for responsibility, one drawn underline in the purpose */
.pillars b { display: block; font-family: var(--serif); font-weight: 400; font-size: 44px; letter-spacing: 0; line-height: 1; }
.pillars li { border-top-width: 1.25px; padding-top: 22px; }
.cream-band { background: var(--cream); }
.cream-band .prose p { color: var(--ink); font-size: 19px; }
.mark { position: relative; white-space: nowrap; }
.mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .06em; background: var(--red); transform: scaleX(0); transform-origin: left; animation: lineGrow 1.1s var(--ease) .5s forwards; }
.calm .mark::after { transform: scaleX(1); animation: none; }

/* 10. One small entrance: the card in front of the hero settles into place */
.hero-front { animation: settle 1s var(--ease) .25s both; }
@keyframes settle { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
.calm .hero-front { animation: none; }
@media (max-width: 980px) { .site-header nav a.hide-s { display: none; } }

/* ===== Version 13 (Nov 14, afternoon): Adriell's notes on version 12 ===== */
/* The robot gallery uses the whole width of the screen, left and right */
.bodies.gallery { margin-left: calc(-1 * (max(0px, (100vw - var(--wrap)) / 2) + var(--gutter))); margin-right: calc(-1 * (max(0px, (100vw - var(--wrap)) / 2) + var(--gutter))); padding: 0 clamp(14px, 1.6vw, 24px) 6px; width: 100vw; max-width: 100vw; }
.bodies.gallery > div { flex: 1 0 clamp(240px, 22vw, 520px); }
.bodies.gallery h3 { padding-left: 2px; }
@media (max-width: 760px) { .bodies.gallery > div { flex: 0 0 70vw; } }

/* Space: the quieter "Talk to Us" from version 8 */
body.space #contact h2 { font-size: clamp(32px, 3.9vw, 50px); }

/* Company: small pillar numbers again; the team sits on a dark band with the vision in a lead with bar */
.pillars b { display: inline; font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: .14em; line-height: inherit; }
.pillars li { padding-top: 16px; }
.team-dark { --text: #F9F7F7; --soft: #C9C0BB; --line: #4A403B; background: var(--night-2); color: var(--text); }
.team-dark .team .role { color: #C9C0BB; }
.team-dark blockquote { border-left: 2px solid #9C3B37; }

/* Motion, slower and easier to notice; it replays whenever a section comes back on screen */
.reveal { transition: opacity .9s ease; }
.reveal .points > div, .points.reveal > div { transform: translateY(16px); transition: opacity 1s ease, transform 1.1s var(--ease); }
.reveal.in-view .points > div, .points.reveal.in-view > div { transform: none; }
.reveal.in-view .points > div:nth-child(1), .points.reveal.in-view > div:nth-child(1) { transition-delay: .15s; }
.reveal.in-view .points > div:nth-child(2), .points.reveal.in-view > div:nth-child(2) { transition-delay: .5s; }
.reveal.in-view .points > div:nth-child(3), .points.reveal.in-view > div:nth-child(3) { transition-delay: .85s; }
.film-step { transform: translateY(56px); transition: opacity 1s ease, transform 1.4s var(--ease); }
.visit li { transition: opacity .9s ease; }
.visit.in-view li:nth-child(1) { transition-delay: .9s; } .visit.in-view li:nth-child(2) { transition-delay: 1.5s; }
.visit.in-view li:nth-child(3) { transition-delay: 2.1s; } .visit.in-view li:nth-child(4) { transition-delay: 2.7s; }
.visit:not(.in-view) li { transition-delay: 0s; }
.hero-front { animation: settle 1.8s var(--ease) .7s both; }
@keyframes settle { from { opacity: 0; translate: 0 48px; } to { opacity: 1; translate: 0 0; } }
.calm .points > div { transform: none !important; }

/* ===== Version 14 (Nov 14): depth on the manufacturers page ===== */
/* 1. A scene: the picture stays still behind while the words and glass cards scroll over it */
.scene { position: relative; padding: clamp(150px, 16vw, 230px) 0 clamp(230px, 24vw, 330px); color: #F9F7F7; background: var(--ink); overflow: hidden; }
.scene::before { content: ""; position: absolute; inset: 0; background: url("../img/earth_manual_handling.jpg") center / cover no-repeat fixed; }
.scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(32, 27, 24, .9) 0%, rgba(32, 27, 24, .66) 50%, rgba(32, 27, 24, .34) 100%); }
.scene .wrap { position: relative; z-index: 1; }
.scene h2 { font-size: clamp(36px, 4.6vw, 62px); max-width: 12em; }
.scene .tag { position: absolute; z-index: 2; right: 16px; top: 16px; font-size: 12px; color: #fff; background: rgba(32, 27, 24, .55); padding: 3px 9px; border-radius: 3px; }
.scene .note { color: #C9C0BB; }
.glass { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 22px); margin-top: 44px; max-width: 980px; }
.glass > div { background: rgba(249, 247, 247, .09); border: 1px solid rgba(249, 247, 247, .24); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 8px; padding: 24px 24px 26px; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .7); }
.glass h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(22px, 2.1vw, 28px); }
.glass p { color: #E5E0DF; margin-top: 8px; font-size: 17px; }
[data-stagger].glass > * { transition-duration: 1s; transition-delay: calc(var(--n, 0) * 280ms + 150ms); transform: translateY(26px); }
[data-stagger].glass.in-view > * { transform: none; }
@media (max-width: 860px) { .glass { grid-template-columns: 1fr; } .scene::before { background-attachment: scroll; } }

/* 2. The answer sits in front: a white card that overlaps the scene */
.lift { position: relative; z-index: 2; padding-top: 0; margin-top: clamp(-190px, -15vw, -120px); }
.lift-card { background: var(--white); border-radius: 10px; padding: clamp(28px, 5vw, 76px); box-shadow: 0 60px 100px -60px rgba(32, 27, 24, .65), 0 0 0 1px var(--line); }
.lift-card.reveal .points > div { opacity: 0; }
.lift-card.reveal.in-view .points > div { opacity: 1; }

/* 3. Learning steps: the frames stand on a stage, overlapping its edge */
.film { isolation: isolate; }
.film::before { content: ""; position: absolute; z-index: -1; left: clamp(-40px, -3vw, -16px); right: clamp(-40px, -3vw, -16px); top: 170px; bottom: -44px; background: var(--bg); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.film-step figure { box-shadow: 0 40px 60px -34px rgba(32, 27, 24, .6), 0 8px 18px -10px rgba(32, 27, 24, .25); }
#how .note { margin-top: 72px; }
@media (max-width: 760px) { .film::before { display: none; } #how .note { margin-top: 20px; } }

/* 4. Journey and quiz: the report card and the quiz card come forward; a washed lab photo sits far behind the quiz */
.visit { box-shadow: 0 50px 80px -56px rgba(32, 27, 24, .55); border-radius: 10px; }
.flow { background: var(--white); border-radius: 10px; padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 40px) clamp(26px, 3vw, 44px); box-shadow: 0 0 0 1px var(--line); margin-top: 28px; }
.stn .ci { background: var(--white); }
.fit-section { position: relative; overflow: hidden; background: var(--bg); }
.fit-section::before { content: ""; position: absolute; inset: 0; background: url("../img/teleop_yumi.jpg") center 35% / cover no-repeat; filter: grayscale(1) sepia(.14); opacity: .1; }
.fit-section .wrap { position: relative; }
.fit-card { background: var(--white); box-shadow: 0 60px 100px -60px rgba(32, 27, 24, .6), 0 0 0 1px var(--line); border: 0; border-radius: 10px; }
.fit-options button { background: var(--bg); }
.lift-card.split { grid-template-columns: 1fr 1.15fr; align-items: center; }
.lift-card h2 { font-size: clamp(30px, 3.4vw, 46px); }
@media (max-width: 860px) { .lift-card.split { grid-template-columns: 1fr; } .lift { margin-top: -120px; } .scene { padding: 110px 0 190px; } }

/* ===== Version 15 (Nov 14): gradients between the pictures ===== */
/* 1. The problem sits on a soft gradient, so the hero picture and the scene picture do not meet */
.grad { position: relative; background: radial-gradient(110% 90% at 88% 8%, #F3E3D8 0%, rgba(243, 227, 216, 0) 58%), radial-gradient(80% 70% at 0% 100%, #EEE9E7 0%, rgba(238, 233, 231, 0) 60%), linear-gradient(180deg, #FFFFFF 0%, #F9F7F7 100%); padding-bottom: clamp(90px, 11vw, 150px); }
.grad h2 { font-size: clamp(36px, 4.6vw, 62px); max-width: 12em; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 26px); margin-top: 48px; }
.cards3 > div { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-radius: 10px; padding: 28px 28px 32px; box-shadow: 0 40px 70px -46px rgba(99, 37, 35, .45), 0 0 0 1px rgba(229, 224, 223, .9); }
.cards3 h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.3vw, 30px); }
.cards3 p { color: var(--charcoal); margin-top: 10px; font-size: 18px; }
[data-stagger].cards3 > * { transition-duration: 1s; transition-delay: calc(var(--n, 0) * 280ms + 150ms); transform: translateY(26px); }
[data-stagger].cards3.in-view > * { transform: none; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }

/* 2. The solution is the scene: a robot at work, still behind the glass cards */
.scene-robot { padding: clamp(130px, 14vw, 200px) 0 clamp(130px, 14vw, 200px); }
.scene-robot::before { background-image: url("../img/single-arm-pcb-magazine-rack.jpg"); }
.scene-robot::after { background: linear-gradient(100deg, rgba(32, 27, 24, .92) 0%, rgba(32, 27, 24, .7) 48%, rgba(32, 27, 24, .25) 100%); }
.scene .lead { color: #E5E0DF; }

/* 3. The statement moves to a light gradient, so two dark blocks never touch */
.statement-grad { background: linear-gradient(120deg, #F3E3D8 0%, #F9F7F7 62%, #FFFFFF 100%); color: var(--ink); }

/* 4. Learning steps: all three on one level, and larger */
.film-step:nth-child(3), .film-step:nth-child(4) { padding-top: 0; }
.film-step figure { max-width: none; aspect-ratio: 4 / 5; }
.film { gap: clamp(18px, 2.6vw, 40px); }
.film::before { top: 38%; bottom: -44px; }

/* 5. Journey: the phases stand directly on the warm ground again */
.flow { background: none; box-shadow: none; padding: 0; margin-top: 56px; }
.stn .ci { background: var(--bg); }

/* 6. Quiz backdrop: a different lab photo, so one picture is not used everywhere */
.fit-section::before { background-image: url("../img/body_ur_cleaned.jpg"); background-position: center 40%; }

/* 7 to 9. Transitions, closing, and type */
.hero-layer + .grad { padding-top: clamp(130px, 13vw, 190px); }
.closing { background: radial-gradient(90% 130% at 100% 100%, #4A1F1D 0%, rgba(74, 31, 29, 0) 58%), var(--ink); }
#journey { background: linear-gradient(180deg, #F9F7F7 0%, #F3EEEC 100%); }
.bodies.gallery figure { box-shadow: 0 30px 50px -36px rgba(32, 27, 24, .5); }

/* ===== Version 16 (Nov 14): the hand picture is back; no cream or pink on the manufacturers page ===== */
/* Section 3: the answer card overlaps the scene and carries its own picture, edge to edge on the right */
.lift-card.with-pic { display: grid; grid-template-columns: 1.05fr 1fr; padding: 0; overflow: hidden; background: linear-gradient(160deg, #FFFFFF 0%, #F4F2F1 100%); }
.lift-text { padding: clamp(28px, 4.4vw, 68px); }
.lift-text .points { margin-top: 30px; }
.lift-pic { position: relative; margin: 0; min-height: 420px; }
.lift-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; border-radius: 0; }
.lift-card.with-pic.reveal .points > div { opacity: 0; transform: translateY(16px); }
.lift-card.with-pic.reveal.in-view .points > div { opacity: 1; transform: none; }
.lift { background: var(--white); padding-bottom: clamp(72px, 9vw, 120px); }
@media (max-width: 860px) { .lift-card.with-pic { grid-template-columns: 1fr; } .lift-pic { min-height: 300px; order: -1; } }

/* The statement: dark again, standing above the workbench, the way the space statement stands above the Earth */
.statement-bench { position: relative; background: var(--ink) url("../img/bench_strip.jpg") center bottom / 100% auto no-repeat; color: #F9F7F7; padding-bottom: clamp(240px, 32vw, 520px); overflow: hidden; }
.statement-bench::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, var(--ink) 0%, var(--ink) 34%, rgba(32, 27, 24, .55) 58%, rgba(32, 27, 24, 0) 82%); }
.statement-bench .wrap { position: relative; }
.statement-bench .tag { position: absolute; right: 16px; bottom: 16px; font-size: 12px; color: #fff; background: rgba(32, 27, 24, .55); padding: 3px 9px; border-radius: 3px; z-index: 1; }

/* Journey: the version 12 look (flat warm ground), with a light shadow kept on the report card */
#journey { background: var(--bg); }
.visit { box-shadow: 0 30px 60px -50px rgba(32, 27, 24, .45); border-radius: 6px; }
.flow { margin-top: 56px; }

/* ===== Version 17 (Nov 14): the journey is a path you travel down ===== */
.path { position: relative; margin-top: 64px; display: grid; gap: clamp(26px, 3vw, 44px); }
.path-line { position: absolute; left: 50%; top: 48px; bottom: 48px; width: 2px; margin-left: -1px; background: var(--line); }
.path-line i { position: absolute; inset: 0; background: var(--red); transform: scaleY(var(--p, 0)); transform-origin: top; }
.path-step { position: relative; display: grid; grid-template-columns: 1fr 96px 1fr; align-items: center; column-gap: clamp(20px, 3.4vw, 56px); }
.path-step .ci { grid-column: 2; grid-row: 1; width: 96px; height: 96px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); display: grid; place-items: center; color: var(--red); position: relative; z-index: 1; transition: border-color .5s, background .5s, transform .8s var(--ease); transform: scale(.82); }
.path-step .ci svg { width: 54px; height: 54px; overflow: visible; }
.path-step.on .ci { border-color: var(--red); transform: none; }
.path-step.com.on .ci { background: var(--cream); }
.path-card { grid-row: 1; max-width: 440px; background: var(--white); border-radius: 8px; padding: 24px 28px 26px; box-shadow: 0 40px 70px -50px rgba(32, 27, 24, .55), 0 0 0 1px var(--line); opacity: 0; transition: opacity .9s ease, transform 1.1s var(--ease); }
.path-step.left .path-card { grid-column: 1; justify-self: end; transform: translateX(-34px); }
.path-step.right .path-card { grid-column: 3; justify-self: start; transform: translateX(34px); }
.path-step.on .path-card { opacity: 1; transform: none; }
.path-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.3vw, 30px); }
.path-card .price { font-size: 14px; font-weight: 700; color: var(--red); margin-top: 4px; }
.path-card p { color: var(--soft); margin-top: 8px; }
.path-step.first .path-card { max-width: 500px; padding: 30px 32px 32px; }
.path-card ol { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.path-card li { font-size: 16px; border-top: 1px solid var(--line); padding-top: 9px; }
.path-card li b { display: block; font-size: 12px; letter-spacing: .12em; color: var(--red); }
.path .ring { display: none; } .path .dot { opacity: 1; }
/* a faint connector from each circle to its card */
.path-step::before { content: ""; position: absolute; top: 50%; height: 1px; width: clamp(20px, 3.4vw, 56px); background: var(--line); }
.path-step.left::before { right: calc(50% + 48px); } .path-step.right::before { left: calc(50% + 48px); }
.path-phase { position: relative; z-index: 1; display: flex; justify-content: center; opacity: .35; transition: opacity .6s ease; }
.path-phase.on { opacity: 1; }
.path-phase span { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 10px 22px; border-radius: 4px; }
.path-phase .dev { background: var(--soft-gray); color: var(--charcoal); }
.path-phase .com { background: var(--bg); border: 1.25px solid var(--red); color: var(--ink); }
#journey .callout { margin: 56px auto 0; max-width: 40em; }
.calm .path-card { opacity: 1; transform: none; } .calm .path-step .ci { transform: none; }
@media (max-width: 860px) {
  .path-line { left: 34px; }
  .path-step { grid-template-columns: 68px 1fr; column-gap: 18px; align-items: start; }
  .path-step .ci { grid-column: 1; width: 68px; height: 68px; }
  .path-step .ci svg { width: 38px; height: 38px; }
  .path-step.left .path-card, .path-step.right .path-card { grid-column: 2; justify-self: stretch; max-width: none; transform: translateX(20px); }
  .path-step.on .path-card { transform: none; }
  .path-step::before { display: none; }
  .path-phase { justify-content: flex-start; padding-left: 86px; }
  .path-card ol { grid-template-columns: 1fr; }
}

/* ===== Version 18 (Nov 14): Adriell's notes on 16 and 17 ===== */
/* Section 2 keeps its full length so the still picture has time on screen */
.scene#problem { padding-bottom: clamp(150px, 16vw, 230px); }
/* Section 3 stands on its own: the robot picture as a faint backdrop, a centered white card in front */
.answer { position: relative; overflow: hidden; background: var(--white); padding: clamp(90px, 11vw, 160px) 0; }
.answer::before { content: ""; position: absolute; inset: 0; background: url("../img/single-arm-pcb-magazine-rack.jpg") center / cover no-repeat fixed; filter: grayscale(1) sepia(.12); opacity: .2; }
.answer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .2) 30%, rgba(255, 255, 255, .2) 70%, rgba(255, 255, 255, .9) 100%); }
.answer .wrap { position: relative; z-index: 1; }
.answer-card { max-width: 1020px; margin: 0 auto; background: var(--white); border-radius: 10px; padding: clamp(28px, 4.6vw, 68px); box-shadow: 0 60px 100px -60px rgba(32, 27, 24, .6), 0 0 0 1px var(--line); grid-template-columns: 1fr 1.15fr; align-items: center; }
.answer-card h2 { font-size: clamp(30px, 3.4vw, 46px); }
.answer .tag { position: absolute; z-index: 1; right: 16px; bottom: 16px; font-size: 12px; color: #fff; background: rgba(32, 27, 24, .55); padding: 3px 9px; border-radius: 3px; }
@media (max-width: 860px) { .answer-card { grid-template-columns: 1fr; } .answer::before { background-attachment: scroll; } }

/* Journey: the large report card (as in version 14) opens the path */
#journey .visit { margin-top: 48px; box-shadow: 0 50px 80px -56px rgba(32, 27, 24, .55); border-radius: 10px; position: relative; z-index: 1; }
#journey .path { margin-top: 0; padding-top: 44px; }
#journey .path-line { top: 0; }
/* The closing line lights up word by word, so the eye follows it instead of reading ahead */
.callout.lit { font-size: clamp(20px, 2vw, 26px); font-family: var(--serif); line-height: 1.45; max-width: 30em; }
.callout.lit span { opacity: .18; transition: opacity .5s ease; }
.callout.lit span.on { opacity: 1; }
.no-js .callout.lit span, .calm .callout.lit span { opacity: 1; }

/* The statement rests on a still Finnish lake: a quiet beat after three dense sections, and the Earth counterpart of the space page */
.statement-lake { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; padding: 0 0 clamp(70px, 10vh, 130px); color: #F9F7F7; background: #1D2733 url("../img/finnish_lake_blue_hour.jpg") center 42% / cover no-repeat; overflow: hidden; }
.statement-lake::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 24, 33, .55) 0%, rgba(18, 24, 33, 0) 55%); }
.statement-lake .wrap { position: relative; width: 100%; }
.statement-lake p { max-width: 12em; }
.statement-lake .tag { position: absolute; right: 16px; bottom: 16px; font-size: 12px; color: #fff; background: rgba(32, 27, 24, .55); padding: 3px 9px; border-radius: 3px; z-index: 1; }
@media (max-width: 760px) { .statement-lake { min-height: 74vh; background-position: 70% 42%; } }

/* ===== Version 19 (Nov 14): plain dark closing section on the manufacturers page ===== */
.closing { background: var(--ink); }
#journey .price-note { margin: 18px auto 0; max-width: 40em; }

/* ===== Version 20 (Nov 14, evening): depth on the space and company pages ===== */
.scene-shadow { padding-bottom: clamp(150px, 16vw, 230px); }
.scene-shadow::before { background-image: url("../img/satellite_shadowing.jpg"); }
.scene-shadow::after { background: linear-gradient(100deg, rgba(20, 17, 15, .9) 0%, rgba(20, 17, 15, .6) 52%, rgba(20, 17, 15, .15) 100%); }
body.space .hero-layer + .scene { padding-top: clamp(150px, 16vw, 230px); }
.scene-lake { padding: clamp(120px, 14vw, 210px) 0; background: #1D2733; }
.scene-lake::before { background-image: url("../img/finnish_lake_blue_hour.jpg"); background-position: center 42%; }
.scene-lake::after { background: linear-gradient(100deg, rgba(18, 24, 33, .55) 0%, rgba(18, 24, 33, .15) 60%, rgba(18, 24, 33, 0) 100%); }
.glass-panel { max-width: 640px; background: rgba(18, 24, 33, .42); border: 1px solid rgba(249, 247, 247, .22); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-radius: 10px; padding: clamp(28px, 4vw, 52px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.glass-panel h2 { font-size: clamp(34px, 4vw, 54px); }
.glass-panel p { color: #EEE9E7; margin-top: 18px; font-size: 18px; }
/* Company hero: the purpose in front of the people and the robot */
.purpose-hero .hero-back { width: 56%; }
.purpose-hero .hero-back img { object-position: 40% 28%; filter: grayscale(1) sepia(.14) contrast(1.05); -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 50%); mask-image: linear-gradient(to right, transparent 0%, #000 50%); }
.purpose-hero h1 { font-size: clamp(42px, 6.2vw, 92px); line-height: 1.06; }
.purpose-hero .hero-mid { max-width: 760px; }
.purpose-hero .wrap { padding-bottom: 72px; }
.purpose-hero + section { padding-top: clamp(120px, 14vw, 210px); }
@media (max-width: 900px) { .purpose-hero .hero-back { width: 100%; } .purpose-hero .hero-back img { -webkit-mask-image: none; mask-image: none; } }
.purpose-hero .lead { max-width: 24em; }

/* ===== Version 21 (Nov 14, evening): company page details ===== */
/* Pillars: five cards with a drawn icon each; they rise one after another and lift on hover */
.pillars { gap: clamp(12px, 1.4vw, 20px); }
.pillars li { border-top: 0; background: var(--white); border-radius: 10px; padding: 26px 22px 28px; box-shadow: 0 40px 70px -52px rgba(32, 27, 24, .6), 0 0 0 1px var(--line); transition: opacity .9s ease, transform 1s var(--ease), box-shadow .4s ease; }
[data-stagger].pillars > * { transform: translateY(30px); transition-delay: calc(var(--n, 0) * 160ms + 100ms); }
[data-stagger].pillars.in-view > * { transform: none; }
.pillars li:hover { box-shadow: 0 50px 80px -46px rgba(32, 27, 24, .7), 0 0 0 1px var(--red); }
.pillars .pic { display: block; width: 44px; height: 44px; color: var(--red); margin-bottom: 18px; overflow: visible; }
.pillars.in-view .pic .d { transition-delay: calc(var(--n, 0) * 160ms + var(--i, 0) * 220ms + 400ms); transition-duration: 1.2s; }
#built { background: var(--bg); }
/* Responsibility: the worker's hands far behind, two open questions on cards in front */
.care { position: relative; overflow: hidden; background: var(--ink); color: #F9F7F7; --soft: #C9C0BB; }
.care::before { content: ""; position: absolute; inset: 0; background: url("../img/earth_manual_handling.jpg") center / cover no-repeat fixed; filter: grayscale(1); opacity: .22; }
.care::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(32, 27, 24, .92) 0%, rgba(32, 27, 24, .55) 100%); }
.care .wrap { position: relative; z-index: 1; }
.care-head { max-width: 760px; }
.care-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 28px); margin-top: 48px; }
.care-cards > div { background: rgba(249, 247, 247, .09); border: 1px solid rgba(249, 247, 247, .24); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-radius: 10px; padding: 30px 30px 34px; border-left: 2px solid #9C3B37; }
.care-cards p { font-family: var(--serif); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.35; }
[data-stagger].care-cards > * { transform: translateY(26px); transition-duration: 1s; transition-delay: calc(var(--n, 0) * 320ms + 150ms); }
[data-stagger].care-cards.in-view > * { transform: none; }
.care-foot { margin-top: 44px; max-width: 46em; color: #E5E0DF; font-size: 18px; }
@media (max-width: 760px) { .care-cards { grid-template-columns: 1fr; } .care::before { background-attachment: scroll; } }

/* ===== Version 22 (Nov 14, evening) ===== */
/* Prices: three plain facts in a row under the journey, instead of a footnote */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); margin: 44px auto 0; max-width: 980px; background: var(--white); border-radius: 10px; box-shadow: 0 40px 70px -54px rgba(32, 27, 24, .55), 0 0 0 1px var(--line); }
.prices > div { padding: 26px 28px 28px; border-left: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.prices > div:first-child { border-left: 0; }
.prices span { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--charcoal); }
.prices b { font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); color: var(--ink); }
.prices small { font-size: 15px; color: var(--soft); line-height: 1.5; }
.price-small { text-align: center; font-size: 14px; color: var(--note); margin: 18px auto 0; max-width: 46em; }
#journey .callout.lit { margin-top: 64px; }
@media (max-width: 760px) { .prices { grid-template-columns: 1fr; } .prices > div { border-left: 0; border-top: 1px solid var(--line); } .prices > div:first-child { border-top: 0; } }

/* Pillars: back to the quiet version, small numbers and a red line, now on shaded cards */
.pillars li { border-top: 2px solid var(--red); border-radius: 0 0 10px 10px; padding: 20px 22px 28px; }
.pillars li:hover { box-shadow: 0 50px 80px -46px rgba(32, 27, 24, .7), 0 0 0 1px var(--line); }
/* Responsibility: smaller questions, less to read */
.care-cards p { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; }
.care-cards > div { padding: 22px 24px 24px; }
.care-cards { max-width: 900px; margin-top: 36px; }
.care-foot { margin-top: 32px; font-size: 17px; max-width: 40em; }
.care { padding: clamp(72px, 9vw, 120px) 0; }
.europe { background: var(--white); }
.europe .prose p { font-size: 19px; color: var(--charcoal); }
.closing h2 { font-size: clamp(40px, 5.4vw, 76px); }
/* Space: the working prototype, one line and the real footage */
.proto figure { border-radius: 8px; overflow: hidden; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .8), inset 0 0 0 1px var(--line); }
.proto figure video { border-radius: 0; }

/* ===== Version 23 (Nov 14, evening) ===== */
.prices b { white-space: nowrap; }
/* Pillars: a larger, slower rise, so the last cards are clearly seen arriving */
[data-stagger].pillars > * { transform: translateY(70px); transition: opacity 1.1s ease, transform 1.3s var(--ease), box-shadow .4s ease; transition-delay: calc(var(--n, 0) * 260ms + 150ms); }
[data-stagger].pillars.in-view > * { transform: none; }
[data-stagger].pillars:not(.in-view) > * { transition-delay: 0s; }
.pillars h3 { font-size: 23px; }
.pillars p { font-size: 16.5px; }
/* Team: a short paragraph in place of the list */
.team .bio { color: var(--soft); font-size: 15.5px; margin-top: 10px; max-width: 30em; }
/* The prototype on a light ground, between the dark team band and the dark closing section */
.proto-light { background: var(--bg); }
.proto-light figure { box-shadow: 0 40px 70px -46px rgba(32, 27, 24, .6), 0 0 0 1px var(--line); }
/* Closing section of the company page: heading left, words right, two quiet links below */
.join-top { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.join-top h2 { font-size: clamp(38px, 4.8vw, 68px); }
.join-top .lead { margin-top: 10px; max-width: 30em; }
.join-also { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 28px); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); padding-top: 28px; }
.join-also a { display: grid; gap: 6px; text-decoration: none; color: var(--soft); font-size: 16px; padding: 4px 0; transition: color .2s; }
.join-also b { font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--text); text-decoration: underline; text-decoration-color: #9C3B37; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.join-also a:hover { color: var(--text); }
@media (max-width: 860px) { .join-top, .join-also { grid-template-columns: 1fr; } }

/* ===== Version 24 (Nov 14, evening) ===== */
/* Manufacturers hero: no card; the quiz is offered next to the main button */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 32px; }
.hero-actions .btn { margin-top: 0; }
.hero-actions .textlink { font-size: 16px; }
/* Closing sections: the same quiet heading size on every page */
.closing h2, .join-top h2, body.space #contact h2 { font-size: clamp(32px, 3.9vw, 50px); line-height: 1.15; }
.closing { padding: clamp(72px, 10vw, 130px) 0; }
.closing .btn { padding: 14px 26px; font-size: 16px; }

/* ===== Version 25 (Nov 14, evening) ===== */
/* Sections whose picture fills the screen place their words near the left edge of the screen, not of the centered column */
:root { --edge: clamp(20px, 6vw, 110px); --wrap: 1280px; }
.site-header .wrap, .hero-layer .wrap, .scene .wrap, .statement-lake .wrap, .statement-earth .wrap, .site-footer .wrap, .care .wrap { max-width: none; padding-left: var(--edge); padding-right: var(--edge); }
.hero-front { right: var(--edge); }
.hero-front h3 { font-size: 24px; }
.hero-front p { margin: 6px 0 12px; }
.hero-mid .btn { margin-top: 32px; }
@media (max-width: 900px) { .hero-front { right: auto; } }

/* ===== Version 26 (Nov 14, night) ===== */
/* Rule: a picture with its subject on one side keeps the words at the quiet edge; an even backdrop gets the centered column */
.scene-lake .wrap, .care .wrap, .statement-lake .wrap, .statement-earth .wrap { max-width: var(--wrap); padding-left: var(--gutter); padding-right: var(--gutter); margin: 0 auto; }
/* The company headline is the same size as the Earth and Space headlines */
.purpose-hero h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.12; }
.purpose-hero .hero-mid { max-width: 560px; }
/* Lake statement: each word takes longer to come into focus */
.statement-lake p span { transition: opacity 1.1s ease; }
.statement-lake p span { transition: opacity .8s ease; }

/* Site visit as the main step, the online meeting as the lighter alternative next to it */
.book-or { color: var(--soft); margin: 0 4px; }
.book-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.book-pair .btn { margin: 0; }
.fit-result .fit-alt { display: inline-block; margin-top: 26px; margin-right: 18px; }
