/* ==========================================================================
   Ardleigh — base
   Proportions are derived from the 1672 × 941 hero reference and expressed
   in vw with clamp() so the composition holds across desktop widths.
   ========================================================================== */

:root {
  --paper: #ffffff;                  /* light page surface */
  --night: #15110d;                  /* dark surface */
  --error: #a2432a;

  /* Contextual ink — light theme by default, flipped inside .hero / header */
  --ink-rgb: 29 24 19;
  --ink: rgb(var(--ink-rgb));
  --ink-soft: rgb(var(--ink-rgb) / 0.72);
  --ink-line: rgb(var(--ink-rgb) / 0.55);
  --surface: var(--paper);
  --shade: 16 12 9;                  /* rgb triplet for overlays */

  --font-serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --font-sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(1.25rem, 3.95vw, 5.5rem);        /* 66px @ 1672 */
  --gutter-brand: clamp(1.25rem, 2.87vw, 4.25rem); /* 48px @ 1672 */
  --header-top: clamp(1.25rem, 2.2vw, 2.75rem);

  /* Background framing — shared by both photographs */
  --focal: 50% 50%;

  /* Cursor reveal */
  --reveal-r: 220px;                 /* radius → 440px diameter */
  --reveal-in: 380ms;
  --reveal-out: 300ms;

  /* Pinned dock */
  --dock-h: 4.75rem;
  --dock-gap: clamp(0.625rem, 1.3vw, 1.25rem);
  --dock-space: calc(var(--dock-h) + 2 * var(--dock-gap));

  color-scheme: light;
}

/* Dark scope: hero, header (over the hero), the mobile menu panel, page heroes and the footer */
.hero,
.page-hero,
.project-dialog,
.site-header,
.site-footer {
  --ink-rgb: 246 240 231;            /* warm white */
  --ink: rgb(var(--ink-rgb));
  --ink-soft: rgb(var(--ink-rgb) / 0.86);
  --ink-line: rgb(var(--ink-rgb) / 0.82);
  --surface: var(--night);
  color: var(--ink);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 1.5px solid var(--ink);
  outline-offset: 6px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--surface);
  font-size: 0.875rem;
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; outline-offset: 2px; }

.arrow {
  width: 0.7em;
  height: 0.7em;
  margin-left: 0.55em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: square;
  transition: transform 240ms ease;
}

/* ==========================================================================
   Site intro — the crane logo animation, full screen, then lifts away
   ========================================================================== */

.site-intro { display: none; }
.has-intro { overflow: hidden; }
.has-intro .site-intro {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: block;
  background: #661a24 radial-gradient(120% 90% at 50% 45%, #7a2532 0%, #661a24 48%, #45111a 100%);
  transition: transform 1s cubic-bezier(0.76, 0, 0.24, 1);
}
.site-intro__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms ease;
}
.site-intro.is-ready .site-intro__frame { opacity: 1; }
.site-intro__loader { position: absolute; inset: 0; margin: auto; transition: opacity 400ms ease; }
.site-intro.is-ready .site-intro__loader { opacity: 0; animation: none; }
.site-intro.is-leaving { transform: translate3d(0, -100%, 0); }
.site-intro__skip {
  position: absolute;
  z-index: 2;
  right: var(--gutter);
  bottom: max(1.5rem, calc(env(safe-area-inset-bottom) + 1rem));
  padding: 0.75em 1.15em;
  border: 1px solid rgb(255 255 255 / 0.38);
  background: none;
  color: #fff;
  font: inherit;
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  animation: intro-skip-in 600ms ease 1.2s forwards;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.site-intro__skip:hover { background: rgb(255 255 255 / 0.08); border-color: #fff; }
.site-intro__skip:focus-visible { outline: 1.5px solid #fff; outline-offset: 4px; }
@keyframes intro-skip-in { to { opacity: 1; } }

/* ==========================================================================
   Header & navigation
   ========================================================================== */

.site-header {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--header-top) var(--gutter) 0 var(--gutter-brand);
}

.brand {
  position: relative;
  z-index: 2;
  display: block;
  line-height: 0;
}
.brand img {
  display: block;
  width: auto;
  height: clamp(2.1rem, 3vw, 3.3rem);
}
.brand:focus-visible { outline-offset: 8px; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 2.95vw, 3.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  font-size: clamp(0.9375rem, 1.14vw, 1.35rem);
  line-height: 1;
  padding: 0.35em 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 320ms ease;
}
.site-nav a:hover { background-size: 100% 1px; }
.site-nav a:hover .arrow { transform: translate(2px, -2px); }

.menu-toggle { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(max(34rem, 100vh), 72rem);
  min-height: min(max(34rem, 100svh), 72rem);
  overflow: hidden;
  background: #2a2119;                /* holds tone while the photo loads */
}

.hero__media,
.hero__reveal,
.hero__shade,
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__media { z-index: -1; pointer-events: none; }

/* Both photographs share this exact box, scaling and focal point. */
.hero__img {
  object-fit: cover;
  object-position: var(--focal);
  user-select: none;
  -webkit-user-drag: none;
}

/* 2 — Scaffolding layer, revealed through a feathered radial mask.
   Smootherstep falloff (zero slope at both ends) so there is no visible ring. */
.hero__reveal {
  --x: -9999px;
  --y: -9999px;
  --reveal-mask: radial-gradient(
    circle var(--reveal-r) at var(--x) var(--y),
    rgb(0 0 0 / 0.970) 0%,
    rgb(0 0 0 / 0.970) 32%,
    rgb(0 0 0 / 0.969) 35%,
    rgb(0 0 0 / 0.957) 40%,
    rgb(0 0 0 / 0.920) 45%,
    rgb(0 0 0 / 0.854) 50%,
    rgb(0 0 0 / 0.759) 55%,
    rgb(0 0 0 / 0.642) 60%,
    rgb(0 0 0 / 0.512) 65%,
    rgb(0 0 0 / 0.379) 70%,
    rgb(0 0 0 / 0.255) 75%,
    rgb(0 0 0 / 0.151) 80%,
    rgb(0 0 0 / 0.073) 85%,
    rgb(0 0 0 / 0.024) 90%,
    rgb(0 0 0 / 0.003) 95%,
    rgb(0 0 0 / 0) 100%
  );
  -webkit-mask-image: var(--reveal-mask);
  mask-image: var(--reveal-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--reveal-out) ease-in;
}
.hero__reveal.is-ready { visibility: visible; }
.hero__reveal.is-active {
  opacity: 1;
  transition: opacity var(--reveal-in) cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* 3 — Shared readability shade (sits above both photographs). */
.hero__shade {
  background:
    linear-gradient(90deg,
      rgb(var(--shade) / 0.80) 0%,
      rgb(var(--shade) / 0.68) 16%,
      rgb(var(--shade) / 0.48) 28%,
      rgb(var(--shade) / 0.24) 39%,
      rgb(var(--shade) / 0.08) 50%,
      rgb(var(--shade) / 0) 60%),
    linear-gradient(180deg,
      rgb(var(--shade) / 0.38) 0%,
      rgb(var(--shade) / 0) 18%),
    linear-gradient(0deg,
      rgb(var(--shade) / 0.32) 0%,
      rgb(var(--shade) / 0) 24%),
    rgb(var(--shade) / 0.06);
}

/* 4 — Content */
.hero__content {
  position: relative;
  width: 100%;
  padding: 6.5rem var(--gutter) calc(4.5rem + var(--dock-space));
  text-shadow: 0 1px 24px rgb(var(--shade) / 0.25);
}


.hero__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 4.56vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.006em;
  font-kerning: normal;
  font-feature-settings: "kern", "liga";
}
.hero__title span { display: block; }

.hero__lede {
  max-width: 25.6em;
  margin: clamp(1.1rem, 1.3vw, 1.6rem) 0 0;
  font-size: clamp(1rem, 1.32vw, 1.55rem);
  line-height: 1.42;
  color: var(--ink);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem clamp(1.75rem, 2.4vw, 2.75rem);
  margin-top: clamp(1.6rem, 2.2vw, 2.6rem);
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75em;
  padding: 0 1.5em;
  border: 1px solid var(--ink-line);
  font-size: clamp(0.9375rem, 1.25vw, 1.45rem);
  line-height: 1;
  transition: background-color 280ms ease, border-color 280ms ease, color 280ms ease;
}
.button:hover {
  background-color: rgb(var(--ink-rgb) / 0.1);
  border-color: var(--ink);
}
.button:hover .arrow { transform: translate(2px, -2px); }
.button:focus-visible { outline-offset: 4px; }

.text-link {
  display: inline-block;
  padding-bottom: 0.3em;
  font-size: clamp(0.9375rem, 1.25vw, 1.45rem);
  line-height: 1.2;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 360ms ease, opacity 280ms ease;
}
.text-link:hover { background-size: 35% 1px; }

/* ==========================================================================
   Clients — horizontal logo strip (original artwork, original colours)
   ========================================================================== */

.clients {
  --logo-scale: 1;
  --logo-gap: clamp(3rem, 6vw, 6.5rem);
  padding: clamp(2rem, 3.2vw, 3.25rem) 0 clamp(1.75rem, 2.8vw, 3rem);
  overflow: hidden;
}

.clients__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 0 var(--gutter);
  margin-bottom: clamp(1.5rem, 2.6vw, 2.5rem);
}

.clients__title {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.2;
  color: rgb(var(--ink-rgb) / 0.5);
}


.clients__viewport {
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.clients.is-animated .clients__viewport { overflow: hidden; }

.clients__rail {
  display: flex;
  width: max-content;
}
.clients.is-animated .clients__rail {
  animation: clients-marquee var(--clients-duration, 60s) linear infinite;
}
.clients.is-animated .clients__viewport:hover .clients__rail {
  animation-play-state: paused;
}

.clients__list {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--logo-gap);
  margin: 0;
  padding: 0.75rem var(--gutter);
  list-style: none;
}
.clients.is-animated .clients__list { padding: 0.75rem var(--logo-gap) 0.75rem 0; }

.clients__list li { flex: none; }
.clients__list img {
  width: auto;
  max-width: none;
  height: calc(var(--h, 48px) * var(--logo-scale));
}

/* Accreditation bodies — the same strip, at the foot of the page */
.clients--accreditations { border-top: 1px solid rgb(var(--ink-rgb) / 0.08); }
.clients__note {
  max-width: 15rem;
  margin: 0.6rem 0 0;
  font-size: 0.6875rem;
  line-height: 1.45;
  color: rgb(var(--ink-rgb) / 0.5);
}

/* Label in a fixed column beside the scrolling logos */
.clients--inline {
  display: flex;
  align-items: center;
}
.clients--inline .clients__head {
  flex: none;
  margin: 0;
  padding: 0.4rem 2rem 0.4rem var(--gutter);
  border-right: 1px solid rgb(var(--ink-rgb) / 0.12);
}
.clients--inline .clients__viewport {
  flex: 1;
  min-width: 0;
}

@media (max-width: 640px) {
  .clients--inline { display: block; }
  .clients--inline .clients__head {
    padding: 0 var(--gutter);
    margin-bottom: 1.25rem;
    border: 0;
  }
}

@keyframes clients-marquee {
  to { transform: translate3d(-50%, 0, 0); }
}

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

/* ==========================================================================
   Stats (beside the 3D scaffold)
   ========================================================================== */

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 3.4vw, 3.25rem) clamp(1.25rem, 2.4vw, 2.5rem);
  margin: 0;
}
.stat {
  display: flex;
  flex-direction: column-reverse;   /* number above its label; dt stays first for screen readers */
  justify-content: flex-end;
  gap: 0.85rem;
  padding-top: clamp(1.1rem, 1.8vw, 1.6rem);
  border-top: 1px solid rgb(var(--ink-rgb) / 0.2);
}
.stat dd {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(2.6rem, 4vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink);
  white-space: nowrap;
}
.stat dt {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ink);
}
.stats__note {
  max-width: 34em;
  margin: clamp(1.75rem, 3vw, 2.5rem) 0 0;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* ==========================================================================
   Expertise — 3D scaffold
   ========================================================================== */

.section--scaffold {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.45fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.scaffold3d {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  /* melt the rendered facade into the white page */
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 13%, #000 87%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 9%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 13%, #000 87%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 9%, #000 90%, transparent 100%);
  mask-composite: intersect;
}
.scaffold3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  opacity: 0;
  transition: opacity 600ms ease;
}
.scaffold3d.is-ready canvas { opacity: 1; cursor: grab; }
.scaffold3d.is-dragging canvas { cursor: grabbing; }
.scaffold3d:focus { outline: none; }

.scaffold3d__hint {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 12%;
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin: 0;
  padding: 0.5em 0.9em;
  transform: translateX(-50%);
  background: rgb(255 255 255 / 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgb(var(--ink-rgb) / 0.12);
  color: var(--ink-soft);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms ease;
}
.scaffold3d__hint svg { width: 1.6em; height: 0.8em; fill: none; stroke: currentColor; stroke-width: 1.3; }
.scaffold3d.is-ready .scaffold3d__hint { opacity: 1; transition-delay: 1.2s; }
.scaffold3d.has-interacted .scaffold3d__hint { opacity: 0; transition-delay: 0s; }
.scaffold3d:focus-visible .scaffold3d__hint { opacity: 1; color: var(--ink); border-color: var(--ink); }
.scaffold3d.is-unavailable { display: none; }

@media (max-width: 860px) {
  .section--scaffold { grid-template-columns: 1fr; }
  .scaffold3d { aspect-ratio: 1 / 1; margin-inline: calc(var(--gutter) * -1); width: calc(100% + 2 * var(--gutter)); }
}

/* ==========================================================================
   Our projects — one featured project and a link to the rest
   ========================================================================== */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.section-head .section__title { margin: 0; }

.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 3.5vw, 4rem);
}
.featured-project__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 619 / 507;                 /* the Ardleigh hard-hat-and-arch icon */
  background: #ece8e1;
  -webkit-mask: url("../brand/ardleigh-icon-mask.svg") center / 100% 100% no-repeat;
  mask: url("../brand/ardleigh-icon-mask.svg") center / 100% 100% no-repeat;
}
.featured-project__media img {
  position: absolute;
  left: 0;
  top: -16%;                     /* overscan so the parallax never shows an edge */
  width: 100%;
  height: 132%;
  object-fit: cover;
  translate: 0 var(--parallax, 0px);
  scale: 1;
  transition: scale 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);   /* hover only; parallax is untransitioned */
  will-change: translate;
}
.featured-project:hover .featured-project__media img { scale: 1.035; }

.featured-project__body { display: flex; flex-direction: column; }
.featured-project__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.featured-project__title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.3vw, 3.4rem);
  line-height: 1.02;
}
.featured-project__title a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 400ms ease;
}
.featured-project__title a:hover { background-size: 100% 1px; }
.featured-project__lede {
  max-width: 26em;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.1vw, 1.15rem);
  line-height: 1.55;
}
.featured-project__facts { margin: 1.75rem 0 0; border-top: 1px solid rgb(var(--ink-rgb) / 0.12); }
.featured-project__facts div {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8em 0;
  border-bottom: 1px solid rgb(var(--ink-rgb) / 0.12);
  font-size: 0.875rem;
}
.featured-project__facts dt { color: var(--ink-soft); }
.featured-project__facts dd { margin: 0; text-align: right; }
.featured-project__inset { width: min(100%, 18rem); margin: 1.75rem 0 0; }
.featured-project__inset img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.featured-project__link { align-self: flex-start; margin-top: 1.25rem; }

@media (max-width: 860px) {
  .featured-project { grid-template-columns: 1fr; }
  .featured-project__media { aspect-ratio: 619 / 507; }
  .featured-project__inset { display: none; }
}

/* Centred showcase variant */
.section--projects-centred { text-align: center; }
.projects-centred__title { margin: 0 auto clamp(1.5rem, 3vw, 2.5rem); }
.featured-project--centred {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.75rem, 3vw, 2.75rem);
}
.featured-project--centred .featured-project__media { width: min(100%, 36rem, calc((100svh - 23rem) * 1.221)); }   /* whole showcase fits one screen */
.featured-project--centred .featured-project__body { align-items: center; max-width: 40rem; }
.featured-project--centred .featured-project__lede { margin-inline: auto; }
.featured-project--centred .featured-project__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 2.25rem;
  margin-top: 1.5rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgb(var(--ink-rgb) / 0.12);
  border-bottom: 1px solid rgb(var(--ink-rgb) / 0.12);
}
.featured-project--centred .featured-project__facts div { display: flex; gap: 0.6rem; padding: 0; border: 0; }
.featured-project--centred .featured-project__facts dd { text-align: left; }
.featured-project__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  margin-top: 1.9rem;
}

/* Our projects — feature + two, each image cut with a sector "tag" notch */
.pgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: clamp(0.75rem, 1.4vw, 1.25rem);
  height: min(46rem, calc(100svh - 12rem));
  min-height: 30rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pcard--big { grid-row: 1 / span 2; }
.pcard a { position: relative; display: block; height: 100%; color: #f6f0e7; }
.pcard__tag {
  position: absolute; z-index: 2; left: 0; top: 0; margin: 0; font-weight: 400;
  height: var(--pcard-tag-h, 34px); display: flex; align-items: center; padding-right: 16px;
  font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap;
}
.pcard__media { position: absolute; inset: 0; display: block; overflow: hidden; background: #ece8e1; }
.pcard__media img {
  position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover;
  translate: 0 var(--parallax, 0px); scale: 1; transition: scale 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pcard__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(16 12 9 / 0.86) 0%, rgb(16 12 9 / 0.45) 40%, rgb(16 12 9 / 0) 75%); }
.pcard a:hover .pcard__media img, .pcard a:focus-visible .pcard__media img { scale: 1.04; }
.pcard a:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; }
.pcard__text { position: absolute; z-index: 1; left: clamp(1.25rem, 2.2vw, 2rem); right: clamp(1.25rem, 2.2vw, 2rem); bottom: clamp(1.25rem, 2.2vw, 2rem); }
.pcard__meta { display: block; margin-bottom: 0.55rem; font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgb(246 240 231 / 0.8); }
.pcard__name { margin: 0; font-family: var(--font-serif); font-weight: 300; font-size: clamp(1.6rem, 2.2vw, 2.3rem); line-height: 1.08; }
.pcard--big .pcard__name { font-size: clamp(2rem, 3.2vw, 3.2rem); }
.pcard__lede { display: block; margin-top: 0.6rem; color: rgb(246 240 231 / 0.8); font-size: 0.9375rem; line-height: 1.55; }
.pcard:not(.pcard--big) .pcard__lede { display: none; }
.pcard__more { display: inline-block; margin-top: 0.9rem; padding-bottom: 0.25em; font-size: 0.875rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size 360ms ease; }
.pcard a:hover .pcard__more { background-size: 35% 1px; }
@media (max-width: 860px) {
  /* stacked cards: each one sticks at the same spot, so the next lands exactly on top of it */
  .pgrid { display: flex; flex-direction: column; gap: 1.25rem; height: auto; min-height: 0; }
  .pcard, .pcard--big {
    position: sticky;
    top: max(1rem, env(safe-area-inset-top));
    background: var(--paper);                      /* fills the notch and corners so the card below is fully covered */
  }
  .pcard a, .pcard--big a {
    aspect-ratio: auto; height: min(calc(100vw - 2 * var(--gutter)) * 1.05, calc(100svh - var(--dock-space) - 2.5rem));
  }
}

/* ==========================================================================
   Pinned dock — Call now · Subscribe · Enquire
   ========================================================================== */

.dock {
  /* Clear glass with a hairline border — flips to light-on-dark over the hero */
  --glass-radius: 0;
  --glass-blur: blur(8px) saturate(160%);
  --glass-bg: rgb(255 255 255 / 0.22);
  --glass-border: rgb(16 12 9 / 0.14);
  --glass-shadow: none;

  position: fixed;
  z-index: 20;
  left: var(--dock-gap);
  right: var(--dock-gap);
  bottom: calc(var(--dock-gap) + env(safe-area-inset-bottom));
  border-radius: var(--glass-radius);
  color: var(--ink);
  transition: opacity 280ms ease, visibility 0s linear 280ms;
}

/* The glass lives on a pseudo-element so .dock itself is not a backdrop root
   (lets the mobile subscribe panel blur what is behind it too). */
.dock::before,
.dock__form::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  transition: background 360ms ease, border-color 360ms ease, box-shadow 360ms ease;
  pointer-events: none;
}
.dock__form::before { content: none; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .dock { --glass-bg: rgb(255 255 255 / 0.96); }
  .dock.is-over-hero { --glass-bg: rgb(22 17 13 / 0.9); }
}

.dock.is-over-hero {
  --ink-rgb: 246 240 231;
  --ink: rgb(var(--ink-rgb));
  --ink-soft: rgb(var(--ink-rgb) / 0.86);
  --ink-line: rgb(var(--ink-rgb) / 0.62);
  --surface: var(--night);
  --error: #f2b39c;
  --glass-bg: rgb(255 255 255 / 0.03);
  --glass-border: rgb(255 255 255 / 0.5);
  --glass-shadow: none;
}
.dock.is-over-hero .dock__inner { text-shadow: 0 1px 10px rgb(0 0 0 / 0.45); }

.dock__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.5rem);
  min-height: var(--dock-h);
  padding: 0.625rem max(0.75rem, calc(var(--gutter) - var(--dock-gap)));
}

.dock__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 2.875rem;
  padding: 0 1.35em;
  border: 1px solid var(--ink-line);
  border-radius: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 240ms ease, border-color 240ms ease, color 240ms ease;
}
.dock__btn:hover { background-color: rgb(var(--ink-rgb) / 0.1); border-color: var(--ink); }
.dock__btn:hover .arrow { transform: translate(2px, -2px); }
.dock__btn:focus-visible { outline-offset: 3px; }

.dock__btn--solid {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}
.dock__btn--solid:hover { background: rgb(var(--ink-rgb) / 0.84); border-color: transparent; }

.dock__icon {
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.6em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linejoin: round;
}

.dock__toggle { display: none; }

.dock__form {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  min-width: 0;
}

.dock__label {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.dock__field {
  display: flex;
  align-items: center;
  flex: 0 1 26rem;
  min-width: 0;
  border-bottom: 1px solid var(--ink-line);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.dock__field:focus-within { border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }

.dock__field input {
  flex: 1;
  min-width: 0;
  padding: 0.75em 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.dock__field input::placeholder { color: rgb(var(--ink-rgb) / 0.6); }

.dock__submit {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 0.75em 0 0.75em 1em;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}
.dock__submit:hover .arrow { transform: translate(2px, -2px); }
.dock__submit:focus-visible { outline-offset: 2px; }

.dock__status { margin: 0; font-size: 0.8125rem; }
.dock__status:empty { display: none; }

.dock__form.is-error .dock__field { border-color: var(--error); }
.dock__form.is-error .dock__status {
  position: absolute;
  bottom: calc(100% + 0.9rem);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5em 0.9em;
  background: var(--surface);
  border: 1px solid rgb(var(--ink-rgb) / 0.16);
  color: var(--error);
  white-space: nowrap;
}

.dock__form.is-done .dock__label,
.dock__form.is-done .dock__field { display: none; }
.dock__form.is-done .dock__status { font-size: 0.9375rem; color: var(--ink-soft); }

@media (max-width: 1100px) {
  .dock__label {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  :root { --dock-h: 4rem; }

  .clients { --logo-scale: 0.74; --logo-gap: 2.75rem; }

  .dock__inner { gap: 0.5rem; padding: 0.625rem var(--gutter); }

  .dock__btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 2.75rem;
    padding: 0 0.5em;
    font-size: 0.875rem;
  }
  .dock__btn .arrow { margin-left: 0.4em; }
  .dock__icon { margin-right: 0.45em; }
  .dock__toggle { display: inline-flex; }
  .dock__toggle[aria-expanded="true"] { background-color: rgb(var(--ink-rgb) / 0.12); border-color: var(--ink); }

  .dock__form {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1.1rem 1.1rem 0.9rem;
    border-radius: var(--glass-radius);
  }
  .dock__form::before { content: ""; }
  .dock.is-open .dock__form { display: flex; }
  .dock__label {
    position: static;
    width: auto; height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    font-size: 0.6875rem;
  }
  .dock__field { flex: none; }
  .dock__form.is-error .dock__status {
    position: static;
    transform: none;
    padding: 0;
    background: none;
    border: 0;
    white-space: normal;
    color: var(--error);
  }
}

/* Maroon band (Enquire) — same background as the site intro; centred white type */
.section--maroon {
  --ink-rgb: 255 255 255;
  --ink: rgb(var(--ink-rgb));
  --ink-soft: rgb(var(--ink-rgb) / 0.86);
  --ink-line: rgb(var(--ink-rgb) / 0.8);
  background: #661a24 radial-gradient(120% 90% at 50% 45%, #7a2532 0%, #661a24 48%, #45111a 100%);
  color: var(--ink);
  text-align: center;
  border-top: 0;
}
.section--maroon .section__title,
.section--maroon .section__body { margin-inline: auto; }
.section--maroon :focus-visible { outline-color: #fff; }

.site-footer__main:first-child { padding-top: 0; }

/* ==========================================================================
   Placeholder sections (anchor targets)
   ========================================================================== */

.section {
  padding: clamp(2.75rem, 5vw, 5rem) var(--gutter);
  border-top: 1px solid rgb(var(--ink-rgb) / 0.08);
  scroll-margin-top: 0;
}

.section__eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.section__title {
  max-width: 16em;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2rem, 3.4vw, 3.75rem);
  line-height: 1.05;
}

.section__body {
  max-width: 34em;
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.1vw, 1.2rem);
}

/* ==========================================================================
   Footer — Ink with Paper type and a restrained Oxblood wash (brand guide)
   ========================================================================== */

.site-footer {
  --footer-ink: #16130e;
  --oxblood: 102 26 36;
  --brass: #cfa962;
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 7vw, 7rem) var(--gutter) calc(var(--dock-space) + 1.5rem);
  background: #121212;                          /* matte black, no sheen */
  color: var(--ink);
}

.site-footer a { transition: color 220ms ease; }
/* hover: text brightens, an Oxblood underline slides in (Oxblood text alone would not read on black) */
.site-footer__nav a,
.site-footer__legal a,
.site-footer__up {
  background: linear-gradient(#8a2633, #8a2633) 0 100% / 0 2px no-repeat;
  padding-bottom: 0.2em;
  transition: color 220ms ease, background-size 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.site-footer__nav a:hover, .site-footer__nav a:focus-visible,
.site-footer__legal a:hover, .site-footer__legal a:focus-visible,
.site-footer__up:hover, .site-footer__up:focus-visible { color: #fff; background-size: 100% 2px; }

.site-footer__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  border-bottom: 1px solid rgb(var(--ink-rgb) / 0.14);
}
.site-footer__title {
  max-width: 14em;
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 4.6vw, 5rem);
  line-height: 1.02;
}
.site-footer__cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
}

.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(2.5rem, 5vw, 6rem);
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}
.site-footer__logo img { width: auto; height: clamp(2.6rem, 3.4vw, 3.6rem); }
.site-footer__lede {
  max-width: 24em;
  margin: 1.5rem 0 0;
  color: rgb(var(--ink-rgb) / 0.7);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}
.site-footer__col h3 {
  margin: 0 0 1.2rem;
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgb(var(--ink-rgb) / 0.55);
}
.site-footer__col ul { margin: 0; padding: 0; list-style: none; }
.site-footer__col li { margin: 0 0 0.75rem; font-size: 0.9375rem; color: rgb(var(--ink-rgb) / 0.88); }
.site-footer__address { color: rgb(var(--ink-rgb) / 0.6); line-height: 1.5; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgb(var(--ink-rgb) / 0.14);
  font-size: 0.75rem;
  color: rgb(var(--ink-rgb) / 0.55);
}
.site-footer__bottom p { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.site-footer__up {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-left: auto;
  color: rgb(var(--ink-rgb) / 0.8);
}
.site-footer__up svg { width: 0.8em; height: 0.8em; fill: none; stroke: currentColor; stroke-width: 1.3; }

@media (max-width: 1024px) {
  .site-footer__main { grid-template-columns: 1fr; }
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .site-footer { padding: 2.25rem var(--gutter) calc(var(--dock-space) + 0.75rem); }
  .site-footer__main { gap: 1.6rem; padding: 0 0 1.5rem; }
  .site-footer__logo img { height: 2.05rem; }
  .site-footer__lede { margin-top: 0.75rem; font-size: 0.8125rem; line-height: 1.5; }
  .site-footer__nav { grid-template-columns: 1fr 1fr; gap: 1.25rem 1rem; }
  .site-footer__col h3 { margin-bottom: 0.55rem; font-size: 0.625rem; letter-spacing: 0.24em; }
  .site-footer__col li { margin-bottom: 0.35rem; font-size: 0.8125rem; }
  .site-footer__col:last-child { grid-column: 1 / -1; }
  .site-footer__col:last-child ul { display: flex; flex-wrap: wrap; gap: 0.2rem 1.25rem; }
  .site-footer__bottom { gap: 0.4rem 1rem; padding-top: 1rem; font-size: 0.6875rem; }
  .site-footer__up { margin-left: auto; }
}

/* ==========================================================================
   Tablet & mobile
   ========================================================================== */

@media (max-width: 1024px) {
  .hero__shade {
    background:
      linear-gradient(90deg,
        rgb(var(--shade) / 0.80) 0%,
        rgb(var(--shade) / 0.66) 30%,
        rgb(var(--shade) / 0.36) 55%,
        rgb(var(--shade) / 0.10) 75%,
        rgb(var(--shade) / 0) 88%),
      linear-gradient(180deg, rgb(var(--shade) / 0.42) 0%, rgb(var(--shade) / 0) 20%),
      rgb(var(--shade) / 0.08);
  }
}

@media (max-width: 860px) {
  :root { --reveal-r: 150px; }
  .site-header { padding-inline: var(--gutter); }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin: -0.5rem -0.5rem -0.5rem 0;
    padding: 0.5rem;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 0.9375rem;
    line-height: 1;
    cursor: pointer;
  }
  .menu-toggle__icon {
    position: relative;
    width: 1.375rem;
    height: 0.5rem;
  }
  .menu-toggle__icon::before,
  .menu-toggle__icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: transform 280ms ease, top 280ms ease;
  }
  .menu-toggle__icon::before { top: 0; }
  .menu-toggle__icon::after { top: calc(100% - 1px); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: calc(50% - 0.5px); transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { top: calc(50% - 0.5px); transform: rotate(-45deg); }

  .site-nav {
    position: fixed;
    z-index: 1;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 6rem var(--gutter) max(3.5rem, env(safe-area-inset-bottom));
    background: var(--night);
    opacity: 0;
    visibility: hidden;
    transition: opacity 280ms ease, visibility 0s linear 280ms;
  }
  .menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    transition: opacity 280ms ease;
  }
  .menu-open { overflow: hidden; }
  .menu-open .dock { opacity: 0; visibility: hidden; }

  .site-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .site-nav a {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: clamp(2.25rem, 9vw, 3.25rem);
    padding: 0.1em 0;
  }
  .site-nav a .arrow { width: 0.42em; height: 0.42em; margin-left: 0.3em; stroke-width: 0.9; }

  .hero {
    align-items: flex-end;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    max-height: none;
  }
  .hero { --focal: 63% 50%; }

  .hero__shade {
    background:
      linear-gradient(0deg,
        rgb(var(--shade) / 0.88) 0%,
        rgb(var(--shade) / 0.74) 38%,
        rgb(var(--shade) / 0.38) 62%,
        rgb(var(--shade) / 0.10) 80%,
        rgb(var(--shade) / 0.30) 100%),
      rgb(var(--shade) / 0.10);
  }

  .hero__content {
    padding-top: 9rem;
    padding-bottom: calc(var(--dock-space) + env(safe-area-inset-bottom) + 1.75rem);
  }
  .hero__title { font-size: clamp(2.35rem, 9.6vw, 3.6rem); line-height: 1.02; }
  .hero__title span { display: inline; }
  .hero__lede { margin-top: 1.25rem; font-size: 1rem; line-height: 1.55; max-width: 30em; }
  .hero__actions { margin-top: 1.9rem; gap: 1.1rem 1.75rem; }
  .button, .text-link { font-size: 0.9375rem; }
}

@media (min-width: 521px) and (max-width: 860px) {
  .hero__title span { display: block; }
}

/* ==========================================================================
   Reduced motion — no reveal, no animated transitions
   ========================================================================== */

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

/* ==========================================================================
   Brand accent — Oxblood (#661A24). "Paper background, Ink text, Oxblood
   accents" (brand guide). On white it marks labels, rules, links and actions;
   inside dark or photographic areas the accent falls back to the local ink.
   ========================================================================== */
:root {
  --brand-oxblood: #661a24;
  --oxblood-rgb: 102 26 36;
  --brand-oxblood-deep: #4e131b;
  --accent: var(--brand-oxblood);
}
.hero, .page-hero, .project-dialog, .site-header, .site-footer, .section--maroon,
.dock.is-over-hero, .hww-stage.hww-is-dusk { --accent: currentColor; }

::selection { background: var(--brand-oxblood); color: #fff; }
:focus-visible { outline-color: var(--accent); }

/* labels */
.section__eyebrow, .stat dt, .pcard__tag, .hww-phase__eyebrow, .chapter__num { color: var(--accent); }
.clients__title { color: rgb(var(--oxblood-rgb) / 0.8); }
.stat { border-top-color: rgb(var(--oxblood-rgb) / 0.45); }
.hww-rail__steps li::after { background: var(--accent); }
.hww-rail__steps li.hww-is-on { color: var(--accent); }
.hww-stage.hww-is-dusk .hww-rail__steps li.hww-is-on { color: rgb(var(--ink-rgb) / 0.9); }

/* links */
.text-link { background-image: linear-gradient(var(--accent), var(--accent)); }
.pcard__more { background-image: linear-gradient(currentColor, currentColor); }

/* actions: outlined Oxblood on white, solid Oxblood on hover */
.button { border-color: rgb(var(--oxblood-rgb) / 0.85); color: var(--brand-oxblood); }
.button:hover { background-color: var(--brand-oxblood); border-color: var(--brand-oxblood); color: #fff; }
:is(.hero, .page-hero, .project-dialog, .site-footer, .section--maroon) .button { border-color: var(--ink-line); color: var(--ink); }
:is(.hero, .page-hero, .project-dialog, .site-footer, .section--maroon) .button:hover { background-color: rgb(255 255 255 / 0.1); border-color: var(--ink); color: var(--ink); }
.dock:not(.is-over-hero) .dock__btn--solid { background: var(--brand-oxblood); border-color: var(--brand-oxblood); color: #fff; }
.dock:not(.is-over-hero) .dock__btn--solid:hover { background: var(--brand-oxblood-deep); border-color: var(--brand-oxblood-deep); }

/* ==========================================================================
   Enquiry form (in the Oxblood "Start a conversation" band) — centred, white
   ========================================================================== */
.enq { width: min(100%, 68rem); margin: clamp(1.5rem, 2.5vw, 2rem) auto 0; text-align: center; }
.section--maroon .section__eyebrow { margin: 0; }
.enq-types { margin: 0 0 clamp(1.75rem, 3vw, 2.5rem); padding: 0; border: 0; }
.enq-label { display: block; margin: 0 0 0.75rem; padding: 0; font-size: 0.6875rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgb(255 255 255 / 0.78); }
.enq-label span { color: rgb(255 255 255 / 0.6); }
.enq-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.enq-chip { position: relative; cursor: pointer; }
.enq-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.enq-chip span { display: inline-flex; align-items: center; min-height: 2.4rem; padding: 0 1em; border: 1px solid rgb(255 255 255 / 0.4); font-size: 0.8125rem; color: #fff; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.enq-chip:hover span { border-color: #fff; }
.enq-chip input:checked + span { background: #fff; border-color: #fff; color: var(--brand-oxblood, #661a24); }
.enq-chip input:focus-visible + span { outline: 1.5px solid #fff; outline-offset: 3px; }

.enq-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.enq-field--wide { grid-column: 1 / -1; }
.enq-field input, .enq-field select, .enq-field textarea {
  display: block; width: 100%; padding: 0.55em 0 0.6em; border: 0; border-bottom: 1px solid rgb(255 255 255 / 0.5); border-radius: 0;
  background: transparent; color: #fff; font: inherit; font-size: 1rem; text-align: center; text-align-last: center;
  -webkit-appearance: none; appearance: none; outline: none; transition: border-color 200ms ease, box-shadow 200ms ease;
}
.enq-field textarea { resize: vertical; min-height: 4.6rem; line-height: 1.55; }
.enq-field textarea::placeholder { color: rgb(255 255 255 / 0.45); }
.enq-field select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.enq-field select option { color: #1d1813; text-align: left; }
.enq-field input::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.8; cursor: pointer; }
.enq-field input:focus, .enq-field select:focus, .enq-field textarea:focus { border-bottom-color: #fff; box-shadow: 0 1px 0 #fff; }
.enq-field [aria-invalid="true"], .enq-consent input[aria-invalid="true"] { border-bottom-color: #f2b39c; box-shadow: 0 1px 0 #f2b39c; }
.enq-err { min-height: 0; margin: 0.45rem 0 0; font-size: 0.8125rem; color: #f8c7b6; }
.enq-err:empty { display: none; }
.enq-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.enq-consent { display: flex; justify-content: center; align-items: flex-start; gap: 0.75rem; max-width: 44rem; margin: 1.5rem auto 0; text-align: left; font-size: 0.8125rem; line-height: 1.55; color: rgb(255 255 255 / 0.8); cursor: pointer; }
.enq-consent input { flex: none; width: 1.05rem; height: 1.05rem; margin: 0.15rem 0 0; accent-color: #fff; cursor: pointer; }
.enq-err--consent { text-align: center; }
.enq-submit { display: inline-flex; align-items: center; justify-content: center; min-height: 3.2rem; margin-top: 1.4rem; padding: 0 2em; border: 1px solid #fff;
  background: #fff; color: var(--brand-oxblood, #661a24); font: inherit; font-size: 0.9375rem; cursor: pointer; transition: background-color 250ms ease, color 250ms ease; }
.enq-submit:hover { background: transparent; color: #fff; }
.enq-submit:hover .arrow { transform: translate(2px, -2px); }
.enq-submit:focus-visible { outline: 1.5px solid #fff; outline-offset: 4px; }
.enq-submit[disabled] { opacity: 0.6; cursor: progress; }
.enq-status { max-width: 36rem; margin: 1.25rem auto 0; font-size: 0.9375rem; line-height: 1.55; color: #fff; }
.enq-status:empty { display: none; }
@media (max-width: 960px) { .enq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .enq-grid { grid-template-columns: 1fr; gap: 1.2rem; } }

/* Hero — "Explore our work": quiet label with a fine underline that draws across on hover */
.hero-explore {
  display: inline-flex;
  align-items: center;
  min-height: 3em;
  padding-bottom: 0.15em;
  font-size: clamp(0.9375rem, 1.25vw, 1.45rem);
  line-height: 1;
  color: var(--ink);
  background:
    linear-gradient(currentColor, currentColor) 0 calc(100% - 0.55em) / 100% 1px no-repeat,
    linear-gradient(rgb(var(--ink-rgb) / 0.35), rgb(var(--ink-rgb) / 0.35)) 0 calc(100% - 0.55em) / 100% 1px no-repeat;
  background-size: 0 1px, 100% 1px;
  transition: background-size 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-explore:hover, .hero-explore:focus-visible { background-size: 100% 1px, 100% 1px; }
.hero-explore:focus-visible { outline-offset: 6px; }
@media (max-width: 860px) { .hero-explore { font-size: 0.9375rem; } }

/* Phone tilt chip for the 3D modules (assets/js/tilt.js) */
.tilt-chip {
  position: absolute; z-index: 4; left: 50%; bottom: var(--tilt-bottom, 1rem);
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.6em 1em; border: 1px solid rgb(29 24 19 / 0.14); border-radius: 0;
  background: rgb(255 255 255 / 0.72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: #1d1813; font: inherit; font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap;
  transform: translateX(-50%); cursor: pointer; transition: opacity 500ms ease, transform 500ms ease;
}
.tilt-chip svg { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 1.3; }
.tilt-chip svg rect { animation: tilt-rock 2.6s ease-in-out infinite; transform-origin: 12px 12px; }
.tilt-chip:not(.is-hint) { border-color: var(--brand-oxblood, #661a24); color: var(--brand-oxblood, #661a24); }
.tilt-chip.is-hint { cursor: default; pointer-events: none; }
.tilt-chip.is-gone { opacity: 0; transform: translate(-50%, 6px); }
.tilt-chip:focus-visible { outline: 1.5px solid var(--brand-oxblood, #661a24); outline-offset: 3px; }
@keyframes tilt-rock { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(14deg); } }
.scaffold3d.tilt-on .scaffold3d__hint, .hww-stage:has(.tilt-on) .hww-stage__hint { display: none; }

/* Demo mode note (assets/js/demo.js) */
.demo-note {
  position: fixed; z-index: 60; left: 50%; bottom: calc(var(--dock-space) + 0.75rem);
  margin: 0; padding: 0.7em 1.1em; background: #121212; color: #fff;
  font-size: 0.75rem; letter-spacing: 0.06em; white-space: nowrap;
  border-left: 2px solid var(--brand-oxblood, #661a24);
  opacity: 0; transform: translate(-50%, 8px); pointer-events: none;
  transition: opacity 260ms ease, transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.demo-note.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Loading state — the Ardleigh icon, grey, pulsing (shown while an asset loads)
   ========================================================================== */
.ard-loader, .ard-loading::before {
  content: "";
  display: block;
  width: var(--ard-loader-w, 3.4rem);
  aspect-ratio: 619 / 507;
  background: var(--ard-loader-c, #b9b4ad);
  -webkit-mask: url("../brand/ardleigh-icon-mask.svg") center / contain no-repeat;
  mask: url("../brand/ardleigh-icon-mask.svg") center / contain no-repeat;
  animation: ard-pulse 1.6s ease-in-out infinite;
  pointer-events: none;
}
.ard-loader--light { --ard-loader-c: rgb(232 226 220 / 0.6); --ard-loader-w: 4.2rem; }
.ard-loading::before { position: absolute; z-index: 3; inset: 0; margin: auto; }
.ard-loading img { opacity: 0; }
.ard-loaded img { transition: opacity 500ms ease; }
@keyframes ard-pulse { 0%, 100% { opacity: 0.3; scale: 0.94; } 50% { opacity: 0.95; scale: 1; } }
@media (prefers-reduced-motion: reduce) { .ard-loader, .ard-loading::before { animation: none; opacity: 0.6; } }

/* 3D scaffold (home): shown until the scene is built */
.scaffold3d:not(.is-ready)::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 3.4rem; aspect-ratio: 619 / 507; background: #b9b4ad;
  -webkit-mask: url("../brand/ardleigh-icon-mask.svg") center / contain no-repeat;
  mask: url("../brand/ardleigh-icon-mask.svg") center / contain no-repeat;
  animation: ard-pulse 1.6s ease-in-out infinite;
}
.hero .ard-loading::before { --ard-loader-c: rgb(232 226 220 / 0.55); }
