/* ============================================================
   x3ro Automations — OFFICINA (chrome editorial)
   The chrome of the logo is the design material: machined
   gradients, hairlines, graphite panels, one cyan for actions.
   ============================================================ */

:root {
  --ink: #0a0b0d;
  --panel: #131519;
  --panel-2: #16181d;
  --line: rgba(233, 236, 239, 0.1);
  --line-soft: rgba(233, 236, 239, 0.06);
  --silver: #e9ecef;
  --dim: #8b929b;
  --cyan: #54d2ff;
  --font-display: "Cabinet Grotesk", "Switzer", sans-serif;
  --font-body: "Switzer", -apple-system, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, monospace;
  --max: 1280px;
  --pad: 48px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { margin: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--silver);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
.mono { font: 400 11px/1.7 var(--font-mono); letter-spacing: 0.14em; }

::selection { background: rgba(84, 210, 255, 0.25); }

/* ambient light — faint chrome-blue pools so the dark never reads flat */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(52% 38% at 12% 10%, rgba(84, 210, 255, 0.05), transparent 70%),
    radial-gradient(46% 36% at 90% 44%, rgba(112, 132, 200, 0.05), transparent 70%),
    radial-gradient(64% 44% at 50% 98%, rgba(84, 210, 255, 0.065), transparent 72%);
}

/* film grain — quiet, everywhere */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.035;
}

/* ---------- chrome material ---------- */
.chrome {
  background: linear-gradient(105deg, #c3ccd6 0%, #ffffff 32%, #dbe2e9 48%, #ffffff 66%, #a8b2bd 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 7s ease-in-out infinite alternate;
}
.chrome.manual { animation: none; }
@keyframes sheen {
  from { background-position: 0% 0; }
  to { background-position: 100% 0; }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px var(--pad);
  background: rgba(10, 11, 13, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: transform 0.4s var(--ease);
}
.nav.hidden { transform: translateY(-100%); }
/* machined scroll-progress hairline */
.nav::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px;
  width: calc(var(--prog, 0) * 1%);
  background: linear-gradient(90deg, #565e68, #f4f7fa 60%, var(--cyan));
  transition: width 0.1s linear;
}
.nav-logo img { width: 88px; height: auto; display: block; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--dim); font-size: 13.5px; transition: color 0.25s; }
.nav-links a:hover { color: var(--silver); }
.nav-right { display: flex; align-items: center; gap: 13px; }
.nav-ig { color: var(--dim); display: grid; place-items: center; transition: color 0.25s, transform 0.3s var(--ease); }
.nav-ig:hover { color: var(--silver); transform: rotate(8deg) scale(1.08); }
.lang-toggle {
  background: none; border: 1px solid var(--line); border-radius: 100px;
  color: var(--dim); padding: 8px 13px; cursor: pointer; transition: color 0.25s, border-color 0.25s;
}
.lang-toggle:hover { color: var(--silver); border-color: var(--dim); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border-radius: 100px; padding: 14px 28px;
  font-size: 14.5px; font-weight: 500; line-height: 1;
  transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.btn-hot { background: var(--silver); color: var(--ink); }
.btn-hot:hover { background: #ffffff; box-shadow: 0 8px 30px -12px rgba(233, 236, 239, 0.5); }
.btn-ghost { border: 1px solid var(--line); color: var(--silver); }
.btn-ghost:hover { border-color: var(--dim); }
.btn-sm { padding: 10px 20px; font-size: 13.5px; }
.btn-lg { padding: 16px 34px; font-size: 15.5px; }

/* ---------- hero stage: full-bleed CHROME CURRENT canvas behind the copy ---------- */
.hero-stage { position: relative; }
#hero-fx {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0; transition: opacity 1.4s ease 0.2s;
}
body.lded #hero-fx { opacity: 1; }
#hero-fx canvas { display: block; width: 100%; height: 100%; }
/* cinematic vignette over the current */
#hero-fx::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 42%, transparent 55%, rgba(6, 7, 9, 0.55) 100%);
}
/* game callouts — hover the projection column */
.fx-toast {
  position: absolute; left: 72%; top: 13%; transform: translate(-50%, 8px);
  z-index: 2; pointer-events: none;
  color: var(--cyan); font-size: 11px; letter-spacing: 0.22em;
  text-shadow: 0 0 14px rgba(84, 210, 255, 0.65);
  max-width: 340px; text-align: center; line-height: 1.9;
  opacity: 0; transition: opacity 0.35s, transform 0.35s var(--ease);
}
.fx-toast.on { opacity: 1; transform: translate(-50%, 0); }
/* pain comet reveals glow amber, like their targets */
.fx-toast.amber { color: #ffb066; text-shadow: 0 0 14px rgba(255, 176, 102, 0.6); }
@media (max-width: 1000px) { .fx-toast { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 30px;
  max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto;
  padding: 150px var(--pad) 70px;
  min-height: 88vh; align-items: center;
}
.kicker { color: var(--dim); margin-bottom: 22px; }
.hero-h1 {
  font: 800 clamp(46px, 6.4vw, 88px)/1.02 var(--font-display);
  letter-spacing: -0.025em; max-width: 13ch; color: #fff;
  text-shadow: 0 0 44px rgba(233, 236, 239, 0.14);
}
.hline { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hline > span { display: block; }
.hero-sub { color: var(--dim); max-width: 52ch; font-size: 17px; margin: 28px 0 36px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* typed system status under the CTAs */
.sys { display: flex; align-items: center; gap: 9px; color: var(--dim); margin-top: 34px; min-height: 19px; }
.sys-caret { width: 7px; height: 13px; background: var(--cyan); opacity: 0.8; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* the 3D chrome mark zone — grab it (canvas lives in #hero-fx behind) */
.hero-3d {
  position: relative; height: min(66vh, 620px); border-radius: 16px;
  cursor: grab; touch-action: pan-y; user-select: none;
}
.hero-3d.grabbing { cursor: grabbing; }
.h3d-hint {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  color: var(--dim); pointer-events: none; white-space: nowrap;
  transition: opacity 0.6s;
}
.h3d-hint.off { opacity: 0; }

/* hero entrance — staggered rise once the page is ready */
.hrv { opacity: 0; transform: translateY(26px); transition: opacity 0.85s ease, transform 0.85s var(--ease); }
.hline .hrv { transform: translateY(105%); }
body.lded .hrv { opacity: 1; transform: none; }
.hero-copy .kicker.hrv { transition-delay: 0.05s; }
.hline:nth-child(1) .hrv { transition-delay: 0.12s; }
.hline:nth-child(2) .hrv { transition-delay: 0.22s; }
.hero-sub.hrv { transition-delay: 0.38s; }
.hero-ctas.hrv { transition-delay: 0.48s; }
.rail.hrv { transition-delay: 0.6s; }

/* ---------- belt (living ticker) ---------- */
.belt {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 19px 0; overflow: hidden; white-space: nowrap;
}
.belt-track { display: inline-flex; gap: 44px; color: var(--dim); animation: belt 36s linear infinite; padding-right: 44px; }
.belt:hover .belt-track { animation-play-state: paused; }
.belt-track em { font-style: normal; color: var(--silver); }
@keyframes belt { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec { max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 104px var(--pad) 0; position: relative; }
.sec:last-of-type { padding-bottom: 104px; }
/* giant ghost numeral — editorial watermark, drifts on scroll (--gn set by GSAP) */
.sec[data-num]::before {
  content: attr(data-num); position: absolute; top: 30px; right: var(--pad); z-index: 0;
  font: 600 clamp(110px, 16vw, 230px)/1 var(--font-display); letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(244, 247, 250, 0.055);
  transform: translateY(calc(var(--gn, 0) * 1px));
  pointer-events: none; user-select: none;
}
.sec[data-num] > * { position: relative; z-index: 1; }
.sec-head { max-width: 720px; margin-bottom: 40px; }
.sec-head .kicker { margin-bottom: 16px; }
h2 { font: 600 clamp(30px, 3.4vw, 44px)/1.08 var(--font-display); letter-spacing: -0.015em; }
/* masked heading rise */
:is(.sec-head, .rev-copy) .h2line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
:is(.sec-head, .rev-copy) .h2line > span { display: block; transform: translateY(108%); transition: transform 0.9s var(--ease); }
:is(.sec-head.in, .rev-copy.in) .h2line > span { transform: none; }
:is(.sec-head, .rev-copy) .kicker, :is(.sec-head, .rev-copy) .sec-sub { opacity: 0; transform: translateY(12px); transition: opacity 0.7s ease, transform 0.7s var(--ease); }
:is(.sec-head.in, .rev-copy.in) .kicker { opacity: 1; transform: none; }
:is(.sec-head.in, .rev-copy.in) .sec-sub { opacity: 1; transform: none; transition-delay: 0.15s; }
.sec-sub { color: var(--dim); margin-top: 16px; font-size: 16px; }

/* ---------- spotlight (cursor light inside cards) ---------- */
.spot { position: relative; overflow: hidden; }
.spot::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(84, 210, 255, 0.07), rgba(244, 247, 250, 0.04) 40%, transparent 65%);
  opacity: 0; transition: opacity 0.35s;
}
.spot:hover::before { opacity: 1; }

/* ---------- work (compact, shot-first) ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pcard {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 11px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.35s, box-shadow 0.35s;
  transform-style: preserve-3d; will-change: transform;
}
.pcard:hover { border-color: var(--line); box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.8); }
.pcard-shot { position: relative; overflow: hidden; }
.pcard-shot img {
  display: block; width: 100%; height: auto; aspect-ratio: 16/9.4; object-fit: cover; object-position: top;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.5s ease, transform 0.6s var(--ease);
}
.pcard:hover .pcard-shot img { filter: none; transform: scale(1.04); }
.pcard-live {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: flex; align-items: center; gap: 6px;
  background: rgba(10, 11, 13, 0.65); backdrop-filter: blur(8px);
  border: 1px solid var(--line-soft); border-radius: 100px;
  padding: 5px 10px; font-size: 9.5px; color: var(--silver);
}
.led { width: 5px; height: 5px; border-radius: 50%; background: #3ddc84; display: inline-block; }
.pcard-live .led { animation: ledpulse 2.2s ease-in-out infinite; }
@keyframes ledpulse { 50% { box-shadow: 0 0 8px rgba(61, 220, 132, 0.9); } }
.led-amber { background: #ffb454; }
.led-cyan { background: var(--cyan); }
.pcard-body { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 15px; }
.pcard-name { font: 500 16.5px/1.2 var(--font-display); }
.pcard-sector { color: var(--dim); font-size: 9.5px; margin-top: 4px; }
.work-arrow { color: var(--dim); transition: transform 0.3s var(--ease), color 0.3s; font-size: 15px; }
.pcard:hover .work-arrow { transform: translate(2px, -2px); color: var(--cyan); }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  border-top: 1px solid var(--line); margin-top: 48px; padding-top: 34px;
}
.stat b { font: 600 38px/1 var(--font-display); display: block; margin-bottom: 8px; }
.stat span { color: var(--dim); }

/* ---------- reviews ---------- */
.rev-inner { display: grid; grid-template-columns: 1fr 400px; gap: 64px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checklist li { padding-left: 26px; position: relative; color: var(--dim); font-size: 15px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); }

.rev-panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: 13px;
  padding: 22px; display: grid; gap: 14px;
}
.rev-panel-head { display: flex; align-items: center; gap: 9px; color: var(--dim); }
.rev-quote { font: 500 16px/1.45 var(--font-display); }
.rev-draft { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 13px 15px; }
.rev-draft-label { display: flex; align-items: center; gap: 8px; color: var(--dim); margin-bottom: 7px; }
.rev-draft-text { font-size: 13.5px; color: var(--silver); min-height: 3.2em; }
.rev-actions { display: flex; gap: 8px; }
.rev-btn {
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 15px;
  font-size: 12.5px; font-weight: 500; color: var(--silver);
}
.rev-post { background: rgba(61, 220, 132, 0.14); border-color: rgba(61, 220, 132, 0.4); }
.rev-post.flash { background: rgba(61, 220, 132, 0.32); }
.rev-dim { color: var(--dim); }
.rev-published { color: #3ddc84; opacity: 0; transition: opacity 0.4s; }
.rev-published.show { opacity: 1; }
.rev-foot { color: var(--dim); border-top: 1px solid var(--line-soft); padding-top: 12px; }

/* ---------- services (compact) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.svc-card {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 11px;
  padding: 20px 19px; display: grid; gap: 11px; align-content: start;
  transition: transform 0.35s var(--ease), border-color 0.35s;
}
.svc-card:hover { transform: translateY(-4px); border-color: var(--line); }
/* target-lock corners on hover — same motif as the hero's pain tags */
.svc-card::after {
  content: ""; position: absolute; inset: 7px; pointer-events: none; opacity: 0; z-index: 2;
  --ck: linear-gradient(var(--cyan), var(--cyan));
  background:
    var(--ck) left top / 11px 1px, var(--ck) left top / 1px 11px,
    var(--ck) right top / 11px 1px, var(--ck) right top / 1px 11px,
    var(--ck) left bottom / 11px 1px, var(--ck) left bottom / 1px 11px,
    var(--ck) right bottom / 11px 1px, var(--ck) right bottom / 1px 11px;
  background-repeat: no-repeat;
  transform: scale(1.045);
  transition: opacity 0.35s, transform 0.35s var(--ease);
}
.svc-card:hover::after { opacity: 0.6; transform: scale(1); }
.svc-head { display: flex; justify-content: space-between; align-items: center; }
.svc-ico {
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px;
  display: grid; place-items: center; color: var(--silver);
  transition: border-color 0.35s, color 0.35s;
}
.svc-card:hover .svc-ico { border-color: var(--dim); color: var(--cyan); }
/* icons draw themselves on hover */
.svc-ico :is(path, rect, circle)[pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; }
.svc-card:hover .svc-ico :is(path, rect, circle)[pathLength] { animation: draw 0.9s ease forwards; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.svc-num { color: var(--dim); font-size: 10px; }
.svc-card h3 { font: 500 16.5px/1.25 var(--font-display); letter-spacing: -0.005em; }
.svc-card p { color: var(--dim); font-size: 13.5px; line-height: 1.55; }
.svc-cta {
  border-top: 1px solid var(--line); margin-top: 44px; padding-top: 30px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.svc-cta p { color: var(--dim); }

/* ---------- process ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: 11px;
  padding: 22px 20px; display: grid; gap: 10px; align-content: start;
}
.step-n { font: 400 10px/1 var(--font-mono); letter-spacing: 0.14em; color: var(--cyan); }
.steps h3 { font: 500 17px/1.25 var(--font-display); }
.steps p { color: var(--dim); font-size: 14px; }

/* ---------- faq ---------- */
.faq-list { max-width: 780px; display: grid; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  width: 100%; background: none; border: 0; color: var(--silver);
  font: 500 16.5px/1.4 var(--font-body); text-align: left; cursor: pointer;
  padding: 19px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  transition: color 0.25s;
}
.faq-q:hover { color: #fff; }
.faq-qt { display: flex; align-items: baseline; gap: 14px; }
.faq-n { color: var(--cyan); font-size: 10px; letter-spacing: 0.14em; opacity: 0.75; flex: none; }
.faq-x { color: var(--dim); font-size: 20px; transition: transform 0.3s var(--ease); flex: none; }
.faq-item.open .faq-x { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { color: var(--dim); font-size: 15px; padding: 0 0 19px; max-width: 62ch; }

/* ---------- contact ---------- */
#contact { background: radial-gradient(58% 340px at 50% 92%, rgba(84, 210, 255, 0.05), transparent 72%); }
.contact-form {
  max-width: 760px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 13px; padding: 30px; display: grid; gap: 20px;
}
.hp { position: absolute; left: -9999px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-field { display: grid; gap: 8px; }
.f-label { color: var(--dim); }
.f-field input, .f-field textarea {
  background: var(--ink); border: 1px solid var(--line-soft); border-radius: 9px;
  color: var(--silver); font: 400 15px/1.5 var(--font-body);
  padding: 12px 14px; outline: none; transition: border-color 0.25s;
}
.f-field input:focus, .f-field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 1px rgba(84, 210, 255, 0.3), 0 0 20px -8px rgba(84, 210, 255, 0.55);
}
.f-field:focus-within .f-label { color: var(--cyan); }
.f-field.bad input, .f-field.bad textarea { border-color: rgba(255, 107, 107, 0.65); }
.f-field.bad .f-label { color: #ff8a8a; }
.f-field.bad .f-label::after { content: " ✕"; }
.f-field textarea { resize: vertical; }
.f-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.f-chip {
  background: none; border: 1px solid var(--line); border-radius: 100px;
  color: var(--dim); font: 400 13px/1 var(--font-body);
  padding: 9px 16px; cursor: pointer; transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.f-chip:hover { color: var(--silver); border-color: var(--dim); transform: translateY(-1px); }
.f-chip.on { background: rgba(84, 210, 255, 0.12); border-color: var(--cyan); color: var(--silver); }
.f-foot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.f-success { color: #3ddc84; font-size: 13px; letter-spacing: 0.18em; padding: 14px 0 4px; }

/* signal meter — segmented, charges up as you fill the form */
.f-meter { display: flex; align-items: center; gap: 14px; color: var(--dim); }
.f-meter b { color: var(--cyan); font-weight: 400; }
.f-meter-bar {
  flex: 1; height: 7px; display: block; border-radius: 2px; overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--line-soft) 0 9px, transparent 9px 13px);
}
#f-meter-fill {
  display: block; height: 100%; width: 0;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 9px, transparent 9px 13px);
  box-shadow: 0 0 14px rgba(84, 210, 255, 0.35);
  transition: width 0.45s var(--ease);
}
/* filled fields earn a ✓ */
.f-field.ok .f-label::after { content: " ✓"; color: var(--cyan); }
/* full signal arms the launch button */
.btn-lg.armed {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(84, 210, 255, 0.5), 0 0 28px rgba(84, 210, 255, 0.35);
  animation: armed 1.6s ease-in-out infinite;
}
@keyframes armed {
  50% { box-shadow: 0 0 0 1px rgba(84, 210, 255, 0.8), 0 0 40px rgba(84, 210, 255, 0.55); }
}

/* ---------- footer ---------- */
.foot {
  border-top: 1px solid var(--line); margin-top: 104px; padding: 64px var(--pad) 26px;
  background: radial-gradient(72% 300px at 50% 106%, rgba(84, 210, 255, 0.07), transparent 72%);
}
.foot-inner { max-width: var(--max); margin: 0 auto; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
.foot-brand img { opacity: 0.92; }
.foot-tag { color: var(--dim); font-size: 14.5px; line-height: 1.6; max-width: 34ch; margin-top: 16px; }
.foot-loc { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 10px; letter-spacing: 0.18em; margin-top: 14px; }
.foot-h { color: var(--dim); font-size: 10px; letter-spacing: 0.18em; margin-bottom: 6px; }
.foot-col { display: grid; gap: 11px; align-content: start; }
.foot-col a { color: var(--silver); font-size: 14.5px; width: fit-content; transition: color 0.25s; }
.foot-col a:hover { color: var(--cyan); }
/* signature wordmark — same ghost treatment as the section numerals */
.foot-mark {
  font: 800 clamp(120px, 19vw, 270px)/0.92 var(--font-display); letter-spacing: -0.045em;
  text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(244, 247, 250, 0.1);
  margin: 44px 0 10px; user-select: none; pointer-events: none;
  filter: drop-shadow(0 0 34px rgba(84, 210, 255, 0.1));
}
.foot-bot {
  display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--line-soft); padding-top: 22px;
  color: var(--dim); font-size: 10.5px; letter-spacing: 0.14em;
}
.foot-top {
  background: none; border: 1px solid var(--line); border-radius: 100px;
  color: var(--silver); padding: 10px 18px; cursor: pointer;
  font: 400 10px var(--font-mono); letter-spacing: 0.14em;
  transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.foot-top:hover { color: var(--cyan); border-color: var(--dim); transform: translateY(-2px); }

/* ---------- reveals ---------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- custom cursor (fine pointers only, JS-armed) ---------- */
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor .hero-3d, body.has-cursor .hero-3d.grabbing { cursor: none; }
body.has-cursor :is(input, textarea, select) { cursor: auto; }
/* game reticle: center dot + ring, ticks lock in over targets */
.cur-dot {
  position: fixed; top: 0; left: 0; z-index: 99; pointer-events: none;
  border-radius: 50%; opacity: 0; transform: translate(-100px, -100px);
  width: 5px; height: 5px; background: var(--silver); margin: -2.5px 0 0 -2.5px;
  transition: background 0.2s;
}
.cur-dot::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid rgba(174, 182, 194, 0.5);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.cur-dot.hot { background: var(--cyan); }
.cur-dot.hot::before { transform: scale(1.45); border-color: rgba(84, 210, 255, 0.85); }
/* target in reach — ring locks cyan and grows ticks */
.cur-dot.aim { background: var(--cyan); }
.cur-dot.aim::before {
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(84, 210, 255, 0.7), inset 0 0 8px rgba(84, 210, 255, 0.25);
}
.cur-dot.aim::after {
  content: ""; position: absolute; inset: -15px;
  --tk: linear-gradient(var(--cyan), var(--cyan));
  background:
    var(--tk) center top / 1px 7px, var(--tk) center bottom / 1px 7px,
    var(--tk) left center / 7px 1px, var(--tk) right center / 7px 1px;
  background-repeat: no-repeat;
}
body.has-cursor .cur-dot { opacity: 1; }

/* site-level achievement toast */
.site-toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(8px);
  z-index: 80; pointer-events: none;
  color: var(--cyan); font-size: 10.5px; letter-spacing: 0.2em;
  background: rgba(10, 11, 13, 0.85); backdrop-filter: blur(10px);
  border: 1px solid rgba(84, 210, 255, 0.35); border-radius: 18px;
  padding: 11px 22px; max-width: min(86vw, 560px); text-align: center; line-height: 1.8;
  opacity: 0; transition: opacity 0.35s, transform 0.35s var(--ease);
}
.site-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* cards press down when you click them */
:is(.pcard, .svc-card, .btn, .f-chip):active { transform: scale(0.975); transition-duration: 0.08s; }

/* ---------- waypoint rail: level-select for the page ---------- */
.wp-rail {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%);
  z-index: 55; display: grid; gap: 14px;
}
/* the route line fills as you travel the page */
.wp-rail::before, .wp-rail::after {
  content: ""; position: absolute; left: 50%; top: 4px; width: 1px;
  transform: translateX(-50%); pointer-events: none;
}
.wp-rail::before { bottom: 4px; background: var(--line-soft); }
.wp-rail::after {
  height: calc(var(--wpp, 0) * (100% - 8px));
  background: linear-gradient(180deg, #565e68, var(--cyan));
  transition: height 0.2s linear;
}
.wp-dot {
  position: relative; width: 8px; height: 8px; padding: 0; z-index: 1;
  border-radius: 50%; border: 1px solid var(--dim); background: var(--ink); cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.wp-dot.seen { border-color: var(--cyan); }
.wp-dot.act {
  background: var(--cyan); border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(84, 210, 255, 0.7); transform: scale(1.3);
}
.wp-dot span {
  position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  white-space: nowrap; color: var(--silver);
  font: 400 9px/1 var(--font-mono); letter-spacing: 0.14em;
  background: rgba(10, 11, 13, 0.85); border: 1px solid var(--line-soft);
  border-radius: 6px; padding: 6px 9px;
  opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
.wp-dot:hover span, .wp-dot:focus-visible span { opacity: 1; }
@media (max-width: 1000px) {
  .wp-rail { display: none; }
}

/* ---------- keyboard focus ---------- */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 8px; padding-top: 136px; min-height: 0; }
  .hero-3d { height: 360px; }
  .rev-inner { grid-template-columns: 1fr; gap: 42px; }
  .rev-panel { max-width: 480px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .sec[data-num]::before { font-size: clamp(90px, 19vw, 150px); top: 22px; }
}
@media (max-width: 640px) {
  :root { --pad: 22px; }
  .nav-links { display: none; }
  .work-grid, .steps, .stats { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .contact-form { padding: 22px 16px; }
  .sec { padding-top: 76px; }
  .hero { padding-top: 118px; }
  .hero-sub { font-size: 15.5px; margin: 22px 0 28px; }
  .hero-3d { height: 330px; }
  .stats { gap: 24px; }
  .stat b { font-size: 32px; }
  .svc-cta { gap: 14px; }
  .faq-qt { gap: 10px; }
  .foot { padding-top: 46px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .foot-mark { font-size: clamp(84px, 26vw, 130px); margin: 30px 0 6px; }
  .foot-bot { flex-direction: column; align-items: flex-start; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .chrome { animation: none; }
  .sys-caret { animation: none; }
  .btn-lg.armed { animation: none; }
  .pcard-live .led { animation: none; }
  .rv, .hrv, :is(.sec-head, .rev-copy) .kicker, :is(.sec-head, .rev-copy) .sec-sub { opacity: 1; transform: none; transition: none; }
  :is(.sec-head, .rev-copy) .h2line > span { transform: none; transition: none; }
  .belt-track { animation: none; white-space: normal; flex-wrap: wrap; padding: 0 var(--pad); }
  .pcard-shot img { transition: filter 0.2s; }
  html { scroll-behavior: auto; }
}
