/* ==========================================================================
   Orea — landing
   Palette: warm ivory and earth on deep navy-black, one accent (ice).
   Corners: soft 18px cards, pill controls. Motion belongs to the 3D stage;
   the page itself stays still and only fades in.
   ========================================================================== */
:root {
  --bg: #05070c;
  --bg-2: #121110;
  --fg: #f7f1e8;
  --fg-2: #d7d1c9;
  --muted: #c3bbaf;
  --dim: #b7ada0;
  --earth: #c3bbb0;
  --line: rgba(220, 230, 255, 0.08);
  --line-2: rgba(220, 230, 255, 0.15);
  --ice: #d6d0c8;
  --radius: 18px;
  /* solid, cut surfaces: opaque body, a lit top bevel, a dark bottom bevel, a deep drop */
  --surface: linear-gradient(155deg, rgba(20, 27, 43, 0.96), rgba(9, 13, 23, 0.94));
  --bevel: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 -1px 0 rgba(0, 0, 0, 0.55);
  --drop: 0 12px 36px -22px rgba(0, 0, 0, 0.8), 0 32px 64px -36px rgba(0, 0, 0, 0.65);
  --font: "Noto Kufi Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-latin: "Sora", "Noto Kufi Arabic", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --tshadow: 0 1px 2px rgba(5, 7, 12, 0.95), 0 3px 12px rgba(5, 7, 12, 0.78), 0 10px 44px rgba(5, 7, 12, 0.8);
  color-scheme: dark only;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
}
main:focus { outline: none; }
.skip { position: fixed; top: 10px; inset-inline-start: 10px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: #f7f6f5; color: #070a12; transform: translateY(-150%); transition: transform 0.2s var(--ease); }
.skip:focus { transform: none; }
body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }
/* a section off screen keeps its loops still: some move `top`, which cost a full layout every frame wherever you were */
section.is-off *, section.is-off *::before, section.is-off *::after { animation-play-state: paused !important; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: rgba(159, 211, 255, 0.35); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.ic { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width:var(--orea-icon-stroke,1.5); stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- stage ---------- */
.stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.belt { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; pointer-events: none; }
.no-webgl .belt { display: none; }
.stage-fallback {
  position: fixed; inset: 0; z-index: 0; display: none;
  background: #000 url("../img/studio/orea-night-dust.png") center / 100% 100% no-repeat;
}
.stage-fallback::after { content: ""; position: absolute; inset: 0; background: transparent; }
.no-webgl .stage { display: none; }
.no-webgl .stage-fallback { display: block; }
.hero__fallback-img { display: none; }
.no-webgl .hero__fallback-img {
  display: block; height: 100%; width: 100%; object-fit: contain;
}
.grain {
  /* only as much overscan as the jitter needs (a 200% layer cost 4x the GPU memory);
     the keyframes move it by exactly the same distance as before */
  position: fixed; inset: -8%; z-index: 2; pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  /* A still grain layer keeps texture without constant screen-wide jitter. */
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-5.1724%, 3.4483%); } 66% { transform: translate(3.4483%, -5.1724%); } 100% { transform: translate(0, 0); } }
.nav-sentinel { position: absolute; top: 24px; left: 0; width: 1px; height: 1px; pointer-events: none; }

main, .footer { position: relative; z-index: 3; }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--bg); transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.preloader img { width: 84px; height: auto; animation: pre-pulse 1.8s ease-in-out infinite; }
.preloader.done { opacity: 0; visibility: hidden; }
.preloader.done img { animation-play-state: paused; }   /* gone: its pulse would still restyle every frame */
@keyframes pre-pulse { 50% { opacity: 0.6; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; height: auto; padding: 10px 20px; border-radius: 6px; border: 1px solid transparent;
  font-family: var(--dw-font, var(--font)); font-size: 15px; font-weight: 500; line-height: 1.5; white-space: nowrap; cursor: pointer;
  transition: background 0.16s, border-color 0.16s, color 0.16s;
}
.btn:hover { transform: none; }
.btn:active { transform: translateY(1px); }
.btn--light { background: #f6efe5; color: #0e0d0c; }
.btn--light:hover { background: #fffaf3; box-shadow: none; }
.btn--ghost { background: #1d1c1b; border-color: #595248; color: var(--fg); }
.btn--ghost:hover { background: #302f2e; border-color: #82786b; }
.btn--lg { height: 52px; padding: 0 28px; font-size: 16px; }
.btn .ic { font-size: 18px; transition: transform 0.25s var(--ease); }
.btn:hover .ic { transform: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 68px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 0 max(20px, calc((100% - 1240px) / 2));
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(5, 7, 12, 0.66); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-color: var(--line); }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-latin); font-weight: 600; font-size: 17px; letter-spacing: 0.01em; direction: ltr; justify-self: start; }
.brand img { width: 26px; height: auto; flex: none; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 6px; font-family: var(--dw-font, var(--font)); font-size: 15px; color: var(--fg-2); transition: color 0.16s, background 0.16s; }
.nav__links a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.06); }
.nav__cta { display: flex; gap: 8px; justify-self: end; align-items: center; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.nav__burger span:first-child { top: 16px; }
.nav__burger span:last-child { top: 24px; }
.nav.open .nav__burger span:first-child { top: 20px; transform: rotate(45deg); }
.nav.open .nav__burger span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- reveal (JS only; content is readable without it) ---------- */
.js [data-reveal] { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal]:not(.in) { opacity: 0; transform: translateY(18px); }

/* ---------- type ---------- */
.section-title { font-size: clamp(34px, 4.6vw, 60px); font-weight: 600; line-height: 1.2; max-width: 820px; margin-bottom: 56px; }
.section-title--center { text-align: center; margin-inline: auto; }
.dim { color: var(--earth); }
h2 .dim { display: inline-block; }   /* a two-tone heading breaks only where the tone changes */

/* ---------- wordmark: plain ivory; the dot of the i is a cut diamond ---------- */
.wm { position: relative; display: inline-block; font-family: var(--font-latin); font-weight: 600; letter-spacing: -0.01em; direction: ltr; white-space: nowrap; color: var(--fg); }
.wm__i { position: relative; }
.wm__i::before { content: ""; position: absolute; left: 50%; top: 0.06em; width: 0.42em; height: 0.39em; transform: translateX(-50%); background: url("../img/gems/hunter.svg") center / contain no-repeat; }

/* ---------- hero ---------- */
.hero {
  min-height: min(900px, 100svh); height: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 100px 20px 64px; position: relative; gap: 22px;
}
@media (max-height: 640px) { .hero { height: auto; } }
.hero__stage { position: relative; flex: none; width: 100%; height: clamp(230px, 43svh, 400px); display: grid; place-items: center; }
.hero__slot { position: relative; width: min(420px, 70vw); height: 100%; }
.hero__slot picture { display: block; height: 100%; }
.hero__bottom { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 18px; width: 100%; }
.hero__tag { font-size: clamp(26px, 3.2vw, 46px); font-weight: 500; line-height: 1.45; color: var(--fg); max-width: 1040px; text-shadow: 0 2px 18px rgba(5, 7, 12, 0.9); }
.hero__lead { color: var(--fg-2); font-size: 16px; line-height: 1.7; }

/* the ask bar: the chat's own composer, met on the first screen */
.ask {
  width: min(700px, 100%); height: 60px; display: flex; align-items: center; gap: 8px;
  padding: 0 8px; padding-inline-start: 20px; border-radius: 10px;
  background: rgba(12, 16, 25, 0.72); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(247, 241, 232, .055), 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  transition: border-color 0.2s, background 0.2s;
}
.ask:focus-within { border-color: rgba(247, 241, 232, 0.4); background: rgba(12, 16, 25, 0.86); }
.ask input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--fg); font: inherit; font-size: 16px; }
.ask input::placeholder { color: var(--muted); }
.ask__send { width: 44px; height: 44px; flex: none; border: 0; padding: 0; border-radius: 6px; background: #f6efe5; color: #0e0d0c; display: grid; place-items: center; cursor: pointer; transition: background 0.16s; }
.ask__send .ic { font-size: 19px; stroke-width:var(--orea-icon-stroke,1.5); }
.ask__send:hover { background: #fffaf3; }
.ask__send:active { transform: translateY(1px); }

/* ---------- statement ---------- */
.statement { height: 150svh; position: relative; }
.statement__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.statement__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.statement__text { font-size: clamp(25px, 3.1vw, 42px); line-height: 1.7; font-weight: 500; }
.statement__text .w { opacity: 0.4; transition: opacity 0.35s, color 0.35s; }
.statement__text .w.on { opacity: 1; }
.statement__text .w.hot { color: #e2ded8; }

/* ---------- features ---------- */
.features, .models, .demo { padding: clamp(80px, 11svh, 130px) 0; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 10px; padding: 30px;
  background: #1a1918;
  border: 1px solid #3b3a39;
  transition: border-color 0.4s, opacity 0.9s var(--ease), transform 0.9s var(--ease);
  box-shadow: none;
}
.card:hover { border-color: #5e564c; }
.card--media { min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; }
.card__art { position: absolute; top: 24px; left: 50%; height: 56%; width: auto; z-index: -1; transform: translateX(-50%); filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.6)) brightness(0.92); transition: transform 1.2s var(--ease); }
.card__art--line { height: 50%; top: 30px; filter: none; }
.card:hover .card__art { transform: translateX(-50%); }
.card--xl { grid-column: span 2; min-height: 300px; --pool-x: 25%; --pool-y: 50%; }
.card--wide { --pool-x: 16%; --pool-y: 50%; }
.card__side { position: absolute; inset-block: 0; inset-inline-end: 0; width: 50%; height: 100%; padding: 14px; object-fit: contain; z-index: -1; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55)); transition: transform 1.2s var(--ease); }
.card__side--steel { width: 34%; padding: 22px; }
.card.card--xl > h3, .card.card--xl > p, .card.card--xl > .think { max-width: 48%; }
.card:hover .card__side { transform: none; }
.card--wide { grid-column: span 3; min-height: 240px; }
.card h3 { font-size: 22px; margin: 0 0 8px; position: relative; z-index: 2; }
.card p { color: var(--fg-2); font-size: 15.5px; position: relative; z-index: 2; max-width: 46ch; }
.think { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.think li { color: var(--muted); padding-inline-start: 18px; position: relative; }
.think li::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-radius: 1px; transform: rotate(45deg); background: var(--muted); }
.js .card:not(.in) .think li { opacity: 0; transform: translateY(6px); }
.card.in .think li { animation: think-in 0.6s var(--ease) both; animation-delay: calc(0.5s + var(--d)); }
.think__done { color: #ecd2ab !important; }
.think__done::before { background: #ecd2ab !important; }
@keyframes think-in { from { opacity: 0; transform: translateY(6px); } }
.mini-code { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); font: 13px/1.7 ui-monospace, "SFMono-Regular", Menlo, monospace; color: #e1ddd8; overflow: hidden; text-align: left; }
.mini-code .k { color: #d6d0c8; } .mini-code .f { color: #f1efed; } .mini-code .s { color: #d1cbc2; } .mini-code .c { color: #8c8273; }

/* ---------- demo ---------- */
.demo__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.demo__copy .section-title { margin-bottom: 0; }
.demo__copy p { color: var(--fg-2); margin: 20px 0 30px; max-width: 460px; }
.window {
  border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface);
  box-shadow: var(--bevel), var(--drop);
}
.window__bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.window__bar img { width: 26px; height: 26px; border-radius: 50%; }
.window__bar b { font-family: var(--font-latin); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; direction: ltr; }
.window__bar span { font-size: 13px; color: var(--muted); }
.window__body { height: 380px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 18%); mask-image: linear-gradient(transparent, #000 18%); }
.window__composer { margin: 0 18px 18px; height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 7px; padding-inline-start: 20px; color: var(--muted); font-size: 14.5px; border-radius: 999px; background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line-2); }
.window__composer span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.window__composer b { width: 34px; height: 34px; flex: none; border-radius: 50%; background: #f6efe5; display: grid; place-items: center; }
.window__composer b::after { content: ""; width: 8px; height: 8px; border-left: 2px solid #0e0d0c; border-top: 2px solid #0e0d0c; transform: translateY(2px) rotate(45deg); }
.window__composer.typing span { color: var(--fg); }
.dm { max-width: 86%; font-size: 15px; line-height: 1.75; animation: dm-in 0.5s var(--ease) both; }
.dm--user { align-self: flex-end; background: rgba(255, 255, 255, 0.08); padding: 10px 16px; border-radius: 20px; border-end-end-radius: 6px; }
.dm--bot { align-self: flex-start; display: flex; gap: 12px; color: var(--fg-2); }
.dm--bot img { width: 24px; height: 24px; border-radius: 50%; align-self: flex-start; flex: none; margin-top: 3px; }
.dm--bot b { color: var(--fg); font-weight: 600; }
.dm .caret { display: inline-block; width: 2px; height: 1.05em; background: var(--fg); margin-inline-start: 3px; animation: blink 1s steps(1) infinite; vertical-align: -0.15em; }
@keyframes dm-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes blink { 50% { opacity: 0.2; } }

/* ---------- core ---------- */
.core { height: 220svh; position: relative; }
.scene-marker { position: absolute; inset-inline: 0; height: 1px; pointer-events: none; }
.core__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: stretch; }
.core__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 96px 0 40px; text-shadow: var(--tshadow); }
.core__inner .btn { text-shadow: none; }
.core__slot { flex: 1 1 auto; width: min(520px, 100%); min-height: 140px; }
.core__title { font-size: clamp(34px, 4.8vw, 66px); font-weight: 600; line-height: 1.15; }
.core__lead { color: var(--fg-2); max-width: 540px; text-shadow: 0 2px 18px rgba(5, 7, 12, 0.9); }
.pillars { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(860px, 100%); border-top: 1px solid var(--line-2); }
.pillars li { padding: 22px 18px 0; display: grid; gap: 4px; text-align: start; }
.pillars li + li { border-inline-start: 1px solid var(--line); }
.pillars b { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; }
.pillars span { color: var(--fg-2); font-size: 15px; }

/* ---------- models ---------- */
/* triptych: tall art cards, art fades into the card, type scales with the card */
.tri-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tri {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column;
  border-radius: 10px; border: 1px solid #3b3a39; background: #1a1918; color: var(--fg);
  box-shadow: none;
  container-type: inline-size;
  transition: border-color 0.4s, opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.tri:hover { border-color: #5e564c; }
.tri--lead, .tri--lead:hover { border-color: #a39a8e; box-shadow: none; }
.tri__art { position: absolute; inset: 0 0 auto 0; z-index: -1; aspect-ratio: 598 / 760; }
/* The original wolf artwork carries each model's identity. */
.tri__art img { position: absolute; left: 50%; bottom: 24.5%; height: 49%; width: auto; transform: translateX(-50%); filter: drop-shadow(0 26px 30px rgba(0, 0, 0, 0.6)); transition: transform 1.4s var(--ease); }
.tri:hover .tri__art img { transform: translateX(-50%); }
.tri__art--alpha { --pool: rgba(80, 156, 255, 0.3); }
.tri__art--hunter { --pool: rgba(222, 230, 242, 0.17); }
.tri__art--scout { --pool: rgba(126, 108, 240, 0.28); }
.tri__art--scout img { height: 45%; filter: none; }
.tri__head { position: relative; padding: 5.4cqw 5.4cqw 0; text-shadow: 0 2px 16px rgba(5, 7, 12, 0.7); }
.tri__title { display: block; direction: ltr; text-align: right; font-family: var(--font-latin); font-weight: 600; letter-spacing: -0.035em; font-size: clamp(34px, 11.4cqw, 64px); line-height: 1.06; }
.tri__space { aspect-ratio: 592 / 470; }
.tri__copy { position: relative; flex: 1; display: flex; flex-direction: column; gap: 3cqw; padding: 0 5.4cqw 6cqw; font-size: clamp(14px, 4.2cqw, 17px); line-height: 1.6; color: var(--fg-2); }
.tri__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; padding-top: 3.5cqw; border-top: 1px solid rgba(255, 255, 255, 0.09); font-size: 13.5px; color: var(--muted); }
.tri__meta span:not(:last-child)::after { content: "|"; margin-inline-start: 10px; opacity: 0.5; }
.tri .btn { align-self: flex-start; margin-top: auto; }

/* ---------- gallery ring ---------- */
.gallery { padding: 18vh 0 12vh; overflow: hidden; }
.gallery .section-title { margin-bottom: 24px; }
.ring-stage { height: 368px; perspective: 1600px; perspective-origin: 50% 40%; display: grid; place-items: center; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ring-stage.dragging { cursor: grabbing; }
/* the gallery ring is shown at 80% (owner 2026-10-05): the whole ring scales, radius included */
.ring { position: relative; width: 340px; height: 192px; scale: 0.8; transform-style: preserve-3d; transform: rotateX(-6deg) rotateY(var(--rot, 0deg)); }
/* two-sided cards: the front plays a short chat, the back (seen when the card turns away) holds a wolf */
.ring .face {
  position: absolute; inset: 0; margin: 0; border-radius: 16px; overflow: hidden; container-type: size;
  transform: rotateY(calc(var(--k) * var(--step, 45deg))) translateZ(var(--r, 460px)) scale(var(--lift, 1));
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09); background: var(--surface);
  box-shadow: var(--bevel), 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  -webkit-box-reflect: below 14px linear-gradient(transparent 62%, rgba(255, 255, 255, 0.14));
  transition: transform 0.7s var(--ease), border-color 0.5s, box-shadow 0.7s var(--ease);
}
.ring .face--back { transform: rotateY(calc(var(--k) * var(--step, 45deg))) translateZ(var(--r, 460px)) rotateY(180deg) scale(var(--lift, 1)); }
.face--back::before { content: ""; position: absolute; inset: 0; background: radial-gradient(48% 56% at 50% 44%, var(--pool), transparent 72%); }
.face--alpha { --pool: rgba(80, 156, 255, 0.3); }
.face--hunter { --pool: rgba(222, 230, 242, 0.16); }
.face--scout { --pool: rgba(126, 108, 240, 0.28); }
.face__wolf { position: absolute; left: 50%; top: 8%; height: 66%; width: auto; transform: translateX(-50%); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.6)); pointer-events: none; transition: transform 1.2s var(--ease); }
.face--scout .face__wolf { height: 60%; top: 10%; filter: drop-shadow(0 0 10px rgba(160, 150, 255, 0.4)); }
.face--back figcaption { position: absolute; inset: auto 0 0 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 5cqw 3.6cqw; pointer-events: none; }
.face--back figcaption b { font-family: var(--font-latin); font-weight: 600; font-size: 6cqw; letter-spacing: -0.02em; direction: ltr; }
.face--back figcaption span { font-size: 3.7cqw; color: var(--muted); }
/* hovered (or tapped) card: the ring eases to a stop and the card lifts toward you */
.ring .face.lift { --lift: 1.08; border-color: rgba(255, 255, 255, 0.2); box-shadow: var(--bevel), 0 40px 90px -28px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(169, 219, 255, 0.14); }
.face--back.lift .face__wolf { transform: translateX(-50%) scale(1.05); }

/* the front of each card: one thing Orea does, played as a small scene */
.mini { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 2.2cqw; padding: 3.6cqw 4.4cqw 4cqw; font-size: 3.5cqw; line-height: 1.5; color: var(--fg-2); text-align: start; }
.mini > :last-child { flex: 1; min-height: 0; }
.mini__bar { flex: none; display: flex; align-items: center; gap: 1.8cqw; font: 600 3.4cqw/1 var(--font); color: var(--fg); }
.mini__bar img { height: 5cqw; width: auto; }
.mini__model { margin-inline-start: auto; font: 600 3.5cqw/1 var(--font-latin); letter-spacing: -0.01em; direction: ltr; }

/* chat */
.mini--chat { gap: 2cqw; }
.mini--chat > :last-child { flex: none; }
.mini__thread { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 2cqw; overflow: hidden; }
.mini__q { align-self: flex-end; max-width: 80%; padding: 1.4cqw 3cqw; border-radius: 3.4cqw; border-end-end-radius: 1.2cqw; background: rgba(255, 255, 255, 0.08); color: var(--fg); }
.mini__a { display: flex; align-items: flex-start; gap: 2.2cqw; }
.mini__a > img { height: 5.6cqw; width: auto; flex: none; margin-top: 0.4cqw; }
.mini__composer { display: flex; align-items: center; gap: 2cqw; height: 9cqw; padding-inline: 3cqw 1.6cqw; border-radius: 2cqw; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.mini__typing { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; color: var(--fg); }
.mini__typing:empty::before { content: "اسأل Orea…"; color: var(--dim); }
.mini__typing.is-typing::after { content: ""; display: inline-block; width: 1px; height: 1.1em; margin-inline-start: 1px; vertical-align: -0.2em; background: var(--fg); animation: blink 1s steps(1) infinite; }
.mini__send { flex: none; width: 3.2cqw; height: 3.2cqw; margin-inline-end: 1.4cqw; transform: rotate(45deg); background: linear-gradient(135deg, #ffffff, #c9bba6); box-shadow: 0 0 8px rgba(236, 210, 171, 0.3); }

/* code */
.sc-code { display: flex; flex-direction: column; border-radius: 2cqw; overflow: hidden; background: rgba(0, 0, 0, 0.32); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); text-align: left; }
.sc-code__tab { display: flex; align-items: center; gap: 1.4cqw; padding: 1.4cqw 2.6cqw; font: 500 3cqw/1 ui-monospace, "SFMono-Regular", Menlo, monospace; color: var(--muted); background: rgba(255, 255, 255, 0.04); }
.sc-code__tab i { width: 1.8cqw; height: 1.8cqw; transform: rotate(45deg); background: #e3b86f; }
.sc-code__src { flex: 1; display: grid; align-content: start; gap: 0.6cqw; padding: 2.4cqw 3cqw; font: 3.3cqw/1.55 ui-monospace, "SFMono-Regular", Menlo, monospace; color: #e4dccf; white-space: pre; }
.sc-code .k { color: #e3b86f; } .sc-code .f { color: #f3ece2; } .sc-code .n { color: #d6d0c8; }
.sc-code__run { align-self: flex-start; margin: 0 3cqw 2.6cqw; padding: 0.8cqw 2.4cqw; border-radius: 1.4cqw; font: 500 3.1cqw/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; color: #cfe8c4; background: rgba(150, 210, 140, 0.1); }
.sc-code__run b { color: #9ee08f; }

/* voice */
.sc-voice { display: flex; align-items: center; gap: 4cqw; }
.sc-voice__mic { position: relative; flex: none; width: 15cqw; height: 15cqw; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(180deg, #353433, #1f1e1d); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); color: #ecd2ab; }
.sc-voice__mic svg { width: 7cqw; height: 7cqw; fill: none; stroke: currentColor; stroke-width:var(--orea-icon-stroke,1.5); stroke-linecap: round; }
.sc-voice__ring { position: absolute; inset: -1.6cqw; border-radius: 50%; border: 1px solid rgba(236, 210, 171, 0.5); animation: ring-out 1.8s var(--ease) infinite; }
@keyframes ring-out { from { transform: scale(0.85); opacity: 0.9; } to { transform: scale(1.25); opacity: 0; } }
.sc-voice__body { flex: 1; min-width: 0; display: grid; gap: 2cqw; align-content: center; }
.sc-voice__wave { display: flex; align-items: center; gap: 1cqw; height: 9cqw; }
.sc-voice__wave i { flex: 1; height: 30%; border-radius: 1cqw; background: linear-gradient(180deg, #ecd2ab, #a58b70); animation: wave 0.9s ease-in-out infinite alternate; }
.sc-voice__wave i:nth-child(3n) { animation-duration: 0.7s; } .sc-voice__wave i:nth-child(4n + 1) { animation-duration: 1.1s; } .sc-voice__wave i:nth-child(5n + 2) { animation-delay: -0.4s; }
@keyframes wave { to { height: 100%; } }
.sc-voice__text { color: var(--fg); font-size: 3.7cqw; }
.sc-voice__done { justify-self: start; padding: 0.8cqw 2.6cqw; border-radius: 99px; font-size: 3.1cqw; color: #f3e4cc; background: rgba(236, 210, 171, 0.12); box-shadow: inset 0 0 0 1px rgba(236, 210, 171, 0.25); }

/* vision */
.sc-vision { display: flex; align-items: stretch; gap: 3.4cqw; }
.sc-vision__img { position: relative; flex: none; width: 38%; border-radius: 2cqw; overflow: hidden; background: radial-gradient(60% 60% at 50% 45%, rgba(80, 156, 255, 0.22), transparent 75%), #151413; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.sc-vision__img img { position: absolute; inset: 8% 10%; width: 80%; height: 84%; object-fit: contain; }
.sc-vision__scan { position: absolute; inset: 0 0 auto; height: 1.4cqw; background: linear-gradient(180deg, transparent, rgba(159, 211, 255, 0.9), transparent); box-shadow: 0 0 10px rgba(159, 211, 255, 0.7); animation: scan 1.8s ease-in-out infinite alternate; }
@keyframes scan { from { top: 4%; } to { top: 92%; } }
.sc-vision__box { position: absolute; inset: 12% 14% 10% 16%; border: 1px solid #ecd2ab; border-radius: 1cqw; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.18), 0 0 10px rgba(236, 210, 171, 0.4); }
.sc-vision__tags { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1.8cqw; }
.sc-vision__tags span { align-self: flex-start; padding: 0.9cqw 2.4cqw; border-radius: 1.4cqw; font-size: 3.2cqw; color: var(--fg); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.sc-vision__tags b { font: 600 3cqw/1 var(--font-latin); color: #ecd2ab; }

/* translate */
.sc-tr { display: flex; align-items: center; gap: 2.6cqw; }
.sc-tr__pane { flex: 1; min-width: 0; align-self: stretch; display: grid; align-content: center; gap: 1.2cqw; padding: 2.4cqw 3cqw; border-radius: 2cqw; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.sc-tr__pane small { font-size: 2.8cqw; color: var(--dim); }
.sc-tr__pane p { color: var(--fg); font-size: 3.8cqw; line-height: 1.45; }
.sc-tr__pane[dir="ltr"] p { font-family: var(--font-latin); font-size: 3.5cqw; text-align: left; }
.sc-tr__swap { flex: none; width: 8cqw; height: 8cqw; display: grid; place-items: center; border-radius: 50%; color: #ecd2ab; background: rgba(236, 210, 171, 0.1); }
.sc-tr__swap svg { width: 4.6cqw; height: 4.6cqw; fill: none; stroke: currentColor; stroke-width:var(--orea-icon-stroke,1.5); stroke-linecap: round; stroke-linejoin: round; }

/* summary */
.sc-sum { display: flex; align-items: center; gap: 4cqw; }
.sc-sum__doc { position: relative; flex: none; width: 34%; align-self: stretch; display: grid; align-content: center; gap: 1.5cqw; padding: 3cqw; border-radius: 1.6cqw; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); overflow: hidden; }
.sc-sum__doc i { height: 1.3cqw; border-radius: 1cqw; background: rgba(220, 205, 185, 0.28); }
.sc-sum__doc i:nth-child(2n) { width: 82%; } .sc-sum__doc i:nth-child(3n) { width: 64%; } .sc-sum__doc i:last-of-type { width: 46%; }
.sc-sum__hl { position: absolute; inset-inline: 2cqw; height: 3.4cqw; border-radius: 0.8cqw; background: rgba(236, 210, 171, 0.22); mix-blend-mode: screen; animation: highlight 1.5s ease-in-out infinite alternate; }
@keyframes highlight { from { top: 18%; } to { top: 70%; } }
.sc-sum__out { flex: 1; margin: 0; padding: 0; list-style: none; display: grid; gap: 1.8cqw; }
.sc-sum__out li { position: relative; padding-inline-start: 3.4cqw; color: var(--fg); font-size: 3.6cqw; }
.sc-sum__out li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 1.5cqw; height: 1.5cqw; transform: rotate(45deg); background: #ecd2ab; }

/* deep thinking */
.sc-think { position: relative; margin: 0; padding: 0 5cqw 0 0; list-style: none; display: grid; align-content: center; gap: 2.2cqw; font-size: 3.7cqw; color: var(--muted); }
.sc-think::before { content: ""; position: absolute; inset-inline-start: 1cqw; top: 1.4cqw; bottom: 1.4cqw; width: 1px; background: linear-gradient(180deg, rgba(236, 210, 171, 0.6), rgba(236, 210, 171, 0.1)); }
.sc-think li { position: relative; }
.sc-think li::before { content: ""; position: absolute; inset-inline-start: -5cqw; top: 0.55em; width: 2cqw; height: 2cqw; transform: rotate(45deg); background: #6d5f52; box-shadow: 0 0 0 0.6cqw #131211; }
.sc-think li.on::before, .mini:not([data-playing]) .sc-think li::before { background: #ecd2ab; }
.sc-think__done { display: flex; align-items: center; gap: 1.6cqw; color: #f3e4cc; font-weight: 500; }
.sc-think__done img { width: 4.6cqw; height: 4.6cqw; }

/* data */
.sc-chart { position: relative; display: flex; flex-direction: column; gap: 1.6cqw; }
.sc-chart__bars { position: relative; flex: 1; display: flex; direction: ltr; align-items: flex-end; gap: 2.4cqw; padding: 0 1cqw; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.sc-chart__bars i { flex: 1; height: var(--h); border-radius: 1cqw 1cqw 0 0; background: linear-gradient(180deg, #ecd2ab, rgba(165, 139, 112, 0.45)); transform-origin: 50% 100%; transition-delay: calc(var(--i) * 0.09s) !important; }
.sc-chart__line { position: absolute; inset: 0 1cqw; width: calc(100% - 2cqw); height: 100%; overflow: visible; pointer-events: none; }
.sc-chart__line polyline { fill: none; stroke: #d6d0c8; stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 3px rgba(159, 211, 255, 0.7)); }
.sc-chart__chip { position: absolute; top: 0; left: 1cqw; padding: 0.8cqw 2.4cqw; border-radius: 1.4cqw; font-size: 3.2cqw; color: #f3e4cc; background: rgba(12, 16, 25, 0.85); box-shadow: inset 0 0 0 1px rgba(236, 210, 171, 0.3); }

/* how a scene plays (landing.js steps through data-at / data-off; without JS every card shows its finished state) */
.mini [data-at], .mini [data-off] { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), clip-path 1.1s steps(20, end), stroke-dashoffset 1.2s var(--ease); }
.mini[data-playing] .rv:not(.on), .mini[data-playing] [data-at]:not(.on):not(.rv-type):not(.rv-grow):not(.rv-draw):not(.rv-pop):not(.rv-keys) { opacity: 0; transform: translateY(4px); }
.mini[data-playing] [data-off]:not(.on) { opacity: 0; }
.mini[data-playing] .sc-voice__wave:not(.on) { display: none; }
.mini[data-playing] .rv-type:not(.on) { clip-path: inset(0 0 0 100%); transition: none; }
.mini[data-playing] .rv-type.ltr:not(.on) { clip-path: inset(0 100% 0 0); }
.mini .rv-type.on, .mini:not([data-playing]) .rv-type { clip-path: inset(0); }
.mini[data-playing] .rv-grow:not(.on) { transform: scaleY(0); transition: none; }
.rv-grow { transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) !important; }
.mini .rv-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.mini[data-playing] .rv-draw:not(.on) { stroke-dashoffset: 1; transition: none; }
.mini[data-playing] .rv-pop:not(.on) { opacity: 0; transform: scale(0.96); transition: none; }
.rv-pop { transition: opacity 0.45s var(--ease), transform 0.5s var(--ease) !important; }
.ring-hint { text-align: center; color: var(--fg-2); font-size: 13px; margin-top: 70px; text-shadow: var(--tshadow); }

/* ---------- cta ---------- */
.cta { min-height: 100vh; display: flex; align-items: flex-end; padding-bottom: 14vh; }
.cta__inner { text-align: center; display: grid; justify-items: center; gap: 18px; }
.cta h2 { font-size: clamp(44px, 7vw, 96px); line-height: 1.1; }
.cta p { color: var(--fg-2); font-size: 18px; text-shadow: var(--tshadow); }
.cta__row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(5, 7, 12, 0.5), rgba(5, 7, 12, 0.96)); backdrop-filter: blur(10px); padding: 64px 0 28px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 40px; }
.footer__brand p { color: var(--muted); margin-top: 14px; font-size: 15px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 15px; }
.footer__links a { color: var(--fg-2); transition: color 0.2s; }
.footer__links a:hover { color: var(--fg); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--xl, .card--wide { grid-column: span 2; }
  .demo__grid { grid-template-columns: 1fr; gap: 40px; }
  .statement__grid { grid-template-columns: 1fr; }
  .tri-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .tri__art { aspect-ratio: 598 / 520; }
  .tri__space { aspect-ratio: 592 / 300; }
}
@media (max-width: 860px) {
  .nav { grid-template-columns: auto 1fr; }
  .nav__links {
    position: fixed; top: 68px; inset-inline: 12px; flex-direction: column; gap: 2px; padding: 10px;
    border-radius: 20px; background: rgba(8, 10, 20, 0.94); border: 1px solid var(--line-2); backdrop-filter: blur(20px);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.3s, transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav.open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .nav.open { background: rgba(5, 7, 12, 0.85); backdrop-filter: blur(18px); }
  .nav__links a { padding: 12px 14px; font-size: 16px; }
  .nav__burger { display: inline-block; }
}
@media (max-width: 400px) {
  .nav .btn { padding: 0 14px; font-size: 14px; }
  .brand { font-size: 15.5px; }
}
/* the smallest phones (320–360): brand, button and burger still share one row */
@media (max-width: 360px) {
  .nav { padding: 0 12px; gap: 8px; }
  .brand { font-size: 14px; gap: 7px; }
  .brand img { width: 22px; }
  .nav__cta { gap: 6px; }
  .nav .btn { padding: 0 12px; font-size: 13.5px; }
  .nav__burger { width: 40px; height: 40px; }
  .nav__burger span { left: 11px; right: 11px; }
  .nav__burger span:first-child { top: 15px; }
  .nav__burger span:last-child { top: 23px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .hero { padding: 84px 16px 36px; gap: 18px; min-height: min(820px, 100svh); }
  .hero__stage { height: clamp(190px, 39svh, 330px); }
  .hero__slot { width: min(300px, 86vw); }
  .hero__tag { font-size: clamp(25px, 6.7vw, 32px); }
  .hero__lead { max-width: 30ch; font-size: 14px; }
  .hero__bottom { gap: 14px; }
  .ask { height: 54px; padding-inline-start: 18px; }
  .ask__send { width: 40px; height: 40px; }
  .bento { grid-template-columns: 1fr; }
  .card--xl, .card--wide { grid-column: auto; }
  /* phones: the object sits above the text instead of beside it */
  .card.card--xl, .card.card--wide { padding-top: 220px; --pool-x: 50%; --pool-y: 22%; }
  .card__side, .card__side--steel { inset: 18px 0 auto; width: 100%; height: 190px; padding: 0; }
  .card.card--xl > h3, .card.card--xl > p, .card.card--xl > .think { max-width: none; }
  .card { padding: 24px; }
  .section-title { margin-bottom: 36px; }
  .statement { height: 145svh; }
  .pillars li { padding: 12px 8px 0; }
  .pillars b { font-size: 20px; }
  .pillars span { font-size: 12.5px; line-height: 1.5; }
  .core__inner { padding: 84px 0 22px; gap: 10px; }
  .core__title { font-size: 30px; }
  .core__lead { font-size: 15px; }
  .window__body { height: 330px; padding: 16px; }
  .ring-stage { height: 256px; }
  .ring { width: 230px; height: 130px; }
  .footer__grid { grid-template-columns: 1fr; align-items: start; }
  .features, .models, .demo { padding: 12vh 0; }
}

/* short phones held upright: the core keeps its pillars on the first screen */
@media (max-width: 640px) and (max-height: 720px) {
  .hero__stage { height: 185px; }
  .hero__lead { display: none; }
  .hero__tag { font-size: 25px; }
  .hero { gap: 12px; padding-bottom: 28px; }
  .core__inner { padding-top: 78px; gap: 8px; }
  .core__title { font-size: 26px; }
  .core__lead { font-size: 14px; line-height: 1.6; }
  .core__slot { min-height: 96px; }
}

/* tablets and landscape phones: each model card lies on its side, the wolf beside its words */
@media (min-width: 641px) and (max-width: 1000px) {
  .tri-grid { max-width: 780px; }
  .tri { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); grid-template-rows: auto 1fr; min-height: 320px; }
  .tri__art { position: relative; inset: auto; grid-column: 2; grid-row: 1 / 3; aspect-ratio: auto; }
  .tri__head, .tri__copy { grid-column: 1; }
  .tri__space { display: none; }
  .tri__art img { bottom: 16%; height: 70%; }
  .tri__art--scout img { height: 64%; }
  .tri__art::after { bottom: 15%; }
  .tri__head { padding: 30px 30px 0; }
  .tri__title { font-size: clamp(40px, 7.4cqw, 58px); }
  .tri__copy { padding: 16px 30px 28px; gap: 14px; font-size: 16px; }
  .tri__meta { padding-top: 12px; }
}

/* landscape phones: a short screen, so each scene is laid out across instead of down */
@media (max-height: 500px) and (orientation: landscape) {
  .nav { height: 60px; }
  .nav__links { top: 60px; max-height: calc(100svh - 72px); overflow-y: auto; }
  .hero { height: auto; min-height: 340px; padding: 78px 20px 28px; gap: 12px; }
  .hero__stage { height: 160px; }
  .hero__bottom { gap: 10px; }
  .hero__tag { font-size: 20px; }
  .ask { height: 50px; }
  .ask__send { width: 40px; height: 40px; }
  .section-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 30px; }
  .statement__text { font-size: clamp(20px, 2.8vw, 28px); }
  .features, .models, .demo { padding: 80px 0; }
  .core__inner {
    display: grid; align-items: center; justify-items: center; gap: 2px 24px; padding: 66px 0 12px;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 1.15fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "title title title" ". slot pillars";
  }
  .core__title { grid-area: title; font-size: 28px; }
  .core__lead { display: none; }
  .core__slot { grid-area: slot; width: 100%; height: 100%; min-height: 0; }
  .pillars { grid-area: pillars; grid-template-columns: 1fr; width: 100%; max-width: 260px; margin: 0; border-top: 0; }
  .pillars li { padding: 7px 0; gap: 0; }
  .pillars li + li { border-inline-start: 0; border-top: 1px solid var(--line); }
  .pillars b { font-size: 18px; }
  .pillars span { font-size: 12.5px; line-height: 1.5; }
  .gallery { padding: 70px 0 40px; }
  .gallery .section-title { margin-bottom: 4px; }
  .ring-stage { height: 224px; }
  .ring { width: 250px; height: 141px; }
  .ring-hint { margin-top: 22px; }
  .window__body { height: 260px; }
  .cta { min-height: 100svh; padding-bottom: 12vh; }
  .cta h2 { font-size: clamp(40px, 6vw, 60px); }
}

/* large desktops: the page grows with the screen instead of floating small in the middle */
@media (min-width: 1680px) {
  body { font-size: 18.5px; }
  .container { width: min(1440px, calc(100% - 120px)); }
  .nav { height: 78px; padding: 0 max(40px, calc((100% - 1520px) / 2)); }
  .brand { font-size: 19.5px; gap: 12px; }
  .brand img { width: 30px; }
  .nav__links a { font-size: 16.5px; padding: 9px 16px; }
  .btn { height: 48px; padding: 0 24px; font-size: 16.5px; }
  .btn--lg { height: 58px; padding: 0 32px; font-size: 18px; }
  .section-title { font-size: clamp(60px, 3.5vw, 84px); max-width: 1180px; }
  .hero { padding-top: 104px; }
  .hero__slot { width: min(480px, 30vw); }
  .hero__tag { font-size: clamp(40px, 2.4vw, 54px); }
  .ask { width: min(800px, 100%); height: 68px; padding-inline-start: 28px; }
  .ask input { font-size: 18px; }
  .ask__send { width: 52px; height: 52px; }
  .statement__text { font-size: clamp(42px, 2.4vw, 58px); }
  .card { padding: 36px; }
  .card h3 { font-size: 26px; }
  .card p { font-size: 17.5px; }
  .card--media { min-height: 430px; }
  .card--xl { min-height: 370px; }
  .card--wide { min-height: 290px; }
  .think { font-size: 16px; }
  .mini-code { font-size: 15px; }
  .demo__copy p { max-width: 560px; font-size: 19px; }
  .window__body { height: 470px; padding: 28px; }
  .dm { font-size: 17px; }
  .dm--bot img { width: 26px; }
  .window__composer { height: 58px; font-size: 16px; }
  .core__title { font-size: clamp(66px, 3.8vw, 92px); }
  .core__lead { max-width: 680px; font-size: 19.5px; }
  .core__slot { width: min(720px, 100%); }
  .pillars { width: min(1080px, 100%); }
  .pillars b { font-size: 40px; }
  .pillars span { font-size: 17px; }
  .tri__copy { font-size: clamp(14px, 4.2cqw, 19px); }
  .tri__meta { font-size: 15px; }
  .ring-stage { height: 480px; }
  .ring { width: 440px; height: 248px; }
  .ring-hint { font-size: 15px; }
  .cta h2 { font-size: clamp(96px, 5.6vw, 140px); }
  .cta p { font-size: 21px; }
  .footer__links, .footer__brand p { font-size: 17px; }
  .footer__base { font-size: 15px; }
}
@media (min-width: 2200px) {
  body { font-size: 20px; }
  .container { width: min(1720px, calc(100% - 200px)); }
  .nav { height: 88px; padding: 0 max(40px, calc((100% - 1800px) / 2)); }
  .brand { font-size: 22px; }
  .brand img { width: 34px; }
  .nav__links a { font-size: 18px; }
  .btn { height: 52px; padding: 0 26px; font-size: 18px; }
  .btn--lg { height: 64px; padding: 0 36px; font-size: 20px; }
  .section-title { max-width: 1400px; }
  .hero { padding-top: 116px; }
  .ask { width: min(920px, 100%); height: 76px; }
  .ask input { font-size: 20px; }
  .ask__send { width: 58px; height: 58px; }
  .card { padding: 42px; }
  .card h3 { font-size: 30px; }
  .card p { font-size: 19.5px; }
  .card--media { min-height: 500px; }
  .card--xl { min-height: 430px; }
  .card--wide { min-height: 330px; }
  .window__body { height: 540px; }
  .dm { font-size: 19px; }
  .window__composer { height: 64px; font-size: 17.5px; }
  .core__lead { max-width: 760px; font-size: 21px; }
  .pillars { width: min(1240px, 100%); }
  .pillars span { font-size: 18.5px; }
  .tri__copy { font-size: clamp(14px, 4.2cqw, 21px); }
  .tri__meta { font-size: 16.5px; }
  .ring-stage { height: 560px; }
  .ring { width: 520px; height: 293px; }
  .footer__links, .footer__brand p { font-size: 19px; }
  .footer__base { font-size: 16.5px; }
}

@media (pointer: coarse) {
  .btn, .nav__links a, .footer__links a { min-height: 44px; display: inline-flex; align-items: center; }
  .brand { min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal]:not(.in) { opacity: 1; transform: none; }
}

/* وضع الهاتف الداكن/الفاتح لا يغيّر ألوان الموقع: المتصفّحات (Samsung Internet وChrome) لا تعيد تلوين صفحة تعلن أنّها داكنة. */
@media (prefers-color-scheme: dark) { :root { color-scheme: dark only; } }

/* install-as-app button: shown by install.js only where the browser can install the site */
[data-install][hidden] { display: none !important; }

/* Adjustments to the restored composition, 20 October 2026. */
.hero__slot{width:min(290px,55vw)}
.hero__lead,.card p,.think,.demo__copy p,.core__lead,.pillars span,.tri__copy,.ring-hint,.footer{font-family:var(--dw-font,var(--font))}
.hero__lead{font-size:16px;line-height:1.9}
.hero__tag{font-size:clamp(27px,3.1vw,44px);line-height:1.65}
.hero__bottom{gap:16px}
.ask input{font-family:var(--dw-font,var(--font));font-size:15px}
.nav__motion{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 10px;border:1px solid #867c6d;border-radius:6px;background:#17161580;color:#e1ddd7;font:500 11px/1.6 var(--dw-font,var(--font));cursor:pointer;white-space:nowrap;transition:background 160ms,border-color 160ms}
.nav__motion:hover{background:#2b2a29}.nav__motion:disabled{cursor:default;color:#cfc9c0}.motion-play{display:none}.nav__motion[aria-pressed=true] .motion-play{display:block}.nav__motion[aria-pressed=true] .motion-pause{display:none}
body.motion-paused *,body.motion-paused *::before,body.motion-paused *::after{animation-play-state:paused!important}
body.motion-paused .belt{display:none}body.motion-paused .statement__text .w{opacity:1;color:var(--fg)}
.preloader img{width:62px}.preloader{transition:opacity .45s var(--ease),visibility .45s}
.card__open{display:inline-flex;align-items:center;gap:18px;min-height:44px;font:500 13px/1.7 var(--dw-font,var(--font));color:#eae7e3;margin-top:16px;position:relative;z-index:2}.card__open:hover{color:var(--ice)}
.card--media{padding-top:235px;min-height:375px}.card__art.product-art{top:22px;left:22px;right:22px;width:calc(100% - 44px);height:190px;object-fit:cover;object-position:top;transform:none;filter:none;border:1px solid #5d564c;border-radius:4px}.card:hover .product-art{transform:none}
.card--wide{min-height:200px}.card--wide p{max-width:68ch}.card.card--xl .card__side{opacity:.8;width:45%;padding:48px}
.card.in .think li{animation:none}.think li{color:var(--fg-2)}
.actual-preview{margin:0;max-width:100%;background:#191817}.actual-preview>img{width:100%;height:auto}.actual-preview figcaption{padding:13px 18px;color:var(--muted);font:12px/1.8 var(--dw-font,var(--font))}
.tri-grid{grid-template-columns:1.16fr 1fr 1fr}.tri__art{position:relative;inset:auto;aspect-ratio:1.45;z-index:0;overflow:hidden;border-bottom:1px solid #47423a}.tri__art img,.tri:hover .tri__art img{position:static;transform:none;filter:none;width:100%;height:100%;object-fit:cover;object-position:top}.tri__art::after{display:none}.tri__space{display:none}.tri__head{padding:24px 24px 0}.tri__title{font-size:29px;line-height:1.5}.tri__copy{padding:16px 24px 24px;gap:18px;font-size:15px;flex:1}.tri__copy>.btn{align-self:start;margin-top:auto}.tri__meta{font-size:12px;line-height:1.9}.product-note{color:var(--muted);font:12px/1.8 var(--dw-font,var(--font));margin-top:22px}
.product-face{display:flex;flex-direction:column}.product-face>img{width:100%;height:calc(100% - 38px);object-fit:cover;object-position:top}.product-face>span{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;font:13px/1.5 var(--dw-font,var(--font));background:#1f1e1d}.product-face-back>img{position:absolute;width:28%;height:auto;left:36%;top:18%;opacity:.75}.product-face-back figcaption{justify-content:center}.ring .face.lift{--lift:1.025;box-shadow:var(--bevel),0 24px 60px -32px #02050bbf}
@media(max-width:1200px){.nav__motion span{display:none}.nav__motion{width:40px;padding:8px}.nav__links a{font-size:13px;padding-inline:10px}}
@media(max-width:1000px){.tri-grid{grid-template-columns:1fr}.tri{display:grid;grid-template-columns:1fr 1fr;min-height:290px}.tri__art{grid-column:2;grid-row:1/3;aspect-ratio:auto;height:100%;border-bottom:0}.tri__head,.tri__copy{grid-column:1}.tri__head{padding:22px 22px 0}.tri__copy{padding:16px 22px 22px}}
@media(max-width:760px){.nav__cta>.btn--light{display:none}.nav__motion{width:44px;min-height:44px}.nav__links{border-radius:8px}.nav__links a{font-size:14px}}
@media(max-width:640px){.hero__slot{width:min(220px,58vw)}.hero__lead{font-size:14px}.hero__tag{font-size:clamp(24px,6vw,30px);line-height:1.65}.card.card--wide{padding:24px;min-height:0}.card.card--xl .card__side{width:100%;height:170px;padding:18px}.tri{display:flex;min-height:0}.tri__art{height:210px;aspect-ratio:auto}.tri__title{font-size:28px}.tri__copy{font-size:14px}.product-note{font-size:11px}.actual-preview figcaption{font-size:11px}.card--media{padding-top:235px}.card__art.product-art{height:190px}}
@media(pointer:coarse){.nav__motion{min-height:44px}.card__open{min-height:44px}}
@media(prefers-reduced-motion:reduce){.hero__fallback-img{animation:none}.statement__text .w{opacity:1}}
.belt{opacity:.72}
.ring-stage:focus-visible{outline:2px solid var(--ice);outline-offset:6px}
@media(max-width:760px){.nav__motion span{display:none}}

/* Compact crystal, with space for its scroll-driven descent. */
.hero__stage { height: clamp(180px, 31svh, 280px); }
.js .hero [data-reveal] { opacity: 1; transform: none; transition: none; }
.core__slot { width: min(300px, 75%); }

/* Small explanatory overlays sit over real editor captures. */
.tri__head { display: flex; align-items: center; gap: 12px; }
.tool-wolf { width: 34px; height: 44px; object-fit: contain; }
.tool-motion__label, .tool-motion__context { position: absolute; bottom: 14px; inset-inline: 14px; width: fit-content; max-width: calc(100% - 28px); padding: 6px 10px; background: #1e1d1cf2; border: 1px solid #564f46; border-radius: 5px; color: #f0edea; font: 12px/1.7 var(--dw-font,var(--font)); }
.tool-motion__context { display: flex; align-items: center; gap: 9px; }
.tri .tool-motion__context img { width: 18px; height: 23px; object-fit: contain; }
.tool-motion__frame { position: absolute; inset: 20% 20% 28%; border: 1px solid var(--ice); opacity: .7; animation: design-focus 6s ease-in-out infinite; }
.tool-motion__frame::before, .story-proof__selection::before { content: ''; position: absolute; width: 6px; height: 6px; background: var(--ice); inset: -3px auto auto -3px; box-shadow: 0 0 0 1px #181716; }
.tool-motion__track { position: absolute; display: flex; gap: 4px; bottom: 60px; inset-inline: 20px; height: 18px; direction: ltr; }
.tool-motion__track i { flex: 1; background: #c2baae77; border: 1px solid #dfdad499; border-radius: 2px; }
.tool-motion__track i:nth-child(2) { flex: 1.6; }
.tool-motion__track span { position: absolute; width: 2px; height: 28px; top: -5px; background: #f4f3f1; animation: timeline-read 7s ease-in-out infinite; }
@keyframes timeline-read { 0%, 10% { left: 0; } 80%, 100% { left: 98%; } }
@keyframes design-focus { 0%, 100% { transform: translateY(0); opacity: .45; } 50% { transform: translateY(-5px); opacity: .9; } }

/* An editorial diagram, a real editor capture, and four connected story beats. */
.universe-story { position: relative; height: auto; padding-block: 70px 50px; font-family: var(--dw-font,var(--font)); }
.universe-story__sticky { position: static; padding-block: 20px 30px; }
.universe-story__heading { margin-bottom: 28px; }
.story-eyebrow { display: flex; align-items: center; gap: 14px; font: 11px/1.6 var(--font-latin); letter-spacing: .1em; color: #cbc3b9; margin-bottom: 15px; }
.story-eyebrow span { font: 11px/1.6 var(--dw-font,var(--font)); letter-spacing: 0; padding-inline-start: 14px; border-inline-start: 1px solid #675f54; }
.universe-story__heading .section-title { font-size: clamp(25px,3vw,38px); margin-bottom: 12px; line-height: 1.6; }
.universe-story__heading > p:last-child { font-size: 15px; color: var(--fg-2); max-width: 640px; }
.story { display: grid; grid-template-columns: 1.05fr 1fr; align-items: stretch; min-height: 340px; border-block: 1px solid #564f46; background: #131211e8; }
.story__map { position: relative; min-height: 340px; padding: 24px 18px; isolation: isolate; }
.story__connections { position: absolute; top: 16px; left: 0; width: 100%; height: 286px; z-index: -1; overflow: visible; }
.story__wire, .story__signal { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.story__wire { stroke: #766d61; stroke-opacity: .6; }
.story__signal { stroke: #dedad4; stroke-width: 2; stroke-dasharray: 12 88; stroke-dashoffset: 0; opacity: 0; animation: handoff 3s ease-in-out infinite; }
@keyframes handoff { 0% { stroke-dashoffset: 15; } 100% { stroke-dashoffset: -100; } }
.story__agents { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: 14px; }
.story-agent { display: grid; justify-items: center; gap: 4px; }
.story-agent img { height: 102px; width: 83px; object-fit: contain; margin-bottom: 5px; transform: translateY(0); opacity: .45; transition: transform .7s var(--ease), opacity .4s; filter: saturate(.45); }
.story-agent b { font-size: 15px; font-weight: 500; }
.story-agent span { font-size: 11px; color: #d1cbc2; }
.story-project { position: absolute; bottom: 27px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 12px 18px; background: #272625; border: 1px solid #8d8273; border-radius: 7px; min-width: 250px; transition: border-color .4s; }
.story-project img { width: 29px; height: 35px; }
.story-project b { display: block; font-size: 14px; font-weight: 500; }
.story-project span { display: block; color: #ccc5bc; font-size: 10px; white-space: nowrap; }
.story__handoff { position: absolute; display: flex; gap: 10px; justify-content: center; top: 205px; left: 0; width: 100%; }
.story__handoff span { border: 1px solid #60584e; background: #1f1e1d; padding: 2px 9px; border-radius: 3px; font-size: 10px; color: #dbd6d0; transition: opacity .4s, transform .4s; opacity: .3; }
.story[data-step="0"] .story-agent--chat img, .story[data-step="1"] .story-agent--cinema img, .story[data-step="2"] .story-agent--design img, .story[data-step="3"] .story-agent img { opacity: 1; }
.story[data-step="0"] .story-agent--chat img, .story[data-step="1"] .story-agent--cinema img, .story[data-step="2"] .story-agent--design img { transform: translateY(-5px); filter: saturate(.8); }
.story[data-step="0"] .story__signal--chat, .story[data-step="1"] .story__signal--cinema, .story[data-step="2"] .story__signal--design, .story[data-step="3"] .story__signal { opacity: .85; }
.story[data-step="2"] .story__signal--design { animation-direction: reverse; }
.story[data-step="0"] .story__handoff span:first-child, .story[data-step="1"] .story__handoff span:nth-child(2), .story[data-step="2"] .story__handoff span:last-child, .story[data-step="3"] .story__handoff span { opacity: 1; transform: translateY(-3px); }
.story[data-step="3"] .story-project { border-color: #d7d2cb; }
.story__detail { min-width: 0; border-inline-start: 1px solid #4b453d; padding: 26px 28px 18px; }
.story-panel { display: flex; flex-direction: column; height: 100%; gap: 16px; animation: story-arrive .45s var(--ease) both; }
.story-panel[hidden] { display: none; }
@keyframes story-arrive { from { opacity: .3; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
.story-panel__number { display: block; font-size: 11px; color: #cac3b9; margin-bottom: 7px; }
.story-panel h3 { font-size: 24px; line-height: 1.55; margin-bottom: 7px; font-weight: 500; }
.story-panel p { font-size: 14px; line-height: 1.9; color: #cdc6bc; }
.story-panel__link { display: flex; gap: 18px; align-items: center; align-self: start; margin-top: auto; min-height: 44px; font-size: 13px; color: #e9e6e2; }
.story-panel__link:hover { text-decoration: underline; text-underline-offset: 5px; }
.story-brief { padding: 14px 16px; border-inline-start: 2px solid #c0b7ab; background: #252423; }
.story-brief > span { font-size: 10px; color: #c9c1b7; }
.story-brief p { color: #f0edea; font-size: 15px; margin-top: 8px; }
.story-brief__tags { display: flex; gap: 6px 14px; flex-wrap: wrap; margin-top: 12px; color: #d7d2cb; font-size: 10px; }
.story-brief__tags span { animation: story-arrive .5s var(--ease) both; }
.story-brief__tags span:nth-child(2) { animation-delay: .15s; }
.story-brief__tags span:nth-child(3) { animation-delay: .3s; }
.story-proof { position: relative; height: 150px; overflow: hidden; border: 1px solid #60584e; border-radius: 4px; }
.story-proof > img { width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: .85; }
.story-proof__label { position: absolute; bottom: 9px; inset-inline-start: 9px; background: #252423f2; padding: 4px 9px; border: 1px solid #776e61; color: #eeece9; font-size: 10px; }
.story-proof__timeline { position: absolute; display: flex; gap: 4px; top: 38%; left: 10%; width: 80%; height: 23px; direction: ltr; }
.story-proof__timeline i { flex: 1; background: #b0a59685; border: 1px solid #dfdad4bf; border-radius: 2px; }
.story-proof__timeline i:nth-child(2) { flex: 1.8; }
.story-proof__timeline span { position: absolute; width: 2px; top: -6px; height: 35px; background: #f4f3f1; animation: timeline-read 6s ease-in-out infinite; }
.story-proof__selection { position: absolute; inset: 12% 13% 32% 36%; border: 1px solid #dfdbd5; animation: design-focus 5s ease-in-out infinite; }
.story-memory { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.story-memory div { border-inline-start: 1px solid #897f70; padding-inline-start: 12px; animation: story-arrive .45s var(--ease) both; }
.story-memory div:nth-child(2) { animation-delay: .1s; }.story-memory div:nth-child(3) { animation-delay: .2s; }.story-memory div:nth-child(4) { animation-delay: .3s; }
.story-memory span { display: block; font-size: 10px; color: #cbc4bb; }.story-memory b { font-size: 13px; font-weight: 400; }
.story-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 18px; gap: 8px; }
.story-steps button { border: 0; border-top: 2px solid #504a42; background: transparent; text-align: start; padding: 13px 7px 8px; cursor: pointer; font: 13px/1.8 var(--dw-font,var(--font)); color: #c6beb3; transition: border-color .2s, color .2s; min-height: 48px; }
.story-steps button span { font: 10px/1.5 var(--font-latin); margin-inline-end: 8px; opacity: .65; }
.story-steps button:hover { color: #fff; border-color: #988f82; }.story-steps button[aria-pressed="true"] { border-color: #e5e2dd; color: #f5f3f1; }
.story-note { font-size: 11px; line-height: 1.8; color: #beb5a8; margin-top: 12px; max-width: 790px; }
@media (min-width: 761px) and (min-height: 801px) { .story__detail { height: 365px; } }
@media (max-width: 1000px) { .story__detail { padding: 20px; }.story-panel h3 { font-size: 21px; }.story-agent img { width: 69px; height: 96px; }.story-agent b { font-size: 13px; }.story-agent span { font-size: 10px; } }
@media (max-width: 760px), (max-height: 800px) {
  .universe-story { height: auto; padding-block: 60px; }
  .universe-story__sticky { position: static; padding-block: 0; }
}
@media (max-width: 760px) {
  .hero__stage { height: clamp(180px, 29svh, 240px); }
  .statement__grid { padding-bottom: 200px; }
  .story { grid-template-columns: 1fr; }
  .story__map { min-height: 302px; padding-top: 20px; }
  .story__connections { height: 255px; }
  .story__handoff { top: 183px; }
  .story-project { bottom: 18px; min-width: 235px; }
  .story-agent img { width: 70px; height: 92px; }
  .story__detail { border-inline-start: 0; border-top: 1px solid #4b453d; padding: 20px; min-height: 354px; }
  .story-panel { min-height: 314px; }
  .story-steps { grid-template-columns: 1fr 1fr; gap: 4px 12px; }
  .story-steps button { font-size: 12px; }
  .story-eyebrow { font-size: 10px; }
  .universe-story__heading > p:last-child { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .universe-story { height: auto; padding-block: 60px; }.universe-story__sticky { position: static; }
  .story *, .tool-motion * { animation: none !important; transition: none !important; }
}
.motion-paused .story *, .motion-paused .tool-motion * { animation: none !important; transition: none !important; }
.motion-paused .universe-story { height: auto; padding-block: 60px; }
.motion-paused .universe-story__sticky { position: static; }

/* The jewel is gone here; neither the project copy nor the timed story needs a pinned scroll gap. */
.core{height:auto;padding-block:70px 40px}
.core__sticky{position:static;height:auto;display:block}
.core__inner{display:flex;padding:30px 0;gap:18px}
.core__lead{display:block}
.core .pillars{margin-top:20px}
.story-playback{display:flex;align-items:flex-start;gap:16px;margin-top:15px}
.story-playback .story-note{margin-top:0;flex:1}
.story-toggle{flex:none;min-height:44px;padding:8px 15px;border:1px solid #bbb2a54d;border-radius:10px;background:#e6e2dd0b;color:#ebe9e5;font:inherit;font-size:12px;cursor:pointer;touch-action:manipulation}
.story-toggle:hover:not(:disabled){background:#e6e2dd16;border-color:#d1cac180}
.story-toggle:focus-visible{outline:2px solid #dfdad4;outline-offset:4px}
.story-toggle:disabled{opacity:.55;cursor:default}
.story[data-playing=false] *,.story[data-playing=false] *::before,.story[data-playing=false] *::after{animation-play-state:paused!important}
.story[data-playing=false] :is(.story-panel,.story-brief__tags span,.story-memory div){animation:none;opacity:1;transform:none}
@media(max-width:760px){.core{padding-block:45px 20px}.core__inner{padding:25px 0}.story-playback{flex-direction:column;gap:10px}.story-toggle{min-height:44px}.story__detail{height:auto}}
