/* Montserrat, self-hosted: one variable file covers weights 400 to 700 (SIL OFL, see fonts/OFL.txt) */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/montserrat-latin-var.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --mauve: #6e4e7e;
  --mauve-dark: #4f3860;
  --mauve-light: #cbb8d4;
  --charcoal: #2e2a30;
  --charcoal-2: #3a353d;
  --cream: #f6f3ef;
  --ink: #2e2a30;
  --muted: #625b66;
  --line: #e2dbe4;
  --white: #ffffff;
  --shade: 24, 18, 30;
  --gutter: clamp(16px, 5vw, 64px);
  --header-h: 80px;
  --font: "Montserrat", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font); line-height: 1.08; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--mauve-light); outline-offset: 2px; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: 12px 16px; z-index: 40; }
.skip:focus { left: 16px; top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Type: Montserrat, the closest web font to the logo lettering (Will chose option C on 6 Nov) */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mauve);
  margin-bottom: 18px;
}
/* Big page headings in capitals, as on the hero; section titles in sentence case */
.hero h1, .banner h1, .facts dd, .prose h1, .feature h3 {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.title, .project h3, .steps h3 { font-weight: 600; letter-spacing: -0.01em; }
.title { font-size: clamp(28px, 3.6vw, 44px); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--muted); max-width: 36em; }

.preview-bar {
  position: relative;
  z-index: 31;
  background: var(--mauve-dark);
  color: var(--white);
  font-size: 14px;
  text-align: center;
  padding: 8px 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: block; text-decoration: none; position: relative; }
.brand img { height: 46px; width: auto; }
.brand .logo-white { position: absolute; inset: 0; opacity: 0; transition: opacity 0.25s ease; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--mauve); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--mauve); }
.menu-toggle { display: none; }

/* Pages with a hero or banner: the header sits over the photo until the page scrolls
   (needs JS; plain white header above the photo without it) */
.js .over-hero .site-header:not(.scrolled) { background: transparent; border-bottom-color: transparent; color: var(--white); }
.js .over-hero .site-header:not(.scrolled) .logo-white { opacity: 1; }
.js .over-hero .site-header:not(.scrolled) .logo-colour { opacity: 0; }
.js .over-hero .site-header:not(.scrolled) .site-nav a:hover { color: var(--mauve-light); }
.js .over-hero .site-header:not(.scrolled) .site-nav a[aria-current="page"] { border-bottom-color: var(--white); }
.js .over-hero .hero, .js .over-hero .banner { margin-top: calc(-1 * var(--header-h)); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--mauve);
  color: var(--white);
  border: 1px solid var(--mauve);
  padding: 15px 26px;
  font: 600 13px/1.2 var(--font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--mauve-dark); border-color: var(--mauve-dark); }
.btn-line { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn-line:hover { background: var(--white); color: var(--charcoal); border-color: var(--white); }
.btn-text {
  font: 600 13px/1.2 var(--font);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mauve);
  border-bottom: 2px solid var(--mauve);
  padding-bottom: 4px;
}

/* Photo slots. A slot holds an <img> (or a <picture>) that covers it. */
.photo { position: relative; background: linear-gradient(135deg, #3d3741 0%, #2e2a30 100%); overflow: hidden; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* The same three-way shade on the hero and on every banner */
.hero-media::after, .banner .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to right, rgba(var(--shade), 0.8) 0%, rgba(var(--shade), 0.45) 55%, rgba(var(--shade), 0.15) 100%),
    linear-gradient(to top, rgba(var(--shade), 0.7) 0%, rgba(var(--shade), 0) 50%),
    linear-gradient(to bottom, rgba(var(--shade), 0.55) 0%, rgba(var(--shade), 0) 22%);
}

/* Hero: video on wide screens, still image otherwise */
.hero { position: relative; overflow: hidden; color: var(--white); min-height: min(92vh, 820px); display: grid; align-items: end; background: var(--charcoal); }
.hero-media { position: absolute; inset: 0; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .wrap { position: relative; z-index: 1; padding-top: calc(var(--header-h) + 96px); padding-bottom: clamp(88px, 9vw, 120px); width: 100%; }
.hero .eyebrow { color: var(--mauve-light); }
.hero h1 { font-size: clamp(30px, 4vw, 56px); }
.hero h1 span { display: block; }
.hero p.lead { color: rgba(255, 255, 255, 0.88); margin-top: 24px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* A thin scroll cue at the foot of the hero */
.scroll-cue {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 22px;
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  left: 0;
  top: -16px;
  width: 1px;
  height: 16px;
  background: var(--white);
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { to { transform: translateY(64px); } }
@keyframes slow-zoom { from { transform: scale(1); } to { transform: scale(1.09); } }

/* Page banner for inner pages: same treatment as the hero, a little shorter */
.banner { position: relative; color: var(--white); background: var(--charcoal); min-height: clamp(380px, 56vh, 560px); display: grid; align-items: end; }
.banner .photo { position: absolute; inset: 0; }
.banner .wrap { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--header-h) + 64px); padding-bottom: clamp(48px, 7vw, 80px); }
.banner .eyebrow { color: var(--mauve-light); }
.banner .eyebrow a { text-decoration: none; }
.banner .eyebrow a:hover { color: var(--white); }
.banner h1 { font-size: clamp(32px, 4.8vw, 60px); }
.banner p { color: rgba(255, 255, 255, 0.88); margin-top: 18px; max-width: 36em; font-size: 19px; }

/* Numbers strip */
.facts { background: var(--charcoal); color: var(--white); }
.facts dl { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.facts dl > div { padding: 40px 32px 40px 0; }
.facts dl > div + div { border-left: 1px solid rgba(255, 255, 255, 0.14); padding-left: 32px; }
.facts dd { margin: 0; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.facts dt { margin-top: 10px; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mauve-light); }
.facts.four dl { grid-template-columns: repeat(4, 1fr); }
.facts.four dd { font-size: clamp(22px, 2.4vw, 32px); }
.facts.two dl { grid-template-columns: repeat(2, minmax(0, 320px)); }

/* Quiet statement line under the facts (Dean's words) */
.statement { padding: clamp(40px, 6vw, 72px) 0; text-align: center; }
.statement .wrap { display: grid; justify-items: center; gap: 14px; }
.statement .wrap::before { content: ""; width: 48px; height: 2px; background: var(--mauve); margin-bottom: 8px; }
.statement p { max-width: 44em; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); }
.statement .statement-lead { display: none; color: var(--ink); font-size: 19px; font-weight: 500; }

section { padding: clamp(64px, 9vw, 120px) 0; }
.statement + section { padding-top: clamp(24px, 4vw, 48px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px 48px; margin-bottom: 48px; }
.section-head .lead { margin-top: 16px; }

/* Intro split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split .photo { aspect-ratio: 4 / 5; }
.split .text { display: grid; gap: 18px; align-content: start; }
.split .text p { font-size: 18px; color: var(--muted); }
.split .text .title { color: var(--ink); margin-bottom: 6px; }
.split .text .eyebrow { font-size: 13px; color: var(--mauve); }

/* Project tiles: photo fills the tile, details set on the photo */
.tint { background: var(--cream); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
.project-grid.rhythm { grid-template-columns: repeat(6, 1fr); }
.project-grid .span-2 { grid-column: span 2; }
.project-grid .span-3 { grid-column: span 3; }
.project { position: relative; display: block; overflow: hidden; color: var(--white); text-decoration: none; background: var(--charcoal); height: 100%; }
.project .photo { aspect-ratio: 4 / 3; height: 100%; }
.span-3 .project .photo { aspect-ratio: 16 / 10; }
.project .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(var(--shade), 0.88) 0%, rgba(var(--shade), 0.45) 32%, rgba(var(--shade), 0) 58%),
    linear-gradient(to bottom, rgba(var(--shade), 0.35) 0%, rgba(var(--shade), 0) 24%);
}
.project .photo img { transition: transform 1.4s cubic-bezier(0.2, 0.6, 0.2, 1); }
.project:hover .photo img { transform: scale(1.05); }
.project .status { position: absolute; z-index: 2; top: 16px; left: 16px; }
.project .caption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 22px 24px 24px; display: grid; gap: 4px; justify-items: start; }
.project h3 { font-size: 22px; letter-spacing: 0.02em; position: relative; padding-bottom: 8px; }
.project h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--mauve-light); transition: width 0.5s ease; }
a.project:hover h3::after, a.project:focus-visible h3::after { width: 100%; }
.project .meta { font-size: 15px; color: rgba(255, 255, 255, 0.86); }
.more { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mauve); }
.project .more { color: var(--white); margin-top: 8px; }
.status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid var(--mauve);
  background: var(--mauve);
  color: var(--white);
  justify-self: start;
}
.status.done { background: rgba(var(--shade), 0.35); border-color: rgba(255, 255, 255, 0.6); }

/* Under way: one wide feature card, then a slim row of the others */
.feature { display: grid; grid-template-columns: 3fr 2fr; background: var(--charcoal); color: var(--white); text-decoration: none; }
.feature .photo { aspect-ratio: 3 / 2; }
.under-way-grid { margin-top: 24px; }
.feature .photo img { transition: transform 1.4s cubic-bezier(0.2, 0.6, 0.2, 1); }
.feature:hover .photo img { transform: scale(1.04); }
.feature-text { display: grid; align-content: center; justify-items: start; gap: 14px; padding: clamp(28px, 4vw, 56px); }
.feature h3 { font-size: clamp(30px, 3.4vw, 46px); position: relative; padding-bottom: 12px; }
.feature h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--mauve-light); transition: width 0.5s ease; }
.feature:hover h3::after, .feature:focus-visible h3::after { width: 100%; }
.feature .meta { color: rgba(255, 255, 255, 0.82); font-size: 17px; }
.feature .more { color: var(--mauve-light); margin-top: 10px; }
.also { margin-top: 40px; }

.more-projects { margin-top: 56px; }
.list-title { font-size: 15px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mauve); margin-bottom: 16px; }
.project-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.project-list li { border-top: 1px solid rgba(46, 42, 48, 0.16); padding: 16px 0 18px; }
.project-list h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.project-list .meta { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.project-list.slim h3 { font-size: 18px; }
.project-list.slim .meta { font-size: 14px; }

/* Gallery on a project page; the lightbox is added by site.js (without JS each photo opens on its own) */
.gallery-section { padding-top: clamp(48px, 6vw, 80px); }
.gallery-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
/* Photos in a row share one height; each is as wide as its own shape needs, so none is cropped. */
.gallery { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; width: 100%; }
.gallery li { min-width: 0; flex: 1 1 0; }
.gallery li.ar-3-2 { flex-grow: 1.5; }
.gallery li.ar-4-3 { flex-grow: 1.3333; }
.gallery li.ar-3-4 { flex-grow: 0.75; }
.gallery-item { display: block; position: relative; overflow: hidden; background: var(--charcoal); cursor: zoom-in; }
.ar-3-2 .gallery-item { aspect-ratio: 3 / 2; }
.ar-4-3 .gallery-item { aspect-ratio: 4 / 3; }
.ar-3-4 .gallery-item { aspect-ratio: 3 / 4; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(0.2, 0.6, 0.2, 1); }
.gallery-item:hover img { transform: scale(1.04); }
/* Three photos with a tall one first: it fills the left column, the other two stack beside it. */
.gallery.tall-first { display: grid; grid-template-columns: 1.15fr 1fr; }
.gallery.tall-first li:first-child { grid-row: span 2; }
.gallery.tall-first li:first-child .gallery-item { aspect-ratio: auto; height: 100%; }

.lightbox { padding: 0; border: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: transparent; color: var(--white); overflow: hidden; }
.lightbox::backdrop { background: rgba(20, 16, 22, 0.95); }
.lightbox figure { margin: 0; width: 100%; height: 100%; display: grid; place-items: center; padding: 64px clamp(16px, 7vw, 96px); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 128px); width: auto; height: auto; object-fit: contain; }
.lb-btn {
  position: fixed;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: rgba(var(--shade), 0.5);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  font: 400 26px/1 var(--font);
  cursor: pointer;
}
.lb-btn:hover { background: var(--white); color: var(--charcoal); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: calc(50% - 24px); }
.lb-next { right: 12px; top: calc(50% - 24px); }
.lb-count { position: fixed; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 13px; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.75); }
.lb-open { overflow: hidden; }

/* Approach steps */
.steps { list-style: none; counter-reset: step; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 32px; margin: 0; padding: 0; }
.steps li { counter-increment: step; border-top: 2px solid var(--mauve); padding-top: 22px; }
.steps li::before { content: "0" counter(step); display: block; font-weight: 600; font-size: 15px; letter-spacing: 0.16em; color: var(--mauve); margin-bottom: 14px; }
.steps h3 { font-size: 21px; margin-bottom: 10px; }
.steps p { color: var(--muted); }

/* Closing band: dark, a thin mauve rule, outline button */
.closing { background: var(--charcoal); color: var(--white); padding: clamp(64px, 8vw, 104px) 0; border-top: 1px solid var(--mauve); }
.closing .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px 48px; }
.closing .rule { display: block; width: 48px; height: 2px; background: var(--mauve-light); margin-bottom: 22px; }
.closing p { color: rgba(255, 255, 255, 0.78); margin-top: 12px; max-width: 34em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 88px); }
.contact-list { display: grid; gap: 26px; margin: 32px 0 0; }
.contact-list dt { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mauve); }
.contact-list dd { margin: 6px 0 0; font-size: 19px; overflow-wrap: anywhere; }
.todo { color: var(--muted); font-style: italic; }

form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 6px; }
.field.full, .form-foot { grid-column: 1 / -1; }
label { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.optional { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
input, select, textarea {
  width: 100%;
  font: 400 16px/1.4 var(--font);
  color: var(--ink);
  background: var(--white);
  border: 1px solid #b9aabf;
  border-radius: 0;
  padding: 13px;
}
textarea { min-height: 130px; resize: vertical; }
.check-label { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.check-label input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--mauve); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: grid; gap: 14px; justify-items: start; }
.collection-note { font-size: 14px; color: var(--muted); }
.form-status { font-size: 15px; font-weight: 500; color: var(--mauve); min-height: 1.5em; }
.form-status.error { color: #9b1c31; }

/* Footer */
.site-footer { background: var(--charcoal); color: rgba(255, 255, 255, 0.72); padding: 56px 0 40px; font-size: 14px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 0.7fr 1fr 1.3fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.footer-grid img { height: 44px; width: auto; }
.footer-grid h2 { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { display: grid; gap: 10px; padding-top: 28px; }

/* Plain text pages */
.prose { max-width: 720px; padding: clamp(48px, 7vw, 88px) 0; }
.prose h1 { font-size: clamp(34px, 4.6vw, 54px); margin-bottom: 24px; }
.prose h2 { font-weight: 600; font-size: 20px; text-transform: uppercase; letter-spacing: 0.04em; margin: 36px 0 10px; }
.prose p + p { margin-top: 12px; }

/* Reveal on scroll (only with JS and when motion is allowed). Tiles and gallery photos
   come in one after another, 60 ms apart. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .project-grid.reveal, .js .gallery.reveal { opacity: 1; transform: none; }
.js .project-grid.reveal > li, .js .gallery.reveal > li { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .project-grid.reveal.in > li, .js .gallery.reveal.in > li { opacity: 1; transform: none; }
.js .reveal > li:nth-child(2) { transition-delay: 60ms; }
.js .reveal > li:nth-child(3) { transition-delay: 120ms; }
.js .reveal > li:nth-child(4) { transition-delay: 180ms; }
.js .reveal > li:nth-child(5) { transition-delay: 240ms; }
.js .reveal > li:nth-child(6) { transition-delay: 300ms; }
.js .reveal > li:nth-child(7) { transition-delay: 360ms; }
.js .reveal > li:nth-child(8) { transition-delay: 420ms; }

/* Night band on the home page: the photo stays still while the page scrolls over it.
   A fixed layer inside a clipped box, so it also works on iPhone, where
   background-attachment: fixed does not. */
.night-band {
  position: relative;
  clip-path: inset(0);
  color: var(--white);
  text-align: center;
  padding: clamp(120px, 18vw, 220px) 0;
}
.night-band::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(rgba(var(--shade), 0.55), rgba(var(--shade), 0.55)), url(photos/cbd-night.webp) center / cover no-repeat;
}
/* About: the same mechanics with the aerial dusk still from the hero */
.dusk-band::before {
  background: linear-gradient(rgba(var(--shade), 0.5), rgba(var(--shade), 0.5)), url(photos/hero-dusk-poster.webp) center / cover no-repeat;
}
.night-band .wrap { position: relative; display: grid; justify-items: center; gap: 22px; }
.night-band .eyebrow { color: var(--mauve-light); margin: 0; }
.night-band h2 {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.25;
  max-width: 22em;
}
.night-band p { color: rgba(255, 255, 255, 0.88); max-width: 34em; }
.night-band .rule { width: 64px; height: 2px; background: var(--white); opacity: 0.8; }
.band-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 10px; }

/* The hero video fades in over the still once it is playing */
.hero-media video { opacity: 0; transition: opacity 1.2s ease; }
.hero-media video.on { opacity: 1; }

@media (max-width: 900px) {
  /* Without JS: logo on one row, the four links on a second row */
  :root { --header-h: 108px; }
  .site-header .wrap { flex-wrap: wrap; padding-top: 14px; padding-bottom: 10px; gap: 10px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 12px; }
  .site-nav a { font-size: 12px; letter-spacing: 0.12em; }

  /* With JS: logo left, a Menu button right, the links in a full-screen overlay */
  html.js { --header-h: 64px; }
  .js .site-header .wrap { flex-wrap: nowrap; padding-top: 0; padding-bottom: 0; }
  .js .brand { z-index: 2; }
  .js .brand img { height: 36px; }
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
    background: none;
    border: 0;
    padding: 10px 0 10px 10px;
    color: inherit;
    font: 600 12px/1 var(--font);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 2px; background: currentColor; transition: transform 0.25s ease, background 0.25s ease; }
  .menu-icon { position: relative; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
  .menu-icon::before { top: -7px; }
  .menu-icon::after { top: 7px; }
  .menu-open .menu-icon { background: transparent; }
  .menu-open .menu-icon::before { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-icon::after { transform: translateY(-7px) rotate(-45deg); }
  .js .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    width: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 96px var(--gutter) 64px;
    background: var(--charcoal);
    color: var(--white);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
  }
  .js .menu-open .site-nav { visibility: visible; opacity: 1; transition: opacity 0.3s ease; }
  .js .site-nav a { font-size: clamp(30px, 9vw, 44px); letter-spacing: 0.08em; border-bottom: 0; padding: 8px 0; }
  .js .site-nav a:hover, .js .site-nav a[aria-current="page"] { color: var(--mauve-light); }
  .js .site-header.menu-open { background: transparent; border-bottom-color: transparent; color: var(--white); }
  .js .site-header.menu-open .logo-white { opacity: 1; }
  .js .site-header.menu-open .logo-colour { opacity: 0; }
  .menu-locked { overflow: hidden; }

  .split, .contact-grid { grid-template-columns: 1fr; }
  .split .photo { aspect-ratio: 16 / 10; }
  .project-grid, .project-grid.rhythm { grid-template-columns: 1fr 1fr; gap: 16px; }
  .project-grid .span-2, .project-grid .span-3 { grid-column: auto; }
  .project-grid.rhythm > li:first-child { grid-column: 1 / -1; }
  .project-grid.rhythm > li:first-child .photo { aspect-ratio: 16 / 9; }
  .span-3 .project .photo { aspect-ratio: 4 / 3; }
  .feature { grid-template-columns: 1fr; }
  .steps { grid-auto-flow: row; }
  .project-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child, .footer-grid > :last-child { grid-column: 1 / -1; }
  .facts.four dl { grid-template-columns: 1fr 1fr; }
  .facts.four dl > div:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* Phones: the hero shows only the eyebrow, headline and buttons; the lead sentence
   moves into the statement under the facts strip. */
@media (max-width: 699px) {
  .hero { min-height: max(560px, calc(100vh - 72px)); min-height: max(560px, calc(100svh - 72px)); }
  .hero .wrap { padding-top: calc(var(--header-h) + 48px); padding-bottom: 96px; }
  .hero .hero-lead { display: none; }
  .hero-actions { margin-top: 28px; }
  .statement .statement-lead { display: block; }
  .night-band::before { background-image: linear-gradient(rgba(var(--shade), 0.55), rgba(var(--shade), 0.55)), url(photos/cbd-night-900.webp); }
  .dusk-band::before { background-image: linear-gradient(rgba(var(--shade), 0.5), rgba(var(--shade), 0.5)), url(photos/hero-dusk-poster-tall.webp); }
}

@media (max-width: 600px) {
  /* Split photos are portrait; show them whole on phones instead of a thin strip */
  .split .photo { aspect-ratio: 4 / 5; }
  body { font-size: 16px; }
  .brand img { height: 38px; }
  .facts dl, .facts.four dl, .facts.two dl { grid-template-columns: 1fr; }
  .facts dl > div { padding: 22px 0; }
  .facts dl > div + div, .facts.four dl > div:nth-child(3) { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-left: 0; }
  .project-grid, .project-grid.rhythm { grid-template-columns: 1fr; }
  .project-grid.rhythm > li:first-child .photo { aspect-ratio: 4 / 3; }
  .project-list, .project-list.slim { grid-template-columns: 1fr; }
  .gallery-rows { gap: 12px; }
  .gallery, .gallery.tall-first { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .gallery.tall-first li:first-child { grid-row: auto; }
  .gallery.tall-first li:first-child .gallery-item { aspect-ratio: 3 / 4; height: auto; }
  form { grid-template-columns: 1fr; }
  .hero-media::after { background: linear-gradient(to top, rgba(var(--shade), 0.9) 0%, rgba(var(--shade), 0.55) 60%, rgba(var(--shade), 0.45) 100%); }
  .banner p { font-size: 17px; }
  .band-actions .btn { min-width: 240px; text-align: center; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; }
}

/* A very slow zoom on the hero still, phones only (where there is no video) */
@media (max-width: 699px) and (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: slow-zoom 30s ease-in-out infinite alternate; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .site-header, .brand .logo-white, .photo img, .gallery-item img, .site-nav, .menu-icon, .menu-icon::before, .menu-icon::after,
  .project h3::after, .feature h3::after, .hero-media video { transition: none !important; }
  .js .reveal, .js .reveal > li { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scroll-cue::after { animation: none; top: 16px; }
  .project:hover .photo img, .feature:hover .photo img, .gallery-item:hover img { transform: none; }
}
