@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url(../fonts/archivo.woff2) format('woff2-variations'), url(../fonts/archivo.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-display: swap; font-weight: 200 900; src: url(../fonts/source-serif-4.woff2) format('woff2-variations'), url(../fonts/source-serif-4.woff2) format('woff2'); }
@font-face { font-family: 'Source Serif 4'; font-style: italic; font-display: swap; font-weight: 200 900; src: url(../fonts/source-serif-4-italic.woff2) format('woff2-variations'), url(../fonts/source-serif-4-italic.woff2) format('woff2'); }
/* Refinish Wraps site styles
   Layout: asymmetric editorial grid. Wide expanded grotesk for display, a serif for reading,
   real material textures (drawn in js/site.js) carry the visual weight instead of decoration. */
:root {
  --ink: #111315;
  --ink-2: #1A1C1F;
  --ink-3: #26292D;
  --paper: #F4F2EE;
  --bone: #FAF9F6;
  --plaster: #E7E2D8;
  --gold: #C8A24B;
  --gold-hi: #D9B65F;
  --gold-ink: #75591B;
  --walnut: #5E3D24;
  --text: #2B2A27;
  --mute: #66625B;
  --mute-dk: #AAA59B;
  --line: rgba(17, 19, 21, .13);
  --line-dk: rgba(244, 242, 238, .15);

  --display: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --ui: 'Archivo', Arial, sans-serif;

  --max: 1320px;
  --gl: max(20px, env(safe-area-inset-left, 0px));
  --gr: max(20px, env(safe-area-inset-right, 0px));
  --band: clamp(5rem, 10vw, 9.5rem);
  --head-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--serif); font-size: 1.125rem; line-height: 1.62;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, canvas, svg { display: block; max-width: 100%; }
figure { margin: 0; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); color: var(--ink); text-wrap: balance; font-weight: 650; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: var(--paper); }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
.band { padding-block: var(--band); }
.dark { background: var(--ink); color: #D9D5CD; }
.plaster { background: var(--plaster); }
.bone { background: var(--bone); }

/* Type scale */
.display-xl { font-size: clamp(3rem, 8.2vw, 7.4rem); line-height: .93; letter-spacing: -0.035em; font-weight: 700; font-stretch: 112%; }
.display-l { font-size: clamp(2.4rem, 5.6vw, 4.9rem); line-height: .98; letter-spacing: -0.03em; font-weight: 680; font-stretch: 110%; }
.display-m { font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.04; letter-spacing: -0.022em; font-weight: 650; font-stretch: 106%; }
.title-s { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em; font-weight: 650; }
.lead { font-size: clamp(1.22rem, 1.9vw, 1.5rem); line-height: 1.5; color: var(--text); max-width: 38em; }
.dark .lead { color: #D9D5CD; }
.statement { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.65rem); line-height: 1.28; letter-spacing: -0.012em; color: var(--ink); font-weight: 400; max-width: 30em; }
.small { font-family: var(--ui); font-size: .9rem; line-height: 1.5; color: var(--mute); }
.dark .small { color: var(--mute-dk); }
.ui { font-family: var(--ui); }
.prose p + p { margin-top: 1.1em; }
.prose { max-width: 36em; }
.prose a { color: var(--ink); }
.dark .prose a { color: var(--paper); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--ui); font-weight: 600; font-size: 1rem; letter-spacing: -0.005em;
  min-height: 52px; padding: .85rem 1.55rem; border-radius: 2px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-hi); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-3); }
.btn-ghost { border-color: rgba(17,19,21,.35); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.dark .btn-ghost, .on-image .btn-ghost { border-color: rgba(244,242,238,.45); color: var(--paper); }
.dark .btn-ghost:hover, .on-image .btn-ghost:hover { border-color: var(--paper); }
.textlink { font-family: var(--ui); font-weight: 600; font-size: 1rem; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; }
.dark .textlink { color: var(--paper); }
.textlink:hover { border-color: currentColor; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--paper); z-index: 61; }
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60; height: var(--head-h);
  background: rgba(244,242,238,.95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); transition: background .3s, border-color .3s;
}
.head-row { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: block; flex: 0 0 auto; }
.brand img { height: 36px; width: auto; }
.brand .logo-light { display: none; }
.nav { display: flex; align-items: center; gap: 1.9rem; margin-left: auto; list-style: none; }
.nav > li { position: relative; }
.nav a, .nav button.navlink {
  font-family: var(--ui); font-size: .95rem; font-weight: 500; color: var(--ink); text-decoration: none;
  background: none; border: 0; padding: .5rem 0; cursor: pointer; display: inline-flex; align-items: center; gap: .35rem;
}
.nav a:hover, .nav button.navlink:hover { color: var(--gold-ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gold); }
.drop {
  position: absolute; top: calc(100% + 10px); left: -1.25rem; min-width: 290px; list-style: none;
  background: var(--bone); border: 1px solid var(--line); border-radius: 3px; padding: .6rem;
  box-shadow: 0 18px 40px rgba(17,19,21,.14); display: none;
}
.drop a { display: block; padding: .6rem .75rem; border-radius: 2px; }
.drop a small { display: block; font-weight: 400; color: var(--mute); font-size: .82rem; margin-top: .1rem; }
.drop a:hover { background: var(--plaster); color: var(--ink); }
.has-drop.open .drop { display: block; }
.head-cta { display: flex; align-items: center; gap: 1.25rem; }
.head-phone { font-family: var(--ui); font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.head-cta .btn { min-height: 44px; padding: .6rem 1.15rem; font-size: .93rem; }
.menu-btn { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: none; cursor: pointer; padding: 11px; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Header over the home hero */
.over-hero .site-head { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.over-hero .site-head .nav > li > a, .over-hero .site-head .nav button.navlink, .over-hero .head-phone { color: var(--paper); }
.over-hero .brand .logo-dark { display: none; }
.over-hero .brand .logo-light { display: block; }
.over-hero .menu-btn span { background: var(--paper); }
.over-hero.scrolled .site-head { background: rgba(244,242,238,.95); border-color: var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.over-hero.scrolled .site-head .nav > li > a, .over-hero.scrolled .site-head .nav button.navlink, .over-hero.scrolled .head-phone { color: var(--ink); }
.over-hero.scrolled .brand .logo-dark { display: block; }
.over-hero.scrolled .brand .logo-light { display: none; }
.over-hero.scrolled .menu-btn span { background: var(--ink); }

@media (max-width: 1140px) { .head-phone { display: none; } .nav { gap: 1.3rem; } }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .head-cta { display: none; }
  .nav {
    position: fixed; left: 0; right: 0; top: calc(var(--head-h) + env(safe-area-inset-top, 0px)); bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto;
    background: var(--paper); padding: 1rem var(--gr) calc(2rem + env(safe-area-inset-bottom, 0px)) var(--gl);
    display: none;
  }
  .menu-open .nav { display: flex; }
  .menu-open .site-head { background: var(--paper) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .menu-open .brand .logo-dark { display: block !important; }
  .menu-open .brand .logo-light { display: none !important; }
  .menu-open .menu-btn span { background: var(--ink) !important; }
  .nav > li { border-bottom: 1px solid var(--line); }
  .nav a, .nav button.navlink { color: var(--ink) !important; font-size: 1.15rem; padding: 1rem 0; width: 100%; justify-content: space-between; }
  .drop { position: static; display: block; box-shadow: none; border: 0; background: none; padding: 0 0 .75rem; min-width: 0; }
  .drop a { padding: .55rem 0; font-size: 1rem; }
  .nav .mobile-only { display: block; }
}
.nav .mobile-only { display: none; }

/* Home hero */
.hero {
  position: relative; min-height: clamp(600px, 92svh, 980px); display: flex; align-items: flex-end;
  background: var(--ink); color: var(--paper); overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(17,19,21,.55) 0%, rgba(17,19,21,0) 26%),
    linear-gradient(0deg, rgba(17,19,21,.92) 0%, rgba(17,19,21,.55) 38%, rgba(17,19,21,.05) 70%),
    linear-gradient(90deg, rgba(17,19,21,.55) 0%, rgba(17,19,21,0) 60%);
}
.peel-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; width: 100%; padding-block: calc(var(--head-h) + 3rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { color: var(--paper); max-width: 17ch; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2.5rem 4rem; align-items: end; margin-top: clamp(1.75rem, 3.5vw, 2.75rem); }
.hero-foot p { font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.5; color: #E4E0D8; max-width: 33em; }
.hero-facts { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-dk); }
.hero-facts li { font-family: var(--ui); font-size: .95rem; padding: .7rem 0; border-bottom: 1px solid var(--line-dk); display: flex; justify-content: space-between; gap: 1rem; color: #E4E0D8; }
.hero-facts b { font-weight: 600; color: var(--paper); }
.hero .btn-row { margin-top: 1.75rem; }
@media (max-width: 860px) { .hero-foot { grid-template-columns: 1fr; } }

/* Inner page header */
.page-head { padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4.5rem); border-bottom: 1px solid var(--line); }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.crumbs { font-family: var(--ui); font-size: .88rem; color: var(--mute); margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: rgba(17,19,21,.3); }
.crumbs a { text-decoration: none; color: var(--mute); }
.crumbs a:hover { color: var(--ink); }
.page-head h1 { max-width: 14ch; }
.page-head .lead { margin-top: 1.5rem; }
.page-head .btn-row { margin-top: 2rem; }
.head-visual { position: relative; aspect-ratio: 4 / 5; max-height: 520px; width: 100%; border-radius: 2px; overflow: hidden; background: var(--plaster); }
.head-visual canvas, .head-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.head-visual figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: .75rem 1rem; font-family: var(--ui); font-size: .82rem; color: var(--paper); background: linear-gradient(0deg, rgba(17,19,21,.72), transparent); }
@media (max-width: 860px) { .page-head-grid { grid-template-columns: 1fr; } .head-visual { aspect-ratio: 16 / 9; } }

/* Two column editorial section: heading rail + body */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 6.5rem); align-items: start; }
.split > * { min-width: 0; }
.split .rail { position: sticky; top: calc(var(--head-h) + 2rem); }
.split .rail .small { margin-top: 1rem; max-width: 26em; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split .rail { position: static; } }
.section-gap { margin-top: clamp(3rem, 6vw, 5rem); }

/* Facts list with tabular feel */
.facts { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); }
.facts li { padding: 1.4rem 1.5rem 0 0; }
.facts li + li { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.facts b { display: block; font-family: var(--display); font-weight: 680; font-stretch: 110%; font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.facts span { display: block; margin-top: .55rem; font-family: var(--ui); font-size: .92rem; color: var(--mute); line-height: 1.45; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } .facts li, .facts li + li { padding: 1.1rem 0; border-left: 0; border-bottom: 1px solid var(--line); } }

/* Door diagram */
.diagram { background: var(--bone); border: 1px solid var(--line); border-radius: 2px; padding: clamp(1rem, 3vw, 2rem); }
.diagram svg { width: 100%; height: auto; }
.diagram figcaption { margin-top: 1rem; font-family: var(--ui); font-size: .85rem; color: var(--mute); }
.svg-label { font-family: var(--ui); font-size: 18px; font-weight: 600; fill: var(--ink); }
.svg-note { font-family: var(--ui); font-size: 15px; fill: var(--mute); }

/* Ordered steps (real sequences only) */
.steps-v { list-style: none; counter-reset: st; border-top: 1px solid var(--line); }
.steps-v li { counter-increment: st; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
.steps-v li::before { content: counter(st, decimal-leading-zero); font-family: var(--display); font-weight: 650; font-stretch: 110%; color: var(--gold-ink); font-size: 1.05rem; padding-top: .15rem; }
.steps-v h3 { font-size: 1.15rem; font-weight: 650; margin-bottom: .3rem; }
.steps-v p { color: var(--mute); font-size: 1.02rem; }
.dark .steps-v { border-color: var(--line-dk); }
.dark .steps-v li { border-color: var(--line-dk); }
.dark .steps-v li::before { color: var(--gold); }
.dark .steps-v p { color: var(--mute-dk); }

.timeline { list-style: none; counter-reset: tl; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 3.5rem; }
.timeline li { counter-increment: tl; position: relative; padding: 2.4rem 1.75rem 0 0; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line-dk); }
.timeline li::after { content: counter(tl); position: absolute; top: -15px; left: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--ink); font-family: var(--display); font-weight: 700; font-size: .95rem; display: grid; place-items: center; }
.timeline h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.timeline p { color: var(--mute-dk); font-size: 1.02rem; }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr 1fr; row-gap: 3rem; } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }

/* Before / after peel slider */
.cmp {
  --pos: 50%; position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 100%; overflow: hidden;
  border-radius: 2px; background: var(--ink-2); touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp .cmp-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--paper); box-shadow: 8px 0 22px rgba(0,0,0,.5); pointer-events: none; }
.cmp-peel { position: absolute; top: 0; left: var(--pos); width: clamp(50px, 7vw, 86px); aspect-ratio: 1; background: linear-gradient(135deg, #EBD3AC 0%, #B98A5C 48%, #5E3D24 100%); clip-path: polygon(0 0, 100% 0, 0 100%); filter: drop-shadow(5px 5px 7px rgba(0,0,0,.45)); pointer-events: none; }
.cmp-knob { position: absolute; top: 50%; left: var(--pos); width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--gold); color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.4); cursor: ew-resize; }
.cmp-knob:focus-visible { outline: 3px solid var(--paper); outline-offset: 2px; }
.cmp-tag { position: absolute; top: 16px; font-family: var(--ui); font-weight: 600; font-size: .8rem; padding: .32rem .65rem; border-radius: 2px; background: rgba(17,19,21,.75); color: var(--paper); pointer-events: none; }
.cmp-tag.b { left: 16px; } .cmp-tag.a { right: 16px; }
.cmp-cap { display: flex; justify-content: space-between; gap: 1rem; margin-top: .85rem; font-family: var(--ui); font-size: .88rem; color: var(--mute); }
.dark .cmp-cap { color: var(--mute-dk); }
.work-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.tab { font-family: var(--ui); font-weight: 600; font-size: .95rem; padding: .7rem 1.1rem; border-radius: 2px; border: 1.5px solid var(--line-dk); background: transparent; color: var(--paper); cursor: pointer; }
.tab[aria-selected="true"] { border-color: var(--gold); background: var(--gold); color: var(--ink); }

/* Service index rows */
.svc-list { list-style: none; border-top: 1.5px solid var(--ink); margin-top: 3rem; }
.svc-row { border-bottom: 1px solid var(--line); }
.svc-row a { display: grid; grid-template-columns: 140px minmax(0, 4fr) minmax(0, 5fr) 40px; gap: 2rem; align-items: center; padding: 1.4rem 0; text-decoration: none; }
.svc-row .thumb { position: relative; width: 140px; aspect-ratio: 7 / 5; border-radius: 2px; overflow: hidden; background: var(--plaster); }
.svc-row .thumb canvas, .svc-row .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.svc-row h3 { font-size: clamp(1.45rem, 2.6vw, 2.2rem); font-weight: 650; font-stretch: 108%; letter-spacing: -0.02em; line-height: 1.05; }
.svc-row p { color: var(--mute); font-size: 1.02rem; }
.svc-row .arrow { justify-self: end; transition: transform .25s; color: var(--gold-ink); }
.svc-row a:hover .thumb canvas, .svc-row a:hover .thumb img { transform: scale(1.06); }
.svc-row a:hover .arrow { transform: translateX(5px); }
@media (max-width: 860px) {
  .svc-row a { grid-template-columns: 96px minmax(0, 1fr) 28px; gap: 1rem 1.25rem; }
  .svc-row .thumb { width: 96px; }
  .svc-row p { grid-column: 2 / 3; }
  .svc-row .arrow { grid-row: 1; grid-column: 3; }
}

/* Industry panels */
.ind-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 3rem; }
.ind-panel { position: relative; min-height: 460px; border-radius: 2px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.75rem; text-decoration: none; color: var(--paper); isolation: isolate; background: var(--ink-2); }
.ind-panel canvas, .ind-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.ind-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(17,19,21,.92) 0%, rgba(17,19,21,.45) 55%, rgba(17,19,21,.15) 100%); }
.ind-panel h3 { color: var(--paper); font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-stretch: 108%; letter-spacing: -0.02em; }
.ind-panel p { margin-top: .7rem; color: #DCD8D0; font-size: 1.02rem; max-width: 26em; }
.ind-panel .textlink { margin-top: 1.25rem; align-self: flex-start; color: var(--paper); }
.ind-panel:hover canvas, .ind-panel:hover img { transform: scale(1.04); }
@media (max-width: 900px) { .ind-panels { grid-template-columns: 1fr; } .ind-panel { min-height: 340px; } }

/* Fire scale */
.scale-title { font-family: var(--ui); font-weight: 600; font-size: .95rem; margin-bottom: 1rem; color: var(--paper); }
.light-scale .scale-title { color: var(--ink); }
.scale-bar { display: flex; height: 72px; border-radius: 2px; overflow: hidden; }
.scale-bar div { display: flex; align-items: center; justify-content: center; font-family: var(--ui); font-weight: 700; font-size: .92rem; }
.seg-a { flex: 0 0 12.5%; background: var(--gold); color: var(--ink); }
.seg-b { flex: 0 0 25%; background: #4A4C4F; color: var(--paper); }
.seg-c { flex: 1 1 auto; background: #2E3034; color: var(--mute-dk); }
.scale-ticks { position: relative; height: 1.6rem; margin-top: .5rem; font-family: var(--ui); font-size: .82rem; color: var(--mute-dk); font-variant-numeric: tabular-nums; }
.light-scale .scale-ticks { color: var(--mute); }
.scale-ticks span { position: absolute; top: 0; transform: translateX(-50%); }
.scale-ticks span:first-child { transform: none; }
.scale-ticks span:last-child { transform: translateX(-100%); }
.scale-legend { margin-top: 1.5rem; display: grid; gap: .6rem; font-family: var(--ui); font-size: .95rem; color: var(--mute-dk); }
.scale-legend b { color: var(--paper); font-weight: 600; }
.light-scale .scale-legend { color: var(--mute); }
.light-scale .scale-legend b { color: var(--ink); }

/* Tables */
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; min-width: 640px; border-collapse: collapse; font-family: var(--ui); font-size: 1rem; }
.data-table th, .data-table td { text-align: left; padding: 1.05rem 1.15rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-weight: 650; font-size: .95rem; border-bottom: 1.5px solid var(--ink); }
.data-table thead th.hl { background: var(--ink); color: var(--gold); border-bottom-color: var(--ink); }
.data-table tbody th { font-weight: 650; color: var(--ink); width: 24%; }
.data-table td.hl { background: rgba(200,162,75,.13); color: var(--ink); font-weight: 600; }
.data-table td { color: var(--mute); }

/* Finish tiles */
.finish-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 220px); gap: 1rem; overflow-x: auto; padding-bottom: 1rem; margin-top: 2.5rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.finish-strip > * { scroll-snap-align: start; }
.sw { margin: 0; }
.sw .tile { position: relative; aspect-ratio: 3 / 4; border-radius: 2px; overflow: hidden; background: var(--plaster); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.sw .tile canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sw .tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sw figcaption { margin-top: .65rem; font-family: var(--ui); font-size: .95rem; font-weight: 600; color: var(--ink); }
.sw figcaption small { display: block; font-weight: 400; color: var(--mute); font-size: .84rem; margin-top: .1rem; }
.dark .sw figcaption { color: var(--paper); }
.dark .sw figcaption small { color: var(--mute-dk); }
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.5rem 1rem; margin-top: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.chip { font-family: var(--ui); font-weight: 600; font-size: .92rem; padding: .6rem 1.05rem; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* Cards used sparingly: note box */
.note { border-left: 3px solid var(--gold); background: var(--bone); padding: 1.25rem 1.4rem; font-family: var(--ui); font-size: .98rem; color: var(--text); line-height: 1.55; }
.note b { color: var(--ink); }
.dark .note { background: var(--ink-2); color: #D9D5CD; }
.dark .note b { color: var(--paper); }

/* Surface feature blocks on interiors page */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--line); }
.feature:nth-child(even) .feature-visual { order: 2; }
.feature-visual { position: relative; aspect-ratio: 4 / 3; border-radius: 2px; overflow: hidden; background: var(--plaster); }
.feature-visual canvas, .feature-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-visual span { position: absolute; left: 1rem; bottom: 1rem; font-family: var(--ui); font-size: .8rem; font-weight: 600; padding: .3rem .6rem; background: rgba(17,19,21,.72); color: var(--paper); border-radius: 2px; }
.feature h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-stretch: 108%; letter-spacing: -0.02em; margin-bottom: .9rem; }
.feature ul { margin-top: 1rem; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.feature li { font-family: var(--ui); font-size: .86rem; padding: .3rem .65rem; border: 1px solid var(--line); border-radius: 2px; color: var(--mute); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature:nth-child(even) .feature-visual { order: 0; } }

/* Lists with check rows */
.ticks { list-style: none; display: grid; gap: .85rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .62rem; height: .62rem; background: var(--gold); }
.ticks b { color: var(--ink); font-weight: 600; }
.dark .ticks b { color: var(--paper); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; }
@media (max-width: 700px) { .cols-2 { grid-template-columns: 1fr; } }

/* Small calculator */
.calc { background: var(--ink); color: var(--paper); border-radius: 2px; padding: clamp(1.5rem, 3vw, 2.25rem); }
.calc label { font-family: var(--ui); font-weight: 600; font-size: .95rem; display: block; margin-bottom: .5rem; }
.calc input[type="number"] { font-family: var(--display); font-weight: 650; font-size: 2rem; width: 100%; max-width: 220px; padding: .4rem .6rem; border-radius: 2px; border: 1.5px solid var(--line-dk); background: var(--ink-2); color: var(--paper); }
.calc-out { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; border-top: 1px solid var(--line-dk); padding-top: 1.25rem; }
.calc-out b { display: block; font-family: var(--display); font-weight: 700; font-stretch: 110%; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.calc-out span { display: block; font-family: var(--ui); font-size: .86rem; color: var(--mute-dk); margin-top: .45rem; }
.calc .small { margin-top: 1.25rem; }
@media (max-width: 520px) { .calc-out { grid-template-columns: 1fr; } }

/* FAQ */
.faq-group + .faq-group { margin-top: 3.5rem; }
.faq-group h2 { font-size: 1.5rem; font-stretch: 106%; margin-bottom: 1rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 1.3rem 0; font-family: var(--ui); font-weight: 600; font-size: 1.12rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.6rem; line-height: 1; color: var(--gold-ink); transition: transform .2s; flex: 0 0 auto; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding-bottom: 1.5rem; max-width: 40em; color: var(--text); }
.faq .answer p + p { margin-top: .8em; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; }
.cta-band canvas.bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(17,19,21,.94) 0%, rgba(17,19,21,.82) 55%, rgba(17,19,21,.55) 100%); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: end; }
.cta-phone { font-family: var(--display); font-weight: 700; font-stretch: 112%; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -0.03em; color: var(--gold); text-decoration: none; display: inline-block; line-height: 1; user-select: all; }
@media (max-width: 860px) { .cta-grid { grid-template-columns: 1fr; } }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; min-width: 0; }
.field label, .fieldset legend { font-family: var(--ui); font-weight: 600; font-size: .9rem; color: var(--ink); }
.field label small { font-weight: 400; color: var(--mute); }
.field input, .field select, .field textarea {
  font-family: var(--ui); font-size: 1rem; color: var(--ink); background: #fff; width: 100%;
  border: 1px solid rgba(17,19,21,.24); border-radius: 2px; padding: .85rem .95rem; min-height: 50px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.form .btn { width: 100%; }
.form-panel { background: var(--bone); border: 1px solid var(--line); border-radius: 2px; padding: clamp(1.25rem, 3vw, 2.25rem); }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }

/* Scope builder */
.scope { display: grid; gap: .6rem; }
.scope-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 1rem; align-items: center; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 2px; background: #fff; }
.scope-row label { font-family: var(--ui); font-weight: 600; font-size: .98rem; color: var(--ink); display: flex; gap: .65rem; align-items: center; cursor: pointer; }
.scope-row input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--ink); }
.scope-row input[type="number"] { font-family: var(--ui); font-size: 1rem; width: 100%; padding: .5rem .6rem; border: 1px solid rgba(17,19,21,.24); border-radius: 2px; }
.scope-row input[type="number"]:disabled { background: var(--paper); color: var(--mute); }
.scope-out { margin-top: 1.25rem; background: var(--ink); color: var(--paper); border-radius: 2px; padding: 1.25rem 1.4rem; font-family: var(--ui); font-size: .95rem; white-space: pre-wrap; min-height: 6rem; }

/* Footer */
.site-foot { background: var(--ink); color: var(--mute-dk); padding-block: clamp(4rem, 7vw, 6rem) calc(2rem + env(safe-area-inset-bottom, 0px)); font-family: var(--ui); font-size: .95rem; }
.foot-top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 2.5rem; }
.foot-top > * { min-width: 0; }
.site-foot img { height: 36px; width: auto; }
.site-foot p { margin-top: 1.25rem; max-width: 30em; line-height: 1.6; }
.site-foot h2 { font-family: var(--ui); font-size: .95rem; font-weight: 600; color: var(--paper); margin-bottom: 1rem; font-stretch: 100%; }
.site-foot ul { list-style: none; display: grid; gap: .55rem; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--paper); }
.site-foot p.foot-area { max-width: none; }
.foot-area { margin-top: 3rem; padding-top: 1.75rem; border-top: 1px solid var(--line-dk); font-size: .88rem; line-height: 1.7; }
.foot-area b { color: var(--paper); font-weight: 600; }
.foot-base { margin-top: 1.75rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 900px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .foot-top { grid-template-columns: 1fr; } }

/* Floating call button */
.fab {
  position: fixed; z-index: 55; right: calc(1.1rem + env(safe-area-inset-right, 0px)); bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: .5rem; padding: .9rem 1.25rem; border-radius: 999px;
  background: var(--gold); color: var(--ink); font-family: var(--ui); font-weight: 700; font-size: .95rem; text-decoration: none;
  box-shadow: 0 10px 28px rgba(0,0,0,.3);
}
.fab:hover { background: var(--gold-hi); }
@media (max-width: 600px) { .fab-text { display: none; } .fab { padding: 1rem; } }

/* Utilities */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.max-38 { max-width: 38em; }
.center-v { align-items: center; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.visually-hidden:focus { position: fixed !important; left: 1rem; top: 1rem; width: auto; height: auto; clip: auto; z-index: 100; background: var(--gold); color: var(--ink); padding: .75rem 1rem; font-family: var(--ui); font-weight: 600; }
.dark .faq details { border-color: var(--line-dk); }
.dark .faq summary { color: var(--paper); }
.dark .faq summary::after { color: var(--gold); }
.dark .faq .answer { color: #D9D5CD; }
.dark .ticks li { color: #D9D5CD; }
.dark .data-table td, .dark .data-table th { border-color: var(--line-dk); }

/* Hero tagline: last two words in gold wood grain film */
.accent-words {
  display: inline-block; white-space: nowrap;
  font-weight: 820; font-stretch: 125%; letter-spacing: -0.045em;
  color: var(--gold);
  background-color: var(--gold); background-size: cover; background-position: center;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: .04em;
  filter: drop-shadow(0 2px 18px rgba(0,0,0,.35));
}
@media (max-width: 420px) { .accent-words { font-stretch: 112%; } }

/* Popular areas slider: full picture cards, two tabs */
.pop { padding-block: clamp(3.5rem, 7vw, 6rem); overflow: hidden; }
.pop-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem 2rem; flex-wrap: wrap; }
.pop-tabs { display: inline-flex; margin-top: 1.5rem; border: 1.5px solid var(--ink); border-radius: 2px; overflow: hidden; }
.pop-tab { font-family: var(--ui); font-weight: 600; font-size: .98rem; padding: .8rem 1.25rem; min-height: 48px; border: 0; background: transparent; color: var(--ink); cursor: pointer; transition: background .2s, color .2s; }
.pop-tab + .pop-tab { border-left: 1.5px solid var(--ink); }
.pop-tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.pop-tab:not([aria-selected="true"]):hover { background: var(--plaster); }
.pop-controls { display: flex; align-items: center; gap: .6rem; }
.pop-count { font-family: var(--ui); font-size: .95rem; color: var(--mute); margin-right: .6rem; font-variant-numeric: tabular-nums; }
.pop-count b { color: var(--ink); font-weight: 650; }
.pop-btn { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid rgba(17,19,21,.3); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.pop-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pop-btn:disabled { opacity: .35; cursor: default; background: transparent; color: var(--ink); }
.pop-track {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 31vw, 420px); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  margin-top: 2.25rem; padding-bottom: .25rem;
  padding-left: max(var(--gl), calc((100vw - var(--max)) / 2 + var(--gl)));
  padding-right: max(var(--gr), calc((100vw - var(--max)) / 2 + var(--gr)));
  scroll-padding-left: max(var(--gl), calc((100vw - var(--max)) / 2 + var(--gl)));
}
.pop-track[hidden] { display: none; }
.pop-track::-webkit-scrollbar { display: none; }
.pop-card { scroll-snap-align: start; min-width: 0; }
.pop-card a {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  height: clamp(480px, 42vw, 580px); border-radius: 2px; overflow: hidden; text-decoration: none; color: var(--paper); background: var(--ink-2);
}
.pop-visual { position: absolute; inset: 0; z-index: -2; }
.pop-visual canvas, .pop-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.pop-card a::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(17,19,21,.94) 0%, rgba(17,19,21,.72) 42%, rgba(17,19,21,.18) 75%, rgba(17,19,21,.05) 100%); transition: background .3s; }
.pop-card a::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; z-index: 1; }
.pop-card a:hover::before, .pop-card a:focus-visible::before { transform: scaleX(1); }
.pop-card a:hover .pop-visual canvas, .pop-card a:hover .pop-visual img { transform: scale(1.06); }
.pop-num { position: absolute; top: 1.25rem; left: 1.4rem; font-family: var(--display); font-weight: 650; font-stretch: 110%; font-size: .95rem; color: var(--paper); background: rgba(17,19,21,.55); padding: .25rem .55rem; border-radius: 2px; }
.pop-body { display: flex; flex-direction: column; padding: 1.6rem 1.5rem 1.6rem; }
.pop-body h3 { color: var(--paper); font-size: clamp(1.6rem, 2.3vw, 2rem); font-stretch: 110%; letter-spacing: -0.025em; line-height: 1.05; }
.pop-body p { margin-top: .6rem; color: #E2DED6; font-size: 1.05rem; line-height: 1.45; }
.pop-body ul { list-style: none; margin: 1rem 0 1.35rem; display: grid; gap: .45rem; }
.pop-body li { position: relative; padding-left: 1.3rem; font-family: var(--ui); font-size: .93rem; color: #CFCAC1; line-height: 1.4; }
.pop-body li::before { content: ""; position: absolute; left: 0; top: .45em; width: .5rem; height: .5rem; background: var(--gold); }
.pop-cta { align-self: flex-start; display: inline-flex; align-items: center; gap: .5rem; font-family: var(--ui); font-weight: 600; font-size: .95rem; background: var(--paper); color: var(--ink); padding: .75rem 1.1rem; border-radius: 2px; transition: background .2s; }
.pop-card a:hover .pop-cta { background: var(--gold); }
.pop-progress { height: 2px; background: var(--line); margin-top: 1.75rem; position: relative; }
.pop-progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 14%; background: var(--ink); transition: left .35s ease, width .35s ease; }
@media (max-width: 600px) {
  .pop-track { grid-auto-columns: 84vw; }
  .pop-card a { height: 500px; }
  .pop-count { display: none; }
  .pop-btn { width: 48px; height: 48px; }
  .pop-tabs { display: flex; width: 100%; }
  .pop-tab { flex: 1; padding: .75rem .6rem; font-size: .93rem; }
}
.facts.facts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .facts.facts-4 { grid-template-columns: 1fr 1fr; } .facts.facts-4 li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 760px) { .facts.facts-4 { grid-template-columns: 1fr; } }
.hero-facts b { text-align: right; }

/* Door before / after near the top of the homepage */
.ba-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.ba-grid > * { min-width: 0; }
.ba-text h2 { max-width: none; }
.ba-points { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 2rem; border-top: 1.5px solid var(--ink); }
.ba-points li { padding: 1rem 1rem 0 0; }
.ba-points li + li { padding-left: 1rem; border-left: 1px solid var(--line); }
.ba-points b { display: block; font-family: var(--display); font-weight: 680; font-stretch: 108%; font-size: 1.15rem; color: var(--ink); }
.ba-points span { display: block; margin-top: .35rem; font-family: var(--ui); font-size: .9rem; color: var(--mute); line-height: 1.45; }
.ba-media { width: 100%; max-width: 430px; justify-self: end; }
.cmp.cmp-tall { aspect-ratio: 1 / 1; box-shadow: 0 30px 60px rgba(17,19,21,.18); }
.cmp.cmp-tall img { object-position: 50% 58%; }
.door-ba { padding-block: clamp(3rem, 6vw, 5rem); }
.door-ba .display-l { font-size: clamp(2.1rem, 4.4vw, 3.8rem); }
.door-ba .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
@media (max-width: 900px) {
  .ba-grid { grid-template-columns: 1fr; }
  .ba-media { justify-self: stretch; max-width: none; order: -1; }
  .ba-text h2 { max-width: none; }
}
@media (max-width: 560px) { .ba-points { grid-template-columns: 1fr; } .ba-points li, .ba-points li + li { padding: .9rem 0; border-left: 0; border-bottom: 1px solid var(--line); } }
.dark .ba-points { border-color: var(--gold); }
.dark .ba-points b { color: var(--paper); }
.dark .ba-points span { color: var(--mute-dk); }
.dark .ba-points li + li { border-color: var(--line-dk); }
.crew-photo { margin: 2.5rem 0 0; }
.crew-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 2px; }
.crew-photo figcaption { margin-top: .75rem; font-family: var(--ui); font-size: .88rem; color: var(--mute-dk); }
@media (max-width: 600px) { .crew-photo img { aspect-ratio: 4 / 3; } }

/* Process media: install video + crew photo */
.proc-media { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1rem; margin-top: 2.5rem; align-items: start; }
.proc-media figure { margin: 0; }
.proc-media video, .proc-media img { display: block; width: 100%; height: clamp(340px, 40vw, 540px); object-fit: cover; border-radius: 2px; background: #1c1f22; }
.proc-media figcaption { margin-top: .75rem; font-family: var(--ui); font-size: .88rem; color: var(--mute-dk); }
@media (max-width: 700px) {
  .proc-media { grid-template-columns: 1fr; gap: 1.5rem; }
  .proc-media video { height: auto; aspect-ratio: 4 / 5; }
  .proc-media img { height: auto; aspect-ratio: 4 / 3; }
}

/* Finish library */
.head-visual.fan { display: flex; gap: 6px; background: transparent; }
.head-visual.fan span { flex: 1; background-size: cover; background-position: center; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.head-visual.fan span:nth-child(even) { transform: translateY(6%); }
.lib-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.75rem; }
.lib-tools .chips { margin: 0; }
.lib-search input { font: inherit; font-family: var(--ui); font-size: .95rem; padding: .7rem 1rem; width: min(100%, 290px); border: 1px solid rgba(17,19,21,.2); border-radius: 2px; background: var(--paper); color: var(--ink); }
.lib-search input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.lib-grid { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 1.25rem .75rem; }
.lib-grid .sw .tile { aspect-ratio: 9 / 20; }
.lib-grid .sw figcaption { font-size: .86rem; margin-top: .45rem; }
.lib-grid .sw figcaption small { font-size: .76rem; }
.lib-empty { margin-top: 2rem; font-family: var(--ui); color: var(--mute); }
@media (max-width: 560px) { .lib-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lib-search, .lib-search input { width: 100%; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
