:root {
  --canvas: #f4f6f8;
  --surface: #ffffff;
  --surface-muted: #edf0f3;
  --ink: #171b21;
  --muted: #5f6873;
  --faint: #68717b;
  --line: #d9dee4;
  --line-strong: #c4cad1;
  --accent: #536b88;
  --accent-dark: #30445b;
  --accent-soft: #e5ebf1;
  --shell: min(1420px, calc(100vw - 64px));
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.menu-open,
body.menu-open,
html.lightbox-open,
body.lightbox-open {
  overflow: hidden;
}

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

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

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

button {
  color: inherit;
  font: inherit;
}

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

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

[hidden] {
  display: none !important;
}

.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: 8px;
  left: 8px;
  z-index: 1000;
  padding: 10px 14px;
  transform: translateY(-150%);
  border: 1px solid var(--ink);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
  transition: transform 180ms ease;
}

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

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

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

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

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(244, 246, 248, 0.9);
  transition: border-color 180ms ease, background-color 180ms ease;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(244, 246, 248, 0.96);
}

.nav-shell {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  width: var(--shell);
  min-height: 70px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  width: max-content;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -0.04em;
  transition: background-color 160ms ease, color 160ms ease;
}

.brand:hover .brand-mark,
.brand:focus-visible .brand-mark {
  background: var(--surface);
  color: var(--ink);
}

.brand-copy {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

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

.nav-panel {
  display: contents;
}

.mobile-nav-utilities {
  display: none;
}

.site-nav a {
  padding: 8px 11px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: color 160ms ease, background-color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  background: var(--surface-muted);
  color: var(--ink);
}

.nav-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}

.availability {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.availability i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(83, 107, 136, 0.12);
}

.nav-email {
  display: inline-flex;
  gap: 18px;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 11px;
  font-weight: 700;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.nav-email:hover,
.nav-email:focus-visible {
  border-color: var(--ink);
  background: var(--surface-muted);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  margin: 6px auto;
  background: var(--ink);
  transition: transform 180ms ease;
}

/* Project index */

.portfolio-home {
  padding-block: 34px clamp(100px, 10vw, 150px);
}

.portfolio-layout {
  display: grid;
  grid-template-columns: minmax(255px, 0.78fr) minmax(0, 2.22fr);
  gap: clamp(30px, 4vw, 62px);
  align-items: start;
}

.intro-panel {
  position: sticky;
  top: 104px;
  padding-top: 10px;
}

.intro-profile {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 24px;
  margin-bottom: clamp(42px, 6vh, 72px);
  border-bottom: 1px solid var(--line);
}

.intro-profile img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  filter: saturate(0.68) contrast(1.03);
}

.intro-profile div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.intro-profile span {
  font-size: 12px;
  font-weight: 700;
}

.intro-profile small {
  margin-top: 5px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.intro-panel h1 {
  margin-bottom: 26px;
  font-size: clamp(3.5rem, 5.4vw, 6rem);
  font-weight: 570;
  letter-spacing: -0.072em;
  line-height: 0.86;
}

.intro-lede {
  max-width: 410px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.intro-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 50px;
}

.intro-actions a {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.intro-actions a:hover,
.intro-actions a:focus-visible {
  border-color: var(--ink);
  background: var(--surface-muted);
}

.intro-actions .primary-link {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: var(--surface);
}

.intro-actions .primary-link:hover,
.intro-actions .primary-link:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
}

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

.intro-facts div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.intro-facts dt {
  color: var(--faint);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.intro-facts dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.project-browser {
  --work-grid-columns: repeat(4, minmax(0, 1fr));

  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
}

.browser-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.38fr);
  gap: 30px;
  align-items: end;
  padding: 28px 30px;
  border-bottom: 1px solid var(--line);
}

.section-label {
  margin-bottom: 13px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.browser-heading h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 3.65rem);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.browser-heading > p {
  max-width: 260px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.evidence-strip {
  display: grid;
  grid-template-columns: var(--work-grid-columns);
  padding: 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.evidence-strip li {
  min-width: 0;
  padding: 16px 18px 17px;
  border-right: 1px solid var(--line);
}

.evidence-strip li:last-child {
  border-right: 0;
}

.evidence-strip span,
.evidence-strip strong {
  display: block;
}

.evidence-strip span {
  margin-bottom: 7px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.evidence-strip strong {
  font-size: 13px;
  font-weight: 680;
  line-height: 1.35;
}

.noscript-note {
  padding: 14px 18px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 14px;
}

.browser-layout {
  display: grid;
  grid-template-columns: var(--work-grid-columns);
  align-items: start;
}

html:not(.js) .browser-layout {
  grid-template-columns: 1fr;
}

html:not(.js) .project-list {
  display: none;
}

html:not(.js) .project-stage {
  border-left: 0;
}

.project-list {
  position: sticky;
  top: 71px;
  align-self: start;
  background: var(--surface);
}

.project-stage {
  min-width: 0;
  border-left: 1px solid var(--line);
}

.project-tab {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 112px;
  padding: 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.project-tab:last-child {
  border-bottom: 0;
}

.project-tab::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  transform: scaleY(0);
  background: var(--accent-dark);
  transition: transform 180ms var(--ease);
}

.project-tab:hover,
.project-tab:focus-visible {
  background: var(--surface-muted);
}

.project-tab.is-active {
  background: var(--accent-soft);
}

.project-tab.is-active::before {
  transform: scaleY(1);
}

.tab-index,
.tab-result {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tab-index {
  color: var(--faint);
}

.tab-result {
  color: var(--accent-dark);
  font-weight: 700;
}

.tab-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.tab-copy strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tab-copy small {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-panel {
  min-width: 0;
}

.js .project-panel {
  animation: panel-in 340ms var(--ease);
}

html:not(.js) .project-panel + .project-panel {
  border-top: 1px solid var(--line-strong);
}

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

.project-media {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-media-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.project-media-link:focus-visible {
  outline-offset: -4px;
}

.project-media figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 7px 9px;
  border: 1px solid rgba(23, 27, 33, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

/* Project image viewer */

.project-lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: clamp(16px, 4vw, 56px);
  border: 0;
  background: transparent;
  color: #ffffff;
  overflow: auto;
  overscroll-behavior: contain;
}

.project-lightbox[open] {
  display: grid;
  place-items: center;
}

.project-lightbox::backdrop {
  background: rgba(10, 13, 17, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.project-lightbox-shell {
  display: grid;
  width: min(100%, 1680px);
  min-height: 0;
  place-items: center;
}

.project-lightbox figure {
  display: grid;
  width: 100%;
  max-height: calc(100dvh - clamp(72px, 9vw, 120px));
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  margin: 0;
}

.project-lightbox img {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - clamp(110px, 12vw, 156px));
  margin: auto;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.project-lightbox figcaption {
  max-width: min(100%, 1100px);
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.74);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.project-lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1;
  display: inline-flex;
  gap: 14px;
  align-items: center;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(19, 23, 29, 0.82);
  color: #ffffff;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 160ms ease, background-color 160ms ease;
}

.project-lightbox-close:hover,
.project-lightbox-close:focus-visible {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(34, 40, 48, 0.96);
}

.project-media-ai {
  aspect-ratio: 189 / 92;
  background: #f8f9fa;
}

.project-media-ai img {
  object-fit: contain;
}

.project-detail {
  padding: clamp(24px, 3vw, 40px);
}

.detail-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 25px;
  align-items: start;
  margin-bottom: 24px;
}

.detail-heading p {
  margin-bottom: 11px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.detail-heading h3 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(1.8rem, 2.55vw, 3rem);
  font-weight: 580;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.detail-number {
  color: #c2c8ce;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 3.2vw, 3.8rem);
  line-height: 0.8;
}

.detail-summary {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
}

.detail-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 17px;
  align-items: end;
  padding-block: 18px;
  margin-bottom: 20px;
  border-block: 1px solid var(--line);
}

.detail-result strong {
  font-size: clamp(2.9rem, 4.6vw, 5.2rem);
  font-weight: 560;
  letter-spacing: -0.075em;
  line-height: 0.76;
}

.detail-result span {
  max-width: 260px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.45;
}

.project-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
  border-block: 1px solid var(--line);
}

.project-kpi {
  display: grid;
  min-width: 0;
  grid-template-rows: auto auto 1fr;
  justify-items: center;
  align-content: start;
  padding: 20px clamp(18px, 2.7vw, 34px) 22px;
  text-align: center;
}

.project-kpi + .project-kpi {
  border-left: 1px solid var(--line);
}

.project-kpi-label {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: clamp(9px, 0.72vw, 11px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.project-kpi strong {
  display: block;
  margin: 15px 0 13px;
  font-size: clamp(3.15rem, 5.25vw, 5.6rem);
  font-weight: 560;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.project-kpi-description {
  display: block;
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(13px, 0.95vw, 15px);
  font-weight: 620;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.workflow-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 0;
  margin: 0 0 28px;
  border-block: 1px solid var(--line);
  list-style: none;
}

.workflow-summary li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px 14px;
  border-right: 1px solid var(--line);
}

.workflow-summary li:first-child {
  padding-left: 0;
}

.workflow-summary li:last-child {
  padding-right: 0;
  border-right: 0;
}

.workflow-summary li > span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
}

.workflow-summary strong,
.workflow-summary p {
  display: block;
}

.workflow-summary strong {
  margin-bottom: 5px;
  font-size: 14px;
}

.workflow-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.project-core {
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
}

.project-core > div {
  display: grid;
  grid-template-columns: minmax(118px, 0.38fr) minmax(0, 1.62fr);
  gap: 20px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
}

.project-core dt,
.notes-grid dt,
.service-item dt,
.about-facts dt,
.ai-scope dt {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.project-core dd {
  margin: 0;
  color: #404851;
  font-size: 14px;
  line-height: 1.55;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 26px;
  list-style: none;
}

.stack-list li {
  padding: 6px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.engineering-notes {
  border-block: 1px solid var(--line);
}

.engineering-notes summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  min-height: 52px;
  padding: 0 4px;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.engineering-notes summary::-webkit-details-marker {
  display: none;
}

.engineering-notes summary span:last-child {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  transition: transform 180ms ease;
}

.engineering-notes[open] summary span:last-child {
  transform: rotate(45deg);
}

.project-case-link {
  margin-top: 24px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.notes-grid > div {
  padding: 18px 16px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.notes-grid > div:nth-child(2n) {
  border-right: 0;
}

.notes-grid > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.notes-grid dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Experience */

.experience,
.approach {
  padding-block: clamp(100px, 11vw, 170px);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 2.3fr);
  gap: 40px;
  align-items: start;
  margin-bottom: clamp(60px, 7vw, 100px);
}

.section-heading .section-label {
  margin: 6px 0 0;
}

.section-heading > div {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(240px, 0.7fr);
  gap: 45px;
  align-items: end;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(3rem, 5.6vw, 6.3rem);
  font-weight: 550;
  letter-spacing: -0.068em;
  line-height: 0.9;
}

.section-heading > div > p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.career-columns {
  display: grid;
  grid-template-columns: 0.65fr 1.15fr 1.7fr auto;
  gap: 28px;
  padding: 0 14px 12px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.career-list {
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.career-row {
  display: grid;
  grid-template-columns: 0.65fr 1.15fr 1.7fr auto;
  gap: 28px;
  align-items: start;
  padding: 26px 14px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease, padding 180ms var(--ease);
}

.career-date,
.career-mark {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.career-row h3 {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.career-row div p,
.career-row > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.career-mark {
  padding: 5px 7px;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.career-row:first-child .career-mark {
  border-color: #b9c5d0;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.education-note {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 22px 14px 0 26%;
  color: var(--muted);
  font-size: 13px;
}

.education-note span {
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.education-note p {
  margin: 0;
}

/* Services */

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line);
}

.service-item {
  display: flex;
  min-height: 420px;
  padding: 24px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.38);
  transition: background-color 180ms ease;
}

.service-item > span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

.service-item h3 {
  margin: 42px 0 24px;
  font-size: clamp(1.5rem, 2vw, 2.25rem);
  font-weight: 590;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.service-item dl {
  padding: 0;
  margin: 0;
}

.service-item dl > div {
  padding-block: 13px;
  border-top: 1px solid var(--line);
}

.service-item dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.service-item .service-format {
  min-height: 0;
  padding-top: 15px;
  margin: auto 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.service-format span {
  display: block;
  margin-bottom: 5px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Engineering proof */

.engineering-proof,
.about {
  padding-block: clamp(100px, 11vw, 170px);
  border-top: 1px solid var(--line);
}

.proof-list {
  border: 1px solid var(--line);
  background: var(--surface-muted);
}

.proof-row {
  display: grid;
  grid-template-columns: minmax(145px, 0.55fr) minmax(320px, 1.35fr) minmax(230px, 0.75fr);
  gap: 34px;
  align-items: start;
  padding: 28px;
  border-bottom: 1px solid var(--line-strong);
}

.proof-row:last-child {
  border-bottom: 0;
}

.proof-row > span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.proof-row h3 {
  max-width: 590px;
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.1vw, 2.35rem);
  font-weight: 590;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.proof-row p,
.proof-row li,
.ai-scope dd {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.proof-row p {
  margin: 0;
}

.proof-row > ul {
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}

.proof-row > ul li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line-strong);
}

.ai-scope {
  padding: 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--line-strong);
}

.ai-scope > div {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr);
  gap: 16px;
  padding-block: 11px;
  border-bottom: 1px solid var(--line-strong);
}

.ai-scope dd {
  margin: 0;
}

.proof-row .scope-note {
  padding: 12px 0;
  border-block: 1px solid var(--line-strong);
  font-family: var(--font-mono);
  font-size: 12px;
}

/* About */

.about-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.about-portrait {
  margin: 0;
}

.about-portrait img {
  width: min(100%, 320px);
  aspect-ratio: 1;
  object-fit: cover;
  filter: saturate(0.68) contrast(1.03);
}

.about-portrait figcaption {
  max-width: 320px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
}

.about-copy > p {
  max-width: 850px;
  margin-bottom: 34px;
  font-size: clamp(1.25rem, 2.1vw, 2.2rem);
  font-weight: 520;
  letter-spacing: -0.035em;
  line-height: 1.26;
}

.about-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--line-strong);
}

.about-facts > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 14px 13px 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-facts > div:nth-child(2n) {
  padding-left: 14px;
  padding-right: 0;
  border-right: 0;
}

.about-facts dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.secondary-link {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.secondary-link:hover,
.secondary-link:focus-visible {
  border-color: var(--ink);
  background: var(--surface-muted);
}

/* Contact */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.65fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: end;
  padding: clamp(38px, 6vw, 76px);
  border: 1px solid #cad2da;
  background: #e7ebef;
}

.contact-copy .section-label {
  margin-bottom: 48px;
}

.contact h2 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 6.3vw, 7.1rem);
  font-weight: 550;
  letter-spacing: -0.072em;
  line-height: 0.89;
}

.contact-copy > p:last-child {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.contact-action {
  min-width: 0;
}

.contact-email-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-block: 1px solid #bdc7d0;
}

html:not(.js) .contact-email-row {
  grid-template-columns: 1fr;
}

html:not(.js) .contact-email-row button {
  display: none;
}

.contact-email-row a {
  display: flex;
  min-width: 0;
  min-height: 58px;
  padding: 0 12px;
  align-items: center;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 620;
  letter-spacing: -0.025em;
}

.contact-email-row button {
  min-width: 58px;
  border: 0;
  border-left: 1px solid #bdc7d0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-email-row a:hover,
.contact-email-row a:focus-visible,
.contact-email-row button:hover,
.contact-email-row button:focus-visible {
  background: rgba(255, 255, 255, 0.45);
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.contact-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 10px;
  border-right: 1px solid #bdc7d0;
  color: var(--muted);
  min-height: 46px;
  font-size: 12px;
  font-weight: 650;
  transition: background-color 160ms ease, color 160ms ease;
}

.contact-links a:last-child {
  border-right: 0;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 28px 40px;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer p {
  margin: 0;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--ink);
}

.footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.copy-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  padding: 11px 14px;
  transform: translateY(18px);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

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

/* Motion and interaction */

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

.js .reveal.will-reveal {
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 580ms var(--ease), transform 580ms var(--ease);
}

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

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

.project-tab:focus-visible {
  z-index: 2;
  outline-offset: -3px;
}

@media (hover: hover) {
  .career-row:hover {
    padding-inline: 20px;
    background: rgba(255, 255, 255, 0.54);
  }

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

/* Responsive */

@media (min-width: 1221px) {
  .js .project-list {
    grid-column: 1;
  }

  .js .project-stage {
    grid-column: 2 / -1;
  }

  .project-tab {
    grid-template-columns: 30px minmax(0, 1fr) max-content;
    column-gap: 8px;
    min-height: 120px;
    padding-inline: 14px;
  }

  .tab-copy strong,
  .tab-copy small {
    overflow: visible;
    text-overflow: initial;
    white-space: normal;
  }

  .tab-result {
    justify-self: end;
    text-align: right;
    white-space: nowrap;
  }
}

@media (max-width: 1220px) {
  :root {
    --shell: min(100% - 40px, 1420px);
  }

  .availability {
    display: none;
  }

  .portfolio-layout {
    grid-template-columns: minmax(230px, 0.66fr) minmax(0, 2.34fr);
    gap: 32px;
  }

  .browser-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .project-tab {
    min-height: 102px;
    padding-inline: 14px;
  }

  .tab-result {
    display: none;
  }

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

  .evidence-strip li:nth-child(2) {
    border-right: 0;
  }

  .evidence-strip li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .contact {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  }
}

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

  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    justify-self: end;
  }

  .portfolio-layout {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .intro-panel {
    position: static;
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
    gap: 20px 52px;
    align-items: start;
    padding-top: 15px;
  }

  .intro-profile {
    grid-column: 1 / -1;
    margin-bottom: 28px;
  }

  .intro-panel h1 {
    grid-column: 1;
    grid-row: 2 / span 2;
    margin: 0;
  }

  .intro-lede,
  .intro-actions,
  .intro-facts {
    grid-column: 2;
  }

  .intro-actions {
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 22px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section-heading > div {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-heading > div > p {
    max-width: 520px;
  }

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

  .proof-row {
    grid-template-columns: minmax(125px, 0.45fr) minmax(0, 1.55fr);
  }

  .proof-row > ul,
  .proof-row > .scope-note {
    grid-column: 2;
  }

  .about-layout {
    grid-template-columns: minmax(200px, 0.5fr) minmax(0, 1.5fr);
    gap: 48px;
  }

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

  .contact-action {
    max-width: 620px;
  }
}

@media (max-width: 900px) {
  .browser-layout {
    grid-template-columns: 1fr;
  }

  .project-list {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
  }

  .project-tab {
    border-right: 1px solid var(--line);
  }

  .project-tab:nth-child(2n) {
    border-right: 0;
  }

  .project-tab:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .project-tab::before {
    inset: auto 0 0;
    width: auto;
    height: 3px;
    transform: scaleX(0);
  }

  .project-tab.is-active::before {
    transform: scaleX(1);
  }

  .project-stage {
    border-left: 0;
  }
}

@media (max-width: 820px) {
  .career-columns {
    display: none;
  }

  .career-row {
    grid-template-columns: 1fr auto;
    gap: 12px 20px;
    padding-block: 23px;
  }

  .career-date {
    grid-column: 1;
  }

  .career-row > div,
  .career-row > p {
    grid-column: 1 / -1;
  }

  .career-mark {
    grid-column: 2;
    grid-row: 1;
  }
}

:root {
  --nav-drawer-width: clamp(30rem, 42vw, 35rem);
}

  body.menu-open .site-header {
    z-index: 200;
    border-color: transparent;
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  body.menu-open .brand {
    position: fixed;
    z-index: 3;
    top: 17px;
    left: calc(100vw - var(--nav-drawer-width) + 28px);
  }

  .js .menu-toggle {
    position: relative;
    z-index: 3;
    display: grid;
    grid-column: 2;
    grid-row: 1;
    width: 44px;
    height: 44px;
    place-content: center;
    gap: 6px;
    justify-self: end;
    border: 0;
    background: transparent;
    transition: background-color 160ms ease;
  }

  .js .menu-toggle:hover,
  .js .menu-toggle:focus-visible {
    background: var(--surface-muted);
  }

  .js .menu-toggle span {
    width: 18px;
    margin: 0;
  }

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

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

  .js .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: rgba(15, 23, 34, 0.12);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 160ms ease, visibility 0s linear 210ms;
  }

  .js .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
  }

  .js .nav-panel {
    position: relative;
    display: flex;
    width: var(--nav-drawer-width);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 90px 28px max(24px, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    transform: translateX(100%);
    border-left: 1px solid var(--line-strong);
    background: var(--canvas);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transition: transform 210ms var(--ease);
  }

  .js .site-nav.is-open .nav-panel {
    transform: translateX(0);
  }

  .js .nav-panel::before {
    position: absolute;
    top: 70px;
    right: 28px;
    left: 28px;
    height: 1px;
    background: var(--line);
    content: "";
  }

  .js .nav-panel > a {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    min-width: 0;
    min-height: 60px;
    padding: 0 8px 0 10px;
    overflow-wrap: anywhere;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font-size: clamp(1.75rem, 3.3vw, 2.125rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.045em;
  }

  .js .nav-panel > a::before {
    position: absolute;
    left: 0;
    width: 2px;
    height: 18px;
    transform: scaleY(0);
    background: var(--accent-dark);
    content: "";
    transition: transform 160ms ease;
  }

  .js .nav-panel > a:hover,
  .js .nav-panel > a:focus-visible,
  .js .nav-panel > a.is-active {
    background: transparent;
    color: var(--accent-dark);
  }

  .js .nav-panel > a.is-active::before {
    transform: scaleY(1);
  }

  .js .mobile-nav-utilities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 0 0 auto;
    margin-top: 24px;
    border-top: 1px solid var(--line-strong);
  }

  .js .mobile-nav-utilities a {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    min-height: 48px;
    padding: 0 8px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
  }

  .js .mobile-nav-utilities a:nth-child(2n) {
    border-right: 0;
  }

  .js .mobile-nav-utilities a:hover,
  .js .mobile-nav-utilities a:focus-visible {
    background: var(--surface-muted);
    color: var(--ink);
  }

@media (max-width: 1023px) {
  :root {
    --nav-drawer-width: 100vw;
  }

  .nav-shell {
    grid-template-columns: 1fr auto;
  }

  .nav-actions {
    display: none;
  }

  .js .menu-toggle {
    grid-column: 2;
  }

  .js .site-nav {
    background: var(--canvas);
  }

  .js .nav-panel {
    width: 100%;
    max-width: none;
    transform: translateY(-8px);
    border-left: 0;
  }

  .js .site-nav.is-open .nav-panel {
    transform: translateY(0);
  }
}

@media (min-width: 1024px) {
  .nav-shell {
    grid-template-columns: 1fr auto auto;
  }

  .nav-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .js .menu-toggle {
    grid-column: 3;
  }

  body.menu-open .menu-toggle {
    position: fixed;
    top: 13px;
    right: 28px;
  }
}

@media (max-width: 767px) {
  :root {
    --nav-drawer-width: 100vw;
  }

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

  .nav-shell {
    min-height: 62px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  body.menu-open .brand {
    position: relative;
    top: auto;
    left: auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 9px;
    flex-wrap: wrap;
  }

  .js .site-nav {
    background: var(--canvas);
  }

  .js .nav-panel {
    width: 100%;
    padding: 78px 14px max(18px, env(safe-area-inset-bottom));
    transform: translateY(-8px);
    border-left: 0;
  }

  .js .site-nav.is-open .nav-panel {
    transform: translateY(0);
  }

  .js .nav-panel::before {
    top: 62px;
    right: 14px;
    left: 14px;
  }

  .js .nav-panel > a {
    min-height: clamp(56px, 7vh, 60px);
    font-size: clamp(1.55rem, 6.5vw, 1.9rem);
  }

  .js .mobile-nav-utilities {
    margin-top: 22px;
  }

}

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

  .portfolio-home {
    padding-top: 18px;
  }

  .intro-panel {
    display: block;
  }

  .intro-profile {
    margin-bottom: 45px;
  }

  .intro-panel h1 {
    margin-bottom: 24px;
    font-size: clamp(3.9rem, 18vw, 6rem);
  }

  .intro-lede {
    max-width: 560px;
  }

  .intro-actions {
    margin-bottom: 40px;
  }

  .browser-heading {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px;
  }

  .browser-heading h2 {
    font-size: clamp(2.3rem, 10vw, 3.7rem);
  }

  .browser-heading > p {
    max-width: 430px;
  }

  .browser-layout {
    grid-template-columns: 1fr;
  }

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

  .project-tab {
    min-height: 92px;
    border-right: 1px solid var(--line);
  }

  .project-tab:nth-child(2n) {
    border-right: 0;
  }

  .project-tab:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .project-tab::before {
    inset: auto 0 0;
    width: auto;
    height: 3px;
    transform: scaleX(0);
  }

  .project-tab.is-active::before {
    transform: scaleX(1);
  }

  .project-media {
    aspect-ratio: 16 / 9;
  }

  .project-media img {
    object-fit: contain;
    object-position: center;
    background: var(--surface);
  }

  .project-media-ai {
    aspect-ratio: 189 / 92;
  }

  .detail-heading h3 {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .education-note {
    display: block;
    padding-left: 14px;
  }

  .education-note span {
    display: block;
    margin-bottom: 7px;
  }

  .proof-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }

  .proof-row > ul,
  .proof-row > .scope-note {
    grid-column: 1;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    display: grid;
    grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
    gap: 22px;
    align-items: end;
  }

  .about-portrait figcaption {
    border-top: 1px solid var(--line);
  }

  .contact {
    width: calc(100% - 18px);
    padding: 30px 22px;
  }

  .contact-copy .section-label {
    margin-bottom: 38px;
  }

  .contact h2 {
    font-size: clamp(3rem, 13.5vw, 5.7rem);
  }

  .footer {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .intro-actions,
  .intro-actions a {
    width: 100%;
  }

  .intro-actions a {
    justify-content: space-between;
  }

  .project-tab,
  .project-tab:nth-child(2n),
  .project-tab:nth-last-child(-n + 2) {
    min-height: 94px;
    border-bottom: 1px solid var(--line);
  }

  .project-tab:nth-child(2n) {
    border-right: 0;
  }

  .project-tab:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .project-media {
    aspect-ratio: 16 / 9;
  }

  .project-media-ai {
    aspect-ratio: 189 / 92;
  }

  .project-detail {
    padding: 22px 18px;
  }

  .detail-heading {
    grid-template-columns: 1fr;
  }

  .detail-number {
    display: none;
  }

  .detail-result {
    grid-template-columns: 1fr;
  }

  .detail-result strong {
    font-size: clamp(3.25rem, 17vw, 4.5rem);
  }

  .project-kpi-grid {
    grid-template-columns: 1fr;
  }

  .project-kpi {
    padding: 20px 0 22px;
  }

  .project-kpi + .project-kpi {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .project-kpi-label {
    font-size: 10px;
  }

  .project-kpi strong {
    font-size: clamp(3.3rem, 15.75vw, 4.55rem);
  }

  .project-kpi-description {
    max-width: 30ch;
    font-size: 14px;
  }

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

  .workflow-summary li,
  .workflow-summary li:first-child,
  .workflow-summary li:last-child {
    padding: 13px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-summary li:last-child {
    border-bottom: 0;
  }

  .project-core > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

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

  .notes-grid > div,
  .notes-grid > div:nth-child(2n),
  .notes-grid > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .notes-grid > div:last-child {
    border-bottom: 0;
  }

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

  .service-item {
    min-height: 0;
  }

  .service-item h3 {
    margin-top: 34px;
  }

  .about-portrait {
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .about-facts {
    grid-template-columns: 1fr;
  }

  .about-facts > div,
  .about-facts > div:nth-child(2n) {
    padding: 12px 0;
    border-right: 0;
  }

  .ai-scope > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .contact-links a {
    border-right: 0;
    border-bottom: 1px solid #bdc7d0;
  }

  .contact-links a:last-child {
    border-bottom: 0;
  }
}

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

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

  .js .reveal.will-reveal {
    transform: none !important;
    opacity: 1 !important;
  }
}
