/* ==========================================================================
   PAGES — section-specific layouts
   ========================================================================== */

/* ==========================================================================
   1. HERO — layered parallax
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: calc(var(--header-h) + var(--topbar-h));
  padding-bottom: var(--sp-9);
  isolation: isolate;
}
.hero__layer { position: absolute; inset: 0; pointer-events: none; }

/* On the light theme the hero has no background photograph: under a paper wash
   heavy enough to keep the type legible it contributed about 3% of tint for
   163KB. The framed plate carries the imagery; the CSS grain carries the tooth. */

/* Layer 2 — the etched-glass panel.
   Retired on the light theme: the framed plate now carries the focal weight,
   and the panel's edge cut a faint seam across the paper wash. */
.hero__panel { display: none; }
.hero__panel--unused {
  z-index: -2;
  will-change: transform;
  display: grid;
  place-items: center;
}
.hero__panel-shape {
  width: min(560px, 62vw);
  aspect-ratio: 3 / 4;
  margin-left: 42%;
  border-radius: var(--r-2xl);
  background: linear-gradient(150deg, rgba(255,255,255,.9), rgba(255,255,255,.2) 65%, transparent);
  border: 0;
  -webkit-mask-image: radial-gradient(ellipse at 35% 30%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at 35% 30%, #000 20%, transparent 72%);
}
@media (max-width: 900px) { .hero__panel { display: none; } }

/* Layer 3 — the drifting laser line.
   Retired on the light theme: at the opacity needed to stay subtle on paper it
   read as a faint vertical seam, i.e. a rendering artifact rather than a laser.
   The Etch Reveal on each heading carries the motif instead. */
.hero__beam { display: none; }

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

/* Wide screens: type on the left, the work shown as a framed plate on the
   right. The plate is the hero photo pulled forward out of the background
   wash, so the photograph reads as a print rather than a darkened backdrop. */
@media (min-width: 1040px) {
  .hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
  }
  .hero__content { max-width: none; }
}
.hero__plate {
  display: none;
  position: relative;
  z-index: 2;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-3);
  will-change: transform;
}
@media (min-width: 1040px) { .hero__plate { display: block; } }
.hero__plate img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.hero__plate figcaption {
  position: absolute;
  left: var(--sp-4);
  bottom: var(--sp-4);
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--heading);
}
.hero h1 { margin-bottom: var(--sp-5); }
.hero__lead { font-size: var(--fs-lead); max-width: 52ch; margin-bottom: var(--sp-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-bottom: var(--sp-6); }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.hero__meta div { display: flex; align-items: center; gap: var(--sp-3); font-size: 0.8438rem; }
.hero__meta svg { width: 17px; height: 17px; color: var(--accent-ink); flex: none; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: var(--sp-6);
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--body);
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 44px;
  background: linear-gradient(180deg, var(--accent), transparent);
  animation: scroll-cue 2.1s var(--ease-entrance) infinite;
  transform-origin: top;
}
@keyframes scroll-cue { 0%,100% { transform: scaleY(.28); opacity: .35; } 50% { transform: scaleY(1); opacity: 1; } }
/* The cue only earns its place when there is real room beneath the content. */
.hero__scroll { display: none; }
@media (min-width: 901px) and (min-height: 1000px) { .hero__scroll { display: flex; } }

/* ==========================================================================
   2. PAGE HEADER (inner pages)
   ========================================================================== */
.page-head {
  position: relative;
  padding-top: calc(var(--header-h) + var(--topbar-h) + clamp(3.5rem, 7vw, 6rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}
.page-head__bg { position: absolute; inset: 0; z-index: -2; }
.page-head__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .16; }
.page-head__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(245,243,240,.86), rgba(245,243,240,.97));
}
.page-head h1 { margin-block: var(--sp-4) var(--sp-4); max-width: 18ch; }
.page-head p { font-size: var(--fs-lead); max-width: 58ch; }

/* ==========================================================================
   3. TRUST STRIP
   ========================================================================== */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 860px) { .trust-strip { grid-template-columns: repeat(2, 1fr); } }

/* ==========================================================================
   4. SERVICES GRID
   ========================================================================== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-5);
}

/* ==========================================================================
   5. PROCESS TIMELINE — connector draws itself on scroll
   ========================================================================== */
.process { position: relative; }
.process__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
  position: relative;
}
.process__track::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--line);
}
.process__track::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--copper));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1500ms var(--ease-entrance) 200ms;
}
.process.is-visible .process__track::after { transform: scaleX(1); }
@media (max-width: 860px) {
  .process__track { grid-template-columns: 1fr 1fr; }
  .process__track::before, .process__track::after { display: none; }
}
@media (max-width: 520px) { .process__track { grid-template-columns: 1fr; } }

/* .step carries .reveal, whose transform creates a stacking context — which
   traps .step__dot's z-index inside it. Without z-index here the track's
   ::after connector (a later sibling at level 0) paints over the numbers. */
.step { text-align: center; position: relative; z-index: 1; }
.step__dot {
  width: 56px; height: 56px;
  margin: 0 auto var(--sp-4);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line-strong);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
  transition: border-color var(--dur-base), box-shadow var(--dur-base), transform var(--dur-base) var(--ease-spring);
}
.step:hover .step__dot { border-color: var(--accent); box-shadow: var(--shadow-glow); transform: scale(1.08); }
.step h3 { font-size: 1.15rem; margin-bottom: var(--sp-2); }
.step p { font-size: var(--fs-small); margin-inline: auto; max-width: 30ch; }

/* ==========================================================================
   6. SPLIT (about / feature rows)
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}
.split__media { position: relative; }
.split__media img {
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-3);
}
.split__badge {
  position: absolute;
  right: -14px;
  bottom: -22px;
  padding: var(--sp-5);
  border-radius: var(--r-md);
  text-align: center;
  min-width: 148px;
}
@media (max-width: 520px) { .split__badge { right: 8px; bottom: -18px; min-width: 128px; padding: var(--sp-4); } }
.split__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--accent-ink);
  line-height: 1;
}
.split__badge span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--body-dim);
}
.split__body > p + p { margin-top: var(--sp-4); }
.split__list { margin-top: var(--sp-6); display: grid; gap: var(--sp-3); }
.split__list li { display: flex; gap: var(--sp-3); font-size: var(--fs-small); align-items: flex-start; }
.split__list svg { width: 19px; height: 19px; color: var(--accent-ink); flex: none; margin-top: 2px; }

.quote-block {
  margin-top: var(--sp-6);
  padding: var(--sp-5) var(--sp-6);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.quote-block p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--heading);
  line-height: 1.5;
}
.quote-block cite {
  display: block;
  margin-top: var(--sp-3);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent-ink);
}

/* ==========================================================================
   7. TRIBUTE BAND — solemn, restrained motion
   ========================================================================== */
.tribute {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  border-block: 1px solid var(--line);
}
.tribute__bg { position: absolute; inset: 0; z-index: -2; }
.tribute__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .26; }
.tribute__bg::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(20,24,28,.70), rgba(20,24,28,.96));
}
.tribute__inner { max-width: 640px; }
.tribute__services {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-block: var(--sp-6);
}
.tribute__services span {
  padding: 7px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-size: 0.8125rem;
  color: var(--body);
}

/* ==========================================================================
   8. CONTACT SPLIT
   ========================================================================== */
.contact-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 940px) { .contact-split { grid-template-columns: 1fr; } }
.contact-card { padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--r-lg); }
.contact-info li {
  display: flex;
  gap: var(--sp-4);
  padding-block: var(--sp-4);
  border-bottom: 1px solid var(--line);
}
.contact-info li:last-child { border-bottom: 0; }
.contact-info__icon {
  width: 42px; height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--accent-glow-soft);
  border: 1px solid var(--accent-glow);
  color: var(--accent-ink);
}
.contact-info__icon svg { width: 18px; height: 18px; }
.contact-info dt {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--body);
  margin-bottom: 3px;
}
.contact-info dd { color: var(--heading); font-weight: 500; font-size: 0.9688rem; }
.contact-info dd a { transition: color var(--dur-micro); }
.contact-info dd a:hover { color: var(--accent-ink); }

.map-embed {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  margin-top: var(--sp-5);
}
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; filter: grayscale(1) contrast(1.05); }

/* ==========================================================================
   9. SERVICE PAGE DETAIL
   ========================================================================== */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
}
.spec-card { padding: var(--sp-5); border-radius: var(--r-md); }
.spec-card__icon {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--accent-glow-soft);
  border: 1px solid var(--accent-glow);
  color: var(--accent-ink);
  margin-bottom: var(--sp-4);
}
.spec-card__icon svg { width: 19px; height: 19px; }
.spec-card h3 { font-size: 1.05rem; margin-bottom: var(--sp-2); }
.spec-card p { font-size: 0.875rem; }

.pill-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); }
.pill {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--body);
}

.price-note {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-radius: var(--r-md);
  background: var(--accent-glow-soft);
  border: 1px solid var(--accent-glow);
  margin-top: var(--sp-6);
}
.price-note svg { width: 21px; height: 21px; color: var(--accent-ink); flex: none; margin-top: 2px; }
.price-note p { font-size: var(--fs-small); color: var(--heading); }

/* ==========================================================================
   10. TESTIMONIAL WALL
   ========================================================================== */
.wall { columns: 3; column-gap: var(--sp-5); }
@media (max-width: 980px) { .wall { columns: 2; } }
@media (max-width: 640px) { .wall { columns: 1; } }
.wall > * { break-inside: avoid; margin-bottom: var(--sp-5); }

/* ==========================================================================
   11. SIMPLE / UTILITY PAGES
   ========================================================================== */
.mini-page {
  min-height: 74vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: calc(var(--header-h) + var(--topbar-h) + var(--sp-9));
  padding-bottom: var(--sp-10);
}
.mini-page__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 800;
  line-height: .85;
  color: transparent;
  -webkit-text-stroke: 2px var(--line-strong);
  margin-bottom: var(--sp-5);
}
.mini-page__icon {
  width: 88px; height: 88px;
  margin: 0 auto var(--sp-6);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-glow-soft);
  border: 1px solid var(--accent-glow);
  color: var(--accent-ink);
}
.mini-page__icon svg { width: 38px; height: 38px; }
.mini-page p { margin-inline: auto; margin-block: var(--sp-4) var(--sp-7); }
.mini-page .btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); margin-block: var(--sp-8) var(--sp-4); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: var(--sp-4); }
.prose ul { margin-bottom: var(--sp-4); display: grid; gap: var(--sp-2); }
.prose li { display: flex; gap: var(--sp-3); font-size: var(--fs-small); }
.prose li::before { content: "—"; color: var(--accent-ink); flex: none; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
