/* Aurevane Reserve – public website. Imperial Navy, Deep Orbit, Reserve Brass, Vellum.
   Self-hosted fonts (Cinzel, IBM Plex Sans; SIL Open Font License), no scripts, no cookies, no trackers.
   Parallax is CSS-only (scroll-driven animations) and switches off with "reduce motion". */

@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }

:root {
  --navy: #0D1322;
  --orbit: #1B2438;
  --brass: #C9A45C;
  --brass-soft: rgba(201, 164, 92, 0.16);
  --vellum: #F4EFE4;
  --paper: #FBF8F1;
  --ink: #1A2033;
  --ink-2: #454C5E;
  --line: #E2DACB;
  --on-navy: #EDE6D6;
  --on-navy-2: #B7B2A6;
  --display: "Cinzel", Georgia, serif;
  --text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--vellum); color: var(--ink); font: 17px/1.65 var(--text); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* Top bar */
/* The bar with the griffin stays in the corner while you scroll. */
.top { position: sticky; top: 0; z-index: 20; background: rgba(13, 19, 34, 0.94); color: var(--on-navy); border-bottom: 1px solid rgba(201, 164, 92, 0.18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.mark img { width: 30px; }
.mark span { font: 600 15px/1 var(--display); letter-spacing: 0.22em; text-transform: uppercase; }
.mark small { display: block; margin-top: 5px; font: 400 10px/1 var(--display); letter-spacing: 0.5em; color: var(--brass); }
.top nav { display: flex; gap: 22px; font-size: 14px; }
.top nav a { text-decoration: none; color: var(--on-navy-2); }
.top nav a:hover, .top nav a[aria-current] { color: var(--on-navy); }
.top-right { display: flex; align-items: center; gap: 26px; }
.top .langs { gap: 2px; padding-left: 22px; border-left: 1px solid rgba(201, 164, 92, 0.3); }
.top .langs a { padding: 4px 6px; border-radius: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; }
.top .langs a[aria-current] { color: var(--brass); }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, var(--orbit) 0%, var(--navy) 62%); color: var(--on-navy); text-align: center; }
.hero .wrap { position: relative; }
.hero-glow { position: absolute; inset: -20% -10% auto; height: 120%; background: radial-gradient(40% 35% at 50% 30%, rgba(201, 164, 92, 0.16), transparent 70%); pointer-events: none; }
.hero .wrap { padding-block: 56px 88px; display: grid; justify-items: center; }
.hero img { width: min(190px, 44vw); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45)); }
.hero h1 { margin: 28px 0 0; font: 600 clamp(38px, 8vw, 68px)/1 var(--display); letter-spacing: 0.16em; padding-left: 0.16em; text-transform: uppercase; }
.hero .sub { margin: 14px 0 0; font: 400 clamp(13px, 2.4vw, 16px)/1 var(--display); letter-spacing: 0.7em; padding-left: 0.7em; color: var(--brass); text-transform: uppercase; }
.rule { width: 72px; height: 1px; margin: 34px auto 30px; background: linear-gradient(90deg, transparent, var(--brass), transparent); border: 0; }
.hero .lead { max-width: 34em; margin: 0; font-size: clamp(18px, 2.6vw, 21px); line-height: 1.55; color: var(--on-navy); }
.hero .note { margin: 26px 0 0; display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px; border: 1px solid rgba(201, 164, 92, 0.45); border-radius: 999px; font-size: 14px; color: var(--on-navy-2); }
.hero .note b { color: var(--brass); font-weight: 600; }
@media (max-width: 640px) {
  .hero .note { flex-direction: column; gap: 2px; padding: 12px 22px; border-radius: 16px; }
}

/* Sections */
section { padding-block: 76px; }
.eyebrow { margin: 0 0 10px; font: 600 12px/1 var(--text); letter-spacing: 0.18em; text-transform: uppercase; color: #7A5C25; }
h2 { margin: 0 0 14px; font: 600 clamp(26px, 4vw, 34px)/1.2 var(--display); letter-spacing: 0.04em; color: var(--ink); }
.intro { max-width: 40em; margin: 0 0 40px; color: var(--ink-2); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid.four { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { padding: 26px 26px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.tile h3 { margin: 0 0 8px; font: 600 18px/1.3 var(--text); color: var(--ink); }
.tile p { margin: 0; color: var(--ink-2); font-size: 16px; }
.tile .num { display: block; margin-bottom: 14px; font: 600 13px/1 var(--display); letter-spacing: 0.14em; color: #7A5C25; }

.dark { background: var(--navy); color: var(--on-navy); }
.dark h2 { color: var(--on-navy); }
.dark .eyebrow { color: var(--brass); }
.dark .intro { color: var(--on-navy-2); }
.dark .tile { background: rgba(255, 255, 255, 0.035); border-color: rgba(201, 164, 92, 0.22); }
.dark .tile h3 { color: var(--on-navy); }
.dark .tile p { color: var(--on-navy-2); }
.dark .tile .num { color: var(--brass); }

.plain { max-width: 44em; }
.plain p { color: var(--ink-2); }
.callout { margin-top: 28px; padding: 20px 24px; border-left: 2px solid var(--brass); background: var(--paper); border-radius: 0 12px 12px 0; color: var(--ink-2); }

/* Legal pages */
.doc { padding-block: 56px 80px; }
.doc .plain { margin-inline: auto; }
.doc h1 { margin: 0 0 6px; font: 600 clamp(30px, 5vw, 40px)/1.15 var(--display); letter-spacing: 0.04em; }
.doc h2 { margin-top: 38px; font-size: 22px; }
.doc .updated { margin: 0 0 30px; font-size: 14px; color: var(--ink-2); }
.doc li { margin-bottom: 8px; color: var(--ink-2); }

/* Footer */
footer { background: var(--navy); color: var(--on-navy-2); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding-block: 34px; }
footer .disclaimer { flex-basis: 100%; margin: 0 0 6px; padding-bottom: 18px; border-bottom: 1px solid rgba(201, 164, 92, 0.2); color: var(--on-navy); }
footer .disclaimer a { color: var(--brass); text-decoration: underline; margin-left: 6px; }
footer nav { display: flex; gap: 22px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--on-navy); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .top nav { gap: 16px; }
  .top .wrap { flex-wrap: wrap; row-gap: 10px; }
  .top-right { gap: 14px; }
  .top .langs { padding-left: 12px; }
  .mark span { font-size: 13px; }
  section { padding-block: 56px; }
  .hero .wrap { padding-block: 40px 64px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }


/* ------------------------------------------------------------ the tour */
.tour-head { padding-bottom: 8px; }
.tour-head h2, .tour-head .intro { max-width: 30em; }
.tour-part { position: relative; overflow: hidden; padding-block: 64px; border-top: 1px solid var(--line); }
.tour-part.alt { background: var(--paper); }
.tour-num {
  position: absolute; right: max(16px, 6vw); top: 50%; translate: 0 -50%;
  font: 600 clamp(120px, 22vw, 260px)/1 var(--display); color: var(--brass); opacity: 0.09; pointer-events: none;
}
.tour-grid { position: relative; display: grid; gap: 22px 56px; align-items: start; }
@media (min-width: 860px) {
  .tour-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .tour-text { position: sticky; top: 110px; }   /* the title waits while its points scroll past */
}
.tour-text .intro { margin-bottom: 0; }
.tour-points { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tour-points li { position: relative; padding: 14px 18px 14px 44px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2); font-size: 16px; }
.tour-part.alt .tour-points li { background: var(--vellum); }
.tour-points li::before { content: ""; position: absolute; left: 18px; top: 22px; width: 10px; height: 10px; border: 1.5px solid var(--brass); transform: rotate(45deg); }

/* A faint griffin behind the privacy section */
#privacy { position: relative; overflow: hidden; }
#privacy .wrap { position: relative; }
.emblem { position: absolute; right: -60px; top: 40px; width: min(420px, 60vw); opacity: 0.06; pointer-events: none; }

/* ------------------------------------------------------------- parallax */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    /* The hero: the griffin drifts slower than the page, the light faster. */
    .hero-griffin { animation: drift-down linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .hero-glow { animation: drift-up linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .hero h1, .hero .sub { animation: lift linear both; animation-timeline: scroll(root); animation-range: 0 80vh; }
    /* Each section: content glides in, the big numeral and the emblem move at their own pace. */
    .reveal { animation: glide-in linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .tour-num { animation: numeral linear both; animation-timeline: view(); }
    .emblem { animation: emblem linear both; animation-timeline: view(); }
    .tile { animation: glide-in linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}
@keyframes drift-down { to { transform: translateY(18%) scale(0.94); opacity: 0; } }
@keyframes drift-up { to { transform: translateY(-25%); } }
@keyframes lift { to { transform: translateY(-40px); opacity: 0.4; } }
@keyframes glide-in { from { transform: translateY(36px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes numeral { from { transform: translateY(70px); } to { transform: translateY(-70px); } }
@keyframes emblem { from { transform: translateY(90px) rotate(-4deg); } to { transform: translateY(-90px) rotate(2deg); } }
