/*
Theme Name: UNO Architects Base44 WP
Theme URI: https://example.com/
Author: OpenAI
Description: WordPress theme rebuilt from the Base44 export with fuller content migration, refined typography, page-intro fades, and the signature 01 — A Handscroll sequence.
Version: 3.3.0
Text Domain: uno-architects
*/

:root {
  --bg: #f7f4ef;
  --fg: #151515;
  --muted: #686157;
  --muted-2: #8d8579;
  --border: #d7cec1;
  --surface: #efe8de;
  --surface-2: #e7ddd0;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.08);
  --maxw: 1680px;
  --pad: clamp(24px, 3vw, 64px);
  --header-h: 82px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-weight: 300;
  letter-spacing: -0.012em;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

main {
  overflow: clip;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid rgba(21, 21, 21, 0.55);
  outline-offset: 4px;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

.container-editorial {
  width: min(100%, var(--maxw));
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 2.7vw, 40px);
}

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }

.section-space {
  padding: clamp(92px, 10vw, 130px) 0;
}

.section-space-lg {
  padding: clamp(112px, 11vw, 148px) 0;
}

.page-hero {
  padding: calc(var(--header-h) + 46px) 0 60px;
}

.page-divider-bottom {
  border-bottom: 1px solid var(--border);
}

.text-eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}

.display-title,
.section-title,
.project-title,
.team-name,
.office-city {
  margin: 0;
  font-weight: 200;
  letter-spacing: -.055em;
  line-height: .96;
}

.display-title {
  font-size: clamp(48px, 7.35vw, 104px);
}

.page-title {
  margin: 0;
  font-weight: 200;
  letter-spacing: -.055em;
  line-height: .96;
  font-size: clamp(48px, 7.35vw, 104px);
}

.section-title {
  font-size: clamp(38px, 4.8vw, 72px);
  line-height: 1.01;
}

.section-title-small {
  font-size: clamp(36px, 3.8vw, 52px);
}

.display-title em,
.section-title em,
.hero-title em,
.closing-title em {
  font-style: italic;
  font-weight: 200;
}

.page-lead,
.manifesto-copy,
.rich-copy,
.hero-copy,
.service-desc,
.project-summary,
.service-detail-copy,
.approach-grid p,
.closing-copy {
  color: var(--muted);
}

.page-lead {
  margin: 22px 0 0;
  max-width: 740px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.78;
}

.small-copy,
.project-location,
.handscroll-location,
.office-address,
.contact-office-list,
.project-detail-meta dd {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.manifesto-copy,
.rich-copy {
  font-size: clamp(16px, 1.24vw, 17px);
  line-height: 1.9;
}

.link-underline {
  position: relative;
  display: inline-block;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: right center;
  transform: scaleX(1);
  transition: transform .48s var(--ease);
}

.link-underline:hover::after {
  transform-origin: left center;
  transform: scaleX(0);
}

.hairline {
  width: 100%;
  height: 1px;
  background: var(--border);
}

.hover-zoom,
.image-cover,
.project-thumb,
.full-image,
.project-detail-hero {
  overflow: hidden;
}

.hover-zoom img,
.image-cover img,
.project-thumb img,
.full-image img,
.project-detail-hero img,
.gallery-item img,
.handscroll-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.hover-zoom:hover img,
.project-card:hover .project-thumb img,
.handscroll-item:hover .handscroll-media img,
.gallery-item:hover img,
.project-detail-hero:hover img {
  transform: scale(1.045);
}

.intro-item,
.intro-fade,
.reveal,
.hero-scroll-hint {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}

body.page-ready .intro-item,
body.page-ready .intro-fade {
  animation: introFade 1s var(--ease) forwards;
  animation-delay: var(--delay, var(--intro-delay, 0s));
}

.reveal {
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal.reveal-in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes introFade {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background .45s ease, border-color .45s ease, backdrop-filter .45s ease, color .45s ease;
}

.site-header.scrolled,
body:not(.home) .site-header {
  background: rgba(247, 244, 239, 0.82);
  border-bottom-color: var(--border);
  backdrop-filter: blur(16px);
}

body.home .site-header:not(.scrolled) {
  color: #fff;
}

body.home .site-header:not(.scrolled) .brand-sub,
body.home .site-header:not(.scrolled) .primary-nav a,
body.home .site-header:not(.scrolled) .header-cta {
  color: rgba(255, 255, 255, 0.86);
}

body.home .site-header:not(.scrolled) .primary-nav a:hover,
body.home .site-header:not(.scrolled) .primary-nav a.is-active {
  color: #fff;
}

body.home .site-header:not(.scrolled) .header-cta {
  border-bottom-color: rgba(255, 255, 255, 0.46);
}

.site-header-row {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand-mark {
  font-size: 15px;
  letter-spacing: .32em;
}

.brand-sub {
  font-size: 11px;
  letter-spacing: .25em;
  color: var(--muted);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.primary-nav a {
  font-size: 13px;
  color: var(--muted);
  transition: color .3s ease;
}

.primary-nav a:hover,
.primary-nav a.is-active {
  color: var(--fg);
}

.header-cta {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(21, 21, 21, .35);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.mobile-nav {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .45s ease, opacity .35s ease;
  background: var(--bg);
  border-top: 1px solid transparent;
}

.mobile-nav.open {
  max-height: 78vh;
  opacity: 1;
  border-top-color: var(--border);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 0 34px;
}

.mobile-nav a {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -.04em;
}

.mobile-cta {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: 100vh;
  background: #111;
  color: #fff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  opacity: 0;
  transition: transform 2.2s var(--ease), opacity 1.6s var(--ease);
}

body.page-ready .hero-media img {
  transform: scale(1);
  opacity: 1;
}

.hero-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, .24), rgba(0, 0, 0, .12) 36%, rgba(0, 0, 0, .58));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 140px;
  padding-bottom: 54px;
}

.hero-top {
  color: rgba(255, 255, 255, .82);
  margin-bottom: auto;
}

.hero-title-wrap {
  max-width: 1100px;
}

.hero-title {
  color: #fff;
}

.hero-bottom {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-copy {
  max-width: 520px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.82;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-links a {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
}

.hero-scroll-hint {
  position: absolute;
  right: var(--pad);
  bottom: 32px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}

.hero-scroll-line {
  display: block;
  width: 44px;
  height: 1px;
  background: currentColor;
}

.handscroll-section {
  background: var(--bg);
  border-top: 1px solid rgba(215, 206, 193, .35);
}

.handscroll-stage {
  position: relative;
  height: calc(160vh + var(--handscroll-count, 4) * 34vh);
}

.handscroll-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.handscroll-head {
  padding-top: 108px;
  padding-bottom: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.handscroll-head .section-title {
  max-width: 720px;
  margin-top: 14px;
}

.handscroll-copy {
  max-width: 300px;
}

.handscroll-track-wrap {
  position: relative;
  flex: 1;
  overflow: hidden;
}

.handscroll-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding-left: var(--pad);
  padding-right: 20vw;
  will-change: transform;
}

.handscroll-item {
  flex: 0 0 auto;
  color: inherit;
}

.handscroll-item.w0 { width: 40vw; height: 68vh; }
.handscroll-item.w1 { width: 28vw; height: 58vh; }
.handscroll-item.w2 { width: 44vw; height: 72vh; }
.handscroll-item.w3 { width: 30vw; height: 60vh; }
.handscroll-item.w4 { width: 36vw; height: 64vh; }
.handscroll-item.w5 { width: 26vw; height: 54vh; }
.handscroll-item.w6 { width: 42vw; height: 70vh; }

.handscroll-media {
  width: 100%;
  height: 100%;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.handscroll-caption {
  margin-top: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.handscroll-title {
  margin: 0;
  font-size: 13px;
}

.handscroll-location {
  margin: 4px 0 0;
  font-size: 12px;
}

.handscroll-descriptor {
  max-width: 24rem;
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.72;
  color: var(--muted);
}

.handscroll-foot {
  padding-bottom: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
}

.handscroll-mobile {
  display: none;
  padding: 84px 0 92px;
}

.handscroll-mobile-head {
  margin-bottom: 28px;
}

.manifesto-grid {
  margin-top: 52px;
}

.manifesto-aside {
  padding-left: 28px;
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  font-size: 15px;
  line-height: 1.8;
}

.manifesto-aside p {
  margin: 0;
}

.manifesto-link {
  margin-top: 6px;
}

.capabilities-section,
.projects-home-section {
  border-top: 1px solid var(--border);
}

.section-heading-grid {
  margin-bottom: 42px;
  align-items: end;
}

.selected-header-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.capabilities-list {
  border-top: 1px solid var(--border);
}

.service-row {
  display: grid;
  grid-template-columns: 72px minmax(220px, 1.35fr) 2fr 90px;
  gap: 26px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
  transition: background .35s ease, transform .35s ease;
}

.service-row:hover {
  background: rgba(239, 232, 222, .55);
}

.service-num,
.project-card-index,
.team-number {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.service-title {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 300;
}

.service-desc {
  font-size: 15px;
  line-height: 1.8;
}

.service-arrow {
  justify-self: end;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transition: opacity .3s ease, transform .35s var(--ease);
}

.service-row:hover .service-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.selected-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(34px, 3vw, 42px) clamp(24px, 2.6vw, 40px);
}

.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.offset-top { padding-top: 92px; }

.project-card {
  display: block;
  color: inherit;
}

.project-card.wide .ratio-card {
  aspect-ratio: 16 / 10;
}

.project-card.tall .ratio-card {
  aspect-ratio: 4 / 5;
}

.project-thumb {
  position: relative;
  background: var(--surface);
}

.meta-overlay {
  position: absolute;
  inset: 16px 16px auto 16px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
}

.project-body {
  padding-top: 18px;
}

.project-body-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}

.project-title {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.06;
  letter-spacing: -.03em;
  transition: transform .7s var(--ease);
}

.project-card:hover .project-title {
  transform: translateX(4px);
}

.project-location {
  margin: 6px 0 0;
  font-size: 13px;
}

.project-summary {
  margin: 14px 0 0;
  max-width: 46rem;
  font-size: 14px;
  line-height: 1.8;
}

.projects-home-footer {
  display: flex;
  justify-content: center;
  margin-top: 86px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(21, 21, 21, .35);
}

.filter-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.filter-chips {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-top: 18px;
  padding-bottom: 18px;
}

.filter-chip {
  border: 0;
  background: none;
  padding: 0 0 2px;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
}

.filter-chip.is-active {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

.project-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(34px, 3vw, 42px);
}

.project-card.is-hidden {
  display: none !important;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

.closing-cta {
  position: relative;
  overflow: hidden;
  background: #111;
  color: #fff;
}

.closing-cta-media,
.closing-cta-overlay {
  position: absolute;
  inset: 0;
}

.closing-cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .76;
  transform: scale(1.04);
  transition: transform 1.6s var(--ease);
}

.closing-cta:hover .closing-cta-media img {
  transform: scale(1.01);
}

.closing-cta-overlay {
  background: linear-gradient(to bottom, rgba(0, 0, 0, .36), rgba(0, 0, 0, .28), rgba(0, 0, 0, .68));
}

.closing-cta-content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 136px;
}

.closing-title {
  color: #fff;
  margin-top: 14px;
  max-width: 1100px;
}

.closing-copy {
  max-width: 560px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(16px, 1.25vw, 17px);
  line-height: 1.8;
}

.closing-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}

.submit-button:hover {
  background: var(--fg);
  color: var(--bg);
}

.submit-button.light {
  border-color: rgba(255, 255, 255, .62);
  color: #fff;
}

.submit-button.light:hover {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.light-link {
  color: rgba(255, 255, 255, .92);
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: clamp(24px, 2.6vw, 42px);
  padding-top: 78px;
  padding-bottom: 70px;
}

.footer-grid p {
  margin: 0 0 12px;
}

.footer-intro {
  max-width: 540px;
  margin-top: 24px;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 28px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.full-image {
  width: 100%;
  aspect-ratio: 21 / 9;
  background: var(--surface);
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: 34px;
  max-width: 980px;
}

.approach-grid p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
}

.team-list {
  border-top: 1px solid var(--border);
}

.team-row {
  display: grid;
  grid-template-columns: 72px 1.3fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.team-name {
  font-size: 24px;
}

.team-role {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.office-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
}

.office-card {
  background: var(--bg);
  padding: 44px 36px 50px;
}

.office-label {
  margin-bottom: 24px;
}

.office-city {
  font-size: 32px;
}

.office-address {
  margin: 16px 0 0;
}

.services-detail-section {
  padding-bottom: 24px;
}

.service-detail {
  display: grid;
  grid-template-columns: 72px 1.35fr 1.35fr 1fr;
  gap: clamp(20px, 2.7vw, 40px);
  padding: 58px 0;
  border-bottom: 1px solid var(--border);
}

.service-detail:first-child {
  border-top: 1px solid var(--border);
}

.service-detail-num {
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.service-detail-copy {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
}

.scope-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.scope-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.scope-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .82em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--muted);
}

.contact-section {
  padding-top: 82px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(40px, 6vw, 90px);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-block p {
  margin: 0 0 16px;
}

.contact-email {
  font-size: 20px;
}

.contact-office-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.contact-office-list span {
  color: var(--fg);
}

.contact-form-shell {
  min-height: 320px;
}

.contact-form {
  display: grid;
  gap: 30px;
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.form-field {
  display: grid;
  gap: 12px;
}

.form-label {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-input,
.form-textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 0 0 14px;
  border-radius: 0;
  color: var(--fg);
  font-size: 15px;
  font-weight: 300;
  transition: border-color .35s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--fg);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.type-group {
  border: 0;
  margin: 0;
  padding: 0;
}

.type-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.type-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}

.type-radio:checked + .type-pill {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

.form-message {
  padding: 28px 30px;
  border: 1px solid var(--border);
  background: rgba(239, 232, 222, .35);
}

.form-message.success {
  padding: 0;
  border: 0;
  background: transparent;
}

.form-message.error {
  margin-bottom: 24px;
}

.form-message p {
  margin: 0;
  line-height: 1.8;
}

.thank-you-title {
  margin-bottom: 12px;
}

.shortcode-form-wrap > *:first-child {
  margin-top: 0;
}

.project-back-wrap {
  padding-top: calc(var(--header-h) + 16px);
  padding-bottom: 14px;
}

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

.project-detail-hero {
  width: 100%;
  aspect-ratio: 21 / 9;
  background: var(--surface);
}

.project-detail-title {
  margin-top: 0;
}

.project-category {
  margin: 0 0 16px;
}

.project-detail-head .page-lead {
  max-width: 720px;
}

.project-detail-meta {
  padding-top: 12px;
}

.project-detail-meta dl {
  margin: 0;
  display: grid;
  gap: 22px;
}

.project-detail-meta dt {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-detail-meta dd {
  margin: 0;
}

.project-overview-copy {
  margin: 0;
  max-width: 860px;
  font-size: clamp(24px, 2.3vw, 40px);
  line-height: 1.35;
  letter-spacing: -.03em;
  font-weight: 300;
}

.gallery-stack {
  display: grid;
  gap: 34px;
}

.gallery-item > div {
  background: var(--surface);
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.gallery-item.is-offset {
  width: min(80%, 1120px);
  margin-left: auto;
}

.gallery-item.is-offset > div {
  aspect-ratio: 4 / 3;
}

.project-back-footer {
  border-top: 1px solid var(--border);
}

.project-back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 28px;
  transition: background .35s ease;
}

.project-back-bar:hover {
  background: rgba(239, 232, 222, .35);
}

.project-back-link {
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.page-content-section {
  padding: 0 0 80px;
}

.page-content-section .rich-copy {
  max-width: 860px;
}

@media (max-width: 1180px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .handscroll-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .selected-header-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-row {
    grid-template-columns: 72px 1fr 1.5fr;
  }

  .service-arrow {
    display: none;
  }

  .service-detail {
    grid-template-columns: 72px 1.1fr 1.2fr;
  }

  .service-detail > div:last-child {
    grid-column: 2 / -1;
  }

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

@media (max-width: 980px) {
  .project-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 72px;
  }

  .grid-12,
  .selected-grid {
    grid-template-columns: 1fr;
  }

  .col-3,
  .col-4,
  .col-5,
  .col-7,
  .col-8,
  .col-9,
  .span-5,
  .span-7 {
    grid-column: auto;
  }

  .primary-nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero-content {
    padding-top: 122px;
    padding-bottom: 60px;
  }

  .hero-bottom {
    align-items: flex-start;
  }

  .handscroll-stage {
    display: none;
  }

  .handscroll-mobile {
    display: block;
  }

  .offset-top {
    padding-top: 0;
  }

  .project-archive-grid,
  .office-grid,
  .footer-grid,
  .approach-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .team-row {
    grid-template-columns: 72px 1fr;
  }

  .team-role {
    grid-column: 2 / -1;
  }

  .service-row,
  .service-detail {
    grid-template-columns: 52px 1fr;
  }

  .service-desc,
  .service-detail-title-wrap,
  .service-detail > div:nth-child(3),
  .service-detail > div:nth-child(4) {
    grid-column: 2 / -1;
  }

  .service-detail {
    padding: 42px 0;
  }

  .project-detail-hero,
  .full-image {
    aspect-ratio: 16 / 10;
  }

  .gallery-item.is-offset {
    width: 100%;
  }

  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  :root {
    --pad: 20px;
  }

  .display-title {
    font-size: clamp(44px, 16vw, 74px);
  }

  .section-title,
  .section-title-small {
    font-size: clamp(34px, 11vw, 52px);
  }

  .handscroll-mobile-list {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 0 20px 8px;
    scroll-snap-type: x mandatory;
  }

  .handscroll-mobile-card {
    flex: 0 0 78vw;
    scroll-snap-align: start;
  }

  .contact-email {
    font-size: 18px;
  }

  .projects-home-footer {
    margin-top: 64px;
  }

  .closing-cta-content {
    padding-top: 100px;
    padding-bottom: 110px;
  }

  .project-back-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }

  .intro-item,
  .reveal,
  .hero-scroll-hint {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-media img {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* v3 content-migration refinements */
.intro-fade,
.load-seq,
.intro-line > span,
.image-intro img,
.hero-scroll-hint {
  opacity: 0;
}

.intro-fade,
.load-seq {
  transform: translate3d(0, 28px, 0);
}

body.page-ready .intro-fade,
body.page-ready .load-seq,
body.page-ready .hero-scroll-hint {
  animation: introFade 1s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

.intro-title {
  overflow: hidden;
}

.intro-line {
  display: block;
  overflow: hidden;
  padding-bottom: .04em;
}

.intro-line > span {
  display: block;
  transform: translate3d(0, 110%, 0);
}

body.page-ready .intro-line > span {
  animation: lineReveal 1.15s var(--ease) forwards;
  animation-delay: var(--delay, 0s);
}

.image-intro img {
  transform: scale(1.08);
  transition: transform 2s var(--ease), opacity 1.3s var(--ease);
}

body.page-ready .image-intro img {
  opacity: 1;
  transform: scale(1);
}

.intro-line.italic > span,
.intro-line em,
.italic {
  font-style: italic;
  font-weight: 200;
}

.hero-title-wrap {
  max-width: 1100px;
}

.hero-top {
  color: rgba(255, 255, 255, .82);
  margin-bottom: auto;
}

.section-heading-grid {
  margin-bottom: 42px;
  align-items: end;
}

.selected-header-main {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.selected-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(34px, 3vw, 42px) clamp(24px, 2.6vw, 40px);
}

.project-card.wide { grid-column: span 7; }
.project-card.tall { grid-column: span 5; }
.project-card.offset-top { padding-top: 92px; }
.ratio-card { aspect-ratio: 16 / 10; }
.project-card.tall .ratio-card { aspect-ratio: 4 / 5; }
.project-card.wide .ratio-card { aspect-ratio: 16 / 10; }
.project-body-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}

.projects-home-footer {
  display: flex;
  justify-content: center;
  margin-top: 86px;
}

.light-link { color: rgba(255, 255, 255, .92); }
.light-link::after { background: currentColor; }

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.handscroll-endcap {
  width: 18vw;
  flex: 0 0 auto;
}

.admin-empty-state {
  padding: 18px 0;
  color: var(--muted);
}

@keyframes lineReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 110%, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 1180px) {
  .selected-header-main {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .project-card.wide,
  .project-card.tall,
  .project-card.offset-top {
    grid-column: auto;
    padding-top: 0;
  }
}


.compact {
  margin-bottom: 34px;
}

.mobile-card {
  width: 100%;
  height: auto;
}

.mobile-card .handscroll-media {
  aspect-ratio: 4 / 5;
}


/* Advanced migration layer */
.page-shell {
  padding-bottom: 54px;
}

.page-title {
  margin: 0;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: .98;
}

.lead-copy,
.contact-detail-copy,
.overview-text,
.notes-copy,
.closing-cta-copy {
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.82;
}

.bordered-top,
.capabilities-home,
.project-home-section,
.studio-section {
  border-top: 1px solid var(--border);
}

.page-media {
  width: 100%;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--surface);
}

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

.intro-title {
  overflow: hidden;
}

.intro-title .intro-line {
  display: block;
  overflow: hidden;
}

.intro-title .intro-line span {
  display: block;
  transform: translate3d(0, 118%, 0);
  opacity: 0;
  transition: transform 1.05s var(--ease), opacity .85s var(--ease);
  transition-delay: var(--delay, 0s);
}

.intro-title .intro-line.italic span {
  font-style: italic;
  font-weight: 200;
}

body.page-ready .intro-title .intro-line span {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.load-seq,
.intro-fade {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .95s var(--ease), transform .95s var(--ease);
  transition-delay: var(--delay, 0s);
}

body.page-ready .load-seq,
body.page-ready .intro-fade,
body.page-ready .hero-scroll-hint {
  opacity: 1;
  transform: none;
}

.image-intro img {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.5s var(--ease), transform 1.8s var(--ease);
}

body.page-ready .image-intro img {
  opacity: 1;
  transform: scale(1);
}

.hero-main {
  max-width: 1120px;
}

.hero-eyebrow {
  margin-bottom: auto;
}

.section-head-grid {
  align-items: end;
  margin-bottom: 42px;
}

.section-head-grid.compact {
  margin-bottom: 28px;
}

.section-head-inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.service-view {
  justify-self: end;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transition: opacity .3s ease, transform .35s var(--ease);
}

.service-row:hover .service-view {
  opacity: 1;
  transform: translateX(4px);
}

.projects-feature-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(34px, 3vw, 42px) clamp(24px, 2.6vw, 40px);
}

.feature-wide {
  grid-column: span 7;
}

.feature-tall {
  grid-column: span 5;
}

.feature-offset {
  padding-top: 92px;
}

.ratio-wide {
  aspect-ratio: 16 / 10;
}

.ratio-portrait {
  aspect-ratio: 4 / 5;
}

.project-heading-row,
.project-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.projects-index-link {
  display: flex;
  justify-content: center;
  margin-top: 78px;
}

.handscroll-endcap {
  width: 14vw;
  flex: 0 0 14vw;
  height: 1px;
}

.handscroll-mobile-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 0 var(--pad) 8px;
  scroll-snap-type: x mandatory;
}

.handscroll-mobile-card {
  flex: 0 0 78vw;
  scroll-snap-align: start;
}

.mobile-card {
  width: 100%;
  height: 58vh;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.admin-empty-state,
.archive-empty {
  color: var(--muted);
  padding: 40px 0;
}

.closing-cta-copy {
  max-width: 560px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, .82);
}

.closing-cta-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 42px;
}

.dark-outline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 30px;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}

.dark-outline-btn:hover {
  background: var(--fg);
  color: var(--bg);
}

.dark-outline-btn.invert {
  border-color: rgba(255, 255, 255, .62);
  color: #fff;
}

.dark-outline-btn.invert:hover {
  background: #fff;
  border-color: #fff;
  color: #111;
}

.link-underline.light {
  color: rgba(255, 255, 255, .92);
}

.studio-approach-stack {
  display: grid;
  gap: 34px;
}

.studio-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  max-width: 980px;
}

.studio-copy-grid p {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.team-index {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.team-row h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -.03em;
}

.team-row p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.office-card h3 {
  margin: 0;
  font-size: 32px;
  font-weight: 300;
  letter-spacing: -.04em;
}

.office-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.office-card .text-eyebrow {
  margin-bottom: 24px;
}

.services-list-page {
  padding: 0 0 24px;
}

.service-detail-row {
  display: grid;
  grid-template-columns: 72px 1.35fr 1.35fr 1fr;
  gap: clamp(20px, 2.7vw, 40px);
  padding: 58px 0;
  border-bottom: 1px solid var(--border);
}

.service-detail-row:first-child {
  border-top: 1px solid var(--border);
}

.service-detail-copy p {
  margin: 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.service-detail-scope ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.service-detail-scope li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.scope-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--muted);
  margin-top: .82em;
  flex: 0 0 auto;
}

.contact-layout {
  display: grid;
  grid-template-columns: 4fr 7fr;
  gap: clamp(40px, 6vw, 90px);
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-link {
  font-size: 18px;
  font-weight: 300;
}

.contact-offices {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.contact-offices strong {
  color: var(--fg);
  font-weight: 300;
}

.contact-main {
  min-height: 320px;
}

.theme-note,
.contact-status {
  padding: 20px 22px;
  border: 1px solid var(--border);
  background: rgba(239, 232, 222, .45);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.contact-status.success {
  padding: 0 0 24px;
  border: 0;
  background: transparent;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.field-label {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-input,
.contact-textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 0 0 14px;
  border-radius: 0;
  color: var(--fg);
  font-size: 15px;
  font-weight: 300;
  transition: border-color .35s ease;
}

.contact-input:focus,
.contact-textarea:focus {
  outline: none;
  border-color: var(--fg);
}

.contact-textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-types {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 8px;
}

.type-pill.is-active {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

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

.project-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: clamp(36px, 4vw, 64px);
  align-items: start;
}

.project-meta {
  padding-top: 12px;
}

.project-meta dl {
  margin: 0;
  display: grid;
  gap: 22px;
}

.project-meta dt {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-meta dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--fg);
}

.project-detail-copy {
  margin: 24px 0 0;
  max-width: 720px;
  font-size: clamp(17px, 1.55vw, 20px);
  line-height: 1.78;
  color: var(--muted);
}

.overview-text {
  margin: 0;
  max-width: 860px;
  font-size: clamp(24px, 2.3vw, 40px);
  line-height: 1.35;
  letter-spacing: -.03em;
  font-weight: 300;
  color: var(--fg);
}

.notes-copy {
  font-size: 15px;
  line-height: 1.85;
}

.gallery-image {
  background: var(--surface);
  overflow: hidden;
}

.gallery-image.wide {
  aspect-ratio: 16 / 9;
}

.gallery-image.offset {
  width: min(80%, 1120px);
  margin-left: auto;
  aspect-ratio: 4 / 3;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 1180px) {
  .projects-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-wide,
  .feature-tall {
    grid-column: auto;
  }

  .feature-offset {
    padding-top: 0;
  }

  .service-detail-row {
    grid-template-columns: 72px 1.1fr 1.2fr;
  }

  .service-detail-row > div:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 900px) {
  .section-head-inline,
  .studio-copy-grid,
  .contact-layout,
  .contact-form-grid,
  .project-detail-grid,
  .projects-feature-grid {
    grid-template-columns: 1fr;
  }

  .section-head-inline {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-offset {
    padding-top: 0;
  }

  .service-detail-row {
    grid-template-columns: 52px 1fr;
    padding: 42px 0;
  }

  .service-detail-title,
  .service-detail-copy,
  .service-detail-scope {
    grid-column: 2 / -1;
  }

  .handscroll-mobile-scroll {
    padding: 0 20px 8px;
  }

  .gallery-image.offset {
    width: 100%;
  }
}


.section-divider {
  border-top: 1px solid var(--border);
}

.contact-shortcode-wrap > *:first-child {
  margin-top: 0;
}

/* === v3.3 archive / project admin / team portrait improvements === */
.project-archive-grid-staggered {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(28px, 2.8vw, 44px) clamp(20px, 2.2vw, 34px);
}

.project-archive-grid-staggered .archive-card {
  align-self: start;
}

.project-archive-grid-staggered .archive-wide {
  grid-column: span 7;
}

.project-archive-grid-staggered .archive-tall {
  grid-column: span 5;
}

.project-archive-grid-staggered .archive-third {
  grid-column: span 4;
}

.project-archive-grid-staggered .archive-wide .ratio-card {
  aspect-ratio: 16 / 10;
}

.project-archive-grid-staggered .archive-tall .ratio-card {
  aspect-ratio: 4 / 5;
}

.project-archive-grid-staggered .archive-third .ratio-card {
  aspect-ratio: 3 / 4;
}

.project-archive-grid-staggered .archive-offset {
  padding-top: clamp(36px, 4vw, 84px);
}

.project-archive-grid-staggered .archive-offset-sm {
  padding-top: clamp(18px, 2vw, 42px);
}

.project-archive-grid-staggered .project-title {
  font-size: clamp(20px, 2vw, 30px);
}

.project-archive-grid-staggered .project-summary {
  max-width: 40rem;
}

.service-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.service-title-group .service-title {
  min-width: 0;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(239, 232, 222, 0.45);
  color: var(--muted);
  flex: 0 0 auto;
  transition: color .35s ease, border-color .35s ease, background .35s ease, transform .35s var(--ease);
}

.service-icon svg {
  width: 20px;
  height: 20px;
}

.service-row:hover .service-icon {
  color: var(--fg);
  border-color: rgba(21, 21, 21, 0.22);
  background: rgba(239, 232, 222, 0.85);
  transform: translateX(2px);
}

.team-list-portraits {
  border-top: 1px solid var(--border);
}

.team-row-portrait {
  grid-template-columns: 72px 98px 1.25fr 1fr;
  align-items: center;
}

.team-portrait-wrap {
  display: flex;
  align-items: center;
}

.team-portrait {
  width: 88px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(21, 21, 21, 0.05);
}

.team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-portrait-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: .08em;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(239, 232, 222, 0.9), rgba(231, 221, 208, 0.8));
}

.team-identity {
  min-width: 0;
}

.team-identity .team-name {
  margin: 0;
}

.team-bio {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.team-bio > :first-child {
  margin-top: 0;
}

.team-bio > :last-child {
  margin-bottom: 0;
}

.team-row-portrait .team-role {
  justify-self: end;
  text-align: right;
}

.project-story-section {
  background: transparent;
}

.project-story-content {
  max-width: 860px;
}

.project-story-content > :first-child {
  margin-top: 0;
}

.project-story-content > :last-child {
  margin-bottom: 0;
}

.project-story-content p,
.project-story-content li,
.project-story-content blockquote {
  font-size: 16px;
  line-height: 1.92;
  color: var(--muted);
}

.project-story-content h2,
.project-story-content h3,
.project-story-content h4,
.project-story-content h5 {
  margin: 2.2em 0 0.65em;
  font-weight: 300;
  letter-spacing: -.03em;
  color: var(--fg);
}

.project-story-content h2 {
  font-size: clamp(28px, 3vw, 40px);
}

.project-story-content h3 {
  font-size: clamp(22px, 2vw, 28px);
}

.project-story-content ul,
.project-story-content ol {
  margin: 1.3em 0 1.3em 1.2em;
}

.project-story-content figure,
.project-story-content .wp-block-image,
.project-story-content .wp-block-gallery,
.project-story-content .wp-block-media-text {
  margin: 34px 0;
}

.project-story-content img {
  width: 100%;
  height: auto;
}

.project-story-content blockquote {
  margin: 1.8em 0;
  padding-left: 22px;
  border-left: 1px solid var(--border);
}

.project-story-content .wp-block-image figcaption,
.project-story-content figcaption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.gallery-stack-editorial {
  gap: 42px;
}

@media (max-width: 1180px) {
  .project-archive-grid-staggered .archive-wide,
  .project-archive-grid-staggered .archive-tall,
  .project-archive-grid-staggered .archive-third {
    grid-column: span 6;
  }

  .project-archive-grid-staggered .archive-offset,
  .project-archive-grid-staggered .archive-offset-sm {
    padding-top: 0;
  }
}

@media (max-width: 980px) {
  .project-archive-grid-staggered {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-archive-grid-staggered .archive-wide,
  .project-archive-grid-staggered .archive-tall,
  .project-archive-grid-staggered .archive-third {
    grid-column: auto;
  }

  .team-row-portrait {
    grid-template-columns: 72px 82px 1fr;
  }

  .team-row-portrait .team-role {
    grid-column: 3 / -1;
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 900px) {
  .service-title-group {
    grid-column: 2 / -1;
    gap: 14px;
  }

  .project-story-content {
    max-width: 100%;
  }

  .team-row-portrait {
    grid-template-columns: 52px 74px 1fr;
    gap: 16px;
  }

  .team-portrait {
    width: 70px;
    border-radius: 18px;
  }

  .team-row-portrait .team-role {
    grid-column: 2 / -1;
    margin-left: calc(74px + 16px);
  }
}

@media (max-width: 640px) {
  .project-archive-grid-staggered {
    grid-template-columns: 1fr;
  }

  .service-icon {
    width: 34px;
    height: 34px;
  }

  .service-icon svg {
    width: 17px;
    height: 17px;
  }

  .team-row-portrait {
    grid-template-columns: 52px 64px 1fr;
  }

  .team-row-portrait .team-role {
    margin-left: calc(64px + 16px);
  }
}
