/* Tamazi's Home Improvement, SIDE E (design started on Side B; later sections are marked per prompt)
   Brand rules: the tamazi-brand skill (C:/Users/Petko/.claude/skills/tamazi-brand).
   Direction: warm, premium craftsman. Light and flat: plaster and limestone grounds, ink text,
   a deep brass accent from the fixtures in their work. The photos carry the colour; the page frames them.
   Rules followed (design-taste, by hand): photo-led, flat colour tokens, every photo used once, no captions,
   no scroll fades, hover lift 2px, photo zoom 1.03, touch targets 44px, hero enters once. */
:root {
  --ground: #F4EFE7;      /* plaster */
  --stone: #E9E1D4;       /* limestone */
  --paper: #FBF9F5;
  --ink: #1F1B17;
  --ink-2: #3A332C;
  --muted: #5F564D;
  --line: #D8CEBF;
  --brass: #8F5A22;       /* text-safe brass on light grounds */
  --brass-bright: #C08A4A;
  --walnut: #2B231D;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 6px;
  --wrap: 1280px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; }
h1, h2 { font-family: var(--serif); letter-spacing: -.015em; font-variation-settings: "opsz" 120; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; }
h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: var(--r); font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.kicker { margin: 0 0 14px; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-sub { color: var(--muted); font-size: 1.08rem; max-width: 36rem; margin-top: 14px; }

/* Buttons: one style family, verb + object labels */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: var(--r);
  border: 1.5px solid transparent; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--brass); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 239, 231, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; flex: none; background: var(--ink); color: var(--brass-bright); border-radius: var(--r); font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.brand-sub { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 600; font-size: .95rem; background-image: linear-gradient(var(--brass), var(--brass)); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 12px 75%; transition: background-size .25s var(--ease); }
.nav a:hover { background-size: calc(100% - 24px) 1.5px; }
.nav-estimate { display: none !important; }
.header-phone { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: var(--r); background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; transition: background .2s; }
.header-phone:hover { background: var(--brass); }
.menu-toggle { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); min-height: calc(100svh - 72px); }
.hero-copy { align-self: center; padding: 56px clamp(28px, 4.5vw, 72px) 56px max(24px, calc((100vw - var(--wrap)) / 2)); }
.hero h1 { font-size: clamp(2.3rem, 3.6vw, 3.4rem); line-height: 1.04; margin-bottom: 22px; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 32rem; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-facts { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brass-bright); }
.hero { position: relative; }
.hero-copy { position: relative; z-index: 2; }
/* plaster-coloured glow around the hero text, so veins fade out behind the letters */
.hero-copy h1, .hero-copy .lede, .hero-copy .kicker, .hero-facts { text-shadow: 0 0 3px var(--ground), 0 0 10px var(--ground), 0 0 18px var(--ground); }
.hero-photo { position: relative; overflow: hidden; background: var(--stone); z-index: 0; }
/* Generative marble veins: full width, strong on the plaster side, faint over the photo */
.hero-veins {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 36%, rgba(0,0,0,.42) 46%, rgba(0,0,0,.3) 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 36%, rgba(0,0,0,.42) 46%, rgba(0,0,0,.3) 100%);
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-veins.is-ready { opacity: 1; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }

/* Hero enters once */
[data-enter] { animation: enter .6s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Services index */
.services { background: var(--paper); }
.services-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.svc-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.svc { display: grid; grid-template-columns: 44px 1fr; gap: 4px 18px; padding: 22px 0; border-bottom: 1px solid var(--line); cursor: default; transition: background .2s; }
.svc-num { font-family: var(--serif); font-size: 1.05rem; color: var(--muted); padding-top: 2px; transition: color .2s; }
.svc h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; letter-spacing: -.01em; transition: color .2s; }
.svc-text p { margin: 6px 0 0; color: var(--muted); font-size: .98rem; max-width: 30rem; }
.svc-link { grid-column: 2; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: .92rem; color: var(--brass); text-decoration: none; }
.svc-link::after { content: "→"; margin-left: 8px; transition: transform .2s var(--ease); }
.svc-link:hover::after { transform: translateX(4px); }
.svc.is-active .svc-num, .svc.is-active h3 { color: var(--brass); }
.svc-thumb { display: none; }
.svc-stage { position: sticky; top: 100px; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--stone); }
.svc-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); }
.svc-stage img.is-on { opacity: 1; }

/* Featured */
.featured { background: var(--stone); }
.featured-grid { display: grid; grid-template-columns: minmax(0, 34fr) minmax(0, 40fr) minmax(0, 22fr); gap: clamp(24px, 3.5vw, 52px); align-items: center; }
.feat-main, .feat-side { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--r); overflow: hidden; display: block; }
.feat-main img { width: 100%; aspect-ratio: 3 / 4.4; object-fit: cover; transition: transform .6s var(--ease); }
.feat-side img { width: 100%; aspect-ratio: 1 / 1.7; object-fit: cover; transition: transform .6s var(--ease); }
.feat-main:hover img, .feat-side:hover img { transform: scale(1.03); }
.feat-side { align-self: end; }
.feat-copy h2 { margin-bottom: 18px; }
.feat-copy > p { color: var(--ink-2); font-size: 1.05rem; }
.specs { margin: 26px 0 0; border-top: 1px solid #CDBFAC; }
.specs div { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid #CDBFAC; font-size: .97rem; }
.specs dt { font-weight: 700; color: var(--brass); }
.specs dd { margin: 0; }

/* Gallery */
.work { background: var(--ground); }
.work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { min-height: 44px; padding: 0 18px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-size: .92rem; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.filter:hover { border-color: var(--ink); }
.filter.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 12px; }
.tile { grid-row: span 2; }
.tile.wide { grid-column: span 2; }
.tile button { display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; cursor: zoom-in; background: var(--stone); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.tile button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(31, 27, 23, .14); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tile button:hover img { transform: scale(1.03); }
.tile.is-hidden { display: none; }

/* Behind the walls */
.walls { background: var(--paper); }
.walls-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.walls-copy h2 { margin-bottom: 20px; }
.walls-copy p:not(.kicker) { color: var(--ink-2); font-size: 1.05rem; max-width: 34rem; }
.walls-photos { display: grid; grid-template-columns: 1.7fr 1fr; gap: 12px; align-items: end; }
.walls-photos img { width: 100%; object-fit: cover; border-radius: var(--r); }
.walls-a { aspect-ratio: 4 / 3.4; }
.walls-b { aspect-ratio: 3 / 4.6; }

/* Process: flat walnut band */
.process { background: var(--walnut); color: var(--paper); }
.process .section-sub { color: #CBBFB0; }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 28px 0 0; }
.steps li::before { content: ""; position: absolute; left: 52px; right: 0; top: 22px; height: 1px; background: #5A4C40; }
.steps li:last-child::before { display: none; }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--brass-bright); color: var(--brass-bright); font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin-bottom: 22px; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: #CBBFB0; font-size: .98rem; margin: 0; }

/* Contact */
.contact { background: var(--ground); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.big-phone { display: inline-block; margin: 26px 0 6px; font-family: var(--serif); font-size: clamp(2.3rem, 4.4vw, 3.4rem); font-weight: 500; text-decoration: none; letter-spacing: -.01em; }
.big-phone:hover { color: var(--brass); }
.note { color: var(--muted); font-size: .95rem; }
.contact-meta { margin: 30px 0 0; border-top: 1px solid var(--line); }
.contact-meta div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-meta dt { font-weight: 700; color: var(--muted); font-size: .92rem; }
.contact-meta dd { margin: 0; }
.quote-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote-form label { display: grid; gap: 7px; font-weight: 700; font-size: .92rem; }
.opt { font-weight: 500; color: var(--muted); }
.quote-form input, .quote-form select, .quote-form textarea { font: inherit; font-size: 1rem; font-weight: 500; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--r); padding: 12px 14px; min-height: 50px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.quote-form textarea { resize: vertical; min-height: 120px; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(192, 138, 74, .25); }
.quote-form .invalid { border-color: #A3341F; }
.field-err { font-weight: 600; font-size: .85rem; color: #A3341F; min-height: 0; }
.field-err:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #2F6B3A; }
.form-status.err { color: #A3341F; }

/* Footer */
.site-footer { background: var(--ink); color: #D9CFC2; padding: 52px 0 36px; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { color: var(--paper); }
.footer-brand a { text-decoration: none; }
.footer-brand a:hover { color: var(--brass-bright); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 600; }
.footer-nav a:hover { color: var(--brass-bright); }
.copyright { width: 100%; margin: 0; padding-top: 22px; border-top: 1px solid #3A332C; font-size: .85rem; color: #A89C8E; }
.mobile-call { display: none; }

/* Lightbox */
.lightbox { border: 0; padding: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: rgba(20, 17, 14, .97); }
.lightbox[open] { display: grid; grid-template-columns: 72px minmax(0, 1fr) 72px; align-items: center; justify-items: center; }
.lightbox::backdrop { background: rgba(20, 17, 14, .9); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 80px); object-fit: contain; border-radius: 2px; }
.lb-close, .lb-prev, .lb-next { width: 56px; height: 56px; border: 0; border-radius: 50%; background: rgba(251, 249, 245, .1); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; transition: background .2s; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(251, 249, 245, .22); }
.lb-close { position: absolute; top: 14px; right: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav a { padding: 0 9px; font-size: .9rem; }
  .featured-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .feat-copy { grid-column: 1 / -1; grid-row: 1; }
  .feat-side { align-self: start; }
  .feat-side img { aspect-ratio: 3 / 4.4; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .menu-toggle { display: grid; align-content: center; gap: 7px; width: 48px; height: 48px; margin-left: 4px; padding: 0 13px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper); cursor: pointer; }
  .menu-toggle span { display: block; height: 2px; background: var(--ink); transition: transform .25s var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .header-phone { margin-left: auto; }
  .nav { position: fixed; inset: 72px 0 0; margin: 0; z-index: 49; flex-direction: column; gap: 0; padding: 24px; background: var(--ground); visibility: hidden; opacity: 0; transition: opacity .25s var(--ease), visibility .25s; }
  .nav.open { visibility: visible; opacity: 1; }
  .nav a { min-height: 60px; padding: 0; font-family: var(--serif); font-size: 1.9rem; font-weight: 500; border-bottom: 1px solid var(--line); background: none; }
  .nav-estimate { display: inline-flex !important; color: var(--brass); }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ground); }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; aspect-ratio: 16 / 10; }
  .hero-veins { -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.3) 38%, #000 52%); mask-image: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.3) 38%, #000 52%); }
  .hero-copy { padding: 36px 24px 56px; }
  .services-grid, .walls-grid, .contact-grid { grid-template-columns: 1fr; }
  .svc-stage { display: none; }
  .svc { grid-template-columns: 36px 1fr; }
  .svc-thumb { display: block; grid-column: 1 / -1; grid-row: 1; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); margin-bottom: 12px; }
  .svc-num { grid-column: 1; grid-row: 2; padding-top: 6px; }
  .svc-text { grid-column: 2; grid-row: 2; }
  .svc-link { grid-row: 3; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 10px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .steps li:nth-child(2)::before { display: none; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .header-phone { display: none; }
  .menu-toggle { margin-left: auto; }
  .brand-name { font-size: 1.2rem; }
  .brand-sub { font-size: .62rem; }
  .hero-photo { aspect-ratio: 4 / 3.4; }
  .hero-copy { padding: 28px 16px 48px; }
  .hero h1 { font-size: clamp(2rem, 8.6vw, 2.6rem); }
  .lede { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-facts { flex-direction: column; gap: 8px; }
  .featured-grid { gap: 12px; }
  .feat-copy { margin-bottom: 14px; }
  .specs div { grid-template-columns: 82px 1fr; gap: 10px; }
  .work-head { margin-bottom: 24px; }
  .gallery { grid-auto-rows: 150px; gap: 8px; }
  .tile.wide { grid-column: span 2; grid-row: span 1; }
  .walls-photos { grid-template-columns: 1.6fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding: 0 0 30px; }
  .steps li::before { display: block !important; left: 21.5px; right: auto; top: 50px; bottom: 6px; width: 1px; height: auto; }
  .steps li:last-child::before { display: none !important; }
  .step-num { grid-row: span 2; margin: 0; }
  .field-row { grid-template-columns: 1fr; }
  .contact-meta div { grid-template-columns: 1fr; gap: 2px; }
  .site-footer { padding-bottom: 104px; }
  .footer-brand { align-items: flex-start; }
  .mobile-call { display: flex; align-items: center; justify-content: center; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; min-height: 54px; border-radius: var(--r); background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(31, 27, 23, .28); transform: translateY(150%); transition: transform .35s var(--ease); }
  .mobile-call.is-shown { transform: none; }
  .lightbox[open] { grid-template-columns: minmax(0, 1fr); }
  .lb-prev, .lb-next { position: absolute; bottom: 18px; }
  .lb-prev { left: 18px; }
  .lb-next { right: 18px; }
  .lightbox img { max-height: calc(100vh - 170px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .btn:hover, .tile button:hover { transform: none; }
  .tile button:hover img, .feat-main:hover img, .feat-side:hover img { transform: none; }
}

/* ---------- Behind the walls, 3D (Side D, Prompt 4) ---------- */
.build { background: var(--paper); }
.build-pin { display: none; }
.build.has-3d .build-pin { display: block; height: 100vh; height: 100svh; padding-top: 72px; box-sizing: border-box; }
.build.has-3d .build-fallback { display: none; }
.build-fallback { padding: clamp(72px, 9vw, 120px) 0; }
.build-grid { display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); gap: clamp(24px, 4vw, 64px); align-items: center; height: 100%; }
.build-copy h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin-bottom: 30px; }
.build-steps { list-style: none; margin: 0; padding: 0; position: relative; min-height: 230px; }
.build-step { position: absolute; left: 0; right: 0; top: 0; opacity: 0; transform: translateY(18px); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.build-step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.build-num { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--brass); margin-bottom: 6px; }
.build-step h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2vw, 1.85rem); line-height: 1.15; letter-spacing: -.01em; margin-bottom: 10px; }
.build-step p { color: var(--ink-2); max-width: 30rem; }
.build-cta { margin-top: 6px; }
.build-progress { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 22px; padding-top: 14px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.build-progress span { transition: color .3s; }
.build-progress span.is-on { color: var(--brass); }
.build-bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--line); }
.build-bar b { display: block; width: 100%; height: 100%; background: var(--brass); transform-origin: left; transform: scaleX(0); }
.build-stage { position: relative; height: min(76vh, 700px); }
.build-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Reduced motion: no pin, finished room, all steps listed */
.build.is-static .build-pin { height: auto; padding: clamp(72px, 9vw, 120px) 0; }
.build.is-static .build-steps { min-height: 0; }
.build.is-static .build-step { position: static; opacity: 1; transform: none; margin-bottom: 22px; }
.build.is-static .build-progress { display: none; }

@media (max-width: 900px) {
  .build-grid { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: start; align-items: start; gap: 6px; }
  .build-stage { order: -1; height: 44vh; height: 44svh; margin: 0 -24px; }
  .build-copy h2 { font-size: 1.45rem; margin-bottom: 14px; }
  .build-copy .kicker { margin-bottom: 6px; }
  .build-steps { min-height: 190px; }
  .build-step h3 { font-size: 1.3rem; }
  .build-step p { font-size: .97rem; margin-bottom: .6em; }
  .build-progress { margin-top: 4px; font-size: .72rem; }
  .build.is-static .build-stage { height: 52vw; }
}
@media (max-width: 600px) {
  .build-stage { margin: 0 -16px; height: 40vh; height: 40svh; }
  .build-copy h2 { display: none; }
  .build-steps { min-height: 210px; }
}
@media (max-height: 640px) and (min-width: 901px) {
  .build-copy h2 { font-size: 1.7rem; margin-bottom: 16px; }
}

/* ---------- Prompt 5 ---------- */
/* Calm estimate section: nothing moves; buttons change colour only */
.contact .btn:hover, .contact .btn:active { transform: none; }
.contact .big-phone { transition: color .2s; }

/* Reduce motion (system setting, or ?reduce-motion for testing): everything rests, nothing stays hidden */
html.reduce-motion { scroll-behavior: auto; }
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after {
  animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important;
}
html.reduce-motion .btn:hover, html.reduce-motion .tile button:hover { transform: none; box-shadow: none; }
html.reduce-motion .tile button:hover img, html.reduce-motion .feat-main:hover img, html.reduce-motion .feat-side:hover img { transform: none; }
html.reduce-motion .svc-link:hover::after { transform: none; }
html.reduce-motion .hero-veins { opacity: .85; }
html.reduce-motion .mobile-call { transition: none; }

/* Phones: keep the 3D section's text and button clear of the floating call bar */
@media (max-width: 600px) {
  .build.has-3d .build-pin { padding-bottom: 74px; }
  .build-stage { height: 36vh; height: 36svh; }
}
@media (max-width: 600px) and (max-height: 600px) {
  .build-stage { height: 30svh; }
  .build-step p { font-size: .92rem; }
  .build-steps { min-height: 190px; }
}

/* ---------- bathrooms page ---------- */
/* Breadcrumb in the hero: the link back to the home page */
.crumbs ol { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; font-size: .95rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--brass); text-decoration: none; background-image: linear-gradient(var(--brass), var(--brass)); background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 75%; transition: background-size .25s var(--ease); }
.crumbs a:hover { background-size: 100% 1.5px; }
.bath-hero .hero-photo img { object-position: 50% 58%; }

/* Scope: what we build, with two photos */
.bath-scope { background: var(--paper); }
.scope-grid { display: grid; grid-template-columns: minmax(0, 56fr) minmax(0, 44fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.scope-list { list-style: none; margin: 36px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
.scope-list li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.scope-list h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; letter-spacing: -.01em; }
.scope-list p { margin: 6px 0 0; color: var(--muted); font-size: 1rem; }
.scope-photos { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.scope-photos img { width: 100%; object-fit: cover; border-radius: var(--r); background: var(--stone); }
.scope-a { aspect-ratio: 3 / 4.6; }
.scope-b { aspect-ratio: 3 / 4.2; }

/* Gallery: one row of four on desktop, link back to the home page's gallery below */
.work-more { margin-top: 24px; }

@media (max-width: 900px) {
  .scope-grid { grid-template-columns: 1fr; }
  .scope-photos { max-width: 560px; }
}
@media (max-width: 600px) {
  .scope-list { grid-template-columns: 1fr; }
  .scope-a { aspect-ratio: 3 / 4.4; }
}
html.reduce-motion .crumbs a { transition: none; }

/* Home page: link from a service row to its own page */
.svc-text .svc-page { margin-top: 4px; }

/* ---------- Behind the walls: LEFT-TO-RIGHT controls (replaces the scroll pin) ---------- */
.build.has-3d .build-pin { height: auto; padding: clamp(72px, 9vw, 120px) 0; }
.build-stage { touch-action: pan-y; cursor: ew-resize; }
.build-controls { margin-top: 26px; }
.build-slider { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 14px; }
.build-arrow {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper);
  font-size: 1.7rem; line-height: 1; padding-bottom: 3px; cursor: pointer; color: var(--ink);
  transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.build-arrow:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.build-arrow:disabled { opacity: .3; cursor: default; }
.build-range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; --p: 0%; }
.build-range:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 4px; }
.build-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--brass) var(--p), var(--line) var(--p)); }
.build-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line); }
.build-range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--brass); }
.build-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; background: var(--brass-bright); border: 3px solid var(--paper); box-shadow: 0 1px 6px rgba(31, 27, 23, .35); }
.build-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--brass-bright); border: 3px solid var(--paper); box-shadow: 0 1px 6px rgba(31, 27, 23, .35); }
.build-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 6px 62px 0; }
.build-stages button {
  min-height: 44px; border: 0; background: none; padding: 0 2px; cursor: pointer;
  font-weight: 700; font-size: .86rem; color: var(--muted); border-top: 2px solid transparent; transition: color .2s, border-color .2s;
}
.build-stages button:hover { color: var(--ink); }
.build-stages button.is-done { color: var(--ink-2); }
.build-stages button.is-on { color: var(--brass); border-top-color: var(--brass); }
.build-hint { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.build-steps { min-height: 210px; }

@media (max-width: 900px) {
  .build.has-3d .build-pin { padding: 56px 0 64px; }
  .build-stage { height: 52vw; max-height: 440px; margin: 0 -24px 8px; }
}
@media (max-width: 600px) {
  .build.has-3d .build-pin { padding: 40px 0 56px; }
  .build-stage { height: 72vw; margin: 0 -16px 6px; }
  .build-copy h2 { display: block; font-size: 1.5rem; }
  .build-steps { min-height: 200px; }
  .build-slider { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 10px; }
  .build-arrow { width: 44px; height: 44px; }
  .build-stages { margin: 4px 0 0; }
  .build-stages button { font-size: .78rem; }
}
html.reduce-motion .build-step { transition: none; }
/* Phones: headline, then the room, then the controls right under it, then the step text */
@media (max-width: 900px) {
  .build.has-3d .build-copy { display: contents; }
  .build.has-3d .build-grid { gap: 0; }
  .build.has-3d .build-copy > .kicker { order: 1; }
  .build.has-3d .build-copy > h2 { order: 2; margin-bottom: 16px; }
  .build.has-3d .build-stage { order: 3; }
  .build.has-3d .build-controls { order: 4; margin-top: 4px; }
  .build.has-3d .build-steps { order: 5; margin-top: 18px; }
}

/* Behind the walls: real job photos under the 3D room */
.build-real { display: grid; grid-template-columns: minmax(0, 30fr) minmax(0, 46fr) minmax(0, 20fr); gap: clamp(14px, 2vw, 24px); align-items: end; margin-top: clamp(36px, 5vw, 64px); padding-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.build-real-text { align-self: center; }
.build-real-text p:not(.kicker) { color: var(--ink-2); max-width: 30rem; margin: 0; }
.build-real-a, .build-real-b { padding: 0; border: 0; background: var(--stone); border-radius: var(--r); overflow: hidden; cursor: zoom-in; display: block; }
.build-real-a img, .build-real-b img { width: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.build-real-a img { aspect-ratio: 4 / 3; }
.build-real-b img { aspect-ratio: 3 / 4.6; }
.build-real-a:hover img, .build-real-b:hover img { transform: scale(1.03); }
html.reduce-motion .build-real-a:hover img, html.reduce-motion .build-real-b:hover img { transform: none; }
@media (max-width: 900px) {
  .build-real { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
  .build-real-text { grid-column: 1 / -1; }
}

/* Footer credit (Petko, 2026-12-01): "Designed and powered by Stetera.com" */
.copyright { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }
.copyright .credit a { color: #D9CFC2; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.copyright .credit a:hover { color: var(--brass-bright); }
