/* =============================================================================
   SmileHero — site styles
   Image-led, dark navy canvas that matches the character renders, Fraunces
   headlines, Albert Sans text, one mint accent. Motion is declared here and
   triggered by small hooks in site.js (.in classes and CSS variables).
   ============================================================================= */

:root {
  --bg: #070a19;
  --bg-2: #0d1226;
  --bg-3: #141a33;
  --fg: #f3f1f7;
  --fg-2: #c9c6d6;
  --fg-3: #8f8ba3;
  --mint: #7ed0c6;
  --mint-2: #aeeae2;
  --mint-dim: rgba(126, 208, 198, 0.16);
  --on-mint: #0b1324;
  --blush: #fab7a9;
  --line: rgba(243, 241, 247, 0.12);
  --line-2: rgba(243, 241, 247, 0.28);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.16, 0.84, 0.24, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --header-h: 84px;
  --gutter: clamp(20px, 4vw, 64px);
  --wrap: 1480px;
  --gap: clamp(16px, 2vw, 32px);
  --radius: 8px;
  --section: clamp(5rem, 10vw, 9rem);

  --h1: clamp(2.9rem, 1.4rem + 6.4vw, 7.6rem);
  --h2: clamp(2.1rem, 1.3rem + 3.2vw, 4.6rem);
  --h2-xl: clamp(2.6rem, 1.5rem + 4.6vw, 6.2rem);
  --h3: clamp(1.4rem, 1.2rem + 0.9vw, 1.9rem);
  --lede: clamp(1.08rem, 1rem + 0.4vw, 1.3rem);
  --body: 1.0625rem;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  font-size: var(--body);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Fine film grain over the page; purely atmospheric. It stays below the header:
   iOS Safari looks for a fixed header at the top edge and ignores pointer-events
   while doing so, so a layer above the header would hide it (see .site-header). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 39;
  pointer-events: none;
  opacity: 0.05;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

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

a {
  color: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--mint);
  color: var(--on-mint);
}

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

html:has(dialog.menu[open]) {
  overflow: hidden;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-out 0.22s ease both;
}

::view-transition-new(root) {
  animation: vt-in 0.45s var(--ease) both;
}

@keyframes vt-out {
  to {
    opacity: 0;
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ----------------------------------------------------------------------------
   Typography
   ---------------------------------------------------------------------------- */
.h1,
.h2,
.h3,
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "SOFT" 30, "WONK" 1;
  letter-spacing: -0.02em;
  line-height: 0.98;
  color: var(--fg);
  text-wrap: balance;
}

.h1,
.hero__title {
  font-size: var(--h1);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.h2 {
  font-size: var(--h2);
}

.h2--xl {
  font-size: var(--h2-xl);
  line-height: 0.95;
}

.h3 {
  font-size: var(--h3);
  line-height: 1.12;
  letter-spacing: -0.012em;
}

[data-kinetic] {
  font-variation-settings: "SOFT" 30, "WONK" 1, "wght" var(--wght, 400);
}

.lede {
  font-size: var(--lede);
  line-height: 1.5;
  color: var(--fg-2);
  max-width: 34em;
  text-wrap: pretty;
}

.note {
  max-width: 34em;
  padding-left: 1.1rem;
  border-left: 2px solid var(--mint);
  color: var(--fg-2);
  text-wrap: pretty;
}

.dash-list,
.plain-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  max-width: 34em;
}

.dash-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--fg-2);
}

.dash-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 0.85rem;
  height: 1px;
  background: var(--mint);
}

/* Word mask reveal for headings (site.js adds .in when in view). */
.js [data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0.12em 0 0.3em;
  margin: -0.12em 0 -0.3em;
}

.js [data-split] .w__i {
  display: inline-block;
  transform: translateY(112%);
  transition: transform 0.9s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.045s);
}

.js [data-split].in .w__i {
  transform: none;
}

/* Generic rise-and-fade reveal. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ----------------------------------------------------------------------------
   Layout
   ---------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.band--mint {
  background: var(--mint);
  color: var(--on-mint);
}

.band--mint .h2,
.band--mint .lede {
  color: var(--on-mint);
}

.band--mint ::selection {
  background: var(--on-mint);
  color: var(--mint);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.skip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--on-mint);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(calc(-100% - 1.5rem));
  transition: transform 0.2s var(--ease);
}

.skip:focus-visible {
  transform: none;
}

/* ----------------------------------------------------------------------------
   Controls
   ---------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.7rem;
  border: 0;
  border-radius: var(--radius);
  background: var(--mint);
  color: var(--on-mint);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s var(--ease);
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mint-2);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:hover::before {
  transform: none;
}

.btn--dark {
  background: var(--bg);
  color: var(--fg);
}

.btn--dark::before {
  background: var(--bg-3);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.btn--ghost::before {
  background: var(--bg-3);
}

.btn--small {
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  font-size: 0.95rem;
}

.btn[aria-disabled="true"] {
  opacity: 0.7;
  cursor: progress;
}

.link {
  color: var(--fg);
  text-decoration: none;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--mint), var(--mint));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition:
    background-size 0.35s var(--ease),
    color 0.3s var(--ease);
}

.link:hover {
  color: var(--mint-2);
  background-size: 100% 2px;
}

.band--mint .link {
  color: var(--on-mint);
  background-image: linear-gradient(var(--on-mint), var(--on-mint));
}

/* ----------------------------------------------------------------------------
   Header and navigation
   ---------------------------------------------------------------------------- */
/* iOS Safari 26 fills the area behind its address bar and status bar with the
   background colour of the fixed header, sampled when the page loads. The nearly
   transparent canvas colour looks clear over the hero but gives Safari navy to
   use, so scrolled content no longer shows above the header. A backdrop-filter
   on the header would make Safari skip the fill, hence a solid scrolled state. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  background-color: rgba(7, 10, 25, 0.02);
  transition:
    background-color 0.4s ease,
    box-shadow 0.4s ease;
}

.site-header.is-scrolled {
  background-color: var(--bg);
  box-shadow: 0 1px 0 var(--line);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 46px;
  width: auto;
}

.nav {
  display: none;
}

.nav__list,
.menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list {
  display: flex;
  gap: clamp(1.25rem, 2.2vw, 2.4rem);
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--fg-2);
  text-decoration: none;
  transition: color 0.3s;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1rem;
  height: 1px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--fg);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__tools {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang,
.menu__lang,
.footer__lang {
  display: flex;
  gap: 0.25rem;
}

.lang {
  display: none;
}

.lang a,
.menu__lang a,
.footer__lang a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--fg-3);
  text-decoration: none;
  border-radius: var(--radius);
  transition:
    color 0.3s,
    background-color 0.3s;
}

.lang a:hover,
.menu__lang a:hover,
.footer__lang a:hover {
  color: var(--fg);
  background: rgba(243, 241, 247, 0.08);
}

.lang a[aria-current],
.menu__lang a[aria-current],
.footer__lang a[aria-current] {
  color: var(--mint);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  padding: 0.5rem 0.25rem;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-size: 0.95rem;
}

.bars,
.cross {
  position: relative;
  width: 22px;
  height: 12px;
  display: inline-block;
}

.bars i,
.cross i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease);
}

.bars i:first-child {
  top: 0;
}

.bars i:last-child {
  bottom: 0;
}

.menu-btn:hover .bars i:first-child {
  transform: translateY(2px);
}

.menu-btn:hover .bars i:last-child {
  transform: translateY(-2px);
}

.cross i {
  top: 5px;
}

.cross i:first-child {
  transform: rotate(45deg);
}

.cross i:last-child {
  transform: rotate(-45deg);
}

.menu {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  overscroll-behavior: contain;
}

.menu::backdrop {
  background: transparent;
}

.menu__inner {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter) max(2rem, env(safe-area-inset-bottom));
}

.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.menu__list {
  margin-top: clamp(1.5rem, 6vh, 3.5rem);
}

.menu__link {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-variation-settings: "SOFT" 30, "WONK" 1;
  font-size: clamp(2.2rem, 7.5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
  transition:
    color 0.3s,
    padding-left 0.4s var(--ease);
}

.menu[open] .menu__link {
  animation: rise 0.8s var(--ease) both;
  animation-delay: calc(0.08s + var(--i, 0) * 0.06s);
}

.menu__link:hover,
.menu__link[aria-current="page"] {
  color: var(--mint);
  padding-left: 0.5rem;
}

.menu__lang {
  margin-top: auto;
  padding-top: 2rem;
  flex-wrap: wrap;
}

.menu__lang a {
  font-size: 0.95rem;
  letter-spacing: 0;
}

/* ----------------------------------------------------------------------------
   Hero: full-viewport scene with the headline over the dark left side
   ---------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(3rem, 9vh, 7rem);
  overflow: hidden;
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 60% 50%);
  transform: scale(1.06) translate(calc(var(--mx, 0) * -12px), calc(var(--my, 0) * -8px));
  transition: transform 1.2s var(--ease);
  animation: drift 26s ease-in-out infinite alternate;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 10, 25, 0.9) 0%, rgba(7, 10, 25, 0.6) 34%, rgba(7, 10, 25, 0.12) 58%, transparent 78%),
    linear-gradient(180deg, rgba(7, 10, 25, 0.45) 0%, transparent 28%, transparent 58%, rgba(7, 10, 25, 0.82) 100%);
}

/* Drifting mist over the landscape, two layers at different speeds. */
.hero__fog {
  position: absolute;
  inset: 20% -60% -10% -60%;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.55;
  background:
    radial-gradient(ellipse 28% 22% at 22% 70%, rgba(170, 186, 224, 0.42), transparent 70%),
    radial-gradient(ellipse 36% 26% at 58% 78%, rgba(150, 170, 215, 0.34), transparent 70%),
    radial-gradient(ellipse 30% 20% at 86% 64%, rgba(170, 186, 224, 0.3), transparent 70%);
  animation: fog-a 70s ease-in-out infinite alternate;
}

.hero__fog--b {
  inset: 35% -60% -20% -60%;
  opacity: 0.4;
  background:
    radial-gradient(ellipse 34% 24% at 36% 72%, rgba(190, 200, 235, 0.36), transparent 70%),
    radial-gradient(ellipse 26% 18% at 72% 86%, rgba(160, 180, 220, 0.3), transparent 70%);
  animation: fog-b 95s ease-in-out infinite alternate;
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero__content {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.hero__status {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--fg-2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  animation: ping 2.6s ease-out infinite;
}

.hero__title {
  max-width: 11ch;
  text-shadow: 0 2px 40px rgba(7, 10, 25, 0.6);
  transform: translate(calc(var(--mx, 0) * -6px), calc(var(--my, 0) * -4px));
  transition: transform 0.9s var(--ease);
}

.line {
  display: block;
  overflow: hidden;
  padding: 0.12em 0 0.28em;
  margin: -0.12em 0 -0.28em;
}

.js .line__i {
  display: block;
  transform: translateY(115%);
  animation: rise 1.2s var(--ease) forwards;
  animation-delay: calc(0.2s + var(--i, 0) * 0.14s);
  animation-play-state: paused;
}

.js.fonts-ready .line__i {
  animation-play-state: running;
}

.hero__lede {
  max-width: 30em;
  color: var(--fg);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 0.5rem;
}

/* ----------------------------------------------------------------------------
   Feature: text beside a floating character cutout
   ---------------------------------------------------------------------------- */
.feature {
  position: relative;
  padding-block: var(--section);
  overflow: hidden;
}

.feature__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.feature__text {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

.feature__text .h2 {
  max-width: 12ch;
}

.feature__figure {
  position: relative;
  width: min(60vw, 420px);
  margin-inline: auto;
}

.feature__figure::before {
  content: "";
  position: absolute;
  inset: 10% 0 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(126, 208, 198, 0.3), rgba(126, 208, 198, 0.08) 55%, transparent 75%);
  filter: blur(10px);
  transform: translate(calc(var(--mx, 0) * 18px), calc(var(--my, 0) * 12px));
  transition: transform 0.9s var(--ease);
}

.float {
  position: relative;
  transform: translate(calc(var(--mx, 0) * 10px), calc(var(--my, 0) * 6px));
  transition: transform 0.9s var(--ease);
}

.float img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5));
  animation: float 7s ease-in-out infinite;
}

/* ----------------------------------------------------------------------------
   Scene: full-bleed character render with copy in the empty side
   ---------------------------------------------------------------------------- */
.scene {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}

.scene__media {
  position: relative;
  height: 62svh;
  overflow: hidden;
}

.scene__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transform: translateY(var(--py, 0)) scale(1.1);
  will-change: transform;
}

/* Keeps the fixed header legible over bright image tops (all viewports). */
.scene__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(7, 10, 25, 0.78) 0%, rgba(7, 10, 25, 0.25) 22%, transparent 40%);
}

.scene__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  display: none;
}

.scene__content {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.5rem;
  justify-items: start;
  padding-block: 2.75rem var(--section);
}

.scene__content .h2 {
  max-width: 14ch;
}

.scene--center .scene__content {
  justify-items: center;
  text-align: center;
}

.scene--center .scene__content .h2 {
  max-width: 16ch;
}

.scene--center .lede {
  text-wrap: balance;
}

.scene--center .actions {
  justify-content: center;
}

/* Steps on the stage scene. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  width: 100%;
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line-2);
}

.step__num {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 0.85;
  min-width: 1.1em;
  color: var(--mint);
}

.step h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--fg-2);
  max-width: 30em;
  text-wrap: pretty;
}

/* Two perspectives on the bedroom scene. */
.pair {
  display: grid;
  gap: 1.25rem;
  width: 100%;
}

.pair__item {
  padding: 1.5rem 0 0.25rem;
  border-top: 1px solid var(--line-2);
  transition: opacity 0.45s ease;
}

.pair:hover .pair__item:not(:hover) {
  opacity: 0.5;
}

.pair dt {
  margin-bottom: 0.6rem;
  font-weight: 500;
  color: var(--mint);
}

.pair dd {
  color: var(--fg-2);
  max-width: 30em;
  text-wrap: pretty;
}


/* Text-only block between scenes: heading left, copy right. */
.textblock {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}

.textblock__grid {
  display: grid;
  gap: 2rem;
}

.textblock__grid .h2 {
  max-width: 13ch;
}

.textblock__text {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

/* Inner-page hero scene. */
.scene--intro .h1 {
  max-width: 12ch;
}

.scene--intro .intro__lede {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

/* Quiet typographic statement between scenes. */
.statement {
  padding-block: var(--section);
}

.statement__grid {
  display: grid;
  gap: 2rem;
}

.statement__grid .h2--xl {
  max-width: 11ch;
}

/* ----------------------------------------------------------------------------
   Information pages
   ---------------------------------------------------------------------------- */
.intro {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
  overflow: hidden;
}

.intro--short {
  min-height: 70svh;
}

.intro__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.intro__text {
  display: grid;
  gap: 1.75rem;
}

.intro__text .h1 {
  max-width: 16ch;
}

.intro__lede {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.intro__figure {
  position: relative;
  width: min(50vw, 360px);
  margin-inline: auto;
}

.intro__figure::before {
  content: "";
  position: absolute;
  inset: 10% 0 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(126, 208, 198, 0.28), transparent 72%);
  filter: blur(10px);
}

.sections {
  padding-bottom: var(--section);
}

.sec {
  display: grid;
  gap: 1.25rem;
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--line);
}

.sec__body {
  display: grid;
  gap: 1.1rem;
  justify-items: start;
}

.sec__body p {
  color: var(--fg-2);
  max-width: 34em;
  text-wrap: pretty;
}

.closing__grid {
  display: grid;
  gap: 2rem;
}

.closing__grid .h2 {
  max-width: 14ch;
}

.closing__text {
  display: grid;
  gap: 1.5rem;
  justify-items: start;
}

/* ----------------------------------------------------------------------------
   Forms
   ---------------------------------------------------------------------------- */
.form-page {
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: var(--section);
}

.form-page__grid {
  display: grid;
  gap: 2.5rem;
}

.form-page__head {
  display: grid;
  gap: 1.5rem;
}

.form-page__head .h1 {
  max-width: 14ch;
}

.form {
  display: grid;
  gap: 1.75rem;
  max-width: 40rem;
}

.form-page__aside {
  display: grid;
  gap: 1.25rem;
  align-content: start;
  color: var(--fg-2);
  font-size: 0.95rem;
  text-wrap: pretty;
}

.form-page__aside p {
  padding-left: 1.1rem;
  border-left: 2px solid var(--mint);
}

.field {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.label {
  font-weight: 500;
  color: var(--fg);
}

.label__opt {
  font-weight: 400;
  color: var(--fg-3);
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--fg);
  font: inherit;
  transition:
    border-color 0.3s,
    background-color 0.3s;
}

.field input:hover,
.field textarea:hover {
  border-color: var(--fg-3);
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline-offset: 2px;
  border-color: var(--mint);
}

.field [aria-invalid="true"] {
  border-color: var(--blush);
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
  line-height: 1.5;
}

.options {
  display: grid;
  gap: 0.1rem;
}

.option {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  align-items: start;
  gap: 0.8rem;
  min-height: 44px;
  padding: 0.55rem 0;
  cursor: pointer;
  color: var(--fg-2);
  transition: color 0.3s;
}

.option:hover {
  color: var(--fg);
}

.option input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  accent-color: var(--mint);
  cursor: pointer;
}

.field__error {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--blush);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status:empty {
  display: none;
}

.form__status {
  padding: 1.1rem 1.25rem;
  border-left: 3px solid var(--mint);
  background: var(--mint-dim);
  color: var(--fg);
}

.form__status[data-type="error"] {
  border-left-color: var(--blush);
  background: rgba(250, 183, 169, 0.08);
}

.form__status h2 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.form__status ul {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.3rem;
}

.form__status a {
  color: var(--blush);
}

.form__status--success {
  font-size: var(--lede);
  line-height: 1.5;
}

/* PHP fallback result page (no JavaScript). */
.result-page {
  display: grid;
  place-items: center;
  padding: 2rem var(--gutter);
}

.result {
  display: grid;
  gap: 1.5rem;
  max-width: 40rem;
  justify-items: start;
}

.result h1 {
  font-family: var(--serif);
  font-size: var(--h2);
  font-variation-settings: "SOFT" 30, "WONK" 1;
  letter-spacing: -0.02em;
}

/* ----------------------------------------------------------------------------
   Privacy document
   ---------------------------------------------------------------------------- */
.doc {
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: var(--section);
}

.doc__grid {
  display: grid;
  gap: 3rem;
}

.doc__head {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.doc__head .h1 {
  font-size: clamp(2.4rem, 1.2rem + 4.2vw, 5.4rem);
  max-width: 12ch;
}

.doc__meta {
  color: var(--fg-3);
}

.doc__alt,
.doc__notice {
  font-size: 0.95rem;
  color: var(--fg-2);
}

.doc__notice {
  padding-left: 1.1rem;
  border-left: 2px solid var(--mint);
}

.doc__body {
  display: grid;
  gap: 2rem;
  max-width: 44rem;
}

.doc__summary {
  display: grid;
  gap: 1rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}

.doc__section {
  display: grid;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.doc__section p,
.doc__items li {
  color: var(--fg-2);
  text-wrap: pretty;
}

.doc__rows {
  display: grid;
  gap: 0.5rem;
}

.doc__rows div {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr);
  gap: 1rem;
}

.doc__rows dt {
  color: var(--fg-3);
}

.doc__items {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.doc__items strong {
  display: block;
  color: var(--fg);
  font-weight: 500;
}

.doc__contact {
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

/* ----------------------------------------------------------------------------
   Footer
   ---------------------------------------------------------------------------- */
.site-footer {
  padding: clamp(3rem, 6vw, 5rem) 0 max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
}

.footer__brand {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.footer__brand .brand img {
  height: 44px;
}

.footer__company {
  max-width: 40ch;
  color: var(--fg-2);
  text-wrap: pretty;
}

.footer__site {
  color: var(--fg);
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--mint), var(--mint));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition:
    color 0.3s,
    background-size 0.35s var(--ease);
}

.footer__site:hover {
  color: var(--mint-2);
  background-size: 100% 2px;
}

.footer__side {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.footer__lang {
  flex-wrap: wrap;
  margin-left: -0.5rem;
}

.footer__lang a {
  letter-spacing: 0;
  font-size: 0.95rem;
}

.footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: 2.5rem;
  row-gap: 0.2rem;
}

.footer__nav a,
.footer__nav button {
  display: inline-block;
  padding: 0.45rem 0;
  border: 0;
  background: transparent;
  color: var(--fg-2);
  font-size: 0.95rem;
  text-align: left;
  text-decoration: none;
  transition: color 0.3s;
}

.footer__nav a:hover,
.footer__nav button:hover {
  color: var(--mint);
}

.footer__copy {
  grid-column: 1 / -1;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--fg-3);
}

/* ----------------------------------------------------------------------------
   Consent panel
   ---------------------------------------------------------------------------- */
.consent {
  position: fixed;
  inset: auto auto max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  z-index: 50;
  width: min(100% - 2rem, 25rem);
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--bg-2);
  color: var(--fg);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}

.consent[open] {
  animation: rise-soft 0.6s var(--ease) both;
}

.consent__inner {
  display: grid;
  gap: 0.6rem;
  padding: 1.3rem 1.5rem 1.5rem;
  border-left: 3px solid var(--mint);
}

.consent h2 {
  font-size: 1.15rem;
  font-weight: 500;
}

.consent p {
  font-size: 0.92rem;
  color: var(--fg-2);
  text-wrap: pretty;
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

/* ----------------------------------------------------------------------------
   Cursor accent (fine pointers only)
   ---------------------------------------------------------------------------- */
.cursor {
  display: none;
}

@media (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 70;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
  }

  .cursor.is-on {
    opacity: 1;
  }

  .cursor i {
    display: block;
    width: 14px;
    height: 14px;
    border: 1px solid var(--mint);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition:
      width 0.3s var(--ease),
      height 0.3s var(--ease),
      background-color 0.3s;
  }

  .cursor.is-link i {
    width: 44px;
    height: 44px;
    background: rgba(126, 208, 198, 0.14);
  }
}

/* ----------------------------------------------------------------------------
   Keyframes
   ---------------------------------------------------------------------------- */
@keyframes rise {
  from {
    transform: translateY(112%);
  }

  to {
    transform: none;
  }
}

@keyframes rise-soft {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes drift {
  from {
    transform: scale(1.06) translate(calc(var(--mx, 0) * -12px), calc(var(--my, 0) * -8px));
  }

  to {
    transform: scale(1.12) translate(calc(var(--mx, 0) * -12px - 1.5%), calc(var(--my, 0) * -8px + 0.8%));
  }
}

@keyframes fog-a {
  from {
    transform: translateX(-6%) translateY(0);
  }

  to {
    transform: translateX(6%) translateY(-2%);
  }
}

@keyframes fog-b {
  from {
    transform: translateX(5%) translateY(1%);
  }

  to {
    transform: translateX(-5%) translateY(-1%);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(126, 208, 198, 0.55);
  }

  70%,
  100% {
    box-shadow: 0 0 0 12px rgba(126, 208, 198, 0);
  }
}

/* ----------------------------------------------------------------------------
   Breakpoints
   ---------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .pair {
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
  }

  .pair__item + .pair__item {
    padding-left: 1.5rem;
    border-left: 1px solid var(--line-2);
  }

  .footer__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    align-items: start;
  }

  .footer__side {
    justify-items: end;
    text-align: right;
  }

  .footer__lang {
    margin-left: 0;
    margin-right: -0.5rem;
    justify-content: flex-end;
  }

  .footer__nav a,
  .footer__nav button {
    text-align: right;
  }

  .form-page__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    column-gap: var(--gap);
  }

  .form-page__head {
    grid-column: 1 / -1;
  }

  .form-page__aside {
    padding-top: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .nav {
    display: block;
  }

  .lang {
    display: flex;
  }

  .menu-btn[data-menu-open] {
    display: none;
  }

  .hero__content {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
  }

  .hero__content > * {
    grid-column: 1 / 7;
  }

  .feature__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--gap);
  }

  .feature--flip .feature__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .feature--flip .feature__text {
    order: 2;
  }

  .feature__figure {
    width: min(100%, 440px);
  }

  /* Scenes become full-viewport panels with the copy over the empty side. */
  .scene {
    min-height: 100svh;
    display: grid;
    align-items: center;
  }

  .scene__media {
    position: absolute;
    inset: 0;
    height: auto;
    z-index: 0;
  }

  .scene__scrim {
    display: block;
  }

  .scene--right .scene__scrim {
    background:
      linear-gradient(90deg, transparent 32%, rgba(7, 10, 25, 0.55) 56%, rgba(7, 10, 25, 0.9) 100%),
      linear-gradient(180deg, rgba(7, 10, 25, 0.35) 0%, transparent 25%, transparent 75%, rgba(7, 10, 25, 0.5) 100%);
  }

  .scene--left .scene__scrim {
    background:
      linear-gradient(270deg, transparent 32%, rgba(7, 10, 25, 0.55) 56%, rgba(7, 10, 25, 0.9) 100%),
      linear-gradient(180deg, rgba(7, 10, 25, 0.35) 0%, transparent 25%, transparent 75%, rgba(7, 10, 25, 0.5) 100%);
  }

  .scene--center .scene__scrim {
    background: linear-gradient(180deg, rgba(7, 10, 25, 0.4) 0%, transparent 30%, transparent 48%, rgba(7, 10, 25, 0.88) 86%);
  }

  .scene__content {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    padding-block: calc(var(--header-h) + 2rem) 5rem;
  }

  .scene--right .scene__content > * {
    grid-column: 7 / -1;
  }

  .scene--left .scene__content > * {
    grid-column: 1 / 7;
  }

  .scene--center {
    align-items: end;
  }

  .scene--center .scene__content > * {
    grid-column: 3 / 11;
  }

  .scene--center .scene__content {
    padding-bottom: 9vh;
  }

  .statement__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--gap);
    align-items: end;
  }

  .textblock__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    column-gap: var(--gap);
    align-items: start;
  }

  .scene--intro {
    min-height: 100svh;
  }

  .intro__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--gap);
  }

  .intro--figure .intro__grid {
    min-height: calc(100svh - var(--header-h) - 6rem);
  }

  .intro__figure {
    width: min(100%, 400px);
  }

  .sec {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--gap);
  }

  .closing__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: var(--gap);
    align-items: start;
  }

  .doc__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    column-gap: var(--gap);
    align-items: start;
  }

  .doc__head {
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js [data-reveal],
  .js [data-split] .w__i,
  .js .line__i {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero__bg img,
  .float img {
    animation: none;
  }

  .hero__particles,
  .hero__fog {
    display: none;
  }

  .scene__media img {
    transform: none;
  }
}
