/* ============================================================
   YardSignListing — estate ink / warm ivory / champagne brass
   ============================================================ */

:root {
  /* primitives */
  --ink:        oklch(21% 0.03 175);
  --ink-2:      oklch(26% 0.028 175);   /* raised surface on ink */
  --ink-3:      oklch(32% 0.026 175);
  --paper:      oklch(96.5% 0.012 95);
  --paper-2:    oklch(93.5% 0.014 95);
  --brass:      oklch(70% 0.095 82);
  --brass-soft: oklch(70% 0.095 82 / 0.45);
  --brass-deep: oklch(50% 0.09 82);     /* small accent text on paper */
  --ivory-text: oklch(93% 0.015 95);
  --ivory-dim:  oklch(78% 0.02 100);
  --ink-text:   oklch(24% 0.028 175);
  --ink-dim:    oklch(42% 0.024 170);

  /* semantic */
  --bg: var(--paper);
  --text: var(--ink-text);
  --text-dim: var(--ink-dim);
  --rule: oklch(24% 0.028 175 / 0.14);

  /* type */
  --serif: "Bodoni Moda", "Didot", "Bodoni MT", serif;
  --sans: "Hanken Grotesk", -apple-system, "Segoe UI", sans-serif;

  /* space (4pt base) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-6: 1.5rem;  --s-8: 2rem;   --s-12: 3rem;   --s-16: 4rem;
  --s-24: 6rem;   --s-32: 8rem;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --max: 74rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
a { color: inherit; }
::selection { background: var(--brass-soft); }

/* ---------- shared ---------- */

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin-bottom: var(--s-6);
}
.eyebrow-onink { color: var(--brass); }

.measure { max-width: 42rem; }

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-8);
  text-wrap: balance;
}

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 0.875rem 1.75rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.4s var(--ease-expo), background-color 0.25s ease-out,
              color 0.25s ease-out, border-color 0.25s ease-out;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ink);
  color: var(--ivory-text);
}
.btn-primary:hover { background: oklch(28% 0.032 175); }

.btn-ghost {
  border-color: var(--rule);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--brass-deep); color: var(--brass-deep); }

.btn-nav {
  border-color: oklch(24% 0.028 175 / 0.35);
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}
.btn-nav:hover { background: var(--ink); color: var(--ivory-text); border-color: var(--ink); }

/* ---------- reveal motion ---------- */

/* reveals only arm when JS confirms it's running — no-JS visitors see everything */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: var(--s-8);
  padding: var(--s-4) clamp(1.25rem, 4vw, 3.5rem);
  background: oklch(96.5% 0.012 95 / 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--text);
}
.mark { width: 30px; height: 30px; flex: none; }
.mark .mark-horizon { stroke: var(--brass-deep); }
.wordmark-text {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.wordmark-text em { font-style: italic; color: var(--brass-deep); }

.nav-links {
  display: flex;
  gap: var(--s-8);
  margin-left: auto;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.2s ease-out;
}
.nav-links a:hover { color: var(--text); }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav { justify-content: space-between; gap: var(--s-3); }
}
@media (max-width: 480px) {
  .wordmark-text { font-size: 1.05rem; }
  .mark { width: 26px; height: 26px; }
  .btn-nav { padding: 0.45rem 0.8rem; font-size: 0.8rem; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: calc(100svh - 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(4rem, 10vh, 7rem) clamp(1.25rem, 4vw, 3.5rem) 0;
  overflow: hidden;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 1.4rem + 5.4vw, 5.9rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  max-width: 18ch;
  text-wrap: balance;
}
.h1-a, .h1-b { display: block; }
.h1-b { font-style: italic; color: var(--brass-deep); }

.hero-sub {
  max-width: 44rem;
  margin-top: var(--s-8);
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-dim);
}

.hero-cta {
  display: flex;
  gap: var(--s-4);
  margin-top: var(--s-12);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-note {
  margin-top: var(--s-6);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.panorama {
  width: 100%;
  max-width: 96rem;
  margin-top: auto;
  padding-top: var(--s-12);
}
.panorama svg { display: block; width: 100%; height: auto; }

.panorama .draw {
  stroke: var(--brass-deep);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-line 2.4s var(--ease-expo) forwards;
}
.panorama .d-far     { opacity: 0.38; animation-delay: 0.2s; }
.panorama .d-farsnow { opacity: 0.38; animation-delay: 1.2s; animation-duration: 1.6s; }
.panorama .d-mid     { opacity: 0.6;  animation-delay: 0.5s; }
.panorama .d-midsnow { opacity: 0.6;  animation-delay: 1.5s; animation-duration: 1.6s; }
.panorama .d-ground  { opacity: 0.85; animation-delay: 0.8s; }
.panorama .d-sign path, .panorama .d-sign rect {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-line 1.4s var(--ease-expo) forwards;
  animation-delay: 1.6s;
}
.panorama .d-sign { opacity: 1; }
.panorama .d-sun {
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  opacity: 0;
  animation: fade-in 1.8s ease-out forwards;
  animation-delay: 1.9s;
}

@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 0.5; } }

@media (prefers-reduced-motion: reduce) {
  .panorama .draw, .panorama .d-sign path, .panorama .d-sign rect {
    animation: none;
    stroke-dashoffset: 0;
  }
  .panorama .d-sun { animation: none; opacity: 0.5; }
}

/* ---------- problem ---------- */

.problem {
  padding: var(--s-32) clamp(1.25rem, 4vw, 3.5rem);
  display: flex;
  justify-content: center;
}
.problem p:not(.eyebrow) {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-dim);
}

/* ---------- how it works ---------- */

.how {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--s-16) clamp(1.25rem, 4vw, 3.5rem) var(--s-32);
}
.how-head { max-width: 42rem; }

.movements {
  list-style: none;
  margin: var(--s-16) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
}

.movement {
  display: grid;
  grid-template-columns: minmax(5rem, 10rem) minmax(0, 34rem);
  gap: var(--s-8);
  align-items: start;
  padding-top: var(--s-8);
  border-top: 1px solid var(--rule);
}
.movement:nth-child(2) { margin-left: clamp(0rem, 8vw, 9rem); }
.movement:nth-child(3) { margin-left: clamp(0rem, 16vw, 18rem); }

.movement-num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 2rem + 1.6vw, 3.6rem);
  font-style: italic;
  line-height: 1;
  color: var(--brass-deep);
}
.movement-body h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: var(--s-3);
}
.movement-body p { color: var(--text-dim); line-height: 1.7; }

@media (max-width: 640px) {
  .movement, .movement:nth-child(2), .movement:nth-child(3) {
    margin-left: 0;
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }
}

/* ---------- the work (ink section) ---------- */

.work {
  background: var(--ink);
  color: var(--ivory-text);
  padding: var(--s-32) clamp(1.25rem, 4vw, 3.5rem);
}

.work-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
}

.work-copy h2 { color: var(--ivory-text); }
.work-copy p:not(.eyebrow):not(.sample-flag) {
  color: var(--ivory-dim);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 36rem;
}

.sample-flag {
  display: inline-block;
  margin-top: var(--s-8);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid oklch(70% 0.095 82 / 0.4);
  border-radius: 2px;
  padding: 0.375rem 0.75rem;
}

/* the post mock */

.post {
  margin: 0;
  background: var(--ink-2);
  border: 1px solid oklch(93% 0.015 95 / 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
}
.post-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink-3);
  border: 1px solid var(--brass-soft);
  color: var(--brass);
  font-family: var(--serif);
  font-size: 0.9375rem;
  display: grid;
  place-items: center;
}
.post-id { display: flex; flex-direction: column; line-height: 1.3; }
.post-id strong { font-size: 0.9rem; font-weight: 600; }
.post-id small { font-size: 0.78rem; color: var(--ivory-dim); }

.post-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  border-block: 1px solid oklch(93% 0.015 95 / 0.08);
}
.post-carousel::-webkit-scrollbar { display: none; }
.post-carousel:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }

.frame {
  flex: 0 0 100%;
  scroll-snap-align: center;
  height: 100%;
}
.frame .fg { stroke: var(--brass); opacity: 0.9; }
.frame .bg { stroke: var(--brass); opacity: 0.4; }

.post-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0 0.25rem;
}
.dot {
  width: 7px; height: 7px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: oklch(93% 0.015 95 / 0.25);
  cursor: pointer;
  position: relative;
  transition: background-color 0.25s ease-out;
}
.dot::before { content: ''; position: absolute; inset: -8px; }
.dot.is-active { background: var(--brass); }

.post-caption {
  padding: 0.5rem 1rem 1.125rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ivory-dim);
}
.post-caption strong { color: var(--ivory-text); font-weight: 600; }
.post-meta {
  display: block;
  margin-top: 0.625rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: oklch(78% 0.02 100 / 0.6);
}

/* ---------- name story ---------- */

.name-story {
  padding: var(--s-32) clamp(1.25rem, 4vw, 3.5rem);
  display: flex;
  justify-content: center;
}
.name-story blockquote {
  margin: 0;
  max-width: 46rem;
  text-align: center;
}
.name-story p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
  line-height: 1.35;
  text-wrap: balance;
}
.name-story cite {
  display: block;
  margin-top: var(--s-8);
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

/* ---------- founding ---------- */

.founding {
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  padding: var(--s-32) clamp(1.25rem, 4vw, 3.5rem);
}
.founding-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 900px) {
  .founding-grid { grid-template-columns: 1fr; }
}
.founding-copy p:not(.eyebrow) {
  color: var(--text-dim);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 34rem;
}

.waitlist { display: flex; flex-direction: column; gap: var(--s-6); }

.field { display: flex; flex-direction: column; gap: 0.375rem; flex: 1; }
.field-row { display: flex; gap: var(--s-4); flex-wrap: wrap; }

.field label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}
.field .hint { font-weight: 500; color: var(--text-dim); letter-spacing: 0.08em; }

.field input, .field select {
  font: inherit;
  color: var(--text);
  background: var(--paper);
  border: 1px solid oklch(24% 0.028 175 / 0.25);
  border-radius: 2px;
  padding: 0.75rem 0.875rem;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}
.field input::placeholder { color: oklch(45% 0.02 170); }
.field input:focus-visible, .field select:focus-visible {
  outline: none;
  border-color: var(--brass-deep);
  box-shadow: 0 0 0 3px oklch(70% 0.095 82 / 0.25);
}
.field input[aria-invalid="true"] { border-color: oklch(52% 0.19 25); }

.field-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-error {
  font-size: 0.9375rem;
  color: oklch(45% 0.18 25);
}

.btn-submit { align-self: flex-start; }
.btn-submit[disabled] { opacity: 0.6; cursor: wait; }

.form-note {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.waitlist-success[hidden] { display: none; }

.waitlist-success {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-4);
  padding: var(--s-8);
  border: 1px solid var(--brass-soft);
  border-radius: 4px;
  background: var(--paper);
}
@media (max-width: 900px) { .waitlist-success { grid-column: 1; } }
.success-mark { width: 44px; height: 44px; color: var(--brass-deep); }
.waitlist-success h3 { font-family: var(--serif); font-size: 1.5rem; }
.waitlist-success p { color: var(--text-dim); line-height: 1.6; }

/* ---------- footer ---------- */

.footer {
  background: var(--ink);
  color: var(--ivory-dim);
  padding: var(--s-16) clamp(1.25rem, 4vw, 3.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-6);
  text-align: center;
}
.wordmark-footer { color: var(--ivory-text); }
.wordmark-footer .mark .mark-horizon { stroke: var(--brass); }
.wordmark-footer .wordmark-text em { color: var(--brass); }

.footer-mission {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--ivory-dim);
  max-width: 34rem;
}
.footer-legal {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: oklch(78% 0.02 100 / 0.55);
}
