/* ============================================================
   A&L Renovation & Design — home page
   Palette + type derived from the approved mockup.
   ============================================================ */

:root {
  --cream:     #F4F1EA;   /* page / header / feature bar */
  --white:     #FFFFFF;
  --ink:       #17171A;   /* headlines + primary text */
  --gray:      #5B5B5B;   /* body copy */
  --green:      #68A834;   /* brand accent (A&L green) */
  --green-dark: #57902B;   /* accent hover */
  --dark:       #1B2814;   /* deep green — muted dark surfaces (stats, footer) */
  --line:      rgba(23, 23, 26, 0.22);   /* separators / borders (site-wide) */
  --wrap:      1500px;   /* matches the .page-hero card width so content lines up with it */
  --header-h:  85px;   /* 84px bar + 1px border */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;   /* content can never spill past the viewport edge (keeps sticky header working) */
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 56px);
}

/* ---- Shared type devices ---------------------------------- */
.eyebrow {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
}
.eyebrow--light { color: var(--green); }
.eyebrow--rule {
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow--rule::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--green);
  flex: 0 0 auto;
}

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 28px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn--brand { background: var(--green); color: #fff; border-radius: 8px; }
.btn--brand:hover { background: var(--green-dark); }
.btn:disabled, .btn[disabled], .btn.is-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
/* Prominent hero call-to-action */
.btn--lg {
  padding: 15px 40px;
  font-size: 15px;
  letter-spacing: 0.1em;
  box-shadow: 0 14px 30px rgba(140, 198, 65, 0.32);
}
.btn--lg:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(140, 198, 65, 0.4); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn--ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn .play {
  width: 0; height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent currentColor;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 84px;
  max-width: none;   /* full-width bar: logo at one edge, nav at the other */
  padding: 0 clamp(0px, 5vw, 25px);   /* menu-specific gutter (overrides .wrap) */
}
.logo {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}
.logo img { height: 42px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: clamp(16px, 1.9vw, 34px); }
.main-nav a {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.main-nav a:hover { color: var(--green); }
.main-nav a.is-active { color: #fff; }
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 22px; height: 2px;
  background: var(--green);
}
.header-cta { padding: 10px 22px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: #fff;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.site-header.open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.open .menu-toggle span:nth-child(2) { opacity: 0; }
.site-header.open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 12px clamp(20px, 4vw, 56px) 24px;
}
.mobile-panel nav { display: flex; flex-direction: column; }
.mobile-panel nav a {
  padding: 14px 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.mobile-panel nav a.is-active { color: var(--green); }
.mobile-panel .btn { margin-top: 18px; width: 100%; justify-content: center; }

/* ============================================================
   Landing — hero + feature bar fill one screenful (below header)
   ============================================================ */
.landing { position: relative; }

@media (min-width: 900px) {
  .landing {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
  }
  .landing .hero { flex: 1 0 auto; }   /* grow to fill the leftover, never clip its content */
  .landing .features { flex: 0 0 auto; }
}

/* Scroll cue: sits at the bottom of the landing, centred. */
.scroll-cue {
  display: none;
  position: absolute;
  left: 50%; bottom: 18px;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  z-index: 5;
}
.scroll-cue svg {
  width: 22px; height: 22px;
  color: var(--green);
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}
@media (min-width: 900px) { .scroll-cue { display: flex; } }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 74vh, 780px);
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-bg { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-scrim {
  position: absolute;
  inset: 0;
  /* Scrim at 50% opacity (half the originals: .78/.45/.08/.35). */
  background:
    linear-gradient(90deg, rgba(12,12,14,0.39) 0%, rgba(12,12,14,0.23) 42%, rgba(12,12,14,0.04) 68%, rgba(12,12,14,0) 100%),
    linear-gradient(0deg, rgba(12,12,14,0.18) 0%, rgba(12,12,14,0) 45%);
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: none;                        /* full-width */
  padding: 40px clamp(24px, 6vw, 64px);   /* left-aligned, small gutter on mobile */
  text-align: left;
}
/* Editorial left-indent on larger screens (inspired by the reference hero): the
   copy sits left-of-centre, vertically centred, over the darker side of the scrim. */
@media (min-width: 1024px) {
  .hero-inner { padding-left: clamp(96px, 18vw, 300px); }
}
.hero-title {
  margin: 0 0 26px;
  font-size: clamp(46px, 8vw, 100px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero-sub {
  max-width: 440px;
  margin: 0 0 34px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Banner indicators — one dot per slide, animated on the SAME 28s cycle as the
   crossfade so the highlighted dot always matches the visible banner. */
.hero-dots {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 4px; margin: 0;
}
.hero-dot {
  width: 26px; height: 26px; padding: 0; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; -webkit-appearance: none;
}
.hero-dot::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.3s ease, transform 0.3s ease;
}
.hero-dot:hover::before { background: #fff; }
.hero-dot.is-active::before { background: var(--green); transform: scale(1.3); }

/* ============================================================
   Feature bar
   ============================================================ */
.features { background: var(--cream); border-bottom: 1px solid var(--line); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 44px 0;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 6px clamp(18px, 2vw, 34px);
}
.feature + .feature { border-left: 1px solid var(--line); }
.feature-icon { color: var(--green); flex: 0 0 auto; }
.feature-icon svg { width: 44px; height: 44px; display: block; }
.feature h3 { margin: 2px 0 6px; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.feature p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--gray); }

/* ============================================================
   Who we are
   ============================================================ */
.who { background: var(--white); }
.who-grid {
  display: grid;
  grid-template-columns: 0.95fr 0.95fr 1.5fr;
  align-items: center;
  gap: clamp(28px, 3.4vw, 56px);
  /* longhand so .wrap's left/right gutter is preserved (shorthand "... 0" would zero it) */
  padding-top: clamp(64px, 8vw, 108px);
  padding-bottom: clamp(64px, 8vw, 108px);
}
.who-head h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.who-copy p { margin: 0 0 26px; font-size: 16px; line-height: 1.75; color: var(--gray); }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--green);
}
.link-arrow span { transition: transform 0.2s ease; }
.link-arrow:hover span { transform: translateX(6px); }

.who-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.who-gallery img {
  width: 100%;
  height: clamp(280px, 30vw, 400px);
  object-fit: cover;
}

/* ============================================================
   Stats band (dark, above the footer)
   ============================================================ */
.stats { background: var(--dark); }   /* full-width band flows straight into the footer */
.stats-band { background: var(--dark); color: #fff; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: clamp(38px, 4vw, 58px);
  padding-bottom: clamp(38px, 4vw, 58px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);   /* separates the stats from the footer */
}
.stat {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px clamp(16px, 2vw, 34px);
}
.stat + .stat { border-left: 1px solid rgba(255,255,255,0.14); }
.stat-icon { color: var(--green); flex: 0 0 auto; }
.stat-icon svg { width: 46px; height: 46px; display: block; }
.stat-text { display: flex; flex-direction: column; }
.stat-num {
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--green);
}
.stat-num--word { font-size: clamp(24px, 2.4vw, 32px); color: #fff; }
.stat-label { margin-top: 7px; font-size: 14px; color: rgba(255,255,255,0.78); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--dark); color: rgba(255,255,255,0.72); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.25fr 1.15fr;
  gap: clamp(28px, 3.5vw, 60px);
  padding-top: clamp(56px, 7vw, 90px);
  padding-bottom: clamp(40px, 5vw, 60px);
}
.logo--light { color: #fff; display: inline-block; margin-bottom: 20px; }
.footer-brand p { margin: 0; max-width: 340px; font-size: 15px; line-height: 1.7; color: rgba(255,255,255,0.75); }

/* short rule + social circles under the brand (hidden on mobile) */
.footer-rule { display: block; width: 46px; height: 1px; background: rgba(255,255,255,0.25); margin: 24px 0 20px; }
.footer-social { display: flex; gap: 12px; }
.footer-soc {
  width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--green); color: var(--green);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.footer-soc:hover { background: var(--green); border-color: var(--green); color: #fff; }
.footer-soc svg { width: 18px; height: 18px; }

.footer-col h4 {
  margin: 0 0 22px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green);
}

/* faint vertical dividers between the columns */
.footer-nav, .footer-contact, .footer-cta {
  border-left: 1px solid rgba(255,255,255,0.12);
  padding-left: clamp(24px, 3vw, 56px);
}

/* Explore links */
.footer-nav { display: flex; flex-direction: column; }
.footer-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 0; font-size: 15px; text-decoration: none;
  color: rgba(255,255,255,0.82); transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--green); }
.footer-chev { width: 15px; height: 15px; flex: 0 0 auto; display: none; color: rgba(255,255,255,0.45); }  /* shown on mobile + iPad only */

/* Get in touch — circular icons */
.footer-contact { display: flex; flex-direction: column; gap: 6px; }
.footer-contact a {
  display: flex; align-items: center; gap: 13px;
  padding: 6px 0; font-size: 15px; text-decoration: none;
  color: rgba(255,255,255,0.9); transition: color 0.2s ease;
}
.footer-contact a:hover { color: var(--green); }
.footer-ic {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--green); color: var(--green);
}
.footer-ic svg { width: 17px; height: 17px; }

.footer-cta h3 { margin: 0 0 22px; font-size: clamp(22px, 2vw, 30px); font-weight: 700; color: #fff; line-height: 1.15; }

/* iPad (768–1024px): keep the 4-column row, reveal the link chevrons */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1.15fr 1.05fr; gap: clamp(20px, 2.4vw, 36px); }
  .footer-nav, .footer-contact, .footer-cta { padding-left: clamp(18px, 2.2vw, 32px); }
  .footer-chev { display: block; }
}

/* Mobile (≤767px): single column, full-width dividers, no socials, full-width CTA */
@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr; gap: 0; padding-top: 44px; padding-bottom: 34px; }
  .footer-rule, .footer-social { display: none; }
  .footer-nav, .footer-contact, .footer-cta {
    border-left: 0; padding-left: 0;
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 26px; padding-top: 26px;
  }
  .footer-cta .btn { width: 100%; justify-content: center; }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 34px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.7); text-decoration: none; }
.footer-bottom a:hover { color: var(--green); }

/* ============================================================
   Projects page
   ============================================================ */
/* Gentle fade-in so the hero banners ease in on load instead of snapping. */
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
.page-hero, .sv-hero, .pd-hero { animation: heroFade 0.9s ease both; }

.page-hero {
  position: relative;
  min-height: clamp(420px, 58vh, 560px);   /* shared hero height (About = reference) */
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  /* Floats as a 1500px card: rounded on all four corners with a gap above it,
     so the header no longer sits flush against the banner. overflow:hidden is
     required, not cosmetic: .page-hero-scrim is absolutely positioned inset:0,
     so without clipping it would paint square corners back over the radius. */
  max-width: 1500px;
  margin: 30px auto 0;
  border-radius: 16px;
  overflow: hidden;
}
.page-hero-scrim {
  position: absolute; inset: 0;
  /* Scrim at 50% opacity (half the originals: .88/.6/.15/.05). */
  background: linear-gradient(90deg, rgba(15,20,11,0.44) 0%, rgba(15,20,11,0.30) 45%, rgba(15,20,11,0.08) 82%, rgba(15,20,11,0.03) 100%);
}

.page-hero-inner { position: relative; z-index: 2; padding-top: 44px; padding-bottom: 44px; }
.page-hero .rule { display: block; width: 46px; height: 3px; background: var(--green); margin-bottom: 22px; }
.page-hero h1 { margin: 0 0 18px; font-size: clamp(38px, 5.5vw, 64px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.page-hero p { max-width: 440px; margin: 0; font-size: 16px; line-height: 1.65; color: rgba(255,255,255,0.85); }

.proj-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.proj-filter { display: flex; flex-wrap: wrap; gap: clamp(14px, 2vw, 30px); }
.proj-filter button {
  position: relative;
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s ease;
}
.proj-filter button:hover { color: var(--ink); }
.proj-filter button.is-active { color: var(--ink); }
.proj-filter button.is-active::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--green);
}
/* Sort control — icon + dropdown (Flagship / Newest / Oldest), all screen sizes */
.proj-sort {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px 6px 14px; cursor: pointer; transition: border-color 0.18s ease;
}
.proj-sort:hover, .proj-sort:focus-within { border-color: var(--green); }
.proj-sort-ic { width: 16px; height: 16px; flex: 0 0 auto; display: block; color: var(--gray); }
.proj-sort-select {
  border: 0; background: transparent; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
  cursor: pointer; -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding: 2px 20px 2px 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235B5B5B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right center;
}
.proj-sort-select:focus { outline: none; }

/* Mobile category dropdown (hidden on tablet/desktop where buttons show) */
.proj-filter-select {
  display: none;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  background-color: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 38px 10px 14px; cursor: pointer;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235B5B5B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
}
.proj-filter-select:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }

/* Mobile (< tablet): swap the category buttons for the compact dropdown. */
@media (max-width: 767px) {
  .proj-filter { display: none; }
  .proj-filter-select { display: inline-block; }
}

.proj-filter-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray);
}
.proj-filter-label svg { width: 16px; height: 16px; }

.proj-section { background: var(--cream); padding: clamp(40px, 5vw, 64px) 0 clamp(60px, 8vw, 100px); }
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 3vw, 44px) clamp(24px, 2.4vw, 36px);
}
.proj-card[hidden] { display: none; }
.proj-card-media { display: block; overflow: hidden; border-radius: 12px; }
.proj-card-media img {
  width: 100%;
  height: clamp(220px, 20vw, 270px);
  object-fit: cover;
  transition: transform 0.5s ease;
}
.proj-card-media:hover img { transform: scale(1.05); }
.proj-cat { display: block; margin: 20px 0 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green); }
.proj-card h3 { margin: 0 0 10px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.proj-card p { margin: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--gray); }

.proj-more { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 60px); }
.proj-more[hidden] { display: none; }
.btn--outline { background: transparent; color: var(--ink); border-color: rgba(23,23,26,0.22); }
.btn--outline:hover { border-color: var(--green); color: var(--green); }

/* ============================================================
   Project detail page
   ============================================================ */
.pd-hero {
  position: relative;
  min-height: clamp(380px, 52vh, 520px);
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.pd-hero-scrim {
  position: absolute; inset: 0;
  /* Scrim at 50% opacity (half the originals: .92/.6/.25/.7). */
  background:
    linear-gradient(90deg, rgba(15,20,11,0.46) 0%, rgba(15,20,11,0.30) 52%, rgba(15,20,11,0.13) 100%),
    linear-gradient(0deg, rgba(15,20,11,0.35) 0%, rgba(15,20,11,0) 55%);
}
.pd-hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 40px; padding-bottom: 46px; }
.pd-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.pd-crumb a { color: var(--green); text-decoration: none; }
.pd-crumb a:hover { color: #fff; }
.pd-crumb span { color: rgba(255,255,255,0.4); }
.pd-crumb em { color: rgba(255,255,255,0.75); font-style: normal; }
.pd-hero h1 { margin: 0 0 14px; font-size: clamp(34px, 5vw, 58px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; }
.pd-sub { max-width: 520px; margin: 0 0 30px; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,0.85); }
.pd-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 40px; }
.pd-meta li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.pd-meta svg { width: 26px; height: 26px; color: var(--green); flex: 0 0 auto; }
.pd-meta span { display: flex; flex-direction: column; line-height: 1.3; }
.pd-meta em { font-style: normal; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.pd-hero-nav { position: absolute; right: clamp(20px, 4vw, 56px); bottom: 46px; display: flex; gap: 12px; }
.pd-arrow { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,0.4); color: #fff; text-decoration: none; transition: background 0.2s ease, border-color 0.2s ease; }
.pd-arrow svg { width: 20px; height: 20px; }
.pd-arrow:hover { background: var(--green); border-color: var(--green); }

/* Before / after compare */
.pd-compare-section { background: var(--white); padding: clamp(40px, 5vw, 64px) 0; }
.ba-toggle { width: max-content; margin: 0 auto clamp(28px, 3vw, 40px); display: flex; background: rgba(23,23,26,0.07); border-radius: 999px; padding: 4px; }
.ba-toggle button {
  border: 0; background: none; cursor: pointer;
  padding: 11px 30px; border-radius: 999px;
  font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray); transition: background 0.2s ease, color 0.2s ease;
}
.ba-toggle button.is-active { background: var(--green); color: #fff; }

.ba-compare { position: relative; overflow: hidden; border-radius: 14px; user-select: none; touch-action: pan-y; }
.ba-compare > img, .ba-before-wrap img { display: block; width: 100%; height: clamp(320px, 50vw, 560px); object-fit: cover; pointer-events: none; }
.ba-before-wrap { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
/* Smooth slide when the Before/After toggle is clicked (class toggled by JS;
   removed while dragging so the drag stays 1:1 with the pointer). */
.ba-compare.is-animating .ba-before-wrap { transition: clip-path 0.5s ease; }
.ba-compare.is-animating .ba-handle { transition: left 0.5s ease; }
.ba-label { position: absolute; top: 16px; z-index: 3; padding: 6px 14px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; }
.ba-label--before { left: 16px; background: rgba(15,20,11,0.78); }
.ba-label--after { right: 16px; background: var(--green); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin: 0 0 0 -1px; padding: 0; border: 0; background: #fff; cursor: ew-resize; z-index: 4; }
.ba-knob { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(0,0,0,0.35); }
.ba-knob svg { width: 22px; height: 22px; color: var(--dark); }

/* Challenge / solution + features */
/* Outer container: keeps the background and spans the FULL width, so the page
   colour never shows along the sides at any screen size. */
.pd-info { background: var(--white); padding: 0 0 clamp(48px, 6vw, 72px); }
/* Inner container shares the SAME centred width + padding as the Before/After
   and Gallery .wrap containers, so the heading, accent line and text align with
   those sections at every screen size (the white background still spans full). */
.pd-desc { max-width: var(--wrap); }
.pd-desc .eyebrow { margin-bottom: 16px; }
.pd-desc p { margin: 0 0 16px; color: var(--gray); font-size: 16px; line-height: 1.75; }
.pd-info-grid { display: grid; grid-template-columns: 1fr 1fr 0.9fr; gap: clamp(28px, 3vw, 48px); align-items: start; }
.pd-col .eyebrow { margin-bottom: 12px; }
.pd-col p:not(.eyebrow) { margin: 0; color: var(--gray); font-size: 15px; line-height: 1.7; }
.pd-features { list-style: none; margin: 0; padding: clamp(24px, 3vw, 32px); background: var(--cream); border-radius: 10px; display: flex; flex-direction: column; gap: 14px; }
.pd-features li { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; }
.pd-feat-icon { color: var(--green); flex: 0 0 auto; }
.pd-feat-icon svg { width: 20px; height: 20px; display: block; }

/* Gallery */
.pd-gallery-section { background: var(--white); padding: clamp(16px, 2vw, 24px) 0 clamp(56px, 7vw, 88px); }
.pd-gallery-section .eyebrow { margin-bottom: 24px; }
.pd-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pd-shot { border: 0; padding: 0; background: none; cursor: pointer; overflow: hidden; border-radius: 6px; }
.pd-shot img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.5s ease; }
.pd-shot:hover img { transform: scale(1.06); }

/* Testimonial */
.pd-quote-section { background: var(--cream); padding: clamp(48px, 6vw, 80px) 0; }
.pd-quote { max-width: 940px; margin: 0 auto; display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.pd-quote-mark { font-family: Georgia, "Times New Roman", serif; font-size: 72px; line-height: 0.7; color: var(--green); flex: 0 0 auto; }
.pd-quote blockquote { margin: 0; flex: 1; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.6; color: var(--ink); }
.pd-quote-by { flex: 0 0 auto; text-align: right; display: flex; flex-direction: column; gap: 2px; }
.pd-quote-by strong { font-size: 16px; }
.pd-quote-by span { font-size: 13px; color: var(--gray); }

/* CTA band */
.pd-cta { background: var(--green); color: #fff; }
.pd-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: clamp(36px, 4vw, 52px); padding-bottom: clamp(36px, 4vw, 52px); }
.pd-cta h2 { margin: 0 0 6px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.02em; }
.pd-cta p { margin: 0; color: rgba(255,255,255,0.92); }
.pd-cta-btn { background: #fff; color: var(--dark); border-radius: 8px; }
.pd-cta-btn:hover { background: rgba(255,255,255,0.88); transform: translateY(-2px); }

/* Prev / view all / next */
.pd-footer-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; padding-top: clamp(28px, 3.5vw, 44px); padding-bottom: clamp(28px, 3.5vw, 44px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* vertical separators between prev · view all · next */
.pd-footer-nav .pd-fn--all { border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 4px clamp(20px, 4vw, 48px); }
.pd-fn { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.pd-fn--next { text-align: right; align-items: flex-end; }
.pd-fn--all { flex-direction: row; align-items: center; gap: 10px; justify-self: center; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray); }
.pd-fn--all svg { width: 18px; height: 18px; }
.pd-fn--all:hover { color: var(--green); }
.pd-fn-dir { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.pd-fn-title { font-size: 16px; font-weight: 700; }
.pd-fn:hover .pd-fn-title { color: var(--green); }

/* Lightbox */
.pd-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,12,8,0.93); display: flex; align-items: center; justify-content: center; }
.pd-lightbox[hidden] { display: none; }
.pd-lb-img { max-width: 88vw; max-height: 86vh; object-fit: contain; }
.pd-lb-close { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff; font-size: 36px; line-height: 1; cursor: pointer; }
.pd-lb-prev, .pd-lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.14); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pd-lb-prev { left: 20px; } .pd-lb-next { right: 20px; }
.pd-lb-prev svg, .pd-lb-next svg { width: 24px; height: 24px; }
.pd-lb-prev:hover, .pd-lb-next:hover { background: var(--green); }

@media (max-width: 980px) {
  .pd-info-grid { grid-template-columns: 1fr 1fr; }
  .pd-features { grid-column: 1 / -1; }
  .pd-gallery { grid-template-columns: repeat(3, 1fr); }
  .pd-hero-nav { display: none; }
}
@media (max-width: 620px) {
  .pd-info-grid { grid-template-columns: 1fr; }
  .pd-gallery { grid-template-columns: repeat(2, 1fr); }
  .pd-quote { flex-direction: column; text-align: center; }
  .pd-quote-by { text-align: center; }
  .pd-footer-nav { grid-template-columns: 1fr; text-align: center; }
  .pd-fn--next { align-items: center; text-align: center; }
  .pd-fn--prev { align-items: center; }
  .pd-footer-nav .pd-fn--all { border-left: 0; border-right: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; justify-content: center; }
  .ba-toggle { width: 100%; }
  .ba-toggle button { flex: 1; }
}

/* ============================================================
   About page
   ============================================================ */
.eyebrow--center { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.eyebrow--center::after { content: ""; width: 34px; height: 2px; background: var(--green); }

.page-hero--about { align-items: center; min-height: clamp(420px, 58vh, 560px); }
.page-hero--about .page-hero-inner { padding-top: 60px; padding-bottom: 60px; }
.page-hero--about .eyebrow--light { margin-bottom: 20px; }
.page-hero--about .rule { margin: 22px 0; }

.ab-started { background: var(--cream); padding: clamp(56px, 7vw, 96px) 0; }
.ab-started-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.ab-started-text .eyebrow { margin-bottom: 18px; }
.ab-started-text p { margin: 0 0 16px; color: var(--gray); font-size: 15.5px; line-height: 1.75; }
.ab-started-text strong { color: var(--ink); font-weight: 600; }
.ab-started-text .ab-sign { margin: 26px 0 2px; font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 27px; color: var(--green); }
.ab-started-text .ab-sign-role { margin: 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); }
.ab-figure { position: relative; }
.ab-figure > img { width: 100%; height: clamp(380px, 42vw, 520px); object-fit: cover; border-radius: 6px; display: block; }
.ab-figure-quote { position: absolute; left: 0; right: clamp(0px, 4vw, 40px); bottom: 0; display: flex; gap: 14px; align-items: flex-start; background: var(--dark); color: #fff; padding: 24px 28px; font-size: 16px; line-height: 1.5; }
.ab-figure-quote .q { font-family: Georgia, serif; font-size: 42px; line-height: 0.55; color: var(--green); flex: 0 0 auto; }

.ab-why { background: var(--dark); color: #fff; padding: clamp(56px, 7vw, 96px) 0; }
.ab-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.ab-why-text p:not(.eyebrow) { margin: 0 0 16px; color: rgba(255,255,255,0.82); font-size: 15.5px; line-height: 1.75; }
.ab-why-img img { width: 100%; height: clamp(320px, 36vw, 460px); object-fit: cover; border-radius: 6px; }

.ab-values { background: var(--cream); }
.ab-values-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: clamp(48px, 6vw, 72px) 0; }
.ab-value { text-align: center; padding: 6px clamp(18px, 2vw, 34px); }
.ab-value + .ab-value { border-left: 1px solid var(--line); }
.ab-value-icon { color: var(--green); display: inline-flex; }
.ab-value-icon svg { width: 44px; height: 44px; }
.ab-value h3 { margin: 16px 0 8px; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.ab-value p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--gray); }

.ab-cta { background: var(--cream); }
.ab-cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
.ab-cta-text h2 { margin: 0 0 14px; font-size: clamp(26px, 3vw, 38px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.ab-cta-text p { margin: 0 0 26px; max-width: 400px; color: var(--gray); font-size: 16px; line-height: 1.65; }
.ab-cta-img img { width: 100%; height: clamp(280px, 30vw, 380px); object-fit: cover; border-radius: 6px; }

/* ============================================================
   Services page
   ============================================================ */
/* Same height as the .page-hero banners (About = reference); content centred. */
.sv-hero { background: var(--cream); min-height: clamp(420px, 58vh, 560px); display: flex; align-items: center; }
.sv-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding-top: clamp(28px, 3vw, 44px); padding-bottom: clamp(28px, 3vw, 44px); }
.sv-hero-text h1 { margin: 0 0 18px; font-size: clamp(44px, 6.5vw, 84px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.sv-hero-sub { margin: 0 0 30px; max-width: 400px; color: var(--gray); font-size: 16px; line-height: 1.6; }
/* height keyed to viewport height (like the hero) so the image always fits within it */
.sv-hero-img img { width: 100%; height: clamp(280px, 40vh, 440px); object-fit: cover; border-radius: 6px; }

.sv-section { background: var(--white); padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 100px); }
.sv-intro { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 4vw, 56px); }
.sv-intro .eyebrow { margin-bottom: 16px; }
.sv-intro h2 { margin: 0 0 12px; font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -0.02em; }
.sv-intro p { margin: 0; color: var(--gray); font-size: 16px; }
.sv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2vw, 28px); }
.sv-card { text-align: center; border: 1px solid var(--line); border-radius: 10px; padding: clamp(28px, 3vw, 40px) clamp(20px, 2vw, 30px); transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.sv-card:hover { border-color: rgba(140,198,65,0.5); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.06); }
.sv-icon { color: var(--green); display: inline-flex; }
.sv-icon svg { width: 52px; height: 52px; }
.sv-card h3 { margin: 18px 0 12px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.sv-card p { margin: 0; color: var(--gray); font-size: 14.5px; line-height: 1.6; }

/* ============================================================
   Stories page
   ============================================================ */
/* Visible to screen readers only — the star row is decorative SVG, so the
   rating is announced once in words instead of five times as "star". */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.st-section { background: var(--cream); padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 100px); }
.st-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
  margin-top: clamp(32px, 4vw, 52px);
  align-items: start;   /* cards keep their own height rather than stretching to the tallest */
}
.st-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.st-card:hover { border-color: rgba(140,198,65,0.5); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.06); }
.st-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream); }
.st-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-card-body { padding: clamp(22px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 14px; }
/* Oversized opening quote, tucked tight above the text rather than sitting on
   its own line. */
.st-quote-mark {
  font-size: 56px; line-height: 0.6; color: var(--green);
  font-weight: 700; height: 22px;
}
.st-stars { margin: 0; display: flex; gap: 3px; }
.st-star { width: 18px; height: 18px; fill: rgba(23,23,26,0.16); }
.st-star.is-on { fill: var(--green); }
.st-card blockquote {
  margin: 0; color: var(--ink); font-size: 15.5px; line-height: 1.7;
}
.st-card figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.st-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.st-meta { font-size: 13px; color: var(--gray); }
/* The CTA reuses .ab-cta but has no image, so collapse its two-column grid. */
.st-cta-grid { grid-template-columns: 1fr; }
.st-empty { text-align: center; color: var(--gray); margin: clamp(28px, 4vw, 48px) 0 0; }

/* --- "Share your story" form ---------------------------------------------- */
.st-form-section { background: var(--white); padding: clamp(48px, 6vw, 88px) 0; }
.st-form-wrap { max-width: 820px; }
.st-form { display: flex; flex-direction: column; gap: 20px; margin-top: clamp(24px, 3vw, 36px); }
.st-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.st-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--gray); }
.st-field small { font-weight: 500; color: var(--gray); font-size: 12px; }
.st-field input, .st-field textarea {
  font-family: inherit; font-size: 15px; font-weight: 400; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff;
}
.st-field textarea { resize: vertical; line-height: 1.6; }
.st-field input:focus, .st-field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.st-req { color: var(--green); }

/* Star picker. The radios are rendered 5→1 so the sibling combinator can light
   up the hovered star AND everything after it in DOM order (= lower numbers). */
.st-rating { border: 0; margin: 0; padding: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 4px; }
.st-rating legend { float: left; width: 100%; font-size: 13px; font-weight: 600; color: var(--gray); margin-bottom: 8px; }
.st-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.st-rating label { cursor: pointer; line-height: 0; }
.st-rating svg { width: 30px; height: 30px; fill: rgba(23,23,26,0.16); transition: fill 0.12s ease; }
.st-rating label:hover svg,
.st-rating label:hover ~ label svg,
.st-rating input:checked ~ label svg { fill: var(--green); }
.st-rating input:focus-visible + label svg { outline: 2px solid var(--green); outline-offset: 2px; }

/* Honeypot: off-screen rather than display:none — some bots skip hidden fields
   but will happily fill one that's merely positioned away. */
.st-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.st-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.st-form-note { margin: 0; font-size: 13px; color: var(--gray); }

/* Centred status box — one element for both "sending" and "sent". Fixed and
   flex-centred so it sits dead centre of the viewport regardless of scroll. */
.st-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(15,20,11,0.45);
  opacity: 0; transition: opacity 0.3s ease;
}
.st-modal.is-on { opacity: 1; }
.st-modal[hidden] { display: none; }   /* [hidden] loses to display:flex otherwise */
.st-modal-box {
  display: flex; align-items: flex-start; gap: 14px;
  background: #fff; border-radius: 12px;
  padding: 22px 30px; margin: 0 20px; max-width: 460px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  transform: translateY(6px); transition: transform 0.3s ease;
}
.st-modal.is-on .st-modal-box { transform: translateY(0); }
.st-modal-body { display: flex; flex-direction: column; gap: 10px; }
.st-modal-text { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
/* Error detail lines. */
.st-modal-list { margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--gray); line-height: 1.55; }
.st-modal-list[hidden] { display: none; }
.st-modal-close { align-self: flex-start; margin-top: 2px; }
.st-modal-close[hidden] { display: none; }
/* Errors get a red rule so the state reads before the words do. */
.st-modal--error .st-modal-box { border-top: 4px solid #b23a2b; }
.st-bang {
  width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%;
  background: #b23a2b; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}
.st-bang[hidden] { display: none; }
.st-spinner {
  width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%;
  border: 2px solid rgba(104,168,52,0.30); border-top-color: var(--green);
  animation: stSpin 0.7s linear infinite;
}
.st-spinner[hidden], .st-check[hidden] { display: none; }
.st-check {
  width: 22px; height: 22px; flex: 0 0 auto; border-radius: 50%;
  background: var(--green); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
@keyframes stSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .st-spinner { animation: none; }
  .st-modal, .st-modal-box { transition: none; }
}

@media (max-width: 620px) { .st-form-grid { grid-template-columns: 1fr; } }

/* --- Stories admin queue --------------------------------------------------- */
.st-adm-counts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
/* Solid fills rather than tints — on the counts row and inside each card these
   are the fastest way to read state, so they should shout, not whisper. */
.st-pill { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.st-pill--pending  { background: #D6A037;   color: #2a1e05; }
.st-pill--approved { background: var(--green); color: #fff; }
.st-pill--rejected { background: rgba(23,23,26,0.55); color: #fff; }
/* Secondary marker — deliberately quiet so it can't compete with the status. */
.st-pill--source   { background: transparent; color: var(--gray); border: 1px dashed var(--line); font-weight: 600; }
/* Status has to be readable at a glance while scrolling a long queue: a heavy
   uniform outline plus a tinted surface. A 1px border made approved and pending
   look identical. The status modifiers below only swap border-COLOR, so the
   6px stays consistent across every state. */
/* NOTE the doubled class. These rows are also .hub-herotext, which is defined
   LATER in this file with `border: 1px solid var(--line); background:#fff`.
   At equal specificity the later rule wins, so a plain `.st-adm-row` selector
   silently lost every border and background set here. */
.hub-herotext.st-adm-row { border: 4px solid var(--line); position: relative; }

.hub-herotext.st-adm-row--pending {
  border-color: #D6A037;
  background: rgba(214,160,55,0.07);
}
.hub-herotext.st-adm-row--approved {
  border-color: var(--green);
  background: rgba(104,168,52,0.07);
}
.hub-herotext.st-adm-row--rejected {
  border-color: rgba(23,23,26,0.30);
  border-left-style: dashed;          /* reads as "set aside" even in greyscale */
  background: rgba(23,23,26,0.04);
  opacity: 0.7;
}
.hub-herotext.st-adm-row--rejected:hover { opacity: 1; }
/* Give the rows real separation so the outlines don't run together. */
.st-adm-row + .st-adm-row { margin-top: 26px; }
.st-adm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; color: var(--gray); }
.st-adm-date { margin-left: auto; }
.st-adm-email a { color: var(--green); font-weight: 600; }
.st-adm-email small { color: var(--gray); font-weight: 500; }
.st-adm-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.st-adm-del { color: #7c1d1d; border-color: rgba(180,40,40,0.35); }
.hub-form-note { margin: 0; font-size: 13px; color: var(--gray); max-width: 46ch; }
.hub-card--alert { border-color: rgba(214,160,55,0.7); }

@media (max-width: 980px) { .st-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .st-grid { grid-template-columns: 1fr; } }

@media (max-width: 980px) {
  .ab-started-grid, .ab-why-grid, .ab-cta-grid, .sv-hero-grid { grid-template-columns: 1fr; }
  .ab-why .ab-why-img { order: -1; }
  .ab-values-grid { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .ab-value:nth-child(3) { border-left: none; }
  .sv-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .ab-values-grid { grid-template-columns: 1fr; }
  .ab-value + .ab-value { border-left: none; border-top: 1px solid var(--line); padding-top: 28px; }
  .sv-grid { grid-template-columns: 1fr; }
  .ab-figure-quote { position: static; right: 0; margin-top: -2px; border-radius: 0 0 6px 6px; }
}

/* ============================================================
   In-element navigation loading — a spinner on the clicked link / button /
   thumbnail (no full-screen overlay), same idea as the project thumbnails.
   ============================================================ */
.is-nav-loading { position: relative; pointer-events: none; }
.nav-spin {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 241, 234, 0.66);
  border-radius: inherit;
}
.nav-spin::after {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(23, 23, 26, 0.2);
  border-top-color: var(--green);
  animation: pl-spin 0.6s linear infinite;
}
@keyframes pl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nav-spin::after { animation: none; } }

/* ============================================================
   Contact page
   ============================================================ */
.ct-info { background: var(--cream); padding: clamp(56px, 7vw, 96px) 0; }
.ct-info-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 4vw, 64px); align-items: center; }
.ct-details { list-style: none; margin: 0; padding: 0; }
.ct-detail { display: flex; gap: 20px; align-items: flex-start; padding: 22px 0; }
.ct-detail + .ct-detail { border-top: 1px solid var(--line); }
.ct-detail-icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: rgba(104,168,52,0.12); color: var(--green); display: flex; align-items: center; justify-content: center; }
.ct-detail-icon svg { width: 24px; height: 24px; }
.ct-detail h3 { margin: 4px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.ct-detail p { margin: 0; color: var(--gray); font-size: 15px; line-height: 1.6; }
.ct-detail a { color: var(--ink); text-decoration: none; font-weight: 500; }
.ct-detail a:hover { color: var(--green); }
.ct-info-img img { width: 100%; height: clamp(360px, 42vw, 480px); object-fit: cover; border-radius: 6px; }

.ct-help { background: var(--white); }
.ct-help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.ct-help-item { display: flex; gap: 18px; align-items: flex-start; }
.ct-help-item:first-child { padding-right: clamp(20px, 3vw, 48px); border-right: 1px solid var(--line); }
.ct-help-icon { flex: 0 0 auto; color: var(--green); }
.ct-help-icon svg { width: 40px; height: 40px; }
.ct-help-item h3 { margin: 0 0 8px; font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.ct-help-item p { margin: 0; color: var(--gray); font-size: 15px; line-height: 1.65; }

.ct-map { display: grid; grid-template-columns: 1fr 1.4fr; }
.ct-map-panel { background: var(--dark); color: #fff; display: flex; align-items: center; }
.ct-map-panel-inner { padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px); max-width: 520px; margin-left: auto; margin-right: clamp(24px, 4vw, 56px); border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.ct-map-panel h2 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; }
.ct-map-panel .rule { display: block; width: 46px; height: 3px; background: var(--green); margin: 20px 0; }
.ct-map-panel p { margin: 0; color: rgba(255,255,255,0.8); font-size: 15px; line-height: 1.7; }
.ct-follow { margin: 30px 0 16px !important; color: var(--green); }
.ct-social { display: flex; gap: 12px; }
.ct-social a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); color: #fff; display: flex; align-items: center; justify-content: center; transition: background 0.2s ease, border-color 0.2s ease; }
.ct-social a:hover { background: var(--green); border-color: var(--green); }
.ct-social svg { width: 18px; height: 18px; }
.ct-map-embed { min-height: 360px; }
.ct-map-embed iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; filter: grayscale(0.25); }

@media (max-width: 980px) {
  .ct-info-grid { grid-template-columns: 1fr; }
  .ct-map { grid-template-columns: 1fr; }
  .ct-map-panel-inner { margin: 0; max-width: none; }
}
@media (max-width: 620px) {
  .ct-help-grid { grid-template-columns: 1fr; gap: 30px; }
  .ct-help-item:first-child { padding-right: 0; border-right: 0; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
}

/* ============================================================
   Project hub (admin) — reuses the site palette + buttons
   ============================================================ */
.hub-top { background: var(--dark); color: #fff; }
.hub-top-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.hub-brand { display: flex; align-items: center; gap: 14px; }
.hub-brand img { height: 34px; width: auto; display: block; }
.hub-tag { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.6); border-left: 1px solid rgba(255,255,255,0.22); padding-left: 14px; }
.hub-live { color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.hub-live:hover { color: var(--green); }
.hub-top-links { display: flex; align-items: center; gap: 22px; }

/* Login */
.hub-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.hub-login { width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 38px 34px; box-shadow: 0 20px 50px rgba(0,0,0,0.08); }
.hub-login img { height: 40px; width: auto; display: block; margin: 0 auto 14px; }
.hub-login h1 { text-align: center; margin: 0 0 4px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.hub-login .sub { text-align: center; margin: 0 0 26px; font-size: 13px; color: var(--gray); }
.hub-login .btn { width: 100%; justify-content: center; margin-top: 6px; }
.hub-login-err { background: rgba(200,60,40,0.1); color: #8a2b1c; border: 1px solid rgba(200,60,40,0.4); border-radius: 8px; padding: 11px 14px; font-size: 13px; margin-bottom: 18px; }

.hub-main { padding: clamp(20px, 3vw, 40px) clamp(16px, 3vw, 40px) 60px; transition: background 0.3s ease; }
/* All admin content sits on a solid rounded panel, so the red/blue page tint
   only frames it (never washes over the text). Max 1500px, centred. */
.hub-panel {
  max-width: 1500px; margin: 0 auto;
  background: #fff; border-radius: 20px;
  padding: clamp(22px, 3vw, 44px);
  box-shadow: 0 10px 34px rgba(0,0,0,0.06);
}
@media (max-width: 560px) { .hub-panel { border-radius: 14px; } }
/* The panel IS the box, so the inner form shouldn't be a second nested card. */
.hub-panel .hub-form { background: transparent; border: 0; border-radius: 0; padding: 0; }
.hub-main.is-dirty { background: #384F8F; }    /* blue: saved draft, not yet published */
.hub-main.is-editing { background: #8B2E2E; }  /* dark red: unsaved edits (before Save draft) */
.hub-crumb { margin-bottom: 18px; font-size: 13px; color: var(--gray); }
.hub-crumb a { color: var(--green); text-decoration: none; }
.hub-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.hub-head h1 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.02em; }
.hub-head p { margin: 0; color: var(--gray); }

.hub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.hub-card { display: block; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.hub-card:hover { border-color: rgba(104,168,52,0.5); transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,0,0,0.06); }
.hub-card.is-soon { opacity: 0.5; pointer-events: none; }
.hub-card-icon { color: var(--green); margin-bottom: 16px; }
.hub-card-icon svg { width: 34px; height: 34px; }
.hub-card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.hub-card p { margin: 0; font-size: 14px; color: var(--gray); }

.hub-notice { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 8px; margin-bottom: 22px; font-size: 14px; font-weight: 600; background: rgba(104,168,52,0.14); color: #3c5c1f; border: 1px solid rgba(104,168,52,0.45); border-left: 4px solid var(--green); }
.hub-notice::before { content: "✓"; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: #fff; font-size: 12px; flex: 0 0 auto; }
.hub-notice--err { background: rgba(200,60,40,0.1); border-color: rgba(200,60,40,0.4); border-left-color: #b23a2b; color: #8a2b1c; }
.hub-notice--err::before { content: "!"; background: #b23a2b; }
/* Neutral "here's how this works" note — the base style's green tick reads as
   "something succeeded", which is wrong for an explanatory message. */
.hub-notice--info { background: rgba(23,23,26,0.05); border-color: var(--line); border-left-color: var(--gray); color: var(--ink); font-weight: 500; align-items: flex-start; }
.hub-notice--info::before { content: "i"; background: var(--gray); font-style: italic; font-weight: 700; }
.hub-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.hub-status--dirty { background: rgba(80,150,225,0.18); color: #2f6db0; }
.hub-status--clean { background: rgba(104,168,52,0.14); color: #3c5c1f; }

.hub-form { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: clamp(18px, 2vw, 28px); }
.hub-banners { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.hub-herotext { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; margin-bottom: 24px; display: flex; flex-direction: column; gap: 14px; }
.hub-herotext h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink); }
.hub-herotext small { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--gray); }
.hub-herotext-tip { margin: -4px 0 2px; font-size: 13px; color: var(--gray); }
.hub-herotext-tip code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 12px; background: rgba(23,23,26,0.06); padding: 1px 6px; border-radius: 4px; color: var(--ink); }
.hub-herotext-btn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .hub-herotext-btn { grid-template-columns: 1fr; } }
.hub-banner { display: grid; grid-template-columns: auto 170px 1fr; gap: 18px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); }
.hub-banner.is-removing { opacity: 0.45; }
.hub-reorder { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hub-drag-grip { display: inline-flex; align-items: center; justify-content: center; color: var(--gray); cursor: grab; touch-action: none; }
.hub-drag-grip:hover { color: var(--green); }
.hub-move { width: 32px; height: 27px; border: 1px solid var(--line); background: #fff; border-radius: 6px; cursor: pointer; color: var(--gray); font-size: 11px; line-height: 1; }
.hub-move:hover { border-color: var(--green); color: var(--green); }
.hub-thumb { aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: #dcdcd6; cursor: grab; touch-action: none; }
.hub-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
.hub-banner.is-dragging { opacity: 0.35; }   /* original stays as the dimmed drop slot */
.hub-banner.is-dragging .hub-thumb { cursor: grabbing; }
/* Floating copy that follows the pointer while dragging. */
.hub-drag-ghost {
  position: fixed !important; z-index: 9999 !important; margin: 0 !important; pointer-events: none;
  border-radius: 10px; box-shadow: 0 16px 36px rgba(0,0,0,0.32);
  transform: rotate(0.4deg) scale(1.02); opacity: 0.97; cursor: grabbing;
}
.hub-fields { display: flex; flex-direction: column; gap: 12px; }
.hub-label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); display: flex; flex-direction: column; gap: 6px; }
.hub-label input[type="text"], .hub-label textarea { font-family: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; }
.hub-label textarea { resize: vertical; line-height: 1.5; }
.hub-label input[type="text"]:focus, .hub-label textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.hub-row-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }

/* --- Page editors (About / Services / Contact) -----------------------------
   Content rows reuse .hub-banner's card styling but have no thumbnail column,
   so the 3-column grid it assumes (auto / 170px / 1fr) has to collapse to two
   or the fields sit in the wrong track. */
.hub-row { grid-template-columns: auto 1fr; align-items: start; }
.hub-row-2 { display: grid; grid-template-columns: minmax(140px, 1fr) 2fr; gap: 14px; }
/* Selects weren't styled before — the page editors are the first hub screens to
   use them, and unstyled they don't match the text inputs beside them. */
.hub-label select {
  font-family: inherit; font-size: 15px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff;
}
.hub-label select:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.hub-label-txt { margin: 0; font-size: 13px; color: var(--gray); }
.hub-label-txt strong { color: var(--ink); }
.hub-imgpick { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--cream); }
.hub-imgpick-row { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: start; margin-top: 10px; }
.hub-imgpick-fields { display: flex; flex-direction: column; gap: 12px; }
/* The picker preview is decorative — dragging it does nothing here, unlike the
   banner rows where .hub-thumb is the drag handle. */
.hub-imgpick .hub-thumb { cursor: default; }
.hub-addrow { margin: 4px 0 0; }

@media (max-width: 640px) {
  .hub-row { grid-template-columns: 1fr; }
  .hub-row-2, .hub-imgpick-row { grid-template-columns: 1fr; }
}

.hub-replace span { font-size: 13px; font-weight: 600; color: var(--green); display: block; margin-bottom: 4px; }
.hub-replace input[type="file"], .hub-add input[type="file"] { font-size: 12px; max-width: 100%; }
.hub-delete { font-size: 13px; color: var(--gray); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.hub-add { margin: 18px 0; padding: 18px; border: 1px dashed rgba(23,23,26,0.25); border-radius: 10px; transition: border-color 0.15s ease, background 0.15s ease; }
.hub-add.is-drop { border-color: var(--green); border-style: solid; background: rgba(104,168,52,0.08); }
.hub-add span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.hub-add-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hub-add-previews img { width: 130px; height: 82px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); display: block; }
.hub-add-prev { border: 0; padding: 0; background: none; cursor: pointer; position: relative; line-height: 0; border-radius: 6px; overflow: hidden; }
.hub-add-prev::after { content: "✕ Remove"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(179,57,42,0.78); color: #fff; font-size: 11px; font-weight: 600; opacity: 0; transition: opacity 0.15s ease; }
.hub-add-prev:hover::after { opacity: 1; }
.hub-actions { display: flex; gap: 14px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.hub-discard { color: var(--gray); }
.hub-discard:hover { color: #b23a2b; border-color: #b23a2b; }
/* Standard action bar: Discard(+Delete) on the left, everything else on the right. */
.hub-actions-left, .hub-actions-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* Bottom action bar inside a panel: separated from the content above by a rule. */
.hub-actionbar { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 680px) {
  .hub-banner { grid-template-columns: 1fr; }
  .hub-reorder { flex-direction: row; }
  .hub-actions { justify-content: stretch; }
  .hub-actions .btn { flex: 1; justify-content: center; }
}

/* ---- Project editor + list ---- */
.btn--danger { background: transparent; color: #b3392a; border-color: rgba(179,57,42,0.4); }
.btn--danger:hover { background: rgba(179,57,42,0.08); border-color: #b3392a; }
.btn--sm { padding: 9px 16px; font-size: 12px; }

.hub-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); }
.hub-field small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--gray); opacity: 0.8; }
.hub-field input[type="text"], .hub-field select, .hub-field textarea {
  font-family: inherit; font-size: 15px; font-weight: 400; letter-spacing: 0; text-transform: none;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff;
}
.hub-field textarea { resize: vertical; line-height: 1.6; }
.hub-field input:focus, .hub-field select:focus, .hub-field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.hub-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
@media (max-width: 640px) { .hub-grid2 { grid-template-columns: 1fr; } }

.hub-buckets { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 8px 0 26px; }
.hub-bucket { border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: var(--cream); }
.hub-bucket h3 { margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.hub-count { font-size: 11px; font-weight: 600; color: #fff; background: var(--green); border-radius: 999px; padding: 2px 9px; }
.hub-imgs { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.hub-img { width: 150px; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.hub-img.is-removing { opacity: 0.4; }
.hub-img-thumb { aspect-ratio: 4 / 3; background: #ddd; }
.hub-img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hub-img-tools { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; gap: 6px; }
.hub-img-move { display: flex; gap: 3px; }
.hub-img-move .hub-move { width: 24px; height: 22px; }
.hub-img-replace, .hub-img-del { position: relative; cursor: pointer; font-size: 13px; color: var(--gray); width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; }
.hub-img-replace:hover { color: var(--green); border-color: var(--green); }
.hub-img-del:hover { color: #b3392a; border-color: #b3392a; }
.hub-img-replace input, .hub-img-del input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hub-img-add { display: inline-flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--green); cursor: pointer; }
.hub-img-add input { font-size: 12px; }

/* Drag-and-drop reordering (hub-sort.js) — thumbnail is the drag handle. */
.hub-img-thumb { cursor: grab; touch-action: none; }
.hub-img-thumb img { -webkit-user-drag: none; user-select: none; }
.hub-img.is-dragging { opacity: 0.35; outline: 2px dashed var(--line); outline-offset: 0; }   /* dimmed drop slot; the floating ghost carries the visual */
.hub-buckets.is-sorting .hub-img-thumb { cursor: grabbing; }
/* While sorting, show every bucket (even empty ones) as a drop zone. */
.hub-buckets.is-sorting .hub-imgs { min-height: 96px; outline: 2px dashed var(--line); outline-offset: 4px; border-radius: 8px; }

.hub-actions--split { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .hub-actions--split { flex-direction: column; align-items: stretch; }
  .hub-actions-left, .hub-actions-right { flex-direction: column; align-items: stretch; width: 100%; }
  .hub-actions-left .btn, .hub-actions-right .btn { justify-content: center; }
}

.hub-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.hub-toolbar-right { display: flex; gap: 12px; flex-wrap: wrap; }
.hub-proj-hint { margin: 0 0 16px; font-size: 13.5px; color: var(--gray); }
.hub-proj-hint span { color: var(--green); font-weight: 700; }

/* Project categories manager */
.hub-cats { margin-bottom: 34px; }
.hub-cats-title { margin: 0 0 6px; font-size: 15px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink); }
.hub-cats-hint { margin: 0 0 16px; font-size: 13.5px; color: var(--gray); }
.hub-cats-list { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hub-cat { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); }
.hub-cat-grip { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 30px; color: var(--gray); cursor: grab; touch-action: none; border-radius: 6px; }
.hub-cat-grip:hover { color: var(--green); background: rgba(23,23,26,0.04); }
.hub-cat-grip:active { cursor: grabbing; }
.hub-cat.is-dragging { opacity: 0.35; }
.hub-cat-label { flex: 1 1 auto; min-width: 0; font-family: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; }
.hub-cat-label:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.hub-cat-count { flex: 0 0 auto; font-size: 13px; color: var(--gray); white-space: nowrap; }
.hub-cat-del { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--gray); font-size: 16px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.hub-cat-del:hover { color: #b3392a; border-color: #b3392a; }
.hub-cat-lock { flex: 0 0 auto; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); background: rgba(23,23,26,0.06); padding: 6px 11px; border-radius: 999px; }
.hub-cat-add { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hub-cat-add input { flex: 1 1 220px; min-width: 160px; font-family: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; }
.hub-cat-add input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
@media (max-width: 520px) {
  .hub-cat { flex-wrap: wrap; }
  .hub-cat-label { flex-basis: 100%; order: 3; }
}
.hub-proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.hub-proj { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.hub-proj.is-dragging { opacity: 0.35; outline: 2px dashed var(--line); }
.hub-proj-grip { position: absolute; top: 8px; left: 8px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 7px; background: rgba(255,255,255,0.92); box-shadow: 0 1px 4px rgba(0,0,0,0.18); color: var(--gray); cursor: grab; touch-action: none; }
.hub-proj-grip:hover { color: var(--green); }
.hub-proj-media { display: block; aspect-ratio: 16 / 10; background: #ddd; cursor: grab; touch-action: none; }
.hub-proj-media img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-select: none; }
.hub-proj.is-dragging .hub-proj-media, .hub-proj.is-dragging .hub-proj-grip { cursor: grabbing; }
.hub-proj-body { padding: 16px 18px 18px; }
.hub-proj-body h3 { margin: 4px 0 6px; font-size: 18px; font-weight: 700; }
.hub-proj-counts { margin: 0 0 14px; font-size: 12px; color: var(--gray); }
.hub-proj-actions { display: flex; gap: 8px; }

/* ---- Restore points ---- */
.hub-head-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hub-restore { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 32px; }
.hub-restore h2 { margin: 0 0 6px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.02em; }
.hub-restore .hub-head p { max-width: 620px; }
.hub-empty { color: var(--gray); font-size: 14px; }
.hub-snaps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hub-snap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.hub-snap-info { display: flex; flex-direction: column; gap: 3px; }
.hub-snap-info strong { font-size: 15px; font-weight: 700; }
.hub-snap-info span { font-size: 12.5px; color: var(--gray); }
.hub-snap-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ---- Saving / saved popup ---- */
.hub-modal { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center; background: rgba(20,25,15,0.35); animation: hub-fade 0.15s ease; }
.hub-modal[hidden] { display: none; }
.hub-modal-card { background: #fff; border-radius: 14px; padding: 30px 42px; display: flex; flex-direction: column; align-items: center; gap: 16px; box-shadow: 0 24px 60px rgba(0,0,0,0.3); min-width: 210px; }
.hub-modal-spin { width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgba(104,168,52,0.25); border-top-color: var(--green); animation: pl-spin 0.7s linear infinite; }
.hub-modal-spin[hidden], .hub-modal-check[hidden] { display: none; }
.hub-modal-check { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.hub-modal-msg { font-size: 15px; font-weight: 700; color: var(--ink); }
@keyframes hub-fade { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 560px) { .hub-snap { flex-direction: column; align-items: stretch; } .hub-snap-actions { justify-content: flex-end; } }

/* ---- Site Colours (hub) ---- */
.cc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 30px; align-items: start; }
.cc-h2 { margin: 0 0 6px; font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.cc-sub { margin: 0 0 16px; font-size: 14px; color: var(--gray); }
.cc-block { margin-bottom: 30px; }

.cc-preset-cat { margin: 22px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.cc-preset-cat:first-of-type { margin-top: 8px; }
.cc-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 10px; }
.cc-preset { position: relative; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 10px; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s, transform 0.08s; }
.cc-preset:hover { border-color: var(--green); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.cc-preset:active { transform: translateY(1px); }
.cc-preset.is-active { border-color: var(--green); box-shadow: 0 0 0 2px var(--green) inset; }
.cc-preset-circles { display: flex; gap: 7px; }
.cc-preset-circles span { width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12); }
.cc-preset-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.cc-preset-desc { font-size: 12.5px; line-height: 1.5; color: var(--gray); }
.cc-preset-del { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--gray); font-size: 15px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.cc-preset-del:hover { color: #b3392a; border-color: #b3392a; }
.cc-preset-sub { margin: 24px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); }
.cc-addpreset { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.cc-addpreset input { flex: 1 1 220px; min-width: 160px; font-family: inherit; font-size: 14px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; }
.cc-addpreset input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }

.cc-list { display: flex; flex-direction: column; gap: 12px; }
.cc-ctrl { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.cc-swatch { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.14); }
.cc-ctrl-body { flex: 1 1 auto; min-width: 0; }
.cc-ctrl-label { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.cc-ctrl-use { margin: 3px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--gray); }
.cc-ctrl-inputs { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.cc-ctrl-inputs input[type="color"] { width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.cc-ctrl-inputs input[type="color"]::-webkit-color-swatch-wrapper { padding: 3px; }
.cc-ctrl-inputs input[type="color"]::-webkit-color-swatch { border: none; border-radius: 5px; }
.cc-ctrl-inputs input[type="text"] { width: 96px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 14px; text-transform: uppercase; padding: 10px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; }
.cc-ctrl-inputs input[type="text"]:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }

.cc-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.cc-actions .btn { cursor: pointer; }
#ccPreviewBtn.is-on { background: var(--green); color: #fff; border-color: var(--green); }
.cc-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--gray); }

/* Live preview (scoped: --dark/--green/--green-dark/--cream/--white set by JS) */
.cc-preview-wrap { position: sticky; top: 20px; }
.cpv { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 10px 34px rgba(0,0,0,0.10); font-size: 13px; }
.cpv-nav { background: var(--dark); color: #fff; display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.cpv-logo { font-weight: 800; letter-spacing: 0.02em; }
.cpv-nav-links { display: flex; gap: 12px; margin-left: auto; }
.cpv-nav-links a { color: rgba(255,255,255,0.72); font-weight: 600; font-size: 12px; }
.cpv-nav-links a.is-active { color: #fff; }
.cpv-cta { background: var(--green); color: #fff; font-weight: 700; font-size: 11.5px; padding: 7px 12px; border-radius: 7px; }
.cpv-body { background: var(--cream); padding: 22px 18px; }
.cpv-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.cpv-heading { margin: 8px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: #17171A; line-height: 1.15; }
.cpv-accent { width: 54px; height: 3px; background: var(--green); border-radius: 2px; margin: 12px 0 16px; }
.cpv-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cpv-btn { font-size: 12px; font-weight: 700; padding: 8px 13px; border-radius: 7px; }
.cpv-btn--primary { background: var(--green); color: #fff; }
.cpv-btn--secondary { background: transparent; color: #17171A; border: 1px solid rgba(23,23,26,0.22); }
.cpv-btn--hover { background: var(--green-dark); color: #fff; }
.cpv-card { margin-top: 18px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.cpv-card-img { height: 92px; background: linear-gradient(135deg, var(--dark), var(--green)); }
.cpv-card-text { padding: 12px 14px; }
.cpv-card-cat { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
.cpv-card-title { display: block; margin-top: 4px; font-size: 15px; color: #17171A; }
.cpv-footer { background: var(--dark); color: rgba(255,255,255,0.72); display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.cpv-foot-brand { font-weight: 700; color: #fff; }
.cpv-foot-links { display: flex; gap: 12px; margin-left: auto; }
.cpv-foot-links a { color: rgba(255,255,255,0.72); font-size: 12px; }

@media (max-width: 900px) {
  .cc-grid { grid-template-columns: 1fr; }
  .cc-preview-wrap { position: static; order: -1; }
}
@media (max-width: 520px) {
  .cc-ctrl { flex-wrap: wrap; }
  .cc-ctrl-inputs { width: 100%; justify-content: space-between; }
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Focus + accessibility
   ============================================================ */
a:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .who-grid { grid-template-columns: 1fr 1fr; }
  .who-gallery { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  /* tighten header spacing so the full nav fits on iPad (down to 768px) */
  .header-inner { gap: 18px; }
  .main-nav { gap: clamp(12px, 1.4vw, 22px); }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 8px 0; }
  .feature { padding: 20px clamp(16px, 3vw, 28px); }
  .feature:nth-child(3), .feature:nth-child(4) { border-top: 1px solid var(--line); }
  .feature:nth-child(3) { border-left: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .stat:nth-child(3), .stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 26px; }
  .stat:nth-child(3) { border-left: none; }
  .proj-grid { grid-template-columns: 1fr 1fr; }
}

/* Header: keep the full nav on iPad; switch to the hamburger only on phones. */
@media (max-width: 767px) {
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 620px) {
  .who-grid { grid-template-columns: 1fr; }
  .who-gallery { grid-template-columns: 1fr 1fr; }
  .who-gallery img:last-child { grid-column: 1 / -1; }
  .features-grid { grid-template-columns: 1fr; }
  .feature + .feature { border-left: none; border-top: 1px solid var(--line); }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr; gap: 22px 0; }
  .stat + .stat { border-left: none; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 22px; }
  .proj-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { animation: none; }
  .hero-slide:not(:first-child) { opacity: 0; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .link-arrow span, .btn { transition: none; }
  .scroll-cue svg { animation: none; }
  .page-hero, .sv-hero, .pd-hero { animation: none; }
}

/* ============================================================
   Flush content grids — one shared rule. These are .wrap elements,
   so they inherit its clamp(24px, 5vw, 56px) side padding, which left
   them sitting up to 56px inside the .page-hero banner edge above.
   Zeroing it lines every page's content up with the banner.
   Add a selector here whenever a new full-width content grid is
   introduced. (Placed last so it wins over .wrap.)
   ============================================================ */
.proj-grid,
.ab-started-grid,
.ab-why-grid,
.ab-values-grid,
.ab-cta-grid,
.ct-info-grid,
.ct-help-grid {
  padding-left: 0;
  padding-right: 0;
}

/* ============================================================
   Rounded media frames — one shared rule: every rounded photo /
   media frame gets the same subtle outline. Add a selector here
   whenever a new rounded image frame is introduced. (Placed last
   so it wins over per-element borders like .pd-shot { border: 0 }.)
   ============================================================ */
.proj-card-media,
.ba-compare,
.pd-shot,
.ab-figure > img,
.ab-why-img img,
.ab-cta-img img,
.sv-hero-img img,
.ct-info-img img {
  border: 1px solid var(--line);
}
