/* =============================================
   STUCCO ON TREND · STYLESHEET
   Palette: deep forest green + antique gold
   ============================================= */

:root {
  --green-deepest: #0d1f14;
  --green-deep:    #132a1c;
  --green-mid:     #1e4029;
  --green-light:   #2c5c3a;
  --gold:          #c9a84c;   /* on dark green only */
  --gold-light:    #e2c97e;
  --gold-pale:     #f0e0a8;
  --gold-text:     #7d6219;   /* small gold text on cream (AA) */
  --cream:         #f5f0e8;
  --cream-dark:    #e6dcc6;
  --white:         #faf8f4;
  --text-dark:     #1a1a18;
  --text-mid:      #3d3b34;
  --text-light:    #5f574a;   /* AA on cream */

  --font-display:  'Cinzel', serif;
  --font-body:     'Cormorant Garamond', serif;
  --font-ui:       'Jost', sans-serif;

  --nav-h: 76px;
  --bar-h: 34px;
  --section-pad: clamp(5rem, 10vw, 8rem);
  --gutter: clamp(1.5rem, 5vw, 3rem);
  --container: 1280px;
  --focus: var(--gold-light);

  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: var(--nav-h); }
body {
  background: var(--green-deepest);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  font-variant-numeric: lining-nums;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* --- FOCUS --- */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.section-craft, .section-contact { --focus: #5c4810; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--gold); color: var(--green-deepest);
  font-family: var(--font-ui); font-size: 0.875rem; padding: 0.75rem 1rem;
}
.skip-link:focus-visible { top: 1rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* --- DEMO BAR --- */
.demo-bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 101;
  height: var(--bar-h);
  padding-top: var(--safe-top);
  display: flex; align-items: center; justify-content: center; gap: 0.6rem;
  background: #08150d;
  border-bottom: 1px solid rgba(201,168,76,0.18);
  font-family: var(--font-ui); font-size: 0.78rem; letter-spacing: 0.04em;
  color: rgba(245,240,232,0.82);
}
.demo-bar a {
  color: var(--gold-light);
  display: inline-flex; align-items: center; min-height: var(--bar-h);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(226,201,126,0.4);
}
.demo-bar a:hover { color: var(--white); text-decoration-color: currentColor; }

/* --- NAV --- */
#nav {
  position: fixed;
  top: var(--bar-h); left: 0; right: 0;
  z-index: 100;
  height: calc(var(--nav-h) + var(--safe-top));
  padding-top: var(--safe-top);
  transition: background 0.4s var(--ease-smooth), box-shadow 0.4s, top 0.3s var(--ease-smooth);
}
#nav.scrolled {
  top: 0;
  background: rgba(13, 31, 20, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.2);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 44px;
  line-height: 1;
  letter-spacing: 0.08em;
}
.logo-main {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--gold);
  text-transform: uppercase;
}
.logo-sub {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold-pale);
  margin-top: 0.2rem;
}
.nav-links { display: flex; gap: 2.25rem; align-items: center; }
.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cream);
  display: inline-flex; align-items: center; min-height: 44px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold-light); }
.nav-links .nav-cta {
  border: 1px solid var(--gold);
  padding: 0 1.4rem;
  color: var(--gold);
  transition: background 0.25s, color 0.25s;
}
.nav-links .nav-cta:hover { background: var(--gold); color: var(--green-deepest); }
.burger {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.burger span { display: block; width: 22px; height: 1.5px; background: var(--gold); transition: transform 0.3s, opacity 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* MOBILE MENU */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--green-deepest);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
  padding-top: var(--safe-top); padding-bottom: var(--safe-bottom);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu ul { text-align: center; display: flex; flex-direction: column; gap: 1.25rem; }
.mobile-menu a {
  display: inline-flex; align-items: center; min-height: 56px; padding: 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.5rem);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold); }

/* --- HERO --- */
#hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg picture { position: absolute; inset: 0; }
.hero-img {
  object-position: center 55%;
  transform: scale(1.04);
  animation: heroZoom 14s var(--ease-smooth) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,31,20,0.88) 0%, rgba(13,31,20,0.66) 45%, rgba(13,31,20,0.25) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--nav-h) + var(--bar-h)) var(--gutter) 0;
}
.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.75rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  max-width: 12ch;
}
.hero-title em {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 0.66em;
  text-transform: none;
  color: var(--gold-pale);
  letter-spacing: 0;
  display: block;
  margin-bottom: 0.1em;
}
.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  color: var(--cream);
  max-width: 34rem;
  margin-bottom: 2.5rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* --- BUTTONS --- */
.btn-gold, .btn-ghost {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.9rem 2.25rem;
  border: 1px solid var(--gold);
  cursor: pointer;
  transition: transform 0.2s, color 0.25s, background 0.25s;
}
.btn-gold { color: var(--green-deepest); background: var(--gold); }
.btn-gold::after {
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--gold-light);
  transform: translateX(-101%);
  transition: transform 0.35s var(--ease-smooth);
}
.btn-gold > span, .btn-ghost > span { position: relative; z-index: 1; }
.btn-gold:hover::after, .btn-gold:focus-visible::after { transform: translateX(0); }
.btn-gold:hover, .btn-ghost:hover { transform: translateY(-1px); }
.btn-ghost { color: var(--gold-light); background: transparent; }
.btn-ghost:hover { background: rgba(201,168,76,0.14); color: var(--white); }
.btn-gold.full { width: 100%; }

/* --- LABEL --- */
.label-gold {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.section-craft .label-gold, .section-contact .label-gold { color: var(--gold-text); }

/* --- SECTION: CRAFT --- */
.section-craft {
  background: var(--cream);
  color: var(--text-dark);
  padding: var(--section-pad) var(--gutter);
}
.container-split {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}
.split-text h2, .contact-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green-deep);
  line-height: 1.1;
  margin-bottom: 1.6rem;
}
.split-text h2 em, .contact-text h2 em {
  display: block;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--green-light);
}
.body-copy {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 1.2rem;
  max-width: 36rem;
}
.finish-list {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--cream-dark);
  display: grid; gap: 1.1rem;
}
.finish-list dt {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-text);
}
.finish-list dd { font-size: 1.1rem; color: var(--text-mid); line-height: 1.5; }
.split-image { position: relative; }
.img-frame { position: relative; aspect-ratio: 3/4; }
.img-frame img { position: relative; z-index: 1; }
.img-accent {
  position: absolute;
  bottom: -1.25rem; right: -1.25rem;
  width: 55%; height: 55%;
  border: 2px solid var(--gold);
  pointer-events: none;
}

/* --- SECTION: GALLERY --- */
.section-gallery {
  background: var(--green-deepest);
  padding: var(--section-pad) var(--gutter);
}
.gallery-header { max-width: var(--container); margin: 0 auto 3rem; }
.gallery-header h2, .process-header h2, .quote-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  line-height: 1.15;
}
.gallery-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.gallery-item { position: relative; cursor: zoom-in; }
.gallery-media { position: relative; overflow: hidden; aspect-ratio: 4/5; background: var(--green-deep); }
.gallery-media img { transition: transform 0.7s var(--ease-smooth); }
.gallery-item:hover .gallery-media img { transform: scale(1.04); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem 1.25rem 1.1rem;
  background: linear-gradient(to top, rgba(13,31,20,0.92) 30%, transparent);
  pointer-events: none;
}
.gallery-caption span {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold-light);
  margin-bottom: 0.2rem;
}
.gallery-caption p { font-family: var(--font-body); font-size: 1.1rem; color: var(--cream); }
.gallery-note {
  max-width: var(--container);
  margin: 1.5rem auto 0;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(245,240,232,0.72);
}

/* --- SECTION: PROCESS --- */
.section-process {
  background: var(--green-deep);
  padding: var(--section-pad) var(--gutter);
  position: relative;
  overflow: hidden;
}
.section-process::before {
  content: '';
  position: absolute; top: -20%; right: -10%;
  width: 50vw; height: 100%;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.process-inner { position: relative; max-width: var(--container); margin: 0 auto; }
.process-header { margin-bottom: 3rem; }
.process-steps { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 5vw, 5rem); }
.process-step {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  padding: 2.25rem 0;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  align-items: start;
}
.step-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  padding-top: 0.2rem;
}
.step-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.step-body p { font-size: 1.15rem; color: rgba(245,240,232,0.86); line-height: 1.6; }

/* --- TESTIMONIALS --- */
.section-quote {
  background: var(--green-deepest);
  padding: var(--section-pad) var(--gutter);
  border-top: 1px solid rgba(201,168,76,0.12);
}
.quote-inner { max-width: var(--container); margin: 0 auto; }
.quote-header { margin-bottom: 3rem; }
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quote-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  padding: 2rem 1.75rem;
  border: 1px solid rgba(201,168,76,0.3);
  background: rgba(19,42,28,0.6);
}
.quote-card blockquote {
  font-family: var(--font-body);
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--cream);
}
.quote-card blockquote::before {
  content: '\201C';
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem; line-height: 1;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.quote-card figcaption {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gold-light);
}
.quote-card figcaption span {
  display: block;
  font-weight: 400;
  color: rgba(245,240,232,0.72);
  margin-top: 0.15rem;
}
.quote-note { margin-top: 1.5rem; font-family: var(--font-ui); font-size: 0.8rem; color: rgba(245,240,232,0.72); }

/* --- SECTION: CONTACT --- */
.section-contact {
  background: var(--cream);
  color: var(--text-dark);
  padding: var(--section-pad) var(--gutter);
}
.contact-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: start;
}
.contact-details { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.75rem; }
.contact-item { display: flex; flex-direction: column; }
.contact-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-light);
}
.contact-item a, .contact-item > span:not(.contact-label) {
  font-size: 1.2rem;
  color: var(--text-dark);
  display: inline-flex; align-items: center; min-height: 44px;
  align-self: flex-start;
}
.contact-item a { text-decoration: underline; text-decoration-color: rgba(125,98,25,0.4); text-underline-offset: 4px; }
.contact-item a:hover { color: var(--green-mid); text-decoration-color: currentColor; }
.contact-demo { margin-top: 1.25rem; font-family: var(--font-ui); font-size: 0.8rem; color: var(--text-light); }

/* FORM */
.contact-form { padding-top: 0.5rem; }
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  min-height: 48px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #a99c82;
  padding: 0.7rem 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--text-dark);
  transition: border-color 0.25s;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #6f6656; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold-text); }
.form-group input:focus-visible, .form-group select:focus-visible, .form-group textarea:focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235f574a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.25rem center;
}
.form-group textarea { resize: vertical; }
.form-note {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--green-mid);
  margin-top: 1rem;
  min-height: 1.4rem;
  text-align: center;
}
.form-note.demo { padding: 0.75rem 1rem; background: #ece3cf; border-left: 3px solid var(--gold-text); text-align: left; }
.field-error {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: #9b2c2c;
  margin-top: 0.35rem;
  min-height: 1em;
}

/* --- TRUST ROW --- */
.section-trust {
  background: var(--green-deep);
  padding: 1.75rem var(--gutter);
  border-top: 1px solid rgba(201,168,76,0.15);
}
.trust-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 0.75rem 2.5rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold-pale);
}
.trust-inner li { display: flex; align-items: center; gap: 0.6rem; }
.trust-inner li + li::before { content: ''; width: 4px; height: 4px; background: var(--gold); transform: rotate(45deg); margin-left: -1.6rem; margin-right: 1rem; }

/* --- LIGHTBOX --- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(13, 31, 20, 0.95);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease-smooth), visibility 0.3s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-bg { position: absolute; inset: 0; }
.lightbox img {
  position: relative; z-index: 1;
  max-width: 90vw; max-height: 80vh;
  width: auto; height: auto;
  object-fit: contain;
  box-shadow: 0 0 60px rgba(0,0,0,0.4);
}
.lightbox-caption {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-body); font-style: italic; font-size: 1.15rem;
  color: var(--cream); text-align: center; width: 90vw;
}
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem; z-index: 3;
  background: none; border: 1px solid var(--gold); color: var(--gold);
  width: 48px; height: 48px; font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, color 0.25s;
}
.lightbox-close:hover { background: var(--gold); color: var(--green-deepest); }

/* --- FOOTER --- */
.footer {
  background: var(--green-deepest);
  padding: 4rem var(--gutter) calc(2rem + var(--safe-bottom));
  text-align: center;
}
.footer-inner { max-width: 560px; margin: 0 auto; }
.footer-logo { display: flex; flex-direction: column; align-items: center; line-height: 1; margin-bottom: 1.5rem; }
.footer-logo .logo-main { font-size: 1.5rem; }
.footer-copy { font-size: 1.05rem; color: rgba(245,240,232,0.78); line-height: 1.6; margin-bottom: 2rem; }
.footer-legal {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(245,240,232,0.7);
  margin-top: 2.5rem;
}
.footer-demo { font-family: var(--font-ui); font-size: 0.8rem; color: rgba(245,240,232,0.75); margin-top: 0.75rem; }
.footer-demo a {
  color: var(--gold-light);
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(226,201,126,0.4);
}
.footer-demo a:hover { color: var(--white); }
.footer-line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.25;
  margin-top: 2rem;
}

/* --- CHAT --- */
.chat-pill {
  position: fixed; right: 1.25rem; bottom: calc(1.25rem + var(--safe-bottom)); z-index: 150;
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 48px; padding: 0 1.25rem;
  background: var(--green-mid); color: var(--gold-light);
  border: 1px solid var(--gold);
  font-family: var(--font-ui); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.chat-pill:hover { background: var(--green-light); color: var(--white); transform: translateY(-2px); }
.chat-pill[aria-expanded="true"] { display: none; }
.chat-panel {
  position: fixed; right: 1.25rem; bottom: calc(1.25rem + var(--safe-bottom)); z-index: 160;
  width: min(380px, calc(100vw - 2rem));
  height: min(540px, calc(100svh - 7rem));
  display: flex; flex-direction: column;
  background: var(--green-deepest);
  border: 1px solid var(--gold);
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  color: var(--cream);
}
.chat-panel[hidden] { display: none; }
.chat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.75rem 0.75rem 0.75rem 1.1rem;
  background: var(--green-mid);
  border-bottom: 1px solid rgba(201,168,76,0.4);
}
.chat-head strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-light); }
.chat-status { display: block; font-family: var(--font-ui); font-size: 0.75rem; color: rgba(245,240,232,0.8); }
.chat-close {
  width: 44px; height: 44px; flex: none;
  background: none; border: 1px solid rgba(201,168,76,0.5); color: var(--gold-light);
  font-size: 1.4rem; cursor: pointer;
}
.chat-close:hover { background: var(--gold); color: var(--green-deepest); }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.75rem; overscroll-behavior: contain; }
.msg {
  max-width: 88%;
  padding: 0.7rem 0.9rem;
  font-family: var(--font-ui); font-size: 0.9rem; line-height: 1.5;
  white-space: pre-wrap;
}
.msg.bot { align-self: flex-start; background: var(--green-deep); border: 1px solid rgba(201,168,76,0.25); color: var(--cream); }
.msg.user { align-self: flex-end; background: var(--gold); color: var(--green-deepest); }
.msg.typing { display: inline-flex; gap: 4px; }
.msg.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: blink 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: 0.2s; }
.msg.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.chat-suggest { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.chat-suggest button {
  min-height: 44px; padding: 0.5rem 0.9rem; text-align: left;
  background: transparent; border: 1px solid rgba(201,168,76,0.55); color: var(--gold-light);
  font-family: var(--font-ui); font-size: 0.85rem; cursor: pointer;
}
.chat-suggest button:hover { background: rgba(201,168,76,0.14); color: var(--white); }
.chat-input { display: flex; border-top: 1px solid rgba(201,168,76,0.35); }
.chat-input input {
  flex: 1; min-width: 0; min-height: 48px; padding: 0 1rem;
  background: var(--green-deep); color: var(--cream); border: none;
  font-family: var(--font-ui); font-size: 16px;
}
.chat-input input::placeholder { color: rgba(245,240,232,0.6); }
.chat-input input:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -2px; }
.chat-input button {
  width: 52px; flex: none; border: none; cursor: pointer;
  background: var(--gold); color: var(--green-deepest);
  display: flex; align-items: center; justify-content: center;
}
.chat-input button:hover { background: var(--gold-light); }
.chat-input button:disabled { opacity: 0.6; cursor: wait; }
.chat-foot { padding: 0.45rem 1rem 0.6rem; font-family: var(--font-ui); font-size: 0.75rem; color: rgba(245,240,232,0.7); background: var(--green-deep); }

/* --- REVEAL ANIMATIONS --- */
.js .reveal, .js .reveal-left, .js .reveal-right {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}
.js .reveal-left { transform: translateX(-24px); }
.js .reveal-right { transform: translateX(24px); }
.js .reveal.visible, .js .reveal-left.visible, .js .reveal-right.visible { opacity: 1; transform: none; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .container-split, .contact-inner { grid-template-columns: 1fr; }
  .split-image { order: -1; }
  .img-frame { aspect-ratio: 4/3; }
  .img-accent { display: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; max-width: 640px; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .form-group input, .form-group select, .form-group textarea { font-size: 16px; }
  .lightbox-close { top: calc(1rem + var(--safe-top)); right: 1rem; }
}
@media (max-width: 580px) {
  :root { --bar-h: 44px; }
  .hero-eyebrow { font-size: 0.75rem; letter-spacing: 0.14em; }
  .demo-bar { font-size: 0.75rem; gap: 0.4rem; padding: 0 0.75rem; }
  .demo-bar > span { display: none; }
  .demo-bar a::before { content: 'Demo site by UptoData · '; color: rgba(245,240,232,0.82); text-decoration: none; display: inline-block; white-space: pre; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0.75rem; }
  .gallery-caption { position: static; background: none; padding: 0.6rem 0 0; }
  .gallery-caption span { font-size: 0.75rem; letter-spacing: 0.1em; }
  .gallery-caption p { font-size: 1rem; line-height: 1.35; }
  .process-step { grid-template-columns: 3.25rem 1fr; gap: 1rem; padding: 1.75rem 0; }
  .step-number { font-size: 1.8rem; }
  .hero-title { font-size: clamp(2.4rem, 11vw, 3.25rem); }
  .hero-actions .btn-gold, .hero-actions .btn-ghost { flex: 1 1 100%; }
  .trust-inner { flex-direction: column; align-items: center; gap: 0.6rem; }
  .trust-inner li + li::before { display: none; }
  .chat-pill { right: 1rem; bottom: calc(1rem + var(--safe-bottom)); }
  .chat-panel { right: 0.5rem; left: 0.5rem; bottom: calc(0.5rem + var(--safe-bottom)); width: auto; height: min(560px, calc(100svh - 5rem)); }
}

/* Captions always visible on touch */
@media (hover: none) {
  .gallery-item:hover .gallery-media img { transform: none; }
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-img { transform: none; animation: none; }
  .js .reveal, .js .reveal-left, .js .reveal-right { opacity: 1; transform: none; }
  .gallery-item:hover .gallery-media img, .btn-gold:hover, .btn-ghost:hover, .chat-pill:hover { transform: none; }
}
