:root {
  --bg: #eef0f8;
  --ink: #232735;
  --muted: #666d80;
  --blue: #3566c9;
  --violet: #8f63d6;
  --navy: #141a2e;
  --glass: rgba(255, 255, 255, 0.58);
  --glass-border: rgba(255, 255, 255, 0.65);
  --shadow: 0 8px 32px -8px rgba(38, 49, 64, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --radius: 14px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
::selection { background: var(--violet); color: #fff; }

/* Soft background blobs */
.blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blobs span { position: absolute; border-radius: 50%; filter: blur(40px); }
.blobs span:nth-child(1) { width: 560px; height: 560px; left: -140px; top: 18%; background: radial-gradient(circle, rgba(53, 102, 201, 0.26), rgba(53, 102, 201, 0.07) 50%, transparent 80%); }
.blobs span:nth-child(2) { width: 620px; height: 620px; right: -180px; top: -160px; background: radial-gradient(circle, rgba(143, 99, 214, 0.22), rgba(143, 99, 214, 0.06) 50%, transparent 80%); }
.blobs span:nth-child(3) { width: 520px; height: 520px; right: 8%; bottom: -160px; background: radial-gradient(circle, rgba(166, 187, 217, 0.4), rgba(166, 187, 217, 0.1) 50%, transparent 80%); }
.blobs span:nth-child(4) { width: 380px; height: 380px; left: 30%; top: 55%; background: radial-gradient(circle, rgba(235, 150, 190, 0.16), transparent 70%); }

main { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
}

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); }
.hero h1 {
  font-size: clamp(44px, 6.4vw, 72px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--blue)); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 8s ease-in-out infinite alternate; width: fit-content;
}
@keyframes sheen { to { background-position: 100% 0; } }
.hero__role { margin-top: 8px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.02em; color: #3c4254; }
.hero__bio { margin-top: 18px; max-width: 54ch; font-size: 17px; color: var(--muted); }
.hero__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; max-width: 520px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 10px; background: rgba(255, 255, 255, 0.85); border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 16px -6px rgba(38, 49, 64, 0.18);
  font-size: 14.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(38, 49, 64, 0.28); border-color: var(--blue); }
.btn--primary { grid-column: 1 / -1; background: linear-gradient(135deg, #1b2340, var(--navy)); border-color: #2a3352; color: #fff; }
.btn--primary:hover { border-color: #2a3352; }

.kicker { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.results { padding: clamp(22px, 3vw, 32px); border-radius: 20px; box-shadow: var(--shadow), 16px 16px 0 rgba(166, 187, 217, 0.35); }
.results dl { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; margin-top: 20px; }
.results dt { font-size: clamp(32px, 3.8vw, 46px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.results dd { margin-top: 6px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }

/* Sections */
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section__head { text-align: center; margin-bottom: clamp(24px, 3vw, 36px); }
.section__head h2 { font-size: clamp(28px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.section__head p { margin-top: 10px; font-size: 17px; color: var(--muted); }

/* Experience rows */
.rows { display: grid; gap: 12px; }
.row { padding: 18px 22px; transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; }
.row:hover, .card:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.78); box-shadow: 0 16px 40px -12px rgba(38, 49, 64, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.row h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.row p { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.pill { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--violet)); color: #fff; font-size: 11.5px; font-weight: 600; vertical-align: 2px; }

/* Work cards */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.6vw, 28px); transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; }
.card--wide { grid-column: 1 / -1; }
.card .kicker span:first-child { color: var(--blue); }
.card h3 { margin-top: 6px; font-size: clamp(19px, 2vw, 22px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.card > p:not(.kicker):not(.card__result) { font-size: 15px; color: var(--muted); max-width: 62ch; }
.card__result { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(35, 39, 53, 0.08); font-size: 14px; color: var(--muted); }
.card__result strong { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); margin-right: 4px; font-variant-numeric: tabular-nums; }

/* Awards and certifications lists */
.list { display: grid; gap: 0; margin-top: 4px; }
.list li { padding: 12px 0; border-top: 1px solid rgba(35, 39, 53, 0.08); }
.list li:first-child { border-top: 0; padding-top: 6px; }
.list strong { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.list span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }

/* Brand chips */
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.chips li { padding: 18px 12px; text-align: center; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }

/* About */
.about { max-width: 820px; margin: 0 auto; padding: clamp(24px, 4vw, 40px); border-radius: 20px; }
.section__head:only-child h2::after, #about .section__head h2::after { content: ""; display: block; width: 64px; height: 3px; margin: 14px auto 0; border-radius: 3px; background: linear-gradient(90deg, var(--blue), var(--violet)); }
.about p { font-size: 16px; }
.about p + p { margin-top: 16px; }
.about .about__inspo { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(35, 39, 53, 0.08); font-weight: 600; }
.about__inspo span { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }

.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; max-width: 1120px; margin: 0 auto; padding: 28px var(--gutter) 40px; font-size: 14px; color: var(--muted); }
.footer a { font-weight: 600; color: var(--ink); text-decoration: none; }
.footer a:hover { color: var(--blue); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.25s ease, background 0.25s ease; }
.row.reveal.is-in:hover, .card.reveal.is-in:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero h1 { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .results { box-shadow: var(--shadow), 10px 10px 0 rgba(166, 187, 217, 0.35); margin-right: 10px; }
}
@media (max-width: 440px) {
  .hero__actions { grid-template-columns: 1fr; }
  .btn--primary { grid-column: auto; }
  .chips li { padding: 14px 8px; }
}

.about__inspo a { text-decoration: underline; text-decoration-color: rgba(53, 102, 201, 0.4); text-underline-offset: 3px; }
.about__inspo a:hover { color: var(--blue); }

.hero__actions .btn:nth-child(2):last-child { grid-column: 1 / -1; }

/* Passcode gate */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(238, 240, 248, 0.6); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
html:not(.unlocked) body { overflow: hidden; }
html:not(.unlocked) main, html:not(.unlocked) .footer { visibility: hidden; }
html.unlocked .gate { display: none; }
.gate__card { width: min(380px, 100%); padding: 32px 28px; border-radius: 20px; display: grid; gap: 14px; text-align: center; }
.gate__card h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.gate__hint { font-size: 14.5px; color: var(--muted); margin-top: -6px; }
.gate__card .kicker { justify-content: center; }
.gate__card input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(35, 39, 53, 0.15); background: rgba(255, 255, 255, 0.9); font: inherit; font-size: 18px; letter-spacing: 0.3em; text-align: center; color: var(--ink); }
.gate__card input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.gate__card .btn--primary { grid-column: auto; width: 100%; }
.gate__error { font-size: 14px; color: #b42318; }
