:root {
  --ink: #1e1b16;
  --slate: #5c554a;
  --stone: #9a9082;
  --sand: #f3ede2;
  --cream: #fbf7f0;
  --coral: #ff5a4c;
  --coral-hover: #e63e30;
  --coral-soft: rgba(255, 90, 76, 0.12);
  --line: #e7dfd1;
  --line-strong: #d9cfbd;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

::selection {
  background: var(--coral);
  color: #fff;
}

a {
  color: var(--coral);
  text-decoration: none;
}

a:hover {
  color: var(--coral-hover);
}

/* ---------- ambient background ---------- */
.grid-fade,
.blob {
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.grid-fade {
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(30, 27, 22, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 27, 22, 0.045) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 78%);
}

.blob {
  filter: blur(90px);
  border-radius: 50%;
}

.blob-one {
  top: -140px;
  left: -120px;
  width: 380px;
  height: 380px;
  background: rgba(255, 90, 76, 0.18);
  animation: floatBlob 15s ease-in-out infinite;
}

.blob-two {
  top: 160px;
  right: -120px;
  width: 360px;
  height: 360px;
  background: rgba(233, 196, 106, 0.16);
  animation: floatBlob 19s ease-in-out infinite reverse;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 40px;
}

/* ---------- wordmark ---------- */
.wordmark {
  display: inline-flex;
  align-items: flex-end;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}

.wordmark:hover {
  color: var(--ink);
}

.wm-this {
  font-weight: 600;
  display: inline-block;
  transform: scaleX(0.94);
  transform-origin: left;
  letter-spacing: -0.045em;
  margin-left: 0.24em;
}

.wm-dot {
  display: inline-block;
  width: 0.13em;
  height: 0.13em;
  border-radius: 50%;
  background: var(--ink);
  margin-left: 0.05em;
  transform: translateY(-0.02em);
}

.wordmark-sm {
  font-size: 21px;
}

/* ---------- topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0 30px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.ghost-link {
  color: var(--slate);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 15px;
  transition: color 160ms ease, transform 160ms ease;
}

.ghost-link:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.nav-cta {
  background: var(--ink);
  color: var(--cream);
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 20px;
  border-radius: 999px;
  transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1), background 160ms ease;
}

.nav-cta:hover {
  color: var(--cream);
  background: #000;
  transform: translateY(-2px);
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
  gap: 48px;
  align-items: center;
  min-height: 80vh;
  padding: 20px 0 56px;
}

.hero-copy {
  max-width: 34rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--coral-hover);
  margin: 0;
}

.hero h1 {
  margin: 20px 0 0;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: clamp(3rem, 6.4vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

/* the choosing mark — icon-only lockup, reserved coral underline */
.mark-this {
  position: relative;
  display: inline-block;
}

.mark-word {
  display: inline-block;
  transform: scaleX(0.94);
  transform-origin: left;
  letter-spacing: -0.05em;
  color: var(--ink);
}

.mark-dot {
  display: inline-block;
  width: 0.13em;
  height: 0.13em;
  border-radius: 50%;
  background: var(--ink);
  margin-left: 0.02em;
  vertical-align: baseline;
}

.mark-underline {
  position: absolute;
  left: 2%;
  bottom: -0.02em;
  width: 80%;
  height: 0.17em;
  overflow: visible;
}

.mark-underline path {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
}

.mark-this.drawn .mark-underline path {
  animation: drawUnderline 620ms cubic-bezier(0.65, 0, 0.35, 1) 180ms forwards;
}

.lede {
  max-width: 30rem;
  margin: 24px 0 0;
  font-size: 1.15rem;
  line-height: 1.62;
  color: var(--slate);
}

.lede strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 16px;
  transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1),
    background 160ms ease, box-shadow 200ms ease, color 160ms ease;
}

.primary-button {
  color: #fff;
  background: var(--coral);
  box-shadow: 0 14px 30px -12px rgba(255, 90, 76, 0.7);
}

.primary-button:hover {
  color: #fff;
  background: var(--coral-hover);
  transform: translateY(-3px) rotate(-1deg);
  box-shadow: 0 20px 36px -12px rgba(255, 90, 76, 0.75);
}

.secondary-button {
  color: var(--ink);
  border: 1.5px solid var(--ink);
  background: transparent;
}

.secondary-button:hover {
  color: var(--ink);
  transform: translateY(-3px) rotate(1deg);
  background: var(--cream);
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-meta span {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--slate);
  font-family: "Space Mono", monospace;
  font-size: 12px;
  font-weight: 400;
}

/* ---------- hero stage ---------- */
.hero-stage {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scrap {
  position: absolute;
  width: 176px;
  padding: 15px 16px;
  border-radius: 20px;
  background: var(--cream);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -22px rgba(30, 27, 22, 0.4);
  transition: transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

.scrap:hover {
  transform: rotate(0deg) translateY(-4px) scale(1.02);
  z-index: 4;
}

.scrap p {
  margin: 10px 0 0;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
}

.scrap-tag {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(233, 196, 106, 0.22);
  color: #7a5714;
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scrap-one {
  top: 6px;
  left: 0;
  transform: rotate(-8deg);
  animation: drift 11s ease-in-out infinite;
}

.scrap-two {
  top: 70px;
  right: 6px;
  transform: rotate(7deg);
  animation: drift 13s ease-in-out infinite;
  animation-delay: -3s;
}

.scrap-three {
  bottom: 34px;
  left: 8px;
  transform: rotate(6deg);
  animation: drift 12s ease-in-out infinite;
  animation-delay: -6s;
}

/* chosen card — the commitment moment, dark with coral */
.chosen-card {
  position: relative;
  z-index: 3;
  width: min(320px, 84%);
  padding: 22px;
  border-radius: 26px;
  background: var(--ink);
  box-shadow: 0 34px 70px -30px rgba(30, 27, 22, 0.7);
  animation: cardFloat 7s ease-in-out infinite;
}

.chosen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chosen-label {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff9284;
}

.chosen-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(255, 90, 76, 0.6);
  animation: livePulse 2.4s ease-out infinite;
}

.chosen-card h2 {
  margin: 12px 0 0;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--cream);
  line-height: 1.05;
}

.chosen-thumb {
  margin-top: 14px;
  height: 78px;
  border-radius: 14px;
  background: repeating-linear-gradient(135deg, #3a352e 0 8px, #2a2622 8px 16px);
}

.chosen-steps {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step {
  position: relative;
  padding-left: 26px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13.5px;
  color: #c7c0b4;
}

.step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #4a453d;
}

.step.done {
  color: var(--stone);
  text-decoration: line-through;
}

.step.done::before {
  content: "✓";
  border-color: var(--coral);
  background: var(--coral);
  color: #fff;
  font-size: 10px;
  line-height: 14px;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
}

.chosen-foot {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chosen-count {
  font-family: "Space Mono", monospace;
  font-size: 10px;
  color: var(--stone);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chosen-go {
  background: var(--coral);
  color: #fff;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  margin: 8px 0 64px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  gap: 30px;
  width: max-content;
  color: var(--stone);
  font-family: "Space Mono", monospace;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: marquee 26s linear infinite;
}

.marquee-track span::after {
  content: "·";
  margin-left: 30px;
  color: var(--coral);
}

/* ---------- section heading ---------- */
.steps,
.proof,
.principles {
  padding-top: 20px;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading .eyebrow {
  margin-bottom: 14px;
}

.section-heading h2,
.story-panel h2,
.closing h2 {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

/* ---------- steps band (dark, playful) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  border-radius: 24px;
  padding: 30px 26px;
  background: var(--ink);
}

.step-card:nth-child(2) {
  transform: translateY(18px);
}

.step-num {
  display: inline-flex;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 40px;
  color: var(--coral);
  line-height: 1;
}

.step-card h3 {
  margin: 12px 0 0;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--cream);
}

.step-card p {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.56;
  color: #c7c0b4;
}

/* ---------- proof / principles cards ---------- */
.proof-grid,
.principles-grid {
  display: grid;
  gap: 18px;
}

.proof-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.principles-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proof-grid article,
.principles-grid article,
.story-card {
  border-radius: 22px;
  padding: 26px;
  background: var(--cream);
  border: 1px solid var(--line);
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 200ms ease;
}

.proof-grid article:hover,
.principles-grid article:hover,
.story-card:hover {
  transform: translateY(-5px);
  border-color: var(--coral);
}

.proof-grid h3,
.principles-grid h3,
.story-card h3 {
  margin: 0 0 12px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.18rem;
  line-height: 1.18;
}

.proof-grid p,
.principles-grid p,
.story-card p,
.story-panel p {
  margin: 0;
  color: var(--slate);
  line-height: 1.6;
}

/* ---------- split story ---------- */
.split-story {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: start;
  padding-top: 88px;
}

.story-panel {
  position: sticky;
  top: 30px;
}

.story-panel p {
  margin-top: 16px;
  font-size: 1.05rem;
}

.story-panel .eyebrow {
  margin-bottom: 14px;
}

.text-link {
  display: inline-flex;
  margin-top: 20px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 15px;
}

.story-stack {
  display: grid;
  gap: 16px;
}

.story-card:nth-child(2) {
  transform: translateX(28px);
}

.story-card:nth-child(3) {
  transform: translateX(10px);
}

/* ---------- proof / principles blocks ---------- */
.proof,
.principles {
  padding-top: 88px;
}

/* ---------- closing ---------- */
.closing {
  margin-top: 96px;
  padding: 56px 44px;
  border-radius: 30px;
  background: var(--cream);
  border: 1px solid var(--line);
  text-align: center;
}

.closing .eyebrow {
  margin-bottom: 14px;
}

.closing h2 {
  margin: 0 auto;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  max-width: 16ch;
}

.mark-this-lg .mark-underline {
  height: 0.14em;
  bottom: 0.02em;
}

.closing-lede {
  max-width: 40ch;
  margin: 22px auto 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--slate);
}

.closing-actions {
  justify-content: center;
  margin-top: 32px;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-family: "Space Mono", monospace;
  font-size: 12px;
  color: var(--slate);
}

.footer-links span {
  cursor: default;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 640ms ease, transform 640ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- keyframes ---------- */
@keyframes drawUnderline {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0) rotate(var(--tilt, 0deg));
  }
  50% {
    transform: translateY(-12px) rotate(calc(var(--tilt, 0deg) + 1.4deg));
  }
}

.scrap-one {
  --tilt: -8deg;
}
.scrap-two {
  --tilt: 7deg;
}
.scrap-three {
  --tilt: 6deg;
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 90, 76, 0.55);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(255, 90, 76, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 90, 76, 0);
  }
}

@keyframes floatBlob {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(26px, -20px, 0);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .mark-underline path {
    stroke-dashoffset: 0;
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero,
  .steps-grid,
  .proof-grid,
  .principles-grid,
  .split-story {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
  }
  .hero-stage {
    min-height: 480px;
    margin-top: 12px;
  }
  .step-card:nth-child(2) {
    transform: none;
  }
  .story-panel {
    position: static;
  }
  .story-card:nth-child(2),
  .story-card:nth-child(3) {
    transform: none;
  }
  .section-heading h2,
  .story-panel h2,
  .closing h2 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
  }
  .topbar {
    flex-wrap: wrap;
    gap: 14px;
  }
  .topnav {
    gap: 16px;
    flex-wrap: wrap;
  }
  .hero-stage {
    min-height: 440px;
  }
  .scrap {
    width: 150px;
  }
  .closing {
    padding: 40px 24px;
  }
  .proof-grid article,
  .principles-grid article,
  .story-card,
  .step-card {
    padding: 22px;
  }
}
