/* The coming-soon page: the main site's colours and sizes, on one screen of ink
   over the hero clip. The founder (17 Oct), after a larger pass: "everything is
   too big … go back to the original sizes, except the logo, and the main text,
   just change the font a bit". So the sizes are the first version's; the logo
   is the official lockup, a little larger; and the headline alone is in Geist
   (OFL 1.1, fonts/OFL.txt), with its teal line. No script: the clip loops by
   itself, and everything that moves is CSS. */

/* Geist, variable (100–900), as the usual Latin / Latin Extended subsets: ő and ű fetch the second file only. */
@font-face {
  font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/geist-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: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}

:root {
  --paper: #fbfaf8;
  --ink: #0c1413;
  --text-onink: #eef2f1;
  --text-onink-muted: #a3b3b0;
  --teal: #0f766e;
  --teal-bright: #5eccc0;
  --teal-glow: #9fe8de;
  --rule-onink: #22312e;
  --radius: 10px;
  --shell: 72rem;
  --font: ui-sans-serif, -apple-system, "Segoe UI", Inter, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Geist", var(--font);
  --ease-settle: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ink);
  color: var(--text-onink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------- the stage */
.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  /* The poster, for when the clip does not play (reduced motion, autoplay refused). */
  background: var(--ink) url("/media/hero-call.webp") center / cover no-repeat;
}
.stage__media { position: absolute; inset: 0; z-index: -2; }
.stage__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage__veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 20, 19, .92) 0%, rgba(12, 20, 19, .72) 48%, rgba(12, 20, 19, .35) 100%),
    linear-gradient(0deg, rgba(12, 20, 19, .9) 0%, rgba(12, 20, 19, 0) 45%);
}
.stage__inner {
  min-height: inherit;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(1.25rem, 1rem + 2vw, 2.5rem) clamp(1rem, .5rem + 3vw, 2.5rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
}

/* ------------------------------------------------------------- the logo */
/* The official lockup for dark grounds (website/src/assets): larger than the first version's mark. */
.brand {
  display: block;
  height: clamp(2rem, 1.55rem + 1.3vw, 2.75rem);
  width: auto;
  max-width: 100%;
  opacity: 0; transform: translateY(-6px);
  animation: rise 900ms var(--ease-settle) 80ms forwards;
}

/* ------------------------------------------------------------- the copy */
.stage__copy { align-self: center; max-width: 48rem; }
.stage__copy .lede, .stage__copy .status { max-width: 38rem; } /* the headline gets the width, the reading lines keep theirs */
.eyebrow {
  margin: 0;
  font-size: .78rem; font-weight: 620; letter-spacing: .11em; text-transform: uppercase;
  color: var(--teal-bright);
}
.display {
  margin: .9rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.4rem + 4.4vw, 4.6rem);
  line-height: 1.02; letter-spacing: -.038em; font-weight: 680;
}
/* The headline's second line: a slow teal-to-paper sheen. */
.display__accent {
  background: linear-gradient(100deg, var(--teal-bright) 0%, var(--teal-glow) 30%, var(--paper) 50%, var(--teal-glow) 70%, var(--teal-bright) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: sheen 9s ease-in-out infinite alternate;
  padding-bottom: .08em; /* room for the descenders, which background-clip would otherwise cut */
}
@keyframes sheen { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.lede {
  margin: 1.25rem 0 0;
  font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem);
  color: var(--text-onink-muted);
}
.status {
  margin: 1.6rem 0 0;
  display: flex; align-items: baseline; gap: .7rem;
  color: var(--text-onink);
  font-size: .98rem;
}
.status__dot {
  position: relative; flex: none; top: -.08rem;
  width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--teal-bright);
}
.status__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--teal-bright);
  animation: ping 2.4s var(--ease-settle) infinite;
}
@keyframes ping {
  0% { transform: scale(1); opacity: .6; }
  80%, 100% { transform: scale(3); opacity: 0; }
}

/* ------------------------------------------------------------- buttons */
/* The founder: "make the email and the phone number buttons interactive". They are links that open
   the mail app and the dialler; now they also say so: an icon, a lift and a glow on hover, a sweep of
   light across, a press on click, and a clear ring for the keyboard. */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .8rem 1.35rem; border-radius: var(--radius);
  font-weight: 590; font-size: 1rem; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  overflow-wrap: anywhere;
  transition: transform .2s var(--ease-settle), box-shadow .25s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn__icon { width: 1.1rem; height: 1.1rem; flex: none; transition: transform .25s var(--ease-settle); }
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn:hover::after, .btn:focus-visible::after { transform: translateX(120%); transition: transform .7s var(--ease-settle); }
.btn:active { transform: translateY(0) scale(.98); transition-duration: .08s; }
.btn:focus-visible { outline-offset: 4px; }

.btn--onink { background: var(--paper); color: var(--ink); }
.btn--onink:hover, .btn--onink:focus-visible { background: #fff; box-shadow: 0 10px 30px -10px rgba(94, 204, 192, .55), 0 0 0 1px rgba(94, 204, 192, .35); }
.btn--onink:hover .btn__icon, .btn--onink:focus-visible .btn__icon { transform: translateX(-1px) rotate(-8deg) scale(1.08); }

.btn--ghost-onink { border-color: var(--rule-onink); color: var(--text-onink); background: rgba(12, 20, 19, .35); }
.btn--ghost-onink::after { background: linear-gradient(110deg, transparent 30%, rgba(94, 204, 192, .22) 50%, transparent 70%); }
.btn--ghost-onink:hover, .btn--ghost-onink:focus-visible { border-color: var(--teal-bright); background: rgba(15, 118, 110, .22); box-shadow: 0 10px 30px -12px rgba(94, 204, 192, .5); }
.btn--ghost-onink:hover .btn__icon, .btn--ghost-onink:focus-visible .btn__icon { animation: ring .6s ease-in-out; color: var(--teal-bright); }
@keyframes ring {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-14deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(5deg); }
}

/* ------------------------------------------------------------- the foot */
.stage__foot { font-size: .84rem; color: var(--text-onink-muted); }
.stage__foot p { margin: .3rem 0 0; }
.stage__en { color: var(--text-onink); }
.stage__disclosure { max-width: 46rem; opacity: .8; }

/* The copy arrives once, after the logo. */
.stage__copy > * { opacity: 0; transform: translateY(10px); animation: rise 700ms var(--ease-settle) forwards; }
.stage__copy > :nth-child(1) { animation-delay: 250ms; }
.stage__copy > :nth-child(2) { animation-delay: 330ms; }
.stage__copy > :nth-child(3) { animation-delay: 430ms; }
.stage__copy > :nth-child(4) { animation-delay: 530ms; }
.stage__copy > :nth-child(5) { animation-delay: 610ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .stage__video { display: none; }
  .brand, .stage__copy > *, .status__dot::after, .display__accent, .btn__icon { animation: none !important; }
  .brand, .stage__copy > * { opacity: 1; transform: none; }
  .btn, .btn::after, .btn__icon { transition: none; }
  .btn::after { display: none; }
}
