:root {
  --ink: #1f2523;
  --ink-soft: #45504c;
  --paper: #fbfaf7;
  --sand: #f0ebe2;
  --accent: #b7774f;
  --accent-dark: #8d5233;
  --line: rgba(31, 37, 35, 0.16);
  --white: #fff;
  --max: 1240px;
  --shadow: 0 20px 55px rgba(18, 22, 21, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 9999; transform: translateY(-150%);
  padding: .65rem 1rem; background: var(--white); color: var(--ink); border-radius: 4px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed; z-index: 1000; top: 0; left: 0; right: 0;
  height: 82px; padding: 0 clamp(1.25rem, 4vw, 4rem);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(251, 250, 247, .94); border-bottom: 1px solid rgba(31, 37, 35, .08);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; }
.brand img { flex: 0 0 auto; }
.brand span { display: grid; line-height: 1.1; }
.brand strong { font-size: .98rem; letter-spacing: .02em; }
.brand small { margin-top: .35rem; color: var(--ink-soft); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.1rem); }
.site-nav a { text-decoration: none; font-size: .86rem; font-weight: 650; letter-spacing: .03em; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.active { color: var(--accent-dark); }
.nav-contact { padding: .65rem 1rem; border: 1px solid var(--ink); border-radius: 999px; }
.nav-contact:hover { background: var(--ink); color: var(--white) !important; }
.menu-toggle { display: none; border: 0; background: transparent; padding: .6rem; }
.menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--ink); transition: .25s ease; }

.hero { position: relative; min-height: min(880px, 100svh); display: grid; align-items: end; overflow: hidden; color: var(--white); }
.hero-image, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center 52%; transform: scale(1.01); }
.hero-shade { background: linear-gradient(90deg, rgba(18,23,21,.82) 0%, rgba(18,23,21,.48) 48%, rgba(18,23,21,.12) 78%), linear-gradient(0deg, rgba(18,23,21,.5), transparent 42%); }
.hero-content { position: relative; z-index: 1; width: min(760px, calc(100% - 2.5rem)); margin: 0 0 clamp(5.5rem, 10vh, 8rem) clamp(1.25rem, 7vw, 7.5rem); }
.eyebrow { margin: 0 0 1rem; font-size: .76rem; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.dark { color: var(--accent-dark); }
.hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.1rem, 7vw, 6.8rem); line-height: .92; font-weight: 500; letter-spacing: -.045em; }
.hero-content > p:not(.eyebrow) { max-width: 650px; margin: 1.5rem 0 0; font-size: clamp(1rem, 1.5vw, 1.25rem); color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .75rem 1.25rem; border-radius: 999px; text-decoration: none; font-size: .85rem; font-weight: 750; letter-spacing: .02em; transition: .2s ease; }
.button-primary { background: var(--white); color: var(--ink); }
.button-primary:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }
.button-ghost { border: 1px solid rgba(255,255,255,.62); color: var(--white); }
.button-ghost:hover { background: rgba(255,255,255,.13); transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: var(--accent-dark); transform: translateY(-2px); }
.scroll-cue { position: absolute; z-index: 1; right: clamp(1.25rem, 4vw, 4rem); bottom: 2.2rem; color: rgba(255,255,255,.88); text-decoration: none; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }

.section { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 5vw, 5rem); }
.section-soft { background: var(--sand); }
.section-dark { background: var(--ink); color: var(--white); }
.section-heading { width: min(var(--max), 100%); margin: 0 auto 3rem; }
.section-heading h2, .about-copy h2, .credentials-intro h2, .contact-section h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.45rem, 5vw, 4.8rem); line-height: 1; font-weight: 500; letter-spacing: -.04em; }
.split-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 480px); gap: 3rem; align-items: end; }
.split-heading > p { margin: 0 0 .3rem; color: var(--ink-soft); font-size: 1.02rem; }
.light-heading > p { color: rgba(255,255,255,.66); }

.type-grid { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.type-card { position: relative; min-height: 430px; overflow: hidden; border-radius: 4px; color: var(--white); text-decoration: none; box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.type-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(17,22,20,.82), rgba(17,22,20,.04) 67%); transition: .35s ease; }
.type-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.type-card span { position: absolute; z-index: 1; left: 1.5rem; right: 1.5rem; bottom: 1.5rem; display: grid; }
.type-card strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.75rem; font-weight: 500; }
.type-card small { margin-top: .25rem; color: rgba(255,255,255,.78); }
.type-card:hover img { transform: scale(1.045); }
.type-card:hover::after { background: linear-gradient(0deg, rgba(17,22,20,.9), rgba(17,22,20,.08) 72%); }

.projects-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.filters { display: flex; flex-wrap: nowrap; gap: .45rem; justify-content: flex-end; overflow-x: auto; max-width: 100%; padding-bottom: .15rem; scrollbar-width: thin; }
.filter-button { flex: 0 0 auto; white-space: nowrap; border: 1px solid var(--line); background: transparent; color: var(--ink-soft); border-radius: 999px; padding: .56rem .78rem; cursor: pointer; font-size: .74rem; font-weight: 700; text-decoration: none; }
.filter-button:hover, .filter-button:focus-visible, .filter-button.active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.project-category-intro { width: min(1460px, 100%); margin: 0 auto 2.25rem; padding: 1.5rem 1.7rem; border-left: 4px solid var(--accent); background: var(--sand); }
.project-category-intro[hidden] { display: none !important; }
.project-category-intro p { max-width: 1180px; margin: 0; color: var(--ink-soft); font-size: 1.02rem; line-height: 1.7; }
.project-grid { width: min(1460px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.project-card { min-width: 0; }
.project-card[hidden] { display: none !important; }
.project-card-wide { grid-column: span 2; }
.project-open { width: 100%; padding: 0; border: 0; background: #e7e3db; text-align: left; cursor: zoom-in; overflow: hidden; border-radius: 3px; }
.project-open img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s ease, filter .3s ease; }
.project-card-wide .project-open img { aspect-ratio: 16 / 9; }
.project-card-portrait .project-open img { aspect-ratio: 3 / 4; }
.project-card-contain .project-open img { object-fit: contain; background: #e4e0d8; }
/* Commercial portfolio sizing */
.project-card-queen-after { grid-column: span 3; }
.project-card-queen-after .project-link img { aspect-ratio: auto; height: auto; object-fit: contain; background: #e4e0d8; }
.project-card-queen-after .project-open img { aspect-ratio: 3 / 1; object-fit: contain; background: #e4e0d8; }
.project-card-commercial-equal .project-open img { height: clamp(210px, 18vw, 265px); aspect-ratio: auto; object-fit: cover; }
.project-card-compact-title .project-open strong { font-size: clamp(.82rem, 1vw, 1rem); white-space: nowrap; }

.project-open span { display: grid; padding: 1rem 1rem 1.15rem; background: var(--paper); }
.project-open strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.13rem; font-weight: 500; }
.project-open small { margin-top: .2rem; color: var(--ink-soft); }
.project-open:hover img { transform: scale(1.025); filter: saturate(.92); }
.project-open:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.portfolio-note { width: min(1460px, 100%); margin: 2rem auto 0; color: var(--ink-soft); font-size: .78rem; }

.service-grid { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.18); border-left: 1px solid rgba(255,255,255,.18); }
.service-grid article { min-height: 270px; padding: 2rem; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.service-grid span { color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .12em; }
.service-grid h3 { margin: 2.3rem 0 .75rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 500; }
.service-grid p { margin: 0; color: rgba(255,255,255,.65); font-size: .92rem; }

.about-section { width: min(1480px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: clamp(3rem, 7vw, 8rem); align-items: center; }
/* About-page image composition: the Karori Community Connection Point image is the larger top-left image,
   with the Taylor House, Whitby image overlapping at bottom right. */
.about-visual { position: relative; min-height: 0; display: flex; flex-direction: column; align-items: flex-start; }
.about-figure { margin: 0; }
.about-figure-main { width: 92%; }
.about-main { display: block; width: 100%; height: auto; object-fit: contain; position: relative; box-shadow: var(--shadow); }
.about-figure-inset { width: 68%; position: relative; align-self: flex-end; margin-top: 1.5rem; z-index: 1; }
.about-inset { display: block; width: 100%; height: auto; object-fit: contain; position: relative; border: 10px solid var(--paper); background: var(--paper); box-shadow: var(--shadow); }
.about-caption { display: block; margin-top: .55rem; font-size: .8rem; line-height: 1.35; color: var(--ink-soft); }
.about-caption-inset { text-align: right; }

.about-copy { max-width: 650px; }
.about-copy .lead { color: var(--ink); font-size: 1.3rem; line-height: 1.45; }
.about-copy p { color: var(--ink-soft); }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; margin-top: 2rem; }
.text-link { font-weight: 750; text-decoration: none; border-bottom: 1px solid var(--ink); }
.text-link:hover { color: var(--accent-dark); border-color: var(--accent-dark); }



.testimonials-section { background: #f4f1ea; }
.testimonials-heading { margin-bottom: 3rem; }
.testimonials-heading > p { max-width: 560px; color: var(--ink-soft); }
.testimonials-grid { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.testimonial-card { position: relative; display: flex; flex-direction: column; min-height: 320px; padding: clamp(1.7rem, 3vw, 2.6rem); background: var(--paper); border: 1px solid rgba(31,37,35,.1); box-shadow: 0 10px 30px rgba(31,37,35,.05); }
.testimonial-card::before { content: ““”; position: absolute; top: .3rem; right: 1.25rem; font-family: Georgia, "Times New Roman", serif; font-size: 6rem; line-height: 1; color: rgba(167,79,42,.13); }
.testimonial-card blockquote { margin: 0; position: relative; z-index: 1; }
.testimonial-card blockquote p { margin: 0 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.05rem, 1.45vw, 1.28rem); line-height: 1.62; color: var(--ink); }
.testimonial-card blockquote p:last-child { margin-bottom: 0; }
.testimonial-card footer { margin-top: auto; padding-top: 2rem; display: grid; gap: .35rem; border-top: 1px solid rgba(31,37,35,.12); }
.testimonial-card footer strong { font-size: .92rem; letter-spacing: .01em; }
.testimonial-card footer span { color: var(--ink-soft); font-size: .78rem; line-height: 1.45; }
.testimonial-card-featured { grid-column: span 2; min-height: 0; background: var(--accent-dark); color: var(--white); }
.testimonial-card-featured::before { color: rgba(255,255,255,.12); }
.testimonial-card-featured blockquote p { color: var(--white); font-size: clamp(1.2rem, 1.8vw, 1.55rem); }
.testimonial-card-featured footer { border-color: rgba(255,255,255,.2); }
.testimonial-card-featured footer span { color: rgba(255,255,255,.7); }
.testimonial-card-colleague { background: #ebe6dc; }

.credentials-intro { width: min(var(--max), 100%); margin: 0 auto 3rem; display: grid; grid-template-columns: 1fr minmax(280px, 440px); align-items: end; gap: 4rem; }
.credentials-intro > div > p:last-child { max-width: 720px; color: var(--ink-soft); }
.nzia-logo { width: min(100%, 420px); justify-self: end; mix-blend-mode: multiply; }
.credential-grid { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.credential-card { background: var(--paper); border: 1px solid rgba(31,37,35,.1); display: flex; flex-direction: column; min-width: 0; }
.credential-open { border: 0; padding: 0; background: #e8e4dc; cursor: zoom-in; }
.credential-open img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; filter: saturate(.85); transition: .3s ease; }
.credential-open:hover img { filter: saturate(1); }
.credential-card > div { padding: 1.2rem; display: flex; flex-direction: column; flex: 1; }
.credential-kicker { margin: 0 0 .55rem !important; color: var(--accent-dark) !important; font-size: .68rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.credential-card h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; line-height: 1.2; font-weight: 500; }
.credential-card p { margin: .7rem 0 0; color: var(--ink-soft); font-size: .82rem; }
.credential-card a { margin-top: auto; padding-top: 1rem; color: var(--accent-dark); font-size: .78rem; font-weight: 750; text-decoration: none; }
.credential-card a:hover { text-decoration: underline; }

.contact-section { padding: clamp(5rem, 8vw, 8rem) clamp(1.25rem, 7vw, 7rem); background: var(--accent-dark); color: var(--white); display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 4rem; align-items: end; }
.contact-section > div:first-child p:last-child { max-width: 580px; color: rgba(255,255,255,.75); font-size: 1.05rem; }
.contact-details { display: grid; }
.contact-details a { display: grid; padding: 1.2rem 0; border-bottom: 1px solid rgba(255,255,255,.25); text-decoration: none; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.2rem, 2vw, 1.7rem); }
.contact-details a span { margin-bottom: .35rem; font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif; font-size: .68rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.contact-details a:hover { color: #ffe2cf; }

.site-footer { padding: 2rem clamp(1.25rem, 4vw, 4rem); display: flex; gap: 2rem; align-items: center; justify-content: space-between; background: #151a18; color: rgba(255,255,255,.75); }
.footer-brand strong { color: var(--white); }
.footer-brand small { color: rgba(255,255,255,.5); }
.site-footer p { font-size: .75rem; }
.site-footer > a { color: var(--white); text-decoration: none; font-size: .75rem; }

.lightbox { width: min(94vw, 1480px); max-width: none; max-height: 92vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgba(10,14,12,.88); backdrop-filter: blur(8px); }
.lightbox figure { margin: 0; position: relative; display: grid; justify-items: center; }
.lightbox figure > img { max-width: 94vw; max-height: 82vh; width: auto; height: auto; object-fit: contain; background: #111; box-shadow: 0 25px 80px rgba(0,0,0,.45); }
.lightbox figcaption { width: min(94vw, 1100px); display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 0 0; color: var(--white); }
.lightbox figcaption span { color: rgba(255,255,255,.65); }
.lightbox-close { position: fixed; top: 1rem; right: 1.2rem; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(20,24,22,.7); color: var(--white); font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: var(--accent-dark); }

.back-to-top { position: fixed; z-index: 900; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(20,24,22,.7); color: var(--white); font-size: 1.3rem; line-height: 1; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease, background .2s ease; }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-dark); }


@media (max-width: 1100px) {
  .project-card-queen-after { grid-column: span 2; }
  .project-card-commercial-equal .project-open img { height: clamp(210px, 25vw, 265px); }

  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .credential-grid { grid-template-columns: repeat(3, 1fr); }
  .about-section { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .about-visual { min-height: 0; }
}

@media (max-width: 820px) {
  .site-header { height: 72px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 72px; left: 0; right: 0; display: none; padding: 1rem 1.25rem 1.5rem; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 14px 32px rgba(0,0,0,.08); }
  .site-nav.open { display: grid; }
  .site-nav a { padding: .65rem 0; }
  .nav-contact { border: 0; padding: .65rem 0; }
  .nav-contact:hover, .nav-contact:focus-visible { background: transparent; color: var(--accent-dark) !important; }
  .hero { min-height: 840px; }
  .hero-content { margin-bottom: 6rem; }
  .hero-shade { background: linear-gradient(0deg, rgba(18,23,21,.84) 0%, rgba(18,23,21,.48) 57%, rgba(18,23,21,.2)); }
  .split-heading, .credentials-intro, .contact-section, .about-section { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .type-card { min-height: 390px; }
  .projects-heading { align-items: flex-start; flex-direction: column; }
  .filters { justify-content: flex-start; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-card-wide { grid-column: span 2; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-visual { min-height: 0; order: 2; }
  .about-copy { order: 1; }
  .nzia-logo { justify-self: start; }
  .credential-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonial-card-featured { grid-column: auto; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .lightbox figcaption { flex-direction: column; gap: .15rem; }
}

@media (max-width: 560px) {
  .project-card-queen-after { grid-column: auto; }
  .project-card-queen-after .project-open img { aspect-ratio: 4 / 3; }
  .project-card-commercial-equal .project-open img { height: auto; aspect-ratio: 4 / 3; }
  .project-card-compact-title .project-open strong { white-space: normal; }

  .brand strong { font-size: .88rem; }
  .brand small { display: none; }
  .hero { min-height: 760px; }
  .hero-content { margin-left: 1.25rem; margin-bottom: 5.5rem; }
  .hero h1 { font-size: clamp(3.2rem, 15vw, 4.7rem); }
  .scroll-cue { display: none; }
  .section { padding-top: 4.7rem; padding-bottom: 4.7rem; }
  .project-grid, .service-grid, .credential-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-card { min-height: 240px; }
  .project-card-wide { grid-column: auto; }
  .project-card-wide .project-open img { aspect-ratio: 4 / 3; }
  .project-card-portrait .project-open img { aspect-ratio: 4 / 3; }
  .service-grid { border-left: 1px solid rgba(255,255,255,.18); }
  .service-grid article { min-height: 220px; }
  .about-visual { min-height: 0; }
  .about-figure-main { width: 94%; }
  .about-figure-inset { width: 78%; margin-top: 1.25rem; }
  .about-inset { border-width: 6px; }
  .about-caption { font-size: .76rem; }
  .contact-section { gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Updated Property Planning Ltd logo */
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img {
  width: clamp(225px, 24vw, 330px);
  height: auto;
  max-height: 62px;
  object-fit: contain;
}
.footer-brand {
  display: grid;
  gap: .55rem;
  justify-items: start;
}
.footer-brand img {
  width: min(340px, 78vw);
  height: auto;
  padding: .35rem .55rem;
  border-radius: 4px;
}
.footer-brand small {
  color: rgba(255,255,255,.72);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
@media (max-width: 760px) {
  .brand-logo img { width: min(235px, 68vw); max-height: 54px; }
}

/* Nicholls House project detail page */
.project-link {
  width: 100%; display: block; overflow: hidden; border-radius: 3px;
  background: #e7e3db; color: inherit; text-align: left; text-decoration: none;
}
.project-link img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s ease, filter .3s ease; }
.project-link span { display: grid; padding: 1rem 1rem 1.15rem; background: var(--paper); }
.project-link strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.13rem; font-weight: 500; }
.project-link small { margin-top: .2rem; color: var(--ink-soft); }
.project-link .project-more { margin-top: .65rem; color: var(--accent-dark); font-size: .76rem; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.project-link:hover img { transform: scale(1.025); filter: saturate(.92); }
.project-link:hover .project-more { text-decoration: underline; }
.project-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.project-detail-page { background: var(--paper); }
.project-hero { position: relative; min-height: min(780px, 88svh); margin-top: 82px; display: grid; align-items: end; overflow: hidden; color: var(--white); }
.project-hero-image, .project-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.project-hero-image { object-fit: cover; object-position: center 56%; }
.project-hero-shade { background: linear-gradient(90deg, rgba(15,20,18,.82) 0%, rgba(15,20,18,.42) 52%, rgba(15,20,18,.08) 82%), linear-gradient(0deg, rgba(15,20,18,.45), transparent 46%); }
.project-hero-content { position: relative; z-index: 1; width: min(900px, calc(100% - 2.5rem)); margin: 0 0 clamp(4rem, 8vh, 6.5rem) clamp(1.25rem, 7vw, 7.5rem); }
.project-back { display: inline-block; margin-bottom: 2.3rem; color: rgba(255,255,255,.85); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.project-back:hover { color: var(--white); text-decoration: underline; }
.project-hero h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.8rem, 8vw, 8.4rem); font-weight: 500; letter-spacing: -.05em; line-height: .9; }
.project-hero-content > p:last-child { max-width: 690px; margin: 1.5rem 0 0; color: rgba(255,255,255,.9); font-size: clamp(1.05rem, 1.7vw, 1.35rem); }

.project-intro { width: min(1480px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: clamp(3rem, 7vw, 7rem); align-items: center; }
.project-intro-copy h2, .project-next h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 4.6vw, 4.8rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.project-intro-copy p:not(.eyebrow) { color: var(--ink-soft); }
.project-intro-copy .project-lead { margin-top: 1.7rem; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.45; }
.project-panorama { margin: 0; }
.project-panorama figcaption, .wide-drawing figcaption, .drawing-grid figcaption, .construction-grid figcaption { margin-top: 1.75rem; color: var(--ink-soft); font-size: .78rem; }

.gallery-open { width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; overflow: hidden; text-align: left; }
.gallery-open img { width: 100%; transition: transform .45s ease, filter .3s ease; }
.gallery-open:hover img { transform: scale(1.015); filter: saturate(.92); }
.gallery-open:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.project-story-heading { margin-bottom: 3.5rem; }
.concept-grid { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(260px, .75fr) minmax(360px, 1.25fr); gap: clamp(1.25rem, 3vw, 3rem); align-items: start; }
.concept-card { margin: 0; background: var(--paper); border: 1px solid rgba(31,37,35,.09); }
.concept-card .gallery-open { padding: clamp(1rem, 2vw, 2rem); background: #f6f3ec; }
.concept-card-sketch img { aspect-ratio: 1 / 1; object-fit: contain; }
.concept-card-plans img { max-height: 820px; object-fit: contain; }
.concept-card figcaption { padding: 1rem 1.2rem 1.2rem; display: flex; gap: 1rem; align-items: baseline; }
.concept-card figcaption strong { color: var(--accent-dark); font-size: .7rem; letter-spacing: .14em; }
.concept-card figcaption span { font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; }
.project-note { width: min(860px, 100%); margin: 3rem auto 0; color: var(--ink-soft); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.5; text-align: center; }

.design-development { width: min(1480px, 100%); margin: 0 auto; }
.wide-drawing { margin: 0 auto 1.25rem; width: min(var(--max), 100%); }
.wide-drawing .gallery-open { padding: clamp(1rem, 2vw, 2rem); background: #f4f1ea; }
.wide-drawing img { aspect-ratio: 2.7 / 1; object-fit: contain; }
.drawing-grid { width: min(var(--max), 100%); margin: 2.5rem auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.drawing-grid figure { margin: 0; }
.drawing-grid .gallery-open { height: 100%; min-height: 430px; padding: clamp(1rem, 2vw, 2rem); display: grid; place-items: center; background: #ece8df; }
.drawing-grid img { width: 100%; height: 100%; max-height: 520px; object-fit: contain; }
.structural-note { width: min(870px, 100%); margin: 4rem auto 0; padding: clamp(1.5rem, 3vw, 2.5rem); border-left: 4px solid var(--accent); background: var(--sand); }
.structural-note p:last-child { margin-bottom: 0; color: var(--ink-soft); font-size: 1.03rem; }

.construction-section .section-heading { margin-bottom: 3.5rem; }
.construction-grid { width: min(1480px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.construction-grid figure { margin: 0; }
.construction-grid .gallery-open { background: #111; }
.construction-grid img { aspect-ratio: 4 / 3; object-fit: cover; }
.construction-grid figcaption { color: rgba(255,255,255,.68); }

.project-next { width: min(var(--max), 100%); margin: 0 auto; display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.project-next > div:first-child { max-width: 760px; }
.project-next p:not(.eyebrow) { color: var(--ink-soft); }
.project-next-actions { display: grid; gap: 1rem; justify-items: start; flex: 0 0 auto; }
.project-sheet-link { color: var(--accent-dark); font-size: .8rem; font-weight: 750; text-decoration: none; }
.project-sheet-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .project-hero { margin-top: 72px; min-height: 700px; }
  .project-intro { grid-template-columns: 1fr; }
  .project-panorama { order: -1; }
  .concept-grid { grid-template-columns: 1fr; }
  .concept-card-plans img { max-height: none; }
  .drawing-grid { grid-template-columns: 1fr; }
  .drawing-grid .gallery-open { min-height: 0; }
  .construction-grid { grid-template-columns: 1fr; }
  .project-next { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .project-hero { min-height: 620px; }
  .project-hero-content { margin-left: 1.25rem; margin-bottom: 4rem; }
  .project-hero h1 { font-size: clamp(3.5rem, 18vw, 5rem); }
  .wide-drawing img { aspect-ratio: auto; }
  .project-note { text-align: left; }
}


.property-planning-case-study-section .project-lead { width: min(780px, 100%); margin-top: 0; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 1.5; }
.property-planning-case-study-intro { margin-bottom: 2.25rem; }
.property-planning-case-study-points ul { columns: 1; }
.property-planning-case-study-site img { aspect-ratio: auto; max-height: none; }
.property-planning-case-study-grid .gallery-open { min-height: 0; background: #ece8df; }
.property-planning-case-study-grid img { width: 100%; height: auto; max-height: 760px; object-fit: contain; }
.property-planning-case-study-note { margin-top: 5rem; }
@media (max-width: 900px) {
  .property-planning-case-study-section .project-lead { width: 100%; }
}

/* Queen Street Health Centre project page */
.health-centre-detail .project-hero-image { object-position: center 50%; }
.health-existing-grid { width: min(1480px, 100%); margin: 3rem auto 0; display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); gap: 1.25rem; align-items: start; }
.health-existing-grid figure { margin: 0; }
.health-existing-grid .gallery-open { background: #ece8df; }
.health-existing-grid img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; display: block; }
.health-existing-grid figcaption { margin-top: .75rem; color: var(--ink-soft); font-size: .78rem; }
.health-concept-elevations img { aspect-ratio: auto; max-height: 860px; }
.health-stage-grid img { max-height: 680px; }
.health-completed-plan img { aspect-ratio: auto; max-height: 1100px; }
.health-completion-note { margin-top: 3rem; }
.health-completion-image { margin: 1.5rem auto 0; width: min(var(--max), 100%); }
.health-completion-image img { width: 100%; height: auto; display: block; object-fit: contain; }
.health-completion-image figcaption { margin-top: .75rem; color: var(--ink-soft); font-size: .78rem; }
@media (max-width: 900px) {
  .health-existing-grid { grid-template-columns: 1fr; }
  .health-centre-detail .project-hero-image { object-position: center; }
}
/* Queen Street Health Centre — compact THE BRIEF heading */
.health-centre-detail .project-intro-copy h2 { font-size: clamp(1.85rem, 2.7vw, 3rem); line-height: 1.03; }

/* Epuni House Additions project page */
.project-card-contain .project-link img { object-fit: contain; background: #e4e0d8; }
.epuni-detail .project-hero-image { object-position: center 42%; }
.epuni-site-aerial { max-width: 900px; }
.epuni-site-aerial img,
.epuni-two-storey-wide img,
.epuni-chosen-aerial img { aspect-ratio: auto; max-height: none; }
.epuni-option-grid { margin-top: 1.5rem; }
.epuni-option-grid .gallery-open { background: #ece8df; }
.epuni-option-grid img { aspect-ratio: auto; height: auto; object-fit: contain; background: #ece8df; }
.epuni-option-grid figcaption { color: var(--ink-soft); }
.epuni-plans-grid .gallery-open { min-height: 0; }
.epuni-plans-grid img { max-height: 680px; }
.epuni-consent-note { margin-top: 1rem; }
.epuni-testimonial-link { width: min(870px, 100%); margin: 1.5rem auto 0; }
@media (max-width: 900px) {
  .epuni-detail .project-hero-image { object-position: center; }
}

/* Karori Anglican Churches — Community Connection Point project page */
.kac-detail .project-hero-image { object-position: center 52%; }
.kac-karori-view img { width: 100%; height: auto; object-fit: contain; }
.kac-feature-grid { width: min(var(--max), 100%); margin: 0 auto 3rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.kac-feature-grid article { padding: clamp(1.35rem, 2.5vw, 2.2rem); background: var(--paper); border-top: 3px solid var(--accent); box-shadow: 0 12px 30px rgba(31,37,35,.06); }
.kac-feature-grid span { display: block; margin-bottom: .9rem; color: var(--accent-dark); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.kac-feature-grid h3 { margin: 0 0 .75rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 500; line-height: 1.15; }
.kac-feature-grid p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.kac-north-view img { aspect-ratio: auto; max-height: 760px; }
.kac-stage-grid { width: min(1100px, 100%); margin: 0 auto 3rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.kac-stage-card { margin: 0; height: 100%; }
.kac-site-plan img { aspect-ratio: auto; max-height: 960px; }
.kac-plan-grid img { max-height: 760px; }
.kac-elevation-grid img { max-height: 620px; }
.kac-community-note { margin-top: 1rem; }
@media (max-width: 1000px) {
  .kac-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .kac-feature-grid, .kac-stage-grid { grid-template-columns: 1fr; }
  .kac-detail .project-hero-image { object-position: center; }
}

/* Upper Hutt Baptist Church project page */
.baptist-detail .project-hero-image { object-position: center 52%; }
.baptist-existing-photo img { width: 100%; height: auto; object-fit: contain; }
.baptist-use-grid { width: min(var(--max), 100%); margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem 1.25rem; list-style: none; }
.baptist-use-grid li { position: relative; padding: .9rem 1rem .9rem 1.85rem; background: var(--paper); border: 1px solid rgba(31,37,35,.08); color: var(--ink-soft); font-size: .94rem; }
.baptist-use-grid li::before { content: ""; position: absolute; left: .8rem; top: 1.3rem; width: .38rem; height: .38rem; border-radius: 50%; background: var(--accent); }
.baptist-existing-grid .gallery-open { min-height: 0; }
.baptist-existing-grid img { max-height: 660px; }
.baptist-auditorium-note { margin-top: 2.5rem; }
.baptist-concept-sketch img { aspect-ratio: auto; max-height: 520px; }
.baptist-priority-grid { width: min(var(--max), 100%); margin: 2rem auto 3rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.baptist-priority-grid article { padding: clamp(1.35rem, 2.5vw, 2rem); background: var(--paper); border-top: 3px solid var(--accent); box-shadow: 0 12px 30px rgba(31,37,35,.06); }
.baptist-priority-grid span { display: block; margin-bottom: .8rem; color: var(--accent-dark); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.baptist-priority-grid h3 { margin: 0 0 .7rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 1.8vw, 1.65rem); font-weight: 500; line-height: 1.15; }
.baptist-priority-grid p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

.baptist-pastor-quote { width: min(1050px, 100%); margin: 2.5rem auto 3.5rem; padding: clamp(1.6rem, 3vw, 2.6rem); background: var(--paper); border-left: 4px solid var(--accent); box-shadow: 0 10px 30px rgba(31,37,35,.05); }
.baptist-pastor-quote p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.2rem, 1.8vw, 1.55rem); line-height: 1.58; color: var(--ink); }
.baptist-pastor-quote footer { margin-top: 1.25rem; color: var(--ink-soft); font-size: .82rem; font-weight: 700; letter-spacing: .04em; }

.baptist-developed-site img { aspect-ratio: auto; max-height: 900px; }
.baptist-plan-grid .gallery-open, .baptist-form-grid .gallery-open { min-height: 0; }
.baptist-plan-grid img { max-height: 760px; }
.baptist-form-grid img { max-height: 700px; }
.baptist-elevations img { aspect-ratio: auto; max-height: 820px; }
@media (max-width: 1000px) {
  .baptist-use-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .baptist-priority-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .baptist-use-grid, .baptist-priority-grid { grid-template-columns: 1fr; }
  .baptist-detail .project-hero-image { object-position: center; }
}


/* Silverstream Pharmacy and Bakery project page */
.silverstream-pharmacy-detail .project-hero-image { object-position: center 47%; }
.silverstream-before-photo img { width: 100%; height: auto; object-fit: contain; display: block; }
.silverstream-entry-view { max-width: 980px; }
.silverstream-entry-view img,
.silverstream-site-plan img,
.silverstream-elevations img { aspect-ratio: auto; max-height: none; }
.silverstream-structure-grid .gallery-open { min-height: 0; }
.silverstream-structure-grid img { height: auto; max-height: 760px; object-fit: contain; }
.silverstream-testimonial-link { width: min(870px, 100%); margin: 2rem auto 0; }
@media (max-width: 900px) {
  .silverstream-pharmacy-detail .project-hero-image { object-position: center; }
}

/* Silverstream Health Centre and Physiotherapy project page */
.silverstream-health-detail .project-hero-image { object-position: center 48%; }
.silverstream-health-main-view img { width: 100%; height: auto; object-fit: contain; display: block; }
.silverstream-health-plan img,
.silverstream-health-elevations img { aspect-ratio: auto; max-height: none; }
.silverstream-health-detail-grid .gallery-open { min-height: 0; }
.silverstream-health-detail-grid img { width: 100%; height: auto; max-height: 720px; object-fit: contain; }
.silverstream-health-testimonial-link { width: min(870px, 100%); margin: 2rem auto 0; }
@media (max-width: 900px) {
  .silverstream-health-detail .project-hero-image { object-position: center; }
}

/* Upper Hutt Baptist Church - enlarge combined ground/mezzanine plans */
.baptist-plan-combined {
  width: min(1480px, 100%);
}
.baptist-plan-combined .gallery-open {
  padding: clamp(.5rem, 1vw, 1rem);
}
.baptist-plan-combined img {
  aspect-ratio: auto;
  width: 100%;
  height: auto;
  max-height: none;
}

/* Inform Physio project page */
.inform-detail .project-hero-image { object-position: center 50%; }
.inform-main-view img { width: 100%; height: auto; object-fit: contain; display: block; }
.inform-scope-grid { width: min(var(--max), 100%); margin: 2.5rem auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.inform-scope-grid article { padding: clamp(1.35rem, 2.5vw, 2.2rem); background: var(--white); border-top: 3px solid var(--accent); }
.inform-scope-grid span { display: block; margin-bottom: 1rem; color: var(--accent-dark); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.inform-scope-grid h3 { margin: 0 0 .7rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 500; }
.inform-scope-grid p { margin: 0; color: var(--ink-soft); }
.inform-detail .wide-drawing img { aspect-ratio: auto; width: 100%; height: auto; max-height: none; object-fit: contain; }
.inform-detail .drawing-grid .gallery-open { min-height: 0; padding: clamp(.55rem, 1vw, 1rem); background: #f4f1ea; }
.inform-detail .drawing-grid img { width: 100%; height: auto; max-height: none; object-fit: contain; }
.inform-sheet-wide { width: min(1480px, 100%); margin-top: 2.2rem; }
.inform-sheet-wide .gallery-open { padding: clamp(.55rem, 1vw, 1rem); }
.inform-two-up { width: min(1480px, 100%); }
.inform-fire-grid { align-items: start; }
.inform-report-cover .gallery-open { background: #fff; }
.inform-report-cover img { max-height: 900px; object-fit: contain; }
.inform-testimonial-link { width: min(930px, 100%); margin: 2.2rem auto 0; }
@media (max-width: 900px) {
  .inform-scope-grid { grid-template-columns: 1fr; }
  .inform-detail .project-hero-image { object-position: center; }
}

/* National Stadium Concept — Quay Park, Auckland project page */
.stadium-detail .project-hero { min-height: min(720px, 82svh); background: #dcd8d0; }
.stadium-detail .project-hero-image { object-fit: cover; object-position: center 52%; }
.stadium-detail .project-hero-shade { background: linear-gradient(90deg, rgba(15,20,18,.88) 0%, rgba(15,20,18,.54) 46%, rgba(15,20,18,.15) 78%), linear-gradient(0deg, rgba(15,20,18,.38), transparent 50%); }
.stadium-detail .project-hero h1 { font-size: clamp(3.4rem, 7vw, 7.5rem); }
.stadium-location-view .gallery-open { padding: clamp(.5rem, 1vw, 1rem); background: #f4f1ea; }
.stadium-location-view img { width: 100%; height: auto; display: block; object-fit: contain; }
.stadium-feature-grid { width: min(var(--max), 100%); margin: 0 auto 3rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stadium-feature-grid article { padding: clamp(1.35rem, 2.5vw, 2.1rem); background: var(--paper); border-top: 3px solid var(--accent); box-shadow: 0 12px 30px rgba(31,37,35,.06); }
.stadium-feature-grid span { display: block; margin-bottom: .8rem; color: var(--accent-dark); font-size: .72rem; font-weight: 800; letter-spacing: .14em; }
.stadium-feature-grid h3 { margin: 0 0 .7rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 1.8vw, 1.65rem); font-weight: 500; line-height: 1.15; }
.stadium-feature-grid p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.stadium-detail .wide-drawing img { aspect-ratio: auto; width: 100%; height: auto; max-height: none; object-fit: contain; }
.stadium-sheet-wide { width: min(1480px, 100%); }
.stadium-sheet-wide .gallery-open { padding: clamp(.55rem, 1vw, 1rem); }
.stadium-route { width: min(1320px, 100%); margin: 2.5rem auto 3rem; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .65rem; }
.stadium-route span { padding: .72rem .95rem; background: var(--sand); border: 1px solid rgba(31,37,35,.08); color: var(--ink); font-size: .9rem; line-height: 1.25; }
.stadium-route i { color: var(--accent-dark); font-style: normal; font-weight: 800; }
.stadium-loop-note { margin-top: 2.5rem; }
.stadium-drawing-grid { width: min(1480px, 100%); }
.stadium-drawing-grid .gallery-open { min-height: 0; padding: clamp(.55rem, 1vw, 1rem); background: #f4f1ea; }
.stadium-drawing-grid img { width: 100%; height: auto; max-height: none; object-fit: contain; }
.stadium-response { padding-top: clamp(5rem, 9vw, 8rem); padding-bottom: clamp(5rem, 9vw, 8rem); }
.stadium-response #response-title { font-size: clamp(1.25rem, 2.5vw, 2.4rem); line-height: 1.08; }
.stadium-quote { width: min(1060px, 100%); margin: 3rem auto 0; padding: clamp(2rem, 4vw, 4rem); background: var(--accent-dark); color: var(--white); box-shadow: 0 18px 45px rgba(31,37,35,.12); }
.stadium-quote p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.4rem, 2.4vw, 2.15rem); line-height: 1.5; }
.stadium-quote footer { margin-top: 2rem; padding-top: 1.35rem; border-top: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.75); font-size: .86rem; font-weight: 700; letter-spacing: .03em; }
@media (max-width: 1000px) {
  .stadium-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .stadium-feature-grid { grid-template-columns: 1fr; }
  .stadium-detail .project-hero-image { object-position: center; }
  .stadium-route { justify-content: flex-start; }
}

.entry-sketch-figure { overflow: visible; }
.entry-sketch-caption { display: block !important; visibility: visible !important; opacity: 1 !important; margin-top: .75rem; color: var(--ink-soft); font-size: .78rem; line-height: 1.4; }

/* Entry Addition (Exterior) sketch spacing */
.pergola-sketch-figure { margin-top: 2.25rem !important; }

/* Taylor House brief — pool and street elevations stacked in the former site-plan position */
.taylor-brief-images { display: grid; gap: 1.4rem; }
.taylor-brief-images figure { margin: 0; }
.taylor-brief-images figcaption { margin-top: .75rem; color: var(--ink-soft); font-size: .78rem; }

/* Taylor House design-drawing rows: show the complete drawing and keep captions visible. */
.taylor-design-grid .gallery-open { height: auto; min-height: 0; padding: clamp(.6rem, 1.2vw, 1.1rem); }
.taylor-design-grid img { width: 100%; height: auto; max-height: none; object-fit: contain; }
.taylor-design-grid figcaption { display: block; margin-top: .75rem; color: var(--ink-soft); font-size: .78rem; }

/* Beachfront House concept background images stacked vertically. */
.beachfront-concept-images { display: grid; gap: 1.4rem; }
.beachfront-concept-images figure { margin: 0; }
.beachfront-concept-images figcaption { margin-top: .75rem; color: var(--ink-soft); font-size: .78rem; }

/* Bentley House project page */
.bentley-interior-grid {
  width: min(var(--max), 100%);
  margin: 2.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.bentley-interior-grid figure { margin: 0; }
.bentley-interior-grid .gallery-open { padding: 0; min-height: 0; background: #f4f1ea; }
.bentley-interior-grid img { width: 100%; height: auto; display: block; }
.bentley-interior-grid figcaption { margin-top: .75rem; color: var(--ink-soft); font-size: .78rem; }
.bentley-plan-grid .gallery-open { min-height: 0; padding: clamp(.6rem, 1vw, 1rem); background: #f4f1ea; }
.bentley-plan-grid img { width: 100%; height: auto; max-height: none; object-fit: contain; }
@media (max-width: 820px) {
  .bentley-interior-grid { grid-template-columns: 1fr; }
}

/* Harris House: main project image above compact entry image beside project introduction */
.harris-intro-images {
  display: grid;
  gap: 1.25rem;
  align-self: start;
  justify-items: center;
}
.harris-intro-main {
  width: 100%;
}
.harris-intro-main .gallery-open,
.harris-intro-main img {
  width: 100%;
}
.harris-intro-entry {
  width: min(100%, 420px);
  justify-self: start;
  margin-top: 2.75rem;
}
.harris-intro-entry .gallery-open {
  display: block;
  width: 100%;
}
.harris-intro-entry img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 900px) {
  .harris-intro-entry {
    width: min(100%, 560px);
    justify-self: start;
  }
}

/* House Addition, Whitemans Valley — align brief images toward the top and stack views */
.bentley-detail .project-intro { align-items: start; }
.bentley-intro-images { display: grid; gap: clamp(2rem, 3vw, 3rem); align-self: start; }
.bentley-intro-images .project-panorama { margin: 0; }
.bentley-intro-images .gallery-open { padding: 0; min-height: 0; background: #f4f1ea; }
.bentley-intro-images img { width: 100%; height: auto; display: block; }

/* Masterplanning / Common Ground */
.common-ground-hero .project-hero-image { object-fit: cover; object-position: center; }
.common-ground-hero .project-hero-shade { background: linear-gradient(90deg, rgba(15,20,18,.88) 0%, rgba(15,20,18,.56) 48%, rgba(15,20,18,.16) 80%), linear-gradient(0deg, rgba(15,20,18,.38), transparent 52%); }
.common-ground-opening { background: var(--paper); }
.common-ground-opening-grid { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.common-ground-opening h2, .common-ground-case h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 5vw, 5rem); line-height: 1; font-weight: 500; letter-spacing: -.04em; }
.common-ground-opening .project-lead { margin-top: 1.8rem; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.3rem, 2.2vw, 1.85rem); line-height: 1.48; }
.common-ground-opening p:not(.eyebrow) { color: var(--ink-soft); }
.common-ground-key { padding: clamp(1.5rem, 3vw, 2.4rem); display: grid; grid-template-columns: 42px 1fr; gap: 1rem 1.2rem; background: var(--sand); border-top: 4px solid var(--accent); }
.common-ground-key span { color: var(--accent-dark); font-size: .78rem; font-weight: 800; letter-spacing: .12em; }
.common-ground-key strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; font-weight: 500; line-height: 1.2; }
.common-ground-principles { padding-top: clamp(5rem, 8vw, 8rem); }
.principle-row { width: min(var(--max), 100%); margin: 0 auto; padding: clamp(3.4rem, 7vw, 6.5rem) 0; display: grid; grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; border-top: 1px solid var(--line); }
.principle-row-reverse .principle-copy { order: 2; }
.principle-row-reverse .principle-figure { order: 1; }
.principle-copy { position: relative; }
.principle-number { display: inline-block; margin-bottom: 1.2rem; color: var(--accent-dark); font-size: .82rem; font-weight: 850; letter-spacing: .16em; }
.principle-copy h3 { margin: .2rem 0 1.2rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.4vw, 3.5rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.03; }
.principle-copy p:not(.eyebrow) { color: var(--ink-soft); }
.principle-figure { margin: 0; }
.principle-figure img { width: 100%; border: 1px solid rgba(31,37,35,.09); background: var(--sand); }
.principle-figure figcaption { margin-top: .9rem; color: var(--ink-soft); font-size: .8rem; }
.common-ground-case { background: var(--paper); }
.common-ground-case-grid { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.common-ground-case-grid > div:last-child > p { margin-top: 0; color: var(--ink-soft); font-size: 1.05rem; }
.common-ground-case .common-ground-conclusion { margin-top: 2rem; padding: 1.6rem 1.8rem; border-left: 4px solid var(--accent); background: var(--sand); color: var(--ink); }
@media (max-width: 900px) {
  .common-ground-opening-grid, .principle-row, .common-ground-case-grid { grid-template-columns: 1fr; }
  .principle-row-reverse .principle-copy, .principle-row-reverse .principle-figure { order: initial; }
  .principle-figure { order: -1; }
}

/* Entry Addition (Exterior), Chatsworth Road — stacked exterior/interior views */
.entry-addition-intro-images { display: grid; gap: 2rem; align-items: start; }
.entry-addition-interior { width: 50%; justify-self: start; }
.entry-addition-interior img { display: block; width: 100%; height: auto; }
@media (max-width: 900px) {
  .entry-addition-intro-images { order: -1; }
}
@media (max-width: 620px) {
  .entry-addition-interior { width: 100%; }
}


.text-card {
  background: #f4efe8;
  border-radius: 18px;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 12px 24px rgba(31, 37, 35, 0.08);
}

.text-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.text-card p {
  margin: 0;
}


/* Compact Walkable Neighbourhoods - Paeroa */
.paeroa-detail .wide-drawing img { aspect-ratio: auto; width: 100%; height: auto; max-height: none; object-fit: contain; }
.paeroa-detail .paeroa-figure { margin-top: 2.75rem; }
.paeroa-detail .paeroa-figure .gallery-open { min-height: 0; padding: clamp(.65rem, 1.25vw, 1.2rem); }
.paeroa-detail .paeroa-copy-narrow { width: min(980px, 100%); margin: 0 auto; color: var(--ink-soft); font-size: 1.03rem; }
.paeroa-detail .paeroa-copy-narrow p:first-child { margin-top: 0; }
.paeroa-opening-grid { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.paeroa-opening-grid h2 { margin: 0 0 1.4rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.45rem, 5vw, 4.8rem); line-height: 1; font-weight: 500; letter-spacing: -.04em; }
.paeroa-key-note { width: 100%; margin: 0; }
@media (max-width: 860px) { .paeroa-opening-grid { grid-template-columns: 1fr; } .paeroa-key-note { margin-top: .5rem; } }


.paeroa-credit {
  margin-top: .8rem;
  color: var(--ink-soft);
  font-size: .9rem;
  font-style: italic;
}


/* Privacy and Connection - Evergreen Crescent project page */
.evergreen-detail .project-hero-image { object-position: center 55%; }
.evergreen-detail .wide-drawing img { aspect-ratio: auto; width: 100%; height: auto; max-height: none; object-fit: contain; }
.evergreen-detail .evergreen-figure { margin-top: 2.5rem; }
.evergreen-detail .evergreen-figure .gallery-open { min-height: 0; padding: clamp(.65rem, 1.25vw, 1.2rem); }
.evergreen-copy-narrow { width: min(980px, 100%); margin: 0 auto; color: var(--ink-soft); font-size: 1.03rem; }
.evergreen-copy-narrow p:first-child { margin-top: 0; }
.evergreen-opening-grid { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.evergreen-opening-grid h2 { margin: 0 0 1.4rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.45rem, 5vw, 4.8rem); line-height: 1; font-weight: 500; letter-spacing: -.04em; }
.evergreen-metrics { display: grid; gap: 1rem; }
.evergreen-metrics article { padding: clamp(1.25rem, 2vw, 1.8rem); background: var(--paper); border-top: 3px solid var(--accent); box-shadow: 0 12px 30px rgba(31,37,35,.06); }
.evergreen-metrics span { display: block; margin-bottom: .7rem; color: var(--accent-dark); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.evergreen-metrics h3 { margin: 0 0 .55rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.22rem, 1.8vw, 1.55rem); font-weight: 500; line-height: 1.15; }
.evergreen-metrics p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.evergreen-benefits-figure { width: min(1120px, 100%); }
.evergreen-lifestyle-grid { width: min(var(--max), 100%); margin: 2rem auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.evergreen-lifestyle-grid figure { margin: 0; }
.evergreen-lifestyle-grid .gallery-open { height: auto; min-height: 0; padding: 1rem; background: #ece8df; display: grid; place-items: center; }
.evergreen-lifestyle-grid img { width: 100%; height: auto; max-height: 900px; object-fit: contain; display: block; }
.evergreen-grid-wide { grid-column: 1 / -1; margin-top: 2.25rem !important; }
@media (max-width: 900px) {
  .evergreen-opening-grid { grid-template-columns: 1fr; }
  .evergreen-lifestyle-grid { grid-template-columns: 1fr; }
  .evergreen-detail .project-hero-image { object-position: center; }
}


/* Walkable Urbanism - Transit-Oriented Development */
.tod-detail .project-hero-image { object-position: center; }
.tod-key { grid-template-columns: 42px 1fr; }
.tod-copy-grid { width: min(var(--max), 100%); margin: 2rem auto 0; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.tod-copy-grid > div > p:first-child { margin-top: 0; }
.tod-copy-grid p { color: var(--ink-soft); font-size: 1.05rem; }
.tod-far-callout { padding: clamp(1.5rem, 3vw, 2.4rem); background: var(--sand); border-top: 4px solid var(--accent); }
.tod-far-callout span { display: block; color: var(--accent-dark); font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.tod-far-callout strong { display: block; margin: .35rem 0 .75rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem, 6vw, 5.6rem); line-height: .95; font-weight: 500; }
.tod-far-callout p { margin: 0; }
.tod-copy-grid-balanced { grid-template-columns: repeat(2, minmax(0,1fr)); }
.tod-copy-grid-balanced h3 { margin: 0 0 .7rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.6rem, 2.4vw, 2.2rem); font-weight: 500; }
.tod-liveability-intro { width: min(980px, 100%); margin: 1.5rem auto 3rem; color: var(--ink-soft); font-size: 1.08rem; }
.tod-liveability-intro a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 820px) { .tod-copy-grid, .tod-copy-grid-balanced { grid-template-columns: 1fr; } }


.tod-detail .wide-drawing img { aspect-ratio: auto; width: 100%; height: auto; max-height: none; object-fit: contain; }


/* Property Planning practice page */
.property-planning-page-hero { min-height: min(860px, 92svh); background: #dad4c8; }
.property-planning-detail .project-hero-image { object-fit: cover; object-position: center top; }
.property-planning-detail .project-hero-shade { background: linear-gradient(90deg, rgba(15,20,18,.88) 0%, rgba(15,20,18,.58) 38%, rgba(15,20,18,.16) 72%), linear-gradient(0deg, rgba(15,20,18,.28), transparent 56%); }
.property-planning-detail .project-hero-content { width: min(760px, calc(100% - 2.5rem)); }
.property-planning-detail .project-hero-content .property-planning-question { max-width: 680px; color: var(--sand); }
.property-planning-detail .project-hero-content > p:last-child { max-width: 760px; }
.property-planning-hero { margin-top: 82px; min-height: 650px; display: grid; grid-template-columns: minmax(360px, .68fr) minmax(620px, 1.32fr); background: var(--ink); }
.property-planning-hero-copy { padding: clamp(3rem, 5vw, 5rem) clamp(1.75rem, 4vw, 4rem); align-self: center; color: var(--white); }
.property-planning-hero-copy .project-back { margin-bottom: 1.4rem; }
.property-planning-hero-copy h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.3rem, 5.6vw, 6.2rem); font-weight: 500; line-height: .92; letter-spacing: -.05em; }
.property-planning-question { margin: 1.6rem 0 1rem; color: var(--sand); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1.08; }
.property-planning-hero-copy > p:last-child { max-width: 560px; margin-bottom: 0; color: rgba(255,255,255,.82); font-size: clamp(.95rem, 1.15vw, 1.08rem); line-height: 1.55; }
.property-planning-hero-figure { margin: 0; min-height: 650px; display: grid; place-items: center; padding: clamp(1rem, 2vw, 2rem); background: #f5f2eb; }
.property-planning-hero-figure img { width: 100%; height: 100%; max-height: 780px; object-fit: contain; }
.property-planning-pre-design-figure { width: min(1480px, 100%); margin: 0 auto; }
.property-planning-pre-design-figure .gallery-open { padding: clamp(.55rem, 1vw, 1rem); background: #f4f1ea; }
.property-planning-pre-design-figure img { aspect-ratio: auto; width: 100%; height: auto; max-height: none; object-fit: contain; }
.property-planning-opening-grid, .property-planning-two-col { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.property-planning-opening h2, .property-planning-design-section h2, .property-planning-rules-section h2 { margin: 0 0 1.5rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.6rem, 5vw, 5rem); line-height: 1; font-weight: 500; letter-spacing: -.04em; }
.property-planning-opening p:not(.eyebrow), .property-planning-design-section p:not(.eyebrow), .property-planning-rules-section p:not(.eyebrow) { color: var(--ink-soft); }
.property-planning-opening .project-lead { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2vw, 1.72rem); line-height: 1.48; }
.property-planning-callout { padding: clamp(1.7rem, 3vw, 2.7rem); border-top: 4px solid var(--accent); background: var(--sand); }
.property-planning-callout blockquote { margin: 1rem 0 1.5rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 2.5vw, 2.35rem); line-height: 1.2; }
.property-planning-process { width: min(var(--max), 100%); margin: 2.5rem auto 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.property-planning-process article { padding: clamp(1.25rem, 2.2vw, 2rem); background: var(--paper); border-top: 3px solid var(--accent); }
.property-planning-process article > span { display: block; margin-bottom: 1rem; color: var(--accent-dark); font-weight: 800; letter-spacing: .12em; }
.property-planning-process h3 { margin: 0 0 .7rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 500; }
.property-planning-process p { margin: 0; color: var(--ink-soft); font-size: .94rem; line-height: 1.55; }
.property-planning-question-grid { width: min(var(--max), 100%); margin: 2.3rem auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.property-planning-question-grid p { margin: 0; padding: 1.2rem 1.4rem; background: var(--sand); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.05rem, 1.5vw, 1.25rem); }
.property-planning-design-list, .property-planning-specialists { padding: clamp(1.5rem, 3vw, 2.4rem); background: var(--paper); border: 1px solid rgba(31,37,35,.1); }
.property-planning-design-list h3 { margin: 0 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 500; }
.property-planning-design-list ul { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); columns: 2; column-gap: 2rem; }
.property-planning-design-list li { margin: 0 0 .55rem; break-inside: avoid; }
.property-planning-sustainability-grid { width: min(var(--max), 100%); margin: 2.4rem auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.property-planning-sustainability-grid article { padding: clamp(1.4rem, 2.3vw, 2.1rem); background: #edf0e7; border-left: 4px solid #78915b; }
.property-planning-sustainability-grid h3 { margin: 0 0 .65rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 500; }
.property-planning-sustainability-grid p { margin: 0; color: var(--ink-soft); }
.property-planning-levels { width: min(var(--max), 100%); margin: 2.4rem auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.property-planning-levels article { padding: clamp(1.8rem, 3vw, 3rem); background: var(--paper); border-top: 4px solid var(--accent); }
.property-planning-levels h3 { margin: .2rem 0 1rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.9rem, 3vw, 2.7rem); font-weight: 500; }
.property-planning-levels p, .property-planning-levels li { color: var(--ink-soft); }
.property-planning-specialists > p:nth-child(2) { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; line-height: 1.5; color: var(--ink); }
.property-planning-pathway { width: min(var(--max), 100%); margin: 2.5rem auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .75rem; }
.property-planning-pathway span { padding: .85rem 1rem; border: 1px solid rgba(31,37,35,.18); background: var(--paper); font-weight: 700; }
.property-planning-pathway b { color: var(--accent-dark); font-size: 1.25rem; }
@media (max-width: 1100px) {
  .property-planning-hero { grid-template-columns: 1fr; }
  .property-planning-hero-figure { min-height: 500px; }
  .property-planning-process { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .property-planning-sustainability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .property-planning-hero-copy { padding: 4rem 1.25rem; }
  .property-planning-hero-figure { min-height: 360px; padding: 1rem; }
  .property-planning-opening-grid, .property-planning-two-col, .property-planning-levels { grid-template-columns: 1fr; }
  .property-planning-process, .property-planning-question-grid, .property-planning-sustainability-grid { grid-template-columns: 1fr; }
  .property-planning-design-list ul { columns: 1; }
}

/* Portfolio filter bar: keep all category buttons visible on one line */
@media (min-width: 821px) {
  .projects-heading { justify-content: flex-start; }
  .projects-heading > div:first-child { flex: 0 0 300px; }
  .projects-heading .filters {
    flex: 1 0 auto;
    max-width: none;
    margin-left: auto;
    justify-content: flex-end;
    overflow: visible;
  }
  .projects-heading .filter-button { padding-left: .72rem; padding-right: .72rem; }
}

/* Infill House, Pinehaven — keep closing note clear of image captions */
.infill-house-closing-note { margin-top: 6rem; clear: both; }
@media (max-width: 900px) { .infill-house-closing-note { margin-top: 4.5rem; } }

/* Keep final Property Planning call-to-action heading on one line */
.property-planning-final-heading {
  white-space: nowrap;
  font-size: clamp(2rem, 4.2vw, 4.4rem);
}
@media (max-width: 760px) {
  .property-planning-final-heading {
    font-size: clamp(1.45rem, 6.6vw, 2.2rem);
  }
}




/* Masterplanning card: keep title and description fully visible */
.type-card-masterplanning span {
  padding-left: 1.15rem;
  padding-right: 1.15rem;
}
.type-card-masterplanning strong {
  display: block;
  max-width: 100%;
  font-size: clamp(1.2rem, 1.55vw, 1.7rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: normal;
  overflow-wrap: anywhere;
}
.type-card-masterplanning small {
  display: block;
  max-width: 100%;
  font-size: clamp(.82rem, 1vw, .98rem);
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: normal;
}
