/* palette: bg=#000000 fg=#FFFFFF accent=#FF4A1C */
/* fonts: display="Space Mono" body="Space Grotesk" mono="Space Mono" */

:root {
  --bg: #000000;
  --bg-alt: #0A0A0A;
  --bg-elev: #111111;
  --fg: #FFFFFF;
  --fg-soft: #CFCFCF;
  --muted: #8C8C8C;
  --accent: #FF4A1C;
  --accent-deep: #D93A08;
  --border: rgba(255, 255, 255, 0.14);
  --border-soft: rgba(255, 255, 255, 0.08);
  --serif: "Space Mono", ui-monospace, monospace;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  line-height: 1.75;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; line-height: 1.08; }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 22px;
}
.eyebrow--accent { color: var(--accent); }

.section { padding: clamp(80px, 12vw, 160px) 0; }
.section--alt { background: var(--bg-alt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.01em;
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--fg); }
.btn--ghost:hover { background: #fff; color: #000; border-color: #fff; }
.btn--light { background: #fff; color: #000; border-color: #fff; }
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent);
  transition: gap 0.3s var(--ease);
}
.arrow-link:hover { gap: 14px; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header[data-scrolled="true"] {
  border-bottom-color: var(--border-soft);
  box-shadow: 0 8px 30px -10px rgba(0, 0, 0, 0.8);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 20px; letter-spacing: -0.01em; }
.brand__mark {
  width: 26px; height: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  flex-shrink: 0;
}
.brand__mark i { background: var(--accent); display: block; }
.brand__mark i:nth-child(2), .brand__mark i:nth-child(3) { background: #fff; }

.nav { display: none; gap: 30px; }
@media (min-width: 1024px) { .nav { display: flex; } }
.nav a {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--fg-soft);
  transition: color 0.25s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }

.header__cta { display: none; gap: 10px; }
@media (min-width: 1024px) { .header__cta { display: flex; } }

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center;
}
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle span { width: 22px; height: 2px; background: var(--fg); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 72px 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 32px 20px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu[data-open="true"] { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 28px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-menu .btn { margin-top: 20px; justify-content: center; }
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}
.hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
  width: 100%;
}
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero__content { max-width: 640px; padding: 120px 0 60px; }
@media (min-width: 1024px) { .hero__content { padding: 0; } }
.hero h1 {
  font-size: clamp(3.1rem, 9vw, 7rem);
  letter-spacing: -0.03em;
  margin: 0 0 30px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--fg-soft); margin: 0 0 20px; max-width: 46ch; }
.hero__sub { font-size: 1rem; color: var(--muted); margin: 0 0 36px; max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  display: none;
}
@media (min-width: 1024px) { .hero__visual { display: block; } }
.hero__visual svg { width: 100%; height: 100%; }
.node-pulse { animation: nodePulse 3.2s ease-in-out infinite; }
@keyframes nodePulse { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---------- Logo strip ---------- */
.trust {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.trust__label {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  padding: 28px 0 0;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--border-soft);
  margin-top: 28px;
}
@media (min-width: 768px) { .trust__grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .trust__grid { grid-template-columns: repeat(6, 1fr); } }
.trust__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 16px;
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border-right: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.trust__cell:hover { color: var(--fg); background: var(--bg-alt); }

/* ---------- Section heads ---------- */
.section-head { max-width: 760px; margin-bottom: 60px; }
.section-head h2 {
  font-size: clamp(2.3rem, 6vw, 4.6rem);
  letter-spacing: -0.02em;
}
.section-head p { color: var(--muted); margin-top: 22px; font-size: 1.05rem; max-width: 60ch; }

/* ---------- Feature / orange block ---------- */
.feature {
  display: grid;
  gap: 0;
  border: 1px solid var(--border-soft);
}
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; } }
.feature__side {
  position: relative;
  min-height: 320px;
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}
@media (min-width: 900px) { .feature__side { border-bottom: 0; border-right: 1px solid var(--border-soft); } }
.feature__side svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature__body { padding: clamp(32px, 5vw, 64px); }
.feature__body h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); letter-spacing: -0.02em; margin-bottom: 28px; }
.feature__block {
  background: var(--accent);
  color: #fff;
  padding: clamp(28px, 4vw, 44px);
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.28;
}

/* ---------- Stats band ---------- */
.stats {
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}
.stats__chevrons { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-soft);
}
@media (min-width: 900px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--bg);
  padding: clamp(40px, 6vw, 72px) 24px;
  text-align: center;
}
.stat__num { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--accent); letter-spacing: -0.02em; }
.stat__label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 14px; }

/* ---------- Cards grid ---------- */
.grid-cards {
  display: grid;
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg);
  padding: clamp(30px, 3.5vw, 46px);
  transition: background 0.35s var(--ease);
}
.card:hover { background: var(--bg-alt); }
.card__num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em; }
.card h3 { font-size: 1.5rem; margin: 20px 0 14px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 1rem; }
.card__meta { margin-top: 24px; }

/* ---------- Work / case cards with image ---------- */
.work-grid { display: grid; gap: 24px; }
@media (min-width: 768px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
.work {
  border: 1px solid var(--border-soft);
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.35s var(--ease);
}
.work:hover { border-color: var(--accent); }
.work__img { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--border-soft); }
.work__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3) contrast(1.05); transition: transform 0.8s var(--ease), filter 0.5s var(--ease); }
.work:hover .work__img img { transform: scale(1.05); filter: grayscale(0) contrast(1.1); }
.work__body { padding: 28px clamp(24px, 3vw, 36px) 32px; }
.work__tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); }
.work__body h3 { font-size: 1.45rem; margin: 14px 0 12px; }
.work__body p { color: var(--muted); font-size: 0.98rem; }

/* ---------- Manifesto ---------- */
.manifesto {
  background: var(--accent);
  color: #fff;
  text-align: center;
}
.manifesto__inner { max-width: 960px; margin: 0 auto; }
.manifesto p {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
}
.manifesto .eyebrow { color: rgba(255, 255, 255, 0.7); }
.manifesto__mark { font-family: var(--serif); font-size: 5rem; line-height: 0.6; display: block; margin-bottom: 10px; }

/* ---------- Community / list ---------- */
.list-rows { border-top: 1px solid var(--border-soft); }
.list-row {
  display: grid;
  gap: 8px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-soft);
  transition: padding-left 0.35s var(--ease), background 0.35s var(--ease);
}
@media (min-width: 768px) { .list-row { grid-template-columns: 120px 1fr auto; align-items: baseline; gap: 32px; } }
.list-row:hover { padding-left: 12px; }
.list-row__date { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.04em; }
.list-row__title { font-family: var(--serif); font-size: 1.35rem; }
.list-row__desc { color: var(--muted); font-size: 0.98rem; margin-top: 6px; }
.list-row__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 24px; }
@media (min-width: 768px) { .quotes { grid-template-columns: repeat(2, 1fr); } }
.quote {
  border: 1px solid var(--border-soft);
  padding: clamp(30px, 3.5vw, 44px);
  background: var(--bg-alt);
}
.quote p { font-size: 1.15rem; color: var(--fg-soft); line-height: 1.6; }
.quote__by { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.avatar {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 15px; color: #fff;
  flex-shrink: 0;
}
.quote__name { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; }
.quote__role { font-size: 12px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border-soft); }
.faq__item { border-bottom: 1px solid var(--border-soft); }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  text-align: left;
  padding: 28px 0;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
}
.faq__q span.icon { font-family: var(--mono); color: var(--accent); font-size: 1.5rem; transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq__item[data-open="true"] .icon { transform: rotate(45deg); }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq__a p { color: var(--muted); padding-bottom: 30px; font-size: 1.02rem; max-width: 70ch; }

/* ---------- CTA ---------- */
.cta { text-align: center; border-top: 1px solid var(--border-soft); }
.cta h2 { font-size: clamp(2.4rem, 7vw, 5rem); letter-spacing: -0.02em; max-width: 900px; margin: 0 auto 28px; }
.cta h2 em { font-style: normal; color: var(--accent); }
.cta p { color: var(--muted); max-width: 52ch; margin: 0 auto 40px; font-size: 1.08rem; }
.cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 72px; } }
.info-block { margin-bottom: 34px; }
.info-block__label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 10px; }
.info-block p { color: var(--fg-soft); font-size: 1.05rem; }
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1rem;
  transition: border-color 0.3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.form__consent { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }
.form__consent a { color: var(--accent); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: clamp(120px, 16vw, 200px) 0 clamp(60px, 8vw, 100px);
  border-bottom: 1px solid var(--border-soft);
}
.page-hero h1 { font-size: clamp(2.8rem, 8vw, 6rem); letter-spacing: -0.03em; max-width: 16ch; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 58ch; margin-top: 28px; }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.7rem; margin: 44px 0 16px; letter-spacing: -0.01em; }
.prose h3 { font-size: 1.2rem; margin: 28px 0 10px; font-family: var(--sans); font-weight: 600; }
.prose p, .prose li { color: var(--fg-soft); font-size: 1.02rem; margin-bottom: 14px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--accent); }
.prose .updated { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border-soft); padding: 72px 0 40px; }
.footer__top { display: grid; gap: 44px; }
@media (min-width: 768px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer__brand .brand { margin-bottom: 20px; }
.footer__brand p { color: var(--muted); font-size: 0.95rem; max-width: 34ch; }
.footer__col h4 { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin-bottom: 18px; font-weight: 400; }
.footer__col a { display: block; color: var(--fg-soft); font-size: 0.95rem; padding: 7px 0; transition: color 0.25s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
}
@media (min-width: 768px) { .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.001ms !important; }
}

/* ---------- Cookie popup ---------- */
.cookie-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-end; justify-content: flex-start; padding: 24px; background: rgba(0, 0, 0, 0.4); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card { background: var(--bg-elev); border: 1px solid var(--border); padding: 32px 36px; max-width: 480px; border-radius: 2px; }
.cookie-popup__label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent); margin-bottom: 12px; }
.cookie-popup__card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.cookie-popup__card p { font-size: 0.92rem; color: var(--muted); line-height: 1.65; }
.cookie-popup__card p a { color: var(--accent); }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button { padding: 11px 24px; border: 1px solid var(--border); cursor: pointer; font-family: var(--mono); font-size: 13px; transition: background 0.25s, color 0.25s; }
.cookie-popup__actions button:hover { border-color: var(--fg); }
.cookie-popup__actions button:last-child { background: var(--accent); color: #fff; border-color: var(--accent); }
.cookie-popup__actions button:last-child:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* ---------- Misc ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.divider-line { border: 0; border-top: 1px solid var(--border-soft); margin: 0; }
