/* ───────────────────────────────────────────────────────────
   DESIGN TOKENS
   ─────────────────────────────────────────────────────────── */
:root {
  --bg:          #F9F8F4;
  --surface:     #F4EFE6;
  --ink:         #181919;
  --ink-soft:    #1A1A1A;
  --navy:        #1B2A41;
  --navy-deep:   #1F2A3C;
  --navy-cta:    #1E3766;
  --clay:        #8A7E71;
  --gold:        #B8915A;
  --gold-soft:   #B89968;
  --gold-line:   #D8C5A0;
  --cream:       #F5F1EA;
  --input-text:  #3C3833;

  /* Fluid type — base mobile to large desktop */
  --fs-h1:       clamp(2.75rem, 5.5vw + 1rem, 6rem);     /* 44 → 96 */
  --fs-h2:       clamp(2.25rem, 3vw + 1rem, 3.5rem);     /* 36 → 56 */
  --fs-quote:    clamp(1.375rem, 1.5vw + 0.75rem, 2.0625rem); /* 22 → 33 */
  --fs-lede:     clamp(1.0625rem, 0.25vw + 1rem, 1.1875rem);   /* 17 → 19 */
  --fs-body:     clamp(1rem, 0.25vw + 0.875rem, 1.125rem);     /* 16 → 18 */

  /* Content + spacing tokens (Figma intent: 1280 content, 1440 wrap, 320 outer at 1920) */
  --content:     80rem;                          /* 1280px cap */
  --gutter:      clamp(1.5rem, 8vw, 15rem);      /* 24 → 240 (outer page gutter, capped) */
  --container:   min(100%, var(--content));      /* content width inside section */

  /* Section rhythm */
  --section-y:   clamp(4rem, 6vw + 2rem, 7rem);  /* 64 → 112 */
}

/* ───────────────────────────────────────────────────────────
   RESET + BASE
   ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ───────────────────────────────────────────────────────────
   LAYOUT UTILITIES (single source of truth)
   ─────────────────────────────────────────────────────────── */
.section {
  padding-block: var(--section-y);
  padding-inline: var(--gutter);
}
.container {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
  /* Decorative marquee continues — slow, non-flashing, pausable on hover. */
}

/* ───────────────────────────────────────────────────────────
   HERO
   ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  background: var(--bg);
}

.hero__bg {
  position: relative;
  inset: auto;
  width: 100%;
  height: clamp(20rem, 60vw, 30rem); /* 320 → 480 stacked image at narrow */
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero__container {
  padding-block: clamp(2rem, 6vw, 6rem);
  padding-inline: var(--gutter);
  display: flex;
  justify-content: flex-start;
  align-self: start;
}

@media (min-width: 48em) {
  .hero { min-height: clamp(36rem, 50vw + 12rem, 50rem); /* 576 → 800 */ }
  .hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    height: 100%;
  }
  .hero__bg img { object-position: 30% center; }
  .hero__container { align-self: end; padding-block: clamp(2.5rem, 8vw, 6rem); }
  .hero__h1 em::after { content: "."; } /* Desktop keeps the period */
}

.hero__container > .container {
  display: flex;
  justify-content: flex-start;
}

.hero__copy {
  width: 100%;
  max-width: 36rem; /* ~580px */
}

.hero__h1 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-size: var(--fs-h1);
  line-height: 1;
  letter-spacing: -0.014em;
  color: var(--ink);
  margin-block-end: 1.25rem;
  text-wrap: balance;
}
.hero__h1 em { font-style: italic; }

.hero__sub {
  font-size: var(--fs-lede);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  margin-block-end: 0.75rem;
}

.hero__support {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--clay);
  max-width: 30ch;
  margin-block-end: 1.75rem;
}

@media (min-width: 48em) {
  .hero { align-items: center; }
  .hero__container { align-self: center; }
  .hero__container > .container { justify-content: flex-end; }
}

/* ───────────────────────────────────────────────────────────
   CTA (shared)
   ─────────────────────────────────────────────────────────── */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 2rem;
  background: var(--navy-cta);
  color: var(--cream);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--navy-cta);
  transition: background-color .9s cubic-bezier(0.83, 0, 0.17, 1);
}
.cta:hover { background: #18305C; }
.cta:active { transform: translateY(1px); }

.cta__arrow {
  position: relative;
  display: inline-block;
  width: 1.125rem;
  height: 1px;
  background: currentColor;
  transition: transform 1.1s cubic-bezier(0.32, 0.72, 0, 1);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}
.cta:hover .cta__arrow { transform: translate3d(8px, 0, 0); }
.cta__arrow::after {
  content: "";
  position: absolute;
  inset-inline-end: -1px;
  inset-block-start: -5px;
  width: 0.625rem;
  height: 0.625rem;
  border-block-start: 1px solid currentColor;
  border-inline-end: 1px solid currentColor;
  transform: rotate(45deg);
}

.hero__benefit {
  margin-block-start: 1rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--clay);
}

/* ───────────────────────────────────────────────────────────
   CREDENTIALS MARQUEE (auto-scroll)
   ─────────────────────────────────────────────────────────── */
.credentials {
  background: var(--bg);
  border-block: 1px solid rgb(184 145 90 / 0.6);
  overflow: hidden;
  padding-block: 1.25rem;
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee {
  display: flex;
  overflow: hidden;
  width: 100%;
}
.marquee:hover .marquee__list { animation-play-state: paused; }

.marquee__list {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1.375rem;
  padding-inline-end: 1.375rem;
  white-space: nowrap;
  min-width: max-content;
  animation: marquee-scroll 52s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
}

.marquee__item {
  font-size: 0.71875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-soft);
}
.marquee__dot {
  color: var(--gold);
  font-weight: 500;
  font-size: 0.71875rem;
}

@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-100%, 0, 0); }
}

/* ───────────────────────────────────────────────────────────
   FOUNDER
   ─────────────────────────────────────────────────────────── */
.founder {
  background: linear-gradient(to bottom, var(--surface) 0%, var(--bg) 100%);
  padding-block: var(--section-y);
  padding-inline: var(--gutter);
}

.founder__inner {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 64em) {
  .founder__inner {
    grid-template-columns: minmax(0, 9fr) minmax(0, 14fr);
    gap: clamp(2rem, 6vw, 7.5rem);
  }
}

.kicker {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
  margin-block-end: 1.375rem;
}

.founder__h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.008em;
  color: var(--ink);
  margin-block-end: clamp(2rem, 3vw, 2.75rem);
  text-wrap: balance;
}
.founder__h2 em { font-style: italic; }

.founder__body p {
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  margin-block-end: 1.375rem;
  max-width: 60ch;
}
.founder__body .founder__lead {
  font-size: clamp(1.125rem, 0.5vw + 1rem, 1.375rem); /* 18 → 22 */
  line-height: 1.4;
}

.pull-quote {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-quote);
  line-height: 1.4;
  letter-spacing: -0.009em;
  color: var(--navy-deep);
  margin-block-start: 2rem;
  margin-block-end: 0.75rem;
}

.figcaption {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-block-end: 2.5rem;
}

.divider {
  height: 1px;
  background: var(--gold-line);
  margin-block: 0.75rem 1.75rem;
  border: 0;
}

.founder__anchors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 48em) {
  .founder__anchors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

.founder__anchor {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
@media (min-width: 48em) {
  .founder__anchor { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
}

.founder__anchor-icon {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--clay);
  flex-shrink: 0;
}
.founder__anchor-icon img,
.founder__anchor-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.anchor-label {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: balance;
}

.pending-flag {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  opacity: 0.55;
}

.founder__media {
  width: 100%;
  max-width: 28rem;
  aspect-ratio: 449 / 690;
  border-radius: 50%;
  overflow: hidden;
  margin: 0;
  align-self: center;
  justify-self: center;
}
.founder__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ───────────────────────────────────────────────────────────
   INTEREST LIST FORM
   ─────────────────────────────────────────────────────────── */
.signup {
  background: var(--bg);
  padding-block: var(--section-y);
  padding-inline: var(--gutter);
}

.signup__wrap {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
}

.signup__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 80em) {
  .signup__inner {
    grid-template-columns: minmax(0, 30rem) minmax(0, 45rem); /* 480 + 720 */
    gap: clamp(2rem, 4vw, 5rem);
  }
}

.signup__intro { max-width: 30rem; }

.signup__h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.008em;
  color: var(--ink);
  margin-block-end: 1rem;
  text-wrap: balance;
}
.signup__h2 em { font-style: italic; }

.signup__lede {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: clamp(1.125rem, 0.5vw + 1rem, 1.375rem); /* 18 → 22 */
  line-height: 1.35;
  color: var(--ink);
  margin-block-end: 0;
  max-width: 30rem;
}

.signup__card {
  width: 100%;
  background: var(--navy);
  color: #fff;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 3rem) clamp(2rem, 4vw, 3rem);
}

.form-grid { display: grid; gap: 1.25rem; }
.form-row  { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 40em) {
  .form-row { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}

.field { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.field-input, .field-select, .field-textarea { min-width: 0; }

.field-label {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgb(255 255 255 / 0.82);
}

.field-input,
.field-select,
.field-textarea {
  height: 3.25rem;
  padding-inline: 0.875rem;
  background: #fff;
  color: var(--input-text);
  border: 1px solid var(--navy);
  font-size: 0.9375rem;
  appearance: none;
  border-radius: 0;
  transition: box-shadow .15s ease;
}
.field-textarea {
  height: auto;
  min-height: 7rem;
  padding-block: 0.875rem;
  line-height: 1.45;
  resize: vertical;
}
.field-input::placeholder,
.field-textarea::placeholder { color: rgb(60 56 51 / 0.5); }
.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--gold-soft);
}

.field-select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23181919' stroke-width='1.5' d='M1 1.5l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-inline-end: 2.5rem;
}
.field-select:invalid { color: rgb(60 56 51 / 0.5); }

.field-hint {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: rgb(255 255 255 / 0.72);
}

.cta-primary {
  width: 100%;
  height: 3.375rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--surface);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-block-start: 0.5rem;
  transition: background-color .2s ease;
}
.cta-primary:hover:not(:disabled) { background: var(--cream); }
.cta-primary:disabled {
  cursor: default;
  background: var(--gold-soft);
  color: var(--navy);
  border-color: var(--gold-soft);
}

.signup__caption {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  margin-block-start: 1.375rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgb(255 255 255 / 0.86);
  line-height: 1.6;
  cursor: pointer;
}
.signup__caption input[type="checkbox"] {
  accent-color: var(--gold-soft);
  margin-block-start: 2px;
  flex-shrink: 0;
}

.signup__footnote {
  width: 100%;
  margin-block-start: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--input-text);
}
@media (min-width: 80em) {
  .signup__footnote {
    width: 45rem;
    margin-inline-start: auto;
  }
}

/* ───────────────────────────────────────────────────────────
   FOOTER
   ─────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-block-start: 1px solid var(--gold-line);
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3.5rem);
  padding-inline: var(--gutter);
}

.footer-grid {
  width: 100%;
  max-width: var(--content);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 36em) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (min-width: 64em) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: clamp(2rem, 3vw, 3rem);
  }
}

.footer-brand {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--navy);
  margin-block-end: 0.25rem;
}

.footer-line {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--navy);
}

.footer-head {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  margin-block-end: 0.875rem;
}

.footer-list li {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--navy);
  padding-block: 0.25rem;
}
.footer-list a { transition: color .15s ease; }
.footer-list a:hover {
  color: var(--navy-cta);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ───────────────────────────────────────────────────────────
   MOBILE HERO (Figma Frame 22 / node 54:150)
   Below 48em (~768px). Desktop layout & typography unaffected.
   ─────────────────────────────────────────────────────────── */
@media (max-width: 47.99em) {
  /* Photo full-bleed behind, copy overlays on top with transparent bg */
  .hero { min-height: 632px; }
  .hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    height: 100%;
    width: 100%;
    aspect-ratio: auto;
  }
  .hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .hero__container {
    position: relative;
    z-index: 1;
    background: transparent;
    align-self: start;
    padding-block-start: clamp(2rem, 6vw, 4rem);
  }

  .hero__copy { width: 100%; text-align: center; }

  .hero__h1 {
    font-size: 61.365px;
    line-height: 1;
    letter-spacing: -0.859px;
    text-align: center;
  }
  .hero__sub {
    font-size: 12.145px;
    line-height: 19.432px;
    text-align: center;
    margin-block-end: 0.5rem;
  }
  .hero__support {
    font-size: 10.867px;
    line-height: 17.387px;
    text-align: center;
    max-width: none;
    margin-block-end: 1rem;
  }
  .cta {
    gap: 0.625rem;
    font-size: 10.228px;
    line-height: 14.382px;
    letter-spacing: 0.384px;
    padding: 0.875rem 1.5rem; /* 14px / 24px — proportional to small text */
  }
  .cta__arrow { width: 0.72rem; }
  .cta__arrow::after { width: 0.4rem; height: 0.4rem; top: -3px; }
  .hero__benefit {
    font-size: 8.31px;
    line-height: 13.296px;
    text-align: center;
    margin-block-start: 0.75rem;
  }

  .credentials { mask-image: none; }

  .marquee {
    width: 100%;
    animation: none;
    justify-content: center;
  }
  .marquee__list {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: center;
    gap: 0.625rem;
    padding-inline: 1.25rem;
    white-space: normal;
    width: 100%;
    animation: none;
  }
  .marquee__list[aria-hidden="true"] { display: none; }
  .marquee__item {
    font-size: 0.625rem;
    letter-spacing: 0.14em;
    text-align: center;
  }
  .marquee__dot { display: none; }
}
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-message {
  margin: 0;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

.form-message--success {
  background: #e8efe2;
  color: #244426;
}

.form-message--error {
  background: #f7e6df;
  color: #7b2f22;
}
