:root {
  --display: "Sora", "Segoe UI", sans-serif;
  --body: "Manrope", "Segoe UI", sans-serif;
  --ink: #173329;
  --ink-soft: #21483a;
  --blue: #28634f;
  --blue-bright: #347a62;
  --gold: #b9633f;
  --paper: #f1ede4;
  --white: #fffdf8;
  --mist: #e4ded2;
  --muted: #66736c;
  --line: rgba(23, 51, 41, 0.16);
  --shell: min(1240px, calc(100vw - 72px));
}

body {
  color: var(--ink);
  background: var(--paper);
}

.site-header {
  color: var(--ink);
  background: rgba(241, 237, 228, 0.86);
  border-bottom-color: rgba(23, 51, 41, 0.11);
  backdrop-filter: blur(14px);
}

.site-header.scrolled {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.97);
  box-shadow: 0 10px 34px rgba(32, 49, 40, 0.1);
}

.brand-mark {
  color: var(--white);
  background: var(--ink);
}

.site-nav a:not(.nav-contact)::after {
  background: var(--gold);
}

.nav-contact {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

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

.menu-toggle span:not(.sr-only) {
  background: var(--ink);
}

.scroll-progress span {
  background: linear-gradient(90deg, var(--gold), #df9e77);
}

.hero {
  min-height: 820px;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 32%, rgba(185, 99, 63, 0.13), transparent 25%),
    linear-gradient(125deg, #f7f3eb 0%, #eee7da 56%, #e6ded0 100%);
}

.hero::after {
  left: 43%;
  background: linear-gradient(transparent, rgba(23, 51, 41, 0.13), transparent);
}

.hero-grid {
  opacity: 0.055;
  background-image:
    linear-gradient(rgba(23, 51, 41, 0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 51, 41, 0.7) 1px, transparent 1px);
  background-size: 68px 68px;
}

.hero-layout {
  grid-template-columns: minmax(360px, 0.76fr) minmax(0, 1.14fr);
  gap: clamp(70px, 9vw, 132px);
  min-height: 820px;
  padding-top: 128px;
}

.hero-copy {
  order: 2;
}

.hero-portrait {
  order: 1;
}

.eyebrow {
  color: var(--blue);
}

.eyebrow > span {
  background: var(--gold);
}

.hero h1 {
  max-width: 750px;
  font-size: clamp(60px, 6vw, 88px);
  line-height: 0.97;
}

.hero h1 em {
  color: var(--gold);
}

.hero-intro {
  color: #52675e;
}

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

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

.button-secondary {
  color: var(--ink);
  border-color: rgba(23, 51, 41, 0.38);
}

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

.hero-meta {
  border-top-color: rgba(23, 51, 41, 0.18);
}

.meta-label {
  color: #7b877f;
}

.portrait-frame {
  max-width: 430px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: 0 28px 70px rgba(48, 54, 43, 0.2);
}

.portrait-frame::before {
  z-index: 1;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(185, 99, 63, 0.75);
}

.portrait-topline {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 100%;
  left: 0;
  margin: 0;
  padding: 14px 0;
  color: var(--ink);
}

.portrait-frame img {
  position: relative;
  z-index: 2;
  aspect-ratio: 4 / 5.15;
}

.portrait-caption {
  position: absolute;
  z-index: 3;
  right: -34px;
  bottom: 28px;
  width: 220px;
  padding: 18px 20px;
  color: var(--white);
  background: var(--ink);
  box-shadow: 0 18px 34px rgba(23, 51, 41, 0.22);
}

.portrait-caption strong {
  color: #f0c2aa;
}

.status-pulse {
  background: #df9e77;
  border-color: rgba(255, 255, 255, 0.25);
  animation: none;
}

.blueprint-note {
  display: none;
}

.impact-strip {
  color: var(--white);
  background: var(--ink);
  border: 0;
}

.impact-item,
.impact-item:first-child,
.impact-item:nth-child(3) {
  border-color: rgba(255, 255, 255, 0.14);
}

.impact-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.impact-item strong {
  color: #f0c2aa;
}

.impact-item span {
  color: #c7d3cd;
}

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

.profile-layout {
  grid-template-columns: 190px 1fr;
  gap: 80px;
}

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

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

.profile-columns {
  grid-template-columns: 1.15fr 0.85fr;
}

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

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

.expertise-card {
  min-height: 300px;
  padding: 38px;
  background: #f7f4ed;
  border: 1px solid rgba(23, 51, 41, 0.12);
  border-top: 0;
  border-left: 4px solid var(--blue);
}

.expertise-card:nth-child(2n) {
  transform: translateY(30px);
}

.expertise-card:nth-child(2n):hover {
  transform: translateY(24px);
}

.expertise-card:hover {
  border-left-color: var(--gold);
  box-shadow: 0 20px 44px rgba(39, 63, 52, 0.1);
}

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

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

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

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

.projects-heading > p {
  color: #5e6d66;
}

.project-filters {
  border-bottom-color: rgba(23, 51, 41, 0.16);
}

.filter-button {
  color: var(--ink);
  border-color: rgba(23, 51, 41, 0.24);
}

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

.projects-grid {
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.project-card {
  grid-column: span 6;
}

.project-card:nth-child(4n + 1),
.project-card:nth-child(4n + 4) {
  grid-column: span 7;
}

.project-card:nth-child(4n + 2),
.project-card:nth-child(4n + 3) {
  grid-column: span 5;
}

.project-open {
  border-color: rgba(23, 51, 41, 0.12);
  box-shadow: 0 16px 38px rgba(48, 54, 43, 0.13);
}

.project-card:hover .project-open,
.project-open:focus-visible {
  border-color: rgba(185, 99, 63, 0.54);
  box-shadow: 0 24px 52px rgba(48, 54, 43, 0.18);
}

.project-pattern {
  background: linear-gradient(135deg, #215b49, #b9633f);
}

.project-meta {
  color: var(--blue);
}

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

.timeline-dot {
  background: var(--gold);
  border-color: var(--paper);
  box-shadow: 0 0 0 1px var(--gold);
}

.credentials-section {
  background:
    radial-gradient(circle at 82% 12%, rgba(185, 99, 63, 0.18), transparent 34%),
    #173329;
}

.contact-section {
  background: #a9583b;
}

.contact-copy h2 em,
.contact-actions span {
  color: #ffe1cf;
}

.contact-grid {
  opacity: 0.07;
}

.site-footer {
  color: #aebbb5;
  background: #10251d;
}

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

@media (max-width: 860px) {
  :root { --shell: min(100% - 36px, 720px); }
  .site-header,
  .site-header.scrolled { color: var(--ink); background: rgba(255, 253, 248, 0.97); }
  .site-nav { background: rgba(255, 253, 248, 0.99); }
  .site-nav a { color: var(--ink); border-bottom-color: rgba(23, 51, 41, 0.1); }
  .hero-layout { grid-template-columns: 1fr; gap: 86px; }
  .hero-copy { order: 1; }
  .hero-portrait { order: 2; }
  .portrait-frame { margin-inline: auto; }
  .profile-layout, .section-heading, .projects-heading, .experience-layout, .credential-layout, .contact-layout { grid-template-columns: 1fr; }
  .expertise-card:nth-child(2n), .expertise-card:nth-child(2n):hover { transform: none; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 28px); }
  .hero h1 { font-size: clamp(44px, 12.5vw, 56px); }
  .hero-layout { padding-top: 120px; }
  .portrait-caption { right: -7px; bottom: 18px; width: 205px; }
  .expertise-grid, .projects-grid { grid-template-columns: 1fr; }
  .project-card, .project-card:nth-child(n) { grid-column: 1; }
}

/* Version 2: optimized architectural editorial composition */
:root {
  --editorial-shadow: 0 26px 70px rgba(30, 43, 36, 0.14);
  --editorial-shadow-soft: 0 14px 34px rgba(30, 43, 36, 0.1);
}

.site-header .nav-wrap {
  min-height: 100%;
}

.site-header:not(.scrolled) {
  background: linear-gradient(to bottom, rgba(247, 243, 235, 0.96), rgba(247, 243, 235, 0.78));
}

.site-nav a {
  position: relative;
}

@media (min-width: 861px) {
  .site-header .nav-wrap {
    position: relative;
  }

  .site-nav {
    position: absolute;
    inset: 0;
    width: 100%;
    justify-content: center;
    transform: none;
    pointer-events: none;
  }

  .site-nav a {
    pointer-events: auto;
  }

  .site-nav .nav-contact {
    position: absolute;
    right: 0;
  }
}

.hero {
  min-height: 780px;
  isolation: isolate;
  background:
    radial-gradient(circle at 10% 82%, rgba(185, 99, 63, 0.14), transparent 28%),
    linear-gradient(125deg, #f8f5ee 0%, #f0eade 52%, #e7ddce 100%);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 118px;
  right: 0;
  width: min(15vw, 210px);
  height: 1px;
  background: var(--gold);
  opacity: 0.72;
}

.hero::after {
  left: 41%;
  opacity: 0.72;
}

.hero-layout {
  grid-template-columns: minmax(350px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(74px, 9vw, 138px);
  min-height: 780px;
  padding-top: 142px;
  padding-bottom: 104px;
  align-items: center;
}

.hero-copy {
  position: relative;
  padding-block: 24px;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(48px, 4.4vw, 66px);
  line-height: 1;
  text-wrap: balance;
}

.hero-intro {
  max-width: 650px;
  margin-top: 32px;
  color: #4f625a;
  font-size: 18px;
  line-height: 1.72;
}

.hero-actions {
  gap: 12px;
}

.button {
  min-height: 52px;
  padding-inline: 22px;
}

.hero-meta {
  max-width: 650px;
  margin-top: 40px;
  padding-top: 22px;
}

.hero-meta div {
  min-width: 0;
}

.portrait-frame {
  max-width: 455px;
  box-shadow: 0 34px 86px rgba(43, 47, 39, 0.22);
}

.portrait-frame::before {
  inset: 22px -22px -22px 22px;
  border-color: rgba(185, 99, 63, 0.68);
}

.portrait-frame img {
  aspect-ratio: 4 / 5.2;
  object-fit: cover;
}

.portrait-caption {
  right: -42px;
  bottom: 32px;
  width: 230px;
  padding: 20px 22px;
}

.impact-strip {
  position: relative;
  z-index: 4;
  width: var(--shell);
  margin: -42px auto 0;
  border: 1px solid rgba(23, 51, 41, 0.12);
  box-shadow: var(--editorial-shadow);
}

.impact-strip .impact-grid {
  width: 100%;
}

.impact-item,
.impact-item:first-child,
.impact-item:nth-child(3) {
  min-height: 122px;
  padding: 26px 30px;
}

.impact-item strong {
  font-size: clamp(34px, 3.1vw, 46px);
}

.impact-item span,
.meta-label,
.timeline-date,
.timeline-content .role,
.education-card > span,
.credential-row > span,
.contact-actions span {
  font-size: 12px;
}

.profile-section {
  padding-top: clamp(126px, 12vw, 170px);
}

.profile-layout {
  grid-template-columns: 160px minmax(0, 1fr);
  gap: clamp(52px, 7vw, 96px);
}

.profile-content {
  padding-left: clamp(34px, 4vw, 58px);
  border-left: 1px solid var(--line);
}

.profile-columns {
  gap: clamp(36px, 6vw, 84px);
  margin-top: 44px;
  padding-top: 34px;
}

.profile-lead {
  font-size: clamp(25px, 2.45vw, 34px);
  line-height: 1.36;
}

.profile-detail {
  max-width: 480px;
  font-size: 16px;
}

.section-heading {
  align-items: end;
  margin-bottom: clamp(50px, 6vw, 78px);
}

.expertise-section {
  background:
    linear-gradient(rgba(23, 51, 41, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 51, 41, 0.035) 1px, transparent 1px),
    var(--white);
  background-size: 72px 72px;
}

.expertise-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.expertise-card,
.expertise-card:nth-child(2n) {
  min-height: 310px;
  padding: 34px 32px;
  background: rgba(247, 244, 237, 0.96);
  border: 1px solid rgba(23, 51, 41, 0.12);
  border-top: 3px solid var(--blue);
  transform: none;
}

.expertise-card:nth-child(2n):hover,
.expertise-card:hover {
  border-top-color: var(--gold);
  box-shadow: var(--editorial-shadow-soft);
  transform: translateY(-7px);
}

.expertise-index {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--blue);
  background: rgba(40, 99, 79, 0.08);
  border-radius: 50%;
  font-size: 12px;
}

.expertise-card h3 {
  margin-top: 34px;
  font-size: clamp(25px, 2.1vw, 30px);
  line-height: 1.08;
}

.expertise-card p {
  font-size: 15px;
}

.projects-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(108px, 10vw, 150px);
  background:
    radial-gradient(circle at 96% 6%, rgba(185, 99, 63, 0.15), transparent 26%),
    #e7e0d4;
}

.projects-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32%;
  height: 5px;
  background: var(--gold);
}

.projects-heading {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: 64px;
  align-items: end;
}

.projects-heading > p {
  margin-bottom: 8px;
  color: #55675f;
  font-size: 16px;
}

.project-filters {
  gap: 9px;
  margin-top: 44px;
  padding-bottom: 26px;
}

.filter-button {
  min-height: 42px;
  padding-inline: 17px;
  font-size: 12px;
}

.projects-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 28px;
}

.project-card:not(.current-card),
.project-card:nth-child(4n + 1):not(.current-card),
.project-card:nth-child(4n + 2),
.project-card:nth-child(4n + 3),
.project-card:nth-child(4n + 4) {
  grid-column: span 6;
}

.project-card.current-card {
  grid-column: 1 / -1;
}

.current-card .project-open {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.8fr);
  align-items: stretch;
}

.current-card .project-image {
  min-height: 470px;
  aspect-ratio: auto;
}

.current-card .project-image img {
  object-position: center center;
}

.current-card .project-body {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 5vw, 70px);
}

.current-card .project-body::before {
  content: "Current project";
  align-self: flex-start;
  margin-bottom: 28px;
  padding: 8px 11px;
  color: var(--white);
  background: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.current-card .project-body h3 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
}

.project-open {
  overflow: hidden;
  border-color: rgba(23, 51, 41, 0.12);
  box-shadow: var(--editorial-shadow-soft);
}

.project-card:hover .project-open,
.project-open:focus-visible {
  border-color: rgba(185, 99, 63, 0.58);
  box-shadow: var(--editorial-shadow);
  transform: translateY(-6px);
}

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

.project-body {
  min-height: 225px;
  padding: 28px 30px 30px;
}

.project-meta,
.view-project {
  font-size: 12px;
}

.project-body h3 {
  font-size: clamp(27px, 2.6vw, 36px);
  line-height: 1.06;
}

.experience-layout {
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1fr);
  gap: clamp(70px, 9vw, 132px);
}

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

.timeline-item {
  grid-template-columns: 94px 20px minmax(0, 1fr);
  padding-bottom: 26px;
}

.timeline-content {
  padding: 25px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.timeline-item:hover .timeline-content {
  border-color: rgba(185, 99, 63, 0.38);
  box-shadow: var(--editorial-shadow-soft);
  transform: translateX(6px);
}

.timeline-content h3 {
  margin-top: 10px;
  font-size: clamp(25px, 2.25vw, 32px);
}

.timeline-content p {
  font-size: 15px;
}

.credentials-section {
  background:
    radial-gradient(circle at 86% 8%, rgba(185, 99, 63, 0.2), transparent 31%),
    linear-gradient(125deg, #173329, #10271f);
}

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

.credentials-section .section-kicker.light {
  color: #f0c2aa;
}

.credential-layout {
  grid-template-columns: minmax(310px, 0.82fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 88px);
}

.education-card {
  padding: 36px;
  border-left: 3px solid rgba(223, 158, 119, 0.72);
}

.education-card h3 {
  font-size: clamp(26px, 2.4vw, 33px);
}

.credential-row {
  grid-template-columns: 100px minmax(0, 1fr) 130px;
  padding-block: 25px;
}

.credential-row strong {
  font-size: 19px;
  line-height: 1.25;
}

.tools-row span {
  padding: 8px 13px;
  font-size: 12px;
}

.contact-section {
  background:
    radial-gradient(circle at 8% 92%, rgba(255, 225, 207, 0.12), transparent 28%),
    #a9583b;
}

.contact-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.72fr);
  gap: clamp(70px, 9vw, 130px);
}

.contact-actions a {
  padding: 24px 8px;
}

.contact-actions strong {
  font-size: clamp(19px, 2vw, 24px);
}

.site-footer {
  background: #10251d;
}

.project-dialog {
  border: 1px solid rgba(23, 51, 41, 0.16);
  box-shadow: 0 38px 100px rgba(16, 37, 29, 0.34);
}

@media (max-width: 1120px) {
  .hero-layout {
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 64px;
  }

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

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

  .current-card .project-open {
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr);
  }
}

@media (max-width: 860px) {
  .site-header:not(.scrolled),
  .site-header.scrolled {
    background: rgba(255, 253, 248, 0.97);
  }

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

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 76px;
    padding-top: 132px;
    padding-bottom: 108px;
  }

  .hero-copy {
    order: 1;
    padding-block: 0;
  }

  .hero-portrait {
    order: 2;
    width: min(100%, 455px);
    margin-inline: auto;
  }

  .impact-strip {
    margin-top: -32px;
  }

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

  .profile-content {
    padding-top: 34px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .current-card .project-open {
    grid-template-columns: 1fr;
  }

  .current-card .project-image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .current-card .project-body {
    min-height: 0;
  }

  .experience-intro {
    position: static;
  }

  .contact-layout {
    gap: 54px;
  }
}

@media (max-width: 700px) {
  .impact-strip {
    width: 100%;
    margin-top: 0;
    border-inline: 0;
    box-shadow: none;
  }

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

  .impact-item,
  .impact-item:first-child,
  .impact-item:nth-child(3) {
    min-height: 112px;
    padding: 22px 18px;
  }

  .profile-section {
    padding-top: 96px;
  }

  .profile-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

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

  .expertise-card {
    min-width: 0;
    overflow: hidden;
  }

  .expertise-card ul {
    flex-wrap: wrap;
  }

  .projects-grid > .project-card,
  .projects-grid > .project-card.current-card,
  .projects-grid > .project-card:not(.current-card),
  .projects-grid > .project-card:nth-child(n) {
    grid-column: 1;
  }

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

  .timeline-item {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
  }

  .timeline-date {
    grid-column: 2;
    padding: 0 0 8px 10px;
    text-align: left;
  }

  .timeline-dot {
    grid-row: 1 / span 2;
    grid-column: 1;
  }

  .timeline-content {
    grid-column: 2;
    padding: 22px;
  }

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

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

@media (max-width: 520px) {
  .hero-layout {
    gap: 64px;
    padding-top: 114px;
    padding-bottom: 82px;
  }

  .hero h1 {
    font-size: clamp(42px, 12.2vw, 52px);
    line-height: 0.98;
    text-wrap: auto;
  }

  .section-title {
    font-size: clamp(38px, 11vw, 46px);
    text-wrap: pretty;
  }

  .section-title span {
    display: block;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .portrait-caption {
    right: -4px;
    bottom: 18px;
    width: 205px;
  }

  .expertise-card,
  .expertise-card:nth-child(2n) {
    min-height: 0;
  }

  .current-card .project-body,
  .project-body {
    padding: 25px;
  }

  .current-card .project-body::before {
    margin-bottom: 20px;
  }
}

/* Balanced portrait sizing for desktop and mobile */
.hero-portrait {
  width: 100%;
  max-width: 390px;
  justify-self: center;
}

.portrait-frame {
  width: 100%;
  max-width: 360px;
  margin-inline: auto;
}

.portrait-frame::before {
  inset: 16px -16px -16px 16px;
}

.portrait-caption {
  right: -26px;
  bottom: 24px;
  width: 198px;
  padding: 15px 17px;
}

@media (max-width: 860px) {
  .hero-layout {
    gap: 62px;
  }

  .hero-portrait {
    width: min(78vw, 340px);
  }

  .portrait-frame {
    max-width: 340px;
  }

  .portrait-caption {
    right: -18px;
    width: 188px;
  }
}

@media (max-width: 520px) {
  .hero-layout {
    gap: 52px;
  }

  .hero-portrait {
    width: min(82vw, 300px);
  }

  .portrait-frame {
    max-width: 300px;
  }

  .portrait-frame::before {
    inset: 12px -12px -12px 12px;
  }

  .portrait-caption {
    right: -10px;
    bottom: 16px;
    width: 174px;
    padding: 13px 14px;
  }

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

/* Compact portrait scale */
.hero-portrait {
  max-width: 330px;
}

.portrait-frame {
  max-width: 300px;
}

.portrait-frame::before {
  inset: 13px -13px -13px 13px;
}

.portrait-caption {
  right: -20px;
  bottom: 18px;
  width: 172px;
  padding: 13px 15px;
}

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

/* Staggered word and section motion */
.word-reveal {
  display: inline-block;
  transform-origin: 50% 100%;
}

.motion-ready .reveal .word-reveal {
  opacity: 0;
  transform: translateY(0.7em) rotateX(-48deg);
  transition:
    opacity 520ms ease calc(var(--delay, 0ms) + var(--word-delay, 0ms)),
    transform 680ms var(--ease-out) calc(var(--delay, 0ms) + var(--word-delay, 0ms));
}

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

.motion-ready .expertise-card.reveal:nth-child(3n + 1):not(.visible) {
  transform: translate3d(-28px, 34px, 0) rotate(-1.2deg);
}

.motion-ready .expertise-card.reveal:nth-child(3n + 2):not(.visible) {
  transform: translate3d(0, 42px, 0) scale(0.96);
}

.motion-ready .expertise-card.reveal:nth-child(3n):not(.visible) {
  transform: translate3d(28px, 34px, 0) rotate(1.2deg);
}

.motion-ready .project-card.reveal:nth-child(odd):not(.visible) {
  transform: translate3d(-32px, 46px, 0) scale(0.96);
}

.motion-ready .project-card.reveal:nth-child(even):not(.visible) {
  transform: translate3d(32px, 46px, 0) scale(0.96);
}

.motion-ready .timeline-item.reveal:nth-child(odd):not(.visible) {
  transform: translateX(34px);
}

.motion-ready .timeline-item.reveal:nth-child(even):not(.visible) {
  transform: translateX(-22px);
}

.motion-ready .expertise-card.reveal.visible:hover {
  transform: translateY(-7px);
}

/* In-place 3D project detail cards */
.project-open {
  perspective: 1600px;
}

.project-card-inner {
  display: grid;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 760ms cubic-bezier(0.2, 0.78, 0.2, 1);
}

.project-card-front,
.project-card-back {
  grid-area: 1 / 1;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.project-card-front {
  display: block;
  background: var(--white);
}

.project-card-back {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: clamp(30px, 4vw, 48px);
  color: var(--white);
  background:
    radial-gradient(circle at 90% 8%, rgba(223, 158, 119, 0.2), transparent 34%),
    linear-gradient(145deg, #173329, #0f261e);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotateY(180deg);
}

.project-card-back::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 52px;
  height: 1px;
  background: #df9e77;
}

.project-card.is-flipped .project-card-inner {
  transform: rotateY(180deg);
}

.current-card .project-open {
  display: block;
}

.current-card .project-card-front {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.8fr);
  align-items: stretch;
}

.flip-label {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 7px 10px;
  color: #173329;
  background: #f0c2aa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flip-title {
  max-width: 620px;
  font-family: var(--display);
  font-size: clamp(29px, 3.3vw, 48px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.flip-summary {
  max-width: 680px;
  margin-top: 17px;
  color: #cfdbd5;
  font-size: 15px;
  line-height: 1.55;
}

.flip-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.flip-facts > span {
  display: grid;
  gap: 3px;
}

.flip-facts small {
  color: #f0c2aa;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flip-facts b {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.flip-hint {
  margin-top: 23px;
  color: #f0c2aa;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .hero-portrait {
    width: min(64vw, 260px);
    max-width: 260px;
  }

  .portrait-frame {
    max-width: 260px;
  }

  .portrait-caption {
    right: -14px;
    width: 158px;
  }

  .current-card .project-card-front {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero-portrait {
    width: min(60vw, 230px);
    max-width: 230px;
  }

  .portrait-frame {
    max-width: 230px;
  }

  .portrait-topline {
    font-size: 9px;
  }

  .portrait-frame::before {
    inset: 9px -9px -9px 9px;
  }

  .portrait-caption {
    right: -10px;
    bottom: 12px;
    width: 146px;
    padding: 11px 12px;
  }

  .portrait-caption p {
    font-size: 11px;
  }

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

  .project-card-back {
    padding: 24px;
  }

  .flip-title {
    font-size: 29px;
  }

  .flip-summary {
    font-size: 14px;
  }

  .flip-facts {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .word-reveal,
  .motion-ready .reveal .word-reveal,
  .project-card-inner {
    transition: none !important;
  }

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

/* Comprehensive phone layout */
@media (max-width: 700px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  :root {
    --shell: calc(100% - 32px);
  }

  body {
    font-size: 16px;
    line-height: 1.58;
  }

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

  .nav-wrap {
    gap: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }

  .brand-name {
    overflow: hidden;
    font-size: 13px;
    letter-spacing: 0.075em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    margin-right: -8px;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    bottom: auto;
    left: 0;
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    max-height: none;
    padding: 8px 20px max(16px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 20px 38px rgba(23, 51, 41, 0.16);
  }

  .site-nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding-block: 10px;
    font-size: 14px;
  }

  .site-nav .nav-contact {
    position: sticky;
    z-index: 1;
    bottom: max(8px, env(safe-area-inset-bottom));
    min-height: 46px;
    margin-top: 8px;
    justify-content: center;
    color: var(--white);
    background: var(--ink);
    box-shadow: 0 10px 24px rgba(23, 51, 41, 0.18);
  }

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

  .hero {
    background:
      radial-gradient(circle at 8% 82%, rgba(185, 99, 63, 0.11), transparent 25%),
      linear-gradient(145deg, #f8f5ee, #ece4d7);
  }

  .hero::before {
    top: 92px;
    width: 58px;
  }

  .hero-layout {
    gap: 46px;
    padding-top: 112px;
    padding-bottom: 74px;
  }

  .hero-copy {
    width: 100%;
    overflow: visible;
  }

  .eyebrow,
  .section-kicker {
    gap: 10px;
    font-size: 11px;
    letter-spacing: 0.11em;
  }

  .hero h1 {
    max-width: 100%;
    margin-top: 22px;
    font-size: clamp(2.25rem, 10.4vw, 2.75rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
    text-wrap: balance;
  }

  .hero-intro {
    margin-top: 25px;
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 50px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
    gap: 17px;
    margin-top: 32px;
    padding-top: 20px;
  }

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

  .hero-portrait {
    width: min(54vw, 210px);
    max-width: 210px;
  }

  .portrait-frame {
    max-width: 210px;
  }

  .portrait-topline {
    gap: 8px;
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .portrait-caption {
    right: -9px;
    bottom: 10px;
    width: 136px;
    padding: 10px 11px;
  }

  .portrait-caption p {
    font-size: 10px;
    line-height: 1.35;
  }

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

  .status-pulse {
    width: 8px;
    height: 8px;
  }

  .impact-strip {
    width: 100%;
    margin: 0;
  }

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

  .impact-item,
  .impact-item:first-child,
  .impact-item:nth-child(3) {
    min-width: 0;
    min-height: 104px;
    padding: 20px 16px;
  }

  .impact-item strong {
    font-size: clamp(28px, 8vw, 34px);
  }

  .impact-item span {
    font-size: 10px;
    line-height: 1.35;
  }

  .section {
    padding-block: 72px;
  }

  .profile-section {
    padding-top: 78px;
  }

  .section-number {
    min-width: 30px;
    min-height: 30px;
  }

  .section-heading,
  .projects-heading {
    gap: 24px;
    margin-bottom: 42px;
  }

  .section-title {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 2.4375rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
    text-wrap: wrap;
  }

  .section-title span {
    display: inline;
  }

  .profile-layout {
    gap: 24px;
  }

  .profile-content {
    padding-top: 26px;
  }

  .profile-columns {
    gap: 24px;
    margin-top: 30px;
    padding-top: 25px;
  }

  .profile-lead {
    font-size: clamp(21px, 6.2vw, 26px);
    line-height: 1.34;
  }

  .profile-detail {
    font-size: 15px;
  }

  .expertise-grid {
    gap: 13px;
  }

  .expertise-card,
  .expertise-card:nth-child(2n) {
    min-height: 0;
    padding: 26px 23px;
  }

  .expertise-index {
    width: 32px;
    height: 32px;
  }

  .expertise-card h3 {
    margin-top: 24px;
    font-size: 23px;
  }

  .expertise-card p {
    font-size: 15px;
  }

  .expertise-card ul {
    gap: 6px;
  }

  .expertise-card li {
    max-width: 100%;
    white-space: normal;
  }

  .projects-section {
    padding-block: 78px;
  }

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

  .project-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 30px;
    padding-bottom: 20px;
    overflow: visible;
  }

  .filter-button {
    width: 100%;
    min-height: 44px;
    padding: 9px 10px;
    font-size: 12px;
    white-space: normal;
  }

  .projects-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }

  .project-card,
  .project-card.current-card,
  .project-card:not(.current-card),
  .project-card:nth-child(n) {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    align-self: start;
    justify-self: stretch;
  }

  .project-open {
    display: block;
    width: 100%;
    height: var(--project-card-height, auto);
    min-height: 0;
    -webkit-perspective: 1200px;
    perspective: 1200px;
    isolation: isolate;
    touch-action: manipulation;
  }

  .project-card-inner {
    height: 100%;
    min-height: 0;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
  }

  .project-card-front,
  .current-card .project-card-front,
  .project-card-back {
    height: 100%;
    min-height: 0;
  }

  .project-card-front,
  .current-card .project-card-front {
    display: flex;
    flex-direction: column;
    transform: rotateY(0deg) translateZ(1px);
  }

  .project-card-back {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: rotateY(180deg) translateZ(1px);
  }

  .project-card:hover .project-open,
  .project-open:focus-visible {
    transform: none;
  }

  .project-image,
  .project-pattern,
  .current-card .project-image {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .project-body,
  .current-card .project-body {
    display: flex;
    flex: 1;
    width: 100%;
    min-height: 205px;
    flex-direction: column;
    padding: 23px;
  }

  .current-card .project-body::before {
    margin-bottom: 18px;
  }

  .project-body h3,
  .current-card .project-body h3 {
    font-size: clamp(1.5rem, 7vw, 1.8125rem);
    line-height: 1.08;
  }

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

  .view-project {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 17px;
  }

  .project-card-back {
    justify-content: center;
    padding: 24px 22px;
  }

  .flip-label {
    margin-bottom: 15px;
  }

  .flip-title {
    font-size: clamp(1.5rem, 7vw, 1.75rem);
    line-height: 1.08;
  }

  .flip-summary {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.48;
  }

  .flip-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 16px;
    margin-top: 18px;
    padding-top: 16px;
  }

  .flip-facts b {
    font-size: 13px;
  }

  .flip-hint {
    margin-top: 18px;
  }

  .experience-layout {
    gap: 42px;
  }

  .experience-intro > p {
    margin-top: 22px;
    font-size: 15px;
  }

  .timeline-item {
    gap: 10px;
    padding-bottom: 20px;
  }

  .timeline-date {
    padding-left: 8px;
  }

  .timeline-content {
    padding: 20px;
  }

  .timeline-content h3 {
    font-size: 23px;
  }

  .timeline-content p {
    font-size: 14px;
  }

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

  .credential-layout {
    gap: 34px;
  }

  .education-card {
    padding: 27px 23px;
  }

  .education-card h3 {
    margin-top: 18px;
    font-size: 24px;
  }

  .credential-row {
    gap: 5px;
    padding-block: 19px;
  }

  .credential-row strong {
    font-size: 18px;
  }

  .tools-row {
    gap: 7px;
    margin-top: 38px;
  }

  .tools-row span {
    font-size: 11px;
  }

  .contact-section {
    padding-block: 76px;
  }

  .contact-layout {
    gap: 40px;
  }

  .contact-copy h2 {
    font-size: clamp(2.1875rem, 9.8vw, 2.6875rem);
    line-height: 1.04;
  }

  .contact-copy > p:last-child {
    margin-top: 22px;
    font-size: 15px;
  }

  .contact-actions a {
    min-width: 0;
    padding: 19px 5px;
  }

  .contact-actions strong {
    min-width: 0;
    font-size: 18px;
    overflow-wrap: anywhere;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    padding-block: 28px;
    text-align: center;
  }

  .footer-brand,
  .footer-inner p:last-child {
    justify-self: center;
  }

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

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

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

  .brand-name {
    font-size: 12px;
  }

  .site-nav {
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
  }

  .hero-layout {
    gap: 40px;
    padding-top: 102px;
    padding-bottom: 62px;
  }

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

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

  .hero-portrait {
    width: min(52vw, 190px);
    max-width: 190px;
  }

  .portrait-frame {
    max-width: 190px;
  }

  .portrait-caption {
    right: -8px;
    width: 126px;
  }

  .section {
    padding-block: 62px;
  }

  .profile-section {
    padding-top: 68px;
  }

  .section-title {
    font-size: clamp(1.875rem, 8.8vw, 2.1875rem);
  }

  .impact-item,
  .impact-item:first-child,
  .impact-item:nth-child(3) {
    padding: 18px 12px;
  }

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

  .project-filters {
    gap: 6px;
  }

  .filter-button {
    font-size: 11px;
  }

  .project-body,
  .current-card .project-body,
  .project-card-back {
    padding: 20px;
  }

  .contact-copy h2 {
    font-size: 2rem;
  }
}

@media (max-width: 860px) and (max-height: 500px) {
  .site-nav {
    padding-top: 4px;
  }

  .site-nav a {
    min-height: 40px;
    padding-block: 7px;
  }

  .nav-contact {
    min-height: 42px;
    margin-top: 4px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .expertise-card:hover,
  .motion-ready .expertise-card.reveal.visible:hover,
  .education-card:hover,
  .project-card:hover .project-open,
  .timeline-item:hover .timeline-content {
    transform: none;
    box-shadow: none;
  }
}

/* Keep every primary headline on one consistent responsive scale. */
:root {
  --headline-size: clamp(48px, 4.4vw, 66px);
}

.hero h1,
.section-title,
.contact-copy h2 {
  font-size: var(--headline-size);
}

@media (max-width: 860px) {
  :root {
    --headline-size: clamp(2.25rem, 10.4vw, 2.75rem);
  }
}

@media (max-width: 420px) {
  :root {
    --headline-size: clamp(2.125rem, 10vw, 2.5rem);
  }
}

/* Center every numbered section marker above its section heading. */
.profile-layout,
.section-heading,
.projects-heading,
.experience-layout {
  grid-template-columns: minmax(0, 1fr);
}

.section-kicker {
  justify-content: center;
  text-align: left;
}

.profile-layout {
  gap: 34px;
}

.profile-layout > .section-kicker {
  justify-self: center;
}

.profile-content {
  padding-left: 0;
  border-left: 0;
}

.section-heading {
  gap: 28px;
  align-items: start;
  justify-items: center;
  text-align: center;
}

.projects-heading {
  gap: 26px;
  justify-items: center;
  text-align: center;
}

.projects-heading > div {
  display: grid;
  gap: 28px;
  justify-items: center;
}

.projects-heading > p {
  max-width: 760px;
  margin: 0 auto;
}

.experience-layout {
  gap: 56px;
}

.experience-intro {
  position: static;
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.experience-intro .section-title,
.credentials-heading .section-title {
  margin-top: 28px;
}

.experience-intro > p {
  max-width: 680px;
  margin: 24px auto 0;
}

.timeline {
  width: min(100%, 960px);
  margin-inline: auto;
}

.credentials-heading {
  display: grid;
  justify-items: center;
  text-align: center;
}

.profile-content > .section-title,
.section-heading > .section-title,
.projects-heading .section-title,
.experience-intro .section-title,
.credentials-heading .section-title {
  margin-inline: auto;
  text-align: center;
}

/* Highlighted section identifiers provide a clear reading landmark. */
.section-kicker {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 50px;
  gap: 14px;
  align-items: center;
  padding: 7px 20px 7px 8px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(23, 51, 41, 0.2);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(23, 51, 41, 0.08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.25;
  text-transform: uppercase;
}

.section-kicker .section-number {
  display: grid;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border: 0;
  border-radius: 50%;
  font-size: 11px;
}

.projects-section .section-kicker.light {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.9);
  border-color: rgba(23, 51, 41, 0.2);
}

.credentials-section .section-kicker.light {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.credentials-section .section-kicker.light .section-number {
  color: var(--ink);
  background: #f0c2aa;
}

/* Core expertise presented as an editorial capability index, not cards. */
.expertise-grid {
  display: block;
  overflow: visible;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(23, 51, 41, 0.2);
  border-bottom: 1px solid rgba(23, 51, 41, 0.2);
  border-radius: 0;
  box-shadow: none;
  perspective: none;
}

.expertise-grid > .expertise-card,
.expertise-grid > .expertise-card:nth-child(2n) {
  display: grid;
  grid-template-columns: 58px minmax(190px, 0.65fr) minmax(280px, 1fr) minmax(260px, 0.85fr);
  gap: 24px;
  min-height: 0;
  align-items: center;
  padding: 28px 20px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(23, 51, 41, 0.13);
  border-radius: 0;
  transform: none;
  box-shadow: none;
}

.expertise-grid > .expertise-card:last-child {
  border-bottom: 0;
}

.expertise-grid > .expertise-card:hover,
.expertise-grid > .expertise-card:nth-child(2n):hover,
.motion-ready .expertise-grid > .expertise-card.reveal.visible:hover {
  color: var(--ink);
  background: linear-gradient(90deg, rgba(40, 99, 79, 0.07), transparent 72%);
  border-top: 0;
  box-shadow: inset 3px 0 0 var(--gold);
  transform: none;
}

.expertise-grid .expertise-index {
  grid-column: 1;
  grid-row: 1;
  width: 42px;
  height: 42px;
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(185, 99, 63, 0.58);
  border-radius: 50%;
  font-weight: 800;
}

.expertise-grid .expertise-card h3 {
  grid-column: 2;
  margin: 0;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
}

.expertise-grid .expertise-card p {
  grid-column: 3;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.expertise-grid .expertise-card ul {
  grid-column: 4;
  align-content: center;
  gap: 7px;
  margin: 0;
}

.expertise-grid .expertise-card li,
.expertise-grid .expertise-card:hover li {
  padding: 6px 9px;
  color: var(--ink-soft);
  background: rgba(40, 99, 79, 0.08);
  border: 1px solid rgba(40, 99, 79, 0.1);
  border-radius: 999px;
  font-size: 10px;
}

@media (max-width: 700px) {
  .section-kicker {
    min-height: 46px;
    padding: 6px 16px 6px 7px;
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .section-kicker .section-number {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
  }

  .expertise-grid {
    display: block;
  }

  .expertise-grid > .expertise-card,
  .expertise-grid > .expertise-card:nth-child(2n) {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0 12px;
    padding: 27px 4px;
    border-right: 0;
    border-bottom: 1px solid rgba(23, 51, 41, 0.13);
  }

  .expertise-grid > .expertise-card:last-child {
    border-bottom: 0;
  }

  .expertise-grid .expertise-index {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 36px;
    height: 36px;
  }

  .expertise-grid .expertise-card h3 {
    grid-column: 2;
    font-size: 22px;
  }

  .expertise-grid .expertise-card p,
  .expertise-grid .expertise-card ul {
    grid-column: 2;
  }

  .expertise-grid .expertise-card p {
    margin-top: 11px;
  }

  .expertise-grid .expertise-card ul {
    margin-top: 17px;
  }
}

@media (max-width: 860px) and (min-width: 701px) {
  .expertise-grid > .expertise-card,
  .expertise-grid > .expertise-card:nth-child(2n) {
    grid-template-columns: 52px minmax(210px, 0.75fr) minmax(0, 1fr);
    gap: 18px;
    padding-inline: 12px;
  }

  .expertise-grid .expertise-card h3 {
    grid-column: 2;
  }

  .expertise-grid .expertise-card p {
    grid-column: 3;
  }

  .expertise-grid .expertise-card ul {
    grid-column: 2 / -1;
    margin-top: -4px;
    padding-left: 70px;
  }
}
