:root {
  color-scheme: light;
  --ink: #07132f;
  --muted: #526079;
  --soft: #7a8498;
  --line: rgba(7, 19, 47, 0.12);
  --paper: #f4f7fb;
  --panel: rgba(255, 255, 255, 0.9);
  --blue: #2563ff;
  --blue-dark: #061a44;
  --aqua: #2f8fbd;
  --shadow: 0 20px 58px rgba(6, 26, 68, 0.12);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(7, 19, 47, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fbfcff 0%, var(--paper) 48%, #eef5f8 100%);
  background-size: 76px 76px, auto;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.52;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 255, 0.12), transparent 27rem),
    radial-gradient(circle at 86% 12%, rgba(47, 143, 189, 0.13), transparent 28rem);
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: min(1200px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 8px;
  border: 1px solid rgba(7, 19, 47, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 34px rgba(6, 26, 68, 0.1);
  backdrop-filter: blur(16px);
}

.brand,
.header-cta,
nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  padding-left: 8px;
  font-weight: 760;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue-dark);
  font-size: 0.7rem;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(7, 19, 47, 0.055);
}

nav a,
.header-cta {
  border-radius: 999px;
  padding: 0 13px;
  color: rgba(7, 19, 47, 0.74);
  font-size: 0.88rem;
  font-weight: 720;
}

nav a:hover,
.header-cta:hover {
  background: rgba(7, 19, 47, 0.08);
  color: var(--ink);
}

.header-cta {
  justify-self: end;
  color: white;
  background: var(--blue-dark);
}

main,
.site-footer {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 414px;
  align-items: center;
  gap: 42px;
  padding: 108px 0 78px;
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 840;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  max-width: 880px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 5rem;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 16px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 3.18rem;
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 680;
}

.hero-note {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-copy,
.candidate-card,
.candidate-identity {
  min-width: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 780;
  text-align: center;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

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

.button.primary {
  color: white;
  background: var(--blue-dark);
  box-shadow: 0 16px 36px rgba(6, 26, 68, 0.18);
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
}

.candidate-card,
.fast-read,
.quick-grid article,
.match-item,
.essay-card,
.impact-grid article,
.step,
.proof-card,
.mini-timeline,
.letter-card,
.materials-side {
  border: 1px solid rgba(7, 19, 47, 0.1);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.candidate-card {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.candidate-topline {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 118px;
  align-items: center;
  gap: 18px;
}

.candidate-topline > img {
  width: 96px;
  height: 96px;
  border: 2px solid rgba(37, 99, 255, 0.4);
  border-radius: 50%;
  object-fit: cover;
  background: #071525;
}

.candidate-identity {
  min-width: 0;
}

.candidate-name {
  margin-bottom: 2px;
  font-size: 1.28rem;
  font-weight: 820;
}

.candidate-title {
  margin-bottom: 0;
  color: var(--blue);
  font-weight: 760;
  overflow-wrap: anywhere;
}

.candidate-qr {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.92);
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.candidate-qr:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 255, 0.35);
}

.candidate-qr img {
  display: block;
  width: 102px;
  height: 102px;
  border: 0;
  border-radius: 7px;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.candidate-facts {
  display: grid;
  gap: 12px;
  margin: 0;
}

.candidate-facts div {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 0;
  min-width: 0;
}

.text-button {
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.text-button:hover {
  color: var(--blue);
}

.candidate-note {
  margin: 0;
  border-left: 3px solid var(--blue);
  padding-left: 12px;
  color: var(--muted);
  font-size: 0.96rem;
}

.fast-read {
  display: grid;
  grid-template-columns: 0.52fr 1.48fr;
  gap: 34px;
  padding: 34px;
}

.quick-grid,
.impact-grid,
.approach-grid {
  display: grid;
  gap: 14px;
}

.quick-grid {
  grid-template-columns: repeat(3, 1fr);
}

.quick-grid article,
.impact-grid article,
.step,
.proof-card {
  padding: 20px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.quick-grid article:hover,
.impact-grid article:hover,
.step:hover,
.proof-card:hover,
.match-item:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 255, 0.24);
  box-shadow: 0 24px 68px rgba(6, 26, 68, 0.14);
}

.quick-grid strong {
  display: block;
  margin-bottom: 8px;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 2.3rem;
  line-height: 1;
}

.quick-grid span {
  color: var(--muted);
}

.section-grid,
.feature-section,
.impact-section,
.motion-section,
.proof-section,
.materials {
  margin-top: 72px;
}

#fit,
#vision,
#impact,
#motion,
#proof,
#materials {
  scroll-margin-top: 112px;
}

.section-grid,
.proof-section,
.materials {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  align-items: start;
}

.section-intro {
  position: sticky;
  top: 104px;
}

.section-intro p,
.match-item p,
.essay-card p,
.impact-grid p,
.step p,
.proof-card p,
.mini-timeline,
.letter-card p {
  color: var(--muted);
}

.match-list,
.steps {
  display: grid;
  gap: 12px;
}

.match-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.match-item span,
.step span,
.proof-card span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 840;
  letter-spacing: 0;
  text-transform: uppercase;
}

.essay-card {
  max-width: 900px;
  padding: clamp(24px, 5vw, 44px);
}

.essay-card p:last-child,
.proof-card p,
.letter-card p:last-of-type {
  margin-bottom: 0;
}

.impact-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

#impact {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

#impact .section-intro {
  position: relative;
  top: auto;
  z-index: 10;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

#impact .impact-grid {
  position: relative;
  z-index: 0;
  margin-top: 0;
}

#impact .impact-grid article {
  position: relative;
  z-index: 0;
  height: 100%;
}

#impact .impact-grid article:hover {
  z-index: 1;
}

.impact-grid article h3::before {
  content: "";
  width: 34px;
  height: 3px;
  display: block;
  margin-bottom: 18px;
  background: var(--blue);
}

.steps {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 18px;
}

.proof-body {
  display: grid;
  gap: 14px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.proof-card {
  display: grid;
  align-content: start;
  min-height: 180px;
}

.proof-card span {
  display: block;
  margin-bottom: 14px;
}

.mini-timeline {
  padding: 22px;
}

.mini-timeline .eyebrow {
  margin-bottom: 12px;
}

.mini-timeline ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mini-timeline li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  font-weight: 700;
}

.materials {
  align-items: stretch;
  padding-bottom: 42px;
}

.letter-card {
  display: flex;
  min-height: 540px;
  flex-direction: column;
  justify-content: center;
  padding: 46px;
}

.secondary-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 740;
}

.materials-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 14px;
  overflow: hidden;
}

.resume-preview {
  max-height: 680px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0;
  background: white;
}

.resume-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  border-radius: 999px;
  padding: 10px 14px;
  color: white;
  background: var(--blue-dark);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.18);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

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

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

  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

@media (max-width: 1080px) {
  nav {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .hero,
  .section-grid,
  .proof-section,
  .materials,
  .fast-read {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  h1 {
    font-size: 4.2rem;
  }

  h2 {
    font-size: 2.85rem;
  }

  .candidate-card {
    max-width: 560px;
  }

  .section-intro {
    position: static;
  }

  .quick-grid,
  .impact-grid,
  .steps,
  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header,
  main,
  .site-footer {
    width: min(1200px, calc(100% - 22px));
  }

  main,
  .site-footer {
    max-width: 360px;
    margin-left: 11px;
    margin-right: auto;
  }

  .site-header {
    grid-template-columns: 1fr;
    margin-top: 10px;
  }

  .brand {
    font-size: 0.94rem;
  }

  .header-cta {
    display: none;
  }

  .hero {
    gap: 28px;
    padding: 42px 0 30px;
  }

  .hero-copy {
    width: 100%;
    padding-right: 0;
  }

  h1 {
    font-size: 1.96rem;
    line-height: 1.03;
  }

  h2 {
    font-size: 2.24rem;
  }

  .lead {
    font-size: 0.9rem;
  }

  .hero-note {
    font-size: 0.92rem;
  }

  .eyebrow {
    font-size: 0.68rem;
  }

  .candidate-topline {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
  }

  .candidate-topline > img {
    width: 76px;
    height: 76px;
  }

  .candidate-name {
    font-size: 1.12rem;
  }

  .candidate-title {
    font-size: 0.88rem;
  }

  .candidate-qr {
    grid-column: 1 / -1;
    justify-self: start;
    margin-top: 4px;
  }

  .candidate-qr img {
    width: 100px;
    height: 100px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
    min-width: 0;
    padding-inline: 12px;
  }

  .hero-actions .button:nth-child(3) {
    grid-column: auto;
  }

  .candidate-facts div,
  .match-item {
    grid-template-columns: 1fr;
  }

  .fast-read,
  .candidate-card,
  .quick-grid article,
  .match-item,
  .essay-card,
  .impact-grid article,
  .step,
  .proof-card,
  .mini-timeline,
  .letter-card {
    padding: 18px;
  }

  .quick-grid,
  .impact-grid,
  .steps,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .section-grid,
  .feature-section,
  .impact-section,
  .motion-section,
  .proof-section,
  .materials {
    margin-top: 48px;
  }

  .letter-card {
    min-height: auto;
  }

  .resume-preview {
    max-height: 520px;
  }

  .site-footer {
    display: grid;
  }
}
