/* ──────────────────────────────────────────────────────────────
   Tiler Luca — homepage concept
   System: the logo is a 1:2 gold tile split by a level line.
   Photography is "laid" with a consistent grout joint; gold is
   reserved for the level line, the monogram and the one main action.
   ────────────────────────────────────────────────────────────── */

:root {
  --nero: #121110;
  --charcoal: #1b1917;
  --smoke: #5a544d;
  --greige: #9d958c;
  --stone: #e0ddd6;
  --chalk: #eeece7;
  --white: #faf9f6;
  --brass: #cfab4b;
  --brass-lift: #ddbd64;
  --logo-gold: #d9b441;

  --rule-ink: rgba(18, 17, 16, .16);
  --rule-light: rgba(238, 236, 231, .15);

  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --caps: "Cinzel", "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --joint: 6px;
  --gutter: clamp(20px, 4.6vw, 76px);
  --header: 84px;
  --ease-lay: cubic-bezier(.7, 0, .18, 1);
  --ease-settle: cubic-bezier(.2, .7, .15, 1);
}

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

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

body {
  margin: 0;
  background: var(--chalk);
  color: var(--nero);
  font: 400 1.0313rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
figure, blockquote, h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3 { font-family: var(--serif); font-weight: 300; text-wrap: balance; }

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

section[id], article[id] { scroll-margin-top: var(--header); }

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

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

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: var(--brass); color: var(--nero); padding: 10px 16px;
}
.skip:focus { top: 12px; }

/* ───────── Buttons & links ───────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border: 1px solid transparent; border-radius: 1px;
  font-weight: 500; font-size: .9688rem; line-height: 1; text-decoration: none;
  background: none;
  transition: background-color .25s, border-color .25s, color .25s;
}
.btn--brass { background: var(--brass); color: var(--nero); }
.btn--brass:hover { background: var(--brass-lift); }
.btn--line { border-color: color-mix(in srgb, currentColor 38%, transparent); }
.btn--line:hover { border-color: currentColor; }
.btn--small { min-height: 42px; padding: 0 18px; font-size: .875rem; }

.textlink {
  text-decoration: none; font-weight: 500; padding-block: 6px;
  background: linear-gradient(var(--brass), var(--brass)) left bottom / 100% 1px no-repeat;
}
.textlink:hover { background-size: 100% 2px; }

/* ───────── Header ───────── */

.top {
  position: fixed; inset: 0 0 auto 0; z-index: 30;
  height: var(--header);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding-inline: var(--gutter);
  background: var(--nero); color: var(--chalk);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.top.is-scrolled { border-bottom-color: var(--rule-light); }

.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; justify-self: start; }
.brand__mark { width: 38px; height: 50px; --logo-stroke: 8; --logo-rule: 6; }
.brand__words { display: grid; line-height: 1.15; }
.brand__name { font-family: var(--caps); font-size: 1.12rem; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.brand__sub { font-family: var(--caps); font-size: .65rem; letter-spacing: .2em; text-transform: uppercase; color: var(--greige); white-space: nowrap; }

.nav { display: flex; gap: clamp(22px, 2.8vw, 44px); }
.nav a { text-decoration: none; font-size: .9375rem; color: #cbc5bd; padding-block: 8px; background: linear-gradient(var(--brass), var(--brass)) left bottom / 0 1px no-repeat; transition: color .2s, background-size .35s var(--ease-settle); }
.nav a:hover, .nav a[aria-current="true"] { color: var(--white); background-size: 100% 1px; }

.top__actions { justify-self: end; display: flex; align-items: center; gap: 26px; }
.top__phone { text-decoration: none; font-size: .9375rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.top__phone:hover { color: var(--brass-lift); }
.burger { display: none; }

.menu {
  position: fixed; inset: var(--header) 0 0 0; z-index: 29;
  background: var(--nero); color: var(--chalk);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 8px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu__nav { display: grid; }
.menu__nav a { font: 300 2.35rem/1 var(--serif); text-decoration: none; padding: 22px 0 18px; border-bottom: 1px solid var(--rule-light); }
.menu__foot { display: grid; gap: 14px; padding-top: 32px; }
.menu__foot a { text-decoration: none; font-size: 1.0625rem; }
.menu__foot p { color: var(--greige); font-size: .875rem; }

/* ───────── Opening ───────── */

.hero {
  --level: 64%;
  --photo-w: clamp(420px, calc((100vh - var(--header)) * .93), 56vw);
  --photo-w: clamp(420px, calc((100svh - var(--header)) * .93), 56vw);
  position: relative;
  margin-top: var(--header);
  height: calc(100vh - var(--header));
  height: calc(100svh - var(--header));
  min-height: 580px; max-height: 1120px;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--photo-w);
  grid-template-rows: 100%;
  background: var(--nero); color: var(--chalk);
  overflow: hidden;
}
.hero__copy { position: relative; grid-column: 1; grid-row: 1; }

.hero__title {
  position: absolute; left: var(--gutter); right: 24px;
  bottom: calc(100% - var(--level) + clamp(14px, 2.4vh, 26px));
  font-size: clamp(3.5rem, min(8.6vw, 15.4vh), 10rem);
  line-height: .88; letter-spacing: -.022em;
  color: var(--white);
}
.hero__title span, .hero__title em { display: block; white-space: nowrap; }
.hero__title em { font-style: italic; padding-bottom: .04em; }

.hero__below {
  position: absolute; left: var(--gutter); right: 40px;
  top: calc(var(--level) + clamp(20px, 3.4vh, 38px));
}
.hero__intro { max-width: 37ch; color: #cfc9c1; font-size: clamp(1rem, 1.2vw, 1.125rem); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: clamp(18px, 3.2vh, 32px); }

.hero__figure { grid-column: 2; grid-row: 1; position: relative; overflow: hidden; min-height: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--hero-py, 55%); }
.hero__caption {
  position: absolute; right: 0; bottom: 0;
  background: var(--nero); color: #cfc9c1;
  font-size: .8125rem; line-height: 1.4; padding: 12px var(--gutter) 12px 18px;
}

.level {
  position: absolute; left: 0; top: var(--level); z-index: 2;
  width: var(--level-w, calc(100% - var(--photo-w)));
  height: 2px; margin-top: -1px;
  background: var(--brass);
  transform-origin: left center;
  pointer-events: none;
}

/* One orchestrated moment: the line is struck, the room opens from it. */
.js .level { transform: scaleX(0); }
.js .hero__img { clip-path: inset(var(--level-in-photo, 64%) 0 calc(100% - var(--level-in-photo, 64%)) 0); }
.js .hero__title, .js .hero__below { opacity: 0; }
.js .hero__title { translate: 0 14px; }
.js .hero__below { translate: 0 -10px; }
.js .hero.is-set .level { transform: none; transition: transform .9s var(--ease-lay) .1s; }
.js .hero.is-set .hero__img { clip-path: inset(0 0 0 0); transition: clip-path 1.15s var(--ease-lay) .75s; }
.js .hero.is-set .hero__title,
.js .hero.is-set .hero__below { opacity: 1; translate: 0 0; transition: opacity .9s var(--ease-settle) 1s, translate 1.1s var(--ease-settle) 1s; }
.js .hero.is-done .level { transition: none; }

/* ───────── Shared figure treatment ───────── */

figure.reveal { overflow: hidden; background: var(--stone); }
figure.reveal img { width: 100%; height: 100%; object-fit: cover; }
.noir figure.reveal { background: #1d1b19; }
.js figure.reveal img { clip-path: inset(100% 0 0 0); scale: 1.06; }
.js figure.reveal.is-in img { clip-path: inset(0 0 0 0); scale: 1; transition: clip-path 1.1s var(--ease-lay), scale 1.8s var(--ease-settle); }

/* ───────── Introduction ───────── */

.intro { padding-top: clamp(88px, 11vw, 184px); }
.intro__grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px; align-items: end; }
.intro__statement { grid-column: 1 / 9; font-size: clamp(2.1rem, 4vw, 4.1rem); line-height: 1.1; letter-spacing: -.012em; }
.intro__statement span { color: #8a8279; }
.intro__aside { grid-column: 10 / 13; display: grid; gap: 20px; padding-bottom: 8px; }
.credit { border-top: 1px solid var(--rule-ink); padding-top: 18px; font-size: .875rem; color: var(--smoke); }
.credit a { text-underline-offset: 3px; text-decoration-color: var(--brass); }

.note {
  display: grid; grid-template-columns: 5fr 2.5fr 4.9fr; column-gap: var(--joint);
  margin-top: clamp(72px, 9vw, 150px);
}
.note__photo--tall { aspect-ratio: 4 / 5; }
.note__photo--small { aspect-ratio: 3 / 4; align-self: end; }
.note__quote { align-self: center; padding-left: clamp(24px, 4.4vw, 76px); }
.note__quote::before { content: ""; display: block; width: 64px; height: 2px; background: var(--brass); margin-bottom: 34px; }
.note__quote p { font: italic 300 clamp(1.85rem, 2.75vw, 2.85rem)/1.2 var(--serif); text-indent: -.4em; }
.note__quote footer { margin-top: 28px; font-size: .875rem; color: var(--smoke); max-width: 36ch; }

/* ───────── Selected work ───────── */

.work { padding-top: clamp(110px, 13vw, 210px); }
.work__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: clamp(28px, 3.4vw, 52px); }
.work__head h2 { font-size: clamp(3.1rem, 7.2vw, 7.25rem); line-height: .92; letter-spacing: -.022em; }
.work__head p { color: var(--smoke); padding-bottom: 6px; }

.project h3 { font-size: clamp(2.4rem, 4vw, 4.1rem); line-height: 1; letter-spacing: -.015em; }
.project > p { margin-top: 20px; max-width: 42ch; color: #37332e; }
.project .project__place { margin: 0 0 18px; display: flex; align-items: center; gap: 12px; font-size: .9375rem; color: var(--smoke); }
.project__place::before { content: ""; width: 28px; height: 2px; background: var(--brass); }
.project .project__also { font-size: .8125rem; color: var(--smoke); margin-top: 14px; }

.schedule { margin-top: 30px; max-width: 460px; }
.schedule > div { display: grid; grid-template-columns: 118px 1fr; gap: 16px; align-items: baseline; padding: 11px 0 10px; border-top: 1px solid var(--rule-ink); }
.schedule > div:last-child { border-bottom: 1px solid var(--rule-ink); }
.schedule dt { font-size: .8438rem; color: var(--smoke); }
.schedule dd { font: 400 1.3rem/1.25 var(--serif); }

.loft { display: grid; grid-template-columns: 7fr 5fr; gap: var(--joint); }
.loft__main { aspect-ratio: 4 / 5; }
.loft__main img { object-position: 50% 40%; }
.loft__side { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-width: 0; }
.loft__side .project { padding: clamp(8px, 2vw, 32px) 0 0 clamp(20px, 3.6vw, 62px); }
.loft__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--joint); }
.loft__pair figure { aspect-ratio: 3 / 4; }

.noir { background: var(--nero); color: var(--chalk); margin-top: clamp(110px, 13vw, 210px); padding-block: clamp(80px, 9vw, 150px) clamp(20px, 3vw, 48px); padding-bottom: clamp(72px, 8vw, 132px); }
.noir__head { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: end; margin-bottom: clamp(40px, 5vw, 80px); }
.project--dark h3 { font-size: clamp(2.9rem, 6.2vw, 6.4rem); line-height: .94; color: var(--white); }
.project--dark .project__place { color: var(--greige); }
.noir__text { max-width: 40ch; justify-self: end; color: #c9c3bb; padding-bottom: 8px; }
.noir__set { display: grid; grid-template-columns: 29fr 42fr 29fr; gap: var(--joint); align-items: end; }
.noir__set figure { aspect-ratio: 1440 / 1702; }
.noir__set figure:first-child, .noir__set figure:last-child { aspect-ratio: 3 / 4; }

.herring {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--joint);
  grid-template-rows: auto 1fr;
  padding-top: clamp(100px, 12vw, 196px);
}
.herring__text { grid-column: 1 / 5; grid-row: 1; padding-right: clamp(20px, 3.4vw, 60px); padding-bottom: 44px; }
.herring__tall { grid-column: 5 / 10; grid-row: 1 / 3; aspect-ratio: 3 / 4; align-self: start; }
.herring__room { grid-column: 10 / 13; grid-row: 1 / 3; aspect-ratio: 3 / 4.4; margin-top: clamp(48px, 8vw, 132px); align-self: start; }
.herring__vanity { grid-column: 2 / 5; grid-row: 2; aspect-ratio: 4 / 5; align-self: end; margin-left: 18%; }

/* ───────── Look closer ───────── */

.detail { --detail-pad: clamp(40px, 5vh, 56px); background: var(--charcoal); color: var(--chalk); padding-block: var(--detail-pad); margin-top: clamp(110px, 13vw, 210px); }
/* sized so the heading, all six items and the photograph share one screen */
.detail__grid { position: relative; min-height: clamp(620px, calc(100vh - var(--header) - 2 * var(--detail-pad)), calc((50vw - var(--gutter)) * 1.22)); display: flex; flex-direction: column; }
.detail__head { width: 42%; }
.detail__head h2 { font-size: clamp(3rem, 5.6vw, 5.75rem); line-height: .96; letter-spacing: -.02em; color: var(--white); }
.detail__head p { margin-top: 22px; max-width: 36ch; color: #c1bbb3; }
.detail__list { width: 42%; margin-top: auto; padding-top: 32px; }
.spec { border-top: 1px solid var(--rule-light); position: static; }
.spec:last-child { border-bottom: 1px solid var(--rule-light); }
.spec h3 { position: relative; }
.spec h3 button {
  width: 100%; text-align: left; background: none; border: 0; padding: 15px 0 13px;
  font: 300 clamp(1.65rem, 2.4vw, 2.4rem)/1.1 var(--serif); color: var(--greige);
  transition: color .3s;
}
.spec h3 button:hover, .spec.is-active h3 button { color: var(--white); }
.spec__body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .5s var(--ease-settle), visibility 0s .5s; }
.spec__body > p { overflow: hidden; min-height: 0; max-width: 40ch; color: #c9c3bb; font-size: .9688rem; }
.spec.is-active .spec__body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .5s var(--ease-settle); }
.spec.is-active .spec__body > p { padding-bottom: 20px; }
/* the level line again: struck from the active item towards its photograph */
.spec h3::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: var(--brass); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease-lay);
}
.spec.is-active h3::after { transform: scaleX(1); }

.spec__photo {
  position: absolute; top: 0; right: 0; width: 51%; height: 100%;
  overflow: hidden; z-index: 0; visibility: hidden; clip-path: inset(0 100% 0 0);
}
.spec__photo img { width: 100%; height: 100%; object-fit: cover; }
.spec.is-prev .spec__photo { visibility: visible; clip-path: inset(0 0 0 0); z-index: 1; }
.spec.is-active .spec__photo { visibility: visible; clip-path: inset(0 0 0 0); z-index: 2; transition: clip-path .85s var(--ease-lay); }
.spec:nth-child(1) img { object-position: 50% 38%; }
.spec:nth-child(2) img { object-position: 50% 55%; }
.spec:nth-child(3) img { object-position: 50% 58%; }
.spec:nth-child(4) img { object-position: 50% 45%; }
.detail__count { display: none; }

/* ───────── More rooms: a running bond (no joint lines up) ───────── */

.surfaces { padding-top: clamp(96px, 11vw, 176px); }
.surfaces__head { display: grid; grid-template-columns: 7fr 4fr; gap: 24px 9%; align-items: end; padding-bottom: clamp(36px, 4.4vw, 68px); }
.surfaces__head h2 { font-size: clamp(2.8rem, 5.6vw, 5.75rem); line-height: .96; letter-spacing: -.02em; }
.surfaces__head p { color: var(--smoke); max-width: 38ch; padding-bottom: 6px; }

.bond { display: grid; gap: var(--joint); padding-inline: var(--joint); }
.course { display: flex; gap: var(--joint); }
.course--a { height: clamp(400px, 47vw, 780px); }
.course--b { height: clamp(320px, 38vw, 640px); }
.course--c { height: clamp(340px, 42vw, 700px); }
.course--d { height: clamp(300px, 35vw, 590px); }

.piece {
  flex: var(--w) 1 0; min-width: 0; height: 100%;
  position: relative; overflow: hidden; padding: 0; border: 0; background: var(--stone);
  cursor: zoom-in; text-align: left;
}
.piece img { width: 100%; height: 100%; object-fit: cover; transition: scale 1.2s var(--ease-settle); }
.piece:hover img, .piece:focus-visible img { scale: 1.035; }
.piece:focus-visible { outline-offset: -4px; outline-width: 3px; }
/* the label is notched into the corner in the same colour as the grout */
.piece__label {
  position: absolute; left: 0; bottom: 0; max-width: 100%;
  background: var(--chalk); color: var(--nero);
  font: 400 1.2rem/1.2 var(--serif);
  padding: 11px 20px 5px 14px;
}
.piece__label::after { content: ""; position: absolute; left: 14px; right: 20px; bottom: 1px; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-lay); }
.piece:hover .piece__label::after, .piece:focus-visible .piece__label::after { transform: scaleX(1); }

.surfaces__more { padding-block: 40px 0; text-align: right; }

/* ───────── Services ───────── */

.services { padding-block: clamp(100px, 12vw, 190px); }
.services__grid { display: grid; grid-template-columns: 4fr 9fr; gap: 40px clamp(24px, 5vw, 90px); }
.services__head { align-self: start; position: sticky; top: calc(var(--header) + 40px); }
.services__head h2 { font-size: clamp(2.8rem, 4.8vw, 4.9rem); line-height: .96; letter-spacing: -.02em; }
.services__head p { margin-top: 22px; color: var(--smoke); max-width: 30ch; }

.rows li { border-top: 1px solid var(--rule-ink); }
.rows li:last-child { border-bottom: 1px solid var(--rule-ink); }
.rows a {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) clamp(120px, 15vw, 232px);
  gap: clamp(16px, 2.4vw, 40px); align-items: center;
  padding: var(--joint) 0; text-decoration: none; min-height: 128px;
  position: relative;
}
.rows__name { font: 400 clamp(1.7rem, 2.35vw, 2.35rem)/1.08 var(--serif); letter-spacing: -.005em; transition: translate .45s var(--ease-settle); }
.rows__desc { font-size: .9375rem; line-height: 1.55; color: var(--smoke); }
.rows__swatch { display: block; height: 116px; overflow: hidden; }
.rows__swatch img { width: 100%; height: 100%; object-fit: cover; transition: scale .9s var(--ease-settle); }
.rows a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-lay); }
.rows a:hover::after, .rows a:focus-visible::after { transform: scaleX(1); }
.rows a:hover .rows__swatch img, .rows a:focus-visible .rows__swatch img { scale: 1.09; }
.rows a:hover .rows__name, .rows a:focus-visible .rows__name { translate: 8px 0; }

/* ───────── Area ───────── */

.area { display: grid; grid-template-columns: 1fr 1fr; background: var(--nero); color: var(--chalk); }
.area__photo { aspect-ratio: 4 / 4.6; max-height: 900px; width: 100%; }
.area figure.reveal { background: #1d1b19; }
.area__photo img { object-position: 50% 68%; }
.area__text { display: flex; flex-direction: column; justify-content: center; padding: 72px var(--gutter); min-width: 0; }
.counties li { font: 300 clamp(2.4rem, 4.9vw, 5.4rem)/1 var(--serif); letter-spacing: -.018em; padding: .2em 0 .16em; border-bottom: 1px solid var(--rule-light); }
.counties li:nth-child(even) { font-style: italic; }
.counties li:last-child { border-bottom: 2px solid var(--brass); }
.area__text p { margin-top: 34px; max-width: 46ch; color: #c1bbb3; }

/* ───────── Enquiry ───────── */

.enquire { padding-block: clamp(96px, 11vw, 172px); }
.enquire__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px clamp(24px, 6vw, 110px); align-items: start; }
.enquire__intro h2 { font-size: clamp(3rem, 5.4vw, 5.6rem); line-height: .96; letter-spacing: -.022em; }
.enquire__intro > p { margin-top: 26px; max-width: 36ch; color: #37332e; }
.contacts { margin-top: 44px; }
.contacts > div { display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: baseline; padding: 15px 0 13px; border-top: 1px solid var(--rule-ink); }
.contacts > div:last-child { border-bottom: 1px solid var(--rule-ink); }
.contacts dt { font-size: .8438rem; color: var(--smoke); }
.contacts dd { font: 400 1.35rem/1.25 var(--serif); }
.contacts dd a { text-underline-offset: 5px; text-decoration-thickness: 1px; text-decoration-color: var(--brass); }
.contacts__phone { font-size: clamp(2rem, 2.8vw, 2.8rem); line-height: 1; text-decoration: none; white-space: nowrap; font-variant-numeric: lining-nums; }

.quote { background: var(--white); padding: clamp(22px, 3.6vw, 56px); display: grid; gap: 34px; min-width: 0; }
.quote fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quote legend { font: 400 1.7rem/1.2 var(--serif); padding: 0 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--joint); }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: flex; align-items: center; min-height: 46px; padding: 0 16px;
  border: 1px solid var(--rule-ink); font-size: .9063rem; cursor: pointer; user-select: none;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chips span:hover { border-color: var(--nero); }
.chips input:checked + span { background: var(--nero); border-color: var(--nero); color: var(--white); box-shadow: inset 0 -3px 0 var(--brass); }
.chips input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field > span { font-size: .8438rem; color: var(--smoke); }
.field small { font-size: inherit; color: #8b837a; margin-left: 8px; }
.field input, .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid rgba(18,17,16,.34); border-radius: 0;
  background: transparent; padding: 9px 0 10px; font-size: 1.0625rem; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: 0; border-bottom-color: var(--nero); box-shadow: 0 2px 0 var(--brass); }

.preview { background: var(--chalk); padding: 20px 22px 22px; }
.preview__label { font-size: .8125rem; color: var(--smoke); margin-bottom: 8px; }
.preview__text { font: 400 1.3rem/1.4 var(--serif); white-space: pre-line; overflow-wrap: anywhere; }

.quote__actions { display: flex; flex-wrap: wrap; gap: var(--joint); }
.quote__actions .btn { flex: 1 1 200px; }
.quote__status { font-size: .8438rem; color: var(--smoke); margin-top: -18px; }

/* ───────── Footer: his full lock-up ───────── */

.foot { background: var(--nero); color: var(--chalk); padding-block: clamp(80px, 9vw, 130px) 40px; }
.foot__grid { display: grid; justify-items: center; text-align: center; }
.foot__mark { width: 112px; height: 149px; --logo-stroke: 3.6; --logo-rule: 3; }
.foot__name { font-family: var(--caps); font-size: clamp(2.1rem, 5vw, 3.9rem); letter-spacing: .06em; text-transform: uppercase; line-height: 1.1; margin-top: 26px; }
.foot__sub { font-family: var(--caps); font-size: clamp(.9rem, 1.6vw, 1.15rem); letter-spacing: .24em; text-transform: uppercase; color: var(--greige); margin-top: 8px; }
.foot__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin-top: 52px; }
.foot__links a { text-decoration: none; padding-block: 6px; }
.foot__links a:hover { color: var(--brass-lift); }
.foot__small { width: 100%; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--rule-light); font-size: .8125rem; color: var(--greige); }
.foot__small a { text-underline-offset: 3px; }

.dock { display: none; }

/* ───────── Photo viewer ───────── */

.viewer {
  width: 100vw; width: 100dvw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--nero); color: var(--chalk);
}
.viewer[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.viewer::backdrop { background: var(--nero); }
.viewer__stage { display: flex; align-items: center; justify-content: center; min-height: 0; padding: clamp(12px, 2.4vw, 32px) clamp(12px, 2.4vw, 32px) 0; }
.viewer__stage img { max-width: 100%; max-height: 100%; width: auto; height: 100%; object-fit: contain; }
.viewer__bar { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 18px 40px; padding: 20px var(--gutter) calc(24px + env(safe-area-inset-bottom)); }
.viewer__text { max-width: 62ch; }
.viewer__title { font: 400 1.8rem/1.15 var(--serif); color: var(--white); }
.viewer__text p + p { color: #c1bbb3; font-size: .9375rem; margin-top: 4px; }
.viewer__controls { display: flex; align-items: center; gap: var(--joint); }
.viewer__controls button { min-width: 48px; height: 48px; padding: 0 16px; background: none; border: 1px solid var(--rule-light); }
.viewer__controls button:hover { border-color: var(--chalk); }
.viewer__controls span { min-width: 66px; text-align: center; font-size: .8438rem; color: var(--greige); font-variant-numeric: tabular-nums; }
.viewer__close { margin-left: 14px; }

/* ═════════ Mid-size desktop & tablet landscape ═════════ */

@media (max-width: 1180px) {
  .nav { display: none; }
  .top { grid-template-columns: 1fr auto; }
  .top__actions { gap: 18px; }
  .burger {
    display: inline-flex; align-items: center; gap: 10px;
    height: 42px; padding: 0 4px 0 8px; background: none; border: 0;
  }
  .burger__lines { width: 24px; height: 9px; border-block: 1.5px solid currentColor; transition: height .2s; }
  .burger[aria-expanded="true"] .burger__lines { height: 2px; border-bottom: 0; }
  .burger__label { font-size: .875rem; }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .intro__statement { grid-column: 1 / 10; }
  .intro__aside { grid-column: 7 / 13; margin-top: 36px; }
  .rows a { grid-template-columns: minmax(0, 1fr) 130px; }
  .rows__name { grid-column: 1; align-self: end; }
  .rows__desc { grid-column: 1; align-self: start; }
  .rows__swatch { grid-column: 2; grid-row: 1 / 3; }
}

/* ═════════ Phone & portrait tablet: its own composition ═════════ */

@media (max-width: 900px) {
  :root { --header: 66px; --joint: 4px; --gutter: 20px; }

  .brand { gap: 11px; }
  .brand__mark { width: 30px; height: 40px; --logo-stroke: 10; --logo-rule: 8; }
  .brand__name { font-size: .98rem; }
  .brand__sub { font-size: .57rem; }
  .top__phone, .top__actions .btn { display: none; }

  /* Photograph first, then the statement; the level line divides
     statement from action, the way it divides L from B. */
  .hero { display: flex; flex-direction: column; height: auto; min-height: 0; max-height: none; overflow: visible; }
  .hero__figure { order: -1; height: clamp(300px, 46svh, 118vw); flex: none; }
  .hero__img { object-position: 50% 46%; }
  .hero__figure { display: flex; flex-direction: column; }
  .hero__img { flex: 1 1 0; height: auto; min-height: 0; }
  .hero__caption { position: static; font-size: .6875rem; text-align: right; color: var(--greige); padding: 8px var(--gutter) 0; }
  .hero__copy { padding: 22px 0 40px; }
  .hero__title, .hero__below { position: static; }
  .hero__title { padding-inline: var(--gutter); font-size: clamp(3.2rem, 15.6vw, 6.8rem); line-height: .9; }
  .hero__title span { display: inline; }
  .hero__title em { display: block; }
  .hero__below { padding: 22px var(--gutter) 0; margin-top: 18px; position: relative; inset: auto; }
  .hero__below::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: var(--brass); transform-origin: left; }
  .hero__actions { gap: 14px 22px; margin-top: 20px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .level { display: none; }
  .js .hero__img { clip-path: none; }
  .js .hero__title, .js .hero__below { translate: 0 0; }
  .js .hero__below::before { transform: scaleX(0); }
  .js .hero.is-set .hero__below::before { transform: none; transition: transform .9s var(--ease-lay) .5s; }
  .js .hero.is-set .hero__title, .js .hero.is-set .hero__below { transition: opacity .8s var(--ease-settle) .15s; }

  .intro__grid { display: block; }
  .intro__statement { font-size: clamp(2rem, 8.6vw, 3.3rem); line-height: 1.12; }
  .intro__aside { margin-top: 30px; }

  .note { grid-template-columns: 1.85fr 1fr; row-gap: 40px; width: 100%; padding-right: var(--gutter); }
  .note__quote { grid-column: 1 / -1; padding: 0 0 0 var(--gutter); }
  .note__quote::before { margin-bottom: 24px; width: 48px; }
  .note__quote p { font-size: clamp(1.75rem, 7.6vw, 2.4rem); }

  .work__head { display: block; }
  .work__head p { margin-top: 14px; }

  .loft { display: flex; flex-direction: column; width: 100%; gap: 0; }
  .loft__main { aspect-ratio: 3 / 3.9; }
  .loft__side { flex-direction: column-reverse; justify-content: flex-start; gap: 36px; margin-top: var(--joint); }
  .loft__side .project { padding: 0 var(--gutter); }

  .noir { padding-block: 72px 0; }
  .noir .wrap { width: 100%; }
  .noir__head { display: block; padding-inline: var(--gutter); margin-bottom: 36px; }
  .noir__text { margin-top: 22px; }
  .noir__set { grid-template-columns: 1fr 1fr; }
  .noir__hero { grid-column: 1 / -1; grid-row: 1; }

  .herring { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto; width: 100%; column-gap: var(--joint); row-gap: var(--joint); padding-top: 80px; }
  .herring__text { grid-column: 1 / -1; grid-row: auto; padding: 0 var(--gutter) 28px; }
  .herring__tall { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 5; }
  .herring__room { grid-column: 1; grid-row: auto; margin: 0; aspect-ratio: auto; align-self: stretch; min-height: 0; }
  .herring__vanity { grid-column: 2; grid-row: auto; margin: 0; aspect-ratio: 3 / 4.8; }

  /* Look closer becomes a swipeable set of sample boards */
  .detail { margin-top: 84px; padding-block: 72px 56px; }
  .detail__grid { min-height: 0; width: 100%; }
  .detail__head { width: auto; padding-inline: var(--gutter); }
  .detail__list {
    width: 100%; margin-top: 0; padding: 36px var(--gutter) 4px;
    display: flex; align-items: flex-start; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .detail__list::-webkit-scrollbar { display: none; }
  .spec, .spec:last-child { flex: 0 0 min(80vw, 440px); scroll-snap-align: start; border: 0; display: flex; flex-direction: column; }
  .spec__photo, .spec.is-prev .spec__photo, .spec.is-active .spec__photo {
    position: static; order: -1; width: 100%; height: auto; aspect-ratio: 4 / 5;
    visibility: visible; clip-path: none; transition: none;
  }
  .spec h3 button { padding: 18px 0 10px; font-size: 1.85rem; color: var(--white); pointer-events: none; }
  .spec h3::after { transform: scaleX(1); bottom: 0; width: 48px; }
  .spec__body, .spec.is-active .spec__body { grid-template-rows: 1fr; visibility: visible; }
  .spec__body > p { padding-top: 12px; }
  .detail__count { display: block; padding: 24px var(--gutter) 0; font-size: .8125rem; color: var(--greige); font-variant-numeric: tabular-nums; }

  .surfaces { padding-top: 80px; }
  .surfaces__head { display: block; }
  .surfaces__head p { margin-top: 18px; padding: 0; }
  .bond { padding-inline: 0; }
  .course { display: grid; grid-template-columns: 1fr 1fr; height: auto; }
  .piece { height: auto; aspect-ratio: 3 / 4.3; }
  .course--a .piece:first-child { grid-column: 1 / -1; aspect-ratio: 1 / 1; }
  .course--a .piece:last-child { grid-column: 1 / -1; aspect-ratio: 4 / 4.4; }
  .course--b .piece:last-child { grid-column: 1 / -1; aspect-ratio: 1 / 1; }
  .course--c { grid-template-columns: 1fr 1.25fr; }
  .course--c .piece { aspect-ratio: auto; height: 82vw; max-height: 520px; }
  .course--d .piece:last-child { grid-column: 1 / -1; aspect-ratio: 4 / 3.2; }
  .piece__label { font-size: 1rem; padding: 8px 12px 3px 10px; }
  .surfaces__more { text-align: left; }

  .services { padding-block: 84px; }
  .services__grid { display: block; }
  .services__head { position: static; margin-bottom: 34px; }
  .rows a { grid-template-columns: 92px minmax(0, 1fr); column-gap: 18px; row-gap: 4px; padding: 14px 0; min-height: 0; grid-template-rows: auto 1fr; }
  .rows__swatch { grid-column: 1; grid-row: 1 / 3; height: 100%; min-height: 108px; position: relative; }
  .rows__swatch img { position: absolute; inset: 0; }
  .rows__name { grid-column: 2; grid-row: 1; font-size: 1.55rem; }
  .rows__desc { grid-column: 2; grid-row: 2; font-size: .875rem; }

  .area { grid-template-columns: 1fr; }
  .area__photo { aspect-ratio: 4 / 4.2; }
  .area__text { padding-block: 48px 64px; }
  .counties li { font-size: clamp(2.5rem, 11.6vw, 4.4rem); }

  .enquire { padding-block: 80px; }
  .enquire__grid { grid-template-columns: minmax(0, 1fr); }
  .quote { margin-inline: calc(var(--gutter) * -1); padding: 32px var(--gutter) 28px; }
  .chips { display: grid; grid-template-columns: 1fr 1fr; }
  .chips span { height: 100%; padding: 8px 12px; line-height: 1.3; }
  .fields { grid-template-columns: 1fr; }
  .field small { display: block; margin: 0; }
  .field input, .field textarea { font-size: 1.0625rem; }

  .foot { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }

  .dock {
    display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--joint);
    position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
    padding: var(--joint) var(--joint) calc(var(--joint) + env(safe-area-inset-bottom));
    background: var(--chalk);
    translate: 0 110%; visibility: hidden;
    transition: translate .45s var(--ease-settle), visibility 0s .45s;
  }
  .dock.is-on { translate: 0 0; visibility: visible; transition: translate .45s var(--ease-settle); }
  .dock a { display: flex; align-items: center; justify-content: center; min-height: 52px; text-decoration: none; font-weight: 600; font-size: .9375rem; }
  .dock a:first-child { background: var(--nero); color: var(--white); }
  .dock a:last-child { background: var(--brass); color: var(--nero); }

  .viewer__bar { align-items: start; }
  .viewer__stage img { height: auto; }
  .viewer__controls { width: 100%; }
  .viewer__close { margin-left: auto; }
}

@media (min-width: 640px) and (max-width: 900px) {
  :root { --gutter: 40px; }
  .hero__figure { height: 50svh; }
  .hero__img { object-position: 50% 52%; }
  .hero__actions .btn { flex: 0 0 auto; }
  .spec, .spec:last-child { flex-basis: 54vw; }
  .chips { grid-template-columns: repeat(3, 1fr); }
}

/* Short, wide screens: keep the opening composed */
@media (min-width: 901px) and (max-height: 640px) {
  .hero__intro { font-size: .9375rem; max-width: 44ch; }
  .hero__title { font-size: clamp(3rem, 14vh, 6rem); }
}

/* Laptop-height screens: all six close-ups and the photograph stay in one view */
@media (min-width: 901px) and (max-height: 820px) {
  .detail { --detail-pad: clamp(32px, 5vh, 52px); }
  .detail__grid { min-height: max(500px, calc(100vh - var(--header) - 2 * var(--detail-pad))); }
  .detail__head h2 { font-size: clamp(2.75rem, 8.4vh, 4.5rem); }
  .detail__head p { margin-top: 12px; }
  .detail__list { padding-top: 20px; }
  .spec h3 button { padding-block: 9px; font-size: 1.4rem; }
  .spec.is-active .spec__body > p { padding-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; transition-delay: 0s !important; animation: none !important; }
}
