:root {
  --exedra: #393185;
  --exedra-deep: #211c51;
  --ink: #38383d;
  --muted: #6b6a70;
  --paper: #ffffff;
  --mist: #f3f3f5;
  --line: rgba(23, 23, 25, 0.16);
  --page: min(100% - 3rem, 1320px);
  --header-height: 6rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.cookie-consent {
  position: fixed;
  z-index: 120;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(48rem, calc(100% - 2rem));
  margin-inline: auto;
  padding: 1.15rem 1.25rem;
  color: var(--ink);
  background: rgba(255, 255, 255, .98);
  border: 1px solid var(--line);
  box-shadow: 0 .8rem 2.5rem rgba(23, 23, 27, .22);
}
.cookie-consent[hidden],
.cookie-settings[hidden] { display: none; }
.cookie-consent h2 { margin: 0 0 .25rem; font-size: 1rem; }
.cookie-consent p { margin: 0; font-size: .87rem; line-height: 1.45; }
.cookie-consent a { text-underline-offset: .2rem; }
.cookie-consent-actions { display: flex; flex: 0 0 auto; gap: .55rem; }
.cookie-consent .button { min-height: 2.65rem; padding: .65rem .9rem; white-space: nowrap; }
.cookie-consent .button-outline { color: var(--ink); border-color: var(--line); }
.cookie-consent .button-outline:hover { color: var(--exedra); border-color: var(--exedra); }
.cookie-settings {
  position: fixed;
  z-index: 110;
  left: .7rem;
  bottom: .7rem;
  padding: .45rem .65rem;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  font: inherit;
  font-size: .72rem;
  cursor: pointer;
}
.cookie-settings:hover,
.cookie-settings:focus-visible { color: var(--exedra); border-color: var(--exedra); }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--paper);
  color: var(--exedra);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 clamp(1.5rem, 4vw, 4.5rem);
  color: var(--paper);
  transition: background 240ms, color 240ms, height 240ms, box-shadow 240ms;
}
.header-tools {
  position: relative;
  z-index: 52;
  display: flex;
  align-items: center;
  gap: clamp(.65rem, 1.4vw, 1.25rem);
}
.site-header.is-scrolled,
.exedra-inner .site-header {
  height: 4.8rem;
  color: var(--ink);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(12px);
}
.site-header.is-scrolled .wordmark-architects,
.exedra-inner .site-header .wordmark-architects { color: var(--ink); }
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .76rem;
  color: inherit;
  text-decoration: none;
  font-size: clamp(2.7rem, 4.3vw, 4rem);
  line-height: 1;
  letter-spacing: .005em;
  white-space: nowrap;
}
.site-header > .wordmark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.wordmark-exedra { color: var(--exedra); font-weight: 400; }
.site-header.is-scrolled .wordmark-exedra,
.exedra-inner .site-header .wordmark-exedra,
.footer-wordmark .wordmark-exedra { color: var(--exedra); }
.wordmark-architects { font-weight: 300; }
.header-links {
  position: absolute;
  z-index: 52;
  right: clamp(1.5rem, 4vw, 4.5rem);
  display: flex;
  align-items: center;
  gap: clamp(.75rem, .9vw, 1rem);
  font-size: .8rem;
  letter-spacing: .035em;
}
.header-links a { text-decoration: none; text-underline-offset: .3rem; }
.header-links a:hover,
.header-links a:focus-visible { text-decoration: underline; }
.header-link-enquiry { padding: .5rem .65rem; border: 1px solid; }
.header-socials { display: flex; align-items: center; gap: .2rem; }
.header-socials a,
.header-socials .social-icon {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  color: inherit;
  text-decoration: none;
}
.header-socials svg { width: 1.1rem; height: 1.1rem; }
.header-socials path,
.header-socials .icon-fill { fill: currentcolor; }
.header-socials rect,
.header-socials circle:not(.icon-fill) { fill: none; stroke: currentcolor; stroke-width: 1.6; }
.header-socials a:hover,
.header-socials a:focus-visible { color: rgb(169, 163, 232); }
.header-socials .social-pending { opacity: .48; cursor: help; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.exedra-gateway {
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
}
.gateway {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  color: var(--paper);
}
.gateway-slides,
.gateway-slide {
  position: absolute;
  inset: 0;
}
.gateway-slide {
  z-index: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 900ms ease, visibility 900ms;
}
.gateway-slide.is-active {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.gateway-slide > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 7s linear;
}
.gateway-slide.is-active > img { transform: scale(1.025); }
.gateway-slide-portrait > img { object-position: center 42%; }
.gateway-slide-wide > img { object-position: center; }
.gateway-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: rgba(23, 23, 27, .42);
}
.gateway-sectors {
  position: absolute;
  inset: var(--header-height) 0 0;
  z-index: 3;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
}
.gateway-panel {
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 1rem clamp(1.5rem, 5vw, 5.5rem);
  color: inherit;
  text-decoration: none;
}
.gateway-panel:focus-visible { outline: 3px solid rgb(190, 185, 236); outline-offset: -3px; }
.gateway-panel:hover .gateway-link > span,
.gateway-panel:focus-visible .gateway-link > span { transform: translateX(.25rem); }
.gateway-panel:hover .gateway-link,
.gateway-panel:focus-visible .gateway-link { border-color: var(--paper); }
.gateway-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 42rem;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .28);
  animation: content-rise 850ms cubic-bezier(.2, .7, .2, 1) 120ms both;
}
.gateway-kicker {
  margin-bottom: .65rem;
  color: rgb(190, 185, 236);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.gateway-copy strong {
  margin-bottom: .55rem;
  font-size: clamp(2.8rem, 4.8vw, 5.4rem);
  font-weight: 300;
  letter-spacing: -.04em;
  line-height: .92;
}
.gateway-description {
  max-width: 40rem;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(.96rem, 1.25vw, 1.16rem);
  line-height: 1.45;
}
.gateway-link {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: .85rem;
  padding-bottom: .2rem;
  border-bottom: 1px solid rgba(255, 255, 255, .72);
  font-weight: 700;
}
.gateway-link > span { transition: transform 180ms ease; }
.gateway-controls {
  position: absolute;
  z-index: 4;
  right: clamp(1.5rem, 4vw, 4.5rem);
  bottom: 2.4rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  color: var(--paper);
}
.gateway-controls button {
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255,255,255,.68);
  color: inherit;
  background: rgba(23,23,27,.28);
  cursor: pointer;
}
.gateway-controls button:hover,
.gateway-controls button:focus-visible { color: var(--exedra-deep); background: var(--paper); }
.gateway-controls .gateway-toggle { width: auto; min-width: 4.5rem; padding-inline: .75rem; }
.gateway-controls span { min-width: 4.4rem; text-align: center; font-size: .8rem; letter-spacing: .1em; }
.gateway-signature {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 2rem);
  color: rgba(255, 255, 255, .78);
  font-size: .78rem;
  letter-spacing: .08em;
  text-align: center;
}

.hero {
  position: relative;
  min-height: max(100svh, 54rem);
  display: flex;
  align-items: flex-end;
  color: var(--paper);
  overflow: hidden;
}
.hero-slideshow,
.hero-slide { position: absolute; inset: 0; margin: 0; }
.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms cubic-bezier(.2, .7, .2, 1), visibility 900ms;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-image {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  animation: hero-reveal 900ms cubic-bezier(.2, .7, .2, 1) both;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(42, 42, 47, .70) 0%, rgba(42, 42, 47, .28) 49%, rgba(42, 42, 47, .08) 75%),
    linear-gradient(0deg, rgba(42, 42, 47, .54) 0%, transparent 42%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(56rem, 100% - 3rem);
  margin: 0 0 clamp(13rem, 21vh, 17rem) clamp(1.5rem, 7.5vw, 8rem);
  text-align: left;
  animation: content-rise 850ms cubic-bezier(.2, .7, .2, 1) 160ms both;
}
.eyebrow,
.kicker {
  margin: 0 0 1.1rem;
  color: var(--exedra);
  font-size: .81rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow {
  color: rgba(255, 255, 255, .84);
  font-size: calc(2.66667px + .81rem);
  text-transform: none;
}
.kicker-light { color: rgb(169, 163, 232); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 300; letter-spacing: -.028em; line-height: .98; }
h1 { max-width: 12ch; margin-bottom: 1.35rem; font-size: clamp(3.3rem, 7.1vw, 7.3rem); }
h2 { font-size: clamp(2.45rem, 4.6vw, 5.2rem); }
h3 { font-size: clamp(1.65rem, 2.1vw, 2.3rem); }
.hero-intro {
  max-width: 37rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
  line-height: 1.45;
}
.hero-actions,
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: .8rem 1.35rem;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: .96rem;
  transition: background 180ms, color 180ms, border-color 180ms;
}
.button-light { background: var(--paper); color: var(--ink); }
.button-light:hover { background: var(--exedra); color: var(--paper); }
.button-outline { border-color: rgba(255, 255, 255, .7); color: var(--paper); }
.button-outline:hover { background: var(--paper); color: var(--exedra-deep); }
.button-brand { background: var(--exedra); color: var(--paper); }
.button-brand:hover { background: var(--exedra-deep); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--exedra);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid;
  padding-bottom: .15rem;
}
.text-link span { transition: transform 180ms; }
.text-link:hover span { transform: translate(.18rem, -.18rem); }
.text-link-light { color: var(--paper); }
.project-marker {
  position: absolute;
  z-index: 2;
  right: clamp(1.5rem, 4.5vw, 4.5rem);
  bottom: clamp(13rem, 18vh, 15rem);
  width: clamp(16rem, 20vw, 20rem);
  padding-left: 1.25rem;
  border-left: 2px solid rgba(255, 255, 255, .68);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .34);
}
.project-marker p,
.project-marker strong,
.project-marker span { display: block; }
.project-marker p { margin-bottom: .35rem; color: rgba(255,255,255,.82); font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
.project-marker strong { margin-bottom: .15rem; font-size: 1.8rem; font-weight: 400; line-height: 1.15; }
.project-marker span { color: rgba(255,255,255,.88); font-size: 1.05rem; line-height: 1.4; }
.slideshow-controls {
  position: absolute;
  z-index: 3;
  right: clamp(1.5rem, 4.5vw, 4.5rem);
  bottom: 11.8rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  color: var(--paper);
}
.slideshow-controls.is-single { display: none; }
.slideshow-controls button {
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 50%;
  color: inherit;
  background: rgba(56,56,61,.22);
  font: inherit;
  cursor: pointer;
  transition: color 180ms, background 180ms;
}
.slideshow-controls button:hover,
.slideshow-controls button:focus-visible { color: var(--ink); background: var(--paper); }
.slideshow-controls span { min-width: 4.4rem; text-align: center; font-size: .8rem; letter-spacing: .1em; }
.slideshow-controls b { font-weight: 400; }
.hero-values {
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-inline: clamp(1.5rem, 5vw, 5rem);
  color: var(--paper);
  background: linear-gradient(rgba(56,56,61,0) 0%, rgba(56,56,61,.2) 24%, rgba(56,56,61,.54) 100%);
}
.hero-values article {
  min-width: 0;
  min-height: 10.5rem;
  padding: 1.45rem clamp(1rem, 2.25vw, 2.5rem) 1.35rem;
  border-left: 1px solid rgba(255,255,255,.18);
  text-align: center;
}
.hero-values article:last-child { border-right: 1px solid rgba(255,255,255,.18); }
.value-icon { display: block; width: auto; height: 3.25rem; margin: 0 auto .7rem; object-fit: contain; }
.hero-values h2 { margin-bottom: .45rem; font-size: .9rem; font-weight: 500; line-height: 1.2; letter-spacing: .12em; text-transform: uppercase; }
.hero-values p { max-width: 19rem; margin: 0 auto; color: rgba(255,255,255,.7); font-size: .88rem; line-height: 1.45; }

.section-shell { width: var(--page); margin-inline: auto; }
.intro,
.expertise {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1.05fr) minmax(20rem, .75fr);
  gap: clamp(2rem, 4.5vw, 5.5rem);
  padding-block: clamp(6rem, 11vw, 10.5rem);
}
.section-index { color: var(--exedra); font-size: .78rem; letter-spacing: .14em; padding-top: .35rem; }
.section-index::after { content: ""; display: block; width: 1px; height: 3rem; margin: .8rem 0 0 .45rem; background: currentcolor; opacity: .45; }
.intro h2,
.expertise h2,
.approach-heading h2 { font-size: clamp(2.12rem, calc(-5.33333px + 4.6vw), 4.87rem); }
.intro h2,
.expertise h2 { margin-bottom: 0; }
.intro-copy { padding-top: 2rem; }
.intro-copy .lead { color: var(--ink); font-size: 1.25rem; line-height: 1.5; }
.intro-copy p { color: var(--muted); }
.intro-copy .text-link { margin-top: 1rem; }

.selected-residences { position: relative; min-height: 48rem; overflow: hidden; color: var(--paper); background: var(--exedra-deep); }
.residence-slides { min-height: inherit; }
.project-focus { position: relative; min-height: 48rem; color: var(--paper); background: var(--exedra-deep); overflow: hidden; }
.residence-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(2.5rem);
  pointer-events: none;
  transition: opacity 520ms ease, transform 650ms cubic-bezier(.2,.7,.2,1), visibility 0s linear 650ms;
}
.residence-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
  transition-delay: 0s;
}
.project-image-wrap { position: absolute; inset: 0; overflow: hidden; }
.project-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(33,28,81,.02) 0%, rgba(33,28,81,.12) 38%, rgba(33,28,81,.78) 69%, rgba(33,28,81,.96) 100%),
    linear-gradient(0deg, rgba(33,28,81,.26) 0%, transparent 42%);
}
.project-image-wrap img { height: 100%; object-fit: cover; object-position: 42% center; transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.project-focus:hover .project-image-wrap img { transform: scale(1.018); }
.project-detail {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(43%, 42rem);
  min-height: 48rem;
  margin-left: auto;
  padding: clamp(3rem, 6vw, 7rem);
}
.project-detail h2 { margin-bottom: .5rem; }
.project-location { margin-bottom: 2.4rem; color: rgb(182,177,223); }
.project-detail > p:not(.kicker):not(.project-location) { max-width: 35rem; color: rgba(255,255,255,.78); }
.project-detail .button { align-self: flex-start; margin-top: 1.4rem; }
.project-facts { margin: 2rem 0; border-top: 1px solid rgba(255,255,255,.18); }
.project-facts div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.project-facts dt { color: rgb(182,177,223); font-size: .83rem; text-transform: uppercase; letter-spacing: .08em; }
.project-facts dd { margin: 0; }
.residence-controls {
  position: absolute;
  z-index: 4;
  left: clamp(1.5rem, 4.5vw, 4.5rem);
  bottom: 2.25rem;
  display: flex;
  align-items: center;
  gap: .9rem;
}
.residence-controls button {
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 50%;
  color: inherit;
  background: rgba(56,56,61,.3);
  font: inherit;
  cursor: pointer;
  transition: color 180ms, background 180ms;
}
.residence-controls button:hover,
.residence-controls button:focus-visible { color: var(--ink); background: var(--paper); }
.residence-controls span { min-width: 4.4rem; text-align: center; font-size: .8rem; letter-spacing: .1em; }
.residence-controls b { font-weight: 400; }

.expertise { grid-template-columns: 4rem minmax(16rem, .65fr) minmax(0, 1fr); }
.expertise-list { border-top: 1px solid var(--line); }
.expertise-list article { display: grid; grid-template-columns: 3rem minmax(10rem, .7fr) 1fr; gap: 1.5rem; align-items: baseline; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.expertise-list article > span { color: var(--exedra); font-size: .8rem; }
.expertise-list h3 { margin-bottom: 0; font-size: clamp(1.45rem, 1.9vw, 2rem); }
.expertise-list p { margin-bottom: 0; color: var(--muted); }

.approach { padding-block: clamp(6rem, 10vw, 9rem); color: var(--paper); background: var(--ink); }
.approach-heading { display: grid; grid-template-columns: 4rem minmax(0, 1.05fr) minmax(20rem, .75fr); gap: clamp(2rem, 4.5vw, 5.5rem); }
.section-index-light { color: rgb(169,163,232); }
.approach-heading > p { align-self: end; max-width: 35rem; color: rgba(255,255,255,.66); }
.process { margin-top: clamp(4rem, 7vw, 7rem); list-style: none; padding-left: calc(4rem + clamp(2rem, 4.5vw, 5.5rem)); }
.process li { display: grid; grid-template-columns: 4rem minmax(10rem, .55fr) minmax(16rem, 1fr); gap: 2rem; padding: 1.8rem 0; border-top: 1px solid rgba(255,255,255,.18); }
.process li:last-child { border-bottom: 1px solid rgba(255,255,255,.18); }
.process li > span { color: rgb(169,163,232); font-size: .8rem; }
.process li div { display: contents; }
.process h3 { margin-bottom: 0; font-size: 2rem; }
.process p { margin-bottom: 0; color: rgba(255,255,255,.66); }

.contact { width: min(100% - 3rem, 69rem); margin-inline: auto; padding-block: clamp(7rem, 12vw, 12rem); text-align: center; }
.contact h2 { margin-bottom: 1.5rem; }
.contact > p:not(.kicker) { max-width: 39rem; margin: 0 auto 2rem; color: var(--muted); font-size: 1.15rem; }
.contact-actions { justify-content: center; }

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 4rem;
  align-items: start;
  padding: 3.5rem clamp(1.5rem, 4vw, 4.5rem);
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.footer-brand { position: relative; grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; min-height: 6rem; }
.riba-mark { position: absolute; left: 0; display: block; width: 9.5rem; height: auto; }
.site-footer address { color: var(--muted); font-style: normal; }
.site-footer p { margin-bottom: 0; color: var(--muted); }
.footer-services { grid-column: 2 / 3; text-align: center; }
.copyright { grid-column: 3; text-align: right; font-size: .8rem; }
.copyright a { text-underline-offset: .22rem; }

.inner-main { min-height: 70vh; padding-block: 9rem 5rem; }
.inner-main .item-page { max-width: 56rem; margin-inline: auto; }
.inner-main h1 { color: var(--exedra-deep); font-size: clamp(3rem, 7vw, 5.5rem); }
.inner-main h2 { color: var(--exedra); font-size: 1.75rem; }
.error-page { min-height: 100vh; display: grid; place-items: center; background: var(--mist); }
.error-shell { width: min(100% - 3rem, 54rem); text-align: center; }
.error-shell .wordmark { justify-content: center; margin-bottom: 4rem; }
.error-shell h1 { max-width: none; margin-inline: auto; color: var(--exedra-deep); font-size: clamp(2.5rem, 6vw, 5rem); }

@keyframes hero-reveal {
  from { transform: scale(1.035); filter: brightness(.8); }
  to { transform: scale(1); filter: brightness(1); }
}
@keyframes content-rise {
  from { opacity: 0; transform: translateY(1.4rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1400px) {
  .site-header { padding-inline: 1.25rem; }
  .site-header > .wordmark {
    gap: .55rem;
    font-size: clamp(2.35rem, 3.25vw, 3rem);
  }
  .header-links {
    right: 1.25rem;
    gap: .55rem;
    font-size: .7rem;
    letter-spacing: .02em;
  }
  .header-link-enquiry { padding: .45rem .5rem; }
  .header-socials a,
  .header-socials .social-icon { width: 2rem; height: 2rem; }
}

@media (max-width: 1100px) {
  :root { --header-height: 7.5rem; }
  .site-header,
  .site-header.is-scrolled,
  .exedra-inner .site-header { height: var(--header-height); align-items: flex-start; padding-top: .85rem; }
  .site-header > .wordmark { top: .85rem; }
  .header-links {
    top: 4.75rem;
    left: 1.25rem;
    right: 1.25rem;
    justify-content: center;
    gap: .75rem;
    padding: .45rem .65rem;
    color: var(--paper);
    background: rgba(56,56,61,.72);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
  }
  .site-header.is-scrolled .header-links,
  .exedra-inner .site-header .header-links { color: var(--ink); background: rgba(255,255,255,.94); border-color: var(--line); }
}

@media (max-width: 960px) {
  .project-marker { display: none; }
  .hero-content { margin-left: 2rem; }
  .slideshow-controls { bottom: 11.8rem; }
  .intro,
  .expertise,
  .approach-heading { grid-template-columns: 3rem 1fr; }
  .intro-copy,
  .expertise-list,
  .approach-heading > p { grid-column: 2; }
  .project-focus { min-height: 45rem; }
  .selected-residences { min-height: 45rem; }
  .project-image-wrap::after { background: linear-gradient(0deg, rgba(33,28,81,.97) 0%, rgba(33,28,81,.74) 60%, rgba(33,28,81,.2) 100%); }
  .project-detail { justify-content: flex-end; width: 100%; min-height: 45rem; padding-top: 14rem; }
  .process { padding-left: calc(3rem + clamp(2rem, 4.5vw, 5.5rem)); }
}

@media (max-width: 720px) {
  :root { --page: min(100% - 2rem, 1320px); --header-height: 5.5rem; }
  .site-header { position: absolute; height: var(--header-height); padding-inline: 1rem; }
  .site-header.is-scrolled,
  .exedra-inner .site-header { height: var(--header-height); }
  .header-tools { gap: 0; }
  .header-socials {
    position: absolute;
    top: 5.9rem;
    left: .7rem;
    flex-direction: column;
    padding: .25rem;
    color: var(--paper);
    background: rgba(56,56,61,.72);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(10px);
  }
  .site-header.is-scrolled .header-socials,
  .exedra-inner .site-header .header-socials { color: var(--ink); background: rgba(255,255,255,.94); border-color: var(--line); }
  .header-links { top: 5.9rem; left: 4.15rem; right: .7rem; justify-content: flex-end; flex-wrap: wrap; gap: .35rem .7rem; padding: .4rem .5rem; color: var(--paper); background: rgba(56,56,61,.72); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(10px); font-size: .72rem; line-height: 1.25; }
  .site-header.is-scrolled .header-links,
  .exedra-inner .site-header .header-links { color: var(--ink); background: rgba(255,255,255,.94); border-color: var(--line); }
  .header-link-enquiry { padding: .35rem .45rem; }
  .exedra-gateway .header-socials { display: none; }
  .exedra-gateway .header-links {
    left: .7rem;
    justify-content: center;
  }
  .exedra-gateway .gateway-sectors { inset: 9.5rem 0 0; }
  .gateway-panel { padding: .75rem 1rem; }
  .gateway-copy { max-width: min(31rem, 100%); }
  .gateway-kicker { margin-bottom: .3rem; font-size: .68rem; }
  .gateway-copy strong { margin-bottom: .4rem; font-size: clamp(2.35rem, 12vw, 3.7rem); }
  .gateway-description { max-width: 31rem; font-size: .84rem; line-height: 1.3; }
  .gateway-link { margin-top: .65rem; font-size: .85rem; }
  .gateway-controls { right: 1rem; bottom: 1rem; gap: .5rem; }
  .gateway-controls .gateway-toggle { min-width: 3.8rem; padding-inline: .5rem; }
  .gateway-signature { display: none; }
  .hero { min-height: 69rem; }
  .hero-image { object-position: 58% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(42,42,47,.8) 0%, rgba(42,42,47,.3) 72%); }
  .hero-content { width: calc(100% - 2rem); margin: 0 1rem 18.5rem; }
  .hero-content h1 br { display: none; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .slideshow-controls { right: 1rem; bottom: 16.8rem; }
  .hero-values { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-inline: 0; }
  .hero-values article { min-height: 8rem; padding: .75rem 1rem; }
  .hero-values article:nth-child(2n+1) { border-left: 0; }
  .hero-values article:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
  .hero-values article:last-child { border-right: 0; }
  .value-icon { height: 2.5rem; margin-bottom: .45rem; }
  .hero-values h2 { font-size: .82rem; letter-spacing: .08em; }
  .hero-values p { font-size: .82rem; line-height: 1.35; }
  .intro,
  .expertise,
  .approach-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .section-index { display: none; }
  .intro-copy,
  .expertise-list,
  .approach-heading > p { grid-column: 1; }
  .intro-copy { padding-top: 1rem; }
  .project-image-wrap { min-height: 72vw; }
  .project-detail { padding: 3.5rem 1rem 4rem; }
  .residence-controls { left: 1rem; bottom: 1rem; }
  .residence-slide .project-detail { padding-bottom: 6.5rem; }
  .expertise-list article { grid-template-columns: 2.25rem 1fr; gap: 1rem; }
  .expertise-list article p { grid-column: 2; }
  .process { padding-left: 0; }
  .process li { grid-template-columns: 2.25rem 1fr; gap: 1rem; }
  .process li div { display: block; }
  .process h3 { margin-bottom: .8rem; }
  .site-header > .wordmark { z-index: 52; flex-direction: column; align-items: center; gap: .05rem; font-size: 2.36rem; line-height: .78; }
  .site-footer { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: 1; flex-direction: column; gap: 1.5rem; min-height: 0; }
  .footer-wordmark { flex-direction: column; align-items: center; gap: .1rem; font-size: 2.7rem; line-height: .9; }
  .riba-mark { position: static; }
  .site-footer address { text-align: center; }
  .footer-services,
  .copyright { grid-column: 1; text-align: center; }
  .cookie-consent { align-items: stretch; flex-direction: column; gap: .9rem; }
  .cookie-consent-actions { justify-content: flex-end; }
}

@media (max-height: 670px) {
  .gateway-description { display: none; }
  .gateway-link { margin-top: .65rem; }
}

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