/* Kuda Bathrooms. Colours are Kuda's own: navy #00162B and cream #EEE5D0 from their site and logo, tan #BCA780 from their site. */
:root {
  --navy: #00162B;
  --navy-2: #052341;
  --navy-3: #0b2f52;
  --cream: #EEE5D0;
  --paper: #FAF8F2;
  --sand: #BCA780;
  --sand-ink: #6d5a35;
  --ink: #00162B;
  --muted: #47525e;
  --on-navy: rgba(238, 229, 208, .78);
  --rule-navy: rgba(238, 229, 208, .18);
  --rule-paper: rgba(0, 22, 43, .14);
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gut: clamp(1.25rem, 5vw, 4rem);
  --max: 78rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --bar: 0px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--sans); padding-bottom: var(--bar); overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sand); outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--cream); color: var(--navy); padding: .6rem 1rem; border-radius: 2px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 1rem; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* type: tiny labels against enormous headings */
.label { font: 600 .6875rem/1.35 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.label--sand { color: var(--sand); }
.paper .label--sand, .label--ink { color: var(--sand-ink); }
.poster { font-family: var(--display); font-size: clamp(3.1rem, 13.5vw, 9.5rem); line-height: .9; letter-spacing: -.02em; }
.poster--m { font-size: clamp(2.5rem, 10vw, 6.5rem); line-height: .95; }
.poster--s { font-size: clamp(2rem, 7vw, 4.25rem); line-height: 1; }
.poster em { font-style: italic; color: var(--sand); }
.paper .poster em { color: var(--sand-ink); }
.lede { font-size: clamp(1.02rem, 2.6vw, 1.2rem); max-width: 34rem; }
.navy .lede, .navy p { color: var(--on-navy); }
.paper p { color: var(--muted); }
.paper .poster, .paper h2, .paper h3 { color: var(--ink); }

/* sections */
.navy { background: var(--navy); color: var(--cream); }
.paper { background: var(--paper); color: var(--ink); }
.cream { background: var(--cream); color: var(--ink); }
.wrap { width: min(100% - 2 * var(--gut), var(--max)); margin-inline: auto; }
.sec { padding-block: clamp(3.5rem, 11vw, 8rem); position: relative; overflow-x: clip; }
.sec--tight { padding-block: clamp(3rem, 8vw, 5rem); }
.sec__head { display: grid; gap: 1rem; margin-bottom: clamp(1.75rem, 5vw, 3rem); }
.sec__head .label + .poster { margin-top: .25rem; }
.kmark { position: absolute; pointer-events: none; opacity: .07; width: min(70vw, 34rem); right: -8vw; top: 50%; transform: translateY(-50%); }

/* blueprint sheet frame: the dimension-line motif */
.dim { display: flex; align-items: center; gap: .6rem; color: var(--sand); font: 600 .6875rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.dim::before, .dim::after { content: ""; flex: 1; height: 9px; border-block: 0; background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat; }
.dim::before { border-left: 1px solid currentColor; }
.dim::after { border-right: 1px solid currentColor; }
.paper .dim { color: var(--sand-ink); }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.1rem; padding: .8rem 1.35rem; border-radius: 2px; border: 1px solid transparent; text-decoration: none; font-weight: 600; font-size: .95rem; letter-spacing: .02em; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.btn svg { width: 1.1rem; height: 1.1rem; flex: none; }
.btn--cream { background: var(--cream); color: var(--navy); }
.btn--cream:hover { background: #fff; }
.btn--line { border-color: rgba(238, 229, 208, .55); color: var(--cream); background: transparent; }
.btn--line:hover { border-color: var(--cream); background: rgba(238, 229, 208, .08); }
.btn--navy { background: var(--navy); color: var(--cream); }
.btn--navy:hover { background: var(--navy-3); }
.btn--ghost { border-color: var(--rule-paper); color: var(--navy); background: transparent; }
.btn--ghost:hover { border-color: var(--navy); }
.textlink { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .15rem; }
.textlink svg { width: 1.1rem; height: 1.1rem; flex: none; }
.textlink:hover { color: var(--sand); }
.paper .textlink:hover { color: var(--sand-ink); }

/* header: reacts to scroll (solid and compact once the page moves) */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; color: var(--cream); transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s; padding-block: 1rem; }
.hdr__in { display: flex; align-items: center; gap: 1rem; }
.hdr__logo { display: block; width: 7.2rem; flex: none; transition: width .35s var(--ease); }
.hdr__logo img { width: 100%; height: auto; }
.hdr nav { margin-left: auto; }
.hdr__links { display: none; list-style: none; margin: 0; padding: 0; gap: 1.6rem; }
.hdr__links a { text-decoration: none; font-size: .9rem; opacity: .9; }
.hdr__links a:hover, .hdr__links a[aria-current="page"] { opacity: 1; box-shadow: 0 1px 0 currentColor; }
.hdr__call { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 600; font-size: .9rem; border: 1px solid rgba(238, 229, 208, .5); padding: .55rem .85rem; border-radius: 2px; white-space: nowrap; }
.hdr__call svg { width: 1rem; height: 1rem; }
.hdr__menu { display: inline-flex; align-items: center; justify-content: center; width: 2.9rem; height: 2.9rem; background: none; border: 1px solid rgba(238, 229, 208, .5); border-radius: 2px; cursor: pointer; }
.hdr__menu svg { width: 1.2rem; }
.hdr.is-solid { background: rgba(0, 22, 43, .96); padding-block: .55rem; box-shadow: 0 1px 0 var(--rule-navy); }
.hdr.is-solid .hdr__logo { width: 5.8rem; }
@supports (backdrop-filter: blur(8px)) { .hdr.is-solid { background: rgba(0, 22, 43, .86); backdrop-filter: blur(10px); } }
.hdr--solid { background: var(--navy); }
@media (min-width: 64rem) {
  .hdr__links { display: flex; }
  .hdr__menu { display: none; }
  .hdr__logo { width: 8.5rem; }
}
@media (max-width: 47.99rem) {
  .hdr__call { width: 2.9rem; height: 2.9rem; padding: 0; justify-content: center; }
  .hdr__call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hdr__in { gap: .6rem; }
  .hdr nav { margin-left: auto; }
}

/* menu panel (phones) */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--navy); color: var(--cream); padding: 5.5rem var(--gut) 2rem; display: grid; align-content: start; gap: 2rem; transform: translateY(-100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; overflow-y: auto; }
.menu.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.menu a { text-decoration: none; }
.menu__big a { font-family: var(--display); font-size: clamp(2rem, 9vw, 3rem); line-height: 1.15; }
.menu__small { display: flex !important; flex-wrap: wrap; gap: .6rem 1.4rem !important; }
.menu__close { position: absolute; top: 1rem; right: var(--gut); width: 2.9rem; height: 2.9rem; background: none; border: 1px solid rgba(238, 229, 208, .5); color: var(--cream); border-radius: 2px; cursor: pointer; font-size: 1.4rem; }

/* phone bar (phones): the number never leaves the screen */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1.35fr 1fr; gap: 1px; background: var(--rule-navy); transform: translateY(0); transition: transform .35s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
.callbar a, .callbar button { display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3.6rem; background: var(--navy); color: var(--cream); text-decoration: none; font-weight: 600; border: 0; font-size: .98rem; cursor: pointer; transition: min-height .3s var(--ease); }
.callbar a { background: var(--cream); color: var(--navy); }
.callbar svg { width: 1.1rem; height: 1.1rem; }
.callbar.is-compact a, .callbar.is-compact button { min-height: 3rem; }
:root { --bar: 3.6rem; }
@media (min-width: 64rem) { .callbar { display: none; } :root { --bar: 0px; } }

/* hero: the finished room behind a steamed-up shower screen */
.hero { position: relative; min-height: max(36rem, 100svh); display: grid; align-items: end; color: var(--cream); background: var(--navy); overflow: hidden; isolation: isolate; }
.hero__glass { position: absolute; inset: 0 0 auto 0; height: 66%; }
.hero__img, .hero__img img, .hero__glass canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img img { object-fit: cover; object-position: 50% 60%; }
.hero__glass canvas { z-index: 1; touch-action: pan-y; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to top, var(--navy) 0%, var(--navy) 36%, rgba(0, 22, 43, .55) 48%, rgba(0, 22, 43, 0) 60%), linear-gradient(to bottom, rgba(0, 22, 43, .55), rgba(0, 22, 43, 0) 18%); }
.hero__body { position: relative; z-index: 3; padding-block: 7rem 1.6rem; display: grid; gap: .9rem; pointer-events: none; }
.hero .btns .btn { flex: 1 1 auto; }
@media (min-width: 48rem) {
  .hero__glass { height: 100%; }
  .hero__img img { object-position: 40% 50%; }
  .hero::after { background: linear-gradient(to right, rgba(0, 22, 43, .94) 0%, rgba(0, 22, 43, .8) 30%, rgba(0, 22, 43, .25) 52%, rgba(0, 22, 43, 0) 66%), linear-gradient(to top, rgba(0, 22, 43, .7), rgba(0, 22, 43, 0) 30%), linear-gradient(to bottom, rgba(0, 22, 43, .55), rgba(0, 22, 43, 0) 18%); }
  .hero__body { padding-bottom: 3rem; }
  .hero .poster { max-width: none; font-size: clamp(4rem, 8.4vw, 8.6rem); }
  .hero .poster em { display: block; }
}
.hero__body a, .hero__body button { pointer-events: auto; }
.hero h1 { color: var(--cream); max-width: 30rem; }
.hero .poster { max-width: 11ch; }
.hero .lede { color: rgba(238, 229, 208, .86); max-width: 30rem; margin: 0; }
.hero__corner { position: absolute; z-index: 3; top: 5.4rem; right: var(--gut); text-align: right; color: rgba(238, 229, 208, .8); display: grid; gap: .3rem; }
.hero__hint { display: none; align-items: center; gap: .5rem; color: rgba(238, 229, 208, .8); }
.hero__hint svg { width: 1.2rem; }
.js-steam .hero__hint { display: inline-flex; }
@media (min-width: 64rem) {
  .hero__body { padding-bottom: 4rem; max-width: 46rem; margin-left: max(var(--gut), (100% - var(--max)) / 2); }
  .hero__side { display: grid; gap: 1.2rem; justify-items: start; margin-top: .6rem; }
  .hero .btns .btn { flex: 0 0 auto; }
}

/* page hero (inner pages): a job's picture grows into the top of its own page */
.phero { position: relative; color: var(--cream); background: var(--navy); padding-top: 6.5rem; overflow: hidden; }
.phero__grid { display: grid; gap: 1.5rem; padding-bottom: clamp(2.5rem, 7vw, 4.5rem); position: relative; z-index: 1; }
.phero__pic { position: relative; aspect-ratio: 3 / 2; overflow: hidden; margin-top: 1rem; }
.phero__pic img { width: 100%; height: 100%; object-fit: cover; }
.phero__cap { position: absolute; left: 0; bottom: 0; background: var(--navy); padding: .6rem .9rem; color: var(--cream); }
@media (max-width: 55.99rem) {
  .phero__grid { gap: 1.1rem; }
  .phero__pic { order: 3; margin: .4rem 0 .2rem; }
  .phero__grid > .lede { order: 4; }
  .phero__grid > .btns { order: 5; }
  .phero__grid > .btns .btn { flex: 1 1 auto; }
}
@media (min-width: 56rem) {
  .phero__grid { grid-template-columns: 1fr 1fr; align-items: end; column-gap: 4rem; }
  .phero__pic { margin: 0; grid-row: 1 / span 4; grid-column: 2; aspect-ratio: 4 / 3.4; }
}

/* drawn / built slider */
.db { position: relative; margin: 0; --pos: 50%; aspect-ratio: 3 / 2; overflow: hidden; background: var(--navy-2); user-select: none; -webkit-user-select: none; }
.db img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.db__drawn { clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 1; }
.db__rule { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 0; border-left: 1px solid var(--cream); pointer-events: none; }
.db__knob { position: absolute; top: 50%; left: 0; width: 3.1rem; height: 3.1rem; transform: translate(-50%, -50%); border-radius: 50%; background: var(--navy); border: 1px solid var(--cream); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.db__knob svg { width: 1.5rem; color: var(--cream); }
.db input { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; touch-action: pan-y; }
.db input:focus-visible ~ .db__rule .db__knob { outline: 2px solid var(--sand); outline-offset: 3px; }
.db__tag { position: absolute; z-index: 2; top: .8rem; padding: .35rem .6rem; background: rgba(0, 22, 43, .82); color: var(--cream); pointer-events: none; }
.db__tag--l { left: .8rem; }
.db__tag--r { right: .8rem; }
.titleblock { display: grid; grid-template-columns: auto 1fr; border: 1px solid var(--rule-navy); border-top: 0; font-size: .82rem; }
.titleblock > * { padding: .55rem .8rem; border-top: 1px solid var(--rule-navy); }
.titleblock dt { border-right: 1px solid var(--rule-navy); color: var(--sand); }
.titleblock dd { margin: 0; color: var(--on-navy); }
.paper .titleblock, .paper .titleblock > *, .paper .titleblock dt { border-color: var(--rule-paper); }
.paper .titleblock dt { color: var(--sand-ink); }
.paper .titleblock dd { color: var(--muted); }

.split__link { order: 9; margin: .4rem 0 0; }
.split { display: flex; flex-direction: column; }
.split > .sec__head { display: contents; }
.split > .sec__head > * { margin-bottom: 1rem; }
.split > .rise { margin-bottom: 1.4rem; }
@media (min-width: 64rem) {
  .split { display: grid; grid-template-columns: 1fr 1.6fr; column-gap: clamp(2.5rem, 5vw, 5rem); align-items: center; }
  .split > .sec__head { display: grid; gap: 1rem; margin: 0; }
  .split > .sec__head > * { margin: 0; }
  .split > .rise { margin: 0; }
  .split .poster--m { font-size: clamp(3rem, 5.4vw, 5.6rem); }
}

/* rows to swipe (never a list stacked down a phone) */
.swipe { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 21rem); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; margin-inline: calc(-1 * var(--gut)); padding-inline: var(--gut); scroll-padding-inline: var(--gut); scrollbar-width: thin; }
.swipe > * { scroll-snap-align: start; }
@media (min-width: 64rem) { .swipe { grid-auto-flow: row; grid-template-columns: repeat(var(--cols, 4), 1fr); overflow: visible; margin: 0; padding: 0; } }

.card { position: relative; display: grid; align-content: start; gap: .8rem; text-decoration: none; color: inherit; }
.card__pic { aspect-ratio: 4 / 5; overflow: hidden; background: var(--navy-2); }
.card__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__pic img { transform: scale(1.04); }
.card h3 { font-family: var(--display); font-size: 1.55rem; line-height: 1.1; }
.card p { margin: 0; font-size: .95rem; }

/* quotes */
.quote { margin: 0; border-top: 1px solid var(--rule-navy); padding-top: 1.1rem; display: grid; gap: .9rem; align-content: start; }
.quote blockquote { margin: 0; font-family: var(--display); font-size: 1.22rem; line-height: 1.35; color: var(--cream); }
.quote figcaption { color: var(--on-navy); font-size: .85rem; }
.bignum { font-family: var(--display); font-size: clamp(5.5rem, 26vw, 15rem); line-height: .8; letter-spacing: -.04em; margin: 0; }
.bignum + .lede { margin: 0; }
.bignum small { font-size: .28em; letter-spacing: 0; color: var(--sand); margin-left: .1em; }

/* price and time guide */
.guide { display: grid; gap: 1.5rem; }
.tabs { display: flex; gap: 0; border: 1px solid var(--rule-paper); border-radius: 2px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: .75rem 1rem; cursor: pointer; font-weight: 600; font-size: .9rem; white-space: nowrap; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--cream); }
.guide__price { font-family: var(--display); font-size: clamp(2.5rem, 11.2vw, 7.5rem); line-height: .95; letter-spacing: -.03em; margin: 0; }
.guide__price small { display: block; font: 600 .6875rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--sand-ink); margin-bottom: .6rem; }
.switch { display: flex; align-items: center; gap: .8rem; cursor: pointer; font-weight: 600; width: fit-content; }
.switch input { appearance: none; -webkit-appearance: none; width: 3.1rem; height: 1.8rem; border-radius: 1rem; background: #cfc9bb; position: relative; cursor: pointer; transition: background .25s; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch input:checked { background: var(--navy); }
.switch input:checked::after { transform: translateX(1.3rem); }
.phases { display: grid; grid-template-columns: var(--p1, 6fr) var(--p2, 8fr); gap: 0; transition: grid-template-columns .6s var(--ease); }
.phase { padding-top: .9rem; position: relative; }
.phase::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 11px; border-left: 1px solid var(--navy); background: linear-gradient(var(--navy), var(--navy)) center / 100% 1px no-repeat; }
.phase:last-child::before { border-right: 1px solid var(--navy); }
.phase b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 5vw, 2.2rem); line-height: 1.05; }
.phase span { font-size: .8rem; color: var(--muted); display: block; padding-right: .6rem; }
.phase--build b { color: var(--sand-ink); }
.guide__note { font-size: .85rem; color: var(--muted); max-width: 36rem; }
.planner { display: grid; gap: 1rem; border: 1px solid var(--rule-paper); padding: clamp(1.1rem, 4vw, 2rem); background: #fff; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 3rem; padding: .7rem .8rem; border: 1px solid #b9b3a5; border-radius: 2px; background: #fff; color: var(--ink); }
.field textarea { min-height: 6.5rem; resize: vertical; }
.dates { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.dates li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--rule-paper); }
.dates b { font-family: var(--display); font-weight: 400; font-size: 1.25rem; }

/* steps (what happens when) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; padding-block: 1.4rem; border-top: 1px solid var(--rule-navy); counter-increment: s; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--display); font-size: 2.1rem; line-height: 1; color: var(--sand); }
.steps h3 { font-family: var(--display); font-size: 1.45rem; line-height: 1.15; margin-bottom: .35rem; color: var(--cream); }
.steps p { margin: 0; }
.paper .steps li { border-color: var(--rule-paper); }
.paper .steps li::before { color: var(--sand-ink); }
.paper .steps h3 { color: var(--ink); }

/* two-column text */
.cols { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .cols { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } .cols--wide { grid-template-columns: 1.2fr 1fr; } }
.prose { max-width: 40rem; }
.prose h2 { font-family: var(--display); font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.1; margin: 0 0 .8rem; }
.prose h3 { font-family: var(--display); font-size: 1.4rem; margin: 1.6rem 0 .4rem; }
.ticks { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: .5rem; }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 1rem; border-top: 1px solid var(--sand-ink); }
.navy .ticks li::before { border-color: var(--sand); }
.navy .ticks li { color: var(--on-navy); }
.paper .ticks li { color: var(--muted); }

/* faq: short list that opens */
.faq { display: grid; border-top: 1px solid var(--rule-paper); }
.faq details { border-bottom: 1px solid var(--rule-paper); }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; font-family: var(--display); font-size: 1.25rem; line-height: 1.25; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .3rem; top: 50%; width: .9rem; height: .9rem; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--muted); padding-bottom: 1.1rem; margin: 0; max-width: 44rem; }
.navy .faq, .navy .faq details { border-color: var(--rule-navy); }
.navy .faq details p { color: var(--on-navy); }

/* plan drawings (blueprint illustrations) */
.plan { margin: 0; background: var(--navy); color: var(--cream); padding: clamp(.6rem, 3vw, 1.6rem); }
.plan svg { width: 100%; height: auto; }
.plan figcaption { margin-top: .8rem; color: var(--on-navy); }

/* offices */
.offices { display: grid; gap: 1.5rem; }
@media (min-width: 48rem) { .offices { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.office { border-top: 1px solid var(--rule-paper); padding-top: 1.2rem; display: grid; gap: .5rem; }
.office h3 { font-family: var(--display); font-size: 2rem; line-height: 1; }
.office a[href^="tel"] { font-family: var(--display); font-size: clamp(1.6rem, 6vw, 2.2rem); text-decoration: none; color: var(--ink); }
.office address { font-style: normal; color: var(--muted); }
.navy .office { border-color: var(--rule-navy); }
.navy .office a[href^="tel"] { color: var(--cream); }
.navy .office address { color: var(--on-navy); }

/* gallery */
.jobidx { position: sticky; top: 3.6rem; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule-paper); }
.jobidx ul { display: flex; gap: 1.2rem; overflow-x: auto; list-style: none; margin: 0; padding: .9rem var(--gut); scrollbar-width: none; }
.jobidx a { white-space: nowrap; text-decoration: none; font-size: .85rem; font-weight: 600; color: var(--muted); }
.jobidx a:hover { color: var(--ink); }
.job { display: grid; gap: 1.4rem; padding-block: clamp(2.5rem, 7vw, 4.5rem); border-top: 1px solid var(--rule-paper); scroll-margin-top: 7rem; }
.job:first-of-type { border-top: 0; }
.job h2 { font-family: var(--display); font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1; }
.job__more { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.job__more img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.job__more img.tall { aspect-ratio: 3 / 2; object-position: 50% 40%; }
@media (min-width: 60rem) { .job { grid-template-columns: 1.55fr 1fr; column-gap: 3rem; align-items: start; } .job__side { position: sticky; top: 8rem; display: grid; gap: 1rem; } }

/* in-house band */
.band { display: grid; gap: 1.6rem; }
.band__pic { aspect-ratio: 4 / 3; overflow: hidden; }
.band__pic img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 56rem) { .band { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; } }
.facts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; padding: 0; margin: 0; list-style: none; }
.facts li { color: var(--sand); }

/* forms */
.form, .form__fields { display: grid; gap: 1rem; }
.form .btn { justify-self: start; }
.form__err { color: #8a2c1d; margin: 0; }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 40rem) { .form__row { grid-template-columns: 1fr 1fr; } }
.form small { color: var(--muted); }
.form__done { display: none; }
.form.is-sent .form__fields { display: none; }
.form.is-sent .form__done { display: block; }

/* quote drawer: rises over the page */
.drawer { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92svh; background: var(--paper); color: var(--ink); border-radius: 10px 10px 0 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .35); overflow: auto; }
.drawer::backdrop { background: rgba(0, 22, 43, .6); }
.drawer[open] { animation: rise .45s var(--ease); }
.drawer__in { padding: 1.6rem var(--gut) 2rem; display: grid; gap: 1.1rem; max-width: 40rem; margin-inline: auto; }
.drawer__top { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.drawer h2 { font-family: var(--display); font-size: 2.1rem; line-height: 1; }
.drawer__x { width: 2.8rem; height: 2.8rem; border: 1px solid var(--rule-paper); background: none; border-radius: 2px; cursor: pointer; font-size: 1.3rem; flex: none; }
@media (min-width: 48rem) { .drawer { width: min(40rem, 100%); margin: auto; border-radius: 4px; } }
@keyframes rise { from { transform: translateY(40%); opacity: 0; } to { transform: none; opacity: 1; } }

/* footer */
.ftr { background: var(--navy); color: var(--on-navy); padding: 3rem 0 1.6rem; font-size: .88rem; border-top: 1px solid var(--rule-navy); }
.ftr__grid { display: grid; gap: 1.6rem 1.2rem; grid-template-columns: 1fr 1fr; }
.ftr__grid > :first-child, .ftr__grid > :last-child { grid-column: 1 / -1; }
.ftr__grid > :last-child ul { display: block; columns: 2; column-gap: 1.2rem; }
.ftr__grid > :last-child li { margin-bottom: .35rem; break-inside: avoid; }
.ftr__logo { width: 8rem; margin-bottom: .8rem; }
@media (min-width: 56rem) { .ftr__grid { grid-template-columns: 1.3fr 1fr 1fr 1.4fr; } .ftr__grid > :first-child, .ftr__grid > :last-child { grid-column: auto; } }
.ftr__legal { margin-top: 2rem !important; }
.ftr h2 { font: 600 .6875rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--sand); margin-bottom: .8rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--cream); text-decoration: underline; }
.ftr__legal { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--rule-navy); display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .78rem; }
.ftr__legal a { text-decoration: underline; }

/* arrival on scroll (only when scripts run, and never with reduced motion) */
.js .rise { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rise.is-in { opacity: 1; transform: none; }
.js .draw-in path, .js .draw-in line, .js .draw-in rect, .js .draw-in circle, .js .draw-in polyline { stroke-dasharray: var(--len, 1200); stroke-dashoffset: var(--len, 1200); transition: stroke-dashoffset 2.2s var(--ease); }
.js .draw-in.is-in path, .js .draw-in.is-in line, .js .draw-in.is-in rect, .js .draw-in.is-in circle, .js .draw-in.is-in polyline { stroke-dashoffset: 0; }

/* photo carry between pages */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: cubic-bezier(.3, .7, .2, 1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rise { opacity: 1; transform: none; }
  .js .draw-in path, .js .draw-in line, .js .draw-in rect, .js .draw-in circle, .js .draw-in polyline { stroke-dasharray: none; stroke-dashoffset: 0; }
  @view-transition { navigation: none; }
}
