/* Metalwork template — "the place carries it": the workshop's own pieces, alabaster, gunmetal and brass */
:root {
  --bg: #F5F3EF;          /* warm alabaster, 60% */
  --surface: #EAE6DE;     /* one step darker for panels */
  --ink: #1E293B;         /* gunmetal, 30%: type, headers, dark fields */
  --muted: #475569;
  --accent: #C28E36;      /* burnished brass, 10%: the action, hovers */
  --accent-deep: #A9772A;
  --accent-ink: #1E293B;
  --steel: #1E293B;
  --steel-ink: #F5F3EF;
  --steel-soft: #CBD5E1;

  --display: "Sofia Sans Condensed", "Arial Narrow", sans-serif;
  --text: "IBM Plex Sans", system-ui, sans-serif;

  /* type scale (web); phones override some of these in the 860px query */
  --fs-h1: 104px;     /* page titles: Услуги, Галерия, Контакти */
  --fs-h2: 64px;      /* section headings */
  --fs-h3: 48px;      /* card headings, phone numbers, quotes */
  --fs-lead: 20px;    /* intro paragraphs, list item names */
  --fs-body: 18px;    /* body text default, buttons, nav links */
  --fs-label: 16px;   /* labels above inputs, social links, fact names */
  --fs-meta: 12px;    /* copyright, credits */

  /* font weights (IBM Plex Sans has 400, 500, 600) */
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-bold: 600;
  --fw-display: 700;   /* headings in Sofia Sans Condensed */

  /* corner radius: buttons, small images, large images */
  --radius-btn: 2px;
  --radius-sm: 4px;
  --radius-lg: 4px;

  /* spacing scale (8px base) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-section: 64px;
  --space-gutter: 32px;

  --pad: max(var(--m), calc((100vw - 1600px) / 2));                              /* side padding: content stops at 1600px, backgrounds keep going */
  --m: clamp(var(--space-md), 2.2vw, var(--space-gutter));                        /* page side margin */
  --gap: clamp(var(--space-section), 9vw, calc(var(--space-section) * 2));        /* between sections */
  --bar-h: 96px;          /* fixed header height, so the hero can fill exactly the rest of the screen */
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: var(--fs-body); font-weight: var(--fw-normal); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { list-style: none; padding: 0; }
h1, h2 { font-family: var(--display); font-weight: var(--fw-display); text-transform: uppercase; letter-spacing: -0.005em; line-height: .96; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink); text-decoration: none;
  font-size: var(--fs-body); font-weight: var(--fw-bold); padding: var(--space-md) var(--space-lg); border: 0; border-radius: var(--radius-btn); cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--accent-deep); transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-ghost { background: var(--steel-ink); color: var(--ink); }
.btn-ghost:hover { background: #fff; }
.btn-block { display: block; text-align: center; }
.btn-alt { background: var(--surface); color: var(--ink); }
.btn-alt:hover { background: #DDD7CC; }
.link { font-weight: var(--fw-bold); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.link:hover { color: var(--accent-deep); }
.mark { flex: none; color: var(--accent); }

/* ---------- header ---------- */
.bar { position: sticky; top: 0; z-index: 5; transition: transform .4s var(--ease), background-color .3s, box-shadow .3s; font-size: var(--fs-body); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--m); height: var(--bar-h); padding: 0 var(--pad); }
/* sticky: it keeps its place in the flow, hides when you scroll down and comes back when you scroll up (site.js) */
.bar.bar-solid { background: var(--bg); box-shadow: 0 1px 0 rgba(30, 41, 59, .08); }
.bar.bar-hidden { transform: translateY(-100%); }
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }
.bar-left { display: flex; gap: var(--space-lg); flex-wrap: wrap; }
.bar-left a { text-decoration: none; font-weight: var(--fw-medium); }
.bar-left a:hover, .bar-left a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: .4em; }
.wordmark { display: flex; align-items: center; gap: var(--space-sm); text-decoration: none; }
.bar-right { justify-self: end; display: flex; gap: var(--space-xl); align-items: center; }
.bar-phone { font-weight: var(--fw-bold); text-decoration: none; }
.bar-phone:hover { color: var(--accent-deep); }
.menu { display: none; }

/* ---------- hero: the name moving across one square of the work ---------- */
.hero { position: relative; min-height: calc(100svh - var(--bar-h)); overflow: hidden; display: flex; flex-direction: column; padding: 0 var(--pad) var(--space-2xl); }
/* the running name sits centred in the space between the header and the photo row */
.line { position: relative; margin: auto calc(var(--pad) * -1); padding: var(--space-xl) 0; overflow: hidden; white-space: nowrap; }
.track { display: inline-flex; animation: run 38s linear infinite; }
/* the running name is the signature graphic, sized to the viewport, so it stays off the type scale */
.copy { font-family: var(--display); font-weight: var(--fw-display); text-transform: uppercase; font-size: clamp(96px, 12.5vw, 200px); line-height: 1; letter-spacing: -0.005em; padding-right: .35em; margin: 0; }
.copy::after { content: ""; display: inline-block; width: .2em; height: .2em; border-radius: 50%; background: currentColor; vertical-align: .32em; margin-left: .35em; }
.line-dark { color: var(--ink); }
.line:hover .track { animation-play-state: paused; }
@keyframes run { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; transform: translateX(-12%); } }
.hero-pic { width: clamp(220px, min(24vw, 38svh), 380px); aspect-ratio: 1; object-fit: cover; animation: settle 1.2s var(--ease) both .2s; }
@keyframes settle { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .hero-pic { animation: none; } }
.hero-mid { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--m); align-items: end; }
.hero-act { justify-self: end; display: flex; flex-direction: column; align-items: stretch; gap: var(--space-sm); text-align: center; }
.hero-act .hero-fact { margin-bottom: var(--space-sm); text-align: right; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xl); }
.hero-area { margin-top: var(--space-md); text-align: right; color: var(--muted); }
.hero-line { font-size: var(--fs-lead); line-height: 1.4; max-width: 30ch; }
.hero-fact { font-family: var(--display); font-weight: var(--fw-display); font-size: var(--fs-h3); line-height: 1; }
.hero-fact a { text-decoration: none; }

/* ---------- list: statement, table pushed right ---------- */
.list { padding: var(--gap) var(--pad) 0; }
.list h2 { font-size: var(--fs-h2); max-width: 16ch; }
.list h2::first-line { text-indent: 3vw; }
.list-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--m); margin-top: calc(var(--space-2xl) * 2); align-items: end; }
.list-pic { grid-column: 9 / -1; grid-row: 1; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.rows { grid-column: 1 / span 7; grid-row: 1; }
.rows li { display: grid; grid-template-columns: 7rem 1fr auto; gap: var(--space-md); align-items: baseline; padding: var(--space-md) 0; }
.rows li:nth-child(3), .rows li:nth-child(6), .rows li:nth-child(8) { border-top: 1px solid rgba(30, 41, 59, .12); } /* dividers: home / yard / business / more */
.r-kind { color: var(--muted); }
.r-name { font-weight: var(--fw-bold); text-decoration: none; font-size: var(--fs-lead); }
.r-name::after { content: " →"; color: var(--accent); transition: margin-left .2s var(--ease); }
.rows li { position: relative; }
.r-name::before { content: ""; position: absolute; inset: 0; } /* the whole row is the link */
.rows li:hover .r-name, .r-name:hover { color: var(--accent-deep); }
.r-val { text-align: right; color: var(--muted); }

/* ---------- one verb at a time ---------- */
.verb { position: relative; min-height: 100svh; margin-top: 0; overflow: clip; color: var(--steel-ink); background: var(--steel); }
.list + .verb { margin-top: var(--gap); }
.verb-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.verb::before { content: ""; position: absolute; inset: 0; background: rgba(30, 41, 59, .5); z-index: 1; } /* neutral scrim so the verb reads on every photo */
.verb-hold { position: absolute; left: 0; right: 0; top: calc(var(--verb-fs) * -1); bottom: calc(50% - var(--verb-fs) * 0.45); z-index: 2; } /* starts above the frame (clipped), ends centered */
.verb-word { position: sticky; top: calc(50% - var(--verb-fs) * 0.45); text-align: center; line-height: .9; padding: 0 var(--pad); white-space: nowrap;
  /* the longest verb always fits the width: about 0.54em per capital letter in Sofia Sans Condensed */
  font-size: var(--verb-fs); }
.verb { --verb-fs: min(clamp(88px, 15vw, 280px), calc((100vw - 2 * var(--pad)) / (var(--verb-len, 10) * 0.54))); --verb-gap: 40px; }
.verb-text { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); top: calc(50% + var(--verb-fs) * 0.45 + var(--verb-gap)); margin-inline: auto; width: fit-content; text-align: center; max-width: 36ch; font-size: var(--fs-body); }

/* ---------- visit card on the work ---------- */
.visit { position: relative; min-height: 100svh; display: flex; justify-content: flex-end; align-items: center; padding: var(--space-section) var(--pad); overflow: hidden; }
.visit-bg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; background: var(--ink); }
/* slideshow: a horizontal track of photos; site.js moves it and fills the bar */
.slides-track { display: flex; height: 100%; transition: transform 1.1s cubic-bezier(.65, 0, .35, 1); }
.slides-track.no-anim { transition: none; }
.slides-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; }
.slides-bar { position: absolute; z-index: 2; left: var(--pad); bottom: var(--space-xl); display: flex; gap: 6px; }
.slides-bar span { position: relative; width: 36px; height: 2px; background: rgba(245, 243, 239, .45); overflow: hidden; }
.slides-bar span::after { content: ""; position: absolute; inset: 0; background: var(--bg); transform: scaleX(0); transform-origin: left; }
.slides-bar .done::after { transform: scaleX(1); }
.slides-bar .on::after { animation: slide-fill var(--slide-ms, 4500ms) linear forwards; }
.visit-bg.paused .slides-bar .on::after { animation-play-state: paused; }
@keyframes slide-fill { to { transform: scaleX(1); } }
.card { position: relative; z-index: 1; width: 400px; max-width: 100%; background: var(--bg); padding: var(--space-xl) var(--space-xl) 0; display: flex; flex-direction: column; gap: var(--space-md); }
.card h2 { font-size: var(--fs-h3); }
.card-phone { font-family: var(--display); font-weight: var(--fw-display); font-size: var(--fs-h3); line-height: 1; margin-top: var(--space-sm); }
.card-phone a { text-decoration: none; }
.card-area { color: var(--muted); }
.card .btn-block { margin: var(--space-md) calc(var(--space-xl) * -1) 0; padding: var(--space-md); }

/* ---------- page heads (inner pages) ---------- */
.page-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-lg); padding: var(--space-section) var(--pad) 0; }
.page-head h1 { font-size: var(--fs-h1); line-height: .86; }
.page-head p { font-size: var(--fs-lead); line-height: 1.35; max-width: 32ch; }
.page-head p a { text-decoration-color: var(--accent); }

/* ---------- services, one per row, alternating sides ---------- */
.svc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--m); padding: var(--gap) var(--pad) 0; align-items: center; scroll-margin-top: var(--space-lg); }
.svc-pic { grid-column: 1 / span 6; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-text { grid-column: 8 / -1; display: flex; flex-direction: column; gap: var(--space-md); align-items: flex-start; }
.svc:nth-of-type(even) .svc-pic { grid-column: 7 / -1; grid-row: 1; }
.svc:nth-of-type(even) .svc-text { grid-column: 1 / span 5; grid-row: 1; }
.svc h2 { font-size: var(--fs-h2); line-height: 1.02; }
/* "what we need for a quote": a small card with an icon per item */
.svc-ask { align-self: stretch; max-width: 540px; background: var(--surface); border-radius: var(--radius-sm); padding: var(--space-md) 20px; }
.svc-tint .svc-ask { background: var(--bg); }
.svc-ask + .link { margin-top: var(--space-sm); } /* a little more room before the CTA than the text column's usual gap */
.svc-ask p { font-size: 16px; font-weight: var(--fw-normal); color: var(--muted); margin-bottom: var(--space-md); }
/* always three equal columns, so every card has the same shape (a two-item card keeps an empty third) */
.svc-ask ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc-ask li { display: flex; align-items: center; gap: var(--space-sm); white-space: nowrap; font-size: var(--fs-label); font-weight: var(--fw-medium); padding: 0 var(--space-md); border-left: 1px solid rgba(30, 41, 59, .18); }
.svc-ask li:first-child { border-left: 0; padding-left: 0; }
/* below this the text column is too narrow for three in a row: one item per line, on every card alike */
@media (max-width: 1359px) {
  .svc-ask { max-width: 340px; } /* same width whether or not the service has a photo */
  .svc-ask ul { grid-template-columns: 1fr; gap: 12px; }
  .svc-ask li { border-left: 0; padding: 0; }
}
@media (max-width: 1100px) { .svc-ask { max-width: none; } }
.svc-ask svg { flex: none; width: 22px; height: 22px; color: var(--accent-deep); }

/* ---------- quote builder (the contact form) ---------- */
.quote { margin-top: var(--gap); background: var(--steel); color: var(--steel-ink); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--m); padding: var(--gap) var(--pad); scroll-margin-top: 0; }
.quote-text { grid-column: 1 / span 4; display: flex; flex-direction: column; gap: var(--space-md); }
.quote h2 { font-size: var(--fs-h2); }
.quote-phone a { font-weight: var(--fw-bold); text-decoration-color: var(--accent); }
.quote-form { grid-column: 6 / -1; display: flex; flex-direction: column; gap: var(--space-md); }
.field { display: block; }
.field span { display: block; font-size: var(--fs-label); margin-bottom: var(--space-sm); color: var(--steel-soft); }
.field input, .field select { width: 100%; height: 56px; border: 0; border-radius: 0; background: #2C3A51; color: var(--steel-ink); font: inherit; padding: 0 var(--space-md); appearance: none; }
.field select { background: #2C3A51 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C28E36' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat calc(100% - var(--space-md)) 50%; }
.field input::placeholder { color: #94A3B8; }
.field input:focus, .field select:focus { background-color: #34445E; outline: 2px solid var(--accent); outline-offset: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.preview { background: var(--bg); color: var(--ink); padding: var(--space-md); min-height: 3.2em; }
.send { display: flex; gap: var(--space-md); align-items: center; flex-wrap: wrap; }

/* ---------- gallery: staggered pairs in empty ground ---------- */
.stagger { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--m); padding: var(--gap) var(--pad) 0; }
.g img { width: 100%; object-fit: cover; }
.g figcaption { margin-top: var(--space-sm); color: var(--muted); }
.g1 { grid-column: 1 / span 5; } .g1 img { aspect-ratio: 5 / 4; }
.g2 { grid-column: 8 / -1; margin-top: 24vh; } .g2 img { aspect-ratio: 3 / 4; }
.g3 { grid-column: 2 / span 4; margin-top: -8vh; } .g3 img { aspect-ratio: 1; }
.g4 { grid-column: 7 / span 5; margin-top: 18vh; } .g4 img { aspect-ratio: 1; }
.band { margin-top: var(--gap); background: var(--surface); padding: calc(var(--space-2xl) * 2) var(--pad); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--m); align-items: end; }
.band h2 { grid-column: 1 / span 6; font-size: var(--fs-h2); }
.band p { grid-column: 7 / span 4; font-size: var(--fs-lead); line-height: 1.35; }
.band .send { grid-column: 7 / -1; }

/* ---------- reviews ---------- */
.empty { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--m); padding: var(--gap) var(--pad) 0; align-items: start; }
.empty h2 { grid-column: 1 / span 6; font-family: var(--text); text-transform: none; font-weight: var(--fw-medium); font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.01em; }
.empty-side { grid-column: 8 / -1; display: flex; flex-direction: column; gap: var(--space-lg); }
.quote-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--m); padding: var(--gap) var(--pad) 0; }
.quote-row img { grid-column: 2 / span 4; aspect-ratio: 3 / 4; object-fit: cover; }
.quote-row blockquote { grid-column: 7 / -1; margin-top: calc(var(--space-section) * 2); font-size: var(--fs-h3); line-height: 1.25; }
.quote-row footer { margin-top: var(--space-xl); font-size: var(--fs-body); color: var(--muted); }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--m); padding: var(--space-section) var(--pad) 0; align-items: start; }
.contact-text { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: var(--space-lg); }
.contact h1 { font-size: var(--fs-h1); line-height: .86; }
.contact-text > p { font-size: var(--fs-lead); line-height: 1.35; max-width: 32ch; }
.big-phone { font-family: var(--display); font-weight: var(--fw-display); font-size: var(--fs-h2); line-height: 1; text-decoration: none; }
.big-phone:hover { color: var(--accent-deep); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md) var(--m); margin-top: var(--space-md); }
.facts dt { font-size: var(--fs-label); color: var(--muted); }
.facts dd { font-weight: var(--fw-medium); }
.contact-pic { grid-column: 8 / -1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* desktop: the first screen is exactly the contact block; the facts sit on the bottom edge of the screen */
@media (min-width: 1101px) {
  .contact { min-height: calc(100svh - var(--bar-h)); padding-bottom: var(--space-2xl); align-items: stretch; }
  .contact .facts { margin-top: auto; }
  .contact-pic { height: 100%; aspect-ratio: auto; contain: size; } /* the photo fills the height but never sets it */
}

/* ---------- footer: brand + action on the left half; link columns and the legal row on the right half ---------- */
.foot { margin-top: var(--gap); background: var(--steel); color: var(--steel-ink); padding: calc(var(--space-section) * 1.5) var(--pad) var(--space-2xl); }
.svc-tint + .quote { margin-top: 0; } /* a tinted band right before the form: no beige strip between them */
main:has(> .visit:last-child) + .foot, main:has(> .quote:last-child) + .foot { margin-top: 0; }
main:has(> .quote:last-child) + .foot { border-top: 1px solid rgba(245, 243, 239, .12); } /* both are dark: a hairline keeps form and footer apart */ /* the visit photo or the dark quote form runs straight into the footer, no empty band between */
.foot-main { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-section) var(--m); }
.foot-brand { grid-column: 1 / span 5; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-lg); }
.foot-mark { display: flex; }
.foot-tag { font-size: var(--fs-label); line-height: 1.5; color: var(--steel-soft); max-width: 34ch; }
.foot-phone { font-family: var(--display); font-weight: var(--fw-display); font-size: var(--fs-h3); line-height: 1; text-decoration: none; margin-top: var(--space-sm); }
.foot-phone:hover { color: var(--accent); }
.foot-brand .btn { margin-top: calc(var(--space-sm) * -1); font-size: var(--fs-label); } /* 16px under the phone instead of the column's 24px */
.foot-brand .btn:hover { color: var(--accent-ink); }
.foot-right { grid-column: 7 / -1; }
.foot-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xl) var(--m); }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); }
.foot-h { font-size: var(--fs-label); font-weight: var(--fw-bold); margin-bottom: var(--space-sm); }
.foot-col a { font-size: var(--fs-label); text-decoration: none; color: var(--steel-soft); transition: color .2s; }
.foot-col a:hover { color: var(--accent); }
.legal { margin-top: var(--space-section); padding-top: var(--space-lg); border-top: 1px solid rgba(245, 243, 239, .14); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-sm) var(--space-lg); font-size: var(--fs-label); color: var(--steel-soft); }
.legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(245, 243, 239, .35); transition: color .2s, text-decoration-color .2s; }
.legal a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

@keyframes sheet-in { from { opacity: 0; transform: translateY(-14px); } }
@keyframes link-in { from { opacity: 0; transform: translateY(18px); } }

/* ---------- phone ---------- */
@media (max-width: 1100px) {
  :root { --bar-h: 80px; --fs-h1: 72px; --fs-h2: 40px; --fs-h3: 32px; --fs-body: 16px; --fs-lead: 18px; --pad: 24px; }
  .bar { grid-template-columns: 1fr auto; padding: 0 var(--pad); }
  .bar-left, .bar-right { display: none; }
  .menu { display: block; position: relative; justify-self: end; }
  .menu summary { list-style: none; cursor: pointer; font-weight: var(--fw-bold); padding: var(--space-sm) 0; }
  .menu summary::-webkit-details-marker { display: none; }
  /* the menu opens a full-screen sheet; the logo and the button stay above it */
  .wordmark, .menu summary { position: relative; z-index: 2; }
  .menu nav { position: fixed; inset: 0; z-index: 1; background: var(--bg); color: var(--ink); padding: calc(var(--bar-h) + var(--space-lg)) var(--pad) var(--space-xl); display: flex; flex-direction: column; align-items: stretch; gap: var(--space-lg); overflow-y: auto; }
  .menu nav a:not(.btn) { text-decoration: none; font-family: var(--display); font-weight: var(--fw-display); font-size: var(--fs-h2); line-height: 1.1; }
  .menu nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: .2em; }
  .menu-cta { margin-top: auto; text-align: center; padding: var(--space-md); }
  /* opening: the sheet eases down, then the links rise in one after another */
  .menu[open] nav { animation: sheet-in .45s var(--ease) both; }
  .menu[open] nav a { animation: link-in .6s var(--ease) both; }
  .menu[open] nav a:nth-child(1) { animation-delay: .08s; }
  .menu[open] nav a:nth-child(2) { animation-delay: .13s; }
  .menu[open] nav a:nth-child(3) { animation-delay: .18s; }
  .menu[open] nav a:nth-child(4) { animation-delay: .23s; }
  .menu[open] nav a:nth-child(5) { animation-delay: .30s; }
  @media (prefers-reduced-motion: reduce) { .menu[open] nav, .menu[open] nav a { animation: none; } }
  body:has(.menu[open]) { overflow: hidden; }
  .hero { padding-bottom: var(--space-lg); }
  .copy { font-size: 22vw; }
  /* phone order: photo, line, phone number, quote, see work, area */
  .hero-mid { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-md); }
  .hero-copy, .hero-act { display: contents; }
  .hero-pic { order: 1; flex: 1 1 0; min-height: 96px; width: 78vw; aspect-ratio: auto; margin-bottom: var(--space-sm); } /* the photo takes whatever height the screen has left */
  .hero-line { order: 2; margin-bottom: var(--space-sm); }
  .hero-fact { order: 3; }
  .hero-act .btn { order: 4; }
  .hero-copy .btn { order: 5; }
  .hero { overflow: visible; margin-bottom: var(--space-2xl); }
  .hero-area { position: absolute; left: 0; right: 0; top: 100%; margin-top: var(--space-md); text-align: center; } /* sits just below the first screen: the two buttons end it */
  .hero-copy .btn { margin-top: calc(var(--space-sm) * -1); } /* 8px between the two buttons instead of 16px */
  .hero-mid .btn { align-self: stretch; text-align: center; }
  .list h2::first-line { text-indent: 0; }
  .list-grid { margin-top: var(--space-2xl); }
  .rows { grid-column: 1 / -1; grid-row: 1; }
  .rows li { grid-template-columns: 1fr; gap: var(--space-xs); padding: var(--space-sm) 0; padding-right: var(--space-xl); }
  .r-name::after { position: absolute; right: 0; top: 50%; transform: translateY(-50%); } /* the arrow sits at the right edge of the row */
  /* items of one group sit close; a group break gets a line with real space around it */
  .rows li:nth-child(3), .rows li:nth-child(6), .rows li:nth-child(8) { margin-top: var(--space-md); padding-top: var(--space-lg); }
  .r-kind { display: none; }
  .r-val { font-size: var(--fs-label); text-align: left; }
  .list-pic { grid-column: 1 / -1; grid-row: auto; margin-top: var(--space-2xl); aspect-ratio: 4 / 3; }
  .verb { --verb-fs: calc((100vw - 2 * var(--pad)) / (var(--verb-len, 10) * 0.54)); }
  .verb-text { font-size: 16px; }
  .visit { justify-content: center; padding: var(--space-section) var(--pad); } /* photos edge to edge, the card centered on them */
  .slides-bar { left: 0; right: 0; justify-content: center; } /* the progress bars centered under the card */
  .card { width: 100%; padding: var(--space-lg) var(--space-lg) 0; }
  .card .btn-block { margin: var(--space-md) calc(var(--space-lg) * -1) 0; }
  .page-head, .svc, .quote, .stagger, .band, .empty, .quote-row, .contact { grid-template-columns: 1fr; }
  /* services: the first screen ends with the first photo; its title and text start below the fold (site.js sets --atf-rest) */
  .page-head + .svc { grid-template-rows: max(200px, calc(var(--atf-rest, 100svh) - var(--space-section))) auto; align-items: start; }
  .page-head + .svc .svc-pic { height: 100%; aspect-ratio: auto; }
  /* contact: the first screen is the contact block, the facts on its bottom edge; the photo starts below the fold */
  .contact { align-items: stretch; grid-template-rows: minmax(calc(100svh - var(--bar-h) - var(--space-section) - var(--space-lg)), auto) auto; }
  .contact .facts { margin-top: auto; }
  .contact-pic { margin-top: var(--space-lg); } /* keeps the photo's top edge off the first screen */
  .page-head > *, .svc > *, .quote > *, .band > *, .empty > *, .contact > * { grid-column: 1 !important; grid-row: auto !important; }
  .page-head { padding-top: var(--space-xl); }
  .svc { padding-top: var(--space-section); gap: var(--space-lg); }
  .quote { padding: var(--space-section) var(--pad); }
  .field-row { grid-template-columns: 1fr; }
  .send .btn { flex: 1 1 100%; text-align: center; padding: var(--space-md); }
  .stagger { gap: var(--space-section); }
  .g { grid-column: 1 !important; margin: 0 !important; }
  .g1 { width: 84%; } .g2 { width: 70%; justify-self: end; } .g3 { width: 76%; } .g4 { width: 100%; }
  .band { padding: var(--space-section) var(--pad); }
  .empty h2 { font-size: var(--fs-lead); }
  .quote-row blockquote { margin-top: var(--space-xl); font-size: var(--fs-lead); }
  .facts { grid-template-columns: 1fr; }
  .contact-pic { aspect-ratio: 4 / 3; }
  .foot { padding: var(--space-2xl) var(--pad) var(--space-xl); }
  .foot-main { grid-template-columns: 1fr; gap: var(--space-2xl); }
  .foot-brand, .foot-right { grid-column: 1; }
  .foot-brand .btn { align-self: stretch; text-align: center; }
  .foot-links { grid-template-columns: 1fr 1fr; }
  .foot-brand { align-items: center; text-align: center; }
  .foot-phone { align-self: center; }
  .legal { flex-direction: column; align-items: center; text-align: center; margin-top: var(--space-2xl); font-size: var(--fs-meta); }
  .hero-act .hero-fact { text-align: center; }
}

.logo { flex: none; display: block; }

/* wide screens: the header already shows the phone and the quote button, so the hero doesn't repeat them */
@media (min-width: 1101px) {
  .hero-act .hero-fact, .hero-act .btn:not(.btn-alt) { display: none; }
}

/* a service without a photo: one centered column */
.svc-plain .svc-text { grid-column: 3 / span 8 !important; grid-row: auto !important; align-items: center; text-align: center; }
.svc-plain .svc-text > p { max-width: 52ch; }
.svc-plain .svc-ask { align-self: center; width: 100%; }
@media (max-width: 1359px) { .svc-plain .svc-ask ul { width: max-content; margin-inline: auto; } } /* stacked list: centered as a block, icons still in line */
@media (min-width: 1360px) { .svc-plain .svc-ask ul { grid-template-columns: none; grid-auto-flow: column; justify-content: center; } }
@media (max-width: 1100px) { .svc-plain .svc-text { grid-column: 1 !important; } }
/* every third service sits on an edge-to-edge band in the panel tone */
.svc-tint { margin-top: var(--gap); padding-bottom: var(--gap); background: var(--surface); }
@media (max-width: 1100px) { .svc-tint { margin-top: var(--space-section); padding-bottom: var(--space-section); } }

/* ---------- gallery of the client's photos: filter, grid, full-screen viewer ---------- */
.gal { padding: var(--space-2xl) var(--pad) 0; }
.gal-filter { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-bottom: var(--space-lg); }
.gf { font: inherit; font-weight: var(--fw-medium); border: 0; border-radius: var(--radius-btn); cursor: pointer; padding: var(--space-sm) var(--space-md);
  background: var(--surface); color: var(--ink); transition: background-color .2s, color .2s; }
.gf span { color: var(--muted); font-weight: var(--fw-normal); margin-left: var(--space-xs); }
.gf:hover { background: #DDD7CC; }
.gf[aria-pressed="true"] { background: var(--steel); color: var(--steel-ink); }
.gf[aria-pressed="true"] span { color: var(--steel-soft); }
.gal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-sm); }
.gal-grid li[hidden] { display: none; }
.gal-item { display: block; overflow: hidden; background: var(--surface); }
.gal-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .4s var(--ease); }
.gal-item:hover img { transform: scale(1.04); }
.gal-item:focus-visible { outline-offset: -3px; }
.lb { width: 100vw; height: 100svh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #0F1622; color: var(--steel-ink); }
.lb::backdrop { background: #0F1622; }
.lb[open] { display: grid; grid-template-rows: 1fr auto; }
.lb-img { width: 100%; height: 100%; object-fit: contain; min-height: 0; padding: var(--space-section) var(--space-section) 0; }
.lb-cap { padding: var(--space-md) var(--space-lg) var(--space-lg); text-align: center; }
.lb-count { color: var(--steel-soft); margin-left: var(--space-sm); font-variant-numeric: tabular-nums; }
.lb-btn { position: absolute; border: 0; border-radius: var(--radius-btn); cursor: pointer; background: rgba(245, 243, 239, .12);
  color: var(--steel-ink); font: var(--fw-bold) var(--fs-lead)/1 var(--text); width: 52px; height: 52px; }
.lb-btn:hover { background: var(--accent); color: var(--accent-ink); }
.lb-prev { left: var(--space-sm); top: 50%; transform: translateY(-50%); }
.lb-next { right: var(--space-sm); top: 50%; transform: translateY(-50%); }
.lb-close { right: var(--space-sm); top: var(--space-sm); }
@media (max-width: 1100px) {
  .gal { padding: var(--space-2xl) var(--pad) 0; }
  .gf { padding: var(--space-sm) var(--space-md); }
  .gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xs); }
  .lb-img { padding: var(--space-section) 0 0; }
  .lb-prev, .lb-next { top: auto; bottom: var(--space-md); transform: none; }
  .lb-prev { left: calc(50% - 52px - var(--space-xs)); } /* the pair centered under the caption */
  .lb-next { right: auto; left: calc(50% + var(--space-xs)); }
  .lb-cap { padding-bottom: calc(var(--space-md) * 2 + 52px); }
}

/* full horizontal logo (mark + name) in the footer */
.logo-foot { height: 56px; width: auto; }

/* rounded corners on framed photos: large ones --radius-lg, thumbnails --radius-sm (full-bleed backgrounds stay square) */
.hero-pic, .list-pic, .svc-pic, .g img, .quote-row img, .contact-pic { border-radius: var(--radius-lg); }

/* ---------- about (home, between photo sections): beige band, who we are + three promises ---------- */
.about { background: var(--surface); padding: var(--gap) var(--pad); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-2xl) var(--m); }
.about-text { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: var(--space-lg); }
.about h2 { font-size: var(--fs-h2); }
.about-text p { font-size: var(--fs-lead); line-height: 1.45; color: var(--muted); max-width: 44ch; }
.promises { grid-column: 1 / -1; list-style: none; margin: 0; padding: var(--space-xl) 0 0; border-top: 1px solid rgba(30, 41, 59, .16);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--m); }
.promises li { display: flex; flex-direction: column; gap: var(--space-sm); }
.promises svg { width: 32px; height: 32px; color: var(--accent-deep); margin-bottom: var(--space-sm); }
.promises h3 { font-size: var(--fs-lead); font-weight: var(--fw-bold); }
.promises p { color: var(--muted); max-width: 32ch; }
@media (max-width: 1100px) {
  .about { grid-template-columns: 1fr; padding: var(--space-section) var(--pad); gap: var(--space-xl); }
  .about-text, .promises { grid-column: 1; }
  .promises { grid-template-columns: 1fr; gap: var(--space-lg); }
  .promises li { display: grid; grid-template-columns: 28px 1fr; gap: var(--space-xs) var(--space-md); } /* icon beside the text, so the band stays short */
  .promises svg { grid-row: 1 / span 2; width: 28px; height: 28px; margin: 0; }
}

/* ---------- testimonials: three cards (home, after the verbs) ---------- */
.testi { padding: var(--gap) var(--pad); }
.testi h2 { font-size: var(--fs-h2); }
.testi-sub { margin-top: var(--space-md); font-size: var(--fs-lead); line-height: 1.35; color: var(--muted); max-width: 40ch; }
.testi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--m); margin-top: var(--space-2xl); }
.testi-card { background: var(--surface); border-radius: var(--radius-lg); display: flex; }
.testi-card blockquote { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-xl); padding: var(--space-xl); width: 100%; }
.testi-card blockquote > p { font-size: var(--fs-lead); line-height: 1.45; font-weight: var(--fw-medium); }
.testi-card blockquote > p::before { content: "„"; display: block; font-family: var(--display); font-weight: var(--fw-display); font-size: 80px; line-height: .5; color: var(--accent);
  margin: -.415em 0 calc(var(--space-xl) + .19em); } /* the low „ sits deep in its box: lift it so the ink starts at the card padding and ends --space-xl above the text */
.testi-card footer { display: flex; align-items: center; gap: var(--space-md); }
.testi-card footer img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); }
.testi-card footer span { display: flex; flex-direction: column; color: var(--muted); font-size: var(--fs-meta); }
.testi-card footer strong { color: var(--ink); font-size: var(--fs-label); font-weight: var(--fw-bold); }
@media (max-width: 1100px) { .testi-grid { grid-template-columns: 1fr; gap: var(--space-md); margin-top: var(--space-xl); } }
