:root {
  --ink: #07152d;
  --ink-soft: #122545;
  --blue: #1746d1;
  --blue-bright: #2f66ff;
  --gold: #e9b949;
  --paper: #f7f8fa;
  --white: #ffffff;
  --mist: #e8ebf0;
  --muted: #667187;
  --line: rgba(7, 21, 45, 0.14);
  --shell: min(1180px, calc(100vw - 48px));
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Fira Sans", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-deep: 0 30px 80px rgba(2, 10, 24, 0.28);
}
* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.dialog-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--blue);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 78px;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: background 240ms ease, box-shadow 240ms ease, height 240ms ease;
}

.site-header.scrolled {
  height: 68px;
  background: rgba(7, 21, 45, 0.96);
  box-shadow: 0 12px 28px rgba(2, 10, 24, 0.14);
  backdrop-filter: blur(14px);
}

.scroll-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #fff0a3);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  border-radius: 3px;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: -0.04em;
}

.brand-name {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.site-nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.nav-contact {
  padding: 9px 16px;
  color: var(--ink);
  background: var(--gold);
  border: 1px solid var(--gold);
  border-radius: 2px;
  transition: color 180ms ease, background 180ms ease;
}

.nav-contact:hover,
.nav-contact:focus-visible {
  color: var(--white);
  background: transparent;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: 850px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 74% 38%, rgba(47, 102, 255, 0.25), transparent 27%),
    linear-gradient(122deg, #07152d 0%, #0b2043 55%, #091834 100%);
}

.hero-depth {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  perspective: 900px;
}

.depth-plane,
.depth-ring {
  position: absolute;
  display: block;
  will-change: transform;
}

.depth-plane {
  right: -8vw;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(47, 102, 255, 0.13), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 0 60px rgba(47, 102, 255, 0.08), 0 40px 90px rgba(0, 0, 0, 0.12);
  transform-style: preserve-3d;
}

.depth-plane-one {
  top: 14%;
  width: min(46vw, 680px);
  aspect-ratio: 1.55;
  transform: translate3d(var(--hero-x, 0px), var(--hero-y, 0px), -40px) rotateX(63deg) rotateZ(-16deg);
}

.depth-plane-two {
  right: 27%;
  bottom: -17%;
  width: min(34vw, 480px);
  aspect-ratio: 1;
  border-color: rgba(233, 185, 73, 0.22);
  transform: translate3d(var(--hero-x-soft, 0px), var(--hero-y-soft, 0px), -90px) rotateX(66deg) rotateZ(28deg);
}

.depth-ring {
  top: 16%;
  right: 8%;
  width: min(33vw, 460px);
  aspect-ratio: 1;
  border: 1px solid rgba(233, 185, 73, 0.27);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(233, 185, 73, 0.025), 0 0 0 70px rgba(47, 102, 255, 0.03);
  transform: translate3d(var(--hero-x-soft, 0px), var(--hero-y-soft, 0px), -30px) rotateX(68deg);
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 57%;
  width: 1px;
  height: 100%;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.17), transparent);
}

.hero-grid,
.contact-grid {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.8) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent 5%, #000 40%, #000 85%, transparent);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.78fr);
  gap: clamp(58px, 8vw, 120px);
  align-items: center;
  min-height: 850px;
  padding-top: 110px;
  padding-bottom: 70px;
}

.hero-copy,
.profile-content,
.projects-heading > div,
.experience-intro,
.contact-copy {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 36px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(58px, 6.5vw, 96px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.9;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.hero h1 em,
.contact-copy h2 em {
  display: block;
  color: var(--gold);
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.hero-intro {
  max-width: 660px;
  margin: 32px 0 0;
  color: #c8d1e2;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transform: translateZ(0);
  transition: transform 300ms var(--ease-out), background 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 300ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate3d(0, -4px, 18px);
  box-shadow: 0 14px 32px rgba(2, 10, 24, 0.26);
}

.button-primary {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--white);
  background: var(--blue-bright);
  border-color: var(--blue-bright);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.hero-meta {
  display: flex;
  gap: 44px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-meta div {
  display: grid;
  gap: 3px;
}

.meta-label {
  color: #91a0b9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-meta strong {
  font-size: 14px;
  font-weight: 600;
}

.hero-portrait {
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.portrait-frame {
  position: relative;
  max-width: 430px;
  margin-left: auto;
  padding: 18px;
  background: #e9edf3;
  box-shadow: 28px 32px 70px rgba(0, 0, 0, 0.28);
  transform: rotateX(var(--portrait-x, 0deg)) rotateY(var(--portrait-y, 0deg)) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out);
  will-change: transform;
}

.hero-portrait:hover .portrait-frame {
  box-shadow: 36px 42px 90px rgba(0, 0, 0, 0.36);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -18px 24px 34px -24px;
  border: 1px solid rgba(233, 185, 73, 0.7);
}

.portrait-topline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateZ(24px);
}

.portrait-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(0.9) contrast(1.02);
  transform: translateZ(12px);
}

.portrait-caption {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 4px 1px;
  color: var(--ink);
  transform: translateZ(28px);
}

.portrait-caption p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.portrait-caption strong {
  font-size: 16px;
}

.status-pulse {
  width: 11px;
  height: 11px;
  background: var(--blue);
  border: 3px solid #c9d4f7;
  border-radius: 50%;
  animation: statusPulse 2.2s ease-out infinite;
}

@keyframes statusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(23, 70, 209, 0.42); }
  55% { box-shadow: 0 0 0 9px rgba(23, 70, 209, 0); }
}

.blueprint-note {
  position: absolute;
  right: -38px;
  bottom: 110px;
  display: flex;
  gap: 18px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transform: rotate(90deg);
  transform-origin: right bottom;
}

.impact-strip {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  color: var(--white);
  background: var(--blue);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.impact-item {
  display: grid;
  gap: 2px;
  padding: 34px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.17);
  transform: translateZ(0);
  transition: background 260ms ease, transform 340ms var(--ease-out);
}

.impact-item:hover {
  z-index: 1;
  background: rgba(255, 255, 255, 0.1);
  transform: translate3d(0, -7px, 24px);
}

.impact-item:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.17);
}

.impact-item strong {
  font-family: var(--display);
  font-size: clamp(29px, 3vw, 43px);
  letter-spacing: -0.04em;
  line-height: 1;
}

.impact-item span {
  color: #cfd9fc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section {
  padding-block: clamp(90px, 10vw, 150px);
}

.section-kicker {
  color: var(--blue);
}

.section-number {
  display: inline-grid;
  min-width: 36px;
  min-height: 36px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 10px;
}

.section-kicker.light {
  color: var(--gold);
}

.section-title {
  max-width: 830px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(45px, 6vw, 78px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-wrap: balance;
}

.section-title span {
  color: var(--blue);
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
}

.profile-section {
  background: var(--white);
}

.profile-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 64px;
}

.profile-layout > .section-kicker {
  align-self: start;
  padding-top: 8px;
}

.profile-columns {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 64px;
  margin-top: 54px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.profile-lead {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(25px, 2.7vw, 36px);
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.profile-detail {
  color: #4f5b6e;
}

.profile-detail p {
  margin: 0 0 18px;
}

.expertise-section {
  background:
    linear-gradient(90deg, transparent 49.95%, rgba(7, 21, 45, 0.05) 50%, transparent 50.05%),
    var(--paper);
}

.section-heading {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 66px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  perspective: 1300px;
}

.expertise-card {
  min-height: 340px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.62);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform-style: preserve-3d;
  transition: color 260ms ease, background 260ms ease, transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out);
}

.expertise-card:hover {
  z-index: 1;
  color: var(--white);
  background: var(--ink);
  transform: translate3d(0, -10px, 34px) rotateX(1.5deg);
  box-shadow: var(--shadow-deep);
}

.expertise-index {
  color: var(--blue);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
}

.expertise-card:hover .expertise-index {
  color: var(--gold);
}

.expertise-card h3 {
  margin: 44px 0 14px;
  font-family: var(--display);
  font-size: 27px;
  line-height: 1.1;
}

.expertise-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.expertise-card:hover p,
.expertise-card:hover li {
  color: #c8d1e2;
}

.expertise-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.expertise-card li {
  padding: 5px 8px;
  color: #526077;
  background: rgba(23, 70, 209, 0.07);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.expertise-card:hover li {
  background: rgba(255, 255, 255, 0.09);
}

.projects-section {
  color: var(--white);
  background: var(--ink);
}

.projects-heading {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: end;
}

.light-title {
  color: var(--white);
}

.light-title span {
  color: var(--gold);
}

.projects-heading > p {
  margin: 0 0 4px;
  color: #aeb8ca;
  font-size: 15px;
}

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 54px 0 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.filter-button {
  padding: 9px 14px;
  color: #aeb8ca;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.active {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project-card {
  min-width: 0;
  overflow: visible;
  background: transparent;
  perspective: 1300px;
  transition: opacity 300ms ease, transform 400ms var(--ease-out);
}

.project-card.hidden {
  display: none;
}

.project-open {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  color: var(--ink);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translate3d(0, var(--card-lift, 0px), 0);
  transform-style: preserve-3d;
  transition: transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out);
  will-change: transform;
}

.project-open::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255, 255, 255, 0.26), transparent 34%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
}

.project-card:hover .project-open,
.project-open:focus-visible {
  --card-lift: -10px;
  box-shadow: 0 34px 74px rgba(0, 0, 0, 0.34);
}

.project-card:hover .project-open::after,
.project-open:focus-visible::after {
  opacity: 1;
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #dce1e8;
}

.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(7, 21, 45, 0.18));
  pointer-events: none;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms var(--ease-out), filter 500ms ease;
}

.project-card:hover .project-image img,
.project-open:focus-visible .project-image img {
  transform: scale(1.065) translateZ(12px);
  filter: saturate(1.08) contrast(1.03);
}

.project-pattern {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(233, 185, 73, 0.95), rgba(23, 70, 209, 0.9)),
    var(--blue);
}

.project-pattern::before,
.project-pattern::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.37);
}

.project-pattern::before {
  width: 56%;
  height: 180%;
  transform: rotate(38deg);
}

.project-pattern::after {
  width: 33%;
  height: 110%;
  transform: rotate(38deg);
}

.project-pattern span {
  position: relative;
  z-index: 1;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-body {
  padding: 26px 28px 28px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-body h3 {
  margin: 16px 0 8px;
  font-family: var(--display);
  font-size: clamp(24px, 2.5vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.project-body p {
  min-height: 26px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.view-project {
  display: inline-block;
  margin-top: 20px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.experience-section {
  background: var(--white);
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) 1fr;
  gap: clamp(70px, 10vw, 140px);
  align-items: start;
}

.experience-intro {
  position: sticky;
  top: 115px;
}

.experience-intro > p {
  max-width: 430px;
  margin: 32px 0 0;
  color: var(--muted);
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 126px;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 102px 20px 1fr;
  gap: 14px;
  padding: 0 0 66px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-date {
  padding-top: 1px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.45;
  text-align: right;
  text-transform: uppercase;
}

.timeline-dot {
  z-index: 1;
  width: 12px;
  height: 12px;
  margin: 6px auto 0;
  background: var(--gold);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gold);
}

.timeline-content {
  padding-left: 14px;
  transition: transform 350ms var(--ease-out);
}

.timeline-item:hover .timeline-content {
  transform: translate3d(8px, 0, 18px);
}

.timeline-content .role {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.timeline-content h3 {
  margin: 8px 0 10px;
  font-family: var(--display);
  font-size: clamp(24px, 2.5vw, 31px);
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.timeline-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.credentials-section {
  color: var(--white);
  background:
    radial-gradient(circle at 80% 10%, rgba(47, 102, 255, 0.2), transparent 33%),
    var(--ink-soft);
}

.credentials-heading {
  margin-bottom: 68px;
}

.credential-layout {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 70px;
}

.education-stack {
  display: grid;
  gap: 16px;
}

.education-card {
  padding: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: transform 380ms var(--ease-out), background 240ms ease, box-shadow 380ms var(--ease-out);
}

.education-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translate3d(0, -7px, 24px) rotateX(1deg);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.2);
}

.education-card > span,
.credential-row > span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.education-card h3 {
  margin: 25px 0 10px;
  font-family: var(--display);
  font-size: 29px;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.education-card p {
  margin: 0;
  color: #aeb8ca;
  font-size: 13px;
}

.credential-list {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.credential-row {
  display: grid;
  grid-template-columns: 100px 1fr 150px;
  gap: 20px;
  align-items: center;
  padding: 23px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.credential-row strong {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: -0.01em;
}

.credential-row small {
  color: #aeb8ca;
  font-size: 12px;
  text-align: right;
}

.tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.tools-row span {
  padding: 7px 12px;
  color: #c8d1e2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(90px, 10vw, 140px);
  color: var(--white);
  background: var(--blue);
}

.contact-grid {
  opacity: 0.12;
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 80px;
  align-items: center;
}

.contact-copy h2 {
  max-width: 690px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(52px, 6.7vw, 88px);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.contact-copy h2 em {
  color: var(--gold);
}

.contact-copy > p:last-child {
  max-width: 600px;
  margin: 28px 0 0;
  color: #d3dcfa;
}

.contact-actions {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.contact-actions a {
  display: grid;
  gap: 3px;
  padding: 21px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  transition: padding-left 300ms var(--ease-out), background 200ms ease, transform 300ms var(--ease-out);
}

.contact-actions a:hover,
.contact-actions a:focus-visible {
  padding-left: 15px;
  background: rgba(255, 255, 255, 0.08);
  transform: translate3d(8px, 0, 15px);
}

.contact-actions span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-actions strong {
  font-family: var(--display);
  font-size: clamp(17px, 2vw, 23px);
}

.site-footer {
  color: #98a5ba;
  background: #040d1e;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  min-height: 120px;
}

.footer-inner p {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-inner p:last-child {
  justify-self: end;
}

.footer-brand {
  color: var(--white);
}

.project-dialog {
  width: min(960px, calc(100vw - 40px));
  max-height: min(760px, calc(100vh - 40px));
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: 0;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.project-dialog[open] {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  animation: dialogIn 420ms var(--ease-out) both;
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(28px) scale(0.96) rotateX(4deg); }
  to { opacity: 1; transform: none; }
}

.project-dialog::backdrop {
  background: rgba(4, 13, 30, 0.82);
  backdrop-filter: blur(5px);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  padding: 8px 11px;
  color: var(--white);
  background: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dialog-visual {
  min-height: 560px;
  background: linear-gradient(135deg, var(--gold), var(--blue));
}

.dialog-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-content {
  overflow-y: auto;
  padding: 74px 46px 46px;
}

.dialog-label {
  margin: 0 0 15px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.dialog-content h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.dialog-summary {
  margin: 24px 0 34px;
  color: var(--muted);
}

.dialog-facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.dialog-facts > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.dialog-facts dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dialog-facts dd {
  margin: 0;
  font-weight: 650;
}

.reveal { opacity: 1; transform: none; }

.motion-ready .reveal {
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(0.985);
  transition:
    opacity 760ms var(--ease-out) var(--delay, 0ms),
    transform 900ms var(--ease-out) var(--delay, 0ms);
}

.motion-ready .reveal.visible {
  opacity: 1;
  transform: none;
}

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

@media (max-width: 1060px) {
  .site-nav {
    gap: 20px;
  }

  .hero-layout {
    grid-template-columns: 1fr 380px;
    gap: 54px;
  }

  .profile-layout,
  .section-heading {
    grid-template-columns: 170px 1fr;
    gap: 40px;
  }

  .expertise-card {
    padding: 27px;
  }

  .experience-layout {
    gap: 70px;
  }
}

@media (max-width: 860px) {
  :root {
    --shell: min(100% - 36px, 720px);
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 14px 18px 24px;
    background: rgba(7, 21, 45, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .site-nav.open {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .site-nav a::after {
    display: none;
  }

  .nav-contact {
    margin-top: 12px;
    padding-inline: 14px !important;
    text-align: center;
  }

  .hero,
  .hero-layout {
    min-height: auto;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    padding-top: 142px;
    padding-bottom: 90px;
  }

  .hero::after {
    display: none;
  }

  .hero-depth {
    opacity: 0.65;
  }

  .hero-portrait {
    max-width: 510px;
    margin: 10px auto 0;
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-item:nth-child(3) {
    border-left: 1px solid rgba(255, 255, 255, 0.17);
  }

  .profile-layout,
  .section-heading,
  .projects-heading,
  .experience-layout,
  .credential-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .projects-heading {
    gap: 30px;
  }

  .profile-layout {
    gap: 20px;
  }

  .profile-columns {
    gap: 36px;
  }

  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-heading > p {
    max-width: 560px;
  }

  .experience-intro {
    position: static;
  }

  .experience-layout {
    gap: 64px;
  }

  .credential-layout,
  .contact-layout {
    gap: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner > p:nth-child(2) {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .site-header,
  .site-header.scrolled {
    height: 66px;
  }

  .hero-layout {
    gap: 48px;
    padding-top: 114px;
    padding-bottom: 70px;
  }

  .hero h1 {
    font-size: clamp(46px, 13vw, 58px);
  }

  .depth-plane-one {
    right: -42%;
    width: 96vw;
  }

  .depth-plane-two,
  .depth-ring {
    display: none;
  }

  .hero-intro {
    font-size: 17px;
  }

  .hero-actions,
  .hero-meta {
    display: grid;
  }

  .hero-meta {
    gap: 18px;
  }

  .portrait-frame {
    padding: 12px;
  }

  .blueprint-note {
    display: none;
  }

  .impact-item {
    padding: 26px 16px;
  }

  .impact-item strong {
    font-size: 28px;
  }

  .impact-item span {
    font-size: 9px;
  }

  .section {
    padding-block: 80px;
  }

  .section-title {
    font-size: clamp(42px, 13vw, 58px);
  }

  .profile-columns,
  .expertise-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .profile-columns {
    margin-top: 38px;
    padding-top: 30px;
  }

  .expertise-card {
    min-height: 0;
  }

  .project-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-button {
    flex: none;
  }

  .project-body {
    padding: 22px;
  }

  .timeline::before {
    left: 6px;
  }

  .timeline-item {
    grid-template-columns: 13px 1fr;
    gap: 18px;
  }

  .timeline-date {
    grid-column: 2;
    grid-row: 1;
    text-align: left;
  }

  .timeline-dot {
    grid-column: 1;
    grid-row: 1 / span 2;
    margin-top: 4px;
  }

  .timeline-content {
    grid-column: 2;
    padding-left: 0;
  }

  .credential-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .credential-row small {
    text-align: left;
  }

  .contact-copy h2 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .footer-inner {
    min-height: 105px;
  }

  .project-dialog[open] {
    display: block;
    overflow-y: auto;
  }

  .dialog-visual {
    min-height: 260px;
    max-height: 310px;
  }

  .dialog-content {
    padding: 35px 24px 30px;
  }

  .dialog-facts > div {
    grid-template-columns: 92px 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .portrait-frame,
  .project-open,
  .depth-plane,
  .depth-ring {
    transform: none !important;
  }
}

/* Professional editorial redesign */
:root {
  --ink: #0b1f33;
  --ink-soft: #15314d;
  --blue: #1d4f7a;
  --blue-bright: #286ca5;
  --gold: #c99b43;
  --paper: #f4f6f8;
  --white: #ffffff;
  --mist: #e6ebef;
  --muted: #5f6f7f;
  --line: rgba(11, 31, 51, 0.13);
  --shell: min(1200px, calc(100vw - 64px));
  --display: "Source Serif 4", Georgia, serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

body {
  background: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: clip;
}

.site-header {
  height: 82px;
  font-family: var(--body);
  background: rgba(7, 24, 42, 0.18);
  transition: background 240ms ease, box-shadow 240ms ease, height 240ms ease;
}

.site-header.scrolled {
  height: 70px;
  background: rgba(8, 27, 47, 0.97);
  box-shadow: 0 10px 32px rgba(2, 12, 24, 0.18);
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 40px;
  border-radius: 1px;
  font-family: var(--body);
  font-size: 14px;
  letter-spacing: 0.03em;
}

.brand-name {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.site-nav {
  gap: 28px;
}

.site-nav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.nav-contact {
  padding: 10px 17px;
  border-radius: 1px;
}

.hero {
  min-height: 790px;
  background:
    radial-gradient(circle at 83% 18%, rgba(57, 112, 157, 0.24), transparent 32%),
    linear-gradient(120deg, #081b2f 0%, #0e2a46 63%, #0b2138 100%);
}

.hero::after {
  left: 60%;
  background: linear-gradient(transparent 8%, rgba(255, 255, 255, 0.13), transparent 90%);
}

.hero-grid {
  opacity: 0.045;
  background-size: 72px 72px;
}

.hero-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.72fr);
  gap: clamp(70px, 8vw, 120px);
  min-height: 790px;
  padding-top: 118px;
  padding-bottom: 76px;
}

.eyebrow,
.section-kicker {
  gap: 13px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.hero h1 {
  max-width: 720px;
  font-family: var(--display);
  font-size: clamp(58px, 6vw, 86px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-shadow: none;
}

.hero h1 em,
.contact-copy h2 em {
  display: block;
  color: var(--gold);
  font-family: var(--display);
  font-style: normal;
  font-weight: 600;
  letter-spacing: inherit;
}

.hero-intro {
  max-width: 630px;
  margin-top: 30px;
  color: #c5d0da;
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  min-height: 50px;
  border-radius: 1px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: none;
  transform: none;
  transition: transform 240ms var(--ease-out), background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
  box-shadow: none;
}

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--ink);
  background: #e2b85e;
  border-color: #e2b85e;
}

.hero-meta {
  gap: 52px;
  margin-top: 42px;
  padding-top: 22px;
}

.meta-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.hero-meta strong {
  font-size: 15px;
}

.hero-portrait {
  perspective: none;
}

.portrait-frame {
  max-width: 420px;
  padding: 14px;
  background: #f1f4f7;
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.3);
  transform: none;
}

.portrait-frame::before {
  inset: -15px 20px 28px -20px;
  border-color: rgba(201, 155, 67, 0.72);
}

.hero-portrait:hover .portrait-frame {
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.34);
}

.portrait-topline,
.portrait-frame img,
.portrait-caption {
  transform: none;
}

.portrait-frame img {
  filter: none;
}

.portrait-topline {
  margin: 2px 2px 13px;
  font-size: 10px;
  font-weight: 700;
}

.portrait-caption {
  padding: 17px 4px 2px;
}

.portrait-caption strong {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
}

.blueprint-note {
  right: -34px;
  color: rgba(255, 255, 255, 0.5);
}

.impact-strip {
  color: var(--ink);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.impact-item,
.impact-item:first-child,
.impact-item:nth-child(3) {
  padding: 31px 28px;
  border-color: var(--line);
}

.impact-item:hover {
  background: #f7f9fb;
  transform: translateY(-3px);
}

.impact-item strong {
  color: var(--blue);
  font-family: var(--display);
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.impact-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.section {
  padding-block: clamp(90px, 9vw, 132px);
}

.section-title {
  max-width: 880px;
  font-family: var(--display);
  font-size: clamp(44px, 5.4vw, 70px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.section-title span {
  color: var(--blue);
  font-family: var(--display);
  font-style: normal;
  font-weight: 600;
}

.section-number {
  min-width: 34px;
  min-height: 34px;
  font-size: 11px;
}

.profile-section {
  background: var(--white);
}

.profile-columns {
  margin-top: 48px;
  padding-top: 36px;
}

.profile-lead {
  font-family: var(--display);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.4;
}

.profile-detail {
  color: var(--muted);
}

.expertise-section {
  background: var(--paper);
}

.expertise-grid {
  gap: 16px;
  border: 0;
  perspective: none;
}

.expertise-card {
  min-height: 330px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  transform: none;
  transition: transform 300ms var(--ease-out), box-shadow 300ms ease, border-color 200ms ease;
}

.expertise-card:hover {
  color: var(--ink);
  background: var(--white);
  border-top-color: var(--gold);
  box-shadow: 0 20px 44px rgba(11, 31, 51, 0.11);
  transform: translateY(-6px);
}

.expertise-card:hover .expertise-index {
  color: var(--blue);
}

.expertise-card h3 {
  margin-top: 40px;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 600;
}

.expertise-card p,
.expertise-card:hover p,
.expertise-card:hover li {
  color: var(--muted);
}

.expertise-card li,
.expertise-card:hover li {
  color: #41566a;
  background: #eff3f6;
}

.projects-section {
  background: #0a2034;
}

.light-title span {
  color: var(--gold);
}

.projects-heading > p {
  color: #bdc9d5;
  font-size: 16px;
}

.filter-button {
  border-radius: 1px;
  font-size: 12px;
  font-weight: 600;
}

.projects-grid {
  gap: 26px;
}

.project-card {
  background: transparent;
  perspective: none;
}

.project-open {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
  transform: none;
  transition: transform 320ms var(--ease-out), box-shadow 320ms ease, border-color 220ms ease;
}

.project-open::after {
  display: none;
}

.project-card:hover .project-open,
.project-open:focus-visible {
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
  border-color: rgba(201, 155, 67, 0.5);
  transform: translateY(-7px);
}

.project-image,
.project-pattern {
  aspect-ratio: 16 / 10;
}

.project-image img {
  image-rendering: auto;
  transition: transform 600ms var(--ease-out);
}

.project-card:hover .project-image img,
.project-open:focus-visible .project-image img {
  filter: none;
  transform: scale(1.025);
}

.project-body {
  padding: 28px 30px 30px;
  background: var(--white);
}

.project-meta {
  font-size: 11px;
  font-weight: 600;
}

.project-body h3 {
  margin-top: 15px;
  font-family: var(--display);
  font-size: clamp(26px, 2.5vw, 35px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.project-body p {
  font-size: 14px;
}

.view-project {
  font-size: 11px;
  font-weight: 700;
}

.experience-section {
  background: var(--white);
}

.timeline-content h3,
.education-card h3,
.credential-row strong,
.contact-actions strong,
.dialog-content h2 {
  font-family: var(--display);
  font-weight: 600;
}

.timeline-item:hover .timeline-content {
  transform: translateX(5px);
}

.timeline-date,
.timeline-content .role,
.education-card > span,
.credential-row > span,
.contact-actions span {
  font-size: 11px;
  font-weight: 600;
}

.credentials-section {
  background: #102d49;
}

.education-card {
  background: rgba(255, 255, 255, 0.055);
  transform: none;
}

.education-card:hover {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: none;
  transform: translateY(-4px);
}

.contact-section {
  background: #1a4c76;
}

.contact-copy h2 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.contact-actions a:hover,
.contact-actions a:focus-visible {
  transform: translateX(4px);
}

.project-dialog {
  border-radius: 2px;
}

.dialog-content h2 {
  letter-spacing: -0.035em;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 640ms ease var(--delay, 0ms), transform 720ms var(--ease-out) var(--delay, 0ms);
}

.motion-ready .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1060px) {
  :root { --shell: min(100% - 44px, 960px); }
  .hero-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 54px; }
  .site-nav { gap: 19px; }
}

@media (max-width: 860px) {
  :root { --shell: min(100% - 36px, 720px); }
  .site-header { background: rgba(8, 27, 47, 0.93); }
  .hero, .hero-layout { min-height: auto; }
  .hero-layout { grid-template-columns: 1fr; padding-top: 130px; padding-bottom: 86px; }
  .hero-portrait { max-width: 500px; margin-inline: auto; }
  .profile-layout, .section-heading, .projects-heading, .experience-layout, .credential-layout, .contact-layout { grid-template-columns: 1fr; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 28px); }
  body { font-size: 16px; }
  .hero-layout { padding-top: 112px; padding-bottom: 70px; }
  .hero-copy, .hero-intro { width: 100%; max-width: 100%; min-width: 0; }
  .hero-copy { overflow: hidden; }
  .hero-intro { overflow-wrap: break-word; }
  .hero h1 { max-width: 100%; font-size: clamp(44px, 12.5vw, 56px); line-height: 1; overflow-wrap: normal; }
  .hero-intro { font-size: 17px; }
  .section-title { font-size: clamp(40px, 12vw, 54px); }
  .impact-item { padding: 24px 15px; }
  .impact-item strong { font-size: 30px; }
  .profile-columns, .expertise-grid, .projects-grid { grid-template-columns: 1fr; }
  .expertise-card { min-height: 0; }
  .project-body { padding: 23px; }
  .portrait-frame { padding: 11px; }
}
