/* ═══════════════════════════════════════════════
   Within Digital & AI Agency — Design System
   Brand: Obsidian + Cherry + Jost
   ═══════════════════════════════════════════════ */

/* ─── Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

/* ─── Tokens ─── */
:root {
  --ink:       #F5F5F3;
  --ink-dim:   rgba(245,245,243,0.55);
  --ink-muted: rgba(245,245,243,0.35);
  --ink-faint: rgba(245,245,243,0.12);

  --red:       #EE2427;
  --red-dark:  #CA2125;
  --red-glow:  rgba(238,36,39,0.35);

  --obsidian:  #1C1D1D;
  --surface:   #141414;
  --elevated:  #1E1F1F;

  --saffron:   #E89005;

  --font: 'Jost', system-ui, -apple-system, sans-serif;

  --r: 4px;
  --r-lg: 10px;
  --max-w: 1200px;
  --gutter: 32px;
}

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--obsidian);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--obsidian);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }

/* ─── Focus ─── */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: var(--r);
}

/* ─── Selection ─── */
::selection { background: var(--red); color: #fff; }

/* ─── Container ─── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ─── Type ─── */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(42px, 6vw, 80px); letter-spacing: -0.03em; }
h2 { font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.02em; }
h3 { font-size: 22px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--red); }

p { color: var(--ink-dim); max-width: 64ch; }
p.lead { font-size: 19px; line-height: 1.7; color: var(--ink-dim); }

small { font-size: 13px; color: var(--ink-muted); }

/* ─── Nav ─── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(28,29,29,0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--ink-faint);
  transition: border-color .3s;
}
.site-nav.scrolled { border-bottom-color: rgba(245,245,243,0.08); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.nav-brand-mark {
  color: var(--red);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}
.nav-brand-word {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-brand-tag {
  display: none;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-left: 8px;
  border-left: 1px solid var(--ink-faint);
  margin-left: 4px;
}
@media (min-width: 600px) { .nav-brand-tag { display: inline; } }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-dim);
  letter-spacing: 0.01em;
  position: relative;
  /* padding: 4px 0; */
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--red);
  color: #fff !important;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background .2s, transform .2s, box-shadow .2s;
}

.nav-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--red-glow);
}

.nav-cta::after { display: none !important; }

.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-btn span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s, opacity .3s;
}
.menu-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 768px) {
  .menu-btn { display: flex; }
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(28,29,29,0.96);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px var(--gutter);
    gap: 0;
    border-bottom: 1px solid var(--ink-faint);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1), opacity .3s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--ink-faint); }
  .nav-links a::after { display: none; }
  .nav-cta { margin-top: 16px; text-align: center; justify-content: center; }
  .nav-contact-cta {  padding: 10px; }
}

/* ─── Sections ─── */
.section {padding: 120px 0;position: relative;}
.section--dark { background: var(--obsidian); }
.section--surface { background: var(--surface); }
.section--elevated { background: var(--elevated); }
.section--red {background: var(--red);color: #fff;}
.section--red h1, .section--red h2, .section--red h3, .section--red h4 { color: #fff; }
.section--red p { color: rgba(255,255,255,0.75); }
.section--red small { color: rgba(255,255,255,0.5); }

@media (max-width: 600px) {
  .section { padding: 80px 0; }
}

/* ─── Hero entrance (CSS-only, no JS dependency) ─── */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-word-rise {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow,
.hero-lead,
.hero-cta,
.marquee {
  animation: hero-rise .7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-eyebrow { animation-delay: .05s; }
.hero-lead    { animation-delay: .60s; }
.hero-cta     { animation-delay: .72s; }
.marquee      { animation-delay: .85s; animation-duration: .6s; }

.hero-h1__word {
  display: inline-block;
  animation: hero-word-rise .5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-h1__word:nth-child(1)  { animation-delay: .20s; }
.hero-h1__word:nth-child(2)  { animation-delay: .24s; }
.hero-h1__word:nth-child(3)  { animation-delay: .28s; }
.hero-h1__word:nth-child(4)  { animation-delay: .32s; }
.hero-h1__word:nth-child(5)  { animation-delay: .36s; }
.hero-h1__word:nth-child(6)  { animation-delay: .40s; }
.hero-h1__word:nth-child(7)  { animation-delay: .44s; }
.hero-h1__word:nth-child(8)  { animation-delay: .48s; }
.hero-h1__word:nth-child(9)  { animation-delay: .52s; }
.hero-h1__word:nth-child(10) { animation-delay: .56s; }
.hero-h1__word:nth-child(11) { animation-delay: .60s; }

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-lead,
  .hero-cta,
  .marquee,
  .hero-h1__word {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ─── Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(0.22, 1, 0.36, 1),
              transform .8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: transform .2s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow .2s,
              background .2s,
              color .2s;
  text-decoration: none;
}
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 12px var(--red-glow);
}
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--red-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(245,245,243,0.2);
}
.btn-ghost:hover {
  border-color: var(--ink-dim);
  background: rgba(245,245,243,0.04);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--obsidian);
}
.btn-white:hover {
  background: var(--ink);
  color: var(--obsidian);
  transform: translateY(-2px);
}

/* ─── Cards ─── */
.card {
  background: var(--elevated);
  border: 1px solid var(--ink-faint);
  border-radius: var(--r-lg);
  padding: 36px 30px;
  position: relative;
  transition: transform .35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color .3s,
              box-shadow .35s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(245,245,243,0.1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.card__accent {
  width: 32px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
  transform-origin: left;
  transition: transform .4s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .card__accent { transform: scaleX(1.5); }
.card__title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--ink);
}
.card__body {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-dim);
}

/* ─── Divider ─── */
.divider {
  border: none;
  height: 1px;
  background: var(--ink-faint);
  margin: 0;
}

/* ─── Stats row ─── */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--ink-faint);
  border-top: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
}
.stat {
  padding: 36px 24px;
  background: var(--surface);
  text-align: center;
}
.stat__value {
  font-size: 32px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}
.stat__label {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ─── Process ─── */
.process-step {
  padding: 0 0 40px;
  border-left: 1px solid var(--ink-faint);
  padding-left: 32px;
  position: relative;
}
.process-step::before {
  content: "";
  position: absolute;
  left: -5px; top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--obsidian);
  border: 2px solid var(--red);
  transition: background .3s;
}
.process-step:hover::before { background: var(--red); }
.process-step__num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--red);
}
.process-step__title {
  font-size: 20px;
  font-weight: 600;
  margin: 6px 0 8px;
}
.process-step__desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-dim);
}

/* ─── Work tiles ─── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
.work-tile {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
}
.work-tile__bg {
  position: absolute;
  inset: 0;
  transition: transform .6s cubic-bezier(0.22, 1, 0.36, 1);
}
.work-tile:hover .work-tile__bg { transform: scale(1.04); }
.work-tile__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(28,29,29,0.85) 100%);
  z-index: 1;
}
.work-tile__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 32px;
  z-index: 2;
}
.work-tile__tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 2px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.work-tile__title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}
.work-tile__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

/* ─── Blog cards ─── */
.blog-card {
  display: flex;
  flex-direction: column;
  padding: 28px 32px;
  background: var(--elevated);
  border: 1px solid var(--ink-faint);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, border-color .25s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(238,36,39,0.25);
}
.blog-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.blog-card__tag {
  padding: 3px 10px;
  border-radius: 2px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.blog-card__date {
  font-size: 12px;
  color: var(--ink-muted);
}
.blog-card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.35;
}
.blog-card__body {
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.65;
}

@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
}

/* ─── Team ─── */
.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--elevated);
  border: 2px solid var(--ink-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  color: var(--red);
  transition: border-color .3s, box-shadow .3s;
}
.team-card:hover .team-avatar {
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(238,36,39,0.15);
}
.team-name {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
}
.team-role {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ─── FAQ ─── */
details {
  border-bottom: 1px solid var(--ink-faint);
}
details summary {
  padding: 24px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color .2s;
}
details summary::-webkit-details-marker { display: none; }
details summary:hover { color: var(--red); }
details summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform .3s;
}
details[open] summary::after { transform: rotate(45deg); }
details[open] summary { color: var(--red); }
.faq-answer {
  padding: 0 0 24px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-dim);
}

/* ─── Form ─── */
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.form-label .form-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-muted);
  opacity: 0.7;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--ink-faint);
  border-radius: var(--r);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 width=%2210%22 height=%226%22 viewBox=%220 0 10 6%22 fill=%22none%22><path d=%22M1 1l4 4 4-4%22 stroke=%22rgba(245,245,243,0.55)%22 stroke-width=%221.5%22 stroke-linecap=%22round%22/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--ink-muted); }
.form-input:focus,
.form-textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(238,36,39,0.1);
}
.form-input.has-error,
.form-textarea.has-error {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229,62,62,0.1);
}
.form-error {
  display: block;
  font-size: 12px;
  color: #e53e3e;
  margin-top: 6px;
  min-height: 16px;
}
.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ─── Footer ─── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--ink-faint);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.footer-tagline {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 12px;
  line-height: 1.6;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ink-dim);
  padding: 5px 0;
  transition: color .2s;
}
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom span {
  font-size: 12px;
  color: var(--ink-muted);
}

/* ─── Marquee ─── */
@keyframes scroll-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
  padding: 18px 0;
}
.marquee__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: scroll-marquee 30s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  white-space: nowrap;
}
.marquee__sep {
  color: var(--red);
  font-weight: 300;
}

/* ─── Bloom (hero glow) ─── */
@keyframes bloom-a {
  0%, 100% { transform: translate(0, 0) scale(1);    opacity: 0.45; }
  25%      { transform: translate(30px, -20px) scale(1.08); opacity: 0.7; }
  50%      { transform: translate(-10px, -40px) scale(1.15); opacity: 0.35; }
  75%      { transform: translate(-25px, 10px) scale(1.05); opacity: 0.55; }
}
@keyframes bloom-b {
  0%, 100% { transform: translate(0, 0) scale(1);    opacity: 0.35; }
  33%      { transform: translate(-35px, 15px) scale(1.1); opacity: 0.55; }
  66%      { transform: translate(20px, -25px) scale(0.95); opacity: 0.25; }
}
@keyframes bloom-c {
  0%, 100% { transform: translate(0, 0) scale(1);    opacity: 0.25; }
  50%      { transform: translate(15px, 30px) scale(1.2); opacity: 0.45; }
}
@keyframes bloom-d {
  0%, 100% { transform: translate(0, 0) scale(1);    opacity: 0.35; }
  50%      { transform: translate(-20px, -15px) scale(1.06); opacity: 0.5; }
}
.bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.bloom-a { animation: bloom-a 12s ease-in-out infinite; }
.bloom-b { animation: bloom-b 15s ease-in-out infinite; }
.bloom-c { animation: bloom-c 18s ease-in-out infinite; }
.bloom-d { animation: bloom-d 10s ease-in-out infinite; }

/* ─── Grid overlay (hero) ─── */
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(245,245,243,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245,245,243,0.025) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
}
.hero-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 50% at 50% 40%, rgba(238,36,39,0.08) 0%, transparent 70%);
  animation: grid-pulse 8s ease-in-out infinite;
}
@keyframes grid-pulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* ─── Red rule accent ─── */
.red-rule {
  width: 40px;
  height: 3px;
  background: var(--red);
  border-radius: 2px;
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ─── Utility ─── */
.text-red { color: var(--red); }
.text-dim { color: var(--ink-dim); }
.text-muted { color: var(--ink-muted); }
.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 8px; }
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.mt-4  { margin-top: 32px; }
.mt-6  { margin-top: 48px; }
.mb-1  { margin-bottom: 8px; }
.mb-2  { margin-bottom: 16px; }
.mb-3  { margin-bottom: 24px; }
.mb-4  { margin-bottom: 32px; }
.text-center { text-align: center; }
.grid { display: grid; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }
.gap-4 { gap: 32px; }
