:root {
  color-scheme: light;
  --ink: #111916;
  --muted: #59615c;
  --paper: #f4f1ea;
  --surface: #fffdf7;
  --surface-2: #e9e5dc;
  --line: #cbc8be;
  --green: #00a878;
  --green-dark: #006a4f;
  --blue: #1659b7;
  --coral: #c3462f;
  --yellow: #efbd3d;
  --shadow: 0 24px 60px rgba(17, 25, 22, 0.12);
  --shadow-hover: 0 32px 80px rgba(17, 25, 22, 0.2);
  --font-sans: "Aptos", "Segoe UI Variable", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Arial Black", "Aptos Display", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-md: 1rem;
  --text-base: 1.125rem;
  --text-lg: 1.25rem;
  --text-title: 1.375rem;
  --text-xl: 1.5rem;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #edf2ee;
  --muted: #aeb9b2;
  --paper: #101512;
  --surface: #171e1a;
  --surface-2: #212a25;
  --line: #36413b;
  --green: #47d7a7;
  --green-dark: #7ae7c1;
  --blue: #78a9ff;
  --coral: #ff8068;
  --yellow: #efbd3d;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  --shadow-hover: 0 32px 80px rgba(0, 0, 0, 0.44);
}

* {
  letter-spacing: 0;
}

html {
  scroll-padding-top: 112px;
}

body {
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  transition: background-color 220ms ease, color 220ms ease;
}

body::before {
  position: fixed;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: max(20px, calc((100vw - 1160px) / 2));
  width: 1px;
  background: var(--line);
  content: "";
  opacity: 0.35;
  pointer-events: none;
}

.wrap {
  width: min(1160px, calc(100% - 48px));
}

.top {
  border-bottom: 0;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 80%, transparent);
  transition: box-shadow 180ms ease;
}

.top.is-condensed {
  box-shadow: 0 12px 35px rgba(17, 25, 22, 0.12);
}

.top-inner {
  min-height: 70px;
  position: relative;
  transition: min-height 180ms ease;
}

.top.is-condensed .top-inner {
  min-height: 54px;
}

.brand {
  flex: 0 0 auto;
  font-size: var(--text-md);
  font-weight: 850;
}

.mark {
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, var(--ink) 70%, transparent);
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  transition: width 180ms ease, height 180ms ease, transform 180ms ease;
}

.brand:hover .mark {
  transform: rotate(-3deg);
}

.top.is-condensed .mark {
  width: 34px;
  height: 34px;
}

.nav {
  margin-left: auto;
  gap: 30px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 750;
}

.nav a {
  position: relative;
  padding: 8px 0;
}

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

.nav a:not(.nav-cta):not(.nav-download):hover::after,
.nav a:not(.nav-cta):not(.nav-download):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav a.nav-download {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 3px;
  padding: 8px 12px;
  background: var(--surface);
  color: var(--ink);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav a.nav-download:hover {
  background: var(--yellow);
  transform: translateY(-1px);
}

.nav .nav-cta {
  border-radius: 3px;
  padding: 9px 14px;
  background: var(--ink);
  color: var(--paper);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.icon-button:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.theme-toggle::before {
  border: 0;
  box-shadow: none;
  content: "\263c";
  font-family: Arial, sans-serif;
  font-size: 19px;
  line-height: 1;
  transition: transform 220ms ease;
}

html[data-theme="dark"] .theme-toggle::before {
  content: "\263e";
  transform: rotate(-12deg);
}

.menu-toggle {
  display: none;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  top: 14px;
  left: 10px;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: top 180ms ease, transform 180ms ease;
}

.menu-toggle span + span {
  top: 20px;
  margin-top: 0;
}

.top.nav-open .menu-toggle span:first-child {
  top: 17px;
  transform: rotate(45deg);
}

.top.nav-open .menu-toggle span:last-child {
  top: 17px;
  transform: rotate(-45deg);
}

.contact-strip {
  border-top: 1px solid #d29f1b;
  border-bottom: 1px solid #d29f1b;
  background: var(--yellow);
  color: #111916;
}

.contact-strip-inner {
  min-height: 38px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  transition: min-height 180ms ease;
}

.top.is-condensed .contact-strip-inner {
  min-height: 30px;
}

.contact-strip a {
  position: relative;
}

.contact-strip a::after {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transition: transform 160ms ease;
}

.contact-strip a:hover {
  text-decoration: none;
}

.contact-strip a:hover::after {
  transform: scaleX(1);
}

.contact-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
}

.hero {
  position: relative;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  min-height: 560px;
  gap: clamp(32px, 6vw, 76px);
  padding: 38px 0 44px;
}

.availability {
  margin-bottom: 14px;
  color: var(--green-dark);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 800;
}

.availability::before {
  width: 8px;
  height: 8px;
  background: var(--green);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 17%, transparent);
  animation: status-pulse 2.2s ease-out infinite;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 900;
}

h1 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: clamp(58px, 7.1vw, 92px);
  line-height: 0.88;
}

.role {
  max-width: 720px;
  margin-bottom: 14px;
  color: var(--coral);
  font-size: clamp(var(--text-title), 2vw, 1.75rem);
  font-weight: 850;
  line-height: 1.2;
}

.lead {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(var(--text-base), 1.5vw, 1.3125rem);
  line-height: 1.55;
}

.actions {
  gap: 9px;
  margin-top: 22px;
}

.button {
  min-height: 44px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover {
  box-shadow: 5px 5px 0 var(--yellow);
  transform: translate(-2px, -2px);
}

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

.button.secondary {
  background: var(--surface);
}

.hero-proof {
  gap: 7px 18px;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.hero-proof li::before {
  width: 5px;
  height: 5px;
  border-radius: 0;
  background: var(--blue);
}

.portrait-wrap {
  width: min(100%, 320px);
  aspect-ratio: 4 / 5;
}

.portrait {
  border-radius: 3px;
  filter: saturate(0.9) contrast(1.03);
}

.portrait-note {
  right: -20px;
  bottom: 26px;
  width: min(265px, calc(100% - 20px));
  border-radius: 3px;
  padding: 14px 16px;
  background: var(--surface);
  box-shadow: 7px 7px 0 var(--yellow);
  font-size: var(--text-sm);
  line-height: 1.35;
}

.qa-signal {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: -18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 7px 9px;
  background: var(--surface);
  box-shadow: 4px 4px 0 color-mix(in srgb, var(--green) 65%, transparent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
}

.qa-signal::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 15%, transparent);
  content: "";
}

.proof-band {
  position: relative;
  border: 0;
  background: #111916;
  color: #fffdf7;
}

.proof-band::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--yellow);
  content: "";
}

.metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
  min-height: 190px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding: 28px clamp(18px, 2.5vw, 32px) 24px;
}

.metric:first-child {
  border-left: 0;
}

.metric strong {
  margin-bottom: 8px;
  color: #fffdf7;
  font-family: var(--font-mono);
  font-size: clamp(52px, 6vw, 80px);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  line-height: 0.95;
}

.metric span {
  max-width: 220px;
  color: rgba(255, 253, 247, 0.67);
  font-size: var(--text-sm);
  font-weight: 650;
  line-height: 1.45;
}

.metric::after {
  display: block;
  width: 22px;
  height: 3px;
  margin-top: 16px;
  background: var(--green);
  content: "";
  transition: width 280ms ease;
}

.metric:hover::after {
  width: 54px;
}

.section {
  padding: 104px 0;
}

.section + .section {
  border-top-color: var(--line);
}

.section-head {
  grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(36px, 8vw, 112px);
  margin-bottom: 54px;
}

.eyebrow,
.project-index,
.date,
.value-number {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--blue);
}

h2 {
  max-width: 620px;
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 0.98;
}

.section-intro {
  align-self: end;
  font-size: clamp(var(--text-base), 1.5vw, 1.3125rem);
  line-height: 1.55;
}

.value-grid {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.value {
  min-height: 275px;
  padding: 30px clamp(22px, 3vw, 34px);
  transition: background-color 180ms ease;
}

.value:hover {
  background: var(--surface);
}

.value-number {
  margin-bottom: 48px;
}

.value h3 {
  max-width: 260px;
  font-size: var(--text-xl);
}

.value p,
.project-copy p,
.skill-group p,
.job p,
.education-item p {
  color: var(--muted);
}

.projects {
  gap: 32px;
}

.project {
  position: relative;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  overflow: visible;
  border-color: var(--line);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 240ms ease, border-color 240ms ease;
}

.project:hover,
.project:focus-within {
  z-index: 2;
  border-color: color-mix(in srgb, var(--green) 55%, var(--line));
  box-shadow: var(--shadow-hover);
  transform: translateY(-7px);
}

.project-media {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-color: var(--line);
  padding: 20px;
  background: var(--surface-2);
}

.project-media::before {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 2px;
  padding: 5px 8px 5px 20px;
  background: #111916;
  color: #fffdf7;
  content: "LIVE PRODUCT";
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 850;
}

.project-media::after {
  position: absolute;
  z-index: 3;
  top: 23px;
  left: 23px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #47d7a7;
  box-shadow: 0 0 0 3px rgba(71, 215, 167, 0.18);
  content: "";
  animation: status-pulse 2.2s ease-out infinite;
}

.project-media img {
  aspect-ratio: 3 / 2;
  border-color: color-mix(in srgb, var(--line) 90%, transparent);
  box-shadow: 0 14px 35px rgba(17, 25, 22, 0.14);
  transition: transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 500ms ease;
}

.project:hover .project-media img,
.project:focus-within .project-media img {
  box-shadow: 0 20px 45px rgba(17, 25, 22, 0.24);
  transform: scale(1.025);
}

.project-copy {
  padding: clamp(34px, 5vw, 62px);
}

.project-index {
  margin-bottom: 20px;
}

.project h3 {
  margin-bottom: 15px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1;
}

.project-copy > p:not(.project-result) {
  font-size: var(--text-base);
}

.project-result {
  border-left: 3px solid var(--yellow);
  padding: 2px 0 2px 16px;
  color: var(--ink) !important;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 650;
  line-height: 1.5;
}

.chips {
  gap: 7px;
}

.chip {
  border: 1px solid color-mix(in srgb, var(--line) 85%, var(--ink));
  border-radius: 3px;
  padding: 5px 8px;
  background: color-mix(in srgb, var(--surface) 84%, var(--surface-2));
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 750;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.project:hover .chip {
  border-color: color-mix(in srgb, var(--green) 45%, var(--line));
}

.chip:hover {
  color: var(--ink);
  transform: translateY(-2px);
}

.project-link {
  align-self: flex-start;
  margin-top: 25px;
  border-bottom: 2px solid var(--green);
  padding-bottom: 2px;
  color: var(--blue);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.project-link:hover {
  color: var(--ink);
  transform: translateX(4px);
}

.experience-list {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.experience-list::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 192px;
  width: 1px;
  background: var(--line);
  content: "";
}

.job {
  position: relative;
  grid-template-columns: 170px 230px 1fr;
  gap: 38px;
  border-top: 1px solid var(--line);
  padding: 38px 0;
}

.job:first-child {
  border-top: 0;
}

.job::before {
  position: absolute;
  top: 46px;
  left: 187px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 1px var(--green);
  content: "";
}

.date {
  color: var(--coral);
}

.job-title h3 {
  font-size: var(--text-title);
}

.job-title p {
  font-size: var(--text-md);
  line-height: 1.5;
}

.job ul {
  color: var(--muted);
}

.job li::marker {
  color: var(--green);
}

.skills-layout {
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(50px, 9vw, 130px);
}

.skills-statement {
  max-width: 330px;
  border-left: 3px solid var(--yellow);
  padding-left: 16px;
}

.skill-groups {
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.skill-group,
.skill-group:nth-child(odd),
.skill-group:nth-child(even) {
  min-height: 190px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 25px;
  background: transparent;
  transition: background-color 180ms ease;
}

.skill-group:hover {
  background: var(--surface);
}

.skill-group h3 {
  font-size: var(--text-lg);
}

.education-grid {
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.education-item {
  min-height: 180px;
  padding: 30px;
  background: var(--surface);
}

.education-item h3 {
  font-size: var(--text-title);
}

.contact {
  position: relative;
  overflow: hidden;
  padding: 84px 0;
  background: #111916;
  color: #fffdf7;
}

.contact::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 5px;
  background: var(--green);
  content: "";
}

.contact::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 18%;
  height: 5px;
  background: var(--yellow);
  content: "";
}

.contact-inner {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
}

.contact h2 {
  max-width: 760px;
  color: #fffdf7;
}

.contact p {
  font-size: var(--text-lg);
  color: rgba(255, 253, 247, 0.68);
}

.contact .button {
  border-color: #fffdf7;
  border-radius: 3px;
  background: #fffdf7;
  color: #111916;
}

.contact .button.ghost {
  border-color: rgba(255, 253, 247, 0.65);
  background: transparent;
  color: #fffdf7;
}

.contact .button:hover {
  border-color: var(--yellow);
  background: var(--yellow);
  color: #111916;
}

footer {
  background: #0a0e0c;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

.footer-inner {
  border-top: 0;
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.motion-ready .reveal[data-reveal-delay="1"] {
  transition-delay: 80ms;
}

.motion-ready .reveal[data-reveal-delay="2"] {
  transition-delay: 160ms;
}

.motion-ready .reveal[data-reveal-delay="3"] {
  transition-delay: 240ms;
}

@keyframes status-pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 36%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 7px transparent;
  }
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 36px;
  }

  h1 {
    font-size: clamp(58px, 8vw, 76px);
  }

  .project {
    grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  }

  .project-media {
    min-height: 390px;
  }

  .job {
    grid-template-columns: 150px 205px 1fr;
    gap: 30px;
  }

  .experience-list::before {
    left: 170px;
  }

  .job::before {
    left: 165px;
  }
}

@media (max-width: 820px) {
  .wrap {
    width: min(100% - 32px, 1160px);
  }

  .top-inner {
    min-height: 62px;
  }

  .nav {
    position: absolute;
    z-index: 30;
    top: calc(100% + 38px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-top: 3px solid var(--green);
    padding: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .top.nav-open .nav {
    display: flex;
  }

  .top .nav a,
  .top .nav .nav-cta {
    display: block;
    border: 0;
    border-radius: 0;
    padding: 12px;
    background: transparent;
    color: var(--ink);
  }

  .top .nav a.nav-download {
    display: block;
    border: 0;
    background: color-mix(in srgb, var(--yellow) 28%, var(--surface));
    transform: none;
  }

  .nav a + a {
    border-top: 1px solid var(--line);
  }

  .nav a:not(.nav-cta):not(.nav-download)::after {
    display: none;
  }

  .nav-controls {
    margin-left: auto;
  }

  .menu-toggle {
    display: grid;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 240px;
    min-height: 520px;
    gap: 26px;
  }

  .portrait-wrap {
    width: 240px;
  }

  .portrait-note {
    right: 8px;
    width: calc(100% - 16px);
  }

  .qa-signal {
    left: -10px;
  }

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

  .metric,
  .metric:nth-child(3),
  .metric:nth-child(4) {
    min-height: 170px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
  }

  .metric:nth-child(-n + 2) {
    border-top: 0;
  }

  .metric:nth-child(odd) {
    border-left: 0;
  }

  .section-head,
  .skills-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-intro {
    max-width: 680px;
  }

  .project,
  .project:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .project:nth-child(even) .project-media {
    order: 0;
  }

  .project-media {
    min-height: 0;
  }

  .job {
    grid-template-columns: 145px 1fr;
    gap: 14px 34px;
  }

  .job ul {
    grid-column: 2;
  }

  .experience-list::before {
    left: 162px;
  }

  .job::before {
    left: 157px;
  }
}

@media (max-width: 620px) {
  html {
    scroll-padding-top: 96px;
  }

  body::before {
    left: 12px;
  }

  .wrap {
    width: min(100% - 24px, 1160px);
  }

  .brand {
    font-size: var(--text-md);
  }

  .mark,
  .top.is-condensed .mark {
    width: 36px;
    height: 36px;
  }

  .icon-button {
    width: 36px;
    height: 36px;
  }

  .contact-strip-inner {
    min-height: 36px;
    font-size: var(--text-sm);
  }

  .top.is-condensed .contact-strip-inner {
    min-height: 32px;
  }

  .nav {
    top: calc(100% + 36px);
  }

  .hero {
    display: block;
    min-height: 0;
    padding: 30px 0 38px;
  }

  .hero > div:first-child {
    position: relative;
    z-index: 2;
  }

  .availability {
    max-width: calc(100% - 104px);
    margin-bottom: 12px;
    font-size: var(--text-xs);
  }

  h1 {
    max-width: calc(100% - 105px);
    font-size: clamp(47px, 15vw, 62px);
    line-height: 0.9;
  }

  .role {
    max-width: 100%;
    font-size: var(--text-title);
  }

  .lead {
    font-size: var(--text-base);
  }

  .portrait-wrap {
    position: absolute;
    top: 28px;
    right: 0;
    width: 92px;
    aspect-ratio: 1;
  }

  .portrait {
    border-radius: 50%;
    object-position: center 28%;
  }

  .portrait-note {
    display: none;
  }

  .qa-signal {
    top: auto;
    right: -2px;
    bottom: -15px;
    left: auto;
    padding: 5px 6px;
    box-shadow: 3px 3px 0 color-mix(in srgb, var(--green) 65%, transparent);
    font-size: 0;
  }

  .qa-signal::before {
    margin: 0;
  }

  .actions {
    margin-top: 20px;
  }

  .hero-proof {
    margin-top: 18px;
  }

  .metric {
    min-height: 155px;
    padding: 23px 15px 18px;
  }

  .metric strong {
    font-size: clamp(44px, 15vw, 58px);
  }

  .metric span {
    font-size: var(--text-sm);
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }

  h2 {
    font-size: clamp(37px, 12vw, 50px);
  }

  .value-grid,
  .skill-groups,
  .education-grid {
    grid-template-columns: 1fr;
  }

  .value {
    min-height: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 25px 0;
  }

  .value:first-child {
    border-top: 0;
  }

  .value-number {
    margin-bottom: 22px;
  }

  .projects {
    gap: 24px;
  }

  .project {
    overflow: hidden;
  }

  .project:hover,
  .project:focus-within {
    transform: translateY(-3px);
  }

  .project-media {
    padding: 12px;
  }

  .project-media::before {
    top: 10px;
    left: 10px;
  }

  .project-media::after {
    top: 19px;
    left: 19px;
  }

  .project-copy {
    padding: 28px 24px 30px;
  }

  .project h3 {
    font-size: 36px;
  }

  .experience-list {
    padding-left: 22px;
  }

  .experience-list::before {
    left: 4px;
  }

  .job {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 30px 0;
  }

  .job::before {
    top: 35px;
    left: -22px;
  }

  .job ul {
    grid-column: 1;
    margin-top: 10px;
  }

  .skill-groups {
    border-left: 0;
  }

  .skill-group,
  .skill-group:nth-child(odd),
  .skill-group:nth-child(even) {
    min-height: 0;
    border-right: 0;
    padding: 24px 0;
  }

  .education-item {
    min-height: 0;
    padding: 25px;
  }

  .contact {
    padding: 66px 0;
  }

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

  .footer-inner {
    display: grid;
    gap: 5px;
  }
}

@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;
  }

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