/* Page sections: home hero, decay timeline, compare, audiences, steps, service map, splits,
   article layout, contact layout */

/* Home hero with the squeegee wipe: a sun-faded filter layer pulls back to reveal fresh black */
.home-hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: min(94svh, 60rem);
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
  isolation: isolate;
}

.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.home-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 60%;
}

/* clip-path and transform only, so the wipe never registers as layout shift */
.home-hero__fade {
  position: absolute;
  inset: 0;
  backdrop-filter: grayscale(1) brightness(1.35) contrast(0.7) sepia(0.2);
  clip-path: inset(0 0 0 100%);
}

.home-hero__blade {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
}

.home-hero__blade::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -6px;
  width: 12px;
  background: var(--line);
  box-shadow: 0 0 24px 4px rgb(255 194 26 / 55%);
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero__fade {
    animation: squeegee 2.8s cubic-bezier(0.65, 0, 0.25, 1) 0.35s both;
  }

  .home-hero__blade {
    animation: squeegee-blade 2.8s cubic-bezier(0.65, 0, 0.25, 1) 0.35s both;
  }
}

@keyframes squeegee {
  from {
    clip-path: inset(0);
  }

  to {
    clip-path: inset(0 0 0 100%);
  }
}

@keyframes squeegee-blade {
  0% {
    opacity: 1;
    transform: translateX(0);
  }

  90% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      rgb(14 15 17 / 92%) 0%,
      rgb(14 15 17 / 72%) 42%,
      rgb(14 15 17 / 10%) 78%
    ),
    linear-gradient(0deg, rgb(14 15 17 / 95%) 0%, rgb(14 15 17 / 0%) 38%);
}

@media (width < 56em) {
  .home-hero::before {
    background: linear-gradient(
      0deg,
      rgb(14 15 17 / 96%) 0%,
      rgb(14 15 17 / 74%) 55%,
      rgb(14 15 17 / 55%) 100%
    );
  }

  .page-hero::before {
    background: linear-gradient(
      0deg,
      rgb(14 15 17 / 95%) 0%,
      rgb(14 15 17 / 72%) 60%,
      rgb(14 15 17 / 55%) 100%
    );
  }
}

.home-hero__inner {
  align-self: center;
  padding-block: clamp(4rem, 2rem + 8vw, 8rem) var(--space-l);
}

.home-hero .eyebrow {
  color: var(--line);
}

.home-hero__title {
  max-width: 12ch;
  margin-bottom: 0.25em;
  font-size: clamp(3.1rem, 1.4rem + 7vw, 7.25rem);
  line-height: 0.88;
  color: var(--bone);
}

.home-hero__title .text-line {
  display: block;
  white-space: nowrap;
}

.home-hero__lead {
  max-width: 36rem;
  margin: 0;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--paper-2);
}

.home-hero__lead strong {
  color: var(--line);
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  border-top: 1px solid var(--rule-dark);
}

.fact {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  padding: 1.1rem 1rem 1.3rem 0;
  border-bottom: 1px solid var(--rule-dark);
}

.fact dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 1.5rem + 2.2vw, 3.4rem);
  line-height: 1;
  color: var(--line);
}

.fact dt {
  margin-top: 0.3rem;
  font-size: 0.88rem;
  color: var(--muted-dark);
}

@media (width >= 56em) {
  .fact-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .fact {
    padding-left: 1.4rem;
    border-bottom: 0;
    border-left: 1px solid var(--rule-dark);
  }

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

/* Decay timeline: what desert sun does to asphalt, and where each fix belongs */
.decay {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: decay;
}

.decay__stage {
  position: relative;
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0 1.1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--rule-dark);
  counter-increment: decay;
}

.decay__swatch {
  grid-row: span 3;
  width: 4.5rem;
  height: 4.5rem;
  background-color: var(--sw, #121315);
  background-image: var(--grain), var(--cracks, none);
  background-size: 120px, cover;
  box-shadow: inset 0 0 0 1px rgb(250 248 243 / 10%);
}

.decay__stage h3 {
  margin: 0 0 0.25rem;
  font-size: 1.7rem;
  color: var(--bone);
}

.decay__stage h3::before {
  content: "0" counter(decay) " ";
  color: var(--muted-dark);
}

.decay__stage p {
  margin: 0;
  font-size: 0.93rem;
}

.decay__fix {
  justify-self: start;
  margin-top: 0.6rem;
  padding: 0.3rem 0.6rem;
  background: var(--line);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.decay__fix--late {
  background: var(--sand);
}

.decay__fix--last {
  background: var(--bone);
}

.decay__stage--1 {
  --sw: #111214;
}

.decay__stage--2 {
  --sw: #34363a;
}

.decay__stage--3 {
  --sw: #66655f;
}

.decay__stage--4 {
  --sw: #77746b;
  --cracks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cpath d='M8 70 20 50l-6-12 14-10 4-20M20 50l16 4 10 16M28 28l18-6 20 4' fill='none' stroke='%231a1b1d' stroke-width='1.4'/%3E%3C/svg%3E");
}

.decay__stage--5 {
  --sw: #7e796d;
  --cracks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cpath d='M0 40h14l8-10 12 4 10-12 12 6 16-4M22 30l-4-16 10-14M34 34l2 18 14 8 4 12M44 22l8-22M56 28l6 18 10 4M14 40l-6 20' fill='none' stroke='%23121315' stroke-width='2.6'/%3E%3C/svg%3E");
}

.decay__stage--6 {
  --sw: #6d685d;
  --cracks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cellipse cx='36' cy='40' rx='20' ry='14' fill='%230e0f11'/%3E%3Cpath d='M0 20h12l8 8 10-6 12 4 8-10 22 2M8 64l10-12M54 54l14 14' fill='none' stroke='%23121315' stroke-width='2.6'/%3E%3C/svg%3E");
}

@media (width >= 64em) {
  .decay {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }

  .decay::before {
    content: "";
    grid-column: 1 / -1;
    height: 10px;
    margin-bottom: 0.5rem;
    background: linear-gradient(
      90deg,
      #111214,
      #34363a 22%,
      #66655f 45%,
      #77746b 62%,
      #7e796d 80%,
      #4a463f
    );
  }

  /* Equal-height columns with every label pinned to one shared baseline */
  .decay__stage {
    display: flex;
    flex-direction: column;
    padding: 0;
    border-top: 0;
  }

  .decay__swatch {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin-bottom: 1rem;
  }

  .decay__stage h3 {
    font-size: clamp(1.3rem, 0.55rem + 1.15vw, 1.7rem);
    white-space: nowrap;
  }

  .decay__fix {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    min-height: 2.4rem;
    margin-top: auto;
    text-align: center;
  }

  .decay__stage p {
    margin-bottom: 1rem;
  }
}

/* Two-column split: media + text */
.split {
  display: grid;
  gap: var(--space-l);
  align-items: center;
}

.split__media {
  position: relative;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow-dark);
}

.split__media::after {
  content: "";
  position: absolute;
  inset: auto -0.9rem -0.9rem auto;
  z-index: -1;
  width: 60%;
  height: 55%;
  background: var(--hazard);
}

.split__media--tall img {
  aspect-ratio: 4 / 5;
}

.split__body > :last-child {
  margin-bottom: 0;
}

@media (width >= 56em) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--reverse .split__media {
    order: 2;
  }

  .split--wide-text {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

/* Check lists */
.check-list {
  display: grid;
  gap: 0.7rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  gap: 0.6rem;
  align-items: start;
}

.check-list li::before {
  content: "";
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 0.1rem;
  background: var(--line)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9.5 16.6-4.3-4.3-1.4 1.4 5.7 5.7L21.2 7.7l-1.4-1.4Z' fill='%230e0f11'/%3E%3C/svg%3E")
    center / 75% no-repeat;
}

.check-list--two {
  gap: 0.9rem 2rem;
}

@media (width >= 48em) {
  .check-list--two {
    grid-template-columns: 1fr 1fr;
  }
}

/* Maintain vs wait compare */
.compare {
  display: grid;
  gap: 1.25rem;
}

@media (width >= 56em) {
  .compare {
    grid-template-columns: 1fr 1fr;
  }
}

.compare__col {
  padding: clamp(1.4rem, 1rem + 1.6vw, 2.5rem);
  background: var(--asphalt-2);
  border-top: 6px solid var(--line);
}

.compare__col--wait {
  background: transparent;
  border: 1px dashed rgb(250 248 243 / 30%);
  border-top: 6px solid var(--sand);
}

.compare__label {
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--line);
}

.compare__col--wait .compare__label {
  color: var(--sand);
}

.compare__col h3 {
  color: var(--bone);
}

.compare__steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare__steps li {
  position: relative;
  padding: 0.75rem 0 0.75rem 2.2rem;
  border-top: 1px solid var(--rule-dark);
  color: var(--paper-2);
}

.compare__steps li::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 0.2rem;
  width: 1.1rem;
  height: 4px;
  background: var(--line);
}

.compare__col--wait .compare__steps li::before {
  background: var(--sand);
  transform: rotate(-35deg);
}

/* Audience grid */
.audience {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: aud;
}

.audience li {
  position: relative;
  padding: 1.5rem 1.25rem 1.4rem;
  background: var(--bone);
  border: 1px solid var(--rule-light);
  border-top: 4px solid var(--ink);
  counter-increment: aud;
}

.audience li::after {
  content: counter(aud, decimal-leading-zero);
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--muted);
}

.audience h3 {
  margin-bottom: 0.5rem;
  padding-right: 2rem;
  font-size: 1.7rem;
  color: var(--ink);
}

.audience p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Process steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-top: 4.4rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-display);
  font-size: 4.25rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--line);
}

.steps li::after {
  content: "";
  position: absolute;
  top: 2rem;
  left: 5.5rem;
  right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--line) 0 1.2rem, transparent 1.2rem 2rem);
  opacity: 0.6;
}

.steps h3 {
  font-size: 1.8rem;
}

.section--dark .steps h3,
.section--ink .steps h3 {
  color: var(--bone);
}

.section--paper .steps li::before,
.section--paper-2 .steps li::before {
  -webkit-text-stroke-color: var(--ink);
}

.section--paper .steps li::after,
.section--paper-2 .steps li::after {
  background: repeating-linear-gradient(90deg, var(--ink) 0 1.2rem, transparent 1.2rem 2rem);
  opacity: 0.35;
}

/* Service area: intro text above a full-width map */
.area {
  display: grid;
  gap: var(--space-m) var(--space-l);
  align-items: end;
  margin-bottom: var(--space-m);
}

@media (width >= 60em) {
  .area {
    grid-template-columns: 1fr 1fr;
  }
}

.valley-map {
  position: relative;
  margin: 0 0 var(--space-l);
  background: var(--ink);
  border-top: 6px solid var(--line);
  box-shadow: var(--shadow-dark);
}

.valley-map__img {
  display: block;
  width: 100%;
  height: auto;
}

.valley-map__pins {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 1019 / 415;
}

.valley-map__pin {
  fill: var(--line);
  stroke: var(--ink);
  stroke-width: 2.5;
  transition: fill 0.2s;
}

.valley-map__pulse {
  fill: rgb(255 194 26 / 35%);
  transform-box: fill-box;
  transform-origin: center;
}

@media (prefers-reduced-motion: no-preference) {
  .valley-map__pulse {
    animation: pin-pulse 2.4s ease-out infinite;
  }
}

@keyframes pin-pulse {
  from {
    opacity: 0.9;
    transform: scale(0.6);
  }

  to {
    opacity: 0;
    transform: scale(2.2);
  }
}

.valley-map__pins a:hover .valley-map__pin,
.valley-map__pins a:focus-visible .valley-map__pin {
  fill: var(--bone);
}

.valley-map__pins a:focus-visible {
  outline: none;
}

.valley-map__pins a:focus-visible .valley-map__pin {
  stroke: var(--line);
  stroke-width: 4;
}

.valley-map figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--muted-dark);
}

.valley-map figcaption a {
  color: var(--bone);
}

/* Section-level heading row with link */
.head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: var(--space-l);
}

.head-row .section-head {
  margin-bottom: 0;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  text-decoration-color: var(--line);
  text-decoration-thickness: 3px;
}

.section--dark .text-link,
.section--ink .text-link {
  color: var(--line);
}

/* Pull quote / callout */
.callout {
  margin: var(--space-m) 0;
  padding: 1.25rem 1.5rem;
  background: var(--ink);
  color: var(--bone);
  border-left: 6px solid var(--line);
  font-size: var(--step-1);
  line-height: 1.45;
}

.callout p {
  margin: 0;
  color: var(--bone);
}

/* Value grid (about, why us) */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.values li {
  padding: 1.6rem 1.4rem;
  border: 1px solid var(--rule-dark);
  background: rgb(250 248 243 / 3%);
}

.values h3 {
  font-size: 1.8rem;
  color: var(--line);
}

.values p {
  margin: 0;
}

.section--paper .values li,
.section--paper-2 .values li {
  background: var(--bone);
  border-color: var(--rule-light);
}

.section--paper .values h3,
.section--paper-2 .values h3 {
  color: var(--ink);
}

/* Two-column content with sticky aside (service, city, article pages) */
.with-aside {
  display: grid;
  gap: var(--space-l);
}

@media (width >= 62em) {
  .with-aside {
    grid-template-columns: minmax(0, 1fr) 21rem;
    align-items: start;
  }

  .aside-sticky {
    position: sticky;
    top: 6.5rem;
  }
}

.aside-card {
  padding: 1.6rem 1.4rem;
  background: var(--ink);
  color: var(--bone);
  border-top: 6px solid var(--line);
}

.aside-card h2 {
  margin-bottom: 0.4rem;
  font-size: 2.1rem;
  color: var(--bone);
}

.aside-card p {
  font-size: 0.95rem;
  color: var(--muted-dark);
}

.aside-card .aside-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--line);
  text-decoration: none;
}

.aside-card .btn {
  width: 100%;
  font-size: 1.2rem;
}

.toc {
  margin-top: 1.25rem;
  padding: 1.25rem 1.4rem;
  background: var(--bone);
  border: 1px solid var(--rule-light);
}

.toc h2 {
  margin-bottom: 0.6rem;
  font-size: 1.5rem;
  color: var(--ink);
}

.toc ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.92rem;
}

.toc li {
  margin-bottom: 0.4rem;
}

.toc a {
  color: var(--text);
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
  text-decoration-color: var(--line);
}

/* Article */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--paper-2);
}

.article-meta span::before {
  content: "";
  display: inline-block;
  width: 0.6rem;
  height: 3px;
  margin-right: 0.5rem;
  vertical-align: middle;
  background: var(--line);
}

.article-body {
  font-size: clamp(1.05rem, 1rem + 0.2vw, 1.15rem);
}

.article-body > p:first-child {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink);
}

.article-body h2 {
  padding-top: 0.4em;
  border-top: 3px solid var(--ink);
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
}

.article-body h3 {
  font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.8rem);
}

.article-figure {
  margin: 0 0 var(--space-m);
}

.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.article-end {
  margin-top: var(--space-l);
  padding: 1.6rem;
  background: var(--paper-2);
  border-left: 6px solid var(--line);
}

.article-end h2 {
  margin-top: 0;
  padding-top: 0;
  border: 0;
}

/* Contact */
.contact-layout {
  display: grid;
  gap: var(--space-l);
}

@media (width >= 62em) {
  .contact-layout {
    grid-template-columns: 1.35fr 1fr;
    align-items: start;
  }
}

.contact-info {
  display: grid;
  gap: 1.25rem;
}

.contact-block {
  padding: 1.5rem;
  background: var(--ink);
  color: var(--bone);
}

.contact-block h2 {
  margin-bottom: 0.5rem;
  font-size: 2rem;
  color: var(--bone);
}

.contact-block p {
  color: var(--muted-dark);
}

.contact-block a {
  color: var(--line);
}

.contact-big {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem);
  line-height: 1;
  text-decoration: none;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill-list a,
.pill-list span {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--rule-dark);
  font-size: 0.9rem;
  color: var(--bone);
  text-decoration: none;
}

.pill-list a:hover {
  border-color: var(--line);
  color: var(--line);
}

.section--paper .pill-list a,
.section--paper-2 .pill-list a {
  border-color: var(--rule-light);
  background: var(--bone);
  color: var(--ink);
}

.section--paper .pill-list a:hover,
.section--paper-2 .pill-list a:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* 404 */
.lost {
  display: grid;
  place-items: center;
  min-height: 70vh;
  text-align: center;
}

.lost__code {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(7rem, 4rem + 18vw, 16rem);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 3px var(--line);
}

.lost .cta-pair {
  justify-content: center;
}

/* Service lines on city pages */
.svc-line {
  margin: 1.4rem 0 0.35rem;
  font-size: 1.9rem;
}

.svc-line a {
  color: var(--line);
  text-decoration: none;
}

.svc-line a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.page-hero__title--article {
  max-width: 22ch;
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);
}

.lost h1 {
  color: var(--bone);
}

.lost .text-link {
  color: var(--line);
}

.contact-block--feature {
  margin-top: var(--space-m);
  border-top: 6px solid var(--line);
}

.contact-block--feature h3 {
  color: var(--bone);
}

.valley-map__scroll {
  overflow-x: auto;
  scrollbar-width: thin;
}

.valley-map__canvas {
  position: relative;
}

.valley-map__hint {
  display: none;
}

@media (width < 48em) {
  .valley-map__canvas {
    width: 760px;
  }

  .valley-map__hint {
    display: inline;
  }
}
