/* Media Warp — site styles
   Tokens: near-monochrome + one warm signal accent. Light/dark via [data-theme].
   No inline styles anywhere (CSP: style-src 'self'). */

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/pxiTypc9vsFDm051Uf6KVwgkfoSxQ0GsQv8ToedPibnr0SZe1ZuWi3g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/pxiTypc9vsFDm051Uf6KVwgkfoSxQ0GsQv8ToedPibnr0SZe1ZuWi3g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/fonts/pxiTypc9vsFDm051Uf6KVwgkfoSxQ0GsQv8ToedPibnr0SZe1ZuWi3g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/V8mDoQDjQSkFtoMM3T6r8E7mPbF4C_k3HqU.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/V8mDoQDjQSkFtoMM3T6r8E7mPbF4C_k3HqU.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/i7dPIFZifjKcF5UAWdDRYEF8RXi4EwQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #FAFAF7;
  --bg-2: #F0EEE7;
  --surface: #FFFFFF;
  --ink: #16150F;
  --ink-2: #5F5E56;
  --line: #E3E1D9;
  --line-strong: #C9C6BB;
  --accent: #C2410C;
  --accent-soft: rgba(194, 65, 12, 0.09);
  --accent-ink: #FFFFFF;
  --nav-h: 68px;
  --font-display: "Space Grotesk", "Instrument Sans", sans-serif;
  --font-body: "Instrument Sans", sans-serif;
  --font-mono: "Space Mono", monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.4, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0C0C0E;
  --bg-2: #131316;
  --surface: #161619;
  --ink: #EDECE6;
  --ink-2: #A3A29B;
  --line: #26262B;
  --line-strong: #3A3A41;
  --accent: #FF5C1F;
  --accent-soft: rgba(255, 92, 31, 0.12);
  --accent-ink: #0C0C0E;
  color-scheme: dark;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.35s ease, color 0.35s ease;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: min(1080px, 100% - 48px);
  margin-inline: auto;
}

[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }

.skip {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }

h1 { font-size: clamp(2.9rem, 8.5vw, 6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.35rem; }

.lede {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--ink-2);
  max-width: 34em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s var(--ease-out), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.arrow { transition: transform 0.2s var(--ease-out); }
.btn:hover .arrow, a:hover .arrow { transform: translateX(4px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.mark { width: 30px; height: 30px; flex: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 10px 14px;
  min-height: 44px;
  box-sizing: border-box;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  color: var(--ink-2);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--accent-soft); }

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s ease, transform 0.16s var(--ease-out);
}
.theme-toggle:hover { border-color: var(--ink); transform: translateY(-1px); }
.theme-toggle svg { width: 19px; height: 19px; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
.icon-sun { display: none; }

@media (max-width: 720px) {
  .nav-links .hide-m { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(56px, 12vh, 120px)) 0 0;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 { max-width: 11em; }
.hero h1 .own {
  position: relative;
  white-space: nowrap;
}
.hero h1 .own::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.04em;
  height: 0.09em;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: draw-underline 0.9s var(--ease-out) 0.7s forwards;
}
@keyframes draw-underline { to { transform: scaleX(1); } }
.hero .lede { margin-top: 28px; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}
.hero-meta {
  margin-top: 26px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.signal {
  position: relative;
  z-index: 1;
  margin-top: clamp(30px, 6vh, 64px);
  height: clamp(140px, 24vh, 230px);
  width: 100%;
}
.signal canvas { width: 100%; height: 100%; }

/* load-in */
.rise {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.8s var(--ease-out) forwards;
}
.rise.d1 { animation-delay: 0.08s; }
.rise.d2 { animation-delay: 0.18s; }
.rise.d3 { animation-delay: 0.28s; }
.rise.d4 { animation-delay: 0.38s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 12vh, 130px) 0; }
.section-head { margin-bottom: clamp(36px, 6vh, 60px); }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head p { margin-top: 18px; }

/* ---------- Manifesto ---------- */
.manifesto p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.28;
  letter-spacing: -0.015em;
  max-width: 24em;
}
.manifesto p + p { margin-top: 1.4em; }
.manifesto .hl { color: var(--accent); font-style: normal; }
.manifesto .dim { color: var(--ink-2); }

/* ---------- Principles (editorial rows, not cards) ---------- */
.principles { list-style: none; border-bottom: 1px solid var(--line); }
.principle {
  display: grid;
  grid-template-columns: 110px 1fr 1.4fr;
  gap: 18px 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  transition: background-color 0.25s ease;
}
.principle:hover { background: var(--accent-soft); }
.principle .num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  padding-top: 8px;
}
.principle h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.principle p { color: var(--ink-2); max-width: 36em; align-self: center; }
@media (max-width: 760px) {
  .principle { grid-template-columns: 1fr; gap: 10px; padding: 30px 0; }
  .principle .num { padding-top: 0; }
}

/* ---------- The deal ---------- */
.deal { background: var(--bg-2); border-block: 1px solid var(--line); }
.deal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 8px;
}
.deal-col { padding: 36px 40px; }
.deal-col + .deal-col { border-left: 1px solid var(--line); }
.deal-col .tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.deal-col.bad .tag { color: var(--ink-2); }
.deal-col.good .tag { color: var(--accent); }
.deal-col p {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.deal-col.bad p { color: var(--ink-2); }
.deal-col.bad .strike { text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.deal-col .small { margin-top: 14px; font-size: 15px; color: var(--ink-2); font-family: var(--font-body); }
@media (max-width: 700px) {
  .deal-grid { grid-template-columns: 1fr; }
  .deal-col + .deal-col { border-left: 0; border-top: 1px solid var(--line); }
  .deal-col { padding: 28px 4px; }
}

/* ---------- Contact ---------- */
.contact-mail {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 5.5vw, 3.6rem);
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  margin-top: 10px;
}
.contact-mail::after {
  content: "";
  position: absolute;
  left: 0; bottom: -0.06em;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.contact-mail:hover::after { transform: scaleX(1); }
.contact-mail:hover { color: var(--accent); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  background: var(--bg);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
.foot-brand p { margin-top: 14px; color: var(--ink-2); font-size: 15px; max-width: 26em; }
.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 16px;
  font-weight: 400;
}
.foot-col ul { list-style: none; display: grid; gap: 10px; }
.foot-col a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  display: inline-block;
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.foot-col a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.foot-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.foot-bottom .live { color: var(--accent); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Legal pages ---------- */
.legal { padding-top: calc(var(--nav-h) + clamp(40px, 8vh, 80px)); }
.legal .doc { max-width: 46em; padding-bottom: clamp(72px, 12vh, 120px); }
.legal .doc-head { margin-bottom: 48px; }
.legal .doc-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.legal .doc-head .meta {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.legal h2 {
  font-size: 1.45rem;
  margin: 2.4em 0 0.7em;
  letter-spacing: -0.01em;
}
.legal h2 .no {
  font-family: var(--font-mono);
  font-size: 0.72em;
  color: var(--accent);
  margin-right: 0.6em;
  font-weight: 400;
}
.legal p { margin: 0.9em 0; color: var(--ink); }
.legal p.sub { color: var(--ink-2); }
.legal ul { margin: 0.9em 0 0.9em 1.2em; display: grid; gap: 0.45em; }
.legal li::marker { color: var(--accent); }
.legal a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.legal .callout {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 1.6em 0;
  background: var(--accent-soft);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.45;
}

/* ---------- Support / FAQ ---------- */
.faq { max-width: 46em; margin-top: 8px; }
.faq details {
  border-top: 1px solid var(--line);
  padding: 6px 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--accent);
  flex: none;
  transition: transform 0.25s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 4px 20px; color: var(--ink-2); max-width: 40em; }

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--rd, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }
.rd1 { --rd: 0.08s; }
.rd2 { --rd: 0.16s; }

/* ---------- No-JS fallback: everything visible without JavaScript ---------- */
.no-js [data-reveal], .no-js .rise { opacity: 1 !important; transform: none !important; animation: none !important; }
.no-js .hero h1 .own::after { transform: scaleX(1) !important; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .rise { opacity: 1; transform: none; animation: none; }
  .hero h1 .own::after { transform: scaleX(1); animation: none; }
}
