/* Bridgeport Building and Maintenance. Colours from their own site and logo: charcoal #2D2E32, tan #AF9270. */
@font-face {
  font-family: 'Jost';
  src: url('/fonts/jost-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #2d2e32;
  --ink-2: #232427;
  --ink-3: #3a3b40;
  --pale: #f4f2ee;
  --stone: #ece9e4;         /* the ground the rendered bathroom sits on */
  --tan: #af9270;
  --tan-deep: #7a6146;      /* tan for words on pale: passes AA */
  --line: rgba(45, 46, 50, 0.16);
  --line-pale: rgba(244, 242, 238, 0.22);
  --muted: #5f6066;
  --muted-pale: #c9c6c0;
  --wrap: min(100% - 2.5rem, 74rem);
  --head: 4rem;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 1rem); }
body {
  margin: 0;
  font-family: 'Jost', 'Futura', 'Century Gothic', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--ink);
  background: var(--pale);
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1rem; }
h1, h2, h3 { font-weight: 400; line-height: 1.06; letter-spacing: -0.015em; margin: 0 0 1rem; hyphens: none; overflow-wrap: normal; word-break: normal; }
h1 { font-size: clamp(2.2rem, 8.4vw, 4.6rem); }
h2 { font-size: clamp(2rem, 7.4vw, 3.7rem); }
h3 { font-size: clamp(1.3rem, 4.6vw, 1.75rem); line-height: 1.2; }
.wrap { width: var(--wrap); margin-inline: auto; }
.eyebrow { display: block; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--tan-deep); margin: 0 0 1rem; }
.dark .eyebrow, .hero .eyebrow { color: var(--tan); }
.lede { font-size: clamp(1.12rem, 3.6vw, 1.35rem); line-height: 1.5; color: var(--muted); max-width: 38rem; }
.dark .lede { color: var(--muted-pale); }
.small { font-size: 0.92rem; color: var(--muted); }
.dark .small { color: var(--muted-pale); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--tan); color: var(--ink); padding: 0.75rem 1rem; text-decoration: none; font-weight: 500; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3rem; padding: 0 1.4rem; border: 1px solid currentColor; border-radius: 0;
  font: inherit; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; color: inherit; background: transparent; cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn-solid { background: var(--tan); border-color: var(--tan); color: var(--ink); }
.btn-solid:hover { background: #c2a582; border-color: #c2a582; }
.btn-ink { background: var(--ink); border-color: var(--ink); color: var(--pale); }
.btn-ink:hover { background: var(--ink-3); }
.btn-line:hover { background: rgba(175, 146, 112, 0.14); }
.btns { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.link { color: inherit; text-decoration: none; border-bottom: 1px solid var(--tan); padding-bottom: 2px; font-weight: 500; display: inline-flex; min-height: 44px; align-items: center; }
.link:hover { color: var(--tan-deep); }
.dark .link:hover { color: var(--tan); }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--head);
  color: var(--pale);
  transition: transform 0.4s var(--ease), background-color 0.3s;
}
.site-head.solid { background: rgba(35, 36, 39, 0.96); box-shadow: 0 1px 0 var(--line-pale); }
.site-head.away { transform: translateY(-100%); }
.head-in { width: min(100% - 1.5rem, 82rem); margin-inline: auto; height: 100%; display: flex; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.brand img { width: 112px; height: auto; }
.head-nav { display: none; }
.head-phone { display: none; }
.menu-btn {
  min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  background: none; border: 0; color: inherit; font: inherit; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; cursor: pointer; padding: 0 0.25rem;
}
.menu-btn svg { width: 22px; height: 22px; }
.head-call { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.85rem; border: 1px solid var(--line-pale); text-decoration: none; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }

.menu {
  position: fixed; inset: 0; z-index: 60; background: var(--ink-2); color: var(--pale);
  display: flex; flex-direction: column; padding: 1rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  overflow-y: auto; visibility: hidden; opacity: 0; transition: opacity 0.3s, visibility 0s 0.3s;
}
.menu.open { visibility: visible; opacity: 1; transition: opacity 0.3s; }
.menu-top { display: flex; align-items: center; justify-content: space-between; min-height: 3rem; }
.menu ul { list-style: none; margin: 1.5rem 0 2rem; padding: 0; }
.menu li a { display: flex; justify-content: space-between; align-items: center; min-height: 3.4rem; border-bottom: 1px solid var(--line-pale); text-decoration: none; font-size: 1.6rem; font-weight: 300; }
.menu li a[aria-current="page"] { color: var(--tan); }
.menu .menu-call { font-size: 1.9rem; font-weight: 300; text-decoration: none; display: block; margin-bottom: 0.25rem; }
.menu .btns { margin-top: auto; padding-top: 1.5rem; }

/* ---------- phone bar ---------- */
.callbar {
  position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: 1.15fr 1fr; gap: 0.5rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(35, 36, 39, 0.97); color: var(--pale); box-shadow: 0 -1px 0 var(--line-pale);
  transition: transform 0.4s var(--ease);
}
.callbar .btn { min-height: 3rem; padding: 0 0.75rem; font-size: 0.86rem; letter-spacing: 0.06em; }
.callbar.lift { transform: translateY(0); }
body { padding-bottom: calc(4.2rem + env(safe-area-inset-bottom)); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--pale); background: var(--ink); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform-origin: 60% 30%; animation: drift 26s var(--ease) both; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(35, 36, 39, 0.55) 0%, rgba(35, 36, 39, 0.12) 26%, rgba(35, 36, 39, 0.5) 52%, rgba(35, 36, 39, 0.94) 82%); }
@keyframes drift { from { transform: scale(1.12) translate3d(0, -1.5%, 0); } to { transform: scale(1) translate3d(0, 0, 0); } }
.hero-body { width: var(--wrap); margin: 0 auto; padding: calc(var(--head) + 1rem) 0 1.75rem; }
.licence { margin: 0 0 1.1rem; }
.licence-label { display: block; font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--tan); margin-bottom: 0.3rem; }
.licence-num { display: block; font-weight: 300; font-size: clamp(3.4rem, 17.5vw, 10rem); line-height: 0.9; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.licence-num span { color: var(--tan); }
.hero h1 { font-size: clamp(1.55rem, 6.2vw, 3rem); max-width: 22ch; margin-bottom: 0.6rem; }
.hero .note { color: var(--muted-pale); font-size: 1rem; max-width: 34ch; margin-bottom: 1.25rem; }
.hero .btns .btn { flex: 1 1 10rem; }
.doors { display: none; }

/* inner page hero */
.page-hero { position: relative; color: var(--pale); background: var(--ink); padding: calc(var(--head) + 2.5rem) 0 2.5rem; overflow: hidden; isolation: isolate; }
.page-hero.has-photo { min-height: 72svh; display: flex; align-items: flex-end; }
.page-hero .ph-media { position: absolute; inset: 0; z-index: -2; }
.page-hero .ph-media img { width: 100%; height: 100%; object-fit: cover; view-transition-name: carry; }
.page-hero.has-photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(35, 36, 39, 0.5), rgba(35, 36, 39, 0.15) 35%, rgba(35, 36, 39, 0.92) 88%); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { color: var(--muted-pale); }
.crumbs { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-pale); margin-bottom: 1.25rem; }
.crumbs a { text-decoration: none; display: inline-block; padding: 0.6rem 0; }

/* ---------- sections ---------- */
.sec { padding: clamp(3.5rem, 11vw, 7.5rem) 0; }
.sec-tight { padding: clamp(2.5rem, 8vw, 5rem) 0; }
.dark { background: var(--ink); color: var(--pale); }
.stone { background: var(--stone); }
.sec-head { margin-bottom: clamp(1.5rem, 5vw, 2.75rem); max-width: 44rem; }
.sec-head p:last-child { margin-bottom: 0; }

/* the ruled circle, from their monogram */
.ring { --s: 2.6rem; width: var(--s); height: var(--s); flex: none; border: 1px solid currentColor; border-radius: 50%; display: inline-grid; place-items: center; font-size: 0.95rem; font-weight: 500; position: relative; }
.ring::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: currentColor; opacity: 0.25; }
.ring b { position: relative; z-index: 1; background: inherit; padding: 0 0.1rem; font-weight: 500; }

/* ---------- before & after ---------- */
.ba { --pos: 50%; position: relative; overflow: hidden; background: var(--ink-2); aspect-ratio: var(--ar, 1); user-select: none; -webkit-user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; touch-action: pan-y; -webkit-appearance: none; appearance: none; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--pale); z-index: 2; pointer-events: none; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.2); }
.ba-handle::before { content: ''; position: absolute; top: 50%; left: 50%; width: 3.6rem; height: 3.6rem; margin: -1.8rem 0 0 -1.8rem; border: 1.5px solid var(--pale); border-radius: 50%; background: rgba(35, 36, 39, 0.35); }
.ba-handle::after { content: '\2039\00a0\00a0\00a0\203A'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -54%); color: var(--pale); font-size: 1.5rem; line-height: 1; white-space: nowrap; }
.ba input:focus-visible ~ .ba-handle::before { border-color: var(--tan); box-shadow: 0 0 0 3px rgba(175, 146, 112, 0.5); }
.ba-tag { position: absolute; top: 0.75rem; z-index: 2; pointer-events: none; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.35rem 0.6rem; background: rgba(35, 36, 39, 0.72); color: var(--pale); }
.ba-tag.b { left: 0.75rem; }
.ba-tag.a { right: 0.75rem; }
.ba-cap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 0.9rem; }
.ba-cap h3 { margin: 0; font-size: 1.15rem; }
.ba-cap p { margin: 0; }

.job { display: grid; gap: 1.5rem; align-items: center; }
.job-text p { max-width: 34rem; }

/* ---------- chapters (swipe row) ---------- */
.row { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 21rem); gap: 1rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 0 1.25rem 1rem; scroll-padding-inline: 1.25rem; scrollbar-width: thin; }
.row > * { scroll-snap-align: start; }
.row-wrap { width: min(100%, 82rem); margin-inline: auto; }
.chapter { border-top: 1px solid currentColor; padding-top: 1.1rem; }
.chapter .ring { margin-bottom: 1rem; }
.chapter h3 { margin-bottom: 0.5rem; }
.chapter p { margin: 0; color: var(--muted); }
.dark .chapter p { color: var(--muted-pale); }

/* ---------- stages ---------- */
.stages { display: grid; gap: 1.25rem; }
.stage-plates { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; }
.stage-plates figure { margin: 0; scroll-snap-align: start; }
.stage-plates img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; background: var(--stone); }
.stage-plates figcaption { margin-top: 0.6rem; }
.stage-plates figcaption b { display: block; font-weight: 500; }
.js .stages.tabbed .stage-plates { display: grid; grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
.js .stages.tabbed .stage-plates figure { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.7s var(--ease), visibility 0s 0.7s; }
.js .stages.tabbed .stage-plates figure.on { opacity: 1; visibility: visible; transition: opacity 0.7s var(--ease); }
.js .stages.tabbed .stage-plates figure img { transform: scale(0.985); transition: transform 1.2s var(--ease); }
.js .stages.tabbed .stage-plates figure.on img { transform: none; }
.stage-tabs { display: none; }
.js .stages.tabbed .stage-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; }
.stage-tabs button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.45rem; min-height: 4.5rem; padding: 0.7rem 0.5rem 0.6rem 0;
  font: inherit; font-size: 0.82rem; line-height: 1.25; text-align: left; color: var(--muted); background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer;
}
.stage-tabs button .ring { --s: 2rem; font-size: 0.8rem; }
.stage-tabs button[aria-selected="true"] { color: var(--ink); border-top: 2px solid var(--tan-deep); }
.stage-note { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.02em; }

/* ---------- finish + quote ---------- */
.finish { display: grid; gap: 2rem; align-items: center; }
.finish figure { margin: 0; }
.quote { margin: 0; }
.quote p { font-size: clamp(1.4rem, 5.2vw, 2.3rem); line-height: 1.25; font-weight: 300; margin-bottom: 1rem; }
.quote footer { font-size: 0.9rem; letter-spacing: 0.08em; color: var(--muted-pale); }
.quote footer b { color: var(--pale); font-weight: 500; }

/* ---------- cards ---------- */
.cards { list-style: none; margin: 0; }
.card { position: relative; display: block; text-decoration: none; color: inherit; }
.card .card-img { overflow: hidden; background: var(--stone); }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.9s var(--ease); }
.card:hover img { transform: scale(1.04); }
.card h3 { margin: 0.85rem 0 0.25rem; font-size: 1.2rem; }
.card p { margin: 0; font-size: 0.95rem; color: var(--muted); }
.dark .card p { color: var(--muted-pale); }
.card .more { display: inline-block; margin-top: 0.4rem; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tan-deep); }
.dark .card .more { color: var(--tan); }

/* ---------- lists, grids, galleries ---------- */
.grid-2 { display: grid; gap: 2rem; }
.grid-3 { display: grid; gap: 2rem; }
.split { display: grid; gap: 2rem; align-items: start; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li { padding: 0.9rem 0; border-bottom: 1px solid var(--line); display: grid; gap: 0.15rem; }
.facts li b { font-weight: 500; }
.dark .facts, .dark .facts li { border-color: var(--line-pale); }
.svc { border-top: 1px solid var(--line); padding: 1.5rem 0; display: grid; gap: 1rem; }
.svc h2, .svc h3 { margin-bottom: 0.4rem; }
.svc img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.gallery figcaption { font-size: 0.82rem; color: var(--muted); padding: 0.35rem 0 0.6rem; }
.project { padding: 2.5rem 0; border-top: 1px solid var(--line); }
.project h3 { margin-bottom: 0.35rem; }
.project > p { max-width: 40rem; }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.team img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--stone); }
.people { list-style: none; margin: 0; padding: 0; }
.people li { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.people h3 { margin: 0; font-size: 1.25rem; }
.people .role { display: block; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tan-deep); margin: 0.2rem 0 0.5rem; }
.people p { margin: 0; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps > li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.dark .steps > li { border-color: var(--line-pale); }
.steps h3 { margin-bottom: 0.35rem; }
.steps p { margin: 0; color: var(--muted); }
.dark .steps p { color: var(--muted-pale); }
details.faq { border-top: 1px solid var(--line); }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 3.5rem; padding: 0.75rem 0; font-size: 1.1rem; font-weight: 500; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-size: 1.5rem; font-weight: 300; color: var(--tan-deep); transition: transform 0.3s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 0 0 1.1rem; color: var(--muted); max-width: 42rem; }
.areas { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1.5rem; }
.areas li { padding: 0.35rem 0; break-inside: avoid; }
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.5rem, 5vw, 2rem); margin-top: 2.5rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; }
.badge { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; border: 1px solid var(--line-pale); padding: 0.45rem 0.7rem; }
.stone .badge, .pale .badge { border-color: var(--line); }

/* ---------- forms + drawer ---------- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.85rem; font-weight: 500; letter-spacing: 0.04em; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #9c9a95; border-radius: 0; padding: 0.8rem 0.85rem; min-height: 3rem;
}
.field textarea { min-height: 6.5rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--tan); outline-offset: 0; border-color: var(--ink); }
.form .small { margin: 0; }
.drawer { width: 100%; max-width: 34rem; max-height: 92dvh; margin: auto auto 0; padding: 0; border: 0; background: var(--pale); color: var(--ink); overflow: auto; }
.drawer::backdrop { background: rgba(20, 20, 22, 0.6); }
.drawer[open] { animation: rise 0.45s var(--ease); }
@keyframes rise { from { transform: translateY(100%); } to { transform: none; } }
.drawer-in { padding: 1.25rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; }
.drawer-top h2 { font-size: 1.6rem; margin: 0; }
.x { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: none; font: inherit; font-size: 1.4rem; cursor: pointer; color: inherit; }
.drawer .note-in { font-size: 0.9rem; background: var(--stone); padding: 0.6rem 0.75rem; border-left: 2px solid var(--tan); margin: 0 0 0.25rem; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink-2); color: var(--pale); padding: clamp(3rem, 10vw, 6rem) 0 2rem; }
.foot-cta h2 { max-width: 16ch; }
.foot-grid { display: grid; gap: 2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line-pale); }
.foot-grid h3 { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--tan); margin-bottom: 0.75rem; font-weight: 500; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--muted-pale); }
.foot-grid li a:hover { color: var(--pale); }
.foot-grid p { color: var(--muted-pale); margin-bottom: 0.4rem; }
.foot-big { font-size: clamp(1.7rem, 7vw, 2.6rem); font-weight: 300; text-decoration: none; display: inline-block; min-height: 44px; }
.legal { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; font-size: 0.82rem; color: var(--muted-pale); }
.legal a { color: var(--muted-pale); display: inline-flex; min-height: 44px; align-items: center; }
.credit { opacity: 0.75; }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translate3d(0, 1.5rem, 0); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- page carry (a job's picture grows into its own page) ---------- */
@view-transition { navigation: auto; }
::view-transition-group(carry) { animation-duration: 0.55s; animation-timing-function: cubic-bezier(0.2, 0.7, 0.1, 1); }

/* ---------- wider screens ---------- */
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  .team { grid-template-columns: repeat(4, 1fr); }
  .svc { grid-template-columns: 1fr 1.2fr; gap: 2rem; align-items: center; }
  .foot-grid { grid-template-columns: repeat(3, 1fr); }
  .areas { columns: 3; }
}
@media (min-width: 960px) {
  :root { --head: 5rem; }
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .brand img { width: 136px; }
  .menu-btn { display: none; }
  .head-call { display: none; }
  .head-nav { display: flex; align-items: center; gap: 0.25rem; }
  .head-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.7rem; text-decoration: none; font-size: 0.86rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-pale); }
  .head-nav a:hover, .head-nav a[aria-current="page"] { color: var(--pale); }
  .head-phone { display: inline-flex; align-items: center; min-height: 44px; margin-left: 0.75rem; padding-left: 1.25rem; border-left: 1px solid var(--line-pale); text-decoration: none; font-size: 1.05rem; letter-spacing: 0.04em; }
  .head-book { margin-left: 0.75rem; min-height: 2.75rem; }
  .hero-body { padding-bottom: 0; }
  .hero h1 { font-size: clamp(2rem, 3.2vw, 3rem); }
  .doors { display: grid; grid-template-columns: repeat(4, 1fr); width: var(--wrap); margin: 2.5rem auto 0; border-top: 1px solid var(--line-pale); }
  .doors a { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; min-height: 8.5rem; padding: 1.1rem 1.25rem 1.4rem; text-decoration: none; border-left: 1px solid var(--line-pale); transition: background-color 0.3s; }
  .doors a:first-child { border-left: 0; padding-left: 0; }
  .doors a:hover { background: rgba(244, 242, 238, 0.06); }
  .doors small { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--tan); }
  .doors span { font-size: 1.25rem; font-weight: 300; }
  .job { grid-template-columns: 1.15fr 0.85fr; gap: 4rem; }
  .row { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; padding: 0; width: var(--wrap); margin-inline: auto; gap: 2rem; }
  .row.six { grid-template-columns: repeat(3, 1fr); }
  .stages.tabbed { grid-template-columns: 1.5fr 1fr; align-items: center; gap: 3rem; }
  .js .stages.tabbed .stage-tabs { grid-template-columns: 1fr; gap: 0; order: 2; }
  .stage-tabs button { flex-direction: row; align-items: center; min-height: 4.25rem; font-size: 1.05rem; gap: 1rem; }
  .finish { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split { grid-template-columns: 1fr 1.3fr; gap: 4rem; }
  .drawer { margin: auto; }
  .drawer[open] { animation: fadein 0.35s var(--ease); }
}
@keyframes fadein { from { opacity: 0; transform: translateY(1rem); } to { opacity: 1; transform: none; } }

@media (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: auto; padding-top: 3rem; }
  .licence-num { font-size: clamp(2.6rem, 9vw, 5rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
@media print {
  .site-head, .callbar, .menu, .drawer { display: none !important; }
  body { padding: 0; }
}

/* ---------- small helpers ---------- */
.ar-sq { --ar: 1; }
.ar-34 { --ar: 3 / 4; }
.ar-43 { --ar: 4 / 3; }
.visually-h { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.h3-like { font-size: clamp(1.3rem, 4.6vw, 1.75rem); line-height: 1.2; margin: 1rem 0 0.5rem; }
.no-m { margin: 0; }
.ba-text { margin-top: 0.9rem; color: var(--muted); }
.ba-fig { margin: 0; }
.grid-2 article img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.steps.grid-3 > li { border-top: 1px solid var(--line); }
@media (max-width: 959px) {
  .hero .btns { display: none; }
  .hero-body { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
  .hero .note { margin-bottom: 0; }
}
@media (max-width: 699px) {
  .sec { padding: 3rem 0; }
  .finish figure img { aspect-ratio: 1; object-fit: cover; width: 100%; }
  .site-foot { padding-top: 3rem; }
  .foot-cta h2 { font-size: 1.8rem; }
  .foot-grid { margin-top: 2rem; gap: 1.5rem; }
  .foot-grid ul { columns: 2; column-gap: 1rem; }
  .foot-grid li a { min-height: 44px; font-size: 0.95rem; }
  .legal { margin-top: 1.5rem; }
}
.ba-cap .ba-title { font-size: 1.15rem; font-weight: 500; margin: 0; }
.page-hero.has-photo::before { background: linear-gradient(180deg, rgba(35, 36, 39, 0.7), rgba(35, 36, 39, 0.5) 40%, rgba(35, 36, 39, 0.94) 85%); }
@media (max-width: 959px) { .page-hero .btns { display: none; } }
@media (orientation: landscape) and (max-height: 500px) {
  .hero { min-height: 100svh; padding-top: 0; }
  .hero-body { padding-top: calc(var(--head) + 0.25rem); padding-bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
  .licence { margin-bottom: 0.4rem; }
  .licence-num { font-size: 3.2rem; }
  .hero h1 { font-size: 1.5rem; max-width: 34ch; margin-bottom: 0.3rem; }
  .hero .note { font-size: 0.92rem; max-width: 60ch; }
  .page-hero.has-photo { min-height: 100svh; }
}
.hero .btns, .page-hero .btns { max-width: 32rem; }
