/* The Handley Group — v4 "Courthouse tile" edition
   Limewash plaster, Tunisian tile, wrought iron, bougainvillea. */
@import url("https://fonts.googleapis.com/css2?family=Gloock&family=Hanken+Grotesk:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap");

:root {
  /* colour */
  --plaster: #EDE9E1;
  --plaster-2: #E0D9CB;
  --plaster-3: #F6F3ED;
  --iron: #221F1B;
  --iron-2: #4A443C;
  --mist: #6F675C;
  --azulejo: #1E5566;
  --azulejo-deep: #123A46;
  --azulejo-ink: #0C2A33;
  --ochre: #C9973F;
  --ochre-soft: #E6C98F;
  --bougain: #A3325A;
  --line: rgba(34, 31, 27, 0.16);
  --line-light: rgba(237, 233, 225, 0.2);

  /* type */
  --display: "Gloock", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --t-14: 0.875rem;
  --t-17: 1.0625rem;
  --t-21: 1.3125rem;
  --t-28: 1.75rem;
  --t-36: clamp(1.875rem, 2.6vw, 2.25rem);
  --t-48: clamp(2.25rem, 3.8vw, 3rem);
  --t-64: clamp(2.5rem, 5vw, 4rem);
  --t-84: clamp(2.75rem, 6.2vw, 5.25rem);

  /* shape */
  --arch: 999px 999px 0 0;
  --rail: 76px;
  --head: 68px;
  --gutter: clamp(20px, 6vw, 96px);
  --measure: 62ch;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --tile-star: url("../svg/tile-star.svg");
  --tile-quatrefoil: url("../svg/tile-quatrefoil.svg");
  --tile-lattice: url("../svg/tile-lattice.svg");
  --tile-rosette: url("../svg/tile-rosette.svg");
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--head); }
body {
  font-family: var(--text);
  font-size: var(--t-17);
  font-weight: 400;
  line-height: 1.6;
  color: var(--iron);
  background: var(--plaster);
  overflow-x: hidden;
  font-feature-settings: "kern", "liga", "onum";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--azulejo); color: var(--plaster); }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: rgba(163, 50, 90, .5); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--bougain); }
button { font: inherit; color: inherit; cursor: pointer; }
p + p { margin-top: 1em; }
strong { font-weight: 600; }

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

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 300;
  background: var(--iron); color: var(--plaster); padding: 10px 16px;
}
.skip:focus { left: calc(var(--rail) + 12px); }

/* ---------- Rail: a tiled column ---------- */
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail); z-index: 70;
  background: var(--azulejo-deep);
  display: grid; grid-template-rows: auto 1fr auto; justify-items: center;
  padding: 14px 0 20px;
}
.rail::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 12px;
  background: var(--tile-star) 0 0 / 12px 12px repeat-y;
  opacity: .9;
}
.rail .seal { width: 44px; height: 44px; display: block; }
.rail .seal img { width: 100%; height: 100%; }
.rail-ch {
  list-style: none; align-self: end;
  display: grid; gap: 6px; justify-items: center; margin-right: 12px;
}
.rail-ch a {
  display: grid; place-items: center;
  width: 38px; height: 44px;
  border-radius: 999px 999px 2px 2px;
  font-family: var(--display); font-size: 15px; line-height: 1;
  color: var(--ochre-soft); text-decoration: none;
  padding-top: 6px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.rail-ch a:hover { background: rgba(237, 233, 225, .08); color: var(--plaster); }
.rail-ch a[aria-current="page"] { background: var(--plaster); color: var(--azulejo-deep); }
.rail .seal { margin-right: 12px; }

.wrap { margin-left: var(--rail); }

/* ---------- Header ---------- */
.head {
  position: sticky; top: 0; z-index: 60; height: var(--head);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter) 0 32px;
  background: rgba(237, 233, 225, .9);
  -webkit-backdrop-filter: saturate(1.2) blur(12px);
  backdrop-filter: saturate(1.2) blur(12px);
  transition: box-shadow .3s var(--ease);
}
.head.scrolled { box-shadow: 0 1px 0 var(--line); }
.brand {
  display: flex; align-items: baseline; gap: 10px; text-decoration: none;
  font-family: var(--display); font-size: 1.3rem; letter-spacing: -.005em; white-space: nowrap;
}
.brand small { font-family: var(--text); font-size: var(--t-14); color: var(--mist); letter-spacing: 0; }
.head nav ul { list-style: none; display: flex; gap: 28px; }
.head nav a {
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--iron-2);
  padding: 6px 0; background: linear-gradient(var(--bougain), var(--bougain)) 0 100% / 0 2px no-repeat;
  transition: background-size .3s var(--ease), color .2s;
}
.head nav a:hover { color: var(--iron); background-size: 100% 2px; }
.head nav a[aria-current="page"] { color: var(--iron); background-size: 100% 2px; }
.head-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn {
  display: none; align-items: center; gap: 10px;
  background: none; border: 1px solid var(--iron); border-radius: var(--arch);
  padding: 10px 16px 8px; font-size: 15px; font-weight: 600;
}
.menu-btn span { display: block; width: 16px; height: 1.5px; background: currentColor; box-shadow: 0 5px 0 currentColor; transform: translateY(-2.5px); }

/* ---------- Buttons: arched doors ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 14px 26px 12px;
  border-radius: var(--arch);
  font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none;
  border: 1.5px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--azulejo); color: var(--plaster); }
.btn-primary:hover { background: var(--azulejo-ink); }
.btn-quiet { border-color: currentColor; color: var(--iron); }
.btn-quiet:hover { background: var(--iron); color: var(--plaster); border-color: var(--iron); }
.on-dark .btn-quiet { color: var(--plaster); }
.on-dark .btn-quiet:hover { background: var(--plaster); color: var(--azulejo-deep); border-color: var(--plaster); }
.btn-sm { min-height: 40px; padding: 9px 18px 7px; font-size: 15px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Home: the arcade ---------- */
.arcade { position: relative; height: 260vh; background: var(--azulejo-ink); }
.arcade-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  margin-top: calc(var(--head) * -1);
}
.arcade-film {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(var(--film-scale, 1.18));
  filter: saturate(.92) contrast(1.04);
  will-change: transform;
}
.arcade-wall {
  position: absolute; left: 0; right: 0; bottom: 0; height: 52vh; width: 100%;
  overflow: visible; z-index: 2;
  transform-origin: var(--ox, 50%) var(--oy, 80%);
  transform: scale(var(--wall-scale, 1));
  will-change: transform;
}
.arcade-copy {
  position: absolute; z-index: 3; left: 0; right: 0;
  top: calc(var(--head) + 4vh);
  padding: 0 var(--gutter);
  text-align: center;
  opacity: var(--copy-o, 1);
  transform: translateY(var(--copy-y, 0));
}
.arcade-copy h1 {
  font-family: var(--display); font-weight: 400;
  font-size: min(var(--t-84), 7.4vh);
  line-height: 1.02; letter-spacing: -.018em;
  max-width: 22ch; margin: 0 auto;
  text-wrap: balance;
}
.arcade-copy p { margin: 14px auto 0; max-width: 46ch; color: var(--iron-2); font-size: var(--t-17); }
.arcade-hint {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 14px;
  font-size: var(--t-14); font-weight: 600; color: var(--bougain);
}
.arcade-hint::after {
  content: ""; width: 1.5px; height: 22px; background: var(--bougain);
  animation: hint 2.4s var(--ease) infinite;
  transform-origin: top;
}
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.arcade-caption {
  position: absolute; z-index: 3; left: var(--gutter); bottom: 9vh;
  color: var(--plaster); max-width: min(34rem, 80vw);
  opacity: var(--cap-o, 0); transform: translateY(var(--cap-y, 24px));
  text-shadow: 0 1px 24px rgba(12, 42, 51, .45);
}
.arcade-caption p:first-child { font-family: var(--display); font-size: var(--t-48); line-height: 1.05; }
.arcade-caption p + p { font-size: var(--t-17); margin-top: 14px; opacity: .92; }
.arcade-stage::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(12, 42, 51, .55));
  opacity: var(--cap-o, 0);
}

/* ---------- Page head (inner pages): wall with one window ---------- */
.page-head {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 6vw, 96px); align-items: end;
  padding: clamp(40px, 7vh, 88px) var(--gutter) 0;
  position: relative;
}
.page-head::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px;
  background: var(--tile-star) 0 0 / 28px 28px repeat-x;
}
.page-head .copy { padding-bottom: calc(28px + clamp(40px, 7vh, 88px)); }
.page-head h1 {
  font-family: var(--display); font-weight: 400;
  font-size: var(--t-84); line-height: 1.02; letter-spacing: -.018em;
  max-width: 13ch; text-wrap: balance;
}
.page-head .intro { margin-top: 24px; max-width: 44ch; font-size: var(--t-21); line-height: 1.5; color: var(--iron-2); }
.window {
  position: relative; aspect-ratio: 4 / 5; max-height: 72vh; width: 100%;
  justify-self: end; margin-bottom: 28px;
  border-radius: var(--arch); overflow: hidden;
  background: var(--azulejo-deep);
  box-shadow: inset 0 0 0 14px var(--plaster-2);
}
.window img, .window video {
  position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 14px);
  object-fit: cover; border-radius: var(--arch);
}
.window::after {
  content: ""; position: absolute; inset: 14px 14px 0; border-radius: var(--arch);
  box-shadow: inset 0 18px 30px -12px rgba(12, 42, 51, .45);
  pointer-events: none;
}
.label {
  display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-size: var(--t-14); font-weight: 600; color: var(--bougain);
}
.label::before {
  content: ""; width: 14px; height: 14px; flex: none;
  background: var(--tile-star) center / 14px 14px;
}
.on-dark .label { color: var(--ochre-soft); }

/* ---------- Sections ---------- */
.sec { padding: clamp(72px, 12vh, 140px) var(--gutter); position: relative; }
.sec.plaster-2 { background: var(--plaster-2); }
.sec.azul { background: var(--azulejo-deep); color: var(--plaster); }
.sec.ink { background: var(--azulejo-ink); color: var(--plaster); }
.on-dark .muted { color: rgba(237, 233, 225, .74); }
.muted { color: var(--mist); }
.h2 {
  font-family: var(--display); font-weight: 400;
  font-size: var(--t-64); line-height: 1.04; letter-spacing: -.015em;
  max-width: 17ch; text-wrap: balance;
}
.h3 { font-family: var(--display); font-weight: 400; font-size: var(--t-36); line-height: 1.1; letter-spacing: -.01em; }
.prose { max-width: var(--measure); margin-top: 26px; }
.prose.lg { font-size: var(--t-21); line-height: 1.5; max-width: 48ch; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.split.top { align-items: start; }

/* Tile riser: a stair riser between chapters */
.riser { height: 36px; background: var(--tile-star) 0 0 / 36px 36px repeat-x; }
.riser.quatrefoil { background-image: var(--tile-quatrefoil); }
.riser.lattice { background-image: var(--tile-lattice); }
.riser.rosette { background-image: var(--tile-rosette); }

/* Window with a tiled sill */
.sill-window { position: relative; }
.sill-window .frame {
  aspect-ratio: 4 / 5; border-radius: var(--arch); overflow: hidden;
  background: var(--plaster-2);
}
.sill-window .frame img, .sill-window .frame video { width: 100%; height: 100%; object-fit: cover; }
.sill-window .sill {
  height: 24px; margin: 0 -22px;
  background: var(--tile-quatrefoil) 0 0 / 24px 24px repeat-x;
  box-shadow: 0 10px 18px -10px rgba(34, 31, 27, .45);
}
.sill-window figcaption { margin-top: 14px; font-size: var(--t-14); color: var(--mist); }
.on-dark .sill-window figcaption { color: rgba(237, 233, 225, .7); }

/* Facts ledger */
.ledger { margin-top: 40px; border-top: 1px solid var(--line); }
.ledger div {
  display: grid; grid-template-columns: 10rem 1fr; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.ledger dt { font-size: var(--t-14); font-weight: 600; color: var(--mist); padding-top: 2px; }
.ledger dd { font-size: var(--t-17); }

/* House-number plaque */
.plaque {
  display: inline-grid; place-items: center;
  padding: 16px; background: var(--tile-lattice) 0 0 / 16px 16px;
  box-shadow: 0 16px 30px -18px rgba(12, 42, 51, .6);
}
.plaque span {
  display: block; background: var(--plaster-3); color: var(--azulejo);
  font-family: var(--display); font-size: clamp(3rem, 7vw, 5.5rem); line-height: 1;
  padding: .16em .34em .08em; letter-spacing: .02em;
  box-shadow: inset 0 0 0 2px var(--azulejo);
}
.plaque small { display: block; margin-top: 10px; padding: 3px 10px; background: var(--azulejo-deep); font-size: 13px; font-weight: 600; color: var(--plaster); }

/* Arcade of three mandates */
.bays { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); margin-top: 56px; }
.bay {
  position: relative; padding: 88px 30px 36px;
  border: 1.5px solid rgba(230, 201, 143, .55); border-bottom: 0;
  border-radius: var(--arch);
  min-height: 420px;
  display: flex; flex-direction: column;
}
.bay .key {
  position: absolute; top: -21px; left: 50%; transform: translateX(-50%);
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--azulejo-deep); border: 1.5px solid var(--ochre);
  font-family: var(--display); font-size: 17px; color: var(--ochre-soft);
  border-radius: 50%;
}
.bay h3 { font-family: var(--display); font-weight: 400; font-size: var(--t-28); line-height: 1.15; text-align: center; text-wrap: balance; }
.bay p { margin-top: 16px; text-align: center; color: rgba(237, 233, 225, .78); }
.bay::after {
  content: ""; margin-top: auto; height: 20px; position: relative; top: 36px;
  margin-left: -30px; margin-right: -30px;
  background: var(--tile-star) 0 0 / 20px 20px repeat-x;
}

/* Film in a tiled surround */
.tiled-film { position: relative; padding: 18px; background: var(--tile-rosette) 0 0 / 18px 18px; }
.player { position: relative; aspect-ratio: 16 / 9; background: var(--azulejo-ink); overflow: hidden; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.player .ui {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 14px; padding: 18px;
  background: linear-gradient(transparent, rgba(12, 42, 51, .78));
  color: var(--plaster); font-size: var(--t-14); font-weight: 600;
}
.player .ui button {
  width: 48px; height: 52px; border-radius: 999px 999px 3px 3px;
  display: grid; place-items: center; padding-top: 4px;
  background: var(--plaster); border: 0; color: var(--azulejo-deep);
  transition: background .2s;
}
.player .ui button:hover { background: var(--ochre-soft); }
.player .ui svg { width: 16px; height: 16px; }
.player.playing .ui { opacity: 0; transition: opacity .4s .8s; }
.player.playing:hover .ui, .player.playing:focus-within .ui { opacity: 1; transition-delay: 0s; }

/* Courtyard gallery */
.courtyard {
  display: grid; gap: clamp(12px, 1.6vw, 22px); margin-top: 48px;
  grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: 300px 260px;
}
.courtyard figure { position: relative; overflow: hidden; background: var(--plaster-2); }
.courtyard img { width: 100%; height: 100%; object-fit: cover; }
.courtyard .tall { grid-row: span 2; border-radius: var(--arch); }
.courtyard .seg { border-radius: 50% 50% 0 0 / 22% 22% 0 0; }
.courtyard .wide { grid-column: span 2; }
.courtyard figcaption {
  position: absolute; left: 12px; bottom: 12px;
  background: var(--plaster); color: var(--iron); font-size: 13px; font-weight: 600;
  padding: 4px 10px;
}

/* Quote on painted tile */
.saying { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; max-width: 1100px; }
.saying .tilemark { width: 120px; height: 120px; background: var(--tile-quatrefoil) 0 0 / 60px 60px; }
.saying blockquote p {
  font-family: var(--display); font-size: var(--t-48); line-height: 1.14; letter-spacing: -.01em; text-wrap: pretty;
}
.saying figcaption { margin-top: 22px; font-size: var(--t-14); font-weight: 600; color: var(--ochre-soft); }

/* Closing door */
.closing { text-align: center; padding-bottom: 0; }
.closing .h2 { margin: 0 auto; }
.closing .prose { margin-left: auto; margin-right: auto; }
.doorway {
  width: min(320px, 70vw); height: 200px; margin: 56px auto 0;
  border: 1.5px solid var(--iron); border-bottom: 0; border-radius: var(--arch);
  display: grid; place-items: end center; padding-bottom: 36px;
}

/* ---------- Services index (accordion) ---------- */
.index { border-top: 1.5px solid var(--iron); margin-top: 40px; }
.index details { border-bottom: 1px solid var(--line); }
.index summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: 26px 0;
}
.index summary::-webkit-details-marker { display: none; }
.index .sw { width: 44px; height: 44px; border-radius: 999px 999px 2px 2px; background: var(--tile-star) 0 0 / 22px 22px; }
.index details:nth-child(2) .sw { background-image: var(--tile-quatrefoil); }
.index details:nth-child(3) .sw { background-image: var(--tile-lattice); }
.index details:nth-child(4) .sw { background-image: var(--tile-rosette); }
.index details:nth-child(5) .sw { background-image: var(--tile-quatrefoil); }
.index details:nth-child(6) .sw { background-image: var(--tile-lattice); }
.index h3 { font-family: var(--display); font-weight: 400; font-size: var(--t-48); line-height: 1.05; letter-spacing: -.012em; transition: color .2s; }
.index summary:hover h3 { color: var(--azulejo); }
.index .plus { width: 22px; height: 22px; position: relative; }
.index .plus::before, .index .plus::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: var(--iron);
  transition: transform .3s var(--ease);
}
.index .plus::after { transform: rotate(90deg); }
.index details[open] .plus::after { transform: rotate(0); }
.index .body {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr); gap: 24px;
  padding: 0 0 32px;
}
.index .body p { grid-column: 2; max-width: 52ch; font-size: var(--t-17); }
.index .body ul { grid-column: 3; list-style: none; font-size: var(--t-14); color: var(--mist); }
.index .body li { padding: 7px 0; border-bottom: 1px dotted var(--line); }
.index details[open] .body { animation: open .45s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Process: a tiled stair ---------- */
.stair { margin-top: 56px; display: grid; gap: 0; counter-reset: step; }
.step {
  --i: 0;
  margin-left: calc(var(--i) * clamp(0px, 5vw, 88px));
  max-width: 720px;
  counter-increment: step;
}
.step .tread {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px;
  padding: 26px 28px 22px; background: var(--plaster-3);
  border-top: 1.5px solid var(--iron);
}
.step .tread::before {
  content: counter(step); font-family: var(--display); font-size: var(--t-48); line-height: .9; color: var(--azulejo);
}
.step h3 { font-family: var(--display); font-weight: 400; font-size: var(--t-28); line-height: 1.15; }
.step p { margin-top: 6px; color: var(--iron-2); }
.step .rise { height: 30px; background: var(--tile-star) 0 0 / 30px 30px repeat-x; }
.step:nth-child(2) .rise { background-image: var(--tile-quatrefoil); }
.step:nth-child(3) .rise { background-image: var(--tile-lattice); }
.step:nth-child(4) .rise { background-image: var(--tile-rosette); }
.step:nth-child(5) .rise { background-image: var(--tile-star); }

/* ---------- Principles (about) ---------- */
.principles { list-style: none; margin-top: 48px; border-top: 1.5px solid var(--iron); }
.principles li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.principles h3 { font-family: var(--display); font-weight: 400; font-size: var(--t-36); line-height: 1.1; }
.principles p { font-size: var(--t-21); line-height: 1.5; color: var(--iron-2); max-width: 40ch; }

/* Letterhead card */
.letterhead {
  background: var(--plaster-3); color: var(--iron); max-width: 760px;
  padding: clamp(32px, 5vw, 64px); position: relative;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
}
.letterhead::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--tile-star) 0 0 / 12px 12px repeat-x; }
.letterhead .who { display: flex; gap: 18px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.letterhead .who img { width: 56px; height: 56px; }
.letterhead .who b { display: block; font-family: var(--display); font-weight: 400; font-size: var(--t-28); line-height: 1.1; }
.letterhead .who span { font-size: var(--t-14); color: var(--mist); }
.letterhead p { font-size: var(--t-21); line-height: 1.55; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.direct .h3 { margin-bottom: 6px; }
.direct address { font-style: normal; margin-top: 24px; line-height: 1.7; }
.direct .lines { margin-top: 20px; }
.direct .lines a { text-decoration: none; background: linear-gradient(var(--bougain), var(--bougain)) 0 100% / 100% 1px no-repeat; }
.direct .plaque { margin-top: 36px; }
.letter {
  position: relative; background: var(--plaster-3);
  padding: clamp(28px, 4.5vw, 56px); padding-top: calc(clamp(28px, 4.5vw, 56px) + 14px);
  box-shadow: 0 30px 60px -34px rgba(34, 31, 27, .45);
}
.letter::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--tile-lattice) 0 0 / 14px 14px repeat-x; }
.letter form { display: grid; gap: 22px; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--t-14); font-weight: 600; color: var(--iron-2); }
.field .hint { font-size: 13px; color: var(--mist); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--iron);
  background: transparent; border: 0; border-bottom: 1.5px solid rgba(34, 31, 27, .35);
  padding: 10px 0 8px; border-radius: 0;
  transition: border-color .2s;
}
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23221F1B' stroke-width='1.5'/%3E%3C/svg%3E") right 4px center / 12px 8px no-repeat; padding-right: 24px; }
.field textarea {
  min-height: 176px; resize: vertical; line-height: 32px; padding-top: 4px;
  background: repeating-linear-gradient(transparent 0 31px, rgba(30, 85, 102, .18) 31px 32px);
  border-bottom: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--azulejo); }
.field textarea:focus { background-color: rgba(30, 85, 102, .04); }
.field input:focus-visible, .field select:focus-visible { box-shadow: 0 2px 0 var(--azulejo); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.send { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.send .note { font-size: 13px; color: var(--mist); max-width: 34ch; }
.wax {
  position: absolute; right: 32px; bottom: 32px; width: 88px; height: 88px; border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #C44A76, var(--bougain) 45%, #7A2142);
  box-shadow: 0 6px 14px rgba(122, 33, 66, .45), inset 0 -4px 8px rgba(0, 0, 0, .25);
  display: grid; place-items: center; color: rgba(246, 243, 237, .9);
  font-family: var(--display); font-size: 26px;
  opacity: 0; transform: scale(1.8) rotate(-12deg); pointer-events: none;
}
.letter.sealed .wax { animation: stamp .55s var(--ease) forwards; }
@keyframes stamp { 60% { opacity: 1; transform: scale(.94) rotate(-4deg); } 100% { opacity: 1; transform: scale(1) rotate(-6deg); } }
.letter .thanks h2 { font-family: var(--display); font-weight: 400; font-size: var(--t-48); line-height: 1.05; }
.letter .thanks p { margin-top: 16px; max-width: 42ch; }

/* ---------- Footer: tiled wainscot ---------- */
.foot { margin-left: var(--rail); background: var(--azulejo-ink); color: rgba(237, 233, 225, .82); }
.foot .wainscot { height: 44px; background: var(--tile-star) 0 0 / 44px 44px repeat-x; border-bottom: 3px solid var(--ochre); }
.foot-inner {
  display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px;
  padding: 72px var(--gutter) 48px;
}
.foot .big { font-family: var(--display); font-size: var(--t-36); line-height: 1.1; color: var(--plaster); max-width: 16ch; }
.foot h2 { font-size: var(--t-14); font-weight: 600; color: var(--ochre-soft); margin-bottom: 12px; }
.foot ul { list-style: none; line-height: 2; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--plaster); text-decoration: underline; }
.foot address { font-style: normal; line-height: 1.8; }
.fine {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 20px var(--gutter) 28px; border-top: 1px solid var(--line-light);
  font-size: 13px; color: rgba(237, 233, 225, .6);
}

/* ---------- Mobile drawer ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 120; background: var(--azulejo-deep); color: var(--plaster);
  display: flex; flex-direction: column; padding: 24px var(--gutter) 0;
  visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility 0s .3s;
}
.drawer.open { visibility: visible; opacity: 1; transition: opacity .3s var(--ease); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; }
.drawer-top .brand { color: var(--plaster); }
.drawer .close { background: none; border: 1px solid var(--plaster); color: var(--plaster); border-radius: var(--arch); padding: 10px 16px 8px; font-weight: 600; }
.drawer ul { list-style: none; margin-top: 48px; }
.drawer li a {
  display: flex; align-items: baseline; gap: 16px; padding: 12px 0; text-decoration: none;
  font-family: var(--display); font-size: clamp(2rem, 9vw, 3rem); line-height: 1.1;
  border-bottom: 1px solid var(--line-light);
}
.drawer li a small { font-family: var(--display); font-size: 1rem; color: var(--ochre-soft); width: 2rem; }
.drawer li a[aria-current="page"] { color: var(--ochre-soft); }
.drawer .wainscot { margin: auto calc(var(--gutter) * -1) 0; height: 40px; background: var(--tile-star) 0 0 / 40px 40px repeat-x; }
body.locked { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .head nav { display: none; }
  .menu-btn { display: inline-flex; }
  .bays { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .bay { min-height: 0; }
}
@media (max-width: 860px) {
  :root { --rail: 0px; --head: 60px; }
  .rail { display: none; }
  .head { padding: 0 var(--gutter); }
  .brand small { display: none; }
  .head .btn-sm { display: none; }
  .page-head, .split, .contact { grid-template-columns: 1fr; }
  .page-head .copy { padding-bottom: 0; }
  .window { justify-self: stretch; aspect-ratio: 5 / 4; }
  .courtyard { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 200px 200px; }
  .courtyard .tall { grid-row: span 1; grid-column: span 2; }
  .courtyard .wide { grid-column: span 2; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
  .foot-inner > :first-child { grid-column: span 2; }
  .saying { grid-template-columns: 1fr; }
  .saying .tilemark { width: 60px; height: 60px; background-size: 30px 30px; }
  .index summary { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px; }
  .index .sw { width: 36px; height: 36px; background-size: 18px 18px; }
  .index .body { grid-template-columns: 1fr; }
  .index .body p, .index .body ul { grid-column: 1; }
  .principles li { grid-template-columns: 1fr; gap: 10px; }
  .step { margin-left: 0; }
  .step .tread { grid-template-columns: 48px minmax(0, 1fr); padding: 22px 20px; }
  .ledger div { grid-template-columns: 1fr; gap: 2px; }
  .pair { grid-template-columns: 1fr; }
  .arcade-copy h1 { font-size: clamp(2rem, 8.6vw, 2.75rem); }
  .arcade-copy p { font-size: 15px; }
  .arcade-wall { height: 58vh; }
}
@media (max-width: 520px) {
  .foot-inner { grid-template-columns: 1fr; }
  .foot-inner > :first-child { grid-column: auto; }
  .wax { right: 16px; bottom: 16px; width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .arcade { height: auto; }
  .arcade-stage { position: relative; height: 100vh; }
  .arcade-film { transform: none; }
}

@media print {
  .rail, .head, .drawer, .foot .wainscot, .riser, .arcade-film { display: none !important; }
  .wrap, .foot { margin: 0; }
  body { background: #fff; }
}

/* form error + invalid state */
.letter .field-error { color: var(--bougain); font-size: var(--t-14); font-weight: 600; }
.field [aria-invalid="true"] { border-bottom-color: var(--bougain); }
.thanks:focus { outline: none; }
@media (max-width: 860px) { .window { aspect-ratio: 1 / 1; max-height: 440px; } }
