/* ── Fonts (latin subsets) ── */
@font-face {
  font-family: 'Archivo Black';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/archivo-black.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/barlow-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/barlow-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/barlow-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/barlow-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/barlow-condensed-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/barlow-condensed-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/barlow-condensed-700.woff2') format('woff2');
}

/* ── Tokens ── */
:root {
  --cream: #EFEBE6;
  --cream-light: #F5F2EC;
  --ink: #141414;
  --ink-muted: #3A3733;
  --warm-gray: #5A554D;
  --stone: #B8B2AA;
  --stone-dark: #7A7469;
  --red: #F20004;
  --red-hover: #ff2a24;
  --nav-height: 70px;
  --section-pad: clamp(72px, 12vw, 140px);
  --gutter: clamp(20px, 5vw, 48px);
  --max-width: 1140px;
  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-condensed: 'Barlow Condensed', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--red);
  color: #fff;
}

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

a { color: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}

.section--dark {
  background: var(--ink);
  color: #F5F2EE;
}

/* ── Grain overlay ── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* ── Typography ── */
.eyebrow {
  display: block;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4.5vw, 44px);
  line-height: 1.15;
  text-wrap: pretty;
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.section__title--center {
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 28px;
  text-align: center;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

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

.btn--primary:hover {
  background: var(--red-hover);
  transform: translateY(-1px);
}

/* ── Navigation ── */
.header-shell {
  position: sticky;
  top: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding-inline: var(--gutter);
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 242, 238, 0.1);
}

.header-area {
  display: contents;
}

.nav__logo img {
  height: 30px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 36px);
}

.nav__link {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #F5F2EE;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__link:hover { color: var(--red); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.nav__cta:hover { background: var(--red-hover); }

.nav__close {
  display: none;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #F5F2EE;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  position: relative;
  background: var(--cream-light);
  padding: clamp(100px, 16vw, 160px) var(--gutter) clamp(120px, 18vw, 200px);
  text-align: center;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 75% 55% at 50% 0%,
    rgba(242, 0, 4, 0.16) 0%,
    rgba(242, 0, 4, 0.04) 50%,
    transparent 75%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4vw, 36px);
}

.hero__mark {
  width: min(620px, 88vw);
  margin-bottom: clamp(16px, 3vw, 24px);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 5.5vw, 56px);
  line-height: 1.1;
  text-wrap: pretty;
}

.hero__subtitle {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
  color: var(--warm-gray);
  max-width: 640px;
}

/* ── Thesis ── */
.thesis__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(32px, 6vw, 64px);
  align-items: start;
}

.thesis__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.thesis__body p {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
  color: var(--ink-muted);
}

/* ── Approach ── */
.approach__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(245, 242, 238, 0.14);
  border-radius: 4px;
  overflow: hidden;
}

.approach__card {
  background: var(--ink);
  padding: clamp(28px, 4vw, 44px) clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.approach__num {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 42px);
  color: var(--red);
  line-height: 1;
}

.approach__card h3 {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: clamp(20px, 2.5vw, 24px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.approach__card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--stone);
}

/* ── Founders ── */
.founders__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(36px, 6vw, 56px);
}

.founder {
  border-top: 3px solid var(--ink);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.founder h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
}

.founder__role {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.founder p {
  font-size: clamp(16px, 1.8vw, 18px);
  line-height: 1.7;
  color: var(--ink-muted);
}

/* ── Contact ── */
.contact {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.contact__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 60% at 50% 100%, rgba(242, 0, 4, 0.16), transparent 70%);
  pointer-events: none;
}

.contact__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.contact__text {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--stone);
  max-width: 520px;
}

/* ── Footer ── */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 28px var(--gutter);
  background: var(--ink);
  border-top: 1px solid rgba(245, 242, 238, 0.12);
}

.footer img {
  height: 20px;
  width: auto;
  opacity: 0.9;
}

.footer p {
  font-family: var(--font-condensed);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--stone-dark);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal--delay { transition-delay: 0.12s; }
.reveal--delay-2 { transition-delay: 0.24s; }

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

/* ── Mobile ── */
@media (max-width: 900px) {
  .thesis__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

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

@media (max-width: 768px) {
  .header-shell {
    display: block;
    height: auto;
    padding: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    position: sticky;
    z-index: 500;
  }

  .header-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    padding-inline: var(--gutter);
    background: var(--ink);
    border-bottom: 1px solid rgba(245, 242, 238, 0.1);
    position: relative;
    z-index: 501;
  }

  .nav__toggle {
    display: flex;
    position: relative;
    z-index: 502;
  }

  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: 400;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 36px;
    background: var(--ink);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav__menu.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 14px;
    right: calc(var(--gutter) - 8px);
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1;
  }

  .nav__close span {
    position: absolute;
    width: 22px;
    height: 2px;
    background: #F5F2EE;
    border-radius: 1px;
  }

  .nav__close span:first-child {
    transform: rotate(45deg);
  }

  .nav__close span:last-child {
    transform: rotate(-45deg);
  }

  .nav__link {
    font-size: 22px;
    letter-spacing: 0.06em;
  }

  .nav__cta {
    padding: 16px 36px;
    font-size: 17px;
    margin-top: 12px;
  }

  .hero {
    padding-top: clamp(80px, 22vw, 112px);
    padding-bottom: clamp(104px, 24vw, 144px);
  }

  .hero__inner {
    gap: clamp(32px, 6vw, 44px);
  }

  .hero__mark {
    margin-bottom: clamp(20px, 4vw, 32px);
  }

  .section__title {
    margin-bottom: 40px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
  }

  .hero__title {
    font-size: 26px;
  }
}

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

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

  .btn, .nav__link, .nav__cta, .nav__toggle span {
    transition: none;
  }
}
