/* ==========================================================================
   RFC Studio — v2 (editorial / outline type, inspired by agency layouts)
   ========================================================================== */

:root {
  --ink: #f2f1ee;             /* main text */
  --ink-2: #b4b3b0;
  --ink-3: #85847f;
  --paper: #0d0d0f;           /* page background */
  --paper-2: #141417;         /* alternate section background */
  --line: #2a2a2e;
  --chip: #26262b;            /* circle-button disc */
  --accent: #3d68ff;          /* swap for brand colour */
  --accent-ink: #ffffff;
  --dark: #060607;            /* banners, menu, footer */
  --on-dark: #ffffff;
  color-scheme: dark;

  --font-display: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;

  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --rail: 72px;
  --section: clamp(80px, 10vw, 150px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 1100px) {
  .wrap { padding-left: calc(var(--gutter) + var(--rail) * 0.5); }
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Icons ---------- */
.ne { width: 1em; height: 1em; color: var(--accent); flex: none; }
.go { display: inline-block; width: 34px; height: 22px; color: var(--accent); vertical-align: middle; margin-left: 6px; transition: transform .35s var(--ease); }
.num-item:hover .go { transform: translateX(8px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 96px;
  padding: 0 var(--gutter);
  background: var(--paper);
  transition: height .35s var(--ease), box-shadow .35s var(--ease), transform .45s var(--ease);
}
.site-header.is-scrolled { height: 76px; box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.menu-open { background: var(--dark); box-shadow: none; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
  clip-path: polygon(25% 0, 100% 0, 100% 75%, 75% 100%, 0 100%, 0 25%);
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-word {
  font-family: var(--font-display); font-weight: 800; font-size: 34px;
  line-height: .9; letter-spacing: -0.03em;
  display: flex; flex-direction: column;
}
.logo-word small {
  font-family: var(--font-body); font-size: 8.5px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
  margin-top: 4px;
}

.header-actions { display: flex; align-items: center; gap: 28px; }
.lang-toggle {
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  padding: 8px 0; border-bottom: 1px solid transparent;
}
.lang-toggle:hover { border-color: var(--ink); }

.burger { width: 40px; height: 32px; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 3px 0; }
.burger span { display: block; height: 3px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(2) { width: 100%; }
.burger[aria-expanded="true"] span { background: var(--on-dark); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(11.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11.5px) rotate(-45deg); }

/* ---------- Fullscreen menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: center;
  padding: 120px var(--gutter) 48px;
  color: var(--on-dark);
  background: var(--dark);
  clip-path: circle(0 at calc(100% - var(--gutter) - 20px) 48px);
  transition: clip-path .7s var(--ease);
}
.menu[hidden] { display: flex; visibility: hidden; }
.menu.is-open { clip-path: circle(150% at calc(100% - var(--gutter) - 20px) 48px); visibility: visible; }
.menu-nav { position: relative; display: flex; flex-direction: column; max-width: var(--wrap); margin: 0 auto; width: 100%; border-top: 1px solid var(--line); }
.menu-nav a {
  display: flex; align-items: center; gap: 28px;
  padding: clamp(10px, 1.6vw, 18px) 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(40px, 7.5vw, 96px); line-height: 1; letter-spacing: -0.02em;
}
.menu-nav a span { font-size: 14px; font-weight: 500; color: var(--ink-3); letter-spacing: .12em; min-width: 2ch; transition: color .3s; }
.menu-nav a b { font-weight: inherit; color: var(--dark); -webkit-text-stroke: 3px var(--on-dark); paint-order: stroke fill; transition: color .3s, transform .45s var(--ease); }
.menu-nav a .ne { width: .6em; height: .6em; margin-left: auto; opacity: 0; transform: translate(-24px, 24px); transition: opacity .3s, transform .45s var(--ease); }
.menu-nav a:hover b, .menu-nav a:focus-visible b { color: var(--on-dark); transform: translateX(12px); }
.menu-nav a:hover span, .menu-nav a:focus-visible span { color: var(--accent); }
.menu-nav a:hover .ne, .menu-nav a:focus-visible .ne { opacity: 1; transform: none; }
.menu-foot { position: relative; max-width: var(--wrap); margin: 48px auto 0; width: 100%; display: flex; gap: 32px; flex-wrap: wrap; font-size: 14px; opacity: .7; }

/* ---------- Side rail ---------- */
.rail {
  position: fixed; left: 0; top: 50%; z-index: 50;
  width: var(--rail);
  display: none; flex-direction: column; align-items: center; gap: 44px;
  transform: translateY(-50%);
}
.rail { color: #fff; mix-blend-mode: difference; } /* stays legible over light and dark sections */
.rail a {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  transition: color .25s;
}
.rail a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 1100px) { .rail { display: flex; } }

/* ---------- Mega type ---------- */
.mega {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(32px, 8.4vw, 118px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.mega--sm { font-size: clamp(38px, 6.2vw, 88px); }
.mega-line { display: flex; align-items: center; gap: .18em; }
.mega-line .ne { width: .78em; height: .78em; }
.outline, .outline span {
  font-weight: 400;
  /* Filled with the backdrop colour and stroked underneath (paint-order),
     which hides the overlapping inner contours of the variable font. */
  color: var(--fill, var(--paper-2));
  -webkit-text-stroke: 3px var(--ink);
  paint-order: stroke fill;
}
@media (max-width: 640px) { .outline, .outline span { -webkit-text-stroke-width: 2px; } }
.offer { --fill: var(--paper); }

/* Line-by-line reveal of mega headings */
.mega .mega-line { opacity: 0; transform: translateY(40%); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.mega.is-in .mega-line { opacity: 1; transform: none; }
.mega.is-in .mega-line:nth-child(2) { transition-delay: .1s; }
.mega.is-in .mega-line:nth-child(3) { transition-delay: .2s; }
.mega.is-in .mega-line:nth-child(4) { transition-delay: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 150px 0 80px;
  display: flex; align-items: center;
  background: var(--paper-2);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url(../assets/ripples.svg) center / cover no-repeat;
  opacity: .2;
  mask-image: linear-gradient(100deg, transparent 5%, #000 55%);
  -webkit-mask-image: linear-gradient(100deg, transparent 5%, #000 55%);
  pointer-events: none;
}
.hero-bg--soft { opacity: .12; }
.hero-inner { position: relative; }

.hero-foot {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 420px) auto;
  gap: 40px 80px; align-items: center;
}
.hero-sub { font-size: 15px; color: var(--ink-2); }
@media (max-width: 760px) { .hero-foot { grid-template-columns: 1fr; } }

/* ---------- Build scene ----------
   A computer that assembles itself from flying pieces as you scroll (from
   v1). On large screens the stage is pinned (sticky) while the section's
   extra height scrolls past; on small screens it plays out in normal flow.
   Each [data-piece] reads its fly offset from data-fly-x/-y/-rot; JS only
   writes --progress (0 → 1) per piece, all the motion math lives here. */
.build { position: relative; background: var(--paper); }
.build-stage { padding: var(--section) 0; overflow: clip; }
@media (min-width: 900px) and (min-height: 640px) {
  .build { height: 180vh; }
  .build-stage {
    position: sticky; top: 0;
    height: 100vh; height: 100svh;
    padding: 0;
    display: flex; align-items: center;
  }
}
.build-inner {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
@media (max-width: 899px) { .build-inner { grid-template-columns: 1fr; } }
.build-copy .sec-title { margin: 18px 0 16px; }
.build-sub { color: var(--ink-2); max-width: 40ch; }

.build-steps { list-style: none; padding: 0; margin: 32px 0 0; max-width: 360px; }
.build-steps li {
  display: flex; align-items: baseline; gap: 16px;
  padding: 10px 0; border-top: 1px solid var(--line);
  color: var(--ink-3); transition: color .4s;
}
.build-steps li:last-child { border-bottom: 1px solid var(--line); }
.build-steps span { font-size: 12px; font-weight: 800; letter-spacing: .2em; transition: color .4s; }
.build-steps b { font-family: var(--font-display); font-weight: 600; font-size: 19px; }
.build-steps li.is-on { color: var(--ink); }
.build-steps li.is-on span { color: var(--accent); }

.build-meter {
  margin-top: 24px;
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(48px, 6vw, 84px); font-variant-numeric: tabular-nums;
  color: var(--paper); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill;
}

.build-scene { position: relative; width: 100%; max-width: 640px; justify-self: end; padding-bottom: 4%; }
@media (max-width: 899px) { .build-scene { justify-self: center; width: 84%; } }
.build-glow {
  position: absolute; inset: -18% -10%;
  background: radial-gradient(closest-side, rgba(61, 104, 255, .32), transparent);
  filter: blur(24px);
  opacity: var(--glow, 0);
  pointer-events: none;
}
.device { position: relative; }

[data-piece] {
  --progress: 0;
  opacity: var(--progress);
  transform:
    translateX(calc(var(--fly-x, 0px) * (1 - var(--progress))))
    translateY(calc(var(--fly-y, 0px) * (1 - var(--progress))))
    rotate(calc(var(--fly-rot, 0deg) * (1 - var(--progress))));
}

.screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  border: clamp(6px, .8vw, 10px) solid #050506;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line), 0 50px 100px -30px rgba(0, 0, 0, .8);
  overflow: hidden;
}
.screen > * { position: absolute; }
.device-base {
  position: relative;
  width: 118%; margin-left: -9%;
  height: clamp(10px, 1.3vw, 16px);
  background: linear-gradient(#2e2e33, #17171a);
  border-radius: 2px 2px 16px 16px;
  box-shadow: 0 0 0 1px var(--line);
}
.device-base::before {
  content: ""; position: absolute; left: 50%; top: 0;
  width: 14%; height: 45%; transform: translateX(-50%);
  background: #0f0f12; border-radius: 0 0 8px 8px;
}

.scene-chrome {
  top: 0; left: 0; right: 0; height: 11%;
  display: flex; align-items: center; gap: 6px; padding-inline: 3%;
  background: #0f0f12; border-bottom: 1px solid var(--line);
}
.scene-chrome > span { width: 7px; height: 7px; border-radius: 50%; background: var(--line); flex: none; }
.scene-chrome > span:first-child { background: var(--accent); }
.scene-url {
  display: flex; align-items: center; gap: 8px;
  margin-left: 4%; width: 46%; height: 58%; padding: 0 10px;
  border-radius: 999px; background: var(--chip);
  font: 600 clamp(8px, .75vw, 11px) / 1 var(--font-body); font-style: normal;
  color: var(--ink-3); white-space: nowrap; overflow: hidden;
}
.scene-live {
  width: 6px; height: 6px; margin-left: auto; flex: none;
  border-radius: 50%; background: var(--ink-3); transition: background .4s;
}
.build-scene.is-live .scene-live { background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .2); }

.scene-nav { top: 17%; left: 6%; right: 6%; height: 5%; display: flex; align-items: center; gap: 3%; }
.scene-nav b { width: 12%; height: 100%; border-radius: 3px; background: var(--ink); margin-right: auto; }
.scene-nav i { width: 8%; height: 45%; border-radius: 3px; background: var(--ink-3); }
.scene-line { left: 6%; height: 6%; border-radius: 4px; }
.scene-line--1 { top: 30%; width: 44%; background: var(--ink-2); }
.scene-line--2 { top: 39%; width: 30%; background: var(--ink-3); }
.scene-image {
  top: 29%; right: 6%; width: 38%; height: 30%;
  border-radius: 6px;
  background:
    radial-gradient(circle at 70% 35%, rgba(255, 255, 255, .18) 0 12%, transparent 13%),
    linear-gradient(135deg, var(--accent), #1b2a66 70%, var(--paper-2));
}
.scene-btn {
  top: 51%; left: 6%; width: 17%; height: 7%;
  border-radius: 999px; background: var(--accent);
}
.build-scene.is-live .scene-btn { animation: scene-pulse 2.4s var(--ease) infinite; }
@keyframes scene-pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 104, 255, .55); }
  70%, 100% { box-shadow: 0 0 0 12px rgba(61, 104, 255, 0); }
}
.scene-card {
  top: 67%; bottom: 7%; width: 27%;
  border-radius: 6px; background: var(--chip); border: 1px solid var(--line);
}
.scene-card--1 { left: 6%; }
.scene-card--2 { left: 36.5%; }
.scene-card--3 { right: 6%; }

/* ---------- Circle button ---------- */
.circle-btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center;
  min-height: 72px; padding: 0 12px 0 36px;
  font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink);
  justify-self: start;
}
.circle-btn::before {
  content: ""; position: absolute; z-index: -1;
  left: 0; top: 50%; width: 72px; height: 72px; border-radius: 999px;
  transform: translateY(-50%);
  background: var(--chip);
  transition: width .55s var(--ease), background .35s;
}
.circle-btn:hover::before { width: calc(100% + 28px); background: var(--accent); }
.circle-btn:hover { color: var(--accent-ink); transition: color .2s .15s; }
.circle-btn--center { align-self: center; justify-self: center; }
.circle-btn--dark { color: var(--on-dark); }

/* ---------- Sections ---------- */
.section .wrap, .offer .wrap { position: relative; z-index: 1; }
.section { position: relative; padding: var(--section) 0; overflow: hidden; }
.section--tight { padding-top: clamp(64px, 7vw, 100px); }
.label {
  font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink);
}
.sec-head {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 18px; margin-bottom: clamp(48px, 6vw, 80px);
}
.sec-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 4vw, 52px); line-height: 1.1; letter-spacing: -0.02em;
  max-width: 18ch;
}

/* Numbered grid */
.num-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 64px) clamp(32px, 5vw, 72px);
}
.num-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .num-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .num-grid { grid-template-columns: 1fr; } }
.num-item .num {
  display: block;
  font-family: var(--font-display); font-weight: 300;
  font-size: 34px; line-height: 1; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  transition: color .3s;
}
.num-item:hover .num { color: var(--accent); }
.num-item h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 22px; line-height: 1.3; margin-bottom: 10px;
}
.num-item p { font-size: 14.5px; color: var(--ink-2); line-height: 1.95; }

/* Diagonal stripe decoration */
.stripes {
  position: absolute; width: 240px; height: 520px; pointer-events: none;
  background: repeating-linear-gradient(135deg, transparent 0 16px, var(--line) 16px 17.5px);
  opacity: .9;
}
.stripes--right { right: 0; top: 0; height: 360px; }
.stripes--left { left: 0; top: 10%; background: repeating-linear-gradient(170deg, transparent 0 16px, var(--line) 16px 17.5px); width: 64px; top: 30%; height: 420px; }
@media (max-width: 900px) { .stripes { display: none; } }

/* ---------- Banners ---------- */
.banner {
  position: relative; overflow: hidden;
  background: var(--dark); color: var(--on-dark);
  padding: clamp(90px, 11vw, 160px) 0;
  text-align: center;
}
.banner-bg {
  position: absolute; inset: -10% 0;
  background: url(../assets/mesh.svg) center / cover no-repeat;
  opacity: .8;
  will-change: transform;
}
.banner::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(12,12,13,.55), rgba(12,12,13,.2) 70%);
}
.banner-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.banner-label { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 2vw, 26px); letter-spacing: .02em; text-transform: uppercase; }
.banner-big {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(56px, 10vw, 150px); line-height: .95; letter-spacing: -0.02em;
  margin-top: 6px;
}
.banner-sub { margin-top: 24px; font-size: 17px; opacity: .85; }

.sector-list { list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sector-list li {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(24px, 3.2vw, 40px); line-height: 1.35;
}
@media (max-width: 640px) { .sector-list li { font-weight: 400; font-size: 22px; } }
.sector-list .ne { width: .8em; height: .8em; transition: transform .35s var(--ease); }
.sector-list li:hover .ne { transform: translate(4px, -4px); }

/* ---------- Offer ---------- */
.offer { position: relative; padding: var(--section) 0; background: var(--paper); overflow: hidden; }
.offer-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px 80px; align-items: start; }
.offer-big {
  display: flex; flex-direction: column; margin-top: 18px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(44px, 7vw, 100px); line-height: 1; letter-spacing: -0.025em;
}
.offer-big .outline { display: flex; align-items: center; gap: .15em; }
.offer-big .ne { width: .75em; height: .75em; }
.offer-body h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.2; margin-bottom: 14px; }
.offer-body > p { color: var(--ink-2); margin-bottom: 28px; }
.arrow-list { list-style: none; padding: 0; margin: 0 0 36px; border-top: 1px solid var(--line); }
.arrow-list li { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.arrow-list .ne { width: 18px; height: 18px; }
@media (max-width: 900px) { .offer-inner { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { position: relative; padding: var(--section) 0; background: var(--paper-2); overflow: hidden; }
.contact-inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px 80px; align-items: start; }
.contact-head .label { margin-bottom: 20px; }
.contact-sub { margin-top: 32px; max-width: 40ch; color: var(--ink-2); }
.direct { margin-top: 28px; display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.direct a { border-bottom: 1px solid var(--ink); align-self: flex-start; }
.direct a:hover { color: var(--accent); border-color: var(--accent); }

.contact-form { display: flex; flex-direction: column; gap: 26px; background: var(--paper); border: 1px solid var(--line); padding: clamp(28px, 4vw, 48px); }
.contact-form label { display: flex; flex-direction: column; gap: 4px; }
.contact-form label > span { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 10px 0; border-radius: 0; outline: none;
  transition: border-color .25s;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--accent); }
.form-note { font-size: 13px; color: var(--ink-3); }
.form-note.is-success { color: var(--accent); font-weight: 700; }
.form-note.is-error { color: #d93025; font-weight: 700; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--ink-2); border-top: 1px solid var(--line); padding: clamp(72px, 8vw, 110px) 0 32px; font-size: 14px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 56px; border-bottom: 1px solid var(--line); }
.footer-big { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(32px, 5vw, 68px); line-height: 1; letter-spacing: -0.02em; color: var(--dark); -webkit-text-stroke: 2px var(--on-dark); paint-order: stroke fill; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 48px var(--gutter); }
@media (min-width: 1100px) { .footer-grid { padding-left: calc(var(--gutter) + var(--rail) * .5); } }
.footer-grid > * { display: flex; flex-direction: column; gap: 6px; }
.footer-grid a:hover { color: var(--on-dark); }
.footer-h { color: var(--on-dark); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 8px; }
.footer-bottom { font-size: 12px; opacity: .6; }
@media (max-width: 680px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- To-top ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 52px; height: 52px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--paper); border: 1px solid var(--ink);
  font-size: 18px;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease), background .25s, color .25s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .mega .mega-line { opacity: 1 !important; transform: none !important; transition: none !important; }
  .menu { transition: none; }
  .build { height: auto !important; }
  .build-stage { position: static !important; height: auto !important; padding: var(--section) 0 !important; }
  .build-scene.is-live .scene-btn { animation: none; }
}

/* ---------- Legal pages ---------- */
.legal-page { padding: 170px 0 var(--section); background: var(--paper); }
.legal-back { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 48px; }
.legal-back:hover { color: var(--accent); }
.legal-header { max-width: 820px; margin-bottom: 64px; }
.legal-header h1 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: clamp(40px, 6vw, 80px); line-height: 1; letter-spacing: -0.025em; margin-bottom: 24px; }
.legal-updated { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 20px; }
.legal-intro { font-size: 18px; color: var(--ink-2); }
.legal-content { max-width: 820px; counter-reset: legal; }
.legal-content section { padding: 28px 0; border-top: 1px solid var(--line); counter-increment: legal; }
.legal-content h2 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin-bottom: 10px; display: flex; gap: 18px; }
.legal-content h2::before { content: counter(legal, decimal-leading-zero); color: var(--accent); font-weight: 300; }
.legal-content p, .legal-content li { color: var(--ink-2); font-size: 15px; }
.legal-content ul { padding-left: 20px; }
.legal-disclaimer { max-width: 820px; margin-top: 48px; padding: 20px 24px; background: var(--paper-2); font-size: 13px; color: var(--ink-3); }
