/* PC Whitehall & Sons — 2026 redesign */
:root {
  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --ink: #17140F;
  --ink-soft: #3D382E;
  --muted: #736C5E;
  --line: #E2DED5;
  --accent: #0170B9;
  --accent-deep: #015A96;
  --dark: #14110C;
  --dark-soft: #221E17;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter Tight", -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 4vw, 4rem);
  --maxw: 1320px;
  --ease: cubic-bezier(.22,.61,.2,1);
}

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

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: .75rem 1.25rem; z-index: 200;
}
.skip:focus { left: 0; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
.kicker {
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.kicker.light { color: #8EC4E8; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 46ch; margin-top: 1.25rem; }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand-logo { height: 160px; width: auto; transition: height .35s var(--ease); }
.site-head.scrolled .brand-logo { height: 80px; }
.brand-logo.dark { display: none; }
.site-head.scrolled {
  background: rgba(246,245,241,.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.site-head.scrolled .brand-logo.light { display: none; }
.site-head.scrolled .brand-logo.dark { display: block; }
.site-head.scrolled .site-nav a { color: var(--ink); }
.site-head.scrolled .nav-toggle span { background: var(--ink); }

.site-nav { display: flex; gap: 2rem; align-items: center; }
.site-nav a {
  color: #fff;
  font-size: .92rem; font-weight: 500; letter-spacing: .02em;
  padding: .6rem 0;
  position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: .3rem;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .3s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav .nav-cta {
  border: 1px solid currentColor;
  padding: .55rem 1.15rem; border-radius: 999px;
}
.site-nav .nav-cta::after { display: none; }
.site-nav .nav-cta:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; transition: transform .3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 90;
  background: var(--dark);
  display: flex; flex-direction: column; justify-content: center; gap: 3rem;
  padding: var(--pad);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav nav { display: flex; flex-direction: column; gap: .4rem; }
.mobile-nav nav a {
  color: #fff; font-family: var(--font-display); font-size: clamp(2rem, 8vw, 3rem);
  padding: .35rem 0;
}
.mobile-nav nav a:hover { color: var(--accent); }
.mn-foot { color: #9A927F; font-size: .95rem; }
.mn-foot a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--dark); }
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s var(--ease), transform 8s linear;
  transform: scale(1.06);
}
.hero-media img.active { opacity: 1; transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,12,.25) 0%, rgba(20,17,12,.05) 40%, rgba(20,17,12,.72) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 var(--pad) clamp(3.5rem, 9vh, 6.5rem);
  max-width: var(--maxw); width: 100%; margin: 0 auto;
  color: #fff;
}
.hero-content h1 {
  font-size: clamp(3rem, 9.5vw, 7.5rem);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -0.02em;
}
.hero-sub {
  margin: 1.4rem 0 2.2rem;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,.85);
  max-width: 46ch;
}
.hero-dots { position: absolute; right: var(--pad); bottom: clamp(3.5rem, 9vh, 6.5rem); z-index: 2; display: flex; gap: .5rem; }
.hero-dots button {
  width: 28px; height: 3px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.35); transition: background .3s;
}
.hero-dots button.active { background: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .8rem 1.9rem;
  background: var(--ink); color: #fff;
  font-weight: 500; font-size: .95rem; letter-spacing: .02em;
  border-radius: 999px; border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(4rem, 10vw, 8rem) var(--pad); }
.section.flush-top { padding-top: clamp(2.5rem, 5vw, 4rem); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.section-more { margin-top: 3rem; text-align: center; }

.statement {
  max-width: 1000px; margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) var(--pad);
  text-align: center;
}
.statement h2 { font-size: clamp(2rem, 5vw, 3.9rem); line-height: 1.15; margin-bottom: 2rem; }
.statement-body { color: var(--muted); font-size: 1.15rem; max-width: 62ch; margin: 0 auto 2.5rem; }

/* subhero (interior pages) */
.subhero {
  background: var(--dark); color: #fff;
  padding: clamp(9rem, 18vh, 13rem) var(--pad) clamp(3.5rem, 8vw, 6rem);
}
.subhero > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.subhero h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); font-weight: 300; }
.subhero .lede { color: #B7AE9C; }

/* ---------- project cards ---------- */
.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.75rem);
}
.card { display: block; }
.card-img {
  overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; background: var(--line);
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.card:hover .card-img img { transform: scale(1.05); }
.card-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-top: 1rem; }
.card-meta h3 { font-size: 1.45rem; }
.card-meta p { color: var(--muted); font-size: .92rem; white-space: nowrap; }
.card.is-hidden { display: none; }

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.75rem; }
.chip {
  min-height: 44px; padding: .55rem 1.3rem;
  border-radius: 999px; border: 1px solid var(--line);
  background: transparent; color: var(--ink-soft);
  font-family: var(--font-body); font-size: .92rem; font-weight: 500;
  cursor: pointer; transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* status badge */
.card-img { position: relative; }
.badge {
  position: absolute; top: .9rem; left: .9rem;
  background: rgba(20,17,12,.82); color: #fff;
  backdrop-filter: blur(6px);
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: .45rem .85rem; border-radius: 999px;
}

/* ---------- band ---------- */
.band { background: var(--dark); color: #fff; }
.band-inner { max-width: 900px; margin: 0 auto; padding: clamp(4.5rem, 10vw, 8rem) var(--pad); text-align: center; }
.band-inner h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 1.25rem; }
.band-inner p:not(.kicker) { color: #B7AE9C; max-width: 52ch; margin: 0 auto 2.25rem; }

/* ---------- hero extras ---------- */
.hero-eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: #9CC8E8; margin-bottom: 1.6rem;
}

/* ---------- stats strip ---------- */
.stats {
  background: var(--dark); color: #fff;
  padding: clamp(3rem, 7vw, 5rem) var(--pad) clamp(2.5rem, 5vw, 4rem);
}
.stats-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2.5rem 1.5rem; text-align: center;
}
.stat-num {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem); line-height: 1;
  color: #fff;
}
.stat-label {
  margin-top: .7rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: #8EC4E8;
}
.suburb-line {
  max-width: var(--maxw); margin: 3rem auto 0;
  padding-top: 2rem; border-top: 1px solid var(--dark-soft);
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  color: #6E6758; text-align: center; line-height: 2.1;
}

/* ---------- capabilities ---------- */
.caps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.cap { border-top: 1px solid var(--ink); padding-top: 1.5rem; }
.cap-num {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.1rem; color: var(--accent); margin-bottom: 1.2rem;
}
.cap h3 { font-size: 1.65rem; margin-bottom: .9rem; }
.cap p:not(.cap-num) { color: var(--muted); font-size: .98rem; }

/* ---------- image band ---------- */
.imageband { position: relative; min-height: 62svh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--dark); }
.imageband-media { position: absolute; inset: 0; }
.imageband-media img { width: 100%; height: 100%; object-fit: cover; }
.imageband-overlay { position: absolute; inset: 0; background: rgba(20,17,12,.55); }
.imageband-content { position: relative; z-index: 2; padding: clamp(4rem, 9vw, 7rem) var(--pad); text-align: center; }
.imageband-content p {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.8rem, 4.5vw, 3.4rem); line-height: 1.25; color: #fff;
}

.contact-strip { text-align: center; }
.contact-strip h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 1rem; }
.contact-strip p:not(.kicker) { color: var(--muted); margin-bottom: 2rem; }

/* ---------- prose pages ---------- */
.prose { max-width: 780px; }
.prose p { margin-bottom: 1.6rem; color: var(--ink-soft); }
.prose p.drop {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.35; color: var(--ink);
  margin-bottom: 2.4rem;
}
.prose .pull {
  margin: 3rem 0; padding: 2.2rem 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.prose .pull p {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem); line-height: 1.4; color: var(--accent-deep);
  margin: 0;
}
.prose em { font-style: italic; }

/* approach blocks */
.approach-blocks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 2rem; margin: 3rem 0;
  padding: 2.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.ablock h3 { font-size: 1.3rem; margin-bottom: .7rem; color: var(--ink); }
.ablock p { font-size: .95rem; color: var(--muted); margin: 0; }

/* project intro line */
.proj-intro {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.35;
  margin-bottom: 3rem; color: var(--ink);
}

/* ---------- directors ---------- */
.directors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(2.5rem, 5vw, 5rem); }
.director header { padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); margin-bottom: 1.75rem; }
.director h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
.director .role { color: var(--accent); font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-top: .5rem; }
.director .intro { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.45; color: var(--ink); margin-top: 1.1rem; }
.director .quals { color: var(--muted); font-size: .95rem; margin-top: .9rem; }
.director-body p { margin-bottom: 1.3rem; color: var(--ink-soft); }
.director-body h3 { font-size: 1.25rem; margin: 1.9rem 0 .8rem; }
.director-body ul { list-style: none; }
.director-body li {
  padding: .55rem 0 .55rem 1.4rem; position: relative; color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.director-body li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 7px; height: 7px; background: var(--accent); border-radius: 50%;
}

/* ---------- contact ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 2.5rem; }
.contact-card h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .6rem; }
.contact-card h2 a:hover { color: var(--accent); }
.contact-card p:not(.kicker) { color: var(--muted); }
.map-wrap { border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- project detail ---------- */
.phero { position: relative; min-height: 72svh; display: flex; align-items: flex-end; background: var(--dark); overflow: hidden; }
.phero-media { position: absolute; inset: 0; }
.phero-media img { width: 100%; height: 100%; object-fit: cover; }
.phero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,17,12,.3) 0%, rgba(20,17,12,.05) 45%, rgba(20,17,12,.7) 100%); }
.phero-content { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad) clamp(3rem, 7vh, 5rem); color: #fff; }
.phero-content h1 { font-size: clamp(2.8rem, 8vw, 6.5rem); font-weight: 300; }

.meta-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem 1.5rem;
}
.meta-item dt { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: .45rem; }
.meta-item dd { font-family: var(--font-display); font-size: 1.5rem; }

.gallery { columns: 2; column-gap: 1.25rem; }
@media (min-width: 900px) { .gallery { columns: 3; } }
.gal-item {
  display: block; width: 100%; border: 0; padding: 0; cursor: zoom-in;
  background: var(--line); border-radius: 4px; overflow: hidden;
  margin-bottom: 1.25rem; break-inside: avoid;
}
.gal-item img { width: 100%; transition: transform .7s var(--ease); }
.gal-item:hover img { transform: scale(1.04); }

.next-proj { background: var(--dark); }
.next-proj a {
  display: block; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(4rem, 9vw, 7rem) var(--pad);
  color: #fff; text-align: center;
}
.next-proj h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); font-weight: 300; transition: color .3s var(--ease); }
.next-proj a:hover h2 { color: var(--accent); }

.lightbox {
  position: fixed; inset: 0; margin: auto;
  border: 0; padding: 0; background: transparent;
  max-width: 92vw; max-height: 92vh;
}
.lightbox::backdrop { background: rgba(15,12,8,.92); }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 4px; }
.lb-close {
  position: fixed; top: 1.25rem; right: 1.5rem;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4); background: transparent;
  color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1;
  z-index: 2;
}
.lb-close:hover { background: #fff; color: var(--ink); }
.lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.4); background: rgba(20,17,12,.5);
  color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  z-index: 2; transition: background .25s;
}
.lb-nav:hover { background: #fff; color: var(--ink); }
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }
.lb-count {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.75); font-size: .85rem; letter-spacing: .12em;
  z-index: 2;
}

/* ---------- footer ---------- */
.site-foot { background: var(--dark); color: #B7AE9C; }
.foot-grid {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad) 2.5rem;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem;
}
.foot-logo { height: 100px; width: auto; margin-bottom: 1.25rem; }
.foot-brand p { font-size: .95rem; }
.foot-nav { display: flex; flex-direction: column; gap: .55rem; }
.foot-nav a { padding: .2rem 0; font-size: .95rem; transition: color .25s; }
.foot-nav a:hover { color: #fff; }
.foot-contact p { font-size: .95rem; margin-bottom: 1rem; }
.foot-contact a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-contact a:hover { color: var(--accent); }
.copyright {
  max-width: var(--maxw); margin: 0 auto;
  padding: 1.5rem var(--pad) 2rem;
  border-top: 1px solid var(--dark-soft);
  font-size: .82rem; color: #6E6758;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .brand-logo { height: 84px; }
  .site-head.scrolled .brand-logo { height: 56px; }
  .foot-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-dots { display: none; }
  .card-meta { flex-direction: column; gap: .15rem; }
}
