/* ============ RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; overflow-x: hidden; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  width: 100%;
  cursor: default;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }

/* ============ VARIABLES ============ */
:root {
  --white: #ffffff;
  --ink: #1b1812;
  --body-text: #5a5548;
  --body-text-soft: #86806f;
  --gold: #a9812f;
  --gold-light: #d4b976;
  --gold-deep: #7c5e22;
  --hairline: rgba(27, 24, 18, 0.1);
  --gold-hairline: rgba(169, 129, 47, 0.35);

  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Jost', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Caps the overall composition on very large screens so it stops sprawling —
     the design stays proportionally identical to how it looks around 2200px wide,
     with any extra viewport becoming neutral margin instead of stretched-out content. */
  --stage-max: 2200px;
  --gutter: max(0px, calc((100vw - var(--stage-max)) / 2));
}

/* subtle paper grain — keeps background reading as pure white while adding tactility */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: var(--white); }

/* ============ LOADER ============ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  transition: opacity 0.9s var(--ease), visibility 0.9s var(--ease);
}
#loader.loader-hidden { opacity: 0; visibility: hidden; }
.loader-brand { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.loader-mark {
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-weight: 500;
}
.loader-name {
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  font-weight: 500;
}
#loader-bar-track {
  width: 220px;
  height: 1px;
  background: var(--hairline);
  overflow: hidden;
}
#loader-bar {
  width: 0%;
  height: 100%;
  background: var(--gold);
  transition: width 0.2s ease-out;
}
#loader-percent {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--body-text-soft);
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: linear-gradient(to bottom, rgba(255,255,255,0.92), rgba(255,255,255,0));
  backdrop-filter: blur(6px);
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--stage-max);
  margin: 0 auto;
  padding: 1.6rem 4%;
}
.nav-logo img { height: 60px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2.6rem; }
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}
.nav-links a:not(.nav-cta)::before {
  content: "";
  position: absolute;
  left: -13px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%) scale(0);
  transition: transform 0.3s var(--ease);
}
.nav-links a:not(.nav-cta):hover {
  color: var(--gold-deep);
}
.nav-links a:not(.nav-cta):hover::before { transform: translateY(-50%) scale(1); }
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: left 0.35s var(--ease), right 0.35s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { left: 0; right: 0; }

.nav-links a.nav-cta {
  background: var(--ink);
  color: var(--gold-light);
  border: 1px solid var(--ink);
  padding: 0.62rem 1.5rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold), var(--gold-light));
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.nav-links a.nav-cta:hover {
  color: var(--ink);
  border-color: var(--gold);
}
.nav-cta:hover::before { transform: translateX(0); }

/* ============ HERO ============ */
.hero-standalone {
  position: relative;
  height: 100vh;
  width: 100%;
  max-width: var(--stage-max);
  margin: 0 auto;
  background: var(--white);
  display: flex;
  align-items: center;
  z-index: 10;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 42%;
  padding-left: 7%;
}
.hero-label {
  display: inline-block;
  margin-bottom: 1.6rem;
}
.hero-heading {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  font-size: clamp(4rem, 8.5vw, 8.5rem);
  color: var(--ink);
  margin-bottom: 1.8rem;
}
.hero-word { display: block; overflow: hidden; }
.hero-word:first-child { font-style: italic; font-weight: 300; color: var(--gold-deep); }
.hero-tagline {
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.65;
  color: var(--body-text);
  max-width: 100%;
  font-weight: 300;
}

.hero-ring {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 46%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-width: 640px;
  z-index: 1;
}

/* Rotating bezel — outer rings + hour/minute ticks, spins slowly as one piece */
.hero-ring-bezel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--gold-hairline);
  animation: dial-rotate 120s linear infinite;
}
.hero-ring-bezel::before {
  content: "";
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  border: 1px solid rgba(169,129,47,0.18);
}
.hero-ring-bezel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      rgba(169,129,47,0.34) 0deg 0.7deg,
      transparent 0.7deg 30deg
    ),
    repeating-conic-gradient(
      rgba(169,129,47,0.14) 0deg 0.3deg,
      transparent 0.3deg 6deg
    );
  -webkit-mask: radial-gradient(circle, transparent 68%, black 69%, black 72%, transparent 73%);
          mask: radial-gradient(circle, transparent 68%, black 69%, black 72%, transparent 73%);
}

/* Static face — logo, pivot, and independently animated hands */
.hero-ring-face {
  position: absolute;
  inset: 0;
}
.hero-ring-logo {
  position: absolute;
  left: 50%;
  top: 37%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: var(--gold-deep);
  opacity: 0.5;
}
.hero-hand {
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--gold);
  border-radius: 2px;
  transform-origin: 50% 100%;
}
.hero-hand--hour {
  width: 3px;
  height: 21%;
  margin: -21% 0 0 -1.5px;
  opacity: 0.8;
  animation: dial-rotate 46s linear infinite;
}
.hero-hand--minute {
  width: 2px;
  height: 31%;
  margin: -31% 0 0 -1px;
  opacity: 0.62;
  animation: dial-rotate 26s linear infinite;
}
.hero-hand--second {
  width: 1px;
  height: 33%;
  margin: -33% 0 0 -0.5px;
  background: var(--gold-deep);
  opacity: 0.4;
  animation: dial-rotate 15s linear infinite;
}
.hero-ring-center {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--gold-deep);
  box-shadow: 0 0 0 3px var(--white);
}

@keyframes dial-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.scroll-indicator {
  position: absolute;
  bottom: 3rem;
  left: 7vw;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.scroll-indicator span {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--body-text-soft);
}
.scroll-line {
  width: 1px;
  height: 46px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}
.scroll-line-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: var(--gold);
  animation: scroll-drip 1.8s ease-in-out infinite;
}
@keyframes scroll-drip {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

/* ============ CANVAS ============ */
.canvas-wrap {
  position: fixed;
  top: 0;
  right: var(--gutter);
  width: min(58vw, calc(var(--stage-max) * 0.58));
  height: 100vh;
  z-index: 4;
  background: var(--white);
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
}
#canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* ============ MARQUEE ============ */
.marquee-wrap {
  position: fixed;
  top: 50%;
  left: var(--gutter);
  right: var(--gutter);
  width: auto;
  transform: translateY(-50%);
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.6s ease;
}
.marquee-text {
  display: inline-block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: min(11vw, calc(var(--stage-max) * 0.11));
  line-height: 1;
  letter-spacing: -0.01em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(169, 129, 47, 0.55);
  text-stroke: 1px rgba(169, 129, 47, 0.55);
  white-space: nowrap;
}

/* ============ SCROLL CONTAINER ============ */
#scroll-container {
  position: relative;
  height: 900vh;
  max-width: var(--stage-max);
  margin: 0 auto;
  z-index: 5;
}

.scroll-section {
  position: absolute;
  left: 0;
  width: 52%;
  transform: translateY(-50%);
  z-index: 7;
}
.section-inner {
  max-width: 32%;
  padding-left: 7%;
}
.section-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.section-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.section-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--body-text);
  font-weight: 300;
  max-width: 100%;
}
.section-note {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--body-text-soft);
}

/* ============ STATS ============ */
.section-stats {
  width: 48%;
  padding-left: 7%;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.2rem 2.8rem;
  max-width: min(32vw, calc(var(--stage-max) * 0.32));
  padding-top: 1.6rem;
  border-top: 1px solid var(--gold-hairline);
}
.stat { display: flex; flex-direction: column; }
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 4.5vw, 4.6rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}
.stat-suffix {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 400;
}
.stat-number .stat-suffix { margin-left: 0.3rem; }
.stat-label {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body-text-soft);
}

/* ============ CTA ============ */
.section-cta { z-index: 8; }
.cta-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 1.05rem 2.6rem;
  background: var(--ink);
  color: var(--gold-light);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.cta-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold), var(--gold-light));
  transform: translateX(-101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.cta-button:hover {
  color: var(--ink);
  border-color: var(--gold);
}
.cta-button:hover::before { transform: translateX(0); }

/* ============ FOOTER ============ */
.site-footer {
  position: relative;
  z-index: 9;
  background: var(--white);
  padding: 6rem 7vw 0;
  border-top: 1px solid var(--hairline);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 4vw;
  max-width: var(--stage-max);
  margin: 0 auto;
  padding-bottom: 4rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
  max-width: 26rem;
}
.footer-logo { height: 88px; width: auto; opacity: 0.95; }
.footer-tagline {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--body-text-soft);
  font-weight: 300;
}
.footer-social { display: flex; gap: 0.8rem; }
.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold-hairline);
  color: var(--gold-deep);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}
.footer-social-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-social-link:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  gap: 5vw;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.footer-col-title {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.3rem;
}
.footer-col a {
  font-size: 0.85rem;
  color: var(--body-text);
  transition: color 0.3s var(--ease);
  width: fit-content;
}
.footer-col a:hover { color: var(--gold-deep); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--stage-max);
  margin: 0 auto;
  padding: 1.8rem 0;
  border-top: 1px solid var(--hairline);
}
.footer-bottom p {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--body-text-soft);
}
.footer-bottom-note { letter-spacing: 0.16em; text-transform: uppercase; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .site-nav { padding: 1.2rem 6vw; }
  .nav-links { gap: 1.2rem; }
  .nav-links a:not(.mobile-nav-cta) { display: none; }
  .nav-links a.mobile-nav-cta {
    display: inline-block;
    background: var(--ink);
    color: var(--gold-light);
    border: 1px solid var(--ink);
    padding: 0.62rem 1.4rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  .nav-links a.mobile-nav-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, var(--gold-deep), var(--gold), var(--gold-light));
    transform: translateX(-101%);
    transition: transform 0.5s var(--ease);
    z-index: -1;
  }
  .nav-links a.mobile-nav-cta:active { color: var(--ink); }
  .nav-links a.mobile-nav-cta:active::before { transform: translateX(0); }

  .hero-inner { max-width: 92vw; padding-left: 6vw; padding-right: 6vw; }
  .hero-tagline { max-width: 100%; }
  .hero-heading { font-size: clamp(3rem, 13vw, 4.5rem); }
  .hero-ring { width: 90vw; height: 90vw; right: -20vw; opacity: 0.6; }

  /* Canvas becomes an inline product visual, not a pinned panel —
     avoids the fixed-element/flowing-text overlap that plagues small screens */
  .canvas-wrap {
    position: static !important;
    width: 100vw;
    height: 62vh;
    clip-path: none !important;
    margin-bottom: 1rem;
  }

  .marquee-wrap {
    position: static !important;
    opacity: 1 !important;
    padding: 1.5rem 0 2.5rem;
    transform: none !important;
  }
  .marquee-text { font-size: 16vw; }

  #scroll-container { height: auto; padding-bottom: 6vh; }

  .scroll-section {
    width: 100vw;
    left: 0;
    top: auto !important;
    position: relative !important;
    transform: none !important;
    padding: 3.5rem 0;
    z-index: 7;
    background: var(--white);
  }

  .section-inner, .section-stats .stats-grid {
    max-width: 100%;
    padding-left: 6vw;
    padding-right: 6vw;
  }
  .section-body { max-width: 100%; }
  .section-stats { width: 100%; padding-left: 0; }
  .stats-grid { max-width: 100%; padding-left: 6vw; padding-right: 6vw; grid-template-columns: 1fr 1fr; }

  .site-footer { padding: 4rem 6vw 0; }
  .footer-inner { flex-direction: column; gap: 2.6rem; padding-bottom: 2.6rem; }
  .footer-brand { max-width: 100%; align-items: center; text-align: center; }
  .footer-logo { height: 60px; }
  .footer-links { flex-direction: column; gap: 2rem; width: 100%; text-align: center; }
  .footer-col { align-items: center; }
  .footer-bottom { flex-direction: column; gap: 0.6rem; text-align: center; padding: 1.6rem 0 2.2rem; }
}
