:root {
  --ink: #101114;
  --muted: #62656c;
  --line: #d9d9d5;
  --paper: #f7f7f5;
  --surface: #ffffff;
  --soft: #ecece8;
  --blue: #2357d9;
  --blue-dark: #173ca1;
  --dark: #16181d;
  --font-display: "Archivo", sans-serif;
  --font-body: "Space Grotesk", sans-serif;
  --container: 1180px;
  --radius: 18px;
  --hero-accent: #b4b794;
  color-scheme: light;
}

html[data-theme="dark"] {
  --ink: #f4f4f1;
  --muted: #a7a9b0;
  --line: #34363d;
  --paper: #111216;
  --surface: #181a1f;
  --soft: #26282e;
  --blue: #5f86f5;
  --blue-dark: #7898f6;
  --dark: #0b0c0f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
main section { scroll-margin-top: 112px; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
a, button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(35,87,217,.45); outline-offset: 4px; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; padding: 10px 14px; background: var(--ink); color: white; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.nav { position: fixed; z-index: 100; top: 0; left: 0; right: 0; }
.nav-inner { width: min(calc(100% - 48px), 1180px); height: 76px; margin: auto; padding: 0 18px; display: flex; align-items: center; gap: 28px; background: transparent; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transition: box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.nav.is-scrolled .nav-inner { background: color-mix(in srgb, var(--surface) 96%, transparent); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; box-shadow: 0 12px 36px rgba(16,17,20,.08); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; margin-right: auto; font-family: var(--font-display); font-weight: 700; }
.brand > span:last-child { display: none; }
.brand-mark { display: block; width: auto; height: auto; color: var(--ink); background: transparent; border-radius: 0; font-size: 24px; line-height: 1; letter-spacing: -.06em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: #4e5057; font-size: 14px; font-weight: 500; transition: color .2s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { padding: 0; color: var(--ink); background: transparent; border-radius: 0; font-size: 13px; font-weight: 600; transition: color .2s ease; }
.nav-cta:hover { color: var(--blue); background: transparent; }
.nav-toggle { display: none; width: 42px; height: 42px; padding: 0; border: 0; background: transparent; }
.nav-toggle span { display: block; width: 19px; height: 1px; margin: 5px auto; background: var(--ink); transition: transform .2s ease; }
.theme-toggle { position: relative; flex: 0 0 auto; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 10px; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.theme-toggle:hover { background: var(--soft); border-color: var(--muted); }
.theme-icon { position: absolute; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; transition: opacity .2s ease, transform .2s ease; }
.theme-icon-moon { opacity: 0; transform: rotate(-20deg) scale(.7); }
html[data-theme="dark"] .theme-icon-sun { opacity: 0; transform: rotate(20deg) scale(.7); }
html[data-theme="dark"] .theme-icon-moon { opacity: 1; transform: rotate(0) scale(1); }
html[data-theme="dark"] .nav:not(.is-scrolled) .brand-mark { color: #f4f4f1; }
html[data-theme="dark"] .nav:not(.is-scrolled) .nav-links a { color: #3a3c43; }
html[data-theme="dark"] .nav:not(.is-scrolled) .nav-links a:hover { color: #101114; }
html[data-theme="dark"] .nav:not(.is-scrolled) .nav-cta { color: #3a3c43; }
html[data-theme="dark"] .nav:not(.is-scrolled) .nav-cta:hover { color: var(--blue); }
html[data-theme="dark"] .nav:not(.is-scrolled) .theme-toggle { color: #3a3c43; border-color: rgba(16,17,20,.16); }
html[data-theme="dark"] .nav:not(.is-scrolled) .theme-toggle:hover { background: rgba(16,17,20,.06); border-color: rgba(16,17,20,.28); }
html[data-theme="dark"] .nav.is-scrolled .nav-inner { background: rgba(24,26,31,.97); border-color: var(--line); box-shadow: 0 12px 36px rgba(0,0,0,.28); }
html[data-theme="dark"] .nav.is-scrolled .brand-mark,
html[data-theme="dark"] .nav.is-scrolled .nav-cta,
html[data-theme="dark"] .nav.is-scrolled .nav-links a,
html[data-theme="dark"] .nav.is-scrolled .theme-toggle { color: var(--ink); }
html[data-theme="dark"] .nav.is-scrolled .nav-links a:hover { color: white; }
html[data-theme="dark"] .nav.is-scrolled .theme-toggle { border-color: var(--line); }

.hero { position: relative; height: 100svh; min-height: 620px; max-height: 820px; padding: 0; overflow: hidden; background: #c9c9c9; }
.hero::before { content: ""; position: absolute; z-index: 1; inset: 0 auto 0 0; width: 46.8%; background: rgba(238,239,236,.85); clip-path: polygon(0 0,78% 0,100% 50%,78% 100%,0 100%); }
.hero-cover { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: 100% 46%; }
.hero-panel { position: absolute; z-index: 2; inset: 0 auto 0 0; width: 46%; background: var(--surface); clip-path: polygon(0 0,78% 0,100% 50%,78% 100%,0 100%); }
.hero-intro { position: absolute; z-index: 3; top: 50%; left: max(20px, calc((100vw - 1180px) / 2)); width: min(430px, calc(46vw - max(20px, calc((100vw - 1180px) / 2)) - 46px)); padding-right: 16px; box-sizing: border-box; transform: translateY(-36%); }
.hero-kicker { margin: 0 0 22px; color: var(--hero-accent); font-size: 13px; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 24px; color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.status-dot { flex: 0 0 auto; width: 8px; height: 8px; background: #1da96b; border-radius: 50%; box-shadow: 0 0 0 4px rgba(29,169,107,.12); }
h1, h2, h3 { margin-top: 0; font-family: var(--font-display); line-height: 1.08; letter-spacing: -.045em; }
h1 { max-width: 800px; margin-bottom: 30px; font-size: clamp(48px,6.1vw,84px); font-weight: 600; }
.hero-intro h1 { width: 100%; max-width: 100%; margin: 0; color: var(--ink); font-size: clamp(38px,3.2vw,48px); font-weight: 700; line-height: 1.08; letter-spacing: -.055em; }
.hero-animated-line > span { color: var(--hero-accent); }
.hero-animated-line { min-height: 156px; display: block; color: var(--ink); white-space: pre-line; }
.hero-animated-line::after { content: ""; width: 2px; height: .88em; margin-left: 5px; display: inline-block; vertical-align: -.04em; background: var(--hero-accent); animation: hero-cursor-blink .78s steps(1,end) infinite; }
@keyframes hero-cursor-blink { 0%,48% { opacity: 1; } 49%,100% { opacity: 0; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { min-height: 50px; padding: 13px 19px; display: inline-flex; justify-content: center; align-items: center; gap: 30px; border: 1px solid transparent; border-radius: 11px; font-size: 14px; font-weight: 600; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.button-primary { color: white; background: var(--blue); }
.button-primary:hover { background: var(--blue-dark); }
.button-secondary { border-color: var(--line); background: transparent; }
.button-secondary:hover { border-color: var(--ink); }
.proof-strip { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 76px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-strip div { padding: 30px 28px; display: flex; align-items: center; gap: 18px; }
.proof-strip div + div { border-left: 1px solid var(--line); }
.proof-strip strong { font-family: var(--font-display); font-size: 30px; letter-spacing: -.04em; }
.proof-strip span { max-width: 150px; color: var(--muted); font-size: 13px; line-height: 1.35; }

.section { padding: 132px 0; }
.section-heading { max-width: 720px; margin-bottom: 60px; }
.section-heading-wide { max-width: 900px; }
.section-heading h2, .contact h2 { margin-bottom: 22px; font-size: clamp(40px,5.2vw,66px); font-weight: 600; }
.section-heading > p:last-child { max-width: 660px; margin: 0; color: var(--muted); font-size: 18px; }

.work { background: var(--surface); }
.work-heading { max-width: none; display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; margin-bottom: clamp(64px, 8vw, 96px); }
.work-heading h2 { margin-bottom: 0; }

.featured-projects { display: grid; gap: clamp(72px, 10vw, 120px); }
.featured-project { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.featured-project-reverse { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.featured-project-content { min-width: 0; max-width: 520px; }
.featured-project-reverse .featured-project-content { justify-self: end; }
.featured-project-label { margin: 0 0 18px; color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.featured-project-content h3 { margin: 0 0 22px; font-size: clamp(32px, 3.4vw, 44px); font-weight: 600; letter-spacing: -.04em; line-height: 1.08; }
.featured-project-content > p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.featured-project-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 32px; }
.featured-project-media { position: relative; display: block; min-width: 0; aspect-ratio: 16 / 11; overflow: hidden; background: var(--soft); border: 1px solid var(--line); border-radius: calc(var(--radius) + 2px); box-shadow: 0 24px 60px rgba(16,17,20,.08); transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.featured-project-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .45s ease; }
.featured-project-media:hover { border-color: color-mix(in srgb, var(--ink) 24%, var(--line)); box-shadow: 0 28px 70px rgba(16,17,20,.12); transform: translateY(-4px); }
.featured-project-media:hover img { transform: scale(1.03); }
.featured-project-open { position: absolute; z-index: 2; top: 18px; right: 18px; width: 42px; height: 42px; display: grid; place-items: center; color: #101114; background: rgba(255,255,255,.92); border-radius: 50%; font: 600 16px var(--font-body); box-shadow: 0 8px 24px rgba(16,17,20,.12); transition: background .2s ease, transform .2s ease; }
.featured-project-media:hover .featured-project-open { background: white; transform: scale(1.04); }

.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.project-tags li { padding: 7px 11px; color: var(--muted); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 500; line-height: 1; }

.featured-project-media-brand { display: grid; place-items: center; align-content: center; gap: 6px; color: white; background: linear-gradient(145deg, #1a1c22 0%, #101114 100%); }
.featured-project-media-brand small { color: #a9abb2; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.featured-project-brand-monogram { font-family: var(--font-display); font-size: clamp(72px, 10vw, 96px); font-weight: 600; line-height: 1; letter-spacing: -.08em; }

.text-link { color: var(--blue); font-size: 14px; font-weight: 600; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.tech-marquee { position: relative; isolation: isolate; padding: clamp(84px,9vw,124px) 0; overflow: hidden; background: linear-gradient(180deg,var(--paper),color-mix(in srgb,var(--soft) 68%,var(--paper))); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tech-marquee::before, .tech-marquee::after { content: ""; position: absolute; z-index: -1; width: 460px; height: 460px; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.tech-marquee::before { top: -260px; left: -100px; background: radial-gradient(circle,rgba(77,135,240,.16),transparent 68%); }
.tech-marquee::after { right: -140px; bottom: -300px; background: radial-gradient(circle,rgba(181,178,139,.18),transparent 68%); }
.tech-marquee-heading { display: grid; grid-template-columns: 1.05fr .75fr; align-items: end; gap: clamp(50px,8vw,120px); margin-bottom: 52px; }
.tech-marquee-heading .eyebrow { margin-bottom: 18px; }
.tech-marquee-heading h2 { max-width: 650px; margin: 0; font-size: clamp(38px,4.6vw,62px); }
.tech-marquee-intro { max-width: 520px; margin: 0 0 6px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.tech-marquee-window { position: relative; width: 100%; display: grid; gap: 16px; }
.tech-marquee-lane { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent); mask-image: linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent); }
.tech-marquee-track { width: max-content; display: flex; animation: tech-marquee-scroll 34s linear infinite; }
.tech-marquee-track-reverse { animation-name: tech-marquee-scroll-reverse; animation-duration: 39s; }
.tech-marquee-window:hover .tech-marquee-track { animation-play-state: paused; }
.tech-marquee-list { margin: 0; padding: 0 16px 0 0; display: flex; gap: 16px; list-style: none; }
.tech-marquee-list li { min-width: 184px; height: 78px; padding: 0 18px; display: flex; align-items: center; gap: 13px; color: var(--ink); background: linear-gradient(135deg,color-mix(in srgb,var(--surface) 94%,transparent),color-mix(in srgb,var(--soft) 84%,transparent)); border: 1px solid color-mix(in srgb,var(--line) 86%,transparent); border-radius: 16px; box-shadow: 0 10px 28px rgba(16,17,20,.045), inset 0 1px 0 color-mix(in srgb,#fff 52%,transparent); font: 600 14px var(--font-display); white-space: nowrap; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.tech-marquee-list li:hover { border-color: color-mix(in srgb,var(--blue) 45%,var(--line)); box-shadow: 0 16px 34px rgba(16,17,20,.1); transform: translateY(-3px); }
.tech-marquee-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; background: #fff; border: 1px solid rgba(16,17,20,.08); border-radius: 11px; box-shadow: 0 5px 14px rgba(16,17,20,.08); }
.tech-marquee-list img { width: 27px; height: 27px; object-fit: contain; }
@keyframes tech-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes tech-marquee-scroll-reverse { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.experience { background: var(--paper); border-bottom: 1px solid var(--line); }
.experience-header { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(50px,9vw,130px); align-items: end; margin-bottom: 70px; }
.experience-header h2 { max-width: 780px; margin: 0; font-size: clamp(42px,5.6vw,72px); }
.experience-header > p { margin: 0; color: var(--muted); font-size: 18px; }
.career-ledger { border-top: 1px solid var(--line); }
.career-row { display: grid; grid-template-columns: 145px minmax(230px,.75fr) minmax(0,1.25fr); border-bottom: 1px solid var(--line); transition: background .2s ease; }
.career-row:hover { background: var(--surface); }
.career-period, .career-role, .career-impact { padding: 34px 28px; }
.career-period { padding-left: 0; display: flex; flex-direction: column; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.career-role { position: relative; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.career-number { display: block; margin-bottom: 48px; color: var(--blue); font-size: 11px; }
.career-role h3 { margin-bottom: 8px; font-size: 27px; }
.career-role p { margin: 0; color: var(--muted); font-size: 13px; }
.career-current { display: inline-block; margin-top: 18px; padding: 4px 8px; color: #14784f; background: rgba(29,169,107,.1); border-radius: 6px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.career-summary { max-width: 680px; margin: 0 0 22px; color: var(--ink); font: 500 19px/1.5 var(--font-display); letter-spacing: -.02em; }
.career-impact ul { margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); list-style: none; }
.career-impact li { position: relative; padding-left: 18px; }
.career-impact li::before { content: ""; position: absolute; top: .72em; left: 0; width: 5px; height: 5px; background: var(--blue); border-radius: 50%; }
.experience-timeline { position: relative; max-width: 1120px; margin: 0 auto; counter-reset: career-step; }
.experience-timeline::before { content: ""; position: absolute; z-index: 0; top: 34px; bottom: 34px; left: 18px; width: 2px; background: linear-gradient(to bottom, var(--blue) 0%, var(--blue) 72%, var(--line) 100%); }
.timeline-item { position: relative; z-index: 1; display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 26px; align-items: start; counter-increment: career-step; }
.timeline-item + .timeline-item { margin-top: 30px; }
.timeline-marker { padding-top: 28px; display: flex; justify-content: center; }
.timeline-marker span { width: 14px; height: 14px; background: var(--paper); border: 3px solid var(--muted); border-radius: 50%; box-shadow: 0 0 0 7px var(--paper); }
.timeline-item-current .timeline-marker span { background: var(--blue); border-color: var(--blue); }
.timeline-card { position: relative; padding: clamp(26px,4vw,42px); background: linear-gradient(135deg,color-mix(in srgb,var(--surface) 98%,transparent),color-mix(in srgb,var(--soft) 72%,transparent)); border: 1px solid color-mix(in srgb,var(--line) 92%,transparent); border-radius: var(--radius); box-shadow: 0 18px 48px rgba(16,17,20,.045); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.timeline-card:hover { border-color: color-mix(in srgb, var(--blue) 34%, var(--line)); box-shadow: 0 22px 58px rgba(16,17,20,.08); transform: translateY(-2px); }
.timeline-card-header { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.timeline-company { margin: 0 0 8px; color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.timeline-card h3 { margin: 0; font-size: clamp(28px,3vw,38px); }
.timeline-date { display: flex; flex-direction: column; align-items: flex-end; color: var(--muted); font-size: 12px; white-space: nowrap; }
.timeline-date strong { margin-top: 8px; padding: 4px 8px; color: #14784f; background: rgba(29,169,107,.1); border-radius: 6px; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.timeline-summary { position: relative; z-index: 1; max-width: 760px; margin: 28px 0 22px; color: var(--ink); font: 500 18px/1.5 var(--font-display); letter-spacing: -.02em; }
.timeline-achievements { position: relative; z-index: 1; margin: 0; padding: 22px 0 0; display: grid; grid-template-columns: 1fr; gap: 13px; color: var(--muted); list-style: none; border-top: 1px solid color-mix(in srgb,var(--line) 78%,transparent); }
.timeline-achievements li { position: relative; max-width: 900px; padding-left: 18px; text-align: left; line-height: 1.65; text-wrap: pretty; }
.timeline-achievements li::before { content: ""; position: absolute; top: .7em; left: 0; width: 5px; height: 5px; background: var(--blue); border-radius: 50%; }

.capabilities { background: var(--dark); color: white; }
.capabilities .eyebrow { color: #8ea9ff; }
.capability-grid { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid #393b42; border-bottom: 1px solid #393b42; }
.capability-grid article { padding: 34px 28px 38px 0; }
.capability-grid article + article { padding-left: 28px; border-left: 1px solid #393b42; }
.capability-grid span { color: #8ea9ff; font-size: 12px; }
.capability-grid h3 { margin: 44px 0 18px; font-size: 24px; letter-spacing: -.03em; }
.capability-grid p { margin: 0; color: #aeb0b8; font-size: 14px; }

.about { position: relative; background: var(--surface); overflow: hidden; }
.about::after { content: none; }
.about-heading { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 40px; margin-bottom: 58px; }
.about-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -8px; }
.about-heading h2 { margin: 0; font-size: clamp(48px,7.5vw,96px); font-weight: 500; }
.about-heading > p:last-child { max-width: 390px; margin: 0 0 10px; color: var(--muted); font-size: 17px; }
.about-profile { display: grid; grid-template-columns: .72fr 1.28fr; min-height: 630px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.about-signature { position: relative; padding: 34px; display: flex; flex-direction: column; justify-content: space-between; color: white; background: #15171c; overflow: hidden; }
.about-signature::after { content: ""; position: absolute; width: 340px; height: 340px; right: -170px; bottom: -120px; background: var(--blue); border-radius: 50%; opacity: .75; filter: blur(2px); }
.about-signature-label { position: relative; z-index: 1; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.about-signature > strong { position: relative; z-index: 1; font: 600 clamp(100px,13vw,180px)/.75 var(--font-display); letter-spacing: -.1em; }
.about-signature > div { position: relative; z-index: 1; }
.about-signature p { margin: 0; color: #b9bbc3; font-size: 12px; }
.about-content { padding: clamp(34px,5vw,68px); display: flex; flex-direction: column; }
.about-statement { max-width: 790px; margin: 0 0 44px; font: 500 clamp(25px,3.1vw,39px)/1.35 var(--font-display); letter-spacing: -.035em; }
.about-copy-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 34px; padding: 30px 0; border-top: 1px solid var(--line); }
.about-copy-grid p { margin: 0; color: var(--muted); }
.about-values { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-values > div { padding: 25px 20px 25px 0; }
.about-values > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.about-values span { display: block; margin-bottom: 28px; color: var(--blue); font-size: 10px; }
.about-values strong { display: block; margin-bottom: 7px; font-family: var(--font-display); font-size: 17px; }
.about-values p { margin: 0; color: var(--muted); font-size: 12px; }
.about-actions { margin-top: auto; padding-top: 36px; display: flex; align-items: center; gap: 26px; }
.about-intro-head { padding-bottom: 38px; border-bottom: 1px solid var(--line); }
.about-title-row { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: end; }
.about-title-row h2 { max-width: 820px; margin: 0; font-size: clamp(48px,7vw,88px); font-weight: 500; }
.about-title-row > p { max-width: 360px; margin: 0 0 10px; color: var(--muted); font-size: 16px; }
.about-layout-new { display: grid; grid-template-columns: minmax(300px,.78fr) minmax(0,1.22fr); gap: clamp(54px,8vw,110px); padding-top: 72px; align-items: start; }
.about-portrait-new { position: relative; margin: 0; padding: 16px; background: linear-gradient(135deg,color-mix(in srgb,var(--surface) 96%,transparent),color-mix(in srgb,var(--soft) 72%,transparent)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 54px rgba(16,17,20,.06); }
.about-portrait-new::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 18% 12%,color-mix(in srgb,var(--blue) 12%,transparent),transparent 34%); opacity: .75; }
.about-portrait-new img { position: relative; z-index: 1; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: calc(var(--radius) - 8px); filter: saturate(.78) contrast(1.03); }
.about-body-new { min-width: 0; }
.about-statement-new { max-width: 790px; margin: -8px 0 40px; font: 500 clamp(27px,3.2vw,42px)/1.35 var(--font-display); letter-spacing: -.038em; }
.about-copy-new { display: grid;  gap: 34px; padding: 30px 0 38px; border-top: 1px solid var(--line); }
.about-copy-new p { margin: 0; color: var(--muted); }
.about-values-new { border-top: 1px solid var(--line); }
.about-values-new > div { padding: 21px 0; display: grid; grid-template-columns: 52px 180px 1fr; gap: 18px; align-items: baseline; border-bottom: 1px solid var(--line); }
.about-values-new span { color: var(--blue); font-size: 10px; }
.about-values-new strong { font-family: var(--font-display); font-size: 17px; }
.about-values-new p { margin: 0; color: var(--muted); font-size: 13px; }
.about-actions-new { padding-top: 38px; display: flex; align-items: center; gap: 28px; }
.about-editorial { position: relative; z-index: 1; display: grid; grid-template-columns: 110px 1fr; gap: clamp(42px,7vw,100px); }
.about-index { padding-top: 4px; display: flex; flex-direction: column; align-items: center; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.about-index div { width: 1px; min-height: 190px; margin: 20px 0; background: var(--line); }
.about-index small { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10px; }
.about-main h2 { max-width: 1000px; margin-bottom: 64px; font-size: clamp(43px,6vw,78px); font-weight: 500; }
.about-main h2 em { color: var(--blue); font-style: normal; }
.about-story { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px,7vw,90px); padding: 42px 0; border-top: 1px solid var(--line); }
.about-story p { margin: 0; color: var(--muted); }
.about-story .about-lead { color: var(--ink); font: 500 clamp(20px,2.2vw,28px)/1.45 var(--font-display); letter-spacing: -.025em; }
.about-narrative { display: grid; gap: 20px; }
.about-principles { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-principles > div { padding: 30px 28px 34px 0; }
.about-principles > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.about-principles span { display: block; margin-bottom: 44px; color: var(--blue); font-size: 11px; }
.about-principles strong { display: block; margin-bottom: 10px; font-family: var(--font-display); font-size: 19px; }
.about-principles p { margin: 0; color: var(--muted); font-size: 13px; }
.about-footer { padding-top: 30px; display: grid; grid-template-columns: 1fr 1fr auto; gap: 32px; align-items: end; }
.about-footer p { margin: 0; font-size: 13px; font-weight: 600; }
.about-footer p span { display: block; color: var(--muted); font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .06em; }

.quote-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote-grid figure { margin: 0; padding: 38px 30px 38px 0; display: flex; flex-direction: column; }
.quote-grid figure + figure { padding-left: 30px; border-left: 1px solid var(--line); }
.quote-grid blockquote { margin: 0 0 42px; font-family: var(--font-display); font-size: 20px; line-height: 1.5; letter-spacing: -.02em; }
.quote-grid figcaption { margin-top: auto; display: flex; flex-direction: column; font-size: 13px; }
.quote-grid figcaption span { color: var(--muted); }
.testimonials { background: var(--paper); }
.testimonials-layout { display: grid; grid-template-columns: minmax(260px,.65fr) minmax(0,1.35fr); gap: clamp(60px,9vw,130px); align-items: start; }
.testimonials-intro h2 { max-width: 430px; margin-bottom: 22px; font-size: clamp(40px,4.7vw,62px); }
.testimonials-intro > p:not(.eyebrow) { max-width: 400px; margin: 0 0 28px; color: var(--muted); font-size: 16px; }
.testimonials-intro small { display: block; max-width: 350px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.testimonials-list { border-top: 1px solid var(--line); }
.testimonial-row { margin: 0; padding: 34px 0; display: grid; grid-template-columns: 48px 1fr; gap: 24px; border-bottom: 1px solid var(--line); }
.testimonial-index { padding-top: 5px; color: var(--blue); font-size: 10px; letter-spacing: .08em; }
.testimonial-row blockquote { max-width: 720px; margin: 0 0 25px; font: 500 clamp(19px,2vw,25px)/1.5 var(--font-display); letter-spacing: -.025em; }
.testimonial-row figcaption { display: flex; align-items: baseline; gap: 12px; font-size: 12px; }
.testimonial-row figcaption strong { font-weight: 600; }
.testimonial-row figcaption span { color: var(--muted); }

.contact { padding: 132px 0; color: var(--ink); background: var(--paper); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px,8vw,110px); align-items: end; }
.contact h2 { max-width: 760px; margin: 0; }
.contact-copy > p:first-child { margin: 0 0 30px; color: #e0e6f8; font-size: 17px; }
.button-light { color: var(--ink); background: white; }
.button-light:hover { background: #e9edff; }
.response-note { margin: 18px 0 0; color: #cdd8fb; font-size: 12px; }
.contact-intro { align-self: start; }
.contact-intro > p:not(.eyebrow) { max-width: 630px; margin: 28px 0; color: var(--muted); font-size: 17px; }
.contact-direct { padding-top: 24px; display: flex; flex-direction: column; border-top: 1px solid var(--line); font-size: 13px; }
.contact-direct span { color: var(--muted); }
.contact-direct a { width: fit-content; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.contact-form { position: relative; padding: clamp(24px,3vw,38px); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 48px rgba(16,17,20,.06); }
.form-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 13px 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 9px; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); opacity: .72; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(35,87,217,.14); }
.form-field [aria-invalid="true"] { border-color: #cc3344; }
.field-error { min-height: 18px; display: block; color: #c92f43; font-size: 11px; }
.field-meta { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 11px; }
.field-meta .field-error { margin-right: auto; }
.form-submit { width: 100%; color: white; background: var(--blue); }
.form-submit:hover { color: white; background: var(--blue-dark); }
.form-submit:disabled { cursor: wait; opacity: .7; }
.form-status { min-height: 22px; margin: 14px 0 0; font-size: 13px; }
.form-status.is-success { color: #158657; }
.form-status.is-error { color: #c92f43; }
.form-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px,1px,1px,1px) !important; white-space: nowrap !important; }

.footer { padding: 76px 0 30px; color: white; background: #101114; }
.footer-main { display: grid; grid-template-columns: 1.5fr .55fr .55fr .8fr; gap: 52px; padding-bottom: 70px; }
.footer-brand { font-family: var(--font-display); font-size: 25px; font-weight: 600; }
.footer-main > div:first-child p { max-width: 410px; color: #8f929b; }
.footer-column { display: flex; flex-direction: column; gap: 9px; }
.footer-column h2 { margin: 0 0 10px; color: #72757e; font: 600 11px var(--font-body); letter-spacing: .08em; text-transform: uppercase; }
.footer-column a { color: #c9cbd1; font-size: 14px; }
.footer-column a:hover { color: white; }
.footer-status { display: flex; align-items: flex-start; gap: 12px; }
.footer-status p { margin: -4px 0 0; font-size: 13px; }
.footer-status small { color: #858892; }
.footer-bottom { padding-top: 25px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #303238; color: #777a83; font-size: 11px; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #c8cad0; }

@media (max-width: 992px) {
  .nav-cta { display: none; }
}

@media (min-width: 821px) and (max-width: 992px) {
  .hero-cover { object-fit: inherit; }
}

@media (min-width: 721px) and (max-width: 820px) {
  .nav-links a,
  html[data-theme="dark"] .nav:not(.is-scrolled) .nav-links a,
  html[data-theme="dark"] .nav.is-scrolled .nav-links a { color: currentColor; }
}

@media (max-width: 820px) {
  .hero { height: 100svh; min-height: 560px; max-height: 780px; padding: 0; display: block; overflow: hidden; background: var(--surface); }
  .hero::before { content: ""; z-index: 1; inset: 0; width: 100%; background: linear-gradient(105deg,var(--surface) 0%,color-mix(in srgb,var(--surface) 98%,transparent) 30%,color-mix(in srgb,var(--surface) 76%,transparent) 45%,color-mix(in srgb,var(--surface) 34%,transparent) 62%,transparent 79%); clip-path: none; pointer-events: none; }
  .hero-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 54% center; }
  .hero-panel { display: none; }
  .hero-intro { position: absolute; z-index: 3; top: 52%; left: clamp(28px,6vw,56px); width: min(44vw,370px); margin: 0; padding: 0; transform: translateY(-36%); }
  .hero-intro h1 { width: 100%; max-width: none; font-size: clamp(38px,5.7vw,47px); }
  .hero-animated-line { min-height: 3.3em; }
}

@media (max-width: 960px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-profile { max-width: 580px; }
  .hero-profile > img { height: 540px; }
  .capability-grid { grid-template-columns: repeat(2,1fr); }
  .capability-grid article:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid #393b42; }
  .capability-grid article:nth-child(4) { border-top: 1px solid #393b42; }
  .contact-grid { grid-template-columns: 1fr; }
  .work-heading { grid-template-columns: 1fr; gap: 22px; margin-bottom: 56px; }
  .featured-project,
  .featured-project-reverse { grid-template-columns: 1fr; gap: 32px; }
  .featured-project-content,
  .featured-project-reverse .featured-project-content { justify-self: start; order: 2; }
  .featured-project-media,
  .featured-project-reverse .featured-project-media { order: 1; }
  .featured-project-content { max-width: none; }
  .experience-header { grid-template-columns: 1fr; gap: 24px; }
  .career-row { grid-template-columns: 110px minmax(210px,.7fr) minmax(0,1.3fr); }
  .career-period, .career-role, .career-impact { padding: 28px 22px; }
  .career-period { padding-left: 0; }
  .about-heading { grid-template-columns: 1fr; gap: 16px; }
  .about-profile { grid-template-columns: 1fr; }
  .about-signature { min-height: 330px; }
  .about-signature > strong { font-size: 150px; }
  .about-title-row { grid-template-columns: 1fr; gap: 16px; }
  .about-layout-new { grid-template-columns: minmax(240px,.7fr) minmax(0,1.3fr); gap: 46px; }
  .about-copy-new { grid-template-columns: 1fr; gap: 18px; }
  .about-values-new > div { grid-template-columns: 40px 150px 1fr; }
  .footer-main { grid-template-columns: 1.3fr repeat(2,.7fr); }
  .footer-status { grid-column: 1 / -1; }
  .testimonials-layout { grid-template-columns: 1fr; gap: 46px; }
  .testimonials-intro h2, .testimonials-intro > p:not(.eyebrow) { max-width: 650px; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .nav { top: 0; }
  .nav-inner { width: calc(100% - 32px); height: 58px; padding: 0 12px; gap: 10px; border-radius: 0; }
  .nav.is-scrolled .nav-inner { border-radius: 0 0 14px 14px; }
  .brand span:last-child { display: none; }
  .nav-cta { display: none; }
  .theme-toggle { width: 38px; height: 38px; margin-left: auto; }
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 74px 8px auto; padding: 28px; display: none; flex-direction: column; align-items: flex-start; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(16,17,20,.15); }
  .nav-links.is-open { display: flex; }
  .nav-links a { width: 100%; font: 600 24px var(--font-display); }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .hero-cover { object-position: 56% center; }
  .hero-intro { left: 24px; width: min(49vw,350px); }
  .hero-intro h1 { font-size: clamp(34px,6.4vw,42px); }
  .hero-animated-line { min-height: 3.35em; }
  .hero-kicker { font-size: 10px; letter-spacing: .15em; }
  .proof-strip { grid-template-columns: 1fr; margin-top: 48px; }
  .proof-strip div { padding: 20px 0; }
  .proof-strip div + div { border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 90px 0; }
  .section-heading { margin-bottom: 42px; }
  .section-heading h2, .contact h2 { font-size: 40px; }
  .featured-projects { gap: 64px; }
  .featured-project-content h3 { font-size: clamp(28px, 8vw, 36px); }
  .featured-project-content > p { font-size: 16px; }
  .tech-marquee { padding: 68px 0; }
  .tech-marquee-heading { grid-template-columns: 1fr; align-items: flex-start; gap: 18px; margin-bottom: 34px; }
  .tech-marquee-heading h2 { font-size: 32px; text-align: left; }
  .tech-marquee-intro { max-width: 600px; font-size: 16px; }
  .tech-marquee-window { gap: 12px; }
  .tech-marquee-list { gap: 12px; padding-right: 12px; }
  .tech-marquee-list li { min-width: 158px; height: 68px; padding: 0 16px; }
  .quote-grid { grid-template-columns: 1fr; }
  .experience-header { margin-bottom: 48px; }
  .career-row { grid-template-columns: 1fr; }
  .career-period { padding: 22px 0; flex-direction: row; gap: 6px; }
  .career-period span + span::before { content: "— "; }
  .career-role { padding: 26px 0; border-left: 0; border-right: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .career-impact { padding: 28px 0 38px; }
  .career-number { margin-bottom: 24px; }
  .experience-timeline { margin-left: 0; }
  .experience-timeline::before { left: 8px; }
  .timeline-item { grid-template-columns: 18px minmax(0,1fr); gap: 14px; }
  .timeline-marker { padding-top: 26px; justify-content: flex-start; }
  .timeline-marker span { width: 12px; height: 12px; border-width: 2px; box-shadow: 0 0 0 5px var(--paper); }
  .timeline-card { padding: 24px 20px; }
  .timeline-card-header { flex-direction: column; gap: 12px; }
  .timeline-date { align-items: flex-start; }
  .timeline-summary { margin-top: 22px; }
  .timeline-achievements { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article, .capability-grid article + article, .capability-grid article:nth-child(3) { padding: 28px 0; border-left: 0; border-top: 1px solid #393b42; }
  .capability-grid article:first-child { border-top: 0; }
  .capability-grid h3 { margin-top: 20px; }
  .about-heading h2 { font-size: 48px; }
  .about-signature { min-height: 280px; padding: 26px; }
  .about-signature > strong { font-size: 110px; }
  .about-content { padding: 28px 24px; }
  .about-copy-grid { grid-template-columns: 1fr; gap: 18px; }
  .about-values { grid-template-columns: 1fr; }
  .about-values > div, .about-values > div + div { padding: 22px 0; border-left: 0; }
  .about-values > div + div { border-top: 1px solid var(--line); }
  .about-values span { margin-bottom: 14px; }
  .about-actions { align-items: flex-start; flex-direction: column; }
  .about-intro-head { padding-bottom: 28px; }
  .about-title-row h2 { font-size: 48px; }
  .about-layout-new { grid-template-columns: 1fr; gap: 62px; padding-top: 44px; }
  .about-portrait-new { max-width: 430px; margin-left: 0; }
  .about-statement-new { margin-top: 0; }
  .about-values-new > div { grid-template-columns: 34px 1fr; gap: 8px 14px; }
  .about-values-new p { grid-column: 2; }
  .about-actions-new { align-items: flex-start; flex-direction: column; }
  .quote-grid figure, .quote-grid figure + figure { padding: 28px 0; border-left: 0; }
  .quote-grid figure + figure { border-top: 1px solid var(--line); }
  .testimonial-row { grid-template-columns: 30px 1fr; gap: 12px; padding: 28px 0; }
  .testimonial-row figcaption { align-items: flex-start; flex-direction: column; gap: 2px; }
  .contact { padding: 82px 0; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-main { grid-template-columns: repeat(2,1fr); }
  .footer-main > div:first-child, .footer-status { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 576px) {
  .nav-inner { gap: 6px; }
  .theme-toggle { width: 38px; height: 38px; margin-left: auto; }
  .nav-toggle { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb,var(--surface) 72%,transparent); }
  .hero { min-height: 640px; max-height: 760px; }
  .hero-cover { object-position: 60% center; }
  .hero-intro { top: 55%; left: 20px; width: min(66vw,320px); transform: translateY(-34%); }
  .hero-intro h1 { font-size: clamp(32px,9.2vw,39px); }
  .hero-kicker { max-width: 290px; margin-bottom: 18px; }
  .hero-animated-line { min-height: 4.5em; }
  .hero-actions { gap: 9px; margin-top: 22px; }
  .hero-actions .button { min-height: 46px; padding: 11px 14px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-animated-line { min-height: 0; }
  .hero-animated-line::after { display: none; }
  .tech-marquee-lane { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .tech-marquee-track { animation: none; }
  .tech-marquee-list[aria-hidden="true"] { display: none; }
}
