@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --white: #ffffff;
  --soft: #f7f7f7;
  --ink: #0b0b0c;
  --muted: #68686d;
  --red: #c8102e;
  --red-dark: #8f0d22;
  --line: rgba(11,11,12,.12);
  --radius: 22px;
  --header-h: 72px;
  --shadow: 0 24px 70px rgba(0,0,0,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(1220px, calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.035em;
  font-size: 18px;
}
.brand::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--red);
  vertical-align: 2px;
}
.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.nav a:hover { color: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--red);
  transition: .2s ease;
}
.button:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-1px);
}
.button-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 13px;
}
.button-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.button-light:hover {
  background: #f3f3f3;
  border-color: #f3f3f3;
}

.hero {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 32px 0;
  background: var(--white);
  overflow: hidden;
}
.hero-grid {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 48px;
  align-items: center;
}
.hero-copy {
  max-width: 650px;
}
.eyebrow, .kicker {
  margin: 0 0 16px;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 800;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  font-size: clamp(44px, 5.3vw, 74px);
  line-height: .98;
  letter-spacing: -.055em;
  max-width: 820px;
}
.hero-question {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.025em;
}
.hero-lead {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}
.text-link {
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}
.hero-photo {
  position: relative;
  justify-self: start;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #eee;
  box-shadow: var(--shadow);
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--red);
  z-index: 2;
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 0.87 / 1;
  object-fit: cover;
  object-position: center 18%;
}
.photo-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(11,11,12,.86);
  backdrop-filter: blur(12px);
  color: #fff;
}
.photo-caption strong {
  display: block;
  margin-bottom: 3px;
  font-size: 17px;
}
.photo-caption span {
  display: block;
  color: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.45;
}

.section { padding: 104px 0; }
.section-dark {
  background: var(--ink);
  color: #fff;
}
.section-dark .kicker { color: #ff3150; }
.section-dark p { color: rgba(255,255,255,.70); }

.thesis {
  padding-top: 112px;
  padding-bottom: 112px;
}
.thesis .container {
  max-width: 1180px;
}
.thesis h2,
.thesis p {
  max-width: 920px;
}
.thesis h2 {
  margin-bottom: 26px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.11;
  letter-spacing: -.045em;
}
.thesis p:last-child {
  max-width: 780px;
  margin-bottom: 0;
  font-size: 19px;
}

.section-heading {
  max-width: 850px;
  margin-bottom: 48px;
}
.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: .2s ease;
}
.card:hover {
  border-color: rgba(200,16,46,.45);
  transform: translateY(-2px);
}
.number {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}
.card h3 {
  margin: 42px 0 10px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-warm { background: var(--soft); }
.steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.step-index {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  box-shadow: inset 0 0 0 2px var(--red);
}
.step h3 {
  margin: 3px 0 7px;
  font-size: 21px;
}
.step p {
  margin-bottom: 0;
  color: var(--muted);
}
.note {
  margin-top: 16px;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-left: 5px solid var(--red);
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
}
.note span {
  max-width: 760px;
  color: rgba(255,255,255,.72);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 52px;
}
.metric {
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}
.metric strong {
  display: block;
  margin-bottom: 5px;
  color: var(--red);
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -.04em;
}
.metric span {
  color: var(--muted);
  font-size: 13px;
}
.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 68px;
}
.experience-copy {
  color: var(--muted);
  font-size: 17px;
}
.competencies h3 { font-size: 23px; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.tags span {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
}
.tags span:nth-child(3n+1) {
  border-color: rgba(200,16,46,.32);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.case {
  padding: 28px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
}
.case h3 {
  margin-bottom: 10px;
  font-size: 23px;
}
.case h3::before {
  content: "";
  display: block;
  width: 38px;
  height: 3px;
  margin-bottom: 18px;
  background: var(--red);
}
.contact { padding-top: 72px; }
.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  padding: 52px;
  border-radius: 30px;
  background: var(--red);
  color: #fff;
}
.contact-card .kicker { color: rgba(255,255,255,.74); }
.contact-card h2 {
  max-width: 840px;
  margin-bottom: 14px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -.04em;
}
.contact-card p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255,255,255,.82);
}
.footer { padding: 30px 0 40px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Compact desktop, including MacBook-height screens */
@media (min-width: 981px) and (max-height: 820px) {
  :root { --header-h: 64px; }
  .header-inner { gap: 22px; }
  .hero { padding: 20px 0; }
  .hero-grid {
    max-width: 1040px;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 40px;
  }
  h1 { font-size: clamp(42px, 4.7vw, 64px); margin-bottom: 16px; }
  .hero-question { font-size: clamp(18px, 1.7vw, 24px); margin-bottom: 12px; }
  .hero-lead { font-size: 15px; line-height: 1.48; }
  .hero-actions { margin-top: 22px; }
  .button { min-height: 46px; }
  .hero-photo { width: min(100%, 390px); border-radius: 24px; }
  .photo-caption { left: 16px; right: 16px; bottom: 14px; padding: 13px 15px; }
  .eyebrow { margin-bottom: 11px; }
}

/* Tablet */
@media (max-width: 980px) {
  .thesis {
    padding-top: 86px;
    padding-bottom: 86px;
  }

  :root { --header-h: 66px; }
  .container { width: min(100% - 32px, 1180px); }
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero {
    min-height: auto;
    padding: 48px 0 66px;
  }
  .hero-grid {
    max-width: none;
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .hero-copy { max-width: 800px; }
  .hero-photo {
    justify-self: start;
    width: min(100%, 620px);
  }
  .hero-photo img { aspect-ratio: 1.1 / 1; object-position: center 22%; }
  .cards { grid-template-columns: 1fr 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .experience-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile */
@media (max-width: 680px) {
  .thesis {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  :root { --header-h: 60px; }
  .container { width: min(100% - 24px, 1180px); }
  .site-header .button-small { display: none; }
  .brand { font-size: 16px; }
  .hero {
    padding: 30px 0 48px;
  }
  .hero-grid { gap: 28px; }
  .eyebrow { margin-bottom: 12px; font-size: 10px; letter-spacing: .13em; }
  h1 {
    margin-bottom: 17px;
    font-size: clamp(38px, 12.6vw, 54px);
    line-height: 1;
  }
  .hero-question {
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.26;
  }
  .hero-lead {
    font-size: 15px;
    line-height: 1.5;
  }
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 16px;
    margin-top: 22px;
  }
  .button { width: 100%; }
  .text-link {
    align-self: center;
    font-size: 14px;
  }
  .hero-photo {
    width: 100%;
    border-radius: 22px;
  }
  .hero-photo img {
    aspect-ratio: 1 / .94;
    object-position: center 18%;
  }
  .photo-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px 14px;
  }
  .photo-caption strong { font-size: 15px; }
  .photo-caption span { font-size: 11px; }
  .section { padding: 72px 0; }
  .thesis h2, .section-heading h2 { font-size: 34px; }
  .thesis p:last-child { font-size: 17px; }
  .section-heading { margin-bottom: 34px; }
  .cards, .steps, .case-grid, .metrics { grid-template-columns: 1fr; }
  .card { min-height: auto; padding: 24px; }
  .card h3 { margin-top: 26px; }
  .step {
    grid-template-columns: 44px 1fr;
    gap: 16px;
    padding: 22px;
  }
  .step-index { width: 44px; height: 44px; }
  .note { flex-direction: column; padding: 22px; }
  .contact { padding-top: 54px; }
  .contact-card { padding: 32px 24px; border-radius: 24px; }
  .contact-card h2 { font-size: 34px; }
  .footer-inner { flex-direction: column; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
