/* Sections added for the client brief: intro, carousel, why-us, process,
   reviews placeholder, FAQ. Kept out of sections.css to stay under 500 lines. */

/* ---------- intro ---------- */
.intro { display: grid; gap: var(--s-5); align-items: center; }
.intro__media img {
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 24%;
  border-radius: var(--radius-lg);
  box-shadow: var(--lift-3);
}
.intro__body h2 { max-width: 18ch; }
.intro__body .lede { max-width: 46ch; }

@media (min-width: 54rem) {
  .intro { grid-template-columns: 0.7fr 1.3fr; gap: var(--s-6); }
}

/* ---------- featured work carousel ---------- */
.carousel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
}
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15rem, 20rem);
  gap: var(--s-3);
  margin-top: var(--s-5);
  padding-bottom: var(--s-3);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  list-style: none;
  /* Scrollbar hidden: it drifts on its own and the cut-off card is the
     affordance. Still scrollable by drag, wheel, swipe and keyboard. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
/* Snap is deliberately absent. It fights the per-frame drift below and produces
   a stutter rather than a glide. */
.carousel > li { margin: 0; }
.carousel .job img { aspect-ratio: 4 / 3; }
.carousel::-webkit-scrollbar { width: 0; height: 0; display: none; }

.carousel__hint {
  font-size: var(--t-sm);
  color: var(--on-paper-soft);
  margin-top: var(--s-2);
}

/* The drift stops whenever a person is reading or driving it themselves. */
.carousel:hover, .carousel:focus-within { --drift: paused; }

/* ---------- why us ---------- */
.why { display: grid; gap: var(--s-5); margin-top: var(--s-4); }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
/* align-content:start is load-bearing. The li stretches to the tallest item in
   its row, and with the default `stretch` its two auto rows each absorb a share
   of the slack, so the body copy starts at a different height in every column. */
.why__list li { display: grid; gap: 0.3rem; align-content: start; }
.why__list b {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 72, "opsz" 30;
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.why__list span { color: var(--on-paper-soft); max-width: 46ch; }
.why__areas { border-top: 1px solid var(--paper-3); padding-top: var(--s-4); }
.why__areas p { max-width: 56ch; }

@media (min-width: 54rem) {
  .why { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .why__areas { border-top: 0; border-left: 1px solid var(--paper-3); padding: 0 0 0 var(--s-5); }
}

/* ---------- process ---------- */
.steps {
  list-style: none;
  margin: var(--s-5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
  counter-reset: step;
}
.steps li {
  display: grid;
  gap: 0.35rem;
  padding-top: var(--s-3);
  border-top: 2px solid var(--gold);
}
.steps b {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 72, "opsz" 30;
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.steps span { color: var(--on-paper-soft); }
.section--ink .steps b { color: var(--on-ink); }
.section--ink .steps span { color: var(--on-ink-soft); }
.section--ink .steps li { border-top-color: var(--gold); }

@media (min-width: 46rem) { .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s-4) var(--s-5); } }
@media (min-width: 68rem) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- reviews placeholder ---------- */
.reviews__empty {
  margin-top: var(--s-5);
  padding: clamp(var(--s-4), 4vw, var(--s-6));
  border: 1.5px dashed var(--paper-3);
  border-radius: var(--radius-lg);
  background: var(--paper);
  display: grid;
  gap: var(--s-3);
  justify-items: start;
  max-width: 46rem;
}
.reviews__empty p { color: var(--on-paper-soft); }

/* ---------- faq ---------- */
.faq { margin-top: var(--s-5); max-width: 52rem; }
.faq details {
  border-bottom: 1px solid var(--paper-3);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: var(--s-3) 2.5rem var(--s-3) 0;
  position: relative;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 72, "opsz" 30;
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  width: 11px; height: 11px;
  margin-top: -6px;
  border-right: 2px solid var(--coral-ink);
  border-bottom: 2px solid var(--coral-ink);
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 220ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--coral-ink); }
.faq details > div { padding: 0 0 var(--s-3); }
.faq p { color: var(--on-paper-soft); max-width: 58ch; }

/* ---------- sticky-header offset ---------- */
/* The header is sticky, so an in-page anchor lands its heading underneath it
   unless every target reserves that height. Measured, not guessed: the header is
   84px at desktop and 72px below 62rem. */
section[id], .band[id], .why__areas[id] { scroll-margin-top: 6.5rem; }
@media (max-width: 62rem) { section[id], .band[id], .why__areas[id] { scroll-margin-top: 5.5rem; } }

/* ---------- carousel bleeds to the viewport edge ---------- */
/* Clipped hard at the wrap's padding it reads as a layout bug. Running it to the
   edge makes the cut-off card read as "there is more this way", which is the
   affordance the client asked for. */
.carousel {
  margin-inline: calc(var(--gutter) * -1);
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
}

/* ---------- review carousel ---------- */
.carousel--reviews { grid-auto-columns: minmax(17rem, 23rem); align-items: stretch; }
.carousel--reviews > li { display: grid; }

.review {
  position: relative;
  margin: 0;
  height: 100%;
  display: grid;
  align-content: start;
  gap: var(--s-2);
  padding: var(--s-4);
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-lg);
  box-shadow: var(--lift-1);
}
.review p {
  margin: 0;
  color: var(--ink);
  font-size: var(--t-base);
  line-height: 1.6;
}
.review cite {
  font-style: normal;
  font-size: var(--t-sm);
  color: var(--on-paper-soft);
  margin-top: var(--s-1);
}

/* The star mark carries its own row layout, so it survives being reused outside
   this list without inheriting a parent's flex rules. */
.stars { display: flex; gap: 2px; }
.stars svg { width: 16px; height: 16px; fill: var(--gold); flex: 0 0 auto; }

/* A sample must never be mistakable for a customer's words, even at a glance. */
.review--sample { background: repeating-linear-gradient(135deg, var(--paper) 0 10px, var(--paper-2) 10px 20px); }
.review--sample p, .review--sample cite { opacity: 0.72; }
.review__badge {
  position: absolute;
  top: var(--s-2);
  right: var(--s-2);
  font-family: var(--font-text);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFF7F0;
  background: var(--coral);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}
.reviews__empty { margin-top: var(--s-5); }

/* ---------- final gallery collage ---------- */
.collage {
  list-style: none;
  margin: var(--s-5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s-3);
}
.collage li { margin: 0; }
.collage img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--lift-2);
}
@media (min-width: 46rem) {
  /* Three across, with the first given more width so it reads as a composition
     rather than three equal thumbnails. */
  .collage { grid-template-columns: 1.4fr 1fr 1fr; align-items: stretch; }
  .collage img { height: 100%; aspect-ratio: auto; min-height: 18rem; }
}

/* Areas rendered as its own section rather than nested inside Why Us. */
.areas--solo { margin-top: var(--s-4); }
.areas--solo .areas__list { max-width: 44rem; margin-top: var(--s-4); }
.areas--solo p { max-width: 60ch; }

/* ---------- interior page head ---------- */
.pagehead { padding-block: clamp(var(--s-6), 8vw, var(--s-7)) clamp(var(--s-5), 6vw, var(--s-6)); }
.pagehead h1 { max-width: 20ch; }
.pagehead .lede { max-width: 56ch; margin-bottom: var(--s-4); }
.pagehead__rule { max-width: 15rem; margin-bottom: var(--s-4); }

/* ---------- service band extras ---------- */
.svc__includes-head {
  font-size: var(--t-sm);
  font-family: var(--font-text);
  font-variation-settings: normal;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--on-paper-soft);
  margin-top: var(--s-4);
  margin-bottom: var(--s-2);
}
.band--illuminate .svc__includes-head { color: var(--on-ink-soft); }

.svc__includes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.svc__includes li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--on-paper-soft);
  font-size: var(--t-sm);
}
.band--illuminate .svc__includes li { color: var(--on-ink-soft); }
/* A lit bulb as the marker, which is the site's own mark rather than a generic tick. */
.svc__includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold-lit);
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 7px rgba(242, 200, 107, 0.7);
}
.svc__cta { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* ---------- about: story ---------- */
.story__hero { display: grid; gap: var(--s-5); align-items: center; }
.story__hero-media img {
  width: 100%;
  max-width: 24rem;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 50% 24%;
  border-radius: var(--radius-lg);
  box-shadow: var(--lift-3);
}
.story__hero-body h1 { max-width: 14ch; }
.story__hero-body .lede { max-width: 44ch; }
@media (min-width: 54rem) {
  .story__hero { grid-template-columns: 0.8fr 1.2fr; gap: var(--s-6); }
}

.story h2 { max-width: 18ch; margin-bottom: var(--s-3); }
.story p { max-width: 62ch; }
.story__sig {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 72, "WONK" 1, "opsz" 30;
  font-size: var(--t-xl);
  color: var(--coral-ink);
  margin-top: var(--s-4);
}

/* ---------- areas with a map alongside ---------- */
/* The embed ships with width/height attributes and an inline border style. Both
   are overridden here rather than in the markup: a fixed 600x450 overflows a
   phone, and inline styles are not allowed in this codebase. */
.areas__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--lift-2);
  background: var(--paper-3);
}
.areas__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 22rem;
  border: 0;
}
/* The heading stays above this grid; only the prose and the map share the row. */
.areas--mapped { display: grid; gap: var(--s-5); align-items: start; }
.areas--mapped .areas__list { max-width: none; }
.areas--mapped .areas__body p { max-width: 52ch; }

@media (min-width: 54rem) {
  .areas--mapped { grid-template-columns: 1.15fr 1fr; gap: var(--s-6); }
  /* The iframe must carry the same floor as its container, or the container's
     background shows in the gap beneath it. */
  .areas--mapped .areas__map,
  .areas--mapped .areas__map iframe { min-height: 28rem; }
  .areas--mapped .areas__map { position: sticky; top: 7rem; }
}

/* ---------- about: two-column story sections ---------- */
/* Single column these read as a broken two-column: the copy is capped at 62ch
   inside a 1248px wrap, so the right half is dead space. */
.story--split { display: grid; gap: var(--s-5); align-items: center; }
.story--split .story__text > :first-child { margin-top: 0; }
.story--split .story__text p { max-width: 52ch; }
.story--split .story__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--lift-3);
}

@media (min-width: 54rem) {
  .story--split { grid-template-columns: 1.1fr 1fr; gap: var(--s-6); }
  /* Alternating sides. The media moves, the DOM order does not, so the copy is
     still read before its picture by a screen reader on both sections. */
  .story--flip .story__media { order: -1; }
}

/* Why Us standing on its own. The base .why rule is a two-column row built for
   list-beside-areas; with the areas gone it left half the section empty, so the
   wrapper collapses to one column and the LIST does the columns instead. */
.why--solo { grid-template-columns: 1fr !important; }
@media (min-width: 46rem) {
  .why--solo .why__list { grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-6); }
}
@media (min-width: 72rem) {
  .why--solo .why__list { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
}

/* ---------- compact services list, home only ---------- */
/* The doc asks Home for "3-4 key services, SHORT descriptions, link to Services
   page". Full bands here cost 3.1 phone screens and duplicated /services. */
.offers { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-3); }
.offers li { margin: 0; }
.offer {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3);
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out),
              border-color 200ms var(--ease-out);
}
.offer:hover { transform: translateY(-2px); box-shadow: var(--lift-2); border-color: var(--gold); }
.offer__media { display: block; }
.offer__media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--ink);
}
/* The Illuminate entry is a logo lockup, not a photograph. Cropped to fill it
   loses half the word, so it is contained on its own black plaque instead. */
.offer__media--mark img { object-fit: contain; padding: 0.6rem; }

.offer__body { display: grid; gap: 0.2rem; }
.offer__body b {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 72, "opsz" 30;
  font-size: var(--t-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.offer__body span { color: var(--on-paper-soft); font-size: var(--t-sm); }
.offers__more { margin-top: var(--s-4); }

@media (min-width: 54rem) {
  .offers { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
  .offer { grid-template-columns: 1fr; align-items: start; padding: var(--s-4); }
  .offer__media img { aspect-ratio: 4 / 3; }
}

/* ---------- tighter rhythm on a phone ---------- */
/* 14.4 screens is too long for a page where the decision is made in under a
   minute. These trims take roughly two screens out without touching content. */
@media (max-width: 46rem) {
  .section { padding-block: clamp(var(--s-5), 7vw, var(--s-6)); }
  .collage { grid-template-columns: 1fr 1fr; gap: var(--s-2); }
  .collage li:first-child { grid-column: 1 / -1; }
  .collage img { aspect-ratio: 16 / 10; }
  .carousel--reviews { grid-auto-columns: minmax(15rem, 17rem); }
  .areas--mapped .areas__map iframe { min-height: 17rem; }
  .story--split .story__media img { aspect-ratio: 16 / 10; }
}
