/* The Lodge · lodgesnowpark.com · parked page
   The invest site's hero on its own. Tokens and rules are copied from
   ../../invest.lodgesnowpark.com/public/styles.css (canvas v60) and trimmed to what this page uses;
   change the look there first, then copy it here. The hero scene comes from the invest site's earlier hero (commit 02b941c). New here: .signup, .credit. */

/* ---------- tokens ---------- */
:root {
  --ink: #07090c;
  --ink-3: #131922;
  --snow: #f4f6f8;
  --snow-82: rgba(244, 246, 248, .82);
  --muted: rgba(244, 246, 248, .68);
  --faint: rgba(244, 246, 248, .34);
  --line: rgba(244, 246, 248, .12);
  --ice: #a9d8ff;
  --signal: #ff5a1f;
  --signal-hover: #ff6f3a;
  --signal-ink: #120802;
  --signal-text: #ff8a5c;

  --sans: Archivo, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --t-small: 13px;
  --t-body: clamp(16px, 1.5vw, 18px);
  --t-lede: clamp(17.6px, 1.9vw, 22.8px);
  --t-h2: clamp(36.8px, 6.2vw, 74px);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --r-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); }
body {
  margin: 0; background: var(--ink); color: var(--snow);
  font-family: var(--sans); font-size: var(--t-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
p, h1 { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }
video, svg { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: var(--t-small); line-height: 1.5; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); display: flex; align-items: flex-start; gap: .9em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--signal); flex: none; margin-top: .7em; }
.h2 {
  font-weight: 850; font-stretch: 112%; text-transform: uppercase; line-height: .94;
  letter-spacing: -.02em; font-size: var(--t-h2); text-wrap: balance;
}
.h2 em {
  font-style: normal; color: var(--ink); padding: 0 .1em; margin: 0 -.02em;
  background: linear-gradient(var(--ice), var(--ice)) 0 46% / 100% .86em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (min-width: 900px) { .h2 em { white-space: nowrap; } }
.lede { font-size: var(--t-lede); line-height: 1.42; color: var(--snow-82); max-width: 46ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: .8em; min-height: 58px; padding: 0 30px;
  border: 0; border-radius: var(--r-pill); font: 600 16px/1 var(--sans); letter-spacing: .01em; cursor: pointer;
  transition: background .2s, border-color .2s, opacity .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn.primary { background: var(--signal); color: var(--signal-ink); }
.btn.primary:hover { background: var(--signal-hover); }
.btn.primary:hover svg { transform: translateX(4px); }
.btn:active { opacity: .8; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- grain ---------- */
.grain {
  position: absolute; inset: -50%; width: 200%; height: 200%; z-index: 2; pointer-events: none; opacity: .09; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* ---------- hero: the film inside THE LODGE, then zoom through the L ----------
   From the invest site's earlier hero (commit 02b941c). The section is tall and its child sticks,
   so scrolling drives the scene: main.js maps scroll progress to the zoom and the copy. */
.hero { position: relative; height: 100svh; }
.js .hero { height: 260vh; }
/* clip, not hidden: a hidden box can still be scrolled (by focus or a jump), which slides the film up */
.hero__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; overflow: clip; isolation: isolate; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 40%; }
/* .hero__mask lays the letters out and stays invisible; .hero__ink draws them */
.hero__mask {
  position: absolute; inset: 0; visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 900; font-stretch: 125%; text-transform: uppercase;
}
.hero__base { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.hero__the { font-size: clamp(1.4rem, 5vw, 5.4rem); letter-spacing: .42em; margin-right: -.42em; line-height: 1; margin-bottom: .08em; }
/* padding-right gives back the last letter's negative spacing, so the box (and its centre) matches the letters */
.hero__lodge { font-size: 22vw; line-height: .8; letter-spacing: -.035em; padding-right: .035em; white-space: nowrap; }
.hero__ink { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; mix-blend-mode: multiply; pointer-events: none; display: none; }
.js .hero__ink { display: block; }
.hero__ink rect { fill: var(--ink); }
.hero__ink text { fill: #fff; font-weight: 900; font-stretch: 125%; }
.hero__ink-the { letter-spacing: .42em; }
.hero__ink-lodge { letter-spacing: -.035em; }
/* darkens the film behind the copy so it reads; fades in as the letters fade out */
.hero__veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at center, rgba(7,9,12,.55), rgba(7,9,12,.85) 80%); }
.js .hero__veil { opacity: 0; }

.hero__scroll {
  position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 10px; padding: 8px 12px;
  background: none; border: 0; cursor: pointer; color: var(--muted);
  font: 400 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase;
}
.js .hero__scroll { display: flex; }
.hero__scroll::after { content: ""; width: 1px; height: 44px; background: linear-gradient(var(--snow), transparent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.hero__copy {
  position: absolute; inset: 0; z-index: 3; padding: 72px var(--gutter);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center;
}
.js .hero__copy { opacity: 0; visibility: hidden; }
.hero__copy .h2 { max-width: 15em; }
.hero__copy .lede { max-width: 40ch; }
.credit {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) 18px; text-align: center;
  font-size: 12px; line-height: 1.4; color: var(--faint);
}
.js .credit { opacity: 0; }
@media (max-width: 899px) {
  .hero__copy { gap: 16px; padding-bottom: 64px; }
}

/* ---------- sign-up: the button opens the form in its place ---------- */
.signup { margin-top: 8px; width: 100%; max-width: 560px; display: flex; flex-direction: column; align-items: center; }
.signup__form { width: 100%; }
.signup__form[hidden], .signup .btn[hidden] { display: none; }
.field {
  display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: var(--r-pill);
  background: rgba(7, 9, 12, .55); border: 1px solid rgba(244, 246, 248, .5);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: border-color .2s;
}
.field:focus-within { border-color: var(--snow); }
.field input {
  flex: 1; min-width: 0; height: 46px; padding: 0 18px; border: 0; background: transparent; color: var(--snow);
  font: 400 16px/1 var(--sans);   /* 16px stops phones zooming in on focus */
}
.field input::placeholder { color: var(--faint); }
.field input:focus-visible { outline: none; }
.field .btn { min-height: 46px; padding: 0 22px; }
.signup[data-state="error"] .field { border-color: var(--signal-text); }
.fine { margin-top: 12px; font-size: var(--t-small); line-height: 1.5; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup__msg { font-size: var(--t-body); color: var(--snow-82); }
.signup__msg:empty { display: none; }

/* the quiet second door, for investors: a text link under the sign-up */
.invest-link {
  display: inline-flex; align-items: center; gap: .45em; min-height: 44px; margin-top: -6px;
  font-size: var(--t-small); letter-spacing: .02em; color: var(--snow-82);
  text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: .3em; transition: color .2s, text-decoration-color .2s;
}
.invest-link svg { width: 14px; height: 14px; flex: none; transition: transform .25s var(--ease); }
.invest-link:hover { color: var(--snow); text-decoration-color: var(--snow); }
.invest-link:hover svg { transform: translate(2px, -2px); }
.signup[data-state="error"] .signup__msg { margin-top: 12px; color: var(--signal-text); font-size: var(--t-small); }
.signup[data-state="done"] .signup__msg {
  font-weight: 850; font-stretch: 112%; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(22px, 2.4vw, 28px); line-height: 1; color: var(--snow);
}
.signup[data-state="done"] .signup__msg small {
  display: block; margin-top: 10px; font: 400 var(--t-body)/1.5 var(--sans); text-transform: none; letter-spacing: 0; color: var(--snow-82);
}
.js .signup__form.opening { animation: open .45s var(--ease) both; }
@keyframes open { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* phones: the field and the button stack as two pills of the same height, like the invest
   site's stacked buttons (54px, 10px apart), instead of one box holding both */
@media (max-width: 520px) {
  .field {
    flex-direction: column; align-items: stretch; gap: 10px; padding: 0; border: 0; border-radius: 0;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .field input {
    flex: none; height: 54px;   /* flex: none, or the desktop flex: 1 overrides the height in a column */
    padding: 0 24px; text-align: center; border-radius: var(--r-pill);
    background: rgba(7, 9, 12, .55); border: 1px solid rgba(244, 246, 248, .5);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: border-color .2s;
  }
  .field input:focus { border-color: var(--snow); }
  .signup[data-state="error"] .field input { border-color: var(--signal-text); }
  .field .btn { min-height: 54px; padding: 0 24px; justify-content: center; }
  .signup > .btn { min-height: 54px; padding: 0 24px; }   /* same height as the pills it opens into */
}

/* ---------- motion: arrive once on load ---------- */
.js [data-rise] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 1s); }
.js [data-rise].in { opacity: 1; transform: none; }
.js .split .w { display: inline-block; opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--line-i, 0) * .1s); }
.js .split.in .w { opacity: 1; transform: none; }
.js .split em { background-size: 0% .86em; transition: background-size .55s var(--ease); transition-delay: calc(var(--lines, 1) * .1s + .45s); }
.js .split.in em { background-size: 100% .86em; }

@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scroll::after { animation: none; }
  .js [data-rise], .js .split .w { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .split em { background-size: 100% .86em !important; transition: none !important; }
  .js .signup__form.opening { animation: none; }
  /* no zoom: the page is one screen with the copy over the darkened film */
  .js .hero { height: 100svh; }
  .js .hero__ink, .js .hero__scroll { display: none; }
  .js .hero__copy { opacity: 1 !important; visibility: visible !important; transform: none !important; }
  .js .hero__veil, .js .credit { opacity: 1 !important; }
}
