/* ==========================================================================
   Measurements — Equatorial Sun II: the sun is a presence, not a decoration.
   Warm charcoal, blazing gold disc, kente-ribbon dividers, location ticker.
   Clash Display + Sentient + JetBrains Mono.
   ========================================================================== */

:root {
  --char: #17130e;
  --char-2: #201a13;
  --char-3: #2a2219;
  --line: #3a3023;
  --paper: #f4ede0;
  --paper-2: #ece3d2;
  --gold: #e9a13b;
  --gold-bright: #f7bd4e;
  --gold-deep: #b57f2e;
  --green: #3f7a52;
  --green-deep: #2c5a3c;
  --ink: #221d16;
  --ink-soft: #5d5648;
  --cream-text: #f2ead9;
  --cream-soft: #c9bfa9;
  --sans: "Clash Display", "Avenir Next", sans-serif;
  --serif: "Sentient", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

/* Modern text layout: balanced headings, orphan-free paragraphs */
h1, h2, h3, h4 { text-wrap: balance; }
p, blockquote, li { text-wrap: pretty; }
:root { accent-color: var(--gold); }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.075rem;
  line-height: 1.7;
  color: var(--cream-text);
  background: var(--char);
  -webkit-font-smoothing: antialiased;
}

/* grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.55em;
}

p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--gold); color: var(--char); }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }

/* ---------- cross-document view transitions ---------- */
/* Both pages opt in, so home and portfolio morph their shared element (the sun,
   named in .sun below) instead of hard-cutting. Applies to same-origin
   navigations the visitor starts; browsers without support load the next page
   as usual. */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* The transition is drawn by pseudo-elements the rule above cannot reach. */
  @view-transition { navigation: none; }
}

/* ---------- utilities ---------- */
.container { width: min(76rem, 92vw); margin-inline: auto; }

.label {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}
.label-dark { color: var(--gold-deep); }

/* kente-ribbon: woven gold/green/charcoal band along the bottom edge of the
   sticky header. The weave is a pseudo-element far wider than the viewport so
   it can slide with scroll (scroll-driven block at the end of this file). */
.ribbon {
  position: relative;
  height: 8px;
  overflow: hidden;
  overflow: clip;
}
.ribbon::before {
  content: "";
  position: absolute;
  inset: 0 -70rem;
  background: repeating-linear-gradient(
    90deg,
    var(--gold) 0 22px,
    var(--char) 22px 26px,
    var(--green) 26px 44px,
    var(--char) 44px 48px,
    var(--gold-deep) 48px 64px,
    var(--char) 64px 70px
  );
}

.skip-link {
  position: absolute; top: -48px; left: 8px; z-index: 100;
  background: var(--gold); color: var(--char);
  font-family: var(--mono); font-size: 0.75rem; padding: 0.65rem 1rem;
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-gold {
  background: linear-gradient(120deg, var(--gold), var(--gold-bright));
  color: var(--char);
  box-shadow: 0 10px 30px -12px rgba(233, 161, 59, 0.55);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(247, 189, 78, 0.6); }
.btn-line { border-color: rgba(244, 237, 224, 0.35); color: var(--cream-text); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 19, 14, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
  padding: 0.9rem 0;
}
.brand { display: inline-flex; align-items: baseline; gap: 0.6rem; text-decoration: none; margin-right: auto; }
.brand-name { font-family: var(--sans); font-weight: 700; font-size: 1.35rem; color: var(--cream-text); }
.brand-mark { color: var(--gold); font-size: 1.35rem; line-height: 0; }
.site-nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--sans); font-weight: 500; font-size: 0.95rem;
  text-decoration: none; color: var(--cream-soft);
}
.site-nav a:hover { color: var(--gold-bright); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }

/* ---------- hero: the sun rises here ---------- */
/* Sections that clip decorative overflow use `overflow: clip`, not `hidden`:
   hidden makes the section a scroll container, and a scroll-driven reveal
   inside it (see the reveal block at the end of this file) then measures
   itself against that container instead of the page and never plays. `hidden`
   stays first only for browsers without clip. */
.hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding: 7.5rem 0 7rem;
  background:
    radial-gradient(60rem 34rem at 50% 8%, rgba(247, 189, 78, 0.22), transparent 60%),
    radial-gradient(40rem 26rem at 4% 96%, rgba(63, 122, 82, 0.14), transparent 58%),
    linear-gradient(180deg, #1d1509 0%, var(--char) 78%);
}
/* the sun: a huge glowing disc rising dead-centre behind the headline */
.sun {
  position: absolute;
  top: -21rem; left: 50%; margin-left: -21rem;
  width: 42rem; height: 42rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 42%, #ffe9b0 0%, var(--gold-bright) 26%, var(--gold) 46%, rgba(233, 161, 59, 0.25) 68%, transparent 74%);
  filter: blur(2px);
  opacity: 0.9;
  pointer-events: none;
  animation: sunrise 26s ease-in-out infinite alternate;
  /* One per page, so the name is unique and the disc can morph across pages. */
  view-transition-name: sun;
}
.sun::after {
  content: "";
  position: absolute; inset: -22%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 189, 78, 0.22), transparent 62%);
}
@keyframes sunrise {
  from { transform: translateY(2.4rem); }
  to { transform: translateY(-1.2rem); }
}
/* horizon glow */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 5rem;
  background: linear-gradient(180deg, transparent, rgba(247, 189, 78, 0.10));
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  position: relative; z-index: 1;
  /* soft charcoal scrim so type reads over the sun's bright core */
  background: radial-gradient(46rem 30rem at 50% 44%, rgba(23, 19, 14, 0.62), transparent 70%);
}
.hero .label { color: var(--cream-text); text-shadow: 0 2px 20px rgba(23, 19, 14, 0.85), 0 0 6px rgba(23, 19, 14, 0.6); }
.hero h1 {
  font-size: clamp(3.1rem, 6.6vw, 5.4rem);
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.022em;
  margin: 0 auto 1.9rem;
  max-width: 16ch;
  text-shadow: 0 4px 60px rgba(23, 19, 14, 0.8), 0 2px 22px rgba(23, 19, 14, 0.65);
}
.hero h1 .sun-word {
  font-style: italic;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--gold-bright);
  text-shadow: 0 0 44px rgba(247, 189, 78, 0.55);
}
.hero .lede {
  font-size: clamp(1.12rem, 1.6vw, 1.28rem);
  line-height: 1.6;
  color: var(--cream-soft);
  max-width: 42ch;
  margin: 0 auto 2.4rem;
  text-shadow: 0 1px 16px rgba(23, 19, 14, 0.8);
}
.hero-actions { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; justify-content: center; }

/* ---------- location ticker ---------- */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--char-2);
  overflow: hidden;
  padding: 0.95rem 0;
}
.ticker-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: ticker 42s linear infinite;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cream-soft);
  white-space: nowrap;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span::after {
  content: "\2605";
  color: var(--gold);
  margin-left: 3.5rem;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- stats ---------- */
.stats {
  border-bottom: 1px solid var(--line);
  padding: 3.4rem 0 3rem;
  background: var(--char);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stat-value {
  font-family: var(--sans);
  font-size: clamp(2.4rem, 4.6vw, 3.8rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(140deg, var(--gold-bright), var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-soft);
  margin-top: 0.55rem;
}

/* ---------- services ---------- */
.services { padding: 6rem 0 5.5rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.services-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 2rem;
  align-items: baseline;
  padding: 1.9rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease, padding-left 0.25s ease;
}
.service-row:hover { background: rgba(42, 34, 25, 0.5); padding-left: 0.9rem; }
.service-idx { font-family: var(--mono); font-size: 0.85rem; color: var(--gold); }
.service-name { font-family: var(--sans); font-weight: 600; font-size: 1.45rem; line-height: 1.25; }
.service-desc { color: var(--cream-soft); font-size: 0.99rem; margin: 0; }
.service-spec {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  color: var(--gold); border: 1px solid rgba(233, 161, 59, 0.35);
  padding: 0.35rem 0.8rem; border-radius: 999px; white-space: nowrap;
}

/* ---------- projects (cream band with sun-washed photos) ---------- */
.projects {
  background:
    radial-gradient(50rem 26rem at 88% 4%, rgba(233, 161, 59, 0.16), transparent 58%),
    var(--paper);
  color: var(--ink);
  padding: 6rem 0 6.5rem;
  position: relative;
  overflow: hidden;
  overflow: clip; /* see .hero */
}
.projects h2, .projects h3 { color: var(--ink); }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 1.6rem;
  margin-top: 2.5rem;
}
.project-card {
  position: relative;
  background: var(--paper-2);
  border: 1px solid #ddd2bc;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 46px -26px rgba(34, 29, 22, 0.45);
}
.project-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(1.02) sepia(0.1) contrast(1.02);
}
.project-ghost {
  position: absolute;
  top: 0.6rem; right: 0.9rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(244, 237, 224, 0.92);
  text-shadow: 0 2px 18px rgba(23, 19, 14, 0.5);
  pointer-events: none;
}
.project-body { padding: 1.35rem 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.project-cap {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-deep);
}
.project-title { font-size: 1.18rem; font-weight: 600; margin: 0; line-height: 1.25; }
.project-loc { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.06em; }
.project-desc { font-size: 0.95rem; color: var(--ink-soft); margin: 0.4rem 0 0; }

/* ---------- about ---------- */
.about {
  background:
    radial-gradient(44rem 26rem at 10% 10%, rgba(63, 122, 82, 0.16), transparent 60%),
    var(--char);
  padding: 6.5rem 0;
  position: relative; overflow: hidden; overflow: clip; /* see .hero */
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 4.5rem;
  align-items: center;
  position: relative; z-index: 1;
}
.about-photo img {
  border-radius: 16px 16px 200px 16px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  border: 1px solid rgba(233, 161, 59, 0.28);
  filter: saturate(1.05) sepia(0.07);
}
.about-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.about-copy p { font-size: 1.14rem; color: var(--cream-soft); max-width: 52ch; }

/* ---------- testimonials ---------- */
.testimonials { padding: 5.5rem 0 6rem; border-top: 1px solid var(--line); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr));
  gap: 1.6rem;
  margin-top: 2.5rem;
}
.testi-card {
  background: var(--char-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  padding: 1.9rem 1.8rem;
  display: flex; flex-direction: column; gap: 1.2rem;
  transition: border-left-color 0.25s ease, transform 0.25s ease;
}
.testi-card:hover { transform: translateY(-3px); }
.testi-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--cream-text);
  margin: 0;
  flex: 1;
}
.testi-quote::before { content: "\201C"; color: var(--gold); font-size: 1.6rem; line-height: 0; margin-right: 0.1em; }
.testi-who { font-family: var(--sans); font-weight: 600; font-size: 0.98rem; margin: 0; }
.testi-role { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--cream-soft); text-transform: uppercase; margin: 0.15rem 0 0; }
.testi-cap { color: var(--gold); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; }

/* ---------- FAQ ---------- */
.faq { padding: 5.5rem 0 6.5rem; background: var(--char-2); border-block: 1px solid var(--line); }
.faq-list { margin-top: 1.5rem; border-top: 1px solid var(--line); max-width: 52rem; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem;
  cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 1.14rem; color: var(--cream-text);
  text-align: left; padding: 1.3rem 0.25rem;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q .faq-sign { font-family: var(--mono); color: var(--gold); font-size: 1.2rem; transition: transform 0.25s ease; }
.faq-item[open] > .faq-q .faq-sign { transform: rotate(45deg); }
.faq-a { padding: 0 0.25rem 1.5rem; color: var(--cream-soft); max-width: 62ch; }
/* Smooth open/close in browsers that support intrinsic-size interpolation */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-item::details-content {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease, content-visibility 0.3s allow-discrete;
  }
  .faq-item[open]::details-content { height: auto; }
}

/* ---------- CTA + contact ---------- */
.cta {
  position: relative; overflow: hidden; overflow: clip; /* see .hero */
  padding: 7rem 0 7.5rem;
  background:
    radial-gradient(50rem 30rem at 50% 118%, rgba(247, 189, 78, 0.3), transparent 60%),
    linear-gradient(180deg, var(--char) 40%, #241a0b);
  text-align: center;
}
.cta h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 20ch;
  margin-inline: auto;
  text-shadow: 0 4px 60px rgba(23, 19, 14, 0.5);
}
.cta p { color: var(--cream-soft); font-size: 1.16rem; max-width: 44ch; margin: 0 auto 2rem; }
.cta-actions { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; margin-top: 0.5rem; }
.cta-phone {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--gold-bright);
  text-decoration: none;
  margin: 3rem auto 0.5rem;
  transition: color 0.25s ease;
}
.cta-phone:hover { color: var(--cream-text); }
.contact-rows {
  margin: 3.5rem auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1.5rem;
  text-align: left;
  max-width: 56rem;
}
.contact-rows > div { border-top: 1px solid var(--line); padding-top: 1rem; }
.contact-rows dt {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 0.4rem;
}
.contact-rows dd { margin: 0; font-size: 1.04rem; }
.contact-rows a { text-decoration-color: var(--gold); text-underline-offset: 4px; }
.contact-rows a:hover { color: var(--gold-bright); }

/* ---------- footer ---------- */
.site-footer { background: #120e0a; padding: 2.6rem 0 2.2rem; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.footer-name { font-family: var(--sans); font-weight: 600; letter-spacing: 0.04em; margin: 0; color: var(--cream-text); }
.footer-legal p { margin: 0; font-family: var(--mono); font-size: 0.72rem; color: var(--cream-soft); }

/* ---------- packages ---------- */
.packages {
  padding: 5.5rem 0 5.5rem;
  background:
    radial-gradient(50rem 26rem at 14% 0%, rgba(233, 161, 59, 0.12), transparent 58%),
    var(--char-2);
  border-top: 1px solid var(--line);
}
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.6rem;
  margin-top: 2.5rem;
  align-items: stretch;
}
.package-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--char-3);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 2rem 1.8rem 1.9rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.package-card:hover { transform: translateY(-4px); border-color: rgba(233, 161, 59, 0.5); }
.package-card.popular {
  border-color: var(--gold);
  box-shadow: 0 24px 60px -30px rgba(233, 161, 59, 0.45);
}
.package-flag {
  position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%);
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase;
  background: linear-gradient(120deg, var(--gold), var(--gold-bright));
  color: var(--char); padding: 0.32rem 0.85rem; border-radius: 999px;
  white-space: nowrap;
}
.package-name { font-family: var(--sans); font-weight: 700; font-size: 1.5rem; margin: 0; color: var(--cream-text); }
.package-cap { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-soft); margin: 0.35rem 0 1rem; }
.package-price {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(1.7rem, 2.6vw, 2.1rem);
  background: linear-gradient(140deg, var(--gold-bright), var(--gold) 60%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 0 0 0.6rem;
}
.package-tagline { color: var(--cream-soft); font-size: 0.98rem; margin: 0 0 1.2rem; }
.package-list { margin: 0 0 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.package-list li {
  position: relative; padding-left: 1.4rem;
  font-size: 0.94rem; color: var(--cream-text);
}
.package-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold); }
.package-powers { font-size: 0.88rem; color: var(--cream-soft); margin: 0 0 0.9rem; }
.package-note { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; color: var(--cream-soft); border-top: 1px solid var(--line); padding-top: 0.9rem; margin: 0 0 1.3rem; }
.package-btn { align-self: stretch; text-align: center; }
.packages-fine {
  margin: 1.8rem 0 0; text-align: center;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; color: var(--cream-soft);
}

/* ---------- quote form ---------- */
.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 4rem;
  align-items: start;
  position: relative; z-index: 1;
}
.quote-copy { text-align: left; }
.quote-copy .cta-phone { margin: 1.6rem 0 0; }
.quote-copy .contact-rows { margin-top: 2.6rem; max-width: none; }
.quote-form {
  background: var(--char-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.2rem 2.1rem 2rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.quote-form-title { font-family: var(--sans); font-weight: 700; font-size: 1.45rem; margin: 0; color: var(--cream-text); }
.quote-form-sub { font-size: 0.94rem; color: var(--cream-soft); margin: 0 0 0.4rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
}
.field select,
.field input,
.field textarea {
  font-family: var(--serif); font-size: 1rem;
  color: var(--cream-text); background: var(--char);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0.72rem 0.9rem; width: 100%;
}
.field select:focus, .field input:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233, 161, 59, 0.18);
}
.field textarea { resize: vertical; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.estimate {
  display: block;
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.65; letter-spacing: 0.02em;
  color: var(--cream-soft);
  background: rgba(233, 161, 59, 0.07);
  border: 1px dashed rgba(233, 161, 59, 0.4);
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.estimate.has-estimate { color: var(--gold-bright); border-style: solid; }
.quote-submit { width: 100%; }
.quote-status { font-family: var(--mono); font-size: 0.75rem; margin: 0; min-height: 1em; color: var(--cream-soft); }
.quote-status.error { color: #e88b6a; }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.quote-done-mark { font-size: 2.4rem; color: var(--gold-bright); margin: 0.4rem 0 0; }
.quote-done-title { font-family: var(--sans); font-weight: 700; font-size: 1.5rem; margin: 0 0 0.6rem; color: var(--cream-text); }
.quote-done-text { color: var(--cream-soft); margin: 0 0 1.4rem; }

@media (max-width: 980px) {
  .quote-grid { grid-template-columns: 1fr; gap: 3rem; }
  .quote-copy { text-align: center; }
  .quote-copy .contact-rows { text-align: left; }
}
@media (max-width: 640px) {
  .field-pair { grid-template-columns: 1fr; gap: 1.1rem; }
  .quote-form { padding: 1.7rem 1.4rem 1.6rem; }
}

/* ---------- portfolio ---------- */
.section-more { margin: 0.4rem 0 0; }
.more-link {
  display: inline-block;
  font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-deep); text-decoration: none; border-bottom: 1px solid rgba(181, 127, 46, 0.45);
  padding: 0.35rem 0 0.3rem;
}
.more-link:hover { color: var(--ink); border-color: var(--ink); }

.sun-sm { width: 24rem; height: 24rem; top: -13rem; margin-left: -12rem; opacity: 0.65; }

.pf-hero {
  position: relative; overflow: hidden; overflow: clip; /* see .hero */
  padding: 7.5rem 0 6.5rem;
  text-align: center;
  background:
    radial-gradient(48rem 26rem at 50% 10%, rgba(247, 189, 78, 0.2), transparent 60%),
    linear-gradient(180deg, #1d1509 0%, var(--char) 80%);
}
.pf-hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -0.02em;
  margin: 0 auto 1.4rem; max-width: 18ch;
  text-shadow: 0 4px 60px rgba(23, 19, 14, 0.8), 0 2px 22px rgba(23, 19, 14, 0.65);
}
.pf-lede {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6;
  color: var(--cream-soft); max-width: 46ch; margin: 0 auto;
  text-shadow: 0 1px 16px rgba(23, 19, 14, 0.8);
}

.work { padding: 5.5rem 0 5rem; border-top: 1px solid #ddd2bc; color: var(--ink); }
.work:nth-of-type(even) { background: var(--paper-2); }
.work h2 { color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.3rem); }
.work-head {
  display: flex; align-items: flex-end; gap: 2rem;
  margin-bottom: 2.4rem; position: relative;
}
.work-ghost {
  font-family: var(--sans); font-weight: 700; font-size: clamp(4rem, 9vw, 7.5rem);
  line-height: 0.8; color: transparent;
  -webkit-text-stroke: 1.5px rgba(181, 127, 46, 0.72);
  user-select: none;
}
.work-sub { display: flex; gap: 1.1rem; flex-wrap: wrap; margin: 0.5rem 0 0; align-items: baseline; }
.work-cap {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-deep);
}
.work-loc { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--ink-soft); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 1.4rem;
  align-items: start;
}
.shot { margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.shot-btn {
  padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: 12px; overflow: hidden; display: block;
  border: 1px solid #ddd2bc;
}
.shot-btn img {
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%;
  filter: saturate(1.02) sepia(0.08) contrast(1.02);
  transition: transform 0.35s ease, filter 0.35s ease;
}
.shot-btn:hover img,
.shot-btn:focus-visible img { transform: scale(1.04); filter: saturate(1.1) sepia(0.05); }
.shot-video video {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  background: #0d0a07; border: 1px solid #ddd2bc; border-radius: 12px;
}
.shot-cap {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.pf-cta {
  position: relative; overflow: hidden; overflow: clip; /* see .hero */
  padding: 6.5rem 0 7rem; text-align: center;
  background:
    radial-gradient(50rem 30rem at 50% 118%, rgba(247, 189, 78, 0.3), transparent 60%),
    linear-gradient(180deg, var(--char) 40%, #241a0b);
}
.pf-cta h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 20ch; margin-inline: auto;
  text-shadow: 0 4px 60px rgba(23, 19, 14, 0.5);
}
.pf-cta p { color: var(--cream-soft); font-size: 1.14rem; max-width: 42ch; margin: 0 auto 2rem; }
.pf-cta .cta-actions { display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: center; }

/* lightbox: native <dialog> in the top layer */
dialog.lightbox {
  border: 0; padding: 4vh 4vw; background: transparent;
  max-width: min(92vw, 76rem); max-height: 92vh;
  overflow: visible;
}
dialog.lightbox:not([open]) { display: none; }
dialog.lightbox:modal {
  overscroll-behavior: contain; /* mandatory: scroll gestures must not chain to the page */
}
dialog.lightbox::backdrop {
  background: rgba(13, 10, 7, 0.92);
  backdrop-filter: blur(4px);
  overflow: hidden; overscroll-behavior: contain; /* mandatory */
}
.lightbox-figure {
  position: relative; max-width: min(90vw, 72rem); max-height: 86vh;
  margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
}
.lightbox-figure img {
  max-width: 100%; max-height: 78vh; width: auto; height: auto;
  border-radius: 10px; box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.8);
}
.lightbox-figure figcaption {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em;
  color: var(--cream-soft); text-align: center;
}
.lightbox-close {
  position: fixed; top: 1.2rem; right: 1.4rem;
  background: rgba(244, 237, 224, 0.08); color: var(--cream-text);
  border: 1px solid rgba(244, 237, 224, 0.3); border-radius: 999px;
  font-size: 1rem; line-height: 1; padding: 0.7rem 0.9rem; cursor: pointer;
}
.lightbox-close:hover { background: var(--gold); color: var(--char); border-color: var(--gold); }

@media (max-width: 640px) {
  .work-head { gap: 1.2rem; }
  .work-grid { grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 1rem; }
}

/* ---------- reveal ---------- */
@keyframes reveal-in {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}
/* An animation, not a transition, on purpose: a transition declared here would
   replace the hover transition of every card that is also a .reveal. */
@media screen and (prefers-reduced-motion: no-preference) {
  /* Scroll-linked: an element fades in over the first 7rem of its climb from
     the bottom edge, so nothing sits hidden while plainly on screen, and
     scrolling back restores the earlier state. `fill: both` holds the first
     keyframe before that range, which is also what applies whenever the
     timeline is inactive (printing), hence `screen`. The three package cards
     share a row from 980px up and finish in sequence; stacked layouts already
     reveal in reading order. */
  @supports (animation-timeline: view()) {
    html:not(.reveal-fallback) .reveal {
      animation: reveal-in cubic-bezier(0.2, 0.7, 0.3, 1) both;
      animation-timeline: view();
      animation-range: cover 0 cover 7rem;
    }
    @media (min-width: 980px) {
      html:not(.reveal-fallback) .packages-grid > .reveal {
        animation-range-end: cover calc(7rem + 3rem * (sibling-index() - 1));
      }
    }
  }
  /* Time-based fallback, switched on by the script in Site.astro for browsers
     without scroll-driven animations, or when a .reveal sits inside a scroll
     container where its view timeline would never advance. */
  html.reveal-fallback .reveal:not(.is-visible) { opacity: 0; }
  html.reveal-fallback .reveal.is-visible { animation: reveal-in 0.75s cubic-bezier(0.2, 0.7, 0.3, 1); }
}

/* ---------- scroll-driven motion ---------- */
/* CSS only; browsers without scroll timelines keep the time-based look. */
@keyframes sun-climb {
  from { transform: translateY(0) scale(1); }
  to { transform: translateY(-6rem) scale(1.35); }
}
@keyframes weave {
  from { transform: translateX(0); }
  to { transform: translateX(70rem); }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    /* The idle bob stays and the climb is layered onto it. Both follow the page
       scroller (scroll(root)), so the clipping sections cannot affect them.
       Order matters: the animation shorthand resets composition, timeline and
       range, so those follow it. */
    .hero .sun,
    .pf-hero .sun {
      animation: sunrise 26s ease-in-out infinite alternate, sun-climb cubic-bezier(0.2, 0.7, 0.3, 1) both;
      animation-composition: add, add;
      animation-timeline: auto, scroll(root block);
      animation-range: normal, 0 14rem;
    }
    /* The weave repeats every 70px; a slide of 70rem is 16 repeats, so the band
       ends on the phase it started. */
    .ribbon::before {
      animation: weave linear both;
      animation-timeline: scroll(root block);
    }
  }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .service-row { grid-template-columns: 2.5rem minmax(0, 1fr); row-gap: 0.4rem; }
  .service-desc { grid-column: 2; }
  .service-spec { grid-column: 2; justify-self: start; }
  .sun { width: 32rem; height: 32rem; margin-left: -16rem; top: -16rem; opacity: 0.55; }
}

@media (max-width: 640px) {
  .site-nav { gap: 1.1rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .faq-q { font-size: 1.02rem; }
}

/* ---------- Small-screen nav (ux-audit G5): touch-sized targets without
   letting the wrapped header grow. Padding gives each link a ~44px hit
   area; tighter gaps and header padding pay for the added link height. ---------- */
@media (max-width: 640px) {
  .site-nav { gap: 0.25rem 1.5rem; }
  .site-nav a { padding: 0.75rem 0; }
  .header-inner { gap: 0.5rem 1.5rem; padding: 0.6rem 0; }
}
