/* ===== Tokens ===== */
:root {
  --bg: #0b0b0c;
  --bg-2: #111113;
  --surface: #161618;
  --surface-2: #1d1d20;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #f3efe6;
  --muted: #a39e93;
  --dim: #6d6961;
  --accent: #f5b50e;
  --accent-2: #ffd447;
  --accent-deep: #a87a06;
  --accent-soft: rgba(245, 181, 14, .14);
  --accent-glow: rgba(245, 181, 14, .35);
  --ink: #141210;
  --steel: #232326;
  --steel-2: #3a3a3f;
  --steel-line: #55555c;
  --chrome: #c9c9cf;
  --chrome-2: #8d8d94;
  --glass-1: #2b3a44;
  --glass-2: #0e1418;
  --glass-hi: #9fd3ff;
  --shadow: rgba(0, 0, 0, .55);
  --danger: #ff7a59;

  --font: "Almarai", sans-serif;
  --radius: 14px;
  --gutter: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::after { /* film grain */
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-1%)} 100%{transform:translate(0,0)} }

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
p { margin: 0; }
em { font-style: normal; color: var(--accent); }
::selection { background: var(--accent); color: var(--ink); }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot { width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); box-shadow: 0 0 12px var(--accent-glow); }
.section-title { font-size: clamp(2rem, 5.2vw, 4.2rem); margin-top: 18px; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ===== Buttons ===== */
.btn {
  --mx: 0px; --my: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 30px; border: 0; border-radius: 4px; cursor: pointer;
  font: 700 .95rem/1 var(--font); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); background: var(--accent);
  overflow: hidden; isolation: isolate;
  transform: translate(var(--mx), var(--my));
  transition: transform .35s var(--ease-out), box-shadow .35s;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn:hover::before { transform: translateX(120%); }
.btn:hover { box-shadow: 0 12px 40px var(--accent-glow); }
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost::before { background: linear-gradient(110deg, transparent 30%, var(--accent-soft) 50%, transparent 70%); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.btn-sm { padding: 12px 20px; font-size: .78rem; }
.btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ===== Chrome: progress, dust, cursor ===== */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; background: transparent; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent-deep), var(--accent-2)); box-shadow: 0 0 12px var(--accent-glow); }
.dust { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  opacity: 0; transition: opacity .5s;
}
@media (pointer: fine) { .cursor-glow.on { opacity: 1; } }

/* ===== Nav ===== */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--gutter);
  transition: padding .4s var(--ease), background .4s, backdrop-filter .4s, transform .5s var(--ease-out);
}
.nav.scrolled { padding-block: 12px; background: rgba(11, 11, 12, .72); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--line); }
.nav.hide { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .28em; font-size: 1.05rem; }
.brand-mark { width: 34px; height: 34px; color: var(--accent); }
.nav-links { display: flex; gap: 36px; }
.nav-links a { position: relative; font-size: .88rem; font-weight: 700; color: var(--muted); letter-spacing: .06em; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ===== Hero ===== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px 0 110px; overflow: hidden; isolation: isolate; background: var(--bg); }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform-origin: 60% 55%; will-change: transform; }
.js .hero-img { clip-path: inset(12% 10% 12% 10%); filter: brightness(.55) saturate(.8); transition: clip-path 1.8s var(--ease-out), filter 2.4s var(--ease-out); }
.js .hero.loaded .hero-img { clip-path: inset(0 0 0 0); filter: brightness(1) saturate(1); }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(11,11,12,.92) 0%, rgba(11,11,12,.7) 34%, rgba(11,11,12,.15) 65%, rgba(11,11,12,.35) 100%),
  linear-gradient(0deg, var(--bg) 0%, rgba(11,11,12,0) 30%),
  linear-gradient(180deg, rgba(11,11,12,.6) 0%, rgba(11,11,12,0) 22%); }
.beam { position: absolute; top: -20%; width: 40vw; height: 140%; background: linear-gradient(180deg, rgba(255,212,71,.12), transparent 70%); filter: blur(30px); transform-origin: top center; mix-blend-mode: screen; }
.beam-1 { left: 52%; transform: rotate(24deg); animation: beam 9s ease-in-out infinite alternate; }
@keyframes beam { to { transform: rotate(8deg); opacity: .4; } }

.hero-inner { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero-copy { max-width: 680px; }
.hero-title { font-size: clamp(2.6rem, 6.6vw, 6rem); margin: 22px 0 24px; text-shadow: 0 6px 40px rgba(0,0,0,.45); }
.hero-sub { max-width: 520px; color: var(--text); opacity: .78; font-size: clamp(1rem, 1.3vw, 1.12rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-cta .btn-ghost { background: rgba(11,11,12,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-tags { display: grid; gap: 12px; padding-bottom: 6px; }

.spec-tag {
  display: flex; flex-direction: column; gap: 2px; min-width: 230px;
  padding: 12px 16px 12px 18px; border-radius: 6px;
  background: rgba(16, 16, 18, .55); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--line-strong); border-left: 3px solid var(--accent);
  font-size: .78rem; color: var(--muted);
}
.spec-tag b { color: var(--text); font-size: .9rem; }

.scroll-cue { position: absolute; bottom: 30px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border-radius: 14px; border: 2px solid var(--line-strong); }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ===== Marquee ===== */
.marquee { position: relative; z-index: 2; background: var(--accent); color: var(--ink); overflow: hidden; transform: rotate(-1.5deg) scale(1.03); margin-block: 20px; }
.hazard { height: 10px; background: repeating-linear-gradient(-45deg, var(--ink) 0 14px, var(--accent) 14px 28px); animation: hazard 2s linear infinite; background-size: 40px 40px; }
@keyframes hazard { to { background-position: 40px 0; } }
.marquee-track { display: flex; width: max-content; padding: 18px 0; will-change: transform; }
.marquee ul { display: flex; gap: 0; margin: 0; padding: 0; list-style: none; }
.marquee li { display: flex; align-items: center; font-weight: 800; font-size: clamp(1.3rem, 3vw, 2.2rem); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; padding-inline: 28px; }
.marquee li::after { content: ""; width: 12px; height: 12px; margin-left: 56px; background: var(--ink); transform: rotate(45deg); }

/* ===== Assembly (pinned) ===== */
.assembly { position: relative; height: 340vh; }
.pin-stage { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 5vw, 80px); max-width: 1240px; margin-inline: auto; padding: 90px var(--gutter) 40px; overflow: hidden; }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 8px; }
.step { display: flex; gap: 20px; padding: 18px 0 18px 20px; border-left: 2px solid var(--line); opacity: .32; transition: opacity .5s, border-color .5s, transform .5s var(--ease-out); }
.step.is-active { opacity: 1; border-color: var(--accent); transform: translateX(6px); }
.step-no { font-weight: 800; color: var(--accent); font-size: .9rem; padding-top: 4px; }
.step h3 { font-size: 1.35rem; margin-bottom: 6px; }
.step p { color: var(--muted); max-width: 420px; }
.stack { position: relative; width: 100%; max-width: 520px; aspect-ratio: 6 / 7; justify-self: center; }
.stack-frame { position: absolute; inset: 0; margin: 0; overflow: hidden; border-radius: 4px; background: var(--surface); box-shadow: 0 40px 80px rgba(0,0,0,.55); clip-path: inset(100% 0 0 0); will-change: clip-path; }
.stack-frame:first-of-type { clip-path: inset(0 0 0 0); }
.stack-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.18); will-change: transform; }
.stack-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,11,12,.55), transparent 40%); }
.corner { position: absolute; width: 26px; height: 26px; border-color: var(--accent); border-style: solid; border-width: 0; z-index: 2; }
.c-tl { top: -12px; left: -12px; border-top-width: 2px; border-left-width: 2px; }
.c-tr { top: -12px; right: -12px; border-top-width: 2px; border-right-width: 2px; }
.c-bl { bottom: -12px; left: -12px; border-bottom-width: 2px; border-left-width: 2px; }
.c-br { bottom: -12px; right: -12px; border-bottom-width: 2px; border-right-width: 2px; }
.assembly-meter { position: absolute; z-index: 3; bottom: 18px; right: 22px; font-weight: 800; color: rgba(243,239,230,.6); letter-spacing: .1em; }
.assembly-meter span { color: var(--accent); font-size: 1.6rem; }

/* ===== Parts ===== */
.parts { position: relative; padding: clamp(80px, 12vw, 160px) 0; z-index: 2; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  position: relative; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease-out), border-color .4s;
  overflow: hidden; isolation: isolate;
}
.card::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(400px circle at var(--gx) var(--gy), var(--accent-soft), transparent 45%); opacity: 0; transition: opacity .4s; }
.card:hover { border-color: rgba(245,181,14,.4); }
.card:hover::before { opacity: 1; }
.card-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; }
.card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface) 0%, transparent 55%); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.12); filter: grayscale(1) brightness(.7) contrast(1.1); transition: transform 1.4s var(--ease-out), filter 1.2s var(--ease-out); }
.card.in .card-media img, html:not(.js) .card-media img { transform: scale(1.02); filter: grayscale(.35) brightness(.85) contrast(1.05); }
.card:hover .card-media img { transform: scale(1.1); filter: none; }
.card-body { position: relative; padding: 4px 24px 28px; }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .93rem; }
.card-no { position: absolute; z-index: 2; top: 16px; right: 18px; font-weight: 800; font-size: .78rem; color: var(--text); letter-spacing: .1em; padding: 5px 9px; background: rgba(11,11,12,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 3px; }
.card::after { content: ""; position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.card:hover::after { transform: scaleX(1); }

/* ===== Statement band ===== */
.band { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.band-media { position: absolute; inset: 0; z-index: -1; }
.band-media img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; object-position: 30% 50%; will-change: transform; }
.band-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(11,11,12,.25) 25%, rgba(11,11,12,.35) 70%, var(--bg-2) 100%), linear-gradient(90deg, rgba(11,11,12,.15), rgba(11,11,12,.6)); }
.band-inner { display: flex; justify-content: flex-end; }
.band-text { max-width: 900px; font-weight: 800; font-size: clamp(1.9rem, 4.6vw, 4rem); line-height: 1.15; letter-spacing: -.02em; text-align: right; }
.band-text .ink { color: rgba(243,239,230,.18); transition: color .3s; }
.band-text .ink.on { color: var(--text); }
.band-text .ink.hot { color: var(--accent); }

/* ===== Machines (horizontal) ===== */
.machines { position: relative; height: 320vh; background: var(--bg-2); }
.h-stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 40px; overflow: hidden; }
.h-track { display: flex; gap: 22px; padding-inline: var(--gutter); width: max-content; will-change: transform; }
.m-card {
  position: relative; flex: 0 0 auto; width: min(440px, 80vw); height: min(500px, 56svh);
  padding: 32px; border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: border-color .4s;
}
.m-img { position: absolute; top: 0; left: -12%; width: 124%; height: 100%; object-fit: cover; z-index: -2; transform: translateX(var(--px, 0px)) scale(1.04); filter: brightness(.8) saturate(.9); transition: filter .6s; }
.m-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(11,11,12,.95) 0%, rgba(11,11,12,.55) 38%, rgba(11,11,12,.05) 70%); }
.m-card:hover .m-img { filter: brightness(1) saturate(1); }
.m-no { position: absolute; top: 18px; right: 24px; font-weight: 800; font-size: clamp(3.4rem, 8vw, 5.4rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(245,181,14,.7); }
.m-card h3 { position: relative; font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 10px; }
.m-card p { position: relative; color: rgba(243,239,230,.75); max-width: 320px; }
.m-line { position: relative; height: 3px; margin-top: 24px; background: var(--line-strong); overflow: hidden; }
.m-line::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--fill, 0)); transform-origin: left; transition: transform .2s linear; }
.h-bar { height: 2px; }
.h-bar::before { content: ""; display: block; height: 2px; background: var(--line); }
.h-bar span { display: block; height: 2px; margin-top: -2px; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ===== Process ===== */
.process { position: relative; padding: clamp(90px, 12vw, 160px) 0; z-index: 2; }
.timeline { position: relative; max-width: 820px; margin-inline: auto; display: grid; gap: clamp(44px, 7vw, 80px); }
.timeline-line { position: absolute; left: 31px; top: 32px; bottom: 32px; width: 4px; height: calc(100% - 64px); overflow: visible; }
.tl-base { stroke: var(--line-strong); stroke-width: 2; vector-effect: non-scaling-stroke; }
.tl-fill { stroke: var(--accent); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: var(--tl, 1); }
.tl-item { position: relative; display: flex; gap: 32px; align-items: flex-start; }
.tl-node { position: relative; z-index: 1; flex: 0 0 64px; height: 64px; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: var(--accent); background: var(--bg); border: 2px solid var(--line-strong); transform: rotate(45deg); transition: background .5s, color .5s, border-color .5s, box-shadow .5s; }
.tl-node { line-height: 1; }
.tl-item.lit .tl-node { background: var(--accent); color: var(--ink); border-color: var(--accent); box-shadow: 0 0 30px var(--accent-glow); }
.tl-node > * { transform: rotate(-45deg); }
.tl-body { padding-top: 10px; }
.tl-body h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 8px; }
.tl-body p { color: var(--muted); max-width: 520px; }

/* ===== Contact ===== */
.contact { position: relative; padding: clamp(90px, 12vw, 160px) 0; overflow: hidden; isolation: isolate; border-top: 1px solid var(--line); }
.contact-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.contact-bg img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; object-position: 50% 40%; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,11,12,.94) 0%, rgba(11,11,12,.78) 45%, rgba(11,11,12,.55) 100%), linear-gradient(180deg, var(--bg) 0%, transparent 20%, transparent 80%, var(--bg) 100%); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.lead { color: var(--muted); font-size: 1.08rem; margin-top: 22px; max-width: 460px; }
.mail-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 34px; font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.4rem); border-bottom: 2px solid var(--accent); padding-bottom: 6px; transition: gap .3s var(--ease-out), color .3s; }
.mail-link svg { width: 24px; height: 24px; color: var(--accent); }
.mail-link:hover { gap: 18px; color: var(--accent-2); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(22px, 4vw, 40px); border-radius: 18px; background: rgba(22,22,24,.7); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.field { position: relative; }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; padding: 26px 16px 10px; border-radius: 8px;
  font: 400 1rem var(--font); color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line);
  outline: none; resize: vertical; transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 130px; }
.field label { position: absolute; left: 17px; top: 18px; font-size: .95rem; color: var(--dim); pointer-events: none; transform-origin: left top; transition: transform .3s var(--ease-out), color .3s; }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.78); color: var(--accent); }
.field.invalid input { border-color: var(--danger); }
.form-error { grid-column: 1 / -1; color: var(--danger); font-size: .9rem; }
.form .btn { margin-top: 6px; }

/* ===== Footer ===== */
.footer { position: relative; padding: 60px 0 0; border-top: 1px solid var(--line); overflow: hidden; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; }
.footer-note { flex: 1 1 340px; color: var(--dim); font-size: .82rem; max-width: 520px; }
.footer-copy { color: var(--muted); font-size: .86rem; }
.footer-word { font-weight: 800; font-size: 19vw; line-height: .8; text-align: center; letter-spacing: .02em; margin-top: 40px; color: transparent; -webkit-text-stroke: 1px rgba(245,181,14,.18); background: linear-gradient(180deg, rgba(245,181,14,.12), transparent 80%); -webkit-background-clip: text; background-clip: text; translate: 0 12%; }

/* ===== Reveal system (only when JS is on) ===== */
.js [data-reveal] { opacity: 0; transform: translateY(36px); filter: blur(6px); transition: opacity 1s var(--ease-out) var(--d, 0s), transform 1s var(--ease-out) var(--d, 0s), filter 1s var(--ease-out) var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }
.js .card[data-reveal].in { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: opacity 1s var(--ease-out) var(--d, 0s), transform .5s var(--ease-out), filter 1s var(--ease-out) var(--d, 0s), border-color .4s; }
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.word > span { display: inline-block; }
.js [data-split] .word > span { transform: translateY(110%) rotate(4deg); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 60ms); }
.js [data-split].in .word > span { transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero-tags { display: none; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { padding: 120px 0 96px; }
  .hero-img { object-position: 58% 50%; }
  .hero-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(11,11,12,.85) 32%, rgba(11,11,12,.35) 62%, rgba(11,11,12,.55) 100%); }

  .assembly { height: 320vh; }
  .pin-stage { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 0; padding: 80px var(--gutter) 28px; align-content: start; }
  .assembly-copy .section-title { font-size: clamp(1.6rem, 7vw, 2.4rem); margin-top: 10px; }
  .steps { margin-top: 12px; position: relative; min-height: 112px; }
  .step { position: absolute; inset: 0 auto auto 0; border-left-color: var(--accent); opacity: 0; transform: translateY(18px); pointer-events: none; padding-block: 6px; }
  .step.is-active { opacity: 1; transform: none; }
  .stack { max-width: none; width: 100%; height: 100%; aspect-ratio: auto; max-height: 52svh; align-self: center; margin-top: 8px; }
  .corner { width: 18px; height: 18px; }
  .c-tl, .c-tr { top: -8px; }
  .c-bl, .c-br { bottom: -8px; }
  .c-tl, .c-bl { left: -8px; }
  .c-tr, .c-br { right: -8px; }

  .band { min-height: 90svh; }
  .band-inner { justify-content: flex-start; }
  .band-text { text-align: left; }

  .contact-inner { grid-template-columns: 1fr; }
  .contact-bg::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(11,11,12,.6) 25%, rgba(11,11,12,.88) 55%, var(--bg) 100%); }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 auto; }
  .btn-sm { padding: 10px 14px; font-size: .7rem; letter-spacing: .04em; }
  .brand { font-size: .95rem; letter-spacing: .2em; }
  .brand-mark { width: 28px; height: 28px; }
  .timeline-line { left: 23px; top: 24px; height: calc(100% - 48px); }
  .tl-node { flex-basis: 48px; height: 48px; font-size: 1.05rem; }
  .tl-item { gap: 22px; }
  .tl-body { padding-top: 4px; }
  .m-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-split] .word > span { opacity: 1; transform: none; filter: none; }
}
