/* =============== TOKENS =============== */
:root {
  --ink: #0a0d0c;
  --ink-2: #111614;
  --ink-3: #1a211e;
  --bone: #f4efe6;
  --bone-2: #eae3d4;
  --paper: #fbf8f2;
  --moss: #1d4a52;
  --moss-deep: #0f2f37;
  --emerald: #2fa5a8;
  --teal: #3fb5b8;
  --gold: #c8a464;
  --gold-bright: #e6c787;
  --rust: #b04d2e;
  --navy: #1a2942;
  --line: rgba(244, 239, 230, 0.12);
  --line-dark: rgba(10, 13, 12, 0.14);
  --f-display: "Fraunces", "Times New Roman", serif;
  --f-sans: "Inter Tight", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", monospace;
  --pad-x: clamp(20px, 5vw, 80px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--ink);
  color: var(--bone);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--gold); color: var(--ink); }

/* GRAIN OVERLAY */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: 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='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* =============== NAV =============== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 22px var(--pad-x);
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(10, 13, 12, 0.55);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  transition: opacity .25s;
}
.nav__brand:hover { opacity: 0.85; }
.nav__brand-logo {
  width: 38px; height: 38px;
  object-fit: contain;
  object-position: center top;
  display: block;
}
.nav__brand-text {
  display: flex; flex-direction: column;
  line-height: 1;
  gap: 3px;
}
.nav__brand-text .top {
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--bone);
}
.nav__brand-text .bot {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
@media (max-width: 480px) {
  .nav__brand-text .bot { display: none; }
}
.nav__links {
  display: flex; gap: 28px;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.nav__links a {
  position: relative;
  padding: 4px 0;
  opacity: 0.78;
  transition: opacity .25s;
}
.nav__links a:hover, .nav__links a.is-active { opacity: 1; }
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  height: 1px; width: 0;
  background: var(--gold);
  transition: width .35s cubic-bezier(.7,.1,.2,1);
}
.nav__links a:hover::after, .nav__links a.is-active::after { width: 100%; }
.nav__cta {
  padding: 11px 22px;
  background: var(--bone);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  letter-spacing: 0.01em;
  transition: transform .3s, background .3s;
}
.nav__cta:hover { background: var(--gold-bright); transform: translateY(-1px); }
.nav__toggle {
  display: none;
  background: none; border: 0;
  color: var(--bone); cursor: pointer;
  font-size: 22px; padding: 4px 8px;
}
.nav__mobile {
  display: none;
  position: fixed; top: 72px; left: 0; right: 0;
  background: rgba(10,13,12,0.96);
  backdrop-filter: blur(16px);
  padding: 30px var(--pad-x) 40px;
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  gap: 20px;
  z-index: 49;
}
.nav__mobile.is-open { display: flex; }
.nav__mobile a {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}
.nav__mobile a.is-active { color: var(--gold); }

@media (max-width: 920px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .nav__cta { padding: 9px 16px; font-size: 12px; }
}

/* =============== BUTTONS =============== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform .3s, background .3s, border-color .3s;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--f-sans);
}
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: rgba(244,239,230,0.25);
}
.btn--ghost:hover { border-color: var(--bone); transform: translateY(-2px); }
.btn--dark {
  background: var(--ink);
  color: var(--bone);
}
.btn--dark:hover { background: var(--moss-deep); transform: translateY(-2px); }
.btn .arrow { display: inline-block; transition: transform .3s; }
.btn:hover .arrow { transform: translateX(4px); }

/* =============== LABELS =============== */
.section-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.section-label::before {
  content: ""; display: inline-block;
  width: 28px; height: 1px; background: var(--gold);
}
.section-label--dark { color: var(--moss); }
.section-label--dark::before { background: var(--moss); }

/* =============== SECTION BASE =============== */
section { padding: 120px var(--pad-x); position: relative; }

/* =============== PAGE HERO (sub-pages) =============== */
.page-hero {
  padding: 200px var(--pad-x) 100px;
  background:
    radial-gradient(ellipse at 80% 30%, rgba(63,141,108,0.18), transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(200,164,100,0.10), transparent 50%),
    var(--ink);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero__grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(244,239,230,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,239,230,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.page-hero__inner { position: relative; max-width: 1100px; }
.crumbs {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,239,230,0.5);
  margin-bottom: 28px;
}
.crumbs a { color: var(--gold); }
.crumbs a:hover { color: var(--gold-bright); }
.crumbs span { margin: 0 10px; opacity: 0.6; }

.page-hero h1 {
  font-family: var(--f-display);
  font-weight: 350;
  font-size: clamp(48px, 6.5vw, 110px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
  font-variation-settings: "opsz" 144, "WONK" 1;
  max-width: 16ch;
}
.page-hero h1 em { font-style: italic; color: var(--gold); font-weight: 300; }
.page-hero__lede {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(244,239,230,0.78);
  max-width: 620px;
}

/* =============== MARQUEE =============== */
.marquee {
  overflow: hidden;
  background: var(--bone);
  color: var(--ink);
  padding: 22px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.marquee__track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--f-display);
  font-size: 30px;
  font-weight: 350;
  font-style: italic;
  letter-spacing: -0.02em;
}
.marquee__track span { display: inline-flex; align-items: center; gap: 60px; }
.marquee__track .dot {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =============== CTA BLOCK =============== */
.cta-block {
  background: var(--ink);
  padding: 0 var(--pad-x) 120px;
}
.cta-block__card {
  background:
    radial-gradient(circle at 70% 30%, rgba(200,164,100,0.25), transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(63,141,108,0.2), transparent 50%),
    var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(50px, 7vw, 100px) clamp(30px, 5vw, 80px);
  position: relative;
  overflow: hidden;
}
.cta-block__card::before {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 50%; height: 160%;
  background-image: radial-gradient(circle, var(--gold) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.18;
  transform: rotate(15deg);
}
.cta-block__inner { position: relative; max-width: 900px; }
.cta-block__h {
  font-family: var(--f-display);
  font-size: clamp(36px, 5vw, 76px);
  font-weight: 350;
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  font-variation-settings: "opsz" 144, "WONK" 1;
}
.cta-block__h em { color: var(--gold); font-style: italic; }
.cta-block__body {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(244,239,230,0.72);
  max-width: 520px;
  margin-bottom: 36px;
}
.cta-block__actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* =============== FOOTER =============== */
footer {
  background: var(--ink);
  border-top: 1px solid var(--line);
  padding: 70px var(--pad-x) 30px;
}
.foot__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 880px) { .foot__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot__top { grid-template-columns: 1fr; } }
.foot__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.foot__brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  object-position: center top;
}
.foot__brand-text {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.foot__brand-text em { color: var(--gold); font-style: italic; }
.foot__brand-text small {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
  margin-top: 4px;
}
.foot__about {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(244,239,230,0.5);
  max-width: 280px;
}
.foot__col h5 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 500;
}
.foot__col a, .foot__col p {
  display: block;
  font-size: 13px;
  color: rgba(244,239,230,0.65);
  margin-bottom: 10px;
  transition: color .3s;
}
.foot__col a:hover { color: var(--bone); }
.foot__bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
  gap: 14px;
  font-size: 11px;
  color: rgba(244,239,230,0.4);
  font-family: var(--f-mono);
  letter-spacing: 0.05em;
}
.disclaimer {
  grid-column: 1 / -1;
  font-size: 11px;
  color: rgba(244,239,230,0.35);
  font-style: italic;
  line-height: 1.55;
  max-width: 880px;
  padding-top: 36px;
  border-top: 1px dashed var(--line);
  margin-top: 30px;
}

/* =============== UTILS =============== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
