@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@property --wave {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

:root {
  --ink: #0a1a3a;
  --ink-soft: #4a5670;
  --ivory: #f3ecdc;
  --paper: #f7f3ea;
  --white: #fff;
  --gold: #d6aa68;
  --gold-deep: #9a6b2c;
  --blue: #002fa7;
  --cyan: #00c2ff;
  --night: #071018;
  --font: 'Archivo', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1280px;
  --section: clamp(80px, 11vw, 150px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 70% 90% at 0% 30%, #efe3c6 0%, transparent 60%),
    radial-gradient(ellipse 70% 90% at 100% 20%, #cfe6ea 0%, transparent 60%),
    linear-gradient(180deg, #f2efe6 0%, #ece9e0 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
}

/* Header */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--gutter);
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.is-solid {
  background: rgba(247, 243, 234, 0.86);
  box-shadow: 0 1px 0 rgba(10, 26, 58, 0.08);
  backdrop-filter: blur(14px);
}

.nav-logo img {
  width: auto;
  height: 22px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.8;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.7;
}

.lang:hover {
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-blue {
  background: var(--blue);
  color: var(--white);
}

.btn-blue:hover {
  background: #0a3fc4;
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: #e8bf7c;
}

.nav .btn {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.btn-ghost {
  padding: 0 4px;
}

.play {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.play svg {
  width: 12px;
  height: 12px;
  margin-left: 2px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

/* 3D stage */
.zero-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.stage-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.fog {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  background: var(--night);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 68% 58%, transparent var(--wave), #000 calc(var(--wave) + 28%));
  mask-image: radial-gradient(circle at 68% 58%, transparent var(--wave), #000 calc(var(--wave) + 28%));
  animation: fog-out 2.4s cubic-bezier(0.6, 0, 0.2, 1) 0.2s forwards;
}

.has-stage .fog {
  display: block;
}

@keyframes fog-out {
  to { --wave: 160%; }
}

.stage {
  position: relative;
  z-index: 2;
}

.chapter {
  display: flex;
  min-height: 100svh;
  align-items: center;
  padding: 110px var(--gutter) 64px;
  pointer-events: none;
}

.chapter > * {
  pointer-events: auto;
}

.chapter.is-right {
  justify-content: flex-end;
}

.chapter-copy {
  width: min(56rem, 48vw);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 8px 18px 8px 14px;
  font-size: clamp(0.88rem, 1vw, 1.1rem);
  border: 1px solid rgba(10, 26, 58, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

.kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 194, 255, 0.2);
}

.display {
  margin: 0;
  font-stretch: 62%;
  font-weight: 900;
  line-height: 0.88;
  text-transform: uppercase;
}

h1.display {
  font-size: clamp(3.6rem, min(11vw, 18vh), 12.5rem);
}

h2.display {
  font-size: clamp(2.8rem, min(6.4vw, 10vh), 8.5rem);
}

.lead {
  max-width: 46rem;
  margin: min(28px, 2.6vh) 0 min(36px, 3.4vh);
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 1.55vw, 1.75rem);
  line-height: 1.5;
}

.who {
  margin-top: 40px;
  color: var(--ink-soft);
  font-size: clamp(0.9rem, 1vw, 1.1rem);
}

.who strong {
  color: var(--ink);
}

.test-card {
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 30px 60px rgba(10, 26, 58, 0.14);
  backdrop-filter: blur(14px);
}

.test-card video {
  width: 100%;
  max-height: 40vh;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}

.test-data {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: clamp(16px, 1.6vw, 28px) clamp(18px, 1.8vw, 32px);
}

.test-data div {
  margin: 0;
}

.test-data dt {
  color: var(--ink-soft);
  font-size: clamp(0.8rem, 0.9vw, 1.05rem);
}

.test-data dd {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 3rem);
  font-stretch: 75%;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.test-data .is-ref dd {
  color: var(--gold-deep);
}

.tag3d {
  position: fixed;
  z-index: 3;
  display: none;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid rgba(10, 26, 58, 0.1);
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 30px rgba(10, 26, 58, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translate(18px, -50%);
  transition: opacity 0.4s;
  white-space: nowrap;
}

.has-stage .tag3d {
  display: grid;
}

.tag3d[data-tag="Head"] {
  transform: translate(80px, -80%);
}

.tag3d small {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.tag3d strong {
  font-size: 1.45rem;
  font-stretch: 75%;
  font-weight: 800;
  line-height: 1.05;
}

.scroll-cue {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 3;
  display: none;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
  transform: translateX(-50%);
  transition: opacity 0.4s;
}

.has-stage .scroll-cue {
  display: block;
}

/* Without the 3D stage (phones, no WebGL): still images of the twin. */
.twin-still {
  display: none;
}

html:not(.has-stage) .twin-still {
  display: block;
  width: min(320px, 70%);
  margin: 0 auto 8px;
}

html:not(.has-stage) .chapter {
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  padding-block: 72px 24px;
}

html:not(.has-stage) .stage > .chapter:first-child {
  padding-top: 110px;
}

/* Content sections after the stage */
.after {
  position: relative;
  z-index: 5;
}

.section {
  padding-block: var(--section);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.section-head.is-center {
  margin-inline: auto;
  text-align: center;
}

.is-white {
  background: var(--white);
}

.is-paper {
  background: var(--paper);
}

.is-night {
  background: var(--night);
  color: var(--white);
}

.paths {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.path {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 24px;
  background: var(--paper);
}

.path img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.path-body {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: clamp(24px, 3vw, 40px);
}

.path-body .btn {
  justify-self: start;
  margin-top: 24px;
}

.path-tag {
  justify-self: start;
  margin: 0 0 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 700;
}

.path h3 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.checks {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checks li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
}

.checks svg {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  padding: 3px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
}

.checks strong {
  display: block;
}

.checks span {
  color: var(--ink-soft);
}

.screen {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px 20px 0 0;
  background: #1b1e20;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.5);
}

.screen img {
  width: 100%;
  border-radius: 10px 10px 0 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 48px auto 0;
}

.features strong {
  color: var(--gold);
  font-size: 1.05rem;
}

.features p {
  margin: 6px 0 0;
  color: #b9c0cc;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.split .section-head {
  margin-bottom: 0;
}

.bubbles {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.bubbles p {
  max-width: 440px;
  margin: 0;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.98rem;
}

.bubbles .is-coach {
  justify-self: start;
  border-bottom-left-radius: 4px;
  background: var(--paper);
}

.bubbles .is-zero {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: var(--ink);
  color: var(--white);
}

.framed {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: #050a10;
  box-shadow: 0 40px 90px rgba(10, 26, 58, 0.22);
}

.framed img {
  width: 100%;
}

.quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.quote figure {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
}

.quote figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  margin: 0;
  font-size: clamp(1.5rem, 2.7vw, 2.4rem);
  font-weight: 500;
  line-height: 1.3;
}

.quote footer {
  display: grid;
  margin-top: 26px;
}

.quote footer span {
  color: var(--ink-soft);
}

.film {
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 40px 90px rgba(10, 26, 58, 0.2);
}

.film video {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.cta {
  padding-block: clamp(64px, 8vw, 110px);
}

.cta-inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.cta img {
  width: 100%;
  transform: rotate(-5deg);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5));
}

.cta h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.cta p {
  max-width: 560px;
  color: #b9c0cc;
  font-size: 1.1rem;
}

.cta .mail {
  color: var(--white);
  font-weight: 600;
}

.footer {
  padding-block: 48px;
  background: var(--paper);
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.support {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
}

.support span {
  color: var(--ink-soft);
}

.support img {
  width: auto;
  height: 40px;
}

.support img[src$=".svg"] {
  height: 64px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(10, 26, 58, 0.1);
  color: var(--ink-soft);
}

/* Legal pages */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px var(--gutter) 96px;
}

.legal h1 {
  margin: 0 0 32px;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal h2 {
  margin: 36px 0 10px;
  font-size: 1.2rem;
}

.legal p,
.legal li {
  color: var(--ink-soft);
}

.legal dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 24px;
}

.legal dt {
  font-weight: 600;
}

.legal dd {
  margin: 0;
  color: var(--ink-soft);
}

@media (max-width: 980px) {
  .paths,
  .split,
  .quote {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  /* Phones with the 3D stage: Janis in the upper half, the text in a card below him. */
  .has-stage .chapter,
  .has-stage .chapter.is-right {
    min-height: 100svh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 56svh 16px 48px;
  }

  /* After the hero, the 3D transition plays on an empty screen before the card scrolls in. */
  .has-stage .stage > .chapter + .chapter {
    padding-top: 160svh;
  }

  .has-stage .stage > .chapter:nth-child(4) {
    padding-top: 140svh;
  }

  .has-stage .stage > .chapter:last-child {
    padding-top: 210svh;
  }

  .has-stage .chapter-copy {
    padding: 22px 20px;
    border-radius: 22px;
    background: rgba(247, 243, 234, 0.86);
    box-shadow: 0 20px 50px rgba(10, 26, 58, 0.1);
    backdrop-filter: blur(12px);
  }

  .has-stage .tag3d,
  .has-stage .scroll-cue {
    display: none;
  }

  .fog {
    -webkit-mask-image: radial-gradient(circle at 50% 30%, transparent var(--wave), #000 calc(var(--wave) + 28%));
    mask-image: radial-gradient(circle at 50% 30%, transparent var(--wave), #000 calc(var(--wave) + 28%));
  }

  .nav-links {
    display: none;
  }

  .chapter.is-right {
    justify-content: flex-start;
  }

  .chapter-copy {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .features,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .cta img {
    width: 160px;
  }

  .nav {
    gap: 12px;
  }

  .nav-logo img {
    height: 18px;
  }

  .nav-end {
    gap: 12px;
  }

  .nav .btn {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .test-data dd {
    font-size: 1.2rem;
  }

  .legal dl {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fog {
    display: none !important;
  }

  .btn {
    transition: none;
  }
}
