:root {
  --white: #ffffff;
  --ink: #101318;
  --navy: #172232;
  --slate: #65707d;
  --line: #d7dde4;
  --soft-line: #e9edf1;
  --surface: #f7f8fa;
  --radius: 0.625rem;
  --control-radius: 0.375rem;
  --copper: #965332;
  --copper-dark: #874528;
  --display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --content: 94rem;
  --gutter: clamp(1.25rem, 4.5vw, 5rem);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

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

.shell {
  width: min(100%, var(--content));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(0.75rem);
  box-shadow: 0 2px 12px rgb(23 34 50 / 3%);
}

.header-inner {
  display: flex;
  min-height: 5.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  color: var(--ink);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 720;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.site-nav a {
  position: relative;
  padding-block: 1.8rem;
  color: var(--navy);
  font-size: 0.98rem;
  white-space: nowrap;
  font-weight: 550;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1.2rem;
  left: 0;
  height: 2px;
  background: var(--copper);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 160ms ease, transform 160ms ease;
}

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

.menu-button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  color: var(--navy);
  background: var(--surface);
}

.menu-button svg {
  width: 1.35rem;
}

.hero {
  padding-block: clamp(3rem, 6vw, 6rem) 0;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 23%);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.hero-portrait {
  margin: 0;
  padding: 0.375rem;
  border: 1px solid #d9c5b8;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 32px rgb(23 34 50 / 8%);
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 35%;
  border-radius: calc(var(--radius) - 0.375rem);
}

.hero-rail {
  max-width: 82rem;
  padding-left: clamp(1.4rem, 4vw, 4.2rem);
  border-left: 4px solid var(--copper);
}

.hero h1,
.page-intro h1,
.section-title {
  margin: 0;
  color: #07101f;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.hero h1 {
  max-width: 78rem;
  font-size: clamp(3.25rem, 5.6vw, 6rem);
  overflow-wrap: anywhere;
}

.hero-copy {
  max-width: 53rem;
  margin: 1.5rem 0 0;
  color: #334158;
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.45;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.8rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border: 1px solid #aab4c0;
  border-radius: var(--control-radius);
  color: var(--navy);
  background: transparent;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 670;
  line-height: 1.2;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

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

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

.button-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button-disabled:hover,
.button-disabled:focus-visible {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}

.location {
  margin: 1.6rem 0 0;
  color: var(--slate);
  font-size: 1.05rem;
}

.hero-rule {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.section {
  padding-block: clamp(3rem, 5.5vw, 5.5rem);
}

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

.section-title {
  font-size: clamp(2.5rem, 4.4vw, 4.5rem);
  line-height: 1.04;
}

.section-title::after,
.resume-section h2::after {
  display: block;
  width: 2.25rem;
  height: 2px;
  margin-top: 1.1rem;
  background: var(--copper);
  content: "";
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.experience-grid,
.resume-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1.8fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: start;
}

.summary-copy {
  max-width: 58rem;
  margin: 0;
  color: #253044;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1.55;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.78fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.timeline,
.capability-list,
.project-list,
.resume-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.timeline-item,
.resume-experience .resume-entry {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.resume-experience .resume-entry + .resume-entry {
  margin-top: 1.25rem;
}

.role-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  font-weight: 600;
  line-height: 1.25;
}

.role-meta,
.project-status {
  margin: 0.55rem 0 0;
  color: var(--copper-dark);
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.role-copy,
.role-duties {
  max-width: 45rem;
  margin: 1.25rem 0 0;
  color: #465264;
}

.role-duties {
  padding-left: 1.3rem;
  list-style: disc;
}

.role-duties li + li {
  margin-top: 0.55rem;
}

.role-duties li::marker {
  color: var(--copper-dark);
}

.duties-toggle {
  display: none;
  min-height: 2.75rem;
  margin-top: 1.25rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  color: var(--copper-dark);
  background: var(--surface);
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.duties-toggle:hover {
  border-color: var(--copper);
  background: #faf7f5;
}

.capability-panel {
  padding: clamp(1.25rem, 2.5vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.capability-panel .section-title {
  font-size: clamp(2rem, 3.3vw, 3rem);
}

.capability-list {
  margin-top: 2.15rem;
}

.capability-list li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.85rem;
  align-items: center;
  margin-block: 0.95rem;
  color: #222b38;
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
}

.capability-list li::before {
  width: 100%;
  height: 1px;
  background: var(--copper);
  content: "";
}

.project-list {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.project-list li + li {
  border-top: 1px solid var(--line);
}

.project-link {
  display: flex;
  min-height: 5.8rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  text-decoration: none;
  transition: background 160ms ease;
}

.project-list li:first-child .project-link {
  border-radius: var(--radius) var(--radius) 0 0;
}

.project-list li:last-child .project-link {
  border-radius: 0 0 var(--radius) var(--radius);
}

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

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

.project-link span {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 520;
  letter-spacing: -0.025em;
}

.project-link svg {
  width: 2rem;
  flex: 0 0 auto;
  color: var(--copper);
  transition: transform 160ms ease;
}

.project-link:hover svg,
.project-link:focus-visible svg {
  transform: translateX(0.4rem);
}

.education-block {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-block: 2.5rem;
  border-top: 1px solid var(--line);
}

.education-block .section-title {
  font-size: clamp(2.5rem, 4vw, 4rem);
}

.education-copy {
  margin: 1.5rem 0 0;
  color: var(--navy);
  font-size: clamp(1.25rem, 2.6vw, 2.15rem);
  line-height: 1.35;
}

.contact-band {
  border-top: 3px solid var(--copper);
  color: var(--white);
  background: var(--navy);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.45fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: center;
  padding-block: clamp(4rem, 7vw, 6rem);
}

.contact-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.3rem, 6vw, 5.7rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.contact-copy {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: #cdd4dd;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.contact-links .button {
  border-color: #aab4c0;
  color: var(--white);
}

.contact-links .button:hover,
.contact-links .button:focus-visible {
  border-color: var(--white);
  color: var(--navy);
  background: var(--white);
}

.contact-links .button-primary {
  border-color: var(--copper);
  background: var(--copper);
}

.contact-links .button-primary:hover,
.contact-links .button-primary:focus-visible {
  border-color: var(--copper-dark);
  color: var(--white);
  background: var(--copper-dark);
}

.footer-note {
  margin: 0;
  padding-block: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 18%);
  color: #acb5c0;
  font-size: 0.86rem;
}

.page-intro {
  padding-block: clamp(3rem, 5.5vw, 5rem);
  border-bottom: 1px solid var(--line);
}

.page-intro h1 {
  max-width: 72rem;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.04;
}

.page-intro p {
  max-width: 52rem;
  margin: 2rem 0 0;
  color: #3e4a5d;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.case-study {
  display: grid;
  grid-template-columns: minmax(13rem, 0.7fr) minmax(0, 1.5fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.case-study h2,
.resume-section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.25rem, 3.2vw, 3.2rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.case-study h3 {
  margin: 2rem 0 0.45rem;
  color: var(--copper-dark);
  font-size: 0.83rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-study h3:first-child {
  margin-top: 0;
}

.case-study p {
  max-width: 49rem;
  margin: 0;
  color: #3f4a5c;
}

.tools-line {
  margin-top: 2rem;
  color: var(--slate);
  font-size: 0.94rem;
}

.case-study .tools-line {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--soft-line);
}

.case-study .project-status {
  margin-top: 1rem;
  color: var(--copper-dark);
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.status-note {
  max-width: 42rem;
  margin: 1rem 0 0;
  color: var(--slate);
  font-size: 0.94rem;
}

.resume-grid {
  padding-block: clamp(4rem, 7vw, 7rem);
}

.resume-sidebar {
  position: sticky;
  top: 7.5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-top: 2px solid var(--copper);
  border-radius: var(--radius);
  background: var(--surface);
}

.resume-sidebar h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resume-sidebar p {
  margin: 0.75rem 0 0;
  color: var(--slate);
}

.resume-section {
  padding-bottom: 4rem;
}

.resume-section + .resume-section {
  padding-top: 4rem;
  border-top: 1px solid var(--line);
}

.resume-section h2 {
  margin-bottom: 1.8rem;
  font-size: clamp(2.2rem, 3vw, 3.15rem);
}

.resume-entry + .resume-entry {
  margin-top: 2.7rem;
}

.resume-entry h3 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
}

.resume-entry p {
  margin: 0.7rem 0 0;
  color: #435064;
}

.resume-experience .resume-entry > p {
  color: var(--copper-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.resume-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 2rem;
}

.resume-list li {
  position: relative;
  padding-left: 1.3rem;
  color: #334054;
}

.resume-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 0.45rem;
  height: 1px;
  background: var(--copper);
  content: "";
}

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

@media (max-width: 70rem) {
  .experience-layout {
    grid-template-columns: 1fr;
  }

  .capability-panel {
    max-width: 54rem;
  }
}

@media (max-width: 64rem) {
  html {
    scroll-padding-top: 4.75rem;
  }

  .header-inner {
    min-height: 4.75rem;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: var(--gutter);
    left: var(--gutter);
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 0.35rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 1rem 2rem rgb(17 24 39 / 8%);
  }

  .site-nav[data-open] {
    display: grid;
  }

  .site-nav a {
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--soft-line);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    bottom: 0.45rem;
  }

  .case-study,
  .resume-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .resume-sidebar {
    position: static;
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .hero-portrait {
    grid-row: auto;
    width: min(72vw, 17rem, 100%);
    margin-inline: auto;
  }
}

/* Employer portfolio: retain the established type, copper accent, and quiet layout. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.section-kicker {
  margin: 0 0 1.1rem;
  color: var(--copper-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.6;
  text-transform: uppercase;
}
.hero-specialties {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: var(--navy);
  font-size: clamp(1.1rem, 1.7vw, 1.5rem);
  font-weight: 620;
  line-height: 1.45;
}
.hero .location { max-width: 42rem; font-size: 0.94rem; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.25rem;
}
.section-heading .section-title { max-width: 46rem; }
.text-link {
  display: inline-block;
  color: var(--copper-dark);
  font-weight: 650;
  line-height: 1.5;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}
.text-link:hover { color: var(--navy); }
.text-link span { margin-left: 0.25em; }
.section-heading > .text-link { flex: 0 0 auto; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.work-card {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-top: 3px solid var(--copper);
  border-radius: var(--radius);
  background: var(--surface);
}
.work-card h3 { margin: 0; font-family: var(--display); font-size: clamp(1.75rem, 2.7vw, 2.6rem); letter-spacing: -0.035em; line-height: 1.15; }
.work-card > p:not(.section-kicker) { color: #435064; }
.work-card .work-meta { margin-top: auto; padding-top: 0.75rem; font-size: 0.85rem; }
.work-card .text-link { margin-top: 0.5rem; }
.story-band { background: #f7f5f2; }
.story-layout, .creative-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.story-copy p { margin: 0 0 1.3rem; color: #354254; font-size: 1.1rem; line-height: 1.8; }
.section-intro { max-width: 52rem; margin: 0 0 1.5rem; color: #435064; font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.section-link { margin: 1.75rem 0 0; }
.skill-heading { margin: 2rem 0 0.75rem; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.skill-heading + .capability-list { margin-top: 0; }
.capability-list li { font-size: 1rem; }
.creative-band { border-top: 1px solid var(--line); background: var(--surface); }
.contact-band .section-kicker { color: #e5b799; }
.contact-email { display: inline-block; margin-top: 1.25rem; color: #fff; font-size: 1.1rem; overflow-wrap: anywhere; text-underline-offset: 0.2em; }
.contact-band :focus-visible { outline-color: #fff; }
.footer-note a { color: inherit; text-underline-offset: 0.2em; }
.project-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; margin-top: 2rem; }
.project-nav a { padding-block: 0.5rem; color: var(--copper-dark); font-weight: 600; text-underline-offset: 0.2em; }
.portfolio-section { padding-top: 3rem; }
.portfolio-section > .section-heading { display: block; }
.portfolio-section .section-heading .section-title { margin-bottom: 1.4rem; }
.page-intro .section-kicker { margin: 0 0 1.1rem; color: var(--copper-dark); font-size: 0.76rem; }
.portfolio-section > h2 { margin: 0; font-family: var(--display); font-size: clamp(2.3rem, 4vw, 3.5rem); letter-spacing: -0.035em; }
.case-study .case-title { margin: 0; color: var(--ink); font-family: var(--display); font-size: clamp(2rem, 3.2vw, 3rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1.1; text-transform: none; }
.case-study h4 { margin: 2rem 0 0.45rem; color: var(--copper-dark); font-size: 0.83rem; letter-spacing: 0.08em; text-transform: uppercase; }
.case-study h4:first-child { margin-top: 0; }
.case-details > p + p { margin-top: 1rem; }
.case-study li { color: #3f4a5c; }
.case-study li + li { margin-top: 0.6rem; }
.project-figure { margin: 2rem 0; }
.project-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.project-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: var(--radius); background: #111; }
.project-figure--compact { max-width: 32rem; }
.m5-demo-actions { align-items: center; gap: 1rem 1.5rem; }
.m5-demo-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.5fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-top: 2rem; border-top: 1px solid var(--line); scroll-margin-top: 7rem; }
.m5-demo-guide ol { padding-left: 1.25rem; }
.m5-demo-guide li { padding-left: 0.3rem; line-height: 1.65; }
.case-study .m5-demo-guide h4 { margin-top: 0.75rem; }
.m5-demo-video { margin: 0; min-width: 0; scroll-margin-top: 7rem; }
.m5-demo-video video { aspect-ratio: 4 / 3; }
.m5-video-description { margin-top: 1rem; font-size: 0.9rem; line-height: 1.6; color: #596575; }
.m5-video-description summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.m5-video-description p + p { margin-top: 0.8rem; }
@media (max-width: 64rem) { .m5-demo-feature { grid-template-columns: 1fr; } }
.project-figure figcaption { margin-top: 0.75rem; color: #596575; font-size: 0.88rem; line-height: 1.55; }
.section-note { max-width: 50rem; color: #596575; font-size: 0.95rem; }
.evidence-list { padding-left: 1.25rem; }
@media (max-width: 64rem) {
  .section-heading { align-items: start; flex-direction: column; gap: 1.2rem; }
  .story-layout, .creative-layout { grid-template-columns: 1fr; }
  .hero-portrait { width: min(52vw, 15rem); }
}
@media (max-width: 38rem) {
  .work-grid { grid-template-columns: 1fr; }
  .hero .section-kicker { font-size: 0.68rem; letter-spacing: 0.07em; }
  .hero .button-row .button { font-size: 0.93rem; }
  .section-kicker { margin-bottom: 0.75rem; }
  .story-copy p { font-size: 1rem; }
  .hero-specialties { font-size: 1.12rem; }
  .section-heading > .text-link { flex: auto; }
  .case-study .case-title { font-size: 1.8rem; }
}
@media print {
  .duties-toggle { display: none !important; }
  .role-duties > li { display: list-item !important; }
  .resume-sidebar { overflow-wrap: anywhere; }
}

@media (max-width: 38rem) {
  html {
    scroll-padding-top: 5rem;
  }

  .header-inner {
    min-height: 4rem;
    gap: 1rem;
  }

  .hero {
    padding-block: 2rem 0;
  }

  .hero h1 {
    font-size: clamp(2.1rem, 8.8vw, 3.1rem);
    line-height: 1.06;
  }

  .hero-rail {
    padding-left: 0;
    border-left: 0;
  }

  .hero-copy {
    margin-top: 1.25rem;
    font-size: 1.08rem;
    line-height: 1.6;
  }

  .hero-rule {
    margin: 2rem 0 0;
  }

  .section,
  .page-intro,
  .resume-grid,
  .case-study {
    padding-block: 2.5rem;
  }

  .section-title,
  .capability-panel .section-title,
  .education-block .section-title,
  .page-intro h1,
  .contact-title {
    font-size: clamp(2.1rem, 8.5vw, 2.75rem);
    line-height: 1.08;
  }

  .summary-grid {
    gap: 1.25rem;
  }

  .summary-copy {
    font-size: 1.25rem;
    line-height: 1.55;
  }

  .experience-layout {
    gap: 2.5rem;
  }

  .button-row,
  .resume-actions {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.5rem;
  }

  .button {
    width: 100%;
    min-height: 3.15rem;
    padding: 0.8rem 1rem;
  }

  .location {
    margin-top: 1rem;
    font-size: 0.95rem;
  }

  .timeline {
    margin-top: 1.75rem;
    gap: 1rem;
  }

  .timeline-item,
  .resume-experience .resume-entry {
    padding: 1rem;
  }

  .capability-panel {
    padding: 1.25rem;
  }

  .capability-panel .section-title {
    font-size: 2rem;
  }

  .role-title,
  .resume-entry h3 {
    font-size: 1.25rem;
    line-height: 1.35;
  }

  .role-meta {
    font-size: 0.78rem;
    letter-spacing: 0.025em;
    line-height: 1.6;
  }

  .role-duties {
    margin-top: 1rem;
    padding-left: 1.1rem;
  }

  .role-duties li + li {
    margin-top: 1rem;
  }

  .role-duties strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--navy);
  }

  .capability-list,
  .project-list {
    margin-top: 1.5rem;
  }

  .capability-list li {
    grid-template-columns: 1.25rem 1fr;
    gap: 0.75rem;
  }

  .project-link {
    min-height: 4.5rem;
    gap: 0.8rem;
    padding: 1rem;
  }

  .project-link span {
    font-size: 1.25rem;
  }

  .project-link svg {
    width: 1.4rem;
  }

  .education-block {
    margin-top: 2.5rem;
    padding-block: 1.75rem;
  }

  .education-copy {
    margin-top: 1rem;
    font-size: 1.15rem;
  }

  .contact-inner {
    padding-block: 2.5rem;
    gap: 1.5rem;
  }

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

  .page-intro p {
    margin-top: 1.25rem;
    font-size: 1.05rem;
  }

  .resume-sidebar {
    padding: 1.25rem;
  }

  .resume-section {
    padding-bottom: 2rem;
  }

  .resume-section + .resume-section {
    padding-top: 2rem;
  }

  .resume-section h2,
  .case-study h2 {
    font-size: 2rem;
    line-height: 1.1;
  }
}

@media screen and (max-width: 38rem) {
  .role-duties[data-collapsible][data-expanded="false"] > li:nth-child(n + 3) {
    display: none;
  }

  .duties-toggle {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
  }
}

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

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

@media print {
  .site-header,
  .contact-band,
  .resume-actions,
  .skip-link {
    display: none !important;
  }

  body {
    color: #000;
    font-size: 10.5pt;
  }

  .page-intro,
  .resume-grid,
  .resume-section {
    padding-block: 1rem;
  }

  .resume-grid {
    grid-template-columns: 12rem 1fr;
    gap: 2rem;
  }

  .resume-sidebar {
    position: static;
  }

  .timeline-item,
  .resume-experience .resume-entry,
  .capability-panel,
  .resume-sidebar,
  .hero-portrait {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .section-title::after,
  .resume-section h2::after {
    display: none;
  }
}

/* Remodeling galleries use local image links as their no-JavaScript fallback. */
.remodeling-project > * { min-width: 0; }
.remodeling-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1rem;
  margin-top: 1.5rem;
}
.remodeling-gallery > figure { min-width: 0; margin: 0; }
.remodeling-gallery .gallery-lead { grid-column: 1 / -1; }
.remodeling-gallery .gallery-link {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eceeeb;
}
.remodeling-gallery .gallery-link:hover { border-color: var(--copper); }
.remodeling-gallery picture { display: block; }
.remodeling-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
.remodeling-gallery figcaption {
  margin-top: 0.6rem;
  color: #596575;
  font-size: 0.88rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.remodeling-gallery .gallery-lead figcaption { font-size: 0.94rem; }
.technical-gallery { grid-column: 1 / -1; margin-top: 0; }
.remodeling-project .album-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
}
.remodeling-project .album-links a { padding-block: 0.5rem; }
html.gallery-viewer-open,
html.gallery-viewer-open body { overflow: hidden; }
.gallery-dialog {
  width: min(72rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 1.25rem;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 1.5rem 5rem rgb(0 0 0 / 30%);
}
.gallery-dialog::backdrop { background: rgb(12 20 30 / 85%); }
.gallery-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.gallery-dialog-header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.gallery-control {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--control-radius);
  color: var(--navy);
  background: var(--surface);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
}
.gallery-control:hover { border-color: var(--copper); background: #faf7f5; }
.gallery-control:disabled { opacity: 0.45; cursor: default; }
.gallery-close { flex: 0 0 auto; }
.gallery-close span { font-size: 1.5rem; line-height: 1; }
.gallery-dialog-figure { margin: 0; }
.gallery-dialog-stage {
  display: grid;
  height: min(62dvh, 44rem);
  min-height: 8rem;
  place-items: center;
  overflow: hidden;
  border-radius: var(--control-radius);
  background: #e9eceb;
}
.gallery-dialog-image {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}
.gallery-dialog-image[hidden] { display: none; }
.gallery-dialog-figure figcaption {
  margin-top: 0.85rem;
  color: #435064;
  font-size: 0.98rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.gallery-dialog-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.gallery-previous { justify-self: start; }
.gallery-next { justify-self: end; }
.gallery-dialog-counter { margin: 0; color: #435064; font-size: 0.9rem; white-space: nowrap; }
.gallery-dialog-footer { margin-top: 0.65rem; }
.gallery-dialog-status {
  margin: 0;
  color: #435064;
  font-size: 0.9rem;
  line-height: 1.5;
}
.gallery-original {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--copper-dark);
  font-size: 0.9rem;
  text-underline-offset: 0.2em;
}
@media (max-width: 38rem) {
  .remodeling-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 0.8rem; }
  .technical-gallery { grid-template-columns: 1fr; }
  .gallery-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); padding: 0.85rem; }
  .gallery-dialog-header { gap: 0.65rem; }
  .gallery-dialog-stage { height: min(49dvh, 28rem); }
  .gallery-dialog-controls { gap: 0.4rem; }
  .gallery-control { padding-inline: 0.6rem; font-size: 0.85rem; }
  .gallery-dialog-counter { font-size: 0.8rem; }
  .gallery-dialog-figure figcaption { font-size: 0.9rem; }
}
@media print {
  .gallery-dialog { display: none !important; }
  .remodeling-gallery figure { break-inside: avoid; }
}
