/* ==========================================================
   Ludenic — shared styles
   Brand: ink #111114 · paper #F4F2EC · orange #FF4A1C
   Motif: waves (real life / film) meet pixels (digital)
   Look: dark glass over slow-moving light, fluid motion
   ========================================================== */

:root {
  --ink: #111114;
  --ink-2: #18181d;
  --ink-3: #222229;
  --paper: #f4f2ec;
  --paper-2: #e9e6dd;
  --orange: #ff4a1c;
  --orange-soft: rgba(255, 74, 28, 0.12);
  --love: #eaa3b8;
  --text: #f4f2ec;
  --text-dim: #a3a3ad;
  --text-mute: #6e6e78;
  --line: rgba(244, 242, 236, 0.1);
  --line-strong: rgba(244, 242, 236, 0.2);

  /* glass */
  --glass: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
  --glass-flat: rgba(22, 22, 27, 0.62);
  --glass-border: rgba(255, 255, 255, 0.09);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --glass-blur: blur(18px) saturate(150%);

  --font: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

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

/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain over everything, very faint */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.05; letter-spacing: -0.02em; }

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

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Ambient light (sits behind everything) ---------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.ambient i {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  will-change: transform;
}
.ambient i:nth-child(1) {
  background: radial-gradient(circle, var(--orange), transparent 65%);
  top: -25vmax;
  left: -15vmax;
  animation: drift-a 26s ease-in-out infinite alternate;
}
.ambient i:nth-child(2) {
  background: radial-gradient(circle, var(--love), transparent 65%);
  top: 30vh;
  right: -25vmax;
  opacity: 0.12;
  animation: drift-b 32s ease-in-out infinite alternate;
}
.ambient i:nth-child(3) {
  background: radial-gradient(circle, #ff9a3c, transparent 65%);
  bottom: -30vmax;
  left: 20vw;
  opacity: 0.14;
  animation: drift-c 28s ease-in-out infinite alternate;
}
@keyframes drift-a { to { transform: translate(18vw, 22vh) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-22vw, -18vh) scale(0.9); } }
@keyframes drift-c { to { transform: translate(-14vw, -26vh) scale(1.1); } }

/* ---------- Scroll progress, cursor ---------- */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 80;
  background: linear-gradient(90deg, var(--orange), #ff9a3c, var(--love));
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

.cursor,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform;
}
.cursor { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--orange); }
.cursor-ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(244, 242, 236, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    width 0.45s var(--ease-out), height 0.45s var(--ease-out), margin 0.45s var(--ease-out),
    background 0.3s, border-color 0.3s, opacity 0.3s;
}
.cursor-ring span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.25s;
}
.cursor-ring.is-hover {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(244, 242, 236, 0.08);
  border-color: rgba(244, 242, 236, 0.5);
  backdrop-filter: blur(3px);
}
.cursor-ring.has-label {
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  background: var(--paper);
  border-color: var(--paper);
}
.cursor-ring.has-label span { opacity: 1; }
.cursor-ring.is-down { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.cursor-hidden .cursor,
.cursor-hidden .cursor-ring { opacity: 0; }
html.has-cursor,
html.has-cursor a,
html.has-cursor button { cursor: none; }

/* ---------- First-visit intro ---------- */

html.intro::after {
  /* covers the page until the intro element is built */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--ink);
}
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: transform 1.1s var(--ease-out), border-radius 1.1s var(--ease-out);
}
.loader img {
  width: min(240px, 60vw);
  height: auto;
  clip-path: inset(0 100% 0 0);
  animation: loader-in 1s var(--ease-out) 0.15s forwards;
}
@keyframes loader-in { to { clip-path: inset(0 0 0 0); } }
.loader__bar {
  width: min(240px, 60vw);
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.loader__bar i {
  display: block;
  height: 100%;
  background: var(--orange);
  transform-origin: 0 50%;
  transform: scaleX(0);
  animation: loader-bar 1.1s var(--ease-out) 0.1s forwards;
}
@keyframes loader-bar { to { transform: scaleX(1); } }
.loader.is-done { transform: translateY(-100%); border-radius: 0 0 50% 50% / 0 0 18vh 18vh; }

/* ---------- Page transitions (Chrome, Edge, Safari) ---------- */

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out 0.45s var(--ease-in) both; }
::view-transition-new(root) { animation: page-in 0.8s var(--ease-out) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-24px) scale(0.985); filter: blur(6px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(36px); filter: blur(6px); } }

/* fallback for browsers without them */
html.is-leaving body { opacity: 0; transform: translateY(-16px); transition: opacity 0.35s var(--ease-in), transform 0.35s var(--ease-in); }

/* ---------- Small brand pieces ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--orange);
  flex: none;
}

.accent { color: var(--orange); }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.tag:hover { border-color: var(--line-strong); color: var(--text); }
.tag--orange { border-color: rgba(255, 74, 28, 0.6); color: var(--orange); background: var(--orange-soft); }

/* ---------- Buttons: magnetic (via JS), with a fill that grows from the cursor ---------- */

.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.6s var(--ease-out), color 0.4s var(--ease-out),
    border-color 0.4s, box-shadow 0.4s;
}
.btn::before {
  content: "";
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  width: 260%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.7s var(--ease-out);
  z-index: -1;
}
.btn:hover::before { transform: translate(-50%, -50%) scale(1); }
.btn:active { transition-duration: 0.15s; }

.btn--primary {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 8px 30px -8px rgba(255, 74, 28, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary::before { background: var(--paper); }
.btn--primary:hover { box-shadow: 0 14px 40px -10px rgba(255, 74, 28, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25); }

.btn--ghost {
  color: var(--text);
  border-color: var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-hi);
}
.btn--ghost::before { background: var(--orange); }
.btn--ghost:hover { color: var(--ink); border-color: var(--orange); }

.btn .arrow { transition: transform 0.5s var(--spring); }
.btn:hover .arrow { transform: translateX(5px); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header: floating glass pill ---------- */

.site-header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 0 var(--gutter);
  pointer-events: none;
  transition: transform 0.7s var(--ease-out);
}
.site-header.is-hidden { transform: translateY(calc(-100% - 20px)); }
.nav.wrap {
  position: relative;
  max-width: calc(var(--wrap) - 2 * var(--gutter));
  height: 64px;
  padding: 0 8px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 999px;
  pointer-events: auto;
}
.nav::before {
  /* the glass lives on a pseudo-element so the mobile menu can be position: fixed */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--glass-flat);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-hi), 0 12px 40px -12px rgba(0, 0, 0, 0.5);
}
.nav__logo { position: relative; z-index: 2; display: block; }
.nav__logo img { height: 30px; width: auto; }
.nav__links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}
.nav__links a {
  position: relative;
  z-index: 1;
  display: block;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--text-dim);
  transition: color 0.3s;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--text); }
.nav__pill {
  position: absolute;
  top: 50%;
  left: 0;
  height: 38px;
  margin-top: -19px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition:
    transform 0.55s var(--spring), width 0.55s var(--spring), opacity 0.3s;
}
.nav__pill.is-on { opacity: 1; }
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  background: var(--orange);
}
.nav__cta { padding: 11px 20px; font-size: 15px; position: relative; z-index: 2; }

.nav__toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s var(--ease-out), background 0.3s;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  position: relative;
  transition: transform 0.5s var(--spring), background 0.2s;
}
.nav__toggle span::before,
.nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav-open .nav__toggle span { background: transparent; }
.nav-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav.wrap { height: 60px; padding: 0 6px 0 18px; }
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav__pill { display: none; }
  .nav__links {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 100px var(--gutter) 40px;
    background: rgba(12, 12, 15, 0.72);
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    font-size: clamp(40px, 12vw, 56px);
    font-weight: 500;
    letter-spacing: -0.03em;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s var(--ease-out), visibility 0s 0.5s;
  }
  .nav__links li {
    overflow: hidden;
    transform: translateY(40px);
    opacity: 0;
    transition: transform 0.7s var(--ease-out), opacity 0.5s;
  }
  .nav__links a { padding: 4px 0; color: var(--text); }
  .nav__links a[aria-current="page"] { color: var(--orange); }
  .nav__links a[aria-current="page"]::after { display: none; }
  .nav-open .nav__links { opacity: 1; visibility: visible; transition: opacity 0.5s var(--ease-out); }
  .nav-open .nav__links li { transform: none; opacity: 1; }
  .nav-open .nav__links li:nth-child(1) { transition-delay: 0.08s; }
  .nav-open .nav__links li:nth-child(2) { transition-delay: 0.14s; }
  .nav-open .nav__links li:nth-child(3) { transition-delay: 0.2s; }
  .nav-open .nav__links li:nth-child(4) { transition-delay: 0.26s; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
  isolation: isolate;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero .eyebrow,
.page-hero .lockup {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-hi);
}
.hero h1 {
  font-size: clamp(48px, 8.4vw, 120px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 26px 0 30px;
}
.hero h1 .line { display: block; }
.hero__lead {
  font-size: clamp(18px, 1.6vw, 21px);
  color: var(--text-dim);
  max-width: 560px;
  margin-bottom: 38px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__mark {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 460px;
  justify-self: end;
  perspective: 900px;
}
.hero__mark img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  animation: float 7s ease-in-out infinite;
}
.hero__mark .mark-tilt {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s var(--ease-out);
}
.hero__mark::before {
  content: "";
  position: absolute;
  inset: 12%;
  background: radial-gradient(circle, rgba(255, 74, 28, 0.35), transparent 65%);
  filter: blur(40px);
  z-index: -1;
  animation: glow 5s ease-in-out infinite alternate;
}
.hero__mark::after {
  /* slow orbit ring */
  content: "";
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  border: 1px dashed rgba(244, 242, 236, 0.12);
  animation: spin 60s linear infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
@keyframes glow { to { opacity: 0.6; transform: scale(1.1); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* waves (left) + pixels (right) behind the hero */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.hero__bg .waves {
  position: absolute;
  left: -5%;
  top: 0;
  width: 60%;
  height: 100%;
  opacity: 0.07;
  overflow: visible;
  mask-image: linear-gradient(90deg, #000 45%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent);
}
.hero__bg .waves use { animation: sway 9s ease-in-out infinite alternate; }
.hero__bg .waves use:nth-child(odd) { animation-duration: 11s; animation-delay: -5s; }
.hero__bg .waves use:nth-child(3n) { animation-duration: 13s; animation-delay: -2s; }
@keyframes sway {
  from { transform: translateX(-30px); }
  to { transform: translateX(30px); }
}
.hero__bg .pixels {
  position: absolute;
  right: 0;
  top: 0;
  width: 46%;
  height: 100%;
  background-image:
    linear-gradient(var(--ink) 2px, transparent 2px),
    linear-gradient(90deg, var(--ink) 2px, transparent 2px);
  background-size: 28px 28px;
  background-color: rgba(244, 242, 236, 0.035);
  mask-image: linear-gradient(90deg, transparent, #000 50%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 50%);
}
.pixels i {
  position: absolute;
  width: 26px;
  height: 26px;
  background: var(--orange);
  opacity: 0;
  animation: px-blink 4.5s var(--ease) infinite;
}
@keyframes px-blink {
  0%, 100% { opacity: 0; }
  15%, 35% { opacity: 0.45; }
  55% { opacity: 0; }
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hero__scroll::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--orange);
  animation: drop 1.8s ease-in-out infinite;
}
@keyframes drop {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(18px); opacity: 0; }
}

@media (max-width: 860px) {
  .hero { min-height: auto; padding: 120px 0 80px; }
  .hero__grid { grid-template-columns: 1fr; gap: 20px; }
  .hero__mark { order: -1; max-width: 160px; justify-self: start; }
  .hero__scroll { display: none; }
  .hero__bg .pixels { width: 70%; opacity: 0.6; }
}

/* ---------- Page hero (division pages) ---------- */

.page-hero {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero h1 {
  font-size: clamp(44px, 7.4vw, 104px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin: 26px 0 28px;
  max-width: 14ch;
}
.page-hero .hero__lead { max-width: 640px; }
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.lockup img { height: 26px; width: auto; }
.lockup__name {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
}

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section--paper {
  /* a light panel floating on the dark page */
  background: var(--paper);
  color: var(--ink);
  margin: 0 clamp(8px, 1.4vw, 20px);
  border-radius: clamp(26px, 3vw, 44px);
}
.section--paper .eyebrow { color: #5d5d66; }
.section--paper .text-dim { color: #55555e; }
.section--line { border-top: 1px solid var(--line); }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(40px, 6vw, 72px);
  flex-wrap: wrap;
}
.section__head h2 {
  font-size: clamp(38px, 5.4vw, 72px);
  letter-spacing: -0.035em;
  margin-top: 18px;
  max-width: 16ch;
}
.section__head p { max-width: 440px; color: var(--text-dim); margin: 0; }
.section--paper .section__head p { color: #55555e; }

.text-dim { color: var(--text-dim); }

/* ---------- Glass surfaces with a cursor spotlight + tilt (via JS) ---------- */

.division,
.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-hi), 0 20px 50px -30px rgba(0, 0, 0, 0.6);
}
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 74, 28, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.spot:hover::after { opacity: 1; }
.tilt {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.9s var(--ease-out), border-color 0.4s;
}
.tilt.is-tilting { transition: transform 0.25s var(--ease-out), border-color 0.4s; }

/* ---------- Division cards (home) ---------- */

.divisions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.division {
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: 32px;
}
.division:hover { border-color: rgba(255, 74, 28, 0.45); }
.division__num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}
.division__art {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0 28px;
  height: 180px;
  transition: transform 0.8s var(--ease-out);
}
.division:hover .division__art { transform: scale(1.06) translateY(-4px); }
.division h3 { font-size: 34px; margin-bottom: 10px; }
.division h3 span { color: var(--text-mute); font-weight: 400; }
.division p { color: var(--text-dim); font-size: 16px; margin-bottom: 20px; }
.division__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.division__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-weight: 500;
  margin-top: auto;
}
.division__link .arrow { transition: transform 0.5s var(--spring); }
.division:hover .division__link .arrow { transform: translateX(6px); }

/* little illustrations for each division */
.art-film { width: 180px; height: 120px; position: relative; }
.art-film__frame {
  position: absolute;
  inset: 0;
  border: 2px solid var(--line-strong);
  border-radius: 10px;
}
.art-film__frame::before,
.art-film__frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--orange);
  border-style: solid;
}
.art-film__frame::before { top: -2px; left: -2px; border-width: 3px 0 0 3px; border-radius: 10px 0 0 0; }
.art-film__frame::after { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; border-radius: 0 0 10px 0; }
.art-film__rec {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}
.art-film__rec::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: blink 1.2s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.art-film svg { position: absolute; inset: 30px 14px 14px; width: calc(100% - 28px); height: auto; overflow: visible; }
.art-film path { animation: sway 4s ease-in-out infinite alternate; }
.art-film path:nth-child(2) { animation-delay: -1.3s; }
.art-film path:nth-child(3) { animation-delay: -2.6s; }

.art-games {
  display: grid;
  grid-template-columns: repeat(4, 34px);
  gap: 6px;
}
.art-games span {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-mute);
  transition: transform 0.5s var(--spring);
}
.art-games span.on { background: var(--orange); color: var(--ink); }
.art-games span.hi { background: var(--paper); color: var(--ink); }
.division:hover .art-games span.on { transform: scale(1.12); }

.art-apps {
  width: 92px;
  height: 160px;
  border-radius: 20px;
  border: 2px solid var(--line-strong);
  position: relative;
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.art-apps::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 22px;
  height: 4px;
  margin-left: -11px;
  border-radius: 4px;
  background: var(--line-strong);
}
.art-apps i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); transition: width 0.7s var(--ease-out); }
.art-apps i:nth-child(1) { width: 60%; background: var(--orange); }
.art-apps i:nth-child(2) { width: 90%; }
.art-apps i:nth-child(3) { width: 75%; }
.division:hover .art-apps i:nth-child(1) { width: 85%; }
.division:hover .art-apps i:nth-child(3) { width: 45%; }
.art-apps b {
  margin-top: auto;
  height: 40px;
  border-radius: 10px;
  background: var(--orange-soft);
  border: 1px solid rgba(255, 74, 28, 0.4);
}

@media (max-width: 960px) {
  .divisions { grid-template-columns: 1fr; }
  .division { min-height: 0; }
}

/* ---------- Project features ---------- */

.feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.feature + .feature { margin-top: clamp(90px, 11vw, 150px); }
.feature--flip .feature__media { order: 2; }
.feature__media {
  position: relative;
  isolation: isolate;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--glass-border);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}
.feature__body h3 { font-size: clamp(38px, 4.8vw, 64px); letter-spacing: -0.03em; margin: 18px 0 18px; }
.feature__body p { color: var(--text-dim); }
.feature__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 30px; }

.section--paper .feature__body p { color: #55555e; }
.section--paper .tag { border-color: rgba(17, 17, 20, 0.14); background: rgba(17, 17, 20, 0.03); color: #45454d; }
.section--paper .tag--orange { border-color: var(--orange); color: #d63a10; background: rgba(255, 74, 28, 0.08); }
.section--paper .feature__media { border-color: rgba(17, 17, 20, 0.08); box-shadow: 0 40px 80px -40px rgba(80, 30, 0, 0.35); }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; }
  .feature__media:has(.phone) { aspect-ratio: 1 / 1; }
  .feature--flip .feature__media { order: 0; }
}

/* Key art: a real image with the title over a fade */
.key-art { position: absolute; inset: 0; background: #0a0a0c; overflow: hidden; }
.key-art img {
  /* taller than its box so parallax never shows an edge */
  position: absolute;
  top: -7.5%;
  left: 0;
  width: 100%;
  height: 115%;
  object-fit: cover;
  transition: transform 1.6s var(--ease-out);
}
.feature:hover .key-art img,
.wide-art:hover .key-art img { transform: scale(1.05); }
.key-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 10, 12, 0.88));
}
.key-art__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9%;
  z-index: 1;
  text-align: center;
  font-size: clamp(24px, 3.6vw, 52px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: #f1ede4;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.key-art__title small {
  display: block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: rgba(241, 237, 228, 0.7);
}

.wide-art {
  position: relative;
  isolation: isolate;
  aspect-ratio: 21 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.wide-art .key-art__title { font-size: clamp(28px, 5.4vw, 76px); }
@media (max-width: 760px) { .wide-art { aspect-ratio: 16 / 10; } }

.split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(24px, 5vw, 72px);
  margin: clamp(40px, 6vw, 64px) 0 clamp(40px, 6vw, 64px);
}
.split h2 { font-size: clamp(42px, 6.4vw, 88px); letter-spacing: -0.04em; margin-top: 18px; }
.split p { color: var(--text-dim); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  transition: transform 0.9s var(--ease-out), filter 0.6s;
}
.gallery:hover img { filter: brightness(0.6) saturate(0.8); }
.gallery img:hover { filter: none; transform: scale(1.03); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }

/* Phone screenshots */
.shot {
  flex: none;
  aspect-ratio: 9 / 19;
  border-radius: 24px;
  border: 5px solid #111114;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.fan {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #ffcf3f 0%, #ff8a2a 45%, var(--orange) 100%);
}
.fan .shot { height: 84%; transition: transform 0.9s var(--spring); }
.fan .shot:nth-child(1) { transform: translateX(34%) rotate(-9deg) scale(0.86); }
.fan .shot:nth-child(2) { position: relative; z-index: 2; }
.fan .shot:nth-child(3) { transform: translateX(-34%) rotate(9deg) scale(0.86); }
.feature:hover .fan .shot:nth-child(1) { transform: translateX(22%) rotate(-14deg) scale(0.88); }
.feature:hover .fan .shot:nth-child(2) { transform: translateY(-10px) scale(1.03); }
.feature:hover .fan .shot:nth-child(3) { transform: translateX(-22%) rotate(14deg) scale(0.88); }

.screens {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 32px);
}
.screens figure { margin: 0; text-align: center; }
.screens .shot { width: min(250px, 40vw); transition: transform 0.9s var(--spring); }
.screens figure:hover .shot { transform: translateY(-10px) rotate(-1.5deg); }
.screens figure:nth-child(2):hover .shot { transform: translateY(-10px) rotate(1.5deg); }
.screens figcaption {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.section--paper .screens figcaption { color: #55555e; }

/* Store stats */
.stats { display: flex; flex-wrap: wrap; gap: 32px; margin: 4px 0 28px; }
.stats b { display: block; font-size: 32px; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.section--paper .stats span { color: #77777f; }

/* ---------- Phone mockup (apps) ---------- */

.phone-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 60%, rgba(234, 163, 184, 0.24), transparent 60%),
    rgba(24, 24, 29, 0.7);
}
.section--paper .phone-stage {
  background: radial-gradient(circle at 50% 60%, rgba(255, 74, 28, 0.18), transparent 60%), var(--paper-2);
}
.phone {
  height: 90%;
  width: auto;
  aspect-ratio: 9 / 19;
  border-radius: 34px;
  background: var(--ink);
  border: 6px solid #2b2b33;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  padding: 26px 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transform: rotate(4deg);
  transition: transform 1s var(--spring);
  color: var(--text);
}
.feature:hover .phone { transform: rotate(0deg) scale(1.03); }
.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 60px;
  height: 14px;
  margin-left: -30px;
  border-radius: 10px;
  background: #000;
}
.phone__app {
  align-self: flex-start;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  color: var(--text);
  margin: 4px 0 0;
}
.phone__card {
  margin-top: auto;
  margin-bottom: auto;
  width: 100%;
  padding: 14px 4px;
  border-radius: 16px;
  background: #1c1a1d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.phone__heart { width: 18px; height: 18px; color: var(--love); animation: beat 1.4s ease-in-out infinite; }
@keyframes beat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.18); }
  30% { transform: scale(1); }
  45% { transform: scale(1.12); }
}
.phone__title { font-family: Georgia, "Times New Roman", serif; font-size: 13px; margin-top: 6px; }
.phone__days {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  color: var(--love);
  margin-top: 4px;
}
.phone__unit { font-size: 7px; letter-spacing: 0.14em; color: var(--text-dim); margin-top: 2px; }
.phone__rule { width: 80%; height: 1px; background: rgba(255, 255, 255, 0.08); margin: 10px 0 8px; }
.phone__ymd { font-size: 10px; font-weight: 500; white-space: nowrap; }
.phone__clock { font-size: 9px; white-space: nowrap; color: var(--love); margin-top: 4px; font-variant-numeric: tabular-nums; }
.phone__since { font-size: 7.5px; color: var(--text-dim); margin-top: 6px; text-align: center; }

/* ---------- Services list ---------- */

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(17, 17, 20, 0.12);
}
.services li {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr 1.2fr 120px;
  gap: 24px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid rgba(17, 17, 20, 0.12);
  transition: padding 0.6s var(--ease-out), color 0.4s;
}
.services li::before {
  /* orange wash that slides in on hover */
  content: "";
  position: absolute;
  inset: 0 -16px;
  z-index: -1;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(255, 74, 28, 0.1), rgba(255, 74, 28, 0));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.7s var(--ease-out);
}
.services { position: relative; isolation: isolate; }
.services li:hover { padding-left: 16px; }
.services li:hover::before { transform: scaleX(1); }
.services__num { font-family: var(--mono); font-size: 13px; color: #8a8a93; }
.services h3 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.02em; }
.services p { margin: 0; color: #55555e; font-size: 16px; }
.services__div {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d63a10;
  white-space: nowrap;
  text-align: right;
}
.section:not(.section--paper) .services { border-color: var(--line); }
.section:not(.section--paper) .services li { border-color: var(--line); }
.section:not(.section--paper) .services p { color: var(--text-dim); }
.section:not(.section--paper) .services__num { color: var(--text-mute); }
.section:not(.section--paper) .services__div { color: var(--orange); }

@media (max-width: 760px) {
  .services li { grid-template-columns: 1fr; gap: 8px; }
  .services li:hover { padding-left: 0; }
  .services__num { display: none; }
  .services__div { text-align: left; }
}

/* ---------- Cards grid ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards--4 { grid-template-columns: 1fr; } }

.card { padding: 30px; }
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--orange-soft);
  border: 1px solid rgba(255, 74, 28, 0.2);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: transform 0.6s var(--spring), background 0.4s, color 0.4s;
}
.card:hover .card__icon { transform: rotate(-8deg) scale(1.1); background: var(--orange); color: var(--ink); }
.card__icon svg { width: 22px; height: 22px; }
.card h3 { font-size: 24px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 16px; margin: 0; }
.section--paper .card {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.6));
  border-color: rgba(17, 17, 20, 0.06);
  box-shadow: 0 20px 50px -30px rgba(80, 40, 10, 0.25);
}
.section--paper .card p { color: #55555e; }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  padding: 30px 28px 0 0;
  border-top: 2px solid var(--line-strong);
  position: relative;
}
.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--orange);
  margin-bottom: 18px;
}
.steps li::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--orange);
  transition: width 0.9s var(--ease-out);
}
.steps li.is-visible::after { width: 100%; height: 2px; top: -2px; }
.steps h3 { font-size: 24px; margin-bottom: 10px; }
.steps p { color: var(--text-dim); font-size: 16px; margin: 0; }
.section--paper .steps li { border-color: rgba(17, 17, 20, 0.2); }
.section--paper .steps p { color: #55555e; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Showreel placeholder ---------- */

.reel {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(255, 74, 28, 0.25), transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(244, 242, 236, 0.08), transparent 50%),
    rgba(24, 24, 29, 0.6);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  display: flex;
  align-items: center;
  justify-content: center;
}
.reel__play {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  box-shadow: 0 0 0 14px rgba(255, 74, 28, 0.15);
  animation: pulse 2.4s var(--ease-out) infinite;
  transition: transform 0.6s var(--spring);
}
.reel:hover .reel__play { transform: scale(1.12); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 74, 28, 0.35); }
  100% { box-shadow: 0 0 0 36px rgba(255, 74, 28, 0); }
}
.reel__play svg { width: 30px; height: 30px; margin-left: 5px; }
.reel__meta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.reel__corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 0 solid var(--paper);
  opacity: 0.6;
  transition: transform 0.7s var(--ease-out);
}
.reel__corner--tl { top: 20px; left: 20px; border-width: 2px 0 0 2px; }
.reel__corner--tr { top: 20px; right: 20px; border-width: 2px 2px 0 0; }
.reel__corner--bl { bottom: 52px; left: 20px; border-width: 0 0 2px 2px; }
.reel__corner--br { bottom: 52px; right: 20px; border-width: 0 2px 2px 0; }
.reel:hover .reel__corner--tl { transform: translate(8px, 8px); }
.reel:hover .reel__corner--tr { transform: translate(-8px, 8px); }
.reel:hover .reel__corner--bl { transform: translate(8px, -8px); }
.reel:hover .reel__corner--br { transform: translate(-8px, -8px); }

/* ---------- Marquee (moved by JS, speeds up as you scroll) ---------- */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 32s linear infinite;
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 400;
  letter-spacing: -0.03em;
  will-change: transform;
}
.js-motion .marquee__track { animation: none; }
.marquee__track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee__track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px rgba(244, 242, 236, 0.5); }
.marquee__track span::after {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--orange);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- CTA: a big glass panel ---------- */

.cta {
  position: relative;
  padding: clamp(60px, 9vw, 120px) 0;
  isolation: isolate;
  text-align: center;
}
.cta .wrap {
  position: relative;
  overflow: hidden;
  width: calc(100% - 2 * var(--gutter));
  padding: clamp(60px, 9vw, 120px) clamp(20px, 5vw, 64px);
  border-radius: clamp(28px, 3vw, 44px);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-hi), 0 40px 100px -50px rgba(0, 0, 0, 0.8);
}
.cta .wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -60%;
  width: 900px;
  height: 600px;
  max-width: 160%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255, 74, 28, 0.3), transparent 65%);
  z-index: -1;
  animation: glow 6s ease-in-out infinite alternate;
}
.cta h2 {
  font-size: clamp(42px, 7.4vw, 108px);
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 24px auto 26px;
  max-width: 14ch;
}
.cta p { color: var(--text-dim); max-width: 520px; margin: 0 auto 40px; }
.cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 0;
  font-size: 15px;
  overflow: hidden;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer__brand img { height: 30px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: var(--text-dim); max-width: 300px; }
.site-footer h4 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a {
  position: relative;
  color: var(--text-dim);
  transition: color 0.3s;
}
.site-footer ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.5s var(--ease-out);
}
.site-footer ul a:hover { color: var(--orange); }
.site-footer ul a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--text-mute);
  font-size: 14px;
}
.footer__mega {
  margin: 30px 0 -0.16em;
  text-align: center;
  font-size: clamp(90px, 25vw, 380px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
  color: transparent;
  background: linear-gradient(180deg, rgba(244, 242, 236, 0.16), rgba(244, 242, 236, 0) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
  pointer-events: none;
}
.footer__mega .dot {
  /* the orange square over the i, like the wordmark */
  display: inline-block;
  position: relative;
}
.footer__mega .dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0.06em;
  width: 0.15em;
  height: 0.15em;
  margin-left: -0.075em;
  background: var(--orange);
  opacity: 0.85;
}

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- Motion: reveals (only when JS is running) ---------- */

.js .reveal {
  opacity: 0;
  translate: 0 40px;
  filter: blur(8px);
  transition:
    opacity 1.1s var(--ease-out), translate 1.2s var(--ease-out), filter 1.1s var(--ease-out);
}
.js .reveal.is-visible { opacity: 1; translate: 0 0; filter: none; }
.js .reveal[data-delay="1"] { transition-delay: 0.08s; }
.js .reveal[data-delay="2"] { transition-delay: 0.16s; }
.js .reveal[data-delay="3"] { transition-delay: 0.24s; }

/* headlines rise in word by word */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.wi {
  display: inline-block;
  translate: 0 110%;
  rotate: 4deg;
  transform-origin: 0 100%;
  transition: translate 1.2s var(--ease-out), rotate 1.2s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.is-visible > .w > .wi,
.is-visible .w .wi { translate: 0 0; rotate: 0deg; }

/* media unmask */
.js .reveal-img {
  clip-path: inset(14% 10% 14% 10% round var(--radius));
  transition: clip-path 1.5s var(--ease-out);
}
.js .reveal-img.is-visible { clip-path: inset(0 0 0 0 round var(--radius)); }
.js .reveal-img img { scale: 1.2; transition: scale 1.8s var(--ease-out); }
.js .reveal-img.is-visible img { scale: 1; }
.js .gallery img.reveal-img { clip-path: inset(18% 18% 18% 18% round 16px); }
.js .gallery img.reveal-img.is-visible { clip-path: inset(0 0 0 0 round 16px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal-img, .wi { opacity: 1; translate: none; filter: none; clip-path: none; rotate: none; }
  html { scroll-behavior: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
