/* =========================================================
   Atholl Blinds — stylesheet
   Theme: prestige-manor | Palette: carbon + oat + tobacco
   Fonts: Newsreader (display) + Sora (body/UI)
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
html { scroll-behavior: smooth; }

/* ---------- Tokens ---------- */
:root {
  --carbon: #1a1713;
  --carbon-soft: #221e19;
  --carbon-2: #2b2620;
  --oat: #f2ead9;
  --oat-deep: #e7d9bd;
  --paper: #fbf8f1;
  --tobacco: #93684f;
  --tobacco-deep: #694a39;
  --tobacco-light: #cc8a5c;
  --ink: #201c17;
  --ink-soft: #4a4238;
  --line-on-dark: rgba(242, 234, 217, 0.16);
  --line-on-light: rgba(32, 28, 23, 0.14);
  --white: #f8f4ea;

  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Sora', 'Segoe UI', sans-serif;

  --section-pad: clamp(64px, 9vw, 104px);
  --container: 1280px;
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: inherit;
}

h2.section-title {
  font-size: clamp(2rem, 3.4vw, 3rem);
  max-width: 18ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tobacco);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
}

.lede {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-top: 18px;
}

a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--tobacco);
  outline-offset: 3px;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-solid {
  background: var(--tobacco);
  color: var(--white);
  border: 1px solid var(--tobacco);
}
.btn-solid:hover { background: var(--tobacco-deep); border-color: var(--tobacco-deep); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(248, 244, 234, 0.55);
}
.btn-outline:hover { border-color: var(--white); background: rgba(248, 244, 234, 0.08); }
.btn-outline.on-light { color: var(--ink); border-color: var(--line-on-light); }
.btn-outline.on-light:hover { border-color: var(--ink); background: rgba(32,28,23,0.05); }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
  transition: background-color .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(26, 23, 19, 0.94);
  backdrop-filter: blur(10px);
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom-color: var(--line-on-dark);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.nav-brand .mark { width: 34px; height: 34px; color: var(--white); flex: none; }
.nav-brand .word {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: -0.01em;
}
.nav-brand .word em { font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.82;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--tobacco-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  padding: 11px 22px;
  font-size: 0.76rem;
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  color: var(--white);
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  background: var(--carbon);
  z-index: 190;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px clamp(24px, 8vw, 60px);
  gap: 6px;
  transform: translateY(-100%);
  transition: transform .4s var(--ease);
}
.nav-mobile.is-open { transform: translateY(0); }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  color: var(--oat);
  padding: 10px 0;
}
.nav-mobile .btn { margin-top: 24px; }

/* ---------- Side scroll nav (desktop, index only) ---------- */
.side-nav {
  position: fixed;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}
.side-nav .rail {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  width: 1px;
  background: rgba(160, 145, 120, 0.35);
}
.side-nav .rail-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0%;
  background: var(--tobacco);
  transition: height .2s linear;
}
.side-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
}
.side-nav .label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.side-nav .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(122, 108, 88, 0.45);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
  flex: none;
}
.side-nav button:hover .label,
.side-nav button.is-active .label { opacity: 1; transform: translateX(0); }
.side-nav button.is-active .dot { background: var(--tobacco); transform: scale(1.5); }
.side-nav[data-on="dark"] .label { color: var(--oat); }

@media (max-width: 1180px) {
  .side-nav { display: none; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta.desktop-only { display: none; }
  .nav-toggle { display: flex; }
}

/* ---------- Bands ---------- */
.band { position: relative; }
.band--dark { background: var(--carbon); color: var(--oat); }
.band--paper { background: var(--paper); color: var(--ink); }
.band--oat { background: var(--oat); color: var(--ink); }
.band-pad { padding: var(--section-pad) 0; }

.divider-rule {
  width: 64px;
  height: 1px;
  background: var(--tobacco);
  transform: scaleX(0);
  transform-origin: left;
  margin: 0 0 22px;
}
.reveal.is-visible .divider-rule { transform: scaleX(1); transition: transform .9s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--carbon);
}
.hero .reveal-frame { position: absolute; inset: 0; z-index: 0; }
.hero .reveal-frame img {
  position: absolute; inset: 0; width: 100%; height: 118%; object-fit: cover;
  will-change: transform, clip-path;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,14,0.35) 0%, rgba(20,17,14,0.32) 38%, rgba(18,15,12,0.86) 92%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 220px clamp(20px, 5vw, 56px) 96px;
}
.hero-content .inner { max-width: 760px; }
.hero-content h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.5rem);
  line-height: 1.06;
}
.hero-content h1 .word { display: inline-block; overflow: hidden; }
.hero-content h1 .word span { display: inline-block; }
.hero-sub {
  margin-top: 24px;
  font-size: 1.14rem;
  max-width: 52ch;
  color: rgba(248, 244, 234, 0.86);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid var(--line-on-dark);
}
.trust-row .item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: rgba(248, 244, 234, 0.9);
}
.trust-row svg { width: 18px; height: 18px; color: var(--tobacco-light); flex: none; }

/* ---------- Slat reveal (signature moment) ---------- */
.reveal-frame { position: relative; overflow: hidden; }
.slats {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  z-index: 2;
  perspective: 900px;
}
.slat {
  flex: 1 1 0;
  background: var(--carbon);
  transform-origin: top center;
  transform: rotateX(0deg);
  border-bottom: 1px solid rgba(0,0,0,0.25);
}

/* ---------- Marquee ---------- */
.marquee-band {
  background: var(--carbon-2);
  color: var(--oat-deep);
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
  overflow: hidden;
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  padding: 0 2.2rem;
  white-space: nowrap;
  color: var(--oat-deep);
  opacity: 0.9;
}
.marquee-track span::after { content: '\2022'; margin-left: 2.2rem; color: var(--tobacco); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Product grid ---------- */
.products-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 56px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-on-light);
  border: 1px solid var(--line-on-light);
}
.product-card {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.product-card .card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--carbon);
}
.product-card .card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  transition: transform .6s var(--ease);
}
.product-card:hover .card-media img { transform: scale(1.045); }
.product-card .card-body {
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
  flex: 1;
  transition: background-color .3s var(--ease);
}
.product-card:hover .card-body { background: var(--white); }
.product-card h3 {
  font-size: 1.14rem;
  margin-bottom: 10px;
}
.product-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.55;
  flex: 1;
}
.product-card .explore {
  margin-top: 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--tobacco-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.product-card .explore svg { width: 13px; height: 13px; transition: transform .25s var(--ease); }
.product-card:hover .explore svg { transform: translateX(4px); }

/* CTA-style card (e.g. Blind Repairs) — same structure, subtle tobacco lift.
   Note: border-left (not box-shadow) — site.js animates an inline box-shadow
   on .product-card for the scroll-reveal lift, which would otherwise win. */
.product-card--cta { border-left: 3px solid var(--tobacco); }
.product-card--cta .card-body { background: rgba(168, 98, 58, 0.05); }
.product-card--cta:hover .card-body { background: rgba(168, 98, 58, 0.09); }
.product-card--cta .explore { color: var(--tobacco); }

@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }

/* ---------- Editorial photo section ---------- */
.editorial {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}
.editorial-main { grid-row: span 2; }
.editorial figure { position: relative; overflow: hidden; }
.editorial-main .reveal-frame { height: 620px; }
.editorial-side .reveal-frame { height: 300px; }
.editorial img { width: 100%; height: 100%; object-fit: cover; }
.editorial figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 24px;
  background: linear-gradient(0deg, rgba(20,17,14,0.78), rgba(20,17,14,0));
  color: var(--white);
  font-size: 0.92rem;
  font-family: var(--font-display);
  font-style: italic;
}
.editorial-side { display: flex; flex-direction: column; gap: 20px; }

@media (max-width: 860px) {
  .editorial { grid-template-columns: 1fr; }
  .editorial-main .reveal-frame { height: 380px; }
  .editorial-side .reveal-frame { height: 280px; }
}

/* ---------- Story / locale section ---------- */
.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.story-grid .pull {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  line-height: 1.4;
  color: var(--ink);
}
.story-body p + p { margin-top: 20px; }
.story-body p { color: var(--ink-soft); }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Process ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 44px;
  margin-top: 56px;
}
.process-step .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.6rem;
  color: var(--tobacco);
  line-height: 1;
  margin-bottom: 18px;
}
.process-step h3 { font-size: 1.08rem; margin-bottom: 10px; }
.process-step p { font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 900px) { .process-grid { grid-template-columns: 1fr 1fr; row-gap: 40px; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- Areas ---------- */
.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}
.area-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--line-on-dark);
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--oat);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), transform .25s var(--ease);
}
.area-chip:hover { border-color: var(--tobacco-light); background: rgba(168, 98, 58, 0.12); transform: translateY(-2px); }
.area-chip svg { width: 14px; height: 14px; color: var(--tobacco-light); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-item {
  border-bottom: 1px solid var(--line-on-light);
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 4px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.14rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus { width: 20px; height: 20px; position: relative; flex: none; }
.faq-item .plus::before, .faq-item .plus::after {
  content: '';
  position: absolute; background: var(--tobacco-deep);
  transition: transform .3s var(--ease);
}
.faq-item .plus::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.faq-item .plus::after { left: 50%; top: 0; height: 100%; width: 1.5px; transform: translateX(-50%); }
.faq-item[open] .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-item[open] .plus::before { transform: translateY(-50%) rotate(180deg); }
.faq-item .answer { padding: 0 4px 26px; color: var(--ink-soft); max-width: 68ch; }

/* ---------- Closing CTA ---------- */
.cta-close {
  position: relative;
  overflow: hidden;
  background: var(--carbon);
  color: var(--white);
  text-align: center;
  padding: 120px 0;
}
.cta-glow {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
}
.cta-glow span {
  position: absolute;
  width: 46vw; height: 46vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.cta-glow span:nth-child(1) { background: var(--tobacco); top: 8%; left: 6%; animation: drift1 22s ease-in-out infinite; }
.cta-glow span:nth-child(2) { background: #5e4433; bottom: 4%; right: 8%; animation: drift2 26s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6%, 8%) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-8%, -6%) scale(1.08); } }
.cta-close .content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-close h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.cta-close p { margin-top: 20px; color: rgba(248,244,234,0.82); font-size: 1.06rem; }
.cta-close .btn { margin-top: 40px; }

/* Magnetic button wrapper */
.magnetic { display: inline-block; }

/* ---------- CTA ripple pulse (signature moment) ---------- */
.ripple-wrap { position: relative; }
.ripple-rings {
  position: absolute;
  left: 50%; top: 50%;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  pointer-events: none;
  z-index: -1;
}
.ripple-rings i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid var(--tobacco-light);
  opacity: 0;
  transform: scale(.6);
}

/* ---------- Form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 44px;
}
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line-on-light);
  border-radius: var(--radius);
  font-size: 0.96rem;
  transition: border-color .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--tobacco); }
.field textarea { min-height: 130px; resize: vertical; }
.form-foot { display: flex; align-items: flex-start; gap: 14px; margin-top: 30px; flex-wrap: wrap; justify-content: space-between; }
.popia-note { font-size: 0.82rem; color: var(--ink-soft); max-width: 52ch; }
.popia-note strong { color: var(--ink); }
.form-confirm {
  display: none;
  margin-top: 30px;
  padding: 22px 26px;
  border: 1px solid var(--tobacco);
  background: rgba(168, 98, 58, 0.08);
  font-size: 0.96rem;
}
.form-confirm.is-visible { display: block; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--carbon);
  color: var(--oat);
  padding: 72px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-on-dark);
}
.footer-brand { max-width: 360px; }
.footer-brand .nav-brand { margin-bottom: 18px; }
.footer-brand p { color: rgba(242,234,217,0.72); font-size: 0.92rem; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tobacco-light);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.9rem; color: rgba(242,234,217,0.82); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 0.78rem;
  color: rgba(242,234,217,0.6);
}
.footer-bottom .popia { max-width: 60ch; }

/* ---------- Scroll reveals ----------
   Hidden states are gated behind html.js (set by an inline script in <head>)
   so content is never invisible for no-JS visitors. */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Thin accent rules (eyebrow dashes) draw themselves in with each reveal */
html.js .reveal .eyebrow::before { transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease) .15s; }
html.js .reveal.is-visible .eyebrow::before { transform: scaleX(1); }

/* Slat covers sit over photos until GSAP wipes them away — without JS they must never appear */
html:not(.js) .slats { display: none; }

/* ---------- Chat widget ---------- */
.chat-launcher {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--tobacco);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(20,15,10,0.35);
  z-index: 300;
  transition: transform .3s var(--ease), background-color .25s var(--ease);
}
.chat-launcher:hover { background: var(--tobacco-deep); transform: scale(1.06); }
.chat-launcher svg { width: 24px; height: 24px; }
.chat-launcher .icon-close { display: none; }
.chat-launcher.is-open .icon-chat { display: none; }
.chat-launcher.is-open .icon-close { display: block; }

.chat-panel {
  position: fixed;
  bottom: 100px; right: 26px;
  width: min(360px, calc(100vw - 40px));
  height: min(520px, calc(100vh - 150px));
  background: var(--paper);
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(15,12,9,0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 300;
  opacity: 0;
  transform: translateY(16px) scale(.98);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.chat-panel.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chat-head {
  background: var(--carbon);
  color: var(--oat);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-head .mark { width: 26px; height: 26px; color: var(--white); }
.chat-head .titles { line-height: 1.3; }
.chat-head .titles strong { font-family: var(--font-display); font-size: 1rem; display: block; }
.chat-head .titles span { font-size: 0.72rem; color: var(--tobacco-light); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { max-width: 86%; padding: 11px 14px; border-radius: 12px; font-size: 0.88rem; line-height: 1.5; }
.chat-msg.bot { align-self: flex-start; background: var(--oat-deep); color: var(--ink); border-bottom-left-radius: 2px; }
.chat-msg.user { align-self: flex-end; background: var(--tobacco); color: var(--white); border-bottom-right-radius: 2px; }
.chat-popia { font-size: 0.72rem; color: var(--ink-soft); background: var(--white); border: 1px dashed var(--line-on-light); padding: 10px 12px; border-radius: 8px; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; max-width: 100%; }
.chat-chip {
  border: 1px solid var(--tobacco);
  color: var(--tobacco-deep);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.chat-chip:hover { background: var(--tobacco); color: var(--white); }
.chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-on-light); background: var(--white); }
.chat-input-row input { flex: 1; padding: 10px 12px; border: 1px solid var(--line-on-light); border-radius: 8px; font-size: 0.88rem; }
.chat-input-row button { background: var(--tobacco); color: var(--white); padding: 0 16px; border-radius: 8px; font-size: 0.82rem; font-weight: 600; }
.chat-input-row button:hover { background: var(--tobacco-deep); }
.chat-input-row.is-hidden { display: none; }
@media (max-width: 480px) {
  .chat-panel { right: 14px; bottom: 92px; }
  .chat-launcher { right: 14px; bottom: 18px; }
}

/* ---------- Subpage hero (products / areas) ---------- */
.sub-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--carbon);
}
.sub-hero .reveal-frame { position: absolute; inset: 0; z-index: 0; }
.sub-hero .reveal-frame img { width: 100%; height: 100%; object-fit: cover; will-change: clip-path; }
.sub-hero-content { position: relative; z-index: 2; padding: 200px clamp(20px,5vw,56px) 72px; max-width: 820px; }
.breadcrumb { font-size: 0.8rem; color: rgba(248,244,234,0.72); margin-bottom: 18px; letter-spacing: 0.04em; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }
.sub-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); }

.prose { max-width: 68ch; }
.prose p + p { margin-top: 20px; color: var(--ink-soft); }
.callout {
  border-left: 3px solid var(--tobacco);
  background: var(--oat);
  padding: 22px 26px;
  margin: 40px 0;
  font-size: 0.96rem;
}
.callout strong { display: block; font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 8px; color: var(--tobacco-deep); }

.two-col {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }

.option-list li { padding: 16px 0; border-bottom: 1px solid var(--line-on-light); }
.option-list li:first-child { padding-top: 0; }
.option-list h4 { font-size: 1rem; margin-bottom: 6px; }
.option-list p { font-size: 0.9rem; color: var(--ink-soft); }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.related-card {
  border: 1px solid var(--line-on-light);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.related-card:hover { border-color: var(--tobacco); transform: translateY(-3px); }
.related-card .related-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--carbon); }
.related-card .related-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  transition: transform .5s var(--ease);
}
.related-card:hover .related-media img { transform: scale(1.05); }
.related-card .related-body { padding: 18px 20px 22px; }
.related-card h4 { font-size: 0.98rem; margin-bottom: 6px; }
.related-card p { font-size: 0.84rem; color: var(--ink-soft); }
@media (max-width: 800px) { .related-grid { grid-template-columns: 1fr; } }

.mini-cta {
  background: var(--oat);
  border: 1px solid var(--oat-deep);
  padding: 40px;
  text-align: center;
}
.mini-cta h3 { font-size: 1.5rem; margin-bottom: 12px; }
.mini-cta p { color: var(--ink-soft); max-width: 48ch; margin: 0 auto 26px; }

.area-facts { display: flex; flex-direction: column; gap: 22px; }
.area-facts .fact { border-top: 1px solid var(--line-on-light); padding-top: 16px; }
.area-facts h4 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tobacco-deep); margin-bottom: 8px; }
.area-facts p { font-size: 0.92rem; color: var(--ink-soft); }

.area-nearby { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.area-nearby a {
  border: 1px solid var(--line-on-light);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.84rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.area-nearby a:hover { border-color: var(--tobacco); background: rgba(168,98,58,0.08); }

/* ---------- Reduced motion ---------- */
/* Class mirror of the media query below — set by the inline <head> script so
   reveal targets are guaranteed visible even before site.js runs. */
html.reduced-motion .reveal, html.reduced-motion.js .reveal { opacity: 1 !important; transform: none !important; }
html.reduced-motion .reveal .eyebrow::before { transform: scaleX(1) !important; }
html.reduced-motion .slats { display: none !important; }
html.reduced-motion .marquee-track { animation: none !important; }
html.reduced-motion .cta-glow span { animation: none !important; }
html.reduced-motion .ripple-rings i { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal, html.js .reveal { opacity: 1 !important; transform: none !important; }
  .eyebrow::before, html.js .reveal .eyebrow::before { transform: scaleX(1) !important; }
  .marquee-track { animation: none !important; }
  .cta-glow span { animation: none !important; }
  .slat, .slats { display: none !important; }
  .hero .reveal-frame img, .sub-hero .reveal-frame img { transform: none !important; clip-path: none !important; }
  .hero-content h1 .word span, .hero-sub, .hero-ctas, .trust-row { opacity: 1 !important; transform: none !important; }
  .product-card, .related-card, .process-step, .faq-item, .mini-cta { opacity: 1 !important; transform: none !important; box-shadow: none !important; }
  .ripple-rings i { display: none !important; }
}

/* pthumb-injected */
/* --- product photo thumbnails (replaced the old line-drawn icons) --- */
.pthumb{width:100%!important;height:auto!important;max-width:none!important;
  aspect-ratio:4/3;overflow:hidden;display:block;margin:0 0 18px;
  background:rgba(0,0,0,.04)}
.pthumb img{width:100%;height:100%;object-fit:cover;display:block;
  transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.product-card:hover .pthumb img,.cell:hover .pthumb img,.card:hover .pthumb img,
.related-card:hover .pthumb img{transform:scale(1.045)}
@media (prefers-reduced-motion:reduce){
  .pthumb img{transition:none}
  .product-card:hover .pthumb img,.cell:hover .pthumb img,.card:hover .pthumb img,
  .related-card:hover .pthumb img{transform:none}}


/* roller shutters are shading products, not security products — see design-brief.md */
.rs-note{font-size:.94rem;line-height:1.6;opacity:.85;margin:14px 0 0;
  padding:12px 14px;border-left:2px solid currentColor}
.rs-note strong{font-weight:600}


/* =========================================================
   THE LEAD LADDER — The Atholl Sun Ledger (guide.html),
   the ballpark window table, and the free-measure close.
   Rung 1 guide · Rung 2 ballpark · Rung 3 expert measure.
   Uses ONLY the tokens declared at the top of this file.
   ========================================================= */

/* ---------- Ledger hero (sits on the shared .sub-hero shell) ---------- */
.sub-hero.ledger-hero { min-height: 80vh; }
.ledger-hero .sub-hero-content { max-width: 940px; padding-bottom: 84px; }
.ledger-hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
.ledger-hero h1 .strap {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: 0.42em;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin-top: 16px;
  color: rgba(248, 244, 234, 0.82);
}
.ledger-hero .sub {
  margin-top: 24px;
  font-size: 1.1rem;
  max-width: 56ch;
  color: rgba(248, 244, 234, 0.86);
}
.ledger-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.ledger-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-on-dark);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  color: rgba(248, 244, 234, 0.82);
}
.ledger-meta span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--tobacco-light); flex: none; }
.ledger-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- Contents rail ---------- */
.ledger-rail { background: var(--carbon-2); border-bottom: 1px solid var(--line-on-dark); padding: 20px 0; }
.ledger-rail .container { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.ledger-rail .lbl {
  font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase;
  font-weight: 600; color: var(--tobacco-light); margin-right: 8px;
}
.ledger-rail a {
  font-size: 0.82rem;
  color: rgba(242, 234, 217, 0.78);
  border: 1px solid var(--line-on-dark);
  padding: 7px 15px;
  border-radius: 999px;
  transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease);
}
.ledger-rail a:hover { border-color: var(--tobacco-light); color: var(--white); background: rgba(168, 98, 58, 0.14); }

/* ---------- Guide prose ---------- */
.guide-head { margin-bottom: 34px; }
.guide-head .section-title { max-width: 22ch; }
.guide-head .lede { margin-top: 16px; }
.guide-prose { max-width: 68ch; }
.guide-prose p { color: var(--ink-soft); }
.guide-prose p + p { margin-top: 18px; }
.guide-prose strong { color: var(--ink); font-weight: 600; }
.guide-prose h3 { font-size: 1.24rem; margin: 34px 0 12px; }
.guide-prose ul { margin: 18px 0 0; }
.guide-prose ul li { position: relative; padding-left: 24px; margin-bottom: 12px; color: var(--ink-soft); }
.guide-prose ul li::before { content: ''; position: absolute; left: 0; top: 13px; width: 13px; height: 1px; background: var(--tobacco); }
.guide-prose sup { font-size: 0.66em; color: var(--tobacco-deep); font-weight: 600; }
.band--dark .guide-prose p, .band--dark .guide-prose ul li { color: rgba(242, 234, 217, 0.8); }
.band--dark .guide-prose strong { color: var(--white); }

/* ---------- Full-width photo bands (the layout rhythm) ---------- */
.photo-band { position: relative; background: var(--carbon); }
.photo-band .reveal-frame { height: clamp(280px, 46vw, 560px); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
.photo-band figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 68px clamp(20px, 5vw, 56px) 26px;
  background: linear-gradient(0deg, rgba(20,17,14,0.86), rgba(20,17,14,0));
  color: var(--white);
  font-size: 0.92rem;
  z-index: 3;
}
.photo-band figcaption b {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.06rem;
  margin-bottom: 4px;
}
.photo-band figcaption span { display: block; max-width: 74ch; color: rgba(248, 244, 234, 0.84); }

/* ---------- Elevation cards ---------- */
.elev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 42px; background: var(--line-on-light); border: 1px solid var(--line-on-light); }
.elev-card { background: var(--paper); padding: 30px 30px 28px; }
.elev-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.elev-head svg { width: 30px; height: 30px; flex: none; color: var(--tobacco); }
.elev-head b { font-family: var(--font-display); font-size: 1.16rem; font-weight: 500; letter-spacing: -0.01em; }
.elev-card p { font-size: 0.94rem; color: var(--ink-soft); }
.elev-card p + p { margin-top: 12px; }
.elev-verdict { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-on-light); font-size: 0.9rem; color: var(--ink-soft); }
.elev-verdict em { font-family: var(--font-display); font-style: italic; color: var(--tobacco-deep); }

/* ---------- Product recommendations ---------- */
.rec-list { display: flex; flex-direction: column; gap: 18px; margin-top: 42px; }
.rec {
  background: var(--paper);
  border: 1px solid var(--line-on-light);
  border-left: 3px solid var(--tobacco);
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 30px;
  align-items: start;
}
.rec-head { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.rec-head h3 { font-size: 1.2rem; }
.rec-head .where {
  font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; color: var(--tobacco-deep);
}
.rec-body { grid-column: 1; }
.rec-body p { font-size: 0.95rem; color: var(--ink-soft); }
.rec-body p + p { margin-top: 12px; }
.rec-trade { margin-top: 16px; background: var(--oat); padding: 14px 18px; }
.band--oat .rec-trade { background: var(--oat-deep); }
.rec-trade b {
  display: block; font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600; color: var(--tobacco-deep); margin-bottom: 6px;
}
.rec-trade p { font-size: 0.9rem; margin: 0; }
.rec-side { grid-column: 2; grid-row: 2; }
.rec-add {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  border: 1px solid var(--tobacco);
  color: var(--tobacco-deep);
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.rec-add::before { content: '+'; font-size: 1.05rem; line-height: 1; }
.rec-add:hover { background: var(--tobacco); color: var(--white); }
.rec-add.is-added { border-color: var(--line-on-light); color: var(--ink-soft); background: var(--oat); cursor: default; }
.rec-add.is-added::before { content: '\2713'; font-size: 0.84rem; }
.rec-add[disabled] { opacity: 1; }
.rec-more { margin-top: 30px; }

/* ---------- What we would check on site ---------- */
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 40px; margin-top: 42px; counter-reset: chk; }
.check-item { border-top: 1px solid var(--line-on-light); padding-top: 18px; }
.check-item::before {
  counter-increment: chk;
  content: counter(chk, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--tobacco);
  margin-bottom: 12px;
}
.check-item h4 { font-size: 1.02rem; margin-bottom: 8px; }
.check-item p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Sources ---------- */
.sources { margin-top: 34px; border-top: 1px solid var(--line-on-light); padding-top: 28px; }
.sources ol { list-style: decimal; padding-left: 22px; color: var(--ink-soft); font-size: 0.88rem; max-width: 90ch; }
.sources li { margin-bottom: 11px; }
.sources a { color: var(--tobacco-deep); text-decoration: underline; text-underline-offset: 2px; }
.sources a:hover { color: var(--tobacco); }
.sources .note {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-on-light);
  font-size: 0.85rem; color: var(--ink-soft); max-width: 84ch;
}

/* ---------- Rung 3: the close ---------- */
.ladder-grid { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: 56px; align-items: start; }
.ladder-side p { color: var(--ink-soft); margin-top: 16px; }
.band--dark .ladder-side p { color: rgba(242, 234, 217, 0.78); }
.promise { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.promise-item { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--ink-soft); }
.band--dark .promise-item { color: rgba(242, 234, 217, 0.82); }
.promise-item svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--tobacco-light); }
.capacity-note {
  margin-top: 26px; padding: 16px 18px;
  border-left: 2px solid var(--tobacco);
  background: rgba(168, 98, 58, 0.07);
  font-size: 0.9rem; color: var(--ink-soft);
}
.band--dark .capacity-note { background: rgba(168, 98, 58, 0.16); color: rgba(242, 234, 217, 0.86); }

.form-card { background: var(--paper); border: 1px solid var(--line-on-light); padding: 32px 32px 30px; }
.band--dark .form-card { border-color: transparent; }
.form-card .field + .field, .form-card .form-row + .field, .form-card .field + .form-row { margin-top: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row + .form-row { margin-top: 18px; }
.legend { display: block; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.interest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }
.interest-grid label {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  font-size: 0.88rem; font-weight: 400; letter-spacing: 0; text-transform: none;
  color: var(--ink-soft); margin: 0; padding: 6px 0;
}
.interest-grid input { width: 16px; height: 16px; flex: none; margin-top: 3px; accent-color: var(--tobacco); }
.interest-grid input:checked + span { color: var(--ink); font-weight: 500; }
.carry-note { font-size: 0.84rem; color: var(--ink-soft); background: var(--oat); padding: 11px 14px; margin-top: 10px; }
.carry-note strong { color: var(--ink); }
.popia { font-size: 0.8rem; color: var(--ink-soft); margin-top: 16px; line-height: 1.6; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 22px; }

.form-success { display: none; }
.form-success.show { display: block; background: var(--oat); border-left: 3px solid var(--tobacco); padding: 26px 28px; }
.lead-thanks { background: var(--oat); border-left: 3px solid var(--tobacco); padding: 26px 28px; margin-top: 18px; }
.form-success h3, .lead-thanks h3 { font-size: 1.24rem; margin-bottom: 10px; }
.form-success p, .lead-thanks p { font-size: 0.93rem; color: var(--ink-soft); }
.form-success p + p, .lead-thanks p + p { margin-top: 10px; }
.form-success a, .lead-thanks a { color: var(--tobacco-deep); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
form.is-sent { display: none; }

/* ---------- Rung 2: the ballpark window table ---------- */
.ballpark { margin-top: 22px; border: 1px dashed var(--line-on-light); background: var(--oat); }
.ballpark > summary {
  list-style: none; cursor: pointer;
  padding: 17px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 0.92rem; font-weight: 600; color: var(--ink);
  transition: color .25s var(--ease);
}
.ballpark > summary::-webkit-details-marker { display: none; }
.ballpark > summary:hover { color: var(--tobacco-deep); }
.ballpark > summary .chev { width: 15px; height: 15px; flex: none; color: var(--tobacco); transition: transform .3s var(--ease); }
.ballpark[open] > summary .chev { transform: rotate(180deg); }
.bp-inner { padding: 0 20px 22px; }
.bp-pairing { font-size: 0.88rem; color: var(--ink-soft); max-width: 66ch; margin-bottom: 18px; }
.bp-pairing strong { color: var(--ink); }
.bp-scroll { overflow-x: auto; }
.bp-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.bp-table th {
  text-align: left; font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600; color: var(--ink-soft); white-space: nowrap;
  padding: 0 8px 9px 0; border-bottom: 1px solid var(--line-on-light);
}
.bp-table td { padding: 7px 8px 7px 0; vertical-align: middle; }
.bp-table input, .bp-table select {
  width: 100%; min-width: 96px;
  border: 1px solid var(--line-on-light); background: var(--white);
  border-radius: var(--radius); padding: 9px 10px; font-size: 0.85rem; color: var(--ink);
  transition: border-color .25s var(--ease);
}
.bp-table input:focus, .bp-table select:focus { border-color: var(--tobacco); }
.bp-table td.bp-rm { width: 36px; padding-right: 0; }
.bp-remove {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-on-light); background: var(--white);
  color: var(--ink-soft); font-size: 1.02rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.bp-remove:hover { border-color: var(--tobacco); color: var(--tobacco-deep); }
.bp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.bp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-on-light); background: var(--white);
  padding: 10px 18px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; color: var(--ink);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.bp-btn:hover { border-color: var(--tobacco); color: var(--tobacco-deep); }
.bp-btn svg { width: 14px; height: 14px; }
.bp-count { font-size: 0.82rem; color: var(--ink-soft); margin-top: 13px; }
.bp-foot { font-size: 0.78rem; color: var(--ink-soft); margin-top: 12px; line-height: 1.6; max-width: 70ch; }
.bp-print-head { display: none; }
.bp-holder { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Homepage / area-page hand-off to the Ledger ---------- */
.hero-ledger-link {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  font-size: 0.88rem; color: rgba(248, 244, 234, 0.86);
  border-bottom: 1px solid rgba(248, 244, 234, 0.34);
  padding-bottom: 5px;
  transition: gap .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.hero-ledger-link em { font-family: var(--font-display); font-style: italic; color: var(--white); }
.hero-ledger-link svg { width: 15px; height: 10px; flex: none; color: var(--tobacco-light); }
.hero-ledger-link:hover { gap: 15px; color: var(--white); border-color: var(--tobacco-light); }

.ledger-band { display: grid; grid-template-columns: 1.02fr 1fr; border: 1px solid var(--line-on-light); background: var(--paper); }
.ledger-band .ledger-figure { position: relative; margin: 0; min-height: 380px; overflow: hidden; }
.ledger-band .ledger-figure img { width: 100%; height: 100%; object-fit: cover; }
.ledger-band .ledger-copy { padding: clamp(32px, 4vw, 54px); display: flex; flex-direction: column; justify-content: center; }
.ledger-band .ledger-copy h2 { font-size: clamp(1.8rem, 2.9vw, 2.5rem); max-width: 20ch; }
.ledger-band .ledger-copy .lede { margin-top: 14px; }
.ledger-points { margin-top: 22px; }
.ledger-points li { position: relative; padding-left: 24px; margin-bottom: 11px; font-size: 0.93rem; color: var(--ink-soft); }
.ledger-points li::before { content: ''; position: absolute; left: 0; top: 12px; width: 13px; height: 1px; background: var(--tobacco); }
.ledger-points em { font-family: var(--font-display); font-style: italic; color: var(--ink); }
.ledger-band .btn { margin-top: 26px; align-self: flex-start; }
.ledger-note { margin-top: 16px; font-size: 0.82rem; color: var(--ink-soft); }

.area-ledger-note { margin-top: 18px; font-size: 0.92rem; color: var(--ink-soft); }
.area-ledger-note a { color: var(--tobacco-deep); text-decoration: underline; text-underline-offset: 3px; }
.area-ledger-note a:hover { color: var(--tobacco); }

/* ---------- Ladder responsive ---------- */
@media (max-width: 1080px) {
  .ladder-grid { grid-template-columns: 1fr; gap: 40px; }
  .elev-grid, .check-list { grid-template-columns: 1fr; }
  .ledger-band { grid-template-columns: 1fr; }
  .ledger-band .ledger-figure { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 760px) {
  .rec { grid-template-columns: 1fr; padding: 24px 22px; }
  .rec-side { grid-column: 1; grid-row: auto; }
  .interest-grid, .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 26px 22px 24px; }
  .ledger-hero .sub-hero-content { padding-bottom: 60px; }
}
@media (max-width: 640px) {
  /* window rows become stacked cards */
  .bp-scroll { overflow-x: visible; }
  .bp-table, .bp-table tbody, .bp-table tr, .bp-table td { display: block; width: 100%; }
  .bp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bp-table tr.bp-row {
    position: relative; background: var(--white); border: 1px solid var(--line-on-light);
    padding: 14px 14px 6px; margin-bottom: 12px;
  }
  .bp-table td { padding: 0 0 10px; }
  .bp-table td[data-lbl]::before {
    content: attr(data-lbl); display: block;
    font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
    font-weight: 600; color: var(--ink-soft); margin-bottom: 5px;
  }
  .bp-table td.bp-rm { position: absolute; top: 10px; right: 10px; width: auto; padding: 0; }
  .bp-table td.bp-rm::before { content: none; }
  .bp-inner { padding: 0 14px 18px; }
  .ballpark > summary { padding: 15px 14px; }
}

/* ---------- Print: walk the house with paper ---------- */
@media print {
  body { background: #fff; color: #000; }
  .nav, .nav-mobile, .side-nav, .marquee-band, .cta-close, .site-footer,
  .chat-launcher, .chat-panel, .ledger-rail, .sub-hero, .photo-band,
  .ledger-ctas, .bp-actions, .bp-remove, .ballpark > summary, .bp-pairing,
  .popia { display: none !important; }
  .ballpark { border: 0; background: #fff; margin: 0; }
  .bp-inner { padding: 0; }
  .bp-print-head { display: block; margin-bottom: 18px; }
  .bp-print-head h2 { font-size: 1.5rem; margin-bottom: 6px; }
  .bp-print-head p { font-size: 0.86rem; color: #444; }
  .bp-table input, .bp-table select { border: 1px solid #999; background: #fff; }
  .bp-table th { border-bottom: 1px solid #666; }
  .form-card { border: 0; padding: 0; background: #fff; }
  body.bp-printing .band-pad { padding: 0 !important; }
  body.bp-printing .guide-prose, body.bp-printing .rec-list, body.bp-printing .elev-grid,
  body.bp-printing .check-list, body.bp-printing .sources, body.bp-printing .guide-head,
  body.bp-printing .ladder-side, body.bp-printing .form-row, body.bp-printing .interest-grid,
  body.bp-printing .field:not(.bp-holder), body.bp-printing .form-success,
  body.bp-printing .lead-thanks, body.bp-printing .rec-more,
  body.bp-printing form > button { display: none !important; }
  body.bp-printing .ladder-grid { display: block !important; }
}

/* ---------- Reduced motion additions ---------- */
html.reduced-motion .photo-band .slats { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .rec, .elev-card, .check-item, .form-card { opacity: 1 !important; transform: none !important; box-shadow: none !important; }
}
