:root {
  --parchment: #d8cbb8;
  --parchment-deep: #c9b79a;
  --cream: #f3eadb;
  --ink: #2a1a12;
  --ink-soft: #3a2414;
  --fur: #0e0a08;
  --bronze: #9a7548;
  --bronze-bright: #c4a06a;
  --tan: #c5b398;
  --line: rgba(42, 26, 18, 0.16);
  --shadow: 0 30px 80px rgba(14, 10, 8, 0.22);
  --display: "Rubik Dirt", "Impact", "Arial Black", cursive;
  --serif: "Cinzel", "Times New Roman", serif;
  --body: "Cormorant Garamond", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  font-size: 20px;
  line-height: 1.55;
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(243, 234, 219, 0.7), transparent 55%),
    radial-gradient(900px 600px at 110% 20%, rgba(154, 117, 72, 0.12), transparent 50%),
    linear-gradient(180deg, #e4d6c2 0%, var(--parchment) 28%, #cfc0a8 72%, #c4b192 100%);
  overflow-x: hidden;
  cursor: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(42, 26, 18, 0.015) 3px),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

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

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

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: none;
  color: inherit;
}

.grain,
.vignette,
.light-leak,
.motes {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.grain {
  z-index: 80;
  opacity: 0.16;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  animation: grain-shift 1.2s steps(2) infinite;
}

.vignette {
  z-index: 70;
  background: radial-gradient(ellipse at center, transparent 48%, rgba(14, 10, 8, 0.28) 100%);
}

.light-leak {
  z-index: 2;
  background:
    radial-gradient(500px 280px at 80% 8%, rgba(196, 160, 106, 0.18), transparent 60%),
    radial-gradient(420px 260px at 8% 92%, rgba(58, 36, 20, 0.1), transparent 65%);
  animation: leak 14s ease-in-out infinite;
}

.motes {
  z-index: 3;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  z-index: 200;
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
}

.cursor span {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transition: transform 0.25s ease, background 0.25s ease;
}

.cursor.is-down span,
.cursor.is-link span {
  transform: scale(1.7);
  background: rgba(154, 117, 72, 0.18);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  z-index: 120;
  background: linear-gradient(90deg, var(--ink), var(--bronze-bright));
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  background: #d8cbb8;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.is-gone {
  opacity: 0;
  visibility: hidden;
}

.preloader-ring {
  position: absolute;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(42, 26, 18, 0.2);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 1.6s linear infinite;
}

.preloader-logo {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
  animation: breath 2.4s ease-in-out infinite;
}

.preloader-word {
  position: absolute;
  bottom: 18%;
  font-family: var(--display);
  font-size: 42px;
  letter-spacing: 0.08em;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 36px;
  background: rgba(216, 203, 184, 0.42);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}

.nav.is-scrolled {
  background: rgba(216, 203, 184, 0.86);
  border-bottom-color: var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(14, 10, 8, 0.18);
}

.nav-brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-brand small {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.35s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(243, 234, 219, 0.6);
  transition: transform 0.3s ease, background 0.3s ease;
}

.icon-btn img {
  width: 16px;
  height: 16px;
}

.icon-btn:hover {
  transform: translateY(-2px);
  background: var(--cream);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.3s ease, top 0.3s ease;
}

.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 24px; }

.menu-toggle.is-open span:first-child {
  top: 20px;
  transform: rotate(40deg);
}

.menu-toggle.is-open span:last-child {
  top: 20px;
  transform: rotate(-40deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.btn img {
  width: 18px;
  height: 18px;
}

.btn-ink {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 12px 28px rgba(42, 26, 18, 0.22);
}

.btn-ink .invert-on-ink,
.btn-ink img[src="x.svg"] {
  filter: brightness(0) invert(1);
}

.btn-ghost {
  background: rgba(243, 234, 219, 0.55);
  border: 1px solid var(--line);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(42, 26, 18, 0.18);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 132px 48px 80px;
  display: grid;
  place-items: center;
}

.hero-watermark {
  position: absolute;
  top: 18%;
  right: -4%;
  font-family: var(--display);
  font-size: clamp(80px, 18vw, 260px);
  color: rgba(42, 26, 18, 0.05);
  letter-spacing: 0.04em;
  pointer-events: none;
  transform: rotate(12deg);
  animation: drift 18s ease-in-out infinite;
}

.hero-stage {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.portrait-orbit {
  position: relative;
  width: min(520px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  transform-style: preserve-3d;
}

.orbit {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px dashed rgba(42, 26, 18, 0.22);
}

.orbit-a {
  animation: spin 28s linear infinite;
}

.orbit-b {
  inset: -36px;
  border-style: solid;
  border-color: rgba(154, 117, 72, 0.28);
  animation: spin 42s linear infinite reverse;
}

.portrait-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 234, 219, 0.2), rgba(154, 117, 72, 0.18) 45%, transparent 70%);
  filter: blur(18px);
  animation: breath 5s ease-in-out infinite;
}

.portrait {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(42, 26, 18, 0.12);
  background: var(--parchment-deep);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: portrait-sway 9s ease-in-out infinite;
}

.portrait-plate {
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  min-width: 210px;
  padding: 10px 18px 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: 0 10px 24px rgba(14, 10, 8, 0.12);
}

.portrait-plate span,
.eyebrow,
.ornament strong,
.ca-label {
  font-family: var(--serif);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 11px;
}

.portrait-plate em {
  display: block;
  margin-top: 2px;
  font-style: italic;
  font-family: var(--body);
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--ink-soft);
}

.hero-copy .eyebrow {
  justify-content: flex-start;
}

.diamond {
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink);
  transform: rotate(45deg);
  animation: diamond-pulse 3.2s ease-in-out infinite;
}

.display {
  font-family: var(--display);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.03em;
  text-shadow: 0 8px 0 rgba(42, 26, 18, 0.04);
}

h1.display {
  font-size: clamp(52px, 8vw, 104px);
  margin: 10px 0 8px;
  animation: title-in 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

h2.display {
  font-size: clamp(42px, 7vw, 76px);
  margin: 10px 0 16px;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.ornament span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-soft), transparent);
}

.ornament i {
  width: 8px;
  height: 8px;
  border: 1px solid var(--ink);
  transform: rotate(45deg);
}

.ornament strong {
  white-space: nowrap;
}

.lede {
  font-size: clamp(24px, 3vw, 32px);
  font-style: italic;
  max-width: 28ch;
  margin-bottom: 14px;
}

.hero-note {
  color: rgba(42, 26, 18, 0.78);
  max-width: 38ch;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.ca-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  background: rgba(243, 234, 219, 0.45);
  max-width: 100%;
}

.ca-text,
#caText {
  flex: 1;
  font-size: 14px;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ca-copy {
  padding: 8px 12px;
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--cream);
}

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 14px 0;
  background: rgba(42, 26, 18, 0.04);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: ticker 28s linear infinite;
  font-family: var(--serif);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
}

.ticker-track i {
  width: 6px;
  height: 6px;
  border: 1px solid var(--ink);
  transform: rotate(45deg);
  flex: none;
}

section {
  position: relative;
  z-index: 1;
  padding: 110px 48px;
}

.section-head {
  width: min(820px, 100%);
  margin: 0 auto 56px;
  text-align: center;
}

.about-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.about-story p + p {
  margin-top: 18px;
}

.about-story p:first-child::first-letter {
  font-family: var(--display);
  font-size: 68px;
  float: left;
  line-height: 0.8;
  padding: 8px 10px 0 0;
}

.about-cards {
  display: grid;
  gap: 16px;
}

.stat-card {
  padding: 22px 24px;
  background: rgba(243, 234, 219, 0.48);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(14, 10, 8, 0.06);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(14, 10, 8, 0.12);
}

.stat-card img {
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
}

.stat-mark {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--display);
  font-size: 28px;
}

.stat-card h3,
.step h3 {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.steps {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  list-style: none;
  counter-reset: none;
}

.step {
  position: relative;
  padding: 28px 22px 26px;
  background: rgba(243, 234, 219, 0.5);
  border: 1px solid var(--line);
  min-height: 340px;
  overflow: hidden;
}

.step::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(42, 26, 18, 0.06);
  pointer-events: none;
}

.step:hover {
  animation: card-shimmer 1.2s ease;
}

.step-index {
  font-family: var(--display);
  font-size: 34px;
  margin-bottom: 18px;
}

.step-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: var(--cream);
  border: 1px solid var(--line);
}

.step-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.step p {
  font-size: 18px;
  margin-bottom: 18px;
}

.step a {
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
}

.chart-frame {
  width: min(1180px, 100%);
  height: 680px;
  margin: 0 auto;
  position: relative;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(243, 234, 219, 0.7), rgba(201, 183, 154, 0.7));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.chart-frame-edge {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(42, 26, 18, 0.1);
  pointer-events: none;
}

.chart-frame iframe {
  background: #0e0a08;
}

.chart-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px auto 0;
  width: fit-content;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chart-fallback img {
  width: 18px;
  height: 18px;
}

.joinus {
  padding-top: 40px;
}

.join-print {
  width: min(1240px, 100%);
  margin: 0 auto 36px;
  padding: 10px;
  background: rgba(243, 234, 219, 0.6);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}

.join-print::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(42, 26, 18, 0.08);
  pointer-events: none;
}

.join-print img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.92) contrast(1.04);
}

.join-plate {
  width: min(760px, 100%);
  margin: 0 auto;
  text-align: center;
  padding: 8px 8px 0;
}

.join-plate p {
  margin: 0 auto 26px;
  max-width: 46ch;
}

.join-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer {
  position: relative;
  z-index: 1;
  padding: 48px 36px 36px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.footer-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
}

.footer-brand strong {
  display: block;
  font-family: var(--serif);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
}

.footer-brand span,
.footer small {
  font-size: 16px;
}

.footer p {
  font-style: italic;
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-links a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(243, 234, 219, 0.5);
}

.footer-links img {
  width: 16px;
  height: 16px;
}

.footer small {
  display: block;
  opacity: 0.7;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-play-state: paused;
}

.reveal.is-in {
  animation-play-state: running;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  z-index: 150;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes portrait-sway {
  0%, 100% { transform: scale(1.04) translate3d(0, 0, 0); }
  50% { transform: scale(1.08) translate3d(0, -6px, 0); }
}

@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, 1%); }
}

@keyframes leak {
  0%, 100% { opacity: 0.7; transform: translate3d(0, 0, 0); }
  50% { opacity: 1; transform: translate3d(-2%, 1%, 0); }
}

@keyframes drift {
  0%, 100% { transform: rotate(12deg) translateY(0); }
  50% { transform: rotate(10deg) translateY(-18px); }
}

@keyframes diamond-pulse {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(45deg) scale(1.25); }
}

@keyframes title-in {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

@keyframes card-shimmer {
  0% { box-shadow: 0 0 0 rgba(196, 160, 106, 0); }
  40% { box-shadow: 0 0 28px rgba(196, 160, 106, 0.28); }
  100% { box-shadow: 0 18px 40px rgba(14, 10, 8, 0.1); }
}

@media (max-width: 980px) {
  body { cursor: auto; }
  .cursor { display: none; }
  .hero-stage,
  .about-grid,
  .steps {
    grid-template-columns: 1fr;
  }
  .hero,
  section {
    padding-left: 22px;
    padding-right: 22px;
  }
  .nav {
    padding: 12px 16px;
  }
  .nav-links {
    position: fixed;
    inset: 74px 16px auto;
    display: none;
    flex-direction: column;
    gap: 18px;
    padding: 22px;
    background: rgba(216, 203, 184, 0.96);
    border: 1px solid var(--line);
  }
  .nav-links.is-open {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .hero {
    padding-top: 110px;
  }
  .chart-frame {
    height: 520px;
  }
  .nav-actions .btn {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
