:root {
  --ink: #122033;
  --ink-soft: #506078;
  --navy: #071a30;
  --navy-2: #0b2948;
  --blue: #315f89;
  --blue-soft: #7f9db8;
  --paper: #f3f6f8;
  --white: #fbfcfd;
  --line: #d4dde5;
  --mono: "DM Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Noto Sans SC", system-ui, sans-serif;
  --page: min(1240px, calc(100vw - 96px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 2px;
  background: rgba(255,255,255,.08);
}
.scroll-progress span { display: block; width: 0; height: 100%; background: #a7c9e6; }

.site-header {
  position: fixed;
  top: 2px;
  left: 0;
  right: 0;
  z-index: 90;
  height: 60px;
  padding: 0 max(48px, calc((100vw - 1240px)/2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #eef5fa;
  border-bottom: 1px solid rgba(255,255,255,.13);
  transition: background .35s ease, height .35s ease, backdrop-filter .35s ease;
}
.site-header.scrolled { height: 52px; background: rgba(7,26,48,.93); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 13px; width: max-content; }
.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  font: 500 11px/1 var(--mono);
  letter-spacing: .06em;
}
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-size: 14px; letter-spacing: .06em; }
.brand-copy small { color: #92a9bd; font: 300 9px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.desktop-nav { display: flex; gap: 24px; }
.desktop-nav a { position: relative; padding: 18px 0 17px; color: #bdcbd7; font-size: 13px; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; bottom: 11px; width: 0; height: 1px; background: #d8e9f6; transition: width .25s ease; }
.desktop-nav a:hover, .desktop-nav a.active { color: white; }
.desktop-nav a:hover::after, .desktop-nav a.active::after { width: 100%; }
.header-contact { justify-self: end; color: #dce9f3; font-size: 12px; letter-spacing: .05em; }
.header-contact span { margin-left: 6px; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 24px; }
.lang-toggle {
  height: 30px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #d8e5ee;
  cursor: pointer;
  font: 400 9px/1 var(--mono);
  letter-spacing: .08em;
}
.lang-toggle i { width: 16px; height: 1px; background: #58748b; transition: width .2s ease; }
.lang-toggle:hover i { width: 22px; background: #a5bdd0; }
.lang-next { color: #70899d; }
.menu-toggle, .mobile-nav { display: none; }

.hero {
  position: relative;
  min-height: 840px;
  height: 100svh;
  overflow: hidden;
  background: var(--navy);
  color: white;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7,26,48,.96) 0%, rgba(7,26,48,.83) 40%, rgba(7,26,48,.2) 76%, rgba(7,26,48,.36) 100%),
    linear-gradient(0deg, rgba(7,26,48,.9), transparent 35%),
    url("assets/software-architecture-hero.png") center/cover no-repeat;
  transform: scale(1.03);
  will-change: transform;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: .14;
  background-image: linear-gradient(rgba(181,211,233,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(181,211,233,.18) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 68%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: var(--page);
  height: 100%;
  margin: auto;
  padding: 92px 0 78px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .55fr);
  gap: 11vw;
  align-items: center;
}
.hero-profile-intro { display: flex; align-items: center; gap: clamp(24px, 3vw, 44px); margin: 29px 0 28px; }
.hero-portrait-slot {
  position: relative;
  flex: 0 0 clamp(132px, 13vw, 180px);
  aspect-ratio: 4 / 5;
  display: grid;
  place-content: center;
  gap: 9px;
  overflow: hidden;
  border: 1px solid rgba(178,205,225,.2);
  background:
    linear-gradient(145deg, rgba(132,169,196,.2), rgba(7,26,48,.68)),
    repeating-linear-gradient(135deg, transparent 0 12px, rgba(181,211,233,.05) 12px 13px);
  color: #a8bfd0;
  text-align: center;
}
.hero-portrait-slot::before {
  content: "";
  width: 48px;
  height: 48px;
  margin: 0 auto 2px;
  border: 1px solid rgba(181,211,233,.32);
  border-radius: 50%;
  background: rgba(181,211,233,.08);
}
.hero-portrait-slot::after { content: ""; position: absolute; inset: auto 14% 12% 14%; height: 25%; border: 1px solid rgba(181,211,233,.22); border-bottom: 0; border-radius: 50% 50% 0 0; }
.hero-portrait-slot span { font: 400 8px/1 var(--mono); letter-spacing: .14em; }
.hero-portrait-slot small { color: #6f8ca3; font-size: 9px; }
.hero-portrait-slot img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.signal-label { display: flex; align-items: center; gap: 10px; color: #9eb9ce; font: 400 10px/1 var(--mono); letter-spacing: .19em; }
.signal-label span { position: relative; width: 22px; height: 1px; background: #82abc9; }
.signal-label span::after { content: ""; position: absolute; right: -1px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: #c5ddeb; box-shadow: 0 0 10px #9bc3df; }
.hero h1 { margin: 0; font-size: clamp(30px, 2.8vw, 42px); line-height: 1.2; letter-spacing: -.04em; font-weight: 600; }
.hero h1 em { color: #9fbad0; font-style: normal; font-weight: 300; }
.hero-copy > p { max-width: 650px; margin: 0; color: #aebfcd; font-size: 16px; line-height: 1.9; font-weight: 300; }
.hero-copy > p strong { color: white; font-weight: 500; }
.hero-actions { display: flex; align-items: center; gap: 34px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; min-width: 142px; height: 50px; padding: 0 19px; border: 1px solid transparent; font-size: 13px; transition: .25s ease; }
.button-primary { background: #e7eff5; color: #102741; }
.button-primary:hover { background: white; transform: translateY(-2px); }
.text-link { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.3); color: #d7e3ec; font-size: 13px; }
.text-link span { margin-left: 20px; transition: margin .2s ease; }
.text-link:hover span { margin-left: 26px; }
.hero-contact-info {
  display: flex;
  gap: 42px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(181,207,226,.17);
}
.hero-contact-info a { display: grid; gap: 7px; }
.hero-contact-info span { color: #68869d; font: 400 8px/1 var(--mono); letter-spacing: .17em; }
.hero-contact-info strong { color: #b8cbd9; font: 400 11px/1.3 var(--mono); transition: color .2s ease; }
.hero-contact-info a:hover strong { color: #f3f7fa; }

.hero-console { align-self: end; margin-bottom: 35px; border: 1px solid rgba(178,205,225,.23); background: rgba(7,25,45,.52); backdrop-filter: blur(12px); }
.console-head, .console-row, .console-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.console-head { border-bottom: 1px solid rgba(178,205,225,.16); color: #809bb0; font: 400 9px/1 var(--mono); letter-spacing: .14em; }
.status-dot { display: flex; align-items: center; gap: 7px; color: #a8c9b9; }
.status-dot::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #82b69c; box-shadow: 0 0 8px #82b69c; }
.console-row { min-height: 63px; border-bottom: 1px solid rgba(178,205,225,.11); }
.console-row span { color: #7690a4; font-size: 11px; }
.console-row strong { color: #d8e4ed; font-size: 12px; font-weight: 400; }
.console-foot { gap: 9px; color: #668298; font: 400 8px/1 var(--mono); letter-spacing: .08em; }
.build-line { flex: 1; height: 2px; background: rgba(255,255,255,.1); }
.build-line i { display: block; width: 72%; height: 100%; background: #7599b6; }
.hero-bottom { position: absolute; z-index: 3; bottom: 0; left: 0; right: 0; height: 56px; display: grid; grid-template-columns: 1fr auto; align-items: center; border-top: 1px solid rgba(255,255,255,.13); }
.focus-strip { padding-left: max(48px, calc((100vw - 1240px)/2)); display: flex; gap: 36px; overflow: hidden; color: #728ba0; font: 400 9px/1 var(--mono); letter-spacing: .12em; white-space: nowrap; }
.focus-strip span:not(:last-child)::after { content: "/"; margin-left: 36px; color: #415b70; }
.scroll-cue { align-self: stretch; min-width: 240px; padding: 0 max(48px, calc((100vw - 1240px)/2)) 0 34px; display: flex; align-items: center; gap: 13px; border-left: 1px solid rgba(255,255,255,.13); color: #91a8ba; font: 400 9px/1 var(--mono); letter-spacing: .13em; }
.scroll-cue span { width: 1px; height: 25px; background: linear-gradient(#b8cedf 50%, transparent 50%); background-size: 100% 8px; animation: signalDrop 1.5s linear infinite; }
@keyframes signalDrop { to { background-position-y: 8px; } }

.section { position: relative; padding: 52px max(48px, calc((100vw - 1240px)/2)); }
.section-index { padding-bottom: 22px; border-bottom: 1px solid var(--line); color: #74879a; font: 400 10px/1 var(--mono); letter-spacing: .16em; }
.section-heading { margin: 62px 0 72px; }
.section-heading > p, .section-heading > div > p { margin: 0 0 16px; color: #56738f; font: 500 11px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 3.1vw, 46px); line-height: 1.28; letter-spacing: -.035em; font-weight: 500; }
.heading-row { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.about { background: var(--white); }
.about-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 11vw; }
.about-copy .lead { margin: 0 0 24px; color: #243c55; font-size: 21px; line-height: 1.85; }
.about-copy p:not(.lead) { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 2; }
.inline-links { display: flex; gap: 28px; margin-top: 36px; }
.inline-links a { padding-bottom: 7px; border-bottom: 1px solid #aab9c5; color: #234c72; font-size: 12px; }
.focus-panel { border-top: 2px solid #335f85; }
.panel-label { display: block; padding: 17px 0; color: #658098; font: 400 9px/1 var(--mono); letter-spacing: .15em; }
.focus-panel ol { margin: 0; padding: 0; list-style: none; }
.focus-panel li { display: grid; grid-template-columns: 38px 1fr; padding: 19px 0; border-top: 1px solid var(--line); }
.focus-panel li span { grid-row: 1 / 3; color: #7b91a3; font: 400 10px/1.5 var(--mono); }
.focus-panel li strong { font-size: 14px; font-weight: 500; }
.focus-panel li small { margin-top: 5px; color: #7b8b98; font-size: 11px; }
.metrics { margin-top: 100px; display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics div { padding: 32px; }
.metrics div:not(:last-child) { border-right: 1px solid var(--line); }
.metrics strong { display: block; color: #244e72; font: 400 36px/1 var(--mono); }
.metrics span { display: block; margin-top: 12px; color: #71808d; font-size: 11px; }

.resume { background: #edf2f5; }
.download-link { padding-bottom: 8px; border-bottom: 1px solid #8ba1b4; color: #345b7d; font-size: 12px; white-space: nowrap; }
.download-link span { margin-left: 16px; }
.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.resume-column h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding-bottom: 19px; border-bottom: 2px solid #365f84; font-size: 16px; font-weight: 500; }
.resume-column h3 span { color: #6d869c; font: 400 9px/1 var(--mono); letter-spacing: .12em; }
.timeline-item { display: grid; grid-template-columns: 126px 1fr; gap: 20px; padding: 28px 0 30px; border-bottom: 1px solid #cfd9e1; }
.timeline-item time { color: #314b63; font: 600 12px/1.4 var(--mono); }
.timeline-item h4 { margin: 0 0 8px; font-size: 16px; font-weight: 500; }
.timeline-item p { margin: 0 0 10px; color: #425870; font-size: 13px; }
.timeline-item small { color: #7b8995; font-size: 11px; line-height: 1.7; }
.education-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.education-title h4 { flex: 1; }
.education-title > span { flex: 0 0 auto; padding: 4px 7px; border: 1px solid #b9c8d4; color: #58738b; font: 400 9px/1 var(--mono); letter-spacing: .08em; }
.education-details { display: grid; gap: 7px; margin: 15px 0 0; padding: 14px 0 0; border-top: 1px solid #d5dee5; list-style: none; }
.education-details li { display: grid; grid-template-columns: 62px 1fr; gap: 10px; color: #71808d; font-size: 11px; line-height: 1.7; }
.education-details strong { color: #3f5970; font-weight: 500; }
.major-transition { position: relative; display: grid; grid-template-columns: 1fr 24px 1fr; align-items: stretch; gap: 10px; margin-top: 18px; }
.major-stage { padding: 16px; border: 1px solid #ced9e2; background: rgba(251,252,253,.52); }
.major-stage--after { border-color: #91abc0; background: #f7fafc; box-shadow: inset 3px 0 0 #315f89; }
.major-stage-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.major-stage-index { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #afc0ce; color: #58738b; font: 500 9px/1 var(--mono); }
.major-stage--after .major-stage-index { border-color: #315f89; background: #315f89; color: white; }
.major-stage-head small { display: block; margin-bottom: 4px; color: #788b9b; font: 400 8px/1 var(--mono); letter-spacing: .13em; }
.major-stage-head h5 { margin: 0; color: #173750; font-size: 13px; font-weight: 600; }
.major-stage > p { min-height: 65px; margin: 0; color: #596e80; font-size: 10px; line-height: 1.7; }
.major-stage ul { display: grid; gap: 8px; margin: 13px 0 0; padding: 13px 0 0; border-top: 1px solid #d9e1e7; list-style: none; }
.major-stage li { color: #71808d; font-size: 9px; line-height: 1.65; }
.major-stage li strong { display: block; margin-bottom: 2px; color: #3f5970; font-weight: 500; }
.major-transition-arrow { align-self: center; color: #527795; font: 400 18px/1 var(--mono); text-align: center; }
.major-transition-note { margin: 14px 0 0 !important; padding: 12px 14px; border-left: 2px solid #7695af; background: rgba(210,223,233,.34); color: #657789 !important; font-size: 10px !important; line-height: 1.75; }
.major-transition-note strong { color: #36556f; font-weight: 600; }
.early-education { border-bottom: 1px solid #cfd9e1; }
.education-item--compact { align-items: center; padding: 15px 0; border-bottom-color: #dbe2e7; }
.education-item--compact:last-child { border-bottom: 0; }
.education-item--compact h4 { margin: 0 0 4px; font-size: 13px; }
.education-item--compact p { margin: 0; color: #71808d; font-size: 10px; }
.skills-block { margin: 0 0 66px; padding: 34px 0; display: grid; grid-template-columns: 1fr 2fr; border-top: 1px solid #bdcad4; border-bottom: 1px solid #bdcad4; }
.skills-block .panel-label { padding-top: 0; }
.skills-block h3 { margin: 12px 0 0; font-size: 28px; font-weight: 500; }
.skill-lines p { margin: 0; padding: 12px 0; border-bottom: 1px solid #d3dce3; color: #4d6274; font: 400 12px/1.5 var(--mono); }
.skill-lines p:last-child { border: 0; }
.skill-lines span { display: inline-block; width: 80px; color: #1e405e; font-family: var(--sans); font-weight: 500; }

.honors { overflow: hidden; background: #0a2138; color: #edf4f8; }
.honors .section-index { border-color: rgba(255,255,255,.15); color: #7693aa; }
.honors .section-heading > p { color: #7899b4; }
.honors .section-heading h2 { color: #e8f0f5; font-weight: 400; }
.honors-glow { position: absolute; width: 600px; height: 600px; right: -170px; top: 60px; border-radius: 50%; background: rgba(50,98,138,.2); filter: blur(100px); }
.honors-list { position: relative; border-top: 1px solid rgba(255,255,255,.19); }
.honor-item { display: grid; grid-template-columns: 80px 1fr 100px 130px; align-items: center; min-height: 108px; border-bottom: 1px solid rgba(255,255,255,.13); transition: background .25s ease, padding .25s ease; }
.honor-item:hover { padding: 0 16px; background: rgba(255,255,255,.035); }
.honor-no { color: #5f7d94; font: 400 10px/1 var(--mono); }
.honor-item h3 { margin: 0 0 7px; font-size: 16px; font-weight: 400; }
.honor-item p { margin: 0; color: #718ba0; font-size: 11px; }
.honor-item time { color: #93a8b8; font: 400 11px/1 var(--mono); }
.honor-level { justify-self: end; color: #b7c9d5; font-size: 11px; }

.projects { background: var(--white); }
.heading-note { max-width: 350px; margin: 0 0 9px; color: #728291; font-size: 12px; line-height: 1.8; }
.project-list { display: grid; gap: 18px; }
.project-card { padding: 28px 32px 24px; border: 1px solid var(--line); background: #f8fafb; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.project-card:hover { transform: translateY(-4px); border-color: #94aabd; box-shadow: 0 18px 40px rgba(24,53,78,.08); }
.project-meta { display: flex; justify-content: space-between; color: #71879a; font: 400 9px/1 var(--mono); letter-spacing: .13em; }
.project-main { display: grid; grid-template-columns: 80px 1fr; align-items: start; padding: 35px 0 32px; }
.project-index { color: #879aaa; font: 300 29px/1 var(--mono); }
.project-main h3 { margin: 0 0 15px; font-size: clamp(25px,3vw,37px); font-weight: 500; letter-spacing: -.02em; }
.project-main p { max-width: 690px; margin: 0; color: #657585; font-size: 13px; line-height: 1.8; }
.project-foot { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; padding-top: 18px; border-top: 1px solid #d9e1e7; color: #687d8f; font-size: 11px; }
.tech-tags { display: flex; gap: 8px; }
.tech-tags i { padding: 5px 9px; border: 1px solid #cad6df; color: #536c82; font: normal 9px/1 var(--mono); }
.project-foot a { color: #214c70; }

.sports-preview { background: #e2eaf0; }
.sports-preview-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 9vw; align-items: start; }
.sports-preview .section-heading { margin-bottom: 0; }
.sports-summary { border-top: 2px solid #315f89; }
.sports-summary article { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 27px 0; border-bottom: 1px solid #c5d2dc; }
.sports-summary article > span { grid-row: 1 / 2; color: #6c8599; font: 400 11px/1.4 var(--mono); }
.sports-summary small { color: #67839a; font: 400 9px/1 var(--mono); letter-spacing: .13em; }
.sports-summary h3 { margin: 8px 0 6px; font-size: 20px; font-weight: 500; }
.sports-summary p { margin: 0; color: #607285; font-size: 12px; line-height: 1.7; }
.sports-awards { margin-top: 82px; }
.sports-awards-heading { display: flex; align-items: end; justify-content: space-between; padding-bottom: 20px; border-bottom: 2px solid #315f89; }
.sports-awards-heading span { color: #67839a; font: 400 9px/1 var(--mono); letter-spacing: .15em; }
.sports-awards-heading h3 { margin: 0; font-size: 24px; font-weight: 500; }
.sports-award-item { display: grid; grid-template-columns: 64px 1fr 90px 80px; align-items: center; gap: 16px; min-height: 112px; border-bottom: 1px solid #c5d2dc; }
.sports-award-item > span { color: #6c8599; font: 400 10px/1 var(--mono); }
.sports-award-item small { color: #67839a; font: 400 8px/1 var(--mono); letter-spacing: .12em; }
.sports-award-item h4 { margin: 8px 0 5px; font-size: 16px; font-weight: 500; }
.sports-award-item p { margin: 0; color: #687b8b; font-size: 11px; line-height: 1.6; }
.sports-award-item time { color: #607a90; font: 400 10px/1 var(--mono); }
.sports-award-item > strong { justify-self: end; color: #355b7b; font-size: 11px; font-weight: 500; }

.additional { background: var(--white); }
.additional-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.additional-item { position: relative; min-height: 190px; padding: 28px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s ease; }
.additional-item:hover { background: #edf3f6; }
.additional-item > span { color: #6b8397; font: 400 9px/1 var(--mono); letter-spacing: .13em; }
.additional-item h3 { margin: 36px 0 9px; font-size: 25px; font-weight: 500; }
.additional-item p { margin: 0; color: #687a89; font: 400 11px/1.5 var(--mono); overflow-wrap: anywhere; }
.additional-item b { position: absolute; top: 28px; right: 30px; color: #315f89; font-weight: 400; }

.contact { padding: 125px 48px; background: #dce7ee; text-align: center; }
.contact-inner { max-width: 850px; margin: auto; }
.contact .signal-label { justify-content: center; color: #597894; }
.contact h2 { margin: 35px 0 36px; color: #102c47; font-size: clamp(36px,4.3vw,58px); line-height: 1.28; letter-spacing: -.045em; font-weight: 400; }
.contact a { display: inline-flex; gap: 42px; padding: 13px 0; border-bottom: 1px solid #66839a; color: #294f70; font: 400 13px/1 var(--mono); }

footer { padding: 42px max(48px, calc((100vw - 1240px)/2)); display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: center; gap: 25px; background: #071a30; color: #a3b5c4; }
.footer-brand { color: #e7eef4; }
.footer-brand .brand-mark { width: 31px; height: 31px; }
.footer-brand strong { font-size: 12px; }
footer p, footer small { font-size: 10px; }
footer > div { display: flex; gap: 19px; }
footer > div a { color: #bac9d4; font-size: 10px; }
footer small { color: #657d91; }

.reveal { opacity: 0; transform: translateY(34px); transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
[data-stagger] > .reveal:nth-child(2), [data-stagger] > div:nth-child(2) { transition-delay: .08s; }
[data-stagger] > .reveal:nth-child(3), [data-stagger] > div:nth-child(3) { transition-delay: .16s; }
[data-stagger] > .reveal:nth-child(4), [data-stagger] > div:nth-child(4) { transition-delay: .24s; }

@media (max-width: 980px) {
  :root { --page: calc(100vw - 48px); }
  .site-header { padding: 0 24px; grid-template-columns: 1fr auto; }
  .desktop-nav, .header-contact { display: none; }
  .header-actions { position: absolute; right: 70px; }
  .menu-toggle { display: block; justify-self: end; border: 0; background: transparent; color: white; font-size: 23px; cursor: pointer; }
  .mobile-nav { position: absolute; top: 52px; left: 0; right: 0; padding: 12px 24px 24px; display: grid; gap: 0; background: rgba(7,26,48,.98); border-bottom: 1px solid rgba(255,255,255,.15); opacity: 0; transform: translateY(-10px); pointer-events: none; transition: .2s ease; }
  .mobile-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .mobile-nav a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; }
  .hero { min-height: 760px; height: auto; }
  .hero-inner { min-height: 760px; padding: 84px 0 76px; grid-template-columns: 1fr; align-content: center; gap: 45px; }
  .hero-console { width: min(100%, 460px); margin: 0; }
  .hero h1 { font-size: clamp(29px, 4.8vw, 38px); }
  .hero-bottom { grid-template-columns: 1fr; height: 46px; }
  .scroll-cue { display: none; }
  .focus-strip { padding: 0 24px; }
  .section { padding: 44px 24px; }
  .about-layout { gap: 50px; }
  .metrics div { padding: 24px 18px; }
  .resume-grid { gap: 45px; }
  .sports-preview-layout { gap: 50px; }
  footer { padding: 36px 24px; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .brand-copy small { display: none; }
  .site-header { width: 100%; max-width: 100vw; }
  .menu-toggle { position: absolute; top: 50%; right: 24px; transform: translateY(-50%); width: 36px; height: 36px; padding: 0; text-align: center; }
  .hero-backdrop { background: linear-gradient(90deg, rgba(7,26,48,.94), rgba(7,26,48,.68)), url("assets/software-architecture-hero.png") 63% center/cover no-repeat; }
  .hero-inner { width: calc(100% - 48px); max-width: calc(100% - 48px); margin: 0 24px; min-height: 800px; padding: 72px 0 62px; display: block; }
  .hero-copy, .hero-console { width: 100%; max-width: 100%; min-width: 0; }
  .hero-profile-intro { gap: 12px; margin-top: 24px; }
  .hero-portrait-slot { flex-basis: 82px; }
  .hero h1 { font-size: clamp(19px, 5.8vw, 27px); }
  .hero-copy > p { font-size: 14px; }
  .hero-contact-info { gap: 20px; justify-content: space-between; }
  .hero-contact-info strong { font-size: 9px; }
  .hero-console { margin-top: 54px; }
  .console-row { gap: 18px; }
  .console-row strong { min-width: 0; text-align: right; }
  .focus-strip { gap: 22px; }
  .focus-strip span:not(:last-child)::after { margin-left: 22px; }
  .section { padding-top: 36px; padding-bottom: 36px; }
  .section-heading { margin: 45px 0 50px; }
  .section-heading h2 { font-size: 28px; }
  .heading-row { display: block; }
  .download-link { display: inline-block; margin-top: 28px; }
  .heading-note { margin-top: 24px; }
  .about-layout, .resume-grid { grid-template-columns: 1fr; }
  .inline-links { flex-direction: column; align-items: flex-start; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics div:nth-child(2) { border-right: 0; }
  .metrics div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .education-details li { grid-template-columns: 58px 1fr; }
  .major-transition { grid-template-columns: 1fr; gap: 9px; }
  .major-transition-arrow { transform: rotate(90deg); }
  .major-stage > p { min-height: 0; }
  .education-item--compact { grid-template-columns: 1fr auto; }
  .education-item--compact time { grid-column: 2; grid-row: 1; text-align: right; }
  .education-item--compact div { grid-column: 1; grid-row: 1; }
  .skills-block { grid-template-columns: 1fr; gap: 28px; }
  .sports-preview-layout { grid-template-columns: 1fr; }
  .sports-awards { margin-top: 58px; }
  .sports-award-item { grid-template-columns: 40px 1fr auto; padding: 22px 0; }
  .sports-award-item time { justify-self: end; }
  .sports-award-item > strong { grid-column: 2 / 4; justify-self: start; }
  .additional-grid { grid-template-columns: 1fr; }
  .honor-item { grid-template-columns: 45px 1fr auto; padding: 22px 0; }
  .honor-item time { justify-self: end; }
  .honor-level { grid-column: 2 / 4; justify-self: start; margin-top: 10px; }
  .project-card { padding: 23px 20px; }
  .project-main { grid-template-columns: 45px 1fr; }
  .project-foot { grid-template-columns: 1fr auto; gap: 17px; }
  .tech-tags { grid-column: 1 / 3; grid-row: 2; }
  .contact { padding: 95px 24px; }
  .contact h2 { font-size: 33px; }
  .contact a { gap: 18px; font-size: 11px; }
  footer { grid-template-columns: 1fr; text-align: left; }
}

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