/* رؤية · Roaya game studio: brand system
   Stone carries the page, ink carries structure, black is the weight.
   Motifs: the Ra mark (a circle and a quarter circle drawing ر), Bauhaus circle fragments (the mark broken into play pieces),
   and a reaction-diffusion labyrinth. Emphasis is a black pill, the circle stretched into a word. */

:root {
  --stone: #DCD7C9;
  --paper: #E6E2D7;
  --stone-deep: #C8C2B2;
  --line: #C2BCAC;
  --ink: #2C3639;
  --ink-2: #3F4E4F;
  --black: #121617;
  --muted: #59625F;
  --line-dark: rgb(220 215 201 / 0.16);

  --font: "Readex Pro", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.18, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --wrap: min(1240px, 100% - 2 * clamp(16px, 4vw, 48px));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--stone); color: var(--ink); font: 400 1rem/1.8 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, dl, dd, ol, ul, blockquote { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--black); color: var(--stone); }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 12px; inset-inline-start: 12px; z-index: 100; padding: 10px 16px; background: var(--black); color: var(--stone); transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: var(--wrap); margin-inline: auto; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Emphasis: a black pill, the circle stretched into a word. Extra room below holds descenders like ح. */
em { font-style: normal; display: inline-block; padding: 0.02em 0.36em 0.4em; margin-block: 0.02em -0.26em; background: var(--black); color: var(--stone); border-radius: 999px; line-height: 1.12; }

/* ───────────── type ───────────── */
.kicker { font-weight: 500; font-size: 0.9rem; color: var(--ink-2); }
.title { font-weight: 700; font-size: clamp(2.1rem, 4.8vw, 4.2rem); line-height: 1.25; letter-spacing: -0.01em; }
.title-sm { font-size: clamp(1.8rem, 3.2vw, 2.7rem); }
.lede { max-width: 34em; font-size: clamp(1.0625rem, 1.3vw, 1.2rem); line-height: 1.95; color: var(--muted); }

/* Slide chrome: running label, hairline, section number. */
.meta { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); font-size: 0.875rem; font-weight: 500; color: var(--ink-2); }
.meta i { flex: 1; height: 1px; background: var(--line); }
.meta .num { font: 500 1rem/1 var(--mono); letter-spacing: 0.1em; color: var(--black); }
.meta-dark { color: rgb(220 215 201 / 0.6); }
.meta-dark i { background: var(--line-dark); }
.meta-dark .num { color: var(--stone); }

.sec-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(20px, 5vw, 80px); align-items: end; margin-bottom: clamp(40px, 6vw, 72px); }

/* ───────────── buttons ───────────── */
.btn {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border: 1.5px solid transparent; border-radius: 999px; font-weight: 500; font-size: 0.975rem; line-height: 1.2; cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(-5px); }
.btn-lg { padding: 16px 30px; font-size: 1.0625rem; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-ink { background: var(--black); color: var(--stone); }
.btn-ink:hover { background: var(--ink-2); }
.btn-ghost { border-color: var(--black); color: var(--black); }
.btn-ghost:hover { background: var(--black); color: var(--stone); }
.btn-stone { background: var(--stone); color: var(--black); }
.btn-stone:hover { background: #fff; }
.btn-icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; transition: border-color 0.25s, background-color 0.25s; }
.btn-icon:hover { border-color: var(--black); }

/* ───────────── lockup ───────────── */
.lockup { display: inline-flex; align-items: center; gap: 0.24em; height: 1em; line-height: 1; color: var(--black); }
.lk-mark { height: 1em; width: auto; }
.lk-text { display: flex; flex-direction: column; gap: 0.05em; }
.lk-latin { font: 600 0.5em/0.9 var(--font); letter-spacing: -0.02em; }
.lk-ar { font: 500 0.32em/1 var(--font); color: var(--ink-2); }

/* ───────────── bauhaus grid ───────────── */
.bauhaus { width: 100%; height: auto; }
.bh-bg { fill: var(--paper); transition: fill 0.4s; }
.bh-shape { fill: var(--ink); transform-box: fill-box; transform-origin: center; transform: rotate(var(--rot)); transition: transform 0.7s var(--spring), fill 0.4s; }
.bh-cell.is-inv .bh-bg { fill: var(--ink); }
.bh-cell.is-inv .bh-shape { fill: var(--stone); }
.bh-cell.is-mark .bh-bg { fill: var(--black); }
.bh-mark { fill: var(--stone); }
/* Hero composition: each square (and the logo) turns on its own, slowly and smoothly. */
.hero-bh .bh-cell, .hero-bh .is-mark { cursor: pointer; outline: none; }
.hero-bh .bh-spin { transform-box: fill-box; transform-origin: center; transform: rotate(var(--rot)); transition: transform 1.2s var(--ease-io); }
.hero-bh .bh-fill { fill: var(--ink); transition: fill 0.4s; }
.hero-bh .is-inv .bh-fill { fill: var(--stone); }
.hero-bh .is-mark .bh-bg { fill: var(--black); }
.hero-bh .bh-cell:not(.is-inv):hover .bh-bg { fill: var(--stone-deep); }
.hero-bh .bh-cell.is-inv:hover .bh-bg { fill: var(--black); }
.bauhaus.is-live .bh-cell:not(.is-mark) { cursor: pointer; }
.bauhaus.is-live, .bauhaus.is-live .bh-cell { outline: none; -webkit-tap-highlight-color: transparent; user-select: none; }
.bauhaus.is-live .bh-cell:not(.is-mark):hover .bh-bg { fill: var(--stone-deep); }
.bauhaus.is-live .bh-cell.is-inv:not(.is-mark):hover .bh-bg { fill: var(--black); }

/* ───────────── bands ───────────── */
.band { height: 48px; background-repeat: repeat-x; background-size: auto 100%; }
.band-framed { border-block: 2px solid var(--black); padding-block: 4px; background-clip: content-box; background-origin: content-box; height: 58px; }
.band[data-animated] { animation: drift var(--drift-dur, 60s) linear infinite; }
@keyframes drift { to { background-position-x: calc(-1 * var(--tile-w, 400px)); } }

/* ───────────── intro ───────────── */
.intro { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: var(--stone); clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--ease-io); cursor: pointer; }
.intro.is-out { clip-path: inset(0 0 100% 0); }
.intro-logo { font-size: clamp(96px, 14vw, 170px); }
.intro-logo .ra-head { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: pop 0.9s var(--spring) 0.2s forwards; }
.intro-logo .ra-tail { transform-box: view-box; transform-origin: 100px 100px; transform: rotate(-90deg); opacity: 0; animation: sweep 1.1s var(--ease-io) 0.55s forwards; }
.intro-logo .lk-latin { clip-path: inset(0 100% 0 0); animation: wipe-l 1s var(--ease-io) 0.9s forwards; }
.intro-logo .lk-ar { opacity: 0; transform: translateY(8px); animation: rise-in 0.8s var(--ease) 1.45s forwards; }
.intro-line { position: absolute; bottom: 0; inset-inline: 0; height: 5px; background: var(--black); transform: scaleX(0); transform-origin: right; animation: line 2.3s var(--ease-io) 0.1s forwards; }
@keyframes pop { to { transform: none; } }
@keyframes sweep { 10% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes wipe-l { to { clip-path: inset(0 0 0 0); } }
@keyframes rise-in { to { opacity: 1; transform: none; } }
@keyframes line { to { transform: scaleX(1); } }

/* ───────────── nav ───────────── */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 50; display: flex; align-items: center; gap: 28px;
  padding: 18px max(16px, (100% - 1240px) / 2); border-bottom: 1px solid transparent;
  transition: background-color 0.35s, padding 0.35s var(--ease), border-color 0.35s, transform 0.9s var(--ease) 0.4s;
}
.nav.is-solid { background: rgb(220 215 201 / 0.94); backdrop-filter: blur(10px); padding-block: 12px; border-color: var(--line); }
.nav-brand { display: flex; font-size: 44px; transition: font-size 0.35s var(--ease); }
.nav.is-solid .nav-brand { font-size: 38px; }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a { position: relative; padding: 8px 12px; font-weight: 500; font-size: 0.95rem; color: var(--ink-2); transition: color 0.25s; }
.nav-links a::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--black); transform: scale(0); transition: transform 0.35s var(--spring); }
.nav-links a:hover, .nav-links a.is-active { color: var(--black); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scale(1); }
.nav-toggle { display: none; }

/* ───────────── hero ───────────── */
.hero { position: relative; padding-top: 120px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-bottom: clamp(48px, 7vw, 96px); }
.hero-title { position: relative; margin-top: 18px; padding-inline-start: clamp(18px, 2vw, 28px); font-weight: 700; font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: 1.2; letter-spacing: -0.015em; }
.h-bar { position: absolute; inset-block: 0.2em 0.25em; inset-inline-start: 0; width: 8px; border-radius: 8px; background: var(--black); transform: scaleY(0); transform-origin: top; transition: transform 1.2s var(--ease-io) 0.2s; }
.h-mask { display: block; overflow: hidden; padding-block: 0.22em 0.3em; margin-block: -0.22em -0.3em; }
.h-mask > span { display: block; white-space: nowrap; transform: translateY(120%); transition: transform 1.25s var(--ease); transition-delay: var(--d, 0ms); }
.hero-sub { margin-top: 28px; max-width: 30em; font-size: clamp(1.0625rem, 1.35vw, 1.2rem); line-height: 1.95; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-art { position: relative; }
.hero-frame { position: relative; border: clamp(8px, 1vw, 12px) solid var(--black); background: var(--paper); overflow: hidden; }
.hero-grid-art .bh-cell, .hero-grid-art .is-mark { opacity: 0; transition: opacity 0.5s ease; transition-delay: calc(500ms + var(--n, 0) * 45ms); }
.hero-tag { position: absolute; bottom: 0; inset-inline-start: 0; display: flex; align-items: baseline; gap: 10px; padding: 11px 18px; background: var(--black); color: var(--stone); font-size: 0.875rem; pointer-events: none; }
.hero-tag b { font: 500 0.95rem/1 var(--mono); letter-spacing: 0.12em; }
.hero-platforms { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14px; border: 1px solid var(--line); background: var(--paper); }
.hero-platforms li { display: grid; gap: 2px; padding: 12px 14px; font-size: 0.8rem; color: var(--muted); }
.hero-platforms li + li { border-inline-start: 1px solid var(--line); }
.hero-platforms span { font: 500 1rem/1.2 var(--mono); color: var(--black); }

.h-grow { transform: scaleY(0); transform-origin: bottom; transition: transform 1s var(--ease-io) 1.4s; }
.h-fade { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.h-frame { clip-path: inset(0 0 0 100%); transition: clip-path 1.3s var(--ease-io) 0.2s; }
.is-go .h-fade { opacity: 1; transform: none; }
.is-go .h-mask > span { transform: none; }
.is-go .h-bar, .is-go .h-grow { transform: scaleY(1); }
.is-go .h-frame { clip-path: inset(0 0 0 0); }
.is-go .hero-grid-art .bh-cell, .is-go .hero-grid-art .is-mark { opacity: 1; }
.nav { transform: translateY(-110%); }
.is-go .nav { transform: none; }

/* ───────────── what we build ───────────── */
.build { padding-block: clamp(80px, 10vw, 140px); }
.explorer { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.explorer-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick { position: relative; display: grid; gap: 14px; padding: 18px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--paper); text-align: start; cursor: pointer; transition: border-color 0.3s, background-color 0.3s, color 0.3s; }
.pick:hover { border-color: var(--ink); }
.pick svg { width: 64px; height: 64px; }
.pick svg .bh-bg { fill: transparent; }
.pick .p-name { font-weight: 700; font-size: 1.05rem; line-height: 1.35; }
.pick .p-latin { font: 400 0.75rem/1 var(--mono); color: var(--muted); }
.pick[aria-selected="true"] { background: var(--black); border-color: var(--black); color: var(--stone); }
.pick[aria-selected="true"] .bh-shape { fill: var(--stone); }
.pick[aria-selected="true"] .p-latin { color: rgb(220 215 201 / 0.6); }

.explorer-card { position: relative; padding: clamp(24px, 3.4vw, 44px); background: var(--paper); border: 1px solid var(--line); border-top: 8px solid var(--black); }
.explorer-card > * { transition: opacity 0.35s ease, transform 0.5s var(--ease); }
.explorer-card.is-swap > :not(.ec-foot) { opacity: 0; transform: translateY(10px); }
.ec-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ec-num { font: 400 1rem/1 var(--mono); color: var(--muted); }
.ec-num b { font-weight: 500; font-size: 1.4rem; color: var(--black); }
.ec-latin { font: 500 0.85rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.ec-name { margin-top: 22px; font-weight: 700; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.2; }
.ec-desc { margin-top: 14px; font-size: 1.125rem; line-height: 1.9; }
.ec-points { display: grid; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.ec-points li { display: flex; gap: 12px; align-items: baseline; color: var(--muted); line-height: 1.75; }
.ec-points li::before { content: ""; flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--black); transform: translateY(-1px); }
.ec-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; }
.ec-nav { display: flex; gap: 8px; }

/* ───────────── labyrinth panel ───────────── */
.maze-panel { position: relative; display: grid; place-items: center; min-height: clamp(300px, 36vw, 440px); padding: 48px 16px; background-color: var(--black); background-size: 230px; border-block: 6px solid var(--ink-2); animation: maze-drift 90s linear infinite; }
@keyframes maze-drift { to { background-position: 230px 230px; } }
.maze-plate { display: grid; justify-items: center; gap: 18px; padding: clamp(26px, 3.4vw, 40px) clamp(30px, 4.6vw, 60px); background: var(--stone); border-radius: 999px; outline: 8px solid var(--black); box-shadow: 0 0 0 11px var(--stone); }
.maze-plate .lockup { font-size: clamp(70px, 8vw, 104px); }
.maze-plate p { font-weight: 500; font-size: clamp(0.95rem, 1.3vw, 1.1rem); color: var(--ink-2); }

/* ───────────── process ───────────── */
.process { padding-block: clamp(80px, 10vw, 140px); background: var(--paper); }
.flow { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2vw, 28px); padding-top: 38px; }
.flow::before, .flow::after { content: ""; position: absolute; top: 10px; inset-inline: 0; height: 2px; background: var(--line); }
.flow::after { background: var(--black); transform: scaleX(0); transform-origin: right; transition: transform 2.2s var(--ease-io) 0.2s; }
.flow.is-in::after { transform: scaleX(1); }
.flow li { position: relative; }
.flow-dot { position: absolute; top: -38px; inset-inline-start: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); transition: background-color 0.4s, border-color 0.4s, transform 0.5s var(--spring); transition-delay: calc(400ms + var(--i) * 380ms); }
.flow.is-in .flow-dot { background: var(--black); border-color: var(--black); }
.flow-num { font: 500 1rem/1 var(--mono); color: var(--muted); }
.flow h3 { margin-top: 10px; font-weight: 700; font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1.3; }
.flow b { display: inline-block; margin-top: 4px; font-weight: 500; font-size: 0.9rem; color: var(--ink-2); }
.flow p { margin-top: 10px; color: var(--muted); line-height: 1.85; font-size: 0.975rem; }

/* ───────────── vision ───────────── */
.vision { position: relative; overflow: hidden; padding-block: clamp(90px, 11vw, 160px); background: var(--ink); color: var(--stone); }
.vision-maze { position: absolute; inset: 0; background-size: 260px; pointer-events: none; -webkit-mask-image: radial-gradient(75% 95% at 12% 45%, #000 15%, transparent 75%); mask-image: radial-gradient(75% 95% at 12% 45%, #000 15%, transparent 75%); }
.vision .wrap { position: relative; }
.vision-quote p { max-width: 21em; font-weight: 600; font-size: clamp(1.8rem, 3.8vw, 3.3rem); line-height: 1.5; }
.vision-quote em { background: var(--stone); color: var(--black); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.4vw, 32px); margin-top: clamp(48px, 6vw, 80px); padding-top: 30px; border-top: 1px solid var(--line-dark); }
.values li { display: grid; align-content: start; gap: 8px; }
.v-shape { width: 40px; height: 40px; margin-bottom: 6px; }
.v-shape svg { width: 100%; height: 100%; }
.v-shape .bh-bg { fill: transparent; }
.v-shape .bh-shape { fill: var(--stone); }
.values b { font-weight: 700; font-size: 1.15rem; }
.values p { color: rgb(220 215 201 / 0.72); line-height: 1.85; font-size: 0.975rem; }

/* ───────────── join ───────────── */
.join { padding-block: clamp(80px, 10vw, 140px); }
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.frame { border: clamp(8px, 0.9vw, 11px) solid var(--black); background: var(--paper); }
.careers { position: relative; overflow: hidden; display: grid; align-content: start; gap: 18px; padding: clamp(28px, 4vw, 52px); }
.careers > p:not(.kicker) { max-width: 19em; color: var(--muted); font-size: 1.0625rem; line-height: 1.9; }
.careers .btn { justify-self: start; margin-top: 8px; }
.careers-art { position: absolute; width: 24%; inset-inline-end: 0; bottom: 0; opacity: 0.9; pointer-events: none; }
.careers > :not(.careers-art) { position: relative; }
.playtest { position: relative; display: grid; align-content: start; gap: 18px; padding: clamp(28px, 4vw, 52px); background-color: var(--black); background-size: 180px; color: var(--stone); }
.playtest::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, var(--black) 35%, rgb(18 22 23 / 0.75)); pointer-events: none; }
.playtest > * { position: relative; }
.playtest .kicker { color: rgb(220 215 201 / 0.7); }
.pt-sub { max-width: 24em; color: rgb(220 215 201 / 0.8); line-height: 1.9; }
.nl-field { display: flex; gap: 6px; margin-top: 8px; padding: 6px; background: var(--ink); border: 1.5px solid rgb(220 215 201 / 0.3); border-radius: 999px; }
.nl-field input { flex: 1; min-width: 0; padding: 10px 16px; border: 0; background: transparent; color: var(--stone); font-size: 1rem; }
.nl-field input::placeholder { color: rgb(220 215 201 / 0.45); }
.nl-field input:focus { outline: none; }
.nl-field:focus-within { border-color: var(--stone); }
.nl-msg { min-height: 1.5em; font-weight: 500; }
.playtest .fine { font-size: 0.85rem; color: rgb(220 215 201 / 0.6); }

/* ───────────── contact + footer ───────────── */
.contact { padding-block: clamp(80px, 10vw, 140px) clamp(60px, 7vw, 96px); background: var(--black); color: var(--stone); }
.contact-title { font-weight: 700; font-size: clamp(2.8rem, 8vw, 7rem); line-height: 1.2; }
.contact-title em { background: var(--stone); color: var(--black); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line-dark); }
.contact-grid > div { padding: 22px 0 0; }
.contact-grid > div + div { padding-inline-start: 24px; border-inline-start: 1px solid var(--line-dark); }
.contact-grid dt { font-size: 0.85rem; color: rgb(220 215 201 / 0.6); }
.contact-grid dd { margin-top: 10px; font-weight: 500; font-size: clamp(1.1rem, 1.8vw, 1.45rem); }
.contact-grid a { background: linear-gradient(var(--stone), var(--stone)) left bottom / 0 2px no-repeat; transition: background-size 0.45s var(--ease); }
.contact-grid a:hover { background-size: 100% 2px; }

.foot { background: var(--stone); }
.foot-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-top: clamp(40px, 5vw, 64px); }
.foot-logo { font-size: clamp(90px, 13vw, 170px); }
.foot-tag { color: var(--ink-2); line-height: 1.8; text-align: end; }
.foot-tag span { font: 400 0.85rem/1 var(--mono); color: var(--muted); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-block: 20px 28px; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--muted); }
.foot-latin { font-family: var(--mono); }

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

/* ───────────── responsive ───────────── */
@media (max-width: 960px) {
  .sec-head, .hero-grid, .explorer, .join-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 100px; }
  .hero-art { max-width: 540px; width: 100%; margin-inline: auto; }
  .values { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr; gap: 28px; padding-top: 0; padding-inline-start: 42px; }
  .flow::before, .flow::after { top: 6px; bottom: 6px; inset-inline: auto; inset-inline-start: 10px; width: 2px; height: auto; transform-origin: top; }
  .flow::after { transform: scaleY(0); }
  .flow.is-in::after { transform: scaleY(1); }
  .flow-dot { top: 4px; inset-inline-start: -42px; }
}
@media (max-width: 760px) {
  .nav { gap: 12px; }
  .nav-cta { display: none; }
  .nav-brand, .nav.is-solid .nav-brand { font-size: 38px; }
  .nav-toggle { display: grid; place-items: center; margin-inline-start: auto; width: 44px; height: 44px; border: 1.5px solid var(--black); border-radius: 50%; background: none; cursor: pointer; }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 18px; height: 2px; background: var(--black); transition: transform 0.3s var(--ease); }
  .nav-toggle .bars { position: relative; }
  .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; inset-inline: 0; }
  .nav-toggle .bars::before { top: -6px; }
  .nav-toggle .bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav-links { position: fixed; inset: 68px 0 auto; flex-direction: column; gap: 0; padding: 8px 16px 20px; background: var(--stone); border-bottom: 1px solid var(--line); clip-path: inset(0 0 100% 0); transition: clip-path 0.5s var(--ease-io); }
  .nav-links.is-open { clip-path: inset(0 0 0 0); }
  .nav-links a { padding: 14px 4px; font-size: 1.125rem; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .hero-platforms { grid-template-columns: 1fr 1fr; }
  .hero-platforms li:nth-child(3) { border-inline-start: 0; }
  .hero-platforms li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .explorer-pick { gap: 8px; }
  .pick { padding: 14px; }
  .pick svg { width: 48px; height: 48px; }
  .values { grid-template-columns: 1fr; }
  .careers-art { width: 30%; opacity: 0.25; }
  .maze-plate { border-radius: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > div + div { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid var(--line-dark); margin-top: 18px; }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .foot-tag { text-align: start; }
  .ec-foot { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .intro { display: none; }
  [data-reveal], .h-fade, .h-mask > span, .hero-grid-art .bh-cell { opacity: 1; transform: none; }
  .h-bar, .h-grow { transform: none; }
  .h-frame { clip-path: none; }
  .nav { transform: none; }
}
