/* ==========================================================================
   Cup Code Studio — a Saudi game studio from Madinah
   Identity 2026: the logo's three colours (cup green #5F9E36, charcoal #25292C, warm paper #FDFCF8)
   on a near-black stage. One studio accent; every project brings its own while it is on screen.
   Two typefaces only: Readex Pro (Arabic + Latin) and JetBrains Mono (labels, numbers, code).
   ========================================================================== */

/* ---- Fonts: self-hosted, SIL Open Font License 1.1 — no third-party requests ---- */
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/readex-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/readex-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Readex Pro"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/readex-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---- Tokens ------------------------------------------------------------ */
/* Light is "paper": the logo's own background and ink. Dark is the stage: #08090B, one step up for surfaces. */
:root {
  --bg: #FDFCF8;
  --bg-2: #F4F3EE;
  --surface: #FFFFFF;
  --surface-2: #F7F6F1;
  --text: #25292C;
  --text-2: #4B5257;
  --text-3: #656C71;
  --green: #5F9E36;          /* the cup — buttons, marks, the one accent */
  --green-hover: #6CAE40;
  --green-ink: #08090B;      /* text on green (5.9:1) */
  --accent-text: #44792A;    /* green that reads as text on paper (5:1) */
  --cardamom: var(--accent-text);
  --warm: var(--accent-text);
  --saffron: var(--green);
  --sadu: var(--accent-text);
  --line: rgba(37, 41, 44, .1);
  --line-strong: rgba(37, 41, 44, .2);
  --footer-bg: #050607;
  --header-bg: rgba(253, 252, 248, .8);
  --focus: #44792A;
  --glow: rgba(95, 158, 54, .14);
  --danger: #A33A2A;
  --logo-cup: #5F9E36;
  --logo-ink: #25292C;

  --font: "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-display: var(--font);
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --container: 1200px;
  --narrow: 760px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 30px 60px -40px rgba(8, 9, 11, .35);
  color-scheme: light;
}

[data-theme="dark"], .is-dark {
  --bg: #08090B;
  --bg-2: #0C0E11;
  --surface: #111317;
  --surface-2: #161A1E;
  --text: #F2F2EC;
  --text-2: #A6ADA9;
  --text-3: #7E8682;
  --accent-text: #7DBF4F;
  --line: rgba(242, 242, 236, .07);
  --line-strong: rgba(242, 242, 236, .14);
  --header-bg: rgba(8, 9, 11, .74);
  --focus: #8CCB5E;
  --glow: rgba(95, 158, 54, .16);
  --danger: #F0A898;
  --logo-ink: #F2F2EC;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
  color-scheme: dark;
}
.is-dark { background-color: var(--bg); color: var(--text); }

/* ---- Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.8;
  font-weight: 340;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[dir="ltr"] body { line-height: 1.65; }
body::after { /* a light grain over everything, never more */
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .03; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="dark"] body::after { opacity: .045; mix-blend-mode: overlay; }
img, svg, picture { display: block; max-width: 100%; }
svg text, svg tspan { direction: ltr; } /* SVG artwork text is drawn left-to-right; positioned icons still follow the page direction */
img { height: auto; }
picture img { width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { color: var(--text); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; font-family: var(--font-display); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
/* Almadinah, the city's own typeface (uploaded in Admin → Settings → Theme). Arabic pages only; Latin glyphs fall back to Readex. */
html[data-madinah] { --font-display: "Almadinah", "Readex Pro", "Segoe UI", Tahoma, system-ui, sans-serif; }
html[data-madinah="all"] { --font: var(--font-display); }
html[data-madinah="display"] :is(.mobile-menu__list a, .hx__text, .section-lead, .studio__lead, .proj__tagline, .page-hero p, blockquote) { font-family: var(--font-display); }
html[data-madinah] :is(.display, .section-title, .hx__title, .statement__text, .proj__title) { font-family: var(--font-display); }
html[data-madinah] :is(h1, h2, h3, h4, .display, .section-title, .hx__title, .statement__text, .proj__title)[dir="ltr"] { font-family: var(--font); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; line-height: 1.4; }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--green); color: var(--green-ink); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
code, pre, kbd { font-family: var(--mono); font-size: .88em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: calc(1440px + var(--gutter) * 2); }
.narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-2); }
.small { font-size: .86em; }
.nowrap { white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--green); color: var(--green-ink); border-radius: 8px; font-weight: 500; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
/* English fragments inside Arabic pages keep LTR shaping but follow the page alignment */
[dir="rtl"] :is(h1, h2, h3, p, span.status-list__en)[dir="ltr"]:not(.eyebrow) { text-align: right; }

/* ---- Type helpers ------------------------------------------------------- */
/* The label above every section: mono, the cup's green, and the logo's braces around it. */
.eyebrow {
  display: inline-block; margin: 0 0 1.3em;
  font: 500 .72rem/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow::before { content: "{"; color: var(--text-3); font-weight: 400; margin-inline-end: .6em; }
.eyebrow::after { content: "}"; color: var(--text-3); font-weight: 400; margin-inline-start: .6em; }
.eyebrow > * { vertical-align: baseline; }
.eyebrow svg { display: inline-block; vertical-align: -.1em; }
.eyebrow__n { margin-inline-end: .5em; }
[dir="rtl"] .eyebrow:not([dir="ltr"]) { font-family: var(--font); letter-spacing: 0; font-size: .86rem; font-weight: 500; }
.eyebrow__n { color: var(--text-3); }
.eyebrow__num { color: var(--text-3); }
.eyebrow__star svg { width: 10px; height: 10px; }
.display { font-size: clamp(2.1rem, 4.8vw, 4rem); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
[dir="rtl"] .display { line-height: 1.35; letter-spacing: 0; }
.display--sm { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.section-title { font-size: clamp(1.9rem, 3.8vw, 3.2rem); line-height: 1.12; letter-spacing: -.03em; }
[dir="rtl"] .section-title { line-height: 1.35; letter-spacing: 0; }
.section-title--sm { font-size: clamp(1.2rem, 1.8vw, 1.45rem); margin-top: 1.6em; letter-spacing: -.01em; }
.section-lead { color: var(--text-2); font-size: 1.06em; max-width: 56ch; }
.field-label { font: 500 .72rem/1.5 var(--mono); letter-spacing: .12em; color: var(--text-3); margin: 0 0 .8em; text-transform: uppercase; }
[dir="rtl"] .field-label { font-family: var(--font); letter-spacing: 0; text-transform: none; font-size: .9rem; }
.label { display: block; font-size: .76rem; color: var(--text-3); letter-spacing: .04em; margin-bottom: .2em; }
.tag { display: inline-block; font: 500 .66rem/1.7 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); border: 1px solid var(--line-strong); border-radius: 6px; padding: .1em .6em; }
.text-link { display: inline-flex; align-items: center; gap: .5em; color: var(--text); text-decoration: none; font-weight: 450; border-bottom: 1px solid var(--line-strong); padding-bottom: .15em; transition: border-color .3s var(--ease), gap .3s var(--ease), color .3s; }
.text-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
[dir="rtl"] .text-link svg, [dir="rtl"] .btn__icon, [dir="rtl"] .devlog-row__arrow svg, [dir="rtl"] .platform__arrow, [dir="rtl"] .support-kind__arrow, [dir="rtl"] .legal-index svg { transform: scaleX(-1); }
.text-link:hover { border-color: var(--green); gap: .75em; color: var(--text); }
/* the underline fills in green from where you start reading */
.text-link { background: linear-gradient(var(--green), var(--green)) no-repeat 0 100% / 0 1px; transition: border-color .3s var(--ease), gap .3s var(--ease), color .3s, background-size .55s var(--ease); }
[dir="rtl"] .text-link { background-position: 100% 100%; }
.text-link:hover, .text-link:focus-visible, a:hover > .text-link { background-size: 100% 1px; }
.live-dot { position: relative; display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(95, 158, 54, .55); animation: live 2.4s var(--ease) infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(95, 158, 54, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(95, 158, 54, 0); } }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 46px; padding: .6em 1.25em;
  border-radius: 12px; border: 1px solid transparent; font-weight: 500; font-size: .95rem; line-height: 1.3; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn.magnet { translate: var(--mgx, 0px) var(--mgy, 0px); transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), translate .5s var(--ease-out); }
.btn__icon { width: 17px; height: 17px; transition: transform .3s var(--ease-out); }
.btn:hover .btn__icon { transform: translateX(3px); }
[dir="rtl"] .btn:hover .btn__icon { transform: scaleX(-1) translateX(3px); }
.btn--primary { background: var(--green); color: var(--green-ink); }
.btn--primary:hover { color: var(--green-ink); background: var(--green-hover); box-shadow: 0 0 0 4px rgba(95, 158, 54, .2); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { color: var(--text); border-color: var(--text-3); background: color-mix(in srgb, var(--text) 5%, transparent); }
.btn--sm { min-height: 36px; padding: .35em .95em; font-size: .85rem; border-radius: 10px; }
.btn--lg { min-height: 54px; padding: .75em 1.6em; font-size: 1rem; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--text-2); cursor: pointer; text-decoration: none; transition: color .2s, border-color .2s, background .2s; }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.icon-btn--text { font: 600 .74rem var(--mono); letter-spacing: .06em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- Badges ------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: .5em; font: 500 .68rem/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: .3em .75em; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--text-2); white-space: nowrap; }
[dir="rtl"] .badge { font-family: var(--font); letter-spacing: 0; text-transform: none; font-size: .78rem; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--done, .badge--t-resolved { color: var(--text-2); }
.badge--done::before { background: var(--green); }
.badge--in_progress, .badge--t-in_progress { color: var(--accent-text); border-color: color-mix(in srgb, var(--green) 45%, transparent); background: color-mix(in srgb, var(--green) 9%, transparent); }
.badge--testing { color: var(--accent-text); border-style: dashed; }
.badge--planned, .badge--t-closed { color: var(--text-3); }
.badge--t-open { color: var(--accent-text); }
.badge--pulse::before { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }

/* ---- Cardamom: the studio's signature ------------------------------------------------
   Qahwa in Madinah is brewed with cardamom, so the pod signs our work: it closes the big headlines,
   marks lists and stages, sits in empty states and rides the loading bar. Always the logo green. */
.cardamom { width: 22px; height: 22px; flex: none; color: var(--accent-text); overflow: visible; transition: transform .6s var(--ease); }
.cardamom--inline { display: inline-block; width: 1em; height: 1em; vertical-align: -.14em; }
.cardamom--sig { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-inline-start: 2px; }
.cardamom--big { width: 58px; height: 58px; filter: drop-shadow(0 10px 24px rgba(95, 158, 54, .28)); }
.cardamom--ghost { width: 120px; height: 120px; color: var(--text-3); opacity: .5; stroke-width: 1; }
.cardamom--success { color: var(--green); }
.cardamom--sep { width: 20px; height: 20px; transform: rotate(-30deg); }
[dir="rtl"] .cardamom--sep { transform: rotate(30deg); }
.cardamom--corner { position: absolute; inset-inline-end: 22px; bottom: 22px; width: 26px; height: 26px; opacity: .55; transform: rotate(24deg); }
a:hover .cardamom, .separator:hover .cardamom { transform: rotate(-8deg); }

/* The full stop of a headline is a pod (pod_stop() in PHP). It drops in after the last word. */
.pod-stop { display: inline-block; width: .52em; height: .52em; margin-inline-start: .05em; vertical-align: -.09em; color: var(--accent-text); transform: rotate(-32deg); transform-origin: 50% 80%; }
.is-dark .pod-stop { color: #7DBF4F; }
[dir="rtl"] .pod-stop { transform: rotate(32deg); vertical-align: -.12em; }
.pod-stop svg { display: block; width: 100%; height: 100%; overflow: visible; }
.js [data-split] .pod-stop { opacity: 0; translate: 0 -.9em; scale: .4; transition: opacity .3s ease, translate .9s cubic-bezier(.3, 1.6, .5, 1), scale .9s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--wn, 1) * 55ms + var(--wd0, 0ms) + 380ms); }
.js [data-split].is-in .pod-stop, .js-failed [data-split] .pod-stop { opacity: 1; translate: none; scale: none; }
.js .statement [data-split] .pod-stop { transition-delay: 0s; opacity: clamp(0, calc(var(--sp, 1) * (var(--wn, 6) + 3) - var(--wn, 6)), 1); translate: 0 calc((1 - min(1, var(--sp, 1) * 1.34)) * -1.2em); scale: 1; }

/* A pod as the bullet of plain lists in articles and legal pages. */
.prose ul:not([class]) { list-style: none; padding-inline-start: 1.4em; }
.prose ul:not([class]) > li { position: relative; }
.prose ul:not([class]) > li::before { content: ""; position: absolute; inset-inline-start: -1.25em; top: .5em; width: .62em; height: .62em; background: var(--accent-text); transform: rotate(-30deg);
  -webkit-mask: var(--pod-mask) center / contain no-repeat; mask: var(--pod-mask) center / contain no-repeat; }
[dir="rtl"] .prose ul:not([class]) > li::before { transform: rotate(30deg); }
:root { --pod-line-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4.2C16.1 5.1 17.5 9.3 16.9 13.3 16.4 16.6 14.5 19.3 12 20.6 9.5 19.3 7.6 16.6 7.1 13.3 6.5 9.3 7.9 5.1 12 4.2Z'/%3E%3Cpath d='M12 4.2C12 3 12.5 2.2 13.5 1.8'/%3E%3C/svg%3E"); }
:root { --pod-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.5C16.5 4.5 18.1 9.1 17.4 13.4 16.8 17 14.7 19.9 12 21.3 9.3 19.9 7.2 17 6.6 13.4 5.9 9.1 7.5 4.5 12 3.5ZM11.3 3.7C11.1 2.5 11.6 1.4 12.8.9 13.2 1.8 13 2.9 12.5 3.7Z'/%3E%3C/svg%3E"); }

main, .site-footer { position: relative; z-index: 1; }
main { overflow-x: clip; } /* animated elements may start off-edge; never let them widen the page (clip keeps position: sticky working) */

/* ---- Announcement bar ---------------------------------------------------- */
.announce { position: relative; z-index: 51; background: var(--green); color: var(--green-ink); font-size: .86rem; }
.announce__inner { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 38px; padding: 6px var(--gutter); text-align: center; }
.announce__tag { font: 600 .64rem var(--mono); letter-spacing: .14em; padding: 2px 7px; border-radius: 5px; background: var(--green-ink); color: var(--green); }
.announce a { display: inline-flex; align-items: center; gap: 6px; color: inherit; font-weight: 500; text-decoration: none; }
.announce a:hover { color: inherit; text-decoration: underline; }
.announce svg { width: 15px; height: 15px; }
[dir="rtl"] .announce svg { transform: scaleX(-1); }
.site-header.has-announce:not(.is-scrolled) { top: 38px; }

/* ---- Header -------------------------------------------------------------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .35s var(--ease), border-color .35s var(--ease), top .3s var(--ease), transform .45s var(--ease); border-bottom: 1px solid transparent; }
.site-header.is-hidden { transform: translateY(calc(-100% - 2px)); }
.site-header.is-scrolled, .site-header.is-solid { background: var(--header-bg); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 20px; max-width: calc(1440px + 2 * var(--gutter)); margin-inline: auto; padding: 14px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 34px; height: 34px; overflow: visible; transition: transform .5s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-6deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1; direction: ltr; text-align: start; }
.brand__name { font-weight: 650; font-size: .95rem; letter-spacing: .08em; }
.brand__sub { font: 500 .56rem var(--mono); letter-spacing: .5em; color: var(--accent-text); margin-top: 5px; }
.main-nav { margin-inline: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a, .main-nav__btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; border: 0; background: none; cursor: pointer; text-decoration: none; color: var(--text-2); font-size: .92rem; font-weight: 400; transition: color .2s, background .2s; position: relative; }
.main-nav a:hover, .main-nav__btn:hover, .main-nav__btn[aria-expanded="true"] { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.main-nav a[aria-current], .main-nav__btn[data-current] { color: var(--text); }
.main-nav > ul > li > a[aria-current]::after, .main-nav__btn[data-current]::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 14px; height: 2px; margin-left: -7px; border-radius: 2px; background: var(--green); }
.main-nav__btn svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.main-nav__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-menu { position: relative; }
/* The studio menu: a small panel with one line per page and the current project beside it */
.mega { position: absolute; top: calc(100% + 12px); left: 50%; width: min(640px, 92vw); transform: translateX(-50%); display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; padding: 8px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); animation: megaIn .28s var(--ease-out); }
@keyframes megaIn { from { opacity: 0; transform: translateX(-50%) translateY(-6px); } }
.mega::before { content: ""; position: absolute; inset: -14px 0 auto; height: 14px; } /* hover bridge */
.mega__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega__list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text); }
.mega__list a:hover, .mega__list a[aria-current] { background: color-mix(in srgb, var(--text) 6%, transparent); }
.mega__list a::after { display: none; }
.mega__list strong { display: block; font-weight: 500; font-size: .92rem; line-height: 1.3; }
.mega__list small { display: block; color: var(--text-3); font-size: .78rem; line-height: 1.4; }
.mega__icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); color: var(--accent-text); }
.mega__icon svg { width: 17px; height: 17px; }
.main-nav .mega__feature { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 4px; padding: 18px; border-radius: 12px; min-height: 100%;
  color: #E6E0D2; background: radial-gradient(90% 70% at 70% 0%, rgba(226, 162, 59, .22) 0%, rgba(226, 162, 59, .05) 45%, transparent 75%), #0B0B0A; border: 1px solid rgba(230, 224, 210, .08); overflow: hidden; }
.main-nav .mega__feature:hover { background: radial-gradient(90% 70% at 70% 0%, rgba(226, 162, 59, .3) 0%, rgba(226, 162, 59, .07) 45%, transparent 75%), #0B0B0A; color: #fff; }
.mega__feature-k { display: inline-flex; align-items: center; gap: 8px; font: 500 .62rem var(--mono); letter-spacing: .16em; color: #E2A23B; }
.mega__feature-k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.mega__feature .ch-logo { width: 100%; max-width: 190px; }
.mega__feature small { color: #A8A396; font-size: .8rem; line-height: 1.5; }
.mega__feature-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .8rem; color: #E2A23B; }
.mega__feature-go svg { width: 14px; height: 14px; }
[dir="rtl"] .mega__feature-go svg { transform: scaleX(-1); }
.header-tools { display: flex; align-items: center; gap: 4px; }
.search-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 8px 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: color-mix(in srgb, var(--surface) 40%, transparent); color: var(--text-3); cursor: pointer; font-size: .84rem; transition: border-color .2s, color .2s; margin-inline-end: 4px; }
[dir="rtl"] .search-btn { padding: 0 12px 0 8px; }
.search-btn:hover { color: var(--text); border-color: var(--text-3); }
.search-btn svg { width: 16px; height: 16px; }
.search-btn kbd { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line-strong); font-size: .7rem; color: var(--text-2); }
.header-link { color: var(--text-2); text-decoration: none; font-size: .9rem; padding: 8px 12px; }
.header-link:hover { color: var(--text); }
.header-cta { margin-inline-start: 6px; letter-spacing: .04em; }
.header-cta .btn__icon { width: 15px; height: 15px; }
.only-dark { display: none; }
[data-theme="dark"] .only-dark { display: block; }
[data-theme="dark"] .only-light { display: none; }
.menu-toggle { display: none; }
@media (max-width: 1240px) { .header-link, .search-btn__label { display: none; } .search-btn { padding: 0 8px; } }
@media (max-width: 1040px) {
  .main-nav, .header-cta, .search-btn kbd { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-tools { margin-inline-start: auto; }
  .search-btn { border-color: transparent; background: none; }
}
/* pages that open on a dark stage keep the header transparent and light until scrolling; others get it solid */
body:not(.page-home):not(.page-about):not(.page-game):not(.page-trust):not(.page-coming-soon) .site-header { background: var(--header-bg); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: var(--line); }
:is(.page-home, .page-about, .page-game, .page-trust, .page-coming-soon) .site-header:not(.is-scrolled) {
  --text: #F2F2EC; --text-2: #C3C9C5; --text-3: #8E9692; --line: rgba(242, 242, 236, .08); --line-strong: rgba(242, 242, 236, .16); --accent-text: #7DBF4F; --logo-ink: #F2F2EC; --surface: #111317; color: var(--text); }

/* ---- Mobile menu --------------------------------------------------------- */
.mobile-menu { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; padding: 14px var(--gutter) 28px; overflow-y: auto; animation: menuIn .35s var(--ease); isolation: isolate; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }
.mobile-menu > :not(.mobile-menu__bg) { position: relative; z-index: 1; }
.mobile-menu__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(60% 40% at 100% 0%, rgba(95, 158, 54, .18), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 56px 56px; }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
.mobile-menu__top .eyebrow { margin: 0; }
.mobile-menu__list { list-style: none; margin: 3vh 0 auto; padding: 0; }
.mobile-menu__list a { display: flex; align-items: baseline; gap: 18px; padding: 12px 0; font-size: clamp(1.4rem, 6vw, 2rem); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); transition: color .2s, padding .3s var(--ease); }
.mobile-menu__list a:hover { color: var(--accent-text); padding-inline-start: 6px; }
.mobile-menu__list .num { font: 500 .74rem var(--mono); color: var(--text-3); direction: ltr; }
.mobile-menu__list a[aria-current] { color: var(--accent-text); }
.mobile-menu__foot { margin-top: 28px; }
.mobile-menu__coords { margin: 0; font: 500 .7rem var(--mono); letter-spacing: .14em; color: var(--text-3); text-align: center; }
body.menu-open { overflow: hidden; }

/* ---- Search dialog ------------------------------------------------------- */
.search-dialog { position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; padding: 14vh var(--gutter) 0; }
.search-dialog__backdrop { position: absolute; inset: 0; background: rgba(5, 6, 7, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.search-dialog__box { position: relative; width: min(640px, 100%); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: var(--shadow); animation: menuIn .3s var(--ease); }
[dir="rtl"] .search-dialog__box { padding: 8px 18px 8px 8px; }
.search-dialog__icon { width: 20px; height: 20px; color: var(--text-3); flex-shrink: 0; }
.search-dialog__box input { flex: 1; min-width: 0; border: 0; background: none; font-size: 1.1rem; padding: 12px 0; outline: none; }

/* ---- Sections ------------------------------------------------------------ */
.section { padding-block: var(--section); position: relative; }
.section--tight { padding-block: calc(var(--section) * .55); }
.section--flush-top { padding-top: 0; }
.split { display: grid; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (min-width: 900px) {
  .split--begin { grid-template-columns: 1.35fr .9fr; align-items: center; }
  .split--status, .split--values, .split--feed { grid-template-columns: .8fr 1.2fr; }
  .split--game { grid-template-columns: .7fr 1.3fr; }
  .split--contact { grid-template-columns: 1.4fr .8fr; }
  .split--press { grid-template-columns: 1.3fr .9fr; }
}

/* ---- Scene: Madinah as a survey sheet ------------------------------------- */
.scene { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; background: var(--bg); }
.scene__glow { position: absolute; inset: 0; background: radial-gradient(55% 60% at 72% 30%, rgba(95, 158, 54, .2), transparent 70%), radial-gradient(40% 50% at 10% 100%, rgba(95, 158, 54, .08), transparent 70%); }
[dir="rtl"] .scene__glow { background: radial-gradient(55% 60% at 28% 30%, rgba(95, 158, 54, .2), transparent 70%), radial-gradient(40% 50% at 90% 100%, rgba(95, 158, 54, .08), transparent 70%); }
.scene__map { position: absolute; inset: 0; width: 100%; height: 100%; }
[dir="rtl"] .scene__map { transform: scaleX(-1); }
[dir="rtl"] .scene__map text { transform: scaleX(-1); transform-box: fill-box; transform-origin: center; }
.scene__contours path { fill: none; stroke: rgba(242, 242, 236, .085); stroke-width: 1; vector-effect: non-scaling-stroke; }
.scene__contours path.major { stroke: rgba(242, 242, 236, .16); }
.scene__trace { fill: none; stroke: var(--green); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 6 8; opacity: .8; animation: trace 60s linear infinite; }
@keyframes trace { to { stroke-dashoffset: -1400; } }
.scene__mark { color: var(--green); }
.scene__mark circle { fill: var(--green); }
.scene__mark path { stroke: var(--green); stroke-width: 1.5; fill: none; vector-effect: non-scaling-stroke; }
.scene__mark text { fill: rgba(242, 242, 236, .55); font: 500 13px var(--mono); letter-spacing: .16em; }
.scene__grid { position: absolute; inset: 0; background: linear-gradient(rgba(242, 242, 236, .035) 1px, transparent 1px) 0 0 / 80px 80px, linear-gradient(90deg, rgba(242, 242, 236, .035) 1px, transparent 1px) 0 0 / 80px 80px;
  -webkit-mask: radial-gradient(80% 80% at 60% 40%, #000, transparent 85%); mask: radial-gradient(80% 80% at 60% 40%, #000, transparent 85%); }
.scene__hud { position: absolute; top: 96px; inset-inline-end: var(--gutter); display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font: 500 .66rem var(--mono); letter-spacing: .16em; color: rgba(242, 242, 236, .4); direction: ltr; }
[dir="rtl"] .scene__hud { align-items: flex-start; }
.scene__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 11, .55) 0%, transparent 28%, transparent 55%, var(--bg) 100%); }
@media (max-width: 760px) { .scene__hud { display: none; } }

/* ---- Hero (home): a near-black stage, one strong line, a live scene behind it ---- */
.hx { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 0; isolation: isolate; overflow: hidden; text-align: center; }
@supports (min-height: 100svh) { .hx { min-height: 100svh; } }
.hx__stage { position: absolute; inset: 0; z-index: -1; }
.hx__fallback { position: absolute; inset: 0; background:
  radial-gradient(22% 30% at var(--hx-mx, 50%) var(--hx-my, 35%), rgba(95, 158, 54, .14), transparent 70%),
  radial-gradient(40% 55% at 50% 100%, rgba(95, 158, 54, .28), transparent 70%),
  radial-gradient(30% 40% at 50% 60%, rgba(242, 242, 236, .05), transparent 70%), var(--bg); }
/* an optional render from a real project (Admin → Settings), dimmed, moving a little with the pointer */
.hx__render { position: absolute; inset: -2%; opacity: .5; transform: translate3d(var(--hx-dx, 0), var(--hx-dy, 0), 0) scale(1.03); transition: transform .9s var(--ease-out); }
.hx__render picture { height: 100%; }
.hx__render + .hx__gl { mix-blend-mode: screen; }
.hx__gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.6s var(--ease); }
.hx__gl.is-on { opacity: 1; }
.hx__vignette { position: absolute; inset: 0; background: radial-gradient(90% 75% at 50% 45%, transparent 40%, rgba(8, 9, 11, .8) 100%), linear-gradient(180deg, rgba(8, 9, 11, .5), transparent 24%, transparent 78%, var(--bg)); }
.hx__inner { position: relative; display: flex; flex-direction: column; align-items: center; padding-bottom: 96px; }
/* scrolling away: the headline lifts and fades while the live scene stays */
.js .hx__inner { opacity: calc(1 - var(--hx-out, 0) * 1.25); translate: 0 calc(var(--hx-out, 0) * -70px); }
.hx__kicker { margin-bottom: 1.6em; }
.hx__title { font-size: clamp(2.6rem, 8.2vw, 7.4rem); font-weight: 650; line-height: 1; letter-spacing: -.045em; max-width: 14ch; margin: 0 0 .32em; }
[dir="rtl"] .hx__title { font-size: clamp(2.5rem, 7.6vw, 6.8rem); line-height: 1.22; letter-spacing: 0; max-width: 12ch; }
.hx__text { max-width: 54ch; margin-inline: auto; font-size: clamp(1rem, 1.35vw, 1.18rem); color: var(--text-2); }
.hx__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 1.8em; }
.hx .btn--ghost { background: rgba(8, 9, 11, .35); }
.hx__hud { position: relative; border-top: 1px solid var(--line); }
.hx__hud-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 64px; font: 500 .68rem var(--mono); letter-spacing: .14em; color: var(--text-3); }
.hx__coords { display: flex; gap: 18px; margin: 0; justify-self: start; }
.hx__now { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-strong); color: var(--text-2); text-decoration: none; transition: border-color .3s, color .3s, background .3s; }
.hx__now:hover { color: var(--text); border-color: var(--green); background: rgba(95, 158, 54, .08); }
.hx__now strong { color: var(--text); font-weight: 600; letter-spacing: .1em; }
.hx__now-s { color: var(--accent-text); }
.hx__scroll { justify-self: end; display: inline-flex; align-items: center; gap: 8px; color: var(--text-3); text-decoration: none; letter-spacing: 0; font-family: var(--font); font-size: .82rem; }
.hx__scroll:hover { color: var(--text); }
.hx__scroll svg { width: 16px; height: 16px; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 50% { transform: translateY(4px); } }
@media (max-width: 760px) {
  .hx { text-align: start; }
  .hx__inner { align-items: flex-start; padding-bottom: 56px; }
  .hx__actions { justify-content: flex-start; }
  .hx__actions .btn { flex: 1 1 auto; }
  .hx__hud-row { grid-template-columns: 1fr; justify-items: start; gap: 8px; padding-block: 16px; }
  .hx__coords, .hx__scroll { display: none; }
  .hx__now { justify-self: stretch; justify-content: center; gap: 8px; letter-spacing: .08em; }
  .hx__now-k { display: none; }
  .term__row { flex-wrap: wrap; gap: 4px 18px; min-height: 0; padding-block: 14px; white-space: normal; }
  .term__prompt, .term__seg + .term__seg::before { display: none; }
}
.hx__now > * { white-space: nowrap; }

/* the old full-screen hero survives only on the coming-soon page */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0; isolation: isolate; }
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero__inner { position: relative; z-index: 2; }
.hero__title { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 650; line-height: 1.08; letter-spacing: -.035em; max-width: 14ch; margin-bottom: .4em; }
[dir="rtl"] .hero__title { line-height: 1.3; letter-spacing: 0; }
.hero__text { max-width: 46ch; font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--text-2); }
.hero__eyebrow { color: var(--accent-text); }

/* ---- Terminal strip under the hero ------------------------------------------ */
.term { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.term__row { display: flex; align-items: center; gap: clamp(16px, 3.5vw, 48px); min-height: 58px; font: 500 .74rem var(--mono); letter-spacing: .12em; color: var(--text-2); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.term__row::-webkit-scrollbar { display: none; }
.term__prompt { color: var(--accent-text); }
.term__seg { position: relative; }
.term__seg + .term__seg::before { content: "/"; position: absolute; inset-inline-start: calc(-1 * clamp(16px, 3.5vw, 48px) / 2 - .3em); color: var(--text-3); }
.term__seg:first-of-type { color: var(--text); }
.term__cursor { width: 8px; height: 15px; background: var(--green); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term__clock { color: var(--accent-text); }
.term__seg.is-typing::after { content: ""; display: inline-block; width: .62em; height: 1.15em; margin-inline-start: 3px; vertical-align: -.25em; background: var(--green); }
.term__row.is-waiting .term__cursor { visibility: hidden; }
@media (max-width: 600px) { .term__clock { display: none; } }
.js .term__seg { opacity: 0; transition: opacity .5s var(--ease); }
.js .term.is-in .term__seg { opacity: 1; }
.js .term.is-in .term__seg:nth-of-type(2) { transition-delay: .35s; }
.js .term.is-in .term__seg:nth-of-type(3) { transition-delay: .7s; }
.js .term.is-in .term__seg:nth-of-type(4) { transition-delay: 1.05s; }

/* ---- Projects: each one takes most of a screen and brings its own mood ---- */
.projects { position: relative; padding: var(--section) 0 calc(var(--section) * .6); --atmo: var(--bg); background: var(--atmo); transition: background-color 1.1s var(--ease); }
.projects__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 52px); }
.projects__head .section-title { margin: 0; }
.proj + .proj { margin-top: clamp(16px, 2vw, 28px); }
.proj__frame { position: relative; display: grid; min-height: min(88vh, 860px); border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  background: radial-gradient(90% 80% at 75% 20%, color-mix(in srgb, var(--pa) 26%, var(--pt)) 0%, var(--pt) 55%, color-mix(in srgb, var(--pt) 70%, #000) 100%);
  border: 1px solid color-mix(in srgb, var(--pa) 20%, transparent); color: #F2F2EC;
  --text: #F2F2EC; --text-2: color-mix(in srgb, var(--pa) 18%, #C8CBC8); --text-3: color-mix(in srgb, var(--pa) 25%, #8E9692); --line: rgba(242, 242, 236, .1); --line-strong: rgba(242, 242, 236, .2);
  transition: border-color .6s var(--ease), box-shadow .6s var(--ease); }
[dir="rtl"] .proj__frame { background: radial-gradient(90% 80% at 25% 20%, color-mix(in srgb, var(--pa) 26%, var(--pt)) 0%, var(--pt) 55%, color-mix(in srgb, var(--pt) 70%, #000) 100%); }
.proj__frame:hover { border-color: color-mix(in srgb, var(--pa) 45%, transparent); box-shadow: 0 50px 120px -60px color-mix(in srgb, var(--pa) 60%, transparent); }
@media (min-width: 1000px) { .proj__frame { grid-template-columns: 1fr 1.1fr; } .proj__media { order: 2; } }
.proj__media { position: relative; display: grid; place-items: center; min-height: 340px; padding: clamp(24px, 4vw, 56px); overflow: hidden; }
.proj__picture { position: absolute; inset: 0; margin: 0; }
.proj__picture picture { height: 100%; transition: transform 1.6s var(--ease-out); }
.proj__picture img { scale: 1.08; translate: 0 calc(var(--pr, 0) * 34px); }
.proj__frame:hover .proj__picture picture { transform: scale(1.03); }
.proj__picture::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--pt), transparent 45%); }
[dir="rtl"] .proj__picture::after { background: linear-gradient(-90deg, var(--pt), transparent 45%); }
@media (max-width: 999px) { .proj__picture::after, [dir="rtl"] .proj__picture::after { background: linear-gradient(0deg, var(--pt), transparent 50%); } }
.proj__lamp { position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 0%, rgba(226, 162, 59, .16), transparent 70%), linear-gradient(transparent 78%, rgba(226, 162, 59, .05) 78.2%, transparent 78.6%); }
.proj__mark { display: block; position: relative; width: min(560px, 92%); translate: 0 calc(var(--pr, 0) * -18px); transition: transform 1.2s var(--ease-out); }
.proj__frame:hover .proj__mark { transform: translateY(-4px); }
.proj__pattern { position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(color-mix(in srgb, var(--pa) 12%, transparent) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, color-mix(in srgb, var(--pa) 12%, transparent) 1px, transparent 1px) 0 0 / 48px 48px; }
.proj__pattern span { font: 700 clamp(8rem, 20vw, 16rem)/1 var(--font); color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--pa) 55%, transparent); }
.proj__body { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: clamp(28px, 5vw, 72px); }
.proj__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0 0 18px; font: 500 .68rem var(--mono); letter-spacing: .16em; color: var(--text-3); }
.proj__idx { color: var(--pa); }
.proj__status { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--pa) 35%, transparent); color: #F2F2EC; }
.proj__status .live-dot { background: var(--pa); animation: none; }
.proj__logo { display: block; width: min(520px, 100%); margin-bottom: 6px; }
.proj__logo-img { width: auto; max-width: min(460px, 100%); max-height: 160px; margin-bottom: 10px; }
.proj__title { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1; margin: 0 0 .25em; }
.proj__tagline { margin: 4px 0 10px; font-size: clamp(1.1rem, 1.8vw, 1.45rem); color: color-mix(in srgb, var(--pa) 35%, #F6E7B0); font-weight: 450; }
.proj--main .proj__tagline { color: var(--pa); font: 500 clamp(.74rem, 1.1vw, .86rem) "JetBrains Mono", var(--font); }
[lang="en"] .proj--main .proj__tagline { letter-spacing: .14em; text-transform: uppercase; }
.proj__summary { color: var(--text-2); max-width: 50ch; font-size: 1.04rem; }
.proj__hook { display: grid; gap: 2px; margin: 6px 0 24px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 600; line-height: 1.35; color: #F2F2EC; }
.proj__hook span:last-child { color: var(--text-2); font-weight: 500; }
.btn--project { background: var(--pa); color: color-mix(in srgb, var(--pt) 80%, #000); }
.btn--project:hover { background: color-mix(in srgb, var(--pa) 85%, #fff); color: color-mix(in srgb, var(--pt) 80%, #000); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pa) 25%, transparent); }
.proj .btn--ghost { color: #F2F2EC; border-color: rgba(242, 242, 236, .22); }
.proj .ai-note { color: var(--text-3); }
@media (max-width: 999px) { .proj__frame { min-height: 0; } .proj__media { min-height: 260px; } }

/* ---- How we make games: the workshop window -------------------------------- */
.craft__head { margin-bottom: clamp(28px, 4vw, 52px); }
.craft__ui { display: grid; gap: 16px; }
@media (min-width: 980px) { .craft__ui { grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 20px; align-items: stretch; } }
.craft__tabs { display: grid; gap: 8px; align-content: start; }
.craft__tabs [role="tab"] { position: relative; display: flex; align-items: flex-start; gap: 16px; width: 100%; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: transparent; cursor: pointer; text-align: start; overflow: hidden; transition: border-color .3s, background .3s; }
.craft__tabs [role="tab"]:hover { border-color: var(--line-strong); }
.craft__tabs [aria-selected="true"] { background: var(--surface); border-color: var(--line-strong); }
.craft__n { font: 500 .72rem/1.9 var(--mono); color: var(--text-3); letter-spacing: .1em; }
[aria-selected="true"] .craft__n { color: var(--accent-text); }
.craft__label strong { display: block; font-weight: 600; font-size: 1.08rem; line-height: 1.35; }
.craft__label small { display: block; color: var(--text-2); font-size: .9rem; line-height: 1.5; margin-top: 2px; }
.craft__tabs [aria-selected="false"] .craft__label small { color: var(--text-3); }
.craft__bar { position: absolute; inset: auto 0 0 0; height: 2px; background: var(--green); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .craft__bar { transform-origin: right; }
[aria-selected="true"] .craft__bar { animation: craftbar var(--craft-ms, 7000ms) linear forwards; }
.craft__ui.is-paused [aria-selected="true"] .craft__bar, .craft__ui:not(.is-auto) [aria-selected="true"] .craft__bar { animation: none; transform: scaleX(1); opacity: .5; }
@keyframes craftbar { to { transform: scaleX(1); } }
.craft__window { display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--line-strong); background: #0B0D10; color: #E8EAE4; overflow: hidden; box-shadow: var(--shadow); min-height: 380px; }
.craft__chrome { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid rgba(242, 242, 236, .08); font: 500 .74rem var(--mono); color: #8E9692; }
.craft__keys { display: inline-flex; align-items: center; gap: 8px; }
.craft__keys b { color: #F2F2EC; font-size: 1rem; line-height: 1; font-weight: 700; }
.craft__keys i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.craft__file { color: #F2F2EC; padding: 4px 10px; border-radius: 6px; background: rgba(242, 242, 236, .06); }
.craft__branch { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; }
.craft__branch svg { width: 15px; height: 15px; }
.craft__panel { flex: 1; padding: 22px 0; outline: none; animation: fadeUp .45s var(--ease-out); }
.craft__panel:focus-visible { box-shadow: inset 0 0 0 2px var(--focus); }
.code { margin: 0; padding: 0; overflow-x: auto; font: 400 clamp(.8rem, 1.05vw, .92rem)/1.9 var(--mono); counter-reset: ln; text-align: left; background: none; border: 0; color: inherit; }
.code code { display: block; font-size: inherit; }
.code__ln { display: block; padding-inline: 20px 24px; counter-increment: ln; white-space: pre; }
.code__ln::before { content: counter(ln); display: inline-block; width: 2.4em; margin-right: 1.2em; text-align: right; color: #4C5450; }
.code__ln:hover { background: rgba(242, 242, 236, .03); }
@media (max-width: 600px) {
  .code { font-size: .76rem; line-height: 1.75; }
  .code__ln { white-space: pre-wrap; padding-inline: calc(3.2em + 14px) 14px; text-indent: -3.2em; }
  .code__ln::before { width: 2em; margin-right: 1.2em; text-indent: 0; }
}
.t-c { color: #7E8682; }
.t-k { color: #9ACD72; }
.t-s { color: #F6E7B0; }
.t-f { color: #C8CFE0; }
.t-f .t-s { color: #F6E7B0; }
.t-n { color: #A996FF; }
.t-a { color: #9ACD72; background: rgba(95, 158, 54, .08); }
.t-d { color: #E8907A; background: rgba(232, 144, 122, .07); text-decoration: line-through; text-decoration-color: rgba(232, 144, 122, .4); }
.craft__note { margin: 0; padding: 12px 20px; border-top: 1px solid rgba(242, 242, 236, .08); font-size: .8rem; color: #7E8682; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* ---- The statement: typography only --------------------------------------- */
.statement { position: relative; padding: clamp(110px, 16vw, 220px) 0; overflow: hidden; border-block: 1px solid var(--line); }
.statement__text { margin: 0; font-size: clamp(2.8rem, 9.4vw, 9rem); font-weight: 700; line-height: .98; letter-spacing: -.05em; max-width: 13ch; text-wrap: balance; }
[dir="rtl"] .statement__text { font-size: clamp(2.6rem, 8.6vw, 8.2rem); line-height: 1.25; letter-spacing: 0; }
.js .statement .statement__text[data-split] .w { transform: none; transition: opacity .25s linear; transition-delay: 0s; opacity: clamp(.14, calc(var(--sp, 1) * (var(--wn, 6) + 3) - var(--wi, 0)), 1); }
.statement__sig { margin: 2.2em 0 0; font: 500 .72rem var(--mono); letter-spacing: .18em; color: var(--text-3); }

/* ---- Latest development ------------------------------------------------------ */
.latest__head, .backstage__head, .archive-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.latest__grid { display: grid; gap: 20px; }
@media (min-width: 1000px) { .latest__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; } .latest__grid--side-only { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .latest__grid--side-only .latest__side { display: contents; } }
.latest__side { display: grid; gap: 20px; }
.latest .devlog-feature__link { grid-template-columns: 1fr; }
.latest .devlog-feature__media { aspect-ratio: 16 / 8; }
.panel { position: relative; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.panel__k { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font: 500 .66rem var(--mono); letter-spacing: .16em; color: var(--text-3); }
.panel__k svg { width: 15px; height: 15px; color: var(--accent-text); }
.panel__title { font-size: 1.3rem; margin-bottom: .4em; }
.panel__note { margin: 14px 0 0; font-size: .84rem; color: var(--text-3); }
.panel__notes { display: grid; gap: 12px; margin-bottom: 16px; }
.panel .focus { margin-top: 16px; }

/* ---- Status list --------------------------------------------------------------- */
.status-list { list-style: none; margin: 0; padding: 0; position: relative; }
.status-list::before { content: ""; position: absolute; inset-inline-start: 6px; top: 14px; bottom: 14px; width: 1px; background: var(--line-strong); }
.status-list__item { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 16px; padding: 16px 0 16px 32px; border-bottom: 1px solid var(--line); }
.status-list__item:last-child { border-bottom: 0; }
[dir="rtl"] .status-list__item { padding: 16px 32px 16px 0; }
.status-list__dot { position: absolute; inset-inline-start: -2px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; background: var(--text-3); -webkit-mask: var(--pod-line-mask) center / contain no-repeat; mask: var(--pod-line-mask) center / contain no-repeat; }
.status-list__item.is-done .status-list__dot, .status-list__item.is-in_progress .status-list__dot, .status-list__item.is-testing .status-list__dot { background: var(--green); -webkit-mask-image: var(--pod-mask); mask-image: var(--pod-mask); }
.status-list__item.is-testing .status-list__dot { opacity: .6; }
/* the stage being brewed now glows and sways a little */
.status-list__item.is-in_progress::before { content: ""; position: absolute; inset-inline-start: -10px; top: 50%; width: 33px; height: 33px; margin-top: -16.5px; border-radius: 50%; background: radial-gradient(circle, rgba(95, 158, 54, .38), transparent 68%); animation: pulse 2.6s ease-in-out infinite; }
.status-list__item.is-in_progress .status-list__dot { animation: pod-sway 3.2s ease-in-out infinite; }
@keyframes pod-sway { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
.status-list__en { display: block; font: 600 .86rem var(--mono); letter-spacing: .1em; }
.status-list__ar { display: block; color: var(--text-2); font-size: .9rem; }
.status-list__note { grid-column: 1 / -1; margin: 4px 0 0; color: var(--text-2); font-size: .92rem; }
.status-list__why { grid-column: 1 / -1; font-size: .88rem; color: var(--text-2); }
.status-list__why summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; color: var(--text-3); border-bottom: 1px dashed var(--line-strong); }
.status-list__why summary::-webkit-details-marker { display: none; }
.status-list__why summary::before { content: "؟"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: .7rem; color: var(--accent-text); border: 1px solid currentColor; }
[dir="ltr"] .status-list__why summary::before { content: "?"; }
.status-list__why summary:hover { color: var(--text); }
.status-list__why[open] p { animation: fadeUp .4s var(--ease); }
.status-list__why p { margin: 8px 0 0; max-width: 56ch; }
.focus { display: flex; gap: 12px; align-items: baseline; margin: 22px 0 0; padding: 12px 16px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--green) 7%, transparent); border: 1px solid color-mix(in srgb, var(--green) 22%, transparent); max-width: 52ch; font-size: .95rem; }
.focus strong { font-weight: 600; }
.focus__dot { position: relative; top: -1px; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: live 2.4s var(--ease) infinite; }

/* ---- Devlogs ------------------------------------------------------------------ */
.devlog-feature { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: border-color .3s, transform .35s var(--ease); }
.devlog-feature:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.devlog-feature__link { display: grid; text-decoration: none; }
@media (min-width: 860px) { .devlog-feature__link { grid-template-columns: 1.25fr 1fr; } }
.devlog-feature__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); position: relative; }
.devlog-feature__media picture { height: 100%; transition: transform 1.2s var(--ease); }
.devlog-feature:hover .devlog-feature__media picture { transform: scale(1.025); }
/* no cover yet: a quiet editor-like card instead of an empty box */
.devlog-feature__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3);
  background: radial-gradient(60% 80% at 80% 10%, var(--glow), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 32px 32px, var(--bg-2); }
.devlog-feature__placeholder .cardamom--ghost { transform: rotate(-24deg); }
.devlog-feature:hover .devlog-feature__placeholder .cardamom--ghost { transform: rotate(-12deg) scale(1.04); color: var(--accent-text); }
.ph-line { position: absolute; inset: auto 0 0 0; height: 2px; background: linear-gradient(90deg, var(--green), transparent 70%); }
[dir="rtl"] .ph-line { background: linear-gradient(-90deg, var(--green), transparent 70%); }
.devlog-feature__body { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; justify-content: center; }
.devlog-feature__body h3, .devlog-feature__body h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.devlog-feature__body p { color: var(--text-2); }
.devlog-feature__body .text-link { align-self: flex-start; }
.devlog-feature__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: .85rem; color: var(--text-2); }
.featured-mark { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 500; }
.featured-mark svg { width: 13px; height: 13px; }
.devlog-list { margin-top: clamp(14px, 2vw, 24px); border-top: 1px solid var(--line); }
.devlog-row__link { display: grid; grid-template-columns: 1fr; gap: 8px 28px; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative; }
@media (min-width: 760px) { .devlog-row__link { grid-template-columns: 150px 1fr auto auto; align-items: center; } }
.devlog-row__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--text-3); font-size: .84rem; }
@media (min-width: 760px) { .devlog-row__meta { flex-direction: column; align-items: flex-start; } }
.devlog-row__body h3 { font-size: 1.15rem; margin-bottom: .25em; transition: color .25s; }
.devlog-row__body p { color: var(--text-2); margin: 0; font-size: .95rem; }
.devlog-row__thumb { width: 120px; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; display: none; }
@media (min-width: 760px) { .devlog-row__thumb { display: block; } }
.devlog-row__arrow svg { width: 20px; height: 20px; color: var(--text-3); transition: transform .3s var(--ease), color .3s; }
.devlog-row__link:hover h3 { color: var(--accent-text); }
.devlog-row__link:hover .devlog-row__arrow svg { color: var(--accent-text); transform: translateX(4px); }
[dir="rtl"] .devlog-row__link:hover .devlog-row__arrow svg { transform: scaleX(-1) translateX(4px); }
.devlog-list--archive { margin-top: 0; }
.archive-head { margin-top: clamp(56px, 7vw, 96px); padding-bottom: 16px; margin-bottom: 0; }
.archive-head__title { font-size: 1.1rem; margin: 0; color: var(--text-2); font-weight: 400; }
.archive-empty { padding: 32px 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters a, .filters button { padding: 6px 14px; border-radius: 8px; border: 1px solid var(--line); background: none; color: var(--text-2); font-size: .82rem; text-decoration: none; cursor: pointer; transition: all .2s; }
.filters a:hover, .filters button:hover { color: var(--text); border-color: var(--line-strong); }
.filters [aria-current="true"], .filters [aria-pressed="true"] { color: var(--green-ink); background: var(--green); border-color: var(--green); }
.pager { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 40px; }

/* ---- Sawalif: studio notes as a chat -------------------------------------------- */
.bubble { display: flex; align-items: flex-end; gap: 10px; }
.bubble__avatar { position: relative; flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--accent-text); background: var(--bg-2); border: 1px solid var(--line-strong); }
.bubble__avatar svg { width: 19px; height: 19px; }
.bubble__steam { position: absolute; top: -12px; left: 50%; display: flex; gap: 4px; transform: translateX(-50%); }
.bubble__steam i { width: 2px; height: 11px; border-radius: 2px; background: linear-gradient(transparent, color-mix(in srgb, var(--green) 60%, transparent), transparent); animation: steam-rise 3.2s ease-in-out infinite; }
.bubble__steam i:nth-child(2) { animation-delay: 1.4s; }
.bubble__box { position: relative; flex: 1; min-width: 0; padding: 12px 16px 14px; border-radius: 16px 16px 16px 4px; background: var(--bg-2); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .3s; }
[dir="rtl"] .bubble__box { border-radius: 16px 16px 4px 16px; }
.panel .bubble__box { background: var(--bg-2); }
.bubble:hover .bubble__box { transform: translateY(-2px); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.bubble__meta { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; font-size: .78rem; color: var(--text-3); }
.bubble__meta strong { color: var(--accent-text); font-weight: 600; font-size: .84rem; }
.bubble__meta time { direction: ltr; unicode-bidi: isolate; }
.bubble__text { margin: 0; font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.bubble:target .bubble__box { border-color: var(--green); box-shadow: 0 0 0 3px rgba(95, 158, 54, .3); }
.chat { display: grid; gap: 14px; padding: clamp(18px, 3vw, 32px); border-radius: calc(var(--radius) + 6px); border: 1px solid var(--line);
  background: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 0) 0 0 / 22px 22px, var(--bg-2); }
.chat .bubble { max-width: 620px; }
.chat .bubble__box { background: var(--surface); }
.chat__day { display: flex; justify-content: center; margin: 8px 0 0; }
.chat__day span { padding: 4px 14px; border-radius: 8px; font: 500 .72rem var(--mono); letter-spacing: .06em; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); }
.chat__note { margin-top: 22px; text-align: center; }
.bubble--typing .bubble__box { flex: 0 0 auto; padding: 14px 18px; }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); animation: dot 1.3s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .18s; } .dots i:nth-child(3) { animation-delay: .36s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes steam-rise { 0% { opacity: 0; transform: translateY(20px) scaleY(.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px) scaleY(1.1) skewX(8deg); } }
.feed__more { font-size: .85rem; color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .bubble__steam i, .dots i { animation: none; } }

/* ---- The studio --------------------------------------------------------------- */
.studio__top { display: grid; gap: clamp(24px, 4vw, 64px); margin-bottom: clamp(40px, 6vw, 80px); }
@media (min-width: 960px) { .studio__top { grid-template-columns: 1.15fr 1fr; align-items: end; } }
.studio__top .display { margin: 0; max-width: 16ch; }
.studio__copy p { color: var(--text-2); max-width: 56ch; }
.studio__lead, .editorial__lead { font-size: clamp(1.15rem, 1.8vw, 1.4rem); color: var(--text) !important; font-weight: 450; }
.editorial p { max-width: 58ch; }
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0 0 clamp(48px, 7vw, 96px); border-top: 1px solid var(--line-strong); }
.figure { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 24px 20px 26px 0; border-bottom: 1px solid var(--line); }
[dir="rtl"] .figure { padding: 24px 0 26px 20px; }
.figure + .figure { border-inline-start: 1px solid var(--line); padding-inline-start: 20px; }
@media (max-width: 560px) { .figure + .figure { border-inline-start: 0; padding-inline-start: 0; } .figure, [dir="rtl"] .figure { padding-inline-end: 0; } }
.figure dt { order: -1; font: 500 .68rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
[dir="rtl"] .figure dt { font-family: var(--font); letter-spacing: 0; font-size: .86rem; text-transform: none; }
.figure dd { margin: 6px 0 0; font: 600 clamp(2.6rem, 5.4vw, 4.4rem)/1 var(--font); letter-spacing: -.04em; text-align: start; }
.figure dd small { font-size: .4em; color: var(--accent-text); margin-inline-start: .15em; letter-spacing: 0; }
.figure__word { white-space: nowrap; font-size: clamp(1.2rem, 1.9vw, 1.7rem) !important; letter-spacing: .02em !important; font-family: var(--mono) !important; font-weight: 600 !important; padding-block: .4em .2em; }
.figure dd.figure__note { margin: 4px 0 0; font: 400 .9rem/1.5 var(--font); letter-spacing: 0; color: var(--text-2); }
[dir="rtl"] .figure dd { text-align: right; }
.principles__title { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 1em; }
.principles__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
@media (min-width: 1000px) { .principles__grid { grid-template-columns: repeat(6, 1fr); } .principle--1, .principle--4 { grid-column: span 4; } .principle--2, .principle--3 { grid-column: span 2; } }
.principle { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 24px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .35s var(--ease); }
.principle:hover { border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.principle::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.principle:hover::after { opacity: 1; }
.principle__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.principle__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-strong); color: var(--accent-text); }
.principle__icon svg { width: 21px; height: 21px; }
.principle__n { font: 500 .72rem var(--mono); color: var(--text-3); letter-spacing: .1em; }
.principle h4 { font-size: 1.2rem; margin: 0 0 .2em; }
.principle p { color: var(--text-2); margin: 0 0 6px; font-size: .97rem; }
.principle .text-link { margin-top: auto; align-self: flex-start; }
.hats { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; padding: 16px 20px; border-radius: var(--radius); border: 1px dashed var(--line-strong); }
.hats__label { margin: 0; font-weight: 500; }
.hats__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.hats__list li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); font-size: .9rem; }
.hats__list svg { width: 16px; height: 16px; color: var(--accent-text); }

/* ---- Join the workshop ---------------------------------------------------------- */
.join { border-top: 1px solid var(--line); }
.join__head { margin-bottom: clamp(28px, 4vw, 48px); }
.join__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.join-card a { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; overflow: hidden; transition: border-color .35s var(--ease), transform .35s var(--ease); }
.join-card a:hover { border-color: color-mix(in srgb, var(--green) 45%, transparent); transform: translateY(-3px); }
.join-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--accent-text); margin-bottom: 12px; transition: transform .5s var(--ease-out); }
.join-card a:hover .join-card__icon { transform: rotate(-6deg) scale(1.06); }
.join-card__icon svg { width: 22px; height: 22px; }
.join-card__k { font: 500 .64rem var(--mono); letter-spacing: .16em; color: var(--text-3); }
.join-card strong { font-size: 1.25rem; font-weight: 600; }
.join-card__d { color: var(--text-2); font-size: .95rem; margin-bottom: 14px; }
.join-card__state { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; align-self: flex-start; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--line-strong); font: 500 .64rem var(--mono); letter-spacing: .14em; color: var(--text-3); }
.join-card__state .live-dot { background: var(--text-3); animation: none; }
.join-card__state.is-open { color: var(--accent-text); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.join-card__state.is-open .live-dot { background: var(--green); animation: live 2.4s var(--ease) infinite; }

/* ---- Contact band + newsletter ---------------------------------------------------- */
.contact-band { overflow: hidden; border-top: 1px solid var(--line); }
.contact-band__glow { position: absolute; inset: auto 0 -40% 0; height: 90%; background: radial-gradient(50% 60% at 50% 100%, rgba(95, 158, 54, .22), transparent 70%); pointer-events: none; }
.contact-band__grid { position: relative; display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) { .contact-band__grid { grid-template-columns: 1.1fr 1fr; } }
.contact-band .display { max-width: 14ch; }
.contact-band .cta-row { margin-top: 1.6em; }
.separator { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(40px, 6vw, 72px); }
.separator__line { flex: 1; height: 1px; background: var(--line-strong); transform-origin: center; }
.closing__grid, .follow__grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) { .closing__grid, .follow__grid { grid-template-columns: 1fr 1fr; } }
.platform-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 1.4em 0; }
.platform-pills a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 10px; text-decoration: none; font-size: .9rem; transition: border-color .2s, transform .25s var(--ease); }
.platform-pills a:hover { border-color: var(--text-2); transform: translateY(-1px); }
.platform-pills svg { width: 16px; height: 16px; }
.newsletter { position: relative; padding: clamp(26px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: grid; gap: 18px; }
.newsletter__art { position: absolute; inset-inline-end: -18px; top: -18px; opacity: .12; transform: rotate(28deg); }
.newsletter__art .cardamom { width: 150px; height: 150px; color: var(--green); }
.newsletter h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-bottom: .3em; }
.newsletter p { color: var(--text-2); margin: 0; }
.newsletter__form { display: grid; gap: 10px; }
.newsletter .newsletter__label { margin: 0 0 6px; font: 500 .7rem var(--mono); letter-spacing: .16em; color: var(--accent-text); }
.inline-field { display: flex; gap: 8px; padding: 6px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-strong); transition: border-color .2s, box-shadow .2s; }
.inline-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(95, 158, 54, .18); }
.inline-field input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 14px; outline: none; }
.inline-field .btn { border-radius: 10px; }
.form-status { min-height: 1.5em; margin: 0; font-size: .92rem; }
.form-status.is-ok { color: var(--accent-text); }
.form-status.is-error { color: var(--danger); }
@media (max-width: 480px) { .inline-field { flex-direction: column; } .inline-field input { padding: 10px 12px; } }

/* ---- Spotlight + tilt (set by site.js) -------------------------------------------- */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); transition: transform .45s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); will-change: transform; }
.tilt.is-tilting { transition: transform .08s linear, box-shadow .35s var(--ease), border-color .35s var(--ease); --ty: -3px; }
.tilt.tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px); }

/* ---- Page hero: a measured sheet for plain pages, the survey scene for the big ones ---- */
.page-hero { position: relative; padding: calc(var(--section) + 70px) 0 calc(var(--section) * .6); isolation: isolate; overflow: hidden; }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); max-width: 18ch; letter-spacing: -.035em; }
[dir="rtl"] .page-hero h1 { letter-spacing: 0; }
.page-hero__text { color: var(--text-2); font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 56ch; }
.page-hero__lines { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 64px 64px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask: radial-gradient(70% 90% at 85% 0%, #000, transparent 75%); mask: radial-gradient(70% 90% at 85% 0%, #000, transparent 75%); }
[dir="rtl"] .page-hero__lines { -webkit-mask: radial-gradient(70% 90% at 15% 0%, #000, transparent 75%); mask: radial-gradient(70% 90% at 15% 0%, #000, transparent 75%); }
.page-hero__lines::after { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 60% at 85% 0%, var(--glow), transparent 70%); }
.page-hero--compact { padding-bottom: clamp(40px, 5vw, 64px); }
.page-hero--compact h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.page-hero--scene { min-height: 78vh; display: flex; align-items: flex-end; }
.page-hero--support { text-align: center; }
.page-hero--support h1, .page-hero--support .page-hero__text { margin-inline: auto; }
.page-hero .btn--lg { margin-top: 10px; }
.back-link { display: inline-flex; align-items: center; gap: .5em; color: var(--text-2); text-decoration: none; font-size: .88rem; margin-bottom: 1.4em; }
.back-link svg { width: 16px; height: 16px; transform: scaleX(-1); }
[dir="rtl"] .back-link svg { transform: none; }
.back-link:hover { color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2em; }
.scroll-cue { position: absolute; z-index: 4; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-2); text-decoration: none; font-size: .78rem; letter-spacing: .12em; }
.scroll-cue svg { width: 18px; height: 18px; animation: cue 2.4s ease-in-out infinite; }

/* ---- Playtest: steps and what to expect ------------------------------------------- */
.why { background: var(--bg-2); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding: 26px 22px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .35s var(--ease); }
.step:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.step__n { position: absolute; top: 18px; inset-inline-end: 20px; font: 600 .78rem/1 var(--mono); letter-spacing: .1em; color: var(--text-3); }
.step__icon { width: 26px; height: 26px; color: var(--accent-text); margin-bottom: 16px; }
.step h3 { font-size: 1.12rem; font-weight: 600; margin: 0 0 4px; }
.step p { margin: 0; color: var(--text-2); font-size: .95rem; }
.check--playtest { margin: 2px 0 0; font-size: .9rem; }
.check--playtest strong { font-weight: 500; color: var(--text); }

/* ---- About ---------------------------------------------------------------- */
.journal { display: grid; gap: 24px; }
@media (min-width: 900px) { .journal { grid-template-columns: 180px 1fr; } }
.journal__num { font-family: var(--mono); font-size: clamp(3rem, 8vw, 6rem); color: var(--text-3); line-height: 1; margin: 0; }
.journal__body p { max-width: 60ch; font-size: 1.08em; }
.big-quote { margin: 0; padding: clamp(32px, 6vw, 72px) 0; border-block: 1px solid var(--line); }
.big-quote p { font-size: clamp(1.8rem, 4.2vw, 3.4rem); line-height: 1.25; font-weight: 400; margin-bottom: .6em; max-width: 20ch; }
.big-quote footer { color: var(--text-2); max-width: 62ch; font-size: 1.05em; }
.madinah { position: relative; min-height: 88vh; display: flex; align-items: flex-end; padding: var(--section) 0; isolation: isolate; }
.madinah__inner { position: relative; z-index: 2; }
.madinah__text { max-width: 60ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--text-2); }
.madinah__inner { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius); background: color-mix(in srgb, var(--bg) 78%, transparent); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); max-width: 720px; }
.values__list { display: grid; gap: 0; }
.value { display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.value:first-child { border-top: 1px solid var(--line); }
.value__num { grid-row: span 2; font-family: var(--mono); color: var(--warm); font-size: .85rem; padding-top: .35em; }
.value h3 { font-size: 1.3rem; margin-bottom: .2em; }
.value p { color: var(--text-2); margin: 0; }
.prose { max-width: 68ch; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.22rem; margin-top: 1.6em; }
.prose h4 { font-size: 1.05rem; margin-top: 1.4em; }
.prose a { color: var(--text); text-decoration-color: var(--green); }
.prose ul, .prose ol { padding-inline-start: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--cardamom); }
.prose strong { font-weight: 600; }
.prose blockquote { margin: 1.8em 0; padding: .4em 1.4em; border-inline-start: 2px solid var(--warm); font-size: 1.2em; color: var(--text); font-weight: 400; }
.prose blockquote p { margin: 0; }
.prose code { background: var(--surface-2); padding: .1em .4em; border-radius: 5px; direction: ltr; unicode-bidi: embed; }
.prose pre { background: #0B0D10; color: #E8EAE4; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; overflow-x: auto; direction: ltr; text-align: left; line-height: 1.6; }
.prose pre code { background: none; padding: 0; }
.prose--lead { font-size: 1.12em; }
.prose--article { font-size: 1.08em; }
.md-figure { margin: 2.2em 0; }
.prose--article .md-figure { margin-inline: calc(50% - min(50vw, 600px) + var(--gutter) / 2); }
.md-figure img { width: 100%; border-radius: var(--radius-sm); }
.md-figure figcaption { font-size: .86rem; color: var(--text-3); margin-top: 10px; text-align: center; }

/* ---- Team ----------------------------------------------------------------- */
.team-rows { border-top: 1px solid var(--line); }
.member { display: grid; gap: 20px 40px; padding: 40px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 860px) { .member { grid-template-columns: 180px 1fr 1.3fr; align-items: start; } }
.member__photo { width: 180px; max-width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--surface); display: grid; place-items: center; }
.member__initial { font-size: 3rem; color: var(--text-3); }
.member h2 { font-size: 1.6rem; margin-bottom: .1em; }
.member__role { color: var(--warm); }
.member__love { font-style: italic; color: var(--text-2); }

/* ---- Games index: every project keeps its own accent and mood ------------------------ */
.games-list { display: grid; gap: 20px; }
.game-card { --pa: #E2A23B; --pt: #0B0B0A; display: grid; border: 1px solid color-mix(in srgb, var(--pa) 22%, transparent); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: #F2F2EC;
  background: radial-gradient(90% 90% at 80% 10%, color-mix(in srgb, var(--pa) 18%, var(--pt)), var(--pt) 60%, color-mix(in srgb, var(--pt) 70%, #000));
  --text: #F2F2EC; --text-2: color-mix(in srgb, var(--pa) 15%, #C8CBC8); --text-3: color-mix(in srgb, var(--pa) 25%, #8E9692); --line-strong: rgba(242, 242, 236, .2);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .5s var(--ease); }
a.game-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--pa) 50%, transparent); color: #F2F2EC; box-shadow: 0 40px 100px -60px color-mix(in srgb, var(--pa) 70%, transparent); }
@media (min-width: 900px) { .game-card { grid-template-columns: 1.3fr 1fr; } }
.game-card__media { aspect-ratio: 16 / 10; position: relative; overflow: hidden; }
.game-card__media picture { height: 100%; transition: transform 1.4s var(--ease-out); }
a.game-card:hover .game-card__media picture { transform: scale(1.03); }
.game-card__stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 10%; background: radial-gradient(70% 60% at 50% 0%, color-mix(in srgb, var(--pa) 16%, transparent), transparent 70%), var(--pt); }
.game-card__stage--plain { background: linear-gradient(color-mix(in srgb, var(--pa) 12%, transparent) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, color-mix(in srgb, var(--pa) 12%, transparent) 1px, transparent 1px) 0 0 / 40px 40px; }
.game-card__stage--plain span { font: 700 clamp(6rem, 14vw, 11rem)/1 var(--font); color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--pa) 60%, transparent); }
.game-card__body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 10px; align-items: flex-start; }
.game-card__body .proj__meta { margin-bottom: 6px; }
.game-card__body h2 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 700; letter-spacing: -.01em; margin: 0; }
.game-card__logo { width: auto; max-width: min(360px, 100%); max-height: 120px; }
.game-card__body p { color: var(--text-2); margin: 0; }
.game-card__stage .ch-logo { width: 100%; }
.game-card__body .game-card__slogan { color: color-mix(in srgb, var(--pa) 35%, #F6E7B0); font-size: 1.1rem; }
.game-card--main .game-card__slogan { color: var(--pa); font: 500 .8rem "JetBrains Mono", var(--font); }
[lang="en"] .game-card--main .game-card__slogan { letter-spacing: .14em; text-transform: uppercase; }
.game-card .text-link { color: #F2F2EC; margin-top: 8px; }
.game-card .text-link:hover, a.game-card:hover .text-link { border-color: var(--pa); }

/* ---- Game page ------------------------------------------------------------- */
.game-hero { position: relative; min-height: 100svh; min-height: 100vh; display: flex; align-items: flex-end; padding: 140px 0 clamp(70px, 10vh, 120px); background: #040508; color: #F2F0E9; isolation: isolate; overflow: hidden; }
.game-hero__bg { position: absolute; inset: 0; z-index: -1; }
.game-hero__bg picture { position: absolute; inset: 0; }
.game-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 5, 8, .5), transparent 35%, rgba(4, 5, 8, .75) 80%, #040508); }
.game-hero__inner { position: relative; }
.game-hero__title { font-size: clamp(2.6rem, 9vw, 7.6rem); font-weight: 700; line-height: .95; letter-spacing: .01em; margin: .3em 0 .35em; text-transform: uppercase; }
.game-hero__title span { display: inline-block; }
.game-hero .game-hero__title { line-height: .98; }
.game-hero__title span:nth-child(2) { color: rgba(242, 240, 233, .34); }
.game-hero__logo { margin: .4em 0; }
.game-hero__logo img { max-width: min(560px, 80vw); max-height: 36vh; width: auto; }
.game-hero__tagline { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: #C4CAD1; max-width: 50ch; }
.game-hero .btn--ghost { color: #F2F0E9; border-color: rgba(242, 240, 233, .3); }
.game-toc { position: sticky; top: 68px; z-index: 20; background: var(--header-bg); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.game-toc ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
.game-toc a { display: block; white-space: nowrap; padding: 6px 12px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); text-decoration: none; border-radius: 99px; }
.game-toc a:hover, .game-toc a.is-current { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.game-block--alt { background: var(--bg-2); }
.spec-table { margin: 28px 0 0; display: grid; border-top: 1px solid var(--line); }
.spec-table > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec-table dt { color: var(--text-2); }
.spec-table dd { margin: 0; }
.spec-table--stack { margin-top: 0; }
.gallery-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery-grid__item { margin: 0; }
.gallery-grid__item a { display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; }
.gallery-grid__item picture { height: 100%; transition: transform .8s var(--ease); }
.gallery-grid__item a:hover picture { transform: scale(1.03); }
.gallery-grid__item figcaption { font-size: .85rem; color: var(--text-2); padding-top: 8px; }
@media (min-width: 760px) { .gallery-grid__item.is-wide { grid-column: span 2; } }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary, .job summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; cursor: pointer; list-style: none; font-weight: 400; font-size: 1.05rem; }
.faq summary::-webkit-details-marker, .job summary::-webkit-details-marker { display: none; }
.faq__icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--text-3); transition: transform .3s var(--ease); }
.faq[open] .faq__icon, .job[open] .faq__icon { transform: rotate(45deg); color: var(--green); }
.faq__answer { padding: 0 0 22px; color: var(--text-2); }
.follow { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.disclaimer__text { font-size: .9rem; color: var(--text-3); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 18px 22px; margin: 0; }
.disclaimer__text .eyebrow { display: block; margin-bottom: 6px; }

/* ---- Article ---------------------------------------------------------------- */
.article__head { padding-top: calc(var(--section) + 50px); padding-bottom: 36px; }
.article__title { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.article__dek { font-size: 1.2rem; color: var(--text-2); }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--text-2); }
.article__meta div { display: flex; gap: 6px; }
.article__meta dt { color: var(--text-3); }
.article__meta dd { margin: 0; }
.article__cover { margin: 0 auto 48px; max-width: 1280px; padding-inline: var(--gutter); }
.article__cover picture { aspect-ratio: 16 / 8; border-radius: var(--radius); overflow: hidden; }
.article__cover figcaption { font-size: .85rem; color: var(--text-3); padding-top: 10px; }
.article__body { padding-bottom: 40px; }
.article__foot { padding-bottom: 20px; }
.article__foot .separator { margin-bottom: 28px; }
.preview-flag { background: var(--warm); color: #111; display: inline-block; padding: 4px 12px; border-radius: 6px; font-size: .75rem; letter-spacing: .1em; }
.next-up { background: var(--bg-2); }

/* ---- Community -------------------------------------------------------------- */
.platforms { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.platform { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; gap: 2px 16px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: color-mix(in srgb, var(--surface) 50%, transparent); transition: transform .3s var(--ease), border-color .3s; }
.platform:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.platform__icon { width: 28px; height: 28px; grid-row: span 2; }
.platform__name { font-weight: 500; }
.platform__desc { grid-column: 2; color: var(--text-2); font-size: .88rem; }
.platform__arrow { width: 18px; height: 18px; grid-row: 1 / span 2; grid-column: 3; color: var(--text-3); }
.guidelines-note { margin-top: 24px; }
.feed { list-style: none; margin: 0; padding: 0; border-inline-start: 1px solid var(--line-strong); }
.feed__item { position: relative; padding: 0 0 36px 28px; }
[dir="rtl"] .feed__item { padding: 0 28px 36px 0; }
.feed__item::before { content: ""; position: absolute; inset-inline-start: -4px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--sadu); }
.feed__item--devlog::before { background: var(--green); }
.feed__type { font-size: .78rem; font-weight: 500; color: var(--sadu); margin-inline-end: 12px; }
.feed__item time { font-size: .82rem; color: var(--text-2); }
.feed__item h3 { font-size: 1.15rem; margin: 6px 0 4px; }
.feed__item h3 a { text-decoration: none; }
.feed__item h3 a:hover { color: var(--green); }
.feed__item p { color: var(--text-2); margin: 4px 0 0; }

/* ---- Forms -------------------------------------------------------------------- */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field > span { font-size: .9rem; color: var(--text-2); }
.field input, .field textarea, .field select, .search-field input, .card-form input {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
.field input:focus, .field textarea:focus, .search-field input:focus { outline: none; border-color: var(--sadu); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sadu) 20%, transparent); }
[aria-invalid="true"], .is-invalid { border-color: #D9786A !important; }
.field-error { color: #A33A2A; font-size: .85rem; margin: 2px 0 0; }
[data-theme="dark"] .field-error, .is-dark .field-error { color: #F0A898; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text-2); margin: 8px 0 12px; cursor: pointer; }
.check input { margin-top: .4em; width: 18px; height: 18px; accent-color: var(--green); flex-shrink: 0; }
.alert { padding: 14px 18px; border-radius: 12px; margin: 0 0 20px; font-size: .95rem; }
.alert--error { background: color-mix(in srgb, #D9786A 12%, transparent); border: 1px solid color-mix(in srgb, #D9786A 35%, transparent); color: #9A3A2B; }
[data-theme="dark"] .alert--error, .is-dark .alert--error { color: #F0B2A6; }
.search-field { position: relative; display: block; }
.search-field svg { position: absolute; inset-inline-start: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; color: var(--text-3); pointer-events: none; }
.search-field input { padding-inline-start: 46px; }
.search-field--big { max-width: 620px; margin: 28px auto 0; }
.search-field--big input { padding-block: 16px; border-radius: 99px; font-size: 1.05rem; }
.page-hero--compact .search-field--big { margin-inline: 0; }
.search-results { list-style: none; padding: 0; margin: 20px 0 0; border-top: 1px solid var(--line); }
.search-results a { display: grid; gap: 4px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.search-results .tag { justify-self: start; }
.search-results strong { font-weight: 500; font-size: 1.1rem; }
.search-results a:hover strong { color: var(--green); }

/* Support */
.support-kinds { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.support-kind { position: relative; display: grid; gap: 6px; padding: 26px; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: color-mix(in srgb, var(--surface) 50%, transparent); transition: transform .3s var(--ease), border-color .3s; }
.support-kind:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.support-kind__num { font-family: var(--mono); font-size: .75rem; color: var(--text-3); }
.support-kind strong { font-size: 1.12rem; font-weight: 500; }
.support-kind__arrow { position: absolute; inset-inline-end: 22px; top: 26px; width: 18px; height: 18px; color: var(--text-3); }
.support-kind--security .support-kind__num { color: var(--warm); }
.support-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.support-note { text-align: center; margin-top: 18px; }
.faq-tools { display: grid; gap: 16px; margin-bottom: 36px; }
.faq-group { margin-bottom: 44px; }
.faq-group__title { font-size: .85rem; letter-spacing: .12em; color: var(--sadu); text-transform: uppercase; font-weight: 500; }
.faq-cta { margin-top: 20px; }

/* Wizard */
.wizard { display: grid; gap: 8px; }
.wizard__steps { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font-size: .74rem; color: var(--text-3); }
.wizard__steps li { display: grid; gap: 8px; padding-top: 10px; border-top: 2px solid var(--line); transition: color .3s, border-color .3s; }
.wizard__steps li span { font-family: var(--mono); }
.wizard__steps li.is-done { border-color: var(--cardamom); color: var(--text-2); }
.wizard__steps li.is-current { border-color: var(--green); color: var(--text); }
@media (max-width: 640px) { .wizard__steps li { font-size: 0; } .wizard__steps li span { font-size: .74rem; } }
.wizard__panel { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.wizard__panel legend { font-size: 1.3rem; font-weight: 500; margin-bottom: 18px; padding: 0; }
.js .wizard.is-enhanced .wizard__panel:not(.is-active) { display: none; }
.js .wizard.is-enhanced .wizard__panel.is-active { animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.wizard__nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.choice-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice__box { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: 12px; height: 100%; transition: border-color .2s, background .2s; }
.choice input:checked + .choice__box { border-color: var(--green); background: color-mix(in srgb, var(--green) 7%, transparent); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--focus); outline-offset: 2px; }
.security-hint { margin-top: 14px; }
.dropzone { position: relative; display: grid; place-items: center; gap: 6px; padding: 40px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--sadu); background: color-mix(in srgb, var(--sadu) 6%, transparent); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone svg { width: 28px; height: 28px; color: var(--text-3); }
.file-list { list-style: none; padding: 0; margin: 12px 0 0; color: var(--text-2); }
.review { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.review > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.review dt { color: var(--text-3); font-size: .88rem; }
.review dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ticket-ref { display: grid; gap: 4px; justify-items: center; margin: 20px 0; }
.ticket-ref strong { font-family: var(--mono); font-size: 1.8rem; letter-spacing: .12em; color: var(--warm); padding: 8px 20px; border: 1px dashed var(--line-strong); border-radius: 10px; }
.card-form { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 50%, transparent); }
.card-form .alert { margin: 18px 0 0; }
.ticket-view { margin-top: 32px; padding: 28px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.ticket-view h2 { font-size: 1.4rem; }
.ticket-view h3 { font-size: 1rem; margin-top: 28px; color: var(--text-2); }
.ticket-view__reply { padding: 18px; border-radius: 12px; background: var(--surface); }

/* Contact */
.pill-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pill-choice input { position: absolute; opacity: 0; }
.pill-choice span { display: inline-block; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 99px; cursor: pointer; font-size: .9rem; transition: all .2s; }
.pill-choice input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.pill-choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.contact-form fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.contact-aside { display: grid; gap: 28px; align-content: start; padding-top: 6px; }
.direct-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.direct-list li { display: grid; }
.direct-list a { text-decoration: none; border-bottom: 1px solid var(--line-strong); justify-self: start; }
.contact-aside__place p:last-child { font-size: 1.1rem; margin: 0; }
.js [data-show-if]:not(.is-shown) { display: none; }

/* Press / careers / security / legal */
.press-copy p { max-width: 60ch; }
.asset-grid { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.asset { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.asset__preview { aspect-ratio: 1; display: grid; place-items: center; background: repeating-conic-gradient(var(--surface) 0 25%, var(--bg-2) 0 50%) 0 0 / 20px 20px; padding: 16px; }
.asset__preview img { max-height: 100%; width: auto; object-fit: contain; }
.asset__meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px; font-size: .9rem; }
.contact-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding: 28px 0; border-block: 1px solid var(--line); }
.contact-strip .field-label { margin: 0; }
.big-mail { font-size: clamp(1.1rem, 2.4vw, 1.6rem); text-decoration: none; border-bottom: 1px solid var(--green); overflow-wrap: anywhere; }
.jobs { border-top: 1px solid var(--line); }
.job { border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.job summary { flex-wrap: wrap; }
.job summary strong { font-weight: 500; flex: 1; }
.job .prose { padding-bottom: 18px; color: var(--text-2); }
.job .btn { margin-bottom: 22px; }
.numbered { padding-inline-start: 1.2em; }
.numbered li { margin-bottom: .7em; }
.numbered li::marker { color: var(--warm); font-family: var(--mono); }
.security-box { display: grid; gap: 12px; justify-items: start; padding: 28px; border: 1px solid var(--line-strong); border-radius: var(--radius); }
.security-box__icon { width: 34px; height: 34px; color: var(--warm); }
.security-box .field-label { margin: 8px 0 0; }
.legal-index { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.legal-index a { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.legal-index strong { font-weight: 500; font-size: 1.1rem; }
.legal-index span { grid-column: 1; }
.legal-index svg { grid-row: 1 / span 2; grid-column: 2; width: 18px; height: 18px; color: var(--text-3); }
.legal-index a:hover strong { color: var(--green); }
.legal-summary { padding: 24px 28px; border-radius: var(--radius); background: color-mix(in srgb, var(--cardamom) 8%, transparent); border: 1px solid color-mix(in srgb, var(--cardamom) 28%, transparent); margin-bottom: 40px; }
.legal-full { margin-bottom: 0; }
.legal-note { margin: 40px 0 0; }
.legal-others { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-others ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.legal-others a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; font-size: .88rem; }

/* ---- Empty states ---------------------------------------------------------------- */
.empty-state { text-align: center; padding: clamp(48px, 8vw, 96px) 20px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: radial-gradient(ellipse 50% 60% at 50% 0%, var(--glow), transparent 70%); }
.empty-state__mark { position: relative; display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 16px; }
.empty-state__star { position: absolute; top: 2px; inset-inline-end: 2px; width: 12px; height: 12px; color: var(--accent-text); opacity: .9; animation: twinkle 4s ease-in-out infinite; }
.empty-state__mark .cardamom--big { transform: rotate(-18deg); }
[dir="rtl"] .empty-state__mark .cardamom--big { transform: rotate(18deg); }
.empty-state h1, .empty-state h2, .empty-state h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.empty-state p { color: var(--text-2); max-width: 48ch; margin-inline: auto; }
.empty-state .btn { margin-top: 10px; }
.empty-state--small { padding: 40px 20px; }
.empty-state--success { border-color: color-mix(in srgb, var(--green) 30%, transparent); }
.empty-state--success .cardamom { animation: pod 1s var(--ease) both; }
@keyframes pod { from { transform: rotate(-30deg) scale(.6); opacity: 0; } to { transform: rotate(-6deg) scale(1); opacity: 1; } }
.done-state { padding-top: calc(var(--section) + 60px); }

/* ---- Error page: a missing level in the editor ------------------------------------ */
.error-page { position: relative; min-height: 100svh; min-height: 100vh; display: flex; align-items: center; padding: 140px 0 120px; overflow: hidden; color: var(--text);
  background: radial-gradient(ellipse 60% 50% at 50% 30%, var(--glow), transparent 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 48px 48px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 48px 48px, var(--bg); }
.error-page__inner { position: relative; z-index: 2; text-align: center; }
.error-page__code { display: block; margin: 0 auto .1em; font: 700 clamp(5rem, 18vw, 11rem)/1 var(--mono); letter-spacing: .04em; color: transparent; -webkit-text-stroke: 2px var(--accent-text); direction: ltr; }
.error-page__code span { color: var(--green); -webkit-text-stroke: 0; }
.error-page h1 { font-size: clamp(1.8rem, 4.4vw, 3.2rem); font-weight: 600; }
.error-page p { color: var(--text-2); }
.error-ref { margin-top: 20px; font-size: .8rem; }
.error-ref code { color: var(--accent-text); }
.error-debug { text-align: left; background: #0B0D10; color: #E8EAE4; padding: 12px; border-radius: 8px; font-size: .8rem; white-space: pre-wrap; margin-top: 16px; }
.error-page__ground { position: absolute; inset: auto 0 0 0; display: grid; justify-items: center; gap: 14px; }
.error-page__pod { width: 30px; height: 30px; opacity: .85; transform: rotate(90deg); margin-bottom: 18px; }
.page-error .site-header { background: transparent !important; border-bottom-color: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* ---- Footer: the stage stays dark, CUP CODE runs almost edge to edge -------------------- */
.site-footer { margin-top: 0; padding-top: clamp(56px, 7vw, 96px); color: var(--text-2); border-top: 1px solid var(--line); overflow: hidden; }
.site-footer__body { display: grid; gap: 48px; padding-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) { .site-footer__body { grid-template-columns: 1fr 2fr; } }
.footer-brand p { color: var(--text-2); margin: 18px 0; max-width: 32ch; }
.brand--footer .brand__mark { width: 44px; height: 44px; }
.brand--footer .brand__name { color: var(--text); font-size: 1.05rem; }
.footer-coords { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 500 .66rem var(--mono); letter-spacing: .16em; color: var(--text-3) !important; }
.social-row { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.social-row a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-strong); color: var(--text-2); transition: color .2s, border-color .2s, background .2s; }
.social-row a:hover { color: var(--green-ink); border-color: var(--green); background: var(--green); }
.social-row svg { width: 18px; height: 18px; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
@media (min-width: 700px) { .footer-links { grid-template-columns: repeat(4, 1fr); } }
.footer-links h2 { font: 500 .68rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
[dir="rtl"] .footer-links h2 { font-family: var(--font); letter-spacing: 0; font-size: .85rem; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); text-decoration: none; font-size: .92rem; transition: color .2s; }
.footer-links a:hover { color: var(--accent-text); }
.footer-links .ai-icon { width: 14px; height: 14px; }
.footer-giant { position: relative; padding-inline: clamp(8px, 1.4vw, 20px); margin-bottom: -.6vw; pointer-events: none; user-select: none; }
.footer-giant svg { width: 100%; height: auto; overflow: hidden; }
.footer-giant text { font: 700 150px var(--font); letter-spacing: -.02em; fill: url(#footer-fade); }
.js .footer-giant text { transform: translateY(70px); fill-opacity: 0; transition: transform 1.6s var(--ease-out), fill-opacity 1.2s var(--ease); }
.js .footer-giant.is-in text, .js-failed .footer-giant text { transform: none; fill-opacity: 1; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding-top: 22px; padding-bottom: 28px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--text-3); }
.site-footer__base p { margin: 0; }
.signature { color: var(--text-2); letter-spacing: .02em; }
.signature .cardamom { color: var(--accent-text); }
.to-top { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); text-decoration: none; }
.to-top svg { width: 14px; height: 14px; transform: rotate(180deg); }
.to-top:hover { color: var(--text); }

/* ---- Reveal animations ---------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"] { transform: none; clip-path: inset(0 0 96% 0); transition: clip-path 1.2s var(--ease), opacity .6s; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="line"] { opacity: 1; transform: none; }
.js [data-reveal="line"] .separator__line { transform: scaleX(0); transition: transform 1.4s var(--ease); }
.js [data-reveal="line"].is-in .separator__line { transform: scaleX(1); }

/* if site.js never loads (blocked, offline), never leave content hidden */
.js-failed [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
.js-failed [data-show-if] { display: block !important; }
.js-failed [data-reveal="line"] .separator__line { transform: none !important; }

/* ---- Lightbox -------------------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(3, 4, 6, .94); padding: 24px; cursor: zoom-out; animation: menuIn .3s var(--ease); }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; border-radius: 8px; }

/* ---- Reduced motion --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
  .js [data-reveal="line"] .separator__line { transform: none; }
  .scene__trace, .term__cursor, .hx__scroll svg { animation: none; }
  .js .footer-giant text { transform: none; fill-opacity: 1; }
}

/* ---- Print -------------------------------------------------------------------------------- */
@media print {
  body { background: #fff; color: #000; }
  body::after, .site-header, .site-footer, .scene, .announce, .hx__gl, .search-dialog, .mobile-menu { display: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
}

/* ==========================================================================
   CAGEHAUL identity pieces shared by the home page, the games page, the press kit and the game page
   ========================================================================== */
.btn--soon { background: transparent; color: inherit; border: 1px dashed currentColor; opacity: .85; cursor: default; }
.btn--soon:hover { transform: none; }
.ai-note { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--text-3); margin: 14px 0 0; }
.ai-note svg { width: 14px; height: 14px; color: var(--warm); flex-shrink: 0; }
.later-note { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: .7em 1em; border: 1px dashed var(--line-strong); border-radius: 10px; font-size: .86rem; color: var(--text-2); }
.later-note svg { width: 16px; height: 16px; flex: none; color: var(--text-3); }

/* ---- The wordmark: CAGEHAUL cut like a cargo stencil (drawn as paths: no font needed) -------------- */
/* WORK IN PROGRESS: a strip of hazard tape on every current image of the game, wherever it appears. The parent is positioned. */
.ch-wip { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: stretch; gap: 8px; overflow: hidden;
  padding-inline-end: 9px; font: 600 .6rem/22px var(--mono); letter-spacing: .16em; color: #E2A23B; background: rgba(11, 11, 10, .88);
  border: 1px solid rgba(226, 162, 59, .55); border-radius: 2px; pointer-events: none; }
.ch-wip::before { content: ""; flex: none; width: 16px; background: repeating-linear-gradient(-45deg, #E2A23B 0 4px, #0B0B0A 4px 8px); border-inline-end: 1px solid rgba(226, 162, 59, .55); }
.ch-wip--xs { top: 6px; inset-inline-start: 6px; gap: 5px; padding-inline-end: 6px; font-size: .5rem; line-height: 16px; letter-spacing: .12em; }
.ch-wip--xs::before { width: 9px; }
.devlog-row__thumb, .article__art { position: relative; }
.proj__picture .ch-wip { top: 16px; inset-inline-start: auto; inset-inline-end: 16px; } /* the outer corner: the cover sits at the end of the frame */
@media print { .ch-wip { display: none; } }
.ch-logo { margin: 0; line-height: 0; color: #E6E0D2; }
.ch-logo img { width: 100%; height: auto; }
.ch-logo svg { display: block; width: 100%; height: auto; overflow: visible; }
.ch-logo__mark, .ch-logo__type { fill: currentColor; }
.ch-logo__type { font: 700 92px/1 var(--font); letter-spacing: .04em; }
.ch-logo__line { font: 500 15px/1 var(--mono); letter-spacing: .3em; fill: #E2A23B; }

/* ==========================================================================
   Motion layer — everything here is decorative and switches off with reduced motion
   ========================================================================== */
/* Page transitions. Browsers with cross-document View Transitions get a native morph (the header stays
   put while the page sinks away and the next one rises); entering or leaving CAGEHAUL works like a roller
   shutter: the page is pulled up into the dark and the next one is let down from it. Other browsers get the
   .page-curtain fallback below. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-group(site-header) { z-index: 3; animation-duration: .45s; }
::view-transition-old(root) { animation: vt-out .3s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: vt-in .55s var(--ease) .08s both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px) scale(.994); filter: blur(3px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(20px); filter: blur(4px); } }
html:active-view-transition-type(haul) .site-header { view-transition-name: none; }
html:active-view-transition-type(haul)::view-transition { background: #0B0B0A; }
html:active-view-transition-type(haul)::view-transition-old(root) { animation: haul-out .4s cubic-bezier(.7, 0, .84, 0) both; }
html:active-view-transition-type(haul)::view-transition-new(root) { animation: haul-in .6s cubic-bezier(.16, 1, .3, 1) .12s both; }
@keyframes haul-out { to { clip-path: inset(0 0 100% 0); filter: brightness(.35); } }
@keyframes haul-in { from { clip-path: inset(100% 0 0 0); filter: brightness(.35); } }

/* Fallback curtain (Firefox, older Safari): fades to sand while the next page loads, then lifts. */
.page-curtain { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; pointer-events: none; opacity: 0; visibility: hidden;
  background: radial-gradient(ellipse 70% 55% at 50% 42%, var(--surface), var(--bg) 72%); transition: opacity .26s ease, visibility 0s linear .26s; }
.page-curtain svg { width: 44px; height: 44px; color: var(--accent-text); opacity: 0; transform: scale(.7) rotate(-30deg); transition: opacity .3s ease .1s, transform .45s var(--ease) .1s; }
.page-curtain::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: #F6E7B0; box-shadow: 0 0 30px 10px rgba(143, 118, 255, .65); transform: scale(0); opacity: 0; }
.page-curtain.is-leaving { opacity: 1; visibility: visible; transition: opacity .26s ease; }
.page-curtain.is-leaving svg { opacity: .95; transform: rotate(-30deg); animation: pod-wait .8s ease-in-out .4s infinite alternate; }
@keyframes pod-wait { from { transform: rotate(-30deg); } to { transform: rotate(-6deg) scale(.94); opacity: .7; } }
.nav-enter .page-curtain { opacity: 1; visibility: visible; animation: curtain-lift .6s var(--ease) .06s forwards; }
.page-curtain.is-haul { background: #0B0B0A; }
.page-curtain.is-haul svg { display: none; }
.page-curtain.is-haul::after { width: 100%; left: 0; height: 2px; margin: -1px 0 0; border-radius: 0; background: #E2A23B; box-shadow: 0 0 24px 2px rgba(226, 162, 59, .5); }
.page-curtain.is-leaving.is-haul::after { animation: haul-line .45s cubic-bezier(.7, 0, .84, 0) forwards; }
.nav-enter--haul .page-curtain { background: #0B0B0A; animation-duration: .6s; animation-delay: .18s; }
.nav-enter--haul .page-curtain svg { display: none; }
@keyframes haul-line { 0% { transform: scaleX(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scaleX(1); opacity: 1; } }
@keyframes curtain-lift { to { opacity: 0; visibility: hidden; } }

/* loading bar with a cardamom head */
.nav-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 410; pointer-events: none; opacity: 0; transition: opacity .3s; }
.nav-progress.is-active { opacity: 1; }
.nav-progress__bar { position: absolute; inset: 0; background: var(--green); box-shadow: 0 0 10px rgba(95, 158, 54, .7); transform-origin: left; transform: scaleX(var(--np, 0)); transition: transform .5s var(--ease); }
.nav-progress__pod { position: absolute; top: -6px; width: 14px; height: 14px; color: var(--accent-text); rotate: 90deg; left: calc(var(--np, 0) * 100% - 7px); transition: left .5s var(--ease); animation: pod-rock .5s ease-in-out infinite alternate; filter: drop-shadow(0 0 6px rgba(95, 158, 54, .6)); }
[dir="rtl"] .nav-progress__bar { transform-origin: right; }
[dir="rtl"] .nav-progress__pod { left: auto; right: calc(var(--np, 0) * 100% - 7px); rotate: -90deg; transition: right .5s var(--ease); }
@keyframes pod-rock { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }

/* reading/scroll progress under the header */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--cardamom); opacity: .75; transform-origin: left; transform: scaleX(var(--p, 0)); }
[dir="rtl"] .site-header::after { transform-origin: right; }

/* spotlight that follows the pointer inside cards */
.spot { position: relative; }
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(67, 112, 42, .1), transparent 45%); }
.spot:hover::after { opacity: 1; }
[data-theme="dark"] .spot::after, .is-dark .spot::after { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .075), transparent 45%); }

/* shared keyframes */
@keyframes twinkle { 50% { opacity: .15; } }
@keyframes breathe { 50% { opacity: .72; } }

/* titles arrive word by word */
.js [data-split] .w { display: inline-block; opacity: 0; transform: translateY(.42em); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--wi) * 55ms + var(--wd0, 0ms)); }
.js [data-split].is-in .w, .js-failed [data-split] .w { opacity: 1; transform: none; }

/* floating back-to-top with a scroll ring */
.back-top { position: fixed; z-index: 60; bottom: 22px; inset-inline-end: 22px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--cardamom); background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .4s, transform .4s var(--ease); }
.back-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.back-top svg { width: 22px; height: 22px; transition: transform .4s var(--ease); }
.back-top:hover svg { transform: translateY(-3px) rotate(-8deg); }
.back-top__ring { position: absolute; inset: -1px; border-radius: 50%; background: conic-gradient(var(--cardamom) calc(var(--p, 0) * 360deg), transparent 0); -webkit-mask: radial-gradient(circle, transparent 22px, #000 23px); mask: radial-gradient(circle, transparent 22px, #000 23px); }
@media (max-width: 600px) { .back-top { bottom: 16px; inset-inline-end: 16px; width: 42px; height: 42px; } .back-top__ring { -webkit-mask: radial-gradient(circle, transparent 19px, #000 20px); mask: radial-gradient(circle, transparent 19px, #000 20px); } }

/* the cardamom in the footer opens */
.pod-egg { display: inline-grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; color: var(--cardamom); cursor: pointer; vertical-align: -6px; }
.pod-egg svg { width: 24px; height: 24px; overflow: visible; transition: transform .5s var(--ease); }
.pod-half { transform-box: fill-box; transition: transform .9s cubic-bezier(.3, 1.4, .5, 1); }
.pod-half--l { transform-origin: 100% 0; } .pod-half--r { transform-origin: 0 0; }
.pod-seeds { opacity: 0; transition: opacity .5s .25s; }
.pod-egg:hover:not(.is-open) svg { transform: rotate(-8deg); }
.pod-egg.is-open .pod-half--l { transform: translateX(-1px) rotate(24deg); }
.pod-egg.is-open .pod-half--r { transform: translateX(1px) rotate(-24deg); }
.pod-egg.is-open .pod-seeds { opacity: 1; }
.pod-egg__msg { margin-inline-start: 10px; color: var(--warm); font-style: italic; opacity: 0; transition: opacity .8s; }
.pod-egg__msg.is-shown { opacity: 1; }

/* buttons show a rocking cardamom while a form submits */
.btn.is-loading { pointer-events: none; opacity: .88; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: var(--pod-mask) center / contain no-repeat; mask: var(--pod-mask) center / contain no-repeat; animation: pod-rock .45s ease-in-out infinite alternate; }

/* smaller touches */
.js .status-list[data-reveal="line"]::before { transform: scaleY(0); transform-origin: top; transition: transform 1.8s var(--ease); }
.js .status-list[data-reveal="line"].is-in::before { transform: scaleY(1); }
.faq[open] .faq__answer, .job[open] .prose { animation: fadeUp .45s var(--ease); }
.mobile-menu:not([hidden]) .mobile-menu__list li { animation: fadeUp .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms + 60ms); }
.main-nav a::before { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: currentColor; opacity: .5; transform: scaleX(0); transition: transform .35s var(--ease); }
.main-nav a:hover::before { transform: scaleX(1); }
.main-nav a[aria-current]::before { display: none; }
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::before { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-18deg); transition: left .7s var(--ease); pointer-events: none; }
.btn--primary:hover::before { left: 130%; }
.notes__track { cursor: grab; }
.notes__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.pod-silhouette { position: absolute; pointer-events: none; width: clamp(160px, 24vw, 340px); height: auto; color: var(--cardamom); opacity: .05; }
.pod-silhouette--a { inset-inline-end: -40px; top: 12%; transform: rotate(-28deg); }
.pod-silhouette--b { inset-inline-start: -60px; bottom: 6%; transform: rotate(32deg); }
.js .pod-silhouette { animation: pod-drift 18s ease-in-out infinite alternate; }
@keyframes pod-drift { to { translate: 0 -24px; rotate: 6deg; } }

@media (prefers-reduced-motion: reduce) {
  .nav-progress, .back-top__ring, .page-curtain { display: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .js [data-split] .w { opacity: 1; transform: none; }
  .js .status-list[data-reveal="line"]::before { transform: none; }
  .js .pod-silhouette { animation: none; }
  .status-list__item.is-in_progress::before, .status-list__item.is-in_progress .status-list__dot, .term__cursor { animation: none; }
  .site-header.is-hidden { transform: none; }
  .text-link { transition: none; }
}

/* ---- About: why cardamom ------------------------------------------------------ */
.pod-story { overflow: hidden; }
.pod-story__grid { display: grid; gap: clamp(32px, 6vw, 96px); align-items: center; }
@media (min-width: 900px) { .pod-story__grid { grid-template-columns: .8fr 1.2fr; } }
.pod-story__art { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 380px; width: 100%; margin-inline: auto; }
.pod-story__glow { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle, rgba(95, 158, 54, .24), transparent 65%); animation: breathe 7s ease-in-out infinite; }
.pod-big { position: relative; width: 62%; height: auto; color: var(--cardamom); overflow: visible; transform: rotate(-18deg); filter: drop-shadow(0 30px 40px rgba(8, 9, 11, .3)); }
.pod-big .pod-half { transition-duration: 1.6s; }
.pod-story__art.is-in .pod-big .pod-half--l, .js-failed .pod-big .pod-half--l { transform: translateX(-1px) rotate(20deg); }
.pod-story__art.is-in .pod-big .pod-half--r, .js-failed .pod-big .pod-half--r { transform: translateX(1px) rotate(-20deg); }
.pod-story__art.is-in .pod-big .pod-seeds, .js-failed .pod-big .pod-seeds { opacity: 1; transition-delay: .6s; }
.js [data-reveal="pod"] { opacity: 1; transform: none; }
.pod-story__art.is-in .pod-big { animation: pod-float 8s ease-in-out 1.6s infinite; }
@keyframes pod-float { 50% { transform: rotate(-12deg) translateY(-10px); } }
.pod-story__steam { position: absolute; top: 4%; left: 50%; display: flex; gap: 12px; transform: translateX(-50%); }
.pod-story__steam i { width: 2px; height: 42px; border-radius: 2px; background: linear-gradient(transparent, color-mix(in srgb, var(--text) 30%, transparent), transparent); animation: steam-rise 4s ease-in-out infinite; }
.pod-story__steam i:nth-child(2) { animation-delay: 1.2s; height: 54px; } .pod-story__steam i:nth-child(3) { animation-delay: 2.4s; }
@keyframes steam-rise { 0% { opacity: 0; transform: translateY(20px) scaleY(.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-26px) scaleY(1.1) skewX(8deg); } }
.about-game__logo { display: block; max-width: 520px; width: 100%; margin-inline: auto; padding: clamp(24px, 4vw, 40px); border-radius: calc(var(--radius) + 4px); background: radial-gradient(70% 60% at 50% 0%, rgba(226, 162, 59, .14), transparent 70%), #0B0B0A; box-shadow: var(--shadow); transition: transform .6s var(--ease); }
.about-game__logo:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .pod-story__steam, .pod-story__glow { animation: none; } }

/* ---- Press kit ---------------------------------------------------------------- */
.ai-icon { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; color: var(--warm); }
.logo-kit { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
@media (min-width: 800px) { .logo-kit { grid-template-columns: 1fr 1fr; } }
.logo-kit__item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.logo-kit__stage { display: grid; place-items: center; min-height: 260px; padding: 28px; background: radial-gradient(70% 60% at 50% 0%, rgba(226, 162, 59, .14), transparent 70%), #0B0B0A; }
.logo-kit__stage .ch-logo { width: min(440px, 100%); }
.boiler-grid { display: grid; gap: 16px; margin-top: 18px; }
@media (min-width: 900px) { .boiler-grid { grid-template-columns: 1fr 1fr; } .boiler-grid--one { grid-template-columns: minmax(0, 640px); } }
.press-hook { margin: -.2em 0 .8em; font-weight: 600; font-size: 1.1rem; line-height: 1.6; }
.press-hook span { display: block; }
.boiler { margin: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 50%, transparent); }
.boiler blockquote { margin: 0 0 16px; line-height: 1.85; }
.boiler figcaption { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--text-3); }
.soon { text-align: center; } .soon__inner { display: flex; flex-direction: column; align-items: center; } .soon .hero__title { margin-inline: auto; } .soon__mark { margin-bottom: 18px; } .soon .newsletter { text-align: start; margin-top: 28px; }

/* ---- Breadcrumbs, article TOC, share ----------------------------------------------- */
.crumbs { margin-bottom: 1.4em; font-size: .84rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 0; color: var(--text-3); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 10px; opacity: .5; }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
.article__layout { display: grid; gap: 32px; }
@media (min-width: 1100px) { .article__layout.has-toc { grid-template-columns: 240px minmax(0, var(--narrow)); justify-content: center; gap: 64px; } .article__toc { position: sticky; top: 100px; align-self: start; } }
.article__toc details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; background: color-mix(in srgb, var(--surface) 40%, transparent); }
.article__toc summary { cursor: pointer; font-size: .8rem; letter-spacing: .08em; color: var(--text-2); list-style: none; }
.article__toc summary::-webkit-details-marker { display: none; }
.article__toc ol { margin: 12px 0 0; padding-inline-start: 1.1em; display: grid; gap: 8px; font-size: .9rem; }
.article__toc li::marker { color: var(--cardamom); }
.article__toc a { color: var(--text-2); text-decoration: none; }
.article__toc a:hover, .article__toc a.is-current { color: var(--text); }
.prose h2[id], .prose h3[id] { scroll-margin-top: 110px; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.share-row .muted { margin-inline-end: 6px; }
.next-up .section-title--sm { margin-top: 2.4em; }

/* ==========================================================================
   Trust center, policy pages, data rights (v3)
   ========================================================================== */
.legal-index a { grid-template-columns: auto 1fr auto; column-gap: 18px; }
.legal-index a > strong, .legal-index a > span { grid-column: 2; }
.legal-index a > svg:last-child { grid-row: 1 / span 2; grid-column: 3; }
.legal-index .legal-index__icon { grid-row: 1 / span 2; grid-column: 1; width: 22px; height: 22px; color: var(--cardamom); transform: none !important; transition: color .3s var(--ease), transform .4s var(--ease); }
.legal-index a:hover .legal-index__icon { color: var(--warm); }
.legal-index a > svg:last-child { transition: transform .35s var(--ease); }
.legal-index a:hover > svg:last-child { transform: translateX(4px); }
[dir="rtl"] .legal-index a:hover > svg:last-child { transform: scaleX(-1) translateX(4px); }

.trust-banner { display: flex; align-items: center; gap: 16px; padding: 20px 22px; margin-bottom: 28px; border-radius: var(--radius); text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--cardamom) 35%, transparent); background: linear-gradient(120deg, color-mix(in srgb, var(--cardamom) 12%, transparent), transparent 70%); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.trust-banner:hover { border-color: var(--cardamom); transform: translateY(-2px); }
.trust-banner > svg:first-child { width: 30px; height: 30px; color: var(--cardamom); flex: none; }
.trust-banner > span { display: grid; flex: 1; }
.trust-banner strong { font-weight: 500; font-size: 1.1rem; }
.trust-banner__arrow { width: 18px; height: 18px; color: var(--text-3); }
[dir="rtl"] .trust-banner__arrow { transform: scaleX(-1); }
.entity-line { margin-top: 28px; }

.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; font-size: .88rem; }
.doc-meta div { display: flex; gap: 6px; align-items: baseline; }
.doc-meta dt { color: var(--text-3); }
.doc-meta dd { margin: 0; color: var(--text-2); }
.doc-meta div:first-child dd { color: var(--cardamom); font-family: var(--mono); font-size: .85rem; }
.archived-note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; margin-bottom: 28px; border-radius: var(--radius-sm);
  border: 1px dashed color-mix(in srgb, var(--warm) 55%, transparent); background: color-mix(in srgb, var(--warm) 8%, transparent); }
.archived-note svg { width: 22px; height: 22px; color: var(--warm); flex: none; margin-top: 3px; }
.archived-note p { margin: 0; }
.prose--legal h2 { scroll-margin-top: 100px; padding-top: .3em; border-top: 1px solid var(--line); }
.prose--legal h2:first-child { border-top: 0; }

.table-scroll { overflow-x: auto; margin: 32px 0; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 520px; }
.data-table caption { text-align: start; padding: 16px 18px 6px; font-weight: 500; color: var(--text); }
.data-table th, .data-table td { padding: 12px 18px; text-align: start; vertical-align: top; border-top: 1px solid var(--line); }
.data-table thead th { font-weight: 500; font-size: .8rem; letter-spacing: .04em; color: var(--text-3); border-top: 0; }
.data-table tbody th { font-weight: 500; }
.data-table tbody tr { transition: background .25s var(--ease); }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.d-block { display: block; font-weight: 300; }

.versions { margin: 40px 0 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; }
.versions summary { cursor: pointer; padding: 16px 0; font-weight: 500; list-style: none; display: flex; gap: 8px; align-items: center; }
.versions summary::-webkit-details-marker { display: none; }
.versions summary::before { content: "+"; font-family: var(--mono); color: var(--cardamom); width: 1em; transition: transform .3s var(--ease); }
.versions[open] summary::before { transform: rotate(45deg); }
.versions ol { margin: 0 0 18px; padding-inline-start: 1.4em; }
.versions li { margin-bottom: 8px; }
.versions a[aria-current] { color: var(--warm); }
.legal-contact { margin-top: 32px; }

/* Trust center */
.trust-status { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; padding: 28px 30px; margin-bottom: 40px; border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line-strong); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--cardamom) 14%, transparent), transparent 60%), color-mix(in srgb, var(--surface) 55%, transparent); }
[dir="rtl"] .trust-status { background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--cardamom) 14%, transparent), transparent 60%), color-mix(in srgb, var(--surface) 55%, transparent); }
.trust-status__main { display: flex; gap: 18px; align-items: flex-start; }
.trust-status__main .field-label { margin: 0 0 4px; }
.trust-status__text { margin: 0; font-size: 1.08rem; color: var(--text); }
.trust-status__pulse { position: relative; flex: none; width: 12px; height: 12px; margin-top: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); animation: trust-pulse 2.6s var(--ease) infinite; }
@keyframes trust-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 14px transparent; } }
.trust-status__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; margin: 0; }
.trust-status__facts dt { font-size: .78rem; color: var(--text-3); letter-spacing: .02em; }
.trust-status__facts dd { margin: 2px 0 0; color: var(--text-2); font-size: .95rem; }
.trust-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.trust-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 40%, transparent); overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease), background .35s var(--ease); }
.trust-card::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--cardamom) 18%, transparent), transparent); opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.trust-card:hover { border-color: color-mix(in srgb, var(--cardamom) 45%, transparent); transform: translateY(-3px); }
.trust-card:hover::after { opacity: 1; }
.trust-card__icon { width: 30px; height: 30px; color: var(--cardamom); margin-bottom: 8px; transition: transform .5s var(--ease); }
.trust-card:hover .trust-card__icon { transform: rotate(-6deg) scale(1.08); }
.trust-card h2 { margin: 0; font-size: 1.15rem; font-weight: 500; }
.trust-card p { margin: 0 0 8px; font-size: .95rem; }
.trust-card ul { list-style: none; margin: auto 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.trust-card li a { display: flex; align-items: center; gap: 8px; padding: 4px 0; text-decoration: none; font-size: .95rem; }
.trust-card li a:hover { color: var(--green); }
.trust-card li svg { width: 14px; height: 14px; margin-inline-start: auto; color: var(--text-3); transition: transform .3s var(--ease); }
[dir="rtl"] .trust-card li svg { transform: scaleX(-1); }
.trust-card li a:hover svg { transform: translateX(3px); }
[dir="rtl"] .trust-card li a:hover svg { transform: scaleX(-1) translateX(3px); }
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 30%, transparent); font-size: .95rem; }
.check-list svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 4px; }
.check-list--sm { grid-template-columns: 1fr; gap: 6px; margin-top: 6px; }
.check-list--sm li { padding: 6px 0; border: 0; background: none; }
.honest-note { padding: 26px 28px; border-radius: var(--radius); border: 1px solid var(--line-strong); border-inline-start: 3px solid var(--warm); }
.honest-note .field-label { margin-top: 0; }

/* Rights */
.rights-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); counter-reset: r; }
.right-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 26px 24px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 35%, transparent); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.right-card:hover { border-color: color-mix(in srgb, var(--cardamom) 45%, transparent); transform: translateY(-3px); }
.right-card__n { font-family: var(--mono); font-size: .8rem; color: var(--cardamom); letter-spacing: .1em; }
.right-card h2 { margin: 0; font-size: 1.2rem; font-weight: 500; }
.right-card p { margin: 0 0 10px; font-size: .95rem; }
.right-card .text-link { margin-top: auto; }

/* Governance forms */
.gov-form { display: grid; gap: 22px; }
.gov-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.gov-form legend { font-weight: 500; margin-bottom: 10px; padding: 0; }
.gov-form .check { display: flex; gap: 10px; align-items: flex-start; }
.gov-form .check input { margin-top: .45em; }
.gov-form .btn--lg { justify-self: start; }
.choice-grid--3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.notice { display: flex; gap: 10px; align-items: flex-start; margin: -8px 0 0; }
.notice svg { width: 16px; height: 16px; flex: none; margin-top: 5px; color: var(--warm); }
.mini-steps { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); list-style: none; counter-reset: ms; }
.mini-steps li { counter-increment: ms; }
.mini-steps li::before { content: counter(ms) " · "; font-family: var(--mono); color: var(--cardamom); }

/* Security page */
.scope-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 28px; margin-bottom: 12px; }
.scope-cols .field-label { margin: 0 0 6px; }
.x-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.x-list li { display: flex; gap: 10px; color: var(--text-2); font-size: .95rem; }
.x-list li::before { content: "×"; color: var(--text-3); font-family: var(--mono); width: 18px; flex: none; text-align: center; }
.bullets { padding-inline-start: 1.2em; }
.bullets li { margin-bottom: .5em; }
.bullets li::marker { color: var(--cardamom); }

/* Credits */
.credit-list { list-style: none; padding: 0; margin: 0 0 32px; border-top: 1px solid var(--line); }
.credit-list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.credit-list--ai li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
[dir="rtl"] .credit-list li[dir="ltr"] { text-align: right; }
.press-usage { margin-top: 18px; }

/* Footer entity line */
.footer-legal { display: grid; gap: 2px; }
.footer-legal p { margin: 0; }
.footer-cr a { color: var(--text-3); text-decoration: none; font-size: .85rem; transition: color .3s var(--ease); }
.footer-cr a:hover { color: var(--cardamom); }

@media (max-width: 760px) {
  .trust-status { grid-template-columns: 1fr; padding: 22px; }
  .trust-status__facts { grid-template-columns: 1fr 1fr; }
  .card-form.gov-form { padding: 20px; }
}
@media (max-width: 420px) {
  .trust-status__facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .trust-status__pulse { animation: none; }
  .trust-card, .right-card, .trust-banner { transition: none; }
}

@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---- 404: an escaped box, mid-miscast ---- */
.peek { position: absolute; bottom: clamp(30px, 8vh, 90px); inset-inline-end: clamp(12px, 9vw, 160px); width: clamp(70px, 9vw, 110px); color: var(--text-3); pointer-events: none; }
.peek svg { display: block; width: 100%; height: auto; overflow: visible; }
.peek__handles { fill: var(--green); }
.peek__pod { color: #7DBF4F; }
.peek text { font: 500 6.5px var(--mono); letter-spacing: .08em; fill: currentColor; }
.js .peek svg { animation: peek-drift 6s ease-in-out infinite; }
@keyframes peek-drift { 0%, 100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-22px) rotate(10deg); } }
.cta-row--center { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .js .peek svg { animation: none; } }

[dir="rtl"] .search-dialog__go svg { transform: scaleX(-1); }
.search-field__go { position: absolute; top: 50%; inset-inline-end: 7px; transform: translateY(-50%); }
.search-field--big input { padding-inline-end: 110px; }

/* ---- Support tracking: the conversation ---- */
.track-thread { list-style: none; margin: 12px 0 18px; padding: 0; display: grid; gap: 12px; }
.track-thread__item { max-width: 88%; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); animation: fadeUp .5s var(--ease) both; }
.track-thread__item--you { justify-self: start; border-end-start-radius: 4px; }
.track-thread__item--studio { justify-self: end; border-end-end-radius: 4px; border-color: color-mix(in srgb, var(--cardamom) 40%, transparent); background: color-mix(in srgb, var(--cardamom) 9%, var(--surface)); }
.track-thread__meta { display: flex; gap: 10px; align-items: baseline; margin: 0 0 6px; font-size: .82rem; color: var(--text-3); }
.track-thread__meta strong { color: var(--text-2); font-weight: 500; }
.track-thread__body { overflow-wrap: anywhere; }
.track-thread__body.prose > :last-child { margin-bottom: 0; }
.track-thread__status { justify-self: center; font-size: .8rem; color: var(--text-3); display: flex; gap: 8px; align-items: center; }
.track-thread__status::before, .track-thread__status::after { content: ""; width: 28px; height: 1px; background: var(--line-strong); }
.followup { display: grid; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.followup .btn { justify-self: start; }
@media (max-width: 600px) { .track-thread__item { max-width: 100%; } }

/* ---- Photo hero (About): an uploaded photograph of Madinah ---- */
.page-hero--photo { min-height: min(92vh, 900px); background: #08090B; overflow: hidden; color: #F2F2EC; --text: #F2F2EC; --text-2: #C9CEC9; }
.page-hero__photo { position: absolute; inset: 0; z-index: 0; }
.page-hero__photo picture, .page-hero__photo img { display: block; width: 100%; height: 100%; }
.page-hero__photo picture { animation: photo-settle 2.4s var(--ease) both; }
.page-hero__photo img { object-fit: cover; object-position: 62% 60%; transform: scale(1.08) translate3d(0, var(--py, 0px), 0); will-change: transform; }
@keyframes photo-settle { from { transform: scale(1.08); filter: brightness(.35); } to { transform: none; filter: none; } }
.page-hero__photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 9, 11, .5) 0%, rgba(8, 9, 11, .05) 30%, rgba(8, 9, 11, .15) 58%, rgba(8, 9, 11, .82) 88%, var(--bg) 100%),
    linear-gradient(90deg, rgba(8, 9, 11, .45), transparent 55%); }
[dir="rtl"] .page-hero__photo::after { background: linear-gradient(180deg, rgba(8, 9, 11, .5) 0%, rgba(8, 9, 11, .05) 30%, rgba(8, 9, 11, .15) 58%, rgba(8, 9, 11, .82) 88%, var(--bg) 100%), linear-gradient(-90deg, rgba(8, 9, 11, .45), transparent 55%); }
.page-hero--photo h1, .page-hero--photo .page-hero__text { text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
.page-hero--photo .eyebrow { color: #9ACD72; }
@media (max-width: 700px) { .page-hero__photo img { object-position: 66% 60%; } }
@media (prefers-reduced-motion: reduce) { .page-hero__photo picture { animation: none; } .page-hero__photo img { transform: none; } }

/* ---- Founder, quick facts (About) ------------------------------------------------------------------------------
   The founder is introduced like a credit line, not a profile card: the name large, the role in the mono label voice. */
.founder__grid { display: grid; grid-template-columns: minmax(96px, 168px) 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(24px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.founder__mark { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--cardamom); background: radial-gradient(closest-side, var(--glow), transparent); }
.founder__mark--photo { overflow: hidden; border: 0; }
.founder__photo, .founder__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.founder__pod { width: 46%; height: auto; transform: rotate(-18deg); }
.founder__name { font-size: clamp(1.7rem, 3.6vw, 2.8rem); line-height: 1.15; letter-spacing: -.02em; margin: .2em 0 .25em; }
.founder__role { font: 500 .78rem/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1.2em; }
.founder__other { margin-inline-start: .8em; padding-inline-start: .8em; border-inline-start: 1px solid var(--line-strong); text-transform: none; letter-spacing: 0; font-family: var(--font); }
.founder__body > p:not(.eyebrow):not(.founder__role) { color: var(--text-2); max-width: 60ch; }
@media (max-width: 640px) { .founder__grid { grid-template-columns: 1fr; } .founder__mark { width: 112px; } }

.facts__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.facts__grid .section-title--sm { margin-top: .4em; }
.facts__list { margin: 0; border-top: 1px solid var(--line); }
.facts__list > div { display: grid; grid-template-columns: minmax(110px, 1fr) 2fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts__list dt { color: var(--text-3); font: 500 .74rem/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.facts__list dd { margin: 0; overflow-wrap: anywhere; }
.facts__list a { color: var(--text); text-decoration-color: var(--line-strong); text-underline-offset: .25em; }
.facts__list a:hover { text-decoration-color: var(--green); }
@media (max-width: 760px) { .facts__grid { grid-template-columns: 1fr; } .facts__list > div { grid-template-columns: 1fr; gap: 2px; } }

.footer-founder { margin-top: -8px !important; font-size: .9rem; }
.footer-founder a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-strong); }
.footer-founder a:hover { border-color: var(--green); }

/* ---- Page feedback + «last updated» ------------------------------------------------------------------------
   Closes every information page. A quiet bar in the terminal voice: a question, two answers, the date in both calendars. */
.page-meta { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); background: var(--bg-2); }
.page-meta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; padding-block: 22px; }
.page-meta__ask form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.page-meta__ask form[hidden], .page-meta__thanks[hidden], .page-meta__why[hidden] { display: none; }
.page-meta__q { margin: 0; font-weight: 500; }
.page-meta__btns { display: flex; gap: 8px; }
.pm-btn { display: inline-flex; align-items: center; gap: .45em; min-height: 40px; padding: .3em 1.05em; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; color: var(--text); font: inherit; font-size: .92rem; cursor: pointer; transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.pm-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; }
.pm-btn:hover, .pm-btn[aria-expanded="true"] { border-color: var(--green); background: var(--glow); }
.page-meta__why { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 6px 0 0; padding: 16px 0 0; border: 0; border-top: 1px dashed var(--line-strong); }
.page-meta__why legend { float: inline-start; width: 100%; padding: 0 0 8px; color: var(--text-2); font-size: .92rem; }
.pm-reason { display: inline-flex; align-items: center; gap: .5em; padding: .45em .9em; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .9rem; cursor: pointer; }
.pm-reason:has(input:checked) { border-color: var(--green); background: var(--glow); }
.pm-reason input { accent-color: var(--green); margin: 0; }
.page-meta__send { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 6px; }
.page-meta__thanks { margin: 0; display: flex; align-items: center; gap: .5em; color: var(--text-2); }
.page-meta__side { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; color: var(--text-3); font-size: .85rem; }
.page-meta__date { margin: 0; }
.page-meta__date time { color: var(--text-2); font-variant-numeric: tabular-nums; }
.page-meta__hijri { margin-inline-start: .35em; }
.page-meta__share { display: inline-flex; align-items: center; gap: .45em; padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; cursor: pointer; border-bottom: 1px solid var(--line-strong); }
.page-meta__share svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }
.page-meta__share:hover { color: var(--text); border-color: var(--green); }
.page-game .page-meta { background: transparent; }

/* ---- Numbered steps (support) ---------------------------------------------------------------------------------- */
.support-steps__title { margin-top: clamp(40px, 5vw, 64px); }
.steps { list-style: none; margin: 18px 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; counter-reset: none; border-block: 1px solid var(--line); }
.steps__item { display: flex; gap: 16px; padding: 22px clamp(12px, 2vw, 24px); }
.steps__item + .steps__item { border-inline-start: 1px solid var(--line); }
.steps__n { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--green); color: var(--accent-text); font: 600 .9rem var(--mono); }
.steps__item strong { display: block; margin-bottom: .3em; }
.steps__item p { margin: 0; color: var(--text-2); font-size: .94rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps__item + .steps__item { border-inline-start: 0; border-top: 1px solid var(--line); } }

/* ---- HTML site map ------------------------------------------------------------------------------------------------ */
.smap { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px); }
.smap__group--wide { grid-column: 1 / -1; }
.smap__title { font: 500 .74rem/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.smap ul { list-style: none; margin: 0; padding: 0; }
.smap li { padding: 6px 0; }
.smap a { color: var(--text); text-decoration: none; border-bottom: 1px solid transparent; }
.smap a:hover { border-color: var(--green); }
