/* Brut - colours taken from the hero photo (dark concrete, mid grey, overcast sky) */
:root {
  --c-void: #050505;      /* deepest shadow of the building, page background */
  --c-graphite: #1b1b1b;  /* concrete in shade */
  --c-concrete: #7c7c7c;  /* lit concrete */
  --c-fog: #cacaca;       /* overcast sky */
  --c-paper: #dedede;     /* brightest sky */
  --c-white: #f6f6f4;     /* headings and text on dark */
  --c-signal: #d4251a;    /* the one colour: cursor trail */

  --font-display: "Syncopate", "Arial Black", sans-serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 0;            /* one corner for photos and buttons alike */
  --ease-frame: cubic-bezier(.77, 0, .18, 1);
  --text-glow: 0 0 14px rgba(5, 5, 5, .45), 0 1px 2px rgba(5, 5, 5, .5);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--c-void);
  color: var(--c-white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ---------- hero: one photo opens out of three framed windows ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--c-void);
}

.hero-tiles { position: absolute; inset: 0; }
/* a soft shade along the top keeps the logo and Menu readable over a bright sky */
.hero-tiles::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  z-index: 1;
  height: 22%;
  background: linear-gradient(to bottom, rgba(5, 5, 5, .5), rgba(5, 5, 5, 0));
  pointer-events: none;
}
/* the bottom of the photo melts into the page, so there is no hard edge before the next section */
.hero-tiles::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0), rgba(5, 5, 5, .55) 55%, var(--c-void));
  pointer-events: none;
}
.hero-tile {
  position: absolute;
  top: 0; bottom: 0;
  width: calc(100% / 3 + 1px);   /* 1px overlap so no seam shows when open */
  overflow: hidden;
  clip-path: inset(50% 50% 50% 50%);   /* closed: a point in the middle of each tile */
  transition: clip-path 1.6s linear;
}
.hero-tile:nth-child(1) { left: 0; }
.hero-tile:nth-child(2) { left: calc(100% / 3); }
.hero-tile:nth-child(3) { left: calc(200% / 3); }

/* each tile holds the full-width photo, shifted so the three line up into one picture */
.hero-tile img {
  position: absolute;
  top: 0;
  width: calc(300% - 3px);
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  transform-origin: 62% 40%;
  transition: transform 6s cubic-bezier(.25, .1, .25, 1) 1.1s;   /* slow zoom, starts near the end of the opening */
}
.hero-tile:nth-child(1) img { left: 0; }
.hero-tile:nth-child(2) img { left: calc(-100% + 1px); }
.hero-tile:nth-child(3) img { left: calc(-200% + 2px); }

/* open: each tile grows evenly from its centre point to the full frame */
.hero.is-open .hero-tile { clip-path: inset(0 0 0 0); }
.hero.is-open .hero-tile img { transform: scale(1.16); }

/* ---------- hero text: a staircase, each line steps right ---------- */
.hero-text {
  position: absolute;
  left: 9vw;
  right: 6vw;
  bottom: 9vh;
  display: flex;
  flex-direction: column;
  gap: 4.5vh;
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.1rem, 6.4vw, 7.2rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--c-white);
  text-shadow: var(--text-glow);
}
.hero-line { display: block; }
.hero-line:nth-child(2) { margin-left: 1.6em; }
.hero-line:nth-child(3) { margin-left: 3.2em; }

/* letters turn in on their vertical axis, in random order */
.split .w { display: inline-block; white-space: nowrap; }
.split .ch {
  display: inline-block;
  opacity: 0;
  transform: perspective(600px) rotateY(-100deg);
  transform-origin: 50% 50%;
  backface-visibility: hidden;
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1), opacity .5s ease;
  transition-delay: var(--d, 0s);
}
.hero.is-text .split .ch, .menu.is-open .split .ch { opacity: 1; transform: perspective(600px) rotateY(0); }

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-left: 3.2em;   /* same step as the last line */
  font-size: clamp(2.1rem, 6.4vw, 7.2rem);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .9s ease, transform .9s var(--ease-frame);
}
.hero.is-done .hero-foot { opacity: 1; transform: none; }

.hero-lead {
  margin: 0;
  max-width: 30ch;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--c-paper);
  text-shadow: var(--text-glow);
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; font-size: 1rem; }

/* ---------- glass buttons ---------- */
.btn-glass {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(246, 246, 244, .28);
  background: linear-gradient(180deg, rgba(246, 246, 244, .16), rgba(246, 246, 244, .05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 30px rgba(5, 5, 5, .28);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  color: var(--c-white);
  font: 500 .95rem/1 var(--font-body);
  letter-spacing: .02em;
  text-decoration: none;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.btn-glass:active { transform: scale(.98); }
.btn-glass:focus-visible { outline: 2px solid var(--c-white); outline-offset: 3px; }
.btn-glass--quiet { background: rgba(5, 5, 5, .22); }

/* ---------- header: logo left, glass Menu right ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 4vw;
  color: var(--c-white);
  text-shadow: var(--text-glow);
  opacity: 0;
  transition: opacity .8s ease, transform .5s var(--ease-frame);
}
.is-ready .site-header { opacity: 1; }
.site-header.is-hidden { transform: translateY(calc(-100% - 60px)); }   /* clears the blur below it too */
/* back on the way up, over content: the page behind blurs and darkens a little, fading out downwards, no bar or edge
   (nothing at the top, over the hero) */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -48px 0;
  z-index: -1;
  background: linear-gradient(rgba(5, 5, 5, .5), rgba(5, 5, 5, 0));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(#000 45%, transparent);
  mask-image: linear-gradient(#000 45%, transparent);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.site-header.is-solid::before { opacity: 1; }

.logo {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
}
.logo img { display: block; height: 28px; width: auto; }

.menu-toggle { min-height: 42px; padding: 0 22px; }


/* ---------- full-screen menu: the hero's staircase again ---------- */
.menu {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 120px 4vw 32px 9vw;
  background: var(--c-void);
  opacity: 0;
  transition: opacity .5s ease;
}
.menu.is-open { opacity: 1; }
.menu[hidden] { display: none; }

.menu-links { display: flex; flex-direction: column; font-size: clamp(2.4rem, 6vw, 6rem); }
.menu-links a {
  display: inline-flex;
  align-items: flex-start;
  gap: .25em;
  width: max-content;
  color: var(--c-white);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.08;
  text-transform: uppercase;
  transition: color .3s ease;
}
.menu-links a:nth-child(2) { margin-left: 1.2em; }
.menu-links a:nth-child(3) { margin-left: 2.4em; }
.menu-links a:nth-child(4) { margin-left: 3.6em; }
.menu-links:hover a { color: var(--c-concrete); }
.menu-links a:hover { color: var(--c-white); }
.menu-no { padding-top: .6em; font: 500 .85rem/1 var(--font-body); letter-spacing: .08em; color: var(--c-concrete); }

.menu-foot { display: flex; flex-wrap: wrap; gap: 8px 40px; font-size: .95rem; color: var(--c-fog); }
.menu-foot a { color: inherit; }

.menu-open { overflow: hidden; }

@media (max-width: 760px) {
  .site-header { padding: 16px 5vw; }
  .menu { padding: 96px 6vw 28px; }
  .menu-links { font-size: clamp(1.6rem, 7.5vw, 3rem); gap: .2em; }
  .menu-links a:nth-child(2) { margin-left: .5em; }
  .menu-links a:nth-child(3) { margin-left: 1em; }
  .menu-links a:nth-child(4) { margin-left: 1.5em; }
  .menu-foot { flex-direction: column; }
}

/* ---------- mobile: building up top, text in the lower part, buttons at the bottom ---------- */
@media (max-width: 760px) {
  .hero-tile img { object-position: 70% 30%; }
  .hero-text { left: 6vw; right: 6vw; bottom: 5vh; gap: 3vh; }
  .hero-title { font-size: clamp(1.6rem, 8.4vw, 3rem); }
  .hero-line:nth-child(2) { margin-left: .9em; }
  .hero-line:nth-child(3) { margin-left: 1.8em; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 20px; margin-left: 0; font-size: 1rem; }
  .hero-actions .btn-glass { flex: 1; }
}

/* no motion: show the finished hero straight away */
@media (prefers-reduced-motion: reduce) {
  .hero-tile, .hero-tile img, .split .ch, .hero-foot, .site-header, .menu { transition: none !important; }
}

/* =====================================================================
   PAGES - same language everywhere: dark page, photos open out of a window,
   headings turn in letter by letter, lists step down like a staircase.
   ===================================================================== */
a { color: inherit; }
img { max-width: 100%; }
.kicker { display: inline-block; font: 500 .8rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--c-concrete); }
.display {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.04;
  text-transform: uppercase;
  color: var(--c-white);
}
.section { padding: 18vh 0; }

/* headings that turn in when they scroll into view */
.split.in-view .ch { opacity: 1; transform: perspective(600px) rotateY(0); }

/* ---------- photo frame ---------- */
.frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-graphite);
}
.frame img { display: block; width: 100%; height: auto; scale: 1.28; transition: transform 1.2s var(--ease-frame), opacity .6s ease; }
.frame img.is-waiting { opacity: 0; }   /* a photo still on its way fades in when it arrives */   /* room for the inner parallax (translate set in main.js) */

/* ---------- page head (pages without a photo hero) ---------- */
.page-head { display: grid; grid-template-columns: 1fr minmax(0, 34ch); align-items: end; gap: 48px; padding: 26vh 4vw 12vh; }
.page-title { font-size: clamp(2.6rem, 8vw, 8.4rem); text-shadow: var(--text-glow); }
.page-title .line, .next .line { display: block; }
.page-title .line:nth-child(2) { margin-left: 1.6em; }
.page-title .line:nth-child(3) { margin-left: 3.2em; }
.page-head p { margin: 0; color: var(--c-fog); line-height: 1.6; }
.page-head .kicker { display: block; margin-bottom: 28px; }

/* ---------- statement: words light up as you read, like daylight moving over a facade ---------- */
.statement { padding: 22vh 4vw 18vh 18vw; }
.statement .kicker { margin-bottom: 40px; }
.statement-text {
  margin: 0;
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 3.4rem);
  line-height: 1.24;
  text-transform: uppercase;
}
.statement-text .sww { white-space: nowrap; }
.statement-text .sw { color: #2c2c2c; transition: color .15s ease; }
.statement-text .sw.lit { color: var(--c-white); }
.statement-text .sw.lit { color: color-mix(in srgb, var(--c-signal) var(--heat, 0%), var(--c-white)); }   /* red edge with a trail (set in main.js) */

/* ---------- broken grid gallery: frames placed off a 12-column grid, each drifting at its own speed ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 2vw;
  grid-auto-rows: 8px;          /* masonry: each item spans as many 8px rows as it is tall (set in main.js) */
  row-gap: 0;
  align-items: start;
  padding: 0 4vw;
}
.g-item, .pair .frame { will-change: transform; }
.g-item { position: relative; display: block; text-decoration: none; }
/* desktop places are set by pack() in main.js (two lanes, shorter lane first); s1-s6 are the phone widths below */
.g-item.is-hidden { display: none; }
.g-cap { display: flex; gap: 18px; align-items: baseline; margin-top: 18px; font-size: .9rem; color: var(--c-fog); }
.g-no { color: var(--c-concrete); font-variant-numeric: tabular-nums; }
.g-name { font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--c-white); }
.g-meta { margin-left: auto; text-align: right; }
a.g-item:hover .frame img { transform: scale(1.04); }
.gallery-more { display: flex; justify-content: flex-end; padding: 12vh 4vw 0; }

/* ---------- filters (glass chips) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 4vw 12vh; }
.btn-glass.chip { min-height: 40px; padding: 0 20px; font-size: .88rem; cursor: pointer; }
.btn-glass.chip[aria-pressed="true"] { background: var(--c-white); border-color: var(--c-white); color: var(--c-void); }

/* ---------- staircase list (disciplines, approach) ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding: 0 4vw 10vh; }
.section-head .display { font-size: clamp(2rem, 5vw, 5rem); }
.stairs { list-style: none; margin: 0; padding: 0 4vw; }
.stairs li { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 2vw; padding: 4vh 0; border-top: 1px solid rgba(246, 246, 244, .12); }
.stairs li:last-child { border-bottom: 1px solid rgba(246, 246, 244, .12); }
.stairs .display { font-size: clamp(1.8rem, 4.6vw, 5rem); }
.stairs li:nth-child(2) .display { margin-left: 1.4em; }
.stairs li:nth-child(3) .display { margin-left: 2.8em; }
.stairs li:nth-child(4) .display { margin-left: 4.2em; }
.stairs p { margin: 0 0 .4em auto; max-width: 32ch; color: var(--c-fog); line-height: 1.6; }
.stairs .g-no { display: block; margin-bottom: 10px; font-size: .85rem; }

/* ---------- project facts and text ---------- */
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0 4vw; border-bottom: 1px solid rgba(246, 246, 244, .12); }
.facts div { padding: 28px 20px 28px 0; }
.facts dt { margin-bottom: 10px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-concrete); }
.facts dd { margin: 0; color: var(--c-white); }
.prose { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2vw; padding: 16vh 4vw; }
.prose .lead { grid-column: 3 / span 8; margin: 0 0 8vh; font-family: var(--font-display); font-weight: 300; font-size: clamp(1.25rem, 2.2vw, 2.1rem); line-height: 1.35; text-transform: uppercase; }
.prose .cols { grid-column: 5 / span 7; columns: 2; column-gap: 3vw; color: var(--c-fog); line-height: 1.7; }
.prose .cols p { margin: 0 0 1.2em; break-inside: avoid; }
.wide { padding: 0 0 16vh; }
.wide .frame { aspect-ratio: 16 / 7; }
.wide .frame img { height: 100%; object-fit: cover; }

/* ---------- next project ---------- */
.next { display: block; padding: 16vh 4vw 18vh; text-decoration: none; border-top: 1px solid rgba(246, 246, 244, .12); }
.next .display { font-size: clamp(2.4rem, 7vw, 7.6rem); transition: color .4s ease; }
.next .line:nth-child(2) { margin-left: 1.6em; }
.next .kicker { margin-bottom: 30px; }
.next:hover .display { color: var(--c-fog); }

/* ---------- awards index ---------- */
.index { list-style: none; margin: 0; padding: 0 4vw; }
.index li { display: grid; grid-template-columns: 8ch 1fr 1fr; gap: 2vw; padding: 22px 0; border-top: 1px solid rgba(246, 246, 244, .12); color: var(--c-fog); transition: color .3s ease, padding .5s var(--ease-frame); }
.index li:last-child { border-bottom: 1px solid rgba(246, 246, 244, .12); }
.index li:hover { padding-left: 1.5vw; color: var(--c-white); }
.index strong { font-weight: 500; color: var(--c-white); }

/* ---------- two pictures, off-grid ---------- */
.pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2vw; align-items: start; padding: 0 4vw; }
.pair .frame:first-child { grid-column: 1 / span 7; }
.pair .frame:last-child { grid-column: 9 / span 4; margin-top: 24vh; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2vw; align-items: start; padding: 0 4vw 18vh; }
.contact-info { grid-column: 1 / span 4; display: grid; gap: 36px; }
.contact-info h2, .footer-cols h2 { margin: 0 0 12px; font: 500 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--c-concrete); }
.contact-info p { margin: 0; line-height: 1.6; color: var(--c-paper); }
.contact-info a { text-decoration: none; }
.contact-info a:hover { text-decoration: underline; }
.contact-form { grid-column: 6 / span 7; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 2vw; }
.field { display: grid; gap: 10px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-concrete); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(246, 246, 244, .25);
  border-radius: 0;
  background: transparent;
  color: var(--c-white);
  font: 400 1.05rem/1.4 var(--font-body);
  transition: border-color .3s ease;
}
.field select {
  appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c7c7c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 18px;
}
.field select option { background: var(--c-graphite); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--c-white); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.form-note { margin: 0; font-size: .9rem; color: var(--c-fog); }
.form-note.is-sent { color: var(--c-white); }
button.btn-glass { cursor: pointer; }
.contact-photo { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2vw; padding: 0 4vw 18vh; }
.contact-photo { display: flex; align-items: flex-start; gap: 2vw; }
/* map 4:3 and the portrait photo 3:4 share the row so both come out the same height, nothing cropped */
.contact-photo .map { flex: 1 1 0; }
.contact-photo .frame { flex: .5625 1 0; aspect-ratio: 1600 / 2131; }
.contact-photo .frame img { height: 100%; object-fit: cover; }

/* ---------- footer: the address set as large as a headline ---------- */
.site-footer { padding: 20vh 4vw 32px; border-top: 1px solid rgba(246, 246, 244, .12); }
.site-footer .kicker { display: block; margin-bottom: 28px; }
.footer-mail { display: inline-block; font-size: clamp(1.3rem, 5vw, 5.4rem); text-decoration: none; overflow-wrap: anywhere; transition: color .4s ease; }
.footer-mail:hover { color: var(--c-fog); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 16vh; font-size: .95rem; line-height: 1.7; color: var(--c-fog); }
.footer-cols p { margin: 0; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: var(--c-white); }
.footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-top: 12vh; padding-top: 24px; border-top: 1px solid rgba(246, 246, 244, .12); font-size: .82rem; color: var(--c-concrete); }

/* ---------- pages on tablets and phones ---------- */
@media (max-width: 900px) {
  .page-head { grid-template-columns: 1fr; padding-top: 20vh; }
  .statement { padding: 16vh 6vw 12vh; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: auto; row-gap: 7vh; padding: 0 5vw; }
  .g-item.s1, .g-item.s3, .g-item.s5 { grid-column: 1; width: 86%; margin: 0; }
  .g-item.s2, .g-item.s4, .g-item.s6 { grid-column: 1; width: 72%; margin: 0 0 0 auto; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .stairs li { grid-template-columns: 1fr; }
  .stairs p { margin: 0; }
  .stairs li:nth-child(n) .display { margin-left: 0; }
  .stairs li:nth-child(2) { padding-left: 6vw; }
  .stairs li:nth-child(3) { padding-left: 12vw; }
  .stairs li:nth-child(4) { padding-left: 18vw; }
  .facts { grid-template-columns: 1fr 1fr; }
  .prose .lead, .prose .cols { grid-column: 1 / -1; }
  .prose .cols { columns: 1; }
  .wide .frame { aspect-ratio: 4 / 3; }
  .index li { grid-template-columns: 6ch 1fr; }
  .index li span:last-child { grid-column: 2; }
  .pair .frame:first-child { grid-column: 1 / span 10; }
  .pair .frame:last-child { grid-column: 5 / span 8; margin-top: 8vh; }
  .contact-info, .contact-form { grid-column: 1 / -1; }
  .contact-form { grid-template-columns: 1fr; margin-top: 10vh; }
  .contact-photo { display: grid; }
  .contact-photo .frame { aspect-ratio: auto; }
  .contact-photo .map { grid-column: 1 / -1; aspect-ratio: 4 / 5; }
  .contact-photo .frame { grid-column: 1 / -1; margin-top: 8vh; }
  .contact-photo .frame img { height: auto; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .page-title { font-size: clamp(1.9rem, 10vw, 3.4rem); }
  .page-title .line:nth-child(2) { margin-left: .8em; }
  .page-title .line:nth-child(3) { margin-left: 1.6em; }
  .next .display { font-size: clamp(1.7rem, 8.6vw, 3rem); }
  .next .line:nth-child(2) { margin-left: .6em; }
  .stairs .display { font-size: clamp(1.4rem, 7.4vw, 2.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  .frame, .frame img, .statement-text .sw { transition: none !important; }
  .frame img { scale: none; translate: none !important; }
  .g-item, .pair .frame { transform: none !important; }
}

/* long address: letters may wrap instead of running off a phone screen */
.footer-mail .w { white-space: normal; }
.display .line { display: block; }
.section-head .line:nth-child(2) { margin-left: 1.4em; }
@media (max-width: 760px) { .section-head .display { font-size: clamp(1.5rem, 7.4vw, 2.6rem); } }

/* ---------- glass buttons on hover: grow a little and the glass clears to almost nothing ---------- */
.btn-glass { transition: transform .45s var(--ease-frame), background .45s ease, border-color .45s ease, box-shadow .45s ease, color .45s ease, -webkit-backdrop-filter .45s ease, backdrop-filter .45s ease; }
.menu-label { display: inline-block; transition: transform .45s var(--ease-frame); }
@media (hover: hover) {
  .btn-glass:hover:not([aria-pressed="true"]) {
    transform: scale(1.08);
    background: rgba(246, 246, 244, .03);
    border-color: rgba(246, 246, 244, .14);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .menu-toggle:hover .menu-label { transform: scale(1.06); }
}

/* ---------- cursor: a thin red trail that fades behind the pointer ---------- */
.cursor-trail { position: fixed; inset: 0; z-index: 60; width: 100%; height: 100%; pointer-events: none; }

/* ---------- the red, used sparingly: current page in the menu, project number on hover, selected text ---------- */
.menu-links a[aria-current="page"] .menu-no { color: var(--c-signal); }
.menu-links a[aria-current="page"] .menu-no::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: middle; background: var(--c-signal); }
.g-no { transition: color .3s ease; }
a.g-item:hover .g-no { color: var(--c-signal); }
::selection { background: var(--c-signal); color: var(--c-white); }

/* ---------- project layout 2 (split): the photo opens on the right, title and facts sit on the dark left ---------- */
.hero--split .hero-tiles { left: 46%; }
.hero--split .hero-tiles::after { display: none; }
.hero--split .hero-text { left: 6vw; right: 58%; bottom: 12vh; }
.hero--split .hero-title { font-size: clamp(2rem, 4.4vw, 5rem); }
.hero--split .hero-line:nth-child(2) { margin-left: 1em; }
.hero--split .hero-foot { margin-left: 2em; font-size: clamp(2rem, 4.4vw, 5rem); }
.hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 32px; margin: 0; font-size: 1rem; }
.hero-facts dt { margin-bottom: 6px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--c-concrete); }
.hero-facts dd { margin: 0; color: var(--c-white); }

/* ---------- project layout 3 (story): chapters, picture and text swap sides each time ---------- */
.chapter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2vw; align-items: center; padding: 14vh 4vw 0; }
.chapter .frame { grid-column: 1 / span 7; grid-row: 1; }
.chapter-text { grid-column: 9 / span 4; grid-row: 1; }
.chapter:nth-of-type(even) .frame { grid-column: 6 / span 7; }
.chapter:nth-of-type(even) .chapter-text { grid-column: 1 / span 4; }
.chapter-text .display { margin: 0 0 24px; font-size: clamp(1.8rem, 4vw, 4.2rem); }
.chapter-text p { margin: 0; max-width: 38ch; color: var(--c-fog); line-height: 1.7; }
.chapter + .next { margin-top: 16vh; }

@media (max-width: 900px) {
  .chapter { padding-top: 10vh; }
  .chapter .frame, .chapter:nth-of-type(even) .frame { grid-column: 1 / -1; }
  .chapter-text, .chapter:nth-of-type(even) .chapter-text { grid-column: 1 / -1; grid-row: 2; padding-top: 32px; }
  .chapter:nth-of-type(even) .chapter-text { padding-left: 12vw; }
}
@media (max-width: 760px) {
  /* split hero on a phone: photo in the top part, title and facts below it */
  .hero--split .hero-tiles { left: 0; bottom: 44%; }
  .hero--split .hero-tiles::after { display: block; }
  .hero--split .hero-text { left: 6vw; right: 6vw; bottom: 5vh; }
  .hero--split .hero-title { font-size: clamp(1.7rem, 9vw, 3rem); }
  .hero--split .hero-line:nth-child(2) { margin-left: .8em; }
  .hero--split .hero-foot { margin-left: 0; font-size: 1rem; }
  .chapter-text .display { font-size: clamp(1.5rem, 8vw, 2.6rem); }
}

/* ---------- form details in our style, nothing left to the browser ---------- */
.field input, .field textarea { caret-color: var(--c-signal); }
.field textarea { resize: none; }
.field input:-webkit-autofill, .field textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--c-white);
  box-shadow: 0 0 0 100px var(--c-void) inset;   /* hides the browser's autofill tint */
  transition: background-color 9999s;
}
.field-error { font-size: .82rem; color: var(--c-signal); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: var(--c-signal); }

/* dropdown: a dark panel that unrolls under the field, the chosen option marked with the red square */
.select { position: relative; }
.select-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid rgba(246, 246, 244, .25);
  border-radius: 0;
  background: transparent;
  color: var(--c-white);
  font: 400 1.05rem/1.4 var(--font-body);
  text-align: left;
  cursor: pointer;
  transition: border-color .3s ease;
}
.select-btn svg { flex: none; width: 18px; height: 18px; color: var(--c-concrete); transition: transform .4s var(--ease-frame), color .3s ease; }
.select-btn:hover svg, .select.is-open .select-btn svg { color: var(--c-white); }
.select.is-open .select-btn svg { transform: rotate(180deg); }
.select-btn:focus-visible, .select.is-open .select-btn { outline: none; border-bottom-color: var(--c-white); }
.select-list {
  position: absolute;
  top: 100%; left: 0; right: 0;
  z-index: 10;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  border: 1px solid rgba(246, 246, 244, .14);
  border-radius: var(--radius);
  background: var(--c-graphite);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .45s var(--ease-frame), visibility 0s .45s;
}
.select.is-open .select-list { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .45s var(--ease-frame), visibility 0s; }
.select-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: var(--c-fog);
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.select-list li::before { content: ""; width: 6px; height: 6px; flex: none; background: transparent; }
.select-list li[aria-selected="true"] { color: var(--c-white); }
.select-list li[aria-selected="true"]::before { background: var(--c-signal); }
.select-list li:hover, .select-list li:focus { outline: none; background: rgba(246, 246, 244, .06); color: var(--c-white); }

/* thin dark scrollbar */
html { scrollbar-width: thin; scrollbar-color: #2e2e2e var(--c-void); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--c-void); }
::-webkit-scrollbar-thumb { background: #2e2e2e; }
::-webkit-scrollbar-thumb:hover { background: var(--c-concrete); }
@media (prefers-reduced-motion: reduce) { .select-list, .select-btn svg { transition: none !important; } }

.page-head-side { display: grid; gap: 28px; justify-items: start; }

/* ---------- map: a drawn site plan with a red pin until clicked, then a darkened Google map ---------- */
.map {
  position: relative;
  grid-column: 1 / span 8;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(246, 246, 244, .1);
  background-color: var(--c-graphite);
  background-image:
    linear-gradient(rgba(246, 246, 244, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 246, 244, .07) 1px, transparent 1px),
    linear-gradient(rgba(246, 246, 244, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 246, 244, .03) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: center;
}
.map-cover { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 32px; }
.map-pin { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: var(--c-signal); }
.map-pin::after { content: ""; position: absolute; inset: -14px; border: 1px solid var(--c-signal); opacity: .5; animation: pin 2.4s ease-out infinite; }
@keyframes pin { from { transform: scale(.4); opacity: .7; } to { transform: scale(1.8); opacity: 0; } }
.map-info { display: grid; gap: 14px; justify-items: start; }
.map-info p { margin: 0; color: var(--c-paper); line-height: 1.6; }
.map-info small { color: var(--c-concrete); font-size: .8rem; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9) brightness(.92); }
.map.is-loaded .map-cover { display: none; }
.map--auto .map-load, .map--auto .map-info small { display: none; }   /* no button when the map loads by itself */
.map iframe { z-index: 0; } .map-cover { z-index: 1; }
@media (prefers-reduced-motion: reduce) { .map-pin::after { animation: none; } }
