/* AXIAL — Coming Soon
   Plain CSS, mobile-first. No build step. */

/* ---------- Fonts (self-hosted, SIL Open Font License — see fonts/OFL-*.txt) ---------- */

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-500i-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/cormorant-garamond-500i-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/jost-variable-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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/jost-variable-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */

:root {
  --cream: #f4eee4;
  --cream-light: #fbf8f2;
  --cream-deep: #ebe2d3;
  /* AXIAL dark blue: CMYK 84/70/43/32 from the official logo, converted to
     sRGB via FOGRA39 (ISO Coated v2), relative colorimetric + BPC. */
  --navy: #364059;
  --navy-soft: #4a536b;
  --line: rgb(54 64 89 / 0.28);
  --ring: rgb(54 64 89 / 0.075);

  --font-serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Jost", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --axis-h: clamp(3.5rem, 11vh, 6.5rem);
  --gutter: 1.25rem;

  /* Width of the AXIAL wordmark. The other logo elements are sized from it,
     keeping the official wordmark/subtitle proportions and spacing. */
  --wm: min(clamp(17rem, 74vw, 34rem), 57vh);

  color-scheme: light;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse 75% 55% at 50% 45%, var(--cream-light) 0%, rgb(251 248 242 / 0) 70%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%);
  background-attachment: fixed;
  color: var(--navy);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fine paper grain for warmth */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  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='.9' numOctaves='3' 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");
}

/* ---------- Backdrop rings ---------- */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ring {
  position: absolute;
  top: 46%;
  left: 50%;
  aspect-ratio: 1;
  border: 1px solid var(--ring);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation:
    fade 2.4s ease-out 0.4s both,
    breathe 12s ease-in-out 2.8s infinite;
}

.ring--outer {
  width: min(150vw, 60rem);
}

.ring--inner {
  width: min(105vw, 40rem);
  animation-delay: 0.6s, -3.2s;
}

/* ---------- Hero ---------- */

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding:
    clamp(3rem, 9vh, 6rem)
    max(var(--gutter), env(safe-area-inset-right))
    clamp(2rem, 6vh, 4rem)
    max(var(--gutter), env(safe-area-inset-left));
  text-align: center;
}

.axis {
  position: relative;
  display: block;
  width: 1px;
  height: var(--axis-h);
  margin-bottom: clamp(1.25rem, 3.5vh, 2.25rem);
  background: linear-gradient(to bottom, rgb(54 64 89 / 0), rgb(54 64 89 / 0.55));
  transform-origin: top center;
  animation: draw-y 1.4s var(--ease-out) 0.1s both;
}

/* A point travelling down the axis — "in progress" */
.axis::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--navy);
  opacity: 0;
  animation: travel 4.2s cubic-bezier(0.45, 0, 0.25, 1) 1.9s infinite;
}

/* ---------- Official logo, stacked ---------- */

.symbol {
  display: block;
  width: calc(var(--wm) * 0.4);
  height: auto;
  /* Put the apex of the "A", not its bounding box, on the axis. */
  translate: -8.58% 0;
  margin-bottom: calc(var(--wm) * 0.08);
  animation: rise 1.4s var(--ease-out) 0.4s both;
}

.wordmark,
.subtitle {
  margin: 0;
  line-height: 0;
}

.wordmark {
  animation: rise 1.4s var(--ease-out) 0.6s both;
}

.wordmark img {
  display: block;
  width: var(--wm);
  height: auto;
}

/* Official spacing and size relative to the wordmark. */
.subtitle {
  margin-top: calc(var(--wm) * 0.0881);
  animation: rise 1.4s var(--ease-out) 0.8s both;
}

.subtitle img {
  display: block;
  width: calc(var(--wm) * 1.0147);
  height: auto;
}

/* ---------- Message ---------- */

.divider {
  display: block;
  width: 2.75rem;
  height: 1px;
  margin: clamp(2rem, 5.5vh, 3.25rem) 0;
  background: var(--line);
  animation: draw-x 1.2s var(--ease-out) 1.05s both;
}

.status {
  margin: 0;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.3125rem);
  letter-spacing: 0.01em;
  color: var(--navy-soft);
  animation: rise 1.2s var(--ease-out) 1.2s both;
}

.soon {
  margin: 0.4rem 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.875rem, 1.5rem + 1.6vw, 2.875rem);
  line-height: 1.25;
  animation: rise 1.2s var(--ease-out) 1.35s both;
}

/* ---------- Footer ---------- */

.footer {
  padding:
    1.25rem
    max(var(--gutter), env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-soft);
  animation: fade 1.6s ease-out 1.6s both;
}

.footer p {
  margin: 0;
}

/* ---------- Short screens ---------- */

@media (max-height: 520px) and (orientation: landscape) {
  :root {
    --axis-h: 2rem;
    --wm: clamp(10rem, 40vh, 13rem);
  }

  .hero {
    padding-top: 1rem;
    padding-bottom: 0.75rem;
  }

  .axis {
    margin-bottom: 0.75rem;
  }

  .divider {
    margin: 1rem 0;
  }

  .footer {
    padding-top: 0.5rem;
  }
}

/* ---------- Motion ---------- */

@keyframes draw-y {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

@keyframes draw-x {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(0.75rem); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes travel {
  0%   { opacity: 0; transform: translateY(0); }
  20%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(calc(var(--axis-h) - 5px)); }
}

@keyframes breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50%      { transform: translate(-50%, -50%) scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .axis::after {
    display: none;
  }
}

/* ---------- Windows High Contrast / forced colours ---------- */

@media (forced-colors: active) {
  .axis,
  .divider {
    background: CanvasText;
  }

  .axis::after,
  .backdrop,
  body::before {
    display: none;
  }
}

/* Dark high-contrast themes: show the navy logo in white. */
@media (forced-colors: active) and (prefers-color-scheme: dark) {
  .symbol,
  .wordmark img,
  .subtitle img {
    filter: brightness(0) invert(1);
  }
}
