:root {
  --bg: #ffffff;
  --text: #1f1f1f;
  --muted: #5c5c5c;
  --accent: #e11d2e;
  --accent-deep: #c8102e;
  --accent-text: #c8102e;
  --accent-soft: #fde8eb;
  --accent-mid: #f5b5bc;
  --ink: #0a0a0a;
  --ink-2: #111111;
  --ink-border: rgba(255, 255, 255, 0.1);
  --on-ink: #ffffff;
  --on-ink-muted: rgba(255, 255, 255, 0.72);
  --border: #e6e6e6;
  --soft: #fafafa;
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
}

.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #0a0a0a;
  border-bottom: 1px solid var(--ink-border);
}

.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-deep));
}

.header-inner,
.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
  line-height: 0;
}

.logo img {
  display: block;
  height: 28px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  color: var(--on-ink-muted);
  text-decoration: none;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
}

.nav a:hover {
  color: var(--on-ink);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: var(--on-ink);
  overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0 0;
}

.hero-glow,
.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  z-index: 0;
  background:
    radial-gradient(ellipse 55% 70% at 78% 50%, rgba(225, 29, 46, 0.38), transparent 62%),
    radial-gradient(ellipse 40% 50% at 18% 20%, rgba(200, 16, 46, 0.16), transparent 70%);
  animation: glow-shift 9s ease-in-out infinite alternate;
}

.hero-grain {
  z-index: 1;
  opacity: 0.07;
  background-image: url("/assets/grain.png");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 400px);
  gap: 40px 56px;
  align-items: center;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 48px;
  flex: 1 1 auto;
}

.kicker {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 8vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 750;
}

.hero-wordmark {
  display: block;
  width: min(100%, 520px);
  height: auto;
  margin: 0 0 22px;
}

.lead {
  margin: 0 0 32px;
  max-width: 38rem;
  font-size: 20px;
  line-height: 1.5;
  color: var(--on-ink-muted);
}

.hero-copy {
  animation: rise-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-portrait {
  position: relative;
  animation: rise-in 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.hero-portrait-shift {
  position: relative;
  z-index: 1;
}

.hero-portrait::before {
  content: "";
  position: absolute;
  inset: -18%;
  background: radial-gradient(circle, rgba(225, 29, 46, 0.55) 0%, transparent 68%);
  filter: blur(12px);
  animation: glow-pulse 5.5s ease-in-out infinite;
  z-index: 0;
}

.hero-portrait img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent-deep);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--on-ink);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--on-ink);
  background: rgba(225, 29, 46, 0.16);
}

.on-light .btn-secondary {
  color: var(--text);
  background: #fff;
  border-color: var(--border);
}

.on-light .btn-secondary:hover {
  border-color: var(--accent-deep);
  color: var(--text);
  background: var(--accent-soft);
}

.marquee {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--ink-border);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 32s linear infinite;
  padding: 14px 0;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  padding: 0 8px 0 0;
  color: var(--on-ink-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track span::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 22px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.section {
  padding: 72px 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 28px;
}

.section h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-head p,
.muted {
  margin: 0;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat,
.card,
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.stat:hover,
.card:hover,
.panel:hover {
  transform: translateY(-4px);
  border-color: var(--accent-mid);
  box-shadow: 0 16px 36px rgba(200, 16, 46, 0.1);
}

.stat {
  padding: 24px 22px 22px;
}

.stat-value {
  display: block;
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

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

.stat a:hover .stat-label {
  color: var(--accent-text);
}

.audience {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.panel {
  padding: 22px 22px 10px;
}

.panel h3 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 650;
}

.bar-row {
  display: grid;
  grid-template-columns: 118px 1fr 64px;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.bar-label,
.bar-value {
  font-size: 14px;
}

.bar-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  font-weight: 600;
}

.bar-track {
  height: 8px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  border-radius: 99px;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.is-inview .bar-fill,
.bar-fill.is-inview {
  width: var(--bar-w, 0%);
}

.gender {
  margin: 8px 0 16px;
  padding: 16px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
}

.gender-value {
  display: block;
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--accent-deep);
  font-variant-numeric: tabular-nums;
}

.gender-label {
  color: var(--muted);
  font-size: 14px;
}

.formats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  padding: 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card-icon svg {
  display: block;
}

.collab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.collab-note {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  color: var(--muted);
  background: var(--soft);
}

.collab-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.collab-link:hover {
  text-decoration: underline;
}

.contact-band {
  background: var(--ink);
  color: var(--on-ink);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 88px 0;
}

.contact-band .hero-glow {
  opacity: 0.7;
  background: radial-gradient(ellipse 50% 80% at 80% 20%, rgba(225, 29, 46, 0.28), transparent 65%);
  animation: none;
}

.contact-band .hero-grain {
  opacity: 0.05;
}

.contact-band .wrap {
  position: relative;
  z-index: 2;
}

.contact-box h2 {
  margin: 0 0 12px;
  font-size: 32px;
  letter-spacing: -0.03em;
}

.contact-box p {
  margin: 0 0 16px;
  max-width: 40rem;
  color: var(--on-ink-muted);
}

.contact-mail {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--on-ink);
}

.contact-mail:hover {
  color: var(--accent);
}

.footer {
  background: var(--ink);
  border-top: 1px solid var(--ink-border);
  padding: 28px 0 40px;
  color: var(--on-ink-muted);
  font-size: 14px;
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo img {
  height: 20px;
}

.footer a {
  color: var(--on-ink-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--on-ink);
}

.legal {
  padding: 56px 0 80px;
  max-width: 40rem;
}

.legal h1 {
  font-size: clamp(32px, 6vw, 44px);
  margin-bottom: 20px;
  color: var(--text);
}

.legal p {
  color: var(--muted);
  margin: 0 0 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-inview {
  opacity: 1;
  transform: none;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes glow-shift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2%, 3%, 0) scale(1.05); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 860px) {
  .stats,
  .audience,
  .formats,
  .collab-grid {
    grid-template-columns: 1fr;
  }

  .bar-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "label value"
      "bar bar";
    gap: 6px 12px;
  }

  .bar-label { grid-area: label; }
  .bar-value { grid-area: value; }
  .bar-track { grid-area: bar; }

  .hero {
    min-height: 0;
    padding: 36px 0 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 36px;
  }

  .hero-portrait {
    max-width: 300px;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .logo img {
    height: 24px;
  }

  .section {
    padding: 56px 0;
  }

  .contact-band {
    padding: 64px 0;
  }
}

@media (max-width: 480px) {
  .header-inner,
  .wrap,
  .footer-inner,
  .hero-grid {
    width: min(var(--max), calc(100% - 28px));
  }

  .lead {
    font-size: 18px;
  }

  .contact-mail {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy,
  .hero-portrait,
  .hero-glow,
  .hero-portrait::before,
  .marquee-track {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bar-fill {
    width: var(--bar-w, 0%);
    transition: none;
  }

  .stat:hover,
  .card:hover,
  .panel:hover,
  .btn:hover {
    transform: none;
  }
}
