:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --ink: #102033;
  --muted: #5b6b80;
  --line: #d9e2ee;
  --blue: #1d4ed8;
  --blue-deep: #163ea8;
  --blue-soft: #e7efff;
  --tint: #eef3fb;
  --font: "Poppins", Courier, sans-serif;
  --mono: Courier, "Courier New", monospace;
  --nav-h: 76px;
  --wrap: 1120px;
  --shadow: 0 18px 40px rgba(16, 32, 51, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

button, input, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

a { color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

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

h1 {
  font-size: clamp(3.2rem, 7vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h3 {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.kicker,
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 6px var(--blue-soft);
}

.lede,
.sub,
.band p,
.contact p {
  color: var(--muted);
}

.band .kicker,
.band .cred,
.eyebrow {
  color: var(--blue);
}

.band .school { color: var(--ink); }

.lede { font-size: 1.12rem; max-width: 38rem; }

.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--nav-h);
  padding: 0 max(20px, calc((100% - var(--wrap)) / 2));
  background: rgba(246, 248, 252, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled { border-bottom-color: var(--line); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.brand__name { font-size: 15px; }

.nav__links {
  display: flex;
  gap: 22px;
  margin-right: auto;
}

.nav__links a {
  text-decoration: none;
  font-size: 15px;
  color: var(--muted);
}

.nav__links a:hover { color: var(--blue); }

.nav__phone {
  text-decoration: none;
  font-weight: 500;
  color: var(--blue);
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  place-items: center;
}

.nav__bars,
.nav__bars::before,
.nav__bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.nav__bars::before,
.nav__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__bars::before { top: -5px; }
.nav__bars::after { top: 5px; }

.hero { padding: 36px 0 72px; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 56px;
  align-items: center;
}

.hero__copy { display: grid; gap: 22px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); }

.btn--ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn--white { background: #fff; color: var(--blue); }
.btn--white:hover { background: var(--blue-soft); }

.btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn--outline:hover { background: rgba(255, 255, 255, 0.1); }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 500;
}

.facts span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.hero__photo {
  margin: 0;
  position: relative;
}

.hero__photo::before {
  content: "";
  position: absolute;
  inset: 22px -18px -18px 22px;
  background: var(--blue);
  border-radius: 28px;
  z-index: 0;
}

.hero__photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.band { padding: 88px 0; }

.band--tint { background: var(--tint); }

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}

.split p + p { margin-top: 16px; }

.frame {
  margin: 0;
}

.frame img,
.study figure img,
.cert-card img {
  width: 100%;
  border-radius: 24px;
}

.frame img {
  height: 420px;
  object-fit: cover;
  object-position: center 58%;
  box-shadow: var(--shadow);
}

.text-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

.section-head { max-width: 40rem; margin-bottom: 36px; }

.section-head h2 { margin-bottom: 12px; }

.skill-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.skill-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.skill-list span {
  font-family: var(--mono);
  color: var(--blue);
  font-size: 13px;
}

.skill-list p { margin-top: 6px; color: var(--muted); }

.study {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: 40px;
  align-items: center;
  padding: 28px 0;
}

.study + .study { border-top: 1px solid var(--line); }

.study--flip figure { order: 2; }

.study figure { margin: 0; }

.study figure img {
  height: 280px;
  object-fit: cover;
  object-position: center;
}

.study p { margin-top: 12px; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 500;
}

.snippet {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: 16px;
  background: #102033;
  color: #d7e4f5;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  overflow: auto;
}

.school {
  font-weight: 500;
  margin-bottom: 6px;
}

.cred {
  margin: 12px 0 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.split--study {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: center;
}

.cert-card {
  width: min(100%, 360px);
  justify-self: end;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.cert-card img {
  width: 100%;
  height: auto;
  background: #fff;
  box-shadow: var(--shadow);
  outline: 8px solid #fff;
}

.contact {
  background: var(--blue);
  color: #fff;
  padding: 88px 0;
}

.contact .kicker--light,
.contact p { color: rgba(255, 255, 255, 0.82); }

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 48px;
  align-items: start;
}

.phone {
  display: inline-block;
  margin: 22px 0 18px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 1.1;
}

.phone:hover { text-decoration: underline; }

.note {
  display: grid;
  gap: 8px;
  padding: 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
}

.note label {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--mono);
}

.note input,
.note textarea {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  resize: vertical;
}

.form-error { color: #ffe1e1; font-size: 0.95rem; }

.footer {
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 14px;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
}

.footer a { color: var(--blue); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

.cert {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  border: 0;
  padding: 12px;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
}

.cert::backdrop { background: rgba(16, 32, 51, 0.72); }

.cert__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 6px 8px 12px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cert__close {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 14px;
}

.cert img {
  width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 70;
  max-width: min(520px, calc(100% - 32px));
  text-align: center;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 760px) {
  .hero__grid,
  .split,
  .split--study,
  .skill-list,
  .study,
  .contact__grid,
  .facts {
    grid-template-columns: 1fr;
  }

  .cert-card { justify-self: start; width: min(100%, 300px); }

  .study--flip figure { order: 0; }

  .frame img,
  .study figure img { height: 220px; }

  .hero__photo img {
    height: 440px;
    object-position: center 16%;
  }

  .hero { padding-top: 20px; }

  .nav__toggle { display: grid; }

  .brand__name,
  .nav__phone { display: none; }

  .nav__links {
    display: none;
    position: absolute;
    top: calc(var(--nav-h) - 8px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }

  .nav__links.is-open { display: flex; }

  .nav__links a { padding: 12px; }

  .wrap { width: min(var(--wrap), calc(100% - 32px)); }

  .band,
  .contact { padding: 64px 0; }

  .actions .btn,
  .note .btn { width: 100%; }

  .hero__photo::before { inset: 14px -8px -8px 14px; }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
