/* ==========================================================================
   Upshift Autos — stylesheet
   Editorial, full-bleed layout. Brand: near-black, deep red, Sora + Inter.
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
ul,
figure {
  margin: 0;
}

:root {
  --bg: #09090b;
  --bg-soft: #101013;
  --panel: #131317;
  --line: rgba(244, 239, 231, 0.12);
  --line-soft: rgba(244, 239, 231, 0.06);
  --text: #f4efe7;
  --muted: #b9aeb1;
  --muted-soft: #8d8085;
  --accent: #c00012;
  --accent-hot: #ff2b3d;
  --accent-deep: #5f000d;
  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
  --shell-w: 1280px;
  --pad-x: clamp(20px, 4vw, 48px);
  --section-pad: clamp(88px, 12vw, 150px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(192, 0, 18, 0.4);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}

/* Fine grid texture over the whole page for subtle depth */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 120px 120px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 90%);
}

main,
.site-header,
.footer {
  position: relative;
  z-index: 2;
}

/* ---------- shared shells & headings ---------- */

.shell {
  width: min(var(--shell-w), 100%);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

section {
  padding-block: var(--section-pad);
}

/* Hairline rule with section number + kicker, sits above every section head */
.section-rule {
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-bottom: clamp(36px, 6vw, 64px);
}

.section-rule .num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-hot);
  letter-spacing: 0.1em;
}

.section-rule .kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
  margin-bottom: clamp(40px, 7vw, 80px);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.section-title em {
  font-style: normal;
  color: var(--accent-hot);
}

.section-copy {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 46ch;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.35s var(--ease-out),
    background 0.35s,
    border-color 0.35s,
    color 0.35s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hot);
  transform: translateY(-2px);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

/* ---------- reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(9, 9, 11, 0.8), transparent);
  transition:
    background 0.4s,
    border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  height: 34px;
  width: auto;
}

.brand-tag {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted-soft);
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 34px);
}

.nav a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--text);
}

.nav .nav-cta {
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  transition:
    border-color 0.3s,
    background 0.3s;
}

.nav .nav-cta:hover {
  border-color: var(--accent-hot);
  background: rgba(192, 0, 18, 0.14);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  animation: heroZoom 12s var(--ease-out) forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.12);
  }
  to {
    transform: scale(1);
  }
}

/* Dark scrim so headline text stays readable over the photo */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      var(--bg) 4%,
      rgba(9, 9, 11, 0.72) 45%,
      rgba(9, 9, 11, 0.55) 100%
    ),
    radial-gradient(circle at 85% 15%, rgba(192, 0, 18, 0.28), transparent 45%);
}

.hero-inner {
  width: 100%;
  padding-bottom: clamp(40px, 6vw, 72px);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}

.hero-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 14px var(--accent-hot);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 13ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-hot);
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  max-width: 56ch;
  margin-top: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

/* Staggered load-in for the hero copy */
.hero-eyebrow,
.hero h1,
.hero-sub,
.hero-actions,
.hero-metrics {
  animation: heroRise 1s var(--ease-out) both;
}

.hero h1 {
  animation-delay: 0.12s;
}
.hero-sub {
  animation-delay: 0.24s;
}
.hero-actions {
  animation-delay: 0.36s;
}
.hero-metrics {
  animation-delay: 0.5s;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero h1,
  .hero-sub,
  .hero-actions,
  .hero-metrics,
  .hero-bg img {
    animation: none;
  }
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line);
  padding-top: 28px;
  max-width: 640px;
}

.metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.metric span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

/* ---------- service marquee strip ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 18px;
  overflow: hidden;
  background: var(--bg-soft);
}

.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marqueeScroll 36s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

.marquee-item strong {
  color: var(--text);
  font-weight: 600;
}

.marquee-item::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ---------- story ---------- */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: stretch;
}

.story-image {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  min-height: 420px;
}

.story-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.story-image:hover img {
  transform: scale(1.04);
}

.story-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
}

.story-lead {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.story-text {
  color: var(--muted);
  max-width: 60ch;
}

.story-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.stat-tile {
  padding: 22px 18px 0 0;
}

.stat-tile + .stat-tile {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.stat-tile strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
}

.stat-tile span {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-soft);
}

/* ---------- standards (why clients choose us) ---------- */

.standards {
  background: var(--bg-soft);
}

.standards-lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.02em;
  max-width: 30ch;
  margin-bottom: clamp(36px, 5vw, 56px);
}

.standards-lead em {
  font-style: normal;
  color: var(--accent-hot);
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.standard-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(24px, 3vw, 40px);
  transition: background 0.4s;
}

.standard-card:hover {
  background: rgba(192, 0, 18, 0.06);
}

.standard-card span {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-hot);
}

.standard-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 16px 0 12px;
}

.standard-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.service-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.5s var(--ease-out),
    border-color 0.5s;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 43, 61, 0.4);
}

.service-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.service-card:hover .service-image img {
  transform: scale(1.06);
}

.service-body {
  padding: clamp(20px, 2vw, 26px);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-index {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-hot);
}

.service-body h3 {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 13px 0 10px;
}

.service-body p {
  color: var(--muted);
  font-size: 0.92rem;
  flex: 1;
}

.service-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-list li {
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
}

/* ---------- builds gallery (rendered from BUILDS array in main.js) ---------- */

.builds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 300px;
  grid-auto-flow: dense;
  gap: clamp(14px, 2vw, 22px);
}

.build-card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  grid-row: span 1;
}

.build-card.tall {
  grid-row: span 2;
}
.build-card.wide {
  grid-column: span 2;
}

.build-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}

.build-card:hover img {
  transform: scale(1.05);
}

/* Caption gradient pinned to the bottom of each build photo */
.build-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 44px 22px 18px;
  background: linear-gradient(to top, rgba(9, 9, 11, 0.9), transparent);
}

.build-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.build-caption span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.builds-note {
  margin-top: 28px;
  color: var(--muted-soft);
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- process ---------- */

.process {
  background: var(--bg-soft);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
  counter-reset: step;
}

.process-step {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  position: relative;
}

.process-step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--accent-hot);
}

.process-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--muted-soft);
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 14px 0 10px;
}

.process-step p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* Live job tracking feature — screenshot of the Kenro tracking link */
.tracking-feature {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  padding: clamp(26px, 4vw, 56px);
  overflow: hidden;
}

.tracking-kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-hot);
}

.tracking-copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 14px 0 14px;
}

.tracking-copy p {
  color: var(--muted);
  max-width: 52ch;
}

.tracking-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted-soft);
}

.tracking-visual {
  display: flex;
  justify-content: center;
}

.tracking-visual img {
  width: min(320px, 100%);
  height: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.faq-side .section-title {
  margin-block: 14px 18px;
}
.faq-side p {
  color: var(--muted);
  max-width: 44ch;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: none;
  border: 0;
  padding: 22px 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 400;
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.4s,
    color 0.4s;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  border-color: var(--accent-hot);
  color: var(--accent-hot);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}

.faq-answer > div {
  overflow: hidden;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer p {
  color: var(--muted);
  padding-bottom: 22px;
  max-width: 62ch;
}

/* ---------- contact ---------- */

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(18px, 2.5vw, 28px);
}

.contact-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(26px, 3.5vw, 44px);
  background: var(--panel);
}

.contact-card h3,
.contact-form h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.contact-card > p,
.contact-form > p {
  color: var(--muted);
  font-size: 0.96rem;
}

.contact-lines {
  margin-top: 30px;
  display: grid;
  gap: 20px;
}

.contact-line label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-hot);
  margin-bottom: 4px;
}

.contact-line a,
.contact-line strong {
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.5;
}

.contact-line a:hover {
  color: var(--accent-hot);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.field label,
.field-full label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

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

.field input,
.field-full textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  transition: border-color 0.3s;
}

.field input:focus,
.field-full textarea:focus {
  outline: none;
  border-color: var(--accent-hot);
}

.field input::placeholder,
.field-full textarea::placeholder {
  color: var(--muted-soft);
}

.field-full textarea {
  min-height: 110px;
  resize: vertical;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-grid label {
  margin: 0;
  cursor: pointer;
}

.pill-grid input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-grid span {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  transition:
    background 0.3s,
    border-color 0.3s,
    color 0.3s;
}

.pill-grid input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pill-grid input:focus-visible + span {
  outline: 2px solid var(--accent-hot);
  outline-offset: 2px;
}

.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}

.form-note {
  color: var(--muted-soft);
  font-size: 0.85rem;
  max-width: 32ch;
}

.form-success {
  display: none;
  border: 1px solid rgba(80, 200, 120, 0.4);
  background: rgba(80, 200, 120, 0.08);
  color: #8ee6ae;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.92rem;
}

.form-success.show {
  display: block;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 6vw, 64px) 110px;
  background: var(--bg-soft);
}

.footer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-row img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

.footer-copy {
  color: var(--muted-soft);
  font-size: 0.92rem;
  max-width: 44ch;
}

.footer-links {
  display: flex;
  gap: 26px;
}

.footer-links a {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent-hot);
}

.footer-meta {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-soft);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-powered strong {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

.footer-powered a:hover strong {
  color: var(--accent-hot);
}

/* ---------- floating WhatsApp button ---------- */

.floating-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(17, 17, 21, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 14px 24px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    border-color 0.3s,
    transform 0.3s;
}

.floating-wa:hover {
  border-color: #25d366;
  transform: translateY(-2px);
}

.floating-wa::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 0 12px #25d366;
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .standards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .builds-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 260px;
  }
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 44px;
  }
  .section-head,
  .story-grid,
  .faq-grid,
  .contact-wrap,
  .tracking-feature {
    grid-template-columns: minmax(0, 1fr);
  }
  .story-image {
    min-height: 340px;
  }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(9, 9, 11, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 10px var(--pad-x) 24px;
    display: none;
  }

  .site-header.open .nav {
    display: flex;
  }
  .site-header.open {
    background: rgba(9, 9, 11, 0.97);
  }

  .nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav .nav-cta {
    border: 0;
    padding: 16px 0;
    text-align: left;
    color: var(--accent-hot);
  }

  .menu-toggle {
    display: inline-flex;
  }
  .brand-tag {
    display: none;
  }

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

  .builds-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 320px;
  }
  .build-card.wide {
    grid-column: span 1;
  }
  .hero-metrics {
    gap: 14px;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .process-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .floating-wa {
    left: 16px;
    right: 16px;
    bottom: 14px;
    justify-content: center;
  }

  .footer {
    padding-bottom: 130px;
  }
}
