/* ============================================================
   MARBLE GOLF — THE WHITE BAG
   Design system: massive type, photography-led, restrained.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Anton';
  src: url('../assets/fonts/anton-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/archivo-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --white: #ffffff;
  --stone-dark: #6e6a5e;  /* stone, darkened for text on light backgrounds */
  --ink: #111111;
  --paper: #f4f1ea;       /* warm stone-white for editorial sections */
  --green: #2e4636;       /* deep golf green */
  --sand: #e6dcc7;
  --stone: #a8a193;
  --ocean: #5f7e8c;

  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-body: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --container: 1360px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease-out: cubic-bezier(0.2, 0.65, 0.25, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--ink); color: var(--white);
  padding: 12px 20px; font-size: 14px; text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

:focus-visible {
  outline: 3px solid var(--ocean);
  outline-offset: 3px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
.display--hero  { font-size: clamp(60px, min(16vw, 19.5vh), 230px); }
.display--xl    { font-size: clamp(56px, 11vw, 168px); }
.display--lg    { font-size: clamp(52px, 9.5vw, 144px); }
.display--md    { font-size: clamp(34px, 5vw, 72px); line-height: 1.02; }
.display--sm    { font-size: clamp(30px, 3.6vw, 54px); line-height: 1; }
.display--price { font-size: clamp(96px, 21vw, 320px); }

.eyebrow {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  margin-bottom: clamp(20px, 3vw, 36px);
}
.eyebrow--light { color: rgba(255, 255, 255, 0.92); }
.eyebrow--stone { color: var(--stone); }
.eyebrow--green { color: var(--green); }
.eyebrow--sand  { color: var(--sand); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 18px 34px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out),
              border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--white { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--white:hover { background: var(--sand); border-color: var(--sand); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.65); }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--black { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--black:hover { background: var(--green); border-color: var(--green); }
.btn--small { padding: 13px 22px; font-size: 11px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.header-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand-mark { height: 21px; width: auto; }
.brand-mark--black { display: none; }

.site-nav { display: none; gap: 36px; }
.site-nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  opacity: 0.92;
  transition: opacity 0.2s;
}
.site-nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }

.btn--header { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--header:hover { background: var(--sand); border-color: var(--sand); }

/* Scrolled state: white bar, dark content */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.08);
}
.site-header.is-scrolled .brand-mark--white { display: none; }
.site-header.is-scrolled .brand-mark--black { display: block; }
.site-header.is-scrolled .site-nav a { color: var(--ink); }
.site-header.is-scrolled .btn--header {
  background: var(--ink); color: var(--white); border-color: var(--ink);
}
.site-header.is-scrolled .btn--header:hover { background: var(--green); border-color: var(--green); }

@media (min-width: 880px) {
  .site-nav { display: flex; }
  .brand-mark { height: 24px; }
}

/* ============================================================
   1 · HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 52%;
  animation: hero-zoom 9s var(--ease-out) both;
}
@keyframes hero-zoom {
  from { transform: scale(1.07); }
  to   { transform: scale(1); }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 12, 10, 0.62) 0%, rgba(10, 12, 10, 0.38) 45%, rgba(10, 12, 10, 0.16) 75%, rgba(10, 12, 10, 0.05) 100%),
    linear-gradient(to bottom, rgba(10, 12, 10, 0.35) 0%, rgba(10, 12, 10, 0) 24%);
}
.hero-content {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 110px var(--gutter) clamp(72px, 11vh, 140px);
}
.hero-sub {
  margin-top: clamp(18px, 2.5vw, 30px);
  font-size: clamp(17px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: 0.01em;
  max-width: 30ch;
  text-wrap: balance;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(26px, 3.5vw, 44px);
}

/* Hero entrance choreography */
.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}
.hero-line > span {
  display: block;
  transform: translateY(112%);
  animation: hero-rise 1s var(--ease-out) forwards;
  animation-delay: calc(0.18s + var(--d) * 0.11s);
}
@keyframes hero-rise { to { transform: translateY(0); } }

.hero-fade {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-fade 0.9s var(--ease-out) forwards;
  animation-delay: calc(0.22s + var(--d) * 0.12s);
}
@keyframes hero-fade { to { opacity: 1; transform: translateY(0); } }

.scroll-cue {
  position: absolute;
  bottom: 34px;
  right: var(--gutter);
  width: 1px;
  height: 64px;
  display: none;
}
.scroll-cue span {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.45);
  overflow: hidden;
}
.scroll-cue span::after {
  content: '';
  position: absolute;
  left: 0; top: -100%;
  width: 100%; height: 100%;
  background: var(--white);
  animation: cue-drop 2.2s ease-in-out infinite;
}
@keyframes cue-drop {
  0%   { top: -100%; }
  55%  { top: 100%; }
  100% { top: 100%; }
}
@media (min-width: 880px) {
  .scroll-cue { display: block; }
}

/* ============================================================
   2 · MANIFESTO
   ============================================================ */
.manifesto {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding-block: clamp(110px, 16vw, 230px);
  overflow: hidden;
}
.manifesto-setup {
  font-size: clamp(20px, 2.6vw, 34px);
  font-weight: 350;
  color: var(--stone);
  margin-bottom: 0.5em;
}
.manifesto .display--xl { max-width: 12ch; }
.manifesto-body {
  margin-top: clamp(44px, 6vw, 84px);
  display: grid;
  gap: clamp(24px, 4vw, 64px);
  max-width: 1060px;
}
.manifesto-body p {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.75;
  font-weight: 420;
  color: rgba(255, 255, 255, 0.86);
  max-width: 44ch;
}
@media (min-width: 820px) {
  .manifesto-body { grid-template-columns: 1fr 1fr; }
}
.ghost-word {
  position: absolute;
  right: -0.06em;
  bottom: -0.18em;
  font-family: var(--font-display);
  font-size: clamp(140px, 26vw, 420px);
  line-height: 1;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   3 · SHOWCASE
   ============================================================ */
.showcase {
  background: var(--white);
  padding-block: clamp(100px, 14vw, 200px) clamp(60px, 8vw, 120px);
}
.showcase-lead {
  position: relative;
  display: grid;
}
.showcase-word {
  position: relative;
  z-index: 2;
  margin-bottom: -0.38em;
  margin-left: clamp(-0.04em, 16vw, 420px);
}
.showcase-figure img {
  width: 100%;
}
.showcase-figure--tall {
  justify-self: end;
  width: min(640px, 86%);
}
.showcase-figure figcaption,
.lifestyle-figure figcaption {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone-dark);
}
.showcase-grid {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(56px, 9vw, 140px);
  align-items: start;
}
@media (min-width: 900px) {
  .showcase-grid { grid-template-columns: 58fr 38fr; }
  .showcase-figure--offset { margin-top: clamp(60px, 10vw, 160px); }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding-block: clamp(18px, 2.2vw, 30px);
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   FULL-BLEED STATEMENTS
   ============================================================ */
.bleed {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.bleed-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.bleed-media img {
  width: 100%;
  height: 112%;
  object-fit: cover;
}
.bleed--seen .bleed-media img { object-position: center 64%; }
.bleed--dawn .bleed-media img { object-position: center 40%; }
.bleed-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 12, 14, 0.34), rgba(10, 12, 14, 0.28) 50%, rgba(10, 12, 14, 0.44));
}
.bleed-scrim--soft {
  background: linear-gradient(to bottom, rgba(10, 12, 14, 0.08), rgba(10, 12, 14, 0.42));
}
.bleed-content {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: clamp(90px, 12vw, 140px) var(--gutter);
}
.bleed-content--low {
  align-self: flex-end;
  padding-bottom: clamp(80px, 11vw, 130px);
}
.bleed--dawn { align-items: flex-end; }
.bleed-sub {
  margin-top: clamp(16px, 2vw, 26px);
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

/* ============================================================
   5 · DETAILS
   ============================================================ */
.details {
  background: var(--paper);
  padding-block: clamp(100px, 14vw, 200px);
}
.details-heading {
  max-width: 22ch;
  margin-bottom: clamp(70px, 10vw, 150px);
}
.detail-row {
  display: grid;
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  margin-bottom: clamp(80px, 11vw, 160px);
}
.detail-media { position: relative; }
.detail-media img { width: 100%; }
.detail-media--crop img {
  aspect-ratio: 14 / 15;
  object-fit: cover;
  object-position: 50% 100%;
}
.detail-copy { position: relative; }
.detail-index {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(80px, 9vw, 150px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(17, 17, 17, 0.22);
  margin-bottom: 0.1em;
  user-select: none;
}
.detail-copy p {
  margin-top: clamp(18px, 2vw, 28px);
  max-width: 38ch;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.7;
  color: rgba(17, 17, 17, 0.78);
}
@media (min-width: 900px) {
  .detail-row { grid-template-columns: 1fr 1fr; }
  .detail-row--reverse .detail-media { order: 2; }
  .detail-row--reverse .detail-copy { order: 1; }
  .detail-row .detail-media { width: min(620px, 100%); }
}

.detail-list { margin-top: clamp(40px, 5vw, 80px); }
.detail-list-title { margin-bottom: 10px; }
.detail-line {
  display: flex;
  align-items: baseline;
  gap: clamp(20px, 3vw, 48px);
  padding-block: clamp(20px, 2.6vw, 34px);
  border-top: 1px solid rgba(17, 17, 17, 0.16);
  font-family: var(--font-display);
  font-size: clamp(20px, 3.4vw, 46px);
  line-height: 1.12;
  text-transform: uppercase;
  transition: padding-left 0.35s var(--ease-out);
}
.detail-line:last-child { border-bottom: 1px solid rgba(17, 17, 17, 0.16); }
.detail-line:hover { padding-left: clamp(8px, 1.5vw, 24px); }
.detail-line-no {
  font-size: 0.45em;
  color: var(--green);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

/* ============================================================
   6 · LIFESTYLE
   ============================================================ */
.lifestyle {
  background: var(--white);
  padding-block: clamp(70px, 9vw, 140px);
}
.lifestyle-grid {
  display: grid;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.lifestyle-figure img { width: 100%; }
@media (min-width: 900px) {
  .lifestyle-grid { grid-template-columns: 60fr 36fr; }
  .lifestyle-figure--tall { margin-top: clamp(70px, 9vw, 140px); }
  .lifestyle-figure--wide { grid-column: 1 / -1; }
}

/* ============================================================
   7 · PRICE
   ============================================================ */
.price {
  background: var(--green);
  color: var(--white);
  padding-block: clamp(110px, 15vw, 220px);
}
.price .display--price {
  margin-left: -0.04em;
  margin-bottom: clamp(28px, 4vw, 52px);
}
.price-line {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 420;
  color: rgba(255, 255, 255, 0.85);
  max-width: 36ch;
}
.price-line--strong {
  margin-top: 0.5em;
  font-weight: 650;
  color: var(--white);
}
.price-rule {
  margin: clamp(48px, 6vw, 90px) 0 0;
  max-width: 620px;
}
.price-rule dt, .price-rule dd { margin: 0; }
.price-rule-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: clamp(15px, 1.4vw, 19px);
  color: var(--sand);
}
.price-rule-row--marble {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-weight: 700;
}
.price-rule-row--marble dd {
  font-family: var(--font-display);
  font-size: 1.6em;
  letter-spacing: 0.02em;
}

/* ============================================================
   8 · WAITLIST
   ============================================================ */
.waitlist {
  background: var(--white);
  padding-block: clamp(110px, 15vw, 210px);
}
.waitlist-sub {
  margin-top: clamp(16px, 2vw, 26px);
  font-size: clamp(16px, 1.5vw, 21px);
  color: rgba(17, 17, 17, 0.7);
  max-width: 42ch;
}
.waitlist-form {
  margin-top: clamp(36px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 640px;
}
.form-label {
  flex-basis: 100%;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(17, 17, 17, 0.72);
}
.waitlist-form input {
  flex: 1 1 280px;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 17px 20px;
  border: 1px solid rgba(17, 17, 17, 0.55);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.25s;
}
.waitlist-form input::placeholder { color: rgba(17, 17, 17, 0.62); }
.waitlist-form input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.waitlist-form input[aria-invalid="true"] { border-color: #b3402e; box-shadow: inset 0 0 0 1px #b3402e; }
.form-note {
  flex-basis: 100%;
  min-height: 1.5em;
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
}
.form-note.is-error { color: #b3402e; }

.waitlist.is-joined .waitlist-form input,
.waitlist.is-joined .waitlist-form .btn { display: none; }
.waitlist.is-joined .form-note {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 44px);
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--ink);
  font-weight: 400;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding-block: clamp(70px, 9vw, 120px) 48px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}
.footer-mark { height: 40px; width: auto; }
.footer-tag {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  text-transform: uppercase;
  line-height: 1;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-top: 8px;
}
.footer-nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
}
.footer-nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 6px; }
.footer-fine {
  margin-top: 22px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* ============================================================
   LEGAL PAGES (terms, etc.)
   ============================================================ */
/* No dark hero behind the header here — force it into its solid state
   independent of JS scroll-state so the wordmark stays visible at the top. */
.legal-page .site-header {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.08);
}
.legal-page .brand-mark--white { display: none; }
.legal-page .brand-mark--black { display: block; }
.legal-page .site-nav a { color: var(--ink); }
.legal-page .btn--header {
  background: var(--ink); color: var(--white); border-color: var(--ink);
}
.legal-page .btn--header:hover { background: var(--green); border-color: var(--green); }

.legal {
  background: var(--paper);
  /* Top padding clears the fixed header (mirrors the hero's ~110px offset). */
  padding-block: clamp(120px, 16vh, 180px) clamp(80px, 12vw, 160px);
}
.legal .container { max-width: 820px; }
.legal h1 { margin-bottom: 12px; }
.legal-updated {
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--stone-dark);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.legal h2 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.1;
  margin: clamp(40px, 5vw, 64px) 0 14px;
}
.legal p, .legal li {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.75;
  color: rgba(17, 17, 17, 0.82);
  max-width: 72ch;
}
.legal p + p { margin-top: 1em; }
.legal ul { margin: 1em 0; padding-left: 1.3em; }
.legal li + li { margin-top: 0.4em; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal strong { font-weight: 650; }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
html.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out);
  transition-delay: var(--stagger, 0s);
}
html.js .reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media img { animation: none; }
  .hero-line > span { transform: none; animation: none; }
  .hero-fade { opacity: 1; transform: none; animation: none; }
  .marquee-track { animation: none; }
  .scroll-cue span::after { animation: none; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .bleed-media img { transform: none !important; }
  .btn:hover, .btn:active { transform: none; }
  .detail-line { transition: none; }
  .detail-line:hover { padding-left: 0; }
  .skip-link { transition: none; }
}
