/* Cutman — shared styles. Dark, restrained, six colors only. */

:root {
  --bg: #0A0A0A;
  --surface: #171717;
  --red: #7A1F1F;
  --amber: #E8923C;
  --text: #F2EFE9;
  --muted: #8A8580;

  --max: 1080px;
  --gutter: clamp(20px, 5vw, 40px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@media (min-width: 760px) {
  html, body { font-size: 17px; }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection { background: var(--red); color: var(--text); }

/* Links: left-to-right draw-in underline on hover (200ms). */
a { color: inherit; text-decoration: none; }
a.link, .prose a, .faq-a-inner a {
  position: relative;
  display: inline;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 200ms var(--ease-out);
  padding-bottom: 2px;
}
a.link:hover, .prose a:hover, .faq-a-inner a:hover {
  background-size: 100% 1px;
  text-decoration: none;
}

/* Focus rings — always visible, never just outline:none. */
a:focus-visible, button:focus-visible, input:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 3px;
}

img, svg { display: block; max-width: 100%; }

/* ---------- Type roles ---------- */

.anton {
  font-family: 'Anton', 'Oswald', Impact, sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.fraunces {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-variation-settings: "SOFT" 30, "opsz" 144, "wght" 500;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ---------- Wordmark ---------- */

.wordmark {
  font-family: 'Anton', 'Oswald', Impact, sans-serif;
  text-transform: uppercase;
  font-size: 26px;
  letter-spacing: 0.02em;
  line-height: 1;
  display: inline-block;
  user-select: none;
}
.wordmark .cut { color: var(--red); }
.wordmark .man { color: var(--text); }
.wordmark:hover { text-decoration: none; }

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 26px);
  font-size: 15px;
  color: var(--muted);
}
.nav-links a:not(.btn) { color: var(--muted); transition: color 160ms var(--ease-out); }
.nav-links a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav-dot { color: rgba(138, 133, 128, 0.5); }

@media (max-width: 520px) {
  .nav-links .nav-dot,
  .nav-links a.hide-narrow { display: none; }
  .nav-inner { padding: 14px var(--gutter); }
  .wordmark { font-size: 22px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  padding: 13px 20px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 140ms var(--ease-out), background 140ms var(--ease-out);
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.btn {
  transition: filter 200ms var(--ease-out), background 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.btn-amber {
  background: var(--amber);
  color: #0A0A0A;
}
.btn-amber:hover { filter: brightness(1.12); transform: translateY(-1px); text-decoration: none; }
.btn-amber:active { filter: brightness(0.96); transform: translateY(0); }

.btn-amber.is-active {
  outline: 1px solid var(--amber);
  outline-offset: 2px;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(242, 239, 233, 0.2);
}
.btn-ghost:hover { background: rgba(242, 239, 233, 0.05); transform: translateY(-1px); text-decoration: none; }
.btn-ghost:active { transform: translateY(0); }

/* ---------- Form ---------- */

.email-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 480px;
}
.email-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  background: var(--surface);
  color: var(--text);
  border: 1px solid rgba(242, 239, 233, 0.08);
  border-radius: 4px;
  padding: 13px 14px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1;
  outline: none;
  transition: border-color 140ms var(--ease-out);
}
.email-form input[type="email"]::placeholder { color: var(--muted); }
.email-form input[type="email"]:focus {
  border-color: rgba(232, 146, 60, 0.5);
}
.email-form .btn { flex: 0 0 auto; }

.form-msg {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  min-height: 1.2em;
}

/* ---------- Layout ---------- */

main { flex: 1 1 auto; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: 84px 0; }
@media (max-width: 720px) {
  section { padding: 64px 0; }
}

.section-eyebrow {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}

.section-title {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 30, "opsz" 144, "wght" 500;
  font-weight: 500;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.15;
  margin: 0 0 36px;
  letter-spacing: -0.015em;
  max-width: 22ch;
}

.section-title-loud {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-size: clamp(28px, 4.5vw, 34px);
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0 0 36px;
}

.kicker { color: var(--muted); }

/* feature row with red bar */
.feature {
  position: relative;
  padding-left: 18px;
  margin-bottom: 36px;
}
.feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--red);
}
.feature h3 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.025em;
  margin: 0 0 10px;
  line-height: 1.15;
}
.feature p {
  margin: 0;
  color: var(--text);
  max-width: 56ch;
}

/* two-col fights */
.fights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 760px) {
  .fights { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.fight h3 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 30, "opsz" 144, "wght" 500;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.fight p { margin: 0; max-width: 50ch; }

/* About */
.about p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 22px;
  max-width: 60ch;
}
.about p:last-child { margin-bottom: 0; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 1px; background: rgba(255,255,255,0.04); border-radius: 6px; overflow: hidden; }
.faq-item {
  background: var(--surface);
  border: 0;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 17px;
  padding: 22px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  line-height: 1.4;
}
.faq-q:hover { color: var(--text); }
.faq-q .marker {
  color: var(--muted);
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  transition: transform 200ms var(--ease-out), color 160ms var(--ease-out);
  flex: 0 0 auto;
}
.faq-item.open .faq-q .marker { transform: rotate(45deg); color: var(--text); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 280ms var(--ease-out);
}
.faq-a-inner {
  padding: 0 24px 24px;
  color: var(--muted);
  max-width: 65ch;
}
.faq-a-inner p { margin: 0 0 10px; }
.faq-a-inner p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

footer {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 64px 0 40px;
  color: var(--muted);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
  }
}
.footer-col h4 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 500;
}
.footer-col a {
  display: inline-block;
  color: var(--muted);
  margin-right: 4px;
  transition: color 160ms var(--ease-out);
}
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-col p { margin: 0 0 10px; max-width: 36ch; }
.footer-tag { color: var(--text); margin-bottom: 18px; font-size: 16px; }

.footer-form .email-form { max-width: 380px; }

.crisis {
  margin: 56px 0 28px;
  padding: 22px 24px;
  border: 1px solid var(--amber);
  border-radius: 6px;
  background: rgba(232, 146, 60, 0.04);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  max-width: 760px;
}
.crisis h4 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 8px;
}
.crisis p { margin: 0; color: var(--text); }

.copyright {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Fade in on scroll (progressive enhancement) ----------
   Defaults: sections are visible. Only when the inline <head> bootstrap
   script confirms JS is alive does it add .js-reveal to <html>, which
   then activates the opacity:0 starting state. If JS fails for any
   reason, the page stays readable. */

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(4px);
  transition:
    opacity 900ms var(--ease-out),
    transform 900ms var(--ease-out),
    filter 900ms var(--ease-out);
  will-change: opacity, transform, filter;
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* Section-title rises on its own beat inside a revealed section. */
.js-reveal .reveal .section-eyebrow,
.js-reveal .reveal .section-title,
.js-reveal .reveal .section-title-loud {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.js-reveal .reveal.is-visible .section-eyebrow { opacity: 1; transform: none; transition-delay: 60ms; }
.js-reveal .reveal.is-visible .section-title,
.js-reveal .reveal.is-visible .section-title-loud { opacity: 1; transform: none; transition-delay: 180ms; }

/* Children inside a revealed section come in slightly delayed (set by JS). */
.js-reveal .reveal .feature,
.js-reveal .reveal .fight,
.js-reveal .reveal .faq-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.js-reveal .reveal.is-visible .feature,
.js-reveal .reveal.is-visible .fight,
.js-reveal .reveal.is-visible .faq-item {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal .section-eyebrow,
  .js-reveal .reveal .section-title,
  .js-reveal .reveal .section-title-loud,
  .js-reveal .reveal .feature,
  .js-reveal .reveal .fight,
  .js-reveal .reveal .faq-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .js-reveal .reveal { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- Hero (homepage) ---------- */

.hero {
  padding: clamp(64px, 12vw, 140px) 0 clamp(56px, 10vw, 110px);
  min-height: 78vh;
  display: flex;
  align-items: center;
}
.hero-inner { width: 100%; }

.hero-headline {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  /* At 375px wide ⇒ ~34px and the headline wraps cleanly to two lines
     before the red period — the period never breaks off on its own. */
  font-size: clamp(32px, 8.5vw, 96px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  margin: 0 0 28px;
  color: var(--text);
  min-height: 1.05em;
  /* Critical: don't let the trailing period wrap to its own line. */
  overflow-wrap: break-word;
  word-break: normal;
}
.hero-headline .typed,
.hero-headline .period {
  white-space: normal;
}

.hero-headline .typed { white-space: pre; }
.hero-headline .cursor {
  display: inline-block;
  width: 0.06em;
  background: var(--text);
  margin-left: 0.04em;
  vertical-align: baseline;
  height: 0.85em;
  transform: translateY(0.06em);
  animation: blink 960ms steps(2, start) infinite;
}
.hero-headline .cursor.gone { display: none; }

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.hero-headline .period {
  display: inline-block;
  color: var(--red);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 350ms var(--ease-out), transform 350ms var(--ease-out);
  margin-left: 0.01em;
}
.hero-headline .period.in {
  opacity: 1;
  transform: translateY(0);
}

.hero-sub {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  color: var(--text);
  max-width: 56ch;
  margin: 0 0 32px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.hero-form-wrap {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}
.hero-sub.in, .hero-form-wrap.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-headline .period { opacity: 1; transform: none; }
  .hero-sub, .hero-form-wrap { opacity: 1; transform: none; }
  .hero-headline .cursor { animation: none; opacity: 0; }
}

/* ---------- Notify page ---------- */

.notify-blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 760px) {
  .notify-blocks { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* ---------- Privacy page ---------- */

.prose {
  max-width: 720px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
}
.prose h1 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(36px, 6vw, 56px);
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0 0 8px;
}
.prose .effective {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 40px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.prose h2 {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 30, "opsz" 144, "wght" 500;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
}
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 22px; }
.prose ul li { margin-bottom: 6px; }
.prose strong { color: var(--text); font-weight: 500; }
.prose .callout {
  border: 1px solid rgba(242, 239, 233, 0.12);
  background: var(--surface);
  padding: 20px 22px;
  border-radius: 6px;
  margin: 28px 0 32px;
  color: var(--muted);
}
.prose .callout strong { color: var(--text); }
.prose a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(232,146,60,0.5); }

/* ---------- Thanks page ---------- */

.thanks-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px var(--gutter);
  text-align: center;
}
.thanks-wrap .mark { margin-bottom: 36px; }
.thanks-wrap h1 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: 0.01em;
  line-height: 1;
  margin: 0 0 18px;
}
.thanks-wrap h1 .dot { color: var(--red); }
.thanks-wrap p {
  font-family: 'Fraunces', serif;
  font-variation-settings: "SOFT" 30, "opsz" 144, "wght" 500;
  font-weight: 500;
  font-size: 22px;
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 30ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}
.thanks-wrap a.back {
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid rgba(138, 133, 128, 0.4);
  padding-bottom: 4px;
  transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.thanks-wrap a.back:hover {
  color: var(--text);
  border-color: var(--text);
  text-decoration: none;
}
