:root {
  --bg: #ffffff;
  --surface: #f4f4f2;
  --ink: #1f2b4d;
  --muted: #5b6380;
  --accent: #f7941d;
  --accent-ink: #1f2b4d;
  --field-1: #1f2b4d;
  --field-1-ink: #ffffff;
  --field-2: #e3e1dc;
  --rule: #d6d8e0;

  --m: 5vw;
  --gap: 16px;

  --s-small: 0.875rem;
  --s-body: 1.0625rem;
  --s-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --s-head: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  --s-hero: clamp(2.6rem, 1.2rem + 3.4vw, 4.5rem);

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

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Literata", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-size: var(--s-body);
  line-height: 1.6;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; margin: 0; hyphens: auto; }
h1 { font-size: var(--s-hero); }
h2 { font-size: var(--s-head); }
h3 { font-size: var(--s-lead); letter-spacing: 0; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 40ch; }
.lead { font-size: var(--s-lead); line-height: 1.4; max-width: 34ch; }
.small, .cap, .note, .credits, .legal { font-size: var(--s-small); color: var(--muted); }
.cap { margin-top: 8px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--bg); padding: 8px; z-index: 9; }

/* buttons: one shape, one radius (square), one accent */
.btn, .btn-small, .btn-sq, button[type="submit"] {
  display: inline-block;
  font: inherit;
  font-size: var(--s-body);
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 0;
  padding: 14px 22px;
  min-height: 44px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.btn-small { font-size: var(--s-small); padding: 10px 16px; min-height: 40px; }
.btn:hover, .btn-small:hover, .btn-sq:hover, button[type="submit"]:hover { transform: translateY(-2px); background: #ffa93d; }
.btn:active, .btn-sq:active, button[type="submit"]:active { transform: translateY(1px) scale(.99); }
.btn-sq { width: 48px; height: 48px; padding: 0; min-height: 48px; text-align: center; background: var(--ink); color: var(--bg); }
.btn-sq:hover { background: #33416a; }

/* header */
.top {
  position: sticky; top: 0; z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--gap);
  padding: 16px var(--m);
  background: var(--bg);
}
.mark { display: flex; flex-direction: column; font-size: 1.125rem; font-weight: 500; color: var(--ink); text-decoration: none; justify-self: start; }
.mark span { font-size: var(--s-small); font-weight: 400; color: var(--muted); }
.links { display: flex; gap: 28px; font-size: var(--s-small); }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; }
.top .btn-small { justify-self: end; }

/* hero: one finished bathroom, large, beside the headline */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; min-height: calc(100svh - 84px); padding: 16px 0 96px var(--m); overflow: hidden; }
.hero-text { grid-column: 1 / 6; padding-right: 16px; }
.hero-text h1 { margin-bottom: 24px; hyphens: manual; }
.hero-text .lead { margin: 0 0 16px; font-size: var(--s-body); max-width: 34ch; }
.price-line { margin: 0 0 32px; font-size: var(--s-body); max-width: 34ch; }
.hero-text .btn { justify-self: start; }
.hero-photo { grid-column: 6 / 13; margin: 0; margin-right: calc(var(--m) * -1); aspect-ratio: 4 / 3; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; animation: drift 14s ease-in-out infinite alternate; }

/* projects: prints of uneven size */
.work { padding: 96px var(--m) 120px; }
.work h2 { margin-bottom: 16px; }
.work .note { max-width: 60ch; margin-bottom: 56px; }
.plist {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 22vh;
}
.item { margin: 0; }
.item img { width: 100%; height: auto; object-fit: cover; }
.item p { margin-top: 12px; font-size: var(--s-body); max-width: 36ch; }
.item strong { font-weight: 500; }
.i-a { grid-column: 1 / 7; }
.i-a img { aspect-ratio: 3 / 2; }
.i-b { grid-column: 9 / 13; margin-top: 12vh; }
.i-b img { aspect-ratio: 4 / 5; }
.i-c { grid-column: 2 / 7; }
.i-c img { aspect-ratio: 4 / 5; }
.i-d { grid-column: 6 / 13; margin-top: 8vh; }
.i-d img { aspect-ratio: 3 / 2; }
.i-e { grid-column: 2 / 6; margin-top: 6vh; }
.i-e img { aspect-ratio: 4 / 3; }
.i-f { grid-column: 9 / 13; margin-top: -4vh; }
.i-f img { aspect-ratio: 4 / 5; }

/* about: a statement and a flat colour tile */
.about { padding: 120px var(--m) 160px; background: var(--surface); }
.about-lead { max-width: 60ch; margin-bottom: 72px; }
.about-lead h2 { margin-bottom: 24px; }
.about-tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 16px; }
.tile-text { grid-column: 1 / 7; align-self: start; }
.tile-text p { font-size: var(--s-lead); line-height: 1.4; max-width: 34ch; }
.tile-facts {
  grid-column: 8 / 13;
  margin: 0;
  padding: 32px;
  background: var(--field-1);
  color: var(--field-1-ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
}
.tile-facts div { display: flex; flex-direction: column; gap: 4px; }
.tile-facts dt { font-size: var(--s-small); opacity: .8; }
.tile-facts dd { margin: 0; font-size: var(--s-body); }

/* process: a row of moments */
.process { padding: 160px 0 160px; overflow: hidden; }
.process-head { padding: 0 var(--m); margin-bottom: 64px; }
.process-head h2 { max-width: 18ch; }
.step { flex: 0 0 280px; scroll-snap-align: start; margin: 0; }
.step:nth-child(odd) { margin-top: 40px; }
.step:nth-child(even) { margin-top: 0; }
.step figure { margin: 0 0 24px; }
.step img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.step h3 { margin-bottom: 12px; font-weight: 600; font-size: var(--s-body); }
.step p { font-size: var(--s-body); color: var(--ink); }

.track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; overflow: visible; list-style: none; margin: 0; padding: 0; }
.step { flex: none; }
@media (max-width: 900px) {
  .track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(odd) { margin-top: 0; }
  .step:nth-child(even) { margin-top: 64px; }
}
@media (max-width: 600px) {
  .track { grid-template-columns: 1fr; }
  .step:nth-child(even) { margin-top: 0; }
  .step:nth-child(odd) { margin-left: 18%; }
}

/* prices: a menu, and a plain table */
.prices { padding: 80px var(--m) 160px; }
.prices > h2 { margin-bottom: 64px; }
.menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 64px; row-gap: 48px; margin-bottom: 96px; }
.group { margin: 0; }
.group h3 { margin-bottom: 4px; }
.price { font-size: var(--s-body); font-variant-numeric: tabular-nums; margin: 0 0 8px; font-weight: 600; }
.menu-note { grid-column: 1 / -1; color: var(--muted); font-size: var(--s-small); margin: 0; }
.estimate { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 16px; align-items: end; margin-bottom: 40px; background: var(--surface); padding: 32px; }
.estimate h3 { grid-column: 1 / -1; }
.estimate fieldset { grid-column: 1 / 8; border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.estimate legend { font-size: var(--s-small); color: var(--muted); padding: 0 0 8px; }
.estimate label { font-size: var(--s-body); }
.estimate input[type="radio"] { accent-color: var(--ink); width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: var(--s-small); color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: var(--s-body); color: var(--ink);
  background: var(--bg); border: 1px solid var(--ink); border-radius: 0;
  padding: 12px; min-height: 44px; width: 100%;
}
.estimate .field { grid-column: 8 / 11; }
.estimate .result { grid-column: 1 / -1; font-size: var(--s-lead); line-height: 1.35; margin: 8px 0 0; max-width: none; color: var(--ink); }
.rates { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: var(--s-body); }
.rates caption { text-align: left; color: var(--muted); font-size: var(--s-small); padding-bottom: 12px; caption-side: top; }
.rates th, .rates td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--rule); font-weight: 400; vertical-align: top; }
.rates thead th { font-size: var(--s-small); color: var(--muted); }
.rates tbody th { font-weight: 500; }
.rates tr.is-on td, .rates tr.is-on th { background: var(--surface); }

/* faq: split on a flat field */
.faq { background: var(--field-2); padding: 160px var(--m); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.faq-left { grid-column: 1 / 8; }
.faq-left h2 { margin-bottom: 48px; }
.faq-right { grid-column: 9 / 13; align-self: start; padding-top: 12px; }
.faq-right p { max-width: 26ch; }
.faq-right .lead + .lead { margin-top: 24px; }
.accordion details { padding: 20px 0; }
.accordion details + details { border-top: 0; }
.accordion summary {
  position: relative;
  cursor: pointer;
  font-size: var(--s-lead);
  line-height: 1.3;
  padding-right: 40px;
  list-style: none;
  min-height: 44px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before, .accordion summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 2px; background: var(--ink); transition: transform .3s var(--ease);
}
.accordion summary::after { transform: rotate(90deg); }
.accordion details[open] summary::after { transform: rotate(0deg); }
.accordion details p { margin: 12px 0 0; font-size: var(--s-body); color: var(--ink); max-width: 52ch; }

/* contact: statement, form, direct links */
.contact { padding: 160px var(--m) 120px; }
.statement { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.25; max-width: 30ch; margin: 0 0 64px; }
.contact-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 48px; }
.cform { grid-column: 1 / 7; display: flex; flex-direction: column; gap: 16px; margin: 0; max-width: 520px; }
.cform h3 { margin-bottom: 4px; }
.cform button[type="submit"] { align-self: flex-start; }
.direct { grid-column: 9 / 13; align-self: start; }
.direct p { margin-bottom: 16px; }
.direct a { font-size: var(--s-lead); }

/* footer: photograph, then a plain info block */
.foot-photo { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: var(--ink); }
.foot-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: brightness(0.62); }
.foot-over { position: absolute; inset: 0; color: var(--field-1-ink); display: flex; flex-direction: column; justify-content: space-between; padding: 32px var(--m) 56px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: var(--s-body); }
.foot-links a { color: var(--field-1-ink); text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.foot-word { margin: 0; font-size: clamp(3.2rem, 14vw, 13rem); line-height: .9; letter-spacing: -0.03em; white-space: nowrap; font-weight: 400; }
.foot-info { background: var(--field-2); padding: 64px var(--m) 72px; color: var(--ink); }
.foot-info > p { max-width: 60ch; }
.foot-info .legal a { color: var(--ink); }
.legal-block { margin: 40px 0 0; max-width: 60ch; padding-top: 8px; }
.legal-block h2 { font-size: var(--s-lead); margin-bottom: 8px; font-weight: 600; }
.sources { margin-top: 40px; max-width: 60ch; }
.sources h2 { font-size: var(--s-lead); font-weight: 600; margin-bottom: 8px; }
.credits { color: var(--ink); font-size: var(--s-small); max-width: 60ch; }

/* motion: entrances, a shutter on the hero print, one slow drift */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .07s; }
.reveal:nth-child(3) { transition-delay: .14s; }
.reveal-shutter { animation: shutter 1.1s var(--ease) both; }
@keyframes shutter {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
@keyframes drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}
.step.reveal { transition-delay: 0s; }

@media (max-width: 900px) {
  .top { grid-template-columns: 1fr auto; }
  .links { display: none; }
  .hero { grid-template-columns: 1fr; padding-bottom: 72px; }
  .hero-text { grid-column: 1 / -1; padding-right: 0; }
  .hero-text h1 { font-size: clamp(2.6rem, 1rem + 7vw, 4.5rem); }
  .hero-photo { grid-column: 1 / -1; margin-top: 40px; aspect-ratio: 4 / 3; }
  .menu { grid-template-columns: 1fr; }
  .estimate fieldset, .estimate .field { grid-column: 1 / -1; }
  .faq-left, .faq-right { grid-column: 1 / -1; }
  .faq-right { margin-top: 64px; }
  .cform, .direct { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  :root { --m: 6vw; }
  .plist { row-gap: 72px; }
  .i-a, .i-b, .i-c, .i-d, .i-e, .i-f { grid-column: 1 / -1; margin-top: 0; }
  .i-b, .i-d, .i-f { margin-left: 28%; }
  .i-e, .i-c { margin-right: 18%; }
  .about-lead h2 { font-size: 2rem; }
  .tile-text, .tile-facts { grid-column: 1 / -1; }
  .tile-facts { margin-top: 24px; }
  .statement { font-size: 1.5rem; }
  .foot-over { padding-bottom: 40px; }
  .foot-word { font-size: 3.4rem; }
  .rates { font-size: var(--s-small); }
  .rates th, .rates td { padding: 10px 6px; }
  .rates tbody th { font-size: var(--s-small); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-shutter { clip-path: none; }
}
