/* SAVIAN Group — waiting page
   Tokens: Platine / Mercure. No chromatic accent; the ivory is cold. */

/* Inter, self-hosted (SIL OFL). One variable file covers 300/400/500. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin-var.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;
}

:root {
  /* Surfaces */
  --base: #08080a;

  /* Ink */
  --ink-100: #ecedf1;
  --ink-300: #a9acb6;
  --ink-500: #7d808c;

  /* Metal — the only accent */
  --metal-100: #e9ebf0;
  --metal-300: #c4c7ce;
  --metal-ink: #0a0a0b;

  /* Motion */
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------------------------------------------------------------- base */

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--base);
  overflow: hidden;
}

body {
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink-300);
  text-decoration: none;
}

a:hover {
  color: var(--ink-100);
}

img {
  display: block;
}

/* <picture> is a WebP/PNG switch only — the <img> keeps its place in the layout. */
picture {
  display: contents;
}

/* --------------------------------------------------------------- stage */

.stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 440px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 62% 62%, #16171d 0%, #0d0e12 46%, #08080a 100%);
}

/* -------------------------------------------------------------- layers */
/* Bottom to top: sky, sun halo, sun, birds, hills, scrim, vignette. */

.sky {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 78%;
  object-fit: cover;
  object-position: 50% 26%;
  opacity: .46;
  filter: grayscale(1) contrast(1.05);
  pointer-events: none;
  will-change: transform;
  animation: skyDrift 120s ease-in-out infinite;
}

/* Centred on the sun with a transform, so the box stays centred once
   84vw hits the 1100px cap (negative margins would drift left). */
.halo-wrap {
  position: absolute;
  left: 75%;
  top: 77%;
  width: 84vw;
  height: 84vw;
  max-width: 1100px;
  max-height: 1100px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.halo {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%,
    rgba(226, 229, 236, .15) 0%,
    rgba(199, 202, 209, .055) 38%,
    rgba(0, 0, 0, 0) 68%);
  will-change: opacity, transform;
  animation: haloBreath 34s ease-in-out infinite;
}

/* Centring lives on the wrapper — the animation's transform would overwrite it. */
.sun-wrap {
  position: absolute;
  left: 75%;
  top: 77%;
  width: min(940px, 88vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.sun {
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
  will-change: opacity, transform;
  animation: sunBreath 34s ease-in-out infinite;
}

/* Wrappers own the flight path (and the opacity it animates); the svg flaps. */
.bird {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  animation: birdPath linear infinite;
}

.bird__wing {
  display: block;
  width: 100%;
  transform-origin: 50% 80%;
  animation: flap ease-in-out infinite;
}

.bird--1 { right: 7%;  top: 5%;  width: 22px; animation-duration: 46s; }
.bird--2 { right: 17%; top: 11%; width: 16px; animation-duration: 54s; animation-delay: 4s; }
.bird--3 { right: 26%; top: 3%;  width: 13px; animation-duration: 64s; animation-delay: 11s; }

.bird--1 .bird__wing { animation-duration: 1.1s; }
.bird--2 .bird__wing { animation-duration: .9s; animation-delay: .2s; }
.bird--3 .bird__wing { animation-duration: 1.3s; animation-delay: .5s; }

/* No object-fit: cropping the top would cut a straight line across the ridge.
   Instead the image is scaled and slid so the ridge lands near 63% of the height
   at every aspect ratio.
     - wide viewports: width 100%, and `bottom` pushes the image down;
     - tall viewports (phones, tablets in portrait): `bottom` clamps to 0 and the
       width grows with the height instead, so the ridge and the villas on the
       left stay in frame rather than leaving a screen of nothing but sky.
   109dvh keeps the ridge at ~63%: h = 109dvh / 1.7768 (the image's aspect), and
   the ridge sits 39.6% down the image at x=0. Overflow is clipped by .stage. */
.hills {
  position: absolute;
  left: 0;
  bottom: min(0px, calc(37vh - 27.2vw));
  width: max(100%, 109vh);
  width: max(100%, 109dvh);
  height: auto;
  filter: grayscale(1) brightness(.72) contrast(1.1);
  pointer-events: none;
}

.scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52%;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(8, 8, 10, 0) 0%,
    rgba(8, 8, 10, .5) 40%,
    rgba(8, 8, 10, .88) 74%,
    rgba(8, 8, 10, .97) 100%);
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 46%,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, .34) 78%,
    rgba(0, 0, 0, .7) 100%);
}

/* ------------------------------------------------------------- content */

.content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(32px, 5vh, 56px) 24px clamp(96px, 14vh, 140px);
  box-sizing: border-box;
  text-align: center;
}

/* Image asset, never re-set in a typeface. Sized by width; height follows. */
.wordmark {
  width: min(267px, 41vw);
  height: auto;
  animation: rise 1.5s .1s var(--ease) both;
}

.headline {
  margin: 40px 0 0;
  max-width: 26ch;
  font-size: clamp(19px, 2.5vw, 30px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.32;
  color: var(--ink-100);
  text-shadow: 0 2px 48px rgba(0, 0, 0, .7);
  text-wrap: balance;
  animation: reveal .8s var(--ease) both;
}

.hairline {
  width: 40px;
  height: 1px;
  margin: 30px 0 0;
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, .3) 50%,
    rgba(255, 255, 255, 0) 100%);
  transform-origin: center;
  animation: seam .8s .12s var(--ease) both;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
  animation: reveal .8s .9s var(--ease) both;
}

.footnote {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-500);
  animation: reveal .8s 1s var(--ease) both;
}

/* ------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .02em;
}

.btn__glyph {
  flex: none;
}

.btn--primary {
  padding: 0 26px;
  background: linear-gradient(180deg, var(--metal-100), var(--metal-300));
  color: var(--metal-ink);
  font-weight: 500;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    0 10px 26px -14px rgba(0, 0, 0, .9);
  transition:
    filter .35s var(--ease),
    transform .35s var(--ease);
}

.btn--primary:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
  color: var(--metal-ink);
}

.btn--ghost {
  padding: 0 24px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .08);
  color: var(--ink-100);
  font-weight: 400;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  transition:
    border-color .35s ease,
    background .35s ease,
    color .35s ease,
    transform .35s var(--ease);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .09);
  color: var(--ink-100);
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 1px solid rgba(255, 255, 255, .55);
  outline-offset: 3px;
}

/* ----------------------------------------------------------- keyframes */

@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

@keyframes seam {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(46px); filter: blur(8px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes sunBreath {
  0%, 100% { opacity: .34; transform: scale(.94); }
  50%      { opacity: .96; transform: scale(1.06); }
}

@keyframes haloBreath {
  0%, 100% { opacity: .2; transform: scale(.9); }
  50%      { opacity: .6; transform: scale(1.1); }
}

@keyframes skyDrift {
  0%, 100% { transform: translate3d(-2%, 0, 0) scale(1.06); }
  50%      { transform: translate3d(2%, -1%, 0) scale(1.1); }
}

@keyframes flap {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(.28); }
}

@keyframes birdPath {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  8%   { opacity: .75; }
  50%  { transform: translate3d(-11vw, 4vh, 0) rotate(-3deg); opacity: .8; }
  92%  { opacity: 0; }
  100% { transform: translate3d(-23vw, 1vh, 0) rotate(2deg); opacity: 0; }
}

/* ----------------------------------------------------- reduced motion */
/* Entrance keyframes start at opacity 0, so dropping the animation must leave
   the element at its natural — visible — state. It does: with no animation,
   animation-fill-mode has nothing to fill from. The bird wrappers are
   opacity: 0 in their own right and correctly disappear. */

@media (prefers-reduced-motion: reduce) {
  .sky,
  .halo,
  .sun,
  .bird,
  .bird__wing,
  .wordmark,
  .headline,
  .hairline,
  .actions,
  .footnote {
    animation: none !important;
  }

  .btn {
    transition: none !important;
  }
}
