/* JERZ, option "fiveweeks": shared tokens, header, buttons, sliders, footer, phone bar.
   Palette from the finished rooms: marble-look tile white, matte-black fixtures, vein grey,
   wood-look plank, and painter's-tape blue (the tape on the new floors) as the one accent. */
@property --r { syntax: '<length>'; inherits: false; initial-value: 0px; }
:root {
  --wall: #F1F1EE;      /* marble-look tile, wall white */
  --tile: #E3E4E0;      /* tile in shadow, quiet surfaces */
  --vein: #B9BCBA;      /* marble vein grey: rules, ticks */
  --ink: #1B1B1B;       /* matte-black fixtures, text */
  --stone: #5F6266;     /* secondary text, 5.4:1 on wall */
  --plank: #6B5E52;     /* wood-look plank, used on the ruler */
  --tape: #2272B8;      /* painter's tape blue, the accent */
  --tape-lite: #8FC2EE; /* tape blue on black */
  --white: #FFFFFF;
  --head: 76px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-move: cubic-bezier(0.77, 0, 0.175, 1);
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--wall); color: var(--ink); font: 400 17px/1.55 var(--body); }
img { display: block; max-width: 100%; }
::selection { background: var(--tape); color: var(--white); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; border-radius: 4px; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-variation-settings: "wdth" 82; font-weight: 650; letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 60; background: var(--ink); color: var(--white); padding: 12px 16px; border-radius: 8px; }
.skip-link:focus-visible { top: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 8px; border: 2px solid var(--ink); background: transparent; color: var(--ink); font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; touch-action: manipulation; white-space: nowrap; transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), transform 120ms var(--ease-out); }
.btn:hover { background: var(--ink); color: var(--white); }
.btn:active { transform: scale(0.97); }
.btn.blue { background: var(--tape); border-color: var(--tape); color: var(--white); }
.btn.blue:hover { background: #1A5F9C; border-color: #1A5F9C; }
.btn.black { background: var(--ink); color: var(--white); }
.btn.black:hover { background: #333; border-color: #333; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--head); display: flex; align-items: center; gap: 28px; padding: 0 clamp(16px, 4vw, 56px); background: var(--wall); transition: box-shadow 200ms var(--ease-out); }
.top.scrolled { box-shadow: 0 1px 0 var(--vein); }
.top .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; min-height: 44px; }
.top .mark { display: block; width: 48.75px; height: 60px; }
.top .mark img { width: 100%; height: 100%; }
.top .name { font: 650 17px/1.1 var(--display); font-variation-settings: "wdth" 82; letter-spacing: -0.01em; }
.top .name small { display: block; font: 400 13px/1.3 var(--body); color: var(--stone); letter-spacing: 0; }
.top nav { display: flex; gap: 4px; margin-left: 8px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 500; font-size: 16px; border-radius: 6px; }
.top nav a:hover { background: var(--tile); }
.top nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--tape); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.top .acts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top .tel { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; white-space: nowrap; font: 600 17px/1 var(--body); font-variant-numeric: tabular-nums; text-decoration: none; }
.top .tel:hover { text-decoration: underline; }
.top .btn { min-height: 44px; padding: 0 16px; }
.top .menu { display: none; }

/* before / after slider (phones on the homepage, everywhere in the trophy room) */
.ba { position: relative; overflow: hidden; background: var(--tile); border-radius: 6px; user-select: none; -webkit-user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 calc(100% - var(--p, 50%)) 0 0); }
.ba .seam { position: absolute; top: 0; bottom: 0; left: var(--p, 50%); width: 3px; margin-left: -1.5px; background: var(--tape); pointer-events: none; }
.ba .knob { position: absolute; top: 86%; left: var(--p, 50%); width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: var(--tape); border: 3px solid var(--white); box-shadow: 0 2px 10px rgba(0,0,0,.28); display: grid; place-items: center; color: var(--white); touch-action: none; cursor: ew-resize; }
.ba .knob svg { width: 16px; height: 16px; }
.ba .lab { position: absolute; bottom: 12px; padding: 6px 10px; border-radius: 6px; font: 600 14px/1 var(--body); pointer-events: none; }
.ba .lab.l { left: 12px; background: var(--ink); color: var(--white); }
.ba .lab.r { right: 12px; background: var(--white); color: var(--ink); }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; pointer-events: none; }
.ba:has(input:focus-visible) { outline: 3px solid var(--tape); outline-offset: 3px; }

/* footer */
.foot { background: var(--ink); color: var(--white); padding: 72px clamp(16px, 5vw, 72px) 28px; }
.foot .grid { display: grid; grid-template-columns: auto 1fr auto; gap: 32px 56px; align-items: start; max-width: 1320px; margin: 0 auto; }
.foot .crest { width: 96px; height: auto; filter: invert(1); }
.foot h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); max-width: 21ch; }
.foot p { color: #C9CBCC; max-width: 52ch; margin-top: 14px; }
.foot .acts { display: flex; flex-direction: column; gap: 10px; min-width: 240px; }
.foot .btn { border-color: var(--white); color: var(--white); }
.foot .btn:hover { background: var(--white); color: var(--ink); }
.foot .btn.blue { border-color: var(--tape); }
.foot .btn.blue:hover { background: #1A5F9C; color: var(--white); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 28px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; margin-left: -8px; color: #E6E7E7; }
.foot .fine { max-width: 1320px; margin: 48px auto 0; padding-top: 20px; border-top: 1px solid #3A3A3A; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #C2C5C8; font-size: 14px; }

/* phone bar */
.bar { display: none; }

@media (max-width: 1100px) {
  .top nav { display: none; }
  .top .menu { display: inline-flex; }
  .top nav.open { display: flex; position: fixed; top: var(--head); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px clamp(16px, 4vw, 56px) 16px; background: var(--wall); border-bottom: 1px solid var(--vein); box-shadow: 0 12px 24px rgba(0,0,0,.12); }
  .top nav.open a { min-height: 52px; font-size: 18px; border-bottom: 1px solid var(--tile); border-radius: 0; }
}
@media (max-width: 900px) {
  .top .acts .tel { display: none; }
}
@media (max-width: 760px) {
  :root { --head: 64px; }
  body { padding-bottom: 76px; }
  .top { gap: 10px; }
  .top .mark { width: 39px; height: 48px; }
  .top .name small { display: none; }
  .top .acts .btn:not(.menu), .top .acts .tel { display: none; }
  .bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: fixed; inset: auto 0 0 0; z-index: 45; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--wall); border-top: 1px solid var(--vein); }
  .bar .btn { min-height: 52px; padding: 0 8px; width: 100%; }
  .foot .grid { grid-template-columns: 1fr; }
  .foot .crest { width: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
