/* =========================================================
   RistoForge — single-page stylesheet
   Tokens → Reset → Layout primitives → Sections → Reduced motion
   ========================================================= */

/* -------- 1. TOKENS -------- */
:root {
  --orange: #ff6b35;
  --orange-soft: #ff8756;
  --orange-dim: rgba(255, 107, 53, 0.14);
  --orange-line: rgba(255, 107, 53, 0.35);

  --ink: #1f1f1f;
  --ink-2: #2a2a2a;
  --paper: #fafaf7;
  --paper-2: #f2f1ec;
  --line: rgba(31, 31, 31, 0.12);
  --line-strong: rgba(31, 31, 31, 0.28);
  --muted: rgba(31, 31, 31, 0.62);

  --black: #0e0e0e;
  --black-2: #151515;

  --serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Fluid type scale */
  --fs-xs:  clamp(11px, 0.65vw + 8px, 13px);
  --fs-sm:  clamp(13px, 0.7vw + 10px,  15px);
  --fs-md:  clamp(15px, 0.8vw + 12px,  17px);
  --fs-lg:  clamp(19px, 1.3vw + 14px,  24px);
  --fs-xl:  clamp(28px, 3vw + 16px,    52px);
  --fs-2xl: clamp(44px, 6vw + 12px,    92px);
  --fs-3xl: clamp(58px, 10vw + 12px,   160px);

  --radius-s: 6px;
  --radius-m: 14px;
  --radius-l: 22px;

  --shadow-soft: 0 24px 60px -30px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 40px 90px -40px rgba(0, 0, 0, 0.55);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
}

/* -------- 2. RESET -------- */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--fs-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--orange); color: #fff; }

/* -------- 3. TOPBAR -------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  overflow: visible;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px var(--pad-x);
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.topbar.is-scrolled {
  border-bottom-color: var(--line);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: var(--fs-md);
  overflow: visible;
}
.topbar__mark {
  /* Icon is taller than wide after crop — lock height so the fork fills the bar */
  width: auto;
  height: 44px;
  max-width: 56px;
  object-fit: contain;
  object-position: left center;
  display: block;
  flex-shrink: 0;
}
.topbar__name { font-feature-settings: "ss01"; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar__nav {
  justify-self: center;
  display: flex;
  gap: clamp(10px, 2vw, 28px);
  font-size: var(--fs-sm);
  color: var(--muted);
}
.topbar__nav a {
  position: relative;
  padding: 6px 2px;
  transition: color .2s var(--ease);
}
.topbar__nav a:hover { color: var(--ink); }
.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.topbar__nav a:hover::after { transform: scaleX(1); }

/* Desktop: logo spostato a destra, lingua spostata a sinistra (verso il centro) */
@media (min-width: 721px) {
  .topbar__brand {
    margin-left: 80px;
  }
  .topbar__lang-wrap {
    margin-right: 80px;
  }
}

/* Language: custom dropdown — menu same width & edges as trigger */
.topbar__lang-wrap {
  display: inline-block;
  position: relative;
  justify-self: end;
  vertical-align: middle;
  z-index: 60;
  max-width: 100%;
}
.topbar__lang--trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  background: color-mix(in oklab, var(--paper) 94%, transparent);
  color: var(--ink);
  cursor: pointer;
}
.topbar__lang--trigger:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.topbar__lang-caret {
  flex-shrink: 0;
  transition: transform .2s var(--ease);
}
.topbar__lang-wrap.is-open .topbar__lang-caret {
  transform: rotate(180deg);
}
.topbar__lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
}
.topbar__lang-menu[hidden] {
  display: none !important;
}
.topbar__lang-option {
  display: block;
  width: 100%;
  text-align: center;
  font: 500 12px var(--mono);
  letter-spacing: 0.08em;
  padding: 8px 10px;
  margin: 0;
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.topbar__lang-option:hover {
  background: var(--paper-2);
}
.topbar__lang-option:focus-visible {
  background: var(--paper-2);
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}
.topbar__lang-option[aria-selected="true"] {
  background: var(--orange-dim);
  color: var(--ink);
  font-weight: 600;
}

/* Hide nav on narrow viewports, keep brand + lang */
@media (max-width: 720px) {
  .topbar__nav { display: none; }
  /* Only two grid items remain — avoid stretching the lang button across 1fr */
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
  }
  .topbar__lang--trigger {
    padding: 5px 10px;
    font-size: 10px;
    gap: 4px;
  }
  .topbar__lang-menu {
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: min(70vh, 360px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* -------- Narrow viewports: center main content (tablet + mobile) -------- */
@media (max-width: 820px) {
  .reveal {
    text-align: center;
    justify-items: center;
  }
  .reveal__headline {
    justify-content: center;
  }
  .reveal__headline .w--accent::after {
    transform-origin: center;
  }
  .reveal__sub {
    margin-inline: auto;
  }

  .section-head {
    text-align: center;
  }
  .section-head__title {
    margin-inline: auto;
  }
  .section-head__lede {
    margin-inline: auto;
  }

  .ticket {
    text-align: center;
  }
  .ticket__head {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .ticket__list li {
    padding-left: 0;
    text-align: center;
  }
  .ticket__list li::before {
    display: none;
  }
}

/* -------- 4. COLD OPEN -------- */
.cold {
  position: relative;
  min-height: 100svh;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  padding: 120px var(--pad-x) max(88px, calc(env(safe-area-inset-bottom, 0px) + 72px));
  /* Avoid overflow:hidden — it clipped the code line on narrow viewports */
  overflow: visible;
  isolation: isolate;
  /* Mouse position inside the section (updated by JS). Fallback: off-screen */
  --mx: -9999px;
  --my: -9999px;
  --reveal-radius: clamp(160px, 20vw, 260px);
}
.cold:hover { cursor: crosshair; }
.cold::before,
.cold::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
/* subtle radial spotlight */
.cold::before {
  background: radial-gradient(
    ellipse 60% 50% at 50% 55%,
    rgba(255, 107, 53, 0.10) 0%,
    transparent 70%
  );
}
/* grid paper */
.cold::after {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, #000 40%, transparent 90%);
}

.cold__inner {
  width: min(1040px, 100%);
  text-align: center;
  display: grid;
  gap: clamp(18px, 3vh, 40px);
  justify-items: center;
  position: relative;
  z-index: 2; /* sits above the spotlight reveal layer */
  /* Extra air below code + contact CTA — padding (not margin) so it survives vertical centering */
  padding-bottom: 80px;
}

/* ---- Spotlight reveal: scattered words/glyphs, visible only near the cursor ---- */
.cold__reveal {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Reveal only inside a soft circle around the mouse */
  --mask: radial-gradient(
    circle var(--reveal-radius) at var(--mx) var(--my),
    #000 0%,
    #000 35%,
    rgba(0, 0, 0, 0.5) 65%,
    transparent 100%
  );
  -webkit-mask-image: var(--mask);
          mask-image: var(--mask);
  opacity: 0;
  transition: opacity 260ms ease;
}
.cold:hover .cold__reveal { opacity: 1; }

/* Soft orange aura that follows the cursor — above the grid, below content */
.cold::before {
  background:
    radial-gradient(
      circle 180px at var(--mx) var(--my),
      rgba(255, 107, 53, 0.18) 0%,
      rgba(255, 107, 53, 0.08) 40%,
      transparent 75%
    ),
    radial-gradient(
      ellipse 60% 50% at 50% 55%,
      rgba(255, 107, 53, 0.10) 0%,
      transparent 70%
    );
  transition: background-position 120ms linear;
}

.cold__reveal-word,
.cold__reveal-glyph {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  user-select: none;
  white-space: nowrap;
  color: rgba(250, 250, 247, 0.55);
}
.cold__reveal-word {
  font-family: var(--mono);
  font-size: var(--s, 14px);
  letter-spacing: 0.04em;
  font-weight: 500;
}
.cold__reveal-word--accent,
.cold__reveal-glyph--accent { color: var(--orange); }
.cold__reveal-glyph { color: rgba(250, 250, 247, 0.35); }

/* -------- Hero: exactly 2 lines on desktop (one span = one line); wrap on narrow screens -------- */
.cold__hero {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 3.2vh, 36px);
  width: 100%;
  max-width: min(96vw, 1200px);
  margin-inline: auto;
  text-align: center;
}
.cold__hero-line {
  display: block;
  margin: 0;
  font-size: clamp(22px, 3.2vw + 10px, 56px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.cold__hero-line em {
  font-style: normal;
  font-weight: 900;
  color: var(--orange);
  position: relative;
  white-space: inherit;
}
.cold__hero-line em::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -3px;
  height: 2px;
  background: var(--orange);
  opacity: 0.4;
  border-radius: 2px;
}

/* Desktop / tablet landscape: one physical line per sentence (no 4–5 line breaks) */
@media (min-width: 821px) {
  .cold__hero-line {
    white-space: nowrap;
    max-width: 100%;
  }
}

/* Small screens: allow natural wrapping; cap width for readability */
@media (max-width: 820px) {
  .cold__hero {
    max-width: min(34ch, 92vw);
  }
  .cold__hero-line {
    text-wrap: balance;
  }
  .cold__hero-line em {
    white-space: nowrap;
  }
}

/* -------- Code line + contact jump -------- */
.cold__code-wrap {
  width: 100%;
  max-width: 100%;
  display: grid;
  /* Space between the code line and “Contact us” — was too tight at ~12–18px */
  gap: clamp(32px, 7vh, 72px);
  justify-items: center;
}
.cold__code {
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  padding: 14px 22px;
  justify-self: center;
  border: 1px dashed rgba(250, 250, 247, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  scrollbar-width: none;
}
.cold__to-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px dashed rgba(250, 250, 247, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(250, 250, 247, 0.88);
  font-family: var(--mono);
  font-size: clamp(12px, 0.9vw + 9px, 15px);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.25s var(--ease);
}
.cold__to-contact:hover {
  color: var(--orange);
  border-color: var(--orange-line);
  background: rgba(255, 107, 53, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 107, 53, 0.12);
  transform: translateY(-1px);
}
.cold__to-contact:active {
  transform: translateY(0);
}
.cold__to-contact-arrow {
  flex-shrink: 0;
  color: var(--orange);
  opacity: 0.95;
  animation: coldContactNudge 2.2s ease-in-out infinite;
}
@keyframes coldContactNudge {
  0%, 100% { transform: translateY(0); opacity: 0.95; }
  50%      { transform: translateY(3px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cold__to-contact-arrow {
    animation: none !important;
  }
}
.cold__code::-webkit-scrollbar { display: none; }
.cold__code code {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(13px, 1.2vw + 8px, 20px);
  color: rgba(250, 250, 247, 0.9);
  white-space: nowrap;
  letter-spacing: 0;
}

/* Mobile: full-width code chip, wrap so nothing is clipped or needs horizontal hunt */
@media (max-width: 820px) {
  .cold__code {
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    padding: 12px 14px;
    border-radius: 14px;
    overflow-x: visible;
  }
  .cold__code code {
    display: block;
    width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: clamp(10px, 2.4vw + 6px, 14px);
    line-height: 1.45;
    text-align: left;
  }
}
.cold__prompt { color: var(--orange); margin-right: 8px; }
.cold__caret {
  display: inline-block;
  width: 0.55ch;
  height: 1em;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--orange);
  animation: caret 1s steps(2, end) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.25); }
}

/* ============================================================
   THE FORGE — live build animation (between hero and code line)
   Pure SVG + CSS keyframes. Loop ~10s. Zero JS.
   Timeline:
     0.0s    three brand pixels orbit in from the sides
     0.8s    pixels strike the landing frame → blocks appear in sequence
     3.0s    pixels cross the beam to the phone
     4.0s    phone tiles assemble
     5.2s    booking-confirmed toast slides in
     7.5s    everything dims and resets
   ============================================================ */
.forge {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.forge__svg {
  width: 100%;
  height: auto;
  max-height: clamp(160px, 22vh, 240px);
  display: block;
  filter: drop-shadow(0 20px 60px rgba(255, 107, 53, 0.12));
}

/* Frames */
.forge__frame {
  stroke-dasharray: 820;
  stroke-dashoffset: 820;
  animation: forgeDraw 10s linear infinite;
}
.forge__phone .forge__frame { animation-delay: 3s; }

@keyframes forgeDraw {
  0%   { stroke-dashoffset: 820; opacity: 0.2; }
  10%  { stroke-dashoffset: 0;   opacity: 1; }
  70%  { stroke-dashoffset: 0;   opacity: 1; }
  80%  { stroke-dashoffset: 0;   opacity: 0.25; }
  100% { stroke-dashoffset: 820; opacity: 0.25; }
}

/* Landing blocks — staggered reveal */
.forge__block {
  opacity: 0;
  transform-origin: left center;
  transform-box: fill-box;
  animation: forgeBlock 10s ease infinite;
}
.forge__block--1 { animation-delay: 0.9s; }
.forge__block--2 { animation-delay: 1.3s; }
.forge__block--3 { animation-delay: 1.6s; }
.forge__block--4 { animation-delay: 2.1s; }
.forge__block--5 { animation-delay: 2.4s; }

@keyframes forgeBlock {
  0%, 8%  { opacity: 0; transform: translateX(-8px) scaleX(0.2); }
  12%     { opacity: 1; transform: translateX(0) scaleX(1); }
  72%     { opacity: 1; transform: translateX(0) scaleX(1); }
  80%     { opacity: 0; transform: translateX(0) scaleX(1); }
  100%    { opacity: 0; }
}

/* Phone tiles — staggered reveal, come in AFTER landing */
.forge__tile {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: forgeTile 10s ease infinite;
}
.forge__tile--1 { animation-delay: 4.1s; }
.forge__tile--2 { animation-delay: 4.4s; }

@keyframes forgeTile {
  0%, 40% { opacity: 0; transform: translateY(8px); }
  44%     { opacity: 1; transform: translateY(0); }
  72%     { opacity: 1; transform: translateY(0); }
  80%     { opacity: 0; transform: translateY(0); }
  100%    { opacity: 0; }
}

/* Confirmed toast */
.forge__toast {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
  animation: forgeToast 10s ease infinite;
}
@keyframes forgeToast {
  0%, 52% { opacity: 0; transform: translateY(10px) scale(0.96); }
  58%     { opacity: 1; transform: translateY(0)   scale(1.02); }
  62%     { opacity: 1; transform: translateY(0)   scale(1); }
  72%     { opacity: 1; transform: translateY(0)   scale(1); }
  80%     { opacity: 0; transform: translateY(0)   scale(1); }
  100%    { opacity: 0; }
}

/* Beam pulse */
.forge__beam {
  transform-origin: 50% 110px;
  transform-box: view-box;
  opacity: 0.4;
  animation: forgeBeam 10s ease-in-out infinite;
}
@keyframes forgeBeam {
  0%, 100% { opacity: 0.15; transform: scaleX(0.4); }
  28%      { opacity: 0.55; transform: scaleX(1); }
  42%      { opacity: 0.95; transform: scaleX(1); }
  70%      { opacity: 0.55; transform: scaleX(1); }
  82%      { opacity: 0.2;  transform: scaleX(0.4); }
}

/* Central spark pulse */
.forge__spark {
  transform-origin: 400px 110px;
  transform-box: view-box;
  animation: forgeSpark 10s ease-in-out infinite;
  opacity: 0;
}
@keyframes forgeSpark {
  0%, 26%  { opacity: 0; transform: scale(0.4); }
  32%      { opacity: 1; transform: scale(2.6); }
  44%      { opacity: 0; transform: scale(0.4); }
  100%     { opacity: 0; }
}

/* Three brand pixels — orbit from the logo motif into the build */
.forge__pixel {
  transform-origin: center;
  transform-box: fill-box;
  animation-duration: 10s;
  animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
  animation-iteration-count: infinite;
  filter: drop-shadow(0 0 6px rgba(255, 107, 53, 0.8));
}
.forge__pixel--a { animation-name: forgePixelA; }
.forge__pixel--b { animation-name: forgePixelB; animation-delay: 0.15s; }
.forge__pixel--c { animation-name: forgePixelC; animation-delay: 0.3s; }

/* Pixel A: flies from above-left → into landing → across beam → phone → out */
@keyframes forgePixelA {
  0%   { transform: translate(60px, 20px)  scale(0); opacity: 0; }
  6%   { transform: translate(60px, 20px)  scale(1); opacity: 1; }
  20%  { transform: translate(200px, 110px) scale(1); opacity: 1; }
  30%  { transform: translate(380px, 110px) scale(1.4); opacity: 1; }
  44%  { transform: translate(600px, 110px) scale(1); opacity: 1; }
  60%  { transform: translate(600px, 60px)  scale(1); opacity: 0.8; }
  78%  { transform: translate(600px, 60px)  scale(0); opacity: 0; }
  100% { transform: translate(60px, 20px)   scale(0); opacity: 0; }
}
@keyframes forgePixelB {
  0%   { transform: translate(740px, 30px) scale(0); opacity: 0; }
  6%   { transform: translate(740px, 30px) scale(1); opacity: 1; }
  22%  { transform: translate(260px, 90px) scale(1); opacity: 1; }
  32%  { transform: translate(400px, 120px) scale(1.2); opacity: 1; }
  48%  { transform: translate(620px, 130px) scale(1); opacity: 1; }
  62%  { transform: translate(620px, 80px)  scale(0.8); opacity: 0.7; }
  78%  { transform: translate(620px, 80px)  scale(0); opacity: 0; }
  100% { transform: translate(740px, 30px)  scale(0); opacity: 0; }
}
@keyframes forgePixelC {
  0%   { transform: translate(400px, 0px)   scale(0); opacity: 0; }
  8%   { transform: translate(400px, 30px)  scale(1); opacity: 1; }
  20%  { transform: translate(240px, 140px) scale(1); opacity: 1; }
  34%  { transform: translate(400px, 110px) scale(1.6); opacity: 1; }
  50%  { transform: translate(580px, 90px)  scale(1); opacity: 1; }
  64%  { transform: translate(580px, 50px)  scale(0.8); opacity: 0.6; }
  78%  { transform: translate(580px, 50px)  scale(0); opacity: 0; }
  100% { transform: translate(400px, 0px)   scale(0); opacity: 0; }
}

/* Anchored to the section (not the content stack) so it never sits under the code line */
.cold__hint {
  position: absolute;
  bottom: max(20px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.55);
  animation: nudge 2.4s ease-in-out infinite;
}
@keyframes nudge {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 6px); }
}

/* -------- 5. REVEAL -------- */
.reveal {
  padding: clamp(80px, 14vh, 160px) var(--pad-x) clamp(80px, 14vh, 140px);
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: clamp(24px, 3vh, 40px);
}

.reveal:not(.reveal--center) {
  text-align: left;
  justify-items: start;
}

.reveal__logo {
  width: clamp(260px, 36vw, 440px);
  height: auto;
  margin: 0 0 clamp(8px, 2vh, 16px);
  justify-self: center;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(31, 31, 31, 0.08));
}

.reveal__headline {
  margin: 0;
  font-size: clamp(40px, 6.8vw + 8px, 108px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 16ch;
  text-wrap: balance;
  display: flex;
  flex-wrap: wrap;
  gap: 0.18em 0.28em;
}
.reveal__headline .w {
  display: inline-block;
  will-change: transform, opacity;
  transition: transform .7s var(--ease-out-expo), opacity .6s var(--ease-out-expo);
}
.reveal__headline .w--accent {
  color: var(--orange);
  position: relative;
}
.reveal__headline .w--accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0.02em;
  height: 0.08em;
  background: var(--orange);
  opacity: 0.18;
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease-out-expo) .3s;
}
.reveal__headline.is-split .w {
  opacity: 0;
  transform: translateY(36%);
}
.reveal__headline.is-split .w:nth-child(1) { transition-delay: 0ms; }
.reveal__headline.is-split .w:nth-child(2) { transition-delay: 80ms; }
.reveal__headline.is-split .w:nth-child(3) { transition-delay: 160ms; }
.reveal__headline.is-split .w:nth-child(4) { transition-delay: 220ms; }
.reveal__headline.is-split .w:nth-child(5) { transition-delay: 300ms; }
.reveal__headline.is-split.is-in .w {
  opacity: 1;
  transform: translateY(0);
}
.reveal__headline.is-split.is-in .w--accent::after {
  transform: scaleX(1);
}

.reveal__sub {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: var(--fs-lg);
  line-height: 1.45;
}
.reveal__tag {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.reveal.reveal--center {
  text-align: center;
  justify-items: stretch;
}

.reveal.reveal--center .reveal__headline {
  justify-self: center;
  justify-content: center;
  align-content: center;
  width: 100%;
  max-width: min(100%, 36ch);
  margin-inline: auto;
  text-align: center;
}

.reveal.reveal--center .reveal__headline .w--accent::after {
  transform-origin: center;
}

.reveal.reveal--center .reveal__sub {
  width: 100%;
  max-width: 48ch;
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}

.reveal.reveal--center .reveal__tag {
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

/* -------- 6. SECTION HEAD -------- */
.section-head {
  max-width: var(--maxw);
  margin: 0 auto clamp(36px, 6vh, 64px);
  padding: 0 var(--pad-x);
}
.section-head--center { text-align: center; }
.section-head--center .section-head__lede { margin-inline: auto; }

.lab .section-head--center .section-head__title {
  max-width: min(100%, 40ch);
}

.section-head__eyebrow {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}
.section-head__title {
  margin: 0 0 16px;
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 18ch;
}
.section-head--center .section-head__title { max-width: 22ch; margin-inline: auto; }
.section-head__lede {
  margin: 0;
  max-width: 52ch;
  color: var(--muted);
  font-size: var(--fs-lg);
}

/* -------- 7. LAB SECTION -------- */
.lab {
  padding: clamp(80px, 12vh, 140px) 0 clamp(60px, 10vh, 120px);
  background: linear-gradient(to bottom, var(--paper) 0%, var(--paper-2) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lab__stage {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  grid-template-areas: "search p1 landing p2 phone";
  align-items: center;
  gap: 24px;
}
.lab__node--search  { grid-area: search; }
.lab__node--landing { grid-area: landing; }
.lab__node--phone {
  grid-area: phone;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lab__path {
  width: 100%;
  height: 80px;
  color: var(--line-strong);
  pointer-events: none;
}
.lab__path:nth-of-type(1) { grid-area: p1; }
.lab__path:nth-of-type(2) { grid-area: p2; }
.lab__path path { stroke-dashoffset: 0; }

.lab__stage.is-playing .lab__path path {
  animation: dashmove 1.6s linear infinite;
}
@keyframes dashmove {
  to { stroke-dashoffset: -60; }
}

.lab__node-label {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  width: 100%;
}
.lab__node--phone .lab__node-label {
  margin-top: 14px;
  max-width: 24ch;
}

/* Node visual: Google search */
.lab__search {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px;
  box-shadow: var(--shadow-soft);
  transform-origin: 50% 100%;
  transition: transform .4s var(--ease);
}
.lab__node--search[data-active="true"] .lab__search {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--orange-line);
}
.lab__search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}
.lab__search-query { color: var(--ink); }
.lab__search-caret {
  display: inline-block;
  width: 1px; height: 14px;
  background: var(--ink);
  animation: caret 1.1s steps(2, end) infinite;
}
.lab__search-result {
  display: grid;
  gap: 4px;
  padding: 10px 0 2px;
}
.lab__search-url   { font-size: 12px; color: var(--muted); }
.lab__search-title { font-size: 15px; font-weight: 600; color: #1a0dab; }
.lab__search-meta  { font-size: 12px; color: var(--muted); }

/* Node visual: Landing frame */
.frame {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transform-origin: 50% 100%;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.lab__node--landing[data-active="true"] .frame {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lift), 0 0 0 1px var(--orange-line);
}
.frame__chrome {
  display: flex;
  gap: 6px;
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.frame__chrome span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.frame__chrome span:first-child { background: var(--orange); }
.frame__body {
  padding: 22px 20px 20px;
  display: grid;
  gap: 10px;
}
.frame__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}
.frame__title {
  margin: 0;
  font-size: clamp(18px, 1.8vw + 8px, 26px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.frame__copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(250,250,247,0.7);
  max-width: 36ch;
}
.frame__cta {
  align-self: start;
  margin-top: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 8px 24px -12px rgba(255, 107, 53, 0.6);
}
.frame__metrics {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(250,250,247,0.5);
}
.frame__metrics span {
  padding: 4px 8px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
}

/* Node visual: Phone */
.phone {
  width: min(220px, 100%);
  aspect-ratio: 9 / 18.5;
  background: var(--ink);
  border-radius: 32px;
  padding: 10px;
  position: relative;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    var(--shadow-soft);
  transform-origin: 50% 100%;
  transition: transform .5s var(--ease);
}
.lab__node--phone[data-active="true"] .phone {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.08),
    var(--shadow-lift);
}
.phone__notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 14px;
  border-radius: 10px;
  background: #000;
}
.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 22px;
  background: #f4f1ec;
  padding: 34px 12px 14px;
  color: var(--ink);
  display: grid;
  gap: 8px;
  align-content: start;
  overflow: hidden;
}
.phone__statusbar {
  position: absolute;
  top: 10px; left: 14px; right: 14px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink);
  opacity: 0.7;
  pointer-events: none;
}
.phone__toast {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px -10px rgba(0,0,0,0.2);
  font-size: 11px;
  line-height: 1.3;
  transform: translateY(-6px);
  opacity: 0;
  transition: transform .45s var(--ease), opacity .4s var(--ease);
}
.lab__node--phone[data-active="true"] .phone__toast {
  transform: translateY(0);
  opacity: 1;
}
.phone__toast strong { display: block; font-size: 12px; }
.phone__toast span { color: var(--muted); font-size: 10px; }
.phone__toast-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
  margin-top: 3px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.18);
}
.phone__tile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  box-shadow: 0 4px 10px -8px rgba(0,0,0,0.15);
}
.phone__tile--ghost {
  background: transparent;
  box-shadow: none;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
}
.phone__tile-icon { font-weight: 300; opacity: 0.5; font-size: 14px; }

.lab__controls {
  margin-top: clamp(32px, 6vh, 56px);
  padding: 0 var(--pad-x);
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn__icon { font-size: 10px; transform: translateY(-1px); }

/* Mobile stack */
@media (max-width: 900px) {
  .lab__stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "search"
      "p1"
      "landing"
      "p2"
      "phone";
    gap: 8px;
    justify-items: center;
  }
  .lab__path { height: 56px; transform: rotate(90deg); transform-origin: center; }
  .lab__node--phone {
    width: 100%;
    max-width: 420px;
  }
  .lab__node--search,
  .lab__node--landing {
    width: 100%;
    max-width: 420px;
  }
  /* Hide "Play the journey" whenever lab is stacked (tablet + mobile) */
  .lab__controls {
    display: none !important;
  }
  .frame__body {
    justify-items: center;
    text-align: center;
  }
  .frame__copy {
    text-align: center;
  }
  .frame__cta {
    align-self: center;
  }
  .frame__metrics {
    justify-content: center;
  }
}

/* -------- 8. BUILD (zig-zag) -------- */
.build {
  padding: clamp(100px, 16vh, 180px) 0 clamp(80px, 12vh, 140px);
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.build::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 40% at 10% 20%, rgba(255,107,53,0.08), transparent 70%),
    radial-gradient(ellipse 40% 40% at 90% 80%, rgba(255,107,53,0.06), transparent 70%);
}
.build .section-head__title,
.build .section-head__eyebrow { color: inherit; }
.build .section-head__eyebrow { color: var(--orange); }

.build__list {
  list-style: none;
  margin: 0;
  padding: 0 var(--pad-x);
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  gap: clamp(32px, 6vw, 72px);
  counter-reset: build;
  position: relative;
}

.build__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 28px;
  align-items: start;
  position: relative;
  padding: clamp(24px, 3vw, 36px) clamp(20px, 3vw, 36px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-l);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.build__item:hover {
  border-color: var(--orange-line);
  transform: translateY(-2px);
}

/* zig-zag offset */
.build__item--a { justify-self: start;  max-width: 78%; }
.build__item--b { justify-self: end;    max-width: 78%; }

@media (max-width: 820px) {
  .build__item,
  .build__item--a,
  .build__item--b {
    justify-self: stretch;
    max-width: none;
    margin-left: 0;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .build__n {
    grid-row: auto;
    padding-top: 0;
  }
  .build__tech,
  .build__detail {
    margin-inline: auto;
  }
}

.build__n {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--orange);
  padding-top: 4px;
  grid-row: span 3;
}

.build__title {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.build__tech {
  margin: 0;
  color: rgba(250,250,247,0.72);
  max-width: 56ch;
}
.build__detail {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(250,250,247,0.48);
  padding-top: 10px;
  border-top: 1px dashed rgba(255,255,255,0.1);
  max-width: 56ch;
}

/* -------- 9. PROCESS (kitchen tickets) -------- */
.process {
  padding: clamp(90px, 14vh, 160px) 0 clamp(80px, 12vh, 140px);
  background: var(--paper-2);
  position: relative;
}

.process__rail {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
@media (max-width: 820px) {
  .process__rail { grid-template-columns: 1fr; }
}

.ticket {
  --tilt: -1.5deg;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px 22px 28px;
  position: relative;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 18px 36px -28px rgba(0,0,0,0.25);
  transform: rotate(var(--tilt));
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  /* torn-top edge */
  -webkit-mask-image:
    radial-gradient(circle 4px at 8px 0, transparent 98%, #000 100%) 0 0 / 16px 8px repeat-x,
    linear-gradient(#000, #000);
          mask-image:
    radial-gradient(circle 4px at 8px 0, transparent 98%, #000 100%) 0 0 / 16px 8px repeat-x,
    linear-gradient(#000, #000);
  -webkit-mask-position: 0 0, 0 8px;
          mask-position: 0 0, 0 8px;
  -webkit-mask-size: 16px 8px, 100% calc(100% - 8px);
          mask-size: 16px 8px, 100% calc(100% - 8px);
  -webkit-mask-repeat: repeat-x, no-repeat;
          mask-repeat: repeat-x, no-repeat;
  padding-top: 32px;
}
.ticket:nth-child(2) { --tilt: 1deg; }
.ticket:nth-child(3) { --tilt: -0.5deg; transform: rotate(var(--tilt)) translateY(6px); }

.ticket:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow:
    0 1px 0 rgba(0,0,0,0.04),
    0 30px 60px -30px rgba(0,0,0,0.35);
}

.ticket--accent { background: #fffbf6; }

.ticket__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line-strong);
}
.ticket__stamp {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--orange);
  border: 1px solid var(--orange-line);
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--orange-dim);
  transform: rotate(-2deg);
}
.ticket--accent .ticket__stamp {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.ticket__id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.ticket__title {
  margin: 0 0 14px;
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.ticket__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}
.ticket__list li {
  position: relative;
  padding-left: 18px;
}
.ticket__list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--orange);
}

/* -------- 10. EUROPE -------- */
.europe {
  padding: clamp(100px, 14vh, 160px) 0 clamp(90px, 12vh, 140px);
  background: var(--paper);
}
.europe__map {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  color: var(--ink);
}
.europe__grid line {
  stroke: var(--ink);
  stroke-opacity: 0.05;
  stroke-width: 1;
}
.europe__lines path {
  stroke: var(--orange);
  stroke-width: 0.8;
  stroke-dasharray: 2 3;
  fill: none;
  opacity: 0.55;
}
.europe__dot {
  fill: var(--ink);
  opacity: 0.7;
  transition: fill .3s var(--ease), opacity .3s var(--ease);
}
.europe__dot:hover { fill: var(--orange); opacity: 1; }

.europe__meta {
  list-style: none;
  padding: 32px var(--pad-x) 0;
  margin: 0 auto;
  max-width: var(--maxw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px) {
  .europe__meta { grid-template-columns: 1fr; }
}

/* -------- 11. CTA -------- */
#contact-form {
  scroll-margin-top: max(88px, calc(env(safe-area-inset-top, 0px) + 72px));
}
.cta {
  padding: clamp(140px, 22vh, 240px) var(--pad-x) clamp(140px, 22vh, 240px);
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 60% at 50% 60%, rgba(255,107,53,0.12), transparent 70%);
}
.cta__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 28px;
  justify-items: center;
}
.cta__title {
  margin: 0;
  font-size: clamp(40px, 7vw + 10px, 104px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.cta__sub {
  margin: 0;
  color: rgba(250,250,247,0.6);
  font-size: var(--fs-lg);
  max-width: 40ch;
}
.cta__email {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(250,250,247,0.55);
}
.cta__email a {
  color: rgba(250,250,247,0.9);
  border-bottom: 1px dashed rgba(250,250,247,0.4);
  padding-bottom: 1px;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.cta__email a:hover {
  color: var(--orange);
  border-color: var(--orange);
}

/* Contact: high-contrast action bar + form card */
.cta__actions {
  width: 100%;
  max-width: 720px;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.cta__actions-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.45);
}
.cta__actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: stretch;
}
.cta__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease);
  border: 2px solid transparent;
  min-height: 52px;
  box-sizing: border-box;
}
.cta__pill--primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 18px 40px -16px rgba(255, 107, 53, 0.75);
}
.cta__pill--primary:hover {
  transform: translateY(-2px);
  background: var(--orange-soft);
  border-color: var(--orange-soft);
}
.cta__pill--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  border-color: rgba(250, 250, 247, 0.35);
}
.cta__pill--ghost:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.cta__pill:active {
  transform: translateY(0);
}

.cta__form {
  width: 100%;
  max-width: 560px;
  margin-top: 8px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-l);
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--orange);
  box-shadow:
    0 0 0 1px rgba(31, 31, 31, 0.06),
    0 32px 80px -28px rgba(0, 0, 0, 0.55);
  display: grid;
  gap: 22px;
  text-align: left;
}
.cta__form-title {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cta__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.cta__field {
  display: grid;
  gap: 8px;
  margin: 0;
}
.cta__field--full {
  grid-column: 1 / -1;
}
.cta__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.cta__input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  border: 2px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font: 500 var(--fs-md) var(--serif);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.cta__input::placeholder {
  color: rgba(31, 31, 31, 0.38);
}
.cta__input:hover {
  border-color: rgba(31, 31, 31, 0.42);
}
.cta__input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-dim);
}
.cta__input[aria-invalid="true"] {
  border-color: #b42318;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12);
}
.cta__input[aria-invalid="true"]:focus {
  border-color: #b42318;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.22);
}
.cta__input--area {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.cta__form-footer {
  display: grid;
  gap: 12px;
  justify-items: stretch;
}
.cta__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 24px;
  border-radius: 999px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-size: clamp(16px, 1.2vw + 11px, 19px);
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.45);
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .25s var(--ease);
}
.cta__submit:hover {
  transform: translateY(-2px);
  background: var(--black);
  box-shadow: 0 28px 60px -22px rgba(0, 0, 0, 0.55);
}
.cta__submit:active {
  transform: translateY(0);
}

/* Success confirmation — high-visibility card */
.cta__success-panel {
  width: 100%;
  margin-top: 4px;
  overflow: hidden;
  border-radius: var(--radius-m);
  border: 2px solid var(--orange);
  background: linear-gradient(
    145deg,
    color-mix(in oklab, var(--orange) 12%, #fff) 0%,
    #fff 45%,
    color-mix(in oklab, var(--paper-2) 85%, #fff) 100%
  );
  box-shadow:
    0 0 0 1px rgba(255, 107, 53, 0.15),
    0 20px 48px -24px rgba(255, 107, 53, 0.35),
    0 12px 32px -20px rgba(31, 31, 31, 0.12);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition:
    opacity 0.45s var(--ease-out-expo),
    transform 0.45s var(--ease-out-expo);
}
.cta__success-panel:not([hidden]) {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cta__success-panel-inner {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: clamp(22px, 4vw, 32px) clamp(18px, 3vw, 28px);
}
.cta__success-ring {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 28%,
    color-mix(in oklab, var(--orange-soft) 90%, #fff),
    var(--orange)
  );
  color: #fff;
  box-shadow:
    0 0 0 4px color-mix(in oklab, var(--orange) 22%, transparent),
    0 12px 28px -8px rgba(255, 107, 53, 0.55);
  animation: successRingPop 0.65s var(--ease-out-expo) both;
}
.cta__success-check {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}
.cta__success-check-path {
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: successDrawCheck 0.55s ease-out 0.2s forwards;
}
@keyframes successRingPop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  55% {
    transform: scale(1.06);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes successDrawCheck {
  to {
    stroke-dashoffset: 0;
  }
}
.cta__success-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw + 0.6rem, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
}
.cta__success-text {
  margin: 0;
  max-width: 38ch;
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--muted);
}

.cta__form-status {
  margin: 0;
  min-height: 1.35em;
  font-size: var(--fs-sm);
  line-height: 1.4;
  text-align: center;
}
.cta__form-status--err {
  color: #b42318;
  font-weight: 500;
  padding: 12px 14px;
  border-radius: var(--radius-s);
  background: rgba(180, 35, 24, 0.08);
  border: 1px solid rgba(180, 35, 24, 0.22);
}
.cta__submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}
.cta__copy-status {
  margin: 0;
  min-height: 1.2em;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--orange);
  text-align: center;
}

@media (max-width: 560px) {
  .cta__fields {
    grid-template-columns: 1fr;
  }
  .cta__pill {
    flex: 1 1 100%;
    min-width: min(100%, 280px);
  }
}

/* -------- 12. FOOTER -------- */
.foot {
  padding: clamp(40px, 6vw, 56px) var(--pad-x) clamp(28px, 4vw, 40px);
  background: var(--ink);
  color: rgba(250, 250, 247, 0.55);
  font-size: var(--fs-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.foot__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 48px);
  align-items: start;
}
.foot__col--brand {
  display: grid;
  gap: 14px;
  max-width: 36ch;
}
.foot__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: -0.01em;
  color: var(--paper);
  width: fit-content;
  transition: color .2s var(--ease);
}
.foot__brand:hover {
  color: var(--orange);
}
.foot__mark {
  width: auto;
  height: 40px;
  max-width: 48px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}
.foot__name { font-feature-settings: "ss01"; }
.foot__tag {
  margin: 0;
  line-height: 1.5;
  color: rgba(250, 250, 247, 0.45);
  font-size: var(--fs-sm);
}
.foot__col--contact,
.foot__col--nav {
  display: grid;
  gap: 10px;
}
.foot__label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(250, 250, 247, 0.38);
}
.foot__link--email {
  color: var(--paper);
  font-weight: 600;
  border-bottom: 1px dashed rgba(250, 250, 247, 0.35);
  padding-bottom: 2px;
  width: fit-content;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.foot__link--email:hover {
  color: var(--orange);
  border-color: var(--orange);
}
.foot__note {
  margin: 0;
  font-size: var(--fs-xs);
  line-height: 1.45;
  color: rgba(250, 250, 247, 0.4);
  max-width: 32ch;
}
.foot__links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.foot__links a {
  color: rgba(250, 250, 247, 0.72);
  font-size: var(--fs-sm);
  transition: color .2s var(--ease);
}
.foot__links a:hover {
  color: var(--orange);
}
.foot__bottom {
  max-width: var(--maxw);
  margin: clamp(28px, 4vw, 40px) auto 0;
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(250, 250, 247, 0.35);
  text-align: center;
}
.foot__copy { color: rgba(250, 250, 247, 0.45); }
.foot__sep { opacity: 0.45; }

@media (max-width: 820px) {
  .foot__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .foot__col--brand {
    max-width: none;
    justify-items: center;
  }
  .foot__brand {
    justify-content: center;
  }
  .foot__tag {
    max-width: 42ch;
    margin-inline: auto;
  }
  .foot__col--contact,
  .foot__col--nav {
    justify-items: center;
  }
  .foot__note {
    max-width: 40ch;
    margin-inline: auto;
  }
  .foot__links {
    justify-items: center;
  }
}

/* -------- 13. REDUCED MOTION -------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .cold__caret,
  .cold__hint,
  .lab__search-caret { animation: none !important; }
  .reveal__headline.is-split .w { opacity: 1 !important; transform: none !important; }
  .reveal__headline.is-split .w--accent::after { transform: scaleX(1) !important; }

  /* Spotlight reveal: disable entirely — keep the Cold open calm */
  .cold__reveal { display: none !important; }

  /* Forge: freeze in a legible end-state */
  .forge__frame { stroke-dashoffset: 0 !important; opacity: 1 !important; }
  .forge__block,
  .forge__tile,
  .forge__toast { opacity: 1 !important; transform: none !important; }
  .forge__beam  { opacity: 0.4 !important; transform: none !important; }
  .forge__pixel { opacity: 0 !important; }
  .forge__spark { opacity: 0 !important; }

  .cta__success-ring {
    animation: none !important;
    transform: none !important;
  }
  .cta__success-check-path {
    stroke-dashoffset: 0 !important;
  }
}

/* -------- 14. PRINT (not a real product, but clean) -------- */
@media print {
  .topbar, .cold__hint, .lab__controls { display: none; }
  body { background: #fff; color: #000; }
}
