@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300..600&family=Geist+Mono:wght@400..500&family=Instrument+Serif:ital@1&family=Space+Grotesk:wght@400..600&display=swap");

/*
  Refract — a Doko Originals design pack.
  Copyright (c) 2026 Elido Technology. See LICENSE.md.
  Fonts come from Google Fonts under their open licenses (SIL OFL or Apache 2.0).
*/

/* ---------------------------------------------------------------------------
   Doko Originals — shared structure.
   Layout mechanics, accessibility, and phone behaviour only. Every colour, font,
   radius, border, shadow, and component look comes from the pack layer below,
   which reads these tokens: --color-*, --font-*, --container, --gutter,
   --nav-height, --section-space, --grid-gap.
   --------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-surface);
  color: var(--color-ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video, canvas, picture { display: block; max-width: 100%; }
img, video { height: auto; object-fit: cover; }
input, button, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, figcaption { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
:where(h1, h2, h3, h4) { text-wrap: balance; overflow-wrap: break-word; }
:where(p, li, figcaption, dd) { text-wrap: pretty; }
:where(ul, ol)[role="list"] { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: from-font; }
:focus-visible { outline: 2px solid var(--color-focus, var(--color-accent)); outline-offset: 3px; }
::selection { background: var(--color-accent); color: var(--color-on-accent); }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -120px; z-index: 200;
  padding: 10px 16px; background: var(--color-ink); color: var(--color-surface); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Layout */
.container { width: min(100% - 2 * var(--gutter, 24px), var(--container, 1200px)); margin-inline: auto; }
.stack { display: grid; gap: var(--stack-gap, 16px); align-content: start; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, 12px); }
.grid { display: grid; gap: var(--grid-gap, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split > *, .grid > * { min-width: 0; }
.section { position: relative; padding-block: var(--section-space, clamp(64px, 9vw, 128px)); }

/* Anchored sections land below the sticky nav. */
[id] { scroll-margin-top: calc(var(--nav-height, 72px) + 16px); }

/* Nav: links on wide screens, a menu on phones (no script needed) */
.nav { position: sticky; top: 0; z-index: 60; }
/* Laid over a full-bleed hero: transparent, and it scrolls away with the page. */
.nav--overlay { position: absolute; inset: 0 0 auto; background: transparent; }
.nav__inner {
  width: min(100% - 2 * var(--gutter, 24px), var(--container, 1200px));
  margin-inline: auto;
  min-height: var(--nav-height, 72px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav__brand { text-decoration: none; flex-shrink: 0; }
.nav__links { display: flex; align-items: center; gap: var(--nav-gap, 28px); list-style: none; margin: 0; padding: 0; }
.nav__links a { text-decoration: none; }
.nav__end { display: flex; align-items: center; gap: 12px; }
.nav__menu { display: none; position: relative; }
.nav__toggle { list-style: none; cursor: pointer; user-select: none; }
.nav__toggle::-webkit-details-marker { display: none; }
.nav__drawer {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 70;
  min-width: min(260px, calc(100vw - 32px));
  display: grid; gap: 2px; padding: 10px;
}
.nav__drawer a { display: block; padding: 12px 14px; text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding-inline: 20px;
  border: 1px solid transparent;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Hero */
.hero { position: relative; isolation: isolate; }
.hero__inner { position: relative; z-index: 1; width: min(100% - 2 * var(--gutter, 24px), var(--container, 1200px)); margin-inline: auto; }
.hero__copy { display: grid; align-content: center; min-width: 0; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero__media { position: relative; overflow: hidden; min-width: 0; }
.hero__media > img, .hero__media > video, .hero__media > .ph { width: 100%; height: 100%; }

/* Panels */
.card { position: relative; display: grid; align-content: start; gap: 12px; min-width: 0; }
.card__media { position: relative; overflow: hidden; }
.card__media > img, .card__media > .ph { width: 100%; height: 100%; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--grid-gap, 24px); }
.stat { display: grid; gap: 6px; align-content: start; }
.quote { display: grid; gap: 16px; }
.quote blockquote { margin: 0; }
.quote cite { font-style: normal; }

/* Questions */
.faq { display: grid; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }

/* Forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; min-width: 0; }
.input, .textarea, .select { width: 100%; min-height: 48px; padding: 12px 14px; }
.textarea { min-height: 140px; resize: vertical; }

/* Footer */
.footer__cols { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__cols a { text-decoration: none; }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* App shell: sidebar beside a main column with its own top bar. Phones put the sidebar on top. */
.shell { display: grid; grid-template-columns: var(--sidebar-width, 248px) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: grid; grid-template-rows: auto 1fr auto; gap: 20px; padding: 18px 14px;
}
.sidebar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.sidebar__nav { display: grid; align-content: start; gap: 2px; }
.sidebar__nav a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding-inline: 10px; text-decoration: none; white-space: nowrap; }
.sidebar__nav svg { width: 18px; height: 18px; flex-shrink: 0; }
.shell__main { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--shell-gap, 24px); padding: 0 var(--shell-pad, clamp(16px, 2.4vw, 32px)) var(--shell-pad, 32px); }
.nav--app { z-index: 30; }
.nav--app .nav__inner { width: 100%; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--grid-gap, 16px); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th { text-align: left; white-space: nowrap; }

/* A photo that fills its positioned box edge to edge: full-bleed heroes, bands, and cards. */
.media-cover { position: absolute; inset: 0; overflow: hidden; }
.media-cover > img, .media-cover > video, .media-cover > .ph { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; }

/* A sideways strip of cards that snaps into place; it runs edge to edge on phones. */
.scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--scroller-item, min(80%, 340px));
  gap: var(--grid-gap, 24px); overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.scroller > * { position: relative; scroll-snap-align: start; min-width: 0; }
.scroller::-webkit-scrollbar { display: none; }

/* A row that scrolls sideways forever. Put the items twice inside .marquee__track. */
.marquee { overflow: hidden; }
.marquee__track {
  display: flex; width: max-content; gap: var(--marquee-gap, 48px); padding-right: var(--marquee-gap, 48px);
  animation: cx-marquee var(--marquee-speed, 40s) linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes cx-marquee { to { transform: translateX(-50%); } }

/* Holds inline SVG gradients, patterns, and filters that other SVGs on the page reference. */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Photo slot in the preview scaffold. A build puts a FindImage <img> here instead. */
.ph {
  position: relative; display: block; width: 100%; height: 100%; min-height: 160px; overflow: hidden;
  background: var(--ph-bg, linear-gradient(140deg, var(--color-inset), color-mix(in srgb, var(--color-inset) 62%, var(--color-ink))));
}
.ph::after {
  content: attr(aria-label);
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  font: 500 11px/1.35 var(--font-label, var(--font-body));
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ph-ink, color-mix(in srgb, var(--color-ink) 70%, transparent));
}
/* Small slots (avatars, portraits in circles, polaroids): no minimum height and no caption. */
.ph--bare { min-height: 0; }
.ph--bare::after { content: none; }
/* A hidden radio or checkbox inside its label stays inside that label's box. */
label:has(> .sr-only) { position: relative; }

@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__menu { display: block; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: relative; height: auto; overflow: visible; grid-template-rows: none; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 16px; }
  .sidebar__nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; }
  .sidebar .sidebar__extra { display: none; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4, .footer__cols { grid-template-columns: 1fr; }
  .scroller { margin-inline: calc(-1 * var(--gutter, 24px)); padding-inline: var(--gutter, 24px); scroll-padding-inline: var(--gutter, 24px); }
  /* .table--stack turns each row into a card on phones; give every td a data-label. */
  .table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table--stack tr { display: grid; gap: 6px; padding-block: 12px; }
  .table--stack td { display: flex; justify-content: space-between; gap: 16px; padding: 0; border: 0; text-align: right; }
  .table--stack td[data-label]::before { content: attr(data-label); text-align: left; font-weight: 600; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* --------------------------------------------------------------------------- */

/* Refract: a near-black field ruled by hairlines, one slab of fluted glass, and white light
   that leaves it as four bands. Every lit edge on the page is that split light. */
:root {
  --color-primary: #86E5F2;
  --color-on-primary: #061015;
  --color-accent: #86E5F2;
  --color-on-accent: #061015;
  --color-surface: #07090D;
  --color-stratum: #0C1016;
  --color-strata: #121821;
  --color-inset: #121821;
  --color-ink: #EDF1F4;
  --color-muted: #8E99A6;
  --color-border: #1C242E;
  --color-border-strong: #2C3744;
  --color-inverse: #EDF1F4;
  --color-on-inverse: #07090D;
  --color-focus: #86E5F2;
  --surface: var(--color-surface);
  --on-surface: var(--color-ink);
  --on-surface-muted: var(--color-muted);
  --border: var(--color-border);

  /* The split light. Always shown together, in this order. */
  --band-ice: #86E5F2;
  --band-violet: #9A8CFF;
  --band-orchid: #EE7FD6;
  --band-amber: #FFC07A;
  --split-light: linear-gradient(90deg, var(--band-ice), var(--band-violet) 36%, var(--band-orchid) 68%, var(--band-amber));

  --font-display: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --font-turn: "Instrument Serif", "Times New Roman", Georgia, serif;

  --text-display: clamp(46px, 6.3vw, 96px);
  --text-h2: clamp(34px, 4vw, 58px);
  --text-h3: clamp(20px, 1.6vw, 23px);
  --text-body: 16px;
  --text-label: 12px;

  --radius-button: 8px;
  --radius-card: 10px;
  --radius-glass: 18px;
  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 1px 1px rgba(0, 0, 0, 0.4), 0 24px 48px -28px rgba(0, 0, 0, 0.85);
  --rim: inset 0 0 0 1px rgba(237, 241, 244, 0.08);
  --ease-slow: cubic-bezier(0.16, 0.84, 0.3, 1);

  --container: 1240px;
  --gutter: 28px;
  --nav-height: 72px;
  --section-space: clamp(72px, 9vw, 128px);
  --grid-gap: 24px;
}

body {
  font-size: var(--text-body);
  line-height: 1.6;
  background-color: var(--color-surface);
  background-image: radial-gradient(rgba(237, 241, 244, 0.045) 1px, transparent 1.4px);
  background-size: 9px 9px;
}

/* Type */
h1, .display {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.04em;
}
h2 {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.032em;
}
h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.012em;
}
p { max-width: 60ch; }
.muted { color: var(--color-muted); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--split-light);
}

/* The one turned word per view: italic serif with a split-light fringe on its edges. */
.turn {
  font-family: var(--font-turn);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -0.012em;
  color: var(--color-ink);
  text-shadow: -0.018em 0 0 rgba(134, 229, 242, 0.5), 0.018em 0 0 rgba(238, 127, 214, 0.42);
}
.intro-lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: #B4BDC7; max-width: 46ch; }
.sect-no { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.16em; color: var(--color-muted); }

/* Nav */
.nav {
  background: rgba(7, 9, 13, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--color-border);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.nav__brand svg { width: 28px; height: 28px; }
.nav__links a {
  padding-block: 8px;
  font-size: 14px;
  color: var(--color-muted);
  background: var(--split-light) left bottom / 0 1px no-repeat;
  transition: color 200ms ease, background-size 420ms var(--ease-slow);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--color-ink); background-size: 100% 1px; }
.rf-kbd { display: inline-flex; align-items: center; gap: 3px; min-height: 34px; padding: 0 6px; border: 1px solid var(--color-border); border-radius: 8px; background: transparent; color: var(--color-muted); cursor: pointer; transition: border-color 160ms ease, color 160ms ease; }
.rf-kbd:hover { border-color: #3A4655; color: var(--color-ink); }
.rf-kbd kbd { min-width: 18px; font: 500 11.5px/1.6 var(--font-label); text-align: center; }
.nav__entry { font-size: 14px; color: var(--color-muted); text-decoration: none; padding: 10px 6px; }
.nav__entry:hover { color: var(--color-ink); }
.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-button);
  background: var(--color-stratum);
  box-shadow: var(--rim);
}
.nav__drawer {
  background: var(--color-stratum);
  border-radius: 12px;
  box-shadow: var(--rim), 0 24px 60px -20px rgba(0, 0, 0, 0.85);
}
.nav__drawer a { border-radius: 8px; color: var(--color-muted); }
.nav__drawer a:hover { background: var(--color-strata); color: var(--color-ink); }

/* Buttons: a lit horizon along the bottom edge brightens on hover. */
.btn {
  position: relative;
  overflow: hidden;
  min-height: 48px;
  padding-inline: 22px;
  border-radius: var(--radius-button);
  font-family: var(--font-label);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: transform 420ms var(--ease-slow), background-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}
.btn::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 0;
  height: 2px;
  background: var(--split-light);
  opacity: 0.35;
  transition: opacity 420ms var(--ease-slow), left 420ms var(--ease-slow), right 420ms var(--ease-slow);
}
.btn:hover::after, .btn:focus-visible::after { opacity: 1; left: 0; right: 0; }
.btn--solid { background: var(--color-ink); color: var(--color-surface); }
.btn--solid:hover { background: #FFFFFF; transform: translateY(-2px); }
.btn--accent { background: var(--color-accent); color: var(--color-on-accent); }
.btn--accent:hover { background: #A6EEF8; transform: translateY(-2px); }
.btn--accent::after { background: rgba(6, 16, 21, 0.4); }
.btn--ghost { background: rgba(12, 16, 22, 0.6); color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-border-strong); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px #4A5866; background: var(--color-strata); }
.btn--compact { min-height: 44px; padding-inline: 18px; }
.btn .btn__arrow { transition: transform 300ms var(--ease-slow); }
.btn:hover .btn__arrow { transform: translate(2px, -2px); }

/* Hero: copy left on a visible column grid, the refractor right. */
.hero--refract { padding-block: clamp(36px, 5vw, 72px) clamp(64px, 8vw, 112px); border-bottom: 1px solid var(--color-border); }
.hero--refract .hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.hero--refract .hero__inner::before {
  content: "";
  position: absolute;
  inset: -80px 0 -120px;
  z-index: -1;
  pointer-events: none;
  border-inline: 1px solid var(--color-border);
  background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 1px), rgba(28, 36, 46, 0.55) calc(100% / 12 - 1px) calc(100% / 12));
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 70%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 70%, transparent);
}
.hero--refract .hero__copy { gap: 28px; }
.hero--refract h1 { max-width: 11.5ch; }
.hero-readout {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 8px 40px;
  margin: 10px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
}
.hero-readout dt { order: 2; font-size: 13px; color: var(--color-muted); }
.hero-readout dd { order: 1; font-family: var(--font-display); font-size: 26px; font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hero-readout div { display: flex; flex-direction: column; gap: 2px; }

/* The refractor: light behind a fluted glass slab, a white beam in, four bands out. */
.refractor {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  background: radial-gradient(120% 80% at 70% 55%, #0F1520, var(--color-surface) 70%);
  box-shadow: inset 0 0 0 1px var(--color-border);
  isolation: isolate;
}
.refractor__light {
  position: absolute;
  z-index: 0;
  left: 26%;
  top: 22%;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--band-ice), var(--band-violet), var(--band-orchid), var(--band-amber), var(--band-ice));
  filter: blur(46px);
  opacity: 0.55;
  animation: refract-drift 26s linear infinite;
}
.refractor__rays { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; }
.refractor__rays line { vector-effect: non-scaling-stroke; }
.refractor__glass {
  position: absolute;
  z-index: 2;
  left: 30%;
  width: 32%;
  top: 11%;
  bottom: 11%;
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.11) 0 1px, rgba(255, 255, 255, 0.02) 1px 6px, rgba(0, 0, 0, 0.2) 6px 8px),
    linear-gradient(180deg, rgba(237, 241, 244, 0.1), rgba(237, 241, 244, 0.02) 42%, rgba(237, 241, 244, 0.07));
  -webkit-backdrop-filter: blur(10px) saturate(1.6) brightness(1.15);
  backdrop-filter: blur(10px) saturate(1.6) brightness(1.15);
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.55),
    inset -1px 0 0 rgba(255, 255, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 50px 90px -40px rgba(0, 0, 0, 0.9);
}
.refractor__glass::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(134, 229, 242, 0.9) 45%, rgba(255, 255, 255, 1) 52%, rgba(238, 127, 214, 0.8) 60%, transparent);
  box-shadow: 0 0 12px rgba(134, 229, 242, 0.6);
}
.refractor__glass::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: -1px;
  height: 2px;
  background: var(--split-light);
  filter: blur(0.5px);
  opacity: 0.85;
  animation: refract-horizon 5s ease-in-out infinite alternate;
}
.refractor__tag {
  position: absolute;
  z-index: 3;
  right: 4%;
  top: var(--y);
  transform: translateY(-135%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: rgba(12, 16, 22, 0.82);
  box-shadow: inset 0 0 0 1px var(--color-border-strong);
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--color-ink);
  white-space: nowrap;
}
.refractor__tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, #fff); box-shadow: 0 0 10px var(--c, #fff); }
.refractor__tag--in { left: 4%; right: auto; }
.refractor__note {
  position: absolute;
  z-index: 3;
  left: 4%;
  bottom: 3.5%;
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}
@keyframes refract-drift { to { transform: rotate(360deg); } }
@keyframes refract-horizon { from { opacity: 0.45; } to { opacity: 1; } }

/* Section scaffolding */
.section { border-bottom: 1px solid var(--color-border); }
.section__head { display: grid; gap: 20px; max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__head--spread {
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  align-items: end;
  gap: 18px 72px;
}
.section__head--spread > p { justify-self: end; }

/* Figures: four hairline cells, one band each. */
.figures-strip { padding-block: clamp(36px, 4vw, 56px); border-bottom: 1px solid var(--color-border); }
.band-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.band-figure { display: grid; gap: 10px; align-content: start; padding: 30px 28px 32px; border-left: 1px solid var(--color-border); }
.band-figure:first-child { border-left: 0; padding-left: 0; }
.band-figure__value { font-family: var(--font-display); font-size: clamp(40px, 4vw, 60px); font-weight: 300; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.band-figure__value small { font-size: 0.42em; letter-spacing: -0.01em; color: var(--color-muted); margin-left: 4px; }
.band-figure__bar { width: 44px; height: 2px; border-radius: 2px; background: var(--c); box-shadow: 0 0 14px var(--c); }
.band-figure p { font-size: 14px; color: var(--color-muted); max-width: 26ch; }

/* Dispersion: one answer marked by band, beside the ledger of its claims. */
.dispersion { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 28px; align-items: start; }
.answer-sheet {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-card);
  background: var(--color-stratum);
  box-shadow: var(--rim), var(--shadow-card);
}
.answer-sheet__prompt { display: grid; gap: 6px; padding-bottom: 20px; border-bottom: 1px solid var(--color-border); }
.answer-sheet__label { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted); }
.answer-sheet__prompt p { font-size: 17px; color: var(--color-ink); }
.answer-sheet__body { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.85; color: #C9D0D7; max-width: none; }
.claim-mark {
  color: var(--color-ink);
  background: linear-gradient(0deg, color-mix(in srgb, var(--c) 26%, transparent) 0 0.32em, transparent 0.32em);
  box-shadow: inset 0 -1px 0 var(--c);
  padding-inline: 1px;
}
.claim-mark sup { margin-left: 3px; font-family: var(--font-label); font-size: 10px; color: var(--c); }
.claim-mark--held { color: var(--color-muted); text-decoration: line-through; text-decoration-color: var(--band-amber); background: none; box-shadow: inset 0 -1px 0 transparent; border-bottom: 1px dashed var(--band-amber); }
.answer-sheet__foot { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 18px; border-top: 1px solid var(--color-border); font-family: var(--font-label); font-size: 11.5px; letter-spacing: 0.06em; color: var(--color-muted); }
.answer-sheet__foot strong { color: var(--color-ink); font-weight: 500; }

.claim-ledger { display: grid; gap: 0; border-radius: var(--radius-card); box-shadow: var(--rim); background: rgba(12, 16, 22, 0.6); }
.claim-ledger__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--color-border); }
.claim-ledger__head h3 { font-size: 17px; }
.claim-ledger__list { margin: 0; padding: 0; list-style: none; }
.claim-row {
  display: grid;
  grid-template-columns: 3px minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 16px 22px 16px 0;
  border-bottom: 1px solid var(--color-border);
}
.claim-row:last-child { border-bottom: 0; }
.claim-row::before { content: ""; grid-row: span 2; align-self: stretch; background: var(--c); border-radius: 0 3px 3px 0; box-shadow: 0 0 10px color-mix(in srgb, var(--c) 60%, transparent); }
.claim-row__text { font-size: 15px; color: var(--color-ink); padding-left: 6px; }
.claim-row__meta { grid-column: 2; padding-left: 6px; font-family: var(--font-label); font-size: 11px; letter-spacing: 0.06em; color: var(--color-muted); }
.claim-row__score { grid-row: 1 / span 2; grid-column: 3; font-family: var(--font-label); font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; }
.claim-row__score span { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c); }
.band-key { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 13px; color: var(--color-muted); }
.band-key span { display: inline-flex; align-items: center; gap: 8px; }
.band-key span::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--c); }

/* Steps: a real sequence with the numerals hung in the left rail. */
.beam-steps { display: grid; counter-reset: beam; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--color-border); }
.beam-step {
  display: grid;
  grid-template-columns: 120px minmax(0, 0.7fr) minmax(0, 1.2fr) 150px;
  gap: 12px 32px;
  align-items: baseline;
  padding-block: 30px;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 300ms ease;
}
.beam-step:hover { background: linear-gradient(90deg, rgba(134, 229, 242, 0.04), transparent 60%); }
.beam-step__no { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.16em; color: var(--color-muted); }
.beam-step h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 400; letter-spacing: -0.025em; }
.beam-step p { color: var(--color-muted); }
.beam-step__out { justify-self: end; font-family: var(--font-label); font-size: 12px; color: var(--color-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.beam-step__out::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }

/* Lens card: the one focal glass panel, lit from beneath. */
.lens-wrap { position: relative; width: min(100%, 900px); margin-inline: auto; isolation: isolate; }
.lens-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 8%;
  right: 8%;
  bottom: -70px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(154, 140, 255, 0.5), rgba(134, 229, 242, 0.24) 55%, transparent);
  filter: blur(36px);
}
.lens-card {
  position: relative;
  gap: 22px;
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--radius-glass);
  background: linear-gradient(180deg, rgba(18, 24, 33, 0.92), rgba(9, 12, 17, 0.94));
  box-shadow: inset 0 0 0 1px rgba(237, 241, 244, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.lens-card::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 0;
  height: 2px;
  background: var(--split-light);
  box-shadow: 0 0 24px rgba(154, 140, 255, 0.7);
}
.lens-card h2 { font-size: clamp(32px, 3.4vw, 48px); }
.lens-card__shell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 20px;
  border-radius: 999px;
  background: var(--color-surface);
  box-shadow: inset 0 0 0 1px var(--color-border-strong);
  transition: box-shadow 200ms ease;
}
.lens-card__shell:focus-within { box-shadow: inset 0 0 0 1px var(--color-accent), 0 0 0 4px rgba(134, 229, 242, 0.14); }
.lens-card__shell input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  outline: none;
  font-family: var(--font-label);
  font-size: 14px;
}
.lens-card__shell input::placeholder { color: var(--color-muted); }
.lens-card__shell .btn { border-radius: 999px; }
.gate-log {
  margin: 0;
  padding: 18px 20px;
  border-radius: 10px;
  background: #05070A;
  box-shadow: inset 0 0 0 1px var(--color-border);
  font-family: var(--font-label);
  font-size: 13px;
  line-height: 1.85;
  color: #B4BDC7;
  overflow-x: auto;
  white-space: pre;
}
.gate-log b { font-weight: 500; color: var(--color-ink); }
.gate-log i { font-style: normal; color: var(--c, var(--color-muted)); }

/* Customer voice */
.voice-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr); gap: 32px 72px; align-items: end; }
.voice-split blockquote { font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 46px); font-weight: 300; line-height: 1.16; letter-spacing: -0.03em; text-wrap: balance; }
.voice-split__by { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 16px; align-items: center; padding-top: 22px; border-top: 1px solid var(--color-border); }
.voice-split__by .ph { grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; }
.voice-split__by strong { font-weight: 500; }
.voice-split__by span { font-size: 14px; color: var(--color-muted); }
.trusted-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px 32px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
  font-family: var(--font-label);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6F7A87;
}

/* Pricing: three cells in one ruled frame; the lit one carries the split light on its top edge. */
.band-tier-frame {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: var(--radius-card);
  box-shadow: inset 0 0 0 1px var(--color-border);
  overflow: hidden;
}
.band-tier {
  position: relative;
  display: grid;
  gap: 18px;
  align-content: start;
  padding: clamp(24px, 3vw, 36px);
  border-left: 1px solid var(--color-border);
}
.band-tier:first-child { border-left: 0; }
.band-tier--lit { background: linear-gradient(180deg, rgba(154, 140, 255, 0.08), rgba(12, 16, 22, 0.4) 50%); }
.band-tier--lit::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--split-light); box-shadow: 0 0 22px rgba(134, 229, 242, 0.6); }
.band-tier__name { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted); }
.band-tier__price { font-family: var(--font-display); font-size: clamp(44px, 4vw, 58px); font-weight: 300; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.band-tier__price small { font-family: var(--font-body); font-size: 14px; letter-spacing: 0; color: var(--color-muted); margin-left: 6px; }
/* The price in Nepali rupees, filled in by js/prices.js at Nepal Rastra Bank's rate. */
.band-tier__npr { margin: -6px 0 0; font: 500 13px/1.4 var(--font-label); letter-spacing: 0.02em; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.band-tier__rate { margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: var(--color-muted); }
.band-tier__list { display: grid; gap: 10px; margin: 6px 0 4px; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--color-border); font-size: 15px; color: #C1C9D1; }
.band-tier__list li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.band-tier__list li::before { content: ""; width: 10px; height: 2px; border-radius: 2px; background: var(--split-light); transform: translateY(-3px); }
.band-tier .btn { justify-self: start; margin-top: 8px; }

/* Closing band: the beam crosses the page once more and splits through a small slab. */
.exit-beam { position: relative; overflow: hidden; padding-block: clamp(88px, 11vw, 160px); }
.exit-beam__field { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; contain: paint; }
.exit-beam__rays { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.92; }
.exit-beam__rays line { vector-effect: non-scaling-stroke; }
.exit-beam__glass {
  position: absolute;
  left: calc(70% - 11px);
  width: 22px;
  top: 66%;
  height: 32%;
  border-radius: 3px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 1px, rgba(255, 255, 255, 0.03) 1px 5px);
  -webkit-backdrop-filter: blur(6px) brightness(1.3);
  backdrop-filter: blur(6px) brightness(1.3);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.6), inset -1px 0 0 rgba(255, 255, 255, 0.15), 0 0 40px rgba(154, 140, 255, 0.35);
}
.exit-beam .container { position: relative; z-index: 1; display: grid; gap: 28px; }
.exit-beam h2 { font-size: clamp(40px, 5.6vw, 84px); max-width: 13ch; }

/* Footer */
.footer { position: relative; padding-block: clamp(56px, 7vw, 88px) 28px; background: #05070A; font-size: 14px; }
.footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: var(--split-light); opacity: 0.9; }
.footer .nav__brand { margin-bottom: 6px; }
.footer__heading { margin-bottom: 16px; font-family: var(--font-label); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--color-muted); }
.footer__cols a { color: #B4BDC7; }
.footer__cols a:hover { color: var(--color-ink); }
.footer__base { margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 1px solid var(--color-border); font-family: var(--font-label); font-size: 11.5px; letter-spacing: 0.08em; color: #6F7A87; }

/* Photo slots read as cool smoked glass until a photo replaces them. */
.ph { --ph-bg: linear-gradient(150deg, #1A2230, #0E131B 60%, #141026); --ph-ink: rgba(237, 241, 244, 0.6); }

/* Motion: on load the beam travels in from the left and splits, then each band's tag appears
   where its ray leaves the frame. Hovers brighten edges; nothing else moves. */
.refractor__rays { animation: refract-sweep 1600ms cubic-bezier(0.22, 0.7, 0.2, 1) 250ms both; }
.refractor__tag { animation: refract-tag 600ms ease 1250ms both; }
.refractor__tag--in { animation-delay: 350ms; }
.refractor__tag:nth-of-type(3) { animation-delay: 1350ms; }
.refractor__tag:nth-of-type(4) { animation-delay: 1450ms; }
.refractor__tag:nth-of-type(5) { animation-delay: 1550ms; }
@keyframes refract-sweep { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes refract-tag { from { opacity: 0; translate: -10px 0; } }
.band-figure__bar { transform-origin: left; transition: transform 420ms var(--ease-slow); }
.band-figure:hover .band-figure__bar { transform: scaleX(1.9); }
.claim-row { transition: background-color 200ms ease; }
.claim-row:hover { background: rgba(237, 241, 244, 0.03); }
.band-tier { transition: background-color 300ms ease; }
.band-tier:not(.band-tier--lit):hover { background: rgba(18, 24, 33, 0.7); }
.trusted-row span { transition: color 200ms ease; }
.trusted-row span:hover { color: var(--color-ink); }

@media (max-width: 960px) {
  .hero--refract .hero__inner { grid-template-columns: 1fr; }
  .hero--refract .hero__inner::before { display: none; }
  .refractor { width: min(100%, 520px); margin-inline: auto; }
  .section__head--spread { grid-template-columns: 1fr; }
  .section__head--spread > p { justify-self: start; }
  .band-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-figure:nth-child(3) { border-left: 0; padding-left: 0; }
  .band-figure:nth-child(n + 3) { border-top: 1px solid var(--color-border); }
  .dispersion { grid-template-columns: 1fr; }
  .beam-step { grid-template-columns: 72px minmax(0, 1fr); }
  .beam-step p, .beam-step__out { grid-column: 2; justify-self: start; }
  .voice-split { grid-template-columns: 1fr; }
  .band-tier-frame { grid-template-columns: 1fr; }
  .band-tier { border-left: 0; border-top: 1px solid var(--color-border); }
  .band-tier:first-child { border-top: 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --nav-height: 64px; }
  .nav__entry { display: none; }
  /* A keyboard shortcut has no use on a phone, and it pushed the menu button off the edge. */
  .rf-kbd { display: none; }
  .nav__end .btn--compact { padding-inline: 14px; }
  .hero-readout { grid-template-columns: repeat(2, auto); gap: 14px 28px; }
  .hero-readout dd { font-size: 22px; }
  .refractor { aspect-ratio: 5 / 6; }
  .refractor__tag { font-size: 10px; padding: 4px 8px 4px 7px; right: 3%; }
  .refractor__tag--in { left: 3%; right: auto; }
  .band-figure { padding: 24px 16px 26px; }
  .band-figure:nth-child(odd) { padding-left: 0; }
  .answer-sheet__body { line-height: 1.75; }
  .claim-row { padding-right: 16px; }
  .beam-step { grid-template-columns: 1fr; gap: 10px; padding-block: 24px; }
  .beam-step p, .beam-step__out { grid-column: 1; }
  .gate-log { font-size: 11.5px; padding: 16px; }
  .refractor__extra { display: none; }
  .exit-beam { padding-bottom: 210px; }
  .exit-beam__field { top: auto; height: 200px; }
  .lens-card__shell { flex-wrap: wrap; padding: 6px; border-radius: 14px; }
  .lens-card__shell input { padding-left: 12px; }
  .lens-card__shell .btn { width: 100%; border-radius: 10px; }
  .trusted-row { justify-content: flex-start; font-size: 12px; }
}
