﻿/* ============================================================
   CAPRI ADS - a Capri & Co. company
   Palette: noir night + Capri blue + Mediterranean sun-gold
   ============================================================ */

:root {
  --ink: #08090d;
  --ink-2: #0d0f15;
  --paper: #f5f2ea;
  --paper-dim: #b7b3a8;
  --blue: #1b9df0;
  --blue-deep: #0b6fb3;
  --gold: #f4b942;
  --gold-soft: #ffd15c;
  --line: rgba(245, 242, 234, 0.14);
  --easing: cubic-bezier(0.22, 1, 0.36, 1);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Space Grotesk", "Segoe UI", sans-serif;
}

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

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
  cursor: none;
}

@media (max-width: 900px) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--ink); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ============ FILM GRAIN + VIGNETTE ============ */
.film-grain {
  position: fixed; inset: -50%;
  z-index: 9998; pointer-events: none;
  opacity: 0.05; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(3) infinite;
}
@keyframes grain {
  0%{transform:translate(0,0)} 33%{transform:translate(-4%,3%)} 66%{transform:translate(3%,-4%)} 100%{transform:translate(0,0)}
}
.vignette {
  position: fixed; inset: 0; z-index: 9997; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* ============ CURSOR ============ */
.cursor { position: fixed; top: 0; left: 0; z-index: 10000; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot { position: fixed; width: 5px; height: 5px; border-radius: 50%; background: var(--paper); transform: translate(-50%, -50%); }
.cursor__ring {
  position: fixed; width: 26px; height: 26px; border: 1px solid var(--paper);
  border-radius: 50%; transform: translate(-50%, -50%);
  transition: width .3s var(--easing), height .3s var(--easing), opacity .3s, background .3s;
}
.cursor.is-hover .cursor__ring { width: 44px; height: 44px; background: var(--paper); }
.cursor.is-hover .cursor__dot { opacity: 0; }
@media (max-width: 900px) { .cursor { display: none; } }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem clamp(1.2rem, 4vw, 3rem);
  color: var(--paper);
}
/* The bar used to be mix-blend-mode: difference, which inverted whatever was
   behind it. That cannot carry a colour logo - the gold would render as its
   own negative. A scrim does the same legibility job without touching hue. */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,9,13,.8) 0%, rgba(8,9,13,.45) 55%, rgba(8,9,13,0) 100%);
}
.nav__brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; }
.nav__mark { display: block; width: 40px; height: 40px; object-fit: contain; flex: none; }
.nav__name span { color: var(--gold); }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { font-size: .82rem; letter-spacing: .05em; position: relative; padding: .2rem 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px; background: currentColor; transition: width .4s var(--easing);
}
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  border: 1px solid var(--paper); border-radius: 40px; padding: .6rem 1.3rem;
  font-size: .8rem; letter-spacing: .04em; overflow: hidden; position: relative;
}
.nav__cta span { position: relative; z-index: 2; transition: color .4s; }
.nav__cta::before { content:""; position:absolute; inset:0; background: var(--paper); transform: translateY(101%); transition: transform .45s var(--easing); }
.nav__cta:hover::before { transform: translateY(0); }
.nav__cta:hover span { color: var(--ink); }
.nav__burger { display: none; background: none; border: 0; flex-direction: column; gap: 5px; cursor: pointer; }
.nav__burger span { width: 26px; height: 2px; background: var(--paper); display: block; }
@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ============ HERO ============ */
.hero { position: relative; height: 100vh; overflow: hidden; }
.hero__bar { position: absolute; left: 0; width: 100%; height: 14vh; background: var(--ink); z-index: 20; }
.hero__bar--top { top: 0; }
.hero__bar--bottom { bottom: 0; }

.hero__stage { position: absolute; inset: 0; z-index: 1; }
.hero__sky {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, #05070f 0%, #0a2036 38%, #14456e 58%, #4a86ad 74%, #d98b46 90%, #f4b942 100%);
}
.hero__sun {
  position: absolute; left: 50%; bottom: 18%; width: 34vw; height: 34vw; max-width: 480px; max-height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--gold-soft) 0%, var(--gold) 42%, rgba(244,185,66,0) 70%);
  border-radius: 50%; filter: blur(2px);
}
.hero__sea {
  position: absolute; bottom: 0; left: 0; width: 100%; height: 26%;
  background: linear-gradient(180deg, #1b6fa0 0%, #0a3350 60%, #061f31 100%);
  box-shadow: 0 -1px 30px rgba(27,157,240,.4);
}
.hero__sea::after {
  content:""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.05) 0 2px, transparent 2px 9px);
  opacity: .5;
}
.hero__ridge { position: absolute; bottom: 24%; left: 0; width: 120%; height: 40vh; }
.hero__ridge--far { background: linear-gradient(180deg, #0e2c44, #0a2135); clip-path: polygon(0 60%, 18% 42%, 33% 55%, 52% 30%, 70% 50%, 88% 34%, 100% 48%, 100% 100%, 0 100%); opacity: .8; }
.hero__ridge--mid { background: linear-gradient(180deg, #0a2233, #071824); clip-path: polygon(0 70%, 22% 52%, 40% 66%, 60% 46%, 80% 64%, 100% 52%, 100% 100%, 0 100%); }
.hero__ridge--near { bottom: 22%; background: linear-gradient(180deg, #05141f, #030c14); clip-path: polygon(0 82%, 15% 70%, 38% 84%, 58% 68%, 78% 82%, 100% 72%, 100% 100%, 0 100%); }
.hero__flare {
  position: absolute; left: 50%; bottom: 30%; width: 2px; height: 60vh; transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(255,209,92,.5), transparent);
  filter: blur(3px); opacity: .6;
}

/* scenes */
.scene {
  position: absolute; inset: 0; z-index: 25;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 1.5rem;
  will-change: transform, opacity;
}
.scene--1, .scene--2 { pointer-events: none; }
/* The three scenes are stacked at inset:0, so their visibility must be owned by
   something. Until JS has decided which act is on screen, NONE of them are -
   with no preloader to hide behind, an unhidden title card would paint on
   first load and then blink out as soon as the timeline is built.
   JS adds .anim-ready when GSAP + ScrollTrigger are live, or .anim-static when
   they are not, in which case only the title card shows. */
html:not(.anim-ready):not(.anim-static) .scene { opacity: 0; visibility: hidden; }
html.anim-static .scene--title { opacity: 1; visibility: visible; }
.scene__kicker { font-size: .8rem; letter-spacing: .35em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.4rem; }
.scene__line { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 9vw, 7rem); line-height: 0.98; }
.scene__line em { color: var(--gold); }
.reveal-line { overflow: hidden; }
.reveal-line > span, .reveal-line em { display: inline-block; }

.scene--title { z-index: 26; }
/* The sun parallaxes upward across the pinned sequence and ends up directly
   behind the wordmark, where gold-on-gold wipes out the ADS outline. This is
   a title-card scrim: it knocks the sun back locally so the stroke reads,
   without dimming the rest of the frame. z-index -1 keeps it behind the
   type but still inside .scene--title, so it stays above the backdrop. */
.scene--title::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 58% 52% at 50% 44%,
    rgba(5,7,15,.86) 0%, rgba(5,7,15,.66) 42%, rgba(5,7,15,.28) 65%, rgba(5,7,15,0) 80%);
}
.hero__title {
  font-family: var(--serif); font-weight: 600; line-height: .82;
  font-size: clamp(4.5rem, 22vw, 20rem); letter-spacing: -0.02em;
  display: flex; flex-direction: column; align-items: center;
}
.hero__title-word { display: block; background: linear-gradient(180deg, var(--paper), #cfc9ba); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Thicker stroke plus a dark drop shadow so the outline holds its own edge
   over the sun. text-shadow does nothing useful on transparent-filled type,
   drop-shadow follows the stroke itself. */
.hero__title-word--out {
  color: transparent; -webkit-text-stroke: 2px var(--gold); background: none;
  filter: drop-shadow(0 2px 16px rgba(5,7,15,.75));
}
.hero__tag { max-width: 40ch; margin: 1.8rem auto 0; font-size: clamp(1rem, 1.7vw, 1.25rem); color: var(--paper-dim); }
.hero__tag em { color: var(--paper); font-family: var(--serif); }

.hero__cta-row { display: flex; gap: 1rem; margin-top: 2.4rem; flex-wrap: wrap; justify-content: center; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 44px; font-size: .9rem; letter-spacing: .02em;
  position: relative; overflow: hidden; font-weight: 400;
}
.btn__icon { font-size: .75rem; }
.btn--primary { background: var(--gold); color: var(--ink); }
.btn--primary::before { content:""; position:absolute; inset:0; background: var(--gold-soft); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--easing); }
.btn--primary span, .btn--primary .btn__icon { position: relative; z-index: 2; }
.btn--primary:hover::before { transform: scaleX(1); }
.btn--ghost { border: 1px solid var(--line); color: var(--paper); }
.btn--ghost:hover { border-color: var(--paper); }

.hero__scroll { position: absolute; bottom: 15vh; left: 50%; transform: translateX(-50%); z-index: 30; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.hero__scroll-track { width: 1px; height: 44px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll-track i { position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--gold); animation: drop 1.8s var(--easing) infinite; }
@keyframes drop { 0%{transform:translateY(-100%)} 60%,100%{transform:translateY(300%)} }

.hero__act { position: absolute; bottom: 15vh; right: clamp(1.2rem,4vw,3rem); z-index: 30; display: flex; align-items: baseline; gap: .3rem; font-family: var(--serif); }
.hero__act-label { font-family: var(--sans); font-size: .65rem; letter-spacing: .25em; text-transform: uppercase; color: var(--paper-dim); margin-right: .3rem; }
.hero__act-num { font-size: 1.6rem; color: var(--gold); }
.hero__act-total { color: var(--paper-dim); }

/* ============ MARQUEE ============ */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 1.6rem 0; background: var(--ink-2); position: relative; z-index: 40; }
/* The track holds N identical groups. The trailing padding on each group
   supplies the spacing between groups, so one group's width IS the exact loop
   distance - no gap arithmetic, and nothing to keep in sync by hand. */
.marquee__track { display: flex; white-space: nowrap; width: max-content; align-items: center; }
.marquee__group { display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; flex: none; }
.marquee__track span { font-family: var(--serif); font-size: clamp(1.4rem, 3.5vw, 2.6rem); font-weight: 300; }
.marquee__track .dot { color: var(--gold); font-size: .8em; }

/* ============ STATEMENT ============ */
.statement { padding: clamp(6rem, 16vh, 12rem) clamp(1.5rem, 6vw, 8rem); max-width: 1400px; margin: 0 auto; }
.statement__eyebrow { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 2rem; }
.statement__text { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 5vw, 4.2rem); line-height: 1.15; }
.statement__text [data-word] { display: inline-block; opacity: .14; transition: opacity .4s; }

/* ============ SECTION HEAD ============ */
.section-head { padding: 0 clamp(1.5rem,6vw,8rem); margin-bottom: 3rem; }
.section-head--center { text-align: center; padding: 0; margin-bottom: 4rem; }
.section-head__num { font-size: .8rem; letter-spacing: .3em; color: var(--gold); }
.section-head__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 7vw, 5.5rem); line-height: 1; margin: .5rem 0 .8rem; }
.section-head__sub { color: var(--paper-dim); font-size: clamp(1rem,1.6vw,1.2rem); }

/* ============ CRAFT ============ */
.craft { padding: clamp(5rem,12vh,9rem) 0; }
.craft__list { border-top: 1px solid var(--line); }
.craft-row {
  position: relative; display: grid; grid-template-columns: 80px 1fr 1.2fr auto;
  gap: 2rem; align-items: center; padding: clamp(1.6rem,4vw,2.6rem) clamp(1.5rem,6vw,8rem);
  border-bottom: 1px solid var(--line); overflow: hidden; transition: background .5s;
}
.craft-row__no { font-family: var(--serif); font-size: 1rem; color: var(--gold); }
.craft-row__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1; transition: transform .5s var(--easing); }
.craft-row__desc { color: var(--paper-dim); max-width: 46ch; transition: color .5s; }
.craft-row__tag { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-dim); justify-self: end; text-align: right; }
/* Hover thumbnail for each service. Holds a real still now, so it needs
   overflow clipping for the rounded corner and a base colour to sit on while
   the lazily loaded image decodes. */
.craft-row__peek {
  position: absolute; right: clamp(1.5rem,6vw,8rem); top: 50%; width: 140px; height: 90px;
  border-radius: 8px; overflow: hidden; background: var(--ink-2);
  border: 1px solid rgba(244,185,66,.22);
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
  transform: translateY(-50%) scale(.6); opacity: 0; pointer-events: none;
  transition: opacity .5s var(--easing), transform .5s var(--easing); z-index: 3;
}
.craft-row__peek img { width: 100%; height: 100%; object-fit: cover; display: block; }
.craft-row:hover { background: var(--ink-2); }
.craft-row:hover .craft-row__title { transform: translateX(1.2rem); color: var(--gold); }
.craft-row:hover .craft-row__peek { opacity: 1; transform: translateY(-50%) scale(1) rotate(-4deg); }
@media (max-width: 820px) {
  .craft-row { grid-template-columns: 40px 1fr; gap: .5rem 1rem; }
  .craft-row__desc { grid-column: 2; }
  .craft-row__tag { grid-column: 2; justify-self: start; text-align: left; }
  .craft-row__peek { display: none; }
}

/* ============ REEL ============ */
.reel { padding: clamp(5rem,12vh,9rem) 0; }
.reel__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem;
  padding: 0 clamp(1.5rem,6vw,8rem);
}
/* These are <button>s, not links - they play a clip in place. Hence the
   appearance reset. Layer order inside the tile, bottom to top:
   0 poster image, 1 video, 2 gradient + dim overlays, 3 captions. */
.frame {
  position: relative; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden;
  background: var(--g); display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.6rem; isolation: isolate;
  appearance: none; -webkit-appearance: none; border: 0; color: inherit;
  font: inherit; text-align: left; cursor: none; width: 100%;
}
.frame:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.frame__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 1; opacity: 0; transition: opacity .45s var(--easing);
}
.frame.is-playing .frame__video { opacity: 1; }
/* Uncover the picture while it plays, but keep the bottom gradient so the
   caption stays readable over whatever frame happens to be on screen. */
.frame.is-playing::after { opacity: 0; }
.frame.is-playing .frame__img { opacity: 0; }
.frame.is-playing .frame__meta { opacity: 1; transform: translateY(0); }
.frame.is-playing .frame__play { opacity: 1; transform: scale(1); }
/* Sits under the two overlay layers; the --g gradient shows through until it loads. */
.frame__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 0; transition: transform 1.1s var(--easing);
}
.frame:hover .frame__img { transform: scale(1.05); }
.frame::before { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.65)); z-index: 2; }
.frame::after { content:""; position:absolute; inset:0; background: rgba(8,9,13,.35); z-index: 2; opacity: 1; transition: opacity .5s; }
.frame:hover::after { opacity: 0; }
.frame--tall { grid-row: span 2; aspect-ratio: 4/6.3; }
.frame--wide { grid-column: span 2; aspect-ratio: 16/6.5; }
/* Lifts the captions above the overlays. Excludes the image and the video,
   both absolutely positioned underneath - a bare `.frame > *` would win on
   source order and drop them into the flex flow on top of the text. */
.frame > *:not(.frame__img):not(.frame__video) { position: relative; z-index: 3; }
.frame__cat { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); }
.frame__title { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 500; line-height: 1; margin: .4rem 0 .3rem; transform: translateY(0); transition: transform .5s var(--easing); }
.frame__meta { font-size: .8rem; color: rgba(245,242,234,.7); opacity: 0; transform: translateY(10px); transition: all .5s var(--easing); }
.frame:hover .frame__meta { opacity: 1; transform: translateY(0); }
.frame:hover .frame__title { transform: translateY(-4px); }
.frame__play {
  position: absolute; top: 1.4rem; right: 1.4rem; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(245,242,234,.5); display: grid; place-items: center; font-size: .8rem;
  transform: scale(.7); opacity: 0; transition: all .5s var(--easing); z-index: 3;
  background: rgba(8,9,13,.45); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
.frame:hover .frame__play { transform: scale(1); opacity: 1; }
@media (max-width: 720px) {
  .reel__grid { grid-template-columns: 1fr; }
  .frame, .frame--tall, .frame--wide { aspect-ratio: 4/3; grid-column: auto; grid-row: auto; }
}

/* ============ METHOD (pinned stack over a cinematic backdrop) ============ */
/* The pane is pinned by ScrollTrigger, NOT position:sticky - body has
   overflow-x:hidden, which turns body into a scroll container and stops
   sticky from ever releasing. */
.method { position: relative; }
.method__sticky {
  position: relative; min-height: 100vh; height: 100vh; display: flex; flex-direction: column;
  justify-content: flex-start;
  padding: clamp(6rem,12vh,8rem) clamp(1.5rem,6vw,8rem) clamp(5rem,11vh,7rem); overflow: hidden;
}
/* Everything except the backdrop sits above it. */
.method__sticky > *:not(.method__reel) { position: relative; z-index: 2; }

.method__reel { position: absolute; inset: 0; z-index: 0; background: var(--ink); }
.method__clip { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--easing); }
.method__clip.is-active { opacity: 1; }
.method__clip video {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.08); /* hides the edge softening from the scrim blur */
}
/* Weighted to the edges only. The middle of the frame stays clear so the
   footage actually reads - this is the feature, not a texture behind text. */
.method__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(5,7,15,.72) 0%,
    rgba(5,7,15,.14) 24%,
    rgba(5,7,15,.06) 46%,
    rgba(5,7,15,.55) 74%,
    rgba(5,7,15,.92) 100%);
}
.method__bar { position: absolute; left: 0; width: 100%; height: 7vh; background: var(--ink); z-index: 1; }
.method__bar--top { top: 0; }
.method__bar--bottom { bottom: 0; }

/* The steps read as a film lower-third: one at a time, over the footage,
   no card chrome competing with the picture. */
.method__stack {
  position: relative; max-width: 900px; margin: auto auto 0; width: 100%;
  min-height: clamp(180px, 26vh, 240px);
}
.step {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.6rem; align-items: baseline;
  opacity: 0; visibility: hidden; transition: opacity .8s var(--easing), visibility .8s;
}
.step.is-active { opacity: 1; visibility: visible; }
.step__no { font-family: var(--serif); font-size: clamp(2.6rem,7vw,4.6rem); color: var(--gold); grid-row: span 2; line-height: 1; }
.step h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem,4.5vw,3rem); text-shadow: 0 2px 24px rgba(0,0,0,.7); }
.step p { color: var(--paper); max-width: 52ch; text-shadow: 0 1px 18px rgba(0,0,0,.8); }

/* Without the animation engine nothing can be "current", so fall back to a
   plain readable stack instead of four captions piled on one another. */
html:not(.anim-ready) .method__stack { min-height: 0; display: grid; gap: 1.6rem; }
html:not(.anim-ready) .step { position: relative; opacity: 1; visibility: visible; }

/* ============ STATS ============ */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stat { padding: clamp(3rem,7vw,5rem) 1.5rem; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num, .stat__plus { font-family: var(--serif); font-size: clamp(3rem, 8vw, 6rem); font-weight: 300; line-height: 1; }
.stat__plus { color: var(--gold); }
.stat__label { display: block; margin-top: 1rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-dim); }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2){ border-right: 0; }
  .stat:nth-child(1),.stat:nth-child(2){ border-bottom: 1px solid var(--line); }
}

/* ============ CONTACT ============ */
.contact { padding: clamp(6rem,18vh,14rem) clamp(1.5rem,6vw,8rem); text-align: center; position: relative; overflow: hidden; }
.contact::before {
  content:""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 80vw; height: 80vw; max-width: 900px; max-height: 900px; border-radius: 50%;
  background: radial-gradient(circle, rgba(27,157,240,.16), transparent 62%); pointer-events: none;
}
.contact__inner { position: relative; z-index: 2; }
.contact__eyebrow { font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.6rem; }
.contact__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 9vw, 7rem); line-height: 1; }
.contact__title em { color: var(--gold); }
.contact__title .reveal-line { display: block; }
.contact__mail {
  display: inline-block; margin: 2.6rem 0 3rem; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 4vw, 2.6rem); border-bottom: 1px solid var(--line); padding-bottom: .3rem;
  transition: border-color .4s, color .4s;
}
.contact__mail:hover { border-color: var(--gold); color: var(--gold); }
/* Social links live in the footer as brand marks, not as text in the contact block. */

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); overflow: hidden; }
.footer__credits { display: flex; white-space: nowrap; width: max-content; padding: 1.4rem 0; opacity: .5; }
.footer__credits .marquee__group { gap: 1.4rem; padding-right: 1.4rem; }
.footer__credits span { font-family: var(--serif); font-size: 1.1rem; }
.footer__end {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  padding: 2rem clamp(1.5rem,6vw,8rem); border-top: 1px solid var(--line);
}
/* Class-based, not :nth-child - the footer row gained items and positional
   selectors would have silently repainted the wrong ones. */
.footer__mark { font-family: var(--serif); color: var(--gold); display: inline-flex; align-items: center; gap: .55rem; }
.footer__logo { width: 30px; height: 30px; object-fit: contain; flex: none; }
.footer__copy { font-size: .82rem; color: var(--paper-dim); }
.footer__top { background: none; border: 1px solid var(--line); color: var(--paper); border-radius: 40px; padding: .6rem 1.3rem; font-family: var(--sans); font-size: .8rem; cursor: none; transition: border-color .4s; }
.footer__top:hover { border-color: var(--gold); }

.footer__legal { display: flex; align-items: center; gap: .8rem; font-size: .82rem; color: var(--paper-dim); }
.footer__legal a { color: var(--paper-dim); transition: color .35s; }
.footer__legal a:hover { color: var(--gold); }

.footer__social {
  display: flex; align-items: center; justify-content: center; gap: 1.6rem;
  padding: 1.8rem clamp(1.5rem,6vw,8rem); border-top: 1px solid var(--line);
}
.social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  color: var(--paper-dim); transition: color .35s, border-color .35s, transform .35s var(--easing);
}
.social svg { width: 19px; height: 19px; fill: currentColor; display: block; }
.social:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-3px); }

/* ============ LEGAL PAGES (terms, privacy) ============ */
.legal { max-width: 780px; margin: 0 auto; padding: clamp(7rem,15vh,10rem) clamp(1.5rem,6vw,3rem) clamp(4rem,9vh,6rem); }
.legal__eyebrow { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.legal__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem,6vw,4rem); line-height: 1.02; margin-bottom: .9rem; }
.legal__updated { font-size: .85rem; color: var(--paper-dim); padding-bottom: 2rem; border-bottom: 1px solid var(--line); margin-bottom: 2.6rem; }
.legal__note {
  border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: 6px;
  padding: 1rem 1.2rem; margin-bottom: 2.6rem; font-size: .88rem; color: var(--paper-dim); background: var(--ink-2);
}
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem,2.6vw,1.75rem); color: var(--paper); margin: 2.6rem 0 .9rem; }
.legal h2 span { color: var(--gold); font-size: .72em; margin-right: .6rem; }
.legal p, .legal li { color: var(--paper-dim); font-size: .97rem; line-height: 1.75; }
.legal p + p { margin-top: .9rem; }
.legal ul { margin: .9rem 0 0; padding-left: 1.2rem; }
.legal li { margin-bottom: .5rem; }
.legal li::marker { color: var(--gold); }
.legal a:not(.legal__back) { color: var(--paper); border-bottom: 1px solid var(--line); transition: border-color .35s, color .35s; }
.legal a:not(.legal__back):hover { color: var(--gold); border-color: var(--gold); }
.legal__back {
  display: inline-block; margin-top: 3rem; padding: .7rem 1.4rem; border-radius: 40px;
  border: 1px solid var(--line); font-size: .82rem; transition: border-color .4s, color .4s;
}
.legal__back:hover { border-color: var(--gold); color: var(--gold); }

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .statement__text [data-word] { opacity: 1; }
}
