/* HS Brand Marketing — base tokens & type system */
@font-face {
  font-family: "Canela";
  src: url("../fonts/Canela-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aventa";
  src: url("../fonts/Aventa-ExtraLight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aventa";
  src: url("../fonts/Aventa-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Aventa";
  src: url("../fonts/Aventa-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --hs-black: #000000;
  --hs-ink: #0a0a0a;
  --hs-coal: #141414;
  --hs-graphite: #1d1d1d;
  --hs-smoke: #2a2a2a;
  --hs-gold: #c18c53;
  --hs-gold-soft: #d9b387;
  --hs-gold-deep: #c18c53;
  --hs-cream: #e4e4e4;
  --hs-paper: #ece7dd;
  --hs-bone: #f5f1ea;
  --hs-linen: #e9e3d7;

  /* Type */
  --ff-display: "Canela", "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --ff-body: "Aventa", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Geometry */
  --radius: 2px;
  --max-w: 1440px;
  --gutter: clamp(20px, 4vw, 80px);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--hs-black);
  color: var(--hs-cream);
  font-family: var(--ff-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: 0.005em;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* Selection */
::selection { background: var(--hs-gold); color: var(--hs-black); }

/* Display type */
.display {
  font-family: var(--ff-display);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 0.95;
}
.eyebrow {
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--hs-gold);
}
.eyebrow .dot {
  display: inline-block;
  width: 5px; height: 5px;
  background: var(--hs-gold);
  border-radius: 50%;
  margin: 0 10px 2px 0;
  vertical-align: middle;
}

/* Layout helpers */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: clamp(80px, 10vw, 160px) 0; position: relative; }
.section--dark { background: var(--hs-black); color: var(--hs-cream); }
.section--coal { background: var(--hs-coal); color: var(--hs-cream); }
.section--paper { background: var(--hs-paper); color: var(--hs-ink); }
.section--bone { background: var(--hs-bone); color: var(--hs-ink); }

/* Rules */
.rule { height: 1px; background: currentColor; opacity: 0.12; border: 0; margin: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 30px;
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 4px;
  transition: all 420ms var(--ease);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn .arrow {
  display: inline-block;
  transition: transform 400ms var(--ease);
  position: relative;
  z-index: 2;
}
.btn > * { position: relative; z-index: 2; }
.btn:hover .arrow { transform: translateX(6px); }
.btn--gold {
  background: linear-gradient(135deg, #b07b42 0%, #c18c53 32%, #d9b387 52%, #c18c53 72%, #a87439 100%);
  background-size: 220% 220%;
  background-position: 0% 50%;
  border-color: var(--hs-gold);
  color: var(--hs-black);
  box-shadow: 0 1px 0 rgba(255,255,255,0.25) inset, 0 18px 40px -18px rgba(193,140,83,0.55);
  transition: background-position 900ms var(--ease), color 420ms var(--ease), box-shadow 420ms var(--ease), transform 420ms var(--ease);
}
.btn--gold::before {
  content: "";
  position: absolute;
  top: 0; left: -90%;
  width: 55%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.42) 50%, transparent 100%);
  animation: btnShimmer 4.2s cubic-bezier(0.5, 0, 0.2, 1) infinite;
  pointer-events: none;
  z-index: 1;
}
.btn--gold:hover {
  background-position: 100% 50%;
  color: var(--hs-black);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 24px 50px -18px rgba(193,140,83,0.7);
}
@keyframes btnShimmer {
  0%   { left: -90%; }
  55%  { left: 135%; }
  100% { left: 135%; }
}
.btn--ghost { background: transparent; border-radius: 4px; }
.btn--ghost:hover {
  background: var(--hs-cream);
  color: var(--hs-black);
  border-color: var(--hs-cream);
}
.btn--dark {
  background: var(--hs-ink);
  color: var(--hs-cream);
  border-color: var(--hs-ink);
  border-radius: 4px;
}
.btn--dark:hover {
  background: var(--hs-gold);
  border-color: var(--hs-gold);
  color: var(--hs-black);
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 40px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0));
  transition: background 300ms var(--ease), backdrop-filter 300ms var(--ease);
}
.site-header.is-scrolled {
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228,228,228,0.06);
}
/* No header underline on any page */
.site-header.is-scrolled { border-bottom: 0; }
.site-header.is-light { color: var(--hs-ink); }
.site-header.is-light.is-scrolled { background: rgba(245,241,234,0.92); border-bottom-color: rgba(0,0,0,0.08); }
.brand-mark {
  font-family: var(--ff-display);
  font-size: 26px;
  letter-spacing: 0.02em;
  font-weight: 300;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
}
.brand-mark sup { font-size: 11px; letter-spacing: 0.02em; color: var(--hs-gold); margin-left: 8px; text-transform: none; white-space: nowrap; font-style: italic; }
.nav {
  display: flex;
  justify-content: center;
  gap: 44px;
  font-family: var(--ff-display);
  font-size: 18px;
  letter-spacing: 0.005em;
  text-transform: none;
  font-weight: 300;
}
.nav a {
  position: relative;
  padding: 4px 0;
  opacity: 0.85;
  transition: opacity 200ms, color 200ms;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--hs-gold);
  transition: width 300ms var(--ease);
}
.nav a:hover, .nav a.is-active { opacity: 1; color: var(--hs-gold); }
.nav a:hover::after, .nav a.is-active::after { width: 100%; }
.header-cta { justify-self: end; }
.header-cta .btn { padding: 12px 22px; font-size: 12px; font-family: var(--ff-display); letter-spacing: 0.02em; text-transform: none; }

/* Mobile nav toggle */
.nav-toggle { display: none; }

@media (max-width: 1180px) {
  .nav { gap: 28px; font-size: 15px; }
  .header-cta .btn { padding: 10px 18px; font-size: 10px; letter-spacing: 0.14em; }
  .site-header { gap: 24px; }
}

@media (max-width: 1000px) {
  .nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
  .nav-toggle .bars { width: 22px; height: 10px; position: relative; }
  .nav-toggle .bars::before, .nav-toggle .bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  }
  .nav-toggle .bars::before { top: 2px; }
  .nav-toggle .bars::after { bottom: 2px; }
}

/* Footer */
.site-footer {
  background: var(--hs-black);
  color: var(--hs-cream);
  padding: 120px var(--gutter) 40px;
  border-top: 1px solid rgba(228,228,228,0.08);
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(228,228,228,0.08);
}
.footer-col h5 {
  font-family: var(--ff-display);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.005em;
  text-transform: none;
  color: var(--hs-gold);
  margin: 0 0 24px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 14px; font-family: var(--ff-body); font-size: 14px; opacity: 0.85; transition: opacity 200ms; letter-spacing: 0.01em; }
.footer-col li:hover { opacity: 1; }
.footer-mark {
  font-family: var(--ff-display);
  font-size: 40px;
  line-height: 1;
  margin-bottom: 14px;
}
.footer-meta {
  font-size: 14px;
  opacity: 0.55;
  line-height: 1.7;
  max-width: 320px;
}
.footer-bottom {
  max-width: var(--max-w);
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-family: var(--ff-display);
  font-size: 14px;
  letter-spacing: 0.005em;
  text-transform: none;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Reveal animations */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1100ms var(--ease), transform 1100ms var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Elements with split-line children handle their own per-line translate;
   keep only opacity on the parent so it doesn't fight the children. */
[data-reveal].has-split-lines {
  transform: none;
  transition: opacity 900ms var(--ease);
}
[data-reveal].has-split-lines.is-visible {
  transform: none;
}
[data-reveal-delay="1"].is-visible { transition-delay: 120ms; }
[data-reveal-delay="2"].is-visible { transition-delay: 240ms; }
[data-reveal-delay="3"].is-visible { transition-delay: 360ms; }
[data-reveal-delay="4"].is-visible { transition-delay: 480ms; }

/* Split text reveal */
.split-line {
  display: block;
  overflow: hidden;
}
.split-line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1000ms var(--ease);
}
.is-visible .split-line > span { transform: translateY(0); }
.is-visible .split-line:nth-child(2) > span { transition-delay: 120ms; }
.is-visible .split-line:nth-child(3) > span { transition-delay: 240ms; }
.is-visible .split-line:nth-child(4) > span { transition-delay: 360ms; }

/* Marquee */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  gap: 60px;
  font-family: var(--ff-display);
  font-size: clamp(60px, 10vw, 140px);
  line-height: 1;
  letter-spacing: -0.02em;
  padding: 40px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: inline-flex;
  gap: 60px;
  animation: marquee 40s linear infinite;
  flex-shrink: 0;
  padding-right: 60px;
}
.marquee-track span { display: inline-block; flex-shrink: 0; }
.marquee-track .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--hs-gold); align-self: center;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Progress (scroll) */
.scroll-progress {
  position: fixed;
  left: 0; top: 0;
  height: 2px;
  background: var(--hs-gold);
  width: 0;
  z-index: 200;
  transition: width 60ms linear;
}

/* Utilities */
.u-gold { color: var(--hs-gold); }
.u-italic { font-style: italic; }
.u-serif { font-family: var(--ff-display); }
.u-quiet { opacity: 0.6; }

/* Shimmer gold text — for italic highlight words */
.u-shimmer {
  background: linear-gradient(92deg,
    #c18c53 0%,
    #c18c53 20%,
    #e8cfa5 42%,
    #f5deb3 50%,
    #e8cfa5 58%,
    #c18c53 80%,
    #c18c53 100%);
  background-size: 220% 100%;
  background-position: 180% 50%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  padding-right: 0.12em;
  animation: goldShine 6s linear infinite;
}
.u-shimmer--slow { animation-duration: 9s; }
.u-shimmer--fast { animation-duration: 4s; }
@keyframes goldShine {
  0%   { background-position: 180% 50%; }
  100% { background-position: -80% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .u-shimmer { animation: none; background-position: 50% 50%; }
  .btn--gold::before { animation: none; display: none; }
}

/* Numbers/counter style */
.metric {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.metric .num {
  font-family: var(--ff-display);
  font-size: clamp(64px, 9vw, 140px);
  line-height: 0.9;
  color: var(--hs-gold);
  font-weight: 300;
}
.metric .num sup {
  font-size: 0.45em;
  top: -0.6em;
  margin-left: 4px;
}
.metric .lbl {
  font-size: 14px;
  line-height: 1.5;
  max-width: 280px;
  opacity: 0.8;
}

/* Index label */
.idx {
  font-family: var(--ff-body);
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--hs-gold);
}

/* Page transition overlay */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--hs-black);
  transform: translateY(100%);
  z-index: 300;
  pointer-events: none;
  transition: transform 900ms var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-transition.is-entering {
  transform: translateY(0);
}
.page-transition.is-leaving {
  transform: translateY(-100%);
}
.page-transition .pt-mark {
  font-family: var(--ff-display);
  font-size: 140px;
  color: var(--hs-gold);
  opacity: 0.2;
}
