:root {
  --portfolio-ink: #20211f;
  --portfolio-muted: #777872;
  --portfolio-accent: #747c61;
  --portfolio-paper: #fbfaf8;
  --portfolio-line: #e9e8e3;
  --sidebar-width: 252px;
  --content-gutter: clamp(15px, 2.3vw, 38px);
  --white: #fff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--portfolio-ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-frame { min-height: 100vh; }

/* Fixed left rail */
.sidebar {
  position: fixed;
  z-index: 50;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  min-width: 0;
  height: 100vh;
  border-right: 1px solid var(--portfolio-line);
  background: var(--portfolio-paper);
}

.sidebar-stack {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  padding: 35px 25px 22px;
}

.brand-link {
  display: inline-flex;
  width: 100%;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 0 auto;
}

.brand-link img {
  display: block;
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.brand-subtitle,
.sidebar-kicker,
.section-eyebrow,
.home-eyebrow,
.lightbox-kicker {
  color: var(--portfolio-muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.5;
}

.brand-subtitle { margin-top: 8px; }

.sidebar-nav {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: stretch;
  gap: 1px;
  margin: auto 0;
  padding: 34px 0 28px;
}

.sidebar-kicker { margin: 0 0 15px 1px; }

.sidebar-link {
  position: relative;
  display: grid;
  min-height: 41px;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 5px 7px 1px;
  color: #484943;
  font-size: 13px;
  line-height: 1.35;
  transition: color 180ms ease, padding 180ms ease;
}

.nav-number {
  color: #a3a49c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  transition: color 180ms ease;
}

.nav-label { min-width: 0; }

.sidebar-link:hover,
.sidebar-link:focus-visible,
.sidebar-link.is-active {
  padding-left: 7px;
  color: var(--portfolio-ink);
}

.sidebar-link:hover .nav-number,
.sidebar-link:focus-visible .nav-number,
.sidebar-link.is-active .nav-number { color: var(--portfolio-accent); }

.sidebar-link.is-active .nav-label { font-weight: 600; }

.sidebar-resume {
  margin-top: 12px;
  border-top: 1px solid var(--portfolio-line);
  padding-top: 17px;
}

.sidebar-foot { display: grid; gap: 12px; }
.sidebar-divider { width: 100%; height: 1px; background: var(--portfolio-line); }

.email-link {
  display: flex;
  min-height: 28px;
  align-items: center;
  gap: 9px;
  color: #51524c;
  font-size: 11px;
  transition: color 160ms ease;
}

.email-link:hover, .email-link:focus-visible { color: var(--portfolio-accent); }
.email-link svg { width: 15px; height: 15px; flex: 0 0 auto; }
.sidebar-footnote { color: #9a9b94; font-size: 9px; letter-spacing: .06em; }

.content-region {
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  margin-left: var(--sidebar-width);
}

.mobile-header { display: none; }
.mobile-footer { display: none; }

.to-top {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: 20px;
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgb(32 33 31 / 10%);
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
  color: var(--portfolio-ink);
  cursor: pointer;
  box-shadow: 0 4px 20px rgb(24 25 22 / 7%);
  transition: background 180ms ease, transform 180ms ease;
}

.to-top:hover, .to-top:focus-visible {
  background: #f0efe9;
  transform: translateY(-2px);
}
.to-top svg { width: 19px; height: 19px; }

/* Home: image-led editorial split */
.home-page .content-region { padding: 0; }

.home-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: stretch;
  padding: clamp(35px, 5vw, 82px);
  background: var(--white);
}

.home-person {
  position: relative;
  display: flex;
  min-height: 660px;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: #f4f3ef;
}

.portrait-accent {
  position: absolute;
  top: 11%;
  left: 12%;
  width: 76%;
  height: 76%;
  border: 1px solid rgb(116 124 97 / 23%);
}

.home-person img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(78%, 470px);
  max-height: 83vh;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 15px 24px rgb(28 29 27 / 7%));
}

.portrait-caption {
  position: absolute;
  z-index: 2;
  right: 20px;
  bottom: 17px;
  color: #686a62;
  font-size: 9px;
  letter-spacing: .18em;
}

.home-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 48px clamp(32px, 6.4vw, 108px);
}

.home-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 28px; }
.home-eyebrow span { color: var(--portfolio-accent); font-family: Georgia, serif; font-size: 12px; }

.home-copy h1 {
  margin: 0 0 12px -4px;
  color: var(--portfolio-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(62px, 7vw, 112px);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .98;
}

.home-role {
  margin: 0;
  color: #585a54;
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.6;
}

.home-role span { color: var(--portfolio-accent); }

.home-cta {
  display: inline-flex;
  min-width: 222px;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 36px;
  padding: 0 17px 0 20px;
  border: 1px solid #dcdcd4;
  background: var(--white);
  color: var(--portfolio-ink);
  font-size: 12px;
  letter-spacing: .04em;
  transition: background 180ms ease, border-color 180ms ease;
}

.home-cta:hover, .home-cta:focus-visible { border-color: var(--portfolio-ink); background: var(--portfolio-paper); }
.cta-arrow { display: inline-flex; width: 28px; height: 28px; flex: 0 0 28px; align-items: center; justify-content: center; border: 1px solid var(--portfolio-line); border-radius: 50%; color: var(--portfolio-accent); transition: background 180ms ease, border-color 180ms ease; }
.cta-arrow .plus-icon { width: 15px; height: 15px; }
.home-cta:hover .cta-arrow, .home-cta:focus-visible .cta-arrow { border-color: #d5d4cc; background: #fff; }
.home-note { max-width: 230px; margin: 24px 0 0; color: #8a8b84; font-size: 11px; line-height: 1.7; }

/* Category pages: asymmetrical Z rhythm through alternating image widths */
.collection-header { margin: 57px var(--content-gutter) 27px; }

.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 20px;
}

.section-eyebrow i { margin: 0 5px; color: #b2b3ac; font-style: normal; }

.collection-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.collection-title-row h1,
.project-heading {
  margin: 0;
  color: var(--portfolio-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 4.1vw, 62px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.05;
}

.collection-title-row > p {
  flex: 0 0 auto;
  margin: 0 0 3px;
  color: var(--portfolio-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.collection-title-row > p span {
  margin-left: 5px;
  color: var(--portfolio-muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.portfolio-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(230px, 26vw, 390px);
  gap: 13px;
  padding: 0 var(--content-gutter) 82px;
}

.project-card {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  isolation: isolate;
  background: #f0efeb;
}

.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-card img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 400ms ease, transform 700ms cubic-bezier(.2,.7,.2,1), filter 400ms ease;
}

.project-card .normal-image { z-index: 1; }
.project-card .hover-image { z-index: 2; opacity: 0; }

.card-overlay {
  position: absolute;
  z-index: 3;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgb(15 16 14 / 53%));
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.card-title {
  position: absolute;
  z-index: 4;
  right: 19px;
  bottom: 17px;
  left: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.card-title span { font-family: Georgia, "Times New Roman", serif; font-size: clamp(19px, 2vw, 30px); line-height: 1.1; }
.card-title i { display: inline-flex; width: 31px; height: 31px; flex: 0 0 31px; align-items: center; justify-content: center; border: 1px solid rgb(255 255 255 / 76%); border-radius: 50%; font-style: normal; }
.card-title i .plus-icon { width: 15px; height: 15px; }

.project-card:hover .hover-image,
.project-card:focus-visible .hover-image,
.project-card:hover .card-overlay,
.project-card:focus-visible .card-overlay { opacity: 1; }

.project-card:hover .normal-image,
.project-card:focus-visible .normal-image { transform: scale(1.035); }

.project-card:hover .card-title,
.project-card:focus-visible .card-title { opacity: 1; transform: translateY(0); }

/* Project album page */
.project-page { width: 100%; }

.project-header {
  display: flex;
  min-height: 212px;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 36px var(--content-gutter) 31px;
}

.project-title-row {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.project-back {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid var(--portfolio-line);
  border-radius: 999px;
  background: #fff;
  color: var(--portfolio-muted);
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.project-back .chevron-icon { width: 15px; height: 15px; flex: 0 0 15px; color: var(--portfolio-accent); }
.project-back:hover { border-color: var(--portfolio-ink); color: var(--portfolio-ink); }
.project-back:focus-visible { outline: 2px solid var(--portfolio-accent); outline-offset: 3px; }
.project-heading { min-width: 0; flex: 1 1 auto; font-size: clamp(35px, 4.3vw, 60px); }

.project-count {
  display: flex;
  gap: 10px;
  margin: 13px 0 0;
  color: #969790;
  font-size: 9px;
  letter-spacing: .13em;
}

.project-count span { color: #62635d; }

/* Gallery rows fill the line; a single-image row is centered as a feature. */
.gallery-grid {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  overflow: hidden;
  padding: 0 var(--content-gutter) 76px;
}

.gallery-item {
  position: relative;
  display: block;
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #f2f1ee;
  cursor: zoom-in;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms cubic-bezier(.2,.7,.2,1), filter 300ms ease;
}

.gallery-item:hover img, .gallery-item:focus-visible img { filter: brightness(.96); transform: scale(1.018); }

/* Resume */
.resume-page {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 55px clamp(24px, 5vw, 75px) 88px;
}

.resume-intro {
  position: relative;
  display: flex;
  min-height: 270px;
  align-items: center;
  margin: 0 0 42px;
  padding-right: 250px;
}

.resume-photo {
  position: absolute;
  top: 0;
  right: 0;
  display: block;
  width: 230px;
  height: 250px;
  object-fit: contain;
  object-position: center bottom;
  background: #f4f3ef;
}

.resume-intro h1 {
  margin: 0 0 10px;
  color: var(--portfolio-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.1;
}

.resume-role { margin: 12px 0 0; color: #565750; font-size: 14px; line-height: 1.5; }

.resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin: 0;
  color: #61625c;
  font-size: 12px;
}

.resume-contact a:hover, .resume-contact a:focus-visible { color: var(--portfolio-accent); }
.resume-contact a + a::before { content: "·"; margin-right: 12px; color: #aaa; }
.resume-section { margin: 0 0 36px; }

.resume-section-title {
  margin: 0 0 13px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--portfolio-line);
  color: var(--portfolio-accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
}

.resume-profile { max-width: 720px; margin: 0; color: #565750; font-size: 14px; line-height: 1.8; }
.education-item { color: #484943; font-size: 13px; line-height: 1.65; }
.education-item h3, .job-heading h3 { display: inline; margin: 0; font-size: 14px; font-weight: 600; line-height: 1.5; }
.education-item h3 { font-weight: 500; }
.education-item p, .job-heading p { display: inline; margin: 0 0 0 5px; color: var(--portfolio-muted); font-size: 13px; line-height: 1.65; }
.education-item time, .job-heading time { color: #777872; font-size: 12px; line-height: 1.5; }
.education-item time { margin: 0; }
.job-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 15px; line-height: 1.5; }
.job-heading > div { display: contents; }
.job-heading time { margin-left: auto; }
.resume-job { margin: 0 0 18px; padding: 0 0 17px; border-bottom: 1px solid #efeee9; }
.resume-job:last-child { border-bottom: 0; }
.resume-job ul { display: grid; gap: 3px; margin: 9px 0 0; padding-left: 18px; color: #62635d; font-size: 12px; line-height: 1.65; }
.expertise-intro { max-width: 760px; margin: 0 0 16px; color: #74756e; font-size: 12px; line-height: 1.7; }
.expertise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
.expertise-group h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.expertise-group p { margin: 0; color: #777872; font-size: 12px; line-height: 1.7; }
.client-logos { display: block; width: 100%; height: auto; margin: 38px auto 0; }

.not-found { padding: 80px 9%; }
.not-found h1 { margin: 0 0 12px; color: var(--portfolio-ink); font-family: Georgia, serif; font-size: 42px; font-weight: 400; }
.not-found p { color: var(--portfolio-muted); }
.not-found a { display: inline-block; margin-top: 12px; color: var(--portfolio-accent); text-decoration: underline; }

/* Album lightbox */
.lightbox-open { overflow: hidden; }

.lightbox {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 78px minmax(0, 1fr) 112px;
  min-width: 0;
  background: var(--portfolio-paper);
  color: var(--portfolio-ink);
}

.lightbox-topbar {
  position: relative;
  z-index: 5;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 34px;
  border-bottom: 1px solid var(--portfolio-line);
  background: #fff;
}

.lightbox-heading { display: flex; flex-direction: column; gap: 3px; }
.lightbox-kicker { font-size: 8px; }
.lightbox-caption { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.15; }
.lightbox-actions { display: flex; align-items: center; gap: 20px; }
.lightbox-count { color: #696a64; font-size: 10px; font-variant-numeric: tabular-nums; letter-spacing: .1em; }

.lightbox-actions button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 0 3px;
  border: 1px solid #e5e4de;
  border-radius: 50%;
  background: #fff;
  color: #52534d;
  cursor: pointer;
  font-size: 23px;
  font-weight: 300;
  line-height: 1;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.lightbox-actions button:hover, .lightbox-actions button:focus-visible { border-color: #b9b9b1; background: var(--portfolio-paper); color: var(--portfolio-ink); }

.lightbox-stage {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 22px 78px;
  background: #f8f7f4;
}

.lightbox-image {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  user-select: none;
  transition: opacity 180ms ease, transform 280ms ease;
}

.lightbox-image.is-changing { opacity: .25; transform: scale(.992); }

.lightbox-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(32 33 31 / 13%);
  border-radius: 50%;
  background: rgb(255 255 255 / 90%);
  color: #40413c;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 3px 14px rgb(25 26 23 / 5%);
  transform: translateY(-50%);
  transition: background 160ms ease, transform 160ms ease;
}

.lightbox-arrow:hover, .lightbox-arrow:focus-visible { background: #fff; transform: translateY(-50%) scale(1.06); }
.lightbox-arrow .chevron-icon { width: 19px; height: 19px; }
.lightbox-prev { left: 25px; }
.lightbox-next { right: 25px; }

.lightbox-bottom {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: stretch;
  background: #fff;
  border-top: 1px solid var(--portfolio-line);
}

.lightbox-thumbnails {
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 24px;
  scrollbar-color: #c7c7c0 #fff;
  scrollbar-width: thin;
}

.lightbox-thumbnail {
  display: block;
  width: 84px;
  height: 84px;
  flex: 0 0 auto;
  padding: 2px;
  overflow: hidden;
  border: 1px solid transparent;
  background: #f3f2ee;
  opacity: .66;
  cursor: pointer;
  transition: border-color 160ms ease, opacity 160ms ease;
}

.lightbox-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lightbox-thumbnail:hover { opacity: .9; }
.lightbox-thumbnail.is-current { border-color: #282923; opacity: 1; }

/* Tablet */
@media (max-width: 1180px) and (min-width: 768px) {
  :root { --sidebar-width: 218px; }
  .sidebar-stack { padding-right: 20px; padding-left: 20px; }
  .portfolio-grid { grid-auto-rows: clamp(210px, 28vw, 310px); }
  .home-shell { grid-template-columns: minmax(0, 1fr) minmax(310px, .9fr); padding: 34px; }
  .home-person { min-height: 570px; }
  .home-copy { padding: 38px; }
  .resume-intro { padding-right: 205px; }
  .resume-photo { width: 185px; height: 225px; }
}

/* Small screens keep the same navigation and album feel */
@media (max-width: 767px) {
  :root {
    --sidebar-width: 0px;
    --content-gutter: 12px;
    --mobile-footer-height: calc(28px + max(18px, env(safe-area-inset-bottom, 0px)));
  }

  .site-frame { min-height: 100svh; }
  .sidebar { display: none; }
  .content-region { width: 100%; margin-left: 0; padding-top: 60px; }
  .home-page .content-region {
    height: calc(100svh - var(--mobile-footer-height));
    min-height: 0;
    padding-top: 60px;
  }

  .mobile-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    height: 60px;
    align-items: center;
    justify-content: space-between;
    padding: 0 17px;
    border-bottom: 1px solid var(--portfolio-line);
    background: rgb(255 255 255 / 96%);
    backdrop-filter: blur(12px);
  }

  .mobile-brand, .mobile-brand img { display: block; width: 48px; height: 48px; object-fit: contain; }
  .mobile-menu-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .mobile-menu-toggle span:not(.visually-hidden) { display: block; width: 19px; height: 1px; background: #30312d; }
  .mobile-nav {
    position: absolute;
    top: 59px;
    right: 0;
    left: 0;
    display: flex;
    height: calc(100svh - 59px);
    max-height: calc(100svh - 59px);
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
    padding: 10px 22px max(18px, env(safe-area-inset-bottom));
    border-bottom: 1px solid var(--portfolio-line);
    background: #fff;
    box-shadow: 0 10px 20px rgb(0 0 0 / 6%);
  }
  body.mobile-nav-open { overflow: hidden; }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav > a:not(.email-link) { min-height: 42px; flex: 0 0 auto; padding: 12px 1px; border-bottom: 1px solid #f1f0ed; font-size: 13px; }
  .mobile-nav .email-link { min-height: 32px; flex: 0 0 auto; margin-top: 10px; padding-bottom: 8px; border-bottom: 1px solid #f1f0ed; }
  .mobile-nav-featured { flex: 0 0 auto; margin-top: auto; padding-top: 14px; }
  .mobile-nav-featured-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 0 9px; color: var(--portfolio-muted); font-size: 8px; font-weight: 600; letter-spacing: .15em; }
  .mobile-nav-featured-heading span:last-child { color: var(--portfolio-accent); }
  .mobile-nav-featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .mobile-nav-featured-card { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
  .mobile-nav-featured-card img { display: block; width: 100%; aspect-ratio: 1.6 / 1; object-fit: cover; background: var(--portfolio-paper); }
  .mobile-nav-featured-card span { overflow: hidden; color: var(--portfolio-ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 var(--content-gutter); padding: 15px 0 max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--portfolio-line); color: var(--portfolio-muted); font-size: 8px; letter-spacing: .11em; line-height: 1.5; }
  .mobile-footer span { white-space: nowrap; }

  .home-shell {
    height: 100%;
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: clamp(12px, 2.2svh, 20px);
    padding: clamp(10px, 1.8svh, 15px) 18px;
  }
  .home-person { min-height: 0; }
  .home-person img { width: min(75%, 310px); max-height: 47svh; }
  .portrait-accent { top: 9%; left: 9%; width: 82%; height: 78%; }
  .portrait-caption { right: 12px; bottom: 11px; font-size: 8px; }
  .home-copy { align-items: flex-start; padding: 0 8px; }
  .home-eyebrow { margin: 0 0 12px; }
  .home-copy h1 { margin: 0 0 6px -2px; font-size: 58px; }
  .home-role { font-size: 15px; }
  .home-cta { min-height: 48px; margin-top: 20px; }
  .home-note { margin-top: 14px; font-size: 10px; }
  .home-page .to-top { display: none; }

  .collection-header { margin: 28px var(--content-gutter) 18px; }
  .section-eyebrow { margin-bottom: 15px; }
  .collection-title-row h1 { font-size: clamp(34px, 10vw, 48px); }
  .collection-title-row > p { font-size: 15px; }
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 7px;
    padding: 0 var(--content-gutter) 55px;
  }
  .project-card:nth-child(n) { grid-column: span 1; aspect-ratio: 4 / 5; }
  .card-overlay { inset: 42% 0 0; opacity: .62; }
  .card-title { right: 10px; bottom: 10px; left: 11px; gap: 7px; opacity: 1; transform: none; }
  .card-title span { font-size: clamp(14px, 4vw, 18px); }
  .card-title i { width: 27px; height: 27px; flex-basis: 27px; }
  .card-title i .plus-icon { width: 13px; height: 13px; }

  .project-header { min-height: 165px; padding: 21px var(--content-gutter) 18px; }
  .project-title-row { gap: 9px; }
  .project-back { min-height: 44px; padding: 0 10px; font-size: 10px; }
  .project-heading { font-size: clamp(34px, 9vw, 46px); }
  .project-count { margin-top: 10px; font-size: 8px; }
  .gallery-grid { gap: 4px; padding: 0 var(--content-gutter) 45px; }

  .resume-page { padding: 28px 21px 58px; }
  .resume-intro { min-height: 0; align-items: center; margin-bottom: 34px; padding-right: 0; }
  .resume-photo { position: static; width: 84px; height: 90px; flex: 0 0 auto; margin-right: 15px; object-fit: cover; }
  .resume-intro h1 { margin-bottom: 7px; font-size: 23px; }
  .resume-role { margin-top: 8px; font-size: 11px; }
  .resume-contact { flex-direction: column; gap: 4px; font-size: 10px; }
  .resume-contact a + a::before { content: ""; margin: 0; }
  .resume-section { margin-bottom: 27px; }
  .resume-section-title { font-size: 9px; }
  .education-item, .job-heading { font-size: 12px; }
  .education-item h3, .job-heading h3 { font-size: 12px; }
  .education-item p, .job-heading p, .education-item time, .job-heading time { font-size: 11px; }
  .job-heading time { margin-left: 0; }
  .resume-job ul { padding-left: 16px; font-size: 11px; }
  .expertise-grid { grid-template-columns: 1fr; gap: 13px; }
  .expertise-intro, .expertise-group p { font-size: 11px; }
  .client-logos { margin-top: 25px; }

  .to-top { right: 12px; bottom: 12px; width: 38px; height: 38px; }

  .lightbox { grid-template-rows: 66px minmax(0, 1fr) 91px; }
  .lightbox-topbar { gap: 10px; padding: 0 15px; }
  .lightbox-caption { font-size: 14px; }
  .lightbox-actions { gap: 11px; }
  .lightbox-actions button { width: 32px; height: 32px; }
  .lightbox-count { font-size: 9px; }
  .lightbox-stage { padding: 22px 42px; }
  .lightbox-arrow { width: 34px; height: 34px; }
  .lightbox-arrow .chevron-icon { width: 15px; height: 15px; }
  .lightbox-prev { left: 5px; }
  .lightbox-next { right: 5px; }
  .lightbox-thumbnails { gap: 5px; padding: 7px 10px; }
  .lightbox-thumbnail { width: 66px; height: 72px; }
}

@media (max-width: 767px) and (max-height: 700px) {
  .home-page .home-shell { gap: clamp(8px, 1.4svh, 12px); padding: 8px 18px; }
  .home-page .home-person img { width: auto; max-width: 75%; max-height: 100%; }
  .home-page .home-copy { justify-content: flex-start; }
  .home-page .home-eyebrow { margin-bottom: 7px; font-size: 8px; }
  .home-page .home-copy h1 { margin-bottom: 4px; font-size: clamp(44px, 13vw, 52px); }
  .home-page .home-role { font-size: 14px; line-height: 1.35; }
  .home-page .home-cta { min-height: 42px; margin-top: 12px; }
  .home-page .home-note { margin-top: 8px; font-size: 9px; line-height: 1.4; }
}

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