/* 2026-10-01 21:44 CEST - The shared ground, voice, arrival, breathing light and responsive commitment pill.
   The landing adds landing.css, the card maker beta/maker.css; legal pages add legal.css through the import below. */

@import url("legal.css");

@font-face {
  font-family: "Albert Sans";
  font-style: normal;
  font-weight: 450;
  font-display: swap;
  src: url("fonts/AlbertSans-450.woff2") format("woff2");
}

:root {
  --ground: #030303;
  --ink: #ffffff;
  --ink-muted: #9b9ba0;
  --line: rgba(255, 255, 255, 0.26);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: clamp(20px, 5vw, 64px);
  --small: 12px;
  --body: 16px;

  /* The one arrival, tuned here for every page. The light fades up as each voice word fades up and rises, a
     step after the word before it and never later than the last start. Support follows as one piece; the
     commitment lands last. Everything rests by about 760ms. Words lift out quickly when a page or answer moves on. */
  --arrive-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --arrive-light: 700ms;
  --arrive-word: 420ms;
  --arrive-word-step: 45ms;
  --arrive-word-last: 220ms;
  --arrive-word-rise: 8px;
  --arrive-support-delay: 150ms;
  --arrive-support: 420ms;
  --arrive-support-rise: 6px;
  --arrive-commit-delay: 360ms;
  --arrive-commit: 400ms;
  --arrive-commit-rise: 14px;
  --leave: 180ms;
  --leave-lift: 6px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  overflow: hidden;
  touch-action: pinch-zoom;
  background: var(--ground);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--ink);
  color: var(--ground);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- The voice: one big line per page, at the brand voice's weight and tracking ---- */

.voice {
  margin: 0;
  font-family: "Albert Sans", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 450;
  line-height: 1.1;
  letter-spacing: 0.039em;
  text-wrap: balance;
}

.voice:focus {
  outline: 0;
}

/* Small grey support under the voice; white only for the words that matter. */
.support {
  margin: 0;
  font-size: var(--body);
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  text-wrap: balance;
}

.support strong {
  font-weight: inherit;
  color: var(--ink);
}

/* ---- The arrival ---- */

/* A word's place in its line comes from --i, set by hand in the HTML or by the page's script. */
.voice .word {
  --rise: var(--arrive-word-rise);
  --word-delay: min(calc(var(--i, 0) * var(--arrive-word-step)), var(--arrive-word-last));
  display: inline-block;
  animation: arrive var(--arrive-word) var(--arrive-ease) var(--word-delay) backwards;
}

.arrive-support {
  --rise: var(--arrive-support-rise);
  animation: arrive var(--arrive-support) var(--arrive-ease) var(--arrive-support-delay) backwards;
}

.arrive-commit {
  --rise: var(--arrive-commit-rise);
  animation: arrive var(--arrive-commit) var(--arrive-ease) var(--arrive-commit-delay) backwards;
}

/* An answer replacing the page's line lifts the old words out first; the new ones arrive as above. */
.is-leaving .word,
.arrive-support.is-leaving,
.arrive-commit.is-leaving {
  animation: leave var(--leave) var(--arrive-ease) forwards;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(var(--rise));
  }
}

@keyframes leave {
  to {
    opacity: 0;
    transform: translateY(calc(-1 * var(--leave-lift)));
  }
}

/* ---- The canvas: the mark in the corner, one centred column, small print at the foot ---- */

.top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: max(16px, env(safe-area-inset-top)) var(--gutter) 0;
}

.top > :first-child {
  margin-right: auto;
}

.top a {
  display: inline-block;
}

.mark {
  display: block;
  width: 36px;
  height: 36px;
  margin-left: -6px;
  color: var(--ink);
}

/* Pages other than the landing show the mark through the favicon; its black tile lets the light show through. */
img.mark {
  mix-blend-mode: lighten;
}

.stage {
  position: relative;
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) var(--gutter) 24px;
  text-align: center;
}

.stage > .support {
  max-width: 34em;
  margin-top: clamp(20px, 3.4vh, 32px);
}

/* The page's one commitment, a clear step below its line. */
.stage > .commit {
  margin-top: clamp(36px, 7vh, 64px);
}

.foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 24px;
  padding: 8px var(--gutter) max(16px, env(safe-area-inset-bottom));
  font-size: var(--small);
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: inherit;
  text-decoration: none;
  transition: color 300ms var(--ease);
}

.foot a:hover,
.foot a:focus-visible {
  color: var(--ink);
}

/* One quiet label at the top right opens this page in the other language. */
.top .lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 44px;
  flex-shrink: 0;
  color: var(--ink-muted);
  font-size: var(--small);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 300ms var(--ease);
}

.lang-switch:hover,
.lang-switch:focus-visible {
  color: var(--ink);
}

/* The light behind the line: white to transparent, breathing slowly. On desktop light.js leans it toward the
   pointer. It carries across pages instead of starting over. */
.light {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  view-transition-name: light;
  animation: light-on var(--arrive-light) var(--arrive-ease) backwards;
}

.light::before {
  content: "";
  position: absolute;
  top: 40%;
  left: 50%;
  width: max(150vmin, 1100px);
  height: max(96vmin, 700px);
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035) 45%, rgba(255, 255, 255, 0) 100%);
  /* A fine, still grain masks the light itself, so its dark gradient shows no steps; plain black stays black. */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.6 0.6 0 0 0.25'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.6 0.6 0 0 0.25'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E");
  -webkit-mask-size: 160px;
  mask-size: 160px;
  animation: breathe 14s ease-in-out infinite alternate;
}

@keyframes light-on {
  from {
    opacity: 0;
  }
}

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

@keyframes breathe {
  from {
    opacity: 0.7;
    scale: 0.92;
  }

  to {
    opacity: 1;
    scale: 1.06;
  }
}

/* ---- The commitment: one solid white pill ---- */

/* It lifts toward the pointer and squeezes on press. While busy it morphs into a small white circle holding a quiet
   spinner and grows back; clip-path keeps the layout still, and a new state turns it around mid-way. At rest
   the clip reaches past the edge so the focus ring stays visible. */
.beta-button {
  position: relative;
  min-height: 44px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ground);
  font: inherit;
  font-size: var(--body);
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  clip-path: inset(-8px round 999px);
  transition:
    transform 180ms var(--ease),
    clip-path 320ms var(--arrive-ease),
    color 160ms ease-out,
    opacity 300ms var(--ease);
}

.beta-button::after {
  content: "";
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  margin: auto;
  border: 1.5px solid var(--ground);
  border-right-color: transparent;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 160ms ease-out;
  animation: spin 800ms linear infinite paused;
}

.beta-button:hover {
  opacity: 0.88;
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
  .beta-button:not(:disabled):not([aria-busy="true"]):hover {
    transform: translateY(-2px) scale(1.02);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .beta-button:not(:disabled):not([aria-busy="true"]):active {
    transform: scale(0.97);
  }
}

.beta-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.beta-button[aria-busy="true"] {
  opacity: 1;
  color: transparent;
  clip-path: inset(2px calc(50% - 20px) round 999px);
}

.beta-button[aria-busy="true"]::after {
  opacity: 1;
  transition-delay: 120ms;
  animation-play-state: running;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

a.beta-button,
a.beta-button:hover {
  color: var(--ground);
  text-decoration: none;
}

a.beta-button:not([hidden]) {
  display: inline-flex;
  align-items: center;
}

/* ---- The naked field: text on a hairline that draws in white on focus ---- */

.beta-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.beta-field::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 420ms var(--arrive-ease);
}

.beta-field:focus-within::after {
  transform: scaleX(1);
}

.beta-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--body);
  letter-spacing: 0.02em;
  caret-color: var(--ink);
}

.beta-input::placeholder {
  color: var(--ink-muted);
}

.beta-input:focus-visible {
  outline: 0;
}

/* ---- The contact page: three addresses side by side, each under who it is for ---- */

.addresses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  width: min(100%, 920px);
}

.address h2,
.address p {
  margin: 0;
  font-size: var(--small);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  text-wrap: balance;
}

.address strong {
  display: block;
  margin: 6px 0 8px;
  font-size: var(--body);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.address a {
  color: inherit;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
  transition: text-decoration-color 300ms var(--ease);
}

.address a:hover {
  text-decoration-color: var(--ink);
}

@media (max-width: 720px) {
  .addresses {
    grid-template-columns: 1fr;
    gap: 32px;
    width: min(100%, 420px);
  }
}

/* ---- Moving between pages: the old page's words lift out, the new page arrives, the mark stays put ---- */

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }
}

.mark {
  view-transition-name: mark;
}

::view-transition-old(root) {
  animation: leave var(--leave) var(--arrive-ease) both;
}

::view-transition-new(root) {
  animation: none;
}

/* The old page's light fades out on the same curve the new one fades in on, so together they hold steady. */
::view-transition-old(light) {
  animation: light-out var(--arrive-light) var(--arrive-ease) both;
}

::view-transition-new(light) {
  animation: none;
}

::view-transition-group(mark) {
  animation-duration: var(--arrive-word);
  animation-timing-function: var(--arrive-ease);
  mix-blend-mode: lighten;
}

@media (prefers-reduced-motion: reduce) {
  .light,
  .light::before,
  .voice .word,
  .arrive-support,
  .arrive-commit,
  .beta-button::after {
    animation: none;
  }

  .beta-button,
  .beta-field::after {
    transition: none;
  }
}
