:root {
  --ink: #14100E;
  --ink-2: #2A1D10;
  --cream: #F2EBDF;
  --cream-2: #E4DBCB;
  --gold: #C5A46D;
  --foot: #1B1512;
  --gutter: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-underline-offset: 4px; }
a:hover { color: var(--cream); }

.page { position: relative; overflow-x: hidden; }

/* Film grain over everything */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 60;
  opacity: .06; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: max(20px, env(safe-area-inset-top)) var(--gutter) 40px;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(255, 244, 215, .75), transparent 70%),
    linear-gradient(160deg, #EBD39A 0%, #D2B173 42%, #B08A4A 100%);
}
.hero-mark {
  position: absolute; right: -10vw; top: 56%;
  width: min(56vw, 520px);
  transform: translateY(-50%);
  opacity: .09; pointer-events: none;
}
.hero-head {
  position: relative;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.hero-logo { height: 84px; width: auto; display: block; margin: -6px 0 -6px -8px; }
.hero-meta {
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
  font-weight: 500; text-align: right;
}
.hero-body { position: relative; margin: auto 0; padding: 40px 0 24px; text-align: center; }
.hero-title {
  margin: 0; font-weight: 300;
  font-size: clamp(60px, 12.5vw, 200px);
  line-height: .92; letter-spacing: -.035em;
}
.hero-title em {
  font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400;
  letter-spacing: -.02em; font-size: 1.08em;
}
.hero-lede {
  margin: 28px auto 0; max-width: 460px;
  font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5;
  color: var(--ink-2); font-weight: 400;
}

/* Join block */
.join {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  margin-top: clamp(28px, 4vw, 44px);
}
.consent {
  display: flex; gap: 12px; align-items: center;
  cursor: pointer; min-height: 44px; text-align: left;
}
.consent input {
  width: 24px; height: 24px; margin: 0; flex: none;
  accent-color: var(--ink); cursor: pointer;
}
.consent span { font-size: 16px; line-height: 1.35; font-weight: 400; }
.consent a { color: var(--ink); }
.btn-join {
  width: 100%; max-width: 380px; min-height: 64px; padding: 0 32px;
  border-radius: 999px; border: 0;
  background: var(--ink); color: var(--cream);
  font-family: 'Jost', sans-serif; font-size: 15px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  transition: background .35s, box-shadow .35s, transform .35s, opacity .35s;
}
.btn-join:hover { color: var(--cream); }
.btn-join:hover {
  background: var(--ink-2);
  box-shadow: 0 18px 40px -10px rgba(20, 16, 14, .55);
  transform: translateY(-2px);
}
.btn-join:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.btn-join[aria-disabled="true"], .btn-sticky[aria-disabled="true"] { opacity: .45; }
.join-hint { margin: 0; font-size: 14px; color: var(--ink-2); font-weight: 400; }
.join-notice { margin: 0; font-size: 14px; color: #5A3A12; font-weight: 500; min-height: 20px; }

/* Terms */
.terms-wrap { position: relative; padding: clamp(56px, 8vw, 100px) var(--gutter) 0; overflow: hidden; }
.terms { max-width: 820px; margin: 0 auto; padding-bottom: clamp(56px, 7vw, 90px); }
.terms-toggle {
  all: unset; box-sizing: border-box;
  width: 100%; min-height: 56px; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  cursor: pointer; border-top: 1px solid rgba(242, 235, 223, .25);
}
.terms-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.terms-title { font-weight: 200; font-size: clamp(30px, 5vw, 52px); line-height: 1.05; letter-spacing: -.02em; }
.terms-plus {
  flex: none; width: 44px; height: 44px;
  border: 1px solid rgba(197, 164, 109, .6); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 24px; font-weight: 200;
  transition: transform .4s;
}
.terms-toggle[aria-expanded="true"] .terms-plus { transform: rotate(45deg); }
.terms-list { margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(242, 235, 223, .15); }
.terms-list li {
  padding: 18px 0; border-bottom: 1px solid rgba(242, 235, 223, .12);
  color: var(--cream-2); font-size: 17px;
}

/* Footer */
.foot {
  padding: 56px var(--gutter) calc(44px + env(safe-area-inset-bottom));
  background: var(--foot); text-align: center;
}
.foot img { height: 170px; width: auto; display: block; margin: 0 auto; }
.foot-meta { margin: 0; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: #A89F94; }
.foot-copy { margin: 12px 0 0; font-size: 13px; color: #8A8177; }

/* Sticky CTA, shown once the hero button scrolls away */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px clamp(16px, 4vw, 32px) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(20, 16, 14, .95) 45%);
  pointer-events: none;
  transform: translateY(100%); opacity: 0;
  transition: transform .5s, opacity .5s;
}
.sticky.show { transform: none; opacity: 1; }
.btn-sticky {
  pointer-events: auto; display: block; margin: 0 auto;
  width: 100%; max-width: 460px; min-height: 56px; border: 0;
  background: var(--cream); color: var(--ink);
  font-family: 'Jost', sans-serif; font-size: 14px; font-weight: 500;
  letter-spacing: .24em; text-transform: uppercase; cursor: pointer;
  text-align: center; line-height: 56px; text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.btn-sticky:hover { color: var(--ink); }
.btn-sticky:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Entrance motion */
.ln { display: block; overflow: hidden; padding: .04em 0 .1em; }
.ln > span { display: block; transform: translateY(110%); animation: lineUp 1.2s var(--ease) forwards; }
@keyframes lineUp { to { transform: none; } }
.rise { opacity: 0; animation: rise 1.1s var(--ease) forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
  .ln > span { transform: none; }
}
