/* ==========================================================================
   Optimism Labs — landing
   ========================================================================== */

:root {
  --bg: #050505;
  --bg-2: #0b0b0b;
  --card: #0e0e0e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f4;
  --muted: #a3a3a3;
  --dim: #6b6b6b;
  --orange: #ff6a13;
  --amber: #ffb25b;
  --orange-deep: #e5480a;

  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
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: 6px; }
::selection { background: var(--orange); color: #000; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: #000; padding: 10px 16px; border-radius: 999px;
  transition: top .2s;
}
.skip:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* grain */
.grain {
  pointer-events: none; position: fixed; inset: 0; z-index: 90; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--muted);
  padding: 7px 14px 7px 10px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255,255,255,.03); backdrop-filter: blur(10px);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.label {
  font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.label::before { content: ""; width: 18px; height: 1px; background: var(--orange); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; margin: 0; }
.h-xl { font-size: clamp(44px, 8.2vw, 120px); letter-spacing: -0.045em; line-height: .98; }
.h-lg { font-size: clamp(36px, 5.6vw, 80px); }
.h-md { font-size: clamp(28px, 3.4vw, 48px); }
em, .serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.grad {
  background: linear-gradient(100deg, var(--amber) 0%, var(--orange) 45%, #ff8a3d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 46ch; line-height: 1.55; }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .3s var(--ease-out), background-color .3s, box-shadow .3s, border-color .3s;
  white-space: nowrap; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-primary { background: var(--text); color: #0a0a0a; }
.btn-primary:hover { background: #fff; box-shadow: 0 10px 40px -10px rgba(255,106,19,.6); transform: translateY(-1px); }
.btn-orange { background: var(--orange); color: #0a0a0a; }
.btn-orange:hover { background: #ff7d33; box-shadow: 0 14px 50px -12px rgba(255,106,19,.9); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.03); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.07); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 14px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50; pointer-events: none;
  transition: transform .5s var(--ease-out);
}
.nav.hide { transform: translateY(-120%); }
.nav-inner {
  pointer-events: auto; margin: 0 auto; width: min(100% - 32px, 1120px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  border: 1px solid transparent; transition: background .4s, border-color .4s, backdrop-filter .4s;
}
.nav.scrolled .nav-inner { background: rgba(14,14,14,.72); border-color: var(--line); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; transition: transform .6s var(--ease-out); }
.brand:hover img { transform: rotate(60deg); }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); align-items: center; justify-content: center; }
.menu-btn span { position: relative; width: 16px; height: 1.5px; background: var(--text); transition: background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease-out); }
.menu-btn span::before { transform: translateY(-5px); }
.menu-btn span::after { transform: translateY(5px); }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: rotate(45deg); }
.menu-open .menu-btn span::after { transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(5,5,5,.96); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 100px 28px 40px; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a { font-family: var(--font-display); font-size: 40px; font-weight: 600; letter-spacing: -0.03em; padding: 6px 0; }
.mobile-menu a:last-child { margin-top: 24px; font-size: 16px; color: var(--orange); font-family: var(--font-body); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 140px 0 22vh; overflow: hidden; isolation: isolate; text-align: center;
}
.hero-sky {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(255,106,19,.20), transparent 70%),
    radial-gradient(40% 30% at 50% 0%, rgba(255,255,255,.04), transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -3; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px; background-position: center top;
  mask-image: radial-gradient(70% 60% at 50% 35%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 20%, transparent 75%);
}
.sun {
  position: absolute; left: 50%; bottom: 0; z-index: -2;
  width: min(120vw, 1500px); aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, 62%);
  background: radial-gradient(circle at 50% 50%, #fff3dc 0%, #ffc271 12%, #ff7a1f 26%, rgba(255,106,19,.55) 38%, rgba(229,72,10,.18) 52%, transparent 68%);
  filter: blur(6px);
  animation: sunrise 2.6s var(--ease-out) .1s both;
}
.rays {
  position: absolute; left: 50%; bottom: 0; z-index: -2;
  width: 220vmax; height: 220vmax; transform: translate(-50%, 50%);
  background: repeating-conic-gradient(from 0deg, rgba(255,150,70,.07) 0deg 2deg, transparent 2deg 9deg);
  mask-image: radial-gradient(closest-side, #000 10%, transparent 55%);
  -webkit-mask-image: radial-gradient(closest-side, #000 10%, transparent 55%);
  animation: spin 140s linear infinite, fadeIn 3s 1s both;
}
.horizon {
  position: absolute; left: 50%; bottom: 0; z-index: -1;
  width: 260vw; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, calc(100% - 17vh));
  background: radial-gradient(circle at 50% 0%, #0d0805 0%, var(--bg) 18%);
  box-shadow: 0 -1px 0 0 rgba(255,190,120,.95), 0 -2px 18px 0 rgba(255,106,19,.9), 0 -20px 120px 10px rgba(255,106,19,.35);
  animation: horizonIn 2s var(--ease-out) both;
}
@keyframes sunrise { from { transform: translate(-50%, 95%); opacity: 0; } to { transform: translate(-50%, 62%); opacity: 1; } }
@keyframes horizonIn { from { opacity: 0; transform: translate(-50%, calc(100% - 10vh)); } to { opacity: 1; transform: translate(-50%, calc(100% - 17vh)); } }
@keyframes spin { to { transform: translate(-50%, 50%) rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hero-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 0 var(--gutter); }
.hero h1 { max-width: 14ch; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; }
.hero .lead { margin: 0 auto; text-align: center; max-width: 52ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.float-icons { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.float-icon {
  position: absolute; width: var(--s, 84px); aspect-ratio: 1; border-radius: 24%;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.08);
  overflow: hidden; will-change: transform;
  animation: bob 7s ease-in-out infinite; animation-delay: var(--d, 0s);
}
.float-icon img { width: 100%; height: 100%; object-fit: cover; }
.float-icon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, rgba(255,255,255,.18), transparent 40%); }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.fi-1 { --s: 96px; left: 9%; top: 24%; rotate: -10deg; }
.fi-2 { --s: 76px; left: 17%; top: 62%; rotate: 8deg; --d: -2s; }
.fi-3 { --s: 104px; right: 9%; top: 20%; rotate: 9deg; --d: -4s; }
.fi-4 { --s: 72px; right: 19%; top: 60%; rotate: -7deg; --d: -1s; }
.fi-5 { --s: 64px; right: 30%; top: 12%; rotate: 4deg; --d: -3s; opacity: .85; }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7);
}
.scroll-hint i { width: 1px; height: 36px; background: linear-gradient(var(--text), transparent); animation: drip 2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- marquee ribbon ---------- */
.ribbon { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: var(--bg); position: relative; z-index: 2; }
.ribbon-track { display: flex; gap: 56px; width: max-content; animation: marquee 40s linear infinite; }
.ribbon-item { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; color: #d4d4d4; white-space: nowrap; }
.ribbon-item img { width: 36px; height: 36px; border-radius: 9px; }
.ribbon-item .sep { color: var(--orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(96px, 14vw, 180px) 0; }
.section-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: clamp(48px, 7vw, 88px); }
.section-head.center { align-items: center; text-align: center; }
.section-head .lead { margin: 0; }
.split-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }

/* ---------- manifesto ---------- */
.manifesto p {
  font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.12;
  font-size: clamp(30px, 4.6vw, 64px); margin: 28px 0 0; max-width: 22ch;
}
.manifesto .w { opacity: .14; transition: opacity .2s; }
.manifesto .w.hl { color: var(--orange); }
.no-js .manifesto .w, .reduced .manifesto .w { opacity: 1; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 36px 28px 8px 0; border-right: 1px solid var(--line); padding-left: 28px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(48px, 6.4vw, 92px); letter-spacing: -0.05em; line-height: 1; display: flex; align-items: baseline; }
.stat-num sup { font-size: .45em; color: var(--orange); margin-left: 4px; top: -.7em; position: relative; }
.stat p { margin: 14px 0 0; color: var(--muted); font-size: 15px; max-width: 22ch; }

/* ---------- apps stack ---------- */
.apps { padding-bottom: clamp(60px, 8vw, 120px); }
.stack { display: flex; flex-direction: column; gap: 28px; }
.app-card {
  --accent: #ff6a13; --accent-2: #ffb25b;
  position: sticky; top: calc(96px + var(--i) * 14px);
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; align-items: center;
  min-height: min(640px, calc(100svh - 140px)); padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  background: #0c0c0c; border: 1px solid var(--line);
  transform-origin: 50% 0;
  box-shadow: 0 -30px 80px -20px rgba(0,0,0,.8);
}
.app-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 90% at 85% 50%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 72%),
    radial-gradient(50% 60% at 100% 100%, color-mix(in srgb, var(--accent-2) 38%, transparent), transparent 70%),
    radial-gradient(40% 50% at 0% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}
.app-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .4;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px); background-size: 22px 22px;
  mask-image: linear-gradient(90deg, transparent 40%, #000);
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000);
}
.app-meta { display: flex; flex-direction: column; gap: 22px; max-width: 480px; }
.app-top { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.app-idx { font-family: var(--font-display); font-weight: 600; color: var(--text); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: #e5e5e5; background: rgba(255,255,255,.04); }
.chip.new { background: var(--orange); border-color: var(--orange); color: #000; }
.app-title { display: flex; align-items: center; gap: 18px; }
.app-title img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 20px 40px -10px color-mix(in srgb, var(--accent) 60%, transparent); }
.app-title h3 { font-size: clamp(32px, 3.6vw, 52px); }
.app-title small { display: block; font-family: var(--font-body); font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 8px; }
.app-desc { font-size: clamp(17px, 1.4vw, 19px); color: #cfcfcf; margin: 0; line-height: 1.55; }
.app-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.app-feats li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15px; }
.app-feats svg { flex: none; width: 18px; height: 18px; color: var(--accent-2); margin-top: 3px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 18px; border-radius: 16px;
  background: #fff; color: #000; width: max-content; transition: transform .3s var(--ease-out), box-shadow .3s;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.store-btn svg { width: 24px; height: 24px; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.store-btn small { font-size: 11px; font-weight: 500; letter-spacing: .01em; }

.app-shots { position: relative; height: 100%; min-height: 460px; display: flex; align-items: center; justify-content: center; perspective: 1400px; }
.shot {
  position: absolute; width: clamp(150px, 15vw, 210px); aspect-ratio: 860 / 1864; border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.1);
  transition: transform .8s var(--ease-out);
  background: #111;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot:nth-child(1) { transform: translateX(-62%) rotate(-8deg) scale(.88); z-index: 1; }
.shot:nth-child(2) { transform: translateY(-2%); z-index: 3; }
.shot:nth-child(3) { transform: translateX(62%) rotate(8deg) scale(.88); z-index: 2; }
.app-card:hover .shot:nth-child(1) { transform: translateX(-78%) rotate(-11deg) scale(.9); }
.app-card:hover .shot:nth-child(3) { transform: translateX(78%) rotate(11deg) scale(.9); }
.app-card:hover .shot:nth-child(2) { transform: translateY(-5%) scale(1.02); }

/* ---------- gallery marquee ---------- */
.gallery { padding: 40px 0 clamp(96px, 12vw, 160px); overflow: hidden; }
.gallery-row { display: flex; gap: 18px; width: max-content; animation: marquee 70s linear infinite; }
.gallery-row.rev { animation-direction: reverse; margin-top: 18px; }
.gallery:hover .gallery-row { animation-play-state: paused; }
.gallery-row figure { margin: 0; width: 200px; aspect-ratio: 860/1864; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); flex: none; background: #111; }
.gallery-row img { width: 100%; height: 100%; object-fit: cover; }
.gallery-fade { position: relative; }
.gallery-fade::before, .gallery-fade::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12vw; z-index: 2; pointer-events: none; }
.gallery-fade::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.gallery-fade::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

/* ---------- globe ---------- */
.reach { overflow: hidden; }
.reach-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.globe-wrap { position: relative; aspect-ratio: 1; width: 100%; max-width: 640px; margin-left: auto; }
.globe-wrap::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(255,106,19,.18), transparent 65%); filter: blur(30px); }
#globe { position: relative; width: 100%; height: 100%; }
.reach-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 40px; }
.reach-list div { background: var(--bg); padding: 22px; }
.reach-list strong { display: block; font-family: var(--font-display); font-size: 30px; letter-spacing: -0.03em; font-weight: 600; }
.reach-list span { color: var(--muted); font-size: 14px; }

/* ---------- studio ---------- */
.studio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.studio-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; border: 1px solid var(--line); }
.studio-visual img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.studio-visual figcaption { position: absolute; left: 20px; bottom: 20px; right: 20px; display: flex; justify-content: space-between; font-size: 13px; color: rgba(255,255,255,.75); }
.pillars { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.pillar { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.pillar-num { font-family: var(--font-display); color: var(--orange); font-weight: 600; font-size: 15px; padding-top: 4px; }
.pillar h3 { font-size: 24px; letter-spacing: -0.025em; margin-bottom: 8px; }
.pillar p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2);
  min-height: 280px; display: flex; flex-direction: column; justify-content: flex-start; gap: 72px; overflow: hidden;
  transition: border-color .4s, transform .5s var(--ease-out);
}
.step::before { content: ""; position: absolute; inset: auto -30% -60% -30%; height: 80%; background: radial-gradient(closest-side, rgba(255,106,19,.35), transparent); opacity: 0; transition: opacity .5s; }
.step:hover { border-color: rgba(255,106,19,.5); transform: translateY(-4px); }
.step:hover::before { opacity: 1; }
.step-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,106,19,.12); color: var(--orange); }
.step-icon svg { width: 22px; height: 22px; }
.step h3 { font-size: 26px; letter-spacing: -0.03em; margin: 0 0 10px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; position: relative; }
.step-n { position: absolute; top: 24px; right: 26px; font-family: var(--font-display); font-weight: 600; color: var(--dim); font-size: 14px; }

/* ---------- partner ---------- */
.partner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.p-card {
  position: relative; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); min-height: 380px; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px; border: 1px solid var(--line); background: var(--bg-2);
}
.p-card.hot { background: linear-gradient(150deg, #ff7a1f 0%, #e5480a 55%, #9b2a03 100%); border-color: transparent; color: #140700; }
.p-card.hot .lead { color: rgba(20,7,0,.78); }
.p-card.hot::after { content: ""; position: absolute; right: -20%; top: -40%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,230,180,.6), transparent); z-index: -1; }
.p-card h3 { font-size: clamp(30px, 3.2vw, 44px); margin-bottom: 14px; }
.p-card .lead { font-size: 17px; }
.p-card.hot .btn-primary { background: #0a0a0a; color: #fff; }
.p-card.hot .btn-primary:hover { box-shadow: 0 14px 40px -12px rgba(0,0,0,.7); }
.p-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.p-tags span { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid currentColor; opacity: .7; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(120px, 16vw, 220px) 0 clamp(300px, 34vw, 470px); }
.cta-bg { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(340px, 44vw, 640px); z-index: -1; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; filter: hue-rotate(-20deg) saturate(1.15) brightness(.86) contrast(1.05); }
.cta-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--bg) 0%, transparent 30%, transparent 72%, var(--bg) 100%); }
.cta h2 { max-width: 14ch; margin: 22px auto 24px; text-shadow: 0 4px 40px rgba(0,0,0,.6); }
.cta .container { position: relative; }
.cta .btn-primary { box-shadow: 0 20px 60px -10px rgba(0,0,0,.6); }
.cta .lead { margin: 0 auto 36px; text-align: center; color: #e8e8e8; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.mail-link { display: inline-flex; margin-top: 22px; color: rgba(255,255,255,.85); font-size: 15px; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; }
.mail-link:hover { color: #fff; border-color: #fff; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 72px 0 32px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 0 0 16px; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: #cfcfcf; font-size: 15px; transition: color .2s; display: inline-block; padding: 2px 0; }
.footer ul a:hover { color: var(--orange); }
.footer-blurb { color: var(--muted); max-width: 32ch; margin: 18px 0 0; font-size: 15px; }
/* font-size is fitted by JS */
.wordmark {
  display: inline-block; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.06em; line-height: .8;
  font-size: clamp(64px, 16.5vw, 250px); margin: 80px 0 28px; white-space: nowrap;
  background: linear-gradient(180deg, #2a2a2a 0%, #0d0d0d 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.wordmark em { background: linear-gradient(180deg, #ff8a3d, #5a1d02 95%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal].in { opacity: 1; transform: none; transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: var(--delay, 0s); }

/* ---------- legal page ---------- */
.legal { padding: 160px 0 100px; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 72px); margin: 20px 0 16px; }
.legal h2 { font-size: 24px; margin: 48px 0 12px; letter-spacing: -0.02em; }
.legal p, .legal li { color: #c9c9c9; font-size: 17px; }
.legal a { color: var(--orange); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .fi-5 { display: none; }
  .process { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .split-head, .reach-grid, .studio-grid, .partner-grid { grid-template-columns: 1fr; }
  .globe-wrap { margin: 0 auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 16px 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat:nth-child(even) { padding-left: 20px; }
  .app-card { grid-template-columns: 1fr; top: calc(84px + var(--i) * 10px); min-height: 0; gap: 8px; }
  .app-shots { min-height: 360px; order: -1; }
  .shot { width: 140px; }
  .fi-1 { left: 4%; top: 15%; --s: 64px; }
  .fi-2 { left: 6%; top: 74%; --s: 54px; }
  .fi-3 { right: 4%; top: 13%; --s: 70px; }
  .fi-4 { right: 6%; top: 76%; --s: 52px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 120px; }
  .hero-actions .btn { width: 100%; }
  .hero-actions { width: 100%; flex-direction: column; }
  .process { grid-template-columns: 1fr; }
  .step { min-height: 0; gap: 40px; }
  .fi-1, .fi-3 { display: none; }
  .fi-2 { top: auto; bottom: 13vh; left: 5%; }
  .fi-4 { top: auto; bottom: 12vh; right: 5%; }
  .hero { padding-bottom: 26vh; }
  .app-shots { min-height: 300px; }
  .shot { width: 118px; border-radius: 16px; }
  .app-title img { width: 60px; height: 60px; border-radius: 14px; }
  .app-feats { display: none; }
  .reach-list strong { font-size: 24px; }
  .gallery-row figure { width: 150px; border-radius: 16px; }
  .footer-top { grid-template-columns: 1fr; }
  .p-card { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .manifesto .w { opacity: 1; }
}

/* ---------- hero intro ---------- */
.hero-in { animation: heroIn 1.1s var(--ease-out) var(--delay, 0s) both; }
.hero h1 .line:nth-child(1) .hero-word { animation: wordUp 1.2s var(--ease-out) .3s both; }
.hero h1 .line:nth-child(2) .hero-word { animation: wordUp 1.2s var(--ease-out) .42s both; }
.float-icon { animation: iconIn 1.4s var(--ease-out) both, bob 7s ease-in-out infinite; animation-delay: calc(.6s + var(--d, 0s) * -0.15), var(--d, 0s); }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes wordUp { from { transform: translateY(105%); } to { transform: none; } }
@keyframes iconIn { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
.app-card { will-change: transform; }
