@import url("/fonts/fonts.css");

/* ---------------------------------------------------------------- tokens */
:root {
  --paper:      #FAFAF7;
  --surface:    #F1F1EC;
  --ink:        #101014;
  --ink-2:      #3A3A44;
  --ink-3:      #6B6B78;
  --accent:     #4D3DF7;
  --highlight:  #B8F227;
  --hairline:   rgba(16, 16, 20, 0.10);

  /* Her Next Move product language */
  --hnm-stage:  #0C0B0A;
  --hnm-ink:    #F2EFEA;
  --hnm-ink-2:  rgba(242, 239, 234, 0.72);
  --hnm-ink-3:  rgba(242, 239, 234, 0.62);
  --hnm-line:   rgba(242, 239, 234, 0.14);

  --display: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  --body:    Inter, system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;
  --serif:   "Bodoni Moda", Didot, Georgia, serif;

  --instant: 100ms cubic-bezier(0.2, 0, 0.4, 1);
  --quick:   220ms cubic-bezier(0.2, 0, 0.2, 1);
  --smooth:  400ms cubic-bezier(0.16, 1, 0.3, 1);
  --slow:    800ms cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: 24px;
  --max:    1280px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: rgba(77, 61, 247, 0.16); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: var(--gutter); top: -64px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 20px;
  border-radius: 999px; font: 600 0.875rem var(--body); transition: top var(--instant);
}
.skip:focus { top: 16px; text-decoration: none; }

/* ------------------------------------------------------------ typography */
.eyebrow {
  margin: 0; font: 400 0.8125rem/1.4 var(--mono);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.hero-title {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: min(clamp(3.5rem, 9.5vw, 9rem), 13.4vw);
  line-height: 0.92; letter-spacing: -0.03em; color: var(--ink);
  font-variation-settings: "opsz" 48, "wdth" 100, "wght" 760;
}
.hero-title span { display: block; }
.display {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1;
  letter-spacing: -0.025em; color: var(--ink);
}
.h2 {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.05;
  letter-spacing: -0.02em; color: var(--ink);
}
.lead {
  font: 400 clamp(1.25rem, 1.8vw, 1.5rem)/1.5 var(--body);
  color: var(--ink-2); max-width: 34em;
}
.prose { margin: 0; max-width: 56ch; }

/* --------------------------------------------------------- marker accent */
.mark { position: relative; display: inline-block; }
.mark i {
  position: absolute; inset: 0.04em -0.1em 0 0; background: var(--highlight);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 300ms cubic-bezier(0.2, 0, 0.2, 1) 150ms;
}
.mark b { position: relative; font-weight: inherit; color: var(--ink); }

/* -------------------------------------------------------------- controls */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #fff; font: 600 1.0625rem var(--body);
  border-radius: 999px; padding: 16px 32px;
  transition: background-color var(--instant), transform var(--instant);
}
.btn:hover { background: #3A2BD4; text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn--light { background: var(--hnm-ink); color: var(--hnm-stage); }
.btn--light:hover { background: #fff; }
.btn--ghost {
  background: none; color: var(--ink); border: 1px solid rgba(16,16,20,0.18);
  font: 600 0.9375rem var(--body); padding: 10px 20px; border-radius: 999px;
}
.btn--ghost:hover { background: var(--surface); text-decoration: none; }

/* ------------------------------------------------------------ structure */
header.top {
  max-width: var(--max); margin: 0 auto; padding: 24px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 1.375rem;
  letter-spacing: -0.02em; color: var(--ink);
  font-variation-settings: "opsz" 24, "wdth" 100, "wght" 700;
  transition: font-variation-settings var(--quick);
}
.wordmark:hover { font-variation-settings: "opsz" 24, "wdth" 88, "wght" 800; text-decoration: none; }
nav a { font: 400 0.9375rem var(--body); color: var(--ink-2); }

section { padding-top: clamp(80px, 10vw, 128px); }
.hero {
  position: relative; min-height: 86vh; display: flex; flex-direction: column;
  justify-content: center; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(640px at 72% 18%, rgba(77, 61, 247, 0.06), transparent 70%);
}

.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list > li { border-top: 1px solid var(--hairline); }

.facts {
  list-style: none; margin: 0; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 32px 24px;
}
.facts li {
  border-top: 1px solid var(--hairline); padding-top: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.facts strong {
  font-family: var(--display); font-weight: 700; font-size: 1.375rem;
  letter-spacing: -0.015em; line-height: 1.15; color: var(--ink);
}

.manifesto { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: clamp(40px, 5vw, 56px); }
.manifesto li {
  border-top: 1px solid var(--hairline); padding-top: 32px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px 64px; align-items: start;
}
.manifesto h2 {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.75rem, 3.2vw, 3rem); line-height: 1.1;
  letter-spacing: -0.02em; color: var(--ink);
}

.spec { margin: 0; max-width: 880px; display: flex; flex-direction: column; }
.spec > div {
  border-top: 1px solid var(--hairline); padding: 16px 0;
  display: grid; grid-template-columns: minmax(104px, 200px) 1fr; gap: 16px;
}
.spec > div:last-child { border-bottom: 1px solid var(--hairline); }
.spec dt { font: 400 0.8125rem/1.7 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.spec dd { margin: 0; font: 400 0.9375rem/1.7 var(--mono); color: var(--ink); }

.mail {
  align-self: flex-start; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 3.5rem); letter-spacing: -0.015em;
  line-height: 1.15; color: var(--accent); overflow-wrap: anywhere;
  text-decoration: underline 2px; text-underline-offset: 6px;
}

/* ------------------------------------------- the Her Next Move room (6.6) */
.room {
  margin-top: clamp(80px, 10vw, 128px); background-color: var(--hnm-stage);
  transition: background-color var(--smooth);
}
.room .inner {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 10vw, 128px) var(--gutter);
  transition: opacity var(--smooth);
}
.room, .room h1, .room h2, .room h3 { color: var(--hnm-ink); }
.room p, .room dd { color: var(--hnm-ink-2); }
.room .eyebrow, .room figcaption { color: var(--hnm-ink-3); }
.room .serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.room h2.serif { font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1.02; margin: 0; }
.room h3.serif { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; margin: 0; }
.room .rule-list > li { border-top-color: var(--hnm-line); }
.room .steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.room .steps li {
  border-top: 1px solid var(--hnm-line); padding: 24px 0;
  display: grid; grid-template-columns: 56px 1fr; gap: 16px;
}
.room .steps li:last-child { border-bottom: 1px solid var(--hnm-line); }
.room .steps h3 { margin: 0; font: 600 1.25rem/1.3 var(--body); }
.room .steps span { font: 400 0.8125rem/1.7 var(--mono); letter-spacing: 0.08em; color: var(--hnm-ink-3); }
.room .num { font: 400 0.8125rem/1.7 var(--mono); letter-spacing: 0.08em; color: var(--hnm-ink-3); }

.refusals { list-style: none; margin: clamp(32px,4vw,48px) 0 0; padding: 0; display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }
.refusals li {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 12px 64px; align-items: baseline;
}
.refusals .word {
  position: relative; display: inline-block; justify-self: start;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem); line-height: 1.05; color: var(--hnm-ink);
}
.refusals .word i {
  position: absolute; left: -0.08em; right: -0.08em; top: 54%; height: 1px;
  background: rgba(242, 239, 234, 0.9); transform: scaleX(0);
  transform-origin: left center; transition: transform var(--smooth);
}

.shot {
  margin: 0; justify-self: center; display: flex; flex-direction: column; gap: 16px;
  will-change: transform;
}
.shot .frame {
  width: min(340px, 78vw); aspect-ratio: 900 / 2000; border-radius: 12px;
  border: 1px solid rgba(242, 239, 234, 0.16); overflow: hidden;
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
figcaption { font: 400 0.8125rem/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }

/* --------------------------------------------------------------- footer */
.footmark { max-width: var(--max); margin: 0 auto; padding: clamp(48px,7vw,96px) var(--gutter) 8px; overflow: hidden; }
.footmark p {
  margin: 0; font-family: var(--display); font-weight: 700;
  font-size: min(12.8vw, 10.5rem); line-height: 0.9; letter-spacing: -0.03em;
  color: var(--ink); white-space: nowrap;
  font-variation-settings: "opsz" 96, "wdth" 75, "wght" 300;
}
footer.site { border-top: 1px solid var(--hairline); }
footer.site .wrap {
  padding-top: 32px; padding-bottom: 32px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
}
footer.site nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }

/* -------------------------------------------------------- article pages */
.doc { max-width: 72ch; margin: 0 auto; padding: 0 var(--gutter); }
.doc h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.015em; color: var(--ink); margin: 48px 0 16px; }
.doc p { margin: 0 0 16px; }
.doc ul { margin: 0 0 16px; padding-left: 1.2em; }

/* ---------------------------------------------------------------- motion
   Everything below is additive. No rule here may be the only reason a piece
   of content is visible: without CSS, without JS, or without scroll-timeline
   support, the page reads in full. That is why the reveals live inside
   @supports and the marker/strike fills default to their finished state. */
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.06); } }
.breathe { animation: breathe 14s ease-in-out infinite alternate; }

@keyframes reveal-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes wipe-in   { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hero-in   { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes room-in   { from { opacity: 0; } to { opacity: 1; } }

/* The marker and the strike are drawn finished; the animation only replays
   them on scroll where the browser can. */
.mark i, .refusals .word i { transform: scaleX(1); }

@media (prefers-reduced-motion: no-preference) {
  [data-hero-line] { animation: hero-in 800ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  [data-hero-line]:nth-of-type(1) { animation-delay: 0ms; }
  .hero-title span:nth-child(1) { animation-delay: 80ms; }
  .hero-title span:nth-child(2) { animation-delay: 160ms; }
  .hero-title span:nth-child(3) { animation-delay: 240ms; }
  .hero .lead { animation-delay: 320ms; }
  .hero .lead + div { animation-delay: 400ms; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-reveal] {
      animation: reveal-in 220ms cubic-bezier(0.2, 0, 0.2, 1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
    .mark i {
      animation: wipe-in 300ms cubic-bezier(0.2, 0, 0.2, 1) both;
      animation-timeline: view();
      animation-range: entry 25% entry 70%;
    }
    .refusals .word i {
      animation: wipe-in 400ms cubic-bezier(0.16, 1, 0.3, 1) both;
      animation-timeline: view();
      animation-range: entry 30% entry 80%;
    }
    .refusals li:nth-child(2) .word i { animation-range: entry 35% entry 85%; }
    .refusals li:nth-child(3) .word i { animation-range: entry 40% entry 90%; }
    .refusals li:nth-child(4) .word i { animation-range: entry 45% entry 95%; }
    .room .inner {
      animation: room-in 400ms cubic-bezier(0.16, 1, 0.3, 1) both;
      animation-timeline: view();
      animation-range: entry 0% entry 25%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .mark i, .refusals .word i { transform: scaleX(1) !important; }
  .shot { transform: none !important; }
}

@media (max-width: 640px) {
  .facts { gap: 24px 16px; }
  footer.site .wrap { flex-direction: column; align-items: flex-start; }
}
