/* =========================================================================
   Hovescapes — site styles
   Palette: deep green + cream + ink, paired with Cormorant Garamond / Inter.
   ========================================================================= */

:root {
  /* Ink */
  --ink:          #14181A;
  --ink-mut:      #555A55;
  --muted:        #6E7268;

  /* Greens — refined botanical, closer to Farrow & Ball "Studio Green"
     than the AI pitch's slightly cooler forest hue */
  --green:        #2E4A3D;
  --green-dk:     #1F3A2E;
  --green-deeper: #14241B;
  --green-soft:   #D1DBC9;

  /* Backgrounds — warm near-whites instead of cream. Subtle banding
     between adjacent sections via --paper / --paper-2. */
  --paper:        #FAF8F2;   /* primary page background */
  --paper-2:      #F2EFE5;   /* slightly warmer for alternating sections */
  --paper-3:      #E8E3D2;   /* deeper warm tone for accents */
  --white:        #FFFFFF;
  /* Legacy aliases (kept so unedited rules still work during the transition) */
  --cream:        #FAF8F2;
  --cream-2:      #F2EFE5;
  --cream-3:      #E8E3D2;

  --gold:         #B98F2E;
  --rule:         rgba(20, 36, 27, 0.14);
  --rule-soft:    rgba(20, 36, 27, 0.06);
  --rule-dk:      rgba(245, 239, 226, 0.18);

  /* Type — Cormorant Garamond at weight 400 (delicate, classical-editorial).
     Inter for body. */
  --ff-display: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --ff-body:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Rhythm — generous editorial spacing */
  --section-y: clamp(96px, 12vw, 168px);
  --gutter:    clamp(20px, 4vw, 36px);
  --header-h:  74px;
}

html { font-optical-sizing: auto; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.nav-open { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
a { color: var(--green-dk); text-decoration-color: rgba(45, 74, 46, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--green-dk); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }

/* Skip-to-content link — only visible when keyboard-focused */
.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  background: var(--green);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 2px;
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  z-index: 100;
  transform: translateY(-200%);
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow    { max-width: 720px; }

/* ---------- Typography ---------- */
.display {
  font-family: var(--ff-display);
  font-weight: 500;
  letter-spacing: -0.016em;
  line-height: 1.05;
  font-optical-sizing: auto;
}
.display em {
  font-style: italic;
  color: var(--green);
  font-weight: 500;
}
.display.on-dark { color: var(--paper); }
.display.on-dark em { color: var(--green-soft); }

.label {
  font-family: var(--ff-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--green);
}
.label.on-dark { color: var(--cream); opacity: 0.82; }

.rule-line {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--green);
}
.rule-line::before, .rule-line::after {
  content: ""; width: 32px; height: 1px;
  background: currentColor; opacity: 0.45;
}
.rule-line.on-dark { color: var(--cream); }
.rule-line.on-dark::before, .rule-line.on-dark::after { background: var(--cream); opacity: 0.5; }

/* Section heads */
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .label { display: inline-flex; margin-bottom: 18px; }
.section-head h2 {
  font-size: clamp(36px, 5.4vw, 60px);
  margin: 0 0 18px;
  max-width: 22ch;
}
.section-head p {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink-mut);
  margin: 0;
  max-width: 60ch;
}
.section-head.on-dark p { color: rgba(245, 239, 226, 0.78); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; min-height: 48px;
  border-radius: 2px;
  font-family: var(--ff-body);
  font-weight: 600; font-size: 13px; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  line-height: 1.1; cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary    { background: var(--green); color: var(--cream); border-color: var(--green); }
.btn-primary:hover { background: var(--green-dk); border-color: var(--green-dk); }
.btn-secondary  { background: transparent; color: var(--green); border-color: var(--green); }
.btn-secondary:hover { background: var(--green); color: var(--cream); }
.btn-light      { background: var(--cream); color: var(--green-dk); border-color: var(--cream); }
.btn-light:hover { background: #fff; }
.btn-ghost-dark { background: transparent; color: var(--cream); border-color: rgba(245, 239, 226, 0.45); }
.btn-ghost-dark:hover { background: rgba(245, 239, 226, 0.08); border-color: var(--cream); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 242, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 12px; padding-bottom: 12px;
  min-height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--ink); line-height: 1;
}
.brand-logo {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  display: inline-grid; place-items: center;
  flex-shrink: 0;
  padding: 4px;
  overflow: hidden;
}
.brand-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
@media (min-width: 760px) {
  .brand-logo { width: 56px; height: 56px; padding: 5px; }
}
.brand-text {
  display: flex; flex-direction: column; gap: 4px;
}
.brand-wordmark {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--ff-body);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}
@media (min-width: 760px) {
  .brand-wordmark { font-size: 16px; letter-spacing: 0.24em; }
  .brand-sub { font-size: 10.5px; }
}

.nav-links {
  display: none; gap: 28px; align-items: center;
  font-family: var(--ff-body); font-size: 14px; font-weight: 500;
}
.nav-links a { color: var(--ink); text-decoration: none; transition: color 0.18s ease; }
.nav-links a:hover { color: var(--green-dk); }
@media (min-width: 980px) { .nav-links { display: flex; } }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone {
  font-family: var(--ff-body); font-weight: 600; font-size: 14px;
  color: var(--green-dk); text-decoration: none; white-space: nowrap;
  display: none; align-items: center; gap: 8px;
}
.header-phone svg { color: var(--green); }
@media (min-width: 720px) { .header-phone { display: inline-flex; } }
.header-cta {
  display: none;
  align-items: center; justify-content: center;
  padding: 9px 16px; min-height: 40px;
  border-radius: 2px;
  font-family: var(--ff-body); font-weight: 600; font-size: 11.5px;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  border: 1.5px solid var(--green); color: var(--green);
  background: transparent; white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}
.header-cta:hover { background: var(--green); color: var(--cream); }
@media (min-width: 540px) { .header-cta { display: inline-flex; } }

/* Hamburger — no chrome, just the lines */
.nav-toggle {
  display: inline-flex;
  flex-direction: column; justify-content: center; align-items: center;
  width: 42px; height: 42px;
  padding: 0; gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: opacity 0.18s ease;
}
.nav-toggle:hover { opacity: 0.7; }
.nav-toggle .bar {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--green-dk);
  transition: transform 0.24s ease, opacity 0.24s ease;
  border-radius: 1px;
}
.nav-toggle.is-open .bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (min-width: 980px) { .nav-toggle { display: none; } }

/* Mobile nav panel */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background-color: #F5EFE2;       /* solid cream — explicit */
  background-image: none;
  z-index: 55;
  padding: 28px var(--gutter) 32px;
  display: flex; flex-direction: column;
  gap: 28px;
  overflow-y: auto;
  box-shadow: inset 0 1px 0 var(--rule);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.mobile-nav.is-open { opacity: 1; transform: none; }
.mobile-nav[hidden] { display: none !important; }
.mobile-nav nav {
  display: flex; flex-direction: column;
}
.mobile-nav nav a {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(22px, 4.5vw, 28px);
  color: var(--ink);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
  transition: color 0.18s ease;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.mobile-nav nav a:first-child { border-top: 1px solid var(--rule-soft); }
.mobile-nav nav a:hover { color: var(--green); }
.mobile-nav-actions {
  display: grid; gap: 10px;
  margin-top: 12px;
}
.mobile-nav-actions .btn { width: 100%; }

/* ---------- Hero (centered) ---------- */
.hero {
  background: var(--paper);
  padding: clamp(48px, 6vw, 88px) 0 clamp(80px, 10vw, 128px);
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before, .hero::after {
  content: ""; position: absolute;
  width: 360px; height: 360px;
  background: radial-gradient(closest-side, rgba(45, 74, 46, 0.08), transparent 70%);
  pointer-events: none; border-radius: 50%;
}
.hero::before { top: -120px; left: -120px; }
.hero::after  { bottom: -160px; right: -140px; }
.hero .container { position: relative; z-index: 1; }
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-inner .rule-line { margin-bottom: 28px; font-size: 12px; }
.hero h1 {
  font-size: clamp(40px, 8vw, 88px);
  margin: 0 0 24px;
  color: var(--ink);
  letter-spacing: -0.012em;
  max-width: 100%;
  font-weight: 500;
  overflow-wrap: break-word;
  hyphens: none;
  text-wrap: balance;
}

/* Keep italic emphasis intact on desktop so the headline breaks naturally
   into two lines rather than splitting "Brighton & Hove" awkwardly. */
@media (min-width: 980px) {
  .hero h1 em { white-space: nowrap; }
}
.hero .lead {
  font-size: clamp(17px, 1.85vw, 20px);
  color: var(--ink-mut);
  margin: 0 0 36px;
  max-width: 54ch;
  line-height: 1.6;
}
.hero-ctas {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-bottom: 36px;
}
.hero-stars {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink-mut); font-size: 13px; font-weight: 500;
  padding-top: 22px; border-top: 1px solid var(--rule);
}
.hero-stars .stars { display: inline-flex; color: var(--gold); gap: 1px; }

/* ---------- Photo band (full-width landscape) ---------- */
.photo-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  background: var(--paper);
  padding: 0;
}
@media (min-width: 760px) {
  .photo-band { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}
.photo-band-tile {
  display: block;
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--cream-2);
  position: relative;
  overflow: hidden;
  transition: transform 0.8s cubic-bezier(.22,.61,.36,1);
}
.photo-band-tile:hover { transform: scale(1.02); }

/* ---------- Section base ---------- */
section.block { padding: var(--section-y) 0; position: relative; }

/* ---------- About ---------- */
.about { background: var(--paper-2); }
.about-grid {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 880px) {
  .about-grid.has-portrait {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 72px;
  }
}
.about-grid.no-portrait { max-width: 760px; }
.about-portrait { max-width: 420px; }
.about-portrait-frame {
  aspect-ratio: 4 / 5;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-2);
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
  overflow: hidden;
}
.about-portrait-fallback {
  display: grid; place-content: center; gap: 8px;
  text-align: center;
  background:
    radial-gradient(80% 80% at 50% 30%, rgba(45, 74, 46, 0.10), transparent 70%),
    var(--cream-2);
  color: var(--green);
}
.about-portrait-fallback .initials {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 88px;
  font-weight: 600;
  line-height: 1;
  color: var(--green);
}
.about-portrait-fallback .caption {
  font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-copy p {
  font-size: clamp(16.5px, 1.55vw, 18px);
  color: var(--ink);
  line-height: 1.75;
  margin: 0 0 18px;
}
.about-copy p:last-of-type { margin-bottom: 0; }

.about-creds {
  list-style: none;
  margin: 28px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--rule);
  display: grid; gap: 10px;
}
.about-creds li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14.5px;
  color: var(--ink-mut);
}
.about-creds li svg {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 4px;
}
.about-creds li span { line-height: 1.5; }

.about-sig {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 18px;
  color: var(--green);
  margin-top: 28px;
}

/* ---------- Services (3-col card grid) ---------- */
.services { background: var(--paper); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 40px; }
}
@media (min-width: 960px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 48px; }
}
.service-card {
  display: flex; flex-direction: column;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}
.service-num {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--green);
  line-height: 1;
  margin-bottom: 14px;
}
.service-card h3 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(22px, 2.2vw, 26px);
  margin: 0 0 10px;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.service-card p {
  margin: 0;
  font-size: 15.5px;
  color: var(--ink-mut);
  line-height: 1.65;
}

/* ---------- Work (light, landscape cards with bg-image) ---------- */
.work {
  background: var(--paper-2);
  color: var(--ink);
}
.work-grid {
  display: grid; gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .work-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 32px; } }

.work-card {
  display: flex; flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}
.work-card:focus-visible { outline-offset: 4px; }
.work-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--paper-3);
  border: 1px solid var(--rule-soft);
  margin: 0 0 20px;
  overflow: hidden;
  transition: transform 0.7s cubic-bezier(.22,.61,.36,1);
}
.work-card:hover .work-img { transform: scale(1.02); }

.work-img-fallback {
  display: grid; place-content: center;
  text-align: center; gap: 10px;
  padding: 24px;
  background:
    radial-gradient(60% 60% at 30% 40%, rgba(45, 74, 46, 0.08), transparent 70%),
    var(--paper-3);
}
.work-img-fallback .title {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 22px;
  color: var(--green);
}
.work-img-fallback .hint {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-meta { padding: 0; }
.work-meta h3 {
  font-family: var(--ff-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 28px);
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -0.012em;
  line-height: 1.18;
}
.work-meta .tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-ctas {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 14px 18px;
  margin-top: clamp(40px, 5vw, 56px);
}
.ig-cta {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.ig-cta:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--paper);
}

/* /work/ index page */
.work-index { background: var(--paper); }

/* ---------- Reviews ---------- */
.reviews { background: var(--paper); }
.reviews .section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.reviews-rating {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--ink-mut);
  margin-top: 14px;
}
.reviews-rating .stars { display: inline-flex; color: var(--gold); }

.quotes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: clamp(24px, 3vw, 40px);
}
@media (min-width: 880px) {
  .quotes { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
.quote {
  position: relative;
  margin: 0;
  padding: 36px 32px 32px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
}
.quote .big-quote {
  position: absolute;
  top: -8px; left: 22px;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 96px;
  line-height: 1;
  color: var(--green);
  opacity: 0.32;
  pointer-events: none;
}
.quote blockquote {
  margin: 0 0 22px;
  font-family: var(--ff-display);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.quote figcaption {
  display: flex; flex-direction: column; gap: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.quote .name {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.quote .role {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.reviews-cta {
  margin-top: clamp(40px, 5vw, 56px);
  display: flex;
}

/* Secondary (small) review cards — shown below the 2 featured pull-quotes.
   Auto-fit so 3, 4, or more cards always stretch full row width. */
.quotes-secondary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 22px;
  margin-top: clamp(28px, 4vw, 44px);
}

.quote-small {
  display: flex; flex-direction: column;
  margin: 0;
  padding: 22px 22px 20px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
}
.quote-small .stars-tiny {
  display: inline-flex; gap: 1px;
  color: var(--gold);
  margin-bottom: 12px;
}
.quote-small .stars-tiny svg { width: 12px; height: 12px; }
.quote-small blockquote {
  margin: 0 0 14px;
  font-family: var(--ff-body);
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-mut);
}
.quote-small figcaption {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  display: flex; flex-direction: column; gap: 2px;
}
.quote-small .name {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}
.quote-small .meta {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact {
  background: var(--paper-2);
  color: var(--ink);
}
.contact .section-head { margin-bottom: clamp(24px, 3vw, 36px); }
.contact-grid {
  display: grid; gap: 48px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 80px;
  }
}
.contact .intro {
  font-size: clamp(16px, 1.55vw, 18px);
  color: var(--ink-mut);
  max-width: 52ch;
  margin: 0 0 40px;
  line-height: 1.7;
}

.contact-phone {
  display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: var(--ink);
  margin-bottom: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.contact-phone .label-text {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted);
}
.contact-phone .number {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(38px, 4.8vw, 54px);
  letter-spacing: -0.01em;
  color: var(--green-dk);
  line-height: 1;
}
.contact-meta {
  display: flex; flex-direction: column; gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.contact-meta .row {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.contact-meta a.row { color: var(--ink); text-decoration: none; }
.contact-meta a.row:hover { color: var(--green-dk); text-decoration: underline; text-decoration-color: rgba(45, 74, 46, 0.35); text-underline-offset: 3px; }
.contact-meta .row svg { color: var(--green); flex-shrink: 0; }
.contact-meta a { color: var(--green-dk); }

.contact-form {
  background: #FFFFFF;
  border: 1px solid var(--rule);
  padding: clamp(28px, 3.5vw, 40px);
  border-radius: 2px;
  position: relative;
  box-shadow: 0 30px 60px -40px rgba(20, 36, 27, 0.25);
}
.form-eyebrow {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--green); margin: 0 0 10px; font-weight: 600;
}
.form-title {
  font-family: var(--ff-display); font-weight: 600;
  font-size: clamp(28px, 3vw, 36px);
  margin: 0 0 8px; color: var(--ink); letter-spacing: -0.008em;
  line-height: 1.1;
}
.form-title em { font-style: italic; color: var(--green); }
.form-sub {
  font-size: 14.5px;
  color: var(--ink-mut);
  margin: 0 0 24px;
  line-height: 1.6;
}
.form-fields { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.field .optional {
  color: var(--muted); text-transform: none; letter-spacing: 0;
  font-size: 11px; font-weight: 400;
}
.field input, .field textarea {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 13px 14px;
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(91, 95, 85, 0.55); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(45, 74, 46, 0.12);
}
.field textarea { min-height: 140px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.submit-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 6px;
}
.submit-row .small { font-size: 12px; color: var(--muted); margin: 0; }
.form-error {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 2px;
  background: #FCEDED;
  border: 1px solid #E8B8B8;
  color: #8A2A2A;
  font-size: 13.5px;
  display: none;
}
.form-error.show { display: block; }

.form-success { display: none; text-align: center; padding: 12px 0; }
.form-success.show { display: block; }
.form-success .check {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dk);
  display: inline-grid; place-items: center;
  margin-bottom: 16px;
}
.form-success h3 {
  font-family: var(--ff-display); font-weight: 600;
  font-size: 28px; margin: 0 0 6px; color: var(--ink);
  letter-spacing: -0.005em;
}
.form-success p { color: var(--ink-mut); margin: 0; font-size: 14.5px; line-height: 1.6; }
.contact-form.is-success .form-fields,
.contact-form.is-success .form-title,
.contact-form.is-success .form-sub,
.contact-form.is-success .form-eyebrow,
.contact-form.is-success .form-error { display: none; }

/* ---------- Footer (light, two-row editorial) ---------- */
.site-footer {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--rule);
  padding: clamp(56px, 7vw, 88px) 0 32px;
  font-family: var(--ff-body);
}

/* Top row: brand left, contact info right */
.foot-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
@media (min-width: 720px) {
  .foot-top {
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    gap: 64px;
  }
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}
.foot-logo {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  padding: 7px;
  overflow: hidden;
  flex-shrink: 0;
}
.foot-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 50%;
}
.foot-brand-text {
  display: flex; flex-direction: column; gap: 6px;
}
.foot-brand .brand-wordmark {
  font-family: var(--ff-body);
  font-size: 16px;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--ink);
}
.foot-brand .brand-sub {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* Contact column */
.foot-contact {
  display: flex; flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
@media (min-width: 720px) {
  .foot-contact { align-items: flex-end; text-align: right; }
}
.foot-contact .foot-label {
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.foot-contact a, .foot-contact span {
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease;
}
.foot-contact a:hover { color: var(--green); }
.foot-contact .foot-tel {
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--green);
  line-height: 1.1;
  margin-bottom: 4px;
}

/* Bottom row: copyright left, privacy right, separated by a hairline */
.foot-bottom {
  display: flex; flex-direction: column;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
@media (min-width: 540px) {
  .foot-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}
.foot-meta {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.foot-privacy {
  font-size: 12px;
  color: var(--ink-mut);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.18s ease;
}
.foot-privacy:hover { color: var(--green); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(.22,.61,.36,1), transform 0.7s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ====================================================================
   CASE STUDY PAGES (/work/<slug>/)
   ==================================================================== */

.case-hero {
  background: var(--cream);
  padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 7vw, 88px);
  position: relative;
}
.case-hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.case-hero .back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  text-decoration: none;
  margin-bottom: clamp(36px, 4.5vw, 56px);
  transition: gap 0.2s ease;
}
.case-hero .back-link:hover { gap: 12px; color: var(--green-dk); }
.case-hero .rule-line {
  font-size: 11px;
  display: inline-flex;
  margin-bottom: 22px;
}
.case-hero h1 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(40px, 5.8vw, 64px);
  letter-spacing: -0.012em;
  line-height: 1.05;
  margin: 0 0 24px;
  max-width: 20ch;
  color: var(--ink);
}
.case-hero .lead {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--ink-mut);
  margin: 0;
  max-width: 56ch;
  line-height: 1.6;
}

.case-cover {
  background: var(--cream);
  padding-bottom: 0;
}
.case-cover-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-2);
}
@media (min-width: 720px) {
  .case-cover-frame { aspect-ratio: 16 / 9; }
}

/* ---------- Case-study header photo band (with mobile carousel) ---------- */
.case-photo-band {
  /* Mobile: horizontal scroll-snap carousel */
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding-left: var(--gutter);
  padding: 0 var(--gutter);
  background: var(--cream);
  scrollbar-width: none;
}
.case-photo-band::-webkit-scrollbar { display: none; }
.case-photo-band-tile {
  flex: 0 0 88%;
  margin: 0;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--cream-2);
  scroll-snap-align: center;
  border-radius: 2px;
}
@media (min-width: 760px) {
  .case-photo-band {
    display: grid;
    grid-template-columns: repeat(var(--cols, 3), 1fr);
    gap: 6px;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .case-photo-band-tile {
    flex: none;
    aspect-ratio: 5 / 4;
    scroll-snap-align: none;
    border-radius: 0;
  }
}
@media (min-width: 1100px) {
  .case-photo-band-tile { aspect-ratio: 4 / 3; }
}

.case-body {
  background: var(--paper);
  padding: clamp(56px, 7vw, 96px) 0;
}
.case-body .container { max-width: 720px; }
.case-body p {
  font-size: clamp(17px, 1.65vw, 19px);
  line-height: 1.75;
  margin: 0 0 20px;
  color: var(--ink);
}
.case-body p:last-child { margin-bottom: 0; }
.case-body h2 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(26px, 3vw, 34px);
  margin: 36px 0 14px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.case-body h3 {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(20px, 2.3vw, 24px);
  margin: 28px 0 10px;
  color: var(--ink);
}
.case-body ul, .case-body ol {
  padding-left: 24px;
  margin: 0 0 20px;
}
.case-body li { margin-bottom: 8px; line-height: 1.7; }

/* ---------- Before / after slider ---------- */
.bna { background: var(--cream); }
.bna .section-head { margin-bottom: clamp(24px, 3vw, 36px); }
.bna .section-head p {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-mut);
  margin-top: 8px;
}

.bna-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--cream-2);
  border-radius: 2px;
  user-select: none;
  -webkit-user-select: none;
  --pos: 50%;
  border: 1px solid var(--rule-soft);
  touch-action: none;
  cursor: ew-resize;
}
.bna-frame:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
.bna-after, .bna-before {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
}
.bna-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }

.bna-handle {
  position: absolute; top: 0; bottom: 0;
  left: var(--pos);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
  width: 0;
}
.bna-divider {
  position: absolute; top: 0; bottom: 0;
  left: 50%; width: 2px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.4);
  transform: translateX(-50%);
}
.bna-grip {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--green);
  display: grid; place-items: center;
  color: var(--green);
  box-shadow: 0 6px 18px rgba(20, 36, 27, 0.35);
  pointer-events: none;
}

.bna-tag {
  position: absolute;
  top: 16px;
  padding: 4px 10px;
  background: rgba(20, 36, 27, 0.7);
  color: var(--cream);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 2px;
  pointer-events: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.bna-tag-before { left: 16px; }
.bna-tag-after  { right: 16px; }

/* ---------- Case gallery (additional photos) ---------- */
.case-gallery { background: var(--paper); }
.case-gallery-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .case-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (min-width: 1000px) { .case-gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.case-gallery-item {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-2);
  border: 1px solid var(--rule-soft);
  border-radius: 2px;
}

/* ---------- Case CTA (light) ---------- */
.case-cta {
  background: var(--paper-2);
  color: var(--ink);
  text-align: center;
}
.case-cta h2 {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 56px);
  margin: 0 auto 18px;
  color: var(--ink);
  max-width: 16ch;
  letter-spacing: -0.016em;
}
.case-cta h2 em { font-style: italic; color: var(--green); font-weight: 500; }
.case-cta p {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink-mut);
  margin: 0 auto 32px;
  max-width: 52ch;
  line-height: 1.65;
}
.case-cta-buttons {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 24px;
}
.case-cta-primary {
  padding: 16px 28px;
  min-height: 52px;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.case-cta-primary:hover { transform: translateY(-1px); }
.case-cta-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mut);
  text-decoration: none;
  padding: 14px 4px;
  border-bottom: 1px solid var(--rule);
  transition: color 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}
.case-cta-link:hover {
  color: var(--green);
  border-color: var(--green);
  gap: 12px;
}

/* ---------- Case related work (light background variant) ---------- */
.case-related { background: var(--cream); }
.work-grid-light .work-card { color: var(--ink); }
.work-grid-light .work-card .work-img {
  background-color: var(--cream-2);
  border: 1px solid var(--rule-soft);
}
.work-grid-light .work-card h3 { color: var(--ink); }
.work-grid-light .work-card .tag { color: var(--muted); }

/* ---------- Back-to-top button ---------- */
.back-to-top {
  position: fixed;
  right: 18px; bottom: 18px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  border: none;
  display: grid; place-items: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.18s ease;
  box-shadow: 0 8px 22px -10px rgba(20, 36, 27, 0.5);
  z-index: 40;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.back-to-top:hover { background: var(--green-dk); }
@media (min-width: 760px) {
  .back-to-top { right: 24px; bottom: 24px; width: 48px; height: 48px; }
}

/* ---------- Carousel pagination dots ---------- */
.case-photo-band-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0 4px;
  background: var(--cream);
}
.case-photo-band-dots .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(45, 74, 46, 0.25);
  transition: background 0.18s ease, transform 0.18s ease;
}
.case-photo-band-dots .dot.is-active {
  background: var(--green);
  transform: scale(1.15);
}
@media (min-width: 760px) {
  .case-photo-band-dots { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .work-card:hover .work-img,
  .photo-band-tile:hover { transform: none; }
  .mobile-nav { transition: none; }
  .case-hero .back-link { transition: none; }
  .back-to-top { transition: none; }
  .skip-link { transition: none; }
}
