/* ==========================================================================
   tharish.site — neon-coast night theme
   Motion rules: transforms + opacity, paused offscreen, full reduced-motion
   ========================================================================== */

:root {
  --night: #05060d;
  --navy: #0a0f24;
  --navy-2: #121a3a;
  --ink: #eef1ff;
  --muted: #b0b7d6;
  --dim: #8f98bd;
  --line: rgba(170, 182, 255, .14);
  --line-2: rgba(170, 182, 255, .26);
  --cyan: #3ef2ff;
  --violet: #a68bff;
  --violet-deep: #6b3cff;
  --coral: #ff7a85;
  --sun: #ffb36b;
  --mint: #5ef0c8;

  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4.5vw, 56px);
  --maxw: 1240px;
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  background: var(--night);
}
html.rm { scroll-behavior: auto; }
html.menu-open { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* film grain */
body::after {
  content: "";
  position: fixed;
  inset: -100px;
  z-index: 70;
  pointer-events: none;
  opacity: .075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .8 0 0 0 0 .82 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.4s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-30px, 18px); }
  40% { transform: translate(22px, -36px); }
  60% { transform: translate(-14px, 40px); }
  80% { transform: translate(36px, 12px); }
  100% { transform: translate(0, 0); }
}

img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code { font-family: var(--font-mono); font-size: .86em; padding: .1em .4em; border-radius: 6px; background: rgba(166, 139, 255, .14); color: #d9ccff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 8px;
  box-shadow: 0 0 0 6px rgba(62, 242, 255, .16);
}
::selection { background: var(--cyan); color: #041018; }

.i { width: 18px; height: 18px; flex: none; }
.sprite { position: absolute; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mono { font-family: var(--font-mono); }
.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  transform: translateY(-140%);
  background: var(--cyan); color: #041018; font-weight: 800;
  padding: 10px 16px; border-radius: 10px; text-decoration: none;
  transition: transform .25s var(--ease-out);
}
.skip:focus { transform: none; }

/* --------------------------------------------------------------------------
   Atmosphere — stacked environments cross-faded by scroll position
   -------------------------------------------------------------------------- */
.atmos { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: var(--night); overflow: hidden; }
.env { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease-io); }
.env.is-on { opacity: 1; }
.env--dusk {
  background:
    radial-gradient(110% 60% at 70% 105%, rgba(255, 122, 133, .2), transparent 62%),
    radial-gradient(90% 60% at 12% -10%, rgba(107, 60, 255, .3), transparent 62%),
    linear-gradient(180deg, #070a1c 0%, #0b0f26 55%, #150f2b 100%);
}
.env--algo {
  background:
    radial-gradient(70% 60% at 0% 25%, rgba(107, 60, 255, .32), transparent 62%),
    radial-gradient(60% 50% at 100% 85%, rgba(62, 242, 255, .12), transparent 60%),
    linear-gradient(180deg, #070821, #0b0b2c);
}
.env--travel {
  background:
    radial-gradient(75% 60% at 100% 15%, rgba(0, 170, 155, .26), transparent 62%),
    radial-gradient(70% 55% at 0% 100%, rgba(255, 122, 133, .16), transparent 60%),
    linear-gradient(180deg, #03141a, #061020);
}
.env--data {
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(62, 242, 255, .11), transparent 62%),
    linear-gradient(180deg, #050a16, #070d1d);
}
.env--night {
  background:
    radial-gradient(80% 60% at 85% 8%, rgba(166, 139, 255, .18), transparent 60%),
    radial-gradient(60% 50% at 8% 92%, rgba(62, 242, 255, .08), transparent 60%),
    linear-gradient(180deg, #05060f, #080a1b);
}
.env--sunset {
  background:
    radial-gradient(110% 70% at 50% 105%, rgba(255, 140, 110, .3), transparent 60%),
    radial-gradient(80% 60% at 50% 45%, rgba(255, 95, 168, .14), transparent 60%),
    linear-gradient(180deg, #0a0a22, #1a0f2c 70%, #2a1230);
}
.drift {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(40px); opacity: .5; will-change: transform;
}
.drift--a { left: -20vmax; top: 10vh; background: radial-gradient(circle, rgba(107, 60, 255, .22), transparent 65%); animation: drift-a 38s ease-in-out infinite alternate; }
.drift--b { right: -25vmax; bottom: -10vh; background: radial-gradient(circle, rgba(62, 242, 255, .12), transparent 65%); animation: drift-b 46s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(30vw, 20vh, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-26vw, -24vh, 0) scale(.9); } }

/* --------------------------------------------------------------------------
   Header + navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .4s, border-color .4s, backdrop-filter .4s;
}
.site-header.is-scrolled {
  background: rgba(6, 8, 20, .74);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.js .site-header { animation: header-in 1s var(--ease-out) .2s both; }
@keyframes header-in { from { transform: translateY(-100%); opacity: 0; } }
.bar { height: var(--header-h); display: flex; align-items: center; gap: 20px; }

.brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  text-decoration: none; font-family: var(--font-display); font-weight: 800;
  font-size: 27px; letter-spacing: .01em; line-height: 1; border-radius: 10px;
}
.brand-mark { width: 34px; height: 34px; }
.bm-ring { transform-origin: 20px 20px; animation: spin 24s linear infinite; }
.brand-dot { color: var(--coral); }
@keyframes spin { to { transform: rotate(360deg); } }

.nav { position: relative; }
.nav-list { display: flex; gap: 2px; }
.nav a {
  display: block; padding: 10px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
  color: var(--muted); text-decoration: none; transition: color .25s;
}
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="true"] { color: var(--ink); }
.nav-indicator {
  position: absolute; left: 0; bottom: 1px; width: 100px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet), var(--coral));
  box-shadow: 0 0 14px rgba(62, 242, 255, .7);
  transform-origin: 0 50%;
  transform: translateX(var(--x, 0px)) scaleX(var(--s, 0));
  opacity: var(--o, 0);
  transition: transform .55s var(--ease-out), opacity .35s;
  pointer-events: none;
}

.menu-btn {
  display: none; position: relative; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(10, 15, 36, .6); cursor: pointer;
}
.menu-btn span {
  position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .5s var(--ease-out);
}
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 26px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--header-h) + 28px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background:
    radial-gradient(120% 60% at 50% 110%, rgba(255, 122, 133, .32), transparent 60%),
    radial-gradient(80% 50% at 100% 0%, rgba(107, 60, 255, .35), transparent 60%),
    #070a1c;
  clip-path: circle(0px at var(--mx, calc(100% - 40px)) var(--my, 36px));
  transition: clip-path .75s var(--ease-io);
}
.mobile-menu.open { clip-path: circle(160vmax at var(--mx, calc(100% - 40px)) var(--my, 36px)); }
.mm-link {
  display: flex; align-items: baseline; gap: 14px; padding: 4px 0;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(46px, 14vw, 76px); line-height: 1.02; text-decoration: none;
  opacity: 0; transform: translateY(36px);
  transition: opacity .5s, transform .7s var(--ease-out), color .25s;
  transition-delay: 0s;
}
.mm-link small { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--cyan); letter-spacing: .1em; }
.mm-link:hover, .mm-link:focus-visible { color: var(--cyan); }
.mobile-menu.open .mm-link, .mobile-menu.open .mm-foot { opacity: 1; transform: none; transition-delay: calc(.18s + var(--i) * .06s); }
.mm-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 22px; border-top: 1px solid var(--line-2);
  opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .7s var(--ease-out);
}
.mm-foot > a { font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.mm-social { display: flex; gap: 10px; }
.mm-social a {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-2); background: rgba(5, 6, 13, .4);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  border: 1px solid var(--line-2); cursor: pointer;
  font-size: 15px; font-weight: 800; letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: transform .55s var(--ease-out), border-color .3s, color .3s, box-shadow .4s;
}
.btn--small { min-height: 44px; padding: 0 18px; font-size: 14px; }
.btn--primary {
  color: #06111a; border-color: transparent;
  background: linear-gradient(100deg, var(--cyan), #9be8ff 45%, var(--violet));
  box-shadow: 0 10px 30px -12px rgba(62, 242, 255, .6);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--sun), var(--coral) 50%, var(--violet));
  opacity: 0; transition: opacity .45s;
}
.btn--primary:hover::before, .btn--primary:focus-visible::before { opacity: 1; }
.btn--primary:hover, .btn--primary:focus-visible { box-shadow: 0 14px 40px -12px rgba(255, 122, 133, .7); }
.btn--ghost { color: var(--ink); background: rgba(10, 15, 36, .5); }
.btn--ghost::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(62, 242, 255, .2), rgba(166, 139, 255, .22));
  transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.btn--ghost:hover::before, .btn--ghost:focus-visible::before { transform: none; }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: rgba(62, 242, 255, .55); }
.btn .arrow { transition: transform .45s var(--ease-out); }
.btn:hover .arrow, .btn:focus-visible .arrow { transform: translate(3px, -3px); }
.btn:hover .arrow--down, .btn:focus-visible .arrow--down { transform: translateY(3px); }
.btn:active { transform: scale(.97); }

/* --------------------------------------------------------------------------
   Shared typography
   -------------------------------------------------------------------------- */
.section { position: relative; padding: clamp(96px, 15vh, 168px) 0; }
.kicker {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--cyan);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.h2 {
  margin-top: 18px;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(54px, 8.6vw, 132px); line-height: .88; letter-spacing: 0;
}
.h2 .line { display: block; overflow: hidden; padding-bottom: .05em; margin-bottom: -.05em; }
.h2 .line > span { display: inline-block; }
.grad-text {
  background: linear-gradient(92deg, var(--sun), var(--coral) 40%, var(--violet) 80%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); max-width: 38rem; }
.mini-h {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 10px;
}

.tag {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 5px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--line-2); color: var(--ink); background: rgba(5, 6, 13, .55);
}
.tag::before { content: ""; width: 8px; height: 8px; flex: none; }
.tag--real::before { background: var(--mint); border-radius: 2px; box-shadow: 0 0 8px var(--mint); }
.tag--illus::before { border: 1.5px dashed var(--violet); border-radius: 50%; }
.tag--plain::before { background: var(--cyan); border-radius: 50%; }
.tag--cert { border-color: rgba(255, 179, 107, .5); }
.tag--cert::before { background: var(--sun); border-radius: 50%; box-shadow: 0 0 10px var(--sun); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 600; color: var(--ink); background: rgba(10, 15, 36, .45);
}

/* reveal system (only when JS runs) */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 30px, 0); }
.js [data-reveal].in {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-lines] .line > span { transform: translateY(108%); }
.js [data-lines].in .line > span { transform: none; transition: transform 1.15s var(--ease-out) calc(var(--l, 0) * 90ms); }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 28px) 0 28px;
  --px: 0; --py: 0; --exit: 0;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.js .hero-canvas { opacity: 0; transition: opacity 1.4s ease .05s; }
.js.is-ready .hero-canvas { opacity: 1; }

.hero-fallback { display: none; position: absolute; inset: 0; z-index: -2; }
.no-canvas .hero-fallback, .no-js .hero-fallback { display: block; }
.hf-sun {
  position: absolute; right: 12%; top: 30%; width: min(36vw, 420px); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(180deg, #ffe39a, #ffb36b 35%, #ff7a85 65%, #c64bd8);
  -webkit-mask: linear-gradient(180deg, #000 55%, transparent 55% 59%, #000 59% 66%, transparent 66% 71%, #000 71% 78%, transparent 78% 84%, #000 84%);
  mask: linear-gradient(180deg, #000 55%, transparent 55% 59%, #000 59% 66%, transparent 66% 71%, #000 71% 78%, transparent 78% 84%, #000 84%);
  box-shadow: 0 0 120px rgba(255, 122, 133, .5);
}
.hf-floor {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background:
    repeating-linear-gradient(90deg, rgba(166, 139, 255, .18) 0 1px, transparent 1px 80px),
    repeating-linear-gradient(180deg, rgba(62, 242, 255, .16) 0 1px, transparent 1px 36px),
    linear-gradient(180deg, #0b0d26, #05060d);
  border-top: 1px solid rgba(62, 242, 255, .5);
}

.palms { position: absolute; bottom: 0; z-index: -1; height: min(76vh, 680px); width: auto; pointer-events: none; overflow: visible; }
.palms--left { left: max(-170px, -12vw); transform: translate3d(calc(var(--px) * -26px), calc(var(--py) * -8px + var(--exit) * 60px), 0); }
.palms--right { right: max(-110px, -10vw); transform: translate3d(calc(var(--px) * -30px), calc(var(--py) * -8px + var(--exit) * 70px), 0); }
.palm { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 9s ease-in-out infinite alternate; }
.palm--far { opacity: .78; animation-duration: 11s; animation-delay: -3s; }
@keyframes sway { from { transform: rotate(-1.4deg); } to { transform: rotate(1.6deg); } }

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  grid-template-areas: "copy visual"; align-items: center; gap: clamp(16px, 4vw, 64px);
}
.hero-copy { grid-area: copy; position: relative; transform: translate3d(calc(var(--px) * -6px), calc(var(--exit) * -50px), 0); }
/* soft scrim keeps body copy readable over the horizon grid and palms */
.hero-copy::before {
  content: ""; position: absolute; inset: -10% -14% -14% -40%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(5, 6, 13, .66), rgba(5, 6, 13, .3) 60%, rgba(5, 6, 13, 0));
}
.hero-visual { grid-area: visual; position: relative; width: min(100%, 520px); aspect-ratio: 1; justify-self: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(5, 6, 13, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid var(--coral);
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.hero-name {
  position: relative; margin: 20px 0 12px;
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(88px, 15.5vw, 236px); line-height: .8; letter-spacing: .005em;
}
.hn-main { display: flex; }
.ch { display: inline-block; overflow: hidden; padding: .06em .005em .02em; margin: -.06em -.005em -.02em; }
.ch-in {
  display: inline-block;
  background: linear-gradient(180deg, #ffffff 0%, #ece8ff 42%, #ffc1ad 78%, #ff7a85 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hn-echo {
  position: absolute; left: 0; top: 0; z-index: -1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(62, 242, 255, .4);
  transform: translate3d(calc(var(--px) * 16px + .035em), calc(var(--py) * 10px + .035em), 0);
}
.js .ch-in { transform: translateY(110%); }
.js.is-ready .ch-in { transform: none; transition: transform .9s var(--ease-out) calc(.06s + var(--i) * .045s); }
.js .hn-echo { opacity: 0; }
.js.is-ready .hn-echo { opacity: 1; transition: opacity 1.2s ease .7s; }

.hero-tag { font-size: clamp(22px, 2.5vw, 34px); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 16px; }
.q { font-style: normal; }
.q--what { color: var(--violet); }
.q--try { background: linear-gradient(90deg, var(--cyan), #b5fff6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.caret { display: inline-block; width: .09em; height: .95em; margin-left: .12em; vertical-align: -.12em; background: var(--cyan); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-intro { max-width: 35rem; color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.js [data-hero] { opacity: 0; transform: translate3d(0, 22px, 0); }
.js.is-ready [data-hero] { opacity: 1; transform: none; transition: opacity .7s ease, transform .9s var(--ease-out); transition-delay: var(--d, 0s); }

/* monogram */
.monogram {
  position: absolute; inset: 0;
  transform: translate3d(calc(var(--px) * 20px), calc(var(--py) * 14px + var(--exit) * 90px), 0) scale(calc(1 - var(--exit) * .12));
}
.mg { width: 100%; height: 100%; overflow: visible; }
.mg-l { transform-box: view-box; transform-origin: 200px 200px; }
.mg-l--back { animation: spin 90s linear infinite; }
.mg-l--text { animation: spin 46s linear infinite reverse; }
.mg-text { font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px; fill: rgba(220, 226, 255, .72); }
.mg-l--orbits { transform: translate(calc(var(--px) * 6px), calc(var(--py) * 6px)); }
.mg-l--core { transform: translate(calc(var(--px) * -8px), calc(var(--py) * -6px)); }
.mg-glyph { filter: drop-shadow(0 0 14px rgba(62, 242, 255, .45)); }
.mg-caption { font-family: var(--font-mono); font-size: 13px; fill: rgba(200, 210, 255, .5); }
.mg-scan { animation: scan 4.5s var(--ease-io) infinite; }
@keyframes scan { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(178px); opacity: 0; } }
.mg-draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .mg-draw { stroke-dashoffset: 1; }
.js.is-ready .mg-draw { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ease-out) .2s; }
.js .mg-l--core, .js .mg-l--orbits, .js .mg-l--text, .js .mg-ticks { opacity: 0; }
.js.is-ready .mg-l--core { opacity: 1; transition: opacity 1s ease .35s; }
.js.is-ready .mg-l--orbits { opacity: 1; transition: opacity 1.4s ease .6s; }
.js.is-ready .mg-l--text { opacity: 1; transition: opacity 1.6s ease .8s; }
.js.is-ready .mg-ticks { opacity: 1; transition: opacity 1.6s ease .5s; }

.hud {
  position: absolute; display: flex; flex-direction: column; gap: 2px;
  padding: 8px 12px; border-left: 1px solid var(--cyan);
  background: linear-gradient(90deg, rgba(5, 6, 13, .7), rgba(5, 6, 13, 0));
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.hud b { color: var(--ink); font-weight: 500; }
.hud--a { left: -2%; top: 8%; transform: translate3d(calc(var(--px) * 30px), calc(var(--py) * 20px), 0); }
.hud--b { right: -2%; bottom: 10%; border-left-color: var(--coral); transform: translate3d(calc(var(--px) * 34px), calc(var(--py) * 22px), 0); }
.js .hud { opacity: 0; }
.js.is-ready .hud { opacity: 1; transition: opacity 1s ease 1s; }

.hero-foot {
  position: relative; z-index: 1;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-top: clamp(28px, 6vh, 64px);
}
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); gap: clamp(16px, 3vw, 48px); }
.facts li { display: flex; flex-direction: column; gap: 4px; padding-left: 14px; border-left: 1px solid var(--line-2); }
.fact-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.fact-v { font-size: 14px; font-weight: 600; color: var(--ink); }
.scroll-cue {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px; flex: none;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 6px;
}
.scroll-cue i { position: relative; width: 1px; height: 46px; background: var(--line-2); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 16px; background: var(--cyan); animation: cue 2s var(--ease-io) infinite; }
@keyframes cue { from { transform: translateY(-16px); } to { transform: translateY(46px); } }

/* --------------------------------------------------------------------------
   ABOUT
   -------------------------------------------------------------------------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.about-lead { position: sticky; top: calc(var(--header-h) + 40px); }
.badge-ring { width: 150px; margin-top: 40px; }
.badge-ring text { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1px; fill: var(--muted); }
.br-spin { transform-box: view-box; transform-origin: 80px 80px; animation: spin 22s linear infinite; }
.about-body > p { color: var(--muted); max-width: 36rem; }
.about-body > p + p { margin-top: 18px; }
.about-body .about-big { font-size: clamp(21px, 2vw, 28px); line-height: 1.45; font-weight: 600; color: var(--ink); margin-bottom: 26px; letter-spacing: -.01em; }
.principles { margin-top: 48px; border-top: 1px solid var(--line); }
.principles li {
  position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.principles li::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--violet), transparent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--ease-out) .25s;
}
.principles li.in::after { transform: scaleX(1); }
.no-js .principles li::after { transform: scaleX(1); }
.pr-n { font-family: var(--font-mono); font-size: 13px; color: var(--coral); }
.principles h3 { font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 36px); font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: .01em; }
.principles p { color: var(--muted); margin-top: 6px; font-size: 15px; }

/* --------------------------------------------------------------------------
   WORK
   -------------------------------------------------------------------------- */
.work { padding-bottom: 40px; }
.work-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-top: 32px; }
.legend { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.project { position: relative; padding: clamp(90px, 14vh, 150px) 0 clamp(40px, 6vh, 70px); --acc: var(--cyan); --acc-2: var(--violet); }
.project--algo { --acc: #8f8bff; --acc-2: var(--cyan); }
.project--travel { --acc: var(--mint); --acc-2: var(--coral); }
.project--data { --acc: var(--cyan); --acc-2: #dfe5ff; }

.p-head { position: relative; display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 40px); margin-bottom: clamp(36px, 5vw, 64px); }
.p-index {
  font-family: var(--font-display); font-weight: 900; line-height: .75;
  font-size: clamp(96px, 14vw, 210px); color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--acc) 55%, transparent);
  flex: none; user-select: none;
}
.p-head .kicker { color: var(--acc); }
.p-title {
  margin-top: 10px; font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(60px, 9vw, 140px); line-height: .84; letter-spacing: .005em;
}
.p-title--long { font-size: clamp(46px, 6.6vw, 104px); }
.p-title-alt {
  background: linear-gradient(92deg, var(--acc), var(--acc-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.p-sub { margin-top: 12px; font-size: clamp(16px, 1.3vw, 19px); color: var(--muted); max-width: 40rem; }

.p-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.p-grid--flip .p-stage-wrap { order: 2; }
.p-stage-wrap { position: sticky; top: calc(var(--header-h) + 28px); }
.p-body { display: flex; flex-direction: column; gap: 26px; }
.p-summary { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink); font-weight: 500; }
.feature-list { display: grid; gap: 10px; }
.feature-list li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15.5px; }
.feature-list li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; border-radius: 3px;
  border: 1.5px solid var(--acc); transform: rotate(45deg);
}
.feature-list em { font-style: normal; color: var(--ink); font-weight: 700; }
.p-how p, .p-role p { color: var(--muted); font-size: 15.5px; }
.p-role { padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 10%, transparent), rgba(5, 6, 13, .3)); }
.p-role strong { color: var(--ink); }
.p-role--team { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px 24px; }
.p-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* stages */
.stage {
  position: relative; overflow: hidden; border-radius: 22px;
  border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(18, 26, 58, .78), rgba(6, 8, 20, .86));
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
  padding: clamp(16px, 2.2vw, 26px);
  transform-style: preserve-3d;
  transition: transform .6s var(--ease-out);
}
.stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at var(--gx, 30%) var(--gy, 0%), color-mix(in srgb, var(--acc) 18%, transparent), transparent 70%);
}
.stage-top { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.stage-name { font-size: 12px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* AlgoScope sorter */
.sorter { position: relative; height: clamp(200px, 26vw, 290px); margin: 6px 0 14px; --gap: 6px; --n: 12; }
.sorter i {
  position: absolute; left: 0; bottom: 0;
  width: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n));
  height: calc(var(--v) * 1% * .92 + 6%);
  display: flex; justify-content: center; padding-top: 6px;
  border-radius: 8px 8px 3px 3px;
  font: 500 11px/1 var(--font-mono); font-style: normal; color: rgba(255, 255, 255, .85);
  background: linear-gradient(180deg, rgba(143, 139, 255, .95), rgba(107, 60, 255, .35));
  transform: translateX(calc(var(--pos, 0) * (100% + var(--gap))));
  transition: transform .42s var(--ease-out), background-color .25s, box-shadow .25s;
}
.no-js .sorter i { position: relative; display: inline-flex; vertical-align: bottom; margin-right: 4px; transform: none; }
.sorter i.is-cmp { background: linear-gradient(180deg, #7ff8ff, rgba(62, 242, 255, .35)); box-shadow: 0 0 22px rgba(62, 242, 255, .55); color: #04161c; }
.sorter i.is-swap { background: linear-gradient(180deg, #ffb0b6, rgba(255, 122, 133, .4)); box-shadow: 0 0 22px rgba(255, 122, 133, .6); color: #2a0610; }
.sorter i.is-done { background: linear-gradient(180deg, #8cffdc, rgba(94, 240, 200, .3)); color: #032016; }
.sorter-status { position: relative; min-height: 2.6em; font-size: 13px; color: var(--ink); }
.sorter-meta { position: relative; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 6px 0 16px; }
.sorter-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.sorter-legend li { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lg--idle { background: #8f8bff; } .lg--cmp { background: var(--cyan); } .lg--swap { background: var(--coral); } .lg--done { background: var(--mint); }
.sorter-count { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.sorter-count b { color: var(--ink); font-weight: 500; }
.sorter-controls { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(5, 6, 13, .55); }
.seg-btn {
  min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--muted); transition: background-color .3s, color .3s;
}
.seg-btn:hover { color: var(--ink); }
.seg-btn[aria-pressed="true"] { background: linear-gradient(100deg, #8f8bff, var(--cyan)); color: #06111a; }
.ctl { display: inline-flex; gap: 8px; }
.ctl-btn {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(5, 6, 13, .55); transition: border-color .3s, background-color .3s, transform .3s var(--ease-out);
}
.ctl-btn:hover { border-color: var(--cyan); background: rgba(62, 242, 255, .12); }
.ctl-btn:active { transform: scale(.92); }

/* real screenshot */
.shot { margin-top: clamp(48px, 7vw, 90px); display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: end; }
.shot-frame {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); background: #0b0f26;
  box-shadow: 0 50px 90px -50px rgba(107, 60, 255, .7);
  transition: transform .6s var(--ease-out);
}
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #10152f; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3160; }
.shot-bar i:first-child { background: var(--coral); }
.shot-bar span { margin-left: 10px; font: 12px var(--font-mono); color: var(--muted); }
.shot-frame img { width: 100%; max-height: 560px; object-fit: cover; object-position: top; }
.shot figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; color: var(--muted); max-width: 26rem; padding-bottom: 10px; }

/* PackLight */
.route-map { position: relative; width: 100%; height: auto; }
.travel-row { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: 6px; }
.travel-side { display: flex; flex-direction: column; gap: 16px; padding-bottom: 6px; }
.travel-pills { display: flex; flex-wrap: wrap; gap: 6px; max-width: 280px; }
.travel-pills li { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #d8fff6; border: 1px solid rgba(94, 240, 200, .3); background: rgba(94, 240, 200, .07); }
.rm-route { stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgba(94, 240, 200, .5)); }
.js .rm-route { stroke-dashoffset: 1; }
.js .in .rm-route { stroke-dashoffset: 0; transition: stroke-dashoffset 3.2s var(--ease-io) .2s; }
.rm-city circle { fill: #eafffb; }
.rm-city .rm-pulse { fill: none; stroke: var(--mint); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: ping 2.6s var(--ease-out) infinite; animation-delay: var(--d); }
.rm-city text { font: 500 18px var(--font-mono); fill: var(--ink); letter-spacing: .02em; paint-order: stroke; stroke: rgba(4, 12, 18, .8); stroke-width: 4px; }
.rm-plane { filter: drop-shadow(0 0 8px rgba(62, 242, 255, .9)); }
.phone {
  position: relative; flex: none;
  width: clamp(168px, 15vw, 196px); padding: 22px 12px 12px; margin-right: 4px;
  border-radius: 26px; border: 1px solid rgba(200, 255, 245, .28);
  background: linear-gradient(170deg, #0d2b30, #071419);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 0 5px rgba(5, 6, 13, .7);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.ph-notch { position: absolute; top: 8px; left: 50%; width: 46px; height: 6px; margin-left: -23px; border-radius: 6px; background: rgba(0, 0, 0, .6); }
.ph-k { font: 500 9.5px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mint); margin-bottom: 8px; }
.ph-list { display: grid; gap: 5px; }
.ph-list li { position: relative; display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600; color: #e6fffa; padding: 5px 7px; border-radius: 8px; background: rgba(255, 255, 255, .05); }
.ph-list i { position: relative; width: 13px; height: 13px; border-radius: 4px; border: 1.5px solid rgba(94, 240, 200, .6); flex: none; }
.ph-list i::after {
  content: ""; position: absolute; left: 3px; top: 0; width: 4px; height: 7px;
  border: solid #04161c; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0);
}
.ph-list li { animation: check-row 10s linear infinite; animation-delay: calc(var(--n) * 1.1s); }
.ph-list li i { animation: check-box 10s linear infinite; animation-delay: calc(var(--n) * 1.1s); }
.ph-list li i::after { animation: check-tick 10s var(--ease-out) infinite; animation-delay: calc(var(--n) * 1.1s); }
@keyframes check-box { 0%, 6% { background: transparent; } 9%, 86% { background: var(--mint); border-color: var(--mint); } 92%, 100% { background: transparent; } }
@keyframes check-tick { 0%, 6% { transform: rotate(45deg) scale(0); } 10%, 86% { transform: rotate(45deg) scale(1); } 92%, 100% { transform: rotate(45deg) scale(0); } }
@keyframes check-row { 0%, 6% { opacity: 1; } 10%, 86% { opacity: .6; } 92%, 100% { opacity: 1; } }
.ph-weather { display: flex; align-items: center; gap: 8px; margin-top: 9px; padding: 7px; border-radius: 10px; background: rgba(255, 122, 133, .12); font-size: 10.5px; font-weight: 600; line-height: 1.25; color: #ffe8ea; }
.ph-weather small { font-weight: 500; color: #ffc4c9; }
.ph-sun { width: 18px; height: 18px; border-radius: 50%; flex: none; background: radial-gradient(circle, #ffd27a 40%, transparent 42%), repeating-conic-gradient(#ffd27a 0 12deg, transparent 12deg 45deg); animation: spin 12s linear infinite; }
.ph-nav { display: flex; justify-content: space-around; margin-top: 10px; }
.ph-nav i { width: 16px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
.ph-nav i.on { background: var(--mint); }
.app-icon { display: flex; align-items: center; gap: 12px; }
.app-icon img { width: 56px; height: 56px; border-radius: 15px; box-shadow: 0 10px 24px -8px rgba(0, 120, 110, .8); }
.app-icon figcaption { display: flex; flex-direction: column; gap: 4px; font: 500 11px var(--font-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* Stock data viz */
.cm {
  position: relative; display: grid; gap: 8px; margin: 4px 0 22px; padding: 6px 0 0 28px;
  grid-template-columns: auto 1fr 1fr;
  grid-template-areas: ". h1 h2" "r1 a b" "r2 c d";
}
.cm-axis { position: absolute; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.cm-axis--x { top: -14px; right: 0; }
.cm-axis--y { left: 0; bottom: 30%; transform: rotate(-90deg); transform-origin: 0 0; white-space: nowrap; }
.cm-h { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; }
.cm-h--row { align-self: center; text-align: right; padding-right: 4px; }
.cm-cell {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
  aspect-ratio: 1.6; border-radius: 14px; border: 1px solid var(--line); background: rgba(5, 6, 13, .45); overflow: hidden;
}
.cm-cell i {
  position: absolute; inset: 12%; border-radius: 10px; background: rgba(255, 122, 133, .26);
  transform: scale(var(--s)); transition: transform 1.4s var(--ease-out);
}
.cm-cell.is-hit i { background: rgba(62, 242, 255, .28); box-shadow: 0 0 30px rgba(62, 242, 255, .2); }
.js .stage--data .cm-cell i { transform: scale(0); }
.js .in .stage--data .cm-cell i { transform: scale(var(--s)); }
.cm-cell:nth-of-type(2) i { transition-delay: .1s; } .cm-cell:nth-of-type(3) i { transition-delay: .2s; } .cm-cell:nth-of-type(4) i { transition-delay: .3s; }
.cm-cell b { position: relative; font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; }
.cm-cell small { position: relative; font: 500 10.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.auc { margin-bottom: 22px; }
.auc-top { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.auc-top b { color: var(--ink); font-weight: 500; }
.auc-track { position: relative; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); }
.auc-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--violet), var(--cyan)); transform-origin: 0 50%; transform: scaleX(var(--p)); transition: transform 1.6s var(--ease-out) .3s; }
.auc-mark { position: absolute; top: -5px; left: 0; width: 2px; height: 18px; background: #fff; box-shadow: 0 0 10px #fff; transform: translateX(calc(var(--p) * var(--w, 300px))); transition: transform 1.6s var(--ease-out) .3s; }
.js .stage--data .auc-fill { transform: scaleX(0); }
.js .stage--data .auc-mark { transform: translateX(0); }
.js .in .stage--data .auc-fill { transform: scaleX(var(--p)); }
.js .in .stage--data .auc-mark { transform: translateX(calc(var(--p) * var(--w, 300px))); }
.auc-scale { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10.5px; color: var(--dim); }
.pipe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px; }
.pipe span { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: rgba(5, 6, 13, .6); color: var(--ink); }
.pipe i { position: relative; width: 22px; height: 1px; background: var(--line-2); overflow: hidden; }
.pipe i::after { content: ""; position: absolute; left: 0; top: -1px; width: 8px; height: 3px; border-radius: 3px; background: var(--cyan); animation: flow 1.8s linear infinite; }
.pipe i:nth-of-type(2)::after { animation-delay: .6s; } .pipe i:nth-of-type(3)::after { animation-delay: 1.2s; }
@keyframes flow { from { transform: translateX(-10px); } to { transform: translateX(24px); } }

.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.metrics div { padding: 18px 16px; border-right: 1px solid var(--line); background: rgba(5, 6, 13, .35); }
.metrics div:last-child { border-right: 0; }
.metrics dd { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 3.2vw, 48px); line-height: 1; color: var(--cyan); }
.metrics dt { font-size: 12px; color: var(--muted); margin-top: 0; order: 2; }
.metrics div { display: flex; flex-direction: column-reverse; gap: 8px; }
.footnote { font-size: 13px; color: var(--dim); margin-top: -8px; }

.acc { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-2); }
.acc details { border-bottom: 1px solid var(--line-2); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 18px;
  padding: 24px 0; font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: clamp(26px, 3vw, 40px); line-height: 1; transition: color .3s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .mono { font-size: 13px; font-weight: 500; color: var(--cyan); letter-spacing: .1em; }
.acc summary::after {
  content: ""; margin-left: auto; width: 18px; height: 18px; flex: none;
  background: linear-gradient(var(--cyan), var(--cyan)) center / 100% 2px no-repeat, linear-gradient(var(--cyan), var(--cyan)) center / 2px 100% no-repeat;
  transition: transform .45s var(--ease-out);
}
.acc details[open] > summary::after { transform: rotate(135deg); }
.acc summary:hover { color: var(--cyan); }
.acc-body { padding: 0 0 30px; color: var(--muted); }
.acc-body p { max-width: 50rem; }
.acc-body p + p { margin-top: 12px; }
.acc details[open] .acc-body { animation: acc-in .6s var(--ease-out); }
@keyframes acc-in { from { opacity: 0; transform: translateY(-8px); } }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.steps h4 { font-size: 17px; color: var(--ink); margin: 8px 0 6px; }
.steps p { font-size: 15px; }
.step-k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.result-link { display: block; margin-top: 22px; max-width: 900px; text-decoration: none; border-radius: 14px; }
.result-link img { border-radius: 14px; border: 1px solid var(--line-2); transition: transform .6s var(--ease-out), box-shadow .6s; }
.result-link:hover img { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(62, 242, 255, .5); }
.result-cap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; color: var(--ink); font-weight: 600; }

.resources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(32px, 4vw, 48px); }
.res {
  position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%;
  padding: 22px 20px 22px; border-radius: 16px; text-decoration: none; overflow: hidden;
  border: 1px solid var(--line-2); background: rgba(10, 15, 36, .55);
  transition: transform .5s var(--ease-out), border-color .3s;
}
.res::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(140deg, rgba(62, 242, 255, .16), rgba(166, 139, 255, .12) 60%, transparent);
  opacity: 0; transition: opacity .4s;
}
.res { isolation: isolate; }
.res:hover, .res:focus-visible { transform: translateY(-5px); border-color: rgba(62, 242, 255, .5); }
.res:hover::before, .res:focus-visible::before { opacity: 1; }
.res-k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.res strong { font-size: 17px; }
.res-d { font-size: 13.5px; color: var(--muted); }
.res-i { position: absolute; right: 18px; top: 20px; color: var(--muted); transition: transform .45s var(--ease-out), color .3s; }
.res:hover .res-i { transform: translate(2px, -2px); color: var(--cyan); }

/* --------------------------------------------------------------------------
   SKILLS — constellation
   -------------------------------------------------------------------------- */
.skills-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px; margin-bottom: clamp(40px, 5vw, 64px); }
.sky {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(20px, 3vw, 40px);
  padding: clamp(18px, 3vw, 36px); border-radius: 26px; border: 1px solid var(--line);
  background:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255, 255, 255, .5), transparent),
    radial-gradient(1px 1px at 72% 12%, rgba(255, 255, 255, .45), transparent),
    radial-gradient(1.4px 1.4px at 38% 66%, rgba(255, 255, 255, .4), transparent),
    radial-gradient(1px 1px at 88% 74%, rgba(255, 255, 255, .45), transparent),
    radial-gradient(1px 1px at 56% 40%, rgba(255, 255, 255, .35), transparent),
    linear-gradient(160deg, rgba(14, 18, 44, .7), rgba(5, 6, 13, .6));
}
.constellation { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(26px, 4vw, 54px) clamp(18px, 3vw, 40px); }
.cst-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cst-lines line { stroke: var(--lc); stroke-opacity: .28; stroke-width: 1; transition: stroke-opacity .4s, stroke-width .4s; }
.cst-lines line.is-chain { stroke-dasharray: 2 5; stroke-opacity: .18; }
.cst-lines line.hot { stroke-opacity: .85; stroke-width: 1.4; }
.js .sky:not(.in) .cst-lines { opacity: 0; }
.cst-lines { transition: opacity 1.6s ease .4s; }
.cluster { position: relative; z-index: 1; }
.cl-core {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  padding: 4px 12px 4px 0; border-radius: 999px; background: rgba(9, 11, 28, .96);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--c);
}
.cl-star { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: 0 0 18px var(--c), 0 0 4px #fff inset; }
.cl-nodes { display: flex; flex-wrap: wrap; gap: 18px 14px; }
.cl-nodes li:nth-child(even) { transform: translateY(14px); }
.cl-nodes li:nth-child(3n) { transform: translateY(-6px); }
.node {
  position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 42px;
  padding: 0 14px 0 10px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(170, 182, 255, .2); background: rgb(9, 11, 28);
  font-size: 14px; font-weight: 700; color: var(--ink);
  transition: border-color .3s, background-color .3s, transform .45s var(--ease-out), box-shadow .4s;
}
.node:hover { border-color: var(--c); transform: translateY(-2px); }
.node[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 16%, rgba(5, 6, 13, .8)); box-shadow: 0 0 26px -6px var(--c); }
.star { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); flex: none; }
.star::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--c); opacity: 0; animation: twinkle 4s ease-in-out infinite; }
.cl-nodes li:nth-child(2) .star::after { animation-delay: -1.1s; } .cl-nodes li:nth-child(3) .star::after { animation-delay: -2.2s; }
.cl-nodes li:nth-child(4) .star::after { animation-delay: -3s; } .cl-nodes li:nth-child(5) .star::after { animation-delay: -.6s; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.6); } 50% { opacity: .8; transform: scale(1.3); } }
.node[aria-pressed="true"] .star::after { animation: ping 1.8s var(--ease-out) infinite; opacity: 1; }

.skill-panel {
  position: relative; align-self: stretch; display: flex; flex-direction: column; gap: 12px;
  padding: 24px; border-radius: 20px; border: 1px solid var(--line-2);
  background: linear-gradient(170deg, rgba(18, 26, 58, .85), rgba(6, 8, 20, .9));
}
.sp-k { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--pc, var(--cyan)); }
.sp-name { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 4.4vw, 64px); line-height: .9; }
.sp-copy { color: var(--muted); }
.sp-link a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line-2); padding-bottom: 3px; transition: border-color .3s, color .3s; }
.sp-link a:hover { color: var(--cyan); border-color: var(--cyan); }
.skill-panel.swap > * { animation: panel-in .55s var(--ease-out) both; }
.skill-panel.swap > :nth-child(2) { animation-delay: .04s; } .skill-panel.swap > :nth-child(3) { animation-delay: .08s; } .skill-panel.swap > :nth-child(4) { animation-delay: .12s; }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }

.exploring { margin-top: clamp(40px, 5vw, 64px); }
.explore-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.explore-list li { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 16px; border: 1px dashed rgba(166, 139, 255, .4); background: rgba(5, 6, 13, .35); }
.explore-list strong { font-family: var(--font-display); font-size: 26px; font-weight: 800; text-transform: uppercase; line-height: 1; }
.explore-list span { color: var(--muted); font-size: 15px; }

/* --------------------------------------------------------------------------
   JOURNEY — timeline
   -------------------------------------------------------------------------- */
.journey-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.journey-lead { position: sticky; top: calc(var(--header-h) + 40px); }
.journey-lead .lede { margin-top: 24px; }
.journey .h2 { font-size: clamp(54px, 6.2vw, 108px); }
.timeline { position: relative; padding-left: 46px; }
.tl-rail { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.tl-fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--cyan), var(--violet), var(--coral)); transform-origin: 0 0; transform: scaleY(var(--tp, 1)); }
.js .tl-fill { transform: scaleY(var(--tp, 0)); }
.tl-item { position: relative; padding: 4px 0 46px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: -42px; top: 8px; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line-2); background: var(--night); transition: border-color .5s, box-shadow .5s, background-color .5s;
}
.tl-item.reached .tl-dot, .no-js .tl-dot { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 0 5px rgba(62, 242, 255, .15), 0 0 18px var(--cyan); }
.tl-date { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.tl-item h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3vw, 44px); line-height: .95; margin: 8px 0 8px; }
.tl-item > p:not(.tl-date) { color: var(--muted); margin-bottom: 12px; }
.tl-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: color .3s, border-color .3s, gap .3s; }
.tl-link:hover { color: var(--cyan); border-color: var(--cyan); gap: 12px; }

/* --------------------------------------------------------------------------
   CONTACT — sunset scene
   -------------------------------------------------------------------------- */
.contact { position: relative; isolation: isolate; overflow: hidden; padding: clamp(110px, 16vh, 180px) 0 clamp(200px, 30vh, 320px); --rise: 1; }
.contact-scene { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cs-sun {
  position: absolute; right: 8%; bottom: clamp(70px, 14vh, 150px); width: min(46vw, 460px); aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe39a, #ffb36b 30%, #ff7a85 58%, #c64bd8 85%);
  -webkit-mask: linear-gradient(180deg, #000 50%, transparent 50% 53%, #000 53% 59%, transparent 59% 63%, #000 63% 70%, transparent 70% 75%, #000 75% 83%, transparent 83% 89%, #000 89%);
  mask: linear-gradient(180deg, #000 50%, transparent 50% 53%, #000 53% 59%, transparent 59% 63%, #000 63% 70%, transparent 70% 75%, #000 75% 83%, transparent 83% 89%, #000 89%);
  opacity: .82;
  box-shadow: 0 0 120px rgba(255, 122, 133, .45);
  transform: translate3d(0, calc(38% + (1 - var(--rise)) * 50%), 0);
  will-change: transform;
}
.contact-scene::before {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 140%; height: 70%; transform: translateX(-50%);
  background: radial-gradient(50% 60% at 50% 100%, rgba(255, 122, 133, .35), transparent 70%);
}
.cs-sea {
  position: absolute; left: 0; right: 0; bottom: 0; height: clamp(70px, 14vh, 150px);
  background:
    repeating-linear-gradient(180deg, rgba(255, 160, 140, .22) 0 1px, transparent 1px 12px),
    linear-gradient(180deg, #1c0f2c, #08060f);
  border-top: 1px solid rgba(255, 179, 107, .55);
  box-shadow: 0 -1px 30px rgba(255, 122, 133, .45);
}
.cs-sea::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: min(50vw, 420px); height: 70%; transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, rgba(255, 190, 150, .45) 0 2px, transparent 2px 9px);
  -webkit-mask: radial-gradient(50% 100% at 50% 0, #000, transparent); mask: radial-gradient(50% 100% at 50% 0, #000, transparent);
  animation: shimmer 5s ease-in-out infinite alternate;
}
@keyframes shimmer { from { transform: translateX(-50%) scaleX(.85); opacity: .6; } to { transform: translateX(-50%) scaleX(1.08); opacity: 1; } }
.palms--c-left { left: max(-70px, -6vw); height: min(64vh, 560px); }
.palms--c-right { right: max(-90px, -8vw); height: min(52vh, 460px); }
.contact-inner { position: relative; }
.contact-title { font-size: clamp(56px, 9.6vw, 150px); }
.contact .lede { margin-top: 22px; color: #d2d6ee; }
.mail-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 36px; }
.mail-big {
  display: inline-flex; align-items: center; gap: 14px; padding: 14px 4px;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.6vw, 64px); line-height: 1;
  text-decoration: none; overflow-wrap: anywhere; border-bottom: 2px solid rgba(255, 179, 107, .6);
  transition: color .3s, border-color .3s, transform .55s var(--ease-out);
}
.mail-big .i { width: .7em; height: .7em; color: var(--sun); }
.mail-big:hover, .mail-big:focus-visible { color: var(--sun); border-color: var(--sun); }
.socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 40px; max-width: 880px; }
.social {
  display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 14px 18px; border-radius: 16px;
  text-decoration: none; border: 1px solid var(--line-2); background: rgba(8, 6, 20, .62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .3s, background-color .3s, transform .5s var(--ease-out);
}
.social .i { width: 22px; height: 22px; }
.so-name { font-weight: 800; font-size: 16px; }
.so-h { font-size: 12.5px; color: var(--muted); margin-left: auto; overflow-wrap: anywhere; text-align: right; }
.so-arrow { width: 18px !important; height: 18px !important; color: var(--muted); transition: transform .45s var(--ease-out), color .3s; }
.social:hover, .social:focus-visible { border-color: rgba(255, 179, 107, .6); background: rgba(40, 14, 40, .7); transform: translateY(-3px); }
.social:hover .so-arrow, .social:focus-visible .so-arrow { transform: translate(2px, -2px); color: var(--sun); }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer { position: relative; background: #040409; border-top: 1px solid rgba(255, 179, 107, .3); padding: 40px 0 34px; }
.foot-word {
  font-family: var(--font-display); font-weight: 900; text-transform: lowercase; line-height: .8;
  font-size: clamp(80px, 20vw, 300px); letter-spacing: -.01em; color: transparent;
  -webkit-text-stroke: 1px rgba(170, 182, 255, .3);
  user-select: none; white-space: nowrap; overflow: hidden; padding-bottom: .04em;
}
.foot-word span { color: var(--coral); -webkit-text-stroke: 0; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.foot-copy { font-size: 13.5px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: transparent; font-size: 13px; font-weight: 700; color: var(--ink);
  text-decoration: none; cursor: pointer; transition: border-color .3s, background-color .3s;
}
.foot-btn .i { width: 15px; height: 15px; }
.foot-btn:hover { border-color: var(--cyan); background: rgba(62, 242, 255, .08); }
.foot-btn[aria-pressed="true"] { border-color: var(--sun); color: var(--sun); }

.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 80;
  max-width: calc(100% - 32px); padding: 13px 20px; border-radius: 12px;
  background: var(--ink); color: var(--night); font-size: 14px; font-weight: 700;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7);
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease-out), opacity .3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* paused offscreen (applies to CSS animations inside the scope) */
.paused, .paused * { animation-play-state: paused !important; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .resources { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sky { grid-template-columns: 1fr; }
  .skill-panel {
    position: sticky; bottom: 12px; z-index: 2; gap: 6px; padding: 16px 18px;
    box-shadow: 0 -10px 40px -10px rgba(0, 0, 0, .8);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    background: linear-gradient(170deg, rgba(18, 26, 58, .92), rgba(6, 8, 20, .95));
  }
  .sp-name { font-size: 38px; }
  .sp-copy { font-size: 15px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics div:nth-child(2) { border-right: 0; }
  .metrics div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav, .header-cta { display: none; }
  .menu-btn { display: block; }

  .hero { padding-top: calc(var(--header-h) + 6px); justify-content: flex-start; }
  .hero-inner { grid-template-columns: 1fr; grid-template-areas: "visual" "copy"; gap: 0; }
  .hero-visual { width: min(74vw, 380px); margin-bottom: max(-15vw, -90px); justify-self: end; margin-right: -4vw; }
  .hud--a { left: -18%; top: 12%; }
  .hud--b { display: none; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .facts { grid-template-columns: 1fr; gap: 12px; }
  .scroll-cue { display: none; }
  .palms { height: min(48vh, 420px); opacity: .9; }
  .palms--right { right: -120px; }
  .palms--left { left: -120px; }

  .about-grid, .journey-grid { grid-template-columns: 1fr; }
  .about-lead, .journey-lead { position: static; }
  .badge-ring { width: 110px; margin-top: 28px; }

  .p-grid { grid-template-columns: 1fr; }
  .p-grid--flip .p-stage-wrap { order: 0; }
  .p-stage-wrap { position: relative; top: auto; }
  .shot { grid-template-columns: 1fr; }
  .shot-frame { max-width: 560px; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .explore-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-name { font-size: clamp(76px, 25vw, 132px); }
  .hero-visual { width: 78vw; margin-bottom: -18vw; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hud { font-size: 10px; }
  .p-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .p-index { font-size: 84px; }
  .p-role--team { grid-template-columns: 1fr; }
  .resources { grid-template-columns: 1fr; }
  .constellation { grid-template-columns: 1fr; }
  .socials { grid-template-columns: 1fr; }
  .so-h { display: none; }
  .so-arrow { margin-left: auto; }
  .eyebrow { font-size: 11px; letter-spacing: .06em; }
  .sorter { --gap: 4px; height: 190px; }
  .sorter i { font-size: 9.5px; border-radius: 5px 5px 2px 2px; }
  .sorter-controls { flex-direction: column; align-items: stretch; }
  .seg { justify-content: space-between; }
  .seg-btn { flex: 1; padding: 0 8px; }
  .ctl { justify-content: center; }
  .travel-row { flex-direction: column-reverse; align-items: stretch; }
  .phone { margin: 4px auto 0; width: min(220px, 74%); }
  .cm { padding-left: 22px; }
  .cm-cell { aspect-ratio: 1.25; }
  .mail-row .btn { width: 100%; }
  .foot-links { width: 100%; }
}

@media (max-width: 380px) {
  .seg-btn { font-size: 12px; }
  .hero-actions { flex-direction: column; }
}

/* --------------------------------------------------------------------------
   Reduced motion — honour system setting (no JS) and the in-page toggle
   -------------------------------------------------------------------------- */
html.rm *, html.rm *::before, html.rm *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  animation-delay: 0s !important;
  transition-duration: .001ms !important;
  transition-delay: 0s !important;
}
html.rm body::after { animation: none; }
html.rm .drift, html.rm .caret { animation: none !important; }
html.rm .pulse::after, html.rm .rm-pulse, html.rm .star::after { display: none; }
html.rm .ph-list li, html.rm .ph-list li i, html.rm .ph-list li i::after { animation: none !important; }
html.rm .ph-list li:nth-child(-n+2) i { background: var(--mint); border-color: var(--mint); }
html.rm .ph-list li:nth-child(-n+2) i::after { transform: rotate(45deg) scale(1); }
html.rm .mg-scan { opacity: 0; }
html.rm .hero, html.rm .contact { --px: 0 !important; --py: 0 !important; --exit: 0 !important; --rise: 1 !important; }

@media (prefers-reduced-motion: reduce) {
  html.no-js *, html.no-js *::before, html.no-js *::after { animation: none !important; transition: none !important; }
}

@media print {
  .atmos, .hero-canvas, .palms, body::after, .site-header, .mobile-menu, .contact-scene { display: none !important; }
  body { background: #fff; color: #000; }
}
