/* =============================================================
   PENINSULA AQUATIC — STYLES
   Palette: warm paper · deep marine · deep teal accent
   Typography: Inter
   ============================================================= */

/* -------- Fonts -------- */
@font-face { font-family: 'Inter'; font-weight: 300; font-style: normal; font-display: swap;
  src: url(/assets/fonts/Inter-300.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400; font-style: normal; font-display: swap;
  src: url(/assets/fonts/Inter-400.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-style: normal; font-display: swap;
  src: url(/assets/fonts/Inter-500.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-style: normal; font-display: swap;
  src: url(/assets/fonts/Inter-600.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-style: normal; font-display: swap;
  src: url(/assets/fonts/Inter-700.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 800; font-style: normal; font-display: swap;
  src: url(/assets/fonts/Inter-800.woff2) format('woff2'); }

/* -------- Reset & tokens -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper:   #F5F2EB;
  --paper-2: #EDE8DC;
  --ink:     #0E1F2C;
  --deep:    #08151E;
  --steel:   #5B6B75;
  --steel-l: #8A959E;
  --aqua:    #14595A;
  --aqua-l:  #B8CFCE;
  --rule:    #D8D2C6;

  --gutter: clamp(20px, 5vw, 80px);
  --max-w:  1280px;
  --nav-h:  72px;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
em { font-style: italic; color: var(--ink); }
strong { font-weight: 600; color: var(--deep); }
sup { font-size: 0.6em; vertical-align: super; }

.aq { color: var(--aqua); }

/* -------- Layout primitives -------- */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  padding: clamp(80px, 12vw, 160px) 0;
  position: relative;
}
.section + .section { border-top: 1px solid var(--rule); }

.section-num {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--aqua);
  font-weight: 600;
  margin-bottom: 18px;
}

/* -------- Typography scale -------- */
.h1 {
  font-weight: 700;
  font-size: clamp(40px, 6vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--deep);
  margin-bottom: 24px;
}
.h2 {
  font-weight: 700;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--deep);
  margin-bottom: 20px;
}
p {
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 62ch;
}
p.lede {
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.4;
  color: var(--deep);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
p.lede-wide {
  font-size: clamp(18px, 1.4vw, 22px);
  line-height: 1.45;
  color: var(--deep);
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 32px;
  max-width: 65ch;
}
.tag-line {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--aqua);
  font-weight: 600;
}
.sm-note {
  font-size: 15px;
  line-height: 1.55;
  color: var(--steel);
  font-style: italic;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

/* ============================================================
   TOP NAVIGATION
   ============================================================ */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 242, 235, 0.85);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.topnav.scrolled {
  background: rgba(245, 242, 235, 0.95);
  border-bottom-color: var(--rule);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--deep);
  line-height: 1;
  font-size: 18px;
}
.nb-light { font-weight: 300; letter-spacing: 0.01em; }
.nb-bold  { font-weight: 800; letter-spacing: -0.015em; }

.nav-links {
  display: flex;
  gap: clamp(20px, 3vw, 42px);
  align-items: center;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 0;
  width: 100%;
  height: 1px;
  background: var(--aqua);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links a:hover { color: var(--aqua); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.nav-cta {
  color: var(--paper);
  background: var(--deep);
  padding: 9px 18px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11.5px;
  font-weight: 600;
  transition: background 0.2s ease;
}
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: var(--aqua); color: var(--paper); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 12px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--deep);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ============================================================
   WORDMARK
   ============================================================ */
.wordmark { display: block; }
.wm-line { display: block; color: var(--deep); line-height: 0.92; letter-spacing: -0.005em; }
.wm-line.light { font-weight: 300; font-size: clamp(64px, 12vw, 176px); letter-spacing: 0.005em; }
.wm-line.bold  { font-weight: 800; font-size: clamp(64px, 12vw, 176px); letter-spacing: -0.025em; }
.wm-rule {
  width: clamp(70px, 8vw, 120px);
  height: 3px;
  background: var(--aqua);
  margin: clamp(24px, 3vw, 40px) 0 clamp(18px, 2vw, 28px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 80px));
  padding-bottom: clamp(60px, 8vw, 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - var(--nav-h) - clamp(100px, 14vw, 180px));
}
.hero-eyebrow {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 16px;
  margin-bottom: clamp(40px, 8vw, 100px);
}
.hero-cat {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 500;
  color: var(--ink);
  max-width: 60ch;
  margin-bottom: 0;
}
.hero-facts {
  margin-top: clamp(48px, 8vw, 90px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.hf { display: flex; flex-direction: column; }
.hf-n {
  font-weight: 700;
  font-size: clamp(20px, 2vw, 30px);
  color: var(--deep);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.hf-l {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 500;
  line-height: 1.4;
}
.scroll-cue {
  position: absolute;
  bottom: 32px;
  right: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 600;
  transition: color 0.2s ease;
}
.scroll-cue:hover { color: var(--aqua); }
.scroll-cue svg { animation: nudge 2s ease-in-out infinite; }
@keyframes nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ============================================================
   THE FIRM
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.col-a .h1 { font-size: clamp(36px, 5vw, 72px); }

/* ============================================================
   SELECTED WORK
   ============================================================ */
.section-head { max-width: 780px; margin-bottom: clamp(48px, 6vw, 80px); }

.project-hero {
  position: relative;
  width: 100%;
  height: clamp(420px, 60vh, 720px);
  overflow: hidden;
  margin: 0 0 clamp(40px, 5vw, 60px);
}
.project-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ph-overlay {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(28px, 5vw, 56px);
  color: var(--paper);
  max-width: calc(var(--max-w) - 2 * var(--gutter));
}
.ph-tag {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--paper);
  font-weight: 600;
  margin-bottom: 14px;
  opacity: 0.92;
}
.ph-h {
  font-weight: 700;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.ph-meta { margin-bottom: clamp(72px, 10vw, 120px); }
.phm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px clamp(24px, 4vw, 60px);
  padding: 28px 0 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 28px;
}
.phm-cell { display: flex; flex-direction: column; }
.phm-k {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--aqua);
  font-weight: 600;
  margin-bottom: 6px;
}
.phm-v {
  font-size: 16px;
  color: var(--deep);
  font-weight: 500;
  line-height: 1.4;
}
.phm-note {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  max-width: 78ch;
}

.proj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px) clamp(40px, 5vw, 60px);
}
.proj-card { display: flex; flex-direction: column; }
.proj-imgwrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--paper-2);
}
.proj-imgwrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.proj-card:hover .proj-imgwrap img { transform: scale(1.03); }
.proj-tag {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--aqua);
  font-weight: 600;
  margin-bottom: 10px;
}
.proj-h {
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--deep);
  margin-bottom: 16px;
}
.proj-facts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.proj-facts > div {
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.4;
}
.pf-k {
  display: inline-block;
  color: var(--aqua);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 10.5px;
  margin-right: 10px;
  min-width: 52px;
}
.proj-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  max-width: none;
}

/* ============================================================
   CAPABILITIES
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 60px);
  margin: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 140px);
}
.pillar { display: flex; flex-direction: column; }
.pil-num {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--aqua);
  margin-bottom: 14px;
  border-bottom: 1px solid var(--aqua);
  padding-bottom: 6px;
  width: fit-content;
  padding-right: 18px;
}
.pil-h {
  font-weight: 700;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.02;
  color: var(--deep);
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.pillar ul li,
.cap-group ul li,
.ld-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 400;
}
.pillar ul li::before,
.cap-group ul li::before,
.ld-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 8px; height: 1px;
  background: var(--aqua);
}

.cap-detail-head { max-width: 780px; margin-bottom: clamp(32px, 4vw, 56px); }
.cap-detail-head .section-num { margin-bottom: 12px; }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(40px, 5vw, 80px) clamp(40px, 5vw, 80px);
}
.cap-group { display: flex; flex-direction: column; }
.cap-h {
  font-weight: 700;
  font-size: 19px;
  color: var(--deep);
  letter-spacing: -0.005em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--aqua);
}

/* ============================================================
   APPROACH & LEADERSHIP
   ============================================================ */
.two-col-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: start;
}
.two-col-split .section-num { margin-bottom: 14px; }
.two-col-split .h2 { margin-bottom: 24px; }

.stages {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 24px 0;
  border-top: 1px solid var(--rule);
}
.stg {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.stg-n {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--aqua);
  flex-shrink: 0;
  min-width: 26px;
}
.stg-t {
  font-size: 16px;
  color: var(--deep);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.ld-role {
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--deep);
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.ld-tenure {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aqua);
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.ld-list { margin: 16px 0 20px; }

/* ============================================================
   SECTORS
   ============================================================ */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 clamp(40px, 5vw, 80px);
  margin-bottom: clamp(60px, 8vw, 100px);
  border-top: 1px solid var(--rule);
}
.sec-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--rule);
}
.sec-t {
  font-weight: 600;
  font-size: 19px;
  color: var(--deep);
  letter-spacing: -0.005em;
  margin-bottom: 6px;
}
.sec-d {
  font-size: 15px;
  line-height: 1.55;
  color: var(--steel);
  font-weight: 400;
}
.cap-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
  padding: 28px 0;
  border-top: 1px solid var(--aqua);
  border-bottom: 1px solid var(--aqua);
}
.cs-cell { display: flex; flex-direction: column; }
.cs-n {
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--deep);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.cs-l {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 600;
  line-height: 1.4;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
  margin: 0 0 clamp(48px, 6vw, 72px);
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cg-block { display: flex; flex-direction: column; }
.cg-k {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--aqua);
  font-weight: 600;
  margin-bottom: 14px;
}
.cg-v {
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--deep);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.cg-link { transition: color 0.2s ease; }
.cg-link:hover { color: var(--aqua); }
.cg-s {
  font-size: 14px;
  color: var(--steel);
  font-weight: 500;
  line-height: 1.5;
}

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 32px;
  background: var(--deep);
  color: var(--paper);
  border-radius: 3px;
  flex-wrap: wrap;
}
.cta-l {
  font-size: clamp(18px, 1.6vw, 24px);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--paper);
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--aqua);
  color: var(--paper);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cta-btn:hover { background: var(--paper); color: var(--deep); transform: translateX(2px); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: clamp(80px, 10vw, 140px) 0 clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--rule);
  text-align: center;
}
.foot-mark { margin-bottom: 32px; }
.foot-mark .wm-line { line-height: 0.95; }
.foot-mark .wm-line.light,
.foot-mark .wm-line.bold {
  font-size: clamp(40px, 5vw, 68px);
}
.foot-rule {
  width: clamp(50px, 6vw, 80px);
  height: 2px;
  background: var(--aqua);
  margin: 0 auto 24px;
}
.foot-cat {
  font-size: clamp(14px, 1.2vw, 18px);
  color: var(--ink);
  font-weight: 500;
  margin-bottom: clamp(56px, 8vw, 96px);
}
.foot-meta {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 40px);
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 500;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 900px) {
  .two-col,
  .two-col-split,
  .pillars,
  .cap-grid,
  .proj-grid,
  .sec-grid,
  .phm-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: clamp(28px, 4vw, 48px);
  }
  .hero-facts,
  .cap-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 24px;
  }
  .col-a .h1 { font-size: clamp(36px, 7vw, 56px); }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 720px) {
  :root { --nav-h: 60px; }
  body { font-size: 16px; }

  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--paper);
    border-top: 1px solid var(--rule);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 24px var(--gutter) 32px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 12px 24px rgba(14, 31, 44, 0.06);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a {
    width: 100%;
    padding: 16px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--rule);
  }
  .nav-links a::after { display: none; }
  .nav-links a.nav-cta {
    margin-top: 16px;
    text-align: center;
    border-bottom: none;
    padding: 14px 20px;
    width: 100%;
  }

  .hero-eyebrow { flex-direction: column; gap: 8px; align-items: flex-start; }
  .hero-facts { grid-template-columns: 1fr 1fr; gap: 24px; }
  .cap-strip { grid-template-columns: 1fr; gap: 20px; padding: 24px 0; }
  .cta-strip { flex-direction: column; align-items: stretch; text-align: center; padding: 24px; }
  .cta-btn { justify-content: center; }
  .scroll-cue { display: none; }
  .ph-overlay { bottom: 24px; }
}

/* Support browsers that don't parse backdrop-filter */
@supports not (backdrop-filter: blur(1px)) {
  .topnav { background: rgba(245, 242, 235, 0.98); }
}

/* Print stylesheet — makes the page usable if printed */
@media print {
  .topnav, .scroll-cue, .cta-strip, .site-footer .foot-rule { display: none; }
  .section { page-break-inside: avoid; padding: 24px 0; }
  body { font-size: 11pt; }
}

/* ============================================================
   MEDIA — bands, galleries, craft pairs
   ============================================================ */
.project-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(14,31,44,0.86) 0%,
              rgba(14,31,44,0.55) 26%, rgba(14,31,44,0.12) 55%,
              rgba(14,31,44,0) 76%);
}
.ph-overlay { z-index: 2; }

.media-band {
  position: relative;
  width: 100%;
  height: clamp(320px, 46vh, 560px);
  overflow: hidden;
  background: var(--deep);
}
.media-band img { width: 100%; height: 100%; object-fit: cover; }
.media-band .mb-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(14,31,44,0.72) 0%,
              rgba(14,31,44,0.18) 42%, rgba(14,31,44,0) 70%);
}
.media-band .mb-cap {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(20px, 3vw, 34px);
  color: var(--paper);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.94;
  line-height: 1.6;
}

.gal-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 28px);
  margin: clamp(36px, 5vw, 56px) 0 clamp(64px, 9vw, 110px);
}
.gal-3 figure { margin: 0; }
.gal-3 img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-2);
}
.gal-3 figcaption {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  font-weight: 500;
  line-height: 1.6;
}

.craft-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(18px, 2.5vw, 36px);
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--rule);
}
.craft-pair figure { margin: 0; }
.craft-pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--paper-2);
}
.craft-pair figcaption {
  margin-top: 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--steel);
}
.craft-pair figcaption strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--aqua);
  font-weight: 600;
  margin-bottom: 8px;
}

@media (max-width: 820px) {
  .gal-3 { grid-template-columns: 1fr 1fr; }
  .gal-3 figure:last-child { grid-column: 1 / -1; }
  .craft-pair { grid-template-columns: 1fr; }
  .media-band { height: clamp(260px, 40vh, 380px); }
  .media-band .mb-cap { font-size: 10px; letter-spacing: 0.16em; }
}
@media (max-width: 560px) {
  .gal-3 { grid-template-columns: 1fr; }
  .gal-3 figure:last-child { grid-column: auto; }
}
