/* ============================================================
   VECTOR FACILITY SERVICES — Design System
   Warm authority: caregiver warmth, ruler-level order.
   Palette from the official brand board. Type: Fraunces + Hanken Grotesk.
   ============================================================ */

:root {
  /* Brand board */
  --white:    #F6F2EB;   /* Soft White */
  --ivory:    #EBDED4;   /* Ivory Cream */
  --oat:      #CBBFAF;   /* Oatmeal Beige */
  --gray:     #8A8077;   /* Warm Gray */
  --brown:    #5B4A3E;   /* Deep Brown */
  --teal:     #7DCBC7;   /* Light Greenish-Blue */

  /* Derived tones */
  --espresso: #3A2E25;   /* deep ink / dark sections */
  --espresso-2:#2C231C;  /* footer, deepest */
  --espresso-3:#4A3B31;  /* raised surfaces on dark */
  --teal-deep:#3F8E89;   /* teal that reads on cream */
  --teal-ink: #2C6B67;   /* teal for small text on light */
  --line:     rgba(91,74,62,0.14);
  --line-dark:rgba(235,222,212,0.13);

  --disp: 'Fraunces', Georgia, serif;
  --sans: 'Hanken Grotesk', -apple-system, sans-serif;

  --r-lg: 22px;
  --r-md: 14px;
  --shadow-card: 0 2px 6px rgba(58,46,37,0.05), 0 18px 46px -18px rgba(58,46,37,0.18);
  --shadow-deep: 0 30px 80px -20px rgba(44,35,28,0.45);
  --wrap: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* Horizontal-overflow backstop: transformed reveals and intrinsic image widths
   must never create sideways scroll */
html, body { overflow-x: clip; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--espresso);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
::selection { background: rgba(125,203,199,0.4); }

/* Grain — the paper feel */
body::after {
  content: ''; position: fixed; inset: -50%; z-index: 9999; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035; mix-blend-mode: multiply;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* ---------- Type ---------- */
h1, h2, h3, .disp { font-family: var(--disp); font-weight: 380; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.9rem, 6vw, 4.6rem); line-height: 1.04; }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.05rem); line-height: 1.12; }
h3 { font-size: 1.35rem; line-height: 1.3; }
h1 em, h2 em, h3 em, .disp em {
  font-style: italic; font-weight: 340; color: var(--teal-deep);
}
.on-dark h1 em, .on-dark h2 em, .on-dark em { color: var(--teal); }
p.lede { font-size: 1.16rem; line-height: 1.75; color: var(--brown); }
.muted { color: var(--gray); }

/* Eyebrow with sparkle */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--teal-ink); margin-bottom: 20px;
}
.on-dark .eyebrow { color: var(--teal); }
.eyebrow .spark { width: 13px; height: 13px; flex-shrink: 0; animation: twinkle 3.2s ease-in-out infinite; }
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(0.78) rotate(12deg); opacity: 0.65; }
}

/* Rule accent above headers */
.rule { width: 44px; height: 2px; background: var(--teal); margin-bottom: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 600;
  padding: 16px 30px; border-radius: 99px; cursor: pointer; border: 0;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s;
  position: relative;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .arr { display: inline-flex; transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }
.btn-dark { background: var(--espresso); color: var(--white); box-shadow: 0 14px 30px -12px rgba(58,46,37,0.5); }
.btn-dark:hover { background: var(--brown); }
.btn-teal { background: var(--teal); color: var(--espresso-2); box-shadow: 0 14px 30px -12px rgba(125,203,199,0.55); }
.btn-teal:hover { background: #8fd6d2; }
.btn-cream { background: var(--white); color: var(--espresso); box-shadow: 0 14px 34px -12px rgba(0,0,0,0.35); }
.btn-ghost { background: transparent; color: var(--espresso); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--brown); }
.btn-ghost-light { background: rgba(246,242,235,0.06); color: var(--white); border: 1px solid rgba(246,242,235,0.28); backdrop-filter: blur(8px); }
.btn-ghost-light:hover { border-color: rgba(246,242,235,0.6); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  transition: background 0.4s, box-shadow 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.solid {
  background: rgba(246,242,235,0.92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 82px; }
.nav-logo { display: flex; align-items: center; gap: 13px; }
.nav-logo img { height: 44px; width: auto; }
.nav-logo .lockup b {
  display: block; font-family: var(--disp); font-weight: 500; font-size: 1.02rem;
  letter-spacing: 0.01em; line-height: 1.15; color: var(--espresso);
}
.nav-logo .lockup span {
  display: block; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gray); margin-top: 2px;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links > a:not(.btn) {
  font-size: 0.92rem; font-weight: 550; color: var(--brown);
  position: relative; padding: 4px 0; white-space: nowrap;
}
.nav-links .btn { white-space: nowrap; }
.nav-links > a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 100%;
  background: var(--teal); transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-links > a:not(.btn):hover::after,
.nav-links > a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links .btn { padding: 12px 24px; font-size: 0.86rem; }

/* Nav over dark hero (transparent state) */
.nav.over-dark:not(.solid) .lockup b { color: var(--white); }
.nav.over-dark:not(.solid) .lockup span { color: var(--oat); }
.nav.over-dark:not(.solid) .nav-links > a:not(.btn) { color: rgba(246,242,235,0.85); }

/* Mobile */
.nav-burger {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--white); cursor: pointer; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.nav-burger span { width: 18px; height: 2px; background: var(--espresso); transition: 0.3s var(--ease); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--white);
  display: flex; flex-direction: column; justify-content: center; padding: 40px 32px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a:not(.btn) {
  font-family: var(--disp); font-size: 2rem; padding: 14px 0; color: var(--espresso);
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 30px; justify-content: center; }
body.menu-open { overflow: hidden; }
body.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
section { position: relative; }
.sec { padding: 110px 0; }
.sec-tight { padding: 80px 0; }
.bg-ivory { background: var(--ivory); }
.bg-white { background: var(--white); }
.on-dark { background: var(--espresso); color: var(--ivory); }
.on-dark .muted { color: var(--oat); }
.hairline-top { border-top: 1px solid var(--line); }

/* Section header block */
.sec-head { max-width: 640px; margin-bottom: 64px; }
.sec-head p.lede { margin-top: 18px; }

/* ---------- Hero (shared inner-page banner) ---------- */
.page-hero { position: relative; padding: 200px 0 110px; overflow: hidden; }
.page-hero.short { padding: 180px 0 90px; }
.page-hero .bgimg { position: absolute; inset: 0; }
.page-hero .bgimg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .veil { position: absolute; inset: 0; }

/* Media frames */
.frame { border-radius: var(--r-lg); overflow: hidden; position: relative; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame .tag {
  position: absolute; bottom: 18px; left: 18px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(246,242,235,0.94); backdrop-filter: blur(8px);
  color: var(--espresso); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.06em; padding: 8px 16px; border-radius: 99px;
}
.frame .tag .spark { width: 11px; height: 11px; }

/* Slow drift on hero imagery */
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.11); } }
.drift img { animation: drift 22s var(--ease) forwards; transform-origin: 60% 40%; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.card-body { padding: 34px; }
.icon-chip {
  width: 46px; height: 46px; border-radius: 14px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ivory); color: var(--teal-deep);
}
.icon-chip svg { width: 20px; height: 20px; }
.on-dark .icon-chip { background: var(--espresso-3); color: var(--teal); }

/* Check / sparkle lists */
.tick-list li { display: flex; gap: 14px; align-items: flex-start; padding: 9px 0; }
.tick-list .spark { width: 14px; height: 14px; flex-shrink: 0; margin-top: 7px; color: var(--teal-deep); }
.tick-list b { display: block; font-weight: 650; font-size: 0.98rem; }
.tick-list span { font-size: 0.88rem; color: var(--gray); line-height: 1.55; }

/* ---------- Stats ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.stat-num {
  font-family: var(--disp); font-weight: 340; font-size: clamp(3rem, 5vw, 4.2rem);
  line-height: 1; color: var(--white);
}
.stat-num sub, .stat-num sup { font-size: 0.45em; font-weight: 400; }
.stat-num span { font-size: inherit; color: inherit; }
.stat-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--oat); margin-top: 12px;
}

/* ---------- Process rows ---------- */
.step-row {
  display: grid; grid-template-columns: 90px 1fr; gap: 26px; align-items: start;
  padding: 38px 26px; border-bottom: 1px solid var(--line);
  border-radius: var(--r-md); transition: background 0.3s;
}
.step-row:hover { background: rgba(235,222,212,0.55); }
.step-num {
  font-family: var(--disp); font-weight: 300; font-size: 3.4rem; line-height: 0.9;
  color: var(--oat); transition: color 0.3s; font-variant-numeric: tabular-nums;
}
.step-row:hover .step-num { color: var(--teal-deep); }
.step-row h3 { margin-bottom: 10px; }
.step-row p { font-size: 0.97rem; color: var(--gray); }

/* ---------- Quote / testimonial ---------- */
.quote-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 38px; display: flex; flex-direction: column;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.quote-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.quote-card .qmark {
  font-family: var(--disp); font-size: 4rem; line-height: 0.6; color: var(--teal);
  margin-bottom: 26px; font-style: italic;
}
.quote-card blockquote {
  font-family: var(--disp); font-style: italic; font-weight: 350;
  font-size: 1.12rem; line-height: 1.6; flex: 1;
}
.quote-card .who { display: flex; align-items: center; gap: 14px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.quote-card .who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quote-card .who b { display: block; font-size: 0.94rem; }
.quote-card .who span { font-size: 0.8rem; color: var(--gray); }

/* ---------- Forms ---------- */
.form-label {
  display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--oat); margin-bottom: 8px;
}
.form-input {
  width: 100%; font-family: var(--sans); font-size: 1rem; /* ≥16px: no iOS zoom-on-focus */
  background: rgba(246,242,235,0.06); color: var(--white);
  border: 1px solid rgba(235,222,212,0.22); border-radius: var(--r-md);
  padding: 15px 18px; outline: none; transition: border-color 0.25s, background 0.25s;
}
.form-input::placeholder { color: rgba(203,191,175,0.55); }
.form-input:focus { border-color: var(--teal); background: rgba(246,242,235,0.09); }
textarea.form-input { resize: none; }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23CBBFAF' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
select.form-input option { color: var(--espresso); background: var(--white); }

/* Light form variant */
.form-light .form-label { color: var(--gray); }
.form-light .form-input {
  background: var(--white); color: var(--espresso); border-color: var(--line);
}
.form-light .form-input::placeholder { color: var(--oat); }
.form-light .form-input:focus { border-color: var(--teal-deep); }

/* ---------- Footer ---------- */
footer { background: var(--espresso-2); color: var(--oat); position: relative; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding: 90px 0 60px; }
.foot-brand img { height: 62px; margin-bottom: 24px; }
.foot-brand p { font-size: 0.92rem; line-height: 1.7; color: var(--oat); max-width: 300px; }
.foot-col b {
  display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ivory); margin-bottom: 22px;
}
.foot-col a { display: block; font-size: 0.93rem; color: var(--oat); padding: 6px 0; transition: color 0.25s, transform 0.25s var(--ease); }
.foot-col a:hover { color: var(--teal); transform: translateX(4px); }
.foot-areas { border-top: 1px solid var(--line-dark); padding: 34px 0 6px; }
.foot-areas > b {
  display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--ivory); margin-bottom: 22px;
}
.foot-areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 48px; max-width: 760px; }
.foot-county {
  display: block; font-family: var(--disp); font-size: 1.02rem;
  color: var(--ivory); margin-bottom: 12px;
}
.foot-area-group ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 18px;
}
.foot-area-group li { font-size: 0.93rem; color: var(--oat); }

.foot-base {
  border-top: 1px solid var(--line-dark); padding: 28px 0 34px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 0.78rem; color: #6d5f53;
}
.foot-wordmark {
  font-family: var(--disp); font-weight: 350; text-align: center;
  font-size: clamp(4rem, 13vw, 11rem); line-height: 1; color: rgba(235,222,212,0.05);
  letter-spacing: 0.02em; user-select: none; pointer-events: none;
  margin-top: -20px; white-space: nowrap;
}

/* Hero entrances: pure CSS, no JS gate — the LCP element must not wait for main.js */
.hrv { opacity: 0; animation: heroRise 0.9s var(--ease) 0.05s forwards; }
.hrv[data-d="1"] { animation-delay: 0.15s; }
.hrv[data-d="2"] { animation-delay: 0.25s; }
.hrv[data-d="3"] { animation-delay: 0.35s; }
.hrv[data-d="4"] { animation-delay: 0.45s; }
@keyframes heroRise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hrv { animation: none; opacity: 1; } }

/* ---------- Reveal animations ---------- */
.rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-l { opacity: 0; transform: translateX(-36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv-r { opacity: 0; transform: translateX(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv-l.in, .rv-r.in { opacity: 1; transform: none; }
[data-d="1"] { transition-delay: 0.1s; } [data-d="2"] { transition-delay: 0.2s; }
[data-d="3"] { transition-delay: 0.3s; } [data-d="4"] { transition-delay: 0.4s; }
[data-d="5"] { transition-delay: 0.5s; } [data-d="6"] { transition-delay: 0.6s; }

/* ---------- Slider ---------- */
.slider { position: relative; }
.slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s var(--ease); }
.slider .slide.active { opacity: 1; position: relative; }
.dots { display: flex; align-items: center; gap: 8px; margin-top: 20px; }
.dots .dot {
  width: 9px; height: 6px; border-radius: 99px; background: var(--oat);
  cursor: pointer; border: 0; padding: 0; transition: all 0.35s var(--ease);
}
.dots .dot.active { width: 28px; background: var(--espresso); }
.dots .hint { font-size: 0.78rem; color: var(--gray); margin-left: 12px; }

/* ---------- Misc ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.grid-2 > *, .grid-3 > *, .grid-4 > *, .proc-grid > *, .mosaic > *, .stepper > * { min-width: 0; }
/* Full-viewport hero: svh avoids the iOS address-bar jump */
.hero-full { min-height: 100vh; min-height: 100svh; }

.chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 9px 18px; border-radius: 99px;
  background: rgba(125,203,199,0.14); border: 1px solid rgba(125,203,199,0.4);
  color: var(--teal-ink); backdrop-filter: blur(8px);
}
.on-dark .chip, .chip.light { color: var(--teal); }

.num-badge {
  position: absolute; top: 18px; left: 18px; z-index: 2;
  font-family: var(--disp); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.1em;
  background: rgba(246,242,235,0.92); color: var(--espresso);
  padding: 7px 15px; border-radius: 99px;
}

/* Marquee (trust ticker) */
.marquee { overflow: hidden; white-space: nowrap; position: relative; }
.marquee-track { display: inline-flex; gap: 0; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  display: inline-flex; align-items: center; gap: 16px; padding: 0 34px;
  font-family: var(--disp); font-style: italic; font-size: 1.05rem; color: var(--gray);
}
.marquee-item .spark { width: 12px; height: 12px; color: var(--teal-deep); flex-shrink: 0; }

/* Accordion */
.acc { border-bottom: 1px solid var(--line); }
.acc summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 4px; cursor: pointer; list-style: none; font-weight: 650; font-size: 1.05rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary .plus { font-family: var(--disp); font-size: 1.5rem; font-weight: 300; color: var(--teal-deep); transition: transform 0.35s var(--ease); }
.acc[open] summary .plus { transform: rotate(45deg); }
.acc .acc-body { padding: 0 4px 28px; color: var(--gray); font-size: 0.97rem; max-width: 62ch; }

/* Comparison table */
.vs-table { width: 100%; border-collapse: collapse; }
.vs-table th, .vs-table td { padding: 20px 24px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.96rem; vertical-align: top; }
.vs-table th { font-family: var(--disp); font-weight: 450; font-size: 1.15rem; padding-bottom: 26px; }
.vs-table td:first-child { color: var(--gray); width: 50%; }
.vs-table td:last-child { font-weight: 550; }
.vs-table .spark { width: 13px; height: 13px; color: var(--teal-deep); margin-right: 10px; display: inline-block; vertical-align: -1px; }

/* Logo swap: cream logo over dark heroes, espresso once nav is solid */
.nav-logo .lg-dark { display: none; }
.nav.over-dark:not(.solid) .lg-dark { display: block; }
.nav.over-dark:not(.solid) .lg-light { display: none; }

/* Generic stroke icons */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 16px; height: 16px; }
svg.spark { fill: currentColor; }

/* ---------- Timeline (numbered circles) ---------- */
.tl { position: relative; padding-left: 8px; }
.tl-item { display: grid; grid-template-columns: 48px 1fr; gap: 20px; position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: 23px; top: 48px; bottom: 4px; width: 2px;
  background: linear-gradient(var(--teal), rgba(125,203,199,0.15));
}
.tl-item:last-child::before { display: none; }
.tl-num {
  width: 48px; height: 48px; border-radius: 50%; background: var(--teal);
  color: var(--espresso-2); font-family: var(--disp); font-weight: 500; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.tl-item b { display: block; font-size: 1.02rem; font-weight: 650; margin-top: 4px; }
.tl-item p { font-size: 0.92rem; color: var(--gray); margin-top: 5px; }

/* ---------- Progress bars (scorecard) ---------- */
.meter { margin-bottom: 22px; }
.meter .meter-top { display: flex; justify-content: space-between; font-size: 0.86rem; font-weight: 600; margin-bottom: 9px; }
.meter .meter-top span:last-child { font-family: var(--disp); font-size: 1rem; color: var(--teal); }
.meter .bar { height: 7px; border-radius: 99px; background: rgba(235,222,212,0.14); overflow: hidden; }
.meter .fill {
  height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal-deep), var(--teal));
  width: 0; transition: width 1.4s var(--ease) 0.2s;
}

/* ---------- Document mockup (sample service report) ---------- */
.doc {
  background: var(--white); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-deep); border: 1px solid var(--line);
  transform: rotate(0.6deg); transition: transform 0.5s var(--ease);
}
.doc:hover { transform: rotate(0deg) translateY(-4px); }
.doc-head {
  background: var(--espresso); color: var(--white); padding: 22px 30px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.doc-head b { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; }
.doc-pill {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(125,203,199,0.18); border: 1px solid rgba(125,203,199,0.5); color: var(--teal);
  padding: 6px 14px; border-radius: 99px; display: inline-flex; align-items: center; gap: 7px;
}
.doc-body { padding: 30px; }
.doc-row { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.doc-row span { color: var(--gray); }
.doc-row b { font-weight: 600; text-align: right; }
.doc-check { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 0.9rem; }
.doc-check .ck {
  width: 20px; height: 20px; border-radius: 6px; background: var(--teal);
  color: var(--espresso-2); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.doc-check .ck svg { width: 12px; height: 12px; }
.doc-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-ink); margin: 22px 0 8px; }

/* ---------- Stepper (affiliate how-it-works) ---------- */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.stepper .step-card { position: relative; }
.stepper .conn {
  position: absolute; top: 40px; right: -24px; z-index: 3;
  width: 26px; height: 26px; border-radius: 50%; background: var(--teal);
  color: var(--espresso-2); display: flex; align-items: center; justify-content: center;
}
.stepper .conn svg { width: 12px; height: 12px; }

/* ---------- Selection pills (forms) ---------- */
.pill-check { position: relative; }
.pill-check input { position: absolute; opacity: 0; pointer-events: none; }
.pill-check label {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 13px 18px; font-size: 0.9rem; font-weight: 550;
  transition: border-color 0.25s, background 0.25s; background: var(--white);
}
.pill-check label::before {
  content: ''; width: 18px; height: 18px; border-radius: 6px; flex-shrink: 0;
  border: 1.5px solid var(--oat); transition: 0.25s;
  background-position: center; background-repeat: no-repeat;
}
.pill-check input[type="radio"] + label::before { border-radius: 50%; }
.pill-check input:checked + label {
  border-color: var(--teal-deep); background: rgba(125,203,199,0.1);
}
.pill-check input:checked + label::before {
  background-color: var(--teal-deep); border-color: var(--teal-deep);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='9'%3E%3Cpath d='M1 4.5l3 3L10 1' stroke='%23F6F2EB' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* Checkbox rows (agreements) */
.agree { display: flex; gap: 13px; align-items: flex-start; font-size: 0.9rem; color: var(--brown); padding: 8px 0; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--teal-deep); flex-shrink: 0; }

/* Form section headings */
.fgroup { padding: 34px 0; border-bottom: 1px solid var(--line); }
.fgroup:first-child { padding-top: 0; }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup-head { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.fgroup-head h3, .fgroup-head .fgroup-h { font-family: var(--sans); font-weight: 700; font-size: 1rem; color: var(--espresso); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld { margin-bottom: 18px; }

/* Glass info chip (dark band heroes) */
.glass-chip {
  display: flex; align-items: center; gap: 16px;
  background: rgba(246,242,235,0.07); border: 1px solid rgba(235,222,212,0.18);
  border-radius: var(--r-md); padding: 20px 24px; backdrop-filter: blur(10px);
}
.glass-chip .icon-chip { background: rgba(125,203,199,0.15); color: var(--teal); }
.glass-chip b { display: block; font-size: 1.05rem; color: var(--white); }
.glass-chip span { font-size: 0.82rem; color: var(--oat); }
.glass-chip .stat-num, .glass-chip .stat-num span { font-size: inherit; color: var(--white); }
.glass-chip p.stat-num { font-size: 2.9rem; }
.quote-card.on-dark, .card.on-dark { background: var(--espresso); border-color: transparent; }

/* Breadcrumb */
.crumb { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: rgba(246,242,235,0.6); margin-bottom: 26px; }
.crumb a:hover { color: var(--teal); }
.crumb b { color: var(--white); font-weight: 550; }

/* Tab anchor bar */
.tabbar { background: var(--espresso); position: sticky; top: 0; z-index: 60; border-bottom: 1px solid var(--line-dark); }
.tabbar .wrap { display: flex; gap: 8px; overflow-x: auto; }
.tabbar a {
  padding: 20px 22px; font-size: 0.88rem; font-weight: 600; color: var(--oat);
  border-bottom: 2px solid transparent; white-space: nowrap; transition: color 0.25s;
}
.tabbar a:hover, .tabbar a.active { color: var(--white); border-bottom-color: var(--teal); }

/* Big check pop (thank-you) */
@keyframes checkPop {
  0% { transform: scale(0.3); opacity: 0; }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}
.check-pop { animation: checkPop 0.7s var(--ease) 0.25s both; }

/* SVG line chart */
.chart-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; }
.chart-wrap svg { width: 100%; height: auto; display: block; }
.chart-draw path.line { stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.4s var(--ease) 0.3s; }
.chart-draw.in path.line { stroke-dashoffset: 0; }

/* ---------- Cinematic photo treatment ---------- */
.ph {
  position: relative; border-radius: var(--r-md); overflow: hidden;
  background: var(--espresso-2); cursor: pointer; display: block; width: 100%;
  border: 0; padding: 0; text-align: left;
}
.ph img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  filter: saturate(0.78) contrast(1.14) brightness(0.94) sepia(0.14) hue-rotate(-6deg);
  transition: transform 1.1s var(--ease), filter 0.6s;
}
/* Cinematic grade: teal-washed shadows, warm highlights, gentle vignette */
.ph::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(155deg, rgba(125,203,199,0.34) 0%, rgba(125,203,199,0.06) 38%, transparent 55%, rgba(91,74,62,0.38) 100%);
  mix-blend-mode: soft-light;
}
.ph::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(125% 125% at 50% 32%, transparent 52%, rgba(28,22,17,0.36) 100%),
    linear-gradient(to top, rgba(44,35,28,0.55) 0%, rgba(44,35,28,0.08) 38%, rgba(44,35,28,0.02) 60%, rgba(44,35,28,0.16) 100%);
  transition: opacity 0.5s;
}
.ph:hover img { transform: scale(1.045); filter: saturate(0.88) contrast(1.1) brightness(1) sepia(0.08) hue-rotate(-4deg); }
.ph .ph-cap, .ph img { z-index: 0; }
.ph .ph-cap { z-index: 2; }
.ph .ph-cap {
  position: absolute; left: 18px; right: 18px; bottom: 15px; z-index: 2;
  display: flex; align-items: center; gap: 9px;
  color: var(--white); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.ph .ph-cap .spark { width: 11px; height: 11px; color: var(--teal); flex-shrink: 0; }
.ph:hover .ph-cap { opacity: 1; transform: none; }

/* Editorial gallery grid: 12-col mosaic */
.mosaic { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; grid-auto-rows: 92px; grid-auto-flow: dense; }
.mosaic .ph { grid-column: span 3; grid-row: span 3; }
.mosaic .ph.w4 { grid-column: span 4; }
.mosaic .ph.w6 { grid-column: span 6; }
.mosaic .ph.t4 { grid-row: span 4; }
.mosaic .ph.t5 { grid-row: span 5; }
.mosaic .ph.t6 { grid-row: span 6; }

/* Film strip (marquee of photos) */
.strip { overflow: hidden; position: relative; }
.strip-track { display: flex; gap: 16px; width: max-content; animation: marquee 60s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip .ph { width: 340px; height: 240px; flex-shrink: 0; }
.strip .ph .ph-cap { opacity: 1; transform: none; }
.strip-fade::before, .strip-fade::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 3; pointer-events: none;
}
.strip-fade::before { left: 0; background: linear-gradient(to right, var(--strip-bg, var(--white)), transparent); }
.strip-fade::after { right: 0; background: linear-gradient(to left, var(--strip-bg, var(--white)), transparent); }

/* Lightbox */
.lb {
  position: fixed; inset: 0; z-index: 300; background: rgba(28,22,17,0.94);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px;
  opacity: 0; pointer-events: none; transition: opacity 0.35s; padding: 30px;
  backdrop-filter: blur(6px);
}
.lb.open { opacity: 1; pointer-events: auto; }
.lb img {
  max-width: min(1100px, 92vw); max-height: 78vh; object-fit: contain;
  border-radius: var(--r-md); box-shadow: 0 40px 120px rgba(0,0,0,0.6);
}
.lb .lb-cap { color: var(--oat); font-size: 0.9rem; display: flex; align-items: center; gap: 10px; }
.lb .lb-cap .spark { width: 12px; height: 12px; color: var(--teal); }
.lb button {
  position: absolute; background: rgba(246,242,235,0.08); border: 1px solid rgba(235,222,212,0.25);
  color: var(--white); width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.25s;
  backdrop-filter: blur(8px);
}
.lb button:hover { background: rgba(125,203,199,0.25); }
.lb .lb-close { top: 26px; right: 26px; }
.lb .lb-prev { left: 26px; top: 50%; transform: translateY(-50%); }
.lb .lb-next { right: 26px; top: 50%; transform: translateY(-50%); }
.lb .lb-count { position: absolute; top: 38px; left: 34px; color: var(--oat); font-size: 0.82rem; letter-spacing: 0.14em; }
body.lb-open { overflow: hidden; }

/* Gallery filter chips */
.gal-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.gal-filters button {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 650; letter-spacing: 0.04em;
  padding: 10px 20px; border-radius: 99px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--brown);
  transition: all 0.3s var(--ease);
}
.gal-filters button:hover { border-color: var(--teal-deep); color: var(--teal-ink); }
.gal-filters button.active { background: var(--espresso); border-color: var(--espresso); color: var(--white); }
.mosaic .ph.hide { display: none; }

@media (max-width: 900px) {
  .mosaic { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 80px; }
  .mosaic .ph, .mosaic .ph.w4, .mosaic .ph.w6 { grid-column: span 3; }
  .strip .ph { width: 260px; height: 190px; }
}
@media (max-width: 560px) {
  .mosaic .ph, .mosaic .ph.w4, .mosaic .ph.w6 { grid-column: span 6; grid-row: span 3 !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-2 { gap: 48px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .stepper { grid-template-columns: 1fr 1fr; }
  .stepper .conn { display: none; }
}
@media (max-width: 1024px) {
  .proc-grid { grid-template-columns: 1fr !important; gap: 44px !important; }
  .proc-sticky { position: static !important; }
}
@media (max-width: 760px) {
  [data-step] { grid-template-columns: 1fr !important; }
  [data-step] > div:first-child { flex-direction: row !important; align-items: center; padding: 22px 28px !important; }
  [data-step] .grid-3 { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 820px) {
  body { font-size: 15.5px; }
  .f2 { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: 1fr; }
  .sec { padding: 76px 0; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .step-row { grid-template-columns: 56px 1fr; padding: 30px 12px; }
  .step-num { font-size: 2.4rem; }
  .page-hero { padding: 150px 0 70px; }
  .sec-head { margin-bottom: 44px; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; padding: 64px 0 44px; }
  .foot-areas-grid { grid-template-columns: 1fr; gap: 24px; }
  .vs-table th, .vs-table td { padding: 14px 12px; font-size: 0.88rem; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .wrap { padding: 0 22px; }
}

/* ============================================================
   MOBILE EXPERIENCE LAYER — designed for touch, not just shrunk
   ============================================================ */

/* ---- Touch devices: interactions translated ---- */
@media (hover: none) {
  /* Photo captions are the storytelling layer: visible by default on touch */
  .ph .ph-cap { opacity: 1; transform: none; font-size: 0.72rem; }
  .ph::after {
    background:
      radial-gradient(125% 125% at 50% 32%, transparent 52%, rgba(28,22,17,0.36) 100%),
      linear-gradient(to top, rgba(44,35,28,0.68) 0%, rgba(44,35,28,0.12) 40%, rgba(44,35,28,0.02) 60%, rgba(44,35,28,0.16) 100%);
  }
  /* Ken Burns drift is wasted battery at phone size */
  .drift img { animation: none; transform: none; }
  /* Hover lifts off; pressed feedback on */
  .card:hover, .quote-card:hover { transform: none; box-shadow: none; }
  .card:active, .quote-card:active { transform: scale(0.985); transition-duration: 0.15s; }
  .btn:hover { transform: none; }
  .btn:active { transform: scale(0.96); transition-duration: 0.1s; }
  .ph:active img { transform: scale(1.02); transition-duration: 0.2s; }
  .foot-col a:active, .nav-links a:active { color: var(--teal); }
  .doc { transform: none; }
}

/* Expanded hit areas without visual change (slider dots were 9x6px) */
.dots .dot { position: relative; }
.dots .dot::after { content: ''; position: absolute; inset: -18px -10px; }
.acc summary { min-height: 44px; }

@media (max-width: 820px) {
  /* Side reveals become gentle rises: no sideways motion in a narrow frame */
  .rv-l, .rv-r { transform: translateY(24px); }
  .rv-l.in, .rv-r.in { transform: none; }

  /* Section rhythm retuned for thumb-scroll length */
  .sec { padding: 64px 0; }
  .sec-tight { padding: 52px 0; }
  .grid-2 { gap: 40px; }
  .sec-head { margin-bottom: 36px; }
  p.lede { font-size: 1.05rem; }

  /* Home showcase: fading slider becomes a native swipe track */
  .slider[data-slider] {
    display: flex; height: auto !important;
    overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 12px; border-radius: var(--r-lg);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .slider[data-slider]::-webkit-scrollbar { display: none; }
  .slider[data-slider] .slide {
    position: relative; opacity: 1; flex: 0 0 88%;
    scroll-snap-align: center; border-radius: var(--r-md); overflow: hidden;
  }
  .slider[data-slider] .slide img { height: 340px !important; width: 100%; object-fit: cover; }
  .dots .dot { display: none; }
  .dots .hint { margin-left: 0; }
  .dots .hint::before { content: '← '; }

  /* Tap targets to comfortable sizes */
  .gal-filters button { padding: 13px 20px; }
  .foot-col a { padding: 11px 0; }
  .tick-list li { padding: 10px 0; }
  .agree { padding: 12px 0; }
  .agree input { width: 22px; height: 22px; }
  .card a[href], .frame + .dots ~ * a { padding-top: 6px; padding-bottom: 6px; }

  /* Thin inline links get comfortable hit areas */
  .crumb a { padding: 12px 4px; margin: -12px -4px; }
  section a[href^="mailto"], section a[href^="tel"] { padding-block: 10px; }

  /* Comparison table reads as stacked pairs on phones */
  .vs-table td:first-child { width: 44%; }
  .vs-table th, .vs-table td { padding: 14px 10px; font-size: 0.86rem; }
}

/* ---- Sticky mobile CTA bar ---- */
.cta-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
  display: none; gap: 10px; padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: rgba(44,35,28,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(235,222,212,0.15);
  transform: translateY(110%); transition: transform 0.4s var(--ease);
}
.cta-bar.show { transform: none; }
.cta-bar a {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; border-radius: 99px; font-size: 0.92rem; font-weight: 650;
}
.cta-bar .cta-call { background: rgba(246,242,235,0.1); color: var(--white); border: 1px solid rgba(235,222,212,0.3); }
.cta-bar .cta-main { background: var(--teal); color: var(--espresso-2); }
.cta-bar a:active { transform: scale(0.97); }
@media (max-width: 820px) {
  .cta-bar { display: flex; }
  body.has-cta-bar footer { padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .rv, .rv-l, .rv-r { opacity: 1; transform: none; }
  .cta-bar { transition: none; }
}
