/* ==========================================================================
   DESIGN TOKENS (placeholder, replace with brand tokens)
   Neutral palette + type only. Swap these values when the brand identity
   (colours, typefaces) is defined; the rest of the stylesheet uses tokens.
   ========================================================================== */
:root {
  /* Colour (placeholder, replace with brand tokens) */
  --color-ink: #141414;        /* near-black: text, dark sections */
  --color-paper: #f5f3ef;      /* off-white: page background */
  --color-paper-2: #ebe8e2;    /* alternate section background */
  --color-grey-600: #595959;   /* muted text (AA on paper and paper-2) */
  --color-grey-300: #c9c5bd;   /* rules, borders */
  --color-grey-inverse: #a3a3a3; /* muted text on ink (AA) */
  --color-line-visual: #b9b5ad;  /* decorative visual lines */

  /* Type (placeholder, replace with brand tokens) (self-hosted, OFL) */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --container: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 4px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin-var.woff2") format("woff2-variations"), url("/fonts/fraunces-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-var.woff2") format("woff2-variations"), url("/fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
ul { list-style: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--color-ink); color: var(--color-paper); padding: .6rem 1rem; z-index: 10; border-radius: var(--radius); }
.skip:focus { top: 1rem; }

/* Top bar ---------------------------------------------------------------- */
.topbar { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--color-paper) 88%, transparent); backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.topbar.is-scrolled { border-bottom-color: var(--color-grey-300); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.topbar__name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; text-decoration: none; letter-spacing: -.005em; font-variation-settings: "opsz" 24; }

/* Buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 550; font-size: 1rem; letter-spacing: .01em; color: var(--color-paper); background: var(--color-ink); border: 1px solid var(--color-ink); border-radius: var(--radius); padding: .95rem 1.5rem; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, transform .15s; }
.btn:hover { background: #2b2b2b; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--sm { padding: .5rem .95rem; font-size: .875rem; }
.btn--ghost { background: transparent; color: var(--color-ink); }
.btn--ghost:hover { background: var(--color-ink); color: var(--color-paper); }
.btn--inverse { background: var(--color-paper); color: var(--color-ink); border-color: var(--color-paper); }
.btn--inverse:hover { background: #fff; }

/* Type ------------------------------------------------------------------- */
.eyebrow { display: flex; align-items: center; gap: .75rem; font-size: .8rem; font-weight: 550; letter-spacing: .18em; text-transform: uppercase; color: var(--color-grey-600); }
.eyebrow__rule { width: 2.5rem; height: 1px; background: currentColor; }
.eyebrow--inverse { color: var(--color-grey-inverse); }
.display { font-family: var(--font-display); font-weight: 400; font-size: clamp(3.4rem, 15vw, 10.5rem); line-height: .92; letter-spacing: -.035em; font-variation-settings: "opsz" 144; margin: 1.5rem 0 0; }
.lede { max-width: 34rem; margin-top: 1.75rem; font-size: clamp(1.05rem, 2.2vw, 1.25rem); line-height: 1.55; color: var(--color-ink); }
.lede--inverse { color: var(--color-paper); }
.h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.02; letter-spacing: -.02em; font-variation-settings: "opsz" 96; }
.h2--xl { font-size: clamp(2.6rem, 9vw, 6rem); margin-top: 1.25rem; }
.h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.15; letter-spacing: -.01em; font-variation-settings: "opsz" 36; }

/* Hero ------------------------------------------------------------------- */
#main { flex: 1; display: flex; }
.hero { position: relative; overflow: hidden; flex: 1; display: flex; align-items: center; padding: clamp(4rem, 12vw, 9rem) 0 clamp(4rem, 10vw, 7rem); }
.hero__inner { width: 100%; }
.hero__inner { position: relative; z-index: 1; }

/* DECORATIVE PLACEHOLDER visual: remove or replace with brand artwork */
.visual { position: absolute; inset: 0; color: var(--color-line-visual); pointer-events: none; -webkit-mask-image: linear-gradient(100deg, transparent 15%, #000 70%); mask-image: linear-gradient(100deg, transparent 15%, #000 70%); }
.visual svg { width: 100%; height: 100%; display: block; }
.thread { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 3.2s var(--ease) .3s forwards; }
.thread--2 { stroke-dasharray: 6 7; stroke-dashoffset: 0; animation: drift 24s linear infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drift { to { stroke-dashoffset: -260; } }
/* /DECORATIVE PLACEHOLDER */

/* Waitlist form ---------------------------------------------------------- */
.waitlist { max-width: 34rem; margin-top: 2.5rem; }
.waitlist__label { display: block; font-size: .875rem; font-weight: 550; margin-bottom: .5rem; }
.waitlist__row { display: flex; flex-direction: column; gap: .6rem; }
.waitlist input[type=email] { width: 100%; font: inherit; font-size: 1rem; color: var(--color-ink); background: #fff; border: 1px solid #8c8c8c; border-radius: var(--radius); padding: .95rem 1rem; transition: border-color .2s, box-shadow .2s; }
.waitlist input[type=email]::placeholder { color: #767676; }
.waitlist input[type=email]:focus { outline: none; border-color: var(--color-ink); box-shadow: 0 0 0 1px var(--color-ink); }
.waitlist__status { min-height: 1.5em; margin-top: .75rem; font-size: .95rem; font-weight: 500; }
.waitlist__privacy { font-size: .85rem; color: var(--color-grey-600); }
.waitlist--inverse .waitlist__label { color: var(--color-paper); }
.waitlist--inverse input[type=email] { background: transparent; color: var(--color-paper); border-color: #8c8c8c; }
.waitlist--inverse input[type=email]::placeholder { color: #9a9a9a; }
.waitlist--inverse input[type=email]:focus { border-color: var(--color-paper); box-shadow: 0 0 0 1px var(--color-paper); }
.waitlist--inverse .waitlist__privacy { color: var(--color-grey-inverse); }
.waitlist--inverse .waitlist__status { color: var(--color-paper); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Sections --------------------------------------------------------------- */
.section { padding: clamp(4.5rem, 11vw, 8rem) 0; }
.section--alt { background: var(--color-paper-2); }
.section__head { display: grid; gap: .75rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section__index { font-size: .8rem; font-weight: 550; letter-spacing: .18em; color: var(--color-grey-600); font-variant-numeric: tabular-nums; }

.cards { display: grid; gap: 1px; background: var(--color-grey-300); border: 1px solid var(--color-grey-300); }
.card { background: var(--color-paper); padding: 2rem 1.5rem 2.25rem; display: flex; flex-direction: column; gap: .9rem; transition: background-color .3s; }
.card:hover { background: #faf9f6; }
.card__num { font-family: var(--font-display); font-style: normal; color: var(--color-grey-600); font-size: 1rem; }
.card p:last-child { color: var(--color-grey-600); max-width: 28rem; }

.channels { border-top: 1px solid var(--color-grey-300); }
.channel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--color-grey-300); }
.channel__name { font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.6rem); line-height: 1.1; letter-spacing: -.015em; font-variation-settings: "opsz" 72; }
.tag { flex: none; font-size: .78rem; font-weight: 550; letter-spacing: .12em; text-transform: uppercase; color: var(--color-grey-600); border: 1px solid var(--color-grey-300); border-radius: 999px; padding: .4rem .8rem; }
.tag--link { color: var(--color-ink); border-color: var(--color-ink); text-decoration: none; transition: background-color .2s, color .2s; }
.tag--link:hover { background: var(--color-ink); color: var(--color-paper); }

.faq { border-top: 1px solid var(--color-grey-300); max-width: 52rem; }
.faq__item { border-bottom: 1px solid var(--color-grey-300); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 0; font-family: var(--font-display); font-size: clamp(1.2rem, 3vw, 1.6rem); line-height: 1.25; font-variation-settings: "opsz" 36; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: none; width: .8rem; height: .8rem; background: linear-gradient(currentColor, currentColor) center/100% 1px no-repeat, linear-gradient(currentColor, currentColor) center/1px 100% no-repeat; transition: transform .3s var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 1.5rem; max-width: 40rem; color: var(--color-grey-600); }
.faq__item a { color: var(--color-ink); }

.cta { background: var(--color-ink); color: var(--color-paper); padding: clamp(5rem, 13vw, 9rem) 0; }
.cta a { color: var(--color-paper); }

/* Footer ----------------------------------------------------------------- */
.footer { background: var(--color-ink); color: var(--color-grey-inverse); border-top: 1px solid #2e2e2e; padding: 2.5rem 0 max(2.5rem, env(safe-area-inset-bottom)); }
.footer__inner { display: grid; gap: 1rem; }
.footer__name { font-family: var(--font-display); color: var(--color-paper); font-size: 1.15rem; }
.footer__legal { font-size: .82rem; line-height: 1.6; max-width: 46rem; }

/* Motion: reveal on scroll (only when JS is running) --------------------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Larger screens --------------------------------------------------------- */
@media (min-width: 640px) {
  .waitlist__row { flex-direction: row; }
  .waitlist__row input { flex: 1; }
}
@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .cards--2 { grid-template-columns: repeat(2, 1fr); }
  .card { padding: 2.5rem 2rem 3rem; min-height: 19rem; }
  .card .h3 { margin-top: auto; }
  .section__head { grid-template-columns: 8rem 1fr; align-items: baseline; }
  .section__head--plain { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 14rem 1fr; align-items: baseline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .thread, .thread--2 { animation: none; stroke-dashoffset: 0; }
  * { transition-duration: .01ms !important; }
}
