/* ==========================================================================
   Home Solutions Construction Inc.
   Palette from the logo: near-black, amber (#f8b038), white.
   --------------------------------------------------------------------------
   1  Tokens            9  Trust bar        17  Contact strip
   2  Reset/base       10  Services         18  Footer
   3  Layout           11  Before/After     19  Page hero
   4  Type bits        12  Meet Martin      20  Cards / grids
   5  Buttons          13  Reviews band     21  Forms
   6  Header/nav       14  Projects         22  FAQ / prose
   7  Hero             15  Steps            23  Call bar / reveal
   8  Section heads    16  Split media      24  Print
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink-900: #0a0a0c;
  --ink-850: #0e0e11;
  --ink-800: #131317;
  --ink-700: #1b1c21;
  --ink-600: #24262c;

  --amber: #f8b038;
  --amber-400: #ffc45f;
  --amber-600: #e09327;
  --amber-ink: #8a5606;

  --paper: #ffffff;
  --paper-2: #faf9f7;
  --paper-3: #efece6;

  --text: #16171c;
  --text-2: #4b4f58;
  --text-3: #7a7f88;
  --on-dark: #f3f3f4;
  --on-dark-2: #a8acb4;

  --line: #e5e2db;
  --line-dark: rgba(255, 255, 255, 0.12);

  --radius: 4px;
  --radius-lg: 10px;
  --shadow-md: 0 2px 6px rgba(10, 10, 12, 0.07), 0 18px 44px rgba(10, 10, 12, 0.10);
  --shadow-lg: 0 30px 70px rgba(10, 10, 12, 0.28);

  --font-display: "Barlow Condensed", "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-script: "Dancing Script", "Snell Roundhand", cursive;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --header-h: 84px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  margin: 0 0 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
h1 { font-size: clamp(2.7rem, 6.2vw, 5.1rem); }
h2 { font-size: clamp(1.95rem, 3.9vw, 3.05rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); }
h4 { font-size: 1.02rem; letter-spacing: 0.03em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--amber-ink); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--text); }

ul, ol { margin: 0 0 1.2em; padding-left: 1.15em; }
li { margin-bottom: 0.45em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.25rem 0; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--amber); color: var(--ink-900); padding: 0.9rem 1.4rem; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 840px; }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 3.75rem); }
.section--paper { background: var(--paper-2); }
.section--dark { background: var(--ink-900); color: var(--on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: var(--on-dark-2); }

.grid { display: grid; gap: clamp(1.1rem, 2.2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--wide-left { grid-template-columns: 1.12fr 0.88fr; }
.split--wide-right { grid-template-columns: 0.88fr 1.12fr; }
@media (max-width: 900px) {
  .split, .split--wide-left, .split--wide-right { grid-template-columns: 1fr; }
  .split .media-first { order: -1; }
}
.text-center { text-align: center; }

/* ---------- 4. Type bits ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber-ink); margin-bottom: 0.75rem;
}
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--amber); }
.lead { font-size: clamp(1rem, 1.5vw, 1.13rem); color: var(--text-2); line-height: 1.62; }
.section--dark .lead { color: var(--on-dark-2); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 1.02rem 1.75rem;
  border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; text-align: center; line-height: 1;
  transition: transform 0.18s var(--ease), background-color 0.2s var(--ease),
              color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary { background: var(--amber); color: var(--ink-900); border-color: var(--amber); box-shadow: 0 10px 26px rgba(248, 176, 56, 0.26); }
.btn--primary:hover { background: var(--amber-400); border-color: var(--amber-400); color: var(--ink-900); }
.btn--dark { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.btn--dark:hover { background: var(--ink-700); border-color: var(--ink-700); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink-900); border-color: rgba(20, 21, 26, 0.24); }
.btn--ghost:hover { border-color: var(--ink-900); color: var(--ink-900); background: rgba(20, 21, 26, 0.04); }
.btn--ghost-light { background: rgba(255, 255, 255, 0.04); color: #fff; border-color: rgba(255, 255, 255, 0.42); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn--sm { padding: 0.75rem 1.25rem; font-size: 0.76rem; }
.btn--block { width: 100%; }
.btn:disabled, .btn[disabled] {
  opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none;
  filter: grayscale(0.5);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 700; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber-ink);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.2s var(--ease); }
.link-arrow:hover { color: var(--text); }
.link-arrow:hover svg { transform: translateX(4px); }
.section--dark .link-arrow { color: var(--amber); }
.section--dark .link-arrow:hover { color: #fff; }

/* ---------- 6. Header / nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--ink-900);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
/* Home page: sit transparently on top of the hero photo until scrolled. */
.header--overlay { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; }
.header--overlay.is-stuck { background: rgba(10, 10, 12, 0.94); backdrop-filter: blur(10px); border-bottom-color: var(--line-dark); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 0.7rem; flex: none; }
.brand img { width: auto; height: 46px; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: 1.12rem; letter-spacing: 0.06em; color: #fff; line-height: 1;
}
@media (max-width: 420px) { .brand__name { font-size: 0.95rem; } .brand img { height: 38px; } }

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav > .btn { display: none; }

.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 0.32rem;
  padding: 0.7rem 0.85rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; border-radius: var(--radius);
}
.nav__link:hover, .nav__link:focus-visible { color: var(--amber); }
.nav__link[aria-current="page"] { color: var(--amber); }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0.85rem; right: 0.85rem; bottom: 0.35rem;
  height: 2px; background: var(--amber);
}
.nav__link svg { width: 10px; height: 10px; transition: transform 0.2s var(--ease); }
.nav__item { position: relative; }
.nav__item--has-menu:hover .nav__link svg, .nav__item--open .nav__link svg { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 8px);
  min-width: 280px; padding: 0.55rem; margin: 0; list-style: none;
  background: var(--ink-800); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.nav__item--has-menu:hover .dropdown,
.nav__item--has-menu:focus-within .dropdown,
.nav__item--open .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.dropdown li { margin: 0; }
.dropdown a {
  display: block; padding: 0.66rem 0.85rem; border-radius: var(--radius);
  color: var(--on-dark); font-size: 0.9rem; font-weight: 600;
}
.dropdown a:hover { background: var(--ink-700); color: var(--amber); }

.header__cta { display: flex; align-items: center; gap: 0.7rem; flex: none; }
.header__phone {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.72rem 1.15rem;
  border: 2px solid var(--amber); border-radius: var(--radius);
  color: #fff; font-weight: 700; font-size: 0.9rem; white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.header__phone svg { width: 15px; height: 15px; color: var(--amber); transition: color 0.2s var(--ease); }
.header__phone:hover { background: var(--amber); color: var(--ink-900); }
.header__phone:hover svg { color: var(--ink-900); }

.nav-toggle {
  display: none; width: 46px; height: 46px; flex: none; position: relative;
  background: transparent; border: 1px solid var(--line-dark); border-radius: var(--radius); cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 20px; height: 2px; background: #fff;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span { top: 50%; transform: translate(-50%, -50%); }
.nav-toggle span::before { content: ""; left: 0; top: -6px; }
.nav-toggle span::after { content: ""; left: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1140px) { .nav__link { padding: 0.7rem 0.6rem; font-size: 0.76rem; } }
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .header__phone span { display: none; }
  .header__phone { padding: 0.72rem 0.9rem; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 auto; width: min(370px, 86vw);
    background: var(--ink-850); border-left: 1px solid var(--line-dark);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 1.4rem var(--gutter) 3rem; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.32s var(--ease); box-shadow: var(--shadow-lg);
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { padding: 0.95rem 0; font-size: 0.98rem; border-bottom: 1px solid var(--line-dark); justify-content: space-between; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__item { width: 100%; }
  .dropdown {
    position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto;
    min-width: 0; background: transparent; border: 0; box-shadow: none;
    padding: 0.2rem 0 0.7rem 0.9rem; display: none;
  }
  .nav__item--open .dropdown { display: block; }
  .dropdown a { padding: 0.55rem 0; }
  .nav > .btn { display: inline-flex; margin-top: 1.3rem; }
}
.nav-scrim {
  position: fixed; inset: 0; background: rgba(6, 6, 8, 0.62); z-index: 99;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.nav-scrim.is-visible { opacity: 1; visibility: visible; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  background: var(--ink-900); color: #fff;
  padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(7rem, 12vw, 10rem);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center right; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(8, 8, 10, 0.94) 0%, rgba(8, 8, 10, 0.80) 34%, rgba(8, 8, 10, 0.30) 64%, rgba(8, 8, 10, 0.14) 100%),
    linear-gradient(to top, rgba(8, 8, 10, 0.78) 0%, transparent 42%);
}
/* keep the container's own width so the copy lines up with every other section,
   then cap each child so the text column stays narrow and hard left */
.hero__inner { position: relative; }
.hero__inner > * { max-width: 660px; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .eyebrow { letter-spacing: 0.16em; font-size: 0.82rem; margin-bottom: 1.1rem; }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.16rem); color: #d7d9dd; max-width: 40ch; margin-bottom: 2rem; }
@media (max-width: 900px) {
  .hero__bg img { object-position: center; }
  .hero::after { background: linear-gradient(180deg, rgba(8,8,10,0.86) 0%, rgba(8,8,10,0.80) 45%, rgba(8,8,10,0.94) 100%); }
}

/* ---------- 8. Section heads ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(2rem, 3.5vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 0.5rem; }
.section-head p { color: var(--text-2); }
.section--dark .section-head p { color: var(--on-dark-2); }
.section-head--center h2::after {
  content: ""; display: block; width: 52px; height: 3px; background: var(--amber);
  margin: 0.85rem auto 0;
}
.section-head--rule h2::after { content: ""; display: block; width: 52px; height: 3px; background: var(--amber); margin-top: 0.85rem; }

/* ---------- 9. Trust bar ---------- */
.trustbar { position: relative; margin-top: clamp(-5.5rem, -7vw, -4rem); z-index: 3; }
.trustbar__inner {
  background: var(--ink-850); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: clamp(1.25rem, 2.4vw, 1.9rem) clamp(1rem, 2vw, 1.75rem);
  box-shadow: var(--shadow-lg);
}
.trust {
  display: flex; align-items: center; gap: 0.9rem;
  padding-inline: clamp(0.5rem, 1.4vw, 1.25rem);
}
.trust + .trust { border-left: 1px solid var(--line-dark); }
.trust svg { width: 30px; height: 30px; color: var(--amber); flex: none; }
.trust__text { line-height: 1.25; }
.trust__title { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.trust__sub { font-size: 0.72rem; color: var(--amber); letter-spacing: 0.08em; margin-top: 0.2rem; }
@media (max-width: 900px) {
  .trustbar { margin-top: clamp(-4rem, -6vw, -3rem); }
  .trustbar__inner { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0; }
  .trust:nth-child(odd) { border-left: 0; }
  .trust:nth-child(n+3) { border-top: 1px solid var(--line-dark); padding-top: 1.25rem; }
}
@media (max-width: 520px) {
  .trustbar__inner { grid-template-columns: 1fr; gap: 1rem; }
  .trust { border-left: 0 !important; border-top: 0 !important; padding-top: 0 !important; }
}

/* ---------- 10. Services ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(0.85rem, 1.5vw, 1.4rem); }
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .svc-grid { grid-template-columns: 1fr; } }

.svc {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; text-align: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #d8d4c9; }
.svc__media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; flex: none; background: var(--ink-800); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.06); }
.svc__body { padding: 2.35rem 1.15rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.svc__body h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.svc__body p { font-size: 0.88rem; color: var(--text-2); line-height: 1.55; margin-bottom: 1.1rem; }
.svc .link-arrow { margin-top: auto; justify-content: center; }

/* hexagon icon badge straddling the image edge */
.hex {
  position: absolute; left: 50%; bottom: -28px; transform: translateX(-50%);
  width: 58px; height: 64px; z-index: 2;
  background: var(--amber);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: grid; place-items: center;
}
.hex__in {
  width: 52px; height: 58px; background: var(--ink-900);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: grid; place-items: center;
}
.hex svg { width: 24px; height: 24px; color: var(--amber); }

/* ---------- 11. Before / After ---------- */
.ba-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.ba-nav { display: flex; gap: 0.5rem; }
.ba-nav button {
  width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer;
  background: transparent; border: 1px solid var(--amber); border-radius: var(--radius); color: var(--amber);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.ba-nav button:hover:not(:disabled) { background: var(--amber); color: var(--ink-900); }
.ba-nav button:disabled { opacity: 0.3; cursor: default; }
.ba-nav svg { width: 17px; height: 17px; }

.ba-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * clamp(0.85rem, 1.5vw, 1.4rem)) / 3);
  gap: clamp(0.85rem, 1.5vw, 1.4rem);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-bottom: 0.5rem; scrollbar-width: none;
}
.ba-rail::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .ba-rail { grid-auto-columns: calc((100% - clamp(0.85rem, 1.5vw, 1.4rem)) / 2); } }
@media (max-width: 620px) { .ba-rail { grid-auto-columns: 88%; } }

.ba {
  position: relative; scroll-snap-align: start;
  border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-800);
  aspect-ratio: 4 / 3; --pos: 50%;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px;
  background: #fff; transform: translateX(-50%); pointer-events: none; z-index: 3;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
}
.ba__grip {
  position: absolute; top: 50%; left: var(--pos); transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%; background: var(--amber); color: var(--ink-900);
  display: grid; place-items: center; pointer-events: none; z-index: 4;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
.ba__grip svg { width: 20px; height: 20px; }
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; z-index: 5;
  opacity: 0; cursor: ew-resize; appearance: none; background: transparent;
}
.ba__range::-webkit-slider-thumb { appearance: none; width: 46px; height: 100%; }
.ba__tag {
  position: absolute; bottom: 0.85rem; z-index: 3;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.4rem 0.75rem; border-radius: 3px;
  background: rgba(10, 10, 12, 0.82); color: #fff; border: 1px solid var(--line-dark);
}
.ba__tag--before { left: 0.85rem; }
.ba__tag--after { right: 0.85rem; background: var(--amber); color: var(--ink-900); border-color: var(--amber); }
.ba__caption {
  position: absolute; top: 0.85rem; left: 0.85rem; z-index: 3;
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; text-transform: uppercase;
  color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); letter-spacing: 0.03em;
}

/* ---------- 12. Meet Martin ---------- */
.martin { display: grid; grid-template-columns: 0.9fr 1.35fr 0.85fr; align-items: stretch; }
@media (max-width: 1080px) { .martin { grid-template-columns: 1fr 1fr; } .martin__aside { grid-column: 1 / -1; } }
@media (max-width: 760px) { .martin { grid-template-columns: 1fr; } }
.martin__photo { position: relative; min-height: 420px; background: var(--ink-800); }
.martin__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.martin__body { padding: clamp(2.25rem, 4vw, 3.5rem); display: flex; flex-direction: column; justify-content: center; }
.martin__body p { color: var(--text-2); font-size: 0.98rem; }
.martin__aside { padding: clamp(2.25rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; }
.signature {
  font-family: var(--font-script); font-size: 2.5rem; line-height: 1;
  color: var(--text); margin: 1.5rem 0 0.35rem;
}
.signature + span { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.85rem; }
.ticks li { display: flex; gap: 0.7rem; align-items: center; margin: 0; font-size: 0.93rem; font-weight: 500; color: var(--text); }
.ticks svg { width: 21px; height: 21px; color: var(--amber); flex: none; }
.section--dark .ticks li { color: var(--on-dark); }

/* ---------- 13. Reviews band ---------- */
.reviews-band { position: relative; background: var(--ink-900); color: #fff; overflow: hidden; isolation: isolate; }
.reviews-band__bg { position: absolute; inset: 0; z-index: -2; }
.reviews-band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.reviews-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,8,10,0.97) 0%, rgba(8,8,10,0.9) 45%, rgba(8,8,10,0.86) 100%); }
.reviews-band__inner { position: relative; display: grid; grid-template-columns: 0.85fr 2fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
@media (max-width: 960px) { .reviews-band__inner { grid-template-columns: 1fr; } }
.reviews-band h2 { margin-bottom: 0.6rem; }
.reviews-band h2 em { font-style: normal; color: var(--amber); display: block; }
.reviews-band__logo { height: 82px; width: auto; margin-bottom: 1.5rem; }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.85rem, 1.6vw, 1.25rem); }
@media (max-width: 760px) { .review-grid { grid-template-columns: 1fr; } }
.review {
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg); padding: clamp(1.25rem, 2.2vw, 1.6rem);
  position: relative; display: flex; flex-direction: column;
}
.review__mark { position: absolute; top: 0.9rem; left: 1rem; font-family: Georgia, serif; font-size: 2.6rem; line-height: 1; color: rgba(255, 255, 255, 0.16); }
.stars { display: flex; gap: 0.14rem; color: var(--amber); margin: 0 0 0.9rem auto; }
.stars svg { width: 15px; height: 15px; }
.review blockquote { margin: 0 0 1.1rem; font-size: 0.9rem; line-height: 1.6; color: #e6e7e9; font-style: italic; }
.review figcaption { margin-top: auto; text-align: center; font-size: 0.78rem; color: var(--on-dark-2); }
.review figcaption strong { display: block; color: #fff; font-size: 0.9rem; font-weight: 700; font-style: normal; }

/* light-background review card (reviews page) */
.review--light { background: var(--paper); border-color: var(--line); }
.review--light blockquote { color: var(--text); }
.review--light .review__mark { color: var(--paper-3); }
.review--light figcaption { color: var(--text-3); }
.review--light figcaption strong { color: var(--text); }

/* ---------- 14. Contact strip ---------- */
.strip { background: var(--ink-850); border-top: 1px solid var(--line-dark); color: #fff; }
.strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-block: 1.6rem; }
.strip__item { display: flex; align-items: center; gap: 0.8rem; }
.strip__item svg { width: 26px; height: 26px; color: var(--amber); flex: none; }
.strip__label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); }
.strip__value { font-size: 0.92rem; font-weight: 600; color: #fff; line-height: 1.3; }
.strip__value a { color: #fff; }
.strip__value a:hover { color: var(--amber); }

/* ---------- 15. Footer ---------- */
.footer { background: var(--ink-900); color: var(--on-dark-2); border-top: 1px solid var(--line-dark); }
.footer__main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: clamp(1.75rem, 3.5vw, 3rem); padding-block: clamp(2.5rem, 5vw, 4rem); }
@media (max-width: 980px) { .footer__main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__main { grid-template-columns: 1fr; } }
.footer__brand img { height: 62px; width: auto; margin-bottom: 1rem; }
.footer p { font-size: 0.9rem; line-height: 1.62; }
.footer h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.18em; margin-bottom: 1rem; }
.footer__links { list-style: none; padding: 0; margin: 0; }
.footer__links li { margin-bottom: 0.55rem; }
.footer__links a { color: var(--on-dark-2); font-size: 0.9rem; }
.footer__links a:hover { color: var(--amber); }
.footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.footer__contact li { display: flex; gap: 0.65rem; align-items: flex-start; margin: 0; font-size: 0.9rem; }
.footer__contact svg { width: 16px; height: 16px; color: var(--amber); flex: none; margin-top: 0.18rem; }
.footer__contact a { color: #fff; font-weight: 600; }
.footer__contact a:hover { color: var(--amber); }
.footer__bottom {
  border-top: 1px solid var(--line-dark); padding-block: 1.3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem;
}
.footer__bottom nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer__bottom a { color: var(--on-dark-2); }
.footer__bottom a:hover { color: var(--amber); }
.socials { display: flex; gap: 0.45rem; }
.socials a {
  width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid var(--line-dark);
  display: grid; place-items: center; color: var(--on-dark-2);
}
.socials a:hover { border-color: var(--amber); color: var(--amber); background: rgba(248, 176, 56, 0.08); }
.socials svg { width: 16px; height: 16px; }

/* ---------- 16. Page hero (interior pages) ---------- */
.page-hero { background: var(--ink-900); color: #fff; position: relative; overflow: hidden; padding-block: clamp(3rem, 6vw, 4.75rem); }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 100% at 78% 50%, #000, transparent 74%);
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 78% 50%, #000, transparent 74%);
}
.page-hero::after {
  content: ""; position: absolute; right: -8vw; top: -34%;
  width: 44vw; height: 44vw; max-width: 600px; max-height: 600px;
  background: radial-gradient(circle, rgba(248, 176, 56, 0.17), transparent 68%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.25rem, 5vw, 3.9rem); margin-bottom: 0.7rem; }
.page-hero p { color: var(--on-dark-2); max-width: 62ch; margin: 0; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0 0 1.2rem; font-size: 0.78rem; }
.crumbs li { margin: 0; display: flex; align-items: center; gap: 0.5rem; color: var(--on-dark-2); }
.crumbs li:not(:last-child)::after { content: "/"; color: #575b64; }
.crumbs a { color: var(--on-dark-2); }
.crumbs a:hover { color: var(--amber); }
.crumbs [aria-current] { color: var(--amber); }

/* ---------- 17. Cards / grids ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 2.4vw, 1.9rem); display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d8d4c9; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-2); font-size: 0.94rem; }
.card .link-arrow { margin-top: auto; padding-top: 1.1rem; }
.card--dark { background: var(--ink-800); border-color: var(--line-dark); }
.card--dark h3 { color: #fff; }
.card--dark p { color: var(--on-dark-2); }
.card--dark:hover { border-color: rgba(248, 176, 56, 0.4); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45); }
.card__icon {
  width: 50px; height: 50px; border-radius: var(--radius); display: grid; place-items: center;
  margin-bottom: 1.05rem; flex: none;
  background: rgba(248, 176, 56, 0.14); color: var(--amber-ink); border: 1px solid rgba(248, 176, 56, 0.3);
}
.card--dark .card__icon { color: var(--amber); background: rgba(248, 176, 56, 0.12); }
.card__icon svg { width: 24px; height: 24px; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.7rem; }
.checklist li { display: flex; gap: 0.75rem; align-items: flex-start; margin: 0; color: var(--text-2); }
.checklist svg { width: 19px; height: 19px; color: var(--amber-ink); flex: none; margin-top: 0.18rem; }
.section--dark .checklist li { color: var(--on-dark-2); }
.section--dark .checklist svg { color: var(--amber); }
.checklist--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .checklist--2 { grid-template-columns: 1fr; } }

.frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.frame--tall img { aspect-ratio: 3 / 4; }
.frame--wide img { aspect-ratio: 16 / 9; }
.frame__tag {
  position: absolute; left: 1rem; bottom: 1rem;
  background: rgba(10, 10, 12, 0.82); backdrop-filter: blur(6px); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
  padding: 0.45rem 0.85rem; border-radius: 999px; border: 1px solid var(--line-dark);
}

/* ---------- 18. Projects gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.5rem; }
.filter {
  padding: 0.6rem 1.1rem; background: transparent; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-body); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-2); cursor: pointer; transition: all 0.2s var(--ease);
}
.filter:hover { border-color: var(--ink-900); color: var(--ink-900); }
.filter.is-active { background: var(--ink-900); border-color: var(--ink-900); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.9rem, 1.8vw, 1.4rem); }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }
.project { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); background: var(--ink-800); aspect-ratio: 4 / 3; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.65s var(--ease); }
.project:hover img { transform: scale(1.06); }
.project__overlay {
  position: absolute; inset: 0; padding: clamp(1rem, 2vw, 1.5rem);
  background: linear-gradient(to top, rgba(8,8,10,0.93) 0%, rgba(8,8,10,0.35) 46%, rgba(8,8,10,0) 72%);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.project__cat { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); margin-bottom: 0.3rem; }
.project__title { font-family: var(--font-display); font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 700; text-transform: uppercase; color: #fff; line-height: 1.1; margin: 0; }
.project__meta { font-size: 0.8rem; color: var(--on-dark-2); margin: 0.35rem 0 0; }
.project.is-hidden { display: none; }

/* ---------- 19. Steps ---------- */
.steps { counter-reset: step; display: grid; gap: clamp(1.1rem, 2.2vw, 1.6rem); }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.steps--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .steps--4, .steps--5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps--4, .steps--5 { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 2.4rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; line-height: 1; color: var(--amber);
}
.step::after { content: ""; position: absolute; top: 0.95rem; left: 3.2rem; right: -1rem; height: 1px; background: var(--line); }
.section--dark .step::after { background: var(--line-dark); }
.step:last-child::after { display: none; }
@media (max-width: 1000px) { .step::after { display: none; } }
.step h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.92rem; color: var(--text-2); }
.section--dark .step p { color: var(--on-dark-2); }

/* ---------- 20. Forms ---------- */
.form { display: grid; gap: 0.95rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.95rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.38rem; }
.field label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-2); }
.section--dark .field label, .form-card .field label { color: var(--on-dark-2); }
.field .req { color: var(--amber-ink); }
.section--dark .field .req, .form-card .field .req { color: var(--amber); }

.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.8rem 0.92rem; width: 100%;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; }
.field select {
  appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234b4f58' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 16px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(248, 176, 56, 0.22); }

.form-card {
  background: var(--ink-800); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.1rem); box-shadow: var(--shadow-lg); position: relative;
}
.form-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--amber), var(--amber-600)); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.form-card h2 { font-size: 1.5rem; color: #fff; margin-bottom: 0.3rem; }
.form-card > p { color: var(--on-dark-2); font-size: 0.9rem; margin-bottom: 1.3rem; }

.form-card .field input, .form-card .field select, .form-card .field textarea,
.section--dark .field input, .section--dark .field select, .section--dark .field textarea {
  background-color: var(--ink-700); border-color: var(--line-dark); color: #fff;
}
.form-card .field select, .section--dark .field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8acb4' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 16px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.form-card .field input::placeholder, .section--dark .field input::placeholder,
.form-card .field textarea::placeholder, .section--dark .field textarea::placeholder { color: #6a6f78; }

.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #d9534f; }
.field__error { font-size: 0.76rem; color: #d9534f; font-weight: 600; display: none; text-transform: none; letter-spacing: 0; }
.field.has-error .field__error { display: block; }
.form-note { font-size: 0.76rem; color: var(--text-3); line-height: 1.5; }
.form-card .form-note { color: #7d828b; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-success {
  display: none; gap: 0.8rem; align-items: flex-start;
  border: 1px solid rgba(248, 176, 56, 0.45); background: rgba(248, 176, 56, 0.1);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; color: var(--text); font-size: 0.93rem;
}
.form-success.is-visible { display: flex; }
.section--dark .form-success, .form-card .form-success { color: #fff; }
.form-success svg { width: 21px; height: 21px; color: var(--amber); flex: none; margin-top: 0.1rem; }

/* ---------- 21. Info tiles / hours / FAQ / prose ---------- */
.info-tile { display: flex; gap: 0.95rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.info-tile svg { width: 21px; height: 21px; color: var(--amber-ink); flex: none; margin-top: 0.2rem; }
.info-tile h3 { font-size: 1rem; margin-bottom: 0.28rem; }
.info-tile p, .info-tile address { margin: 0; font-style: normal; color: var(--text-2); font-size: 0.92rem; line-height: 1.55; }
.info-tile a { color: var(--text); font-weight: 600; }
.info-tile a:hover { color: var(--amber-ink); }

.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; margin: 0; }
.hours li:last-child { border-bottom: 0; }
.hours span:first-child { color: var(--text-2); }
.hours span:last-child { font-weight: 600; }
.section--dark .hours li { border-color: var(--line-dark); }
.section--dark .hours span:first-child { color: var(--on-dark-2); }
.section--dark .hours span:last-child { color: #fff; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 3rem 1.25rem 0; position: relative;
  font-family: var(--font-display); font-size: 1.16rem; font-weight: 600; text-transform: uppercase; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.6rem; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--amber-ink); border-bottom: 2px solid var(--amber-ink);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq summary:hover { color: var(--amber-ink); }
.faq__body { padding: 0 3rem 1.5rem 0; color: var(--text-2); }
.faq__body p:last-child { margin-bottom: 0; }

.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.45rem, 2.5vw, 1.9rem); margin-top: 2.4rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.7rem; }
.prose > :first-child { margin-top: 0; }
.prose ul { color: var(--text-2); }

/* ---------- 22. Mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 640px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    background: var(--ink-900); border-top: 1px solid var(--line-dark);
    box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.35);
  }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 1rem 0.5rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; }
  .callbar a + a { background: var(--amber); color: var(--ink-900); }
  .callbar svg { width: 16px; height: 16px; }
  body { padding-bottom: 56px; }
}

/* ---------- 23. Reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .svc:hover, .project:hover img { transform: none; }
}

/* ---------- 24. Print ---------- */
@media print {
  .header, .callbar, .nav-scrim, .strip, .footer__main, .ba-nav { display: none !important; }
  body { color: #000; background: #fff; font-size: 12pt; }
  .hero, .page-hero, .section--dark, .reviews-band { background: #fff !important; color: #000 !important; }
  .hero h1, .page-hero h1, .section--dark h2, .reviews-band h2 { color: #000 !important; }
  .hero::after, .hero__bg, .reviews-band__bg { display: none !important; }
  a { color: #000; text-decoration: underline; }
}

/* ==========================================================================
   25. AI Remodel Visualizer
   ========================================================================== */
.viz { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
@media (max-width: 940px) { .viz { grid-template-columns: 1fr; } }

.viz__panel {
  background: var(--ink-800); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  padding: clamp(1.35rem, 2.6vw, 1.9rem);
}
.viz__panel h3 { color: #fff; font-size: 1.15rem; margin-bottom: 0.35rem; }
.viz__panel > p { color: var(--on-dark-2); font-size: 0.9rem; margin-bottom: 1.25rem; }

/* drop zone */
.viz__drop {
  position: relative; display: grid; place-items: center; text-align: center;
  min-height: 190px; padding: 1.5rem 1rem;
  border: 2px dashed rgba(255, 255, 255, 0.22); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03); cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.viz__drop:hover, .viz__drop.is-over { border-color: var(--amber); background: rgba(248, 176, 56, 0.07); }
.viz__drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.viz__drop svg { width: 34px; height: 34px; color: var(--amber); margin-bottom: 0.65rem; }
.viz__drop strong { display: block; color: #fff; font-size: 0.95rem; margin-bottom: 0.25rem; }
.viz__drop span { color: var(--on-dark-2); font-size: 0.8rem; }
.viz__drop.has-file { padding: 0; border-style: solid; border-color: var(--line-dark); overflow: hidden; min-height: 0; }
.viz__drop.has-file .viz__prompt { display: none; }
.viz__thumb { display: none; width: 100%; }
.viz__drop.has-file .viz__thumb { display: block; }
.viz__drop.has-file .viz__replace { display: block; }
.viz__thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.viz__replace {
  display: none;
  position: absolute; right: 0.6rem; bottom: 0.6rem; z-index: 2;
  background: rgba(10, 10, 12, 0.85); color: #fff; border: 1px solid var(--line-dark);
  border-radius: 999px; padding: 0.4rem 0.85rem; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; pointer-events: none;
}

/* style chips */
.viz__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.viz__chip { position: relative; }
.viz__chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.viz__chip span {
  display: block; padding: 0.55rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.04);
  color: var(--on-dark-2); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; transition: all 0.2s var(--ease);
}
.viz__chip input:checked + span { background: var(--amber); border-color: var(--amber); color: var(--ink-900); }
.viz__chip input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 3px; }

/* result stage */
.viz__stage {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink-800); border: 1px solid var(--line-dark);
  min-height: 320px; display: grid; place-items: center;
}
.viz__stage .ba { border-radius: 0; border: 0; width: 100%; }
.viz__empty { text-align: center; padding: 2.5rem 1.5rem; }
.viz__empty svg { width: 44px; height: 44px; color: var(--amber); margin: 0 auto 1rem; opacity: 0.85; }
.viz__empty p { color: var(--on-dark-2); font-size: 0.92rem; max-width: 40ch; margin: 0 auto; }
.viz__empty strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.35rem; text-transform: uppercase; margin-bottom: 0.5rem; }

.viz__loading { text-align: center; padding: 2.5rem 1.5rem; }
.viz__spinner {
  width: 44px; height: 44px; margin: 0 auto 1.1rem; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15); border-top-color: var(--amber);
  animation: viz-spin 0.9s linear infinite;
}
@keyframes viz-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .viz__spinner { animation-duration: 3s; } }
.viz__loading p { color: var(--on-dark-2); font-size: 0.9rem; }
.viz__loading strong { display: block; color: #fff; margin-bottom: 0.4rem; font-size: 1rem; }

.viz__error {
  display: none; align-items: flex-start; gap: 0.7rem; margin-top: 1rem;
  border: 1px solid rgba(217, 83, 79, 0.5); background: rgba(217, 83, 79, 0.12);
  border-radius: var(--radius); padding: 0.9rem 1rem; color: #ffd9d8; font-size: 0.88rem;
}
.viz__error.is-visible { display: flex; }
.viz__error svg { width: 18px; height: 18px; flex: none; margin-top: 0.15rem; }

.viz__actions { display: none; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.1rem; }
.viz__actions.is-visible { display: flex; }

.viz__disclaimer { font-size: 0.75rem; color: #7d828b; line-height: 1.55; margin-top: 1rem; }

/* homepage teaser */
.viz-teaser {
  display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center; margin-top: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(90deg, rgba(248, 176, 56, 0.12), rgba(248, 176, 56, 0.02));
  border: 1px solid rgba(248, 176, 56, 0.32); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
}
@media (max-width: 820px) { .viz-teaser { grid-template-columns: 1fr; text-align: center; justify-items: center; } }
.viz-teaser__icon {
  width: 52px; height: 52px; flex: none; border-radius: var(--radius);
  display: grid; place-items: center; background: rgba(248, 176, 56, 0.16);
  border: 1px solid rgba(248, 176, 56, 0.4); color: var(--amber);
}
.viz-teaser__icon svg { width: 26px; height: 26px; }
.viz-teaser h3 { color: #fff; font-size: 1.25rem; margin-bottom: 0.3rem; }
.viz-teaser p { color: var(--on-dark-2); font-size: 0.92rem; margin: 0; }
.badge-new {
  display: inline-block; margin-left: 0.6rem; vertical-align: middle;
  background: var(--amber); color: var(--ink-900); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 0.22rem 0.5rem; border-radius: 3px;
}

/* ==========================================================================
   26. Pricing tiers, spec tables, area cards, rating bars
   ========================================================================== */

/* --- price tiers --- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.6vw, 2rem); display: flex; flex-direction: column; position: relative;
}
.tier--feature { border-color: var(--amber); box-shadow: 0 18px 44px rgba(248, 176, 56, 0.16); }
.tier--feature::before {
  content: "Most Common"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: var(--ink-900); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; padding: 0.3rem 0.75rem; border-radius: 3px; white-space: nowrap;
}
.tier__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; text-transform: uppercase; color: var(--text); margin-bottom: 0.3rem; }
.tier__price { font-family: var(--font-display); font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 700; color: var(--amber-ink); line-height: 1; margin-bottom: 0.15rem; }
.tier__unit { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin-bottom: 1.15rem; }
.tier ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.tier li { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0; font-size: 0.9rem; color: var(--text-2); }
.tier li svg { width: 16px; height: 16px; color: var(--amber-ink); flex: none; margin-top: 0.24rem; }

.price-note {
  display: flex; gap: 0.85rem; align-items: flex-start; margin-top: 1.75rem;
  border-left: 3px solid var(--amber); background: var(--paper); padding: 1.1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.9rem; color: var(--text-2);
}
.price-note svg { width: 20px; height: 20px; color: var(--amber-ink); flex: none; margin-top: 0.15rem; }
.price-note strong { color: var(--text); }

/* --- spec / timeline table --- */
.spec { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.spec caption { text-align: left; font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); font-weight: 700; padding-bottom: 0.9rem; }
.spec th, .spec td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec thead th { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-weight: 700; border-bottom-width: 2px; }
.spec tbody th { font-weight: 700; color: var(--text); width: 30%; }
.spec td { color: var(--text-2); }
.spec tbody tr:last-child th, .spec tbody tr:last-child td { border-bottom: 0; }
.spec__dur { white-space: nowrap; font-weight: 600; color: var(--amber-ink); }
.section--dark .spec th, .section--dark .spec td { border-color: var(--line-dark); }
.section--dark .spec tbody th { color: #fff; }
.section--dark .spec td { color: var(--on-dark-2); }
.section--dark .spec__dur { color: var(--amber); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap .spec { min-width: 520px; }

/* --- option columns --- */
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
@media (max-width: 900px) { .options { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .options { grid-template-columns: 1fr; } }
.option h4 { color: var(--text); font-size: 0.95rem; letter-spacing: 0.06em; margin-bottom: 0.75rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--amber); display: inline-block; }
.section--dark .option h4 { color: #fff; }
.option ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.option li { margin: 0; font-size: 0.9rem; color: var(--text-2); padding-left: 1rem; position: relative; }
.option li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.section--dark .option li { color: var(--on-dark-2); }

/* --- honesty / callout box --- */
.callout {
  border: 1px solid var(--line); border-left: 4px solid var(--ink-900);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: clamp(1.35rem, 2.5vw, 1.9rem); background: var(--paper);
}
.callout h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.callout p { color: var(--text-2); font-size: 0.95rem; }
.callout--dark { background: var(--ink-800); border-color: var(--line-dark); border-left-color: var(--amber); }
.callout--dark h3 { color: #fff; }
.callout--dark p { color: var(--on-dark-2); }

/* --- service-area cards --- */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.9rem, 1.8vw, 1.4rem); }
@media (max-width: 1000px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .areas { grid-template-columns: 1fr; } }
.area {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.3rem;
  background: var(--paper); transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.area:hover { border-color: var(--amber); transform: translateY(-3px); }
.area h3 { font-size: 1.05rem; margin-bottom: 0.3rem; display: flex; align-items: center; gap: 0.45rem; }
.area h3 svg { width: 16px; height: 16px; color: var(--amber-ink); flex: none; }
.area p { font-size: 0.86rem; color: var(--text-2); margin: 0; }
.section--dark .area { background: var(--ink-800); border-color: var(--line-dark); }
.section--dark .area h3 { color: #fff; }
.section--dark .area h3 svg { color: var(--amber); }
.section--dark .area p { color: var(--on-dark-2); }

/* --- rating summary --- */
.rating { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (max-width: 700px) { .rating { grid-template-columns: 1fr; } }
.rating__score { text-align: center; }
.rating__num { font-family: var(--font-display); font-size: clamp(3.5rem, 8vw, 5rem); font-weight: 700; line-height: 1; color: var(--amber); }
.rating__stars { display: flex; gap: 0.2rem; justify-content: center; color: var(--amber); margin: 0.6rem 0 0.4rem; }
.rating__stars svg { width: 19px; height: 19px; }
.rating__count { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.section--dark .rating__count { color: var(--on-dark-2); }
.bars { display: grid; gap: 0.6rem; }
.bar { display: grid; grid-template-columns: 3.2rem 1fr 2.6rem; align-items: center; gap: 0.85rem; font-size: 0.83rem; }
.bar__label { color: var(--text-2); white-space: nowrap; }
.section--dark .bar__label, .section--dark .bar__pct { color: var(--on-dark-2); }
.bar__track { display: block; height: 8px; border-radius: 99px; background: var(--paper-3); overflow: hidden; }
.section--dark .bar__track { background: rgba(255, 255, 255, 0.1); }
/* must be block — an inline span ignores width/height */
.bar__fill { display: block; height: 100%; border-radius: 99px; background: var(--amber); }
.bar__pct { text-align: right; font-weight: 600; color: var(--text-2); }

/* --- timeline (about) --- */
.timeline { position: relative; display: grid; gap: 1.75rem; padding-left: 2.25rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.section--dark .timeline::before { background: var(--line-dark); }
.tl { position: relative; }
.tl::before {
  content: ""; position: absolute; left: -2.25rem; top: 5px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--ink-900); border: 3px solid var(--amber);
}
.section--dark .tl::before { background: var(--ink-900); }
.tl__year { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 0.2rem; }
.section--dark .tl__year { color: var(--amber); }
.tl h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.tl p { font-size: 0.93rem; color: var(--text-2); margin: 0; }
.section--dark .tl p { color: var(--on-dark-2); }

/* --- inline stat row --- */
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 760px) { .mini-stats { grid-template-columns: repeat(2, 1fr); } }
.mini-stat { text-align: center; padding: 1.1rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--paper); }
.mini-stat b { display: block; font-family: var(--font-display); font-size: 1.85rem; font-weight: 700; color: var(--amber-ink); line-height: 1; }
.mini-stat span { display: block; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin-top: 0.4rem; }
.section--dark .mini-stat { background: var(--ink-800); border-color: var(--line-dark); }
.section--dark .mini-stat b { color: var(--amber); }
.section--dark .mini-stat span { color: var(--on-dark-2); }

/* ---------- 27. Map embeds ---------- */
.map-embed {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink-800); line-height: 0; box-shadow: var(--shadow-md);
}
.map-embed iframe { width: 100%; border: 0; display: block; filter: saturate(0.85) contrast(1.03); }
.section--dark .map-embed { border-color: var(--line-dark); }
@media (max-width: 620px) { .map-embed iframe { height: 320px; } }
.map-embed a { display: block; line-height: 0; }
.map-embed img { width: 100%; height: auto; display: block; transition: transform 0.4s var(--ease); }
.map-embed:hover img { transform: scale(1.02); }
.map-credit { text-align: center; font-size: 0.78rem; color: var(--text-3); margin-top: 0.85rem; }
.section--dark .map-credit { color: var(--on-dark-2); }
