/* Mobile Guild — redesign v2
   Night-Dubai editorial. Motion: transform/opacity/clip-path only, custom curves,
   everything gated behind .js and prefers-reduced-motion. */

:root {
  --ink: #04060d;
  --ink-2: #080c18;
  --ink-3: #0e1428;
  --line: rgba(226, 232, 255, 0.09);
  --line-strong: rgba(226, 232, 255, 0.18);
  --text: #eef1f8;
  --muted: #9ba4ba;
  --faint: #677190;
  --blue: #4d7cff;
  --blue-hi: #7a9dff;
  --blue-deep: #2146e0;
  --blue-soft: rgba(77, 124, 255, 0.12);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 16px;
  --header-h: 72px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 10px 14px; background: var(--blue); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }
em { font-style: italic; color: var(--blue); }

/* Film grain — adds texture to the flat navy without an image request */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.05;
  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");
}

.progress {
  position: fixed; inset: 0 0 auto; height: 2px; z-index: 60;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-hi));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ─── Type ─── */
.display, .h2, .h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.display { font-size: clamp(3.2rem, 9.6vw, 9.4rem); line-height: 0.92; max-width: 11em; }
.h2 { font-size: clamp(2.5rem, 5.8vw, 5rem); line-height: 0.98; max-width: 14ch; }
.h3 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.05; letter-spacing: -0.01em; }
.lead, .hero-sub { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); max-width: 50ch; text-wrap: pretty; }
.prose { display: grid; gap: 1em; }
.prose p { color: var(--muted); max-width: 54ch; }

.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.88rem; font-weight: 500; }
.kicker svg { color: var(--blue); }

.eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: clamp(36px, 5vw, 64px);
  color: var(--muted); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.02em;
}
.eyebrow .mono { color: var(--blue); }
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); transform-origin: 0 50%; }

.pulse { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--blue); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--blue); animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(3.2); opacity: 0; } }

/* ─── Buttons ─── */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 50px; padding: 0 24px; overflow: hidden;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 0.95rem/1 var(--sans); white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 0.86rem; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 30px -10px rgba(77, 124, 255, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-arrow { display: inline-block; transition: transform 250ms var(--ease-out); }
/* One-shot shine across the primary button on hover */
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-110%);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #5f8aff; }
  .btn-primary:hover::after { transform: translateX(110%); transition: transform 700ms var(--ease-out); }
  .btn-ghost:hover { border-color: rgba(238, 241, 248, 0.5); background: rgba(255, 255, 255, 0.04); }
  .btn:hover .btn-arrow { transform: translateX(3px); }
}

.link-arrow { display: inline-flex; gap: 6px; color: var(--blue); font-weight: 600; font-size: 0.95rem; }
.link-arrow span { transition: transform 250ms var(--ease-out); }

/* ─── Header ─── */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: transform 450ms var(--ease-drawer), background-color 300ms ease, border-color 300ms ease;
}
.site-header.is-scrolled {
  background: rgba(4, 6, 13, 0.72);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mono { height: 30px; width: auto; }
.brand-word { height: 10px; width: auto; opacity: 0.9; }

.nav { position: relative; }
.nav-list { position: relative; z-index: 1; display: flex; gap: 2px; }
.nav-list a { display: block; padding: 9px 15px; color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color 200ms ease; }
.nav-list a:hover, .nav-list a[aria-current="true"] { color: var(--text); }
/* Single pill that slides between links — keeps spatial continuity */
.nav-pill {
  position: absolute; top: 0; left: 0; height: 100%; width: var(--w, 0);
  border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line);
  transform: translateX(var(--x, 0)); opacity: 0;
  transition: transform 350ms var(--ease-out), width 350ms var(--ease-out), opacity 200ms ease;
}
.nav-pill.is-on { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-btn {
  display: none; position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(4, 6, 13, 0.4); cursor: pointer;
  place-content: center; gap: 6px; transition: transform 160ms var(--ease-out);
}
.menu-btn:active { transform: scale(0.94); }
.menu-bar { display: block; width: 16px; height: 1.5px; background: currentColor; transition: transform 350ms var(--ease-out); }
.menu-btn[aria-expanded="true"] .menu-bar:first-of-type { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-bar:last-of-type { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45; background: rgba(4, 6, 13, 0.98);
  display: flex; align-items: flex-end; padding-bottom: 48px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path 450ms var(--ease-drawer), visibility 0s 450ms;
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path 550ms var(--ease-drawer), visibility 0s; }
.mobile-menu-inner { display: grid; }
.mobile-menu a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--serif); font-size: clamp(2.4rem, 11vw, 3.4rem); line-height: 1;
  opacity: 0; transform: translateY(24px);
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
}
.mobile-menu a .mono { color: var(--blue); }
.mobile-menu a.mm-small { border-bottom: 0; font-family: var(--sans); font-size: 1rem; color: var(--blue); padding-top: 24px; }
.mobile-menu.is-open a { opacity: 1; transform: none; transition: opacity 500ms ease, transform 600ms var(--ease-out); transition-delay: calc(150ms + var(--i, 0) * 50ms); }

/* ─── Hero ─── */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(48px, 9vw, 120px)); isolation: isolate; }
.aurora { position: absolute; inset: 0 0 auto; height: 110vh; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; }
.aurora span:nth-child(1) { width: 52vw; height: 52vw; right: -12vw; top: -22vw; background: radial-gradient(circle, rgba(33, 70, 224, 0.75), transparent 65%); animation: drift1 22s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { width: 36vw; height: 36vw; left: -10vw; top: 10vw; background: radial-gradient(circle, rgba(77, 124, 255, 0.35), transparent 65%); animation: drift2 26s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { width: 30vw; height: 30vw; left: 38vw; top: 26vw; background: radial-gradient(circle, rgba(145, 90, 220, 0.25), transparent 65%); animation: drift1 30s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(-8vw, 6vw, 0) scale(1.15); } }
@keyframes drift2 { to { transform: translate3d(10vw, -4vw, 0) scale(0.9); } }

.hero-copy { display: grid; gap: clamp(24px, 3vw, 36px); }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.hero-sub { max-width: 44ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-media { position: relative; margin: clamp(56px, 8vw, 104px) 0 0; }
.hero-frame {
  position: relative; overflow: hidden;
  height: clamp(360px, 62vw, 820px);
  /* --inset / --r are driven by scroll: card-sized at rest, full-bleed once scrolled */
  clip-path: inset(0 var(--inset, 40px) round var(--r, 22px));
}
.hero-parallax { position: absolute; inset: -12% 0; will-change: transform; }
.hero-parallax img { width: 100%; height: 100%; object-fit: cover; }
.hero-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 6, 13, 0.1) 40%, rgba(4, 6, 13, 0.85)); pointer-events: none; }
.hero-note {
  position: absolute; z-index: 1; left: calc(var(--inset, 40px) + clamp(16px, 3vw, 36px)); bottom: clamp(16px, 3vw, 36px);
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center;
  max-width: 400px; padding: 18px 22px;
  background: rgba(4, 6, 13, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: 0.97rem; line-height: 1.4;
}
.hero-note .mono { grid-column: 2; color: var(--blue-hi); }

/* ─── Stats ─── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 28px 24px 8px 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat dd { display: contents; }
.stat strong { order: -1; font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat strong.stat-word { font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1.05; }
.stat dt { font-weight: 600; font-size: 0.95rem; margin-top: 8px; }
.stat span { color: var(--faint); font-size: 0.86rem; }
.stats-compact { margin: clamp(48px, 6vw, 72px) 0 0; }

/* ─── Ticker ─── */
.ticker {
  margin-top: clamp(72px, 9vw, 120px); padding-block: 26px;
  border-block: 1px solid var(--line); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.ticker span { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.8rem); white-space: nowrap; color: var(--muted); }
.ticker span:nth-child(4n + 1) { font-style: italic; color: var(--text); }
.ticker i { font-style: normal; color: var(--blue); font-size: 1rem; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ─── Sections ─── */
.section { padding-block: clamp(96px, 13vw, 176px); }
.section-alt { background: var(--ink-2); border-block: 1px solid var(--line); }
.list-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: clamp(88px, 10vw, 128px) 0 28px; }
.list-count { color: var(--faint); }

/* Image reveal: clip wipes up while the photo settles from a slight zoom */
.img-reveal { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink-3); }
.img-reveal img { width: 100%; height: 100%; object-fit: cover; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about-copy { display: grid; gap: 32px; justify-items: start; }
.about-media { aspect-ratio: 4 / 3.2; }

.values { margin-top: clamp(104px, 12vw, 160px); }
.values-head { display: grid; gap: 12px; margin-bottom: 32px; }
.values-kicker { color: var(--blue); }
.values-list { border-top: 1px solid var(--line-strong); }
.value {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 24px;
  padding: 26px 24px; margin-inline: -24px; border-bottom: 1px solid var(--line-strong);
  border-radius: 14px; outline-offset: -2px;
}
/* Blue fill wipes in from the left on hover/focus (clip-path, no layout work) */
.value::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  clip-path: inset(0 100% 0 0 round 14px);
  transition: clip-path 250ms var(--ease-out);
}
.value .mono { color: var(--blue); transition: color 200ms ease; }
.value h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -0.02em; transition: transform 400ms var(--ease-out); }
.value p { color: var(--muted); font-size: 0.98rem; max-width: 40ch; transition: color 200ms ease; }
.value:focus-visible::before { clip-path: inset(0 0 0 0 round 14px); transition-duration: 500ms; }
.value:focus-visible .mono, .value:focus-visible p { color: rgba(255, 255, 255, 0.9); }
@media (hover: hover) and (pointer: fine) {
  .value:hover::before { clip-path: inset(0 0 0 0 round 14px); transition-duration: 500ms; }
  .value:hover .mono, .value:hover p { color: rgba(255, 255, 255, 0.9); }
  .value:hover h4 { transform: translateX(10px); }
}

.founder { margin-top: clamp(104px, 12vw, 160px); }
.founder-quote { margin-bottom: clamp(48px, 6vw, 80px); }
.founder-quote p {
  font-family: var(--serif); font-size: clamp(2.3rem, 5.6vw, 5rem); line-height: 1.02; letter-spacing: -0.02em; text-wrap: balance; max-width: 20ch;
}
.founder-quote p::before { content: "“"; color: var(--blue); margin-left: -0.4em; }
.founder-quote p::after { content: "”"; color: var(--blue); }
.scrub-word { transition: opacity 120ms linear; }

/* Spotlight: border + glow follow the pointer (vars set only on the hovered card) */
.spot { position: relative; isolation: isolate; }
.spot::before, .spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  transition: opacity 300ms ease;
}
.spot::before {
  z-index: 1; padding: 1px;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(122, 157, 255, 0.9), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.spot::after { z-index: -1; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(77, 124, 255, 0.12), transparent 50%); }
@media (hover: hover) and (pointer: fine) {
  .spot:hover::before, .spot:hover::after { opacity: 1; }
}

.founder-card {
  display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start;
  padding: clamp(24px, 4vw, 40px); max-width: 860px; margin-left: auto;
  background: linear-gradient(135deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  transition: transform 160ms var(--ease-out);
}
.founder-card:active { transform: scale(0.99); }
.founder-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); }
.founder-role { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }
.founder-name { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.02em; margin: 6px 0 12px; }
.founder-bio { color: var(--muted); font-size: 0.96rem; margin-bottom: 18px; }
@media (hover: hover) and (pointer: fine) {
  .founder-card:hover .link-arrow span { transform: translate(3px, -3px); }
}

/* Events */
.split-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; }
.bento {
  margin-top: clamp(56px, 7vw, 88px);
  display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: clamp(150px, 16vw, 210px); gap: 12px;
}
.bento .b1 { grid-column: span 4; grid-row: span 2; }
.bento .b2, .bento .b3 { grid-column: span 2; }
.bento .b4, .bento .b5, .bento .b6 { grid-column: span 2; }
.bento img { transition: transform 900ms var(--ease-out), filter 400ms ease; filter: saturate(0.85) brightness(0.92); }
@media (hover: hover) and (pointer: fine) {
  .bento figure:hover img { transform: scale(1.04); filter: saturate(1.05) brightness(1); }
}

.timeline { border-top: 1px solid var(--line-strong); }
.event {
  position: relative; display: grid; grid-template-columns: 120px 1fr auto; gap: 24px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line-strong);
}
.event img { display: none; }
.event time { color: var(--muted); }
.event h4 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.05; letter-spacing: -0.015em; transition: transform 400ms var(--ease-out), color 200ms ease; }
.venue { color: var(--muted); font-size: 0.93rem; display: inline-flex; align-items: center; gap: 8px; }
.venue::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.timeline.is-hovering .event h4 { color: var(--faint); }
.timeline.is-hovering .event.is-active h4 { color: var(--text); transform: translateX(12px); }
/* Without a fine pointer (touch) or with reduced motion, show inline thumbnails instead of the floating preview */
.no-preview .event { grid-template-columns: 120px 150px 1fr auto; }
.no-preview .event img { display: block; width: 150px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }

.ev-preview {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: 320px; aspect-ratio: 16 / 10; will-change: transform;
}
.ev-preview-inner {
  position: relative; width: 100%; height: 100%; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px var(--line-strong);
  opacity: 0; transform: scale(0.9);
  transition: opacity 200ms ease, transform 300ms var(--ease-out);
}
.ev-preview.is-on .ev-preview-inner { opacity: 1; transform: scale(1); }
.ev-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 250ms ease, transform 500ms var(--ease-out); }
.ev-preview img.is-active { opacity: 1; transform: scale(1); }
.no-preview .ev-preview { display: none; }

.cta-band {
  margin-top: clamp(64px, 8vw, 96px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(28px, 4vw, 44px);
  border-radius: calc(var(--radius) + 4px);
  background: radial-gradient(120% 140% at 0% 0%, rgba(77, 124, 255, 0.22), transparent 60%), var(--ink-3);
  border: 1px solid rgba(77, 124, 255, 0.28);
}
.cta-band h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1.05; }
.cta-band p { color: var(--muted); margin-top: 8px; max-width: 52ch; }

/* Partners */
.partners-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.partners-copy { display: grid; gap: 32px; }
.partners-media { aspect-ratio: 16 / 11; }
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.area {
  padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2);
  display: grid; gap: 12px; align-content: start; min-height: 280px;
}
.area-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: auto; border-radius: 12px;
  color: var(--blue-hi); background: var(--blue-soft); border: 1px solid rgba(77, 124, 255, 0.25);
  transition: transform 400ms var(--ease-out);
}
.area h4 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.015em; margin-top: 56px; }
.area p { color: var(--muted); font-size: 0.96rem; }
@media (hover: hover) and (pointer: fine) {
  .area:hover .area-icon { transform: translateY(-3px) rotate(-6deg); }
}

/* Contact */
.contact { position: relative; padding-block: clamp(112px, 14vw, 200px); overflow: hidden; isolation: isolate; }
.contact-bg { position: absolute; inset: -10% 0; z-index: -1; will-change: transform; }
.contact-bg::before {
  content: ""; position: absolute; inset: 0;
  background: url("assets/images/dubai-night-waterfront.png") center 70% / cover no-repeat;
  opacity: 0.35;
}
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 5%, rgba(4, 6, 13, 0.6) 50%, var(--ink) 95%); }
.contact-inner { display: grid; gap: 32px; }
.contact-inner .eyebrow { margin-bottom: 8px; }
.contact-title { font-size: clamp(3rem, 8.4vw, 7.8rem); max-width: 12ch; line-height: 0.95; }
.contact-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(24px, 4vw, 48px); border-top: 1px solid var(--line-strong); }
.cl { display: grid; align-content: start; gap: 10px; padding: 26px 24px 0 0; }
.cl + .cl { padding-left: 24px; border-left: 1px solid var(--line-strong); }
.cl-label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cl-value { font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 500; overflow-wrap: anywhere; justify-self: start; }
a.cl-value { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 350ms var(--ease-out); padding-bottom: 2px; }
.cl-arrow { display: inline-block; color: var(--blue); transition: transform 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  a.cl-value:hover { background-size: 100% 1px; }
  a.cl-value:hover .cl-arrow { transform: translate(2px, -2px); }
}
.copy-btn {
  justify-self: start; display: inline-grid; margin-top: 4px; padding: 7px 14px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 200ms ease, background-color 200ms ease;
}
.copy-btn:active { transform: scale(0.95); }
.copy-label { grid-area: 1 / 1; transition: opacity 200ms ease, filter 200ms ease, transform 250ms var(--ease-out); }
.copy-label[data-state="done"] { opacity: 0; filter: blur(4px); transform: translateY(6px); color: var(--blue-hi); }
.copy-btn.is-done { border-color: rgba(77, 124, 255, 0.5); background: var(--blue-soft); }
.copy-btn.is-done [data-state="idle"] { opacity: 0; filter: blur(4px); transform: translateY(-6px); }
.copy-btn.is-done [data-state="done"] { opacity: 1; filter: none; transform: none; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-top: 64px; background: var(--ink); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 32px; }
.footer-brand { display: grid; gap: 10px; align-content: start; }
.footer-brand .brand { margin-bottom: 8px; }
.footer-brand p { color: var(--muted); font-size: 0.93rem; max-width: 38ch; }
.footer-h { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer ul { display: grid; gap: 8px; }
.footer ul a { color: var(--muted); font-size: 0.93rem; transition: color 200ms ease; }
.footer ul a:hover { color: var(--text); }
.footer-mark {
  font-family: var(--serif); font-size: clamp(4.5rem, 19vw, 18rem); line-height: 0.8; letter-spacing: -0.04em;
  text-align: center; white-space: nowrap; padding-top: 24px;
  background: linear-gradient(180deg, rgba(238, 241, 248, 0.16), rgba(238, 241, 248, 0));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.83rem; }
.footer-legal a:hover { color: var(--text); }

/* ═══ Motion states (only with JS; content is fully visible without it) ═══ */

/* Split headings: each word rises out of its own mask */
.word { display: inline-block; overflow: clip; vertical-align: top; padding: 0 0.06em 0.12em; margin: 0 -0.06em -0.12em; }
.word-inner { display: inline-block; }
.js [data-split] .word-inner { transform: translateY(105%); transition: transform 1000ms var(--ease-out); transition-delay: calc(var(--w, 0) * 55ms + var(--base, 0ms)); }
.js [data-split].is-in .word-inner { transform: none; }

/* Hero intro sequence, keyed off --i */
.js .intro { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 900ms ease, transform 1100ms var(--ease-out), filter 900ms ease; transition-delay: calc(var(--i, 0) * 90ms + 100ms); }
.js.is-loaded .intro { opacity: 1; transform: none; filter: none; }
.js .hero-media.intro { filter: none; transform: translateY(60px); }
.js.is-loaded .hero-media.intro { transform: none; }
.js .hero-parallax img { transform: scale(1.12); transition: transform 2200ms var(--ease-out) 300ms; }
.js.is-loaded .hero-parallax img { transform: scale(1); }
.js .site-header { opacity: 0; transition: opacity 800ms ease 200ms, transform 450ms var(--ease-drawer), background-color 300ms ease, border-color 300ms ease; }
.js.is-loaded .site-header { opacity: 1; }

/* Generic reveal */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 800ms ease, transform 900ms var(--ease-out); transition-delay: calc(var(--s, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .eyebrow[data-reveal]::after { transform: scaleX(0); transition: transform 1200ms var(--ease-in-out) 200ms; }
.js .eyebrow[data-reveal].is-in::after { transform: scaleX(1); }

/* Image wipe */
/* Clip lives on the <img>, not the observed <figure>: a fully-clipped target never reports as intersecting */
.js [data-reveal-img] img {
  clip-path: inset(100% 0 0 0); transform: scale(1.25);
  transition: clip-path 1100ms var(--ease-in-out), transform 1600ms var(--ease-out), filter 400ms ease;
  transition-delay: calc(var(--s, 0) * 90ms);
}
.js [data-reveal-img].is-in img { clip-path: inset(0 0 0 0); transform: none; }
@media (hover: hover) and (pointer: fine) {
  .js .bento [data-reveal-img].is-in:hover img { transform: scale(1.04); transition-delay: 0s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora span, .pulse::after, .ticker-track { animation: none; }
  .js [data-split] .word-inner, .js .hero-parallax img, .js [data-reveal-img] img { transform: none; transition: none; }
  .js .intro, .js [data-reveal] { transform: none; filter: none; transition: opacity 400ms ease; }
  .js [data-reveal-img] img { clip-path: none; }
  .js [data-reveal-img] { opacity: 0; transition: opacity 400ms ease; }
  .js [data-reveal-img].is-in { opacity: 1; }
  .js .eyebrow[data-reveal]::after { transform: none; }
  .mobile-menu a { transform: none; }
  .value h4, .event h4 { transition: color 200ms ease; }
  .timeline.is-hovering .event.is-active h4 { transform: none; }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .value { grid-template-columns: 48px 1fr; gap: 8px 16px; }
  .value p { grid-column: 2; }
  .bento { grid-auto-rows: clamp(130px, 22vw, 200px); }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .nav, .hide-sm { display: none; }
  .menu-btn { display: grid; }
  .about-grid, .split-head, .partners-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .areas, .contact-links { grid-template-columns: 1fr; }
  .area { min-height: 0; }
  .area h4 { margin-top: 28px; }
  .cl, .cl + .cl { padding: 22px 0; border-left: 0; }
  .cl + .cl { border-top: 1px solid var(--line-strong); }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 38vw; }
  .bento .b1 { grid-column: span 2; grid-row: span 1; }
  .bento .b1 { grid-row: span 1; }
  .bento > * { grid-column: span 1; }
  .bento .b1 { grid-column: 1 / -1; }
  .no-preview .event, .event { grid-template-columns: 104px 1fr; gap: 6px 16px; }
  .event time { grid-column: 1 / -1; }
  .no-preview .event img { width: 104px; grid-row: 2 / 4; }
  .event h4, .event .venue { grid-column: 2; }
  .event h4 { font-size: 1.6rem; }
  .founder-card { grid-template-columns: 1fr; }
  .founder-img { width: 88px; height: 88px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-frame { height: 118vw; }
  .hero-note { left: 16px; right: 16px; max-width: none; }
  .stat, .stat + .stat { padding: 22px 12px 4px 0; }
  .stat:nth-child(even) { padding-left: 16px; }
  .value { padding: 22px 0; margin-inline: 0; }
  .cta-band .btn, .hero-ctas .btn { flex: 1; justify-content: center; }
  .hero-ctas { width: 100%; }
  .founder-quote p::before { margin-left: 0; }
}
