/* ============================================================
   WeArrange — sections
   Ordered exactly as the page descends: ice → periwinkle → dusk → night.
   ============================================================ */

/* ------------------------------------------------------------
   00 · PRELOADER
   Five capsules stand up in sequence — the W being assembled —
   then the whole plate lifts away.
   ------------------------------------------------------------ */
.preload {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--ice);
  display: grid;
  place-items: center;
  transition: transform 1.15s var(--ease-in-out), opacity 0.4s linear 0.75s;
}
.preload.is-done { transform: translateY(-100%); opacity: 0; pointer-events: none; }

.preload__inner { display: flex; flex-direction: column; align-items: center; gap: 2.2rem; }

.preload__bars { display: flex; align-items: flex-end; gap: 6px; height: 62px; color: var(--blue); }
.preload__bars span {
  width: 13px;
  border-radius: 999px;
  background: currentColor;
  height: 8px;
  transform-origin: bottom center;
  animation: capstand 1.5s var(--ease-out) infinite;
}
.preload__bars span:nth-child(1) { animation-delay: 0ms;   --h: 62px; }
.preload__bars span:nth-child(2) { animation-delay: 90ms;  --h: 30px; }
.preload__bars span:nth-child(3) { animation-delay: 180ms; --h: 46px; }
.preload__bars span:nth-child(4) { animation-delay: 270ms; --h: 30px; }
.preload__bars span:nth-child(5) { animation-delay: 360ms; --h: 62px; }
@keyframes capstand {
  0%, 100% { height: 8px; }
  40%, 70% { height: var(--h); }
}

.preload__meta {
  display: flex; align-items: baseline; gap: 1.1rem;
  font-family: var(--text); font-size: 0.72rem;
  letter-spacing: 0.06em; color: var(--blue);
}
.preload__pct { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------
   HEADER
   ------------------------------------------------------------ */
.hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: clamp(1rem, 2vh, 1.75rem) var(--gutter);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  color: var(--ink);
  transition: transform 0.6s var(--ease-out), opacity 0.4s, color 0.6s linear;
}
/* Over the horizon scene the page is mid-blue whatever the phase token says,
   so the chrome commits to ice there and stays readable throughout. */
body[data-phase="dusk"] .hdr, body[data-phase="night"] .hdr { color: var(--ice); }
.hdr.is-hidden { transform: translateY(-120%); }

.hdr__mark { display: flex; align-items: center; gap: 0.7rem; }
.hdr__mark svg { width: 30px; height: auto; }
.hdr__mark svg path { fill: currentColor; }
.hdr__word {
  font-family: var(--display); font-weight: 500;
  font-size: 1.05rem; letter-spacing: -0.02em;
}

.hdr__nav { display: flex; justify-content: center; gap: clamp(1.1rem, 2.4vw, 2.6rem); }
.hdr__nav a {
  font-family: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  opacity: 0.72;
  transition: opacity 0.35s;
  position: relative;
}
.hdr__nav a::before {
  content: attr(data-n);
  position: absolute; top: -0.85em; left: 0;
  font-size: 0.5rem; opacity: 0; letter-spacing: 0.1em;
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
  transform: translateY(4px);
}
.hdr__nav a:hover { opacity: 1; }
.hdr__nav a:hover::before { opacity: 0.55; transform: none; }
.hdr__nav a.is-here { opacity: 1; }

.hdr__right { display: flex; align-items: center; gap: 1.2rem; }
.hdr__clock {
  font-family: var(--text); font-size: 0.72rem;
  letter-spacing: 0.06em; opacity: 0.6;
  font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: 0.5rem;
}
.hdr__clock i {
  width: 5px; height: 5px; border-radius: 999px;
  background: var(--gold); font-style: normal;
  animation: blip 2.4s ease-in-out infinite;
}
@keyframes blip { 0%,100% { opacity: 1; } 50% { opacity: 0.15; } }

.hdr__cta {
  font-family: var(--text); font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid currentColor;
  opacity: 0.75;
  padding: 0.6em 1.1em; border-radius: 999px;
  transition: background-color 0.4s, color 0.4s, opacity 0.4s;
}
.hdr__cta:hover { background: var(--gold); color: var(--black); border-color: var(--gold); opacity: 1; }

.hdr__burger { display: none; }

@media (max-width: 940px) {
  .hdr { grid-template-columns: auto 1fr; }
  .hdr__nav, .hdr__clock { display: none; }
  .hdr__right { justify-content: flex-end; gap: 0.6rem; }
  .hdr__burger { display: inline-flex; }
}
@media (max-width: 420px) {
  /* below this the two pills crowd the wordmark — the drawer holds Begin too */
  .hdr__right > .hdr__cta[href] { display: none; }
}

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 800;
  visibility: hidden;
  background: var(--blue);
  color: var(--ice);
  padding: 6rem var(--gutter) 3rem;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.85s var(--ease-in-out), visibility 0s linear 0.85s;
}
.drawer.is-open { transition: clip-path 0.85s var(--ease-in-out), visibility 0s; }
.drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.drawer a { font-family: var(--display); font-size: clamp(2rem, 9vw, 3.4rem); font-weight: 400; line-height: 1.05; }
.drawer__list { display: flex; flex-direction: column; gap: 0.2em; }
.drawer__close { position: absolute; top: 1.6rem; right: var(--gutter); font-family: var(--text); font-size: 0.7rem; letter-spacing: 0.06em; }

/* ------------------------------------------------------------
   01 · HERO
   Three rows: coordinates, headline, footing. Explicit grid rather
   than absolute positioning, so the headline can grow to fill the
   viewport without ever colliding with what sits above or below it.
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: clamp(1.5rem, 4vh, 3rem);
  padding:
    clamp(5.5rem, 13vh, 8.5rem)
    var(--gutter)
    clamp(1.75rem, 4vh, 3rem);
  overflow: hidden;
  background: var(--ice);
  isolation: isolate;
}

/* the capsule field — a canvas of logo bars that assemble into the W */
.hero__field {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__field canvas { width: 100%; height: 100%; display: block; }

/* hairline construction grid, straight off the logo-structure slide */
.hero__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--rule-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule-soft) 1px, transparent 1px);
  background-size: calc(100% / 5) calc(100% / 3);
  opacity: 0;
  transition: opacity 1.4s var(--ease-out) 0.4s;
}
.hero.is-ready .hero__grid { opacity: 1; }

.hero__top {
  display: flex;
  align-items: baseline;
  gap: clamp(0.8rem, 2vw, 1.6rem);
  flex-wrap: wrap;
}
.hero__coord { display: flex; align-items: center; gap: 0.7rem; }
.hero__coord .cap { width: 22px; height: 3px; background: var(--gold); flex: none; }

.hero__h {
  color: var(--blue);
  align-self: center;
  margin: 0;
}
.hero__h .line > i { display: block; }

/* the rotating object of the sentence.
   The mask box is deliberately taller than the cap height — "compliance"
   has a descender, and a 1em box would guillotine it. */
.rotor {
  display: inline-grid;
  vertical-align: bottom;
  overflow: hidden;
  height: 1.16em;
  align-items: start;
}
.rotor > span {
  grid-area: 1 / 1;
  display: block;
  line-height: 1.02;
  color: var(--gold);
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.8s var(--ease-out), opacity 0.5s linear;
  white-space: nowrap;
}
.rotor > span.is-on { transform: none; opacity: 1; }
.rotor > span.is-out { transform: translateY(-110%); opacity: 0; transition-duration: 0.6s; }

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: end;
  border-top: 1px solid var(--rule);
  padding-top: clamp(1.1rem, 2.5vh, 1.8rem);
}
.hero__foot p { max-width: 40ch; }
.hero__acts { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }

.hero__cue {
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
  font-family: var(--serif);
  font-style: italic; font-size: 0.92rem;
  letter-spacing: 0;
  color: var(--ink-soft);
  writing-mode: vertical-rl;
  align-self: end;
  padding-bottom: 0.2rem;
}
.hero__cue::after {
  content: ''; width: 1px; height: 42px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: cueslide 2.6s var(--ease-in-out) infinite;
  transform-origin: top;
}
@keyframes cueslide { 0%,100% { transform: scaleY(0.3); opacity: 0.3; } 50% { transform: scaleY(1); opacity: 1; } }

@media (max-width: 1000px) {
  .hero__foot { grid-template-columns: 1fr; }
  .hero__cue { display: none; }
}

/* ------------------------------------------------------------
   02 · RIBBON — scroll-velocity marquee
   ------------------------------------------------------------ */
.ribbon {
  background: var(--blue);
  color: var(--ice);
  padding: clamp(0.85rem, 2vh, 1.35rem) 0;
  overflow: hidden;
  position: relative;
  border-block: 1px solid var(--blue-deep);
}
.ribbon__track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.ribbon__set { display: flex; align-items: center; flex: none; }
.ribbon__item {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.1rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em;
  padding-inline: clamp(0.9rem, 2vw, 1.8rem);
  display: flex; align-items: center; gap: clamp(0.9rem, 2vw, 1.8rem);
  white-space: nowrap;
}
.ribbon__item::after {
  content: '';
  width: 0.42em; height: 0.42em;
  border-radius: 999px;
  background: var(--gold);
  flex: none;
}
.ribbon--gold { background: var(--gold); color: var(--black); border-color: rgba(0,0,0,0.15); }
.ribbon--gold .ribbon__item::after { background: var(--black); }

/* ------------------------------------------------------------
   03 · PREMISE — pinned typographic sequence
   ------------------------------------------------------------ */
/* height = scroll budget for the pin. 7 lines × ~55vh of travel, plus lead-in. */
.premise { position: relative; background: var(--ice); height: 460vh; }
.premise__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.premise__stack {
  position: relative;
  display: grid;
}
.premise__line {
  grid-area: 1 / 1;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.9rem, 5.4vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--blue);
  /* `ch` is the width of "0", and Clash Display's zero is wide — 22ch resolved
     to ~1200px and never wrapped anything. Set from the measure we actually
     want: statements breaking to two or three lines. */
  max-width: 15ch;
  opacity: 0;
  transform: translateY(2.2rem) scale(0.97);
  filter: blur(6px);
  transition: opacity 0.55s linear, transform 0.9s var(--ease-out), filter 0.6s linear;
}
.premise__line.is-on { opacity: 1; transform: none; filter: none; }
.premise__line.is-past { opacity: 0; transform: translateY(-1.6rem) scale(1.02); filter: blur(6px); }
.premise__line em { font-style: normal; color: var(--gold); font-weight: 500; }
.premise__line b { font-weight: 500; }

/* the counting spine on the right — bars fill as lines advance */
.premise__meter {
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.premise__meter span {
  height: 3px;
  width: 18px;
  border-radius: 999px;
  background: var(--rule);
  transition: width 0.7s var(--ease-out), background-color 0.5s;
}
.premise__meter span.is-on { width: 64px; background: var(--gold); }
.premise__meter span.is-past { width: 34px; background: var(--blue); }
@media (max-width: 780px) { .premise__meter { display: none; } }

/* ------------------------------------------------------------
   04 · ARRANGEMENTS — the service index
   Rows, not cards. Hover/focus lifts a plate out of the row.
   ------------------------------------------------------------ */
.arr { background: var(--ice); position: relative; z-index: 2; }

.arr__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 7vh, 5rem);
}
@media (max-width: 860px) { .arr__head { grid-template-columns: 1fr; } }

.arr__list { border-top: 1px solid var(--rule); }

.arr__row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr) 2.5rem;
  gap: clamp(0.8rem, 2vw, 2rem);
  align-items: center;
  padding: clamp(1.1rem, 2.6vh, 1.9rem) 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  isolation: isolate;
  transition: color 0.5s var(--ease-out);
}
.arr__row::before {
  content: '';
  position: absolute;
  inset: 0 calc(var(--gutter) * -0.5);
  background: var(--blue);
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.55s var(--ease-in-out);
  border-radius: 4px;
}
.arr__row:hover, .arr__row:focus-within, .arr__row.is-open { color: var(--ice); }
.arr__row:hover::before, .arr__row:focus-within::before, .arr__row.is-open::before { transform: scaleY(1); }

.arr__n { font-family: var(--text); font-size: 0.7rem; opacity: 0.5; font-variant-numeric: tabular-nums; }
.arr__t {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.55vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.03em;
  display: flex; align-items: baseline; gap: 0.6em; flex-wrap: wrap;
}
.arr__t .ar { font-size: 0.42em; opacity: 0.45; }
.arr__d { font-size: 0.9rem; line-height: 1.45; opacity: 0.62; font-weight: 300; }
.arr__go {
  justify-self: end;
  width: 2.1rem; height: 2.1rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  display: grid; place-items: center;
  opacity: 0.35;
  transition: opacity 0.4s, transform 0.5s var(--ease-out), background-color 0.4s, color 0.4s;
}
.arr__go svg { width: 0.72rem; height: 0.72rem; }
.arr__row:hover .arr__go, .arr__row.is-open .arr__go {
  opacity: 1; transform: rotate(45deg);
  background: var(--gold); color: var(--black); border-color: var(--gold);
}

/* the expanding drawer of specifics */
.arr__more {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.7s var(--ease-in-out);
}
.arr__row.is-open .arr__more { grid-template-rows: 1fr; }
.arr__more > div { overflow: hidden; }
.arr__tags {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  padding-top: 1.3rem;
}
.arr__tags span {
  font-family: var(--text); font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.5em 0.85em;
  border: 1px solid rgba(241,245,255,0.28);
  border-radius: 999px;
  opacity: 0.8;
}

@media (max-width: 860px) {
  .arr__row { grid-template-columns: minmax(0, 1fr) 2rem; }
  .arr__d { display: none; }

}

/* ------------------------------------------------------------
   05 · JURISDICTIONS — pinned horizontal rail
   This is where the periwinkle floods in.
   ------------------------------------------------------------ */
/* height = scroll budget for the horizontal rail */
.juris { position: relative; background: var(--peri); color: var(--blue); height: 420vh; }
.juris__pin {
  position: sticky; top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.juris__bar {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(5rem, 12vh, 7rem) var(--gutter) clamp(1rem, 2.5vh, 1.8rem);
  border-bottom: 1px solid rgba(30,62,149,0.2);
}
.juris__bar h2 { font-size: clamp(1.5rem, 3.6vw, 3rem); }
.juris__count { font-family: var(--text); font-size: 0.72rem; letter-spacing: 0.06em; }

.juris__viewport { flex: 1; overflow: hidden; display: flex; align-items: center; }
.juris__track {
  display: flex;
  gap: clamp(0.9rem, 1.8vw, 1.6rem);
  padding-inline: var(--gutter);
  will-change: transform;
}

/* Emirate panels. Photograph on top carrying the brand duotone, text below —
   a plate from a book rather than a floating rounded rectangle. */
.ecard {
  flex: none;
  width: clamp(18rem, 27vw, 26rem);
  height: clamp(24rem, 60vh, 34rem);
  background: var(--ice);
  border-radius: 3px;
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 0.9fr) minmax(0, 1.1fr);
  transition: transform 0.7s var(--ease-out);
}
.ecard:hover { transform: translateY(-10px); }
.ecard__shot { position: relative; overflow: hidden; }
.ecard__shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: grayscale(1) contrast(1.2) brightness(0.95);
  transition: transform 1.2s var(--ease-out);
}
.ecard:hover .ecard__shot img { transform: scale(1.05); }
.ecard__shot::before,
.ecard__shot::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
.ecard__shot::before { background: var(--blue); mix-blend-mode: color; }
.ecard__shot::after {
  background: linear-gradient(155deg,
    rgba(218,172,0,0.36) 0%, rgba(218,172,0,0.05) 40%,
    rgba(179,199,255,0.18) 74%, rgba(5,6,9,0.34) 100%);
  mix-blend-mode: soft-light;
}
.ecard__body {
  padding: clamp(1.1rem, 2vw, 1.6rem);
  display: flex; flex-direction: column; gap: 0.55rem;
  overflow: hidden;
}
.ecard__name {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  line-height: 0.98; letter-spacing: -0.03em;
}
.ecard__text {
  font-family: var(--serif);
  font-size: 0.92rem; line-height: 1.48;
  opacity: 0.72;
}
.ecard__zones {
  display: flex; flex-wrap: wrap; gap: 0.3rem;
  margin-top: auto; padding-top: 0.4rem;
}
.ecard__zones li {
  font-size: 0.68rem; letter-spacing: 0.03em;
  padding: 0.32em 0.6em;
  border: 1px solid var(--rule);
  border-radius: 999px;
  opacity: 0.72;
}
.ecard--last { grid-template-rows: 1fr; background: var(--blue); color: var(--ice); }
.ecard--last .ecard__zones li { border-color: rgba(241,245,255,0.28); }
.ecard__go {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 0.9rem; font-size: 0.84rem; color: var(--gold);
  border-bottom: 1px solid currentColor; align-self: flex-start;
  padding-bottom: 0.15rem;
}
.ecard__go svg { width: 0.7rem; height: 0.7rem; }

.juris__hint {
  padding: 0 var(--gutter) clamp(1.2rem, 3vh, 2rem);
  font-family: var(--serif);
  font-style: italic; font-size: 0.92rem;
  letter-spacing: 0; opacity: 0.5;
  display: flex; align-items: center; gap: 0.7rem;
}
.juris__hint .cap { width: 40px; height: 2px; background: currentColor; }

/* progress under the rail */
.juris__prog { height: 2px; background: rgba(30,62,149,0.18); margin: 0 var(--gutter) clamp(1.2rem,3vh,2rem); }
.juris__prog i { display: block; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(0); }

/* ------------------------------------------------------------
   06 · HORIZON — the day→night hinge
   ------------------------------------------------------------ */
/* height = scroll budget for the sun's descent */
.horizon { position: relative; height: 320vh; }
.horizon__pin {
  position: sticky; top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--peri);
}
.horizon__sky {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    var(--sky-top, #b3c7ff) 0%,
    var(--sky-mid, #d8e2ff) 52%,
    var(--sky-low, #f1f5ff) 100%
  );
}
/* the gold sun — one capsule, descending */
.horizon__sun {
  position: absolute;
  top: 0;
  left: 31%;
  width: clamp(5.5rem, 11vw, 11rem);
  height: clamp(5.5rem, 11vw, 11rem);
  border-radius: 999px;
  background: var(--gold);
  transform: translate(-50%, var(--sun-y, -10vh));
  box-shadow: 0 0 clamp(4rem, 12vw, 12rem) rgba(218,172,0,0.55);
  will-change: transform;
}
/* the ground plane */
.horizon__ground {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 32%;
  background: linear-gradient(to bottom, var(--ground, #16306f), var(--night));
  opacity: var(--ground-o, 0);
  transition: opacity 0.2s linear;
}
.horizon__line {
  position: absolute;
  left: 0; right: 0;
  bottom: 32%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(var(--line-x, 0));
  transform-origin: center;
  box-shadow: 0 0 30px rgba(218,172,0,0.8);
}

/* The scene: Downtown Dubai with the Burj Khalifa at its centre, drawn to
   real proportions — 828 m to the tip, 585 m to the roof, and the setbacks
   stepping at different heights left and right because they spiral. The
   supporting skyline sits in two depth layers so the tower is not a diagram
   floating in space. */
.horizon__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}
.scene__far path  { fill: var(--sil-far, #0b1430); opacity: 0.5; }
.scene__near path { fill: var(--sil-near, #060c20); opacity: 0.9; }

.burj__outline {
  fill: var(--sil-near, #060c20);
  stroke: var(--gold);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-dasharray: var(--len, 4000);
  stroke-dashoffset: var(--len, 4000);
}
.burj__bands path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.8;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}

.horizon__cap {
  position: absolute;
  bottom: clamp(2rem, 8vh, 5rem);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 4;
  color: var(--ice);
  opacity: var(--cap-o, 0);
  isolation: isolate;
  padding-inline: var(--gutter);
  max-width: min(46rem, 100%);
}
/* The tower is centred and the caption sits over it on narrower viewports.
   A soft radial scrim keeps the words legible without boxing them in. */
.horizon__cap::before {
  content: '';
  position: absolute;
  inset: -2.4rem -1rem -3rem;
  z-index: -1;
  background: radial-gradient(62% 105% at 50% 58%,
    rgba(5, 6, 9, 0.94) 0%, rgba(5, 6, 9, 0.72) 45%, rgba(5, 6, 9, 0) 78%);
  pointer-events: none;
}
.horizon__cap h2 { font-size: clamp(1.35rem, 3.1vw, 2.6rem); max-width: 18ch; margin-inline: auto; }
.horizon__cap p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(0.95rem, 1vw, 1.1rem);
  margin-top: 0.7rem; opacity: 0.68;
}

/* ------------------------------------------------------------
   07 · METHOD — night begins
   ------------------------------------------------------------ */
.method { background: var(--night); color: var(--ice); position: relative; z-index: 2; }

.method__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule-soft);
  border: 1px solid var(--rule-soft);
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
}
.mstep {
  background: var(--night);
  padding: clamp(1.2rem, 2.2vw, 2rem);
  min-height: clamp(16rem, 34vh, 24rem);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: background-color 0.6s var(--ease-out);
}
.mstep:hover { background: #0d1224; }
/* each step carries its own capsule, height mapped to the logo's W profile */
.mstep__cap {
  display: block;          /* a bare <span> is inline; width/height would be ignored */
  width: 10px;
  border-radius: 999px;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i) * 110ms);
  margin-bottom: 1.4rem;
}
.method.is-in .mstep__cap { transform: scaleY(1); }
.mstep:nth-child(1) .mstep__cap { height: 84px; }
.mstep:nth-child(2) .mstep__cap { height: 40px; background: var(--peri); }
.mstep:nth-child(3) .mstep__cap { height: 62px; }
.mstep:nth-child(4) .mstep__cap { height: 40px; background: var(--peri); }
.mstep:nth-child(5) .mstep__cap { height: 84px; }

.mstep__n { font-family: var(--text); font-size: 0.72rem; letter-spacing: 0.06em; opacity: 0.45; }
.mstep h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.1rem, 1.7vw, 1.6rem); line-height: 1.05; letter-spacing: -0.025em; margin-top: 0.7rem; }
.mstep p { font-size: 0.85rem; font-weight: 300; opacity: 0.55; margin-top: 0.6rem; line-height: 1.45; }
.mstep__when {
  margin-top: 1.4rem;
  font-family: var(--text); font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule-soft);
}

@media (max-width: 1040px) { .method__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 620px)  { .method__grid { grid-template-columns: 1fr; } .mstep { min-height: 0; } }

/* ------------------------------------------------------------
   08 · LEDGER — the numbers
   ------------------------------------------------------------ */
.ledger { background: var(--night); color: var(--ice); position: relative; overflow: hidden; }
.ledger__rows { border-top: 1px solid var(--rule); }
.lrow {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.4rem, 3.4vh, 2.6rem) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.lrow__fig {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline;
}
.lrow__fig sup { font-size: 0.24em; font-weight: 400; letter-spacing: 0; transform: translateY(-1.6em); margin-left: 0.12em; color: var(--gold); }
.lrow__lab { font-size: clamp(0.95rem, 1.2vw, 1.2rem); font-weight: 300; opacity: 0.72; max-width: 32ch; }
.lrow__lab .ar { display: block; text-align: left; font-size: 0.78em; opacity: 0.4; margin-top: 0.3rem; }
.lrow__tick { font-family: var(--text); font-size: 0.72rem; letter-spacing: 0.06em; opacity: 0.3; }
@media (max-width: 820px) {
  .lrow { grid-template-columns: 1fr; gap: 0.6rem; }
  .lrow__tick { display: none; }
}

/* ------------------------------------------------------------
   09 · VALUES — on the live mesh gradient
   ------------------------------------------------------------ */
.values { position: relative; color: var(--ice); overflow: hidden; }
.values__bg { position: absolute; inset: 0; z-index: 0; }
.values__bg canvas { width: 100%; height: 100%; display: block; }
.values__bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--night) 0%, rgba(5,6,9,0.55) 26%, rgba(5,6,9,0.12) 48%, rgba(5,6,9,0.25) 82%, var(--night) 100%);
}
.values .shell { position: relative; z-index: 2; }

.values__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
}
.vcard {
  border: 1px solid rgba(241,245,255,0.22);
  border-radius: 5px;
  padding: clamp(1.2rem, 2.2vw, 2rem);
  backdrop-filter: blur(18px) saturate(115%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  background: rgba(5,6,9,0.46);
  min-height: clamp(13rem, 26vh, 18rem);
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform 0.7s var(--ease-out), border-color 0.5s, background-color 0.5s;
}
.vcard:hover { transform: translateY(-8px); border-color: var(--gold); background: rgba(5,6,9,0.62); }
.vcard__mark { width: 30px; color: var(--gold); }
.vcard__mark path { fill: currentColor; }
.vcard h3 { font-family: var(--display); font-weight: 400; font-size: clamp(1.2rem, 2vw, 1.8rem); letter-spacing: -0.025em; }
.vcard h3 .ar { display: block; text-align: left; font-size: 0.5em; opacity: 0.45; margin-top: 0.25rem; }
.vcard p { font-size: 0.86rem; font-weight: 300; opacity: 0.8; margin-top: 0.55rem; line-height: 1.45; }
@media (max-width: 980px) { .values__grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .values__grid { grid-template-columns: 1fr; } .vcard { min-height: 0; } }

/* ------------------------------------------------------------
   10 · VOICES
   ------------------------------------------------------------ */
.voices { background: var(--night); color: var(--ice); overflow: hidden; }
.voices__track { display: flex; gap: clamp(1rem, 2vw, 2rem); width: max-content; will-change: transform; margin-top: clamp(2rem,5vh,3.5rem); }
.quote {
  flex: none;
  width: clamp(19rem, 34vw, 34rem);
  border-top: 1px solid var(--gold);
  padding-top: 1.4rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.quote blockquote {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.1rem, 1.9vw, 1.7rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
}
.quote figcaption { display: flex; flex-direction: column; gap: 0.2rem; margin-top: auto; }
.quote__who { font-size: 0.86rem; font-weight: 500; }
.quote__what { font-family: var(--text); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.45; }

/* ------------------------------------------------------------
   11 · QUESTIONS
   ------------------------------------------------------------ */
.qs { background: var(--night); color: var(--ice); }
.qs__list { border-top: 1px solid var(--rule); }
.q { border-bottom: 1px solid var(--rule); }
.q__btn {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0,1fr) 2rem;
  gap: clamp(0.8rem, 2vw, 2rem);
  align-items: start;
  text-align: left;
  padding: clamp(1.2rem, 2.6vh, 1.9rem) 0;
  transition: color 0.4s;
}
.q__btn:hover { color: var(--gold); }
.q__n { font-family: var(--text); font-size: 0.72rem; opacity: 0.4; padding-top: 0.35em; }
.q__t { font-family: var(--display); font-weight: 400; font-size: clamp(1.05rem, 2vw, 1.65rem); line-height: 1.14; letter-spacing: -0.025em; }
.q__pm { position: relative; width: 1rem; height: 1rem; justify-self: end; margin-top: 0.35em; }
.q__pm::before, .q__pm::after {
  content: ''; position: absolute; inset: 50% 0 auto 0;
  height: 1px; background: currentColor;
  transition: transform 0.5s var(--ease-in-out);
}
.q__pm::after { transform: rotate(90deg); }
.q.is-open .q__pm::after { transform: rotate(0deg); }
.q.is-open .q__t { color: var(--gold); }
.q__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.65s var(--ease-in-out); }
.q.is-open .q__a { grid-template-rows: 1fr; }
.q__a > div { overflow: hidden; }
.q__a p {
  padding: 0 2rem clamp(1.3rem, 3vh, 2.2rem) 0;
  max-width: 62ch; font-weight: 300; opacity: 0.68; font-size: 0.95rem;
}
@media (max-width: 640px) {
  .q__btn { grid-template-columns: minmax(0,1fr) 1.4rem; }
  .q__a p { padding-right: 0; }
}

/* ------------------------------------------------------------
   12 · BEGIN — contact, on full mesh gradient
   ------------------------------------------------------------ */
.begin { position: relative; color: var(--ice); overflow: hidden; }
.begin__bg { position: absolute; inset: 0; z-index: 0; }
.begin__bg canvas { width: 100%; height: 100%; display: block; }
/* This section carries a form, so legibility outranks the artwork: the
   gradient stays as atmosphere behind a scrim that never lets a label fall
   below readable contrast, whichever pole drifts underneath it. */
.begin__bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--night) 0%, rgba(5,6,9,0.62) 18%, rgba(5,6,9,0.52) 60%, rgba(5,6,9,0.78) 100%);
}
.begin .shell { position: relative; z-index: 2; }

.begin__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 6vw, 6rem);
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
}
@media (max-width: 900px) { .begin__layout { grid-template-columns: 1fr; } }

.begin__aside { display: flex; flex-direction: column; gap: clamp(1.6rem, 4vh, 2.8rem); }
.begin__contact { display: flex; flex-direction: column; gap: 1.1rem; }
.begin__contact a, .begin__contact span { display: flex; flex-direction: column; gap: 0.15rem; }
.begin__contact dt { font-family: var(--text); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.62; }
.begin__contact dd { font-size: 1.02rem; font-weight: 300; }

/* the chip selector — "what are you arranging?" */
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block;
  font-family: var(--text); font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.65em 1em;
  border: 1px solid rgba(241,245,255,0.3);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.4s, color 0.4s, border-color 0.4s;
}
.chip input:checked + span { background: var(--gold); color: var(--black); border-color: var(--gold); }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ledger-line form fields */
.field { position: relative; padding-top: 1.5rem; }
.field input, .field textarea {
  width: 100%;
  border-bottom: 1px solid rgba(241,245,255,0.28);
  padding: 0.55rem 0 0.7rem;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--ice);
  transition: border-color 0.4s;
}
.field textarea { resize: none; min-height: 4.5rem; }
.field label {
  position: absolute;
  top: 1.9rem; left: 0;
  font-family: var(--text); font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0.7; pointer-events: none;
  transition: transform 0.45s var(--ease-out), opacity 0.35s, color 0.35s;
  transform-origin: left top;
}
.field input:focus + label,
.field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.75rem) scale(0.86);
  opacity: 0.9; color: var(--gold);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field__2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.5vw, 2rem); }
@media (max-width: 560px) { .field__2 { grid-template-columns: 1fr; } }

.form__foot { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-top: clamp(1.6rem, 4vh, 2.6rem); }
.form__note { font-family: var(--serif);
  font-style: italic; font-size: 0.92rem; letter-spacing: 0; opacity: 0.6; max-width: 28ch; line-height: 1.7; }
.form__msg { font-family: var(--text); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--gold); min-height: 1.2em; }

.btn--gold { color: var(--black); }
.btn--gold::before { background: var(--gold); }
.btn--gold::after { background: var(--ice); }

/* ------------------------------------------------------------
   13 · FOOTER
   ------------------------------------------------------------ */
.ftr { background: var(--night); color: var(--ice); padding-top: clamp(3rem, 8vh, 6rem); overflow: hidden; }

.ftr__lock {
  padding-inline: var(--gutter);
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.ftr__lock svg { width: 100%; height: auto; }
.ftr__lock svg path { fill: var(--ice); }

.ftr__cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  border-top: 1px solid var(--rule);
  padding-top: clamp(1.6rem, 4vh, 2.6rem);
}
.ftr__col h4 { font-family: var(--text); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.4; margin-bottom: 1rem; }
.ftr__col li { margin-bottom: 0.55rem; }
.ftr__col a, .ftr__col p { font-size: 0.92rem; font-weight: 300; opacity: 0.78; }

.ftr__base {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; flex-wrap: wrap;
  border-top: 1px solid var(--rule);
  margin-top: clamp(2rem, 5vh, 3.5rem);
  padding-block: clamp(1.1rem, 2.5vh, 1.6rem);
  font-family: var(--text); font-size: 0.72rem;
  letter-spacing: 0.06em; opacity: 0.42;
}
@media (max-width: 820px) { .ftr__cols { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 480px) { .ftr__cols { grid-template-columns: 1fr; } }

/* Anything sitting directly on a live gradient needs its own contrast floor —
   the surface underneath it changes colour every frame. */
.values .lede, .begin .lede { color: rgba(241, 245, 255, 0.88); }

/* ============================================================
   SERVICES PANEL + INTERIOR HEADER STATES
   ============================================================ */

/* Interior pages carry a breadcrumb strip directly beneath the fixed header, so
   the chrome is never actually resting over the hero photograph — it sits on
   ice from the first pixel. It used to be set in ice too, which made white
   text on a near-white strip: the header was invisible at the top of all 400
   pages and only became legible once you had scrolled a hero height.
   The landing page has no breadcrumb and keeps the transparent treatment. */
body.page .hdr {
  color: var(--blue);
  background: rgba(241, 245, 255, 0.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule-soft);
}
/* and the content has to start below it, or the header covers the breadcrumb */
body.page #scroll-content { padding-top: var(--hdr-h); }
/* anchor targets clear the plate rather than landing underneath it — this site
   has 400+ pages linking to #find, #quiz and the emirate anchors */
body.page [id] { scroll-margin-top: calc(var(--hdr-h) + 0.6rem); }

.hdr__svc {
  font-family: var(--text);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  opacity: 0.72;
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  transition: opacity 0.35s;
}
.hdr__svc:hover, .hdr__svc[aria-expanded="true"] { opacity: 1; }
.hdr__chev {
  width: 0.42em; height: 0.42em;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-0.12em) rotate(45deg);
  transition: transform 0.4s var(--ease-out);
}
.hdr__svc[aria-expanded="true"] .hdr__chev { transform: translateY(0.06em) rotate(225deg); }

.svc {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--blue);
  color: var(--ice);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.55s var(--ease-in-out);
  border-top: 1px solid rgba(241,245,255,0.14);
}
.svc.is-open { clip-path: inset(0 0 0 0); }
.svc__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(1.6rem, 3.5vh, 2.6rem) var(--gutter) clamp(1.8rem, 4vh, 2.8rem);
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.svc__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem clamp(1.5rem, 3vw, 3rem);
}
.svc__list a, .svc__all {
  display: block;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(241,245,255,0.13);
  transition: padding-left 0.4s var(--ease-out), color 0.3s;
}
.svc__list a:hover, .svc__all:hover { padding-left: 0.7rem; color: var(--gold); }
.svc__t {
  display: block;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  letter-spacing: -0.02em;
}
.svc__d {
  display: block; margin-top: 0.16rem;
  font-family: var(--serif); font-size: 0.86rem;
  line-height: 1.4; opacity: 0.6;
}
.svc__all {
  border: 1px solid rgba(241,245,255,0.2);
  border-radius: 4px;
  padding: clamp(1rem, 2vw, 1.4rem);
}
.svc__all:hover { padding-left: clamp(1rem, 2vw, 1.4rem); border-color: var(--gold); }
@media (max-width: 940px) { .svc { display: none; } }
@media (max-width: 1120px) { .svc__inner { grid-template-columns: 1fr; } }

/* the drawer now carries the full sitemap */
.drawer .label { color: var(--gold); opacity: 0.8; margin-bottom: 0.3rem; }
.drawer__list a { font-size: clamp(1.45rem, 6vw, 2.3rem); }
.drawer__list { gap: 0; }

/* ============================================================
   WHERE SHOULD THIS COMPANY LIVE? — the questionnaire
   Sits on the ice paper, before the jurisdictions rail, so the
   rail arrives as an answer rather than a catalogue.
   ============================================================ */
.quiz { background: var(--ice); position: relative; z-index: 2; }
.quiz__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
@media (max-width: 860px) { .quiz__head { grid-template-columns: 1fr; } }

.qz {
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.45);
  overflow: hidden;
}
.qz__bar { height: 2px; background: var(--rule-soft); }
.qz__bar i {
  display: block; height: 100%;
  background: var(--gold);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.6s var(--ease-out);
}
.qz__count {
  padding: clamp(1rem, 2.5vh, 1.5rem) clamp(1.2rem, 3vw, 2.4rem) 0;
  font-family: var(--serif); font-style: italic;
  font-size: 0.92rem; opacity: 0.5;
}
.qz__stage {
  padding: clamp(0.8rem, 2vh, 1.2rem) clamp(1.2rem, 3vw, 2.4rem) clamp(1.6rem, 4vh, 2.6rem);
  transition: opacity 0.22s linear, transform 0.22s var(--ease-out);
}
.qz__stage.is-out { opacity: 0; transform: translateY(-8px); }

.qz__q h3 { margin-bottom: 0.5rem; }
.qz__note {
  font-family: var(--serif);
  font-size: 0.98rem; line-height: 1.55;
  max-width: 62ch; opacity: 0.62;
  margin-bottom: 1.4rem;
}
.qz__opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.6rem; margin-top: 1.2rem; }
.qz__opt {
  text-align: left;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.95rem 1.1rem;
  background: rgba(255,255,255,0.5);
  transition: border-color 0.35s, background-color 0.35s, transform 0.35s var(--ease-out);
}
.qz__opt:hover { border-color: var(--blue); background: #fff; transform: translateY(-2px); }
.qz__opt.is-on { border-color: var(--gold); background: #fff; }
.qz__ot { display: block; font-weight: 500; font-size: 1rem; }
.qz__od { display: block; font-family: var(--serif); font-size: 0.88rem; line-height: 1.42; opacity: 0.58; margin-top: 0.2rem; }
.qz__back {
  margin-top: 1.3rem;
  font-family: var(--serif); font-style: italic;
  font-size: 0.92rem; opacity: 0.5;
  border-bottom: 1px solid currentColor;
}
.qz__back:hover { opacity: 1; }

/* --- the answer --- */
.qz__result h3 { margin: 0.4rem 0 0.8rem; }
.qz__body { font-family: var(--serif); font-size: clamp(1rem, 0.5vw + 0.9rem, 1.16rem); line-height: 1.58; max-width: 66ch; }
.qz__zones { display: grid; gap: 0.5rem; margin: clamp(1.4rem, 3.5vh, 2.2rem) 0; }
.qz__zone {
  display: grid;
  grid-template-columns: minmax(5.5rem, 0.2fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 0.35rem clamp(0.9rem, 2.5vw, 2rem);
  align-items: baseline;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: rgba(255,255,255,0.5);
  transition: border-color 0.35s, background-color 0.35s, transform 0.4s var(--ease-out);
}
.qz__zone:hover { border-color: var(--gold); background: #fff; transform: translateX(4px); }
.qz__zc { font-family: var(--display); font-weight: 500; font-size: 1.08rem; letter-spacing: -0.02em; }
.qz__zn { font-size: 0.92rem; }
.qz__zn em { display: block; font-family: var(--serif); font-style: italic; font-size: 0.84rem; opacity: 0.5; margin-top: 0.1rem; }
.qz__zw { font-family: var(--serif); font-size: 0.9rem; line-height: 1.45; opacity: 0.66; }
@media (max-width: 760px) { .qz__zone { grid-template-columns: 1fr; } }

.qz__caveat {
  font-family: var(--serif); font-size: 0.96rem; line-height: 1.55;
  max-width: 62ch; opacity: 0.6;
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
}
.qz__acts { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: clamp(1.4rem, 3.5vh, 2.2rem); }
.qz__small { margin-top: 1.4rem; font-size: 0.8rem; line-height: 1.6; opacity: 0.45; max-width: 66ch; }
.svc__side { display: grid; gap: 0.5rem; }
.svc__side .svc__all { padding: 0.85rem clamp(0.8rem, 1.6vw, 1.1rem); }
.svc__side .svc__d { font-size: 0.8rem; }
@media (max-width: 1240px) { .hdr__nav { gap: clamp(0.8rem, 1.6vw, 1.6rem); } }
.ftr__cols { grid-template-columns: repeat(5, minmax(0,1fr)); }
@media (max-width: 1100px) { .ftr__cols { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 720px)  { .ftr__cols { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 460px)  { .ftr__cols { grid-template-columns: 1fr; } }

/* ── language switcher (built by js/locale.js) ────────────────────── */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--text); font-size: 0.72rem; letter-spacing: 0.06em;
  border: 1px solid currentColor; opacity: 0.75;
  padding: 0.6em 0.85em; border-radius: 999px; cursor: pointer;
  background: transparent; color: inherit;
  transition: background-color 0.4s, color 0.4s, opacity 0.4s;
}
.lang__btn:hover, .lang.is-open .lang__btn {
  background: var(--gold); color: var(--black); border-color: var(--gold); opacity: 1;
}
.lang__chev {
  width: 0.42em; height: 0.42em; border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor; transform: translateY(-0.12em) rotate(45deg);
  transition: transform 0.3s;
}
.lang.is-open .lang__chev { transform: translateY(0.06em) rotate(225deg); }

.lang__list {
  position: absolute; top: calc(100% + 0.5rem); inset-inline-end: 0;
  min-width: 11rem; z-index: 60;
  background: var(--ice); color: var(--blue);
  border: 1px solid var(--rule-soft); border-radius: 0.6rem;
  padding: 0.4rem; display: flex; flex-direction: column;
  box-shadow: 0 18px 50px -22px rgba(11, 22, 56, 0.45);
}
.lang__list a {
  font-family: var(--text); font-size: 0.86rem;
  padding: 0.5rem 0.7rem; border-radius: 0.4rem; opacity: 0.8;
  transition: background-color 0.25s, opacity 0.25s;
}
.lang__list a:hover { background: var(--peri-soft, rgba(179,199,255,0.28)); opacity: 1; }
.lang__list a.is-here { opacity: 1; font-weight: 500; }
.lang__list a.is-here::after { content: " ·"; color: var(--gold); }

.drawer__langs { display: flex; flex-wrap: wrap; gap: 0.5rem 1.1rem; margin-top: 0.4rem; }
.drawer__langs a { font-size: 1rem !important; opacity: 0.75; }
.drawer__langs a.is-here { opacity: 1; color: var(--gold); }

@media (max-width: 940px) { .lang { display: none; } }
