/* ==========================================================================
   Platinum Pro Construction
   Single stylesheet. Design tokens live at :root.
   ========================================================================== */

:root {
  /* Brand — derived from the Platinum Pro logo */
  --ink:          #0D0D0D;
  --ink-soft:     #1A1A1A;
  --ink-line:     #2B2B2B;
  --lime:         #A3CE3B;
  --lime-bright:  #B8E24A;
  --lime-dim:     #7EA32B;
  --silver:       #C9CDD2;
  --silver-dim:   #8A9096;
  --bone:         #F5F5F3;
  --paper:        #FFFFFF;
  --body:         #2A2A28;
  --body-soft:    #55554F;

  /* Type */
  --font-head: "Poppins", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Space — 8px scale */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;
  --band-y: clamp(4rem, 9vw, 7rem);

  --wrap: 1180px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--s3);
  color: var(--ink);
}

h1 {
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.75rem, 3.8vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

p { margin: 0 0 var(--s3); }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

ul { margin: 0 0 var(--s3); padding-left: 1.15rem; }
li { margin-bottom: 0.5rem; }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--lime);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.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;
}

/* ------------------------------------------------------------- layout -- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.band { padding-block: var(--band-y); }
.band--tight { padding-block: clamp(2.5rem, 6vw, 4rem); }
.band--bone { background: var(--bone); }
.band--dark { background: var(--ink); color: var(--silver); }
.band--dark h2, .band--dark h3 { color: var(--paper); }

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--body-soft);
  margin: 0 0 var(--s2);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--lime);
}
.band--dark .eyebrow { color: var(--silver-dim); }
.section-head--center .eyebrow::before { display: none; }

.lede {
  font-size: 1.15rem;
  color: var(--body-soft);
}
.band--dark .lede { color: var(--silver); }

/* ------------------------------------------------------------ buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 1.75rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: var(--lime-bright); }

.btn--ghost { border-color: currentColor; color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--ink-soft); }

.btn--outline-dark { border-color: var(--ink); color: var(--ink); }
.btn--outline-dark:hover { background: var(--ink); color: var(--paper); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

/* Text link with lime underline */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--lime);
  transition: gap 0.2s var(--ease);
}
.link-more:hover { gap: 0.85rem; }
.link-more::after { content: "\2192"; }

/* ------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid var(--ink-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
/* The lockup: the vector house mark beside a Poppins wordmark. */
.brand__lockup {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand__mark {
  width: 46px;
  height: auto;
  flex-shrink: 0;
}

.brand__text {
  font-family: var(--font-head);
  line-height: 1.05;
  color: var(--paper);
}
.brand__text b {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  /* brushed-silver wordmark, as on the logo */
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 45%, #A9AFB6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand__text small {
  display: block;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--lime);
}

@media (max-width: 420px) {
  .brand__mark { width: 38px; }
  .brand__text b { font-size: 1.02rem; }
  .brand__text small { font-size: 0.56rem; letter-spacing: 0.34em; }
}

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  background: transparent;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  color: var(--paper);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  position: relative;
  transition: background-color 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 1.9rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav__list li { margin: 0; }

.site-nav__list a {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--silver);
  padding-block: 0.5rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}
.site-nav__list a:hover { color: var(--paper); }
.site-nav__list a[aria-current="page"] {
  color: var(--paper);
  border-bottom-color: var(--lime);
}

.site-nav .btn { padding: 0.8rem 1.35rem; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }

  .site-nav {
    position: fixed;
    inset: 76px 0 0 0;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    background: var(--ink);
    padding: var(--s4) clamp(1.25rem, 5vw, 2.5rem) var(--s5);
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    /* visibility flips instantly when opening and waits for the fade when
       closing, so the drawer is focusable the moment it opens. */
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
                visibility 0s linear 0.25s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
                visibility 0s linear 0s;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-bottom: var(--s4);
  }
  .site-nav__list a {
    display: block;
    font-size: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--ink-line);
  }
  .site-nav__list a[aria-current="page"] { border-bottom-color: var(--lime); }
  .site-nav .btn { width: 100%; }

  body.nav-open { overflow: hidden; }
  body.nav-open .nav-toggle span { background: transparent; }
  body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
  body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
}

/* --------------------------------------------------------------- hero -- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(520px, 82vh, 780px);
}
.hero--page { min-height: clamp(380px, 52vh, 500px); }

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--ink);
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
/* Fallback texture shown while there is no hero photo */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 22% 18%, rgba(163, 206, 59, 0.16), transparent 58%),
    radial-gradient(ellipse at 82% 78%, rgba(201, 205, 210, 0.13), transparent 55%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.028) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, #141414, #0A0A0A);
  z-index: -1;
}
.hero__media.has-photo::after { display: none; }

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Vertical wash for the whole frame, plus a left-weighted wash so the
     headline holds contrast even over bright sky or sunlit grass. */
  background:
    linear-gradient(180deg, rgba(13,13,13,0.70) 0%, rgba(13,13,13,0.32) 32%,
                            rgba(13,13,13,0.86) 78%, rgba(13,13,13,0.95) 100%),
    linear-gradient(90deg, rgba(13,13,13,0.75) 0%, rgba(13,13,13,0.38) 48%,
                           rgba(13,13,13,0.04) 78%);
}

.hero__inner {
  padding-block: clamp(3.5rem, 9vw, 6rem);
  max-width: 46rem;
}
.hero h1 { color: var(--paper); margin-bottom: var(--s3); }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero__sub {
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  color: var(--silver);
  max-width: 40rem;
  margin-bottom: var(--s4);
}
.hero .eyebrow { color: var(--silver); }

/* ------------------------------------------------------------- media -- */
/* Photo slots. The placeholder sits behind the image; JS hides the <img>
   and labels the tile when the file is not there yet. */

.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--ink-soft);
  border-radius: var(--radius);
  aspect-ratio: 3 / 2;
}
.media[data-ratio="4x3"]  { aspect-ratio: 4 / 3; }
.media[data-ratio="1x1"]  { aspect-ratio: 1 / 1; }
.media[data-ratio="3x4"]  { aspect-ratio: 3 / 4; }
.media[data-ratio="16x9"] { aspect-ratio: 16 / 9; }

.media img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
}
.media.is-missing img { display: none; }

.media__ph {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: var(--s2);
  text-align: center;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.022) 0 10px, transparent 10px 20px),
    linear-gradient(150deg, #1E1E1E, #101010);
  color: var(--silver-dim);
  font-family: var(--font-head);
}
.media__ph b {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}
.media__ph span {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  word-break: break-all;
  max-width: 90%;
}

/* ------------------------------------------------------------- split -- */

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip .split__media { order: -1; }
  .split--wide-text { grid-template-columns: 1.15fr 1fr; }
}

.split__body p:last-of-type { margin-bottom: var(--s3); }

/* ------------------------------------------------- service tiles (2up) -- */

.tiles {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (min-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; } }

.tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  isolation: isolate;
}
.tile .media {
  aspect-ratio: 4 / 3;
  border-radius: 0;
  transition: transform 0.6s var(--ease);
}
.tile:hover .media { transform: scale(1.04); }

/* Inside a tile the caption is anchored to the bottom, so push the
   placeholder label to the top where it cannot collide with it. */
.tile .media__ph {
  justify-content: flex-start;
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.tile__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(13,13,13,0.15) 30%, rgba(13,13,13,0.88) 100%);
}
.tile__body {
  position: absolute;
  z-index: 3;
  inset: auto 0 0 0;
  padding: clamp(1.5rem, 3.4vw, 2.25rem);
}
.tile__body h3 { color: var(--paper); margin-bottom: 0.5rem; }
.tile__body p {
  color: var(--silver);
  font-size: 0.95rem;
  margin-bottom: var(--s2);
}
.tile__cue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  transition: gap 0.2s var(--ease);
}
.tile__cue::after { content: "\2192"; }
.tile:hover .tile__cue { gap: 0.9rem; }

/* ------------------------------------------------------------- cards -- */

.cards {
  display: grid;
  gap: clamp(2rem, 4vw, 2.75rem) clamp(1.75rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  counter-reset: card;
}

/* A hairline rule and a number, not a boxed card — six or three of the same
   thing in identical boxes reads as filler even when the content is not. */
.card {
  padding-top: 1.35rem;
  border-top: 1px solid #DEDEDA;
  counter-increment: card;
}
.band--dark .card { border-top-color: var(--ink-line); }
.card::before {
  content: counter(card, decimal-leading-zero);
  display: block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--lime-dim);
  margin-bottom: 0.9rem;
}
.band--dark .card::before { color: var(--lime); }
.card h3 { margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; color: var(--body-soft); margin-bottom: 0; }
.band--dark .card p { color: var(--silver-dim); }

/* ------------------------------------------------------------- steps -- */

.steps {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
  /* 180px lets all five stages sit on one row at desktop width. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.steps li {
  margin: 0;
  padding-top: var(--s3);
  border-top: 1px solid var(--ink-line);
  counter-increment: step;
}
.band--bone .steps li, .band:not(.band--dark) .steps li { border-top-color: #DEDEDA; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 0.85rem;
}
.steps h3 { margin-bottom: 0.5rem; }
.steps p { font-size: 0.93rem; color: var(--body-soft); margin: 0; }
.band--dark .steps p { color: var(--silver-dim); }

/* ------------------------------------------------------------- lists -- */

.check-list { list-style: none; padding: 0; margin: 0 0 var(--s3); }
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.85rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 11px; height: 11px;
  background: var(--lime);
  transform: rotate(45deg);
}

.spec-list {
  display: grid;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.spec-list li {
  margin: 0;
  padding: var(--s3) 0;
  border-top: 1px solid var(--ink-line);
}
.spec-list b {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 600;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.spec-list span {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver-dim);
}

/* ----------------------------------------------------------- gallery -- */

.gallery {
  display: grid;
  gap: clamp(0.75rem, 1.6vw, 1.15rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.gallery__item {
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  width: 100%;
}
.gallery__item .media { transition: transform 0.5s var(--ease); }
.gallery__item:hover .media { transform: scale(1.03); }

/* ------------------------------------------------------- project -- */

.project {
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid #DEDEDA;
}
.project:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.project__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2) var(--s4);
  margin-bottom: var(--s2);
}
.project__head h3 { margin-bottom: 0.35rem; }

.project__meta {
  margin: 0;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--body-soft);
}

.project__body {
  max-width: 68ch;
  color: var(--body-soft);
  margin-bottom: var(--s4);
}

/* --------------------------------------------------- before / after -- */

.ba-row { margin-bottom: clamp(2.5rem, 5vw, 3.75rem); }
.ba-row:last-child { margin-bottom: 0; }

.ba-grid {
  display: grid;
  gap: clamp(0.75rem, 1.8vw, 1.25rem);
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .ba-grid { grid-template-columns: 1fr 1fr; }
}
.ba-grid--single { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .ba-grid--single { grid-template-columns: 1fr; }
}

.ba { position: relative; }

.ba__tag {
  position: absolute;
  z-index: 4;
  top: 0.85rem;
  left: 0.85rem;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius);
  pointer-events: none;
}
.ba__tag--before {
  background: rgba(13, 13, 13, 0.86);
  color: var(--silver);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.ba__tag--after {
  background: var(--lime);
  color: var(--ink);
}

.ba-caption {
  margin: 1.1rem 0 0;
  font-size: 0.95rem;
  color: var(--body-soft);
}

/* ------------------------------------------------ before/after carousel -- */

.ba-carousel {
  position: relative;
}

.ba-carousel__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: height 0.3s var(--ease);
}
.ba-carousel__viewport::-webkit-scrollbar { display: none; }
.ba-carousel__viewport:focus-visible { outline-offset: 6px; }

.ba-carousel__track {
  display: flex;
  align-items: flex-start;
}

.ba-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}

.ba-carousel__btn {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(13, 13, 13, 0.86);
  color: var(--paper);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.ba-carousel__btn:hover { background: var(--lime); color: var(--ink); }
.ba-carousel__btn[disabled] { opacity: 0.35; cursor: default; }
.ba-carousel__btn[disabled]:hover { background: rgba(13, 13, 13, 0.86); color: var(--paper); }
.ba-carousel__btn--prev { left: -0.2rem; }
.ba-carousel__btn--next { right: -0.2rem; }
@media (min-width: 860px) {
  .ba-carousel__btn--prev { left: -1.35rem; }
  .ba-carousel__btn--next { right: -1.35rem; }
}

.ba-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

.ba-carousel__dot {
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #DEDEDA;
  cursor: pointer;
}
.ba-carousel__dot.is-active { background: var(--lime); }

/* -------------------------------------------------------- testimonial -- */

.quotes {
  display: grid;
  gap: clamp(1.25rem, 2.6vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
/* The first quote leads, full height, at a larger size — three equal boxes
   in a row has no focal point; one featured voice plus two in support does. */
@media (min-width: 860px) {
  .quotes { grid-template-columns: 1.3fr 1fr; }
  .quote:first-child { grid-row: 1 / 3; }
}

.quote {
  background: var(--ink-soft);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.15rem);
  margin: 0;
  display: flex;
  flex-direction: column;
}
.quote::before {
  content: "\201C";
  font-family: var(--font-head);
  font-size: 3rem;
  line-height: 0.7;
  color: var(--lime);
  margin-bottom: var(--s2);
}
.quote:first-child::before { font-size: 4rem; }
.quote p {
  color: var(--silver);
  font-size: 0.98rem;
  flex: 1;
}
.quote:first-child p { font-size: 1.2rem; line-height: 1.5; }
.quote figcaption {
  margin-top: var(--s3);
  padding-top: var(--s2);
  border-top: 1px solid var(--ink-line);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper);
}

.sample-note {
  display: inline-block;
  margin-top: var(--s4);
  padding: 0.55rem 0.9rem;
  border: 1px dashed var(--lime);
  border-radius: var(--radius);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--lime);
}

/* ----------------------------------------------------------- CTA band -- */

.cta {
  background: var(--ink);
  color: var(--paper);
}
.cta .wrap {
  display: grid;
  gap: var(--s3) clamp(2rem, 6vw, 4rem);
  align-items: center;
}
.cta h2 { color: var(--paper); }
.cta .lede { max-width: 46ch; margin-bottom: 0; }
.cta .btn-row { justify-content: flex-start; }
@media (min-width: 780px) {
  .cta .wrap { grid-template-columns: 1fr auto; }
  .cta h2 { grid-column: 1; grid-row: 1; }
  .cta .lede { grid-column: 1; grid-row: 2; }
  .cta .btn-row { grid-column: 2; grid-row: 1 / 3; }
}

/* -------------------------------------------------------------- form -- */

.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 860px) {
  .contact-grid { grid-template-columns: 1.25fr 1fr; }
}

.form-grid {
  display: grid;
  gap: var(--s3);
  grid-template-columns: 1fr 1fr;
}
.form-field--full { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}

.form-field label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.form-field .req { color: #B23A2E; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--body);
  background: var(--paper);
  border: 1px solid #CFCFC9;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(163, 206, 59, 0.35);
  outline: none;
}

.form-field input[aria-invalid="true"],
.form-field select[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: #B23A2E;
}

.form-note {
  font-size: 0.85rem;
  color: var(--body-soft);
  margin-top: var(--s2);
}

.form-status {
  margin-top: var(--s3);
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  display: none;
}
.form-status.is-error {
  display: block;
  background: #FBEDEB;
  border-left: 4px solid #B23A2E;
  color: #6E241B;
}
.form-status.is-ok {
  display: block;
  background: #F1F7E3;
  border-left: 4px solid var(--lime);
  color: #3D5210;
}

.detail-card {
  background: var(--ink);
  color: var(--silver);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3.4vw, 2.5rem);
}
.detail-card h3 { color: var(--paper); }
.detail-card dl { margin: 0; }
.detail-card dt {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-bottom: 0.3rem;
}
.detail-card dd {
  margin: 0 0 var(--s3);
  font-size: 1.05rem;
  color: var(--paper);
}
.detail-card dd:last-child { margin-bottom: 0; }
.detail-card a { color: var(--lime); text-decoration: none; border-bottom: 1px solid transparent; }
.detail-card a:hover { border-bottom-color: var(--lime); }

/* ------------------------------------------------------------ footer -- */

.site-footer {
  background: var(--ink);
  color: var(--silver-dim);
  padding-block: var(--s6) var(--s4);
  border-top: 3px solid var(--lime);
  font-size: 0.95rem;
}

.site-footer__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  padding-bottom: var(--s5);
}
.site-footer h2 {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--paper);
  margin-bottom: var(--s3);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.7rem; }
.site-footer a { color: var(--silver); text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.site-footer__brand p { max-width: 34ch; margin-top: var(--s3); }
.footer-tagline {
  color: var(--lime);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-top: 0 !important;
}

.site-footer__base {
  border-top: 1px solid var(--ink-line);
  padding-top: var(--s3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ---------------------------------------------------------- lightbox -- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 8, 8, 0.94);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox__close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  color: var(--paper);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: var(--ink-soft); }

/* ------------------------------------------------------------ reveal -- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .tile:hover .media, .gallery__item:hover .media { transform: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* -------------------------------------------------------- breadcrumb -- */

.breadcrumb {
  background: var(--bone);
  border-bottom: 1px solid #DEDEDA;
  font-size: 0.82rem;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0.85rem 0;
}
.breadcrumb li { display: flex; align-items: center; gap: 0.4rem 0.6rem; }
.breadcrumb li + li::before {
  content: "\203A";
  color: var(--silver-dim);
}
.breadcrumb a {
  color: var(--body-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.breadcrumb a:hover { color: var(--ink); border-bottom-color: var(--lime); }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 500; }

/* ------------------------------------------------- comparison table -- */
/* Wide content scrolls inside its own box so the page body never does. */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.compare {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}
.compare th, .compare td {
  padding: var(--s2) var(--s3) var(--s2) 0;
  border-bottom: 1px solid #DEDEDA;
  vertical-align: top;
}
.compare thead th {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--lime);
  white-space: nowrap;
}
.compare tbody th {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--ink);
  padding-right: var(--s4);
}
.compare td { color: var(--body-soft); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

.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;
}

/* --------------------------------------------------------------- faq -- */
/* Plain <dl> so the question/answer relationship survives with CSS off and
   is read correctly by screen readers. Two columns at desktop width. */

.faq {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem) clamp(2rem, 5vw, 4rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  margin: 0;
}
.faq > div {
  padding-top: var(--s3);
  border-top: 1px solid #DEDEDA;
}
.band--dark .faq > div { border-top-color: var(--ink-line); }
.faq dt {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.band--dark .faq dt { color: var(--paper); }
.faq dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--body-soft);
}
.band--dark .faq dd { color: var(--silver-dim); }

/* ---------------------------------------------------------- 404 page -- */

.error-page {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.error-page .code {
  font-family: var(--font-head);
  font-size: clamp(4rem, 14vw, 8rem);
  font-weight: 600;
  color: var(--lime);
  line-height: 1;
  margin-bottom: var(--s2);
}

/* =========================================================================
   Print / PDF
   Used when the site is printed or exported for client review. The critical
   rule is forcing .reveal visible: those sections start at opacity 0 and are
   revealed on scroll, so without this a printed page comes out blank.
   ========================================================================= */

@media print {
  :root { --band-y: 1.6rem; }

  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html, body { background: var(--paper); font-size: 10.5pt; }

  /* Scroll-revealed sections must be visible on paper. */
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }

  /* Screen-only furniture */
  .skip-link,
  .nav-toggle,
  .lightbox { display: none !important; }

  /* The sticky header would repeat over content on every sheet. */
  .site-header { position: static !important; }
  .site-nav { position: static !important; visibility: visible !important; opacity: 1 !important; transform: none !important; }

  .site-header__inner { min-height: 0; padding-block: 0.5rem; }

  /* Heroes take a whole sheet at screen height — cap them. */
  .hero { min-height: 0 !important; }
  .hero__inner { padding-block: 2.5rem; }
  .hero h1 { font-size: 24pt; }
  .hero__sub { font-size: 11pt; }

  h1 { font-size: 24pt; }
  h2 { font-size: 17pt; }
  h3 { font-size: 11.5pt; }
  .lede { font-size: 11pt; }

  /* Keep related content on one sheet. */
  /* .split is deliberately NOT in this list — a two-column text/photo block
     is tall enough that keeping it whole strands half-empty sheets. */
  .card,
  .quote,
  .steps li,
  .tile,
  .detail-card,
  .gallery__item,
  figure.media { break-inside: avoid; page-break-inside: avoid; }

  h1, h2, h3 { break-after: avoid; page-break-after: avoid; }

  /* Photo slots stay legible on paper so the client can see what is missing. */
  .media { border: 1pt solid #999; }
  .media__ph b { color: #4E6B14; }
  .media__ph span { color: #444; }
  .media__ph {
    background: #ECECE8 !important;
    color: #444;
  }
  .tile .media__ph b, .tile .media__ph span { color: #EEE; }
  .tile .media__ph { background: #262626 !important; }

  /* Buttons are not clickable on paper; render them as flat labels. */
  .btn { padding: 0.5rem 1rem; font-size: 8pt; }
  .btn--ghost { border-color: #FFF; }

  .gallery { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(5, 1fr); }
  .steps p, .card p, .quote p { font-size: 9pt; }

  .site-footer { padding-block: 1.5rem 1rem; }
}

/* A printed sheet is narrower than the 900px nav breakpoint, so the mobile
   drawer layout takes over and stacks the menu vertically. On paper we want
   the desktop header back. */
@media print {
  .site-header__inner { flex-direction: row; align-items: center; }

  .site-nav {
    position: static !important;
    inset: auto !important;
    flex-direction: row !important;
    width: auto !important;
    padding: 0 !important;
    background: none !important;
    overflow: visible !important;
    gap: 0.9rem !important;
  }
  .site-nav__list {
    flex-direction: row !important;
    align-items: center !important;
    width: auto !important;
    gap: 0.85rem !important;
    margin-bottom: 0 !important;
  }
  .site-nav__list a {
    display: inline-block !important;
    font-size: 7pt !important;
    padding: 0.15rem 0 !important;
    border-bottom: 0 !important;
  }
  .site-nav__list a[aria-current="page"] { border-bottom: 2px solid var(--lime) !important; }
  .site-nav .btn {
    width: auto !important; font-size: 7pt; padding: 0.4rem 0.8rem;
    white-space: nowrap;
  }
}
