/* ============================================================
   Rejuvenating Arlington House — consultation site styles
   Brand values live in the custom properties below.
   ============================================================ */

:root {
  /* Colour */
  --ink: #111111;
  --sand: #c9b191;
  --bg: #f4f2f0;
  --surface: #ffffff;
  --ink-soft: rgba(17, 17, 17, 0.68);
  --ink-faint: rgba(17, 17, 17, 0.62); /* lightest text tone that still meets AA on --bg */
  /* Darkened derivative of the sand accent — the accent itself fails AA as
     text on light backgrounds, so small accent type uses this bronze. */
  --bronze: #7d6543;
  --hairline: rgba(17, 17, 17, 0.16);
  --hairline-light: rgba(244, 242, 240, 0.25);
  --paper-light: rgba(244, 242, 240, 0.82);

  /* Type */
  --font-heading: "Montserrat", "Arial", "Helvetica Neue", sans-serif;
  --font-body: Arial, "Helvetica Neue", sans-serif;
  --text-display: clamp(2.1rem, 0.9rem + 5.4vw, 4.6rem);
  --text-h2: clamp(1.6rem, 1.05rem + 2.4vw, 2.7rem);
  --text-h3: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  --text-body: clamp(1rem, 0.96rem + 0.18vw, 1.115rem);
  --text-small: 0.875rem;
  --text-caption: 1rem;

  /* Layout */
  --container: 72rem;
  --container-narrow: 46rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --space-section: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --space-block: clamp(2.5rem, 1.75rem + 3vw, 5rem);
  --header-h: 4.25rem;

  /* Motion */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  color-scheme: light;
}

/* ------------------------------------------------------------ reset */

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

* {
  margin: 0;
}

html {
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
  scroll-padding-bottom: var(--cookie-banner-h, 0px);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: clip;
  overflow-wrap: break-word;
  padding-bottom: var(--cookie-banner-h, 0px);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

a {
  color: inherit;
}

::selection {
  background: var(--sand);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.section--dark :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--sand);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75em 1.25em;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: var(--text-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transform: translateY(calc(-100% - 1.5rem));
}

.skip-link:focus-visible {
  transform: none;
}

/* ------------------------------------------------------------ layout */

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--space-section);
}

.section--surface {
  background: var(--surface);
}

/* ------------------------------------------------------------ type */

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.kicker {
  display: flex;
  align-items: baseline;
  gap: 0.75em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-small);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.kicker__num {
  color: #c9b191;
  letter-spacing: 0.05em;
}

.section__head {
  margin-bottom: var(--space-block);
  padding-top: 1.5rem;
}

.section__head .kicker {
  align-items: center;
  width: 100%;
}

.section__head .kicker::after {
  content: "";
  flex: 1;
  min-width: 2rem;
  height: 1px;
  background: var(--hairline);
}

.section__title {
  font-size: var(--text-h2);
  max-width: 22ch;
  margin-top: 0.6em;
}

.section__standfirst {
  max-width: 62ch;
  margin-top: 1.25em;
  color: var(--ink-soft);
}

.lead {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: calc(var(--text-body) * 1.12);
  line-height: 1.6;
  color: var(--bronze);
}

p + p {
  margin-top: 1em;
}

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9em 1.9em;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-small);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--solid {
  background: var(--ink);
  color: var(--bg);
}

.btn--outline {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--ink);
}

.btn--accent {
  background: #c9b191;
  border-color: #c9b191;
  color: var(--ink);
}

.btn--accent:disabled {
  opacity: 1;
}

.btn--outline-light {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--ink);
}

@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover:not(:disabled) {
    background: transparent;
    color: var(--ink);
  }
  .btn--outline:hover:not(:disabled) {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
  }
  .btn--accent:hover {
    background: transparent;
    border-color: var(--sand);
    color: var(--sand);
  }
  .btn--outline-light:hover:not(:disabled) {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--bg);
  }
}

/* ------------------------------------------------------------ header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(17, 17, 17, 0.92);
  color: var(--bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms ease, background-color 240ms ease, color 240ms ease;
}

.site-header.is-over-dark {
  background: rgba(244, 242, 240, 0.92);
  color: var(--ink);
}

.site-header.is-scrolled {
  border-bottom-color: var(--hairline-light);
}

.site-header.is-over-dark.is-scrolled {
  border-bottom-color: var(--hairline);
}

.site-header__inner {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.site-header__brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-header__brand-kicker {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.64rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--sand);
}

.site-header.is-over-dark .site-header__brand-kicker {
  color: var(--bronze);
}

.site-header__brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.7vw, 1.9rem);
  list-style: none;
  padding: 0;
}

.site-nav a {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  padding-block: 0.4em;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  border-bottom-color: currentColor;
}

.site-nav a.site-nav__cta {
  border: 1px solid var(--ink);
  background: var(--sand);
  border-color: var(--sand);
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.55em 1.1em;
  text-transform: uppercase;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.site-nav a.site-nav__cta:hover,
.site-nav a.site-nav__cta.is-active {
  background: var(--bronze);
  border-color: var(--bronze);
  color: var(--bg);
}

/* Mobile navigation */

.nav-toggle {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--sand);
  background: var(--sand);
  color: var(--ink);
  cursor: pointer;
}

.site-header.is-over-dark .nav-toggle {
  border-color: var(--hairline);
}

.nav-toggle__line {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  height: 2px;
  background: currentColor;
  transition: transform 220ms var(--ease-out);
}

.nav-toggle__line:nth-child(1) {
  top: calc(50% - 4px);
}

.nav-toggle__line:nth-child(2) {
  top: calc(50% + 3px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100dvh;
  overflow-y: auto;
  background: var(--ink);
  color: var(--bg);
  padding: calc(var(--header-h) + 2rem + env(safe-area-inset-top)) var(--gutter) calc(2rem + env(safe-area-inset-bottom) + var(--cookie-banner-h, 0px));
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
}

.site-header.is-over-dark .mobile-nav {
  background: var(--bg);
  color: var(--ink);
}

.mobile-nav.is-open {
  opacity: 1;
  transform: none;
}

.mobile-nav__list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav a {
  display: block;
  padding: 1.15rem 0.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
}

@media (max-width: 63.99rem) {
  .site-nav {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .mobile-nav {
    display: block;
  }
  .mobile-nav[hidden] {
    display: none;
  }
}

body.nav-open {
  overflow: hidden;
}

/* ------------------------------------------------------------ hero */

.hero {
  --hero-intro-offset: clamp(3rem, 8vh, 6rem);
  position: relative;
  padding-top: calc(var(--header-h) + var(--hero-intro-offset));
}

.hero__intro {
  position: relative;
  z-index: 0;
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

.hero__intro::before {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--hero-intro-offset)) auto 0 50%;
  z-index: 0;
  width: 100vw;
  background: url("../img/wall-texture-hero.webp") center / cover no-repeat;
  opacity: 0.2;
  pointer-events: none;
  transform: translateX(-50%);
}

.hero__intro > * {
  position: relative;
  z-index: 1;
}

.hero__heading {
  font-size: var(--text-display);
  letter-spacing: -0.02em;
  margin-top: 1rem;
  max-width: 14ch;
}

.hero__lead {
  margin-top: clamp(1.5rem, 4vh, 2.5rem);
  max-width: 44rem;
}

.hero__lead p {
  font-size: calc(var(--text-body) * 1.12);
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero__figure img {
  width: 100%;
  min-height: clamp(16rem, 40vw, 24rem);
  max-height: 72vh;
  object-fit: cover;
  object-position: 50% 68%;
}

.hero__caption {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
  padding-top: 0.75rem;
  font-size: var(--text-small);
  color: var(--ink-faint);
}

/* ------------------------------------------------------------ shared figure frame */

.frame img {
  width: 100%;
}

.lightbox-trigger {
  display: block;
  cursor: zoom-in;
}

.lightbox-trigger img {
  transition: opacity 180ms ease;
}

.lightbox-trigger:hover img {
  opacity: 0.82;
}

.frame figcaption {
  padding-top: 0.65rem;
  font-size: var(--text-small);
  color: var(--ink-faint);
}

.frame__credit {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------ section grid (copy + figures) */

.section__grid {
  display: grid;
  gap: var(--space-block);
}

.section__copy {
  max-width: 62ch;
}

.section__copy .lead {
  margin-bottom: 1em;
}

.lr-layout {
  grid-template-areas:
    "copy"
    "figures";
}

.lr-copy {
  grid-area: copy;
  display: grid;
  grid-template-columns: clamp(3.5rem, 9vw, 6rem) minmax(0, 1fr);
  grid-template-areas:
    "logo lead"
    "details details";
  column-gap: clamp(1rem, 3vw, 2rem);
  row-gap: 1em;
  align-items: center;
}

.lr-copy .lead {
  grid-area: lead;
}

.lr-copy > p:last-child {
  grid-area: details;
}

.lr-logo-panel {
  display: grid;
  grid-area: logo;
  justify-items: center;
}

.lr-logo {
  width: 100%;
}

.site-figures,
.lr-figures {
  display: grid;
  gap: 1.75rem;
  align-content: start;
}

.lr-figures {
  grid-area: figures;
  align-items: stretch;
}

.lr-figures .frame img {
  aspect-ratio: 587 / 386;
  object-fit: cover;
}

.site-figures {
  width: 100%;
  max-width: none;
  justify-self: stretch;
}

.frame--map {
  position: relative;
  width: 100%;
  max-width: none;
}

.lightbox-trigger--map {
  position: relative;
  display: block;
}

.map-zoom {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--sand);
  border: 1px solid rgba(17, 17, 17, 0.12);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.12);
  backdrop-filter: blur(2px);
  color: var(--ink);
}

.map-zoom svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-feature-image {
  margin-top: clamp(2rem, 4vw, 3rem);
  width: 100%;
}

.site-feature-image img {
  display: block;
  width: 100%;
  height: auto;
}

.site-feature-image figcaption {
  padding-top: 0.65rem;
  font-size: var(--text-small);
  color: var(--ink-faint);
}

@media (min-width: 44rem) {
  #site .section__grid {
    grid-template-columns: minmax(0, 7fr) minmax(15rem, 5fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: start;
  }

  .site-figures {
    max-width: 28rem;
    justify-self: end;
  }

  .frame--map {
    max-width: 28rem;
  }
}

@media (min-width: 56rem) {
  .section__grid {
    grid-template-columns: 7fr 5fr;
    gap: clamp(2.5rem, 5vw, 5rem);
  }

  .lr-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "figures";
  }

  .lr-copy {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
      "lead logo"
      "details logo";
    column-gap: clamp(2.5rem, 5vw, 5rem);
  }

  .lr-logo-panel {
    align-self: center;
  }

  .lr-logo {
    width: clamp(4.75rem, 15vw, 8rem);
  }

  .lr-figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 40rem) and (max-width: 55.99rem) {
  .lr-figures {
    grid-template-columns: 1fr 1fr;
  }
}

.ambitions__item h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0.9rem 0 0.5rem;
}

.ambitions__item p {
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--ink-soft);
}

.icon {
  display: inline-flex;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--bronze);
}

.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------------------------------------ carousel */

.carousel-heading {
  max-width: 18ch;
  margin-top: var(--space-block);
  font-size: var(--text-h2);
}

.carousel {
  margin-top: clamp(1.5rem, 1rem + 2vw, 2.75rem);
}

.carousel__viewport {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
  cursor: grab;
  user-select: none;
}

.carousel__viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.carousel__viewport::-webkit-scrollbar {
  display: none;
}

.carousel__slide {
  flex: 0 0 clamp(16rem, 38vw, 26rem);
  scroll-snap-align: start;
}

.carousel__slide img {
  width: 100%;
  aspect-ratio: 732 / 584;
  object-fit: cover;
}

.carousel__slide figcaption {
  padding: 0.85rem 1rem;
  background: var(--ink);
  color: var(--bg);
  font-size: clamp(1rem, 0.94rem + 0.28vw, 1.18rem);
  font-weight: 700;
  line-height: 1.35;
}

.carousel__slide figcaption span {
  display: block;
}

.carousel__controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.carousel__btn {
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease,
    transform 160ms var(--ease-out);
}

.carousel__btn:active {
  transform: scale(0.94);
}

.carousel__btn[disabled] {
  opacity: 0.3;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .carousel__btn:not([disabled]):hover {
    background: var(--ink);
    color: var(--bg);
  }
}

.carousel__btn svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel__count {
  font-size: var(--text-small);
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------ team */

.team {
  margin-top: var(--space-block);
  margin-inline: calc(50% - 50vw);
  margin-bottom: calc(-1 * var(--space-section));
  background: var(--ink);
  color: var(--bg);
  border-top: 1px solid var(--hairline-light);
  padding: clamp(3rem, 5vw, 5rem) max(var(--gutter), calc((100vw - var(--container)) / 2));
}

.team__title {
  font-size: var(--text-h3);
  color: var(--bg);
}

.team__intro {
  margin-top: 0.75rem;
  color: rgba(244, 242, 240, 0.78);
  max-width: 62ch;
}

.team__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem clamp(1.25rem, 3vw, 2.5rem);
  margin-top: 2rem;
}

.team__item {
  min-height: 5.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--hairline-light);
  padding-block: 1.25rem;
}

.team__logo {
  display: block;
  width: min(100%, var(--logo-width, 9rem));
  height: var(--logo-height, 3rem);
  object-fit: contain;
  object-position: center;
  filter: brightness(0) invert(1);
  opacity: 0.82;
}

.team__logo--light-asset {
  filter: none;
}

.team__logo--stanton {
  --logo-width: 10.5rem;
  --logo-height: 3.1rem;
}

.team__logo--dp9 {
  --logo-width: 11.73rem;
  --logo-height: 5.87rem;
}

.team__logo--gordon {
  --logo-width: 8.3rem;
  --logo-height: 3.1rem;
}

.team__logo--arup {
  --logo-width: 7.5rem;
  --logo-height: 2.35rem;
}

.team__logo--lowick {
  --logo-width: 7.4rem;
  --logo-height: 4rem;
}

@media (min-width: 40rem) {
  .team__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .team__list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------ ambitions */

.ambitions {
  display: grid;
  gap: 2rem clamp(1.25rem, 2.5vw, 2.5rem);
}

@media (min-width: 40rem) {
  .ambitions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 64rem) {
  .ambitions {
    grid-template-columns: repeat(5, 1fr);
  }
}

.ambitions__item {
  border-top: 1px solid var(--hairline);
}

.ambitions__link {
  display: block;
  height: 100%;
  padding-top: 1.25rem;
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms var(--ease-out);
}

.ambitions__link .icon {
  background-color: currentColor;
  -webkit-mask: var(--icon-url) center / contain no-repeat;
  mask: var(--icon-url) center / contain no-repeat;
  transition: color 180ms ease, transform 180ms var(--ease-out);
}

.icon--homes { --icon-url: url("../img/proposal-icon-homes.svg"); }
.icon--landscape { --icon-url: url("../img/proposal-icon-landscape.svg"); }
.icon--best-use { --icon-url: url("../img/proposal-icon-best-use.svg"); }
.icon--retrofit { --icon-url: url("../img/proposal-icon-retrofit.svg"); }
.icon--st-james { --icon-url: url("../img/proposal-icon-st-james.svg"); }

.ambitions__link:hover,
.ambitions__link:focus-visible {
  color: var(--ink);
}

.ambitions__link:hover .icon,
.ambitions__link:focus-visible .icon {
  color: var(--sand);
  transform: translateY(-0.15rem);
}

/* ------------------------------------------------------------ proposal blocks */

.proposal {
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  margin-top: var(--space-block);
  border-top: 1px solid var(--hairline);
  padding-top: var(--space-block);
  align-items: start;
}

@media (min-width: 56rem) {
  .proposal {
    grid-template-columns: 6fr 5fr;
    /* the copy sets the row height; the figure stretches to match it */
    align-items: stretch;
  }
  .proposal:nth-of-type(even) .proposal__copy {
    order: 2;
  }
  .proposal:nth-of-type(even) .proposal__figure {
    order: 1;
  }
}

.proposal__copy {
  max-width: 58ch;
}

/* Image figures fill the full height of the copy beside them, caption
   included: the caption keeps its natural height and the media area takes
   whatever is left over, cropping the image rather than letterboxing it. */

.proposal__figure--image {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.proposal__media {
  position: relative;
  overflow: hidden;
  background-color: rgba(201, 177, 145, 0.18);
  background-repeat: no-repeat;
}

.proposal__figure--image figcaption {
  flex: 0 0 auto;
}

/* Only once copy and figure sit side by side is there a height to match; on
   narrow screens the image keeps its own aspect ratio. */
@media (min-width: 56rem) {
  .proposal__media {
    flex: 1 1 auto;
    min-height: clamp(14rem, 26vw, 20rem);
  }

  .proposal__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
}

.proposal__figure--stats {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.proposal__figure--stats .stats {
  margin: 0;
  width: auto;
  max-width: none;
  padding: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 1 1 auto;
  align-content: center;
}

.proposal__figure--stats .stats__label {
  max-width: 22ch;
}

.proposal__figure--materials {
  min-width: 0;
}

.proposal__figure--materials .carousel__viewport {
  gap: 1rem;
  padding-bottom: 0;
}

.proposal__figure--materials .carousel__slide {
  flex-basis: min(100%, 28rem);
}

.proposal__figure--materials .carousel__slide img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.proposal__figure--materials .carousel__slide figcaption {
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  padding: 0.7rem 0.75rem;
  font-size: var(--text-caption);
  line-height: 1.2;
  white-space: nowrap;
}

.proposal__figure--materials .carousel__controls {
  margin-top: 1rem;
}

.proposal__placeholder {
  min-height: 22rem;
  display: grid;
  place-items: center;
  border: 1px dashed var(--sand);
  background: linear-gradient(135deg, rgba(185, 151, 105, 0.12), rgba(30, 34, 32, 0.06));
  color: var(--bronze);
  font-size: var(--text-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proposal__title {
  font-size: var(--text-h3);
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 1.1em;
}

.proposal__num {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--bronze);
  border: 1px solid var(--sand);
  border-radius: 50%;
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  transform: translateY(-0.2em);
}

/* ------------------------------------------------------------ stats band */

.stats {
  background: var(--ink);
  color: var(--bg);
  margin-top: var(--space-block);
  padding: clamp(3rem, 6vw, 5rem) var(--gutter);
  display: grid;
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
}

@media (min-width: 40rem) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 64rem) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    max-width: calc(var(--container) + 12rem);
    margin-inline: auto;
  }
}

.stats__value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.6rem, 2rem + 3vw, 4.25rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--sand);
  letter-spacing: -0.02em;
}

.stats__value [aria-hidden="true"] {
  font-size: 0.55em;
}

.stats__label {
  margin-top: 0.9rem;
  font-size: var(--text-small);
  line-height: 1.6;
  color: rgba(244, 242, 240, 0.78);
  max-width: 26ch;
}

/* ------------------------------------------------------------ before / after comparison */

.visuals {
  margin-top: var(--space-block);
  border-top: 1px solid var(--hairline);
  padding-top: var(--space-block);
}

.visuals__title {
  font-size: var(--text-h3);
}

.visuals__hint {
  margin-top: 0.6rem;
  font-size: var(--text-small);
  color: var(--ink-soft);
}

.visuals__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: 2.5rem;
  align-items: start;
}

@media (min-width: 44rem) {
  .visuals__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 64rem) {
  .visuals__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.compare {
  max-width: 34rem;
}

.compare__frame {
  position: relative;
  overflow: hidden;
  touch-action: pan-y;
  /* One shared frame for all three pairs keeps handles and captions on a
     common baseline; both layers of a pair always scale identically. */
  aspect-ratio: 474 / 650;
}

.compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.compare__topwrap {
  position: absolute;
  inset: 0;
  /* --pos is the visible share of the "existing" layer, driven by the range input */
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--bg);
  box-shadow: 0 0 6px rgba(17, 17, 17, 0.35);
}

.compare__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
}

.compare__handle::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  background: currentColor;
  color: var(--ink);
  clip-path: polygon(35% 20%, 15% 50%, 35% 80%, 35% 62%, 65% 62%, 65% 80%, 85% 50%, 65% 20%, 65% 38%, 35% 38%);
}

.compare__badge {
  position: absolute;
  top: 0.75rem;
  z-index: 2;
  padding: 0.35em 0.8em;
  background: var(--paper-light);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.compare__badge--left {
  left: 0.75rem;
}

.compare__badge--right {
  right: 0.75rem;
}

.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.compare__frame:has(.compare__range:focus-visible) {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.compare figcaption {
  padding-top: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------ benefits */

.section--benefits {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.benefits__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.benefits__backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.benefits__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    rgba(244, 242, 240, 0.35) 45%,
    rgba(244, 242, 240, 0.55) 100%
  );
}

.benefits__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 44rem) {
  .benefits__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Sustainability box sits below Homes and Architecture, spanning both columns */
  .benefit--wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 56rem) {
  .benefit--wide ul {
    columns: 2;
    column-gap: clamp(1.5rem, 4vw, 3rem);
  }

  .benefit--wide li {
    break-inside: avoid;
    margin-bottom: 0.55rem;
  }

  .benefit--wide li + li {
    margin-top: 0;
  }
}

.benefit {
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.benefit h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.benefit h3::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 2px;
  background: var(--sand);
  margin-top: 0.7rem;
}

.benefit ul {
  margin-top: 1.1rem;
}

.benefit li {
  position: relative;
  padding-left: 1.1rem;
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--ink-soft);
}

.benefit li + li {
  margin-top: 0.55rem;
}

.benefit li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.4rem;
  height: 1px;
  background: var(--bronze);
}

.benefits__caption {
  margin-top: 1.5rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* ------------------------------------------------------------ FAQ */

#faqs {
  position: relative;
  overflow: hidden;
}

#faqs::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../img/wall-texture-hero.webp") center / cover no-repeat;
  opacity: 0.2;
  pointer-events: none;
}

#faqs > .container {
  position: relative;
  z-index: 1;
}

.faq {
  border-bottom: 1px solid var(--hairline);
  /* Narrow reading measure for the accordion, kept on the shared left grid edge */
  max-width: var(--container-narrow);
}

.faq__item {
  border-top: 1px solid var(--hairline);
}

.faq__item summary {
  position: relative;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: calc(var(--text-body) * 1.02);
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__marker {
  position: relative;
  flex: 0 0 auto;
  width: 0.9rem;
  height: 0.9rem;
  align-self: center;
}

.faq__marker::before,
.faq__marker::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: var(--bronze);
  transition: transform 240ms var(--ease-out);
}

.faq__marker::after {
  transform: rotate(90deg);
}

.faq__item[open] .faq__marker::after {
  transform: rotate(0deg);
}

.faq__answer {
  padding: 0 0.25rem 1.5rem;
  max-width: 60ch;
  color: var(--ink-soft);
}

/* Animate open/close where the browser supports keyword interpolation */
@supports (interpolate-size: allow-keywords) {
  .faq__item::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 260ms var(--ease-out), content-visibility 260ms allow-discrete;
  }
  .faq__item[open]::details-content {
    block-size: auto;
  }
  html {
    interpolate-size: allow-keywords;
  }
}

/* ------------------------------------------------------------ timeline */

.timeline {
  display: grid;
  gap: 4.75rem 2.5rem;
  margin-top: 5.5rem;
  padding-top: 3.25rem;
}

.timeline__step {
  position: relative;
  padding-top: 2rem;
}

.timeline__step::before {
  content: "";
  position: absolute;
  top: -0.34rem;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--ink);
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 280ms ease 320ms, transform 360ms var(--ease-out) 320ms;
  z-index: 1;
}

.timeline__step::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--hairline);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 760ms var(--ease-out);
}

.timeline__step.is-visible::before {
  opacity: 1;
  transform: scale(1);
}

.timeline__step.is-visible::after {
  transform: scaleX(1);
}

.timeline__step--current::before {
  background: var(--sand);
  border-color: var(--sand);
  box-shadow: 0 0 0 0 rgba(201, 177, 145, 0.45);
  animation: timeline-pulse 1800ms ease-out 900ms infinite;
}

.timeline__icon {
  display: inline-flex;
  float: left;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  margin: -0.12rem 0.85rem 0.5rem 0;
  color: var(--bronze);
  opacity: 0;
  transform: translateY(0.5rem);
  transition: opacity 420ms ease 260ms, transform 520ms var(--ease-out) 260ms;
}

.timeline__icon svg,
.timeline__flag svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline__step.is-visible .timeline__icon {
  opacity: 1;
  transform: none;
}

.timeline__date {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: calc(var(--text-body) * 1.15);
  letter-spacing: 0.01em;
}

.timeline__desc {
  margin-top: 0.6rem;
  color: var(--ink-soft);
  max-width: 30ch;
}

.timeline__now {
  position: absolute;
  top: -2.65rem;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55em 0.8em;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(0.55rem);
  transition: opacity 360ms ease 520ms, transform 520ms var(--ease-out) 520ms;
}

.timeline__now::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  bottom: -0.55rem;
  border: 0.3rem solid transparent;
  border-top-color: var(--sand);
  transform: translateX(-50%);
}

.timeline__flag {
  width: 0.85rem;
  height: 0.85rem;
}

.timeline__step.is-visible .timeline__now {
  opacity: 1;
  transform: none;
}

@keyframes timeline-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 177, 145, 0.42);
  }
  70% {
    box-shadow: 0 0 0 0.7rem rgba(201, 177, 145, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 177, 145, 0);
  }
}

@media (min-width: 44rem) {
  .timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
  }
}

/* ------------------------------------------------------------ have your say */

.section--dark {
  background: var(--ink);
  color: var(--bg);
}

.section--dark .section__head .kicker::after {
  background: var(--hairline-light);
}

.section--dark .kicker {
  color: rgba(244, 242, 240, 0.7);
}

.section--dark .section__standfirst {
  color: rgba(244, 242, 240, 0.78);
}

.hys__grid {
  display: grid;
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.25rem);
}

@media (min-width: 56rem) {
  .hys__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hys__card:last-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }

  .hys__card:last-child .contact {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    margin-top: 0;
  }
}

@media (min-width: 75rem) {
  .hys__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hys__card:last-child {
    grid-column: auto;
    display: flex;
  }

  .hys__card:last-child .contact {
    grid-column: auto;
    grid-row: auto;
    align-self: auto;
    margin-top: 1.5rem;
  }
}

.hys__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--sand);
  color: var(--ink);
  border-top: 1px solid rgba(17, 17, 17, 0.22);
  padding: clamp(1.5rem, 2.5vw, 2rem);
}

.hys__card h3 {
  font-size: var(--text-h3);
  color: var(--ink);
}

.hys__card > p {
  margin-top: 1rem;
  color: rgba(17, 17, 17, 0.72);
}

.hys__card > p:has(.btn) {
  margin-top: auto;
  padding-top: 1.75rem;
}

.hys__details {
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
  color: rgba(17, 17, 17, 0.72);
}

.hys__details li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.hys__details .icon {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  color: var(--ink);
}

.hys__note {
  font-size: var(--text-small);
}

.tbc {
  background: transparent;
  color: var(--sand);
  font-style: normal;
  border: 1px dashed rgba(201, 177, 145, 0.55);
  padding: 0.05em 0.35em;
  white-space: nowrap;
}

.hys__card .tbc {
  color: var(--ink);
  border-color: rgba(17, 17, 17, 0.35);
}

.hys__card .btn--accent {
  justify-content: flex-start;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
  text-align: left;
}

.hys__card .btn--accent:hover {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}

.hys__map {
  position: relative;
  margin-top: 1.5rem;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--hairline-light);
  display: grid;
  place-content: center;
  gap: 1rem;
  padding: 1rem;
  text-align: center;
}

.hys__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.hys__map-note {
  font-size: 0.8rem;
  color: rgba(244, 242, 240, 0.65);
  max-width: 24ch;
  margin-inline: auto;
}

.hys__map-note a {
  color: var(--sand);
}

.contact {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.25rem;
}

.contact .icon {
  flex: 0 0 1.25rem;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.25rem;
  color: var(--ink);
}

.contact a {
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
  text-decoration-color: rgba(17, 17, 17, 0.45);
  text-underline-offset: 0.2em;
}

.contact .contact__email {
  font-size: inherit;
}

@media (min-width: 75rem) {
  .contact .contact__email {
    white-space: nowrap;
    overflow-wrap: normal;
  }
}

.contact a:hover {
  color: var(--bronze);
}

/* ------------------------------------------------------------ lightbox */

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(17, 17, 17, 0.9);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__dialog {
  position: relative;
  width: min(100%, 68rem);
  max-height: calc(100dvh - 2 * var(--gutter));
}

.lightbox__figure {
  display: grid;
  gap: 0.85rem;
}

.lightbox__figure img {
  width: 100%;
  max-height: calc(100dvh - 8rem);
  object-fit: contain;
  background: var(--bg);
}

.lightbox__figure figcaption {
  color: rgba(244, 242, 240, 0.78);
  font-size: var(--text-small);
}

.lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--sand);
  border-radius: 50%;
  background: var(--sand);
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.lightbox__close:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* ------------------------------------------------------------ footer */

.site-footer {
  background: var(--ink);
  color: rgba(244, 242, 240, 0.72);
  border-top: 1px solid var(--hairline-light);
  padding-block: 2.5rem;
  font-size: var(--text-small);
}

.site-footer__inner {
  display: grid;
  gap: 1.25rem;
}

/* Menu on the left, policies and credit on the right; the legal block wraps
   below the menu where one line is too narrow. */
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
}

/* Phones: the header menu already covers navigation */
@media (max-width: 43.99rem) {
  .site-footer__menu {
    display: none;
  }
}

.site-footer__brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--sand);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.site-footer__settings {
  padding: 0;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.site-footer__settings:hover {
  color: var(--sand);
}

/* ------------------------------------------------------------ cookie banner
   Shown by js/main.js only once a GA4 Measurement ID is set. While visible it
   publishes its height as --cookie-banner-h, which pads the page (see body). */

.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  background: var(--surface);
  color: var(--ink);
  border-top: 1px solid var(--hairline);
  box-shadow: 0 -8px 24px rgba(17, 17, 17, 0.08);
  font-size: var(--text-small);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner:focus {
  outline: none;
}

@media (prefers-reduced-motion: no-preference) {
  .cookie-banner {
    animation: cookie-banner-in 300ms var(--ease-out);
  }
}

@keyframes cookie-banner-in {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
}

.cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1rem;
}

.cookie-banner__text {
  flex: 1 1 20rem;
  margin: 0;
}

.cookie-banner__text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-banner__actions .btn {
  min-height: 44px;
}

@media (max-width: 30rem) {
  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner__actions .btn {
    flex: 1;
  }
}

/* ------------------------------------------------------------ entrance reveals
   .reveal elements are only hidden once JS has added .js to <html>,
   so content stays visible without JavaScript. */

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 640ms var(--ease-out), transform 640ms var(--ease-out);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

html.js .reveal-group .reveal:nth-child(2) {
  transition-delay: 60ms;
}

html.js .reveal-group .reveal:nth-child(3) {
  transition-delay: 120ms;
}

html.js .reveal-group .reveal:nth-child(4) {
  transition-delay: 180ms;
}

html.js .reveal-group .reveal:nth-child(5) {
  transition-delay: 240ms;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    transform: none;
    transition: opacity 300ms ease;
  }
  .faq__item::details-content {
    transition: none;
  }
  .nav-toggle__line,
  .mobile-nav {
    transition: none;
  }
  .timeline__step::before,
  .timeline__step::after,
  .timeline__icon,
  .timeline__now {
    transition: none;
  }
  .timeline__step--current::before {
    animation: none;
  }
}
