:root {
  --ink: #050505;
  --ink-2: #101010;
  --paper: #f6f0e5;
  --muted: rgba(246, 240, 229, 0.7);
  --line: rgba(246, 240, 229, 0.16);
  --acid: #d9ff00;
  --aqua: #00e2ff;
  --coral: #ff4d2f;
  --violet: #8c63ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  pointer-events: none;
  position: fixed;
  z-index: 30;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 64px);
  color: var(--paper);
}

.brand {
  display: grid;
  gap: 2px;
  font-weight: 950;
  text-transform: uppercase;
}

.brand span {
  font-size: 20px;
}

.brand small {
  color: var(--acid);
  font-size: 10px;
}

nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 120px clamp(18px, 4vw, 64px) 44px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-color: #050505;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.98) 0%, rgba(5, 5, 5, 0.72) 42%, rgba(5, 5, 5, 0.16) 100%),
    radial-gradient(circle at 76% 48%, rgba(0, 226, 255, 0.32), transparent 28%),
    radial-gradient(circle at 42% 42%, rgba(255, 77, 47, 0.24), transparent 32%),
    url("/macula-ai-media-hero.png") center / cover no-repeat;
  transform: scale(1.03);
}

.signal-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  opacity: 0.72;
}

.signal-field span {
  border-right: 1px solid rgba(246, 240, 229, 0.1);
  transform: translateY(var(--shift, 0));
}

.signal-field span:nth-child(2) {
  --shift: 8vh;
  background: linear-gradient(180deg, transparent, rgba(217, 255, 0, 0.18), transparent);
}

.signal-field span:nth-child(4) {
  --shift: -6vh;
  background: linear-gradient(180deg, transparent, rgba(0, 226, 255, 0.16), transparent);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  width: 100%;
}

.kicker,
.section-label {
  margin: 0 0 18px;
  color: var(--acid);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1100px;
  margin-bottom: 24px;
  font-size: clamp(52px, 14vw, 184px);
  line-height: 0.78;
  text-transform: uppercase;
}

h2 {
  max-width: 1120px;
  font-size: clamp(42px, 8vw, 112px);
  line-height: 0.92;
  text-transform: uppercase;
}

h3 {
  font-size: clamp(24px, 3vw, 44px);
  line-height: 0.98;
  text-transform: uppercase;
}

.hero-copy p:not(.kicker) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.36;
}

.button {
  display: inline-flex;
  margin-top: 24px;
  padding: 16px 22px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--acid);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button.secondary {
  border: 1px solid rgba(246, 240, 229, 0.3);
  color: var(--paper);
  background: rgba(5, 5, 5, 0.48);
}

.button:hover {
  transform: translateY(-2px);
  background: var(--aqua);
}

.button.secondary:hover {
  color: var(--ink);
}

.hero-panel {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.48);
  backdrop-filter: blur(18px);
}

.hero-panel p {
  color: var(--aqua);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-panel li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.hero-panel strong {
  color: var(--acid);
}

.statement,
.system,
.contact {
  padding: 110px clamp(18px, 4vw, 64px);
}

.statement {
  min-height: 72vh;
  display: grid;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(217, 255, 0, 0.1), transparent 32%),
    linear-gradient(315deg, rgba(0, 226, 255, 0.12), transparent 28%);
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--acid);
  color: var(--ink);
}

.marquee div {
  display: flex;
  width: max-content;
  animation: slide 22s linear infinite;
}

.marquee span {
  padding: 18px 28px;
  white-space: nowrap;
  font-size: clamp(24px, 4vw, 60px);
  font-weight: 950;
  text-transform: uppercase;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

.work {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 760px;
}

.feature-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 380px;
  padding: 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}

.feature-card.large {
  grid-column: span 2;
  grid-row: span 2;
  background:
    linear-gradient(135deg, rgba(141, 99, 255, 0.32), transparent 42%),
    var(--ink);
}

.feature-card.image-card {
  grid-column: span 2;
  background:
    linear-gradient(180deg, transparent, rgba(5, 5, 5, 0.72)),
    url("/macula-ai-media-hero.png") center / cover no-repeat;
}

.feature-card.dark {
  background: var(--paper);
  color: var(--ink);
}

.feature-card span {
  color: var(--aqua);
  font-size: clamp(44px, 8vw, 104px);
  font-weight: 950;
  line-height: 0.86;
}

.feature-card.dark span {
  color: var(--coral);
}

.feature-card p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.5;
}

.feature-card.dark p {
  color: rgba(5, 5, 5, 0.65);
}

.system-head {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 56px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.system-grid article {
  min-height: 310px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.system-grid span {
  display: inline-flex;
  margin-bottom: 76px;
  color: var(--acid);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.system-grid p {
  color: var(--muted);
  line-height: 1.5;
}

.difference {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  padding: 100px clamp(18px, 4vw, 64px);
  background: var(--paper);
  color: var(--ink);
}

.difference .section-label {
  color: var(--coral);
}

.metric-row {
  display: grid;
  gap: 14px;
  align-content: end;
}

.metric-row div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(5, 5, 5, 0.18);
}

.metric-row strong {
  font-size: 50px;
  line-height: 1;
}

.metric-row span {
  max-width: 170px;
  font-weight: 950;
  text-align: right;
  text-transform: uppercase;
}

.contact {
  min-height: 68vh;
  display: grid;
  align-content: center;
}

.contact a {
  display: inline-block;
  color: var(--acid);
  font-size: clamp(30px, 6vw, 84px);
  font-weight: 950;
  text-transform: uppercase;
}

.contact .deck-link {
  margin-top: 28px;
  color: var(--paper);
  font-size: clamp(18px, 2vw, 28px);
  text-decoration: underline;
  text-decoration-color: var(--acid);
  text-underline-offset: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-hero {
  min-height: 68vh;
  display: grid;
  align-content: end;
  padding: 140px clamp(18px, 4vw, 64px) 64px;
  background:
    linear-gradient(135deg, rgba(217, 255, 0, 0.12), transparent 34%),
    radial-gradient(circle at 78% 36%, rgba(0, 226, 255, 0.22), transparent 28%),
    var(--ink);
}

.page-hero p:not(.kicker) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 25px);
  line-height: 1.38;
}

.page-band {
  padding: 96px clamp(18px, 4vw, 64px);
}

.page-band.light {
  background: var(--paper);
  color: var(--ink);
}

.page-band.light .section-label {
  color: var(--coral);
}

.page-band.light p {
  color: rgba(5, 5, 5, 0.68);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.copy-block {
  max-width: 780px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.content-card {
  min-height: 280px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-2);
}

.content-card span,
.article-meta {
  color: var(--acid);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.content-card p,
.article-card p,
.article-body p,
.article-body li {
  color: var(--muted);
  line-height: 1.55;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.article-card {
  display: grid;
  gap: 18px;
  min-height: 320px;
  padding: 28px;
  background: var(--ink);
}

.article-card h2,
.article-card h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 54px);
}

.article-page {
  max-width: 960px;
  padding: 140px clamp(18px, 4vw, 64px) 92px;
}

.article-body {
  max-width: 780px;
  font-size: 19px;
}

.article-body h2 {
  margin-top: 54px;
  font-size: clamp(32px, 5vw, 64px);
}

.article-body ul {
  display: grid;
  gap: 12px;
  padding-left: 20px;
}

.lead-form {
  display: grid;
  gap: 14px;
  max-width: 680px;
}

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.lead-form input,
.lead-form textarea,
.lead-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 16px;
  color: var(--paper);
  background: rgba(5, 5, 5, 0.62);
  font: inherit;
}

.lead-form textarea {
  min-height: 150px;
  resize: vertical;
}

.lead-form button,
.consent-banner button {
  width: fit-content;
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  color: var(--ink);
  background: var(--acid);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.policy-list {
  display: grid;
  gap: 18px;
  max-width: 820px;
}

.policy-list p {
  color: var(--muted);
  line-height: 1.55;
}

.consent-banner {
  position: fixed;
  z-index: 40;
  right: 18px;
  bottom: 18px;
  width: min(420px, calc(100vw - 36px));
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.92);
  color: var(--paper);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

.consent-banner p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.consent-banner div {
  display: flex;
  gap: 10px;
}

.consent-banner button:first-child {
  border: 1px solid var(--line);
  color: var(--paper);
  background: transparent;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  padding: 28px clamp(18px, 4vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 1020px) {
  .hero-grid,
  .system-head,
  .difference,
  .split {
    grid-template-columns: 1fr;
  }

  .work,
  .system-grid,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-card.large,
  .feature-card.image-card {
    grid-column: span 2;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }

  nav {
    gap: 12px;
    font-size: 11px;
    overflow: hidden;
  }

  .hero {
    min-height: 100dvh;
    padding: 104px 20px 36px;
  }

  .hero-media {
    background-color: #050505;
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.62) 0%, rgba(5, 5, 5, 0.94) 100%),
      radial-gradient(circle at 72% 32%, rgba(0, 226, 255, 0.34), transparent 34%),
      radial-gradient(circle at 34% 64%, rgba(217, 255, 0, 0.2), transparent 36%),
      url("/macula-ai-media-hero.png") center / cover no-repeat;
  }

  .hero-grid,
  .work,
  .system-grid,
  .card-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .feature-card.large,
  .feature-card.image-card {
    grid-column: span 1;
  }

  .hero-panel {
    display: none;
  }

  h1 {
    max-width: 360px;
    font-size: clamp(48px, 17vw, 70px);
    line-height: 0.88;
  }

  h2 {
    font-size: clamp(38px, 12vw, 58px);
  }

  .hero-copy p:not(.kicker) {
    max-width: 340px;
    font-size: 18px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .statement,
  .system,
  .contact,
  .page-band,
  .article-page {
    padding: 84px 20px;
  }

  .page-hero {
    min-height: 62vh;
    padding: 112px 20px 44px;
  }

  .work {
    min-height: 0;
  }

  .feature-card {
    min-height: 320px;
    padding: 24px 20px;
  }

  .metric-row div {
    display: grid;
    gap: 8px;
  }

  .metric-row span {
    max-width: none;
    text-align: left;
  }
}
