/* W8 Property Services — "Kensington Ledger" design system
   ---------------------------------------------------------------------------
   1. Tokens   2. Base   3. Layout   4. Type   5. Components   6. Sections
   7. Pages    8. Motion  9. Print
*/

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --ivory: #f9eedc;
  --limestone: #f0e0c6;
  --stone: #dcc6a5;
  --charcoal: #22252a;
  --slate: #595d65;
  --blue: #0b4e8c;
  --blue-hover: #083d6e;
  --ink: #0a2e52;
  --ink-line: #2a4a6c;
  --ink-deep: #071f38;
  --bronze: #9a7b4f;
  --bronze-light: #cbb48d;
  --error: #a3261c;
  --ph: #fff1b8;
  --field: #f2e3cb;        /* soft fill for form controls */
  --field-hover: #ecd9bc;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem;
  --s5: 4rem; --s6: 6.5rem; --s7: 10rem;
  --section: clamp(4rem, 9vw, 8.5rem);
  --gutter: clamp(1rem, 4vw, 3rem);
  --max: 80rem;
  --header-h: 5.25rem;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M0 6h18.5M13 .8l5.5 5.2-5.5 5.2' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");  /* straight-line arrow, drawn in the text colour */
  --radius-btn: 999px;    /* pill-shaped buttons and tags */
  --radius-card: 1.25rem; /* softly rounded clickable cards */

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font: 400 1.0625rem/1.65 var(--sans);
  font-feature-settings: "ss01";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 64rem) { body { font-size: 1.125rem; } }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--blue-hover); }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: var(--ivory); }
::selection { background: var(--blue); color: var(--ivory); }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--stone); margin: 0; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: var(--ivory); padding: .75rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--ivory); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Placeholder marker: anything awaiting owner confirmation */
.ph {
  background: var(--ph); color: #5a4300; padding: .05em .3em;
  font-family: var(--sans); font-size: .85em; font-style: normal; letter-spacing: 0;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}

/* 3. Layout ----------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--limestone { background: var(--limestone); }
.section--ink { background: var(--ink); color: var(--ivory); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.grid { display: grid; gap: var(--s4) var(--s5); }
@media (min-width: 56rem) {
  .grid--7-5 { grid-template-columns: 7fr 5fr; }
  .grid--5-7 { grid-template-columns: 5fr 7fr; }
  .grid--4-8 { grid-template-columns: 4fr 8fr; }
  .grid--halves { grid-template-columns: 1fr 1fr; }
}

/* 4. Type ------------------------------------------------------------------- */
h1, h2, h3, h4 { margin: 0; font-weight: 400; color: inherit; }
.display, .h1, .h2, .h3 { font-family: var(--serif); font-optical-sizing: auto; letter-spacing: -0.015em; text-wrap: balance; }
.display { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 1.02; letter-spacing: -0.025em; }
.h1 { font-size: clamp(2.25rem, 4.6vw, 3.9rem); line-height: 1.06; }
.h2 { font-size: clamp(1.85rem, 3.4vw, 2.85rem); line-height: 1.1; }
.h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); line-height: 1.2; }
.display em, .h1 em, .h2 em { font-style: italic; color: var(--blue); }
.on-dark .display em, .on-dark .h1 em, .on-dark .h2 em { color: var(--bronze-light); }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--slate); max-width: 38em; text-wrap: pretty; }
.on-dark .lede { color: #c9d3de; }
.eyebrow {
  font: 600 .8125rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--slate); margin: 0 0 var(--s3);
}
.eyebrow a { color: inherit; }
.on-dark .eyebrow { color: var(--bronze-light); }
.section-label {
  display: flex; align-items: baseline; gap: 1rem;
  font: 600 .8125rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--slate);
  padding-top: var(--s2); border-top: 1px solid var(--stone); margin-bottom: var(--s4);
}
.section-label__num { font-family: var(--serif); font-size: 1rem; letter-spacing: 0; color: var(--blue); text-transform: none; }
.on-dark .section-label { border-color: var(--ink-line); color: var(--bronze-light); }
.on-dark .section-label__num { color: var(--ivory); }
.prose { max-width: 35em; }
.prose p, .prose li { text-wrap: pretty; }
.prose ul { padding-left: 1.1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--bronze); }
.muted { color: var(--slate); }

/* 5. Components ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 3.25rem; padding: .85rem 1.6rem;
  font: 600 .95rem/1.2 var(--sans); letter-spacing: .02em; text-decoration: none;
  border: 1px solid var(--blue); border-radius: var(--radius-btn); background: var(--blue); color: var(--ivory);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .3s var(--ease);
  cursor: pointer;
}
.btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: var(--ivory); transform: scale(1.04); }  /* grows slightly on hover */
.btn:active { transform: scale(.98); }
.btn--ghost { background: transparent; color: var(--blue); }
.btn--ghost:hover { background: var(--blue); color: var(--ivory); }
.btn--light { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.btn--light:hover { background: var(--limestone); border-color: var(--limestone); color: var(--ink); }
.btn--outline-light { background: transparent; border-color: rgba(249, 238, 220, .5); color: var(--ivory); }
.btn--outline-light:hover { background: var(--ivory); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .55em;
  font: 600 .95rem/1.3 var(--sans); text-decoration: none; color: var(--blue);
  padding-block: .35rem; border-bottom: 1px solid currentColor;
}
.link-arrow::after, .arrow-icon {
  content: ""; display: inline-block; flex: none; width: 1.3em; height: .8em;
  background: currentColor; -webkit-mask: var(--arrow) center / contain no-repeat; mask: var(--arrow) center / contain no-repeat;
  transition: transform .25s var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--ivory); }

/* Image frames. Placeholder frames are deliberate: they show where real W8 photography belongs. */
.frame { position: relative; overflow: hidden; background: var(--limestone); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--placeholder {
  display: grid; place-items: end start; padding: var(--s3);
  background:
    linear-gradient(135deg, transparent 49.6%, rgba(154, 123, 79, .22) 50%, transparent 50.4%),
    linear-gradient(45deg, transparent 49.6%, rgba(154, 123, 79, .22) 50%, transparent 50.4%),
    var(--limestone);
  border: 1px solid var(--stone);
}
.frame__label {
  max-width: 22rem; background: var(--ivory); padding: .7rem .9rem;
  font-size: .8125rem; line-height: 1.45; color: var(--slate); border-left: 2px solid var(--bronze);
}
.frame__label strong { display: block; color: var(--charcoal); font-weight: 600; margin-bottom: .15rem; }
/* Temporary PLACEHOLDER stamp on photos, switched on by placeholderPhotos in site.json */
.ph-photos .frame:not(.frame--real):has(img)::after {
  content: "Placeholder"; content: "Placeholder" / "";
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  padding: .55em 1.1em; background: rgba(249, 238, 220, .88); color: var(--ink);
  font: 600 clamp(.7rem, 1.6vw, .95rem)/1 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  border: 1px solid var(--bronze); pointer-events: none;
}
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-3-4 { aspect-ratio: 3 / 4; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-1-1 { aspect-ratio: 1; }

/* Ledger list: ruled rows, the site's signature pattern */
.ledger-list { border-top: 1px solid var(--stone); }
.ledger-list li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem;
  padding: 1.05rem 0; border-bottom: 1px solid var(--stone);
}
.ledger-list__title { font-weight: 600; }
.ledger-list__meta { color: var(--slate); font-size: .95rem; }
.on-dark .ledger-list, .on-dark .ledger-list li { border-color: var(--ink-line); }

.tick-list { columns: 1; column-gap: var(--s5); }
@media (min-width: 40rem) { .tick-list--2 { columns: 2; } }
.tick-list li {
  break-inside: avoid; padding: .7rem 0 .7rem 1.6rem; border-bottom: 1px solid var(--stone);
  position: relative;
}
/* Dash sits in the line of text, centred on the lowercase letters; wrapped lines stay indented */
.tick-list li::before {
  content: ""; display: inline-block; vertical-align: middle; width: .7rem; height: 1px;
  margin: 0 .9rem 0 -1.6rem; background: var(--bronze);
}

/* Quote */
.quote { margin: 0; max-width: 52rem; }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.8vw, 2.25rem); line-height: 1.3; letter-spacing: -0.01em;
  text-wrap: pretty;
}
.quote blockquote p::before { content: "“"; color: var(--blue); margin-left: -.45em; }
.quote blockquote p::after { content: "”"; color: var(--blue); }
.quote figcaption { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: var(--s3); align-items: baseline; }
.quote__name { font-weight: 600; }
.quote__context { color: var(--slate); font-size: .95rem; }
.quote__note { margin-top: var(--s2); font-size: .85rem; }

/* Further reviews beneath the main quote */
ul.reviews { display: grid; gap: var(--s4) var(--s5); margin-top: var(--s5); }
@media (min-width: 56rem) { ul.reviews { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); } }
.review { border-top: 1px solid var(--stone); padding-top: var(--s3); }
.review figure { margin: 0; }
.review blockquote { margin: 0; }
.review blockquote p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.45; text-wrap: pretty; }
.review blockquote p::before { content: "“"; color: var(--blue); }
.review blockquote p::after { content: "”"; color: var(--blue); }
.review figcaption { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: baseline; margin-top: var(--s2); }
.reviews__links { margin-top: var(--s4); }

/* FAQ */
.faq { border-top: 1px solid var(--stone); }
.faq details { border-bottom: 1px solid var(--stone); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center;
  padding: 1.35rem 0; font-family: var(--serif); font-size: clamp(1.2rem, 1.8vw, 1.4rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--sans); font-size: 1.4rem; color: var(--blue); flex: none;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--blue); }
.faq__body { padding: 0 0 1.5rem; max-width: 42em; color: var(--slate); }

/* 6. Header & footer ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ivory);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--stone); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); height: var(--header-h); }
/* The header runs edge to edge: logo in the top-left corner, actions in the top-right, on any screen width */
.site-header .site-header__inner { max-width: none; }
.brand { display: block; flex: none; }
.brand img { height: 2.6rem; width: auto; }
@media (min-width: 64rem) { .brand img { height: 3rem; } }

.nav { display: flex; align-items: center; gap: var(--s4); }
.nav__list { display: flex; gap: clamp(1.25rem, 2.4vw, 2.25rem); list-style: none; margin: 0; padding: 0; }
.nav__list a {
  color: var(--charcoal); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding-block: .4rem; background: linear-gradient(var(--blue), var(--blue)) 0 100% / 0 1px no-repeat;
  transition: background-size .3s var(--ease), color .2s;
}
.nav__list a:hover, .nav__list a[aria-current="page"] { color: var(--blue); background-size: 100% 1px; }
.nav__actions { display: flex; align-items: center; gap: var(--s3); }
/* A quiet phone number beside the enquiry button, desktop only (phones have the call bar) */
.nav__phone { color: var(--slate); text-decoration: none; font-weight: 500; font-size: .9rem; letter-spacing: .02em; white-space: nowrap; transition: color .2s var(--ease); }
.nav__phone:hover { color: var(--blue); }
.nav .btn { min-height: 2.75rem; padding: .6rem 1.2rem; }
.menu-toggle { display: none; }

@media (max-width: 63.99rem) {
  :root { --header-h: 4.5rem; }
  .menu-toggle {
    display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: 0 .25rem;
    background: none; border: 0; font: 600 .9rem var(--sans); color: var(--charcoal); cursor: pointer;
  }
  .menu-toggle__bars { position: relative; width: 1.4rem; height: .75rem; }
  .menu-toggle__bars::before, .menu-toggle__bars::after {
    content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
    transition: transform .3s var(--ease), top .3s var(--ease);
  }
  .menu-toggle__bars::before { top: 0; }
  .menu-toggle__bars::after { top: calc(100% - 1.5px); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: calc(50% - .75px); transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: calc(50% - .75px); transform: rotate(-45deg); }

  .nav {
    position: fixed; inset: var(--header-h) 0 0; z-index: 49;
    flex-direction: column; align-items: stretch; justify-content: space-between; gap: var(--s4);
    padding: var(--s4) var(--gutter) var(--s5); background: var(--ivory); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-.5rem);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 0; border-top: 1px solid var(--stone); }
  .nav__list li { border-bottom: 1px solid var(--stone); }
  .nav__list a { display: block; padding: 1.1rem 0; font-family: var(--serif); font-size: 1.75rem; font-weight: 400; background: none; }
  .nav__actions { flex-direction: column; align-items: stretch; gap: var(--s2); }
  .nav .btn { min-height: 3.25rem; }
  .nav__phone { display: none; }
  body.menu-open { overflow: hidden; }
}

/* Mobile quick-action bar */
.quickbar { display: none; }
@media (max-width: 47.99rem) {
  .quickbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--ivory); border-top: 1px solid var(--stone);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(100%); transition: transform .35s var(--ease);
  }
  .quickbar.is-visible { transform: none; }
  .quickbar a {
    display: flex; align-items: center; justify-content: center; min-height: 3.5rem;
    font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--blue);
  }
  .quickbar a + a { background: var(--blue); color: var(--ivory); }
  body { padding-bottom: 3.5rem; }
}

.site-footer { background: var(--ink-deep); color: #c9d3de; border-top: 1px solid var(--ink-line); padding-block: clamp(3.5rem, 7vw, 6.5rem) var(--s4); font-size: .95rem; }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--ivory); }
.site-footer__top { display: grid; gap: var(--s5); padding-bottom: var(--s5); border-bottom: 1px solid var(--ink-line); }
@media (min-width: 56rem) { .site-footer__top { grid-template-columns: 5fr 2fr 3fr 2fr; gap: var(--s4); } }
@media (max-width: 55.99rem) { .site-footer__areas { columns: 2; column-gap: var(--s3); } }
.site-footer__brand img { height: 3.4rem; width: auto; margin-bottom: var(--s3); }
.site-footer__brand p { max-width: 24rem; }
.site-footer h2 { font: 600 .72rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--bronze-light); margin-bottom: var(--s2); }
.site-footer li { margin-bottom: .15rem; }
.site-footer li a { display: inline-block; padding-block: .3rem; }
.site-footer__phone { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; color: var(--ivory); }
.site-footer .site-footer__email { font-family: var(--serif); font-size: 1.2rem; text-decoration: underline; text-decoration-color: rgba(249, 238, 220, .35); text-underline-offset: .25em; overflow-wrap: anywhere; }
.site-footer .site-footer__email:hover { text-decoration-color: currentColor; }
.site-footer__note { margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--ink-line); font-size: .85rem; color: #9fb0c2; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); padding-top: var(--s3); font-size: .8rem; color: #9fb0c2; }
.site-footer__legal p { margin: 0; max-width: 46rem; }
.site-footer .ph { color: #5a4300; }

/* 7. Sections ---------------------------------------------------------------- */

/* Hero */
.hero { padding-block: 0; }
/* The opening text fills the first screen; the photo starts just below the fold */
.hero__stage {
  display: grid; grid-template-rows: 1fr auto; gap: var(--s4);
  min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
  padding-block: clamp(2rem, 5vw, 4rem) var(--s3);
}
.hero__stage .hero__grid { align-self: center; }
.hero__stage + .hero__image { margin-top: 0; }
/* Phones: the text no longer fills the whole first screen, so the photo starts on it */
@media (max-width: 47.99rem) {
  .hero__stage { min-height: 0; padding-block: var(--s3) var(--s3); gap: var(--s3); }
  .hero__cue { display: none; }
}
.hero__cue {
  display: flex; flex-direction: column; align-items: center; gap: .6rem; justify-self: center;
  font: 600 .8125rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--slate);
}
.hero__cue { transition: opacity .8s var(--ease), visibility 0s linear .8s; }
.hero__cue.is-gone { opacity: 0; visibility: hidden; }
.hero__cue::after { content: ""; width: 1px; height: 2.25rem; background: var(--bronze); transform-origin: top; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero__grid { display: grid; gap: var(--s4); align-items: end; }
@media (min-width: 56rem) { .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s5); } }
.hero__aside .lede { margin-bottom: var(--s4); }
.hero__image { margin: var(--s5) 0 0; aspect-ratio: 1170 / 500; }
.page-hero + .container .hero__image { margin-top: 0; }
@media (max-width: 47.99rem) { .hero__image { aspect-ratio: 4 / 3; } }
.hero__art { color: var(--blue); max-width: 17rem; justify-self: center; width: 100%; margin: 0; }
@media (min-width: 56rem) { .hero__art { justify-self: end; max-width: 28rem; } }
.hero__art figcaption { margin-top: .75rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); text-align: right; }
.townhouse { width: 100%; }
.townhouse .f { stroke-width: .8; opacity: .75; }

/* Facts: a navy caption bar attached to the foot of the hero photo */
.facts {
  display: grid; margin: var(--s2) 0 0; background: var(--ink); color: var(--ivory);  /* a small gap below the photo */
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3.5vw, 2.75rem);
}
@media (min-width: 56rem) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts > div { display: grid; align-content: start; gap: .35rem; padding-block: var(--s2); }
.facts > div + div { border-top: 1px solid var(--ink-line); }
@media (min-width: 56rem) {
  .facts > div { padding: .25rem var(--s4); }
  .facts > div:first-child { padding-left: 0; }
  .facts > div + div { border-top: 0; border-left: 1px solid var(--ink-line); }
}
.facts dt { font-family: var(--serif); font-size: clamp(1.3rem, 1.8vw, 1.6rem); line-height: 1.15; color: var(--ivory); }
.facts dt::before { content: ""; display: block; width: 1.5rem; height: 1px; background: var(--bronze-light); margin-bottom: .8rem; }
.facts dd { margin: 0; font-size: .88rem; line-height: 1.5; color: #c9d3de; max-width: 22rem; }

/* Two service routes */
.routes { display: grid; border-top: 1px solid var(--stone); }
@media (min-width: 56rem) { .routes { grid-template-columns: 1fr 1fr; } }
.route { padding-block: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.route + .route { border-top: 1px solid var(--stone); }
@media (min-width: 56rem) {
  .route { padding-inline: 0 var(--s5); }
  .route + .route { border-top: 0; border-left: 1px solid var(--stone); padding-inline: var(--s5) 0; }
}
.route__for { font-size: .98rem; color: var(--slate); flex-grow: 1; }  /* keeps both photos level */
.route__image { margin: 0; aspect-ratio: 5 / 2; }
.route .tick-list { margin-bottom: var(--s2); }
.route .link-arrow { align-self: flex-start; }

/* Principles */
.principles { counter-reset: p; border-top: 1px solid var(--stone); }
.principle {
  display: grid; gap: .5rem var(--s4); padding-block: var(--s3); border-bottom: 1px solid var(--stone);
}
@media (min-width: 40rem) { .principle { grid-template-columns: 3rem 1fr; align-items: baseline; } .principle p { grid-column: 2; } }
@media (min-width: 80rem) { .principle { grid-template-columns: 3rem 4fr 6fr; } .principle p { grid-column: auto; } }
.principle__num { font-family: var(--serif); color: var(--blue); font-size: 1.1rem; }
.principle h3 { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; }
.principle p { margin: 0; color: var(--slate); }

/* Work */
.work-layout { display: grid; gap: var(--s3); }
@media (min-width: 56rem) { .work-layout { grid-template-columns: 7fr 5fr; grid-template-rows: auto auto; } .work-layout > :first-child { grid-row: span 2; } }
.work-note { margin-top: var(--s3); font-size: .9rem; color: var(--slate); max-width: 46rem; }
.work-grid { display: grid; gap: var(--s4); }
@media (min-width: 48rem) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-card { text-decoration: none; color: inherit; display: block; }
.work-card__media { aspect-ratio: 4/5; overflow: hidden; background: var(--limestone); margin-bottom: var(--s2); }
.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work-card:hover img { transform: scale(1.03); }
.work-card__title { font-family: var(--serif); font-size: 1.4rem; line-height: 1.2; }
.work-card .eyebrow { margin-bottom: .4rem; }
figure.work-card { margin: 0; }
.work-card__caption { font-size: .875rem; line-height: 1.45; color: var(--slate); }
.work-card--wide .work-card__media { aspect-ratio: 4/3; }
@media (min-width: 48rem) {
  .work-card--wide { grid-column: span 2; display: flex; flex-direction: column; }
  .work-card--wide .work-card__media { flex: 1; aspect-ratio: auto; position: relative; }
  .work-card--wide .work-card__media img { position: absolute; inset: 0; }
}
.section-link { margin-top: var(--s4); }

/* Home page project tiles: location and date appear on hover (always shown on touch screens) */
ul.showcase { display: grid; gap: var(--s3); }
@media (min-width: 48rem) { ul.showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.showcase__card { position: relative; display: block; overflow: hidden; color: var(--charcoal); text-decoration: none; }
.showcase__media { aspect-ratio: 4 / 5; background: var(--limestone); }
@media (max-width: 47.99rem) { .showcase__media { aspect-ratio: 4 / 3; } }
.showcase__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.showcase__media.frame--placeholder { place-items: center; }
/* A small cream caption card that rises into the corner of the photo */
.showcase__info {
  position: absolute; left: var(--s2); bottom: var(--s2); max-width: calc(100% - var(--s2) * 2);
  display: grid; gap: .35rem; padding: .95rem 1.25rem 1rem;
  background: var(--ivory); color: var(--charcoal); border-top: 1px solid var(--bronze);
  opacity: 0; transform: translateY(.6rem); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.showcase__place { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.showcase__date { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--slate); }
a.showcase__card:hover .showcase__info, a.showcase__card:focus-visible .showcase__info { opacity: 1; transform: none; }
a.showcase__card:hover img { transform: scale(1.03); }
.showcase__card:focus-visible { outline-offset: 4px; }
@media (hover: none) { .showcase__info { opacity: 1; transform: none; } }

/* Gallery of period properties */
.gallery { display: grid; gap: var(--s3); }
.gallery figure { margin: 0; }
@media (min-width: 56rem) {
  .gallery { grid-template-columns: 7fr 5fr; grid-template-rows: 1fr 1fr; }
  .gallery__main { grid-row: span 2; aspect-ratio: 1; }
}
.gallery__side { aspect-ratio: 16 / 7; }
@media (min-width: 56rem) { .gallery__side { aspect-ratio: auto; } }

.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.photo-pair figure { margin: 0; aspect-ratio: 1; }
.photo-pair figure:last-child { margin-top: var(--s5); }

/* Accreditation logos (transparent PNGs, centred under the text) */
.accreditations { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: var(--s4) var(--s4); margin-top: var(--s5); }
@media (max-width: 47.99rem) { .accreditations { justify-content: space-evenly; gap: var(--s4) var(--s2); } }
.accreditation { display: flex; flex-direction: column; align-items: center; gap: .6rem; width: 8.5rem; font-size: .82rem; line-height: 1.35; text-align: center; color: var(--slate); }
.accreditation__number { white-space: nowrap; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; color: var(--charcoal); margin-top: -.3rem; }
.accreditation img { width: 100%; height: 5.5rem; object-fit: contain; }

.tick-list--3 { columns: 1; }
@media (min-width: 40rem) { .tick-list--3 { columns: 2; } }
@media (min-width: 64rem) { .tick-list--3 { columns: 3; } }

/* Process */
.process { display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--stone); }
@media (min-width: 64rem) { .process { grid-template-columns: repeat(5, 1fr); border-top: 0; } .process--4 { grid-template-columns: repeat(4, 1fr); } .process--3 { grid-template-columns: repeat(3, 1fr); } }
.step { padding: var(--s3) 0; border-bottom: 1px solid var(--stone); }
@media (min-width: 64rem) {
  .step { border-bottom: 0; border-top: 1px solid var(--charcoal); padding: var(--s3) var(--s3) 0 0; }
  .step + .step { padding-left: 0; }
}
.step__num { font-family: var(--serif); font-size: 2.4rem; line-height: 1; color: var(--blue); display: block; margin-bottom: var(--s2); }
.step h3 { font-weight: 600; font-size: 1.05rem; margin-bottom: .5rem; }
.step p { font-size: .95rem; color: var(--slate); margin: 0; }
.on-dark .step { border-color: var(--ink-line); }
.on-dark .step p { color: #c9d3de; }

/* Areas */
ul.areas { display: flex; flex-wrap: wrap; gap: .4rem 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.3; margin-left: -1.1em; clip-path: inset(0 0 0 1.1em); }
.areas li::before { content: "·"; display: inline-block; width: 1.1em; text-align: center; color: var(--bronze); }

/* Closing enquiry */
.closing { position: relative; overflow: hidden; }
.closing__grid { display: grid; gap: var(--s4); align-items: end; }
@media (min-width: 56rem) { .closing__grid { grid-template-columns: 7fr 5fr; } }
.closing__contact { border-top: 1px solid var(--ink-line); }
.closing__contact a { color: var(--ivory); text-decoration: none; }
.closing__contact a:hover { text-decoration: underline; }
.closing__contact > div { padding-block: 1rem; border-bottom: 1px solid var(--ink-line); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.closing__contact dt { color: var(--bronze-light); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.closing__contact dd { margin: 0; font-family: var(--serif); font-size: 1.3rem; }
.closing .btn-row { margin-top: var(--s4); }
.closing .lede { margin-top: var(--s3); }

/* 8. Pages ------------------------------------------------------------------- */
/* Page titles get generous room above and below */
.page-hero { padding-block: clamp(4.5rem, 10vw, 9rem) clamp(3rem, 6vw, 5.5rem); }
.page-hero .eyebrow { margin-bottom: var(--s4); }
.page-hero .lede { margin-top: var(--s4); }
.page-hero .btn-row { margin-top: var(--s5); }
.page-hero--split { display: grid; gap: var(--s4); align-items: end; }
@media (min-width: 56rem) { .page-hero--split { grid-template-columns: 7fr 5fr; gap: var(--s5); } }

.callout { border-left: 2px solid var(--blue); padding: var(--s2) 0 var(--s2) var(--s3); }
.callout p:last-child { margin-bottom: 0; }
.emergency { background: var(--ink); color: var(--ivory); padding: clamp(1.5rem, 4vw, 2.5rem); }
.emergency.grid { gap: var(--s1) var(--s5); align-items: center; }
.emergency p { margin-bottom: 0; }
.emergency .h3 { margin-bottom: var(--s2); }
.emergency p { color: #c9d3de; }
.emergency__phone { display: inline-block; font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--ivory); text-decoration: none; margin-block: var(--s1) var(--s2); }
.emergency__phone:hover { color: var(--ivory); text-decoration: underline; }

.trade-groups { display: grid; gap: var(--s4) var(--s5); }
@media (min-width: 40rem) { .trade-groups { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .trade-groups { grid-template-columns: repeat(3, 1fr); } }
.trade-group__title { font-family: var(--serif); font-size: 1.35rem; padding-bottom: .75rem; border-bottom: 1px solid var(--charcoal); margin-bottom: .25rem; }
.trade-group li { padding: .6rem 0; border-bottom: 1px solid var(--stone); font-size: .98rem; }

/* Our team: portrait, name and role, centred in a 2 x 2 grid */
/* People in a row across the page: two to a row on phones, up to four on wider screens */
ul.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s3); }
@media (min-width: 56rem) { ul.team { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.team__member { text-align: center; }
.team__photo { aspect-ratio: 1; margin-bottom: var(--s2); }
@media (min-width: 56rem) { ul.team--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 28rem; margin-inline: auto; } }
.team--pair .team__photo { aspect-ratio: 3 / 4; }
.team__photo.frame--placeholder { place-items: center; padding: var(--s2); }
/* Real team photos are cut-outs, shown on the site navy */
.team__photo.frame:not(.frame--placeholder) { background: var(--ink); }
.team__photo .frame__label { font-size: .75rem; padding: .5rem .7rem; text-align: center; border-left: 0; border-top: 2px solid var(--bronze); }
.team__name { margin: 0; font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; }
.team__bio { margin: .6rem auto 0; max-width: 18rem; font-size: .9rem; line-height: 1.5; color: var(--slate); }
.team__role { margin: .2rem 0 0; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }

.split-copy { display: grid; gap: var(--s4); }
@media (min-width: 56rem) { .split-copy { grid-template-columns: 4fr 8fr; gap: var(--s5); } }

/* Contact & form */
.contact-layout { display: grid; gap: var(--s5); }
@media (min-width: 64rem) { .contact-layout { grid-template-columns: 7fr 4fr; gap: var(--s6); } }
.contact-aside { display: flex; flex-direction: column; gap: var(--s4); }
@media (min-width: 64rem) { .contact-aside { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; } }
.contact-aside .ledger-list li { flex-direction: column; }

/* The form: numbered sections, underline fields and small capital labels, in the site's editorial style */
.form { display: grid; gap: var(--s5); }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.form fieldset.form__section { padding-top: var(--s3); border-top: 1px solid var(--stone); }
.form__section > legend {
  float: left; width: 100%; padding: 0; margin-bottom: var(--s4);
  font-family: var(--serif); font-size: clamp(1.45rem, 2.2vw, 1.75rem); line-height: 1.2;
}
.form__section > :not(legend) { clear: both; }
.form__num { font-size: 1rem; color: var(--blue); margin-right: .6rem; vertical-align: .15em; }
.form__row { display: grid; gap: var(--s4) var(--s4); }
@media (min-width: 40rem) {
  .form__row--2 { grid-template-columns: 1fr 1fr; row-gap: .35rem; }
  /* Side-by-side fields share rows, so their boxes line up even when one hint runs to two lines */
  .form__row--2 > .field { display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; }
  .form__row--2 > .field > .field__hint { align-self: start; }
}
.field { display: flex; flex-direction: column; gap: .35rem; }
.field > label, .field > .field__label {
  padding: 0; margin: 0; font-family: var(--sans); font-size: .875rem; font-weight: 600; line-height: 1.4;
  letter-spacing: .1em; text-transform: uppercase; color: var(--charcoal);
}
.field__hint { font-size: .85rem; color: var(--slate); }
.field__optional { font-weight: 500; letter-spacing: .08em; color: var(--slate); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--charcoal);
  background-color: var(--field); border: 0; border-radius: 0; box-shadow: inset 0 -2px 0 var(--blue);
  padding: .85rem 1rem; min-height: 3.25rem;
  transition: background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover { background-color: var(--field-hover); }
.field select {
  appearance: none; cursor: pointer; padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239a7b4f' stroke-width='1.2'/%3E%3C/svg%3E"); background-position: right 1rem center; background-size: .75rem; background-repeat: no-repeat;
}
.field textarea { min-height: 8rem; resize: vertical; }
/* Focus and errors show as a bar along the foot of the panel */
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 0; background-color: #fffbf4; box-shadow: inset 0 -3px 0 var(--blue);
}
.field.has-error input, .field.has-error textarea, .field.has-error select { background-color: #f9e6e1; box-shadow: inset 0 -2px 0 var(--error); }
.field.has-error input:focus-visible, .field.has-error select:focus-visible, .field.has-error textarea:focus-visible { background-color: #fffbf4; box-shadow: inset 0 -3px 0 var(--blue); }
.field__error { color: var(--error); font-size: .88rem; font-weight: 600; }
.field__error:empty { display: none; }

/* Refurbishment / maintenance: two quiet cards */
.choice-group { display: grid; gap: var(--s2); }
@media (min-width: 40rem) { .choice-group--2 { grid-template-columns: 1fr 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__box {
  display: flex; flex-direction: column; gap: .35rem; height: 100%;
  padding: 1.35rem 1.5rem 1.4rem 3.3rem; background: var(--field); position: relative; border-radius: var(--radius-card);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.choice:hover .choice__box { background: var(--field-hover); }
.choice__box::before {
  content: ""; position: absolute; left: 1.4rem; top: 1.65rem; width: 1rem; height: 1rem;
  border: 1px solid var(--slate); border-radius: 50%; transition: border .2s var(--ease), border-color .2s var(--ease);
}
.choice input:checked + .choice__box { background: var(--ink); color: var(--ivory); }  /* chosen: navy, like the scope tags */
.choice input:checked + .choice__box .choice__desc { color: #c9d3de; }
.choice input:checked + .choice__box::before { border: 4.5px solid var(--bronze-light); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--blue); outline-offset: 3px; }
.choice__title { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.choice__desc { font-size: .88rem; color: var(--slate); }

/* Scope: tags that fill navy when chosen */
.choice-group--chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .4rem; }
.choice-group--chips .choice__box {
  padding: .6rem 1.15rem; font-size: .92rem; background: var(--field); border-radius: var(--radius-btn);
}
.choice-group--chips .choice__box::before { content: none; }
.choice-group--chips .choice input:checked + .choice__box { background: var(--ink); color: var(--ivory); }
.choice-group--chips .choice input:checked + .choice__box::after { content: " ✓"; }
.choice-group--chips .choice__box { flex-direction: row; }
.form [hidden], .form[hidden] { display: none !important; }

.consent-wrap { padding-top: var(--s1); }
.consent { display: flex; gap: .9rem; align-items: flex-start; font-size: .95rem; color: var(--slate); cursor: pointer; }
.consent input { width: 1.5rem; height: 1.5rem; margin-top: 0; accent-color: var(--ink); flex: none; cursor: pointer; }

.error-summary { border: 2px solid var(--error); padding: var(--s3); background: #fff6f4; }
.error-summary h2 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: .5rem; color: var(--error); }
.error-summary ul { margin: 0; padding-left: 1.1rem; }
.error-summary a { color: var(--error); font-weight: 600; }

.form-status { padding: var(--s3); border-left: 3px solid var(--blue); background: #eef3f8; }
.form-status--warning { border-color: #8a6a00; background: var(--ph); color: #3d2e00; }
.form-status--error { border-color: var(--error); background: #fff6f4; }
.form-status h2 { font-family: var(--serif); font-size: 1.35rem; margin-bottom: .4rem; }
.form-status--success { padding: clamp(1.75rem, 5vw, 3rem); border-left-width: 3px; }
.form-status--success h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; margin-bottom: var(--s2); text-wrap: balance; }
.form-status--success .btn-row { margin-top: var(--s4); }
.form-status__mark {
  display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: var(--s3);
  border-radius: 50%; background: var(--blue); color: var(--ivory); font-size: 1.4rem; line-height: 1;
}
.form-status__again { background: none; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; padding-inline: 0; }
.form-status p:last-child { margin-bottom: 0; }
.form-status, .error-summary { margin-bottom: var(--s4); }
.contact-aside .emergency__phone { font-size: clamp(1.6rem, 2.4vw, 2rem); white-space: nowrap; }
.form__submit { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.form__send { min-height: 3.5rem; padding-inline: 2.2rem; gap: .8rem; letter-spacing: .04em; }
.form__send span { transition: transform .25s var(--ease); }
.form__send:hover span { transform: translateX(4px); }
.form__submit p { margin: 0; font-size: .88rem; color: var(--slate); }

/* Case study */
.case { display: grid; gap: var(--s5); padding-bottom: var(--s5); }
@media (min-width: 56rem) { .case { grid-template-columns: 4fr 8fr; } }
.case__facts { margin: 0; border-top: 1px solid var(--charcoal); }
.case__facts > div { padding: .9rem 0; border-bottom: 1px solid var(--stone); }
.case__facts dt { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); font-weight: 600; }
.case__facts dd { margin: .2rem 0 0; }
.case-gallery { display: grid; gap: var(--s3); padding-bottom: var(--s5); }
@media (min-width: 48rem) { .case-gallery { grid-template-columns: 1fr 1fr; } .case-figure--wide { grid-column: 1 / -1; } }
.case-figure { margin: 0; }
.case-figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.case-figure--wide img { aspect-ratio: 16 / 9; }

/* Legal / 404 */
.legal h2 { font-family: var(--serif); font-size: 1.6rem; margin: var(--s4) 0 var(--s2); }

/* 9. Motion -------------------------------------------------------------- */

/* Brand intro: about 1.5s, the first time someone opens the site. Timed in CSS, so it ends even if scripts fail. */
.intro {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center;
  background: var(--ivory); padding: var(--gutter); cursor: pointer;
  animation: intro-out .45s var(--ease) 1.15s forwards;
}
.intro-done .intro { display: none; }
.intro__inner { display: grid; justify-items: center; gap: var(--s3); text-align: center; }
.intro__logo { width: min(17rem, 62vw); height: auto; animation: intro-rise .7s var(--ease) .05s both; }
.intro__rule { display: block; width: min(12rem, 45vw); height: 1px; background: var(--bronze); transform-origin: center; animation: intro-draw .7s var(--ease) .25s both; }
.intro__tag { margin: 0; font: 600 .8rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--slate); text-wrap: balance; max-width: 22rem; animation: intro-rise .6s var(--ease) .4s both; }
@keyframes intro-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes intro-draw { from { transform: scaleX(0); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* Scroll reveals (classes added by main.js) */
.reveal-prep .reveal, .reveal-prep .reveal-img > img { transition: none !important; }
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 1s var(--ease) var(--reveal-delay, 0s), transform 1.1s var(--ease) var(--reveal-delay, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }
/* Photos: six ways to appear as you scroll, chosen with "photoTransition" in site.json */
.js .reveal-img { position: relative; overflow: hidden; background: transparent; }  /* the page shows behind a photo as it appears, not a coloured box */
.js .reveal-img > img { --tx-ease: cubic-bezier(.33, 0, .2, 1); }
/* focus: soft-focus pull, coming into focus as it settles */
.js .reveal-img[data-tx="focus"] > img { opacity: 0; filter: blur(18px); transform: scale(1.1); transition: opacity 1.6s var(--tx-ease), filter 2.1s var(--tx-ease), transform 2.6s var(--tx-ease); }
/* fade: a plain, unhurried fade */
.js .reveal-img[data-tx="fade"] > img { opacity: 0; transition: opacity 1.8s var(--tx-ease); }
/* rise: drifts up into place as it fades in */
.js .reveal-img[data-tx="rise"] > img { opacity: 0; transform: translateY(9%) scale(1.06); transition: opacity 1.5s var(--tx-ease), transform 2.2s var(--tx-ease); }
/* lift: the lightest touch, fading in as it moves up a few pixels; no zoom or blur */
.js .reveal-img[data-tx="lift"] > img { opacity: 0; transform: translateY(14px); transition: opacity 1.2s var(--tx-ease), transform 1.4s var(--tx-ease); }
/* wipe: revealed left to right, like a page turning */
.js .reveal-img[data-tx="wipe"] > img { clip-path: inset(0 100% 0 0); transform: scale(1.08); transition: clip-path 1.6s cubic-bezier(.65, 0, .35, 1), transform 2.4s var(--tx-ease); }
/* zoom: a slow pull back from close up, as a camera would */
.js .reveal-img[data-tx="zoom"] > img { opacity: 0; transform: scale(1.3); transition: opacity 1.1s var(--tx-ease), transform 3s var(--tx-ease); }
/* curtain: rises from the bottom edge as it settles */
.js .reveal-img[data-tx="curtain"] > img { clip-path: inset(100% 0 0 0); transform: scale(1.15); transition: clip-path 1.5s cubic-bezier(.65, 0, .35, 1), transform 2.4s var(--tx-ease); }
.js .reveal-img.is-in > img { opacity: 1; filter: none; transform: none; clip-path: inset(0); }
/* Project tiles and cards keep their gentle zoom on hover once the photo has appeared */
.js .showcase__card .reveal-img.is-in > img, .js .work-card .reveal-img.is-in > img { transition: opacity 1.6s var(--tx-ease), filter 2.1s var(--tx-ease), clip-path 1.6s var(--tx-ease), transform .8s var(--ease); }
.js a.showcase__card:hover .reveal-img.is-in > img, .js .work-card:hover .reveal-img.is-in > img { transform: scale(1.03); }
.js .hero__art { animation: fade-in 1.2s var(--ease) both; }
@keyframes fade-in { from { opacity: 0; transform: translateY(12px); } }

/* Page-to-page: the content cross-fades while the header stays put (browsers without support just change page) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: page-out .3s var(--ease) both; }
::view-transition-new(root) { animation: page-in .55s var(--ease) both; }
@keyframes page-out { to { opacity: 0; } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; }
  .js .reveal, .js .reveal-img, .js .reveal-img > img { opacity: 1; transform: none; clip-path: none; filter: none; }
  .js .hero__art { animation: none; }
  .hero__cue::after { animation: none; }
}

/* 10. Print ---------------------------------------------------------------- */
@media print {
  .site-header, .quickbar, .nav, .closing .btn-row, .site-footer { display: none !important; }
  body { background: #fff; padding: 0; }
  .section--ink, .site-footer { background: #fff; color: #000; }
  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
}
