/* =====================================================================
   KAVRIX SOLUTIONS — flagship theme
   A quiet, expensive, editorial design system.
   Shared by the WordPress theme and the static /preview/index.html.
   ===================================================================== */

/* ---- Design tokens ------------------------------------------------- */
:root {
  /* Ink & bone palette */
  --ink:        #0A0B0D;   /* page background            */
  --ink-800:    #101216;   /* raised surface             */
  --ink-700:    #16181E;   /* card surface               */
  --ink-600:    #1E212A;   /* hover surface              */
  --bone:       #EDE9E1;   /* primary text               */
  --bone-dim:   #B9B6AE;   /* secondary text             */
  --muted:      #7E7F87;   /* tertiary / captions        */
  --line:       rgba(237,233,225,.09);
  --line-strong:rgba(237,233,225,.16);

  /* Signature accent — Kavrix gold (matches the live site's kvxGoldGrad) */
  --gold:       #C9A227;
  --gold-lift:  #F4D77D;
  --gold-deep:  #8B6B1F;

  /* Cool secondary, used only in atmospheric gradients */
  --halo:       #5B6CFF;

  /* Type — matches the live site: Geist UI + Geist Mono + Fraunces display */
  --serif: "Fraunces", "Times New Roman", Georgia, serif;
  --sans:  "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:  "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rhythm */
  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---- Reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "ss01","cv05";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip (not hidden) so the window stays the scroll container — keeps the sticky header working */
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--gold); color: var(--ink); }

/* Atmospheric page wash */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 80% at 78% -10%, rgba(91,108,255,.10), transparent 55%),
    radial-gradient(90% 60% at 8% 0%, rgba(201,162,39,.10), transparent 50%),
    var(--ink);
}
/* Fine film grain for that print-quality feel */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---- Layout helpers ------------------------------------------------ */
.shell { width: min(var(--shell), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding: clamp(88px, 12vw, 168px) 0; position: relative; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: .7; }
.lede { color: var(--bone-dim); font-size: clamp(17px, 1.6vw, 20px); max-width: 60ch; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: .98;
  letter-spacing: -.02em;
  margin: 0;
  /* Fraunces variable axes — optical sizing + soft terminals, matching the live brand */
  font-variation-settings: "opsz" 144, "SOFT" 55, "wght" 380;
}
.display em { font-style: italic; color: var(--gold-lift); font-variation-settings: "opsz" 144, "SOFT" 80, "wght" 400; }

/* ---- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 100px;
  font-size: 14.5px; font-weight: 500; letter-spacing: .01em;
  border: 1px solid transparent; transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn .arw { transition: transform .35s var(--ease); }
.btn:hover .arw { transform: translate(3px,-3px); }
.btn--gold {
  background: linear-gradient(180deg, var(--gold-lift), var(--gold));
  color: #241a06; box-shadow: 0 12px 40px -14px rgba(201,162,39,.7);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -14px rgba(201,162,39,.85); }
.btn--ghost { border-color: var(--line-strong); color: var(--bone); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-lift); }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: rgba(10,11,13,.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font-family: var(--serif); font-size: 20px; letter-spacing: .01em; }
.brand__name b { font-weight: 600; }
.brand__sub { display:block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .32em; color: var(--muted); text-transform: uppercase; margin-top: 1px; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a.nav__link, .nav .nav__toggle {
  padding: 10px 16px; font-size: 14.5px; color: var(--bone-dim);
  border-radius: 100px; transition: color .25s var(--ease), background .25s var(--ease);
  display: inline-flex; align-items: center; gap: 7px; background: none; border: 0;
}
.nav a.nav__link:hover, .nav .nav__toggle:hover { color: var(--bone); }
.nav .caret { width: 9px; transition: transform .3s var(--ease); opacity:.6; }

/* Platforms mega-dropdown */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 14px); left: 50%; translate: -50% 0;
  width: 560px; max-width: 88vw;
  background: rgba(16,18,22,.94);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--line-strong); border-radius: 20px;
  padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  opacity: 0; visibility: hidden; translate: -50% 8px;
  transition: all .3s var(--ease); box-shadow: 0 40px 90px -30px rgba(0,0,0,.8);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; translate: -50% 0; }
.has-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown__item {
  display: block; padding: 14px 15px; border-radius: 13px;
  border: 1px solid transparent; transition: all .25s var(--ease);
}
.dropdown__item:hover { background: var(--ink-600); border-color: var(--line); }
.dropdown__name { display: flex; align-items: center; justify-content: space-between; font-family: var(--serif); font-size: 17px; color: var(--bone); }
.dropdown__name .ext { font-family: var(--sans); font-size: 12px; color: var(--gold); opacity: 0; transform: translateX(-4px); transition: all .25s var(--ease); }
.dropdown__item:hover .ext { opacity: 1; transform: none; }
.dropdown__tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.nav__cta { margin-left: 8px; }

/* Mobile nav */
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; background: none; }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--bone); margin: 4px auto; transition: .3s var(--ease); }
.mobile-nav { display: none; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; padding-top: clamp(150px, 22vh, 220px); padding-bottom: clamp(60px, 8vw, 110px); }
.hero__eyebrow { margin-bottom: 30px; }
.hero__title { font-size: clamp(52px, 9.2vw, 132px); }
.hero__title .row { display: block; overflow: hidden; }
.hero__title .row > span { display: block; opacity: 0; transform: translateY(26px); animation: lineUp 1.05s var(--ease) forwards; }
.hero__title .row:nth-child(1) > span { animation-delay: .15s; }
.hero__title .row:nth-child(2) > span { animation-delay: .30s; }
.hero__title .row:nth-child(3) > span { animation-delay: .45s; }
@keyframes lineUp { to { opacity: 1; transform: none; } }
.hero__lede { margin: 34px 0 40px; font-size: clamp(18px, 2vw, 22px); color: var(--bone-dim); max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Stat ticker */
.hero__stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 6vw, 72px); margin-top: clamp(56px, 8vw, 96px); padding-top: 40px; border-top: 1px solid var(--line); }
.stat__num { font-family: var(--serif); font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.stat__num em { font-style: normal; color: var(--gold-lift); }
.stat__label { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 12px; max-width: 22ch; }

/* Scrolling marquee of program names */
.marquee { border-block: 1px solid var(--line); padding: 26px 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: inline-flex; gap: 56px; white-space: nowrap; animation: slide 32s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); color: var(--bone-dim); display: inline-flex; align-items: center; gap: 56px; }
.marquee__item::after { content: "✦"; color: var(--gold); font-size: 14px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* =====================================================================
   COLLECTION (the programs)
   ===================================================================== */
.section-head { display: grid; grid-template-columns: 1fr; gap: 22px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head h2 { font-size: clamp(34px, 5vw, 66px); }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1.1fr .9fr; align-items: end; }
}

.group-label { font-family: var(--mono); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 16px; margin: 8px 0 26px; }
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Horizontal scroll rail */
.cards {
  display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important;
  gap: 20px;
  overflow-x: auto; overflow-y: hidden; /* explicit hidden avoids the visible→auto coercion (stray vertical scrollbar) */
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  padding: 4px 2px 30px;
  /* break the rail edge-to-edge within the shell and fade the ends */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 2%, #000 94%, transparent 100%);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) transparent;
}
.cards::-webkit-scrollbar { height: 6px; }
.cards::-webkit-scrollbar-track { background: var(--line); border-radius: 100px; }
.cards::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: 100px; }

.card {
  position: relative; display: flex; flex-direction: column;
  flex: 0 0 clamp(300px, 40%, 430px);
  scroll-snap-align: start;
  padding: clamp(26px, 3vw, 40px);
  background: linear-gradient(180deg, var(--ink-700), var(--ink-800));
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
  min-height: 340px;
}
@media (max-width: 640px) { .card { flex-basis: 84%; min-height: 320px; } }

/* Drag / scroll affordance */
.rail-hint { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.rail-hint .track { position: relative; width: 46px; height: 1px; background: var(--line-strong); overflow: hidden; }
.rail-hint .track::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--gold); animation: railslide 2.4s var(--ease) infinite; }
@keyframes railslide { 0% { transform: translateX(-120%); } 60%,100% { transform: translateX(320%); } }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, rgba(201,162,39,.5), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .5s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.card:hover::before { opacity: 1; }
.card__glow { position: absolute; inset: auto -30% -60% -30%; height: 60%; background: radial-gradient(circle at 50% 100%, rgba(201,162,39,.18), transparent 70%); opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.card:hover .card__glow { opacity: 1; }

.card__no { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--gold); }
.card__name { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); margin: 20px 0 8px; line-height: 1; }
.card__tag { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--bone-dim); }
.card__desc { color: var(--muted); margin: 18px 0 0; font-size: 15.5px; }
.card__foot { margin-top: auto; padding-top: 26px; display: flex; align-items: center; justify-content: space-between; }
.card__visit { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--bone); transition: color .3s var(--ease); }
.card:hover .card__visit { color: var(--gold-lift); }
.card__visit .arw { transition: transform .35s var(--ease); }
.card:hover .card__visit .arw { transform: translate(3px,-3px); }
.card__host { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Full-clickable card link overlay */
.card__link { position: absolute; inset: 0; z-index: 2; }
.card__foot, .card__no, .card__name { position: relative; z-index: 3; }

/* =====================================================================
   PHILOSOPHY
   ===================================================================== */
.philosophy { border-top: 1px solid var(--line); }
.pullquote { font-family: var(--serif); font-size: clamp(28px, 4.2vw, 56px); line-height: 1.12; letter-spacing: -.01em; max-width: 20ch; }
.pullquote em { font-style: italic; color: var(--gold-lift); }
.philo-grid { display: grid; gap: clamp(40px, 6vw, 80px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .philo-grid { grid-template-columns: 1.2fr .8fr; align-items: start; } }
.tenets { display: grid; gap: 26px; }
.tenet { padding-left: 22px; border-left: 1px solid var(--line-strong); }
.tenet h4 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.tenet p { margin: 0; color: var(--muted); font-size: 15px; }

/* =====================================================================
   PROCESS
   ===================================================================== */
.process { border-top: 1px solid var(--line); }
.steps { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 34px 30px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, var(--ink-800), transparent); transition: border-color .4s var(--ease); }
.step:hover { border-color: var(--line-strong); }
.step__no { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--gold); }
.step h3 { font-family: var(--serif); font-size: 26px; font-weight: 400; margin: 16px 0 10px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* =====================================================================
   CONTACT
   ===================================================================== */
.contact { border-top: 1px solid var(--line); }
.contact-card {
  position: relative; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 140% at 90% -20%, rgba(91,108,255,.14), transparent 55%),
    radial-gradient(90% 120% at 0% 120%, rgba(201,162,39,.16), transparent 55%),
    var(--ink-800);
  padding: clamp(40px, 6vw, 84px);
  display: grid; gap: clamp(36px, 5vw, 64px); grid-template-columns: 1fr;
}
@media (min-width: 900px) { .contact-card { grid-template-columns: 1fr 1fr; align-items: center; } }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4.4vw, 56px); line-height: 1.02; margin: 18px 0 20px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  background: rgba(10,11,13,.5); border: 1px solid var(--line-strong); border-radius: 12px;
  color: var(--bone); padding: 14px 16px; font: inherit; font-size: 15px; transition: border-color .3s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 110px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 90px) 0 40px; }
.footer-grid { display: grid; gap: 44px; grid-template-columns: 1.4fr repeat(2, 1fr); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 34ch; margin: 20px 0 0; }
.footer-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 20px; }
.footer-col a { display: flex; align-items: center; gap: 8px; color: var(--bone-dim); font-size: 15px; padding: 7px 0; transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--gold-lift); }
.footer-col a .ext { font-size: 11px; opacity: .5; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: clamp(48px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-bottom .mono { font-family: var(--mono); letter-spacing: .08em; }

/* =====================================================================
   Reveal-on-scroll
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .row > span { opacity: 1; transform: none; }
}

/* =====================================================================
   FLOURISHES — compass, shimmer, cursor spotlight, count-up
   ===================================================================== */

/* Keep hero copy above the decorative compass */
.hero { overflow: visible; }
.hero .shell { position: relative; z-index: 2; }

/* --- Rotating-K medallion (homage to the current site's hero mark) --- */
.hero__medallion {
  position: absolute; z-index: 0; pointer-events: none;
  top: 50%; right: clamp(-120px, -5vw, -30px);
  translate: 0 -50%;
  width: clamp(380px, 46vw, 640px); aspect-ratio: 1;
  opacity: .85;
  transition: transform .6s var(--ease);
  filter: drop-shadow(0 30px 80px rgba(201,162,39,.10));
}
.medallion { width: 100%; height: 100%; overflow: visible; }
.medallion .m-k { font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 72, "SOFT" 60; }

.medallion__spin { transform-box: fill-box; transform-origin: center; animation: spin 120s linear infinite; }
/* Counter-rotate the K at the same rate so the letter stays upright while the rings spin */
.medallion__k    { transform-box: fill-box; transform-origin: center; animation: spin-rev 120s linear infinite; }
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes spin-rev { to { transform: rotate(-360deg); } }

@media (max-width: 900px) {
  .hero__medallion { top: 44%; right: 50%; translate: 50% -50%; width: min(122vw, 640px); opacity: .18; }
}

/* --- Per-product corner glyph on cards --- */
.card__glyph {
  position: absolute; top: clamp(24px, 3vw, 38px); right: clamp(24px, 3vw, 38px);
  width: 30px; height: 30px; color: var(--gold); opacity: .5; z-index: 3;
  transition: opacity .4s var(--ease), transform .4s var(--ease); pointer-events: none;
}
.card__glyph svg { width: 100%; height: 100%; display: block; }
.card:hover .card__glyph { opacity: 1; transform: scale(1.06); }

/* --- Collection rail: prev / next controls --- */
.rail-head { display: flex; align-items: center; gap: 20px; margin: 8px 0 26px; }
.rail-head .group-label { margin: 0; flex: 1; }
.rail-nav { display: flex; gap: 10px; flex: none; }
.rail-btn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: transparent; color: var(--bone);
  display: grid; place-items: center; transition: all .3s var(--ease);
}
.rail-btn svg { width: 16px; height: 16px; }
.rail-btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-lift); transform: translateY(-1px); }
.rail-btn:disabled { opacity: .3; }
@media (max-width: 560px) { .rail-nav { display: none; } }

/* --- Visible keyboard focus everywhere --- */
:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--gold-lift); outline-offset: 3px; border-radius: 6px;
}
.dropdown__item:focus-visible, .card__link:focus-visible { outline-offset: -2px; }
/* Click-toggled dropdown (keyboard / touch) */
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; translate: -50% 0; }
.has-dropdown.is-open .caret { transform: rotate(180deg); }

/* =====================================================================
   PLATFORM PANELS  (each program its own screen: preview + description)
   ===================================================================== */
.platform { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 760px) {
  .platform { grid-template-columns: 1fr 1.12fr; }
  .hpanel--platform.is-flipped .platform { grid-template-columns: 1.12fr 1fr; }
  .hpanel--platform.is-flipped .platform__text { order: 2; }
  .hpanel--platform.is-flipped .platform__shot { order: 1; }
}
.platform__no { font-family: var(--mono); font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.platform__name { font-size: clamp(42px, 6vw, 88px); margin: 16px 0 0; line-height: .96; }
.platform__tag { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--bone-dim); margin-top: 18px; }
.platform__glyph { width: 22px; height: 22px; color: var(--gold); flex: none; }
.platform__glyph svg { width: 100%; height: 100%; display: block; }
.platform__desc { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; margin: 22px 0 0; max-width: 46ch; }
.platform__actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.platform__host { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.platform__shot { margin: 0; }
/* Screenshot presented inside a subtle browser window (title bar + dots) */
.platform__frame {
  position: relative; display: block; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-strong); background: #15171d; padding-top: 34px;
  box-shadow: 0 50px 100px -44px rgba(0,0,0,.95);
  transition: transform .55s var(--ease), box-shadow .55s var(--ease);
}
.platform__frame::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 34px;
  background: linear-gradient(180deg, #20222b, #171921);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.platform__frame::after {
  content: ""; position: absolute; top: 13px; left: 16px; width: 9px; height: 9px;
  border-radius: 50%; background: #4a4d57; box-shadow: 16px 0 0 #4a4d57, 32px 0 0 #4a4d57;
}
.platform__frame:hover { transform: translateY(-6px); box-shadow: 0 64px 130px -44px rgba(0,0,0,1); }
.platform__shot img { width: 100%; height: auto; display: block; }

/* --- Subtle "pop in on scroll" for every panel --- */
.pop .platform__text > *,
.pop .platform__shot,
.pop .philo-grid > *,
.pop .section-head > *,
.pop .steps .step,
.pop .contact-card {
  opacity: 0; transform: translateY(32px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.pop.in .platform__text > *,
.pop.in .platform__shot,
.pop.in .philo-grid > *,
.pop.in .section-head > *,
.pop.in .steps .step,
.pop.in .contact-card { opacity: 1; transform: none; }
.pop.in .platform__text > *:nth-child(1) { transition-delay: .06s; }
.pop.in .platform__text > *:nth-child(2) { transition-delay: .12s; }
.pop.in .platform__text > *:nth-child(3) { transition-delay: .18s; }
.pop.in .platform__text > *:nth-child(4) { transition-delay: .24s; }
.pop.in .platform__shot { transition-delay: .16s; transform: translateY(32px) scale(.985); }
.pop.in .platform__shot { transform: none; }
.pop.in .steps .step:nth-child(2) { transition-delay: .12s; }
.pop.in .steps .step:nth-child(3) { transition-delay: .24s; }
.pop.in .philo-grid > *:nth-child(2) { transition-delay: .12s; }

/* =====================================================================
   HORIZONTAL SITE  (desktop) — the whole page scrolls sideways
   ===================================================================== */
.hprogress { display: none; }

@media (min-width: 901px) {
  body.hsite { overflow: hidden; height: 100vh; }

  .hstage {
    height: 100vh;
    display: flex; flex-wrap: nowrap; align-items: stretch;
    overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none;
  }
  .hstage::-webkit-scrollbar { height: 0; width: 0; }

  .hstage > .hpanel,
  .hstage > .site-footer {
    flex: 0 0 auto; width: 100vw; height: 100vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 104px clamp(48px, 7vw, 130px) 96px;
  }
  .hstage > .site-footer { justify-content: center; padding-block: 130px 64px; }
  .hstage .section { padding: 0; border: 0; }
  .hstage .shell { width: min(var(--shell), 100%); }

  /* Hero trimmed so it fits one screen */
  .hstage .hero { padding: 104px clamp(48px, 7vw, 130px) 96px; }
  .hstage .hero__title { font-size: clamp(48px, 6.6vw, 108px); }
  .hstage .hero__lede { margin: 26px 0 30px; }

  .marquee { display: none; }

  /* Horizontal progress bar */
  .hprogress { display: block; position: fixed; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line); z-index: 95; }
  .hprogress span { display: block; height: 100%; width: 100%; transform-origin: left center; transform: scaleX(0); background: linear-gradient(90deg, var(--gold-deep), var(--gold-lift)); transition: transform .1s linear; }

  /* keep the header readable over any panel */
  .site-header.is-stuck { background: rgba(10,11,13,.72); }
}

/* =====================================================================
   PAGE DOCUMENTS (Privacy, Terms, and other standard Pages)
   ===================================================================== */
.page-doc { padding: clamp(120px, 16vh, 190px) 0 clamp(64px, 8vw, 110px); }
.page-doc__inner { max-width: 820px; }
.page-doc__head { border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 36px; }
.page-doc__title { font-size: clamp(34px, 6vw, 62px); margin: 18px 0 0; }
.page-doc__meta { color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.page-doc__body { color: var(--bone-dim); font-size: 17px; line-height: 1.75; }
.page-doc__body h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 3vw, 30px); color: var(--bone); margin: 44px 0 12px; }
.page-doc__body h3 { font-size: 18px; color: var(--gold-lift); margin: 26px 0 8px; }
.page-doc__body p, .page-doc__body li { color: var(--bone-dim); }
.page-doc__body a { color: var(--gold-lift); text-decoration: underline; text-underline-offset: 3px; }
.page-doc__body ul, .page-doc__body ol { padding-left: 22px; }
.page-doc__body li { margin: 6px 0; }
.page-doc__body strong { color: var(--bone); }
.page-doc__body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.page-doc__body th, .page-doc__body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.page-doc__body th { color: var(--gold-lift); }
.page-doc__body code { background: var(--ink-700); padding: 1px 6px; border-radius: 5px; font-family: var(--mono); font-size: 14px; }
/* Callout / table-of-contents / per-product blocks used inside legal pages */
.page-doc__body .note { background: var(--ink-800); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; padding: 16px 18px; margin: 24px 0; font-size: 15px; color: var(--muted); }
.page-doc__body .note strong { color: var(--gold-lift); }
.page-doc__body .legal { background: var(--ink-800); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin: 18px 0; font-size: 15px; }
.page-doc__body .toc { background: var(--ink-800); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; margin: 28px 0; }
.page-doc__body .toc ol { columns: 2; column-gap: 30px; margin: 8px 0 0; font-size: 15px; }
.page-doc__body .toc a { color: var(--bone-dim); text-decoration: none; }
.page-doc__body .toc a:hover { color: var(--gold-lift); }
@media (max-width: 640px) { .page-doc__body .toc ol { columns: 1; } }

/* Scroll cue in the hero */
.hero__scrollcue { display: inline-flex; align-items: center; gap: 14px; margin-top: clamp(40px, 6vw, 72px); font-family: var(--mono); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.hero__scrollcue svg { width: 40px; color: var(--gold); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0%,100% { transform: translateX(0); opacity: .6; } 50% { transform: translateX(6px); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .pop .platform__text > *, .pop .platform__shot, .pop .philo-grid > *,
  .pop .section-head > *, .pop .steps .step, .pop .contact-card { opacity: 1; transform: none; }
  .hstage { scroll-behavior: auto; }
}

/* --- Shimmering accent word --- */
.hero__title em {
  background: linear-gradient(100deg, var(--gold) 10%, var(--gold-lift) 38%, #FFF3D6 50%, var(--gold-lift) 62%, var(--gold) 90%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: -220% center; } }

/* --- Cursor spotlight on cards --- */
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 1; pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(244,215,125,.13), transparent 62%);
  opacity: 0; transition: opacity .45s var(--ease);
}
.card:hover::after { opacity: 1; }
.card__glow { z-index: 1; }
.card__tag, .card__desc { position: relative; z-index: 3; }
.card__link { z-index: 4; }

/* =====================================================================
   Responsive header / mobile drawer
   ===================================================================== */
@media (max-width: 940px) {
  .nav { display: none; }
  .burger { display: block; }
  .mobile-nav {
    display: block; position: fixed; inset: 76px 0 0 0; z-index: 90;
    background: rgba(10,11,13,.98); backdrop-filter: blur(20px);
    padding: 30px var(--gutter); transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: all .35s var(--ease); overflow-y: auto;
  }
  .mobile-nav.open { transform: none; opacity: 1; visibility: visible; }
  .mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; font-family: var(--serif); font-size: 24px; border-bottom: 1px solid var(--line); }
  .mobile-nav a .ext { font-family: var(--sans); font-size: 13px; color: var(--gold); }
  .mobile-nav .m-label { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 26px 0 6px; }
  body.nav-open { overflow: hidden; }
}
