:root {
  --navy: #08111f;
  --navy-soft: #0d1a2b;
  --ink: #101820;
  --blue: #2d68f5;
  --blue-bright: #5d8cff;
  --paper: #f2f0ea;
  --white: #f8fafc;
  --muted-dark: #8290a1;
  --muted-light: #69717a;
  --line-dark: rgba(255,255,255,.15);
  --line-light: rgba(8,17,31,.16);
  --header: 76px;
  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 20px); }
body { margin: 0; background: var(--navy); color: var(--white); font-family: Inter, Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.55; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img { max-width: 100%; }
.container { width: min(var(--container), calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--white); color: var(--navy); transition: top .2s; }
.skip-link:focus { top: 12px; }

.site-header { position: fixed; inset: 0 0 auto; height: var(--header); z-index: 50; border-bottom: 1px solid var(--line-dark); background: rgba(8,17,31,.82); backdrop-filter: blur(18px); transition: background .25s; }
.site-header.scrolled { background: rgba(8,17,31,.96); }
.header-inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 34px; }
.wordmark { display: inline-flex; flex-direction: column; width: max-content; line-height: 1.05; }
.wordmark-name { font-size: 16px; font-weight: 720; letter-spacing: -.025em; }
.wordmark-role { margin-top: 5px; color: var(--muted-dark); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 2vw, 32px); }
.desktop-nav a { color: #b7c0cc; font-size: 13px; transition: color .2s; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--white); }
.header-cta { justify-self: end; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border: 1px solid var(--blue); background: var(--blue); color: #fff; font-size: 14px; font-weight: 650; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { background: #174fda; border-color: #174fda; transform: translateY(-2px); }
.button-small { min-height: 40px; padding-inline: 18px; font-size: 13px; }
.button-outline { background: transparent; border-color: var(--line-light); color: var(--ink); }
.button-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.menu-toggle { display: none; justify-self: end; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-dark); background: none; color: var(--white); cursor: pointer; }
.menu-toggle span { display: block; width: 18px; height: 1px; margin: 5px auto; background: currentColor; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
.mobile-menu { position: fixed; top: var(--header); inset-inline: 0; height: calc(100dvh - var(--header)); background: var(--navy); }
.mobile-menu nav { display: flex; flex-direction: column; padding-top: 24px; }
.mobile-menu a { padding: 17px 0; border-bottom: 1px solid var(--line-dark); font-size: 22px; letter-spacing: -.02em; }

.hero { min-height: 100svh; padding: calc(var(--header) + 54px) 0 42px; background: radial-gradient(circle at 78% 18%, rgba(47,109,255,.2), transparent 27%), var(--navy); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(310px, .68fr); column-gap: clamp(48px, 7vw, 112px); align-items: center; }
.hero-copy { padding: 28px 0 32px; }
.overline { margin: 0; color: var(--blue-bright); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 26px 0 32px; font-size: clamp(74px, 9.7vw, 148px); font-weight: 760; letter-spacing: -.085em; line-height: .78; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.56); }
.hero-lead { max-width: 760px; margin: 0; color: #c5cfdb; font-size: clamp(19px, 2vw, 27px); line-height: 1.4; letter-spacing: -.02em; }
.hero-actions { display: flex; align-items: center; gap: 32px; margin-top: 42px; }
.text-link { display: inline-flex; gap: 16px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-dark); color: #d4dbe4; font-size: 14px; }
.portrait { margin: 0; min-width: 0; }
.portrait-frame { position: relative; padding: 10px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.03); }
.portrait-frame::before { content: ""; position: absolute; inset: -18px 26% auto -18px; height: 42%; border-top: 1px solid rgba(93,140,255,.68); border-left: 1px solid rgba(93,140,255,.68); pointer-events: none; }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 2/3; object-fit: cover; object-position: 50% 48%; filter: saturate(.82) contrast(1.06); }
.portrait figcaption { max-width: 260px; margin-top: 18px; color: var(--muted-dark); font-size: 12px; line-height: 1.45; }
.hero-directions { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; border-top: 1px solid var(--line-dark); }
.hero-directions div { display: grid; grid-template-columns: 1fr; padding-top: 18px; }
.hero-directions strong { font-size: 14px; font-weight: 560; }

.section { padding: clamp(94px, 10vw, 150px) 0; }
.split-heading { display: grid; grid-template-columns: minmax(190px, .42fr) 1fr; gap: 48px; align-items: start; margin-bottom: clamp(62px, 7vw, 96px); }
.split-heading h2, .contact h2 { margin: 0; font-size: clamp(45px, 6vw, 82px); font-weight: 680; line-height: .98; letter-spacing: -.06em; }
.about, .projects, .publications { background: var(--paper); color: var(--ink); }
.about .overline, .projects .overline, .publications .overline { color: var(--blue); }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .65fr); gap: clamp(60px, 11vw, 170px); padding-bottom: clamp(70px, 8vw, 110px); }
.about-intro { margin: 0; font-size: clamp(28px, 3.3vw, 47px); line-height: 1.16; letter-spacing: -.045em; }
.about-copy { max-width: 500px; color: var(--muted-light); font-size: 17px; }
.about-copy p:first-child { margin-top: 0; }
.about-copy p:last-child { margin-bottom: 0; }
.principle { padding: clamp(46px, 6vw, 78px) 0 0; border-top: 1px solid var(--line-light); }
.principle p { max-width: 1100px; margin: 0; font-size: clamp(34px, 5.2vw, 72px); line-height: 1.08; letter-spacing: -.055em; }
.principle em { color: var(--blue); font-style: normal; }

.expertise { background: var(--navy); }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.capability { min-height: 240px; padding: 30px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: var(--navy); transition: background .22s, transform .22s; }
.capability:hover { position: relative; z-index: 1; background: var(--navy-soft); transform: translateY(-4px); }
.capability-featured { background: var(--blue); }
.capability-featured:hover { background: #245cdd; }
.capability h3 { margin: 0 0 18px; font-size: 25px; line-height: 1.1; letter-spacing: -.035em; }
.capability p { max-width: 320px; margin: 0; color: #98a7b8; font-size: 15px; }
.capability-featured p { color: #fff; }

.experience { background: #0b1625; }
.experience-list { border-top: 1px solid var(--line-dark); }
.experience-row { display: grid; grid-template-columns: .44fr .92fr 1fr; gap: 42px; align-items: start; padding: 38px 0 42px; border-bottom: 1px solid var(--line-dark); }
.experience-label { margin: 4px 0 0; color: var(--blue-bright); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.experience-row h3 { margin: 0; font-size: clamp(24px, 2.7vw, 36px); line-height: 1.08; letter-spacing: -.04em; }
.experience-row > p:last-child { max-width: 500px; margin: 0; color: #99a8b9; font-size: 16px; }

.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project-card { position: relative; min-height: 530px; padding: 28px; overflow: hidden; }
.project-dark { background: var(--navy); color: var(--white); }
.project-blue { background: var(--blue); color: #fff; }
.project-light { background: #dedbd3; color: var(--ink); }
.project-top { display: flex; justify-content: space-between; padding-bottom: 20px; border-bottom: 1px solid currentColor; opacity: .58; font: 11px/1 ui-monospace, monospace; text-transform: uppercase; }
.project-card h3 { position: relative; z-index: 2; margin: 58px 0 20px; font-size: clamp(32px, 3.3vw, 48px); line-height: .98; letter-spacing: -.055em; }
.project-card p { position: relative; z-index: 2; max-width: 320px; margin: 0; font-size: 15px; }
.project-light p { color: #4f5963; }
.server-visual { position: absolute; inset: auto 26px 28px; display: grid; gap: 7px; transform: perspective(500px) rotateX(54deg) rotateZ(-8deg); transform-origin: bottom; }
.server-visual i { display: block; height: 25px; border: 1px solid rgba(93,140,255,.65); background: linear-gradient(90deg, transparent 8%, rgba(93,140,255,.24) 8% 12%, transparent 12% 88%, rgba(93,140,255,.7) 88% 90%, transparent 90%); }
.network-visual { position: absolute; inset: auto 20px 36px; height: 120px; }
.network-visual::before, .network-visual::after { content: ""; position: absolute; inset: 50% 8%; height: 1px; background: rgba(255,255,255,.45); transform: rotate(10deg); }
.network-visual::after { transform: rotate(-12deg); }
.network-visual i { position: absolute; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--blue); }
.network-visual i:nth-child(1){left:8%;top:50%}.network-visual i:nth-child(2){left:28%;top:24%}.network-visual i:nth-child(3){left:50%;top:65%}.network-visual i:nth-child(4){right:25%;top:20%}.network-visual i:nth-child(5){right:7%;top:48%}
.cloud-visual { position: absolute; inset: auto 26px 32px; height: 135px; }
.cloud-visual span { position: absolute; display: block; border: 1px solid rgba(8,17,31,.48); }
.cloud-visual span:nth-child(1){inset:15px 52px 35px 8px}.cloud-visual span:nth-child(2){inset:35px 24px 15px 36px}.cloud-visual span:nth-child(3){width:34px;height:34px;right:8px;top:5px;background:var(--blue);border-color:var(--blue)}

.publication-list { border-top: 1px solid var(--line-light); }
.publication-row { display: grid; grid-template-columns: .42fr 1fr 42px; gap: 32px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line-light); position: relative; transition: color .2s; }

.pub-source { font-size: 13px; font-weight: 650; }
.pub-source span { display: block; margin-top: 5px; color: var(--muted-light); font-size: 11px; font-weight: 400; }
.publication-row h3 { max-width: 780px; margin: 0; font-size: clamp(20px, 2vw, 27px); font-weight: 570; line-height: 1.23; letter-spacing: -.028em; }
.pub-arrow { justify-self: end; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-light); font-size: 16px; }
.publications-footer { margin-top: 42px; text-align: right; }

.contact { padding: clamp(90px, 10vw, 145px) 0 34px; background: var(--blue); color: #fff; }
.contact .overline { color: rgba(255,255,255,.78); }
.contact-grid { display: grid; grid-template-columns: minmax(190px, .42fr) 1fr; gap: 48px; }
.contact-main h2 { font-size: clamp(60px, 8.5vw, 120px); }
.contact-main > p { max-width: 570px; margin: 34px 0 48px; color: #fff; font-size: 19px; }
.contact-link { display: inline-flex; gap: 44px; align-items: center; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.55); font-size: 16px; font-weight: 650; }
.footer-bottom { display: grid; grid-template-columns: 1fr auto auto; align-items: end; gap: 58px; margin-top: 120px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.28); }
.footer-bottom p { margin: 0; font-size: 12px; }
.footer-wordmark .wordmark-role { color: rgba(255,255,255,.7); }

.reveal { opacity: 1; }
.reveal.reveal-pending { opacity: 0; }
.reveal.reveal-enter { animation: reveal-in .5s ease both; animation-delay: var(--reveal-delay, 0ms); }
@keyframes reveal-in { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
.desktop-nav a[aria-current="location"], .mobile-menu a[aria-current="location"] { color: #8db0ff; }
.desktop-nav a { position: relative; }
.desktop-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px; background: currentColor; scale: 0 1; transform-origin: left; transition: scale .2s; }
.desktop-nav a[aria-current="location"]::after { scale: 1 1; }
.pub-arrow, .text-link span, .contact-link span, .button span { transition: translate .2s; }
.publication-row::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 1px; background: var(--blue); scale: 0 1; transform-origin: left; transition: scale .25s; }
.publication-row:focus-visible::after { scale: 1 1; }
.server-visual, .network-visual, .cloud-visual { transition: translate .55s ease; }
.project-card { transition: box-shadow .2s; }
@media (hover: hover) and (pointer: fine) {
  .publication-row:hover { color: var(--blue); }
  .publication-row:hover::after { scale: 1 1; }
  .publication-row:hover .pub-arrow, .contact-link:hover span, .button:hover span { translate: 3px -3px; }
  .text-link:hover span { translate: 3px 3px; }
  .project-card:hover { box-shadow: inset 0 0 0 1px #8db0ff; }
  .project-card:hover .server-visual, .project-card:hover .network-visual, .project-card:hover .cloud-visual { translate: 0 -4px; }
}
@media (prefers-reduced-motion: no-preference) {
  .button:active, .menu-toggle:active { transform: scale(.98); }
}
:focus-visible { outline: 2px solid #8db0ff; outline-offset: 4px; }

@media (max-width: 1020px) {
  .desktop-nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto auto; }
  .menu-toggle { display: block; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(270px, .65fr); column-gap: 46px; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 430px; }
  .project-card h3 { font-size: 46px; }
  .project-card p { max-width: 440px; }
  .server-visual, .network-visual, .cloud-visual { left: 57%; }
}

@media (max-width: 720px) {
  :root { --header: 64px; }
  .container { width: min(100% - 32px, var(--container)); }
  .header-cta { display: none; }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .wordmark { width: auto; min-width: 0; max-width: calc(100vw - 88px); overflow: hidden; }
  .wordmark-role { margin-top: 4px; overflow: hidden; font-size: 10.5px; letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
  .hero { padding: calc(var(--header) + 28px) 0 34px; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; }
  .hero-copy { display: contents; }
  .hero .overline { order: 1; }
  .hero h1 { order: 2; margin: 20px 0 24px; font-size: clamp(58px, 18vw, 72px); line-height: .82; }
  .hero-lead { order: 3; font-size: 18px; line-height: 1.42; }
  .hero-actions { order: 4; flex-wrap: wrap; margin-top: 24px; }
  .portrait { order: 5; width: min(72%, 300px); margin: 36px auto 28px; }
  .portrait-frame { aspect-ratio: 4 / 5; }
  .portrait img { height: 100%; aspect-ratio: auto; }
  .portrait figcaption { display: none; }
  .hero-directions { order: 6; grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
  .hero-directions div { padding: 13px 0; border-bottom: 1px solid var(--line-dark); }
  .section { padding: 60px 0; }
  .split-heading, .contact-grid { grid-template-columns: 1fr; gap: 22px; margin-bottom: 36px; }
  .split-heading h2 { font-size: clamp(38px, 11vw, 48px); line-height: 1; }
  .split-heading h2 br, .experience-row h3 br, .project-card h3 br { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-grid { padding-bottom: 52px; }
  .about-intro { font-size: 27px; }
  .principle { padding-top: 40px; }
  .principle p { font-size: 32px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability { min-height: 0; padding: 24px; }
  .capability h3 { margin-top: 0; }
  .experience-row { grid-template-columns: 1fr; gap: 14px; padding: 26px 0 30px; }
  .experience-label { margin-bottom: 10px; }
  .project-card { min-height: 380px; padding: 24px; }
  .project-card h3 { margin-top: 36px; font-size: 34px; }
  .server-visual, .network-visual, .cloud-visual { left: 24px; }
  .publication-row { grid-template-columns: 1fr 38px; gap: 12px 16px; padding: 20px 0; }
  .pub-source { grid-column: 1/-1; }
  .pub-source span { display: inline; margin-left: 8px; }
  .publication-row h3 { font-size: 19px; }
  .publications-footer { text-align: left; }
  .contact { padding: 60px 0 max(28px, env(safe-area-inset-bottom)); }
  .contact-main h2 { font-size: clamp(48px, 14vw, 60px); }
  .contact-main > p { margin: 26px 0 34px; font-size: 18px; }
  .footer-bottom { grid-template-columns: 1fr auto; gap: 20px; margin-top: 64px; }
  .footer-bottom > p:first-of-type { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal.reveal-pending, .reveal.reveal-enter { opacity: 1; animation: none; translate: none; }
  *, *::before, *::after { transition-delay: 0s !important; }
  .capability:hover, .button:hover { transform: none; }
  .pub-arrow, .text-link span, .contact-link span, .button span, .server-visual, .network-visual, .cloud-visual { translate: none !important; }
}
