/* ==========================================================================
   Sections — one block per page section, in page order
   ========================================================================== */

/* ---- 1. Hero -----------------------------------------------------------
   Below 1024px: the photo gets its own band and fades into the navy content.
   From 1024px:  text sits on navy at the left, the photo bleeds in from the right. */

.hero {
  position: relative;
  isolation: isolate;
  background: var(--ink-950);
  color: #fff;
}

.hero__media {
  position: relative;
  height: clamp(15rem, 40svh, 30rem);
  overflow: hidden;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 88%;
  transform: scale(1.06);
  animation: hero-settle 1.8s var(--ease) forwards;
}

@keyframes hero-settle {
  to {
    transform: scale(1);
  }
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 15, 27, 0.28) 0%, rgba(7, 15, 27, 0) 22%, rgba(7, 15, 27, 0) 60%, rgba(7, 15, 27, 0.7) 86%, var(--ink-950) 100%);
}

.hero__scrim,
.hero__inset {
  display: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  margin-top: -3.25rem;
  padding-block: 0 clamp(2rem, 5vw, 3rem);
}

.hero__content {
  max-width: 47rem;
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: var(--step-5);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.02;
  letter-spacing: -0.032em;
  color: #fff;
}

.hero h1 .amp {
  color: var(--accent);
  font-weight: 500;
}

.hero__lead {
  max-width: 36rem;
  margin-top: 1.75rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2.5rem;
}

.hero__rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 0;
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  list-style: none;
  font: 500 0.75rem/1.3 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.hero__rail span {
  margin-right: 0.85rem;
  color: var(--accent);
}

@media (min-width: 1024px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: clamp(36rem, calc(100svh - var(--header-h)), 52rem);
  }

  .hero__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: -2;
    width: 66%;
    height: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 46%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 46%);
  }

  .hero__media img {
    object-position: 60% 56%;
  }

  .hero__media::after {
    display: none;
  }

  .hero__scrim {
    display: block;
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      linear-gradient(90deg, rgba(7, 15, 27, 0.72) 0%, rgba(7, 15, 27, 0.4) 38%, rgba(7, 15, 27, 0) 62%),
      linear-gradient(0deg, rgba(7, 15, 27, 0.78) 0%, rgba(7, 15, 27, 0) 28%);
  }

  .hero__inner {
    display: flex;
    flex: 1;
    align-items: center;
    margin-top: 0;
    padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 4vw, 3.5rem);
  }

  .hero__content {
    max-width: 44rem;
  }

  /* small waterproofing photo — pairs with the construction photo behind it */
  .hero__inset {
    position: absolute;
    top: clamp(2rem, 6vh, 3.5rem);
    right: max(var(--gutter), calc((100% - var(--container)) / 2));
    z-index: 1;
    display: none;
    width: clamp(9.5rem, 12.5vw, 13rem);
    aspect-ratio: 4 / 5;
    margin: 0;
    border: 4px solid #fff;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--ink-800);
    box-shadow: var(--shadow-lg);
  }

  .hero__inset img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero__inset figcaption {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 2.25rem 0.9rem 0.8rem;
    background: linear-gradient(0deg, rgba(7, 15, 27, 0.88), transparent);
    font: 500 0.6875rem/1 var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
  }

  .hero__inset figcaption span {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--accent);
  }
}

@media (min-width: 1200px) {
  .hero__media {
    width: 72%;
  }

  .hero__inset {
    display: block;
  }
}

/* ---- 2. Stats ---------------------------------------------------------- */

.stats {
  background: #fff;
  border-bottom: 1px solid var(--stone-200);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1rem, 2.5vw, 2rem);
  border-left: 1px solid var(--stone-200);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat dt {
  font: 500 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone-600);
}

.stat dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.stat__num {
  font-size: var(--step-4);
  font-weight: 700;
  font-stretch: 108%;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-900);
}

/* ---- 3. About ---------------------------------------------------------- */

.about__grid {
  display: grid;
  grid-template-columns: var(--split);
  gap: var(--split-gap);
  align-items: center;
}

.about__media {
  position: relative;
  padding: 0 14% 12% 0;
}

/* Crop-mark bracket — echoes engineering drawings */
.about__media::before {
  content: "";
  position: absolute;
  left: -1.1rem;
  top: -1.1rem;
  width: 38%;
  height: 32%;
  border-left: 2px solid var(--accent);
  border-top: 2px solid var(--accent);
  border-top-left-radius: var(--r-lg);
  pointer-events: none;
}

.about__img {
  border-radius: var(--r-lg);
  background: var(--stone-100);
  box-shadow: var(--shadow-md);
}

.about__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__img--main {
  aspect-ratio: 4 / 5;
}

.about__img--inset {
  --curtain: #fff;
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  aspect-ratio: 1;
  border: 6px solid #fff;
  border-radius: var(--r-md);
}

.about__copy .lead {
  margin-top: 1.5rem;
}

.about__copy h2 {
  margin-top: 1.25rem;
}

.checklist {
  display: grid;
  margin-top: 2.25rem;
  border-top: 1px solid var(--stone-200);
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--stone-200);
}

.tick {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--accent);
}

.tick .icon {
  width: 0.95rem;
  height: 0.95rem;
  stroke-width: 2.2;
}

.checklist strong {
  display: block;
  font-weight: 650;
  color: var(--ink-900);
}

.checklist span:not(.tick) {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.about__cta {
  margin-top: 2.25rem;
}

/* ---- 4. Waterproofing (light, card grid) ------------------------------- */

.wp {
  background: var(--stone-50);
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
}

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--stone-200);
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

/* layered "membrane" line that draws in on hover */
.svc-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--stone-300);
}

.svc-card:hover::after {
  transform: scaleX(1);
}

.js .svc-card[data-reveal].is-visible:hover {
  transform: translateY(-6px);
}

.svc-card__idx {
  position: absolute;
  top: 1.35rem;
  right: 1.35rem;
  font: 500 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--stone-400);
}

.icon-box {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.5rem;
  border-radius: 0.9rem;
  background: var(--stone-100);
  color: var(--ink-800);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}

.icon-box .icon {
  width: 1.7rem;
  height: 1.7rem;
}

.svc-card:hover .icon-box {
  background: var(--ink-900);
  color: var(--accent);
}

.svc-card h3 {
  font-size: 1.1875rem;
  font-stretch: 104%;
}

.svc-card p {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.svc-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--ink-900);
}

.svc-card__more .icon {
  width: 1.1rem;
  height: 1.1rem;
  transition: transform 0.3s var(--ease);
}

.svc-card:hover .svc-card__more .icon {
  transform: translateX(5px);
}

/* whole card is the click target */
.svc-card__more::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-md);
}

.svc-card__more:focus-visible {
  outline: none;
}

.svc-card__more:focus-visible::before {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* ---- 5. Construction (dark, indexed list with photo preview) ----------- */

.cs {
  position: relative;
  background: var(--ink-900);
}

.cs::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 15% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 15% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

.cs__grid {
  position: relative;
  display: grid;
  grid-template-columns: var(--split);
  gap: var(--split-gap);
  align-items: start;
}

.cs__aside {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.cs__aside h2 {
  margin-top: 1.25rem;
}

.cs__aside .lead {
  margin-top: 1.5rem;
}

.cs__preview {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-top: 2.5rem;
  border-radius: var(--r-lg);
  background: var(--ink-800);
  overflow: hidden;
}

.cs__preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.6s var(--ease), transform 1.1s var(--ease);
}

.cs__preview img.is-active {
  opacity: 1;
  transform: none;
}

.cs__preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 15, 27, 0.7), transparent 45%);
  pointer-events: none;
}

.cs__preview-label {
  position: absolute;
  left: 1.25rem;
  bottom: 1.1rem;
  z-index: 1;
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.cs-list {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}

.cs-row {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 3rem;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: padding 0.4s var(--ease), background-color 0.4s;
}

.cs-row__thumb {
  display: none;
}

.cs-row__idx {
  font: 500 0.8125rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s;
}

.cs-row__body {
  transition: transform 0.4s var(--ease);
}

.cs-row h3 {
  font-size: var(--step-2);
  font-weight: 600;
  font-stretch: 106%;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.3s;
}

.cs-row p {
  max-width: 30rem;
  margin-top: 0.4rem;
  font-size: 0.9688rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

.cs-row__go {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s, transform 0.4s var(--ease);
}

.cs-row__go::before {
  content: "";
  position: absolute;
  inset: 0;
}

.cs-row__go:focus-visible {
  outline: none;
}

.cs-row__go:focus-visible::before {
  outline: 3px solid var(--focus);
  outline-offset: -3px;
  border-radius: var(--r-sm);
}

.cs-row.is-active .cs-row__idx {
  color: var(--accent);
}

.cs-row.is-active h3 {
  color: #fff;
}

.cs-row.is-active .cs-row__body {
  transform: translateX(6px);
}

.cs-row.is-active .cs-row__go,
.cs-row:hover .cs-row__go {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
  transform: rotate(45deg);
}

/* ---- 6. Why choose us (hairline grid, no cards) ------------------------- */

.why__grid {
  display: grid;
  grid-template-columns: var(--split);
  gap: var(--split-gap);
  align-items: start;
}

.why__intro {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.why__intro h2 {
  margin-top: 1.25rem;
}

.why__intro .lead {
  margin-block: 1.5rem 2rem;
}

.why__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--stone-200);
  background: var(--stone-200);
  border-radius: var(--r-md);
  overflow: hidden;
  list-style: none;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
  padding: 2rem 1.75rem 2.1rem;
  background: #fff;
  transition: background-color 0.35s;
}

.why-item > .icon {
  width: 1.85rem;
  height: 1.85rem;
  margin-top: 0.15rem;
  color: var(--accent-deep);
  transition: transform 0.4s var(--ease);
}

.why-item:hover {
  background: var(--stone-50);
}

.why-item:hover > .icon {
  transform: translateY(-3px);
}

.why-item h3 {
  font-size: 1.125rem;
  font-stretch: 104%;
}

.why-item p {
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---- 7. Process (vertical timeline) ------------------------------------ */

.process {
  background: var(--stone-50);
}

.process__grid {
  display: grid;
  grid-template-columns: var(--split);
  gap: var(--split-gap);
  align-items: start;
}

.process__aside {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.process__aside h2 {
  margin-top: 1.25rem;
}

.process__aside .lead {
  margin-top: 1.5rem;
}

.timeline {
  position: relative;
  list-style: none;
}

.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 1.425rem;
  top: 1.425rem;
  width: 2px;
  margin-left: -1px;
}

.timeline::before {
  bottom: 1.425rem;
  background: var(--stone-300);
}

.timeline::after {
  height: var(--progress, 0px);
  background: var(--accent);
  transition: height 0.2s linear;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 2.85rem minmax(0, 1fr);
  gap: 1.75rem;
  padding-bottom: clamp(1.75rem, 3.2vw, 2.75rem);
}

.step:last-child {
  padding-bottom: 0;
}

.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border: 2px solid var(--stone-300);
  border-radius: 50%;
  background: var(--stone-50);
  font: 500 0.8125rem/1 var(--font-mono);
  color: var(--stone-600);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}

.step.is-reached .step__num {
  background: var(--ink-900);
  border-color: var(--ink-900);
  color: var(--accent);
}

.step h3 {
  padding-top: 0.6rem;
  font-size: var(--step-2);
  font-stretch: 106%;
}

.step p {
  max-width: 34rem;
  margin-top: 0.5rem;
  color: var(--text-muted);
}

/* ---- 8. Projects (dark, masonry gallery) ------------------------------- */

.projects {
  background: var(--ink-950);
}

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip-btn {
  min-height: 2.75rem;
  padding: 0.5rem 1.15rem;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.82);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.chip-btn:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.chip-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.gallery {
  column-count: 3;
  column-gap: 1.25rem;
  margin-top: 2.5rem;
}

.g-item {
  position: relative;
  break-inside: avoid;
  margin: 0 0 1.25rem;
  border-radius: var(--r-md);
  background: var(--ink-800);
  overflow: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.g-item[hidden] {
  display: none;
}

.js .g-item[data-reveal] {
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  transition-delay: 0ms;
}

.js .g-item.is-visible.is-out {
  opacity: 0;
  transform: scale(0.96);
}

.g-item__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.g-item__btn:focus-visible {
  outline-offset: -4px;
}

.g-item img {
  width: 100%;
  height: auto;
  transition: transform 1s var(--ease);
}

.g-item:hover img {
  transform: scale(1.05);
}

.g-item__sample {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  pointer-events: none;
}

.g-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 3.5rem 1.25rem 1.25rem;
  background: linear-gradient(0deg, rgba(7, 15, 27, 0.94) 0%, rgba(7, 15, 27, 0.65) 55%, transparent 100%);
  pointer-events: none;
}

.g-item__cat {
  font: 500 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.g-item h3 {
  margin-top: 0.5rem;
  font-size: 1.1875rem;
  font-stretch: 104%;
  line-height: 1.2;
  color: #fff;
}

.g-item p {
  max-height: 0;
  margin-top: 0;
  overflow: hidden;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  opacity: 0;
  transition: max-height 0.5s var(--ease), margin-top 0.5s var(--ease), opacity 0.4s;
}

.g-item:hover p,
.g-item:focus-within p {
  max-height: 6rem;
  margin-top: 0.5rem;
  opacity: 1;
}

@media (hover: none) {
  .g-item p {
    max-height: none;
    margin-top: 0.5rem;
    opacity: 1;
  }
}

/* ---- 9. Applications --------------------------------------------------- */

.apps__grid {
  display: grid;
  grid-template-columns: var(--split);
  gap: var(--split-gap);
  align-items: start;
}

.apps__intro {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.apps__intro h2 {
  margin-top: 1.25rem;
}

.apps__intro .lead {
  margin-top: 1.5rem;
}

.apps__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
}

.app-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.5rem;
  border: 1px solid var(--stone-200);
  border-radius: var(--r-md);
  background: var(--stone-25);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.app-tile__ico {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.9rem;
  border: 1px solid var(--stone-200);
  border-radius: 50%;
  background: #fff;
  color: var(--ink-900);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}

.app-tile strong {
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.25;
  color: var(--ink-900);
  transition: color 0.3s;
}

.app-tile > span:last-child {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted);
  transition: color 0.3s;
}

.app-tile:hover,
.js .app-tile[data-reveal].is-visible:hover {
  background: var(--ink-900);
  border-color: var(--ink-900);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.app-tile:hover .app-tile__ico {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.app-tile:hover strong {
  color: #fff;
}

.app-tile:hover > span:last-child {
  color: rgba(255, 255, 255, 0.7);
}

/* ---- 10. Quality & materials ------------------------------------------- */

.quality {
  background: var(--stone-50);
}

.quality__grid {
  display: grid;
  grid-template-columns: var(--split);
  gap: var(--split-gap);
  align-items: center;
}

.drawing {
  margin: 0;
  padding: clamp(1.1rem, 3vw, 2rem);
  border-radius: var(--r-lg);
  background-color: var(--ink-900);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  box-shadow: var(--shadow-lg);
  color: #fff;
}

.drawing__bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font: 500 0.6875rem/1.2 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.drawing__view {
  overflow: hidden;
}

.drawing__svg {
  width: 100%;
  height: auto;
}

.drawing__legend {
  display: none;
  gap: 0.6rem;
  margin: 1rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  list-style: none;
  font: 500 0.75rem/1.3 var(--font-mono);
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
}

.drawing__legend li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.drawing__legend li.is-key {
  color: var(--accent);
}

.drawing__legend i {
  flex: none;
  width: 1.5rem;
  height: 0.9rem;
  border: 1.5px solid var(--bd, rgba(255, 255, 255, 0.35));
  border-radius: 2px;
  background: var(--sw);
}

.drawing figcaption {
  max-width: 34rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

.js .dr-layer,
.js .dr-call {
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--n) * 150ms + 250ms);
}

.js .dr-layer {
  transform: translateY(-18px);
}

.js .dr-call {
  transform: translateX(-10px);
  transition-delay: calc(var(--n) * 150ms + 900ms);
}

.js .drawing.is-visible .dr-layer,
.js .drawing.is-visible .dr-call {
  opacity: 1;
  transform: none;
}

.dr-rain path {
  opacity: 0;
  animation: drip 2.4s linear infinite;
  animation-play-state: paused;
}

.drawing.is-visible .dr-rain path {
  animation-play-state: running;
}

.dr-rain path:nth-child(2) {
  animation-delay: 0.6s;
}

.dr-rain path:nth-child(3) {
  animation-delay: 1.2s;
}

.dr-rain path:nth-child(4) {
  animation-delay: 1.8s;
}

@keyframes drip {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  15% {
    opacity: 0.9;
  }
  75% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(68px);
  }
}

.quality__copy h2 {
  margin-top: 1.25rem;
}

.quality__copy .lead {
  margin-top: 1.5rem;
}

.q-list {
  margin-top: 2rem;
  border-top: 1px solid var(--stone-300);
  list-style: none;
}

.q-list li {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--stone-300);
}

.q-list li > span {
  padding-top: 0.2rem;
  font: 500 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}

.q-list h3 {
  font-size: 1.0625rem;
  font-stretch: 104%;
}

.q-list p {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---- 11. Testimonials -------------------------------------------------- */

.testi__grid {
  display: grid;
  grid-template-columns: var(--split);
  gap: var(--split-gap);
  align-items: start;
}

.testi__intro h2 {
  margin-top: 1.25rem;
}

.testi__intro .lead {
  margin-top: 1.5rem;
}

.testi__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.testi__count {
  margin-left: 0.5rem;
  font: 500 0.8125rem var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.testi__viewport {
  min-width: 0;
  /* the next card fades out at the edge instead of being sliced off */
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 4.5rem), transparent 100%);
  mask-image: linear-gradient(90deg, #000 calc(100% - 4.5rem), transparent 100%);
}

.testi__viewport.is-end {
  -webkit-mask-image: none;
  mask-image: none;
}

.testi__track {
  display: flex;
  gap: 1.25rem;
  padding: 0.5rem 0 1.5rem;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.testi__track::-webkit-scrollbar {
  display: none;
}

.tcard {
  position: relative;
  flex: 0 0 min(86%, 36rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
}

.tcard__mark {
  font-size: 5.5rem;
  font-weight: 700;
  line-height: 0.6;
  color: var(--accent);
}

.tcard__title {
  font-size: var(--step-2);
  font-stretch: 106%;
}

.tcard blockquote {
  display: grid;
  gap: 0.75rem;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  font-weight: 450;
  font-stretch: 102%;
  line-height: 1.6;
  color: var(--ink-900);
}

.tcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}

.tcard__tags li {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--stone-300);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.tcard__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--stone-200);
}

.tcard__avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--ink-900);
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.05em;
  color: var(--accent);
}

.tcard__foot strong {
  display: block;
  font-weight: 650;
  color: var(--ink-900);
}

.tcard__foot span:not(.tcard__avatar):not(.stars) {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.stars {
  --rating: 0;
  display: inline-block;
  flex: none;
  width: 6.5rem;
  height: 1.25rem;
  margin-left: auto;
  background: linear-gradient(90deg, var(--accent) calc(var(--rating) / 5 * 100%), var(--stone-300) 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") 0 0 / 1.3rem 1.25rem repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E") 0 0 / 1.3rem 1.25rem repeat-x;
}

.tcard .ph-chip {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

/* ---- 12. FAQ ----------------------------------------------------------- */

.faq {
  background: var(--stone-50);
}

.faq__grid {
  display: grid;
  grid-template-columns: var(--split);
  gap: var(--split-gap);
  align-items: start;
}

.faq__intro {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.faq__intro h2 {
  margin-top: 1.25rem;
}

.faq__intro .lead {
  margin-block: 1.5rem 2rem;
}

/* ---- 13. Final CTA ----------------------------------------------------- */

.cta {
  position: relative;
  isolation: isolate;
  padding-block: clamp(5rem, 11vw, 9.5rem);
  background: var(--ink-900);
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
}

.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 15, 27, 0.84), rgba(11, 22, 38, 0.76));
}

.cta__inner {
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  width: min(100% - 2 * var(--gutter), 52rem);
}

.cta h2 {
  font-size: var(--step-5);
  font-stretch: 110%;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.cta .lead {
  font-size: var(--step-1);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 0.75rem;
}

/* ---- 14. Contact ------------------------------------------------------- */

.contact__grid {
  display: grid;
  grid-template-columns: var(--split);
  gap: var(--split-gap);
  align-items: start;
}

.contact__info h2 {
  margin-top: 1.25rem;
}

.contact__info .lead {
  margin-block: 1.5rem 2.25rem;
}

.info-list {
  border-top: 1px solid var(--stone-200);
  list-style: none;
}

.info-list > li {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--stone-200);
}

.info-list__ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.875rem;
  height: 2.875rem;
  border-radius: 0.8rem;
  background: var(--stone-100);
  color: var(--ink-900);
}

.info-list strong {
  display: block;
  margin-bottom: 0.2rem;
  font: 500 0.6875rem/1.4 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-600);
}

.info-list a,
.info-list address,
.info-list > li > div > span {
  font-size: 1.0625rem;
  font-style: normal;
  font-weight: 550;
  line-height: 1.5;
  color: var(--ink-900);
  text-decoration: none;
}

.info-list a:hover {
  color: var(--accent-deep);
}

.map {
  position: relative;
  aspect-ratio: 16 / 10;
  margin-top: 2rem;
  border: 1px solid var(--stone-200);
  border-radius: var(--r-md);
  background-color: var(--stone-100);
  background-image:
    linear-gradient(rgba(11, 22, 38, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 22, 38, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  overflow: hidden;
}

.map iframe {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--ink-700);
}

.map__fallback .icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--accent-deep);
}

.map__fallback strong {
  font-weight: 650;
}

.map__fallback .ph-note {
  max-width: 26rem;
  margin-top: 0.25rem;
  text-align: left;
}

.form-card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--stone-200);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.form-card__title {
  font-size: var(--step-2);
  font-stretch: 106%;
}

.form-card__sub {
  margin: 0.6rem 0 1.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-card .req {
  color: var(--accent-deep);
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1.25rem;
}

.field--full {
  grid-column: 1 / -1;
}

.form-submit {
  margin-top: 1.25rem;
}

.form-submit[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.form-status {
  min-height: 1.5rem;
  margin-top: 1rem;
  font-size: 0.9375rem;
  font-weight: 550;
}

.form-status.is-error {
  color: var(--danger);
}

.form-success {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding: 1rem 0;
}

.form-success[hidden] {
  display: none;
}

.form-success:focus {
  outline: none;
}

.form-success__ico {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--accent);
}

.form-success__ico .icon {
  width: 1.6rem;
  height: 1.6rem;
  stroke-width: 2.2;
}

.form-success h3 {
  font-size: var(--step-2);
}

.form-success p {
  color: var(--text-muted);
}

/* ---- 4b. Services directory (two columns, icon rows) --------------------- */

.services {
  background: var(--stone-50);
}

.svc-dir {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 6vw, 6rem);
}

.svc-dir__title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 2px solid var(--ink-900);
  font: 500 0.75rem/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-900);
}

.svc-dir__title span {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--ink-900);
  font-size: 0.6875rem;
  color: var(--accent);
}

.svc-dir__list {
  list-style: none;
}

.svc-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--stone-300);
  color: var(--ink-900);
  text-decoration: none;
}

.svc-row__ico {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--stone-200);
  border-radius: 0.85rem;
  background: #fff;
  color: var(--ink-800);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.svc-row__ico .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.svc-row__name {
  font-size: 1.1875rem;
  font-weight: 600;
  font-stretch: 104%;
  letter-spacing: -0.01em;
  line-height: 1.25;
  transition: transform 0.35s var(--ease);
}

.svc-row__go {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font: 500 0.6875rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-600);
  transition: color 0.3s;
}

.svc-row__go .icon {
  width: 1.05rem;
  height: 1.05rem;
  transition: transform 0.35s var(--ease);
}

.svc-row:hover .svc-row__ico,
.svc-row:focus-visible .svc-row__ico {
  border-color: var(--ink-900);
  background: var(--ink-900);
  color: var(--accent);
}

.svc-row:hover .svc-row__name,
.svc-row:focus-visible .svc-row__name {
  transform: translateX(5px);
}

.svc-row:hover .svc-row__go,
.svc-row:focus-visible .svc-row__go {
  color: var(--accent-deep);
}

.svc-row:hover .svc-row__go .icon,
.svc-row:focus-visible .svc-row__go .icon {
  transform: translateX(4px);
}

.svc-dir__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.5rem, 3.5vw, 2.75rem);
  border-radius: var(--r-lg);
  background: var(--ink-900);
  color: rgba(255, 255, 255, 0.76);
}

.svc-dir__cta h3 {
  font-size: var(--step-2);
  color: #fff;
}

.svc-dir__cta p {
  max-width: 34rem;
  margin-top: 0.4rem;
}

/* ---- 7b. Clients (address ledger) ---------------------------------------- */

.clients {
  background: var(--stone-50);
}

.ledger {
  border-top: 2px solid var(--ink-900);
}

.ledger__head,
.ledger__row {
  display: grid;
  grid-template-columns: var(--split);
  column-gap: var(--split-gap);
  align-items: center;
  border-bottom: 1px solid var(--stone-300);
}

.ledger__head {
  padding: 0.95rem 0;
  font: 500 0.6875rem/1.2 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-600);
}

.ledger__row {
  padding: 1.5rem 0;
  transition: background-color 0.3s;
}

.ledger__row:hover {
  background: #fff;
}

/* left cell: index + client name; right cell: the work done, starting on the shared split */
.ledger__who {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  min-width: 0;
}

.ledger__idx {
  flex: none;
  width: 2rem;
  font: 500 0.8125rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}

.ledger__detail {
  min-width: 0;
}

.ledger__client {
  font-size: var(--step-1);
  font-weight: 650;
  font-stretch: 104%;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

.ledger__work {
  font-size: 0.9375rem;
  color: var(--text);
}

/* ---- 10b. Materials (systems tabs + brand logos) --------------------------- */

.materials {
  position: relative;
  background: var(--ink-900);
}

.materials::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 90% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 90% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

.materials .container {
  position: relative;
}

.systems {
  display: grid;
  grid-template-columns: var(--split);
  gap: var(--split-gap);
  align-items: start;
}

.systems__tabs {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.systems__tab {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 0.25rem;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: none;
  text-align: left;
  font-size: 1.125rem;
  font-weight: 600;
  font-stretch: 104%;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.3s, padding 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.systems__tab span {
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.3s;
}

.systems__tab:hover {
  color: #fff;
}

.systems__tab[aria-selected="true"] {
  padding-left: 1rem;
  box-shadow: inset 3px 0 0 var(--accent);
  color: #fff;
}

.systems__tab[aria-selected="true"] span {
  color: var(--accent);
}

/* all panels share one grid cell, so the box keeps the height of the tallest one */
.systems__panels {
  display: grid;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.04);
}

.systems__panel {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0s linear 0.4s;
}

.systems__panel[hidden] {
  display: block !important;
}

.systems__panel:not([hidden]) {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.systems__kicker {
  font: 500 0.75rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.systems__panel h3 {
  margin-top: 0.85rem;
  font-size: var(--step-3);
  color: #fff;
}

.systems__desc {
  max-width: 38rem;
  margin-top: 1.1rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
  list-style: none;
}

.tags li {
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.86);
}

.brands {
  margin-top: clamp(3rem, 6vw, 5.5rem);
}

.brands__title {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  font: 500 0.75rem/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.brands__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.brands__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
}

.brand-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(6.25rem, 9.5vw, 8.5rem);
  padding: 1.15rem;
  border-radius: var(--r-md);
  background: #fff;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.brand-tile img {
  width: auto;
  height: auto;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.brand-tile:hover,
.js .brand-tile[data-reveal].is-visible:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.6);
}

/* ---- 14b. Contact additions ------------------------------------------------ */

.phone-list {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.15rem 2rem;
  list-style: none;
}

.info-list a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

.contact__map {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.contact__map .map {
  margin-top: 0;
  aspect-ratio: 21 / 8;
}

.map-actions {
  margin-top: 1.1rem;
}

.quality__more {
  margin-top: 1.5rem;
}

/* ---- Footer ------------------------------------------------------------ */

.footer {
  padding-top: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--ink-950);
  color: rgba(255, 255, 255, 0.7);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.footer__brand p {
  max-width: 22rem;
  margin-top: 1.25rem;
  font-size: 0.9688rem;
}

.footer__col h2 {
  margin-bottom: 1.25rem;
  font: 500 0.75rem/1.2 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}

.footer__col ul {
  display: grid;
  gap: 0.8rem;
  list-style: none;
}

.footer a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: #fff;
}

.footer address {
  font-style: normal;
  line-height: 1.6;
}

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-block: 1.5rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.875rem;
}

.footer__bar ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  list-style: none;
}

.footer__link {
  padding: 0.7rem 0;
  border: 0;
  background: none;
  font-size: inherit;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer__link:hover {
  color: #fff;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Laptop / small desktop */
@media (max-width: 1199px) {
  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apps__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-tile:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* Tablet */
@media (max-width: 1023px) {
  .section-head--split {
    grid-template-columns: 1fr;
  }

  .section-head--split .lead {
    justify-self: start;
  }

  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--stone-200);
  }

  .about__grid,
  .why__grid,
  .process__grid,
  .apps__grid,
  .quality__grid,
  .testi__grid,
  .faq__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .about__media {
    width: min(100%, 34rem);
  }

  .cs__grid {
    grid-template-columns: 1fr;
  }

  .cs__aside,
  .why__intro,
  .process__aside,
  .apps__intro,
  .faq__intro {
    position: static;
  }

  .cs__preview {
    display: none;
  }

  /* construction rows become thumbnail rows on touch-sized screens */
  .cs-row {
    grid-template-columns: 6rem minmax(0, 1fr) 3rem;
    gap: 1.1rem;
    padding: 1.25rem 0;
  }

  .cs-row__thumb {
    display: block;
    width: 6rem;
    height: 4.5rem;
    border-radius: 0.6rem;
    object-fit: cover;
  }

  .cs-row__idx {
    display: none;
  }

  .cs-row.is-active .cs-row__body {
    transform: none;
  }

  .gallery {
    column-count: 2;
  }

  .testi__intro .lead {
    max-width: 34rem;
  }

  .why__intro .lead,
  .faq__intro .lead {
    margin-bottom: 1.5rem;
  }

  .form-card {
    box-shadow: var(--shadow-md);
  }
}

/* Large phones */
@media (max-width: 720px) {
  :root {
    --header-h: 4.25rem;
  }

  .hero__actions {
    flex-direction: column;
    margin-top: 2rem;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__rail {
    display: none;
  }

  .drawing__svg {
    width: 138%;
    max-width: none;
  }

  .drawing__legend {
    display: grid;
  }

  .dr-callouts {
    display: none;
  }

  .cta__actions {
    width: 100%;
    flex-direction: column;
  }

  .cta__actions .btn {
    width: 100%;
  }
}

/* Phones */
@media (max-width: 599px) {
  .svc-grid {
    grid-template-columns: 1fr;
  }

  .why__list {
    grid-template-columns: 1fr;
  }

  .why-item {
    padding: 1.5rem 1.25rem;
  }

  .gallery {
    column-count: 1;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .step {
    gap: 1.1rem;
  }

  .tcard {
    flex-basis: 88%;
    min-height: 0;
  }

  .about__media {
    padding-right: 10%;
  }

  .stat {
    padding-inline: 1rem;
  }

  .stat:nth-child(even) {
    padding-right: 0;
  }

  .cs-row {
    grid-template-columns: 5rem minmax(0, 1fr) 2.75rem;
    gap: 0.9rem;
  }

  .cs-row__thumb {
    width: 5rem;
    height: 5rem;
  }

  .cs-row h3 {
    font-size: 1.1875rem;
  }

  .cs-row p {
    font-size: 0.875rem;
  }

  .cs-row__go {
    width: 2.75rem;
    height: 2.75rem;
  }

  .apps__list {
    gap: 0.75rem;
  }

  .app-tile {
    padding: 1.15rem;
  }
}

/* short phones (e.g. iPhone SE): keep the primary CTA near the fold */
@media (max-width: 720px) and (max-height: 700px) {
  .hero__media {
    height: 10.5rem;
  }

  .hero h1 {
    margin-top: 1rem;
    font-size: 2.125rem;
  }

  .hero__lead {
    margin-top: 1rem;
    font-size: 1rem;
  }

  .hero__actions {
    margin-top: 1.5rem;
  }
}

@media (max-width: 400px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .stat dt {
    font-size: 0.6875rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dr-rain path {
    animation: none;
  }

  .hero__media img {
    animation: none;
    transform: none;
  }

  .js .dr-layer,
  .js .dr-call {
    opacity: 1;
    transform: none;
  }
}

/* ---- Responsive rules for the added sections ----------------------------------- */

@media (max-width: 1199px) {
  .brands__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quality__grid {
    grid-template-columns: 1fr;
  }

  .quality__copy .lead {
    max-width: 40rem;
  }
}

@media (max-width: 1023px) {
  .svc-dir {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .systems {
    grid-template-columns: 1fr;
  }

  .systems__tabs {
    display: flex;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    overflow-x: auto;
    border-top: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .systems__tabs::-webkit-scrollbar {
    display: none;
  }

  .systems__tab {
    flex: none;
    padding: 0.7rem 1.15rem;
    border: 1.5px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    font-size: 0.9375rem;
    white-space: nowrap;
  }

  .systems__tab span {
    display: none;
  }

  .systems__tab[aria-selected="true"] {
    padding-left: 1.15rem;
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: none;
    color: var(--on-accent);
  }
}

@media (max-width: 1023px) {
  .ledger__head {
    display: none;
  }

  .ledger__row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.35rem 0;
  }

  .ledger__idx {
    display: none;
  }

  .ledger__work {
    width: fit-content;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: var(--stone-100);
    font-size: 0.8125rem;
  }
}

@media (max-width: 720px) {
  .contact__map .map {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 599px) {
  .phone-list {
    grid-template-columns: 1fr;
  }

  .brands__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .brand-tile {
    height: 5.75rem;
    padding: 0.9rem;
  }

  .svc-row {
    grid-template-columns: 2.75rem minmax(0, 1fr) auto;
    gap: 0.9rem;
  }

  .svc-row__ico {
    width: 2.75rem;
    height: 2.75rem;
  }

  .svc-row__name {
    font-size: 1.0625rem;
  }

  .svc-row__go span {
    display: none;
  }

  .svc-dir__cta .btn {
    width: 100%;
  }
}
