/* =====================================================================
   Media Art Nation — v1 site styles
   Mobile-first. Tokens from the IR 2026 deck: off-white base, dark panels,
   blue = OMNIPlay, coral = OMNIQ; logo in black (light) / white (dark).
   ===================================================================== */
:root {
  --bg: #f4f3ef;
  --bg-2: #ffffff;
  --ink: #15161b;
  --ink-2: #55534e;
  --muted: #8c8a84;
  --line: #e3e0d8;
  --line-dark: rgba(255, 255, 255, 0.12);
  --blue: #3d5afe;
  --blue-soft: #eef0ff;
  --coral: #ff5c39;
  --coral-soft: #fff1ec;
  --coral-light: #ff8a6e;
  --blue-light: #7c8cff;
  --dark: #15161b;
  --dark-2: #0e0f13;
  --font: "Figtree", "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  --gutter: 20px;
  --maxw: 1360px;
  --header-h: 68px;
  --radius: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --text: var(--ink);
  --text-2: var(--ink-2);
  /* Page accent. Corporate pages are monochrome (ink on light, white on dark)
     and only the two product colours add colour; OMNIQ pages run on coral,
     OMNIPlay pages on blue. Dark sections, the footer and the menu swap in
     the *-dark variants. */
  --brand-grad: linear-gradient(100deg, var(--coral), var(--blue));
  --accent: var(--ink);
  --accent-contrast: #fff;
  --accent-glow: rgba(21, 22, 27, 0.12);
  --accent-dot: var(--brand-grad);
  --accent-dark: #fff;
  --accent-dark-contrast: var(--ink);
  --accent-dark-glow: rgba(255, 255, 255, 0.16);
  --accent-dark-dot: var(--brand-grad);
  --hover-bg: transparent;      --hover-fg: var(--ink); --hover-line: var(--ink);   /* .btn on light */
  --hover-dark-bg: #fff;        --hover-dark-fg: var(--ink); --hover-dark-line: #fff; /* .btn on dark */
  --inv-hover-bg: transparent;  --inv-hover-fg: #fff;   --inv-hover-line: #fff;      /* white button on dark */
}
html[data-accent="coral"] {
  --accent: var(--coral); --accent-glow: rgba(255, 92, 57, 0.18); --accent-dot: var(--coral);
  --accent-dark: var(--coral); --accent-dark-contrast: #fff; --accent-dark-glow: rgba(255, 92, 57, 0.2); --accent-dark-dot: var(--coral);
  --hover-bg: var(--coral); --hover-fg: #fff; --hover-line: var(--coral);
  --hover-dark-bg: var(--coral); --hover-dark-fg: #fff; --hover-dark-line: var(--coral);
  --inv-hover-bg: var(--coral); --inv-hover-fg: #fff; --inv-hover-line: var(--coral);
}
html[data-accent="blue"] {
  --accent: var(--blue); --accent-glow: rgba(61, 90, 254, 0.18); --accent-dot: var(--blue);
  --accent-dark: var(--blue-light); --accent-dark-contrast: var(--ink); --accent-dark-glow: rgba(124, 140, 255, 0.22); --accent-dark-dot: var(--blue-light);
  --hover-bg: var(--blue); --hover-fg: #fff; --hover-line: var(--blue);
  --hover-dark-bg: var(--blue); --hover-dark-fg: #fff; --hover-dark-line: var(--blue);
  --inv-hover-bg: var(--blue); --inv-hover-fg: #fff; --inv-hover-line: var(--blue);
}
html[data-bg-theme="dark"], .footer, .menu {
  --accent: var(--accent-dark); --accent-contrast: var(--accent-dark-contrast);
  --accent-glow: var(--accent-dark-glow); --accent-dot: var(--accent-dark-dot);
}
/* On a coral or blue page colour the product colour itself would vanish, so
   everything accent-driven turns white. */
html[data-bg-theme="coral"], html[data-bg-theme="blue"] {
  --accent: #fff; --accent-contrast: var(--ink); --accent-glow: rgba(255, 255, 255, 0.18); --accent-dot: #fff;
  --hover-bg: #fff; --hover-fg: var(--ink); --hover-line: #fff;
  --hover-dark-bg: #fff; --hover-dark-fg: var(--ink); --hover-dark-line: #fff;
  --inv-hover-bg: transparent; --inv-hover-fg: #fff; --inv-hover-line: #fff;
}
html[data-bg-theme="coral"] :is(.fcard--coral .fcard__idx, .tl__item--coral .tl__title),
html[data-bg-theme="blue"] :is(.fcard--blue .fcard__idx, .tl__item--blue .tl__title) { color: #fff; }
html[data-bg-theme="coral"] .tl__item--coral .tl__dot, html[data-bg-theme="blue"] .tl__item--blue .tl__dot { background: #fff; }
@media (min-width: 768px) {
  :root { --gutter: 40px; --header-h: 76px; --radius: 28px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 56px; }
}

@property --page-bg { syntax: "<color>"; inherits: true; initial-value: #f4f3ef; }
@property --text { syntax: "<color>"; inherits: true; initial-value: #15161b; }
@property --text-2 { syntax: "<color>"; inherits: true; initial-value: #55534e; }
@property --muted { syntax: "<color>"; inherits: true; initial-value: #8c8a84; }
@property --line { syntax: "<color>"; inherits: true; initial-value: #e3e0d8; }
html { --page-bg: var(--bg); transition: --page-bg 0.7s ease-out, --text 0.5s ease-out, --text-2 0.5s ease-out, --muted 0.5s ease-out, --line 0.5s ease-out; }
*, *::before, *::after { box-sizing: border-box; }
/* No CSS smooth scrolling: Lenis animates the scroll, and a smooth scroll-behavior makes
   ScrollTrigger measure pins against an animating scroll position (positions drift by the
   current scroll offset after any resize). Keep it only when JS is off. */
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
html:not(.js) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
html.cursor-on body { cursor: none; }
html.cursor-on a, html.cursor-on button, html.cursor-on summary, html.cursor-on label, html.cursor-on select { cursor: none; }
html.cursor-on input, html.cursor-on textarea { cursor: auto; }
img { display: block; max-width: 100%; height: auto; }

/* ---------- content protection: no text selection, long-press menu, or drag ---------- */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
img, svg, video, a, picture { -webkit-user-drag: none; user-drag: none; }
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
em { font-style: normal; }
::selection { background: var(--accent); color: var(--accent-contrast); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- skip link (keyboard users) ---------- */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 10000; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; transition: top 0.2s; }
.skip-link:focus { top: 16px; }
.notfound__other { margin-top: 28px; font-size: 14px; color: var(--muted); }
.notfound__other a { text-decoration: underline; text-underline-offset: 3px; }
.phero--notfound { min-height: 70svh; display: flex; align-items: center; }

/* ---------- typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-dot); box-shadow: 0 0 0 4px var(--accent-glow); }
html[data-bg-theme="dark"] .eyebrow, html[data-bg-theme="coral"] .eyebrow, html[data-bg-theme="blue"] .eyebrow { color: rgba(255, 255, 255, 0.72); }
html[data-bg-theme="coral"] .eyebrow::before, html[data-bg-theme="blue"] .eyebrow::before { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25); }

.sec-head { max-width: 820px; margin-bottom: clamp(36px, 6vw, 72px); }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }
.sec-title {
  margin-top: 14px;
  font-size: clamp(30px, 5.2vw, 56px); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em;
}
.sec-title em { color: var(--accent); }
/* Corporate pages: emphasised words carry both product colours. */
html[data-accent="neutral"] :is(.hero__title, .phero__title, .sec-title, .cta-band__title) em,
html[data-accent="neutral"]:not(.js) .statement__text em,
html[data-accent="neutral"].js .statement__text em .w { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-accent="neutral"].js .statement__text em { color: inherit; }
.sec-lead { margin-top: 18px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.7; color: var(--text-2); max-width: 640px; }
.sec-head--center .sec-lead { margin-left: auto; margin-right: auto; }
[data-theme] { color: var(--text); }
/* The page background morphs between sections as they cross the middle of the
   viewport (site.js sets --page-bg and data-bg-theme on <html>). The text
   tokens are registered so they animate in step with it, and every section is
   transparent: whatever is on screen always reads against the live colour. */
html:is([data-bg-theme="dark"], [data-bg-theme="coral"], [data-bg-theme="blue"]) { --text: #fff; --text-2: rgba(255, 255, 255, 0.72); --line: var(--line-dark); --muted: rgba(255, 255, 255, 0.5); }
.footer, .menu { --text: #fff; --text-2: rgba(255, 255, 255, 0.72); --line: var(--line-dark); --muted: rgba(255, 255, 255, 0.5); }
html[data-bg-theme="coral"] .sec-title em, html[data-bg-theme="blue"] .sec-title em { color: #fff; }

/* line reveal */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line__inner { display: block; will-change: transform; }
html.js .line__inner { transform: translateY(110%); }
html.js [data-reveal]:not([data-reveal="lines"]) { opacity: 0; transform: translateY(26px); }
html.js .is-in[data-reveal]:not([data-reveal="lines"]) { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
html.js .is-in .line__inner { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .line__inner, html.js [data-reveal] { transform: none !important; opacity: 1 !important; transition: none !important; }
}

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em; line-height: 1;
  background: var(--ink); color: #fff; border: 1.5px solid var(--ink);
  transition: transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn--sm { padding: 11px 18px; font-size: 13px; }
.btn--ghost { background: transparent; color: var(--text); border-color: currentColor; }
.btn--inverse { background: #fff; color: var(--ink); border-color: #fff; }
.btn__arrow { position: relative; width: 14px; height: 14px; flex: none; transition: transform 0.4s var(--ease); }
.btn__arrow::before { content: ""; position: absolute; inset: 0; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E") center/contain no-repeat; }
.btn:hover .btn__arrow, .pcard:hover .btn__arrow, .cap:hover .btn__arrow, .svc__link:hover .btn__arrow, .info__map:hover .btn__arrow { transform: translateX(5px); }
.btn:hover { background: var(--hover-bg); border-color: var(--hover-line); color: var(--hover-fg); }
html[data-bg-theme="dark"] .btn:hover { background: var(--hover-dark-bg); border-color: var(--hover-dark-line); color: var(--hover-dark-fg); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
html[data-bg-theme="dark"] .btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn--inverse:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
html[data-bg-theme="dark"] .btn--inverse:hover { background: var(--inv-hover-bg); border-color: var(--inv-hover-line); color: var(--inv-hover-fg); }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9000; background: var(--dark-2);
  display: grid; place-items: center;
}
.preloader__mark img { width: clamp(140px, 24vw, 240px); opacity: 0; transform: scale(0.92); }
html:not(.js) .preloader { display: none; }
body:not(.is-loading) .preloader { display: none; }

/* ---------- cursor ---------- */
/* The cursor is drawn in white with a difference blend, so it reads as dark on
   light backgrounds and white on dark sections, photos and buttons alike. */
.cursor { --cursor: var(--ink); position: fixed; left: 0; top: 0; z-index: 9500; pointer-events: none; display: none; }
.cursor.on-dark { --cursor: #fff; }
html.cursor-on .cursor { display: block; }
.cursor__dot { position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--cursor); transition: transform 0.2s, opacity 0.2s; }
.cursor__ring {
  position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--cursor); opacity: 0.8; display: grid; place-items: center;
  transition: transform 0.45s var(--ease), background 0.3s, border-color 0.3s, width 0.3s, height 0.3s, left 0.3s, top 0.3s;
}
.cursor__label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity 0.2s; }
.cursor.is-hover .cursor__ring { transform: scale(1.7); background: color-mix(in srgb, var(--cursor) 22%, transparent); opacity: 1; }
.cursor.is-label .cursor__ring { width: 84px; height: 84px; left: -42px; top: -42px; background: var(--accent); border-color: #fff; opacity: 1; transform: none; }
.cursor.is-label .cursor__label { color: var(--accent-contrast); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__ring { transform: scale(0.8); }

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; width: 100%; height: var(--header-h); z-index: 1000;
  display: flex; align-items: center;
  transition: background 0.4s, backdrop-filter 0.4s, transform 0.5s var(--ease), box-shadow 0.4s;
}
.header--scrolled { background: rgba(244, 243, 239, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(21, 22, 27, 0.06); }
.header--on-dark.header--scrolled { background: rgba(14, 15, 19, 0.6); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
.header--hidden { transform: translateY(-100%); }
.header__inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { position: relative; display: block; height: 30px; width: auto; }
.header__logo img { height: 100%; width: auto; transition: opacity 0.35s; }
.header__logo-light { position: absolute; inset: 0; opacity: 0; }
.header--on-dark .header__logo-dark { opacity: 0; }
.header--on-dark .header__logo-light { opacity: 1; }
.header__nav { display: none; }
.header__tools { display: flex; align-items: center; gap: 10px; }
.header__lang {
  font-size: 12px; font-weight: 800; letter-spacing: 0.1em; padding: 10px 12px; border-radius: 999px;
  border: 1.5px solid rgba(21, 22, 27, 0.18); color: var(--ink); transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.header--on-dark .header__lang { color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.header__lang:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.header--on-dark .header__lang:hover { background: #fff; color: var(--ink); border-color: #fff; }
.header__cta { display: none; }
.header--on-dark .header__cta { background: #fff; color: var(--ink); border-color: #fff; }
.header__burger { position: relative; width: 44px; height: 44px; display: grid; place-items: center; gap: 0; }
.header__burger span { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.4s var(--ease), background 0.3s, top 0.3s; }
.header__burger span:first-child { top: 17px; }
.header__burger span:last-child { top: 25px; }
.header--on-dark .header__burger span { background: #fff; }
body.menu-open .header__burger span { background: #fff; }
body.menu-open .header__burger span:first-child { top: 21px; transform: rotate(45deg); }
body.menu-open .header__burger span:last-child { top: 21px; transform: rotate(-45deg); }
@media (min-width: 1024px) {
  .header__nav { display: flex; gap: 6px; }
  .header__link { position: relative; padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--ink); border-radius: 999px; transition: color 0.3s, background 0.3s; }
  .header__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
  .header--on-dark .header__link::after { background: #fff; }
  .header__link[href$="/omniq/"]::after, .header--on-dark .header__link[href$="/omniq/"]::after { background: var(--coral); }
  .header__link[href$="/omniplay/"]::after, .header--on-dark .header__link[href$="/omniplay/"]::after { background: var(--blue); }
  .header__link:hover::after, .header__link.is-active::after { transform: scaleX(1); }
  .header--on-dark .header__link { color: #fff; }
  .header__cta:hover { background: var(--hover-bg); border-color: var(--hover-line); color: var(--hover-fg); }
  .header--on-dark .header__cta:hover { background: var(--inv-hover-bg); border-color: var(--inv-hover-line); color: var(--inv-hover-fg); }
  .header__cta { display: inline-flex; }
  .header__burger { display: none; }
}

/* ---------- menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 900; background: var(--dark-2); color: #fff;
  clip-path: circle(0 at calc(100% - 42px) 34px); visibility: hidden;
  transition: clip-path 0.8s var(--ease-io), visibility 0s 0.8s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 42px) 34px); visibility: visible; transition: clip-path 0.8s var(--ease-io), visibility 0s; }
.menu__inner { height: 100%; padding: calc(var(--header-h) + 24px) var(--gutter) 32px; display: flex; flex-direction: column; justify-content: space-between; overflow: auto; }
.menu__nav { display: flex; flex-direction: column; }
.menu__link { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line-dark); font-size: clamp(32px, 9vw, 64px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; opacity: 0; transform: translateY(20px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), color 0.3s; }
.menu__link small { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.5); }
.menu__link span { display: inline-block; transition: transform 0.5s var(--ease); }
.menu__link:hover { color: #fff; }
.menu__link:hover span { transform: translateX(12px); }
.menu__link[href$="/omniq/"]:hover { color: var(--coral); }
.menu__link[href$="/omniplay/"]:hover { color: var(--blue-light); }
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu.is-open .menu__link:nth-child(1) { transition-delay: 0.25s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: 0.3s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: 0.35s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: 0.4s; }
.menu.is-open .menu__link:nth-child(5) { transition-delay: 0.45s; }
.menu.is-open .menu__link:nth-child(6) { transition-delay: 0.5s; }
.menu__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.menu__foot a:hover { color: #fff; }
body.menu-open { overflow: hidden; }

/* ---------- sections share transparent bg; body colour morphs ---------- */
section, .footer { position: relative; }
.page > section { padding: clamp(80px, 12vw, 160px) 0; }

/* ---------- hero ---------- */
.hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 120px !important; overflow: hidden; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner { position: relative; z-index: 1; }
.hero__title { margin-top: 20px; font-size: clamp(44px, 10vw, 136px); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em; }
.hero__title em { color: var(--accent); }
.hero__lead { margin-top: 28px; max-width: 560px; font-size: clamp(16px, 1.7vw, 19px); line-height: 1.7; color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__scroll { position: absolute; left: var(--gutter); bottom: 32px; display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hero__scroll i { width: 40px; height: 1px; background: var(--text); opacity: 0.4; transform-origin: left; animation: scrollLine 1.8s var(--ease-io) infinite; }
@keyframes scrollLine { 0% { transform: scaleX(0); transform-origin: left; } 50% { transform: scaleX(1); transform-origin: left; } 51% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
.hero__brand { position: absolute; right: var(--gutter); bottom: 32px; display: none; gap: 22px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 768px) { .hero__brand { display: flex; } }

/* ---------- statement ---------- */
.statement__text { margin-top: 24px; font-size: clamp(26px, 4.6vw, 58px); font-weight: 700; line-height: 1.22; letter-spacing: -0.02em; max-width: 1100px; }
.statement__text em { color: var(--accent); }
.statement__text .w { display: inline-block; opacity: 0.18; transition: opacity 0.25s linear; }
.statement__text .w.is-on { opacity: 1; }
.stats { margin-top: clamp(48px, 8vw, 96px); display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; padding-top: 32px; border-top: 1px solid var(--line-dark); }
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat__num { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat__label { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- products ---------- */
.pgrid { display: grid; gap: 20px; }
.pcard {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line);
  min-height: 560px; transform-style: preserve-3d; will-change: transform;
  transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.pcard--coral { background: var(--coral-soft); }
.pcard--blue { background: var(--blue-soft); }
.pcard:hover { box-shadow: 0 30px 80px -30px rgba(21, 22, 27, 0.35); }
.pcard--coral:hover { background: var(--coral); color: #fff; border-color: var(--coral); }
.pcard--blue:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.pcard__media { position: relative; height: 300px; overflow: hidden; }
.pcard__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard:hover .pcard__img { transform: scale(1.06); }
.pcard__float { position: absolute; right: -8%; bottom: -8%; width: 54%; border-radius: 14px; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.5); transform: rotate(-6deg); transition: transform 0.8s var(--ease); }
.pcard:hover .pcard__float { transform: rotate(-2deg) translateY(-8px); }
.pcard__tv { position: absolute; left: 20px; bottom: 20px; padding: 8px 12px; border-radius: 999px; background: rgba(14, 15, 19, 0.8); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }
.pcard__body { padding: 28px 24px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard__tag { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(21, 22, 27, 0.08); transition: background 0.4s; }
.pcard:hover .pcard__tag { background: rgba(255, 255, 255, 0.2); }
.pcard__title { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; display: flex; align-items: baseline; gap: 12px; }
.pcard__ko { font-size: 15px; font-weight: 600; opacity: 0.6; letter-spacing: 0; }
.pcard__sub { font-size: 17px; font-weight: 700; }
.pcard__desc { color: var(--text-2); line-height: 1.65; transition: color 0.4s; }
/* Product cards keep their pastel fill, so their text stays ink whatever the page colour. */
.pcard { --text: var(--ink); --text-2: var(--ink-2); --muted: #8c8a84; --line: #e3e0d8; color: var(--text); }
.pcard:hover .pcard__desc { color: rgba(255, 255, 255, 0.85); }
.pcard__points { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pcard__points li { font-size: 12.5px; font-weight: 600; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(21, 22, 27, 0.15); transition: border-color 0.4s; }
.pcard:hover .pcard__points li { border-color: rgba(255, 255, 255, 0.4); }
.pcard__cta { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.phone { position: relative; width: 230px; aspect-ratio: 9 / 19.3; border-radius: 34px; background: #0b0b0e; padding: 8px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08); }
.phone__screen { width: 100%; height: 100%; border-radius: 27px; overflow: hidden; background: #000; }
.phone__img { width: 100%; height: 100%; object-fit: cover; }
.pcard__media .phone { position: absolute; left: 24px; top: 28px; transform: rotate(-4deg); transition: transform 0.8s var(--ease); }
.pcard:hover .pcard__media .phone { transform: rotate(0) translateY(-6px); }
@media (min-width: 900px) {
  .pgrid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pcard { min-height: 680px; }
  .pcard__media { height: 360px; }
  .pcard__body { padding: 34px 32px 34px; }
}

/* ---------- capabilities ---------- */
.caps__layout { display: grid; gap: 40px; }
.caps__stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--dark); }
.caps__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 0.7s var(--ease), transform 1.2s var(--ease); }
.caps__img.is-active { opacity: 1; transform: none; }
.caps__venn { position: absolute; right: 16px; top: 12px; width: 44%; max-width: 260px; }
.venn { fill: none; stroke-width: 1.5; mix-blend-mode: screen; }
.venn--1 { stroke: var(--coral); fill: rgba(255, 92, 57, 0.28); }
.venn--2 { stroke: var(--blue); fill: rgba(61, 90, 254, 0.28); }
.venn--3 { stroke: #fff; fill: rgba(255, 255, 255, 0.22); }
.caps__venn text { font: 700 13px var(--font); fill: #fff; letter-spacing: 0.04em; }
.caps__list { list-style: none; margin: 0; padding: 0; }
.cap { display: grid; grid-template-columns: 36px 1fr 40px; gap: 14px; align-items: start; padding: 22px 0; border-top: 1px solid var(--line); transition: padding-left 0.4s var(--ease); }
.caps__list li:last-child .cap { border-bottom: 1px solid var(--line); }
.cap__idx { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--muted); padding-top: 6px; }
.cap__title { display: block; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; transition: color 0.3s; }
.cap__desc { display: block; margin-top: 6px; color: var(--text-2); font-size: 15px; }
.cap__link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); transition: background 0.3s, border-color 0.3s, color 0.3s; }
.cap:hover .cap__title, .cap.is-active .cap__title { color: var(--accent); }
.cap:hover .cap__link, .cap.is-active .cap__link { background: var(--text); border-color: var(--text); color: var(--page-bg); }
.caps__more { margin-top: 40px; }
@media (min-width: 1000px) {
  .caps__layout { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .caps__visual { position: sticky; top: calc(var(--header-h) + 24px); }
  .cap:hover, .cap.is-active { padding-left: 8px; }
}

/* ---------- track record ---------- */
.track { padding-bottom: 0 !important; overflow: hidden; }
.track__viewport { width: 100%; overflow-x: auto; overflow-y: hidden; padding: 0 var(--gutter) 32px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.track__viewport::-webkit-scrollbar { display: none; }
.track__inner { display: flex; gap: 16px; width: max-content; }
.tcard { position: relative; flex: none; width: min(78vw, 560px); aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background: #1b1c22; scroll-snap-align: start; }
.tcard__img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: transform 1.2s var(--ease), opacity 0.5s; }
.tcard:hover .tcard__img { transform: scale(1.05); opacity: 1; }
.tcard figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; display: flex; justify-content: space-between; align-items: flex-end; background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent); color: #fff; }
.tcard__idx { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; opacity: 0.7; }
.tcard__name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.tcard--more { display: flex; align-items: center; justify-content: center; gap: 12px; background: var(--accent); color: var(--accent-contrast); font-size: 22px; font-weight: 800; width: min(60vw, 320px); }
@media (min-width: 900px) {
  .track__viewport { overflow: visible; padding-bottom: 0; }
  .track__inner { padding-right: var(--gutter); will-change: transform; }
  .tcard { width: 640px; }
  /* While pinned the section fills the viewport and the content sits centred. */
  .track { min-height: 100vh; padding-top: calc(var(--header-h) + 24px) !important; display: flex; flex-direction: column; justify-content: center; }
}

/* ---------- timeline ---------- */
.tl { position: relative; display: grid; gap: 28px; padding-left: 28px; }
.tl__line { display: none; }
.tl__item { position: relative; display: grid; gap: 4px; }
.tl__dot { position: absolute; left: -28px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--text); box-shadow: 0 0 0 4px var(--page-bg); }
.tl__item--accent .tl__dot { background: var(--accent); }
.tl__item--coral .tl__dot { background: var(--coral); }
.tl__item--blue .tl__dot { background: var(--blue); }
.tl::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 1.5px; background: var(--line); }
.tl__year { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--muted); }
.tl__title { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.tl__item--accent .tl__title { color: var(--accent); }
.tl__item--coral .tl__title { color: var(--coral); }
.tl__item--blue .tl__title { color: var(--blue); }
.tl__desc { font-size: 14px; color: var(--text-2); }
@media (min-width: 900px) {
  .tl { grid-template-columns: repeat(5, 1fr); gap: 24px; padding-left: 0; padding-top: 40px; }
  .tl--3 { grid-template-columns: repeat(3, 1fr); }
  .tl::before { display: none; }
  .tl__line { display: block; position: absolute; left: 0; right: 0; top: 7px; width: 100%; height: 2px; }
  .tl__line line { stroke: var(--line); stroke-width: 2; }
  .tl__line .tl__draw { stroke: var(--text); }
  .tl__dot { left: 0; top: -39px; }
}

/* ---------- CTA band ---------- */
.cta-band { padding: clamp(80px, 12vw, 160px) 0; }
.cta-band__inner { display: grid; gap: 32px; align-items: end; }
.cta-band__title { font-size: clamp(38px, 7.5vw, 96px); font-weight: 800; line-height: 0.98; letter-spacing: -0.035em; }
.cta-band__lead { margin-bottom: 22px; max-width: 420px; color: var(--text-2); font-size: 17px; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: 1.4fr 1fr; } .cta-band__side { justify-self: end; text-align: right; } .cta-band__lead { margin-left: auto; } }

/* ---------- product / page hero ---------- */
.phero { padding-top: calc(var(--header-h) + clamp(40px, 8vw, 96px)) !important; overflow: hidden; }
.phero__grid { display: grid; gap: 48px; align-items: center; }
.phero__title { margin-top: 18px; font-size: clamp(40px, 7.4vw, 96px); font-weight: 800; line-height: 1; letter-spacing: -0.035em; }
.phero__title em { color: var(--accent); }
.phero__lead { margin-top: 24px; max-width: 560px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.7; color: var(--text-2); }
.phero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.phero__note { margin-top: 14px; font-size: 13px; color: var(--muted); letter-spacing: 0.04em; }
.phero__media { position: relative; min-height: 460px; }
.phone--lg { width: min(62vw, 270px); margin: 0 auto; }
.phone--sm { position: absolute; right: 0; bottom: -20px; width: min(36vw, 160px); transform: rotate(8deg); }
.phero__mark { position: absolute; left: 4%; top: 6%; width: 86px; border-radius: 22px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.4); }
.phero__bg { position: absolute; inset: -10% 0; z-index: 0; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.phero--dark::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--dark-2) 10%, rgba(14, 15, 19, 0.55) 55%, rgba(14, 15, 19, 0.2)); z-index: 0; }
.phero--dark .container, .phero--dark .numbers { position: relative; z-index: 1; }
.phero__grid--stack { min-height: 70svh; align-content: end; }
.badge { display: inline-block; margin-bottom: 14px; padding: 7px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-contrast); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.numbers { margin: 48px var(--gutter) 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); }
.numbers li { padding: 24px 0; display: flex; flex-direction: column; gap: 4px; }
.numbers__n { font-size: clamp(40px, 8vw, 88px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--accent); }
.numbers__l { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); }
.facts { margin-top: 36px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.facts__k { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts__v { display: block; margin-top: 4px; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
@media (min-width: 900px) {
  .phero__grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .phero__media { min-height: 620px; }
  .phone--lg { width: 300px; }
  .phone--sm { width: 180px; right: 6%; }
  .phero__mark { width: 110px; }
  .facts { grid-template-columns: repeat(4, 1fr); }
  .numbers { margin-left: auto; margin-right: auto; max-width: var(--maxw); padding: 0 var(--gutter); margin-top: 72px; }
}

/* ---------- store buttons ---------- */
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 14px; background: var(--text); color: var(--page-bg); line-height: 1.1; transition: transform 0.4s var(--ease), background 0.3s; }
.store span { display: flex; flex-direction: column; font-size: 16px; font-weight: 800; }
.store small { font-size: 10px; font-weight: 500; opacity: 0.7; letter-spacing: 0.04em; }
.store:hover { background: var(--accent); }
.store__ico { width: 26px; height: 26px; background: currentColor; }
.store__ico--apple { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.4 12.7c0-2.5 2-3.6 2.1-3.7-1.2-1.7-3-1.9-3.6-2-1.5-.2-3 .9-3.8.9-.8 0-2-.9-3.3-.9-1.7 0-3.2 1-4.1 2.5-1.8 3.1-.5 7.6 1.3 10.1.9 1.2 1.9 2.6 3.2 2.5 1.3-.1 1.8-.8 3.3-.8s2 .8 3.3.8c1.4 0 2.3-1.2 3.1-2.5 1-1.4 1.4-2.8 1.4-2.9 0 0-2.8-1.1-2.9-4zM13.9 5.3c.7-.8 1.2-2 1-3.2-1 0-2.3.7-3 1.6-.7.7-1.2 1.9-1.1 3.1 1.2.1 2.3-.6 3.1-1.5z'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.4 12.7c0-2.5 2-3.6 2.1-3.7-1.2-1.7-3-1.9-3.6-2-1.5-.2-3 .9-3.8.9-.8 0-2-.9-3.3-.9-1.7 0-3.2 1-4.1 2.5-1.8 3.1-.5 7.6 1.3 10.1.9 1.2 1.9 2.6 3.2 2.5 1.3-.1 1.8-.8 3.3-.8s2 .8 3.3.8c1.4 0 2.3-1.2 3.1-2.5 1-1.4 1.4-2.8 1.4-2.9 0 0-2.8-1.1-2.9-4zM13.9 5.3c.7-.8 1.2-2 1-3.2-1 0-2.3.7-3 1.6-.7.7-1.2 1.9-1.1 3.1 1.2.1 2.3-.6 3.1-1.5z'/%3E%3C/svg%3E") center/contain no-repeat; }
.store__ico--play { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.6 2.3 13 12l-9.4 9.7c-.4-.2-.6-.7-.6-1.2V3.5c0-.5.2-1 .6-1.2zm11.5 7.6L5.4 4.3l7.9 7.9-7.9 7.9 9.7-5.6 2.6-1.5c.9-.5.9-1.6 0-2.1l-2.6-1.5v.5z'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.6 2.3 13 12l-9.4 9.7c-.4-.2-.6-.7-.6-1.2V3.5c0-.5.2-1 .6-1.2zm11.5 7.6L5.4 4.3l7.9 7.9-7.9 7.9 9.7-5.6 2.6-1.5c.9-.5.9-1.6 0-2.1l-2.6-1.5v.5z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- compare ---------- */
.compare { --pos: 50%; position: relative; max-width: 520px; margin: 0 auto; aspect-ratio: 3 / 4.4; border-radius: var(--radius); overflow: hidden; background: #000; user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__after { position: absolute; inset: 0; }
.compare__label { position: absolute; top: 16px; left: 16px; padding: 6px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.compare__label--after { left: auto; right: 16px; background: var(--accent); color: var(--accent-contrast); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); }
.compare__handle span { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.compare__handle span::before, .compare__handle span::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.compare__handle span::before { left: 14px; transform: translateY(-50%) rotate(-45deg); }
.compare__handle span::after { right: 14px; transform: translateY(-50%) rotate(135deg); }
.compare__handle:focus-visible { outline: 2px solid var(--accent); }

/* ---------- feature cards / steps / trust ---------- */
.fgrid { display: grid; gap: 16px; }
.fcard { padding: 28px 24px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); transition: transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.3s, background-color 0.5s; }
.fcard:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(21, 22, 27, 0.3); }
.fcard__idx { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; }
.fcard--coral .fcard__idx { color: var(--coral); }
.fcard--blue .fcard__idx { color: var(--blue); }
.fcard__title { margin-top: 16px; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.fcard__desc { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--text-2); }
/* White-filled cards go translucent whenever the page colour is not light, so
   their (now white) text keeps reading while a neighbouring section owns the page. */
html:not([data-bg-theme="light"]) :is(.fcard, .leader, .form, .doc) { background: rgba(255, 255, 255, 0.06); }
@media (min-width: 700px) { .fgrid--4, .fgrid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .fgrid--4 { grid-template-columns: repeat(4, 1fr); } .fgrid--3 { grid-template-columns: repeat(3, 1fr); } }
.sgrid { display: grid; gap: 28px; counter-reset: step; }
.step { padding-top: 22px; border-top: 2px solid var(--text); }
.step__num { display: block; font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.step__title { margin-top: 14px; font-size: 20px; font-weight: 800; }
.step__desc { margin-top: 8px; font-size: 15px; color: var(--text-2); line-height: 1.7; }
@media (min-width: 700px) { .sgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .sgrid { grid-template-columns: repeat(4, 1fr); } }
.trust { padding-top: 22px; border-top: 2px solid var(--text); }
.trust__title { font-size: 20px; font-weight: 800; }
.trust__desc { margin-top: 10px; font-size: 15px; color: var(--text-2); line-height: 1.7; }
.privacy__links { margin-top: 36px; font-size: 14px; color: var(--muted); }
.privacy__links a { text-decoration: underline; text-underline-offset: 3px; }
.privacy__links a:hover { color: var(--accent); }

/* ---------- tokens / games bands ---------- */
.tokens__grid, .games__grid { display: grid; gap: 40px; align-items: center; }
.tokens__list, .chips { display: flex; flex-direction: column; gap: 10px; }
.tokens__list li { padding: 18px 22px; border-radius: 16px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.25); font-weight: 700; font-size: 16px; }
.chips { flex-direction: row; flex-wrap: wrap; gap: 12px; }
.chip { display: flex; align-items: center; gap: 12px; padding: 18px 24px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 20px; font-weight: 800; }
/* The chip is always a white pill, so its index keeps the product colour instead of the live accent (white on blue pages). */
.chip span { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: var(--blue); }
html[data-accent="coral"] .chip span { color: var(--coral); }
@media (min-width: 900px) { .tokens__grid, .games__grid { grid-template-columns: 1.1fr 0.9fr; gap: 72px; } }

/* ---------- faq ---------- */
.faq__grid { display: grid; gap: 32px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 18px; font-weight: 700; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315161b' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform 0.4s var(--ease), background-color 0.3s; }
.faq__item[open] summary::after { transform: rotate(45deg); background-color: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.faq__item p { padding: 0 0 24px; max-width: 720px; color: var(--text-2); line-height: 1.75; }
@media (min-width: 1000px) { .faq__grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } .faq__grid .sec-head { margin-bottom: 0; } }

/* ---------- gallery row ---------- */
.gallery { padding-bottom: 0 !important; }
.gallery__row { display: flex; gap: 14px; overflow-x: auto; padding: 0 var(--gutter) 80px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery__row::-webkit-scrollbar { display: none; }
.gallery__item { flex: none; width: min(80vw, 520px); aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; scroll-snap-align: start; background: #1b1c22; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
@media (min-width: 900px) { .gallery__row { padding-bottom: 120px; } }

/* ---------- tech / moat lists ---------- */
.tech__list, .moat__list { border-top: 1px solid var(--line); }
.tech__row, .moat__list li { display: grid; grid-template-columns: 40px 1fr; gap: 8px 14px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.tech__idx, .moat__idx { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; color: var(--muted); }
.tech__row strong, .moat__list strong { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.tech__row > span:not(.tech__idx), .moat__list span:not(.moat__idx) { grid-column: 2; color: var(--text-2); }
.tech__tag, .moat__list em { grid-column: 2; justify-self: start; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.moat__list em { background: var(--accent-glow); color: var(--accent); }
.tech__note { margin-top: 20px; font-size: 13px; color: var(--muted); }
@media (min-width: 900px) {
  .tech__row, .moat__list li { grid-template-columns: 48px 1.1fr 1fr auto; }
  .tech__row > span:not(.tech__idx), .moat__list span:not(.moat__idx), .tech__tag, .moat__list em { grid-column: auto; }
}

/* ---------- studio: services, leaders, team, marquee ---------- */
.svc-list { display: grid; gap: 48px; }
.svc { display: grid; gap: 22px; align-items: center; }
.svc__media { border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--dark); }
.svc__media img { width: 100%; height: 112%; object-fit: cover; }
.svc__idx { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; color: var(--accent); }
.svc__title { margin-top: 12px; font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -0.02em; }
.svc__desc { margin-top: 12px; color: var(--text-2); line-height: 1.75; }
.svc__link { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 800; }
@media (min-width: 900px) {
  .svc { grid-template-columns: 1fr 1fr; gap: 56px; }
  .svc--flip .svc__media { order: 2; }
  .svc-list { gap: 96px; }
}
.lgrid { display: grid; gap: 16px; }
.leader { padding: 28px 24px; border-radius: 22px; background: var(--bg-2); border: 1px solid var(--line); transform-style: preserve-3d; transition: background-color 0.5s; }
.leader__avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #fff; letter-spacing: 0.02em; }
.leader__avatar--1 { background: linear-gradient(135deg, var(--coral), #ff8a6e); }
.leader__avatar--2 { background: linear-gradient(135deg, var(--blue), #7c8cff); }
.leader__avatar--3 { background: linear-gradient(135deg, #15161b, #55534e); }
.leader__role { display: inline-block; margin-top: 20px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; color: var(--accent); }
.leader__name { margin-top: 6px; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.leader__name small { font-size: 14px; font-weight: 600; color: var(--muted); }
.leader__bio { margin-top: 14px; display: grid; gap: 6px; font-size: 14px; color: var(--text-2); }
.leader__bio li { padding-left: 14px; position: relative; }
.leader__bio li::before { content: ""; position: absolute; left: 0; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
@media (min-width: 900px) { .lgrid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.team { margin-top: clamp(56px, 8vw, 96px); padding-top: 40px; border-top: 1px solid var(--line); }
.team__title { margin-top: 12px; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.team__list { margin-top: 28px; display: grid; gap: 16px; }
.team__list li { display: grid; gap: 4px; padding: 18px 20px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.team__list strong { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.team__list span { font-size: 15px; }
@media (min-width: 900px) { .team__list { grid-template-columns: repeat(4, 1fr); } }
.marquee { margin-top: 24px; overflow: hidden; mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 28s linear infinite; }
.marquee__item { font-size: clamp(28px, 5vw, 56px); font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; color: var(--text); opacity: 0.85; }
.marquee__item:nth-child(even) { color: var(--muted); -webkit-text-stroke: 1px var(--text); color: transparent; opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }
.programs { margin-top: clamp(48px, 7vw, 80px); display: grid; gap: 14px; }
.programs .eyebrow { grid-column: 1 / -1; }
.programs li { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); }
.programs strong { font-size: 17px; font-weight: 800; }
.programs span { font-size: 14px; color: var(--text-2); }

/* ---------- company documents ---------- */
.dgrid { display: grid; gap: 16px; }
.doc { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; border-radius: 20px; background: var(--bg-2); border: 1px solid var(--line); transition: transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.3s, background-color 0.5s; }
.doc:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(14, 15, 19, 0.1); border-color: transparent; }
.doc__kind { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.doc__title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.doc__desc { font-size: 15px; line-height: 1.7; color: var(--text-2); }
.doc__foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.doc__meta { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); }
.doc__dl { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 800; color: var(--accent); }
.doc__dl .btn__arrow { transform: rotate(90deg); }
.doc:hover .doc__dl .btn__arrow { transform: rotate(90deg) translateX(4px); }
.doc { cursor: pointer; }
.doc:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.doc__kindrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.doc__view { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; color: var(--muted); opacity: 0; transform: translateX(-6px); transition: opacity 0.3s, transform 0.45s var(--ease), color 0.3s; }
.doc:hover .doc__view, .doc:focus-visible .doc__view { opacity: 1; transform: none; color: var(--accent); }
.doc__dl:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 768px) { .dgrid { grid-template-columns: 1fr 1fr; gap: 20px; } .doc { padding: 34px 32px; } }

/* in-page PDF viewer */
.pdfview { position: fixed; inset: 0; z-index: 2000; background: rgba(14, 15, 19, 0.9); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s linear 0.3s; }
.pdfview.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s, visibility 0s; }
.pdfview__panel { width: min(1120px, 100%); height: min(92vh, 100%); display: flex; flex-direction: column; background: #2a2b31; border-radius: 20px; overflow: hidden; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5); transform: translateY(16px) scale(0.98); transition: transform 0.5s var(--ease); }
.pdfview.is-open .pdfview__panel { transform: none; }
.pdfview__bar { --text: #fff; --text-2: rgba(255, 255, 255, 0.72); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px 12px 22px; background: #15161b; color: #fff; }
.pdfview__title { min-width: 0; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdfview__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.pdfview__bar .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.pdfview__bar .btn--inverse:hover { background: transparent; color: #fff; border-color: #fff; }
.pdfview__close { position: relative; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.12); cursor: pointer; flex: none; transition: background 0.3s; }
.pdfview__close:hover { background: rgba(255, 255, 255, 0.24); }
.pdfview__close::before, .pdfview__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; background: #fff; transform: translate(-50%, -50%) rotate(45deg); }
.pdfview__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.pdfview__frame { flex: 1; width: 100%; border: 0; background: #3a3b42; }
@media (min-width: 900px) { .programs { grid-template-columns: 1fr 1fr; gap: 0 40px; } }

/* ---------- work grid ---------- */
.filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 32px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter { flex: none; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 700; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.filter:hover { border-color: var(--text); }
.filter.is-active { background: var(--text); color: var(--page-bg); border-color: var(--text); }
.wgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.witem { position: relative; border-radius: 16px; overflow: hidden; background: var(--dark); aspect-ratio: 335 / 216; transition: opacity 0.4s, transform 0.5s var(--ease); }
.witem--wide { grid-column: span 2; aspect-ratio: 16 / 8; }
.witem img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.witem:hover img { transform: scale(1.05); }
.witem figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; color: #fff; background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent); opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.witem:hover figcaption { opacity: 1; transform: none; }
.witem figcaption span { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.witem figcaption strong { font-size: 16px; font-weight: 800; }
.witem.is-hidden { display: none; }
.workgrid__note { margin-top: 28px; font-size: 13px; color: var(--muted); }
@media (min-width: 700px) { .wgrid { grid-template-columns: repeat(3, 1fr); gap: 16px; } .witem--wide { grid-column: span 2; } }
@media (min-width: 1100px) { .wgrid { grid-template-columns: repeat(4, 1fr); } }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(14, 15, 19, 0.92); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0s 0.35s; }
.lightbox.is-open { opacity: 1; visibility: visible; transition: opacity 0.35s, visibility 0s; }
.lightbox__img { max-width: min(1200px, 100%); max-height: 86vh; border-radius: 12px; transform: scale(0.96); transition: transform 0.5s var(--ease); }
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%; background: #fff; }
.lightbox__close::before, .lightbox__close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; background: var(--ink); transform: translate(-50%, -50%) rotate(45deg); }
.lightbox__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- contact ---------- */
.contact { padding-top: calc(var(--header-h) + clamp(40px, 8vw, 96px)) !important; }
.contact__grid { display: grid; gap: 48px; }
.info { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.info__title { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.info__addr { margin-top: 12px; font-size: 20px; font-weight: 700; line-height: 1.4; }
.info__addr small { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.info__map { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 800; color: var(--accent); }
.info__rows { margin: 24px 0 0; display: grid; gap: 10px; }
.info__rows div { display: grid; grid-template-columns: 80px 1fr; gap: 12px; font-size: 15px; }
.info__rows dt { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.info__rows dd { margin: 0; }
.info__rows a:hover { color: var(--accent); }
.form { padding: 28px 22px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); display: grid; gap: 20px; transition: background-color 0.5s; }
.form__row { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.field label i { color: var(--accent); font-style: normal; }
.field input, .field textarea, .field select { width: 100%; padding: 14px 0; border: 0; border-bottom: 1.5px solid var(--line); background: transparent; font: inherit; font-size: 16px; color: var(--text); border-radius: 0; outline: none; transition: border-color 0.3s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--text); }
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--coral); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 28px; }
.select::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text); border-bottom: 2px solid var(--text); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
/* Enhanced dropdown: site.js hides the native select (kept for the form value)
   and renders a button + listbox styled like the other fields. */
.select.is-enhanced::after { display: none; }
.select.is-enhanced select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.select__btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 4px 14px 0; border: 0; border-bottom: 1.5px solid var(--line); background: transparent; font: inherit; font-size: 16px; text-align: left; color: var(--text); cursor: pointer; transition: border-color 0.3s; }
.select__btn:focus-visible, .select.is-open .select__btn { border-color: var(--text); outline: none; }
.field.is-invalid .select__btn { border-color: var(--coral); }
.select__chev { flex: none; width: 10px; height: 10px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.35s var(--ease); }
.select.is-open .select__chev { transform: translateY(4px) rotate(225deg); }
.select__menu { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 30; margin: 0; padding: 6px; list-style: none; background: #fff; color: var(--ink); border: 1px solid #e3e0d8; border-radius: 16px; box-shadow: 0 24px 60px rgba(14, 15, 19, 0.18); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(0.98); transform-origin: top; transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.25s; }
.select.is-open .select__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.select__opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background 0.2s, color 0.2s; }
.select__opt::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #c9c6bd; transition: background 0.2s, border-color 0.2s, box-shadow 0.2s; }
.select__opt.is-active { background: rgba(21, 22, 27, 0.06); }
.select__opt.is-selected { font-weight: 800; }
.select__opt.is-selected::before { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 22, 27, 0.1); }
html[data-accent="coral"] .select__opt.is-selected::before { background: var(--coral); border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255, 92, 57, 0.18); }
html[data-accent="blue"] .select__opt.is-selected::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61, 90, 254, 0.18); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--text); flex: none; }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__msg { font-size: 14px; color: var(--text-2); }
.form__msg.is-success { color: #1a8a4a; font-weight: 700; }
.form__msg.is-error { color: var(--coral); font-weight: 700; }
.form.is-sent .btn { pointer-events: none; opacity: 0.6; }
@media (min-width: 700px) { .form__row { grid-template-columns: 1fr 1fr; } .form { padding: 40px 36px; } }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; } }

/* ---------- footer ---------- */
.footer { color: #fff; background: var(--dark-2); padding: clamp(56px, 8vw, 96px) 0 32px; --text: #fff; --text-2: rgba(255, 255, 255, 0.72); }
.footer__inner { display: grid; gap: 40px; }
.footer__brand img { width: 150px; }
.footer__tagline { margin-top: 20px; font-size: clamp(22px, 3vw, 30px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.footer__cols h4 { margin: 0 0 12px; font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.footer__cols a { display: block; padding: 5px 0; font-size: 15px; color: rgba(255, 255, 255, 0.85); transition: color 0.3s; }
.footer__cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.footer__cols a[href$="/omniq/"]:hover { color: var(--coral); }
.footer__cols a[href$="/omniplay/"]:hover { color: var(--blue-light); }
.footer__info { grid-column: 1 / -1; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: 13px; color: rgba(255, 255, 255, 0.6); display: grid; gap: 6px; }
.footer__info a:hover { color: #fff; }
.footer__copy { margin-top: 10px; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 1.2fr 1.5fr; } }

/* ---------- utilities ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
