@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700&family=Inter+Tight:wght@400;500;600&display=swap");

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
}

img,
video {
  max-width: 100%;
}

button {
  font: inherit;
}

.scroll-scrub {
  --ss-progress: 0;
  position: relative;
  isolation: isolate;
  color: var(--ss-ink);
  background: var(--ss-bg);
}

.scroll-scrub__stage {
  position: sticky;
  top: 0;
  z-index: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--ss-bg);
}

.scroll-scrub__media,
.scroll-scrub__layer,
.scroll-scrub__picture,
.scroll-scrub__poster,
.scroll-scrub__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scroll-scrub__media {
  z-index: 0;
}

.scroll-scrub__layer {
  margin: 0;
  overflow: hidden;
  opacity: 0;
  will-change: opacity;
}

.scroll-scrub__layer:first-child {
  opacity: 1;
}

.scroll-scrub__poster,
.scroll-scrub__video {
  display: block;
  object-fit: cover;
  object-position: var(--ss-object-position);
}

.scroll-scrub__poster {
  z-index: 0;
}

.scroll-scrub__video {
  z-index: 1;
}

.scroll-scrub__layer[data-video-painted="true"] .scroll-scrub__poster {
  visibility: hidden;
}

.scroll-scrub__progress {
  position: absolute;
  z-index: 5;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: color-mix(in srgb, var(--ss-ink) 14%, transparent);
  pointer-events: none;
}

.scroll-scrub__progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ss-accent);
  transform: scaleX(var(--ss-progress));
  transform-origin: left center;
}

.scroll-scrub__route {
  position: absolute;
  z-index: 6;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 4vw, 4rem);
  left: clamp(1rem, 4vw, 4rem);
  display: flex;
  justify-content: flex-end;
  gap: 0.25rem;
  pointer-events: auto;
}

.scroll-scrub__route-button {
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border: 0;
  color: var(--ss-muted);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.scroll-scrub__route-button:hover,
.scroll-scrub__route-button[aria-current="step"] {
  color: var(--ss-ink);
}

.scroll-scrub__route-button[aria-current="step"] {
  text-decoration: underline;
  text-decoration-color: var(--ss-accent);
  text-decoration-thickness: 0.15em;
  text-underline-offset: 0.3em;
}

.scroll-scrub__route-button:focus-visible {
  outline: 2px solid var(--ss-accent);
  outline-offset: 3px;
}

.scroll-scrub__story {
  position: relative;
  z-index: 3;
  margin-top: -100dvh;
  pointer-events: none;
}

.scroll-scrub__chapter,
.scroll-scrub__connector-band {
  position: relative;
}

.scroll-scrub__chapter-pin {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  min-height: 100dvh;
  padding: clamp(5rem, 9vw, 8rem) clamp(1.25rem, 6vw, 6rem);
  pointer-events: none;
}

.scroll-scrub__chapter[data-align="right"] .scroll-scrub__chapter-pin {
  justify-content: flex-end;
}

.scroll-scrub__copy {
  position: relative;
  width: min(40rem, 48vw);
  pointer-events: auto;
}

.scroll-scrub__copy::before {
  position: absolute;
  z-index: -1;
  inset: -3rem -5rem;
  content: "";
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--ss-bg) 88%, transparent) 0%,
    color-mix(in srgb, var(--ss-bg) 58%, transparent) 52%,
    transparent 76%
  );
  pointer-events: none;
}

.scroll-scrub__kicker {
  max-width: 30ch;
  margin: 0 0 1rem;
  color: var(--ss-accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-scrub__title {
  max-width: 13ch;
  margin: 0;
  color: var(--ss-ink);
  font: inherit;
  font-size: clamp(2.75rem, 6vw, 6.75rem);
  font-weight: 700;
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.scroll-scrub__body {
  max-width: 42ch;
  margin: 1.5rem 0 0;
  color: var(--ss-muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  line-height: 1.55;
}

.scroll-scrub__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.scroll-scrub__tags li {
  padding: 0.45rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--ss-ink) 20%, transparent);
  color: var(--ss-ink);
  font-size: 0.82rem;
}

.scroll-scrub__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

@media (max-width: 860px) {
  .scroll-scrub__poster,
  .scroll-scrub__video {
    object-position: var(--ss-mobile-position);
  }

  .scroll-scrub__route {
    right: max(0.75rem, env(safe-area-inset-right));
    left: max(0.75rem, env(safe-area-inset-left));
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .scroll-scrub__route-button {
    flex: 0 0 auto;
  }

  .scroll-scrub__chapter-pin,
  .scroll-scrub__chapter[data-align="right"] .scroll-scrub__chapter-pin {
    align-items: flex-end;
    justify-content: flex-start;
    padding: 6.5rem max(1.25rem, env(safe-area-inset-right))
      calc(4rem + env(safe-area-inset-bottom))
      max(1.25rem, env(safe-area-inset-left));
  }

  .scroll-scrub__copy {
    width: min(100%, 36rem);
  }

  .scroll-scrub__copy::before {
    inset: -3rem -2rem;
    background: linear-gradient(
      to top,
      var(--ss-bg) 0%,
      color-mix(in srgb, var(--ss-bg) 82%, transparent) 58%,
      transparent 100%
    );
  }

  .scroll-scrub__title {
    max-width: 14ch;
    font-size: clamp(2.3rem, 11vw, 4.5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-scrub__chapter {
    min-height: 100dvh !important;
  }

  .scroll-scrub__connector-band {
    display: none;
  }

  .scroll-scrub__progress span {
    transition: none;
  }
}


/* ============================================================
   Phoenix Holiday Lighting brand layer
   Paper white page, deep green structure, one red accent.
   Grotesk type only. The night film is the only dark surface.
   ============================================================ */

:root {
  --phx-paper: #f7f8f5;
  --phx-soft: #eef1ec;
  --phx-card: #ffffff;
  --phx-ink: #151917;
  --phx-muted: #5b655e;
  --phx-green: #1b4332;
  --phx-green-deep: #143126;
  --phx-red: #c1272d;
  --phx-red-dark: #9e1f24;
  --phx-red-soft: #e79395;
  --phx-line: rgba(21, 25, 23, 0.16);
  --phx-line-soft: rgba(21, 25, 23, 0.08);
  --phx-on-dark: #f4f6f2;
  --phx-on-dark-muted: rgba(244, 246, 242, 0.76);
  --phx-on-dark-line: rgba(244, 246, 242, 0.24);
  --phx-sans: "Archivo", "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --phx-body: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --phx-max: 1160px;
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  background-color: var(--phx-paper);
  scroll-behavior: smooth;
}

body {
  background-color: var(--phx-paper);
  color: var(--phx-ink);
  font-family: var(--phx-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--phx-green);
  color: var(--phx-paper);
}

main section[id],
main #quote {
  scroll-margin-top: 5.25rem;
}

.phx-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- header: clear over the film, paper once scrolled ---------- */

.phx-nav {
  --nav-ink: #ffffff;
  --nav-muted: rgba(255, 255, 255, 0.76);
  --nav-line: transparent;
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  isolation: isolate;
  display: flex;
  align-items: center;
  height: 104px;
  background: transparent;
  border-bottom: 1px solid var(--nav-line);
  transition:
    background-color 0.24s ease,
    border-color 0.24s ease;
}

.phx-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(11, 24, 17, 0.86) 0%,
    rgba(11, 24, 17, 0.4) 58%,
    rgba(11, 24, 17, 0) 100%
  );
  transition: opacity 0.24s ease;
}

.phx-nav[data-scrolled="true"] {
  --nav-ink: var(--phx-ink);
  --nav-muted: var(--phx-muted);
  --nav-line: var(--phx-line);
  background: rgba(247, 248, 245, 0.97);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
}

.phx-nav[data-scrolled="true"]::before {
  opacity: 0;
}

.phx-nav__inner {
  width: 100%;
  max-width: var(--phx-max);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.phx-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--nav-ink);
  text-decoration: none;
}

.phx-logo {
  display: block;
  height: 92px;
  width: auto;
}

.phx-brand__mark {
  width: auto;
  height: 36px;
  flex: none;
}

.phx-footer__logo {
  display: block;
  height: 96px;
  width: auto;
}

.phx-brand__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1;
}

.phx-brand__word {
  color: var(--nav-ink);
  font-family: var(--phx-sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.phx-brand__sub {
  color: var(--nav-muted);
  font-family: var(--phx-body);
  font-size: 0.66rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.phx-nav__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.phx-nav__link {
  position: relative;
  padding-block: 0.35rem;
  color: var(--nav-muted);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.phx-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--phx-green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease-out;
}

.phx-nav__link:hover {
  color: var(--nav-ink);
}

.phx-nav__link:hover::after,
.phx-nav__link:focus-visible::after {
  transform: scaleX(1);
}

.phx-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.phx-nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.62rem 1rem;
  border-radius: 2px;
  background: var(--phx-red);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease;
}

.phx-nav__cta:hover {
  background: var(--phx-red-dark);
}

.phx-nav__cta:active {
  transform: translateY(1px);
}

.phx-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--nav-ink) 32%, transparent);
  background: transparent;
  color: var(--nav-ink);
  cursor: pointer;
}

.phx-menu-button__bars {
  position: relative;
  display: block;
  width: 17px;
  height: 2px;
  background: var(--nav-ink);
  transition: background-color 0.18s ease;
}

.phx-menu-button__bars::before,
.phx-menu-button__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 17px;
  height: 2px;
  background: var(--nav-ink);
  transition: transform 0.2s ease;
}

.phx-menu-button__bars::before {
  top: -5px;
}

.phx-menu-button__bars::after {
  top: 5px;
}

.phx-menu-button[aria-expanded="true"] .phx-menu-button__bars {
  background: transparent;
}

.phx-menu-button[aria-expanded="true"] .phx-menu-button__bars::before {
  transform: translateY(5px) rotate(45deg);
}

.phx-menu-button[aria-expanded="true"] .phx-menu-button__bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

.phx-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  padding: 0.3rem clamp(1.1rem, 4vw, 2.5rem) 1.3rem;
  background: var(--phx-paper);
  border-bottom: 1px solid var(--phx-line);
  box-shadow: 0 18px 30px rgba(15, 32, 24, 0.14);
}

.phx-menu__links {
  display: grid;
}

.phx-menu__link {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--phx-line-soft);
  color: var(--phx-ink);
  font-family: var(--phx-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.phx-menu__link:hover {
  color: var(--phx-green);
}

.phx-menu__cta {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.85rem 1.3rem;
  background: var(--phx-red);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- hero CTAs on the film ---------- */

.phx-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.45rem;
  border: 0;
  background: var(--phx-red);
  color: #ffffff;
  font-family: var(--phx-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease;
}

.phx-cta:hover {
  background: var(--phx-red-dark);
}

.phx-cta:active {
  transform: translateY(1px);
}

.phx-cta__arrow {
  position: relative;
  display: block;
  width: 16px;
  height: 1px;
  background: #ffffff;
  transition: width 0.22s ease-out;
}

.phx-cta__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -3px;
  width: 7px;
  height: 7px;
  border-top: 1px solid #ffffff;
  border-right: 1px solid #ffffff;
  transform: rotate(45deg);
}

.phx-cta:hover .phx-cta__arrow {
  width: 24px;
}

.phx-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding-block: 0.5rem;
  color: var(--phx-on-dark);
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--phx-on-dark-line);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.phx-link:hover {
  color: #ffffff;
  border-color: #ffffff;
}

.phx-link__arrow {
  width: 15px;
  height: 8px;
  border-bottom: 1px solid currentColor;
  border-left: 1px solid currentColor;
  transform: rotate(-135deg) translateY(-1px);
  transition: transform 0.22s ease-out;
}

.phx-link:hover .phx-link__arrow {
  transform: rotate(-135deg) translateY(-1px) translateX(3px);
}

/* ---------- layout primitives ---------- */

.phx-shell {
  width: 100%;
  max-width: var(--phx-max);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.5rem);
}

.phx-section {
  position: relative;
  padding: clamp(3.25rem, 6vw, 5.25rem) 0;
  background: var(--phx-paper);
  color: var(--phx-ink);
}

.phx-section--soft {
  background: var(--phx-soft);
  border-top: 1px solid var(--phx-line-soft);
  border-bottom: 1px solid var(--phx-line-soft);
}

.phx-section--forest {
  background: var(--phx-green);
  color: var(--phx-paper);
}

.phx-split {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(1.75rem, 4.5vw, 3.75rem);
  align-items: start;
}

.phx-split--inspect {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
}

.phx-split--area,
.phx-split--faq {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}

/* ---------- type ---------- */

.phx-eyebrow {
  margin: 0 0 0.85rem;
  color: var(--phx-muted);
  font-family: var(--phx-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.phx-h2 {
  max-width: 25ch;
  margin: 0;
  color: var(--phx-ink);
  font-family: var(--phx-sans);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.phx-section--forest .phx-h2 {
  color: var(--phx-paper);
}

.phx-h3 {
  margin: 0;
  color: var(--phx-ink);
  font-family: var(--phx-sans);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.phx-lede {
  max-width: 56ch;
  margin: 1rem 0 0;
  color: var(--phx-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.phx-section--forest .phx-lede {
  color: var(--phx-on-dark-muted);
}

.phx-small {
  margin: 0;
  color: var(--phx-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.phx-note {
  max-width: 58ch;
  margin: 1.5rem 0 0;
  padding-left: 0.85rem;
  border-left: 2px solid var(--phx-green);
  color: var(--phx-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- service rows ---------- */

.phx-rows {
  border-top: 1px solid var(--phx-line);
}

.phx-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--phx-line);
  align-items: start;
}

.phx-row__body {
  margin: 0.45rem 0 0;
  color: var(--phx-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.phx-row__meta {
  margin: 0;
  padding-top: 0.1rem;
  color: var(--phx-ink);
  font-family: var(--phx-sans);
  font-size: 0.96rem;
  font-weight: 700;
  text-align: right;
}

.phx-row__meta span {
  display: block;
  margin-top: 0.28rem;
  color: var(--phx-muted);
  font-size: 0.78rem;
  font-weight: 400;
}

/* ---------- roof check: copy beside a real photo, not a dark wash ---------- */

.phx-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 2rem;
  max-width: 40rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.phx-check {
  position: relative;
  padding-left: 1rem;
  color: var(--phx-ink);
  font-size: 0.92rem;
  line-height: 1.5;
}

.phx-check::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66rem;
  width: 6px;
  height: 1px;
  background: var(--phx-muted);
}

.phx-photo {
  margin: 0;
}

.phx-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--phx-line-soft);
}

.phx-photo figcaption {
  margin-top: 0.7rem;
  max-width: 42ch;
  color: var(--phx-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.phx-photo--inline {
  margin-top: 1.6rem;
}

.phx-photo--inline img {
  aspect-ratio: 3 / 2;
}

.phx-photo--wide {
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
}

.phx-photo--wide img {
  aspect-ratio: 21 / 9;
}

/* ---------- pricing ---------- */

.phx-band {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.phx-band__aside {
  max-width: 34ch;
  padding-bottom: 0.15rem;
}

.phx-tiers {
  margin-top: 1.6rem;
  border-top: 1px solid var(--phx-line);
}

.phx-tier {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--phx-line);
}

.phx-tier__name {
  margin: 0;
  color: var(--phx-ink);
  font-family: var(--phx-sans);
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.2;
}

.phx-tier__desc {
  margin: 0.3rem 0 0;
  color: var(--phx-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.phx-tier__scope {
  margin: 0.2rem 0 0;
  color: var(--phx-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  opacity: 0.9;
}

.phx-tier__price {
  margin: 0;
  color: var(--phx-ink);
  font-family: var(--phx-sans);
  font-size: 1.08rem;
  font-weight: 700;
  white-space: nowrap;
  text-align: right;
}

.phx-tier__pick {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--phx-line);
  color: var(--phx-ink);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.phx-tier__pick:hover {
  background: var(--phx-ink);
  border-color: var(--phx-ink);
  color: var(--phx-paper);
}

.phx-tier__chevron {
  width: 6px;
  height: 6px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease-out;
}

.phx-tier__pick:hover .phx-tier__chevron {
  transform: translateX(2px) rotate(45deg);
}

.phx-disclaimer {
  margin-top: 1.1rem;
  max-width: 78ch;
}

/* ---------- price list ---------- */

.phx-price-list {
  margin-top: 1.6rem;
  border-top: 1px solid var(--phx-line);
}

.phx-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--phx-line);
}

.phx-price-row__amount {
  margin: 0;
  color: var(--phx-ink);
  font-family: var(--phx-sans);
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
}

.phx-input--short {
  max-width: 11rem;
}

/* ---------- how it works ---------- */

.phx-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.6rem;
  border-top: 1px solid var(--phx-line);
}

.phx-step {
  padding: 1.2rem 1.4rem 1.4rem 0;
  border-right: 1px solid var(--phx-line-soft);
}

.phx-step:last-child {
  border-right: 0;
  padding-right: 0;
}

.phx-step__num {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--phx-muted);
  font-family: var(--phx-sans);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.phx-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.5vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.phx-figure {
  margin: 0;
}

.phx-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--phx-line-soft);
}

.phx-figure figcaption {
  margin-top: 0.65rem;
  max-width: 44ch;
  color: var(--phx-muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

/* ---------- towns ---------- */

.phx-towns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--phx-on-dark-line);
}

.phx-town {
  padding: 0.72rem 0;
  border-bottom: 1px solid var(--phx-on-dark-line);
  color: var(--phx-paper);
  font-family: var(--phx-sans);
  font-size: 0.94rem;
  font-weight: 500;
}

/* ---------- faq ---------- */

.phx-faq {
  border-top: 1px solid var(--phx-line);
}

.phx-faq__item {
  border-bottom: 1px solid var(--phx-line);
}

.phx-faq__q {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.05rem 0;
  color: var(--phx-ink);
  cursor: pointer;
  font-family: var(--phx-sans);
  font-size: 0.98rem;
  font-weight: 600;
  list-style: none;
}

.phx-faq__q::-webkit-details-marker {
  display: none;
}

.phx-faq__q::after {
  content: "+";
  flex: none;
  color: var(--phx-muted);
  font-family: var(--phx-sans);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.phx-faq__item[open] .phx-faq__q::after {
  transform: rotate(45deg);
}

.phx-faq__q:hover {
  color: var(--phx-green);
}

.phx-faq__a {
  max-width: 62ch;
  margin: 0 0 1.1rem;
  color: var(--phx-muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* ---------- quote form ---------- */

.phx-quote-section {
  padding: clamp(3.25rem, 6vw, 5.25rem) 0;
  background: var(--phx-paper);
  border-top: 1px solid var(--phx-line);
}

.phx-quote {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.75rem, 4.5vw, 3.5rem);
  align-items: start;
}

.phx-form-card {
  padding: clamp(1.1rem, 2.6vw, 1.65rem);
  background: var(--phx-card);
  border: 1px solid var(--phx-line);
  box-shadow: 0 1px 0 rgba(21, 25, 23, 0.04);
}

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

.phx-field {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.phx-field--wide {
  grid-column: 1 / -1;
}

.phx-label {
  color: var(--phx-ink);
  font-size: 0.8rem;
  font-weight: 600;
}

.phx-input,
.phx-select,
.phx-textarea {
  width: 100%;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--phx-line);
  border-radius: 0;
  background: var(--phx-card);
  color: var(--phx-ink);
  font-family: var(--phx-body);
  font-size: 1rem;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.phx-textarea {
  min-height: 5.75rem;
  resize: vertical;
}

.phx-input::placeholder,
.phx-textarea::placeholder {
  color: #8b938c;
}

.phx-input:focus,
.phx-select:focus,
.phx-textarea:focus {
  outline: none;
  border-color: var(--phx-green);
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.14);
}

.phx-input[aria-invalid="true"],
.phx-textarea[aria-invalid="true"] {
  border-color: var(--phx-red);
}

.phx-error {
  color: var(--phx-red-dark);
  font-size: 0.81rem;
  line-height: 1.45;
}

.phx-submit {
  width: 100%;
  padding: 0.9rem 1.3rem;
  border: 0;
  border-radius: 2px;
  background: var(--phx-red);
  color: #ffffff;
  font-family: var(--phx-body);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease;
}

.phx-submit:hover:not(:disabled) {
  background: var(--phx-red-dark);
}

.phx-submit:active:not(:disabled) {
  transform: translateY(1px);
}

.phx-submit:disabled {
  cursor: progress;
  opacity: 0.7;
}

.phx-form__done {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.3rem, 3vw, 1.9rem);
  border: 1px solid var(--phx-green);
  background: #eff3ee;
}

.phx-form__done-title {
  margin: 0;
  color: var(--phx-green);
  font-family: var(--phx-sans);
  font-size: 1.4rem;
  font-weight: 700;
}

.phx-form__again {
  align-self: flex-start;
  margin-top: 0.25rem;
  padding: 0.45rem 0;
  border: 0;
  border-bottom: 1px solid var(--phx-line);
  background: none;
  color: var(--phx-ink);
  font-family: var(--phx-body);
  font-size: 0.85rem;
  cursor: pointer;
}

.phx-form__again:hover {
  color: var(--phx-green);
  border-color: var(--phx-green);
}

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

.phx-footer {
  padding: clamp(2rem, 4vw, 3rem) 0 1.5rem;
  background: var(--phx-green);
  color: var(--phx-paper);
}

.phx-footer .phx-brand {
  color: var(--phx-paper);
}

.phx-footer .phx-brand__word {
  color: var(--phx-paper);
}

.phx-footer .phx-brand__sub {
  color: var(--phx-on-dark-muted);
}

.phx-footer__grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.phx-footer__line {
  max-width: 36ch;
  margin: 0.7rem 0 0;
  color: var(--phx-on-dark-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.phx-footer__site {
  margin: 0.5rem 0 0;
  color: var(--phx-on-dark-muted);
  font-size: 0.8rem;
}

.phx-footer__site a,
.phx-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.phx-footer__site a:hover,
.phx-note a:hover {
  color: var(--phx-paper);
}

.phx-note a:hover {
  color: var(--phx-green);
}

.phx-footer__links {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
  text-align: right;
}

.phx-footer__links a {
  color: var(--phx-on-dark-muted);
  font-size: 0.86rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.phx-footer__links a:hover {
  color: #ffffff;
}

.phx-footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--phx-on-dark-line);
  color: var(--phx-on-dark-muted);
  font-size: 0.75rem;
}

/* ---------- the film: keep it clean and readable ---------- */

.scroll-scrub__copy::before {
  inset: -4rem -9rem -4rem -7rem;
  background: linear-gradient(
    100deg,
    rgba(9, 22, 15, 0.94) 0%,
    rgba(9, 22, 15, 0.82) 46%,
    rgba(9, 22, 15, 0.28) 78%,
    rgba(9, 22, 15, 0) 100%
  );
}

.scroll-scrub__title {
  max-width: 21ch;
  font-family: var(--phx-sans);
  font-size: clamp(2.05rem, 4vw, 3.35rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.024em;
}

.scroll-scrub__kicker {
  color: var(--phx-on-dark-muted);
  font-family: var(--phx-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.scroll-scrub__body {
  max-width: 44ch;
  font-family: var(--phx-body);
  color: var(--phx-on-dark-muted);
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
}

.scroll-scrub__actions {
  margin-top: 1.6rem;
}

.scroll-scrub__route,
.scroll-scrub__route-button,
.scroll-scrub__progress {
  display: none !important;
}

.scroll-scrub__route {
  top: auto;
  right: auto;
  bottom: clamp(1rem, 2.2vw, 1.8rem);
  left: clamp(1.1rem, 6vw, 6rem);
  justify-content: flex-start;
}

.scroll-scrub__route-button {
  min-height: 2rem;
  padding: 0.3rem 0;
  color: var(--phx-on-dark-muted);
  font-family: var(--phx-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-scrub__route-button[aria-current="step"] {
  color: #ffffff;
  text-decoration: none;
}

.scroll-scrub__route-button[aria-current="step"] span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--phx-red-soft);
  vertical-align: 2px;
}

/* ---------- motion (transform only, no opacity floor) ---------- */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.phx-reveal {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .phx-cta,
  .phx-submit,
  .phx-nav__cta {
    transition: none;
  }
}

/* ---------- tablet ---------- */

@media (max-width: 1080px) {
  .phx-brand__sub {
    display: none;
  }
}

@media (max-width: 900px) {
  .phx-nav__links {
    display: none;
  }

  .phx-menu-button {
    display: inline-flex;
  }

  .phx-split,
  .phx-split--inspect,
  .phx-split--area,
  .phx-split--faq,
  .phx-quote {
    grid-template-columns: minmax(0, 1fr);
  }

  .phx-split--inspect {
    align-items: start;
  }

  .phx-photo img {
    aspect-ratio: 3 / 2;
  }

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

  .phx-step {
    border-right: 0;
    border-bottom: 1px solid var(--phx-line-soft);
    padding: 1.2rem 0 1.25rem;
  }

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

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

  .phx-footer__links {
    justify-items: start;
    text-align: left;
  }

  .scroll-scrub__route {
    top: calc(72px + 0.4rem);
    bottom: auto;
    left: max(1.1rem, env(safe-area-inset-left));
  }

  .scroll-scrub__copy::before {
    inset: -4rem -2.5rem -4rem -2rem;
    background: linear-gradient(
      to top,
      rgba(9, 22, 15, 0.98) 0%,
      rgba(9, 22, 15, 0.94) 38%,
      rgba(9, 22, 15, 0.72) 66%,
      rgba(9, 22, 15, 0.28) 86%,
      rgba(9, 22, 15, 0) 100%
    );
  }
}

/* ---------- phone ---------- */

@media (max-width: 640px) {
  .phx-nav {
    height: 60px;
  }

  .phx-nav__inner {
    gap: 0.75rem;
  }

  .phx-brand__mark {
    width: 23px;
    height: 23px;
  }

  .phx-brand__word {
    font-size: 0.92rem;
    letter-spacing: 0.06em;
  }

  .phx-nav__cta {
    display: none;
  }

  .phx-menu-button {
    width: 36px;
    height: 36px;
  }

  .scroll-scrub__route {
    top: calc(60px + 0.35rem);
  }

  .phx-section,
  .phx-quote-section {
    padding: 2.5rem 0;
  }

  .phx-h2 {
    font-size: 1.5rem;
    max-width: 100%;
  }

  .phx-lede {
    font-size: 0.96rem;
  }

  .phx-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    padding: 1.15rem 0;
  }

  .phx-row__meta {
    grid-column: 1;
    text-align: left;
    padding-top: 0.15rem;
  }

  .phx-checks {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
  }

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

  .phx-tier {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem 1rem;
    padding: 1.15rem 0;
  }

  .phx-tier__head {
    grid-column: 1 / -1;
  }

  .phx-tier__price {
    grid-column: 1;
    text-align: left;
    font-size: 1.05rem;
  }

  .phx-tier__pick {
    grid-column: 2;
    justify-self: end;
  }

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

  .phx-form-card {
    padding: 1rem;
  }

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

  .phx-footer__legal {
    flex-direction: column;
    gap: 0.35rem;
  }

  .phx-footer__links {
    gap: 0.35rem;
  }

  .scroll-scrub__copy {
    width: 100%;
  }

  .scroll-scrub__title {
    font-size: clamp(1.95rem, 8.6vw, 2.6rem);
    max-width: 15ch;
  }

  .scroll-scrub__body {
    max-width: 34ch;
  }

  .scroll-scrub__actions {
    gap: 0.6rem;
  }
}

/* ---------- trust strip under the film ---------- */

.phx-trust {
  background: var(--phx-paper);
  border-bottom: 1px solid var(--phx-line);
}

.phx-trust__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 0.9rem 0;
  color: var(--phx-muted);
  font-size: 0.82rem;
}

.phx-trust__inner span + span::before {
  content: "\00b7";
  margin-right: 0.85rem;
  color: rgba(21, 25, 23, 0.32);
}

/* ---------- click to call in the header ---------- */

.phx-nav__call {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: var(--nav-ink);
  font-family: var(--phx-sans);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.phx-nav__call-label {
  color: var(--nav-muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.phx-nav__call:hover {
  color: var(--phx-red);
}

.phx-menu__call {
  display: inline-flex;
  margin: 1rem 0.5rem 0 0;
  padding: 0.85rem 1.2rem;
  border: 1px solid var(--phx-line);
  color: var(--phx-ink);
  font-family: var(--phx-sans);
  font-weight: 700;
  text-decoration: none;
}

/* ---------- reviews ---------- */

.phx-reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 1.75rem;
}

.phx-review {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--phx-line);
}

.phx-review blockquote {
  margin: 0;
  color: var(--phx-ink);
  font-size: 0.98rem;
  line-height: 1.62;
}

.phx-review figcaption {
  margin-top: 0.7rem;
  color: var(--phx-muted);
  font-size: 0.82rem;
}

/* ---------- footer contact line ---------- */

.phx-footer__contact {
  margin: 0.6rem 0 0;
  color: var(--phx-paper);
  font-size: 0.88rem;
}

.phx-footer__contact a {
  color: var(--phx-paper);
  text-decoration: none;
  border-bottom: 1px solid var(--phx-on-dark-line);
}

.phx-footer__contact a:hover {
  border-color: var(--phx-paper);
}

/* ---------- sticky call bar on phones ---------- */

.phx-callbar {
  display: none;
}

@media (min-width: 900px) {
  .phx-nav__call {
    display: inline-flex;
  }
}

@media (max-width: 900px) {
  .phx-reviews {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .phx-trust__inner {
    font-size: 0.78rem;
    padding: 0.75rem 0;
  }

  .phx-callbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 1px;
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(21, 25, 23, 0.25);
  }

  .phx-callbar__call,
  .phx-callbar__quote {
    padding: 0.95rem 0.5rem;
    text-align: center;
    font-family: var(--phx-sans);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
  }

  .phx-callbar__call {
    background: var(--phx-red);
    color: #ffffff;
  }

  .phx-callbar__quote {
    background: var(--phx-green);
    color: #ffffff;
    font-weight: 600;
  }

  body {
    padding-bottom: 3.4rem;
  }
}

/* ---------- overflow guards: no long line may run off the screen ---------- */

html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

h1,
h2,
h3,
p,
li,
blockquote,
figcaption,
summary,
a {
  overflow-wrap: break-word;
}

.phx-split > *,
.phx-row > *,
.phx-tier > *,
.phx-price-row > *,
.phx-quote > *,
.phx-nav__inner > * {
  min-width: 0;
}

@media (max-width: 640px) {
  .scroll-scrub__title {
    max-width: 100%;
    font-size: clamp(1.6rem, 7vw, 2.3rem);
    line-height: 1.1;
  }

  .scroll-scrub__body {
    max-width: 100%;
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .scroll-scrub__copy {
    padding-bottom: 0.5rem;
  }

  .phx-trust__inner {
    font-size: 0.74rem;
    line-height: 1.5;
  }

  .phx-trust__inner span {
    flex: 0 1 auto;
  }

  .phx-footer__contact a,
  .phx-footer__site,
  .phx-row__meta span,
  .phx-tier__desc,
  .phx-lede {
    overflow-wrap: anywhere;
  }

  .phx-lede,
  .phx-row__body,
  .phx-review blockquote {
    font-size: 0.93rem;
    line-height: 1.55;
  }
}

/* ---------- tablet header: stop five links plus a phone number crowding ---------- */

@media (max-width: 1080px) {
  .phx-nav__links {
    display: none;
  }

  .phx-menu-button {
    display: inline-flex;
  }

  .phx-brand__sub {
    display: none;
  }
}

/* ---------- phone hero: keep copy clear of the fixed call bar ---------- */

@media (max-width: 640px) {
  .scroll-scrub__chapter-pin,
  .scroll-scrub__chapter[data-align="right"] .scroll-scrub__chapter-pin {
    padding-bottom: calc(6.25rem + env(safe-area-inset-bottom));
  }

  .scroll-scrub__stage {
    /* the portrait clip fills this, so no flat colour shows through */
    background: var(--phx-green-deep, #143126);
  }
}

/* ---------- safety net: the hero band can never show a flat colour ---------- */

.scroll-scrub {
  background-color: #0f2018;
  background-image:
    linear-gradient(rgba(9, 22, 15, 0.88), rgba(9, 22, 15, 0.92)),
    url("/assets/world/hero-v6-poster.jpg");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (max-width: 860px) {
  .scroll-scrub {
    background-image:
      linear-gradient(rgba(9, 22, 15, 0.88), rgba(9, 22, 15, 0.92)),
      url("/assets/world/hero-v6-mobile-poster.jpg");
  }
}

/* ---------- taller header for the full logo lockup ---------- */

main section[id],
main #quote {
  scroll-margin-top: 7.5rem;
}

@media (max-width: 1080px) {
  .phx-nav {
    height: 88px;
  }

  .phx-logo {
    height: 72px;
  }
}

@media (max-width: 640px) {
  .phx-nav {
    height: 74px;
  }

  .phx-logo {
    height: 60px;
  }

  .scroll-scrub__route {
    top: calc(74px + 0.3rem);
  }

  .scroll-scrub__chapter-pin,
  .scroll-scrub__chapter[data-align="right"] .scroll-scrub__chapter-pin {
    padding-top: calc(6.5rem + env(safe-area-inset-top));
  }
}

/* ---------- solid white header so the gold logo always reads ---------- */

.phx-nav,
.phx-nav[data-scrolled="true"] {
  --nav-ink: var(--phx-ink);
  --nav-muted: var(--phx-muted);
  --nav-line: var(--phx-line);
  height: 118px;
  background: var(--phx-paper);
  border-bottom: 1px solid var(--phx-line);
}

.phx-nav::before {
  display: none;
}

.phx-nav[data-scrolled="true"] {
  background: rgba(247, 248, 245, 0.98);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  box-shadow: 0 2px 14px rgba(21, 25, 23, 0.08);
}

.phx-logo {
  height: 92px;
  padding-block: 6px;
  width: auto;
}

@media (max-width: 1080px) {
  .phx-nav,
  .phx-nav[data-scrolled="true"] {
    height: 100px;
  }

  .phx-logo {
    height: 78px;
  }
}

@media (max-width: 640px) {
  .phx-nav,
  .phx-nav[data-scrolled="true"] {
    height: 86px;
  }

  .phx-logo {
    height: 68px;
  }

  .scroll-scrub__route {
    top: calc(86px + 0.3rem);
  }

  .scroll-scrub__chapter-pin,
  .scroll-scrub__chapter[data-align="right"] .scroll-scrub__chapter-pin {
    padding-top: calc(7rem + env(safe-area-inset-top));
  }
}

main section[id],
main #quote {
  scroll-margin-top: 8.5rem;
}

/* ---------- logo: bigger again, and deepened so the small lines read ---------- */

.phx-nav,
.phx-nav[data-scrolled="true"] {
  height: 128px;
}

.phx-logo {
  height: 104px;
  width: auto;
  filter: saturate(1.18) brightness(0.88) contrast(1.06);
}

@media (max-width: 1080px) {
  .phx-nav,
  .phx-nav[data-scrolled="true"] {
    height: 108px;
  }

  .phx-logo {
    height: 86px;
  }
}

@media (max-width: 640px) {
  .phx-nav,
  .phx-nav[data-scrolled="true"] {
    height: 98px;
  }

  .phx-logo {
    height: 78px;
  }

  .scroll-scrub__route {
    top: calc(98px + 0.3rem);
  }

  .scroll-scrub__chapter-pin,
  .scroll-scrub__chapter[data-align="right"] .scroll-scrub__chapter-pin {
    padding-top: calc(7.5rem + env(safe-area-inset-top));
  }
}

main section[id],
main #quote {
  scroll-margin-top: 9.5rem;
}

/* ---------- consent checkboxes ---------- */

.phx-check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.15rem 0;
  color: var(--phx-ink);
  font-size: 0.88rem;
  line-height: 1.5;
  cursor: pointer;
}

.phx-check-row + .phx-check-row {
  margin-top: 0.45rem;
}

.phx-check-row input[type="checkbox"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.12rem 0 0;
  accent-color: var(--phx-green);
  flex: none;
}

.phx-check-row a {
  color: var(--phx-green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.phx-check-row input[aria-invalid="true"] {
  outline: 2px solid var(--phx-red);
  outline-offset: 2px;
}

/* ---------- terms page ---------- */

.phx-terms {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--phx-paper);
  color: var(--phx-ink);
}

.phx-terms__back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--phx-muted);
  font-size: 0.86rem;
  text-decoration: none;
  border-bottom: 1px solid var(--phx-line);
  padding-bottom: 0.2rem;
}

.phx-terms__back:hover {
  color: var(--phx-green);
  border-color: var(--phx-green);
}

.phx-terms__title {
  margin: 0;
  font-family: var(--phx-sans);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.phx-terms__list {
  margin: clamp(1.75rem, 3.5vw, 2.75rem) 0;
  border-top: 1px solid var(--phx-line);
}

.phx-terms__item {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--phx-line);
  align-items: start;
}

.phx-terms__num {
  color: var(--phx-muted);
  font-size: 0.8rem;
  font-weight: 700;
  padding-top: 0.25rem;
}

.phx-terms__heading {
  margin: 0;
  font-family: var(--phx-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.phx-terms__body {
  margin: 0;
  color: var(--phx-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

@media (max-width: 760px) {
  .phx-terms__item {
    grid-template-columns: 1.8rem minmax(0, 1fr);
    gap: 0.4rem 0.75rem;
  }

  .phx-terms__body {
    grid-column: 2;
  }
}

/* ---------- prices can never clip, whatever the width ---------- */

.phx-price-row {
  flex-wrap: wrap;
  row-gap: 0.3rem;
}

.phx-price-row > div {
  min-width: 0;
  flex: 1 1 12rem;
}

.phx-price-row__amount,
.phx-tier__price,
.phx-row__meta,
.phx-row__meta span {
  white-space: normal;
  overflow-wrap: break-word;
}

@media (max-width: 640px) {
  .phx-price-row {
    display: block;
    padding: 1rem 0;
  }

  .phx-price-row__amount {
    margin-top: 0.35rem;
    font-size: 1.02rem;
  }

  .phx-price-row > div {
    flex: none;
  }
}

/* ---------- legal, on the page ---------- */

.phx-legal {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--phx-soft);
  border-top: 1px solid var(--phx-line);
}

.phx-legal__group {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--phx-line);
  scroll-margin-top: 9.5rem;
}

.phx-legal__title {
  margin: 0 0 0.4rem;
  color: var(--phx-ink);
  font-family: var(--phx-sans);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.phx-legal__item {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--phx-line-soft);
}

.phx-legal__heading {
  margin: 0;
  color: var(--phx-ink);
  font-family: var(--phx-sans);
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.4;
}

.phx-legal__body {
  margin: 0;
  color: var(--phx-muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

.phx-legal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.phx-legal-buttons a {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--phx-on-dark-line);
  color: var(--phx-paper);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.phx-legal-buttons a:hover {
  background: rgba(247, 248, 245, 0.14);
  border-color: var(--phx-paper);
}

@media (max-width: 760px) {
  .phx-legal__item {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }
}

/* ---------- header over the film: clear, then it gets out of the way ---------- */

.phx-nav {
  transition:
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.phx-nav[data-hidden="true"] {
  transform: translateY(-105%);
}

.phx-nav[data-over-hero="true"] {
  --nav-ink: #f7f8f5;
  --nav-muted: rgba(247, 248, 245, 0.82);
  --nav-line: rgba(247, 248, 245, 0.28);
  background: transparent;
  border-bottom-color: transparent;
  box-shadow: none;
}

.phx-nav[data-over-hero="true"]::before {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 1;
  background: linear-gradient(
    to bottom,
    rgba(9, 22, 15, 0.84) 0%,
    rgba(9, 22, 15, 0.36) 62%,
    rgba(9, 22, 15, 0) 100%
  );
}

.phx-nav[data-over-hero="true"] .phx-logo {
  filter: saturate(1.1) brightness(1.14) contrast(1.02);
}

.phx-nav[data-over-hero="true"] .phx-menu-button {
  border-color: rgba(247, 248, 245, 0.4);
}

@media (prefers-reduced-motion: reduce) {
  .phx-nav {
    transition: none;
  }
}

/* ---------- mobile menu: a centred card, not a full width list ---------- */

.phx-menu {
  display: none;
}

.phx-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 1.5rem);
}

.phx-sheet__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(9, 22, 15, 0.64);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.phx-sheet__panel {
  position: relative;
  width: min(92vw, 430px);
  max-height: 88dvh;
  overflow-y: auto;
  padding: 1.15rem 1.15rem 1.25rem;
  background: var(--phx-paper);
  border: 1px solid var(--phx-line);
  box-shadow: 0 26px 70px rgba(9, 22, 15, 0.32);
  animation: phx-sheet-in 0.22s ease-out both;
}

@keyframes phx-sheet-in {
  from {
    transform: translateY(10px) scale(0.985);
    opacity: 0.66;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.phx-sheet__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--phx-line);
}

.phx-sheet__logo {
  height: 62px;
  width: auto;
  filter: saturate(1.18) brightness(0.9) contrast(1.04);
}

.phx-sheet__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--phx-line);
  background: none;
  color: var(--phx-ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.phx-sheet__close:hover {
  border-color: var(--phx-ink);
}

.phx-sheet__links {
  display: grid;
  margin-top: 0.3rem;
}

.phx-sheet__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--phx-line-soft);
  color: var(--phx-ink);
  font-family: var(--phx-sans);
  font-size: 1.02rem;
  font-weight: 600;
  text-decoration: none;
}

.phx-sheet__link:hover {
  color: var(--phx-green);
}

.phx-sheet__arrow {
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--phx-muted);
  border-right: 1px solid var(--phx-muted);
  transform: rotate(45deg);
}

.phx-sheet__actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.phx-sheet__call {
  padding: 0.85rem;
  text-align: center;
  border: 1px solid var(--phx-ink);
  color: var(--phx-ink);
  font-family: var(--phx-sans);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.phx-sheet__call:hover {
  background: var(--phx-ink);
  color: var(--phx-paper);
}

.phx-sheet__quote {
  padding: 0.9rem;
  text-align: center;
  background: var(--phx-red);
  color: #ffffff;
  font-family: var(--phx-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.phx-sheet__quote:hover {
  background: var(--phx-red-dark);
}

.phx-sheet__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.1rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--phx-line-soft);
}

.phx-sheet__legal a {
  color: var(--phx-muted);
  font-size: 0.78rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.phx-sheet__legal a:hover {
  color: var(--phx-green);
}

@media (prefers-reduced-motion: reduce) {
  .phx-sheet__panel {
    animation: none;
  }
}

/* ---------- legal pages ---------- */

.phx-law {
  min-height: 100dvh;
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  background: var(--phx-paper);
  color: var(--phx-ink);
}

.phx-law__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--phx-max);
  margin: 0 auto;
  padding: 0.85rem clamp(1.1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--phx-line);
}

.phx-law__brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.phx-law__logo {
  height: 62px;
  width: auto;
  filter: saturate(1.18) brightness(0.9) contrast(1.04);
}

.phx-law__back {
  color: var(--phx-muted);
  font-size: 0.86rem;
  text-decoration: none;
  border-bottom: 1px solid var(--phx-line);
  padding-bottom: 0.15rem;
  white-space: nowrap;
}

.phx-law__back:hover {
  color: var(--phx-green);
  border-color: var(--phx-green);
}

.phx-law__body {
  padding-top: clamp(1.75rem, 4vw, 3rem);
}

.phx-law__title {
  margin: 0;
  font-family: var(--phx-sans);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.phx-law__items {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 1.5rem;
  border-top: 1px solid var(--phx-line);
}

.phx-law__item {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 0.85fr) minmax(0, 1.45fr);
  gap: 1rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--phx-line);
}

.phx-law__num {
  color: var(--phx-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding-top: 0.2rem;
}

.phx-law__heading {
  margin: 0;
  font-family: var(--phx-sans);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
}

.phx-law__text {
  margin: 0;
  color: var(--phx-muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

.phx-law__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.phx-law__links a {
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--phx-line);
  color: var(--phx-ink);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
}

.phx-law__links a:hover {
  border-color: var(--phx-ink);
  background: var(--phx-soft);
}

@media (max-width: 760px) {
  .phx-law__item {
    grid-template-columns: 1.7rem minmax(0, 1fr);
    gap: 0.3rem 0.7rem;
  }

  .phx-law__text {
    grid-column: 2;
  }

  .phx-law__logo {
    height: 50px;
  }
}


/* menu sheet: closed by default, only JS opens it */
.phx-sheet {
  display: none;
}

.phx-sheet.is-open {
  display: grid;
}

.phx-sheet[hidden] {
  display: none;
}
