/* ==========================================================================
   PRAGATI ACADEMY — Design System
   Foundation: tokens, reset, type scale, controls, chrome, motion primitives
   ========================================================================== */

/* ---------- Tokens ---------------------------------------------------- */
:root {
  /* Ink & paper */
  --ink:            #0A0D12;
  --ink-2:          #141922;
  --ink-3:          #1E2430;
  --ink-line:       #2A3140;
  --paper:          #F7F5F0;
  --paper-2:        #EFEBE3;
  --paper-3:        #E4DED3;
  --white:          #FFFFFF;

  /* Brand */
  --indigo:         #241CE0;
  --indigo-lift:    #4A3FFF;
  --indigo-deep:    #150F8F;
  --vermilion:      #FF4D18;
  --vermilion-soft: #FF7A4D;
  --mint:           #0FB981;
  --gold:           #E8B44A;
  --sky:            #38BDF8;
  --plum:           #A855F7;

  /* Semantic text */
  --text:           #0A0D12;
  --text-soft:      #4A5261;
  --text-mute:      #79808F;
  --text-inv:       #F7F5F0;
  --text-inv-soft:  rgba(247, 245, 240, .66);
  --text-inv-mute:  rgba(247, 245, 240, .40);

  /* Lines */
  --line:           rgba(10, 13, 18, .12);
  --line-soft:      rgba(10, 13, 18, .07);
  --line-inv:       rgba(247, 245, 240, .14);
  --line-inv-soft:  rgba(247, 245, 240, .07);

  /* Type */
  --display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --body:    'Libre Franklin', 'Segoe UI', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;

  /* Rhythm */
  --gutter: clamp(20px, 4.4vw, 64px);
  --maxw: 1400px;
  --sect: clamp(88px, 11vw, 168px);
  --r-s: 8px;
  --r-m: 16px;
  --r-l: 24px;
  --r-xl: 34px;

  /* Motion */
  --ease:      cubic-bezier(.22, 1, .36, 1);
  --ease-io:   cubic-bezier(.65, .02, .28, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --spring:    cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: .28s;
  --t-mid:  .55s;
  --t-slow: .9s;

  /* Elevation */
  --sh-s: 0 1px 2px rgba(10,13,18,.05), 0 4px 14px rgba(10,13,18,.05);
  --sh-m: 0 2px 6px rgba(10,13,18,.05), 0 16px 40px -12px rgba(10,13,18,.14);
  --sh-l: 0 4px 12px rgba(10,13,18,.06), 0 40px 90px -24px rgba(10,13,18,.28);
  --sh-glow: 0 20px 60px -18px rgba(36, 28, 224, .5);
}

/* ---------- Reset ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-variant-ligatures: common-ligatures;
}

img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 3px; }

::selection { background: var(--indigo); color: #fff; }

/* ---------- Scrollbar ------------------------------------------------- */
* { scrollbar-width: thin; scrollbar-color: rgba(10,13,18,.22) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(10,13,18,.18); border-radius: 20px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(10,13,18,.34); background-clip: content-box; }
.on-dark ::-webkit-scrollbar-thumb, .dark ::-webkit-scrollbar-thumb { background: rgba(247,245,240,.2); background-clip: content-box; }

/* ---------- Typography ------------------------------------------------ */
h1, h2, h3, h4, h5, .display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .96;
  text-wrap: balance;
}

.d1 { font-size: clamp(3.4rem, 12.5vw, 12rem); font-weight: 800; letter-spacing: -.055em; line-height: .84; }
.d2 { font-size: clamp(2.6rem, 6.6vw, 6.2rem); font-weight: 700; letter-spacing: -.045em; line-height: .92; }
.d3 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.0; }
.d4 { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; }
.d5 { font-size: clamp(1.1rem, 1.5vw, 1.32rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }

.lede {
  font-size: clamp(1.06rem, 1.55vw, 1.36rem);
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 62ch;
  font-weight: 350;
}
.on-dark .lede, .dark .lede { color: var(--text-inv-soft); }

.eyebrow {
  font-family: var(--display);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: currentColor;
  opacity: .5;
}
.eyebrow.no-rule::before { display: none; }
.on-dark .eyebrow, .dark .eyebrow { color: var(--text-inv-mute); }
.eyebrow.accent { color: var(--vermilion); }

.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; }

/* ---------- Layout ---------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-tight { max-width: 1080px; }
.section { padding-block: var(--sect); position: relative; }
.section-sm { padding-block: clamp(56px, 7vw, 96px); }

.grid { display: grid; gap: clamp(18px, 2.2vw, 34px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g12 { grid-template-columns: repeat(12, 1fr); }

.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.wrapf { flex-wrap: wrap; }
.gap-s { gap: 10px; } .gap-m { gap: 20px; } .gap-l { gap: 36px; }

.dark { background: var(--ink); color: var(--text-inv); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--text-inv); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: clamp(38px, 5vw, 72px); flex-wrap: wrap; }
.section-head .lede { max-width: 46ch; }

/* Editorial hairline that draws in */
.rule { height: 1px; background: var(--line); transform-origin: left; }
.dark .rule, .on-dark .rule { background: var(--line-inv); }
[data-draw] { transform: scaleX(0); }
[data-draw].in { transform: scaleX(1); transition: transform 1.1s var(--ease); }

/* ---------- Buttons --------------------------------------------------- */
.btn {
  --bg: var(--ink);
  --fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  padding: 1.06em 1.9em;
  font-family: var(--display);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg);
  background: var(--bg);
  border-radius: 100px;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
  transition: color .4s var(--ease), transform .5s var(--spring), box-shadow .5s var(--ease);
  will-change: transform;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--indigo);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform .55s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: #fff; box-shadow: var(--sh-glow); }
.btn:active { transform: scale(.97); }

.btn-accent { --bg: var(--vermilion); --fg: #fff; }
.btn-accent::before { background: var(--ink); }
.btn-indigo { --bg: var(--indigo); --fg: #fff; }
.btn-indigo::before { background: var(--vermilion); }

.btn-ghost {
  --bg: transparent;
  --fg: var(--ink);
  box-shadow: inset 0 0 0 1.4px var(--line);
}
.btn-ghost::before { background: var(--ink); }
.btn-ghost:hover { color: var(--paper); box-shadow: inset 0 0 0 1.4px var(--ink); }
.on-dark .btn-ghost, .dark .btn-ghost { --fg: var(--paper); box-shadow: inset 0 0 0 1.4px var(--line-inv); }
.on-dark .btn-ghost::before, .dark .btn-ghost::before { background: var(--paper); }
.on-dark .btn-ghost:hover, .dark .btn-ghost:hover { color: var(--ink); }

.btn-sm { padding: .78em 1.3em; font-size: .66rem; letter-spacing: .13em; }
.btn-lg { padding: 1.25em 2.4em; font-size: .8rem; }
.btn .ico { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform .45s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }

/* Text link with underline sweep */
.link {
  position: relative;
  font-family: var(--display);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding-bottom: 4px;
}
.link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1.4px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.link:hover::after { transform: scaleX(1); transform-origin: left; }
.link .ico { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2.2; transition: transform .4s var(--ease); }
.link:hover .ico { transform: translateX(4px); }

/* ---------- Chips / pills --------------------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .42em .85em;
  border-radius: 100px;
  font-family: var(--display);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--paper-2);
  color: var(--text-soft);
  white-space: nowrap;
}
.chip-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-indigo { background: rgba(36,28,224,.09); color: var(--indigo); }
.chip-verm   { background: rgba(255,77,24,.11); color: #D63A0C; }
.chip-mint   { background: rgba(15,185,129,.12); color: #07875D; }
.chip-gold   { background: rgba(232,180,74,.16); color: #93690B; }
.chip-sky    { background: rgba(56,189,248,.14); color: #0272A3; }
.chip-plum   { background: rgba(168,85,247,.13); color: #7A28C9; }
.on-dark .chip, .dark .chip { background: rgba(247,245,240,.08); color: var(--text-inv-soft); }
.on-dark .chip-mint, .dark .chip-mint { background: rgba(15,185,129,.16); color: #4DE3B4; }
.on-dark .chip-verm, .dark .chip-verm { background: rgba(255,77,24,.18); color: #FF8F6B; }
.on-dark .chip-indigo, .dark .chip-indigo { background: rgba(74,63,255,.24); color: #A9A2FF; }
.on-dark .chip-gold, .dark .chip-gold { background: rgba(232,180,74,.18); color: #F0CD86; }
.on-dark .chip-sky, .dark .chip-sky { background: rgba(56,189,248,.18); color: #7DD3FC; }

/* ---------- Cards ----------------------------------------------------- */
.card {
  position: relative;
  background: var(--white);
  border-radius: var(--r-l);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease);
}
.card-hov:hover { transform: translateY(-6px); box-shadow: var(--sh-m); border-color: var(--line); }
.dark .card, .on-dark .card { background: var(--ink-2); border-color: var(--line-inv-soft); }

/* ==========================================================================
   MOTION PRIMITIVES
   ========================================================================== */

/* Fade + rise reveal */
[data-rise] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  transition: opacity .95s var(--ease), transform .95s var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-rise].in { opacity: 1; transform: none; }

/* Scale-in for media */
[data-zoom] { opacity: 0; transform: scale(.94); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0ms); }
[data-zoom].in { opacity: 1; transform: none; }

/* Clip-reveal for imagery */
[data-clip] { clip-path: inset(0 0 100% 0); transition: clip-path 1.15s var(--ease); transition-delay: var(--d, 0ms); }
[data-clip].in { clip-path: inset(0 0 0% 0); }

/* Split-text line masks (built by motion.js) */
.sp-line { display: block; overflow: hidden; }
.sp-inner {
  display: block;
  transform: translate3d(0, 108%, 0) rotate(3deg);
  transform-origin: left top;
  transition: transform 1.05s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: transform;
}
.in > .sp-line > .sp-inner, .sp-line.in > .sp-inner { transform: none; }

/* Per-word stagger */
.sp-word { display: inline-block; overflow: hidden; vertical-align: top; }
.sp-word > i {
  display: inline-block;
  font-style: inherit;
  transform: translate3d(0, 105%, 0);
  transition: transform .95s var(--ease);
  transition-delay: var(--d, 0ms);
}
.in .sp-word > i { transform: none; }

/* Per-char */
.sp-char { display: inline-block; transform: translate3d(0, 60%, 0); opacity: 0; transition: transform .8s var(--ease), opacity .6s linear; transition-delay: var(--d, 0ms); }
.in .sp-char { transform: none; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-rise], [data-zoom], [data-clip], .sp-inner, .sp-word > i, .sp-char {
    opacity: 1 !important; transform: none !important; clip-path: none !important;
  }
}

/* ==========================================================================
   CHROME — cursor, preloader, page transition, progress, nav, footer
   ========================================================================== */

/* Custom cursor */
.cursor, .cursor-dot {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor {
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border: 1.4px solid rgba(255,255,255,.85);
  border-radius: 50%;
  transition: width .38s var(--ease), height .38s var(--ease), margin .38s var(--ease), background-color .38s var(--ease), border-color .38s var(--ease), opacity .3s;
  display: grid;
  place-items: center;
}
.cursor-dot {
  width: 5px; height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: #fff;
  border-radius: 50%;
  transition: opacity .3s, transform .2s;
}
.cursor .c-label {
  font-family: var(--display);
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: #fff;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .3s, transform .3s var(--spring);
  white-space: nowrap;
}
body.cur-hover .cursor { width: 66px; height: 66px; margin: -33px 0 0 -33px; background: rgba(255,255,255,.14); }
body.cur-hover .cursor-dot { opacity: 0; }
body.cur-label .cursor { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: rgba(255,255,255,.92); border-color: transparent; mix-blend-mode: normal; }
body.cur-label .cursor .c-label { opacity: 1; transform: none; color: var(--ink); }
body.cur-label .cursor-dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none !important; } }

/* Magnetic elements */
[data-magnet] { will-change: transform; }

/* Scroll progress bar */
.scroll-prog {
  position: fixed;
  top: 0; left: 0;
  height: 2.5px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--vermilion), var(--indigo) 55%, var(--mint));
  z-index: 900;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--ink);
  display: grid;
  place-items: center;
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.pre-inner { text-align: center; width: min(360px, 70vw); }
.pre-mark {
  font-family: var(--display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--paper);
  overflow: hidden;
  display: block;
}
.pre-mark span { display: inline-block; animation: preIn .8s var(--ease) both; }
@keyframes preIn { from { transform: translateY(110%) } to { transform: none } }
.pre-bar { margin-top: 22px; height: 2px; background: rgba(247,245,240,.16); overflow: hidden; border-radius: 2px; }
.pre-bar i { display: block; height: 100%; width: 0%; background: var(--vermilion); transition: width .3s linear; }
.pre-pct { margin-top: 12px; font-family: var(--mono); font-size: .68rem; color: var(--text-inv-mute); letter-spacing: .1em; }

/* Page transition curtain */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 9500;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.curtain i {
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
}
.curtain.out i { animation: curtainUp .62s var(--ease-io) forwards; }
.curtain.in  i { transform: scaleY(1); transform-origin: top; animation: curtainDown .62s var(--ease-io) forwards; }
.curtain.out i:nth-child(1), .curtain.in i:nth-child(1) { animation-delay: 0ms }
.curtain.out i:nth-child(2), .curtain.in i:nth-child(2) { animation-delay: 55ms }
.curtain.out i:nth-child(3), .curtain.in i:nth-child(3) { animation-delay: 110ms }
.curtain.out i:nth-child(4), .curtain.in i:nth-child(4) { animation-delay: 165ms }
.curtain.out i:nth-child(5), .curtain.in i:nth-child(5) { animation-delay: 220ms }
@keyframes curtainUp   { from { transform: scaleY(0) } to { transform: scaleY(1) } }
@keyframes curtainDown { from { transform: scaleY(1) } to { transform: scaleY(0) } }

/* ---------- Navigation ------------------------------------------------ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 800;
  padding: 18px 0;
  transition: padding .5s var(--ease), background-color .5s var(--ease), box-shadow .5s var(--ease), transform .55s var(--ease);
}
.nav::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(247,245,240,.82);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.nav.stuck { padding: 11px 0; }
.nav.stuck::before { opacity: 1; }
.nav.hide { transform: translateY(-105%); }
.nav-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--ink);
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  transition: transform .6s var(--spring);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-mark svg { width: 19px; height: 19px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.02rem; letter-spacing: -.035em; }
.brand-sub { font-family: var(--display); font-size: .5rem; font-weight: 600; letter-spacing: .22em; color: var(--text-mute); margin-top: 3.5px; }

.nav-links { display: flex; align-items: center; gap: clamp(6px, 1.3vw, 22px); }
.nav-link {
  position: relative;
  font-family: var(--display);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 9px 2px;
  color: var(--text-soft);
  transition: color .35s var(--ease);
  display: inline-block;
}
/* The clip window must be exactly one line tall — putting overflow:hidden on
   .nav-link instead lets its vertical padding expose the duplicate label. */
.nav-link .nl-clip { display: block; overflow: hidden; }
.nav-link .nl-flip {
  display: block;
  position: relative;
  white-space: nowrap;              /* a 2-line wrap would break translateY(-100%) */
  transition: transform .45s var(--ease);
}
.nav-link .nl-flip::after {
  content: attr(data-t);
  position: absolute;
  left: 0; top: 100%;
  width: 100%;
  color: var(--ink);
}
.nav-link:hover .nl-flip { transform: translateY(-100%); }
.nav-link.active { color: var(--ink); }
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 2px; right: 2px; bottom: 3px;
  height: 2px;
  background: var(--vermilion);
  border-radius: 2px;
}

.nav-right { display: flex; align-items: center; gap: 12px; }

/* Platform dropdown */
.nav-drop { position: relative; }
.nav-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 330px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-m);
  box-shadow: var(--sh-l);
  padding: 9px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility .35s;
}
.nav-drop:hover .nav-panel, .nav-drop:focus-within .nav-panel { opacity: 1; visibility: visible; transform: none; }
.np-item { display: flex; gap: 12px; align-items: flex-start; padding: 11px 12px; border-radius: 11px; transition: background-color .3s var(--ease); }
.np-item:hover { background: var(--paper-2); }
.np-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; background: var(--ink); color: var(--paper); }
.np-ic svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.np-t { font-family: var(--display); font-weight: 700; font-size: .84rem; letter-spacing: -.01em; }
.np-d { font-size: .74rem; color: var(--text-mute); line-height: 1.4; margin-top: 1px; }

/* Burger */
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; place-items: center; background: var(--ink); }
.burger i { display: block; width: 17px; height: 1.6px; background: var(--paper); transition: transform .45s var(--ease), opacity .3s; }
.burger i + i { margin-top: 4.6px; }
body.menu-open .burger i:nth-child(1) { transform: translateY(6.2px) rotate(45deg); }
body.menu-open .burger i:nth-child(2) { opacity: 0; }
body.menu-open .burger i:nth-child(3) { transform: translateY(-6.2px) rotate(-45deg); }

/* Mobile menu */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 790;
  background: var(--ink);
  color: var(--paper);
  padding: 100px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: circle(0% at calc(100% - 44px) 44px);
  transition: clip-path .8s var(--ease-io);
  overflow-y: auto;
}
body.menu-open .mmenu { clip-path: circle(150% at calc(100% - 44px) 44px); }
.mm-link {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.9rem, 8vw, 3rem);
  font-weight: 700;
  letter-spacing: -.04em;
  padding: 7px 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .5s var(--ease), transform .6s var(--ease), color .3s;
}
body.menu-open .mm-link { opacity: 1; transform: none; }
.mm-link:hover { color: var(--vermilion); }
.mm-link .mm-i { font-family: var(--mono); font-size: .6rem; color: var(--text-inv-mute); vertical-align: super; margin-right: 10px; }
.mm-foot { border-top: 1px solid var(--line-inv); padding-top: 22px; margin-top: 34px; }
.mm-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mm-app { border: 1px solid var(--line-inv); border-radius: 12px; padding: 13px 12px; font-family: var(--display); font-size: .68rem; font-weight: 600; letter-spacing: .04em; text-align: center; transition: background-color .3s, color .3s; }
.mm-app:hover { background: var(--paper); color: var(--ink); }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  left: 14px; right: 14px; bottom: 14px;
  z-index: 700;
  display: none;
  gap: 9px;
  transform: translateY(140%);
  transition: transform .6s var(--ease);
}
.sticky-cta.show { transform: none; }
.sticky-cta .btn { flex: 1; padding: 1.15em 1em; box-shadow: var(--sh-l); }

@media (max-width: 1080px) {
  .nav-links, .nav-drop, .nav-right .btn { display: none; }
  .burger { display: grid; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 0; }
}

/* ---------- Footer ---------------------------------------------------- */
.footer { background: var(--ink); color: var(--text-inv); padding-top: clamp(64px, 8vw, 110px); overflow: hidden; }
.foot-cta { padding-bottom: clamp(60px, 8vw, 110px); border-bottom: 1px solid var(--line-inv); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-block: clamp(46px, 6vw, 74px); }
.foot-h { font-family: var(--display); font-size: .66rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--text-inv-mute); margin-bottom: 18px; }
.foot-l { display: block; padding: 6px 0; color: var(--text-inv-soft); font-size: .92rem; transition: color .3s, transform .4s var(--ease); }
.foot-l:hover { color: var(--paper); transform: translateX(5px); }
.foot-bot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 26px; border-top: 1px solid var(--line-inv); font-size: .78rem; color: var(--text-inv-mute); }
.foot-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 16vw, 15rem);
  letter-spacing: -.06em;
  line-height: .78;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247,245,240,.16);
  white-space: nowrap;
  user-select: none;
  padding-bottom: 18px;
}

/* Demo notice band */
.demo-band {
  background: var(--ink-2);
  color: var(--text-inv-mute);
  font-size: .72rem;
  letter-spacing: .04em;
  padding: 13px 0;
  text-align: center;
  border-bottom: 1px solid var(--line-inv-soft);
}
.demo-band b { color: var(--gold); font-weight: 600; }

/* ---------- Utility --------------------------------------------------- */
.tac { text-align: center; }
.mxa { margin-inline: auto; }
.rel { position: relative; }
.ovh { overflow: hidden; }
.nowrap { white-space: nowrap; }
.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.mt-s { margin-top: 14px } .mt-m { margin-top: 26px } .mt-l { margin-top: 46px }

@media (max-width: 1080px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  body { font-size: 16px; }
}
