/* AKM Real Estate and Construction. Old Southern charm, modern bones.
   Magnolia cream, Delta green, aged brass. Arched frames and beadboard lines.
   Type: Libre Caslon (headlines) and Libre Franklin (everything else). */

:root {
  --paper: #F5EFE3;
  --paper-2: #ECE3D1;
  --paper-3: #E4DAC6;
  --ink: #1D211E;
  --muted: #5C584E;
  --green: #1F3A2D;
  --green-2: #2A4A3A;
  --brass: #D4AC5E;
  --brass-ink: #7A5A1F;
  --sage: #B9C6B6;
  --line: rgba(29, 33, 30, 0.16);
  --line-light: rgba(245, 239, 227, 0.22);

  /* Caslon and Franklin Gothic: the two workhorses of old American print,
     from church bulletins to storefront signs. */
  --serif: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --serif-text: "Libre Caslon Text", Georgia, serif;
  --sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 20px;
  --max: 1160px;
  --radius: 4px;
  --radius-photo: 18px; /* soft square corners on photos */
  --bar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

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(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-bottom: var(--bar-h);
  overflow-x: hidden;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img { max-width: 100%; display: block; }
a { color: inherit; }

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 9vw, 4.75rem); }
h2 { font-size: clamp(2rem, 6vw, 3.1rem); }
h3 { font-family: var(--serif-text); font-size: 1.5rem; }
h1 em, h2 em { font-family: var(--serif-text); font-style: italic; color: var(--brass); }
.on-paper h2 em, .on-paper h1 em { color: var(--brass-ink); }

p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: 1.2rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* Diamond rule: a thin double line with a brass diamond, like an old letterhead */
.ornament {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--brass-ink);
  margin: 0 0 1.5rem;
  max-width: 220px;
}
.ornament::before, .ornament::after {
  content: "";
  flex: 1;
  height: 4px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: 0.5;
}
.ornament span {
  width: 9px; height: 9px;
  background: currentColor;
  transform: rotate(45deg);
}
.on-green .ornament { color: var(--brass); }
.center .ornament { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.8rem 1.6rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-brass { background: var(--brass); color: var(--green); }
.btn-brass:hover { background: #DDB86C; }
.btn-green { background: var(--green); color: var(--paper); }
.btn-green:hover { background: var(--green-2); }
.btn-line { border-color: currentColor; background: transparent; }
.on-green .btn-line { color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Preview banner ---------- */

.preview-banner {
  background: var(--paper-3);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.5rem var(--gutter);
  line-height: 1.4;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-height: 44px;
}
.monogram {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--green);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--green);
  display: grid;
  place-items: center;
  font-family: var(--serif-text);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--green);
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--serif-text); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.04em; color: var(--green); }
.brand-sub {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.header-phone {
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
}
.header-phone small { display: none; }

.menu-toggle {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--green);
  padding: 0;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  position: relative;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }

.header-right { display: flex; align-items: center; gap: 0.6rem; }

.site-nav { display: none; }
.site-nav.open {
  display: block;
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem var(--gutter) 1.25rem;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  text-decoration: none;
  font-family: var(--serif-text);
  font-size: 1.3rem;
  color: var(--green);
  border-bottom: 1px solid var(--line);
}
.site-nav a[aria-current="page"] { color: var(--brass-ink); font-style: italic; }

/* Header shows the wordmark only; the monogram seal lives in the footer */
.site-header .monogram { display: none; }
@media (max-width: 359px) {
  .header-phone { font-size: 0.85rem; }
  .brand-name { font-size: 1.2rem; }
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .site-nav, .site-nav.open {
    display: block;
    position: static;
    padding: 0;
    border: 0;
    background: none;
  }
  .site-nav ul { display: flex; gap: 0.25rem; }
  .site-nav a {
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 500;
    border: 0;
    padding: 0 0.85rem;
    min-height: 44px;
  }
  .site-nav a:hover { color: var(--brass-ink); }
  .site-nav a[aria-current="page"] { font-style: normal; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--brass); }
  .header-inner { min-height: 84px; }
  .header-phone {
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1.15;
    margin-left: 0.75rem;
  }
  .header-phone small {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

/* ---------- Sections ---------- */

.section { padding: 4.5rem 0; }
@media (min-width: 900px) { .section { padding: 6.5rem 0; } }

.on-green {
  background-color: var(--green);
  color: var(--paper);
  /* beadboard: soft vertical boards */
  background-image: repeating-linear-gradient(90deg,
    rgba(245, 239, 227, 0.045) 0 1px,
    transparent 1px 58px);
}
.on-green p { color: var(--paper); }
.on-green .eyebrow { color: var(--brass); }
.on-paper-2 { background: var(--paper-2); }
.on-paper .eyebrow, .on-paper-2 .eyebrow { color: var(--brass-ink); }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }

.photo-slot {
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 2rem;
  background:
    repeating-linear-gradient(90deg, rgba(29, 33, 30, 0.04) 0 1px, transparent 1px 34px),
    var(--paper-3);
}
.photo-slot span::before {
  content: "";
  display: block;
  width: 8px; height: 8px;
  margin: 0 auto 0.8rem;
  background: var(--brass-ink);
  transform: rotate(45deg);
  opacity: 0.7;
}
.on-green .photo-slot {
  color: var(--sage);
  background:
    repeating-linear-gradient(90deg, rgba(245, 239, 227, 0.05) 0 1px, transparent 1px 34px),
    var(--green-2);
}
.on-green .photo-slot span::before { background: var(--brass); }

/* ---------- Hero ---------- */

.hero { padding: 3.5rem 0 4rem; }
.hero-grid { display: grid; gap: 2.75rem; align-items: center; }
.hero h1 { margin-bottom: 1.25rem; }
.hero .lede { color: var(--paper); opacity: 0.92; margin-bottom: 2rem; }
.hero-figure { max-width: 340px; width: 78%; margin: 0 auto; }

@media (min-width: 900px) {
  .hero { padding: 6rem 0 6.5rem; }
  .hero-grid { grid-template-columns: 1.25fr 0.75fr; gap: 4.5rem; }
  .hero-figure { width: 100%; max-width: 380px; }
}

/* ---------- Problem ---------- */

.problem-grid { display: grid; gap: 1.5rem; }
.problem-grid p { font-size: 1.2rem; }
@media (min-width: 900px) {
  .problem-grid { grid-template-columns: 0.9fr 1.1fr; gap: 5rem; align-items: start; }
  .problem-grid p { font-size: 1.3rem; }
}

/* ---------- Guide ---------- */

.guide-grid { display: grid; gap: 2.5rem; }
.stat {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.stat-num { font-family: var(--serif-text); font-size: 4.5rem; line-height: 1; color: var(--green); }
.stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 12ch;
  line-height: 1.35;
}
.details {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.details li {
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  background: var(--paper);
}
@media (min-width: 900px) {
  .guide-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
}

/* ---------- Plan ---------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.1rem;
  align-items: center;
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1.05rem;
}
.steps li::before {
  content: counter(step);
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--brass-ink);
  box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px rgba(122, 90, 31, 0.5);
  display: grid;
  place-items: center;
  font-family: var(--serif-text);
  font-size: 1.5rem;
  color: var(--brass-ink);
}
.steps a { font-weight: 700; color: var(--green); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
  .steps li { grid-template-columns: 1fr; align-items: start; padding: 2rem 1.75rem; }
}

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

.cards { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
.card { display: grid; gap: 1.25rem; }
.card h3 { margin-bottom: 0.35rem; }
.card p { margin-bottom: 0.75rem; color: var(--muted); }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}
@media (min-width: 700px) {
  .cards { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* ---------- Success ---------- */

.success h2 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.success .lede { font-size: 1.25rem; }
.stakes {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--brass);
  margin-top: 2rem;
}

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

.quote-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) {
  .quote-grid { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; align-items: start; }
}
.quote-form {
  display: grid;
  gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
@media (min-width: 600px) {
  .quote-form { grid-template-columns: 1fr 1fr; padding: 2rem; }
  .quote-form .full { grid-column: 1 / -1; }
}
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #FBF8F2;
  border: 1px solid rgba(29, 33, 30, 0.3);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  min-height: 48px;
  width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; background-image: linear-gradient(45deg, transparent 50%, var(--brass-ink) 50%), linear-gradient(135deg, var(--brass-ink) 50%, transparent 50%); background-position: right 1.1rem center, right 0.75rem center; background-size: 6px 6px; background-repeat: no-repeat; }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline-offset: 0; border-color: var(--brass-ink); }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }
.quote-form .btn { width: 100%; }

/* ---------- Page heads (inner pages) ---------- */

.page-head { padding: 3.5rem 0 3rem; }
@media (min-width: 900px) { .page-head { padding: 5rem 0 4.5rem; } }
.page-head p { font-size: 1.2rem; opacity: 0.92; }

/* ---------- Services page ---------- */

.service-block { display: grid; gap: 2rem; align-items: center; }
.service-block + .service-block { margin-top: 4.5rem; }
@media (min-width: 900px) {
  .service-block { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; }
  .service-block:nth-child(even) .service-photos { order: 2; }
  }

/* ---------- Work page ---------- */


/* ---------- About page ---------- */

.about-grid { display: grid; gap: 2.5rem; align-items: center; }
.about-grid p { font-size: 1.15rem; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 0.8fr 1.2fr; gap: 5rem; }
  }

/* ---------- Contact page ---------- */

.contact-phone {
  font-family: var(--serif-text);
  font-size: clamp(2.2rem, 9vw, 3.6rem);
  color: var(--brass);
  text-decoration: none;
  display: inline-block;
  margin: 0.5rem 0 1.5rem;
  line-height: 1.1;
}
.facts { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0; }
.facts li {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.2rem;
}

/* ---------- Closing band ---------- */

.closing { padding: 4rem 0; }
.closing h2 { margin-bottom: 1.5rem; }
.closing .btn-row { justify-content: center; }

/* ---------- Footer ---------- */

.site-footer {
  background: #172C22;
  color: var(--sage);
  padding: 3.5rem 0 2rem;
  font-size: 0.95rem;
}
.footer-grid { display: grid; gap: 2rem; }
.site-footer .brand-name { color: var(--paper); }
.site-footer .brand-sub { color: var(--sage); }
.site-footer .monogram {
  color: var(--paper);
  border-color: var(--brass);
  box-shadow: inset 0 0 0 3px #172C22, inset 0 0 0 4px var(--brass);
}
.site-footer a { color: var(--paper); }
.footer-phone {
  font-family: var(--serif-text);
  font-size: 1.6rem;
  text-decoration: none;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.footer-nav a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-decoration-color: var(--brass); }
.footer-base {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.82rem;
}
.footer-base a { color: var(--sage); display: inline-flex; align-items: center; min-height: 44px; }
.footer-base span { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

/* ---------- Sticky call and text bar (phones) ---------- */

.call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: grid;
  display: flex;
  gap: 8px;
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: rgba(23, 44, 34, 0.97);
  border-top: 1px solid rgba(212, 172, 94, 0.4);
}
.call-bar .btn { flex: 1; min-height: 48px; padding: 0.6rem 1rem; }
.call-bar .btn-line { color: var(--paper); }
@media (min-width: 900px) { .call-bar { display: none; } }

/* ---------- Added for the November rebuild ---------- */

/* Header estimate button: shown from tablet width up while there is no phone number.
   On phones the sticky bar at the bottom does this job. */
.header-cta { display: none; min-height: 44px; padding: 0.5rem 1.2rem; font-size: 0.9rem; }
@media (min-width: 600px) { .header-cta { display: inline-flex; } }
@media (min-width: 900px) { .header-cta { margin-left: 0.75rem; } }

/* Two side-by-side panels: money promises, materials and partners */
.points { display: grid; gap: 1.25rem; margin-top: 2rem; }
.point {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
}
.point h3 { margin-bottom: 0.6rem; color: var(--green); }
.point p { margin: 0; }
@media (min-width: 700px) { .points { grid-template-columns: 1fr 1fr; gap: 1.5rem; } .point { padding: 2.25rem 2rem; } }

/* What a job includes, and the price line */
.included { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.45rem; }
.included li { position: relative; padding-left: 1.4rem; }
.included li::before {
  content: "";
  position: absolute;
  left: 0.15rem; top: 0.62em;
  width: 7px; height: 7px;
  background: var(--brass-ink);
  transform: rotate(45deg);
}
.price {
  font-family: var(--serif-text);
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--green);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin: 1.25rem 0 0.4rem;
}
.price-note { color: var(--muted); font-size: 0.95rem; }
.service-block .btn { margin-top: 0.75rem; }
.service-block { scroll-margin-top: 1rem; }

.footer-cta { font-family: var(--serif-text); font-size: 1.4rem; display: inline-flex; min-height: 44px; align-items: center; }

/* Three service-area regions side by side, and the stacked money promises */
@media (min-width: 900px) { .points-3 { grid-template-columns: repeat(3, 1fr); } }
.points-stack { margin-top: 1rem; }
@media (min-width: 700px) { .points-stack { grid-template-columns: 1fr; } }
.points-title { color: var(--green); margin: 0; }
.problem-grid h2 { margin: 0; }


/* Before and after pairs */


/* ---------- Photos: square corners, big sideways strips, full-size viewer ---------- */

.photo {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-photo);
  background: var(--paper-3);
}
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-figure .photo { box-shadow: 0 0 0 1px rgba(212, 172, 94, 0.5); }
.card .photo { aspect-ratio: 4 / 3; }
.card .photo img { object-position: center 40%; }
.about-grid .photo { max-width: 460px; width: 100%; }

/* One job per row. Each job is a strip you scroll sideways. */
.jobs { display: grid; gap: 4.5rem; margin-top: 2rem; }
.job { min-width: 0; }
.job h3 { margin-bottom: 0.2rem; color: var(--green); font-size: 1.75rem; }
.job-meta { color: var(--muted); margin-bottom: 0; }

.rail-wrap { position: relative; margin-top: 1.1rem; min-width: 0; }
.rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 14px;
}
.rail:focus-visible { outline-offset: 2px; }
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: rgba(31, 58, 45, 0.45); border-radius: 4px; }
.rail { scrollbar-color: rgba(31, 58, 45, 0.45) transparent; scrollbar-width: thin; }
.slide { flex: 0 0 min(86%, 460px); margin: 0; scroll-snap-align: start; display: grid; gap: 0.5rem; min-width: 0; align-content: start; }
.slide a {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-photo);
  background: var(--paper-3);
  cursor: zoom-in;
}
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide figcaption { font-size: 0.9rem; color: var(--muted); line-height: 1.35; }
.tag {
  position: absolute;
  left: 10px; top: 10px;
  padding: 0.4rem 0.75rem;
  font: 700 0.8rem/1 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--green);
  color: var(--paper);
  border-radius: 8px;
}
.tag-after, .tag-finished { background: var(--brass); color: var(--green); }
.rail-hint { margin: 0.15rem 0 0; font-size: 0.85rem; color: var(--muted); }
@media (min-width: 900px) {
  .slide { flex-basis: 440px; }
  .rail-hint { display: none; }
}
.rail-btn {
  position: absolute;
  top: calc(50% - 34px);
  width: 52px; height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: var(--paper);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  place-items: center;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.rail-btn[disabled] { opacity: 0.25; cursor: default; }
.rail-prev { left: -12px; }
.rail-next { right: -12px; }
@media (hover: hover) and (min-width: 900px) { .rail-btn { display: grid; } }

.service-photos { min-width: 0; }
.service-photos .rail-wrap { margin-top: 0; }
.service-photos .slide { flex-basis: 92%; }
@media (min-width: 900px) { .service-photos .slide { flex-basis: 100%; } }
.service-block > div { min-width: 0; }

/* Full-size viewer */
body.lb-open { overflow: hidden; }
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(12, 20, 16, 0.985);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}
.lb[hidden] { display: none; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 12px 56px 0; }
.lb-stage img { border-radius: 14px; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb-cap { margin: 0; padding: 0.9rem 1.25rem 1.1rem; text-align: center; color: var(--paper); font-size: 1rem; max-width: none; }
.lb button {
  position: absolute;
  width: 52px; height: 52px;
  border: 0; border-radius: 50%;
  background: rgba(245, 239, 227, 0.16);
  color: var(--paper);
  font-size: 1.9rem; line-height: 1;
  cursor: pointer;
}
.lb button:hover { background: rgba(245, 239, 227, 0.3); }
.lb-x { top: 10px; right: 10px; }
.lb-prev, .lb-next { top: calc(50% - 40px); }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }
@media (max-width: 599px) {
  .lb-stage { padding: 56px 8px 0; }
  .lb-prev, .lb-next { top: auto; bottom: 74px; }
}

.rail-wrap.fits .rail-btn { display: none !important; }


/* ---------- Before and after reveal: drag the handle, or just watch it sweep ---------- */
.see .lede { max-width: 60ch; }
.cmp { flex: 0 0 min(86%, 460px); margin: 0; scroll-snap-align: start; display: grid; gap: 0.6rem; min-width: 0; align-content: start; }
.cmp-stage {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-photo);
  background: var(--paper-3);
  user-select: none;
  -webkit-user-select: none;
}
.cmp-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cmp-a { clip-path: inset(0 0 0 var(--pos)); }
.tag-right { left: auto; right: 10px; }
.cmp-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 64px;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  cursor: ew-resize;
  touch-action: none;
  z-index: 3;
}
.cmp-handle::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(29, 33, 30, 0.35);
}
.cmp-knob {
  position: relative;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--green);
  display: grid;
  place-items: center;
  font: 700 1.05rem/1 var(--sans);
  letter-spacing: 0.1em;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.cmp-handle:focus-visible .cmp-knob { outline: 3px solid var(--green); outline-offset: 3px; }
.cmp figcaption { color: var(--ink); line-height: 1.35; }
.cmp figcaption strong { font-family: var(--serif-text); font-size: 1.2rem; font-weight: 400; color: var(--green); }
@media (min-width: 900px) { .cmp { flex-basis: 440px; } }
@media (prefers-reduced-motion: reduce) { .rail { scroll-behavior: auto; } }


/* ---------- November 13: text-only hero, credential badges, the hook ---------- */
.hero { padding: 2.75rem 0 3rem; }
.hero-grid { grid-template-columns: 1fr; gap: 0; }
.hero-grid > div { max-width: 820px; }
@media (min-width: 900px) { .hero { padding: 5rem 0 5.25rem; } .hero-grid { grid-template-columns: 1fr; gap: 0; } }

.hook .hook-line {
  font-size: clamp(1.9rem, 5.2vw, 3rem);
  line-height: 1.15;
  max-width: 24ch;
  margin-bottom: 1.5rem;
  color: var(--green);
}
.hook-body { display: grid; gap: 0; max-width: 62ch; }
.hook-body p { font-size: 1.15rem; }

/* ---------- The kitchen that remodels itself as you scroll (right after the hero) ---------- */
.kit { position: relative; border-bottom: 1px solid var(--line); }
.kit-pin { padding: 1rem 0 1.5rem; }
.kit.kit-on .kit-pin { position: sticky; top: 0; }
.kit-runway { display: none; }
.kit.kit-on .kit-runway { display: block; height: 75vh; height: 75svh; }
.kit-grid { display: grid; gap: 1.1rem; align-items: center; }
.kit-stage { min-width: 0; }
.kit-frame { border-radius: var(--radius-photo); overflow: hidden; box-shadow: 0 10px 30px rgba(29, 33, 30, 0.18); background: #f1ece3; }
.kit-svg { display: block; width: 100%; height: auto; }
.kit-svg .v-old, .kit-svg .v-new { transition: opacity 0.45s ease; }
.kit-svg .v-new { opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; }
.kit-svg .part.is-new .v-old { opacity: 0; }
.kit-svg .part.is-new .v-new { opacity: 1; animation: kitIn 0.55s cubic-bezier(.2, .8, .2, 1); }
@keyframes kitIn { from { transform: translateY(8px) scale(0.98); } to { transform: none; } }
.kit-svg .grime { opacity: calc(var(--grime, 1) * 0.2); transition: opacity 0.2s linear; }
.kit-svg .flicker { animation: flick 3.4s infinite; }
@keyframes flick { 0%, 100% { opacity: .28; } 7% { opacity: .05; } 9% { opacity: .28; } 51% { opacity: .24; } 53% { opacity: .03; } 55% { opacity: .26; } }
.kit-svg .hood-new { transition: opacity 0.4s ease; }
.kit-svg:not(.cab-new) .hood-new { opacity: 0; }
.kit-progress { height: 4px; margin: 0.7rem 4px 0; border-radius: 4px; background: rgba(31, 58, 45, 0.15); overflow: hidden; }
.kit-progress span { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--brass-ink); border-radius: 4px; }
.kit-copy { display: grid; gap: 1rem; justify-items: start; }
.kit-copy h2 { font-size: clamp(1.8rem, 6.4vw, 3rem); margin: 0; }
@media (min-width: 900px) {
  .kit-pin { padding: 2.5rem 0; }
  .kit-grid { grid-template-columns: 1.25fr 0.75fr; gap: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .kit-svg .flicker, .kit-svg .part.is-new .v-new { animation: none; }
  .kit-svg .v-old, .kit-svg .v-new, .kit-svg .grime, .kit-svg .hood-new { transition: none; }
}
