/* ==========================================================================
   Diamond Wolf — landing
   Palette: cold luxury (silver, chrome, smoke) on deep navy-black,
   one accent (ice). Corners: soft 22px cards, pill controls.
   ========================================================================== */
:root {
  --bg: #05070c;
  --bg-2: #0a0e18;
  --fg: #f7f1e8;
  --fg-2: #dccdb9;
  --muted: #b39a80;
  --dim: #94795f;
  --earth: #a58b70;   /* the dust when the diamond breaks: the quiet half of every headline */
  --line: rgba(220, 230, 255, 0.08);
  --line-2: rgba(220, 230, 255, 0.15);
  --ice: #9fd3ff;
  --radius: 18px;
  /* solid, cut surfaces: opaque body, a lit top bevel, a dark bottom bevel, a deep drop */
  --surface: linear-gradient(180deg, #121826 0%, #0b0f18 55%, #090c14 100%);
  --bevel: inset 0 1px 0 rgba(255, 255, 255, 0.09), inset 0 -1px 0 rgba(0, 0, 0, 0.55);
  --drop: 0 2px 0 rgba(0, 0, 0, 0.35), 0 26px 50px -24px rgba(0, 0, 0, 0.9), 0 70px 120px -50px rgba(0, 0, 0, 0.75);
  /* each wolf's own ink */
  --ink-alpha: linear-gradient(180deg, #f4fbff 8%, #b3e0ff 52%, #74b4f5 100%);
  --ink-hunter: linear-gradient(180deg, #ffffff 8%, #dfe5ee 50%, #98a3b6 100%);
  --ink-scout: linear-gradient(180deg, #fbf9ff 8%, #c4bbff 52%, #8a7cf0 100%);
  --font: "IBM Plex Sans Arabic", "Sora", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-latin: "Sora", "IBM Plex Sans 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);
  --chrome: linear-gradient(100deg, #ffffff 0%, #dfe7f2 22%, #9eabc0 42%, #f3f6fb 58%, #c4d2e6 78%, #ffffff 100%);
  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: #f2f5fa; 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; }
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; letter-spacing: -0.01em; }
.ink--alpha, .ink--hunter, .ink--scout { -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.ink--alpha { background-image: var(--ink-alpha); }
.ink--hunter { background-image: var(--ink-hunter); }
.ink--scout { background-image: var(--ink-scout); }
p { margin: 0; }
::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: 1.8; 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: url("../img/galaxy.jpg") center / cover no-repeat;
}
.stage-fallback::after { content: ""; position: absolute; inset: 0; background: rgba(5, 7, 12, 0.6); }
.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;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent);
          mask-image: radial-gradient(closest-side, #000 72%, transparent);
}
.grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: 0.045;
  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>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 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__word { font-family: var(--font-latin); letter-spacing: 0.5em; font-size: 12px; color: var(--muted); padding-inline-start: 0.5em; direction: ltr; }
.preloader__bar { width: 140px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.preloader__bar i { display: block; width: 40%; height: 100%; background: var(--chrome); animation: pre-bar 1.1s var(--ease) infinite; }
.preloader.done { opacity: 0; visibility: hidden; }
@keyframes pre-pulse { 50% { transform: scale(1.05); opacity: 0.85; } }
@keyframes pre-bar { from { transform: translateX(260%); } to { transform: translateX(-120%); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: transform 0.25s var(--ease), translate 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.25s, border-color 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.5s; background: radial-gradient(110px circle at var(--gx, 50%) var(--gy, 50%), rgba(159, 211, 255, 0.38), transparent 65%); }
.btn.magnet-on::after { opacity: 1; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn--light { background: #f6efe5; color: #120d08; }
.btn--light:hover { background: #fffaf3; box-shadow: 0 10px 30px -12px rgba(236, 210, 171, 0.45); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--fg); backdrop-filter: blur(10px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.09); }
.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: translateX(-3px); }

/* ---------- 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 { transition: translate 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); 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; filter: drop-shadow(0 0 6px rgba(159, 211, 255, 0.28)); }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--fg-2); transition: color 0.2s, background 0.2s, translate 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.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: 42px; height: 42px; border-radius: 50%; 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 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal]:not(.in) { opacity: 0.25; transform: translateY(26px); filter: blur(5px); }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; font-size: 14px; color: var(--fg-2); padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.eyebrow--plain { color: var(--ice); }
.section-title { font-size: clamp(34px, 4.6vw, 60px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; max-width: 820px; margin-bottom: 56px; }
.section-title--center { text-align: center; margin-inline: auto; }
.dim { color: var(--earth); }

/* ---------- wordmark: "Diamond" is cut like a stone, "Wolf" stays warm ivory ----------
   angled facets, a lit crown above the girdle and a darker pavilion below; the dot of the i is a
   cut diamond, and now and then a light runs across the stone and ends in a glint */
.wm { position: relative; display: inline-block; font-family: var(--font-latin); font-weight: 600; letter-spacing: -0.01em; direction: ltr; white-space: nowrap; }
.wm__cry, .wm__rest, .wm__i { -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.wm__cry {
  background:
    linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, 0.95) 50%, transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0 52%, rgba(8, 16, 34, 0.34) 52% 100%),
    linear-gradient(118deg, #ffffff 0 20%, #9fb0c6 20% 27%, #eef3f9 27% 46%, #7b8ca6 46% 52%, #dbe4ef 52% 70%, #8b9bb3 70% 76%, #ffffff 76% 100%);
  background-size: 300% 100%, 100% 100%, 1.7em 100%;
  background-repeat: no-repeat, no-repeat, repeat-x;
  background-position: 130% 0, 0 0, 0 0;
  -webkit-background-clip: text; background-clip: text; /* after the shorthand, which resets the clip */
  filter: drop-shadow(0 0 0.1em rgba(200, 225, 255, 0.38));
  animation: wm-sheen 9s var(--ease) 2s infinite;
}
.wm__rest { background-image: linear-gradient(180deg, #fffaf3, #d8c6ae); }
.wm__i { position: relative; background: inherit; -webkit-background-clip: text; background-clip: text; animation: inherit; } /* positioned, so it carries its own fill */
.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; filter: drop-shadow(0 0 0.12em rgba(190, 220, 255, 0.55)); }
.wm__i::after { content: ""; position: absolute; left: 50%; top: 0.08em; width: 0.9em; height: 0.9em; margin: -0.38em 0 0 -0.45em; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, #fff 0 6%, transparent 7%), linear-gradient(90deg, transparent 46%, rgba(255, 255, 255, 0.95) 50%, transparent 54%), linear-gradient(0deg, transparent 46%, rgba(255, 255, 255, 0.95) 50%, transparent 54%);
  -webkit-mask: radial-gradient(closest-side, #000, transparent); mask: radial-gradient(closest-side, #000, transparent);
  animation: wm-glint 9s var(--ease) 2s infinite; }
@keyframes wm-sheen { 0%, 62% { background-position: 130% 0, 0 0, 0 0; } 82%, 100% { background-position: -30% 0, 0 0, 0 0; } }
@keyframes wm-glint { 0%, 70% { opacity: 0; transform: scale(0.3) rotate(0deg); } 76% { opacity: 1; transform: scale(1) rotate(45deg); } 86%, 100% { opacity: 0; transform: scale(0.5) rotate(90deg); } }
@media (prefers-reduced-motion: reduce) { .wm__cry, .wm__i, .wm__i::after { animation: none; } }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh; height: 100svh; max-height: 1200px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 92px 20px 56px; position: relative;
}
@media (max-height: 640px) { .hero { height: auto; } }
.hero__stage { position: relative; flex: 1 1 auto; width: 100%; min-height: 220px; display: grid; place-items: center; margin: 10px 0 14px; }
.hero__slot { position: relative; width: min(520px, 46vw); height: 100%; min-height: 200px; }
.hero__bottom { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 20px; width: 100%; }
.wordmark {
  font-family: var(--font-latin); font-weight: 600; direction: ltr;
  font-size: clamp(46px, 8vw, 112px); letter-spacing: -0.045em; line-height: 1;
  background: var(--chrome); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: chrome 12s linear infinite;
}
@keyframes chrome { to { background-position: -220% 0; } }
.hero__tag { font-size: clamp(19px, 2.3vw, 30px); font-weight: 500; line-height: 1.4; color: var(--fg); text-shadow: 0 2px 18px rgba(5, 7, 12, 0.9); }
.hero__lead { max-width: 600px; color: var(--fg-2); font-size: clamp(15px, 1.4vw, 18px); text-shadow: 0 2px 18px rgba(5, 7, 12, 0.9); }

/* the ask bar is a cut stone: chamfered corners, a lit top bevel, a dark lower one */
.ask {
  --cut: 16px;
  width: min(660px, 100%); height: 60px; display: flex; align-items: center; gap: 8px;
  padding: 0 8px; padding-inline-start: 24px; position: relative; isolation: isolate;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.07) 32%, rgba(255, 255, 255, 0.03) 70%, rgba(0, 0, 0, 0.55));
}
.ask::before { content: ""; position: absolute; inset: 1px; z-index: -1; --cut: 15.6px; clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); background: linear-gradient(180deg, rgba(20, 27, 42, 0.94), rgba(11, 15, 24, 0.94) 70%); }
.ask::after { content: ""; position: absolute; inset: 1px; z-index: -1; pointer-events: none; --cut: 15.6px; clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); background: linear-gradient(104deg, transparent 30%, rgba(255, 255, 255, 0.04) 46%, transparent 60%); }
.ask:focus-within { background: linear-gradient(180deg, rgba(169, 219, 255, 0.62), rgba(169, 219, 255, 0.16) 32%, rgba(255, 255, 255, 0.04) 70%, rgba(0, 0, 0, 0.55)); }
.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); }
/* send: a cut gem */
.ask__send { position: relative; width: 46px; height: 46px; flex: none; border: 0; padding: 0; background: transparent; color: #070a12; display: grid; place-items: center; cursor: pointer; transition: translate 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ask__send::before { content: ""; position: absolute; inset: 7px; border-radius: 6px; transform: rotate(45deg); background: linear-gradient(135deg, #ffffff 0%, #e8eef6 42%, #aab6c8 100%); box-shadow: inset 0 1px 0 #ffffff, inset 0 -2px 0 rgba(0, 0, 0, 0.18), 0 4px 12px -2px rgba(0, 0, 0, 0.55), 0 0 16px rgba(190, 220, 255, 0.25); transition: transform 0.25s var(--ease); }
.ask__send .ic { position: relative; font-size: 19px; stroke-width: 2.3; }
.ask__send:hover::before { transform: rotate(45deg) scale(1.08); }
.ask__send:active::before { transform: rotate(45deg) scale(0.93); }

/* ---------- statement ---------- */
.statement { height: 200vh; 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; letter-spacing: -0.01em; }
.statement__text .w { opacity: 0.16; transition: opacity 0.35s, color 0.35s; }
.statement__text .w.on { opacity: 1; }
.statement__text .w.hot { color: #ecd2ab; }

/* ---------- features ---------- */
.features, .models, .demo { padding: 18vh 0; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card, .model {
  position: relative; overflow: hidden; isolation: isolate; border-radius: var(--radius); padding: 30px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease), border-color 0.4s, opacity 1.1s var(--ease), filter 1.1s var(--ease);
  box-shadow: var(--bevel), var(--drop);
}
/* a soft pool of light behind each card's object, in that object's colour */
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(52% 62% at var(--pool-x, 50%) var(--pool-y, 34%), var(--pool, transparent), transparent 72%); }
.js .card[data-reveal]:not(.in), .js .model[data-reveal]:not(.in) { transform: perspective(1200px) translateY(40px) rotateX(8deg); }
.card.tilting, .model.tilting { transition: transform 0.12s linear, border-color 0.4s; }
.card:hover, .model:hover { border-color: rgba(255, 255, 255, 0.13); }
.card__glare { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(200, 225, 255, 0.12), transparent 45%); z-index: 1; }
.card:hover .card__glare, .model:hover .card__glare { opacity: 1; }
.card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.card:hover .card__bg, .model:hover .card__bg { transform: scale(1.09); }
.model--alpha::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 7, 12, 0.94) 8%, rgba(5, 7, 12, 0.55) 55%, rgba(5, 7, 12, 0.15)); }
.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: drop-shadow(0 0 14px rgba(150, 140, 255, 0.35)); }
.card:hover .card__art { transform: translateX(-50%) translateY(-5px) scale(1.03); }
.card--media .card__icon { position: absolute; top: 30px; inset-inline-start: 30px; }
.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: scale(1.05); }
.card--wide { grid-column: span 3; min-height: 240px; }
.card h3 { font-size: 22px; margin: 18px 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; }
.card__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(200, 220, 255, 0.07); border: 1px solid var(--line-2); color: var(--fg); font-size: 22px; position: relative; z-index: 2; }
.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; box-shadow: 0 0 8px rgba(236, 210, 171, 0.6); }
@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: #cbd5ee; overflow: hidden; text-align: left; }
.mini-code .k { color: #9fd3ff; } .mini-code .f { color: #e6edf8; } .mini-code .s { color: #b9c7da; } .mini-code .c { color: #6f7a90; }

/* ---------- 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);
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease), opacity 1.1s var(--ease), filter 1.1s var(--ease);
}
.window.tilting { transition: transform 0.12s linear; }
.window__bar { display: flex; align-items: center; gap: 7px; padding: 14px 18px; border-bottom: 1px solid var(--line); direction: ltr; }
.window__bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.window__bar span { margin-inline-start: auto; font-size: 13px; color: var(--muted); font-family: var(--font-latin); }
.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 { --cut: 11px; margin: 0 18px 18px; height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; padding-inline-start: 20px; color: var(--muted); font-size: 14.5px; clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut)); background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.window__composer b { width: 24px; height: 24px; margin: 0 8px; border-radius: 4px; transform: rotate(45deg); background: linear-gradient(135deg, #ffffff, #b8c4d6); display: block; position: relative; box-shadow: 0 0 12px rgba(190, 220, 255, 0.2); }
.window__composer b::after { content: ""; position: absolute; inset: 0; margin: auto; width: 7px; height: 7px; border-left: 2px solid #070a12; border-top: 2px solid #070a12; transform: translate(1px, 1px); }
.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: 22px; height: auto; aspect-ratio: 194 / 256; object-fit: contain; align-self: flex-start; flex: none; margin-top: 3px; filter: drop-shadow(0 0 5px rgba(159, 211, 255, 0.25)); }
.dm--bot b { color: var(--fg); font-weight: 600; }
.dm .caret { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--fg); margin-inline-start: 4px; animation: blink 1s infinite; vertical-align: middle; }
@keyframes dm-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes blink { 50% { opacity: 0.2; } }

/* ---------- core ---------- */
.core { height: 280vh; 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; letter-spacing: -0.03em; 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; letter-spacing: -0.02em; }
.pillars span { color: var(--fg-2); font-size: 15px; }

/* press-and-hold: the one interactive moment */
.hold { position: relative; flex: none; width: 112px; height: 112px; border-radius: 50%; border: 0; background: rgba(12, 16, 28, 0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--fg); cursor: pointer; display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform 0.4s var(--ease), translate 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hold:active, .hold.holding { transform: scale(0.96); }
.hold__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.hold__ring circle { fill: none; stroke: var(--line-2); stroke-width: 2; }
.hold__ring .hold__bar { stroke: var(--ice); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.hold__dot { position: absolute; top: 24px; width: 8px; height: 8px; transform: rotate(45deg); background: var(--fg); border-radius: 1px; }
.hold__label { font-size: 13.5px; line-height: 1.4; max-width: 90px; padding-top: 14px; }
.hold__hint { color: var(--muted); font-size: 13.5px; }
.core.revealed .hold__bar { stroke: #fff; }
.pillars li { transition: opacity 0.6s var(--ease), color 0.6s; }
.pillars b { transition: color 0.6s var(--ease); }
.core.revealed .pillars li:nth-child(1) b { color: var(--ice); transition-delay: 0.1s; }
.core.revealed .pillars li:nth-child(2) b { color: var(--ice); transition-delay: 0.3s; }
.core.revealed .pillars li:nth-child(3) b { color: var(--ice); transition-delay: 0.5s; }

/* ---------- models (asymmetric: Alpha leads) ---------- */
.model-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 18px; }
.model { padding: 32px 30px; display: flex; flex-direction: column; gap: 12px; }
.model--alpha { grid-row: span 2; min-height: 520px; justify-content: flex-end; }
.model > *:not(.card__glare):not(.card__bg) { position: relative; z-index: 2; }
.model h3 { font-family: var(--font-latin); font-size: 40px; letter-spacing: -0.03em; direction: ltr; text-align: right; }
.model--alpha h3 { font-size: clamp(48px, 6vw, 76px); }
.model p { color: var(--fg-2); font-size: 15.5px; max-width: 42ch; }
.model ul { list-style: none; margin: 4px 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--fg); }
.model li { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.model .btn { margin-top: auto; align-self: flex-start; }
.model--alpha .btn { margin-top: 6px; }
.badge { align-self: flex-start; font-size: 12.5px; padding: 4px 12px; border-radius: 999px; background: #f2f5fa; color: #070a12; font-weight: 600; }
.badge--ice { background: var(--ice); }
.badge--mute { background: rgba(255, 255, 255, 0.08); color: var(--fg-2); border: 1px solid var(--line-2); }

/* 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: var(--radius); border: 1px solid rgba(255, 255, 255, 0.08); background: var(--surface); color: var(--fg);
  box-shadow: var(--bevel), var(--drop);
  container-type: inline-size;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--ease), border-color 0.4s, opacity 1.1s var(--ease), filter 1.1s var(--ease);
}
.tri.tilting { transition: transform 0.12s linear, border-color 0.4s; }
.tri:hover { border-color: rgba(255, 255, 255, 0.16); }
.tri--lead, .tri--lead:hover { border-color: rgba(169, 219, 255, 0.5); box-shadow: var(--bevel), 0 0 0 1px rgba(169, 219, 255, 0.14), var(--drop); }
.js .tri[data-reveal]:not(.in) { transform: perspective(1200px) translateY(40px) rotateX(8deg); }
.tri:hover .card__glare { opacity: 1; }
.tri__art { position: absolute; inset: 0 0 auto 0; z-index: -1; aspect-ratio: 598 / 760; }
/* the wolf stands in its own light on a thin pedestal line: no second sky behind it */
.tri__art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(56% 40% at 50% 50%, var(--pool), transparent 72%); }
.tri__art::after { content: ""; position: absolute; left: 16%; right: 16%; bottom: 23%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent); box-shadow: 0 0 22px 3px var(--pool); }
.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%) translateY(-6px) scale(1.03); }
.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: drop-shadow(0 0 14px rgba(160, 150, 255, 0.4)); }
.tri__head { position: relative; padding: 5.4cqw 5.4cqw 0; text-shadow: 0 2px 16px rgba(5, 7, 12, 0.7); }
.tri__eyebrow { display: block; direction: ltr; text-align: right; font: 500 clamp(12px, 4.2cqw, 18px)/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace; color: var(--muted); }
.tri__title { display: block; direction: ltr; text-align: right; margin-top: 4px; 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 Diamond Wolf 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: "اسأل Diamond Wolf…"; 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: #9fd3ff; }
.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, #2a2f3e, #171b26); 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: 1.8; 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%), #0c111c; 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: 1.8; 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 #0b0f18; }
.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: #9fd3ff; 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.85); transition: none; }
.rv-pop { transition: opacity 0.45s var(--ease), transform 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) !important; }
.ring-hint { text-align: center; color: var(--muted); font-size: 13px; margin-top: 70px; }

/* ---------- 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); letter-spacing: -0.035em; line-height: 1.1; }
.cta p { color: var(--fg-2); font-size: 18px; }
.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: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer__brand p { color: var(--muted); margin-top: 14px; font-size: 15px; }
.footer h4 { font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.footer__grid > div:not(.footer__brand) { display: grid; align-content: start; gap: 10px; font-size: 15px; }
.footer__grid a:not(.brand) { color: var(--fg-2); transition: color 0.2s; }
.footer__grid a:not(.brand):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; }
  .model-grid { grid-template-columns: 1fr 1fr; }
  .model--alpha { grid-column: span 2; grid-row: auto; min-height: 440px; }
  .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 40px; }
  .hero__slot { width: 100%; min-height: 180px; }
  .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; }
  .card--media .card__icon { top: 24px; inset-inline-start: 24px; }
  .section-title { margin-bottom: 36px; }
  .statement { height: 170vh; }
  .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; }
  .hold { width: 92px; height: 92px; }
  .hold__dot { top: 16px; }
  .hold__label { font-size: 12px; padding-top: 10px; }
  .hold__hint { display: none; }
  .window__body { height: 330px; padding: 16px; }
  .model-grid { grid-template-columns: 1fr; }
  .model--alpha { grid-column: auto; min-height: 420px; }
  .ring-stage { height: 256px; }
  .ring { width: 230px; height: 130px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
  .features, .models, .demo { padding: 12vh 0; }
}

@media (max-height: 700px) and (min-width: 641px) {
  .hold { width: 96px; height: 96px; }
  .hold__dot { top: 18px; }
  .hold__label { font-size: 12.5px; padding-top: 10px; }
}
/* short phones held upright: the core keeps its button and pillars on the first screen */
@media (max-width: 640px) and (max-height: 720px) {
  .core__inner { padding-top: 78px; gap: 8px; }
  .core__inner .eyebrow { display: none; }
  .core__title { font-size: 26px; }
  .core__lead { font-size: 14px; line-height: 1.6; }
  .core__slot { min-height: 96px; }
  .hold { width: 84px; height: 84px; }
  .hold__dot { top: 14px; }
  .hold__label { font-size: 12px; padding-top: 8px; }
}

/* 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__eyebrow { font-size: 14px; }
  .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: 100svh; min-height: 340px; padding: 70px 20px 16px; }
  .hero__stage { min-height: 120px; margin: 2px 0 8px; }
  .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 auto minmax(0, 1fr);
    grid-template-areas: "eye eye eye" "title title title" "hold slot pillars";
  }
  .core__inner .eyebrow { grid-area: eye; padding: 3px 12px; font-size: 12.5px; }
  .core__title { grid-area: title; font-size: 28px; }
  .core__lead, .hold__hint { display: none; }
  .core__slot { grid-area: slot; width: 100%; height: 100%; min-height: 0; }
  .hold { grid-area: hold; width: 88px; height: 88px; }
  .hold__dot { top: 15px; }
  .hold__label { font-size: 12px; padding-top: 8px; }
  .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; }
  .eyebrow { font-size: 15.5px; padding: 7px 16px; }
  .section-title { font-size: clamp(60px, 3.5vw, 84px); max-width: 1180px; }
  .hero { padding-top: 104px; }
  .hero__slot { width: min(720px, 40vw); }
  .hero__tag { font-size: clamp(30px, 1.7vw, 40px); }
  .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__icon { width: 54px; height: 54px; font-size: 25px; border-radius: 16px; }
  .card--media { min-height: 430px; }
  .card--media .card__icon { top: 36px; inset-inline-start: 36px; }
  .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; }
  .hold { width: 128px; height: 128px; }
  .hold__dot { top: 28px; }
  .hold__label { font-size: 15px; max-width: 100px; }
  .hold__hint { font-size: 15px; }
  .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__grid > div:not(.footer__brand), .footer__brand p { font-size: 17px; }
  .footer h4 { font-size: 15.5px; }
  .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--media .card__icon { top: 42px; inset-inline-start: 42px; }
  .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; }
  .hold { width: 144px; height: 144px; }
  .hold__dot { top: 32px; }
  .hold__label { font-size: 16.5px; max-width: 110px; }
  .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__grid > div:not(.footer__brand), .footer__brand p { font-size: 19px; }
  .footer h4 { font-size: 17px; }
  .footer__base { font-size: 16.5px; }
}

@media (pointer: coarse) {
  .btn, .nav__links a, .footer__grid a:not(.brand) { 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; filter: 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; }
