:root {
  --bg: #f3efe8;
  --paper: #fbf9f5;
  --surface: #ffffff;
  --surface-strong: #161616;
  --ink: #171717;
  --ink-soft: #4f4b47;
  --line: #ded6cb;
  --line-strong: #cfc5b8;
  --brand: #b3261e;
  --brand-deep: #7e1712;
  --accent: #d3a86e;
  --shadow: 0 18px 50px rgba(41, 27, 19, 0.08);
  --radius: 24px;
  --radius-sm: 18px;
  --content: 1180px;
  --nav-height: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(179, 38, 30, 0.08), transparent 26%),
    linear-gradient(180deg, #f5f1ea 0%, #f0ebe3 100%);
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 245, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(120, 99, 83, 0.12);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 78px;
  height: 54px;
  object-fit: contain;
  background: #111;
  border-radius: 14px;
  padding: 6px 8px;
}

.brand-mark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eyebrow,
.section-kicker {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}

.brand-title,
.hero-title,
.section-title,
.page-title,
.metric-value,
.timeline-year,
.mini-title,
.cta-title,
.quote,
.card h3,
.contact-card h3,
.person-card h3,
.creator-card h3,
.footer-title {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.brand-title {
  font-size: 1.08rem;
  line-height: 1;
}

.brand-subtitle {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

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

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  transition: background 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(179, 38, 30, 0.08);
  color: var(--ink);
}

.button,
.button-muted,
.button-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button-muted:hover,
.button-line:hover {
  transform: translateY(-1px);
}

.button {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: 0 16px 36px rgba(126, 23, 18, 0.22);
}

.button-muted {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.button-line {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--ink);
}

.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(14, 14, 14, 0.9), rgba(14, 14, 14, 0.58)),
    url("./assets/images/coderedheader.jpg") center/cover no-repeat;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, transparent, var(--bg));
  z-index: -1;
}

.hero-grid,
.page-frame,
.story-grid,
.stats-grid,
.card-grid,
.impact-grid,
.logo-grid,
.team-grid,
.creator-grid,
.footer-grid,
.contact-grid,
.timeline-list {
  display: grid;
  gap: 24px;
}

.hero-grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  min-height: calc(100vh - var(--nav-height));
  padding: 76px 0 88px;
}

.hero-copy {
  max-width: 700px;
}

.hero-title {
  margin: 16px 0 18px;
  font-size: clamp(2.8rem, 7vw, 5.1rem);
  line-height: 0.95;
}

.hero-copy p,
.page-lead,
.section-copy,
.card-body,
.timeline-copy,
.person-card p,
.creator-card p,
.contact-card p,
.footer-copy {
  color: inherit;
  font-size: 1.04rem;
  line-height: 1.72;
}

.hero-actions,
.button-row,
.pill-row,
.social-links,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.hero-panel,
.page-panel,
.panel,
.card,
.contact-card,
.person-card,
.creator-card,
.metric-card,
.logo-card,
.timeline-item,
.footer-card,
.form-shell,
.statement-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 28px;
  background: rgba(251, 249, 245, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
}

.hero-photo,
.page-art img,
.timeline-image img,
.statement-card img,
.feature-photo img {
  border-radius: calc(var(--radius) - 6px);
  width: 100%;
  height: auto;
  object-fit: cover;
}

.stat-blocks {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat-chip {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.stat-chip strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
}

.stat-chip span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.section,
.section-tight,
.page-hero {
  padding: 84px 0;
}

.section-tight {
  padding-top: 28px;
}

.page-hero {
  padding-top: 58px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 28px;
}

.section-title,
.page-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.02;
  color: var(--ink);
}

.hero .section-title,
.hero .page-title,
.hero .section-copy,
.hero .page-lead {
  color: #fff;
}

.page-frame {
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
}

.page-panel {
  padding: 34px;
  background: var(--surface);
  border: 1px solid rgba(114, 93, 76, 0.08);
}

.page-art img {
  min-height: 100%;
}

.panel,
.card,
.contact-card,
.person-card,
.creator-card,
.form-shell,
.statement-card {
  background: var(--surface);
  border: 1px solid rgba(114, 93, 76, 0.08);
}

.panel,
.statement-card,
.form-shell {
  padding: 34px;
}

.card,
.contact-card,
.person-card,
.creator-card,
.metric-card,
.timeline-item,
.footer-card {
  padding: 28px;
}

.story-grid,
.card-grid,
.impact-grid,
.logo-grid,
.team-grid,
.creator-grid,
.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  background: var(--paper);
  border: 1px solid rgba(114, 93, 76, 0.08);
}

.metric-value {
  font-size: 2.5rem;
  line-height: 1;
}

.metric-label {
  margin-top: 10px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.card h3,
.contact-card h3,
.person-card h3,
.creator-card h3 {
  margin: 10px 0 12px;
  font-size: 1.38rem;
  line-height: 1.15;
}

.card-body,
.section-copy,
.contact-card p,
.person-card p,
.creator-card p {
  color: var(--ink-soft);
  margin: 0;
}

.split-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 24px;
  align-items: start;
}

.quote {
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.12;
}

.quote-note {
  margin: 0;
  color: var(--ink-soft);
}

.impact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-title {
  margin: 0 0 10px;
  font-size: 1.24rem;
}

.logo-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.logo-card {
  background: var(--surface);
  border: 1px solid rgba(114, 93, 76, 0.08);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
}

.logo-card img {
  max-height: 100px;
  object-fit: contain;
}

.person-card,
.creator-card {
  display: grid;
  gap: 18px;
}

.person-photo,
.creator-photo,
.creator-photo--brand {
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: #ece5da;
}

.person-photo img,
.creator-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.creator-photo--brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.role {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.timeline-list {
  grid-template-columns: 1fr;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid rgba(114, 93, 76, 0.08);
}

.timeline-year {
  font-size: 1.2rem;
  color: var(--brand);
}

.timeline-item h3 {
  margin: 0 0 12px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  line-height: 1.12;
}

.timeline-copy {
  margin: 0;
  color: var(--ink-soft);
}

.timeline-image {
  margin-top: 18px;
}

.statement-card {
  display: grid;
  gap: 24px;
}

.feature-photo img {
  min-height: 320px;
  object-fit: cover;
}

.store-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 24px;
  align-items: center;
}

.store-embed-shell {
  display: grid;
  gap: 18px;
}

.store-embed-frame {
  width: 100%;
  min-height: 980px;
  border: 0;
  border-radius: calc(var(--radius) - 6px);
  background: #fff;
}

.store-actions {
  margin-top: 26px;
}

.form-shell h2,
.panel h2,
.statement-card h2 {
  margin: 14px 0 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  line-height: 1.05;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  padding: 14px 16px;
  background: #fff;
  color: var(--ink);
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-note,
.contact-list,
.inline-list {
  color: var(--ink-soft);
  line-height: 1.65;
}

.contact-list,
.inline-list {
  padding-left: 18px;
  margin: 18px 0 0;
}

.contact-list li,
.inline-list li {
  margin-bottom: 10px;
}

.social-links {
  margin-top: 22px;
}

.footer {
  padding: 56px 0 64px;
  background: #151515;
  color: #f7f1e9;
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
}

.footer-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-title {
  margin: 14px 0 12px;
  font-size: 2rem;
  line-height: 1.02;
}

.footer-copy {
  margin: 0;
  color: rgba(247, 241, 233, 0.78);
}

.footer-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a {
  color: rgba(247, 241, 233, 0.82);
}

.footer-links a:hover {
  color: #fff;
}

.pill-row {
  margin-top: 22px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(179, 38, 30, 0.08);
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 600;
}

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

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

@media (max-width: 1040px) {
  .hero-grid,
  .page-frame,
  .split-layout,
  .store-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .story-grid,
  .card-grid,
  .team-grid,
  .creator-grid,
  .contact-grid,
  .logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 24px;
    background: rgba(251, 249, 245, 0.98);
    border: 1px solid rgba(114, 93, 76, 0.12);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }

  .hero-grid {
    min-height: auto;
    padding: 54px 0 74px;
  }

  .stats-grid,
  .story-grid,
  .card-grid,
  .team-grid,
  .creator-grid,
  .contact-grid,
  .logo-grid,
  .stat-blocks {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .page-panel,
  .panel,
  .statement-card,
  .form-shell {
    padding: 26px;
  }
}
