/* ==========================================================================
   Instant Granny Flats — Core Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --brand:            #ff6600;
  --brand-soft:       #ff8838;
  --brand-tint:       rgba(255, 102, 0, .10);
  --brand-tint-2:     rgba(255, 102, 0, .22);

  /* Neutrals — dark theme, matching the live site's #1c1b1b family.
     "paper" now means raised dark surface; "ink" stays the page base. */
  --ink:              #101215;
  --ink-2:            #1c1f24;
  --ink-3:            #2a2e35;
  --slate:            #a7adb8;
  --slate-2:          #868d98;
  --line:             rgba(255, 255, 255, .12);
  --line-dark:        rgba(255, 255, 255, .10);
  --paper:            #171a1f;
  --paper-2:          #1e2228;
  --paper-3:          #262b32;
  --text:             #c6cbd2;

  /* Typography */
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --tracking-eyebrow: .18em;

  /* Rhythm */
  --gutter:           clamp(1.25rem, 5vw, 4rem);
  --shell:            1280px;
  --shell-narrow:     880px;
  --section-y:        clamp(4.5rem, 9vw, 8.5rem);

  /* Surface */
  --radius-sm:        10px;
  --radius:           18px;
  --radius-lg:        26px;
  --shadow-sm:        0 1px 2px rgba(16, 18, 21, .05), 0 6px 18px rgba(16, 18, 21, .05);
  --shadow:           0 2px 6px rgba(16, 18, 21, .05), 0 18px 44px rgba(16, 18, 21, .09);
  --shadow-lg:        0 4px 12px rgba(16, 18, 21, .06), 0 34px 80px rgba(16, 18, 21, .16);

  /* Motion */
  --ease:             cubic-bezier(.22, .61, .36, 1);
  --ease-out-expo:    cubic-bezier(.16, 1, .3, 1);

  --header-h:         76px;
}

/* --------------------------------------------------------------------------
   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) + 1.5rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.7;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

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

img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5 {
  margin: 0;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.028em;
  color: #fff;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 5rem); }
h2 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.5rem); }
h3 { font-size: clamp(1.375rem, 1.15rem + .95vw, 1.875rem); }
h4 { font-size: clamp(1.125rem, 1.05rem + .35vw, 1.3125rem); letter-spacing: -.015em; }

p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.15em; padding-left: 1.2em; }

::selection {
  background: var(--brand);
  color: #fff;
}

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { max-width: var(--shell-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--paper { background: var(--paper-2); }
.section--dark { background: var(--ink-2); color: rgba(255, 255, 255, .74); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: #fff; }

.stack > * + * { margin-top: 1.1rem; }

/* Section heading block */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  margin: 0 0 1rem;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.eyebrow--center { justify-content: center; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p {
  margin-top: 1.1rem;
  font-size: 1.0625rem;
  color: var(--slate);
}
.section--dark .section-head p { color: rgba(255, 255, 255, .66); }

.lede {
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem);
  line-height: 1.6;
  color: var(--slate);
  letter-spacing: -.01em;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  padding: 1rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 100px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--brand-tint-2);
}

.btn:active { transform: translateY(0); }

.btn svg { width: 15px; height: 15px; flex: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .28);
}
.btn--ghost:hover {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  border-color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}

.btn--light {
  --btn-bg: rgba(255, 255, 255, .07);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .22);
  backdrop-filter: blur(10px);
}
.btn--light:hover {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  border-color: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}

.btn--solid-dark { --btn-bg: var(--ink-3); --btn-fg: #fff; border-color: var(--line); }
.btn--solid-dark:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }

.btn--sm { padding: .75rem 1.25rem; font-size: .6875rem; }
.btn--block { width: 100%; }

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  transition: color .3s var(--ease), gap .3s var(--ease);
}
.link-arrow svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.link-arrow:hover { color: var(--brand); gap: .8rem; }
.link-arrow:hover svg { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   5. Announcement bar
   -------------------------------------------------------------------------- */
.announce {
  position: relative;
  z-index: 60;
  background: var(--ink);
  color: rgba(255, 255, 255, .82);
  font-size: .8125rem;
  letter-spacing: .01em;
}

.announce__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 42px;
  padding-block: .5rem;
  text-align: center;
}

.announce strong { color: #fff; font-weight: 700; }

.announce__cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--brand-soft);
  font-weight: 800;
  font-size: .6875rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: gap .3s var(--ease);
}
.announce__cta:hover { gap: .7rem; }
.announce__cta svg { width: 12px; height: 12px; }

@media (max-width: 640px) {
  .announce__inner { font-size: .75rem; gap: .6rem; flex-wrap: wrap; }
}

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 18, 21, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease), background-color .35s var(--ease),
              box-shadow .35s var(--ease);
}

.header.is-stuck {
  border-bottom-color: var(--line-dark);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .3);
}

/* Transparent-over-hero variant: sits *on* the hero, which is pulled up
   underneath it, while still sticking to the top once the page scrolls. */
.header--overlay {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.header--overlay + .drawer + main .hero,
.header--overlay ~ main .hero { margin-top: calc(-1 * var(--header-h)); }
.header--overlay .nav__link,
.header--overlay .nav__toggle,
.header--overlay .header__phone { color: #fff; }
.header--overlay .burger span { background: #fff; }
.header--overlay .brand-word { color: #fff; }
.header--overlay.is-stuck {
  background: rgba(16, 18, 21, .86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
}
.header--overlay.is-stuck .nav__link,
.header--overlay.is-stuck .nav__toggle,
.header--overlay.is-stuck .header__phone { color: #fff; }
.header--overlay.is-stuck .burger span { background: #fff; }
.header--overlay.is-stuck .brand-word { color: #fff; }

/* The nav needs more room than the standard content shell allows */
.header .header__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
  max-width: 1560px;
  padding-inline: clamp(1.25rem, 3vw, 2.5rem);
}

.header__brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  flex: none;
  margin-right: auto;
}

.header__logo {
  width: 44px;
  height: 44px;
  flex: none;
  object-fit: cover;
  border-radius: 11px;
  box-shadow: 0 2px 10px rgba(255, 102, 0, .28);
}

.brand-word {
  display: grid;
  line-height: 1.05;
  color: #fff;
  transition: color .35s var(--ease);
}
.brand-word b {
  font-size: .9375rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand-word span {
  font-size: .5625rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brand);
}
@media (max-width: 400px) { .brand-word { display: none; } }

.header__phone {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  transition: color .3s var(--ease);
}
.header__phone svg { width: 15px; height: 15px; }
.header__phone:hover { color: var(--brand); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex: none;
}

/* Desktop nav */
.nav { display: flex; align-items: center; gap: .25rem; }

.nav__item { position: relative; }

.nav__link,
.nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .625rem .6875rem;
  border: 0;
  background: none;
  border-radius: 100px;
  font-size: .7188rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  cursor: pointer;
  white-space: nowrap;
  transition: color .3s var(--ease), background-color .3s var(--ease);
}

.nav__link:hover,
.nav__toggle:hover,
.nav__item.is-open .nav__toggle { color: var(--brand); }

.nav__link.is-active { color: var(--brand); }

.nav__caret {
  width: 9px;
  height: 9px;
  transition: transform .35s var(--ease);
}
.nav__item.is-open .nav__caret { transform: rotate(180deg); }

/* Mega dropdown */
.mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 40;
  width: min(760px, calc(100vw - 3rem));
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .35s;
}

.nav__item.is-open .mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.mega__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .375rem;
}

.mega__card {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem;
  border-radius: var(--radius-sm);
  transition: background-color .3s var(--ease);
}
.mega__card:hover { background: var(--paper-2); }

.mega__thumb {
  width: 62px;
  height: 46px;
  flex: none;
  object-fit: cover;
  border-radius: 7px;
  background: var(--paper-3);
}

.mega__name {
  display: block;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
}
.mega__price {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--brand);
}

.mega__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.mega__foot p { margin: 0; font-size: .8125rem; color: var(--slate); max-width: 42ch; }
.mega__foot-eyebrow { display: block; font-size: .6875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: .3125rem; }
.mega__foot-title { display: block; font-size: .875rem; font-weight: 800; letter-spacing: -.01em; color: #fff; margin-bottom: .1875rem; }
.mega__foot-links { display: flex; align-items: center; gap: 1.25rem; flex: none; }

/* Burger */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  align-content: center;
  justify-items: center;
  gap: 5px;
  -webkit-tap-highlight-color: transparent;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
.burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; }
.burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. Mobile drawer
   -------------------------------------------------------------------------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .45s var(--ease), visibility .45s;
  overflow-y: auto;
}

.drawer.is-open { opacity: 1; visibility: visible; transform: none; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--line-dark);
}
.drawer__head img { width: 40px; height: 40px; object-fit: cover; border-radius: 10px; }

.drawer__close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background-color .3s var(--ease);
}
.drawer__close:hover { background: rgba(255, 255, 255, .08); }

.drawer__body { padding: 1.5rem var(--gutter) 3rem; }

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #fff;
  background: none;
  border-left: 0; border-right: 0; border-top: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.drawer__link svg { width: 12px; height: 12px; transition: transform .35s var(--ease); }
.drawer__link.is-open svg { transform: rotate(180deg); }

.drawer__sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}
.drawer__sub.is-open { grid-template-rows: 1fr; }
.drawer__sub > div { overflow: hidden; }
.drawer__sub a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 0 .5rem 1rem;
  border-left: 1px solid var(--line-dark);
  margin-left: .25rem;
  font-size: .9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .65);
  transition: color .3s var(--ease);
}
.drawer__sub a:first-child { margin-top: .75rem; }
.drawer__sub a:last-child { margin-bottom: .75rem; }
.drawer__sub a:hover { color: var(--brand-soft); }
.drawer__thumb {
  width: 56px;
  height: 42px;
  flex: none;
  object-fit: cover;
  border-radius: 7px;
  background: var(--paper-3);
}
.drawer__sub a > span { display: block; }
.drawer__sub .drawer__price { display: block; font-size: .8125rem; font-weight: 700; color: var(--brand); }

.drawer__foot { margin-top: 2rem; display: grid; gap: .75rem; }
.drawer__foot .btn { width: 100%; }

/* --------------------------------------------------------------------------
   8. Hero — home
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(100svh, 940px);
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  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__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 14, .68) 0%, rgba(10, 12, 14, .28) 34%, rgba(10, 12, 14, .88) 100%),
    linear-gradient(90deg, rgba(10, 12, 14, .55) 0%, transparent 62%);
}

.hero__inner { position: relative; z-index: 1; width: 100%; }

.hero__title {
  margin: 0;
  font-size: clamp(3rem, 1.2rem + 8vw, 8.25rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.045em;
  color: #fff;
  text-transform: uppercase;
}

.hero__title span { display: block; }
.hero__title span:nth-child(2) { padding-left: clamp(0px, 4vw, 4.5rem); }
.hero__title span:nth-child(3) {
  padding-left: clamp(0px, 8vw, 9rem);
  color: var(--brand);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

.hero__note {
  max-width: 30rem;
  margin: 0;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, .78);
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(3rem, 7vw, 6rem);
  z-index: 1;
  display: none;
  writing-mode: vertical-rl;
  font-size: .625rem;
  font-weight: 800;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}
@media (min-width: 1100px) { .hero__scroll { display: block; } }

.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 60px;
  margin: 1rem auto 0;
  background: linear-gradient(rgba(255, 255, 255, .45), transparent);
}

/* Trust strip below hero */
.trust {
  background: var(--ink-2);
  color: rgba(255, 255, 255, .72);
  border-top: 1px solid var(--line-dark);
}
.trust__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem clamp(1.5rem, 4vw, 3.5rem);
  padding-block: 1.5rem;
  text-align: center;
}
.trust__item {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.trust__item svg { width: 16px; height: 16px; color: var(--brand); flex: none; }

/* --------------------------------------------------------------------------
   9. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  overflow: hidden;
  isolation: isolate;
}

.page-hero--compact { padding-bottom: clamp(5rem, 10vw, 8rem); }
.page-hero__center { max-width: var(--shell-narrow); margin-inline: auto; text-align: center; }
.page-hero__center .lede { margin-inline: auto; }

/* Contact: enquiry form leads the page, lifted up over the hero edge */
.contact-lead { padding-top: 0; padding-bottom: clamp(3rem, 6vw, 5rem); }
.contact-lead .form-card {
  margin-top: calc(clamp(3rem, 7vw, 6rem) * -1);
  position: relative;
  z-index: 2;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% 40% 30% -20%;
  z-index: -1;
  background: radial-gradient(ellipse at center, var(--brand-tint-2), transparent 68%);
  filter: blur(30px);
}

.page-hero h1 { color: #fff; }
.page-hero .lede { color: rgba(255, 255, 255, .68); margin-top: 1.25rem; max-width: 44rem; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.crumbs a { transition: color .3s var(--ease); }
.crumbs a:hover { color: var(--brand-soft); }
.crumbs span[aria-current] { color: var(--brand); }

/* --------------------------------------------------------------------------
   10. Product grid / cards
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: clamp(1.25rem, 2.4vw, 2rem);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  transition: transform .5s var(--ease-out-expo), box-shadow .5s var(--ease-out-expo),
              border-color .4s var(--ease);
}

.card:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-3);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out-expo);
}
.card:hover .card__media img { transform: scale(1.06); }

.card__price {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: .5rem .875rem;
  border-radius: 100px;
  background: rgba(16, 18, 21, .78);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .875rem;
  padding: 1.5rem;
}

.card__title { font-size: 1.5rem; }

.card__text {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.65;
  color: var(--slate);
}

.card__foot { margin-top: auto; padding-top: .5rem; }

/* Spec chips */
.specs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.specs li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .375rem .75rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--slate);
}
.specs svg { width: 13px; height: 13px; color: var(--brand); }

.specs--lg li {
  padding: .5rem 1rem;
  font-size: .8125rem;
  border-color: rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .85);
}

/* --------------------------------------------------------------------------
   11. Feature list / value props
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.feature {
  padding-top: 1.5rem;
  border-top: 2px solid rgba(255, 255, 255, .85);
}
.section--dark .feature { border-top-color: var(--brand); }

.feature__num {
  display: block;
  margin-bottom: .875rem;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .18em;
  color: var(--brand);
}

.feature h3 { font-size: 1.1875rem; margin-bottom: .625rem; }
.feature p { margin: 0; font-size: .9375rem; color: var(--slate); }
.section--dark .feature p { color: rgba(255, 255, 255, .62); }

/* Split media + copy */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: 2; }
  .split--portrait { grid-template-columns: 1.4fr .8fr; }
}

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-3);
}
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media--portrait img { aspect-ratio: 4 / 5; object-position: 50% 22%; }

.split__stack { display: grid; gap: 1rem; }
.photo-band { margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper-3); }
.photo-band img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.split__stack img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.checklist li {
  position: relative;
  padding-left: 2rem;
  font-size: .9375rem;
  line-height: 1.6;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6600' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.checklist--cols { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: .75rem 2rem; }
.section--dark .checklist li { color: rgba(255, 255, 255, .78); }

/* --------------------------------------------------------------------------
   12. Product detail page
   -------------------------------------------------------------------------- */
.pd-hero {
  position: relative;
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
}

.pd-hero__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 960px) {
  .pd-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
}

.pd-hero h1,
.pd-hero h2,
.pd-hero h3 { color: #fff; }

.pd-hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem); }

.pd-hero__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .625rem;
  margin: 1.5rem 0;
}
.pd-hero__price b {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--brand);
}
.pd-hero__price small { font-size: .8125rem; color: rgba(255, 255, 255, .5); }

.pd-gallery { display: grid; gap: .75rem; grid-template-columns: repeat(3, 1fr); }
.pd-gallery__main {
  grid-column: 1 / -1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink-3);
}
.pd-gallery__main img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pd-gallery__thumb {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-3);
  cursor: pointer;
}
.pd-gallery__thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s var(--ease-out-expo), opacity .3s var(--ease);
}
.pd-gallery__thumb:hover img { transform: scale(1.06); opacity: .85; }

/* Floorplan block */
.floorplan {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (min-width: 900px) { .floorplan { grid-template-columns: 1.1fr 1fr; } }

/* Floorplan drawings are dark-on-white with multiply blending — keep this
   surface white even on the dark theme or they turn into a black box. */
.floorplan__img {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #ffffff;
}
.floorplan__img img { width: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* --------------------------------------------------------------------------
   13. Quote / testimonials
   -------------------------------------------------------------------------- */
.quote {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.quote::before {
  content: "\201C";
  position: absolute;
  top: -.15em;
  left: .35em;
  font-size: 6rem;
  line-height: 1;
  font-weight: 800;
  color: var(--brand);
  opacity: .18;
}

.quote p {
  position: relative;
  margin: 0 0 1.1rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-style: italic;
  color: rgba(255, 255, 255, .88);
}

.quote cite {
  display: block;
  font-size: .75rem;
  font-weight: 800;
  font-style: normal;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
}

.quote--dark {
  background: rgba(255, 255, 255, .04);
  border-color: var(--line-dark);
}
.quote--dark p { color: rgba(255, 255, 255, .88); }

/* Testimonial rail */
.rail {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) transparent;
}
.rail::-webkit-scrollbar { height: 5px; }
.rail::-webkit-scrollbar-track { background: var(--line-dark); border-radius: 10px; }
.rail::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 10px; }

.rail > * {
  flex: 0 0 min(400px, 82vw);
  scroll-snap-align: start;
}

.rail-nav { display: flex; gap: .625rem; margin-top: .5rem; }
.rail-nav button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              color .3s var(--ease), transform .3s var(--ease);
}
.rail-nav button:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-2px);
}
.rail-nav svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------------------
   14. Stats
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--paper);
  text-align: center;
}
.stat b {
  display: block;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.875rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: #fff;
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: .625rem;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate-2);
}

/* --------------------------------------------------------------------------
   15. Tabs (locations)
   -------------------------------------------------------------------------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.tab {
  padding: .8125rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: none;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--slate);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.tab:hover { border-color: #fff; color: #fff; }
.tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.tab-panel { display: none; animation: fade-up .5s var(--ease) both; }
.tab-panel.is-active { display: block; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Location card */
.loc {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
@media (min-width: 900px) { .loc { grid-template-columns: 1fr 1fr; } }

.loc__map {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-3);
  min-height: 340px;
}
.loc__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

.info-list { display: grid; gap: 1.25rem; margin: 1.75rem 0 2rem; }
.info-list div { display: grid; gap: .25rem; }
.info-list dt {
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate-2);
}
.info-list dd {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
}
.info-list dd a { transition: color .3s var(--ease); }
.info-list dd a:hover { color: var(--brand); }

.hours { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
}
.hours li:last-child { border-bottom: 0; }
.hours span:first-child { font-weight: 700; color: #fff; }
.hours span:last-child { color: var(--slate); }
.hours li.is-closed span:last-child { color: var(--brand); font-weight: 700; }

/* --------------------------------------------------------------------------
   16. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }

.acc {
  border-bottom: 1px solid var(--line);
}

.acc__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.5rem 0;
  border: 0;
  background: none;
  text-align: left;
  font-size: clamp(1rem, .95rem + .3vw, 1.1875rem);
  font-weight: 800;
  letter-spacing: -.015em;
  color: #fff;
  cursor: pointer;
  transition: color .3s var(--ease);
}
.acc__trigger:hover { color: var(--brand); }

.acc__icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color .35s var(--ease), border-color .35s var(--ease),
              transform .45s var(--ease);
}
.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 1.6px;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: background-color .3s var(--ease), opacity .3s var(--ease),
              transform .4s var(--ease);
}
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.acc.is-open .acc__icon { background: var(--brand); border-color: var(--brand); transform: rotate(180deg); }
.acc.is-open .acc__icon::before,
.acc.is-open .acc__icon::after { background: #fff; }
.acc.is-open .acc__icon::after { opacity: 0; }

.acc__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}
.acc.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__inner {
  padding: 0 clamp(0px, 6vw, 4rem) 1.75rem 0;
  color: var(--slate);
  font-size: .9688rem;
}
.acc__inner p:last-child { margin-bottom: 0; }

/* Search field */
.search {
  position: relative;
  max-width: 32rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.search svg {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--slate-2);
  pointer-events: none;
}
.search input {
  width: 100%;
  padding: 1.05rem 1.25rem 1.05rem 3.25rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  font-size: .9375rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.search input:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}

.empty-state {
  display: none;
  padding: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--slate);
}
.empty-state.is-visible { display: block; }
.empty-state h3 { margin-bottom: .75rem; }

/* --------------------------------------------------------------------------
   17. Gallery + lightbox
   -------------------------------------------------------------------------- */
.masonry {
  columns: 3 300px;
  column-gap: clamp(.75rem, 1.6vw, 1.25rem);
}

.masonry figure {
  margin: 0 0 clamp(.75rem, 1.6vw, 1.25rem);
  break-inside: avoid;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-3);
  cursor: zoom-in;
}
.masonry img {
  width: 100%;
  transition: transform .8s var(--ease-out-expo), opacity .4s var(--ease);
}
.masonry figure:hover img { transform: scale(1.05); opacity: .9; }

/* Album cards — one per gallery folder */
.albums {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}
@media (max-width: 1080px) { .albums { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .albums { grid-template-columns: minmax(0, 1fr); } }

.album {
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform .5s var(--ease-out-expo), border-color .3s var(--ease), box-shadow .5s var(--ease);
}
.album:hover,
.album:focus-visible {
  transform: translateY(-6px);
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
}

.album__frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-3);
}
.album__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--ease-out-expo);
}
.album:hover .album__img { transform: scale(1.06); }

.album__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 9, 11, .72), rgba(8, 9, 11, 0) 55%);
}

.album__count {
  position: absolute;
  z-index: 1;
  left: 1rem;
  bottom: 1rem;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(8, 9, 11, .6);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}

.album__body {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: clamp(1.15rem, 2vw, 1.6rem);
}
.album__title {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}
.album__text {
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--slate);
}
.album__more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: .45rem;
  margin-top: auto;
  padding-top: .35rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
}
.album__more svg { width: 15px; height: 15px; transition: transform .4s var(--ease-out-expo); }
.album:hover .album__more svg { transform: translateX(4px); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 9, 11, .94);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox > img {
  max-width: 100%;
  max-height: 84svh;
  object-fit: contain;
  border-radius: var(--radius);
  transform: scale(.97);
  transition: transform .45s var(--ease-out-expo);
}
.lightbox.is-open > img { transform: none; }

.lightbox__btn {
  position: absolute;
  z-index: 2;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  cursor: pointer;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.lightbox__btn:hover { background: var(--brand); border-color: var(--brand); transform: scale(1.06); }
.lightbox__btn svg { width: 18px; height: 18px; }
.lightbox__close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__prev { left: clamp(.5rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: clamp(.5rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__prev:hover, .lightbox__next:hover { transform: translateY(-50%) scale(1.06); }

.lightbox__count {
  position: absolute;
  bottom: clamp(1rem, 3vw, 2rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .6);
}

/* Album mode — folder title up top, thumbnail filmstrip along the bottom */
.lightbox__title {
  position: absolute;
  top: clamp(1rem, 3vw, 2rem);
  left: clamp(1rem, 3vw, 2rem);
  right: calc(clamp(1rem, 3vw, 2rem) + 62px);
  margin: 0;
  font-size: clamp(.9375rem, 1.4vw, 1.125rem);
  font-weight: 800;
  letter-spacing: -.01em;
  color: #fff;
}
.lightbox__title:empty { display: none; }

.lightbox__strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  gap: .5rem;
  padding: 1rem clamp(1rem, 3vw, 2rem) 1.15rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .25) transparent;
  background: linear-gradient(to top, rgba(8, 9, 11, .92), rgba(8, 9, 11, 0));
}
.lightbox--album .lightbox__strip { display: flex; }
.lightbox--album > img { max-height: 62svh; }
.lightbox--album .lightbox__count {
  bottom: auto;
  top: clamp(1rem, 3vw, 2rem);
  left: clamp(1rem, 3vw, 2rem);
  transform: none;
}
.lightbox--album .lightbox__title { top: calc(clamp(1rem, 3vw, 2rem) + 1.35rem); }

.lightbox__thumb {
  flex: 0 0 auto;
  width: 92px;
  height: 68px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper-3);
  opacity: .5;
  cursor: pointer;
  transition: opacity .3s var(--ease), border-color .3s var(--ease);
}
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox__thumb:hover { opacity: .85; }
.lightbox__thumb.is-active { opacity: 1; border-color: var(--brand); }

@media (max-width: 640px) {
  .lightbox__thumb { width: 68px; height: 52px; }
  .lightbox--album > img { max-height: 56svh; }
  .lightbox__prev, .lightbox__next { top: 44%; }
}

/* --------------------------------------------------------------------------
   18. Comparison tool
   -------------------------------------------------------------------------- */
.compare {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.compare__col {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
}

.compare__pick { padding: 1.25rem; border-bottom: 1px solid var(--line); background: var(--paper-2); }

.select {
  position: relative;
  width: 100%;
}
.select select {
  appearance: none;
  width: 100%;
  padding: .95rem 3rem .95rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.select select:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.select::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -6px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
  pointer-events: none;
}

.compare__body { padding: 1.5rem; }
.compare__body img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--paper-3);
  margin-bottom: 1.25rem;
}
.compare__price {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--brand);
  margin: .5rem 0 1rem;
}

.compare__empty {
  display: grid;
  place-items: center;
  min-height: 380px;
  padding: 2rem;
  text-align: center;
  color: var(--slate-2);
  font-size: .875rem;
}

/* --------------------------------------------------------------------------
   19. Forms
   -------------------------------------------------------------------------- */
.form-card {
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
}

.field { display: grid; gap: .5rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--slate-2);
}
.field label .req { color: var(--brand); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  font-size: .9375rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a7adb8' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 15px;
  padding-right: 2.75rem;
}
.field textarea { min-height: 140px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  background: var(--paper);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}

.field .hint { font-size: .75rem; color: var(--slate-2); letter-spacing: 0; text-transform: none; font-weight: 500; }

.form-note {
  margin-top: 1.25rem;
  font-size: .8125rem;
  color: var(--slate-2);
}

.form-status {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--brand-tint);
  border: 1px solid var(--brand-tint-2);
  font-size: .875rem;
  font-weight: 700;
  color: #fff;
}
.form-status.is-visible { display: block; }
/* The send failed (refused or offline): the form is kept and can be retried. */
.form-status.is-error {
  background: rgba(229, 72, 77, .12);
  border-color: rgba(229, 72, 77, .45);
  font-weight: 600;
}
.form-status .form-retry { display: flex; margin-top: .875rem; padding: .75rem 1.25rem; }

.dropzone {
  display: grid;
  place-items: center;
  gap: .5rem;
  padding: 2rem 1.25rem;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  text-align: center;
  cursor: pointer;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.dropzone:hover, .dropzone.is-over { border-color: var(--brand); background: var(--brand-tint); }
.dropzone svg { width: 26px; height: 26px; color: var(--brand); }
.dropzone b { font-size: .875rem; }
.dropzone small { font-size: .75rem; color: var(--slate-2); }
.dropzone input { display: none; }

/* --------------------------------------------------------------------------
   20. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: rgba(255, 255, 255, .72);
  isolation: isolate;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% 30%;
  z-index: -1;
  aspect-ratio: 1;
  background: radial-gradient(circle, var(--brand-tint-2), transparent 66%);
  filter: blur(40px);
}

.cta-band__inner {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}
@media (min-width: 880px) {
  .cta-band__inner { grid-template-columns: 1.3fr auto; }
}

.cta-band h1,
.cta-band h2,
.cta-band h3 { color: #fff; }

.cta-band h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
.cta-band p { margin: 1rem 0 0; color: rgba(255, 255, 255, .66); max-width: 34rem; }

.cta-band__actions { display: flex; flex-wrap: wrap; gap: .875rem; }

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: #0a0b0d;
  color: rgba(255, 255, 255, .58);
  font-size: .875rem;
}

.footer__top {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 5rem);
}
@media (min-width: 780px) {
  .footer__top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}

.footer__logo {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1.25rem;
}

.footer p { margin: 0 0 1rem; line-height: 1.65; }

.footer h4 {
  margin-bottom: 1.25rem;
  font-size: .6875rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; }
.footer a { transition: color .3s var(--ease); }
.footer a:hover { color: var(--brand); }

.socials { display: flex; gap: .625rem; margin-top: 1.25rem; }
.socials a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  transition: background-color .3s var(--ease), border-color .3s var(--ease),
              color .3s var(--ease), transform .3s var(--ease);
}
.socials a:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  transform: translateY(-3px);
}
.socials svg { width: 17px; height: 17px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line-dark);
  font-size: .8125rem;
  color: rgba(255, 255, 255, .42);
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* --------------------------------------------------------------------------
   22. Floating call button
   -------------------------------------------------------------------------- */
.fab {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  padding: .95rem 1.35rem;
  border-radius: 100px;
  background: var(--brand);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(255, 102, 0, .34);
  opacity: 0;
  transform: translateY(20px) scale(.95);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease-out-expo);
}
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { transform: translateY(-3px); }
.fab svg { width: 15px; height: 15px; }
@media (max-width: 520px) { .fab span { display: none; } .fab { padding: 1.05rem; } }

/* --------------------------------------------------------------------------
   23. Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out-expo), transform .9s var(--ease-out-expo);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   24. Prose (legal pages)
   -------------------------------------------------------------------------- */
.prose { max-width: 52rem; }
.prose h2 {
  margin: 2.75rem 0 1rem;
  font-size: clamp(1.375rem, 1.15rem + .9vw, 1.75rem);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2rem 0 .75rem; font-size: 1.125rem; }
.prose p, .prose li { color: var(--slate); font-size: .9688rem; }
.prose li { margin-bottom: .5rem; }
.prose strong { color: #fff; }
.prose .meta {
  display: inline-block;
  margin-bottom: 2rem;
  padding: .4rem .875rem;
  border-radius: 100px;
  background: var(--paper-2);
  font-size: .75rem;
  font-weight: 700;
  color: var(--slate-2);
}

/* --------------------------------------------------------------------------
   25. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1400px) {
  .header__phone { display: none; }
}

@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: grid; }
}

@media (max-width: 640px) {
  .pd-gallery { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .rail > * { flex-basis: 84vw; }
  .masonry { columns: 1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   Mobile ergonomics — tap targets and legibility on touch devices
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  /* Buttons reach a 44px tap target */
  .btn { min-height: 46px; padding-block: .875rem; }
  .btn--sm { min-height: 42px; }

  /* Small uppercase labels get a touch more size on small screens */
  .eyebrow,
  .crumbs { font-size: .75rem; }

  /* Inline text links get real vertical hit area without moving the layout */
  .link-arrow,
  .announce__cta {
    padding-block: .625rem;
    margin-block: -.625rem;
  }
  .info-list dd a,
  .hours a {
    display: inline-block;
    padding-block: .5rem;
    margin-block: -.5rem;
  }

  /* Model card titles are part of the card's hit area, not a hairline link */
  .card__title a,
  .card h3 a { display: block; padding-block: .5rem; margin-block: -.5rem; }

  .announce__cta { padding-block: .75rem; margin-block: -.75rem; }

  /* 11px uppercase is too fine on a phone — lift the labels that carry meaning */
  .field label,
  .btn--sm,
  .album__count,
  .stat span { font-size: .75rem; }
}

/* --------------------------------------------------------------------------
   26. Home customiser (custom-40-foot.html, driven by js/configurator.js)
   Previews are a stack of same-size layers: an opaque base plus transparent
   cut-outs. Every layer must share the base's aspect ratio (3:2).
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  .split--top { align-items: start; }
  .split--form { grid-template-columns: .8fr 1.2fr; }
}

/* Layer stack — shared by the page teaser and the modal stage */
.cfg-teaser__stage,
.cfg__stage-layers {
  position: relative;
  display: block;
  aspect-ratio: 3 / 2;
}
.cfg-teaser__stage img,
.cfg__stage-layers img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cfg-teaser__stage img[hidden],
.cfg__stage-layers img[hidden] { display: none; } /* the reset sets img to display:block */
.cfg-teaser__stage::after,
.cfg__stage-layers::after {
  content: "";
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: var(--brand);
  border-radius: 50%;
  opacity: 0;
  animation: cfg-spin .8s linear infinite;
  transition: opacity .2s var(--ease);
  pointer-events: none;
}
.is-loading.cfg-teaser__stage::after,
.is-loading.cfg__stage-layers::after { opacity: 1; transition-delay: .25s; }
@keyframes cfg-spin { to { transform: rotate(360deg); } }

/* Teaser section */
.cfg-teaser {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) { .cfg-teaser { grid-template-columns: 1.15fr 1fr; } }

.cfg-teaser__media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-3);
  cursor: pointer;
}
.cfg-teaser__stage img { transition: transform .8s var(--ease-out-expo); }
.cfg-teaser__media:hover .cfg-teaser__stage img { transform: scale(1.03); }
.cfg-teaser__badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.1rem;
  border-radius: 100px;
  background: var(--brand);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.cfg-teaser__badge svg { width: 15px; height: 15px; }

.cfg-teaser__groups {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.cfg-teaser__groups button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 40px;
  padding: .45rem .5rem .45rem .95rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper-2);
  color: #fff;
  font: inherit;
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.cfg-teaser__groups button:hover { border-color: var(--brand); background: var(--brand-tint); }
.cfg-teaser__groups span {
  min-width: 1.6rem;
  padding: .1rem .45rem;
  border-radius: 100px;
  background: var(--paper-3);
  color: var(--slate);
  font-size: .75rem;
  font-weight: 700;
  text-align: center;
}

/* Selections echoed at the top of the quote form */
.cfg-picked {
  margin-bottom: 1.75rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
}
.cfg-picked__title {
  margin: 0 0 .625rem;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
}
.cfg-picked__list {
  display: grid;
  gap: .3rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .8125rem;
}
.cfg-picked__list li { display: flex; justify-content: space-between; gap: .75rem; }
.cfg-picked__list span { color: var(--slate-2); }
.cfg-picked__list b { color: #fff; font-weight: 600; text-align: right; }

/* The modal */
.cfg {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  background: var(--ink);
  color: var(--text);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s var(--ease), transform .45s var(--ease-out-expo);
}
.cfg[hidden] { display: none; }
.cfg.is-open { opacity: 1; transform: none; }

.cfg__main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0 clamp(1rem, 2.5vw, 2.25rem) 1.25rem;
  overflow: hidden;
}

.cfg__bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
}
.cfg__brand {
  flex: none;
  margin: 0;
  font-size: .9375rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.cfg__brand b { color: var(--brand); font-weight: 800; }

.cfg__tabs {
  display: flex;
  flex: 1;
  gap: .25rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}
.cfg__tabs::-webkit-scrollbar { display: none; }
.cfg__tab {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding: .5rem .9rem;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: var(--slate);
  font: inherit;
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: center;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.cfg__tab:hover { color: #fff; background: var(--paper-2); }
.cfg__tab.is-active { color: #fff; background: var(--paper-3); }
.cfg__tab-num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper-3);
  color: var(--slate);
  font-size: .6875rem;
  font-weight: 800;
}
.cfg__tab.is-active .cfg__tab-num { background: var(--brand); color: #fff; }

.cfg__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: #fff;
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.cfg__close:hover { background: var(--brand); border-color: var(--brand); }
.cfg__close svg { width: 18px; height: 18px; }

.cfg__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 .75rem;
}
.cfg__title {
  margin: 0;
  font-size: clamp(1.375rem, 1rem + 1.2vw, 2rem);
  color: #fff;
}
.cfg__title::first-letter { text-transform: uppercase; }
.cfg__sub { margin: .25rem 0 0; font-size: .875rem; color: var(--slate-2); }

.cfg__stepper { display: flex; flex: none; gap: .5rem; }
.cfg__stepbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  min-width: 44px;
  height: 44px;
  padding: 0 .9rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--paper);
  color: #fff;
  font: inherit;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease);
}
.cfg__stepbtn svg { width: 15px; height: 15px; }
.cfg__stepbtn:hover:not(:disabled) { border-color: var(--brand); }
.cfg__stepbtn:disabled { opacity: .35; cursor: default; }
.cfg__stepbtn--next { padding: 0 1.1rem 0 1.3rem; background: var(--brand); border-color: var(--brand); }
.cfg__stepbtn--next:hover:not(:disabled) { background: var(--brand-soft); }

.cfg__stage {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper);
}
.cfg__stage-layers { height: 100%; max-width: 100%; }
.cfg__stage-layers img { transition: opacity .25s var(--ease); }

.cfg__arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 50%;
  background: rgba(16, 18, 21, .55);
  color: #fff;
  backdrop-filter: blur(8px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.cfg__arrow:hover { background: var(--brand); border-color: var(--brand); }
.cfg__arrow svg { width: 18px; height: 18px; }
.cfg__arrow--prev { left: 1rem; }
.cfg__arrow--next { right: 1rem; }

.cfg__views {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  display: flex;
  gap: .25rem;
  padding: .25rem;
  border-radius: 100px;
  background: rgba(16, 18, 21, .6);
  backdrop-filter: blur(8px);
  transform: translateX(-50%);
}
.cfg__view {
  min-height: 34px;
  padding: .35rem .9rem;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: rgba(255, 255, 255, .75);
  font: inherit;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
}
.cfg__view:hover { color: #fff; }
.cfg__view.is-active { background: #fff; color: var(--ink); }

.cfg__caption {
  margin: .875rem 0 .75rem;
  font-size: .875rem;
  color: var(--slate-2);
  text-align: center;
}
.cfg__caption b { color: #fff; font-weight: 700; }

.cfg__options {
  display: flex;
  flex: none;
  gap: .75rem;
  padding: .25rem .125rem .5rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--paper-3) transparent;
}
.cfg__opt {
  display: flex;
  flex: none;
  flex-direction: column;
  width: 132px;
  padding: .4rem .4rem .55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease);
}
.cfg__opt:hover { border-color: rgba(255, 255, 255, .35); transform: translateY(-2px); }
.cfg__opt.is-selected { border-color: var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 1px var(--brand); }
.cfg__opt-img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  background: var(--paper-3);
}
.cfg__opt-img img { width: 100%; height: 100%; object-fit: cover; }
.cfg__opt-tick {
  position: absolute;
  top: .4rem;
  right: .4rem;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  background: rgba(16, 18, 21, .35);
  color: transparent;
}
.cfg__opt-tick svg { width: 13px; height: 13px; }
.cfg__opt.is-selected .cfg__opt-tick { background: var(--brand); border-color: var(--brand); color: #fff; }
.cfg__opt-label {
  margin-top: .5rem;
  padding: 0 .2rem;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.3;
}
.cfg__opt-note { padding: 0 .2rem; font-size: .75rem; color: var(--slate-2); }

/* Summary sidebar */
.cfg__aside {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1.25rem 1.5rem 1.5rem;
  border-left: 1px solid var(--line);
  background: var(--paper);
  overflow-y: auto;
}
.cfg__aside-title { margin: .5rem 0 1rem; font-size: 1.25rem; color: #fff; }
.cfg__base {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
}
.cfg__base b { color: var(--brand); font-size: 1.125rem; font-weight: 800; white-space: nowrap; }
.cfg__summary-list { flex: 1; margin: .5rem 0 0; padding: 0; list-style: none; }
.cfg__summary-list button {
  display: grid;
  width: 100%;
  gap: .1rem;
  margin: 0;
  padding: .55rem .75rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .25s var(--ease);
}
.cfg__summary-list button:hover { background: var(--paper-2); }
.cfg__summary-list button.is-active { background: var(--paper-3); }
.cfg__summary-group { font-size: .8125rem; font-weight: 700; color: #fff; }
.cfg__summary-value { font-size: .75rem; color: var(--slate); }
.cfg__note { margin: 1rem 0; font-size: .75rem; line-height: 1.55; color: var(--slate-2); }
.cfg__done {
  min-height: 44px;
  margin-top: .5rem;
  border: 0;
  background: transparent;
  color: var(--slate);
  font: inherit;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.cfg__done:hover { color: #fff; }

/* Tablet and phone: one scrolling column, summary after the options */
@media (max-width: 1023px) {
  .cfg {
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .cfg__main { padding: 0 1rem; overflow: visible; }
  .cfg__bar {
    position: sticky;
    top: 0;
    z-index: 3;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    margin: 0 -1rem;
    padding: .625rem 1rem;
    background: var(--ink);
  }
  .cfg__brand { flex: 1; }
  .cfg__tabs { order: 3; flex-basis: 100%; margin: 0 -1rem; padding: 0 1rem; }
  .cfg__head { align-items: center; padding-top: 1rem; }
  .cfg__stage { flex: none; border-radius: var(--radius); }
  .cfg__stage-layers { width: 100%; height: auto; }
  .cfg__arrow { width: 40px; height: 40px; }
  .cfg__arrow--prev { left: .5rem; }
  .cfg__arrow--next { right: .5rem; }
  .cfg__views { bottom: .5rem; }
  /* keep the swatches in a rail so the preview stays in view while choosing */
  .cfg__options { margin: 0 -1rem; padding-inline: 1rem; scroll-padding-inline: 1rem; }
  .cfg__opt { width: 112px; }
  .cfg__aside {
    margin-top: 1.5rem;
    padding: 1.25rem 1rem calc(1.5rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    border-left: 0;
    overflow: visible;
  }
}
@media (max-width: 520px) {
  .cfg__head { flex-wrap: wrap; }
  .cfg__stepbtn--next { flex: 1; }
  .cfg__view { padding-inline: .7rem; }
}
