/* FNDR — dark, warm, premium.
   Palette taken from the brand imagery: warm blacks and espresso browns,
   cream type, champagne gold accents and the cobalt of the Founders card. */
:root {
  --black: #0b0908;
  --night: #100d0b;
  --espresso: #17130f;
  --cocoa: #221c17;
  --cream: #f1e9dc;
  --cream-2: rgba(241, 233, 220, .68);
  --cream-3: rgba(241, 233, 220, .44);
  --line: rgba(241, 233, 220, .12);
  --line-strong: rgba(241, 233, 220, .26);
  --gold: #cdb084;
  --gold-soft: rgba(205, 176, 132, .7);
  --blue: #1f45dc;
  /* Wide geometric sans, matched to the extended letterforms of the brand cards.
     Lexend Exa for display and labels, regular-width Lexend for reading text. */
  --display: "Lexend Exa", "Lexend", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sans: "Lexend", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: max(clamp(20px, 3.4vw, 56px), env(safe-area-inset-left), env(safe-area-inset-right));
  /* Height of a phone's collapsible browser bars (0 where unsupported). */
  --bars: 0px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  font-family: var(--sans);
  color: var(--cream);
  background: var(--black);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); overflow-x: hidden; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
::selection { background: var(--gold); color: var(--black); }

em { font-style: normal; color: var(--gold); }

.logo, .site-header, .overline, .section-number, .scroll-prompt, .btn, h1, h2, h3, blockquote, .benefits article > span, .melbourne-note, footer span { font-family: var(--display); }

/* Fine film grain over the whole page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: overlay;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  z-index: 20;
  width: 100%;
  height: 88px;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--cream);
}
.logo { font-size: 17px; font-weight: 600; letter-spacing: .14em; margin-right: -.14em; }
.site-header nav { display: flex; gap: 8px; }
.site-header nav a {
  padding: 11px 20px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.site-header nav a:hover { border-color: var(--gold); color: var(--gold); }
.site-header > span { justify-self: end; color: var(--cream-3); letter-spacing: .2em; text-transform: uppercase; font-size: 10px; font-weight: 300; }

/* ---------- Scroll film ---------- */
.scroll-film { height: 500svh; background: var(--black); }
/* The film area is sized to the *large* viewport so a phone's address bar
   showing/hiding never resizes the canvas mid-scroll; the copy is lifted by
   the bar height so it always sits inside the visible area. */
.film-sticky { height: 100vh; position: sticky; top: 0; overflow: hidden; background: #000; }
@supports (height: 100lvh) {
  :root { --bars: calc(100lvh - 100svh); }
  .film-sticky { height: 100lvh; }
}
.film-sticky canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000 url("assets/poster.jpg") center / cover no-repeat; }
/* Match the canvas's portrait framing so nothing jumps when frame 0 paints. */
@media (max-aspect-ratio: 1/1) {
  .film-sticky canvas { background-size: 227% auto; background-position: center 30%; }
}
.film-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11,9,8,.82) 0, rgba(11,9,8,.2) 55%, rgba(11,9,8,.4) 100%),
    linear-gradient(0deg, var(--black) 0, rgba(11,9,8,.6) 14%, transparent 45%),
    linear-gradient(180deg, rgba(11,9,8,.55), transparent 22%),
    radial-gradient(110% 90% at 60% 40%, rgba(130, 92, 50, .12), transparent 65%);
}
.film-progress { position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: var(--bars); height: 1px; background: var(--line); }
.film-progress span { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); will-change: transform; }

.film-copy { position: absolute; inset: 0 0 var(--bars); z-index: 2; padding: 140px var(--gutter) 7vh; display: flex; flex-direction: column; pointer-events: none; }
.film-copy-start { justify-content: space-between; will-change: opacity, transform; }
.film-copy-end { justify-content: flex-end; opacity: 0; will-change: opacity, transform; }
.film-copy-end p { margin: 0 0 34px; max-width: 600px; font-size: clamp(20px, 1.9vw, 28px); font-weight: 300; line-height: 1.32; letter-spacing: -.02em; color: var(--cream); }

.overline, .section-number {
  margin: 0;
  font-size: 10px;
  font-weight: 300;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .24em;
}
.overline { color: var(--cream-2); }
.section-number { color: var(--gold-soft); }

.film-copy h1 {
  margin: auto 0;
  font-size: clamp(44px, 7.6vw, 128px);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -.05em;
}

.scroll-prompt { position: absolute; z-index: 3; right: var(--gutter); bottom: calc(7vh + var(--bars)); margin: 0; font-size: 10px; font-weight: 300; color: var(--cream-2); text-transform: uppercase; letter-spacing: .24em; }
.scroll-prompt span { display: inline-block; margin-left: 12px; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(5px); opacity: 1; } }

/* ---------- Buttons ---------- */
.film-actions { display: flex; gap: 10px; flex-wrap: wrap; pointer-events: auto; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .4s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.btn-solid { background: var(--cream); color: var(--black); }
.btn-solid:hover { background: #fff8ec; transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--cream); }

/* ---------- Shared section type ---------- */
section h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 72px);
  font-weight: 200;
  line-height: 1.08;
  letter-spacing: -.045em;
}

/* ---------- Intro ---------- */
.intro {
  padding: clamp(110px, 14vw, 200px) var(--gutter);
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 5vw;
  background: var(--black);
}
.intro > div { max-width: 1040px; }
.intro > div > p { margin: 64px 0 0 auto; max-width: 560px; color: var(--cream-2); font-size: 19px; font-weight: 300; line-height: 1.55; letter-spacing: -.01em; }

/* ---------- Membership ---------- */
.membership {
  padding: clamp(110px, 12vw, 180px) var(--gutter);
  background: linear-gradient(180deg, var(--black), var(--espresso) 35%, var(--espresso));
  border-top: 1px solid var(--line);
}
.section-heading { display: grid; grid-template-columns: 1fr 3fr; gap: 5vw; margin-bottom: 96px; }
.benefits { margin-left: 25%; border-top: 1px solid var(--line-strong); }
.benefits article {
  position: relative;
  display: grid;
  grid-template-columns: 75px minmax(210px, .85fr) 1.4fr;
  gap: 32px;
  padding: 34px 0 44px;
  border-bottom: 1px solid var(--line);
}
.benefits article::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .8s var(--ease);
}
.benefits article:hover::before { transform: scaleX(1); }
.benefits article > span { color: var(--gold); font-size: 10px; font-weight: 300; letter-spacing: .2em; padding-top: 8px; }
.benefits h3 { margin: 0; font-size: clamp(18px, 1.6vw, 26px); font-weight: 300; letter-spacing: -.02em; transition: color .3s var(--ease); }
.benefits article:hover h3 { color: var(--gold); }
.benefits p { margin: 6px 0 0; max-width: 520px; color: var(--cream-2); font-size: 16px; font-weight: 300; line-height: 1.6; }

/* ---------- Principle ---------- */
.principle {
  min-height: 820px;
  padding: 90px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 3fr;
  grid-template-rows: auto 1fr auto;
  gap: 0 5vw;
  background:
    radial-gradient(80% 70% at 75% 45%, rgba(150, 105, 58, .16), transparent 70%),
    var(--cocoa);
}
blockquote {
  grid-column: 2;
  align-self: center;
  margin: 70px 0;
  max-width: 1120px;
  font-size: clamp(34px, 4.6vw, 76px);
  font-weight: 200;
  line-height: 1.08;
  letter-spacing: -.045em;
}
.principle-copy { grid-column: 2; justify-self: end; max-width: 500px; margin: 0; color: var(--cream-2); font-size: 17px; font-weight: 300; line-height: 1.6; }

/* ---------- Melbourne ---------- */
.melbourne {
  min-height: 720px;
  padding: 100px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 80px;
  background: linear-gradient(180deg, var(--cocoa), var(--night) 60%);
}
.melbourne h2 { margin-top: 28px; font-size: clamp(40px, 11.5vw, 200px); font-weight: 200; line-height: 1; letter-spacing: -.06em; }
.melbourne-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.melbourne-foot p { margin: 0; }
.melbourne-note { font-size: 10px; font-weight: 300; letter-spacing: .24em; text-transform: uppercase; color: var(--cream-3); }
.melbourne-foot p:last-child { max-width: 500px; color: var(--cream-2); font-size: 18px; font-weight: 300; line-height: 1.55; }

/* ---------- Footer ---------- */
footer {
  padding: 64px var(--gutter) 40px;
  display: grid;
  grid-template-columns: 1.2fr 2fr 1fr auto;
  gap: 40px;
  align-items: start;
  color: var(--cream-3);
  background: var(--night);
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.6;
}
footer .logo { color: var(--cream); }
footer p { margin: 2px 0 64px; }
footer span { justify-self: end; color: var(--gold-soft); letter-spacing: .2em; text-transform: uppercase; font-size: 10px; font-weight: 300; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translate3d(0, 36px, 0); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .benefits .reveal:nth-child(2) { transition-delay: .06s; }
.js .benefits .reveal:nth-child(3) { transition-delay: .12s; }
.js .benefits .reveal:nth-child(4) { transition-delay: .18s; }
.js .benefits .reveal:nth-child(5) { transition-delay: .24s; }

/* ---------- Reduced motion ---------- */
.scroll-film.is-static { height: 100svh; }
.scroll-film.is-static .film-copy-start, .scroll-film.is-static .scroll-prompt, .scroll-film.is-static .film-progress { display: none; }
.scroll-film.is-static .film-copy-end { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-prompt span { animation: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 720px) {
  .site-header { height: 72px; grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .logo { font-size: 15px; }
  .scroll-film { height: 420svh; }
  .film-copy { padding: 112px var(--gutter) 40px; }
  .film-copy h1 { font-size: clamp(36px, 11.5vw, 64px); line-height: 1.04; }
  .film-copy-end p { font-size: 19px; max-width: 420px; }
  .btn { padding: 14px 20px; font-size: 10px; }
  .scroll-prompt { bottom: calc(40px + var(--bars)); }
  .intro, .section-heading { grid-template-columns: 1fr; gap: 36px; }
  section h2 { font-size: clamp(28px, 8vw, 44px); }
  .intro > div > p { margin-top: 36px; font-size: 17px; }
  .section-heading { margin-bottom: 60px; }
  .benefits { margin-left: 0; }
  .benefits article { grid-template-columns: 38px 1fr; gap: 12px; padding: 26px 0 32px; }
  .benefits article > span { padding-top: 8px; }
  .benefits article p { grid-column: 2; font-size: 15px; }
  .principle { min-height: 640px; padding: 70px var(--gutter); grid-template-columns: 1fr; }
  blockquote, .principle-copy { grid-column: 1; }
  blockquote { font-size: clamp(28px, 8vw, 44px); margin: 56px 0; }
  .principle-copy { justify-self: start; }
  .melbourne { min-height: 560px; padding: 80px var(--gutter) 56px; }
  .melbourne h2 { font-size: 11.5vw; }
  .melbourne-foot { flex-direction: column; align-items: flex-start; gap: 16px; }
  .melbourne-foot p:last-child { font-size: 17px; }
  footer { grid-template-columns: 1fr 1fr; padding: 48px var(--gutter) 28px; }
  footer p { margin-bottom: 32px; }
  footer span { justify-self: start; }
}

/* ---------- Touch devices ---------- */
@media (hover: none) {
  /* A fixed, blended full-screen layer is costly to composite while scrolling on phones. */
  body::after { display: none; }
  .btn-solid:hover { transform: none; }
}

/* ---------- Phones in landscape / short screens ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  .site-header { height: 60px; }
  .site-header nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .film-copy { padding: 76px var(--gutter) 22px; }
  .film-copy h1 { font-size: clamp(32px, 11vh, 56px); line-height: 1.04; }
  .film-copy-end p { font-size: 16px; margin-bottom: 18px; max-width: 520px; }
  .btn { padding: 12px 18px; font-size: 10px; }
  .scroll-prompt { bottom: calc(22px + var(--bars)); }
  .principle, .melbourne { min-height: 0; }
}
