/* ==========================================================================
   SOAK APPS — site styles
   ========================================================================== */

:root {
  --ink: #070a10;
  --ink-2: #0b1019;
  --panel: rgba(11, 16, 26, 0.64);
  --panel-strong: rgba(11, 16, 26, 0.86);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eaf0f8;
  --soft: #c4cdda;
  --muted: #93a0b4;
  --dim: #637086;
  --aqua: #46f0dc;
  --blue: #6d7dff;
  --grad: linear-gradient(120deg, var(--aqua), var(--blue));

  --radius: 22px;
  --gutter: clamp(16px, 4vw, 56px);
  --col: 100%;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  color-scheme: dark;
}

@media (min-width: 1000px) {
  :root { --col: min(720px, 54vw); }
}

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

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(70, 240, 220, .35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--aqua);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Map background
   -------------------------------------------------------------------------- */

.map-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.map-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 45% at 72% 42%, rgba(70, 240, 220, .12), transparent 70%),
    radial-gradient(45% 45% at 18% 85%, rgba(109, 125, 255, .12), transparent 70%),
    var(--ink);
}
.map-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 45%, #000, transparent);
          mask-image: radial-gradient(70% 70% at 60% 45%, #000, transparent);
}

#map {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.map-ready #map { opacity: 1; }
.no-map #map { display: none; }

.map-shade,
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity .8s ease;
}

.map-shade {
  background:
    linear-gradient(180deg, rgba(7, 10, 16, .7) 0%, rgba(7, 10, 16, 0) 20%, rgba(7, 10, 16, 0) 78%, rgba(7, 10, 16, .75) 100%),
    rgba(7, 10, 16, .45);
}
@media (min-width: 1000px) {
  .map-shade {
    background:
      linear-gradient(90deg, rgba(7, 10, 16, .9) 0%, rgba(7, 10, 16, .66) 36%, rgba(7, 10, 16, .1) 60%, rgba(7, 10, 16, 0) 78%),
      linear-gradient(180deg, rgba(7, 10, 16, .6) 0%, rgba(7, 10, 16, 0) 16%, rgba(7, 10, 16, 0) 84%, rgba(7, 10, 16, .7) 100%);
  }
}

.grain {
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Map pin ------------------------------------------------------------------ */

.pin {
  position: relative;
  width: 0;
  height: 0;
}

.pin-ripple {
  position: absolute;
  left: -72px;
  top: -72px;
  width: 144px;
  height: 144px;
  border-radius: 50%;
  border: 1.5px solid rgba(70, 240, 220, .85);
  opacity: 0;
  transform: scaleY(.5) scale(.08);
  animation: ripple 3.6s cubic-bezier(.2, .6, .3, 1) infinite;
}
.pin-ripple:nth-child(2) { animation-delay: 1.2s; }
.pin-ripple:nth-child(3) { animation-delay: 2.4s; }

@keyframes ripple {
  0%   { opacity: 0; transform: scaleY(.5) scale(.08); }
  12%  { opacity: 1; }
  100% { opacity: 0; transform: scaleY(.5) scale(1); }
}

.pin-core {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--aqua);
  transform: scaleY(.55);
  box-shadow: 0 0 0 5px rgba(70, 240, 220, .22), 0 0 28px 8px rgba(70, 240, 220, .55);
}

.pin-drop {
  position: absolute;
  left: -19px;
  top: -66px;
  width: 38px;
  height: 50px;
  max-width: none;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .55)) drop-shadow(0 0 18px rgba(70, 240, 220, .45));
  animation: bob 2.8s ease-in-out infinite alternate;
}
@keyframes bob {
  from { transform: translateY(0); }
  to   { transform: translateY(-9px); }
}

.pin-label {
  position: absolute;
  left: 30px;
  top: -74px;
  white-space: nowrap;
  padding: 8px 13px 9px;
  border-radius: 12px;
  background: rgba(7, 10, 16, .82);
  border: 1px solid rgba(70, 240, 220, .35);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  line-height: 1.35;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .5s ease, transform .6s var(--ease-out);
}
.pin.show-label .pin-label { opacity: 1; transform: none; }
.pin-label strong {
  display: block;
  font-family: var(--font-display);
  font-size: .86rem;
  letter-spacing: .05em;
}
.pin-label span {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--muted);
}

/* HUD + attribution --------------------------------------------------------- */

.map-hud {
  position: fixed;
  right: 22px;
  bottom: 46px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: .68rem;
  line-height: 1.8;
  letter-spacing: .08em;
  text-align: right;
  color: var(--muted);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease .6s;
}
.map-ready .map-hud { opacity: 1; }
.map-hud b { color: var(--aqua); font-weight: 500; }
@media (max-width: 999px) {
  .map-hud { display: none; }
}

.map-attrib {
  position: fixed;
  right: 8px;
  bottom: 8px;
  z-index: 15;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(7, 10, 16, .66);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--dim);
}
.map-attrib a { text-decoration: none; }
.map-attrib a:hover { color: var(--text); }
.no-map .map-attrib { display: none; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .4s ease, border-color .4s ease, padding .4s var(--ease-out);
}
.site-header.is-scrolled {
  padding-block: 12px;
  background: rgba(7, 10, 16, .62);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
}

.brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 750;
  letter-spacing: .08em;
}
.brand img { width: 28px; height: 28px; transition: transform .6s var(--ease-out); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.brand span b { font-weight: 300; }

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .92rem;
  text-decoration: none;
  transition: color .2s ease, background .2s ease;
}
.nav a:hover,
.nav a[aria-current="true"],
.nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}
.nav .nav-cta {
  margin-left: 6px;
  color: #04121a;
  background: var(--aqua);
  font-weight: 600;
}
.nav .nav-cta:hover { color: #04121a; background: #8af7ea; }

.clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--muted);
  white-space: nowrap;
}
.clock::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--aqua);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 50% { opacity: .25; } }

/* Terms and Privacy stay in the menu at every width; labels shorten to fit */
.nav .short { display: none; }

@media (max-width: 1099px) {
  .clock { display: none; }
}
@media (max-width: 999px) {
  .nav .long { display: none; }
  .nav .short { display: inline; }
}
@media (max-width: 760px) {
  .site-header { gap: 8px; }
  .brand { gap: 8px; font-size: .92rem; letter-spacing: .05em; }
  .brand img { width: 24px; height: 24px; }
  .nav { gap: 0; }
  .nav .nav-section { display: none; }
  .nav a { padding: 8px 7px; font-size: .84rem; }
  .nav .nav-cta { margin-left: 2px; padding-inline: 12px; }
}
@media (max-width: 349px) {
  .brand span { display: none; }
}

/* --------------------------------------------------------------------------
   Shared building blocks
   -------------------------------------------------------------------------- */

main { position: relative; z-index: 2; }

.col { width: var(--col); max-width: 100%; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--aqua);
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }

h2 {
  margin: 18px 0;
  font-size: clamp(2.1rem, 4.6vw, 3.8rem);
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.section-intro {
  max-width: 34em;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.panel {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
}

.panel-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Buttons ------------------------------------------------------------------ */

.btn {
  --h: 52px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  overflow: hidden;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .35s var(--ease-out), background .3s ease, border-color .3s ease, color .3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arrow { transition: transform .35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--grad);
  color: #04121a;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-2);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: rgba(70, 240, 220, .5);
  background: rgba(70, 240, 220, .07);
}

.btn-sm { --h: 42px; padding: 0 18px; font-size: .88rem; }

/* Reveal on scroll ---------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity .9s ease calc(var(--d, 0) * 110ms),
    transform 1.1s var(--ease-out) calc(var(--d, 0) * 110ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Word split (hero title) */
.js [data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}
.js [data-split] .w > span {
  display: inline-block;
  transform: translateY(115%) rotate(5deg);
  transform-origin: left bottom;
  transition: transform 1.15s var(--ease-out) calc(var(--i) * 75ms + 250ms);
}
.js [data-split].is-in .w > span { transform: none; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--gutter) 130px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqua);
}
.eyebrow .dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--aqua);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  from { transform: scale(.4); opacity: 1; }
  to   { transform: scale(1.6); opacity: 0; }
}

.hero-title {
  margin: 0 0 28px;
  font-size: clamp(3rem, 7.4vw, 6.75rem);
  font-weight: 650;
  line-height: .94;
  letter-spacing: -.045em;
  font-variation-settings: "opsz" 96;
}
.hero-title em,
.grad-text {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

.lede,
.hero-title,
.statement p,
.section-intro {
  text-shadow: 0 2px 22px rgba(7, 10, 16, .85);
}
.hero-title em,
.grad-text { text-shadow: none; }

.lede {
  max-width: 33em;
  margin: 0 0 38px;
  color: var(--soft);
  font-size: clamp(1.05rem, 1.35vw, 1.22rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 44px;
  margin: 64px 0 0;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-meta div { display: grid; gap: 6px; }
.hero-meta dt { color: var(--dim); }
.hero-meta dd { margin: 0; color: var(--soft); }

.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 34px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
  text-decoration: none;
}
.scroll-cue i {
  position: relative;
  width: 1px;
  height: 38px;
  overflow: hidden;
  background: var(--line-2);
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--aqua);
  animation: drip 2.2s cubic-bezier(.6, 0, .3, 1) infinite;
}
@keyframes drip {
  from { transform: translateY(-100%); }
  to   { transform: translateY(100%); }
}
@media (max-height: 700px) { .scroll-cue { display: none; } }

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

/* the tilted band is wider than the viewport; clip it so phones can't side-scroll */
.marquee-clip {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding-block: 28px;
  margin-block: -28px;
}
.marquee {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
  border-block: 1px solid var(--line);
  background: rgba(7, 10, 16, .58);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  transform: rotate(-1.6deg) scale(1.04);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; }
.marquee-group span {
  padding: 0 26px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2.25rem);
  font-weight: 560;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.marquee-group span:nth-child(4n + 3) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(234, 240, 248, .5);
}
.marquee-group i {
  font-style: normal;
  font-size: 1.1rem;
  color: var(--aqua);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: clamp(110px, 16vh, 180px) var(--gutter);
}

/* What we build */

.cards {
  display: grid;
  gap: 18px;
  margin-top: 52px;
}
@media (min-width: 700px) {
  .cards { grid-template-columns: 1fr 1fr; }
}

.card {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  height: 100%;
  padding: 22px 22px 26px;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  overflow: hidden;
  isolation: isolate;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease-out), border-color .3s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(70, 240, 220, .14), transparent 45%);
  opacity: 0;
  transition: opacity .35s ease;
}
.card:hover { border-color: rgba(70, 240, 220, .3); }
.card:hover::before { opacity: 1; }

.card-tag {
  display: inline-block;
  margin: 4px 0 10px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--aqua);
}
.card h3 {
  margin: 0 0 10px;
  font-size: 1.65rem;
  font-weight: 620;
  line-height: 1.1;
  letter-spacing: -.025em;
}
.card p { margin: 0 0 20px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: .78rem;
  color: var(--soft);
}

.illo {
  position: relative;
  height: 200px;
  margin-bottom: 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(70% 80% at 50% 110%, rgba(70, 240, 220, .14), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0));
}
.illo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent);
          mask-image: radial-gradient(60% 70% at 50% 50%, #000, transparent);
  pointer-events: none;
}

/* Edtech illustration — flipping flashcards */
.illo-cards { perspective: 800px; }
.fc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112px;
  height: 140px;
  margin: -78px 0 0 -56px;
  border-radius: 14px;
  background: linear-gradient(160deg, #18233a, #0e1626);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
}
.fc-3 { transform: translate(-46px, 8px) rotate(-13deg); opacity: .5; animation: sway-l 6s ease-in-out infinite; }
.fc-2 { transform: translate(46px, 6px) rotate(11deg); opacity: .72; animation: sway-r 6s ease-in-out infinite; }
.fc-1 {
  z-index: 2;
  background: none;
  border: 0;
  transform-style: preserve-3d;
  animation: flip 6s var(--ease-out) infinite;
}
.fc-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
}
.fc-front { background: linear-gradient(160deg, #1c2b47, #111b2e); color: var(--text); }
.fc-front small {
  position: absolute;
  bottom: 14px;
  font-family: var(--font-mono);
  font-size: .56rem;
  font-weight: 400;
  letter-spacing: .14em;
  color: var(--dim);
}
.fc-back { background: var(--grad); color: #04121a; transform: rotateY(180deg); }
.fc-back svg { width: 46px; height: 46px; }

@keyframes flip {
  0%, 28%   { transform: rotateY(0) translateY(0); }
  38%       { transform: rotateY(90deg) translateY(-10px); }
  46%, 76%  { transform: rotateY(180deg) translateY(0); }
  86%       { transform: rotateY(270deg) translateY(-10px); }
  94%, 100% { transform: rotateY(360deg) translateY(0); }
}
@keyframes sway-l { 50% { transform: translate(-52px, 10px) rotate(-16deg); } }
@keyframes sway-r { 50% { transform: translate(52px, 4px) rotate(14deg); } }

.progress {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 150px;
  height: 4px;
  margin-left: -75px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform-origin: left;
  animation: learn 6s var(--ease-out) infinite;
}
@keyframes learn {
  0%, 40%  { transform: scaleX(.35); }
  50%, 90% { transform: scaleX(.7); }
  100%     { transform: scaleX(.35); }
}

/* Utility illustration — one tap */
.illo-tap { display: grid; place-items: center; }
.phone {
  position: relative;
  width: 98px;
  height: 164px;
  padding: 6px;
  border-radius: 22px;
  border: 2px solid rgba(255, 255, 255, .18);
  background: #0b111c;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
}
.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  width: 26px;
  height: 6px;
  margin-left: -13px;
  border-radius: 6px;
  background: #0b111c;
}
.screen {
  position: relative;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 16px;
  overflow: hidden;
  background: #0f1828;
  animation: screen 4s ease infinite;
}
.tap-btn {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--aqua);
  background: rgba(70, 240, 220, .12);
  animation: press 4s ease infinite;
}
.tap-btn svg { width: 22px; height: 22px; opacity: 0; color: #04121a; animation: tick 4s ease infinite; }
.tap-wave {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  border: 2px solid var(--aqua);
  opacity: 0;
  animation: wave 4s ease-out infinite;
}
.finger {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 0 0 9px rgba(255, 255, 255, .12), 0 10px 20px rgba(0, 0, 0, .4);
  animation: finger 4s var(--ease-out) infinite;
}
@keyframes finger {
  0%       { opacity: 0; transform: translate(74px, 64px); }
  14%      { opacity: 1; }
  34%      { transform: translate(0, 0) scale(1); }
  41%      { transform: translate(0, 0) scale(.78); }
  50%      { opacity: 1; transform: translate(0, 0) scale(1); }
  70%,100% { opacity: 0; transform: translate(74px, 64px); }
}
@keyframes press {
  0%, 38%  { transform: scale(1); background: rgba(70, 240, 220, .12); }
  43%      { transform: scale(.86); }
  52%, 86% { transform: scale(1); background: var(--aqua); }
  100%     { background: rgba(70, 240, 220, .12); }
}
@keyframes tick {
  0%, 44%  { opacity: 0; transform: scale(.4); }
  56%, 86% { opacity: 1; transform: scale(1); }
  100%     { opacity: 0; }
}
@keyframes wave {
  0%, 42% { opacity: 0; transform: scale(1); }
  44%     { opacity: .9; }
  78%,100%{ opacity: 0; transform: scale(3.4); }
}
@keyframes screen {
  0%, 42%  { background: #0f1828; }
  54%, 86% { background: #0f2b38; }
  100%     { background: #0f1828; }
}

/* Statement ---------------------------------------------------------------- */

.statement {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 120px var(--gutter);
}
.statement p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  font-weight: 520;
  line-height: 1.12;
  letter-spacing: -.03em;
}
.statement em { font-style: normal; }
.js [data-fill] .w { opacity: .15; transition: opacity .5s ease, color .5s ease; }
.js [data-fill] .w.on { opacity: 1; }
.js [data-fill] .w.on em { color: var(--aqua); }

/* Principles --------------------------------------------------------------- */

.principles {
  margin: 48px 0 0;
  padding: 6px 28px;
  list-style: none;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
}
.principles li {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 6px 16px;
  padding: 26px 0;
}
.principles li + li::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(70, 240, 220, .7), var(--line) 45%);
  transform-origin: left;
}
.js .principles li + li::before {
  transform: scaleX(0);
  transition: transform 1.3s var(--ease-out) calc(var(--d, 0) * 110ms + 200ms);
}
.js .principles li.is-in::before { transform: scaleX(1); }

.p-num {
  padding-top: 7px;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--aqua);
}
.principles h3 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.principles p { grid-column: 2; margin: 0; color: var(--muted); }

/* Contact ------------------------------------------------------------------ */

.contact { min-height: 100vh; min-height: 100svh; }

.contact-grid {
  display: grid;
  gap: 18px;
  margin-top: 46px;
}
@media (min-width: 760px) {
  .contact-grid { grid-template-columns: 1.12fr 1fr; }
}

@media (max-width: 999px) {
  /* leave room above the cards so the pin is visible when the camera lands */
  .contact { padding-top: 46svh; }
}

address {
  margin: 14px 0 0;
  font-style: normal;
  font-size: 1.04rem;
  line-height: 1.55;
  color: var(--soft);
}
address strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 650;
  letter-spacing: .02em;
  color: var(--text);
}
.coords {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--dim);
}
/* Email reveal ------------------------------------------------------------- */

.email-panel h3 {
  margin: 14px 0 6px;
  font-size: 1.3rem;
  font-weight: 620;
  letter-spacing: -.01em;
}
.email-panel > p { margin: 0; color: var(--muted); font-size: .95rem; }

.email { margin-top: 20px; }

.hold {
  --p: 0;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 10px 20px 10px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-user-select: none;
          user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .3s ease, transform .4s var(--ease-out);
}
.hold::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(70, 240, 220, .3), rgba(109, 125, 255, .3));
  transform-origin: left;
  transform: scaleX(var(--p));
  transition: transform .5s var(--ease-out);
}
.hold:hover { border-color: rgba(70, 240, 220, .5); }
.is-holding .hold { transform: scale(.985); border-color: var(--aqua); }
.is-holding .hold::before,
.is-holding .hold-bar { transition: none; }

.hold-ring {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}
.hold-ring > svg:first-child {
  position: absolute;
  inset: 0;
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
}
.hold-ring circle { fill: none; stroke-width: 2.5; }
.hold-track { stroke: rgba(255, 255, 255, .14); }
.hold-bar {
  stroke: var(--aqua);
  stroke-linecap: round;
  stroke-dasharray: 125.7;
  stroke-dashoffset: calc(125.7 * (1 - var(--p)));
  transition: stroke-dashoffset .5s var(--ease-out);
}
.hold-icon { width: 20px; height: 20px; color: var(--aqua); }

.hold-copy { display: grid; line-height: 1.3; }
.hold-title { font-weight: 600; font-size: .98rem; }
.hold-sub { font-size: .8rem; color: var(--muted); }

.email.is-revealed .hold {
  display: none;
}

.email-out {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.3vw, 1.28rem);
  font-weight: 500;
  color: var(--text);
  word-break: break-all;
  -webkit-user-select: text;
          user-select: text;
}
.email-out:empty { display: none; }
.email-out .scr { color: var(--aqua); opacity: .7; }
.email.is-revealed .email-out {
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(70, 240, 220, .35);
  background: rgba(70, 240, 220, .06);
  animation: splash 1.1s var(--ease-out);
}
@keyframes splash {
  from { box-shadow: 0 0 0 0 rgba(70, 240, 220, .45); }
  to   { box-shadow: 0 0 0 22px rgba(70, 240, 220, 0); }
}

.email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  animation: fade-up .6s var(--ease-out) .25s both;
}
.email-actions[hidden] { display: none; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Compact variant used inside legal pages */
.email-compact { margin-top: 12px; max-width: 420px; }
.email-compact .hold { padding: 6px 16px 6px 6px; }
.email-compact .hold-ring { width: 36px; height: 36px; }
.email-compact .hold-ring > svg:first-child { width: 36px; height: 36px; }
.email-compact .hold-icon { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 2;
  padding: 46px var(--gutter) 46px;
  border-top: 1px solid var(--line);
  background: rgba(7, 10, 16, .86);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  font-size: .86rem;
  color: var(--muted);
}
.foot-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.foot-links a { color: var(--soft); text-decoration: none; }
.foot-links a:hover { color: var(--aqua); }
.legal-line {
  max-width: 72em;
  margin: 26px 0 6px;
  color: var(--dim);
  font-size: .8rem;
}
.copyright { margin: 0; color: var(--dim); font-size: .8rem; }
.todo {
  padding: 0 4px;
  border-radius: 4px;
  background: rgba(255, 196, 0, .14);
  color: #ffd66b;
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.page-legal .map-shade { background: rgba(7, 10, 16, .84); }
.page-legal .pin-label { display: none; }

.legal {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 140px var(--gutter) 110px;
}
.legal-head h1 {
  margin: 18px 0 10px;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.04em;
}
.legal-meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--dim);
}

.placeholder-note {
  display: flex;
  gap: 14px;
  margin: 32px 0;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 196, 0, .45);
  background: rgba(255, 196, 0, .06);
  color: #f3e3b5;
  font-size: .93rem;
}
.placeholder-note strong { color: #ffd66b; }

.legal-toc {
  margin: 0 0 22px;
  padding: 22px 26px;
}
.legal-toc ol {
  columns: 2 220px;
  column-gap: 32px;
  margin: 12px 0 0;
  padding-left: 1.3em;
  color: var(--dim);
  font-size: .92rem;
}
.legal-toc li { margin: 4px 0; break-inside: avoid; }
.legal-toc a { color: var(--soft); text-decoration: none; }
.legal-toc a:hover { color: var(--aqua); }

.legal-body {
  padding: clamp(24px, 4vw, 44px);
  counter-reset: legal;
}
.legal-body section + section { margin-top: 34px; }
.legal-body h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 620;
  letter-spacing: -.015em;
  line-height: 1.25;
  scroll-margin-top: 100px;
}
.legal-body h2::before {
  counter-increment: legal;
  content: counter(legal, decimal-leading-zero);
  margin-right: 14px;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 400;
  color: var(--aqua);
  vertical-align: 3px;
}
.legal-body p,
.legal-body li { color: var(--soft); }
.legal-body ul { padding-left: 1.2em; }
.legal-body .ph { color: var(--muted); font-style: italic; }
.legal-body a { color: var(--aqua); }
.legal-body address { font-size: 1rem; }

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .marquee-track { animation: none; }
}
