/* ==========================================================================
   Roskyle Construction — homepage concept
   Palette drawn from the photography: blue-hour ink, limewash render,
   brick and lamplight. Type: Libre Caslon (the Georgian roman behind the
   houses' proportions) with Archivo, set wide, for drawing title-block labels.
   ========================================================================== */

:root {
  --limewash: #ECE9E2;
  --limewash-2: #E3DFD5;
  --paper: #F5F3EE;
  --ink: #161B22;
  --ink-2: #0F1318;
  --ink-soft: #3B414A;
  --muted: #69635A;
  --rule: rgba(22, 27, 34, .15);
  --rule-strong: rgba(22, 27, 34, .42);
  --brick: #9E4E2B;
  --brick-lt: #D98E64;
  --on-ink: #ECE8DF;
  --on-ink-2: rgba(236, 232, 223, .64);
  --rule-ink: rgba(236, 232, 223, .17);

  --accent: var(--brick);
  --line: var(--rule);

  --display: 'Libre Caslon Display', 'Libre Caslon Text', 'Iowan Old Style', Georgia, serif;
  --serif: 'Libre Caslon Text', 'Iowan Old Style', Georgia, serif;
  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;

  --m: clamp(20px, 4.2vw, 72px);
  --g: clamp(12px, 1.7vw, 28px);
  --head: 76px;
  --ease: cubic-bezier(.22, .7, .12, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--limewash);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  overflow-x: hidden; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
ol, ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--on-ink); }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

[id] { scroll-margin-top: 64px; }

.skip {
  position: fixed; top: 10px; left: 10px; z-index: 100;
  padding: 10px 14px; background: var(--ink); color: var(--on-ink);
  font: 500 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: 1760px; margin-inline: auto; padding-inline: var(--m); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }

/* The drawing-label voice */
.label {
  font-family: var(--sans);
  font-stretch: 118%;
  font-weight: 500;
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: .17em;
  text-transform: uppercase;
}

/* ---------- Masthead / running head ---------- */
.masthead {
  --fg: var(--on-ink);
  --bgc: rgba(22, 27, 34, .9);
  --hair: rgba(236, 232, 223, .14);
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: var(--head);
  padding-inline: var(--m);
  color: var(--fg);
  transition: color .5s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease), transform .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.masthead[data-tone="dark"] {
  --fg: var(--ink);
  --bgc: rgba(236, 233, 226, .9);
  --hair: var(--rule);
  --accent: var(--brick);
}
.masthead[data-tone="light"] { --accent: var(--brick-lt); }
.masthead.is-scrolled {
  background-color: var(--bgc);
  border-bottom-color: var(--hair);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
}
.masthead.is-tucked { transform: translateY(-100%); }

.wordmark {
  justify-self: start;
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; color: inherit;
}
.wordmark__name {
  font-family: var(--display);
  font-size: 21px; line-height: 1;
  letter-spacing: .36em; margin-right: -.36em;
  text-transform: uppercase;
}
.wordmark__sub {
  font-family: var(--sans); font-stretch: 125%; font-weight: 500;
  font-size: 7.4px; line-height: 1; letter-spacing: .56em; margin-right: -.56em;
  text-transform: uppercase; opacity: .82;
}

.runhead {
  justify-self: center; margin: 0;
  display: flex; align-items: baseline; gap: 12px;
  font-family: var(--sans); font-stretch: 118%; font-weight: 500;
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  white-space: nowrap;
  transition: opacity .35s var(--ease);
}
.runhead.is-swapping { opacity: 0; }
.runhead__num {
  font-family: var(--display); font-size: 16px; letter-spacing: .04em;
  color: var(--accent); text-transform: none;
}
.runhead__num:empty { display: none; }

.masthead__nav {
  justify-self: end; display: flex; align-items: center; gap: clamp(18px, 2.2vw, 34px);
}
.masthead__nav a {
  position: relative; text-decoration: none;
  font-family: var(--sans); font-stretch: 118%; font-weight: 500;
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  padding-block: 8px;
}
.masthead__nav a::after {
  content: ""; position: absolute; left: 0; right: .18em; bottom: 2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .55s var(--ease);
}
.masthead__nav a:hover::after, .masthead__nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.masthead__enquire { display: inline-flex; align-items: center; gap: 10px; }
.masthead__enquire::before {
  content: ""; width: 7px; height: 9px; background: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 60%, transparent);
}

.menu-toggle {
  display: none; justify-self: end;
  align-items: center; gap: 12px;
  background: none; border: 0; padding: 10px 0; cursor: pointer;
  font-family: var(--sans); font-stretch: 118%; font-weight: 500;
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
}
.menu-toggle__bars { position: relative; width: 22px; height: 8px; }
.menu-toggle__bars i {
  position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.menu-toggle__bars i:first-child { top: 0; }
.menu-toggle__bars i:last-child { top: 7px; }
.menu-open .menu-toggle__bars i:first-child { top: 4px; transform: rotate(20deg); }
.menu-open .menu-toggle__bars i:last-child { top: 4px; transform: rotate(-20deg); }

/* ---------- Menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--ink); color: var(--on-ink);
  --accent: var(--brick-lt);
  display: flex; align-items: flex-end;
  padding: calc(var(--head) + 40px) var(--m) 44px;
  opacity: 0; visibility: hidden;
  transition: opacity .55s var(--ease), visibility .55s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu__inner { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.menu__list li { overflow: hidden; }
.menu__list a {
  display: flex; align-items: baseline; gap: 18px;
  font-family: var(--display); font-size: clamp(40px, 7.2vw, 96px); line-height: 1.06;
  text-decoration: none;
  transform: translateY(102%); transition: transform .9s var(--ease), color .3s;
}
.menu__list span {
  font-family: var(--sans); font-stretch: 118%; font-size: 11px; letter-spacing: .16em;
  color: var(--accent); min-width: 3.2em;
}
.menu.is-open .menu__list a { transform: none; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: .05s; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: .1s; }
.menu.is-open .menu__list li:nth-child(4) a { transition-delay: .15s; }
.menu.is-open .menu__list li:nth-child(5) a { transition-delay: .2s; }
.menu__list a:hover { color: var(--accent); }
.menu__aside { max-width: 280px; font-size: 16px; line-height: 1.5; color: var(--on-ink-2); }
.menu__aside .label { color: var(--on-ink); margin: 18px 0 4px; }
.menu__aside a { text-decoration: none; color: var(--on-ink); }

/* ---------- Plates & captions ---------- */
.plate { margin: 0; }
.plate__frame {
  position: relative; overflow: hidden;
  aspect-ratio: var(--ar, 3/2);
  background: var(--bg, #b9b2a6);
}
.plate__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
figcaption {
  display: flex; gap: 12px; align-items: baseline;
  margin-top: 12px;
  font-family: var(--serif); font-style: italic;
  font-size: 14px; line-height: 1.45; color: var(--muted);
}
.plate__no {
  flex: none; font-style: normal;
  font-family: var(--sans); font-stretch: 118%; font-weight: 500;
  font-size: 9.5px; letter-spacing: .16em; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.plate--bleed figcaption { justify-content: flex-end; }
.plate--bleed figcaption .plate__no { order: 0; }

/* ---------- Title block (from the architect's drawing sheet) ---------- */
.titleblock {
  margin: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.titleblock > div {
  min-width: 0;
  padding: 9px 12px 11px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.titleblock dt {
  font-family: var(--sans); font-stretch: 118%; font-weight: 500;
  font-size: 8.8px; letter-spacing: .17em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 5px;
}
.titleblock dd { margin: 0; font-size: 14.5px; line-height: 1.32; }
.titleblock__wide { grid-column: 1 / -1; }
.titleblock__award { position: relative; }
.titleblock__award dd { font-style: italic; }
.titleblock__award::before {
  content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px; background: var(--accent);
}
.titleblock--ink { --line: var(--rule-ink); }

/* ---------- Chapter mark ---------- */
.chapter-mark {
  display: flex; align-items: baseline; gap: 14px; margin: 0;
}
.chapter-mark__num {
  font-family: var(--display); font-size: 30px; line-height: 1; color: var(--accent);
}
.chapter-mark .label::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 38px; height: 1px; margin-left: 14px; background: currentColor; opacity: .4;
}

/* ==========================================================================
   Cover
   ========================================================================== */
.cover {
  position: relative; isolation: isolate;
  height: 100vh; height: 100svh; min-height: 620px; max-height: 1500px;
  overflow: hidden; color: var(--on-ink);
  background: #2a2326;
}
.cover__plate {
  position: absolute; inset: 0; margin: 0; z-index: -2; overflow: hidden;
  /* 40px placeholder of the first photograph, so the cover is never an empty frame */
  background: #2a2326 url("data:image/webp;base64,UklGRoYBAABXRUJQVlA4IHoBAABwCACdASooABsAPsFaoEynpaMiKrgMAPAYCWYAnTKEfweXPASwAoETDrXoD2CVJeWneKSn7/t2Q2QnnEMtgXhE3MO1ch5QaXi+F2AAAP7aiLDUR+0SJxt7ziZrE475xrZafZm7m6MG+WHxJZqrBd7gV+/i+P/rkucJb9PzZQANyt+j69DaGPaRdbsP1ymGTzeh1cSxp1ojDA1yBRS6QKUyCGet8joN+qFCNrSfefUgOCTofLVrBaehdq2KmpIPye8q+wOovBGSoftHzOn0pkHKs8H5hdImoYp4PDrIsupJ7/2fEHgOj8HO0iROkKZYaSiMNPT8KPuFqfUo2K5Ww9KBg+GDw2vpUM58ofucNPX9jHUMaFlvcGLNjFkZIfEFX4gmYdkIx7kuKrhW8xmQkMpbX7tMUrgUFnS94Oa2eRw6jwAiAS8l1md23mB+rjwiZ8HOPmxxywiI/C0XUcwa7EkuOFCvAxQ4J62OsC+CA5dw7I4K9KflvX5AAAA=") 50% 56% / cover no-repeat;
}
.cover__slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 1.8s var(--ease-io), visibility 0s linear 1.8s;
}
.cover__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.8s var(--ease-io), visibility 0s; z-index: 1; }
.cover__slide.is-leaving { opacity: 1; visibility: visible; z-index: 0; }
.cover__img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); transform-origin: 50% 60%; }
/* each house drifts slowly towards the viewer while it holds the cover */
.cover__slide.is-active .cover__img, .cover__slide.is-leaving .cover__img { animation: drift 9s var(--ease) both; }
@keyframes drift { from { transform: scale(1.085); } to { transform: scale(1); } }

/* cover controls: one bar per house, filling while it holds */
.cover__sheet { grid-column: 8 / -1; display: grid; row-gap: 12px; }
.cover__nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 10px; }
.cover__dot {
  display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 9px;
  background: none; border: 0; padding: 8px 0; cursor: pointer; color: var(--on-ink);
  font-family: var(--sans); font-stretch: 118%; font-size: 9.5px; letter-spacing: .14em;
  opacity: .55; transition: opacity .4s;
}
.cover__dot:hover, .cover__dot.is-active { opacity: 1; }
.cover__dot i { position: relative; height: 1px; background: rgba(236, 232, 223, .3); overflow: hidden; }
.cover__dot b { position: absolute; inset: 0; background: var(--brick-lt); transform: scaleX(0); transform-origin: left; }
.cover__dot.is-done b { transform: scaleX(1); background: rgba(236, 232, 223, .7); }
.cover__dot.is-active b { animation: fill var(--hold, 7s) linear forwards; }
.cover.is-paused .cover__dot.is-active b { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }
.titleblock--cover dd { transition: opacity .5s var(--ease); }
.titleblock--cover.is-swapping dd { opacity: 0; }
.titleblock--cover a { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.titleblock--cover a:hover { background-size: 100% 1px; }
.titleblock--cover a::after { content: " \2192"; font-family: var(--sans); font-size: 11px; color: var(--accent); }
.cover::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 14, 18, .5) 0%, rgba(12, 14, 18, 0) 18%),
    linear-gradient(0deg, rgba(12, 14, 18, .78) 0%, rgba(12, 14, 18, .44) 30%, rgba(12, 14, 18, .08) 52%, rgba(12, 14, 18, 0) 62%);
}
.cover__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding-bottom: clamp(20px, 2.6vw, 38px);
  --accent: var(--brick-lt); --line: rgba(236, 232, 223, .3); --muted: var(--on-ink-2);
}
.cover__kicker { margin: 0 0 clamp(16px, 2vw, 26px); color: var(--on-ink); opacity: .88; }
.cover__title {
  font-family: var(--display);
  text-shadow: 0 1px 30px rgba(10, 12, 16, .28);
  font-size: clamp(42px, 6.8vw, 124px);
  line-height: .97; letter-spacing: -.014em;
  margin: 0 0 clamp(28px, 3.6vw, 56px);
}
.cover__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.cover__title .line:nth-child(2) { padding-left: 1.45em; }
.cover__title .line > span { display: inline-block; }

.cover__foot {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g);
  align-items: end;
  border-top: 1px solid rgba(236, 232, 223, .3);
  padding-top: 16px;
}
.cover__contents {
  grid-column: 1 / span 7; display: flex; flex-wrap: wrap; gap: 6px clamp(18px, 2.4vw, 40px);
  align-self: center;
}
.cover__contents a {
  display: inline-flex; align-items: baseline; gap: 9px; text-decoration: none;
  font-family: var(--sans); font-stretch: 118%; font-weight: 500;
  font-size: 10.5px; letter-spacing: .17em; text-transform: uppercase;
  opacity: .82; transition: opacity .3s;
}
.cover__contents a:hover { opacity: 1; }
.cover__contents span { font-family: var(--display); font-size: 14px; letter-spacing: .04em; color: var(--accent); }
.titleblock--cover { grid-template-columns: 1.7fr 1fr 1.05fr; }
.titleblock--cover > div { padding: 8px 10px 9px; }
.titleblock--cover dd { font-size: 13px; }

/* Cover — "lights coming on" */
.js .cover__plate {
  filter: brightness(.4) saturate(.5) contrast(1.05);
  transition: filter 2.6s var(--ease) .1s;
}
.js.is-lit .cover__plate { filter: none; }
.js .cover__slide:first-child .cover__img { opacity: 0; transition: opacity .9s var(--ease); }
.js .cover__slide:first-child .cover__img.is-ready { opacity: 1; }

/* ==========================================================================
   Opening — the cover is first seen through a sash window, which rises
   ========================================================================== */
.intro { display: none; }
.is-intro body { background: var(--ink); overflow: hidden; }
.is-intro .intro {
  --aw: min(25vw, 250px);
  --ah: calc(var(--aw) * 1.46);
  display: block; position: fixed; inset: 0; z-index: 70; pointer-events: auto; cursor: pointer;
  color: var(--on-ink);
}
/* the aperture: the cover is clipped to a window in the middle of the screen */
.js .cover { transition: clip-path 1.45s cubic-bezier(.76, 0, .18, 1); }
.is-intro .cover { clip-path: inset(50% 50% 50% 50%); }
.is-intro.intro-window .cover { clip-path: inset(calc(50% - var(--ah) / 2) calc(50% - var(--aw) / 2)); transition-duration: 1.1s; }
.is-intro .cover { --aw: min(25vw, 250px); --ah: calc(var(--aw) * 1.46); }
.is-intro .masthead, .is-intro .cover__body { opacity: 0; }
.masthead { transition: color .5s var(--ease), background-color .5s var(--ease), border-color .5s var(--ease), transform .6s var(--ease), opacity 1s var(--ease) .5s; }
.js .cover__body { transition: opacity 1s var(--ease) .4s; }

.intro__mark, .intro__years {
  position: absolute; left: 50%; margin: 0;
  display: flex; flex-direction: column; align-items: center;
  transform: translateX(-50%);
  transition: opacity .7s var(--ease), transform 1.2s var(--ease);
}
.intro__mark { bottom: calc(50% + var(--ah) / 2 + clamp(26px, 4vh, 44px)); gap: 10px; }
.intro__name { font-family: var(--display); font-size: clamp(24px, 2.4vw, 34px); line-height: 1; letter-spacing: .42em; margin-right: -.42em; text-transform: uppercase; }
.intro__sub { font-family: var(--sans); font-stretch: 125%; font-weight: 500; font-size: 8px; letter-spacing: .6em; margin-right: -.6em; text-transform: uppercase; opacity: .7; }
.intro__years {
  top: calc(50% + var(--ah) / 2 + clamp(22px, 3.4vh, 38px));
  flex-direction: row; gap: 14px; align-items: center;
  font-family: var(--sans); font-stretch: 118%; font-weight: 500; font-size: 10px; letter-spacing: .18em;
  font-variant-numeric: tabular-nums; color: var(--on-ink-2);
}
.intro__years [data-intro-year] { color: var(--on-ink); min-width: 3.2em; }
.intro__rule { position: relative; width: calc(var(--aw) - 7.5em); height: 1px; background: rgba(236, 232, 223, .2); overflow: hidden; }
.intro__rule i { position: absolute; inset: 0; background: var(--brick-lt); transform: scaleX(0); transform-origin: left; transition: transform .25s linear; }

/* glazing: an upper and lower sash, three panes over three */
.intro__window {
  position: absolute; left: 50%; top: 50%;
  width: var(--aw); height: var(--ah);
  transform: translate(-50%, -50%);
  opacity: 0; transition: opacity .8s var(--ease) .5s;
}
.intro-window .intro__window { opacity: 1; }
.intro__sash {
  position: absolute; left: 0; right: 0; height: 50%;
  border: 3px solid var(--limewash);
  background:
    linear-gradient(90deg, transparent calc(33.33% - 1px), var(--limewash) calc(33.33% - 1px), var(--limewash) calc(33.33% + 1px), transparent calc(33.33% + 1px),
                           transparent calc(66.66% - 1px), var(--limewash) calc(66.66% - 1px), var(--limewash) calc(66.66% + 1px), transparent calc(66.66% + 1px)),
    linear-gradient(0deg, transparent calc(50% - 1px), var(--limewash) calc(50% - 1px), var(--limewash) calc(50% + 1px), transparent calc(50% + 1px));
  transition: transform 1.2s cubic-bezier(.65, 0, .25, 1), opacity .6s var(--ease);
}
.intro__sash--upper { top: 0; border-bottom-width: 2px; }
.intro__sash--lower { bottom: 0; border-top-width: 4px; }
/* the lower sash rises past the upper, then both clear the opening */
.intro-raise .intro__sash--lower { transform: translateY(-96%); }
.intro-open .intro__sash { opacity: 0; transform: translateY(-140%); transition-duration: .9s; }
.intro-open .intro__mark { opacity: 0; transform: translate(-50%, -30px); }
.intro-open .intro__years { opacity: 0; transform: translate(-50%, 20px); }
.is-intro.intro-open .cover { clip-path: inset(0 0 0 0); transition-duration: 1.45s; }
.js .cover__title .line > span { transform: translateY(108%); transition: transform 1.6s var(--ease); }
.js .cover__title .line:nth-child(1) > span { transition-delay: .2s; }
.js .cover__title .line:nth-child(2) > span { transition-delay: .36s; }
.js.is-revealed .cover__title .line > span { transform: none; }
.js [data-cover-in] { opacity: 0; transform: translateY(10px); transition: opacity 1.4s var(--ease) 1.1s, transform 1.4s var(--ease) 1.1s; }
.js.is-revealed [data-cover-in] { opacity: 1; transform: none; }
.js .cover__kicker[data-cover-in] { transition-delay: .35s; }

/* ==========================================================================
   Reveal
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1.2s var(--ease), transform 1.4s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .plate[data-reveal] .plate__frame img,
.js .letterbox[data-reveal] .letterbox__frame img { transform: scale(1.07); transition: transform 2.2s var(--ease); }
.js .plate[data-reveal].is-in .plate__frame img { transform: scale(1); }
.js .letterbox[data-reveal].is-in .letterbox__frame img { transform: scale(1); }

/* ==========================================================================
   I. The Builder
   ========================================================================== */
.builder { padding-block: clamp(110px, 12vw, 210px) clamp(90px, 9vw, 150px); }
.builder .chapter-mark { grid-column: 1 / span 3; grid-row: 1; align-self: start; padding-top: .9em; }
.builder__lede {
  grid-column: 4 / -1; grid-row: 1;
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 56px); line-height: 1.13; letter-spacing: -.006em;
  margin: 0 0 clamp(56px, 7vw, 110px);
  max-width: 24em;
}
.builder__plates { grid-column: 1 / span 8; grid-row: 2; position: relative; margin-left: calc(var(--m) * -1); }
.builder__plate { width: 88%; }
.builder__plate figcaption { padding-left: var(--m); }
.builder__inset {
  position: absolute; right: 0; bottom: calc(-1 * clamp(60px, 9vw, 150px));
  width: 30%; z-index: 2;
}
.builder__inset .plate__frame { box-shadow: 0 0 0 clamp(8px, .9vw, 14px) var(--limewash); }
.builder__text { grid-column: 9 / -1; grid-row: 2; align-self: start; font-size: 17.5px; color: var(--ink-soft); max-width: 34em; padding-top: 4px; }
.builder__text p:first-child::first-line { color: var(--ink); }
.builder__quote {
  grid-column: 4 / span 8; grid-row: 3;
  margin: clamp(150px, 15vw, 250px) 0 0;
  padding-top: clamp(26px, 3vw, 40px);
  border-top: 1px solid var(--rule);
}
.builder__quote p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(22px, 2vw, 31px); line-height: 1.3; margin: 0 0 14px;
  text-indent: -.42em; max-width: 30em;
}
.builder__quote .label { color: var(--muted); }

.chronology {
  grid-column: 1 / -1; grid-row: 4;
  margin-top: clamp(80px, 9vw, 150px);
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--g);
  border-top: 1px solid var(--ink);
}
.chronology li { padding: 18px 0 0; position: relative; }
.chronology li::before {
  content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px;
  background: var(--limewash); border: 1px solid var(--ink); transform: rotate(45deg);
}
.chronology__year {
  display: block; margin-bottom: 12px;
  font-family: var(--display); font-size: clamp(28px, 2.7vw, 46px); line-height: 1;
  font-variant-numeric: lining-nums;
}
.chronology__year--now { font-family: var(--serif); font-style: italic; color: var(--accent); }
.chronology p { font-size: 14px; line-height: 1.5; color: var(--ink-soft); margin: 0; max-width: 21ch; }

/* ==========================================================================
   II. Houses — contents
   ========================================================================== */
.houses-intro { padding-block: clamp(70px, 7vw, 120px) clamp(40px, 5vw, 80px); }
.houses-intro .chapter-mark { grid-column: 1 / span 3; grid-row: 1; align-self: end; padding-bottom: 1.2em; }
.houses-intro__title {
  grid-column: 4 / span 5; grid-row: 1;
  font-family: var(--display);
  font-size: clamp(64px, 9.6vw, 176px); line-height: .84; letter-spacing: -.024em;
  margin: 0;
}
.houses-intro__note { grid-column: 9 / -1; grid-row: 1; align-self: end; margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); max-width: 30em; }
.contents { grid-column: 4 / -1; grid-row: 2; margin-top: clamp(44px, 5vw, 80px); border-top: 1px solid var(--ink); }
.contents a {
  display: grid; grid-template-columns: 52px auto minmax(24px, 1fr) auto; align-items: baseline; column-gap: 16px;
  padding: 17px 0 16px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}
.contents__no { font-family: var(--sans); font-stretch: 118%; font-size: 10.5px; letter-spacing: .14em; color: var(--accent); }
.contents__name {
  font-family: var(--display); font-size: clamp(24px, 2.3vw, 38px); line-height: 1.1;
  transition: transform .6s var(--ease);
}
.contents__leader {
  height: 1px; align-self: center; transform: translateY(5px);
  background-image: radial-gradient(circle, var(--ink) .8px, transparent 1px);
  background-size: 7px 2px; background-repeat: repeat-x; opacity: .45;
}
.contents__place { font-family: var(--sans); font-stretch: 118%; font-weight: 500; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.contents a:hover .contents__name { transform: translateX(10px); }
.contents a:hover .contents__place { color: var(--ink); }

/* ==========================================================================
   Features — shared
   ========================================================================== */
.feature { padding-block: clamp(80px, 9vw, 160px); }
.feature__head { align-items: end; margin-bottom: clamp(40px, 4.6vw, 72px); }
.feature__no {
  margin: 0;
  font-family: var(--display); font-size: clamp(54px, 5.6vw, 100px); line-height: .78;
  color: var(--accent); font-variant-numeric: lining-nums;
}
.feature__title {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: clamp(40px, 5vw, 90px); line-height: .98; letter-spacing: -.014em;
}
.feature__standfirst {
  margin: 0;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(19px, 1.55vw, 24px); line-height: 1.42;
  max-width: 32ch; color: var(--ink-soft);
}

/* 01 Tyrone */
.feature--tyrone { padding-top: clamp(60px, 6vw, 110px); }
.feature--tyrone .feature__no { grid-column: 1 / span 2; align-self: start; }
.feature--tyrone .feature__titles { grid-column: 3 / span 6; }
.feature--tyrone .titleblock { grid-column: 9 / -1; }
.feature__spread { margin-top: clamp(64px, 8vw, 140px); align-items: start; }
.spread__main { grid-column: 1 / span 7; }
.spread__text { grid-column: 9 / span 4; padding-top: clamp(10px, 4vw, 70px); color: var(--ink-soft); }
.dropcap::first-letter {
  float: left; font-family: var(--display); color: var(--accent);
  font-size: 4.3em; line-height: .78; padding: .07em .09em 0 0;
}
.pullquote {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g);
  margin: clamp(90px, 10vw, 170px) auto;
}
.pullquote p {
  grid-column: 3 / span 9;
  font-family: var(--display); font-size: clamp(28px, 3.3vw, 56px); line-height: 1.1; letter-spacing: -.008em;
  margin: 0 0 22px; text-indent: -.4em; max-width: 22em;
}
.pullquote footer { grid-column: 3 / span 6; color: var(--muted); }
.pullquote footer::before { content: ""; display: inline-block; width: 38px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: 14px; }
.feature__pair { align-items: end; }
.pair__a { grid-column: 2 / span 4; }
.pair__b { grid-column: 7 / -1; margin-bottom: clamp(40px, 9vw, 160px); }

/* 02 Fermanagh — the blue-hour chapter */
.feature--fermanagh {
  background: var(--ink); color: var(--on-ink);
  padding-top: 0;
  --accent: var(--brick-lt); --muted: var(--on-ink-2); --line: var(--rule-ink);
}
.feature--fermanagh .feature__standfirst { color: var(--on-ink-2); }
.letterbox { position: relative; margin: 0; }
.letterbox__frame { position: relative; overflow: hidden; aspect-ratio: 21/9; background: #34414a; }
.letterbox__frame img {
  position: absolute; left: 0; width: 100%; top: -8%; height: 116%;
  object-fit: cover; object-position: 50% 56%;
  will-change: transform;
}
.letterbox::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(16, 20, 26, .62) 0%, rgba(16, 20, 26, 0) 46%);
}
.letterbox__title {
  position: absolute; left: 0; right: 0; bottom: clamp(20px, 3vw, 46px); z-index: 1;
  display: grid; grid-template-columns: auto 1fr; column-gap: clamp(18px, 2vw, 30px); align-items: end;
  margin: 0 auto;
}
.letterbox__title .feature__no { grid-row: 1 / span 2; }
.letterbox__title .feature__title { margin: 0 0 8px; }
.letterbox__title .label { color: var(--on-ink); opacity: .86; }
.fermanagh__body { padding-top: clamp(64px, 7.5vw, 130px); row-gap: clamp(56px, 6vw, 100px); align-items: start; }
.fermanagh__intro { grid-column: 1 / span 4; grid-row: 1; }
.fermanagh__intro .titleblock { margin-top: 36px; }
.fermanagh__dusk { grid-column: 6 / -1; grid-row: 1; }
.fermanagh__stair { grid-column: 2 / span 3; grid-row: 2; }
.fermanagh__garden { grid-column: 6 / -1; grid-row: 2; align-self: end; }

/* 03 Beaconsfield */
.beaconsfield__open { align-items: end; margin-bottom: clamp(56px, 6.5vw, 110px); }
.beaconsfield__gates { grid-column: 1 / span 5; }
.beaconsfield__head { grid-column: 7 / -1; padding-bottom: 34px; }
.beaconsfield__head .feature__no { margin-bottom: clamp(22px, 2.6vw, 40px); }
.beaconsfield__text { max-width: 44ch; margin: 26px 0 34px; color: var(--ink-soft); }
.beaconsfield__head .titleblock { max-width: 560px; }
.beaconsfield__trio { margin-top: clamp(64px, 8vw, 140px); align-items: start; }
.trio__loggia { grid-column: 1 / span 7; }
.trio__kitchen { grid-column: 9 / -1; margin-top: clamp(60px, 13vw, 240px); }

/* 04 Ballyholme */
.feature--ballyholme { padding-top: clamp(40px, 4vw, 80px); }
.ballyholme__grid { align-items: start; row-gap: clamp(40px, 5vw, 80px); }
.ballyholme__head { grid-column: 1 / span 4; grid-row: 1; position: sticky; top: calc(var(--head) + 40px); }
.ballyholme__head .feature__no { margin-bottom: clamp(22px, 2.6vw, 40px); }
.ballyholme__head .feature__title { margin-bottom: 10px; }
.ballyholme__head .label { color: var(--muted); margin-bottom: 24px; }
.ballyholme__head .feature__standfirst { margin-bottom: 20px; }
.ballyholme__head p:not([class]) { color: var(--ink-soft); max-width: 36ch; }
.ballyholme__head .titleblock { margin-top: 26px; max-width: 360px; }
.ballyholme__main { grid-column: 5 / -1; grid-row: 1; margin-right: calc(var(--m) * -1); }
.ballyholme__main figcaption { padding-right: var(--m); }
.ballyholme__day { grid-column: 5 / span 6; grid-row: 2; }

/* ==========================================================================
   Index of houses
   ========================================================================== */
.index { padding-block: clamp(90px, 10vw, 170px); }
.index > .grid { border-top: 1px solid var(--ink); padding-top: clamp(28px, 3vw, 44px); }
.index__head { grid-column: 1 / span 3; }
.index__title { font-family: var(--display); font-size: clamp(32px, 3.2vw, 54px); line-height: 1.02; margin: 0 0 18px; }
.index__head p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); max-width: 26ch; }
.index__lists { grid-column: 4 / -1; display: grid; grid-template-columns: 1.5fr 1fr; column-gap: clamp(28px, 3.6vw, 64px); align-items: start; }
.index__region { margin: 4px 0 12px; color: var(--muted); }
.index__list { border-top: 1px solid var(--rule); counter-reset: idx; }
.index__list li { counter-increment: idx; }
.index__list a, .index__row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr) auto; column-gap: 18px; align-items: baseline;
  padding: 12px 0 13px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none; outline-offset: 2px;
  transition: padding-left .5s var(--ease), background-color .4s;
}
@media (min-width: 1100px) {
  .index__group:last-child .index__list a,
  .index__group:last-child .index__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 3px; }
  .index__group:last-child .index__what { grid-column: 1; grid-row: 2; }
  .index__group:last-child .index__list a::after { grid-column: 2; grid-row: 1; }
}
.feature--ballyholme { padding-bottom: clamp(40px, 5vw, 90px); }
.index__place { font-family: var(--display); font-size: clamp(19px, 1.6vw, 26px); line-height: 1.15; transition: color .3s; }
.index__what { font-style: italic; font-size: 14.5px; line-height: 1.4; color: var(--muted); }
.index__what em { font-style: normal; font-family: var(--sans); font-stretch: 118%; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.index__list a::after { content: "↗"; font-family: var(--sans); font-size: 12px; color: var(--accent); opacity: 0; transition: opacity .3s; }
.index__list a:hover, .index__row[data-preview]:hover, .index__list a:focus-visible, .index__row[data-preview]:focus-visible { padding-left: 10px; }
.index__list a:hover .index__place, .index__row[data-preview]:hover .index__place { color: var(--accent); }
.index__list a:hover::after { opacity: 1; }
.index__thumb { display: none; }

.index__preview { margin: clamp(40px, 4vw, 64px) 0 0; position: sticky; top: calc(var(--head) + 30px); }
.index__preview-frame { aspect-ratio: 4/3; overflow: hidden; background: var(--limewash-2); }
.index__preview-frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity .45s var(--ease), transform 1.4s var(--ease); }
.index__preview-frame img.is-fading { opacity: 0; transform: scale(1.03); }
.index__preview figcaption { min-height: 2.9em; }

/* ==========================================================================
   III. The Work
   ========================================================================== */
.work { background: var(--limewash-2); padding-block: clamp(100px, 11vw, 190px); }
.work .chapter-mark { grid-column: 1 / span 3; grid-row: 1; align-self: start; padding-top: 1.4em; }
.work__title {
  grid-column: 4 / -1; grid-row: 1; margin: 0;
  font-family: var(--display); font-size: clamp(40px, 5.2vw, 94px); line-height: 1; letter-spacing: -.016em;
}
.work__title em { font-family: var(--serif); font-style: italic; letter-spacing: -.02em; }
.work__lede { grid-column: 4 / span 6; grid-row: 2; margin: 30px 0 clamp(64px, 7vw, 120px); font-size: clamp(18px, 1.35vw, 21px); line-height: 1.55; color: var(--ink-soft); }
.work__figure { grid-column: 1 / span 5; grid-row: 3; position: sticky; top: calc(var(--head) + 36px); align-self: start; margin: 0; }
.work__frame { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--ink); }
.work__frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity .9s var(--ease), transform 1.8s var(--ease);
}
.work__frame img.is-active { opacity: 1; transform: none; }
.work__figure figcaption { transition: opacity .4s; }
.work__list { grid-column: 7 / -1; grid-row: 3; border-top: 1px solid var(--ink); }
.work__item {
  display: grid; grid-template-columns: 54px minmax(0, 1fr); column-gap: 16px;
  padding: clamp(28px, 3vw, 46px) 0 clamp(30px, 3.2vw, 50px);
  border-bottom: 1px solid var(--rule);
  transition: opacity .6s var(--ease);
}
.js .work__item.is-in:not(.is-active) { opacity: .42; }
.work__num { grid-column: 1; grid-row: 1; font-style: italic; font-size: 19px; color: var(--accent); padding-top: .55em; }
.work__item h3 { grid-column: 2; margin: 0 0 14px; font-family: var(--display); font-size: clamp(28px, 2.6vw, 46px); line-height: 1.04; }
.work__item p { grid-column: 2; margin: 0; max-width: 46ch; color: var(--ink-soft); }
.work__thumb { display: none; }

/* ==========================================================================
   IV. Detail — the second blue-hour chapter
   ========================================================================== */
.detail {
  background: var(--ink); color: var(--on-ink);
  padding-block: clamp(100px, 11vw, 190px) clamp(80px, 9vw, 150px);
  --accent: var(--brick-lt); --muted: var(--on-ink-2); --line: var(--rule-ink);
}
.detail__head .chapter-mark { grid-column: 1 / span 3; grid-row: 1; align-self: start; padding-top: 1.3em; }
.detail__title { grid-column: 4 / -1; grid-row: 1; margin: 0; font-family: var(--display); font-size: clamp(44px, 6.4vw, 116px); line-height: .96; letter-spacing: -.018em; }
.detail__lede { grid-column: 4 / span 5; grid-row: 2; margin: 30px 0 0; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.55; color: var(--on-ink-2); }

.specimens { margin-top: clamp(60px, 7vw, 120px); }
.specimens__track {
  position: relative;
  display: flex; align-items: flex-end; gap: clamp(16px, 2vw, 34px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--m);
  padding-inline: var(--m); padding-bottom: 6px;
  scrollbar-width: none; cursor: grab;
}
.specimens__track::-webkit-scrollbar { display: none; }
.specimens__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.specimens__track.is-dragging img { pointer-events: none; }
.specimen { flex: none; margin: 0; scroll-snap-align: start; user-select: none; }
.specimen:last-child { margin-right: var(--m); }
.specimen__frame { overflow: hidden; background: #262d36; }
.specimen--wide .specimen__frame { width: clamp(300px, 40vw, 740px); aspect-ratio: 3/2; }
.specimen--tall .specimen__frame { width: clamp(220px, 24vw, 440px); aspect-ratio: 4/5; }
.specimen__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); -webkit-user-drag: none; }
.specimen:hover .specimen__frame img { transform: scale(1.035); }
.specimen figcaption {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; row-gap: 2px;
  margin-top: 14px; font-style: normal; color: var(--on-ink);
}
.specimen__no { grid-row: 1 / span 2; font-family: var(--sans); font-stretch: 118%; font-size: 9.5px; letter-spacing: .14em; color: var(--accent); padding-top: 5px; }
.specimen figcaption strong { font-family: var(--display); font-weight: 400; font-size: 19px; line-height: 1.2; }
.specimen figcaption span:last-child { font-style: italic; font-size: 13.5px; color: var(--on-ink-2); }

.specimens__controls { display: flex; align-items: center; gap: 18px; margin-top: 34px; }
.specimens__progress { flex: 1; height: 1px; background: var(--rule-ink); position: relative; overflow: hidden; }
.specimens__progress span { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--on-ink); transform-origin: left; transform: scaleX(.1); transition: transform .25s linear; }
.specimens__count { margin: 0; color: var(--on-ink-2); font-variant-numeric: tabular-nums; min-width: 6em; text-align: right; }
.specimens__btn {
  width: 48px; height: 48px; border: 1px solid var(--rule-ink); background: transparent; color: var(--on-ink);
  font-family: var(--sans); font-size: 15px; cursor: pointer;
  transition: background-color .3s, border-color .3s, color .3s;
}
.specimens__btn:hover { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.specimens__btn:disabled { opacity: .3; pointer-events: none; }

.detail__notes { margin-top: clamp(80px, 9vw, 150px); row-gap: 40px; align-items: start; }
.detail__note { border-top: 1px solid var(--rule-ink); padding-top: 18px; }
.detail__note .label { color: var(--on-ink); margin-bottom: 12px; }
.detail__note p:not(.label) { color: var(--on-ink-2); font-size: 16.5px; line-height: 1.6; margin: 0; max-width: 40ch; }
.detail__note:nth-child(1) { grid-column: 1 / span 4; }
.detail__note:nth-child(2) { grid-column: 5 / span 4; }
.detail__note--case { grid-column: 9 / -1; border: 1px solid var(--rule-ink); padding: 18px 20px 22px; position: relative; }
.detail__note--case::before { content: ""; position: absolute; left: -1px; top: -1px; width: 3px; bottom: -1px; background: var(--accent); }
.detail__note--case p:not(.label) { font-style: italic; color: var(--on-ink); }

/* ==========================================================================
   V. Enquiries
   ========================================================================== */
.enquire { padding-block: clamp(100px, 11vw, 190px); }
.enquire__intro { grid-column: 1 / span 5; }
.enquire__title { margin: clamp(26px, 3vw, 44px) 0 24px; font-family: var(--display); font-size: clamp(44px, 5.4vw, 98px); line-height: .98; letter-spacing: -.016em; }
.enquire__lede { font-size: clamp(18px, 1.35vw, 21px); line-height: 1.55; color: var(--ink-soft); max-width: 30em; }
.enquire__direct { margin: clamp(40px, 4vw, 64px) 0 0; border-top: 1px solid var(--ink); }
.enquire__direct > div { display: grid; grid-template-columns: 9.5em 1fr; column-gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.enquire__direct dt { color: var(--muted); }
.enquire__direct dd { margin: 0; font-size: 16px; line-height: 1.5; }
.enquire__direct a { font-family: var(--display); font-size: clamp(20px, 1.7vw, 27px); line-height: 1.2; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.enquire__direct a:hover { background-size: 100% 1px; }

.brief {
  grid-column: 7 / -1; align-self: start;
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(22px, 2.8vw, 46px) clamp(20px, 2.8vw, 46px) clamp(24px, 2.8vw, 42px);
  margin-top: clamp(0px, 1vw, 12px);
}
.brief__head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 12px; margin: 0 0 30px; }
.brief__ref { color: var(--muted); }
.brief__row--2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(16px, 2vw, 32px); }
.field { display: block; margin: 0 0 26px; border: 0; padding: 0; min-width: 0; }
.field > .label, .field legend { display: block; margin-bottom: 8px; color: var(--muted); padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; display: block;
  border: 0; border-bottom: 1px solid var(--rule-strong); border-radius: 0;
  background: transparent; color: var(--ink);
  font: 400 19px/1.4 var(--serif);
  padding: 4px 0 10px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(22, 27, 34, .34); font-style: italic; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.field--select { position: relative; }
.field--select::after { content: ""; position: absolute; right: 2px; bottom: 19px; width: 7px; height: 7px; border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); transform: rotate(45deg); pointer-events: none; }
.field.is-invalid input { border-bottom-color: var(--brick); box-shadow: 0 1px 0 var(--brick); }

.choices { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 4px; }
.choices label { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 17px; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span::before {
  content: ""; display: inline-block; width: 9px; height: 11px; margin-right: 10px; vertical-align: -1px;
  border: 1px solid var(--ink); background: transparent; transition: background-color .3s, box-shadow .3s;
}
.choices input:checked + span::before { background: var(--brick); border-color: var(--brick); box-shadow: 0 0 9px rgba(217, 142, 100, .6); }
.choices input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 4px; }

.brief__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin-top: 8px; }
.brief__submit {
  display: inline-flex; align-items: center; gap: 22px;
  border: 0; cursor: pointer;
  background: var(--ink); color: var(--on-ink);
  padding: 19px 26px 18px;
  font-family: var(--sans); font-stretch: 118%; font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  transition: background-color .4s var(--ease);
}
.brief__submit span:last-child { font-size: 15px; letter-spacing: 0; transition: transform .5s var(--ease); }
.brief__submit:hover { background: var(--brick); }
.brief__submit:hover span:last-child { transform: translateX(5px); }
.brief__note { margin: 0; font-size: 13px; line-height: 1.45; font-style: italic; color: var(--muted); max-width: 30ch; }

/* ==========================================================================
   Colophon
   ========================================================================== */
.colophon {
  background: var(--ink-2); color: var(--on-ink);
  padding-block: clamp(70px, 8vw, 130px) 30px;
  --accent: var(--brick-lt); --muted: var(--on-ink-2);
}
.colophon .grid { row-gap: 40px; align-items: start; }
.colophon__mark { grid-column: 1 / span 4; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; }
.colophon__mark .wordmark__name { font-size: clamp(28px, 2.6vw, 40px); }
.colophon__mark .wordmark__sub { font-size: 8.5px; letter-spacing: .44em; }
.colophon__col { grid-column: span 2; font-size: 15px; line-height: 1.6; color: var(--on-ink-2); }
.colophon__col:nth-of-type(1) { grid-column: 6 / span 2; }
.colophon__col .label { color: var(--on-ink); margin-bottom: 10px; }
.colophon__col a { text-decoration: none; color: var(--on-ink); }
.colophon__col a:hover { color: var(--accent); }
.colophon__press { grid-column: 1 / span 7; margin: 20px 0 0; display: flex; flex-direction: column; gap: 8px; }
.colophon__press .label { color: var(--muted); }
.colophon__press a { font-family: var(--display); font-size: clamp(20px, 1.7vw, 27px); line-height: 1.25; text-decoration: none; }
.colophon__press a em { font-family: var(--serif); }
.colophon__press a:hover { color: var(--accent); }
.colophon__small {
  grid-column: 1 / -1; margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--rule-ink);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12.5px; line-height: 1.5; color: var(--on-ink-2);
}

/* ==========================================================================
   Photographs: they open like a sash, upwards; then hold, and invite a closer look
   ========================================================================== */
.js .plate[data-reveal] { transform: none; transition: opacity .9s var(--ease); }
.js .plate[data-reveal] .plate__frame { clip-path: inset(100% 0 0 0); transition: clip-path 1.5s cubic-bezier(.7, 0, .2, 1); }
.js .plate[data-reveal].is-in .plate__frame { clip-path: inset(0 0 0 0); }
.js .plate[data-reveal] figcaption { opacity: 0; transform: translateY(8px); transition: opacity .9s var(--ease) .7s, transform .9s var(--ease) .7s; }
.js .plate[data-reveal].is-in figcaption { opacity: 1; transform: none; }
.plate .plate__frame img { transition: transform 2.2s var(--ease); }
.js .plate[data-reveal].is-in:hover .plate__frame img, .plate:not([data-reveal]):hover .plate__frame img { transform: scale(1.035); }
[data-zoomable] { cursor: zoom-in; }

/* Beaconsfield — the garden front holds the screen while you pass it */
.pinned { position: relative; height: 210vh; }
.pinned__stage { position: sticky; top: 0; height: 100vh; height: 100svh; margin: 0; overflow: hidden; color: var(--on-ink); background: #2b2620; }
.pinned__frame { position: absolute; inset: 0; }
.pinned__frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%;
  transform: scale(var(--pz, 1.18)); transform-origin: 55% 55%;
  will-change: transform;
}
.pinned__stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(14, 12, 10, .66) 0%, rgba(14, 12, 10, .2) 34%, rgba(14, 12, 10, 0) 56%);
  opacity: var(--pl, 0);
}
.pinned__caption { position: absolute; left: 0; right: 0; bottom: clamp(26px, 5vh, 60px); z-index: 2; margin: 0; display: block; font-style: normal; color: var(--on-ink); }
.pinned__line {
  margin: 0 0 18px;
  font-family: var(--display); font-size: clamp(40px, 6.4vw, 116px); line-height: .96; letter-spacing: -.016em;
  opacity: var(--pl, 0); transform: translateY(calc((1 - var(--pl, 0)) * 46px));
}
.pinned__line em { font-family: var(--serif); font-style: italic; }
.pinned__meta {
  margin: 0; display: flex; gap: 12px; align-items: baseline;
  font-family: var(--sans); font-stretch: 118%; font-weight: 500; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--on-ink); opacity: calc(var(--pl, 0) * .9);
}
.pinned__meta .plate__no { color: var(--brick-lt); }

/* Viewer */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center;
  padding: 76px clamp(16px, 7vw, 130px) 64px;
  background: rgba(11, 14, 18, .97); color: var(--on-ink);
  opacity: 0; transition: opacity .45s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.lightbox__frame { display: flex; justify-content: center; }
.lightbox__img {
  display: block; width: auto; height: auto;
  max-width: min(100%, 1700px); max-height: calc(100vh - 190px); max-height: calc(100svh - 190px);
  opacity: 0; transform: scale(.975); transition: opacity .5s var(--ease), transform .9s var(--ease);
}
.lightbox__img.is-shown { opacity: 1; transform: none; }
.lightbox__cap { justify-content: center; text-align: center; color: var(--on-ink-2); margin-top: 16px; max-width: 60ch; }
.lightbox__count { position: absolute; left: var(--m); top: 28px; margin: 0; color: var(--on-ink-2); font-variant-numeric: tabular-nums; }
.lightbox__close {
  position: absolute; right: var(--m); top: 16px;
  display: inline-flex; align-items: center; gap: 12px;
  background: none; border: 0; color: var(--on-ink); cursor: pointer; font-size: 24px; padding: 6px 0;
}
.lightbox__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border: 1px solid var(--rule-ink); background: transparent; color: var(--on-ink);
  font-family: var(--sans); font-size: 16px; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s;
}
.lightbox__arrow:hover { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.lightbox__arrow--prev { left: var(--m); }
.lightbox__arrow--next { right: var(--m); }
.lightbox.is-single .lightbox__arrow { display: none; }

/* A small "View" tag that travels with the pointer over photographs */
.cursor-tag { position: fixed; left: 0; top: 0; z-index: 85; pointer-events: none; transform: translate3d(-100px, -100px, 0); }
.cursor-tag span {
  display: block; padding: 8px 11px 7px;
  background: var(--limewash); color: var(--ink);
  font-family: var(--sans); font-stretch: 118%; font-weight: 500; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  transform: translate(16px, 16px) scale(.5); opacity: 0; transform-origin: 0 0;
  transition: opacity .25s var(--ease), transform .4s var(--ease);
}
.cursor-tag.is-on span { opacity: 1; transform: translate(16px, 16px) scale(1); }
@media (hover: none) { .cursor-tag { display: none; } }

/* ==========================================================================
   Tablet (700–1099)
   ========================================================================== */
@media (max-width: 1099px) {
  :root { --head: 66px; }
  .runhead, .masthead__nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .masthead { grid-template-columns: 1fr auto; }

  .cover__contents { display: none; }
  .cover__sheet { grid-column: 1 / -1; }

  .builder .chapter-mark { grid-column: 1 / -1; padding: 0; margin-bottom: 30px; }
  .builder__lede { grid-column: 1 / -1; grid-row: 2; }
  .builder__plates { grid-column: 1 / -1; grid-row: 3; margin-inline: calc(var(--m) * -1); }
  .builder__plate { width: 82%; }
  .builder__inset { width: 34%; right: var(--m); }
  .builder__text { grid-column: 1 / span 9; grid-row: 4; margin-top: clamp(110px, 16vw, 160px); }
  .builder__quote { grid-column: 1 / -1; grid-row: 5; margin-top: 50px; }
  .chronology { grid-row: 6; grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }

  .houses-intro .chapter-mark { grid-column: 1 / -1; padding: 0 0 26px; }
  .houses-intro__title { grid-column: 1 / span 7; grid-row: 2; }
  .houses-intro__note { grid-column: 8 / -1; grid-row: 2; }
  .contents { grid-column: 1 / -1; grid-row: 3; }

  .feature--tyrone .feature__no { grid-column: 1 / span 2; }
  .feature--tyrone .feature__titles { grid-column: 3 / -1; }
  .feature--tyrone .titleblock { grid-column: 3 / -1; margin-top: 36px; }
  .spread__main { grid-column: 1 / -1; }
  .spread__text { grid-column: 3 / -1; padding-top: 40px; columns: 2; column-gap: var(--g); }
  .pullquote p, .pullquote footer { grid-column: 2 / -1; }
  .pair__a { grid-column: 1 / span 5; }
  .pair__b { grid-column: 6 / -1; }

  .letterbox__frame { aspect-ratio: 16/9; }
  .fermanagh__intro { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--g); }
  .fermanagh__intro .titleblock { margin-top: 0; }
  .fermanagh__dusk { grid-column: 1 / -1; grid-row: 2; }
  .fermanagh__stair { grid-column: 1 / span 5; grid-row: 3; }
  .fermanagh__garden { grid-column: 6 / -1; grid-row: 3; }

  .beaconsfield__gates { grid-column: 1 / span 6; }
  .beaconsfield__head { grid-column: 7 / -1; padding-bottom: 0; }
  .trio__loggia { grid-column: 1 / span 8; }
  .trio__kitchen { grid-column: 9 / -1; }

  .ballyholme__head { grid-column: 1 / -1; position: static; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--g); }
  .ballyholme__head > * { grid-column: 1; }
  .ballyholme__head > p:not([class]), .ballyholme__head .titleblock { grid-column: 2; }
  .ballyholme__head > p:not([class]) { grid-row: 1 / span 3; align-self: end; }
  .ballyholme__head .titleblock { grid-row: 4; margin-top: 0; }
  .ballyholme__main { grid-column: 1 / -1; grid-row: 2; margin-inline: calc(var(--m) * -1); }
  .ballyholme__main figcaption { padding-inline: var(--m); }
  .ballyholme__day { grid-column: 3 / -1; grid-row: 3; }

  .index__head { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--g); margin-bottom: 30px; }
  .index__lists { grid-column: 1 / -1; grid-template-columns: 1fr; row-gap: 40px; }
  .index__preview { display: none; }
  .index__list a, .index__row { grid-template-columns: minmax(0, 10em) minmax(0, 1fr) auto; }
  .index__thumb { display: block; width: 64px; height: 48px; object-fit: cover; align-self: center; grid-column: 3; grid-row: 1; }
  .index__list a::after { display: none; }

  .work .chapter-mark { grid-column: 1 / -1; padding: 0; margin-bottom: 26px; }
  .work__title { grid-column: 1 / -1; grid-row: 2; }
  .work__lede { grid-column: 1 / span 10; grid-row: 3; }
  .work__figure { display: none; }
  .work__list { grid-column: 1 / -1; grid-row: 4; }
  .js .work__item.is-in:not(.is-active) { opacity: 1; }
  .work__item { grid-template-columns: 54px minmax(0, 1fr) minmax(0, .9fr); column-gap: var(--g); }
  .work__item h3, .work__item p { grid-column: 2; }
  .work__thumb { display: block; grid-column: 3; grid-row: 1 / span 2; width: 100%; aspect-ratio: 4/3; height: auto; object-fit: cover; }

  .detail__head .chapter-mark { grid-column: 1 / -1; padding: 0; margin-bottom: 26px; }
  .detail__title { grid-column: 1 / -1; grid-row: 2; }
  .detail__lede { grid-column: 1 / span 9; grid-row: 3; }
  .detail__note:nth-child(1) { grid-column: 1 / span 6; }
  .detail__note:nth-child(2) { grid-column: 7 / -1; }
  .detail__note--case { grid-column: 1 / -1; }

  .enquire__intro { grid-column: 1 / -1; }
  .enquire__direct { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--g); }
  .enquire__direct > div { grid-template-columns: 1fr; row-gap: 4px; }
  .brief { grid-column: 1 / -1; margin-top: clamp(48px, 6vw, 80px); }

  .colophon__mark { grid-column: 1 / -1; }
  .colophon__col, .colophon__col:nth-of-type(1) { grid-column: span 4; }
  .colophon__press { grid-column: 1 / -1; }
}

/* ==========================================================================
   Phone (< 700) — composed separately, not squeezed
   ========================================================================== */
@media (max-width: 699px) {
  :root { --m: 20px; --g: 12px; --head: 60px; }
  body { font-size: 16.5px; }

  .wordmark__name { font-size: 18px; }
  .wordmark__sub { font-size: 6.6px; }

  .menu__inner { grid-template-columns: 1fr; }
  .menu__aside { font-size: 15px; }

  /* Cover: the house held in the upper half, the line set low */
  .cover { min-height: 560px; }
  .cover__img { object-position: var(--pos-m, 50% 50%); }
  .cover__plate { background-position: 64% 50%; }
  .cover::after {
    background:
      linear-gradient(180deg, rgba(12, 14, 18, .5) 0%, rgba(12, 14, 18, 0) 16%),
      linear-gradient(0deg, rgba(12, 14, 18, .9) 0%, rgba(12, 14, 18, .66) 36%, rgba(12, 14, 18, .18) 58%, rgba(12, 14, 18, 0) 70%);
  }
  .cover__kicker { font-size: 9px; letter-spacing: .15em; max-width: 30em; }
  .cover__title { font-size: clamp(40px, 11.6vw, 54px); line-height: 1; margin-bottom: 26px; }
  .cover__title .line:nth-child(2) { padding-left: .9em; }
  .titleblock--cover { grid-template-columns: 1fr 1fr; }
  .titleblock--cover > div:first-child { grid-column: 1 / -1; }
  .cover__foot { border-top: 0; padding-top: 0; }

  /* Builder */
  .builder { padding-block: 84px 72px; }
  .builder__lede { font-size: 27px; line-height: 1.16; margin-bottom: 44px; }
  .builder__plate { width: 100%; }
  .builder__plate figcaption { padding-right: 46%; }
  .builder__inset { width: 40%; right: var(--m); bottom: -70px; }
  .builder__inset figcaption { display: none; }
  .builder__text { grid-column: 1 / -1; margin-top: 104px; }
  .is-intro .intro, .is-intro .cover { --aw: min(44vw, 220px); }
  .builder__quote { grid-row: 6; }
  .chronology { grid-row: 7; grid-template-columns: 1fr; row-gap: 0; margin-top: 64px; border-top: 0; }
  .chronology li { display: grid; grid-template-columns: 84px 1fr; column-gap: 14px; padding: 16px 0; border-top: 1px solid var(--rule); }
  .chronology li::before { display: none; }
  .chronology__year { font-size: 30px; margin: 0; }
  .chronology p { max-width: none; padding-top: 4px; }

  /* Houses contents */
  .houses-intro__title { grid-column: 1 / -1; font-size: 76px; }
  .houses-intro__note { grid-column: 1 / -1; grid-row: 3; margin-top: 22px; }
  .contents { grid-row: 4; margin-top: 36px; }
  .contents a { grid-template-columns: 36px 1fr; row-gap: 4px; padding: 15px 0; }
  .contents__leader { display: none; }
  .contents__place { grid-column: 2; font-size: 9.5px; }

  /* Features */
  .feature { padding-block: 72px; }
  .feature__head { margin-bottom: 30px; }
  .feature__no { font-size: 50px; }
  .feature__title { font-size: 40px; }
  .feature--tyrone .feature__no { grid-column: 1 / -1; margin-bottom: 18px; }
  .feature--tyrone .feature__titles, .feature--tyrone .titleblock { grid-column: 1 / -1; }
  .titleblock dd { font-size: 14px; }

  .plate--bleed .plate__frame { aspect-ratio: 4/3 !important; }
  .feature--tyrone .plate--bleed img { object-position: 42% 50%; }
  .spread__main { margin-inline: calc(var(--m) * -1); }
  .spread__main figcaption { padding-inline: var(--m); }
  .spread__text { grid-column: 1 / -1; columns: 1; padding-top: 30px; }
  .pullquote { margin-block: 64px; }
  .pullquote p, .pullquote footer { grid-column: 1 / -1; }
  .pullquote p { font-size: 27px; line-height: 1.15; }
  .pair__a { grid-column: 1 / span 9; margin-bottom: 36px; }
  .pair__b { grid-column: 1 / -1; margin: 0 calc(var(--m) * -1); }
  .pair__b figcaption { padding-inline: var(--m); }

  .letterbox__frame { aspect-ratio: 4/5; }
  .letterbox__frame img { object-position: 47% 40%; }
  .letterbox__title { grid-template-columns: 1fr; }
  .letterbox__title .feature__no { grid-row: auto; margin-bottom: 12px; }
  .fermanagh__intro { grid-template-columns: 1fr; row-gap: 30px; }
  .fermanagh__dusk { margin-inline: calc(var(--m) * -1); }
  .fermanagh__dusk figcaption { padding-inline: var(--m); }
  .fermanagh__stair { grid-column: 4 / -1; }
  .fermanagh__garden { grid-column: 1 / -1; grid-row: 4; }
  .fermanagh__garden .plate__frame { aspect-ratio: 3/2 !important; }

  .beaconsfield__gates { grid-column: 1 / -1; margin: 0 calc(var(--m) * -1) 40px; }
  .beaconsfield__gates figcaption { padding-inline: var(--m); }
  .beaconsfield__head { grid-column: 1 / -1; }
  .feature--beaconsfield .plate--bleed .plate__frame { aspect-ratio: 5/4 !important; }
  .trio__loggia { grid-column: 1 / -1; margin-inline: calc(var(--m) * -1); }
  .trio__loggia figcaption { padding-inline: var(--m); }
  .trio__kitchen { grid-column: 4 / -1; margin-top: 40px; }

  .ballyholme__head { grid-template-columns: 1fr; }
  .ballyholme__head > p:not([class]), .ballyholme__head .titleblock { grid-column: 1; grid-row: auto; }
  .ballyholme__head .titleblock { margin-top: 20px; }
  .ballyholme__day { grid-column: 1 / -1; }
  .ballyholme__day .plate__frame { aspect-ratio: 3/2 !important; }

  /* Index */
  .index__head { grid-template-columns: 1fr; }
  .index__list a, .index__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; padding: 13px 0; }
  .index__place { grid-column: 1; font-size: 21px; }
  .index__what { grid-column: 1; grid-row: 2; font-size: 14px; }
  .index__thumb { grid-column: 2; grid-row: 1 / span 2; width: 58px; height: 58px; }

  /* Work */
  .work { padding-block: 84px; }
  .work__title { font-size: 40px; }
  .work__lede { grid-column: 1 / -1; }
  .work__item { grid-template-columns: 34px minmax(0, 1fr); row-gap: 0; padding-block: 28px 30px; }
  .work__num { font-size: 16px; padding-top: .45em; }
  .work__item h3 { font-size: 29px; }
  .work__thumb { grid-column: 1 / -1; grid-row: auto; margin-top: 22px; aspect-ratio: 16/10; }

  /* Detail */
  .detail { padding-block: 84px 72px; }
  .detail__title { font-size: 46px; }
  .detail__lede { grid-column: 1 / -1; }
  .specimens { margin-top: 48px; }
  .specimen--wide .specimen__frame { width: 80vw; }
  .specimen--tall .specimen__frame { width: 62vw; }
  .specimens__controls { margin-top: 26px; }
  .specimens__btn { width: 44px; height: 44px; }
  .detail__note:nth-child(1), .detail__note:nth-child(2), .detail__note--case { grid-column: 1 / -1; }
  .detail__notes { margin-top: 64px; row-gap: 30px; }

  /* Enquire */
  .enquire { padding-block: 84px 72px; }
  .enquire__title { font-size: 46px; }
  .enquire__direct { grid-template-columns: 1fr; }
  .enquire__direct > div { grid-template-columns: 7.5em 1fr; }
  .brief { margin-inline: calc(var(--m) * -1); border-inline: 0; padding: 30px var(--m) 34px; }
  .brief__row--2 { grid-template-columns: 1fr; }
  .brief__ref { display: none; }
  .choices { flex-direction: column; gap: 12px; }
  .brief__submit { width: 100%; justify-content: space-between; }

  .colophon__col, .colophon__col:nth-of-type(1) { grid-column: 1 / -1; }
  .colophon__small { flex-direction: column; }

  .pinned { height: 170vh; }
  .pinned__frame img { object-position: 62% 50%; }
  .pinned__line { font-size: 42px; }
  .pinned__meta { flex-wrap: wrap; font-size: 9px; line-height: 1.6; }

  .lightbox { padding: 64px 0 96px; }
  .lightbox__img { max-width: 100%; max-height: calc(100svh - 200px); }
  .lightbox__cap { padding-inline: var(--m); }
  .lightbox__arrow { top: auto; bottom: 22px; transform: none; width: 46px; height: 46px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal], .js [data-cover-in] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .js .cover__plate, .js .cover__title .line > span { filter: none !important; transform: none !important; transition: none !important; }
  .js .plate[data-reveal] .plate__frame img, .js .letterbox[data-reveal] .letterbox__frame img { transform: none !important; transition: none !important; }
  .menu__list a { transform: none; transition: none; }
  .work__frame img, .index__preview-frame img, .specimen__frame img { transition: opacity .01s; }
  .js .plate[data-reveal] .plate__frame { clip-path: none !important; transition: none !important; }
  .js .plate[data-reveal] figcaption { opacity: 1 !important; transform: none !important; }
  .cover__slide.is-active .cover__img { animation: none; }
  .cover__dot.is-active b { animation: none; transform: scaleX(1); }
  .pinned { height: auto; }
  .pinned__stage { position: relative; }
  .pinned__frame img { transform: none; }
  .pinned__line, .pinned__meta, .pinned__stage::after { opacity: 1; transform: none; }
  .intro { display: none !important; }
}
