/* =========================================================
   B&W — Maison BW · Coming Soon
   Editorial black & white design system
   ========================================================= */

:root {
  --black: #0a0a0a;
  --near-black: #141414;
  --white: #ffffff;
  --grey-050: #f7f7f6;
  --grey-100: #ececea;
  --grey-200: #dcdcd9;
  --grey-300: #c4c4c0;
  --grey-500: #8d8d88;
  --grey-700: #545450;
  --grey-900: #1e1e1c;

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --wrap: min(1120px, 92vw);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.7s;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, blockquote { margin: 0; }
button { font: inherit; }
ul { margin: 0; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Focus & a11y ---------- */
:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--black);
  color: var(--white);
  padding: 0.9rem 1.4rem;
  z-index: 1000;
  font-size: 0.9rem;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: var(--wrap);
  margin-inline: auto;
}
.section {
  padding-block: clamp(4.5rem, 9vw, 8rem);
  position: relative;
}
.divider {
  height: 1px;
  background: repeating-linear-gradient(
    to right,
    var(--grey-300) 0 6px,
    transparent 6px 14px
  );
  width: var(--wrap);
  margin: 0 auto;
}

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey-700);
  margin-bottom: 1.1rem;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--black);
}
.section-copy {
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  color: var(--grey-700);
  max-width: 46ch;
  line-height: 1.75;
}
.section-copy.lede {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  color: var(--near-black);
  max-width: 52ch;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: calc(var(--d, 0) * 0.08s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--grey-200);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--black);
  line-height: 0;
}
.brand-logo {
  display: block;
  width: clamp(8.75rem, 13vw, 10.5rem);
  height: auto;
}
.wordmark.small .brand-logo { width: 8.75rem; }
.header-tag {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-700);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--white);
}
.hero-motif {
  position: absolute;
  top: 50%;
  right: -8vw;
  transform: translateY(-50%);
  width: min(58vw, 640px);
  height: min(58vw, 640px);
  color: var(--grey-200);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 6rem 4rem;
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 1.6rem;
}
.hero-headline span {
  display: block;
}
.hero-copy {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--grey-700);
  max-width: 40ch;
  margin-bottom: 2.4rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.scroll-cue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 46px;
  background: var(--grey-300);
}
.scroll-cue span {
  position: absolute;
  top: 0;
  left: -1.5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--black);
  animation: cueMove 2.2s var(--ease) infinite;
}
@keyframes cueMove {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 42px; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue span { animation: none; top: 20px; opacity: 1; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid var(--black);
  background: var(--black);
  color: var(--white);
  padding: 0.95rem 1.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform 0.25s var(--ease);
  position: relative;
}
.btn:hover { background: var(--near-black); }
.btn:active { transform: scale(0.98); }
.btn-block { width: 100%; }
.link-arrow {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--black);
  border-bottom: 1px solid var(--grey-300);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.link-arrow:hover { border-color: var(--black); }
.link-arrow::after { content: ' →'; }

.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: var(--white);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.waitlist-form.is-loading .btn-spinner { display: inline-block; }
.waitlist-form.is-loading .btn-label { opacity: 0.7; }
.waitlist-form.is-loading .btn { cursor: progress; }
@media (prefers-reduced-motion: reduce) {
  .btn-spinner { animation: none; }
}

/* ---------- Waitlist ---------- */
.waitlist-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.waitlist-form {
  background: var(--grey-050);
  border: 1px solid var(--grey-200);
  padding: clamp(1.75rem, 3vw, 2.75rem);
}
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
  color: var(--near-black);
}
.field input {
  width: 100%;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 1px solid var(--grey-300);
  background: var(--white);
  color: var(--black);
  transition: border-color 0.25s var(--ease);
}
.field input::placeholder { color: var(--grey-500); }
.field input:focus { border-color: var(--black); }
.field input[aria-invalid="true"] { border-color: var(--black); }

.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.consent {
  font-size: 0.8rem;
  color: var(--grey-700);
  margin-top: 1rem;
  line-height: 1.6;
}

.form-message {
  min-height: 1.4em;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.form-message[data-state="success"] { color: var(--black); }
.form-message[data-state="duplicate"] { color: var(--grey-700); }
.form-message[data-state="error"] { color: var(--black); }
.form-message[data-state="success"]::before { content: '✓ '; }
.form-message[data-state="error"]::before { content: '! '; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: clamp(2.5rem, 6vw, 6rem);
}
.collab-note {
  margin: 1.75rem 0 0;
  padding-left: 1.4rem;
  border-left: 1px solid var(--grey-300);
  max-width: 52ch;
}
.collab-note p {
  font-size: 0.95rem;
  color: var(--grey-700);
  font-style: italic;
  line-height: 1.75;
}

/* ---------- Legacy ---------- */
.legacy-section { text-align: left; }
.legacy-names {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(0.6rem, 2vw, 1.4rem);
  margin: 2.2rem 0 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--grey-200);
}
.legacy-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 4.2vw, 3rem);
  color: var(--black);
}
.legacy-separator {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--grey-500);
}
.legacy-copy { max-width: 60ch; margin-bottom: 2rem; }
.rights-note {
  font-size: 0.9rem;
  color: var(--grey-700);
  max-width: 56ch;
  line-height: 1.7;
}
.rights-note a {
  color: var(--black);
  text-decoration-color: var(--grey-300);
}

/* ---------- Final conversion ---------- */
.final-section {
  background: var(--black);
  color: var(--white);
}
.final-section .eyebrow { color: var(--grey-300); }
.final-section .h2 { color: var(--white); }
.final-section .section-copy { color: var(--grey-300); }
.slogan-statement {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.6rem, 4.5vw, 3.2rem);
  text-align: center;
  color: var(--white);
  margin-bottom: clamp(3rem, 7vw, 5rem);
  letter-spacing: -0.01em;
}
.final-section .waitlist-form {
  background: var(--near-black);
  border-color: var(--grey-900);
}
.final-section .field label { color: var(--white); }
.final-section .field input {
  background: var(--black);
  border-color: var(--grey-700);
  color: var(--white);
}
.final-section .field input::placeholder { color: var(--grey-500); }
.final-section .field input:focus { border-color: var(--white); }
.final-section .btn {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.final-section .btn:hover { background: var(--grey-200); }
.final-section .consent { color: var(--grey-500); }
.final-section .form-message[data-state="success"],
.final-section .form-message[data-state="error"] { color: var(--white); }
.final-section .form-message[data-state="duplicate"] { color: var(--grey-300); }
.final-section .btn-spinner {
  border: 2px solid rgba(0,0,0,0.25);
  border-top-color: var(--black);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--grey-200);
  padding-block: 3rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.footer-slogan {
  font-size: 0.85rem;
  color: var(--grey-700);
}
.footer-meta {
  text-align: right;
  max-width: 34ch;
}
.rights-notice {
  font-size: 0.82rem;
  color: var(--grey-700);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.rights-notice a { color: var(--near-black); }
.footer-links {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}
.footer-links a { text-decoration: none; border-bottom: 1px solid var(--grey-300); }
.footer-links a:hover { border-color: var(--black); }
.footer-links .dot { color: var(--grey-500); margin: 0 0.5rem; }
.social-links {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
}
.social-link {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--black);
  border: 1px solid var(--grey-300);
  border-radius: 50%;
  transition: color 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.social-link:hover {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
  transform: translateY(-2px);
}
.social-link svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}
.copyright {
  font-size: 0.76rem;
  color: var(--grey-700);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .waitlist-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }
  .hero { min-height: auto; padding-block: 2rem 1rem; }
  .hero-motif { width: 80vw; height: 80vw; right: -20vw; opacity: 0.6; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
  .social-links { justify-content: flex-start; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .legacy-names { flex-direction: column; gap: 0.2rem; }
  .legacy-separator { display: none; }
}

/* ---------- Legal pages (privacy.html) ---------- */
.legal { padding-block: clamp(3rem, 6vw, 5rem); }
.legal h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 2rem;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  margin: 2.4rem 0 0.8rem;
}
.legal p, .legal li {
  color: var(--grey-700);
  line-height: 1.75;
  max-width: 62ch;
}
.legal ul { margin: 0.6rem 0 0; padding-left: 1.2rem; }
.legal a { color: var(--black); }
.back-link {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px solid var(--grey-300);
}
.updated { font-size: 0.82rem; color: var(--grey-700); margin-top: 3rem; }
