@font-face {
  font-family: "Montserrat";
  src: url("/assets/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Tokens ----------
   Colours come from the logo: deep panel teal, the two wall teals and the
   light face teal. Text colours meet WCAG AA on their backgrounds. */
:root {
  --bg: #F7F9F8;
  --bg-alt: #EDF3F1;
  --surface: #FFFFFF;
  --ink: #0E1A1B;
  --ink-2: #3D4B4C;
  --ink-3: #5F6E70;
  --line: #DCE5E3;
  --line-strong: #C2D0CD;
  --brand: #087466;          /* text-safe teal */
  --brand-strong: #05414A;   /* logo panel teal: primary buttons, bands */
  --brand-bright: #17A69D;   /* decoration */
  --brand-face: #46CBC0;
  --brand-soft: #DDF1ED;
  --on-brand: #FFFFFF;
  --dev: #B7791F;            /* "in development" dot */
  --live: #12A150;
  --shadow: 0 1px 2px rgba(14, 26, 27, .05), 0 14px 34px -14px rgba(14, 26, 27, .18);
  --shadow-lg: 0 2px 4px rgba(14, 26, 27, .05), 0 34px 70px -28px rgba(5, 65, 74, .38);
  --radius: 14px;
  --wrap: 1180px;
  --head: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #071011; --bg-alt: #0B1719; --surface: #0F1D1F;
    --ink: #EEF4F3; --ink-2: #B7C6C4; --ink-3: #8A9D9B;
    --line: #1B2D2F; --line-strong: #2A4245;
    --brand: #4FD3C7; --brand-strong: #4FD3C7; --brand-bright: #1BB3A8; --brand-face: #4FD3C7;
    --brand-soft: #0E2B2C; --on-brand: #032326; --dev: #E0A43F; --live: #3DD68C;
    --shadow: 0 1px 2px rgba(0,0,0,.35), 0 14px 34px -14px rgba(0,0,0,.7);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.35), 0 34px 70px -28px rgba(0,0,0,.9);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #071011; --bg-alt: #0B1719; --surface: #0F1D1F;
  --ink: #EEF4F3; --ink-2: #B7C6C4; --ink-3: #8A9D9B;
  --line: #1B2D2F; --line-strong: #2A4245;
  --brand: #4FD3C7; --brand-strong: #4FD3C7; --brand-bright: #1BB3A8; --brand-face: #4FD3C7;
  --brand-soft: #0E2B2C; --on-brand: #032326; --dev: #E0A43F; --live: #3DD68C;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 14px 34px -14px rgba(0,0,0,.7);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.35), 0 34px 70px -28px rgba(0,0,0,.9);
  color-scheme: dark;
}

/* Light/dark asset swapping */
.only-dark, .icon-sun { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark, :root:not([data-theme="light"]) .icon-sun { display: block !important; }
  :root:not([data-theme="light"]) .only-light, :root:not([data-theme="light"]) .icon-moon { display: none !important; }
}
:root[data-theme="dark"] .only-dark, :root[data-theme="dark"] .icon-sun { display: block !important; }
:root[data-theme="dark"] .only-light, :root[data-theme="dark"] .icon-moon { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.14; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
section[id] { scroll-margin-top: 76px; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::selection { background: var(--brand-face); color: #032326; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
@media (max-width: 560px) { .wrap { padding: 0 18px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--brand-strong); color: var(--on-brand); padding: 8px 14px; border-radius: 6px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 12px/1 var(--head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; margin-top: 24px; }
.hint { color: var(--ink-3); font-size: .95rem; margin-top: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--head); color: var(--brand); text-decoration: none; }

/* Status pill: amber dot = in development, green = available */
.pill {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font: 600 12px/1 var(--head); letter-spacing: .02em; color: var(--ink-2);
  padding: 7px 11px 7px 9px; border-radius: 99px; background: var(--bg-alt); border: 1px solid var(--line);
}
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--dev); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dev) 22%, transparent); }
.pill.is-live i { background: var(--live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 22%, transparent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: block; flex: none; }
.brand-logo { width: 156px; height: auto; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.nav { display: flex; align-items: center; gap: 6px; margin-right: 6px; }
.nav a {
  position: relative; text-decoration: none; font: 600 14px/1 var(--head); letter-spacing: 0.02em; color: var(--ink-2);
  padding: 10px 14px; border-radius: 99px; transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: var(--bg-alt); }
.nav a[aria-current="true"] { color: var(--brand); }
.nav a[aria-current="true"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor;
}
.nav .nav-cta { color: var(--on-brand); background: var(--brand-strong); margin-left: 6px; padding: 10px 18px; }
.nav .nav-cta:hover { color: var(--on-brand); background: var(--brand-strong); filter: brightness(1.12); }
.nav .nav-cta[aria-current="true"] { color: var(--on-brand); }
.nav .nav-cta[aria-current="true"]::after { display: none; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink-2); cursor: pointer; font-size: 18px;
  transition: color .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { color: var(--brand); border-color: var(--line-strong); }
.icon-btn span { display: block; line-height: 0; }
.theme-toggle:active svg { transform: rotate(40deg); }
.theme-toggle svg { transition: transform .4s var(--ease); }
.menu-toggle { display: none; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }
@media (max-width: 900px) {
  .header-row { height: 64px; }
  .brand-logo { width: 132px; }
  .menu-toggle { display: grid; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 18px 18px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s, transform .2s; }
  .nav a { padding: 14px 12px; font-size: 16px; border-radius: 10px; }
  .nav a[aria-current="true"]::after { left: auto; right: 14px; top: 50%; bottom: auto; margin-top: -2px; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; padding: 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font: 600 15px/1 var(--head); text-decoration: none; color: var(--ink);
  transition: border-color .2s, background-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand-strong); color: var(--on-brand); border-color: var(--brand-strong); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--brand-strong) 80%, transparent); }
.btn-primary:hover { color: var(--on-brand); border-color: var(--brand-strong); filter: brightness(1.1); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--brand-strong) 90%, transparent); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 104px; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 85% 30%, color-mix(in srgb, var(--brand-face) 26%, transparent), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, color-mix(in srgb, var(--brand-bright) 12%, transparent), transparent 70%);
}
/* Slanted lines at the logo's panel angle */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(-22.6deg, transparent 0 46px, color-mix(in srgb, var(--brand) 9%, transparent) 46px 47px);
  -webkit-mask-image: radial-gradient(70% 80% at 80% 40%, #000, transparent 75%);
          mask-image: radial-gradient(70% 80% at 80% 40%, #000, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); font-weight: 700; letter-spacing: -0.032em; line-height: 1.04; }
.hl { color: var(--brand); }
.hero-stage { position: relative; }
.hero-stack { position: relative; aspect-ratio: 16 / 12.4; }
.hero-stack img {
  position: absolute; width: 78%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-lg); transition: translate .5s var(--ease);
}
.stack-1 { top: 0; right: 0; }
.stack-2 { top: 18%; right: 11%; }
.stack-3 { top: 36%; right: 22%; }
.hero-stage:hover .stack-1 { translate: 10px -8px; }
.hero-stage:hover .stack-3 { translate: -10px 8px; }
@media (max-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stage { max-width: 540px; width: 100%; justify-self: center; }
}
@media (max-width: 560px) { .hero { padding: 44px 0 56px; } .lede { font-size: 1.08rem; } }

/* ---------- Strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip-row { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-row li { display: flex; align-items: center; gap: 14px; padding: 24px 22px; border-left: 1px solid var(--line); }
.strip-row li:first-child { border-left: 0; padding-left: 0; }
.strip-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 20px; flex: none; }
.strip-text { display: grid; gap: 1px; }
.strip-row strong { font: 700 15px/1.3 var(--head); }
.strip-text span { color: var(--ink-3); font-size: 14px; line-height: 1.4; }
@media (max-width: 960px) {
  .strip-row { grid-template-columns: 1fr 1fr; }
  .strip-row li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .strip-row li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .strip-row { grid-template-columns: 1fr; }
  .strip-row li { border-left: 0; padding: 16px 0; }
  .strip-row li + li { border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: 112px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 42em; margin-bottom: 52px; }
.section-head h2, .about h2, .contact h2, .two-col h2 { font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 700; letter-spacing: -0.025em; }
.section-head h2 { margin-bottom: 16px; }
.section-head p:not(.eyebrow) { color: var(--ink-2); font-size: 1.08rem; }
@media (max-width: 560px) { .section { padding: 72px 0; } .section-head { margin-bottom: 36px; } }

/* Tool cards */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 800px) { .grid { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-strong), var(--brand-bright), var(--brand-face));
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.card:hover::after { transform: scaleX(1); }
.card-media { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.card-body { padding: 24px 28px 26px; display: flex; flex-direction: column; flex: 1; }
.card-kicker { display: flex; align-items: center; gap: 10px; font: 700 11.5px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.card-num { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.card-tagline { font: 500 1rem/1.4 var(--head); color: var(--ink); margin-bottom: 10px; }
.card-body > p:not(.card-kicker):not(.card-foot):not(.card-tagline) { color: var(--ink-2); font-size: .98rem; }
.card-foot { padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.more { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1 var(--head); white-space: nowrap; color: var(--brand); }
.arrow { transition: transform .25s var(--ease); }
.card:hover .arrow { transform: translateX(4px); }

/* ---------- Games (always dark) ---------- */
.section-dark {
  --bg: #071011; --bg-alt: #0D1B1D; --surface: #0F1F21;
  --ink: #EEF4F3; --ink-2: #B7C6C4; --ink-3: #8A9D9B;
  --line: #1B2D2F; --line-strong: #2C4447;
  --brand: #4FD3C7; --brand-soft: #0E2B2C; --dev: #E0A43F;
  background: radial-gradient(70% 60% at 20% 0%, rgba(23, 166, 157, .18), transparent 70%), #071011;
  color: var(--ink); overflow: hidden; border-block: 1px solid #1B2D2F;
}
.section-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(79, 211, 199, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 211, 199, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%); mask-image: linear-gradient(to bottom, #000, transparent 70%);
}
.section-dark .wrap { position: relative; }
.feature-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 56px; align-items: center; }
.feature-figure {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: #1a1f16;
  border: 1px solid var(--line-strong); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(79, 211, 199, .06);
}
.feature-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .9s ease; }
.dn-night { opacity: 0; }
.feature-figure.is-night .dn-night { opacity: 1; }
.dn-switch {
  position: absolute; left: 16px; bottom: 16px; display: flex; padding: 4px; gap: 2px;
  background: rgba(7, 16, 17, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, .08);
}
.dn-switch button { border: 0; background: transparent; color: #DDE6E4; font: 600 13px/1 var(--head); padding: 10px 16px; border-radius: 99px; cursor: pointer; transition: background-color .25s, color .25s; }
.dn-switch button:hover { color: #fff; }
.dn-switch button[aria-pressed="true"] { background: #4FD3C7; color: #032326; }
.feature-copy h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; margin-bottom: 16px; }
.feature-copy > p:not(.eyebrow):not(.hint) { color: var(--ink-2); }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; gap: 32px; } }
.tags { margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font: 600 12.5px/1 var(--head); padding: 8px 13px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink-2); }
.sub-head { font: 700 12px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 88px 0 22px; }
.games { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1040px) { .games { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .games { grid-template-columns: 1fr; } .sub-head { margin-top: 64px; } }
.game {
  position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); border: 1px solid var(--line);
  transition: border-color .25s, transform .35s var(--ease), background-color .25s;
}
.game:hover { border-color: rgba(79, 211, 199, .45); transform: translateY(-4px); }
.game-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.game-num { font: 700 13px/1 var(--head); color: var(--brand); font-variant-numeric: tabular-nums; }
.chip { font: 600 11.5px/1 var(--head); letter-spacing: .04em; color: var(--ink-2); padding: 6px 10px; border-radius: 99px; background: rgba(255,255,255,.06); }
.game h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.game > p:not(.game-top) { color: var(--ink-2); font-size: .96rem; }
.game-foot { margin-top: auto; padding-top: 22px; }
.section-dark .pill { background: rgba(255,255,255,.05); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: start; }
.about h2 { margin-bottom: 22px; }
.statement { font: 500 clamp(1.25rem, 2.2vw, 1.6rem)/1.4 var(--head); color: var(--ink); letter-spacing: -0.01em; max-width: 20em; }
.principles { display: grid; gap: 16px; }
.principles li {
  display: flex; gap: 18px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s, transform .35s var(--ease);
}
.principles li:hover { border-color: var(--line-strong); transform: translateX(4px); }
.p-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 21px; flex: none; }
.principles h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.principles p { color: var(--ink-2); font-size: .98rem; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- Contact band ---------- */
.cta {
  --ink: #F2FBF9; --ink-2: #C3E2DE; --ink-3: #9CC6C0; --brand: #7FE3D9; --line: rgba(255,255,255,.14);
  background: linear-gradient(135deg, #05414A 0%, #075158 55%, #0B6B67 100%); color: var(--ink); overflow: hidden; isolation: isolate;
}
.cta-mark {
  position: absolute; z-index: -1; right: -60px; top: 50%; width: 520px; aspect-ratio: 438 / 431; transform: translateY(-50%) rotate(-4deg);
  background: url("/assets/mark-dark.svg") center / contain no-repeat; opacity: .14;
}
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: center; }
.contact h2 { margin-bottom: 16px; }
.contact > div > p:not(.eyebrow) { color: var(--ink-2); margin-bottom: 30px; max-width: 30em; }
.btn-light { background: #FFFFFF; color: #05414A; border-color: #FFFFFF; max-width: 100%; overflow-wrap: anywhere; }
.btn-light:hover { color: #05414A; border-color: #FFFFFF; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5); }
.contact-side { padding: 28px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid var(--line); backdrop-filter: blur(4px); }
.contact-side p { color: var(--ink-2); }
.small-head { font: 700 12px/1 var(--head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.platforms li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.platform-name { font: 600 16px/1.3 var(--head); color: var(--ink); }
.platform-note { color: var(--ink-3); font-size: 15px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 40px; } .cta-mark { width: 360px; right: -120px; top: 30%; } }

/* ---------- Product pages ---------- */
.product-hero { position: relative; padding: 40px 0 96px; overflow: hidden; isolation: isolate; }
.product-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(55% 60% at 85% 35%, color-mix(in srgb, var(--brand-face) 22%, transparent), transparent 70%);
}
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; color: var(--ink-3); margin-bottom: 52px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.product-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.product-hero h1 { font-size: clamp(2.6rem, 5.4vw, 3.9rem); font-weight: 700; letter-spacing: -0.03em; }
.product-tagline { font: 500 clamp(1.15rem, 2vw, 1.4rem)/1.35 var(--head); color: var(--ink); margin-top: 12px; }
.product-hero .lede { font-size: 1.06rem; }
.product-shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.facts { display: flex; gap: 44px; margin: 36px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.facts dt { font: 700 11.5px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.facts dd { margin: 0; font-weight: 500; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; gap: 44px; } .crumbs { margin-bottom: 32px; } }
@media (max-width: 480px) { .facts { flex-direction: column; gap: 18px; } }

/* Steps: numbered, connected by a line */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 22px;
  font: 700 14px/1 var(--head); color: var(--on-brand); background: var(--brand-strong); font-variant-numeric: tabular-nums;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 46px; left: calc(24px + 40px + 8px); right: -20px; height: 2px;
  background: linear-gradient(90deg, var(--brand-bright), transparent); opacity: .5;
}
.steps h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } .steps li::after { display: none; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.gallery figcaption { color: var(--ink-3); font-size: 14.5px; margin-top: 14px; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.two-col h2 { margin-bottom: 24px; }
.checks { display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft);
}
.checks li::after { content: ""; position: absolute; left: 7px; top: calc(.2em + 7px); width: 8px; height: 4.5px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.limits { color: var(--ink-2); max-width: 30em; padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 52px; } }

.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mini {
  display: grid; gap: 4px; align-content: start; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); text-decoration: none; transition: border-color .25s, transform .35s var(--ease), box-shadow .35s;
}
.mini:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.mini strong { font: 700 1.18rem/1.3 var(--head); }
.mini span:last-child { color: var(--ink-2); font-size: .97rem; }
.mini .card-kicker { margin-bottom: 6px; }
@media (max-width: 860px) { .minis { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 40px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 36px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } .footer-brand { grid-column: 1 / -1; } }
.footer-logo { width: 140px; height: auto; }
.footer-brand p { color: var(--ink-3); font-size: 15px; margin-top: 18px; max-width: 18em; }
.footer-head { font: 700 12px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.footer-grid ul { display: grid; gap: 11px; font-size: 15px; }
.footer-grid a { text-decoration: none; color: var(--ink-2); transition: color .2s; }
.footer-grid a:hover { color: var(--brand); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 14px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.notfound { min-height: 56vh; display: flex; align-items: center; padding: 80px 0; }
.notfound h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
.notfound p:not(.eyebrow) { color: var(--ink-2); margin-bottom: 28px; }

/* ---------- Reveal ---------- */
.reveal-ready :where(.card, .game, .steps li, .gallery figure, .principles li, .mini, .section-head, .feature-grid, .strip-row li, .faq, .service, .portfolio figure, .service-detail) {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease), box-shadow .35s var(--ease), border-color .25s;
  transition-delay: var(--d, 0s);
}
.reveal-ready .is-in { opacity: 1; transform: none; }
.reveal-ready .card.is-in:hover { transform: translateY(-5px); transition-delay: 0s; }
.reveal-ready .game.is-in:hover { transform: translateY(-4px); transition-delay: 0s; }
.reveal-ready .mini.is-in:hover { transform: translateY(-3px); transition-delay: 0s; }
.reveal-ready .principles li.is-in:hover { transform: translateX(4px); transition-delay: 0s; }

/* ---------- Screenshot lightbox ---------- */
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); }
.zoom img { display: block; }
.product-shot .zoom { border-radius: 0; }
.lightbox {
  width: min(1600px, 94vw); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: 14px;
  background: transparent; overflow: visible;
}
.lightbox::backdrop { background: rgba(4, 12, 13, .82); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: 86vh; object-fit: contain; border-radius: 12px; background: #fff; box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); cursor: zoom-out; }
.lightbox p { color: #DDE6E4; text-align: center; font-size: 15px; margin-top: 12px; }
.lightbox-close {
  position: absolute; top: -18px; right: -18px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; color: #0E1A1B; font-size: 18px; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
@media (max-width: 700px) { .lightbox-close { top: -48px; right: 0; } }

/* ---------- Hero router: one click to the right tool ---------- */
.router { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); max-width: 36em; }
.router-title { font: 700 11.5px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.router ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.router a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 10px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--surface) 75%, transparent);
  text-decoration: none; transition: border-color .2s, background-color .2s, transform .2s var(--ease);
}
.router a span { grid-column: 1; font-size: 12.5px; line-height: 1.3; color: var(--ink-3); }
.router a strong { grid-column: 1; font: 700 15px/1.3 var(--head); }
.router a .arrow { grid-column: 2; grid-row: 1 / 3; color: var(--brand); font-size: 16px; }
.router a:hover { border-color: var(--brand); background: var(--surface); transform: translateY(-2px); }
.router a:hover .arrow { transform: translateX(3px); }
@media (max-width: 380px) { .router ul { grid-template-columns: 1fr; } }
/* The screenshot stack is decoration; on phones it pushes the router below the fold. */
@media (max-width: 560px) { .hero-stage { display: none; } .router { margin-top: 32px; } }

/* ---------- Card facts ---------- */
.card-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: auto 0 0; padding-top: 16px; border-top: 1px dashed var(--line-strong); font-size: 14.5px; }
.card-facts div { display: contents; }
.card-facts dt { font: 700 11px/1.9 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.card-facts dd { margin: 0; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 72px; align-items: start; }
.faq-layout .section-head { position: sticky; top: 104px; margin-bottom: 0; }
.inline { color: var(--brand); text-underline-offset: 3px; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px;
  font: 600 1.08rem/1.4 var(--head); cursor: pointer; list-style: none; transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: linear-gradient(var(--brand), var(--brand)) center / 10px 1.8px no-repeat,
              linear-gradient(var(--brand), var(--brand)) center / 1.8px 10px no-repeat;
  transition: transform .3s var(--ease), background-color .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brand); }
.faq-a { padding: 0 52px 24px 4px; color: var(--ink-2); }
.faq details[open] .faq-a { animation: faq-in .35s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; gap: 28px; } .faq-layout .section-head { position: static; } }
@media (max-width: 560px) { .faq-a { padding-right: 4px; } }

/* ---------- Product page additions ---------- */
.facts { flex-wrap: wrap; row-gap: 22px; }
.facts-wide { flex-basis: 100%; }
.facts dd { color: var(--ink); }
.zoom { position: relative; }
.zoom-hint {
  position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 99px; background: rgba(7, 16, 17, .78); color: #fff;
  font: 600 12.5px/1 var(--head); opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s var(--ease);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.zoom-hint svg { font-size: 15px; }
.zoom:hover .zoom-hint, .zoom:focus-visible .zoom-hint { opacity: 1; transform: none; }
@media (hover: none) { .zoom-hint { opacity: 1; transform: none; } }
.cta-compact { padding: 80px 0; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 32px 56px; flex-wrap: wrap; }
.cta-row h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.cta-row p { color: var(--ink-2); max-width: 36em; }
.cta-compact .cta-mark { width: 380px; right: -40px; }
/* Keep the facts block on the same line across a row of cards. */
.card-body > p:has(+ .card-facts) { padding-bottom: 18px; }

/* ---------- Services (home cards) ---------- */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.services > .service { grid-column: span 2; }
.services > .service:nth-child(-n+2) { grid-column: span 3; }
.services > .service:nth-child(-n+2) .service-media { aspect-ratio: 16 / 8; }
@media (max-width: 1000px) {
  .services { grid-template-columns: 1fr; max-width: 640px; }
  .services > .service, .services > .service:nth-child(-n+2) { grid-column: auto; }
  .services > .service:nth-child(-n+2) .service-media { aspect-ratio: 16 / 10; }
}
.service {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.service-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #9AA6A7; border-bottom: 1px solid var(--line); }
.service-media > img, .service-media > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.service h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 4px; }
.service-body > p:not(.card-kicker):not(.card-foot):not(.card-tagline) { color: var(--ink-2); font-size: .97rem; }
.service .card-foot { margin-top: auto; }
.reveal-ready .service.is-in:hover { transform: translateY(-4px); transition-delay: 0s; }

/* ---------- Neural network demo ---------- */
.nn { --nn-a: #E0913A; --nn-b: #0E8A7E; --nn-bg: #F4F7F6; }
:root[data-theme="dark"] .nn { --nn-a: #F0A84E; --nn-b: #3FC9BC; --nn-bg: #0C1A1C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nn { --nn-a: #F0A84E; --nn-b: #3FC9BC; --nn-bg: #0C1A1C; } }
.nn canvas { display: block; width: 100%; }
.nn-mini { position: absolute; inset: 0; background: var(--nn-bg); }
.nn-mini .nn-field { height: 100%; }
.nn-badge {
  position: absolute; left: 12px; bottom: 12px; display: inline-block;
  padding: 7px 11px; border-radius: 99px; background: rgba(7, 16, 17, .78); color: #fff; font: 600 12px/1 var(--head); white-space: nowrap;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.nn-badge i { display: inline-block; vertical-align: 1px; margin-right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #3DD68C; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.nn-full { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.nn-stage { position: relative; min-height: 320px; background: var(--nn-bg); border-right: 1px solid var(--line); }
.nn-full .nn-field { position: absolute; inset: 0; height: 100%; }
.nn-panel { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.small-label { font: 700 11px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.nn-sets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.nn-sets button, .viewer-btn {
  font: 600 13px/1 var(--head); padding: 9px 13px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.nn-sets button:hover, .viewer-btn:hover { border-color: var(--brand); color: var(--brand); }
.nn-sets button[aria-pressed="true"] { background: var(--brand-strong); border-color: var(--brand-strong); color: var(--on-brand); }
.nn-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 8px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.nn-stats div { background: var(--surface); padding: 12px 14px; }
.nn-stats dt { font: 700 10.5px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.nn-stats dd { margin: 0; font: 700 1.35rem/1 var(--head); font-variant-numeric: tabular-nums; }
.nn-stats div:last-child dd { color: var(--brand); }
.nn-loss { height: 56px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.nn-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.nn-note { color: var(--ink-3); font-size: 13.5px; line-height: 1.5; margin-top: auto; padding-top: 8px; }
@media (max-width: 720px) { .nn-full { grid-template-columns: 1fr; } .nn-stage { min-height: 0; aspect-ratio: 1; border-right: 0; border-bottom: 1px solid var(--line); } }

/* ---------- 3D viewer ---------- */
.viewer { margin: 0; }
.viewer-stage {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(60% 55% at 50% 42%, #5C6B6E, #2A3436 70%, #1B2224);
  box-shadow: var(--shadow-lg);
}
.viewer-stage::after {
  content: ""; position: absolute; left: 22%; right: 22%; bottom: 13%; height: 7%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .42), transparent); z-index: 0;
}
.viewer canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; cursor: grab; touch-action: pan-y; outline-offset: -3px; }
.viewer.is-dragging canvas { cursor: grabbing; }
.viewer-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: none; }
.viewer.is-fallback .viewer-fallback { display: block; }
.viewer.is-fallback canvas, .viewer.is-fallback .viewer-bar { display: none; }
.viewer-status { position: absolute; inset: 0; display: grid; place-items: center; color: #DDE6E4; font: 600 14px/1 var(--head); pointer-events: none; }
.viewer-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px; pointer-events: none; }
.viewer-bar > * { pointer-events: auto; }
.viewer-hint { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 99px; background: rgba(7, 16, 17, .6); color: #E6EEED; font: 600 12.5px/1 var(--head); }
.viewer-hint svg { font-size: 15px; }
.viewer .viewer-btn { background: rgba(7, 16, 17, .6); border-color: rgba(255, 255, 255, .18); color: #E6EEED; }
.viewer .viewer-btn[aria-pressed="true"] { background: #4FD3C7; border-color: #4FD3C7; color: #032326; }
.viewer figcaption, .film figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 14px; font-size: 14.5px; color: var(--ink-3); }
.viewer figcaption strong, .film figcaption strong { font: 700 15px/1.4 var(--head); color: var(--ink); }

/* ---------- Services page ---------- */
.services-hero { padding-bottom: 72px; }
.services-hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: end; }
.services-hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); }
.jumps { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 80%, transparent); }
.jumps ol { display: grid; gap: 4px; }
.jumps a { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 10px; text-decoration: none; font: 600 16px/1.3 var(--head); transition: background-color .2s, color .2s; }
.jumps a span { font-size: 13px; color: var(--brand); font-variant-numeric: tabular-nums; }
.jumps a:hover { background: var(--bg-alt); color: var(--brand); }
@media (max-width: 900px) { .services-hero-grid { grid-template-columns: 1fr; gap: 36px; } }

.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.service-detail.is-flipped .service-copy { order: 2; }
.service-detail.is-wide { grid-template-columns: .85fr 1.15fr; }
.service-copy h2 { font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 700; letter-spacing: -0.025em; }
.prose { display: grid; gap: 14px; margin-top: 20px; color: var(--ink-2); }
.service-lists { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.service-lists .small-head { color: var(--ink-3); }
.service-lists .checks { gap: 10px; font-size: .97rem; }
.service-lists .tags { margin-top: 0; }
.service-lists .tags li { font-size: 12.5px; }
@media (max-width: 960px) {
  .service-detail, .service-detail.is-wide { grid-template-columns: 1fr; gap: 40px; }
  .service-detail.is-flipped .service-copy { order: 0; }
}
@media (max-width: 520px) { .service-lists { grid-template-columns: 1fr; } }
.film { margin: 0; }
.film-video { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #9AA6A7; }
.portfolio { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.portfolio figure { margin: 0; }
.portfolio img { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.portfolio figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.portfolio figcaption strong { display: block; font: 700 15px/1.4 var(--head); color: var(--ink); margin-bottom: 2px; }
@media (max-width: 1000px) { .portfolio { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .portfolio { grid-template-columns: 1fr; } }

/* ---------- Tools mosaic (software service) ---------- */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; background: var(--bg-alt); height: 100%; }
.service-media .mosaic { position: absolute; inset: 0; }
.mosaic-tile { position: relative; display: block; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; }
.mosaic-tile img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .5s var(--ease); }
.mosaic-label { position: absolute; left: 8px; bottom: 8px; padding: 5px 9px; border-radius: 99px; background: rgba(7, 16, 17, .78); color: #fff; font: 600 11.5px/1 var(--head); }
a.mosaic-tile:hover img { transform: scale(1.04); }
a.mosaic-tile:hover .mosaic-label { background: var(--brand-strong); }
.mosaic-fig { margin: 0; }
.mosaic-fig .mosaic { aspect-ratio: 16 / 10; padding: 10px; gap: 10px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-lg); height: auto; }
.mosaic-fig .mosaic-label { font-size: 13px; padding: 7px 11px; left: 10px; bottom: 10px; }
.mosaic-fig figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 14px; font-size: 14.5px; color: var(--ink-3); }
.mosaic-fig figcaption strong { font: 700 15px/1.4 var(--head); color: var(--ink); }

/* ---------- Live page measurements (web design service) ---------- */
.measure { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.measure-chrome { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.measure-chrome i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.measure-chrome span { margin-left: 10px; flex: 1; max-width: 260px; padding: 5px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font: 500 12.5px/1 var(--body); color: var(--ink-3); }
.measure-title { padding: 22px 24px 0; font: 700 1.05rem/1.3 var(--head); }
.measure-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 18px 24px 0; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.measure-stats div { background: var(--surface); padding: 14px 16px; }
.measure-stats div:first-child { grid-column: 1 / -1; }
.measure-stats dt { font: 700 10.5px/1 var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.measure-stats dd { margin: 0; font: 700 1.6rem/1 var(--head); font-variant-numeric: tabular-nums; }
.measure-stats div:first-child dd { font-size: 2.4rem; color: var(--brand); }
.measure-note { padding: 16px 24px 22px; color: var(--ink-3); font-size: 13.5px; line-height: 1.5; }
.measure-compact { position: absolute; inset: 0; border: 0; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; }
.measure-compact .measure-title { padding: 14px 18px 0; font-size: .92rem; }
.measure-compact .measure-stats { grid-template-columns: repeat(3, 1fr); margin: 12px 18px 0; }
.measure-compact .measure-stats div:first-child { grid-column: auto; }
.measure-compact .measure-stats div { padding: 12px 14px; }
.measure-compact .measure-stats dd, .measure-compact .measure-stats div:first-child dd { font-size: 1.45rem; }
.measure-compact .measure-note { margin-top: auto; padding: 12px 18px 14px; font-size: 12.5px; }
@media (max-width: 1000px) {
  .services > .service:nth-child(n) .service-media:has(.measure-compact) { aspect-ratio: auto; }
  .measure-compact { position: relative; inset: auto; }
}
@media (max-width: 420px) { .measure-compact .measure-stats dd, .measure-compact .measure-stats div:first-child dd { font-size: 1.2rem; } .measure-compact .measure-stats div { padding: 10px; } }

/* ---------- Showreel ---------- */
.reel-screen { position: relative; border-radius: var(--radius); overflow: hidden; background: #0B1214; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.reel-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0B1214; }
.reel-caption {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: baseline; gap: 12px; padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(4, 10, 11, .72)); color: #fff; pointer-events: none;
}
.reel-count { font: 700 12px/1 var(--head); letter-spacing: .12em; color: #7FE3D9; font-variant-numeric: tabular-nums; }
.reel-title { font: 700 1.05rem/1.2 var(--head); }
.reel-toggle {
  position: absolute; right: 14px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(7, 16, 17, .6); cursor: pointer; display: grid; place-items: center;
}
.reel-toggle:hover { background: rgba(7, 16, 17, .85); }
.i-pause { width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.i-play { width: 0; height: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 4px; display: none; }
.reel.is-paused .i-pause, [data-reel].is-paused .i-pause { display: none; }
[data-reel].is-paused .i-play { display: block; }
.reel-chapters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.reel-chapter {
  position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; text-align: left; cursor: pointer; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: inherit; font: inherit;
  transition: border-color .2s, transform .3s var(--ease), box-shadow .3s var(--ease);
}
.reel-chapter img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .8; transition: opacity .2s; }
.reel-chapter:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.reel-chapter:hover img, .reel-chapter[aria-current="true"] img { opacity: 1; }
.reel-chapter[aria-current="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.reel-ch-body { display: grid; gap: 2px; padding: 14px 16px 18px; }
.reel-ch-num { font: 700 11.5px/1 var(--head); letter-spacing: .12em; color: var(--brand); margin-bottom: 6px; }
.reel-ch-body strong { font: 700 1rem/1.3 var(--head); }
.reel-ch-model { font-size: 13.5px; color: var(--ink-3); }
.reel-ch-desc { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin-top: 8px; }
.reel-bar { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: transparent; }
.reel-bar b { display: block; height: 100%; width: 0; background: var(--brand); }
.reel-chapter[aria-current="true"] .reel-bar { background: color-mix(in srgb, var(--brand) 20%, transparent); }
@media (max-width: 1000px) { .reel-chapters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .reel-chapters { grid-template-columns: 1fr; gap: 10px; margin-top: 32px; }
  .reel-chapter { flex-direction: row; }
  .reel-chapter img { width: 128px; flex: none; aspect-ratio: 16 / 10; }
  .reel-ch-desc { display: none; }
}
/* The animation section stacks: copy and lists side by side, then the reel at full width. */
.service-detail.is-reel { grid-template-columns: 1fr; gap: 48px; }
.service-detail.is-reel .service-copy { order: 0; display: grid; grid-template-columns: 1.15fr 1fr; column-gap: 72px; align-items: start; }
.is-reel .service-copy > * { grid-column: 1; }
.is-reel .service-copy > .service-lists { grid-column: 2; grid-row: 1 / span 4; align-self: end; margin-top: 0; padding-top: 0; border-top: 0; grid-template-columns: 1fr; gap: 24px; }
.is-reel .reel-caption { padding: 60px 26px 22px; }
.is-reel .reel-title { font-size: 1.35rem; }
.is-reel .reel-toggle { right: 20px; bottom: 18px; width: 46px; height: 46px; }
@media (max-width: 960px) {
  .service-detail.is-reel .service-copy { display: block; }
  .is-reel .service-copy > .service-lists { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); grid-template-columns: 1.3fr 1fr; }
}
@media (max-width: 520px) { .is-reel .service-copy > .service-lists { grid-template-columns: 1fr; } .is-reel .reel-caption { padding: 40px 16px 14px; } .is-reel .reel-title { font-size: 1rem; } }
