/* ==========================================================================
   AUREA — Design System, Typography, Global Motion & Hero Architecture
   100% Offline Local Assets · Zero External Dependencies
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Local @font-face Declarations
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, 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;
}

@font-face {
  font-family: "Geist";
  src: url("../assets/fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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: "Manrope";
  src: url("../assets/fonts/Manrope-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   2. Design System Tokens
   -------------------------------------------------------------------------- */
:root {
  --bg-page: #EEEEEE;
  --bg-hero: #EDEDED;
  --bg-card: #FDFDFD;
  --border-card-outer: #E8E8E8;
  --border-card-inner: #ECECEC;

  --dark-bg: #121212;
  --dark-topbar: #1C1C1C;
  --dark-surface: #212121;
  --dark-surface-2: #18181A;
  --dark-border: #2D2D2D;
  --dark-border-soft: rgba(255, 255, 255, 0.08);

  --ink-primary: #141414;
  --ink-secondary: #5E5E5E;
  --ink-muted: #828282;
  --ink-on-dark: #F4F4F4;
  --ink-on-dark-muted: #8A8A8E;

  --btn-dark: #444444;
  --btn-dark-hover: #262626;

  --gold-light: #D7AE5A;
  --gold-mid: #C59441;
  --gold-deep: #926611;

  --accent-eth: #C88A55;
  --accent-eth-bg: #4D3C30;
  --accent-btc: #5C83D6;
  --accent-btc-bg: #292E3E;
  --accent-positive: #6FD69B;

  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Geist", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --ease-expo: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1380px;
  --gutter: clamp(18px, 2.6vw, 36px);
  --nav-height: 76px;
}

/* --------------------------------------------------------------------------
   3. Base Reset & Accessibility
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-page);
  color: var(--ink-primary);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--ink-primary);
  line-height: 1.5;
  overflow-x: clip;
}

body.modal-open {
  overflow: hidden;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p,
blockquote,
figure {
  margin: 0;
}

::selection {
  background: rgba(197, 148, 65, 0.24);
  color: var(--ink-primary);
}

:focus-visible {
  outline: 2px solid var(--gold-mid);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--dark-bg);
  color: var(--ink-on-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: top 0.2s var(--ease-expo);
}

.skip-link:focus {
  top: 16px;
}

/* --------------------------------------------------------------------------
   4. Shared Layout & Editorial Typography
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.105em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.eyebrow--on-dark {
  color: rgba(255, 255, 255, 0.78);
}

.display-h1 {
  font-family: var(--font-serif);
  font-size: clamp(50px, 6.1vw, 96px);
  font-weight: 400;
  line-height: 0.97;
  letter-spacing: -0.025em;
  color: var(--ink-primary);
}

.section-h2 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 4.6vw, 72px);
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: -0.022em;
  color: var(--ink-primary);
}

.body-copy {
  font-family: var(--font-sans);
  font-size: clamp(13px, 1vw, 14.5px);
  font-weight: 400;
  line-height: 1.56;
  color: var(--ink-secondary);
}

/* Ledger 2D Background Canvas Layer */
.ledger-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.ledger-canvas--numbers {
  -webkit-mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.92) 48%,
    rgba(0, 0, 0, 0.15) 72%,
    rgba(0, 0, 0, 0) 92%
  );
  mask-image: linear-gradient(
    90deg,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.92) 48%,
    rgba(0, 0, 0, 0.15) 72%,
    rgba(0, 0, 0, 0) 92%
  );
}

/* --------------------------------------------------------------------------
   5. Pill Buttons
   -------------------------------------------------------------------------- */
.btn-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.28s var(--ease-expo),
    border-color 0.28s var(--ease-expo),
    color 0.28s var(--ease-expo),
    transform 0.28s var(--ease-expo),
    box-shadow 0.28s var(--ease-expo);
}

.btn-pill:active {
  transform: translateY(1px) scale(0.99);
}

.btn-pill--dark {
  background-color: var(--btn-dark);
  color: #FFFFFF;
  border: 1px solid transparent;
}

.btn-pill--dark:hover {
  background-color: var(--btn-dark-hover);
  box-shadow: 0 10px 24px rgba(20, 20, 20, 0.16);
  transform: translateY(-1px);
}

.btn-pill--outline {
  background-color: transparent;
  color: var(--ink-primary);
  border: 1px solid #3A3A3A;
}

.btn-pill--outline:hover {
  background-color: var(--ink-primary);
  border-color: var(--ink-primary);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-pill--light {
  background-color: #FFFFFF;
  color: var(--ink-primary);
  border: 1px solid #FFFFFF;
}

.btn-pill--light:hover {
  background-color: #EFECE5;
  border-color: #EFECE5;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.btn-pill--sm {
  padding: 10px 20px;
  font-size: 9.5px;
}

.btn-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: currentColor;
  flex-shrink: 0;
  transition: transform 0.28s var(--ease-expo), background-color 0.28s var(--ease-expo);
}

.btn-pill:hover .btn-dot {
  transform: scale(1.35);
  background-color: var(--gold-light);
}

/* --------------------------------------------------------------------------
   6. Motion Primitives (Shared Contract with interactions.js)
   -------------------------------------------------------------------------- */

/* Blur-to-Sharp Word Reveal */
.blur-word {
  display: inline-block;
  text-indent: 0;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(10px);
  will-change: opacity, filter, transform;
  transition: opacity 0.72s var(--ease-expo),
    filter 0.78s var(--ease-expo),
    transform 0.78s var(--ease-expo);
  transition-delay: calc(var(--word-i, var(--i, 0)) * 45ms);
}

[data-blur-reveal].is-revealed .blur-word {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
}

/* Smooth Layer Parallax (uses independent CSS translate property) */
[data-parallax] {
  translate: 0 var(--parallax-y, 0px);
  will-change: translate;
}

/* Venetian Blinds 5-Strip Reveal */
[data-blinds-reveal] .blind-strip {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: clip-path, opacity;
  transition: clip-path 0.88s var(--ease-expo), opacity 0.5s ease;
  transition-delay: calc(var(--i, 0) * 75ms);
}

[data-blinds-reveal] .blind-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Initial collapsed state when JS arms blinds */
.js-ready [data-blinds-reveal]:not(.is-revealed) .blind-strip {
  clip-path: inset(calc(var(--i, 0) * 20%) 0 calc(100% - (var(--i, 0) * 20%)) 0);
  opacity: 0.4;
}

[data-blinds-reveal].is-revealed .blind-strip,
[data-blinds-reveal] .blind-strip {
  clip-path: inset(
    calc(var(--i, 0) * 20%) 0 calc(80% - (var(--i, 0) * 20%) - 0.5%) 0
  );
  opacity: 1;
}

/* Golden Gradient Wipe on Testimonial Quote */
[data-golden-wipe] {
  --wipe: 135%;
  background-image: linear-gradient(
    90deg,
    var(--ink-primary) 0%,
    var(--ink-primary) clamp(0%, calc(var(--wipe) - 22%), 100%),
    var(--gold-mid) clamp(0%, calc(var(--wipe) - 7%), 100%),
    var(--gold-light) clamp(0%, calc(var(--wipe) - 2%), 100%),
    rgba(197, 148, 65, 0) clamp(0%, var(--wipe), 100%)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Vertical Odometers (5M+, 600K+) */
.odometer-value {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-serif);
  font-size: clamp(68px, 7.6vw, 114px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  font-variant-numeric: lining-nums tabular-nums;
}

.odometer-slot {
  display: inline-block;
  height: 0.94em;
  overflow: hidden;
  vertical-align: top;
}

.odometer-strip {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transition: transform 1.25s var(--ease-expo);
}

.odometer-digit {
  display: block;
  height: 0.94em;
  line-height: 0.94em;
}

.odometer-suffix {
  display: inline-block;
  line-height: 0.94em;
}

/* Rising Coin behind Ionic Column Capital */
.js-ready [data-column-coin] {
  transform: translateY(62%) rotate(-6deg);
  opacity: 0;
  transition: transform 1.1s var(--ease-expo), opacity 0.65s ease;
  will-change: transform, opacity;
}

.js-ready [data-column-coin].is-revealed,
.js-ready .column-coin-mask.is-revealed [data-column-coin] {
  transform: translateY(0%) rotate(0deg);
  opacity: 1;
}

/* Infinite Logo Marquee */
@keyframes aureaMarquee {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* --------------------------------------------------------------------------
   7. Header / Floating Fixed Navbar
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  height: var(--nav-height);
  transition: background-color 0.32s var(--ease-expo),
    backdrop-filter 0.32s var(--ease-expo),
    border-color 0.32s var(--ease-expo),
    height 0.32s var(--ease-expo);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  height: 66px;
  background-color: rgba(237, 237, 237, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(20, 20, 20, 0.08);
}

.nav-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink-primary);
}

.wordmark--light {
  color: #FFFFFF;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.6vw, 40px);
}

.nav-link {
  position: relative;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: #464646;
  padding-block: 6px;
  transition: color 0.24s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background-color: var(--ink-primary);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.32s var(--ease-expo);
}

.nav-link:hover {
  color: var(--ink-primary);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 10px;
}

.mobile-menu-btn {
  display: none;
  justify-self: end;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(20, 20, 20, 0.2);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background-color: var(--ink-primary);
  transition: transform 0.28s var(--ease-expo), opacity 0.2s ease;
}

.mobile-menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 85;
  background-color: rgba(237, 237, 237, 0.97);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding: calc(var(--nav-height) + 32px) var(--gutter) 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.32s var(--ease-expo),
    transform 0.32s var(--ease-expo),
    visibility 0.32s;
}

.mobile-nav-drawer.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-nav-list a {
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1.08;
  color: var(--ink-primary);
}

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(20, 20, 20, 0.1);
}

/* --------------------------------------------------------------------------
   8. Section 1 — Hero Stage & Partner Marquee
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  background-color: var(--bg-hero);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: var(--nav-height);
}

/* Renaissance Hands with Smartphones (Layer 2) */
.hero-hands {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-hand {
  position: absolute;
  width: clamp(240px, 31vw, 470px);
  height: auto;
  user-select: none;
  will-change: transform;
  filter: drop-shadow(0 18px 30px rgba(20, 16, 10, 0.1));
}

.hero-hand--left {
  left: -14px;
  top: clamp(160px, 24vh, 238px);
}

.hero-hand--right {
  right: -14px;
  top: clamp(150px, 22vh, 224px);
}

/* Interactive 3D Coins Arc Stage (Layer 3) */
.hero-coins-stage {
  position: relative;
  z-index: 4;
  width: min(560px, 52vw);
  height: clamp(190px, 24vh, 250px);
  margin: clamp(6px, 1.5vh, 18px) auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#coins-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

/* Editorial Hero Copy (Layer 4) */
.hero-copy {
  position: relative;
  z-index: 5;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: var(--gutter);
  margin-top: clamp(-28px, -2.6vh, -6px);
  margin-bottom: clamp(22px, 4vh, 44px);
}

.hero-copy .eyebrow {
  margin-bottom: 14px;
}

.hero-copy .display-h1 {
  max-width: 960px;
}

.hero-subtitle {
  max-width: 450px;
  margin-top: 18px;
  margin-bottom: 26px;
}

/* Bottom Partner Marquee inside Hero */
.hero-marquee-wrap {
  position: relative;
  z-index: 5;
  padding-bottom: clamp(24px, 3.2vh, 38px);
  text-align: center;
}

.marquee-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #888888;
  margin-bottom: 14px;
}

.marquee-viewport {
  position: relative;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 12%,
    #000 88%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: aureaMarquee 30s linear infinite;
  will-change: transform;
}

.marquee-viewport:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(42px, 5.2vw, 84px);
  padding-right: clamp(42px, 5.2vw, 84px);
}

.partner-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #777777;
  opacity: 0.72;
  transition: opacity 0.25s ease, color 0.25s ease;
  user-select: none;
}

.partner-logo:hover {
  opacity: 1;
  color: var(--ink-primary);
}

.partner-logo svg {
  height: 22px;
  width: auto;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   9. Reduced Motion Preference
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .blur-word {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
  }

  .js-ready [data-blinds-reveal] .blind-strip {
    clip-path: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  [data-golden-wipe] {
    --wipe: 135% !important;
    background: none !important;
    color: var(--ink-primary) !important;
  }

  .js-ready [data-column-coin] {
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
  }

  .marquee-track {
    animation: none !important;
  }
}
