:root {
  color-scheme: dark;
  --ink: oklch(94% 0.012 66);
  --ink-muted: oklch(73% 0.014 66);
  --ink-faint: oklch(57% 0.014 66);
  --surface: oklch(14% 0.009 66);
  --surface-raised: oklch(18% 0.011 66);
  --surface-soft: oklch(21% 0.012 66);
  --line: oklch(34% 0.012 66 / 0.62);
  --line-strong: oklch(47% 0.018 66 / 0.72);
  --accent: oklch(67% 0.105 55);
  --accent-soft: oklch(37% 0.05 55);
  --accent-ink: oklch(16% 0.018 55);
  --success: oklch(70% 0.105 145);
  --error: oklch(66% 0.15 28);
  --shadow: 0 24px 80px oklch(5% 0.005 66 / 0.35);
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Chivo", sans-serif;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4xl: 64px;
  --space-5xl: 96px;
  --shell: min(1380px, calc(100vw - 64px));
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quick: cubic-bezier(0.25, 1, 0.5, 1);
  --header-height: 76px;
}

html[data-theme="light"] {
  color-scheme: light;
  --ink: oklch(20% 0.012 66);
  --ink-muted: oklch(40% 0.014 66);
  --ink-faint: oklch(53% 0.012 66);
  --surface: oklch(95% 0.009 66);
  --surface-raised: oklch(98% 0.006 66);
  --surface-soft: oklch(91% 0.012 66);
  --line: oklch(76% 0.015 66 / 0.72);
  --line-strong: oklch(59% 0.022 66 / 0.68);
  --accent: oklch(54% 0.115 55);
  --accent-soft: oklch(88% 0.045 55);
  --accent-ink: oklch(97% 0.008 55);
  --shadow: 0 24px 80px oklch(34% 0.01 66 / 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background: var(--surface);
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color 320ms var(--ease-out), color 320ms var(--ease-out);
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

button,
input,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.92;
}

h2 {
  max-width: 13ch;
  font-size: clamp(3.4rem, 7vw, 7.6rem);
}

.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;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-150%);
  transition: transform 180ms var(--ease-out);
}

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

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1100;
  height: 2px;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-content: center;
  gap: var(--space-xl);
  background: oklch(10% 0.008 66);
  color: oklch(92% 0.012 66);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms var(--ease-out), visibility 300ms;
}

.is-loading .loader {
  opacity: 1;
  visibility: visible;
}

.loader__mark {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 600;
  letter-spacing: -0.08em;
  text-align: center;
}

.loader__track {
  width: 220px;
  height: 1px;
  overflow: hidden;
  background: oklch(36% 0.01 66);
}

.loader__track span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform: translateX(-100%);
  animation: load-track 520ms var(--ease-out) forwards;
}

.loader p {
  color: oklch(60% 0.012 66);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

@keyframes load-track {
  to { transform: translateX(0); }
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 32px;
  color: oklch(93% 0.012 66);
  border-bottom: 1px solid oklch(46% 0.01 66 / 0.25);
  transition: background-color 260ms var(--ease-out), color 260ms var(--ease-out), border-color 260ms var(--ease-out);
}

.site-header.is-scrolled {
  background: color-mix(in oklch, var(--surface) 92%, transparent);
  color: var(--ink);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand__mark {
  width: 38px;
  height: 38px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 2.7;
}

.brand__mark path {
  transition: transform 260ms var(--ease-quick), stroke-width 260ms var(--ease-quick);
  transform-origin: center;
}

.brand:hover .brand__mark path:first-child {
  transform: translateY(-2px);
}

.brand:hover .brand__mark path:last-child {
  transform: translateY(2px);
  stroke-width: 3.2;
}

.site-nav {
  display: flex;
  gap: clamp(18px, 2.2vw, 36px);
  align-items: center;
}

.site-nav a {
  position: relative;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
}

.theme-toggle {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, 32px);
  gap: 4px;
  width: 76px;
  height: 44px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid color-mix(in oklch, currentColor 35%, transparent);
  border-radius: 999px;
  background: color-mix(in oklch, currentColor 9%, transparent);
  box-shadow: inset 0 0 0 1px oklch(100% 0 0 / 0.03);
  backdrop-filter: blur(12px);
  transition: border-color 220ms var(--ease-out), background-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.theme-toggle::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 5px;
  left: 4px;
  width: 32px;
  height: 32px;
  border: 1px solid color-mix(in oklch, var(--accent) 58%, transparent);
  border-radius: 50%;
  background: color-mix(in oklch, var(--accent) 22%, transparent);
  box-shadow: 0 4px 14px oklch(5% 0.01 55 / 0.22);
  transition: transform 360ms var(--ease-out), background-color 220ms var(--ease-out);
}

html[data-theme="dark"] .theme-toggle::before {
  transform: translateX(36px);
}

.theme-toggle__icon {
  display: grid;
  place-items: center;
  opacity: 0.42;
  transition: color 220ms var(--ease-out), opacity 220ms var(--ease-out), transform 360ms var(--ease-out);
}

.theme-toggle__icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

html[data-theme="light"] .theme-toggle__icon--sun,
html[data-theme="dark"] .theme-toggle__icon--moon {
  color: var(--accent);
  opacity: 1;
  transform: scale(1.06);
}

.theme-toggle:hover {
  border-color: color-mix(in oklch, var(--accent) 65%, currentColor);
  box-shadow: 0 0 0 4px color-mix(in oklch, var(--accent) 10%, transparent);
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: oklch(9% 0.008 66);
  color: oklch(94% 0.012 66);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -28px;
  background-image:
    linear-gradient(oklch(7% 0.008 66 / 0.28), oklch(7% 0.008 66 / 0.28)),
    image-set(
      url("assets/mohamed-hero-960.webp") type("image/webp"),
      url("assets/mohamed-hero.png") type("image/png")
    );
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(16px) saturate(0.82);
  transform: scale(1.045);
}

.hero__media,
.hero__shade,
.hero__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media {
  top: -1%;
  right: auto;
  bottom: auto;
  left: 50%;
  width: auto;
  height: 110%;
  aspect-ratio: 3 / 2;
  max-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 14%, black 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 14%, black 86%, transparent 100%);
  transform: translateX(-50%) scale(1.025);
  transition: transform 1.6s var(--ease-out);
}

.hero__image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

body:not(.is-loading) .hero__media {
  transform: translateX(-50%) scale(1);
}

.hero__shade {
  background:
    linear-gradient(90deg, oklch(7% 0.008 66 / 0.82) 0%, oklch(7% 0.008 66 / 0.3) 34%, transparent 58%),
    linear-gradient(0deg, oklch(7% 0.008 66 / 0.68) 0%, transparent 38%, oklch(7% 0.008 66 / 0.18) 100%);
}

.hero__grid {
  opacity: 0.18;
  background-image:
    linear-gradient(oklch(90% 0.01 66 / 0.14) 1px, transparent 1px),
    linear-gradient(90deg, oklch(90% 0.01 66 / 0.14) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(90deg, black, transparent 48%);
}

.hero__content {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: max(32px, calc((100vw - 1380px) / 2));
  width: min(570px, 43vw);
  transform: translateY(-44%);
}

.eyebrow,
.kicker {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.eyebrow span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-lg);
}

.eyebrow span::after {
  content: "";
  width: 56px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 8ch;
  margin-top: var(--space-xl);
  font-size: clamp(4.8rem, 8.2vw, 9.5rem);
  line-height: 0.78;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.hero__intro {
  max-width: 43ch;
  margin-top: var(--space-2xl);
  color: oklch(79% 0.012 66);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

body:not(.is-loading) .hero__content > * {
  animation: hero-enter 720ms var(--ease-out) both;
}

body:not(.is-loading) .hero__content > :nth-child(2) { animation-delay: 70ms; }
body:not(.is-loading) .hero__content > :nth-child(3) { animation-delay: 140ms; }
body:not(.is-loading) .hero__content > :nth-child(4) { animation-delay: 210ms; }
body:not(.is-loading) .hero__status { animation: hero-enter 620ms 260ms var(--ease-out) both; }
body:not(.is-loading) .scroll-cue { animation: cue-enter 620ms 320ms var(--ease-out) both; }

@keyframes hero-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cue-enter {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
  transition: transform 220ms var(--ease-out), background-color 220ms var(--ease-out), color 220ms var(--ease-out), border-color 220ms var(--ease-out);
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.98);
  transition-duration: 110ms;
}

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

.button--primary:hover {
  background: color-mix(in oklch, var(--accent) 86%, var(--ink));
}

.button--quiet {
  border-color: oklch(76% 0.01 66 / 0.45);
  color: oklch(94% 0.01 66);
  background: oklch(12% 0.008 66 / 0.32);
}

.button--quiet:hover {
  border-color: var(--accent);
}

.hero__status {
  position: absolute;
  z-index: 2;
  right: max(32px, calc((100vw - 1380px) / 2));
  bottom: 44px;
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  max-width: 300px;
  padding: 16px 18px;
  border: 1px solid oklch(68% 0.01 66 / 0.28);
  background: oklch(10% 0.008 66 / 0.52);
  backdrop-filter: blur(10px);
}

.status-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px oklch(70% 0.1 145 / 0.1);
  animation: status-breathe 2.8s var(--ease-out) infinite;
}

@keyframes status-breathe {
  50% { box-shadow: 0 0 0 8px oklch(70% 0.1 145 / 0.035); }
}

.hero__status p {
  font-size: 0.8rem;
  font-weight: 500;
}

.hero__status span:last-child {
  color: oklch(68% 0.012 66);
  font-size: 0.68rem;
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 40px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: oklch(63% 0.01 66);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.2;
  animation: scroll-cue 1.9s var(--ease-out) infinite;
}

@keyframes scroll-cue {
  0%, 100% { transform: translateY(-3px); }
  55% { transform: translateY(5px); }
}

.section {
  position: relative;
  padding: clamp(96px, 12vw, 180px) 0;
  border-top: 1px solid var(--line);
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

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

.section-index {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: clamp(48px, 6vw, 88px);
  color: var(--ink-faint);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-index span {
  color: var(--accent);
}

.section-index p {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.section-index p::before {
  content: "";
  width: 50px;
  height: 1px;
  background: var(--line-strong);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  align-items: end;
  gap: var(--space-3xl);
  margin-bottom: clamp(56px, 8vw, 110px);
}

.section-heading .kicker {
  align-self: start;
}

.about__lead {
  display: grid;
  grid-template-columns: minmax(160px, 0.6fr) minmax(0, 1.55fr);
  gap: var(--space-3xl);
  align-items: start;
}

.about__lead h2 {
  max-width: 12ch;
}

.about__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3xl);
  width: min(900px, 72%);
  margin-top: clamp(64px, 8vw, 116px);
  margin-left: auto;
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.45vw, 1.22rem);
}

.about__facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: var(--space-xl);
  background: var(--line);
  border: 1px solid var(--line);
}

.about__facts div {
  display: grid;
  gap: var(--space-sm);
  padding: var(--space-xl);
  background: var(--surface);
}

.about__facts span {
  color: var(--ink-faint);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about__facts strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
}

.experience {
  background: var(--surface-raised);
}

.timeline {
  border-top: 1px solid var(--line-strong);
}

.timeline-item {
  border-bottom: 1px solid var(--line);
}

.timeline-item summary {
  display: grid;
  grid-template-columns: 230px 1fr 38px;
  align-items: center;
  gap: var(--space-2xl);
  min-height: 126px;
  padding: var(--space-xl) 0;
  cursor: pointer;
  list-style: none;
}

.timeline-item summary::-webkit-details-marker {
  display: none;
}

.timeline-item__date {
  color: var(--ink-faint);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-item__title {
  display: grid;
  gap: var(--space-sm);
}

.timeline-item__title strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 4.3rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.95;
}

.timeline-item__title small {
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.timeline-item__toggle {
  position: relative;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.timeline-item__toggle::before,
.timeline-item__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 260ms var(--ease-out);
}

.timeline-item__toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.timeline-item[open] .timeline-item__toggle::after {
  transform: translate(-50%, -50%) rotate(0);
}

.timeline-item__content {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: var(--space-2xl);
  padding: 0 70px var(--space-3xl) 262px;
  color: var(--ink-muted);
}

.timeline-item[open] .timeline-item__content {
  animation: details-enter 340ms var(--ease-quick) both;
}

@keyframes details-enter {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.timeline-item__content p {
  max-width: 58ch;
  font-size: 0.96rem;
}

.timeline-item__content ul {
  display: grid;
  gap: var(--space-md);
  max-width: 62ch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item__content li {
  position: relative;
  padding-left: 20px;
}

.timeline-item__content li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}

.expertise-ledger {
  border-top: 1px solid var(--line-strong);
}

.expertise-row {
  display: grid;
  grid-template-columns: 60px minmax(220px, 0.85fr) minmax(280px, 1fr) minmax(230px, 0.7fr);
  align-items: center;
  gap: var(--space-xl);
  min-height: 148px;
  border-bottom: 1px solid var(--line);
  transition: color 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.expertise-row:hover {
  color: var(--accent);
  transform: translateX(6px);
}

.expertise-row > span {
  color: var(--ink-faint);
  font-size: 0.68rem;
}

.expertise-row h3 {
  font-size: clamp(1.8rem, 3vw, 3.25rem);
  line-height: 1;
}

.expertise-row p {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.expertise-row__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-sm);
}

.expertise-row__tags span {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-muted);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: border-color 180ms var(--ease-quick), color 180ms var(--ease-quick), transform 180ms var(--ease-quick);
}

.expertise-row:hover .expertise-row__tags span {
  border-color: color-mix(in oklch, var(--accent) 45%, var(--line));
  color: var(--ink);
  transform: translateY(-1px);
}

.credentials__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
}

.education h2 {
  max-width: 9ch;
  margin-top: var(--space-xl);
  font-size: clamp(3.8rem, 7vw, 7.3rem);
}

.education > p:not(.kicker) {
  margin-top: var(--space-2xl);
  color: var(--ink-muted);
  font-size: 1.2rem;
}

.education > div {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg) var(--space-2xl);
  margin-top: var(--space-lg);
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.training ul {
  margin: var(--space-3xl) 0 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.training li {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.training li span {
  color: var(--accent);
  font-size: 0.68rem;
}

.training li strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
}

.contact {
  background: var(--surface-raised);
}

.contact__intro {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: var(--space-3xl);
  align-items: end;
}

.contact__intro h2 {
  max-width: 11ch;
}

.contact__intro > p:last-child {
  grid-column: 2;
  max-width: 56ch;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(48px, 8vw, 120px);
  margin-top: clamp(64px, 9vw, 130px);
}

.contact-form {
  display: grid;
  gap: var(--space-2xl);
}

.contact-form__note {
  max-width: 58ch;
  color: var(--ink-muted);
  font-size: 0.82rem;
  line-height: 1.65;
}

.field {
  position: relative;
  display: grid;
  gap: var(--space-sm);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--line-strong);
}

.field label {
  color: var(--ink-faint);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  padding: var(--space-sm) 0 0;
  border: 0;
  outline: 0;
  resize: vertical;
  background: transparent;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.7rem);
  line-height: 1.1;
}

.field__line {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms var(--ease-out);
}

.field:focus-within .field__line {
  transform: scaleX(1);
  transform-origin: left;
}

.field.is-invalid {
  border-color: color-mix(in oklch, var(--error) 62%, var(--line));
}

.field.is-invalid label {
  color: var(--error);
}

.field.is-invalid .field__line {
  background: var(--error);
  transform: scaleX(1);
}

.contact-form__footer {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.form-status {
  color: var(--ink-muted);
  font-size: 0.75rem;
}

.form-status.is-error {
  color: var(--error);
}

.form-status.is-success {
  color: var(--success);
}

.contact-links {
  display: grid;
  align-content: start;
  margin: 0;
  border-top: 1px solid var(--line-strong);
  font-style: normal;
}

.contact-links a {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: var(--space-lg);
  min-height: 88px;
  border-bottom: 1px solid var(--line);
  transition: color 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.contact-links a:hover {
  color: var(--accent);
  transform: translateX(4px);
}

.contact-links span {
  color: var(--ink-faint);
  font-size: 0.64rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact-links strong {
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  font-weight: 400;
}

.contact-links i {
  font-style: normal;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 150px;
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-faint);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.brand--footer span {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--reveal-order, 0) * 70ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 64svh;
  padding: calc(var(--header-height) + clamp(72px, 10vw, 140px)) 0 clamp(72px, 9vw, 128px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
  pointer-events: none;
}

.page-hero .section-shell {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 10ch;
  margin-top: var(--space-2xl);
  font-size: clamp(5rem, 10vw, 10rem);
  line-height: 0.78;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.page-hero__intro {
  max-width: 62ch;
  margin-top: var(--space-3xl);
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.current-role {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(64px, 9vw, 120px);
  border: 1px solid var(--line);
  background: var(--line);
}

.current-role div {
  display: grid;
  gap: var(--space-md);
  min-height: 150px;
  padding: var(--space-xl);
  align-content: center;
  background: var(--surface);
}

.current-role span,
.social-summary span {
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.current-role strong,
.social-summary strong {
  font-size: 0.94rem;
  font-weight: 400;
}

.home-focus {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(280px, 1.1fr) auto;
  align-items: end;
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(72px, 10vw, 140px);
  padding-top: var(--space-3xl);
  border-top: 1px solid var(--line-strong);
}

.home-focus h3 {
  max-width: 14ch;
  margin-top: var(--space-lg);
  font-size: clamp(2.3rem, 4vw, 4.8rem);
}

.home-focus > p {
  max-width: 58ch;
  color: var(--ink-muted);
}

.text-link,
.footer-next {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.text-link {
  white-space: nowrap;
}

.text-link span {
  display: inline-block;
  margin-left: var(--space-sm);
  transition: transform 200ms var(--ease-quick);
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.home-social {
  padding: clamp(72px, 9vw, 120px) 0 48px;
  border-top: 1px solid oklch(40% 0.012 66 / 0.7);
  background: oklch(10% 0.008 66);
  color: oklch(94% 0.012 66);
}

.social-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-block: 1px solid oklch(42% 0.012 66 / 0.65);
  background: oklch(42% 0.012 66 / 0.65);
}

.social-summary div {
  display: grid;
  gap: var(--space-md);
  min-height: 138px;
  padding: var(--space-2xl);
  align-content: center;
  background: oklch(10% 0.008 66);
}

.home-social h2 {
  max-width: none;
  padding: clamp(48px, 7vw, 84px) 0;
  border-bottom: 1px solid oklch(42% 0.012 66 / 0.65);
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  padding-top: var(--space-2xl);
}

.social-link {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid oklch(78% 0.01 66);
  border-radius: 50%;
  color: oklch(94% 0.012 66);
  transition: color 200ms var(--ease-quick), border-color 200ms var(--ease-quick), transform 200ms var(--ease-quick), background-color 200ms var(--ease-quick);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link:first-child svg path {
  fill: currentColor;
  stroke: none;
}

.social-link .social-fill {
  fill: currentColor;
  stroke: none;
}

a.social-link:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-3px);
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.principles-grid article {
  display: grid;
  align-content: start;
  gap: var(--space-xl);
  min-height: 290px;
  padding: var(--space-3xl) clamp(24px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}

.principles-grid article + article {
  border-left: 1px solid var(--line);
}

.principles-grid span {
  color: var(--accent);
  font-size: 0.65rem;
}

.principles-grid h3 {
  font-size: clamp(2rem, 3.5vw, 4rem);
}

.principles-grid p {
  max-width: 42ch;
  color: var(--ink-muted);
}

.contact__layout--page {
  margin-top: 0;
}

.inner-page .site-footer {
  background: var(--surface-raised);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  :root {
    --shell: min(100% - 48px, 980px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: var(--space-xl);
    padding: 40px;
    background: var(--surface);
    color: var(--ink);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 260ms var(--ease-out), visibility 260ms, transform 260ms var(--ease-out);
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-open .site-nav a {
    animation: nav-link-enter 360ms var(--ease-quick) both;
  }

  .nav-open .site-nav a:nth-child(2) { animation-delay: 45ms; }
  .nav-open .site-nav a:nth-child(3) { animation-delay: 90ms; }
  .nav-open .site-nav a:nth-child(4) { animation-delay: 135ms; }
  .nav-open .site-nav a:nth-child(5) { animation-delay: 180ms; }

  @keyframes nav-link-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .site-nav a {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    text-transform: none;
  }

  .header-actions {
    position: absolute;
    right: 86px;
  }

  .menu-toggle {
    position: relative;
    display: grid;
    justify-self: end;
  }

  .menu-toggle span:not(.sr-only) {
    position: absolute;
    width: 16px;
    height: 1px;
    background: currentColor;
    transition: transform 220ms var(--ease-out);
  }

  .menu-toggle span:first-child { transform: translateY(-3px); }
  .menu-toggle span:nth-child(2) { transform: translateY(3px); }
  .nav-open .menu-toggle span:first-child { transform: rotate(45deg); }
  .nav-open .menu-toggle span:nth-child(2) { transform: rotate(-45deg); }

  .hero__content {
    width: min(530px, 53vw);
  }

  .hero h1 {
    font-size: clamp(4.6rem, 10vw, 8rem);
  }

  .about__body {
    width: 84%;
  }

  .expertise-row {
    grid-template-columns: 44px minmax(210px, 0.9fr) minmax(260px, 1.2fr);
  }

  .expertise-row__tags {
    grid-column: 2 / -1;
    justify-content: flex-start;
    padding-bottom: var(--space-xl);
  }

  .current-role {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-focus {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .home-focus .text-link {
    grid-column: 2;
    justify-self: start;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .principles-grid article + article {
    border-left: 0;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: calc(100% - 32px);
    --header-height: 68px;
  }

  .site-header {
    min-height: var(--header-height);
    padding: 0 16px;
  }

  .brand span {
    display: none;
  }

  .header-actions {
    right: 72px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero__media {
    top: 0;
    height: 100%;
    aspect-ratio: 3 / 4;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero__shade {
    background:
      linear-gradient(0deg, oklch(7% 0.008 66 / 0.94) 0%, oklch(7% 0.008 66 / 0.58) 44%, transparent 72%),
      linear-gradient(90deg, oklch(7% 0.008 66 / 0.12), oklch(7% 0.008 66 / 0.12));
  }

  .hero__grid {
    mask-image: linear-gradient(0deg, black, transparent 55%);
  }

  .hero__content {
    top: auto;
    right: 16px;
    bottom: 84px;
    left: 16px;
    width: auto;
    transform: none;
  }

  .hero h1 {
    margin-top: var(--space-lg);
    font-size: clamp(3.8rem, 18vw, 5.4rem);
    line-height: 0.82;
  }

  .hero__intro {
    max-width: 34ch;
    margin-top: var(--space-lg);
    font-size: 0.88rem;
  }

  .hero__actions {
    margin-top: var(--space-xl);
  }

  .hero__actions .button {
    flex: 1 1 150px;
  }

  .button {
    min-height: 46px;
    padding: 0 16px;
  }

  .hero__status,
  .scroll-cue {
    display: none;
  }

  .section {
    padding: 92px 0;
  }

  .section-index {
    grid-template-columns: 44px 1fr;
    margin-bottom: 44px;
  }

  .section-heading,
  .about__lead,
  .contact__intro {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .section-heading {
    align-items: start;
    margin-bottom: 56px;
  }

  .page-hero {
    min-height: 56svh;
    padding-top: calc(var(--header-height) + 72px);
    padding-bottom: 72px;
  }

  .page-hero h1 {
    font-size: clamp(4rem, 18vw, 6.5rem);
  }

  .page-hero__intro {
    margin-top: 32px;
  }

  h2 {
    font-size: clamp(3.2rem, 16vw, 5.2rem);
  }

  .about__body {
    grid-template-columns: 1fr;
    width: 100%;
    margin-top: 48px;
  }

  .about__facts {
    grid-template-columns: 1fr;
  }

  .current-role {
    grid-template-columns: 1fr 1fr;
  }

  .current-role div {
    min-height: 120px;
    padding: 20px;
  }

  .home-focus {
    grid-template-columns: 1fr;
  }

  .home-focus .text-link {
    grid-column: auto;
  }

  .social-summary {
    grid-template-columns: 1fr;
  }

  .social-summary div {
    min-height: 112px;
    padding: 24px 20px;
  }

  .home-social h2 {
    font-size: clamp(2rem, 11vw, 3.3rem);
  }

  .principles-grid article {
    min-height: 0;
    padding: 40px 0;
  }

  .timeline-item summary {
    grid-template-columns: 1fr 34px;
    gap: var(--space-lg);
    min-height: 0;
    padding: 28px 0;
  }

  .timeline-item__date {
    grid-column: 1;
    grid-row: 1;
  }

  .timeline-item__title {
    grid-column: 1;
    grid-row: 2;
  }

  .timeline-item__toggle {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .timeline-item__title strong {
    font-size: 2.3rem;
  }

  .timeline-item__content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: 0 0 32px;
  }

  .expertise-row {
    grid-template-columns: 36px 1fr;
    gap: var(--space-md);
    padding: var(--space-xl) 0;
  }

  .expertise-row h3,
  .expertise-row p,
  .expertise-row__tags {
    grid-column: 2;
  }

  .expertise-row p {
    margin-top: var(--space-sm);
  }

  .expertise-row:hover {
    transform: none;
  }

  .credentials__grid,
  .contact__layout {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .education h2 {
    font-size: 4.2rem;
  }

  .contact__intro > p:last-child {
    grid-column: auto;
  }

  .contact__layout {
    margin-top: 64px;
  }

  .contact-form__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-links a {
    grid-template-columns: 76px 1fr auto;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    gap: var(--space-lg);
    padding: 28px 16px;
  }

  .site-footer > p:first-of-type {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero {
    min-height: max(100svh, 760px);
  }

  .hero__content {
    bottom: 42px;
  }

  .hero__actions .button {
    flex-basis: 100%;
  }

  .contact-links a {
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: var(--space-md);
  }

  .education h2 {
    font-size: clamp(3.4rem, 18vw, 4.2rem);
  }

  .current-role {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-height: 720px) {
  .hero h1 {
    font-size: clamp(4rem, 7.2vw, 7.2rem);
  }

  .hero__content {
    transform: translateY(-39%);
  }

  .hero__intro,
  .hero__actions {
    margin-top: var(--space-xl);
  }
}

@media (hover: none) {
  .button:hover,
  .contact-links a:hover,
  .expertise-row:hover {
    transform: none;
  }
}

@media print {
  .loader,
  .site-header,
  .scroll-progress,
  .scroll-cue,
  .hero__status,
  .hero__shade,
  .hero__grid,
  .contact-form {
    display: none !important;
  }

  .hero {
    min-height: 0;
    padding: 48px 0;
    background: transparent;
    color: var(--ink);
  }

  .hero::before,
  .hero__media {
    display: none;
  }

  .hero__content {
    position: static;
    width: var(--shell);
    margin: 0 auto;
    transform: none;
  }

  .section {
    padding: 42px 0;
    content-visibility: visible;
    break-inside: avoid;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  .loader {
    display: none;
  }
}
