:root {
  --red: #d9001a;
  --red-deep: #980817;
  --orange: #f26430;
  --blue: #3158b8;
  --ink: #111111;
  --ink-soft: #24211f;
  --muted: #64615c;
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.2);
  --paper: #f7f3ed;
  --paper-2: #fffaf3;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 20px 60px rgba(17, 17, 17, 0.12);
  --icon-shadow: 0 12px 28px rgba(217, 0, 26, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: 1.5;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--ink);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 1rem 2rem;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  background: rgba(247, 243, 237, 0.9);
  backdrop-filter: blur(18px);
  transition: background 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 250, 243, 0.96);
  border-bottom-color: var(--line);
}

.brand {
  flex: 0 0 auto;
  text-decoration: none;
}

.brand-system {
  display: inline-flex;
  align-items: center;
  gap: 0.78rem;
  min-width: 192px;
  flex: 0 0 auto;
}

.brand-system img {
  width: 78px;
}

.brand-system span {
  padding-left: 0.78rem;
  border-left: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  font-size: 0.9rem;
  font-weight: 800;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.78;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  opacity: 1;
}

.header-cta,
.btn,
.text-action,
.tab {
  min-height: 42px;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.46);
  color: var(--ink);
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.hero {
  max-width: 1560px;
  min-height: 78vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.74fr);
  align-items: center;
  gap: clamp(2.2rem, 3.5vw, 4.2rem);
  padding: 7.3rem 2rem 4.2rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
}

.hero-copy {
  max-width: 780px;
  min-width: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.85rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 4.05vw, 4.55rem);
  line-height: 1;
  font-weight: 800;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.45rem, 3.85vw, 4rem);
  line-height: 1.02;
  font-weight: 400;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.16;
}

.hero-subtitle {
  max-width: 700px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  padding: 0.78rem 1rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn:hover,
.btn:focus-visible,
.text-action:hover,
.text-action:focus-visible,
.tab:hover,
.tab:focus-visible {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.16);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: var(--red);
  border-color: var(--red);
}

.btn.ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.4);
}

.hero-aside {
  align-self: center;
  justify-self: end;
  width: min(100%, 720px);
}

.hero-media,
.program-image {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-media img,
.program-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media {
  aspect-ratio: 16 / 10;
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.1);
}

.hero-media img {
  object-position: center 48%;
}

.hero-media figcaption {
  display: none;
}

.section {
  padding: 4.8rem 2rem;
  scroll-margin-top: 92px;
}

.thesis,
.programs,
.journey,
.authority,
.outcomes,
.interest {
  max-width: 1240px;
  margin: 0 auto;
}

.thesis-grid,
.section-heading,
.authority,
.interest {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 3rem;
  align-items: center;
}

.thesis-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
}

.thesis h2 {
  max-width: 650px;
  font-size: clamp(2.55rem, 3.4vw, 3.55rem);
  line-height: 1.06;
}

.thesis-copy {
  max-width: 680px;
}

.thesis-copy p,
.section-heading p,
.program-copy p,
.journey-line p,
.authority p,
.outcome-grid p,
.interest-copy p,
.site-footer p {
  color: var(--muted);
}

.thesis-copy p {
  font-size: 1.08rem;
  line-height: 1.55;
}

.logic-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.7rem;
}

.logic-row article,
.journey-line article,
.outcome-grid article {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  text-align: center;
}

.step-icon,
.journey-icon,
.outcome-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  box-shadow: var(--icon-shadow);
}

.logic-row article p,
.journey-line article p,
.outcome-grid article p {
  max-width: 34ch;
}

.people-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 960px;
  margin: 3rem auto 0;
}

.people-band figure {
  aspect-ratio: 16 / 7;
  min-height: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.people-band figure:last-child {
  margin-top: 0;
}

.people-band img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lucide {
  width: 20px;
  height: 20px;
  stroke-width: 2.25;
}

.section-heading {
  align-items: end;
  margin-bottom: 2.4rem;
}

.program-feature {
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: center;
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
}

.program-feature.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
}

.program-feature.reverse .program-image {
  order: 2;
}

.program-image {
  aspect-ratio: 16 / 10;
  box-shadow: 0 14px 44px rgba(17, 17, 17, 0.1);
}

.program-image.wide {
  aspect-ratio: 16 / 10;
}

.program-copy {
  max-width: 620px;
}

.program-copy h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.8rem, 2.35vw, 2.35rem);
  line-height: 1.06;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.program-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 32px;
  padding: 0.34rem 0.58rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.program-meta .lucide {
  width: 14px;
  height: 14px;
  color: var(--red);
}

.program-focus {
  margin: 1.25rem 0;
  padding: 0.1rem 0 0.1rem 1rem;
  border-left: 2px solid var(--red);
}

.program-focus strong {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.program-focus ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.program-focus li {
  margin-bottom: 0.52rem;
}

.text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  padding: 0.72rem 0.9rem;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.text-action:hover,
.text-action:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.journey {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.journey h2 {
  max-width: 680px;
}

.journey-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.4rem;
}

.journey-line time {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.journey-line h3 {
  margin-bottom: 0.7rem;
  color: var(--red-deep);
  font-size: 1.42rem;
}

.authority {
  display: block;
  padding-top: 4.4rem;
  padding-bottom: 4.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.authority-top {
  margin-bottom: 2.2rem;
}

.authority-top .section-kicker {
  margin: 0;
}

.partner-lockup {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.08);
}

.partner-lockup .aasp-logo {
  width: 126px;
  max-height: 42px;
  object-fit: contain;
}

.partner-plus {
  color: var(--red);
  font-size: 1.1rem;
  font-weight: 900;
}

.partner-lockup .newhack-wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 0.95rem;
  border-radius: calc(var(--radius) - 2px);
  background: var(--ink-soft);
  color: var(--white);
  font-size: 1.28rem;
  font-weight: 900;
  line-height: 1;
}

.authority-content {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.72fr);
  gap: 3rem;
  align-items: start;
}

.authority-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.authority h2 {
  max-width: 720px;
  margin-bottom: 1.4rem;
  font-size: clamp(2.45rem, 3.55vw, 3.85rem);
  line-height: 1.04;
}

.authority-copy p {
  max-width: 660px;
  font-size: 1rem;
  line-height: 1.58;
}

.authority-points {
  width: 100%;
  border-top: 1px solid var(--line);
}

.authority-point {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.point-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  box-shadow: var(--icon-shadow);
}

.authority-point strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
}

.authority-point p {
  margin: 0;
  color: var(--muted);
}

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.outcome-grid article {
  display: grid;
  grid-template-rows: auto 4.9rem auto;
  justify-items: center;
  align-content: start;
  min-height: 230px;
  padding-right: 0;
}

.outcome-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 0.9rem;
}

.outcome-grid h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 23ch;
  margin: 0;
  font-size: 1.2rem;
}

.outcome-grid p {
  max-width: 30ch;
  margin: 0;
  font-size: 0.98rem;
}

.interest {
  align-items: start;
}

.interest-copy {
  position: sticky;
  top: 104px;
}

.interest-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.6rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.interest-note div {
  display: grid;
  gap: 0.22rem;
  padding-right: 0.75rem;
  border-right: 1px solid var(--line);
}

.interest-note div:last-child {
  border-right: 0;
}

.interest-note span,
.interest-note small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.interest-note strong {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.interest-form {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

label,
legend {
  display: block;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  color: var(--ink);
  padding: 0.84rem 0.88rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--red);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(216, 13, 31, 0.12);
}

fieldset {
  margin: 1rem 0;
  padding: 0;
  border: 0;
}

.program-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.55rem;
}

.program-options label {
  position: relative;
}

.program-options input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.program-options span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  text-align: center;
  padding: 0.62rem;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.program-options input:checked + span {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.program-options input:focus-visible + span {
  box-shadow: 0 0 0 4px rgba(216, 13, 31, 0.16);
}

.full {
  margin-top: 0.8rem;
}

.submit-btn {
  width: 100%;
  margin-top: 1rem;
  border: 0;
}

.submit-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 1.5rem;
  margin: 0.9rem 0 0;
  color: var(--red-deep);
  font-weight: 800;
}

.form-status .whatsapp-inline {
  display: inline-flex;
  align-items: center;
  margin-top: 0.45rem;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  text-decoration: none;
}

.site-footer {
  padding: 2rem;
  background: var(--paper-2);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.site-footer div {
  max-width: 1240px;
  margin: 0 auto;
}

.site-footer img {
  width: 220px;
  margin-bottom: 1rem;
}

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

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 1024px) {
  .site-header {
    padding: 0.9rem 1.2rem;
  }

  .brand-system {
    min-width: 184px;
  }

  .brand-system img {
    width: 74px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .thesis-grid,
  .section-heading,
  .authority-content,
  .interest,
  .program-feature,
  .program-feature.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    min-height: auto;
    padding: 8rem 1.2rem 4rem;
  }

  .hero-aside {
    align-self: start;
    justify-self: start;
    max-width: 720px;
  }

  .program-feature.reverse .program-image {
    order: 0;
  }

  .section {
    padding: 4.8rem 1.2rem;
  }

  .logic-row,
  .journey-line,
  .outcome-grid,
  .people-band {
    grid-template-columns: 1fr;
  }

  .people-band figure,
  .people-band figure:last-child {
    min-height: 260px;
    margin-top: 0;
  }

  .interest-copy {
    position: static;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 68px;
  }

  .header-cta {
    display: none;
  }

  .brand-system {
    min-width: 0;
    gap: 0.6rem;
  }

  .brand-system img {
    width: 62px;
  }

  .brand-system span {
    padding-left: 0.6rem;
    font-size: 0.78rem;
  }

  .hero {
    padding-top: 6rem;
  }

  .hero-copy,
  .hero-aside {
    width: 100%;
    max-width: 350px;
  }

  h1 {
    font-size: 2.55rem;
    line-height: 1;
    text-wrap: wrap;
  }

  h2 {
    font-size: 2.35rem;
  }

  .hero-subtitle {
    font-size: 1.04rem;
  }

  .program-image,
  .program-image.wide {
    aspect-ratio: 16 / 10;
  }

  .hero-media {
    aspect-ratio: 4 / 3;
  }

  .people-band figure {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

  .hero-media figcaption {
    display: none;
  }

  .program-feature {
    padding: 2.2rem 0;
  }

  .program-copy h3 {
    font-size: 2.15rem;
  }

  .text-action {
    width: 100%;
    min-width: 0;
  }

  .outcome-grid article {
    grid-template-rows: auto auto auto;
    min-height: 0;
  }

  .outcome-grid h3,
  .outcome-grid p {
    max-width: 34ch;
  }

  .form-grid,
  .program-options,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .interest-note {
    grid-template-columns: 1fr;
  }

  .interest-note div {
    padding: 0 0 0.75rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .interest-note div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .partner-lockup {
    width: 100%;
  }

  .partner-lockup .aasp-logo {
    width: 108px;
  }

  .partner-lockup .newhack-wordmark {
    flex: 1;
    justify-content: center;
    font-size: 1.08rem;
  }

  .interest-form {
    padding: 1.1rem;
  }

  .section {
    padding-top: 3.6rem;
    padding-bottom: 3.6rem;
  }
}
