/* Self-hosted Barlow (SIL Open Font License) - no requests to Google */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: italic; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-semi-condensed-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: italic; font-weight: 800; font-display: swap; src: url("/assets/fonts/barlow-semi-condensed-latin-800-italic.woff2") format("woff2"); }

/* ================================================================
   Tokens — sampled from the TiRST brand artwork
   ================================================================ */
:root {
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;

  --brand-purple: #6d4aff;
  --brand-purple-600: #5536e8;
  --brand-purple-700: #4526d2;
  --brand-purple-300: #8b74ff;
  --brand-red: #ff4b3e;
  --brand-ink: #0f0c1d;

  --header-h: 76px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --chamfer: 10px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root,
[data-theme="dark"],
.scope-dark {
  --bg: #0f0c1d;
  --bg-2: #141026;
  --surface: #17132a;
  --surface-2: #1e1838;
  --line: #2a2350;
  --line-strong: #3a3170;
  --text: #ffffff;
  --text-2: #b9b2d6;
  --text-3: #7c7694;
  --accent: var(--brand-purple);
  --accent-hover: #7d5dff;
  --accent-text: #9d8aff;
  --red: var(--brand-red);
  --on-accent: #ffffff;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  --art-filter: none;
  --art-opacity: 1;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f6f4fd;
  --bg-2: #eeeafb;
  --surface: #ffffff;
  --surface-2: #f1edfd;
  --line: #ddd6f5;
  --line-strong: #c6bcef;
  --text: #120e24;
  --text-2: #4d4670;
  --text-3: #6f6893;
  --accent: var(--brand-purple-600);
  --accent-hover: var(--brand-purple-700);
  --accent-text: var(--brand-purple-700);
  --red: #e2382b;
  --on-accent: #ffffff;
  --shadow: 0 30px 60px -34px rgba(40, 24, 110, .35);
  --art-filter: invert(1) hue-rotate(180deg) saturate(.8);
  --art-opacity: .55;
  color-scheme: light;
}
[data-theme="light"] .scope-dark { color-scheme: dark; }

/* ================================================================
   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; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; margin: 0; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand-purple-300); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.15em; height: 1.15em; flex: none; }
.lc { text-transform: none; }

/* Chequered strip — echoes the flag under the TiRST wordmark */
.checker {
  display: inline-block; flex: none;
  width: 56px; height: 8px;
  background: conic-gradient(currentColor 25%, transparent 0 50%, currentColor 0 75%, transparent 0) 0 0 / 8px 8px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-body); font-weight: 600;
  font-size: 13px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--text-2);
}
.eyebrow .checker { color: var(--text); }

.section { position: relative; padding-block: clamp(80px, 11vw, 140px); scroll-margin-top: calc(var(--header-h) - 1px); }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__head.is-center { margin-inline: auto; text-align: center; }
.section__head.is-center .eyebrow { justify-content: center; }
.section__title {
  margin-top: 18px;
  font-size: clamp(36px, 5.4vw, 64px);
  font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .005em;
}
.section__title em { font-style: inherit; color: var(--red); }
.section__lede { margin-top: 20px; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); }

/* ================================================================
   Buttons
   ================================================================ */
.btn {
  --btn-bg: var(--accent); --btn-fg: var(--on-accent);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px;
  border: 0; cursor: pointer; text-decoration: none;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { --btn-bg: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid currentColor; outline-offset: -6px; }
.btn--lg { min-height: 60px; padding: 16px 34px; font-size: 16px; --chamfer: 14px; }
.btn--ghost { --btn-bg: rgba(255, 255, 255, .08); --btn-fg: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .14); }
[data-theme="light"] .btn--ghost:not(.scope-dark *) { --btn-bg: rgba(69, 38, 210, .06); }
[data-theme="light"] .btn--ghost:not(.scope-dark *):hover { --btn-bg: rgba(69, 38, 210, .12); }
.btn .icon { width: 20px; height: 20px; }

/* ================================================================
   Header
   ================================================================ */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  color: var(--text);
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex: none; }
.brand__icon { width: 44px; height: 44px; }
.brand__wordmark { height: 26px; width: auto; }
.brand:focus-visible { outline-offset: 6px; }

.nav { display: flex; align-items: center; flex: 1; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; text-decoration: none;
  font-weight: 600; font-size: 14px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-2);
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="true"] { color: var(--text); }
.nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav__link .icon { width: 18px; height: 18px; }
.nav__link.is-cta {
  margin-left: 8px; color: var(--on-accent); background: var(--accent);
  padding-inline: 20px;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.nav__link.is-cta:hover { background: var(--accent-hover); }
.nav__link.is-cta::after { display: none; }
.nav__link.is-cta:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }

.header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 10px; background: transparent; color: var(--text-2); cursor: pointer;
  transition: background-color .2s, color .2s;
}
.icon-btn:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.icon-btn .icon { width: 20px; height: 20px; }
[data-theme="dark"] .icon--moon, [data-theme="light"] .icon--sun { display: none; }

.nav-toggle { display: none; }
.nav-toggle__bars { position: relative; width: 22px; height: 14px; }
.nav-toggle__bars span {
  position: absolute; left: 0; right: 0; height: 2px; background: currentColor;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 6px; }
.nav-toggle__bars span:nth-child(3) { top: 12px; }
.nav-open .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1020px) {
  :root { --header-h: 68px; }
  .brand__icon { width: 40px; height: 40px; }
  .brand__wordmark { height: 22px; }
  .nav-toggle { display: inline-grid; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    display: block; padding: 12px var(--gutter) 28px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-open .site-header { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { width: 100%; padding: 16px 4px; font-size: 15px; border-bottom: 1px solid var(--line); }
  .nav__link::after { left: 4px; right: auto; width: 32px; bottom: -1px; }
  .nav__link.is-cta { margin: 18px 0 0; justify-content: center; padding: 16px; border: 0; }
}

/* ================================================================
   Hero (always dark — it sits on video)
   ================================================================ */
.hero {
  position: relative; isolation: isolate;
  min-height: max(640px, 100svh);
  display: flex; align-items: center;
  padding-block: calc(var(--header-h) + 48px) 96px;
  background: var(--bg); color: var(--text);
  overflow: hidden; scroll-margin-top: 0;
}
.hero__media { position: absolute; inset: 0; z-index: -1; container-type: size; }
.hero__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 70%; }
.hero__video {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.hero__video.is-ready { opacity: 1; }
.hero__video iframe {
  position: absolute; top: 50%; left: 50%; border: 0;
  width: max(100cqw, 177.78cqh); height: max(56.25cqw, 100cqh);
  transform: translate(-50%, -50%) scale(1.12);
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 12, 29, .94) 0%, rgba(15, 12, 29, .78) 42%, rgba(15, 12, 29, .35) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(15, 12, 29, 0) 28%);
}
[data-theme="light"] .hero__scrim {
  background:
    linear-gradient(90deg, rgba(15, 12, 29, .94) 0%, rgba(15, 12, 29, .78) 42%, rgba(15, 12, 29, .35) 100%),
    linear-gradient(0deg, rgba(15, 12, 29, .9) 0%, rgba(15, 12, 29, 0) 28%);
}
.hero__content { max-width: 760px; }
.hero__title {
  margin-top: 26px;
  font-size: clamp(46px, 8vw, 104px);
  font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: -.005em; line-height: .95;
}
.hero__title .accent { color: var(--brand-red); }
.hero__lede { margin-top: 26px; max-width: 600px; font-size: clamp(18px, 1.8vw, 21px); color: var(--text-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px;
  font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3);
}
.hero__meta span + span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 22px 2px 0; background: var(--brand-red); vertical-align: middle; }
.hero__pause {
  position: absolute; right: var(--gutter); bottom: 32px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: rgba(15, 12, 29, .6); color: #fff; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
  font: 600 12px/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero__pause[hidden] { display: none; }
.hero__pause .pp { width: 10px; height: 10px; display: inline-block; border-inline: 3px solid currentColor; }
.hero__pause[aria-pressed="true"] .pp { border: 0; border-left: 10px solid currentColor; border-block: 5px solid transparent; width: 0; height: 0; }

/* ================================================================
   About
   ================================================================ */
.about { background: var(--bg); }
.about-intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.about-intro .section__head { margin-bottom: 0; }
.about-intro__body p + p { margin-top: 16px; }
.about-intro__body { color: var(--text-2); font-size: 18px; }
.audience { display: grid; gap: 14px; }
.audience__card {
  position: relative; padding: 26px 28px 26px 32px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.audience__card::before {
  content: ""; position: absolute; left: -1px; top: 22px; bottom: 22px; width: 3px; background: var(--accent);
}
.audience__card.is-red::before { background: var(--red); }
.audience__card h3 {
  font-size: 15px; font-family: var(--font-body); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--text);
}
.audience__card p { margin-top: 10px; color: var(--text-2); font-size: 16px; }

.features { display: grid; gap: clamp(72px, 10vw, 128px); margin-top: clamp(96px, 12vw, 150px); }
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature:nth-child(even) .feature__text { order: 2; }
.feature__num {
  font-family: var(--font-display); font-weight: 800; font-style: italic; font-size: 20px;
  color: var(--accent-text); letter-spacing: .06em;
}
.feature__num::after { content: ""; display: inline-block; width: 40px; height: 2px; margin: 0 0 5px 14px; background: currentColor; vertical-align: middle; opacity: .6; }
.feature__kicker {
  display: inline-block; margin-left: 12px;
  font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--text-3);
}
.feature__title {
  margin-top: 18px; font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800; font-style: italic; text-transform: uppercase;
}
.feature__body { margin-top: 18px; color: var(--text-2); }
.feature__body + .feature__body { margin-top: 14px; }
.video__thumb { transition: transform .5s var(--ease); }
.video__play:hover .video__thumb { transform: scale(1.03); }

/* Click-to-enlarge still image */
.zoom { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: zoom-in; color: #fff; }
.zoom img { transition: transform .5s var(--ease); }
.zoom:hover img { transform: scale(1.03); }
.zoom:focus-visible { outline: 2px solid #fff; outline-offset: -6px; }
.zoom__hint {
  position: absolute; right: 14px; bottom: 14px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: rgba(15, 12, 29, .78); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .2s;
}
.zoom:hover .zoom__hint { background: var(--brand-purple); }
.zoom__hint .icon { width: 16px; height: 16px; }

/* Lightbox */
.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: rgba(8, 6, 16, .94); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .25s var(--ease); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__img {
  max-width: calc(100vw - 32px); max-height: calc(100vh - 96px); width: auto; height: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6); cursor: zoom-out;
}
.lightbox__close {
  position: fixed; top: 16px; right: 16px;
  display: grid; place-items: center; width: 48px; height: 48px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .1); color: #fff; border-radius: 10px;
}
.lightbox__close:hover { background: var(--brand-red); }
.lightbox__close .icon { width: 22px; height: 22px; }
.lightbox__caption { position: fixed; left: 16px; right: 80px; bottom: 20px; font-size: 14px; color: #b9b2d6; text-align: center; }
@media (prefers-reduced-motion: reduce) { .lightbox[open] { animation: none; } }
.feature__points { margin-top: 22px; display: grid; gap: 10px; }
.feature__points li { position: relative; padding-left: 26px; font-weight: 500; }
.feature__points li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 8px;
  background: conic-gradient(var(--red) 25%, transparent 0 50%, var(--red) 0 75%, transparent 0) 0 0 / 8px 8px;
}

/* Video "window" */
.window {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.window::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 60%, transparent), transparent 40%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; border: 1px solid transparent;
}
.window__bar {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 16px;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3);
}
.window__bar .checker { width: 24px; height: 8px; color: var(--text-3); }
.window__bar .dots { margin-left: auto; display: flex; gap: 6px; }
.window__bar .dots i { width: 9px; height: 9px; border-radius: 2px; background: var(--line-strong); }
.window__bar .dots i:last-child { background: var(--red); }
.video { position: relative; aspect-ratio: 16 / 9; background: #0b0916; }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__play { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: pointer; color: #fff; }
.video__play::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 12, 29, .55), rgba(15, 12, 29, .05));
  transition: opacity .25s;
}
.video__play:hover::after { opacity: .6; }
.video__icon {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 76px; height: 76px; margin: -38px 0 0 -38px;
  display: grid; place-items: center; background: var(--brand-purple);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform .25s var(--ease), background-color .25s;
}
.video__icon::before { content: ""; margin-left: 5px; border-left: 20px solid #fff; border-block: 12px solid transparent; }
.video__play:hover .video__icon { transform: scale(1.06); background: var(--brand-red); }
.video__play:focus-visible { outline-offset: -6px; outline-color: #fff; }
.video__soon {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  padding: 6px 12px; background: rgba(15, 12, 29, .75); color: #b9b2d6;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}

/* ================================================================
   Screens carousel
   ================================================================ */
.screens { background: var(--bg-2); overflow: hidden; }
.screens::before, .download::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("/assets/img/bg-2560.webp") center / cover no-repeat;
  filter: var(--art-filter); opacity: calc(var(--art-opacity) * .5);
}
.screens > *, .download > * { position: relative; }
.carousel { position: relative; }
.carousel__track {
  --slide-w: min(84%, 1040px);
  display: flex; gap: clamp(14px, 2vw, 28px);
  padding-inline: calc((100% - var(--slide-w)) / 2); padding-block: 8px 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: -3px; }
.carousel__slide { flex: 0 0 var(--slide-w); scroll-snap-align: center; scroll-snap-stop: always; }
.shot {
  margin: 0; transition: opacity .45s var(--ease), transform .45s var(--ease);
  opacity: .4; transform: scale(.94);
}
.carousel__slide.is-active .shot { opacity: 1; transform: none; }
.shot__frame { padding: 0; }
.shot__frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { display: flex; gap: 18px; align-items: baseline; margin-top: 20px; padding-inline: 4px; }
.shot__num { font-family: var(--font-display); font-style: italic; font-weight: 800; font-size: 22px; color: var(--red); }
.shot__title { font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; }
.shot__text { display: block; color: var(--text-2); font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 400; margin-top: 2px; }

.carousel__controls {
  display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 18px;
}
.carousel__btn {
  display: grid; place-items: center; width: 52px; height: 52px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-strong);
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: background-color .2s, color .2s;
}
.carousel__btn:hover { background: var(--accent); color: var(--on-accent); }
.carousel__btn:focus-visible { outline: 2px solid currentColor; outline-offset: -6px; }
.carousel__btn .icon { width: 20px; height: 20px; }
.carousel__btn--prev .icon { transform: rotate(180deg); }
.carousel__dots { display: flex; gap: 8px; }
.carousel__dot {
  width: 28px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative;
}
.carousel__dot::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px;
  background: var(--line-strong); transition: background-color .25s;
}
.carousel__dot[aria-current="true"]::before { background: var(--red); }
.carousel__dot:hover::before { background: var(--text-3); }

/* ================================================================
   Download
   ================================================================ */
.download { background: var(--bg); overflow: hidden; }
.download::before { opacity: calc(var(--art-opacity) * .35); transform: scaleX(-1); }
.download__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.download__shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.download__panel .section__head { margin-bottom: 32px; }
.release {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 32px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden;
}
.release > div { padding: 20px 22px; border-color: var(--line); border-style: solid; border-width: 0; }
.release > div:nth-child(odd) { border-right-width: 1px; }
.release > div:nth-child(-n+2) { border-bottom-width: 1px; }
.release dt { font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); }
.release dd { margin: 6px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.2; }
.release dd.is-version { color: var(--accent-text); font-style: italic; }
.download__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.download__note { margin-top: 22px; font-size: 14px; color: var(--text-3); }
.download__note a { color: var(--text-2); text-underline-offset: 3px; }
.download__note a:hover { color: var(--text); }
.hash { margin-top: 10px; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text-3); word-break: break-all; }
.hash[hidden] { display: none; }

/* ================================================================
   Footer
   ================================================================ */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); }
.footer__top { display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; flex-wrap: wrap; padding-block: 56px 44px; }
.footer__tagline { margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--text-2); display: flex; align-items: center; gap: 12px; }
.footer__tagline .checker { width: 40px; color: var(--text); }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 30px; justify-content: flex-end; }
.footer__links a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; text-decoration: none;
  font-size: 14px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--text-2);
}
.footer__links a:hover { color: var(--text); }
.footer__links .icon { width: 16px; height: 16px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px;
  padding-block: 24px 32px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-3);
}

/* ================================================================
   Reveal on scroll
   ================================================================ */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .shot { transition: none; }
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 900px) {
  .about-intro, .feature, .download__grid { grid-template-columns: 1fr; }
  .feature:nth-child(even) .feature__text { order: 0; }
  .feature__media { order: 2; }
  .carousel__track { --slide-w: 90%; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand__wordmark { height: 20px; }
  .brand__icon { width: 36px; height: 36px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__meta span + span::before { margin-right: 14px; }
  .hero__meta { gap: 8px 14px; }
  .eyebrow { letter-spacing: .24em; font-size: 12px; gap: 10px; }
  .eyebrow .checker { width: 40px; }
  .release dd { font-size: 20px; }
  .release > div { padding: 16px; }
  .download__actions .btn { flex: 1 1 100%; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__links { justify-content: flex-start; gap: 4px 22px; }
  .carousel__track { --slide-w: 92%; }
  .shot figcaption { gap: 12px; }
  .carousel__controls { gap: 12px; }
  .carousel__dots { gap: 4px; }
  .carousel__dot { width: 16px; }
  .carousel__btn { width: 44px; height: 44px; }
}

/* ================================================================
   Footer policies
   ================================================================ */
.footer__bottom > div { display: grid; gap: 6px; max-width: 760px; }
.footer__legal { opacity: .85; }
.footer__policies { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: flex-start; }
.footer__policies a, .linklike {
  padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--text-2);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong);
}
.footer__policies a:hover, .linklike:hover { color: var(--text); text-decoration-color: currentColor; }

/* ================================================================
   Cookie banner
   ================================================================ */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding-block: 18px calc(18px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, .45);
  animation: cookie-in .35s var(--ease);
}
.cookie[hidden] { display: none; }
@keyframes cookie-in { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cookie { animation: none; } }
.cookie__inner { display: flex; align-items: center; gap: 18px 36px; }
.cookie__copy { flex: 1; }
.cookie__title {
  font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--text);
}
.cookie__copy p { margin-top: 6px; font-size: 15px; color: var(--text-2); }
.cookie__copy a { color: var(--text); text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: 10px; flex: none; }
body.has-cookie-banner { padding-bottom: 140px; }
@media (max-width: 720px) {
  .cookie__inner { flex-direction: column; align-items: stretch; }
  .cookie__actions .btn { flex: 1; }
  body.has-cookie-banner { padding-bottom: 260px; }
}

/* Consent prompt inside a feature video */
.video__consent {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-content: center; gap: 16px; padding: 24px; text-align: center;
  background: rgba(15, 12, 29, .92); color: #fff;
}
.video__consent p { max-width: 420px; margin-inline: auto; font-size: 15px; color: #d6d0f0; }
.video__consent-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.video__consent .btn { min-height: 42px; padding: 8px 18px; font-size: 13px; }
.video__consent .btn--ghost { --btn-fg: #fff; }

/* ================================================================
   Testimonials
   ================================================================ */
.testimonials { background: var(--bg); }
.rating-summary { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.stars, .testimonial__stars { display: inline-flex; gap: 2px; }
.star { color: var(--line-strong); display: inline-flex; }
.star.is-on { color: var(--red); }
.star .icon { width: 20px; height: 20px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 380px)); justify-content: center; gap: 20px; }
.testimonial figure {
  position: relative; height: 100%; margin: 0; padding: 28px 28px 24px;
  display: flex; flex-direction: column; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.testimonial figure::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 3px; background: var(--accent);
}
.testimonial__quote { margin: 0; flex: 1; color: var(--text); font-size: 17px; }
.testimonial__quote p + p { margin-top: 12px; }
.testimonial__who { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.testimonial__name { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; }
.testimonial__links { display: flex; gap: 4px; }
.testimonial__links a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--text-2);
  transition: color .2s, background-color .2s;
}
.testimonial__links a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 8%, transparent); }
.testimonial__links .icon { width: 20px; height: 20px; }
.testimonials__cta { margin-top: 40px; text-align: center; }

/* ================================================================
   Sub-pages (legal pages, testimonial form)
   ================================================================ */
.subpage { padding-block: calc(var(--header-h) + clamp(48px, 7vw, 88px)) clamp(72px, 9vw, 120px); }
.subpage__narrow { max-width: 820px; }
.subpage__meta { margin-top: 14px; font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); }
.prose { margin-top: 40px; color: var(--text-2); font-size: 17px; }
.prose > * + * { margin-top: 16px; }
.prose h2 { margin-top: 44px; font-size: clamp(24px, 3vw, 30px); font-weight: 800; font-style: italic; text-transform: uppercase; color: var(--text); }
.prose h3 { margin-top: 28px; font-size: 20px; font-weight: 700; color: var(--text); }
.prose h4 { margin-top: 22px; font-size: 17px; font-family: var(--font-body); font-weight: 700; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--red); }
.prose a { color: var(--accent-text); text-underline-offset: 3px; }
.prose strong, .prose b { color: var(--text); }
.prose blockquote { margin: 16px 0; padding-left: 18px; border-left: 3px solid var(--accent); }
.prose .ql-align-center { text-align: center; }
.prose .ql-align-right { text-align: right; }
.prose .ql-align-justify { text-align: justify; }
.prose .ql-indent-1 { padding-left: 2em; } .prose .ql-indent-2 { padding-left: 4em; } .prose .ql-indent-3 { padding-left: 6em; }

/* Forms */
.form { margin-top: 40px; display: grid; gap: 26px; }
.field { display: grid; gap: 8px; }
.field__label { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--text); }
.field__label .opt { margin-left: 8px; font-weight: 600; letter-spacing: .1em; color: var(--text-3); text-transform: none; }
.field__hint { font-size: 14px; color: var(--text-3); }
.field__error { font-size: 14px; font-weight: 600; color: var(--red); }
.input, .textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 180px; resize: vertical; line-height: 1.55; }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.is-invalid .input, .is-invalid .textarea { border-color: var(--red); }
.counter { font-size: 13px; color: var(--text-3); text-align: right; }

/* Star rating input: radios ordered 5..1 so the hover/checked fill works with ~ */
.rating-input { border: 0; padding: 0; margin: 0; }
.rating-input__stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { cursor: pointer; color: var(--line-strong); padding: 2px; display: inline-flex; transition: color .15s, transform .15s; }
.rating-input label .icon { width: 36px; height: 36px; }
.rating-input input:checked ~ label,
.rating-input label:hover, .rating-input label:hover ~ label { color: var(--red); }
.rating-input input:focus-visible + label { outline: 2px solid var(--brand-purple-300); outline-offset: 2px; border-radius: 6px; }
.rating-input__value { margin-left: 12px; font-size: 14px; color: var(--text-3); align-self: center; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice {
  margin-top: 32px; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text-2);
}
.notice strong { color: var(--text); }
.notice--error { border-color: color-mix(in srgb, var(--red) 60%, transparent); }
.notice--ok { border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.notice ul { margin-top: 8px; padding-left: 1.2em; list-style: square; }
