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

  :root {
    --forest: #1B3A2E;
    --terracotta: #B5651D;
    --surveyor-orange: #E8622C;
    --parchment: #F4F1EA;
    --near-black: #141414;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'Inter', sans-serif;
    --mono: 'JetBrains Mono', monospace;
    --section-pad-y: 72px;
    --section-pad-x: 56px;
    --content-max: 1200px;
  }

  html, body { height: 100%; }
  body {
    font-family: var(--sans);
    background: var(--near-black);
    color: var(--parchment);
    overflow-x: hidden;
  }

  /* The scroll track — height comes from section content (equal padding). */
  .scroll-track {
    position: relative;
    height: auto;
  }

  /* The world layer — ONE continuous tall image, fixed in the viewport,
     panned via translateY as the person scrolls the track above. */
  .world {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
  }
  .world-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 100%;
    min-height: 100%;
    /* Do NOT use bare height:auto alone — empty bg-only div collapses to 0.
       aspect-ratio keeps it visible even if JS hasn't run yet;
       setupPan() still sets an explicit px height for the pan math.
       Avoid translateX centering — GSAP's y transform would overwrite it. */
    aspect-ratio: 852 / 1846;
    height: auto;
    background-image: url('../images/hero.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% auto;
    will-change: transform;
    backface-visibility: hidden;
  }
  .world-grade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,12,8,0.32), rgba(20,12,8,0.18) 38%, rgba(12,8,6,0.58) 100%);
    pointer-events: none;
  }
  .world-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.12) 40%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
  }

  /* ── NAV ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px max(56px, calc((100vw - var(--content-max)) / 2));
    transition: background 0.4s ease, backdrop-filter 0.4s ease;
  }
  nav.scrolled { background: rgba(20,20,20,0.5); backdrop-filter: blur(14px); }
  .nav-logo { font-family: var(--serif); font-size: 1.55rem; font-weight: 500; }
  .nav-logo-text { display: inline; }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
  }
  .nav-links a {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(244,241,234,0.85);
    text-decoration: none;
    transition: color 0.25s;
    position: relative;
  }
  .nav-links a:hover { color: var(--surveyor-orange); }
  .nav-links a.nav-phone {
    font-family: var(--mono);
    color: var(--surveyor-orange);
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  }

  .nav-cta {
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--near-black);
    background: var(--surveyor-orange);
    padding: 11px 24px;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.25s;
    white-space: nowrap;
  }
  .nav-cta:hover { background: #ff7a3d; }

  @media (max-width: 900px) {
    :root {
      --section-pad-y: 56px;
      --section-pad-x: 20px;
    }
    .nav-links { display: none; }
    nav {
      padding: 14px 16px;
      gap: 12px;
    }
    .nav-logo {
      font-size: 1.12rem;
      line-height: 1.15;
      min-width: 0;
      flex: 1 1 auto;
      padding-right: 4px;
    }
    .nav-logo-text {
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .nav-cta {
      flex: 0 0 auto;
      padding: 9px 12px;
      font-size: 0.7rem;
    }
    .scene {
      padding: var(--section-pad-y) var(--section-pad-x);
      height: auto;
      min-height: 0;
    }
    #scene0 {
      padding-top: 84px;
      padding-bottom: var(--section-pad-y);
      min-height: 100svh;
    }
    .scene-title {
      font-size: clamp(1.75rem, 8vw, 2.4rem);
    }
    #scene0 .scene-eyebrow {
      font-size: clamp(1.15rem, 5.5vw, 1.7rem);
    }
    #scene0 .scene-offer {
      font-size: clamp(1.85rem, 8vw, 2.6rem);
    }
    #scene0 .scene-title {
      font-size: clamp(1rem, 4vw, 1.25rem);
    }
    .scene-end {
      padding-left: 0;
      padding-right: 0;
      padding-top: var(--section-pad-y);
      min-height: 0;
    }
    .world-image {
      aspect-ratio: 409 / 1024;
      background-image: url('../images/hero-mobile.jpg?v=3');
    }
  }

  /* progress rail */
  .progress-rail {
    position: fixed;
    right: 32px; top: 50%;
    transform: translateY(-50%);
    z-index: 200;
    display: flex; flex-direction: column; gap: 14px;
  }
  .progress-dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(244,241,234,0.25); transition: background 0.3s, transform 0.3s; }
  .progress-dot.active { background: var(--surveyor-orange); transform: scale(1.6); }

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

  /* ── CONTENT PANELS — float on top of the world ── */
  .scene {
    position: relative;
    height: auto;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    z-index: 2;
    padding: var(--section-pad-y) var(--section-pad-x);
  }
  #scene0 {
    align-items: flex-start;
    justify-content: center;
    padding-top: 140px;
    padding-bottom: var(--section-pad-y);
    height: auto;
    min-height: 100vh; /* first screen still fills the viewport */
  }
  .scene-inner { max-width: 560px; }
  .scene-inner-wide {
    max-width: 1100px;
    width: 100%;
  }
  .scene-story .scene-desc {
    max-width: 720px;
  }
  .scene-eyebrow {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--surveyor-orange);
    margin-bottom: 16px;
    text-shadow: 0 2px 14px rgba(0,0,0,0.65), 0 1px 3px rgba(0,0,0,0.8);
  }
  .scene-offer {
    font-family: var(--serif);
    font-size: clamp(1.15rem, 2.2vw, 1.45rem);
    font-weight: 500;
    color: var(--surveyor-orange);
    margin-bottom: 12px;
    text-shadow: 0 2px 14px rgba(0,0,0,0.65), 0 1px 3px rgba(0,0,0,0.8);
  }
  .scene-title {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 500;
    margin-bottom: 18px;
    color: var(--parchment);
    text-shadow: 0 2px 16px rgba(0,0,0,0.5);
  }
  .scene-title em {
    color: var(--surveyor-orange);
    font-style: italic;
    font-weight: 400;
    text-shadow: 0 2px 14px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.85);
  }

  #scene0 .scene-eyebrow,
  #scene0 .scene-offer {
    color: var(--parchment);
  }
  #scene0 .scene-eyebrow {
    font-size: clamp(1.35rem, 3.4vw, 2.35rem);
    line-height: 1.2;
  }
  #scene0 .scene-offer {
    font-size: clamp(2.15rem, 4.8vw, 3.7rem);
    line-height: 1.15;
  }
  #scene0 .scene-title {
    color: var(--surveyor-orange);
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    text-shadow: 0 2px 14px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.85);
  }
  .scene-desc {
    font-size: 1rem;
    color: rgba(244,241,234,0.8);
    line-height: 1.65;
    max-width: 460px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  }

  @media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  }

  /* ── BELOW-THE-FOLD SECTIONS (real site content) ── */
  .content-section {
    position: relative;
    z-index: 3;
    background: var(--parchment);
    color: var(--near-black);
    padding: 100px 56px;
  }
  .content-section.dark {
    background: var(--near-black);
    color: var(--parchment);
  }
  .content-inner { max-width: 1100px; margin: 0 auto; }

  .section-eyebrow-light {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 14px;
  }
  .section-title-light {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    margin-bottom: 20px;
  }
  .section-title-light em { color: var(--surveyor-orange); font-style: italic; font-weight: 400; }
  .section-sub {
    font-size: 1rem;
    color: rgba(20,20,20,0.65);
    max-width: 620px;
    line-height: 1.6;
    margin-bottom: 56px;
  }
  .dark .section-sub { color: rgba(244,241,234,0.7); }

  /* Services float on the panorama (inside .scroll-track) */
  .scene-services {
    align-items: flex-start;
    height: auto;
    min-height: 0;
  }
  .scene-services-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
  }
  .scene-desc-wide {
    max-width: 640px;
    margin-bottom: 40px;
  }
  .services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .service-card {
    border: 1px solid rgba(244, 241, 234, 0.35);
    border-radius: 2px;
    padding: 22px 20px;
    background: rgba(20, 20, 20, 0.28);
    backdrop-filter: blur(8px);
  }
  .service-card h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--parchment);
    text-shadow: 0 1px 10px rgba(0,0,0,0.45);
  }
  .service-card p,
  .service-card ul {
    font-size: 0.9rem;
    color: rgba(244, 241, 234, 0.78);
    line-height: 1.55;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  }
  .service-card ul {
    list-style: disc;
    padding-left: 1.15em;
    margin: 0;
  }
  .service-card li {
    margin-bottom: 4px;
  }
  .service-card li:last-child {
    margin-bottom: 0;
  }

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

  /* Trust grid floating on the panorama */
  .scene-trust {
    align-items: flex-start;
    height: auto;
    min-height: 0;
  }
  .scene-trust-inner {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
  }
  .trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 40px;
  }
  .trust-item {
    border: 1px solid rgba(244, 241, 234, 0.35);
    border-radius: 2px;
    padding: 22px 20px;
    background: rgba(20, 20, 20, 0.28);
    backdrop-filter: blur(8px);
  }
  .trust-item h3 {
    font-family: var(--mono);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--surveyor-orange);
    margin-bottom: 10px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.45);
  }
  .trust-item p {
    font-size: 0.9rem;
    color: rgba(244, 241, 234, 0.78);
    line-height: 1.55;
    text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  }

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

  /* Contact + footer — last panorama section */
  .scene-end {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    height: auto;
    min-height: 0;
    padding: var(--section-pad-y) 0 0;
    box-sizing: border-box;
  }
  .scene-end-main {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 var(--section-pad-x) var(--section-pad-y);
    width: 100%;
  }
  .mini-footer-inner {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 36px;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(244, 241, 234, 0.15);
    border-radius: 4px;
  }
  .mini-footer-inner .scene-eyebrow {
    margin-bottom: 14px;
  }
  .mini-footer-inner .scene-title {
    margin-bottom: 16px;
  }
  .mini-footer-inner .scene-desc {
    margin: 0 auto 8px;
    color: rgba(244, 241, 234, 0.75);
  }
  .mini-footer-inner .cta-phone {
    margin-top: 22px;
  }

  /* Full-bleed footer at the bottom of the last scene */
  .site-footer {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: 2;
    width: 100%;
    margin-top: auto;
    padding: 0;
    flex: 0 0 auto;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(244, 241, 234, 0.15);
  }
  .site-footer-inner {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
    gap: 28px;
    padding: 22px var(--section-pad-x);
    background: transparent;
    border: none;
    border-radius: 0;
  }
  .site-footer-col p,
  .site-footer-copy {
    font-size: 0.8rem;
    line-height: 1.5;
    color: rgba(244, 241, 234, 0.6);
  }
  .site-footer-name {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 4px;
  }
  .site-footer-col:nth-child(2) { text-align: center; }
  .site-footer-col:nth-child(3) { text-align: center; }
  .site-footer-col:nth-child(4) { text-align: right; }
  .site-footer a {
    color: rgba(244, 241, 234, 0.75);
    text-decoration: none;
  }
  .site-footer a:hover { color: var(--surveyor-orange); }
  .site-footer-sep {
    margin: 0 8px;
    color: rgba(244, 241, 234, 0.35);
  }
  .site-footer-credit a {
    color: var(--surveyor-orange);
  }

  .cta-phone {
    display: inline-block;
    margin-top: 30px;
    font-family: var(--mono);
    font-size: 1.6rem;
    color: var(--surveyor-orange);
    text-decoration: none;
    letter-spacing: 0.02em;
  }
  .cta-phone:hover { text-decoration: underline; }

  @media (max-width: 800px) {
    .scene-end {
      padding-top: var(--section-pad-y);
      min-height: 0;
    }
    .scene-end-main {
      padding: 0 var(--section-pad-x) var(--section-pad-y);
      align-items: flex-start;
    }
    .mini-footer-inner {
      padding: 28px 20px;
    }
    .mini-footer-inner .scene-title {
      font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
    .cta-phone {
      font-size: 1.35rem;
    }
    .site-footer-inner {
      grid-template-columns: 1fr;
      align-items: start;
      gap: 14px;
      padding: 20px;
    }
    .site-footer-col:nth-child(2),
    .site-footer-col:nth-child(3),
    .site-footer-col:nth-child(4) {
      text-align: left;
    }
  }

  /* ── QUOTE FORM (hero) ── */
  .hero-with-form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
  }
  .hero-with-form .scene-inner {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }
  .quote-card {
    flex: 0 0 calc(50% - 24px);
    width: calc(50% - 24px);
    max-width: 520px;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(16px);
    border: 1px solid var(--surveyor-orange);
    border-radius: 5px;
    padding: 32px;
  }
  .quote-card h3 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 6px;
  }
  .quote-card .quote-sub {
    font-size: 0.85rem;
    color: rgba(244,241,234,0.6);
    margin-bottom: 22px;
  }
  .quote-field {
    margin-bottom: 14px;
  }
  .quote-field label {
    display: block;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(244,241,234,0.5);
    margin-bottom: 6px;
  }
  .quote-field input,
  .quote-field select,
  .quote-field textarea {
    width: 100%;
    background: rgba(244,241,234,0.06);
    border: 1px solid rgba(244,241,234,0.2);
    border-radius: 2px;
    padding: 10px 12px;
    color: var(--parchment);
    font-family: var(--sans);
    font-size: 0.9rem;
  }
  .quote-field input::placeholder,
  .quote-field textarea::placeholder { color: rgba(244,241,234,0.35); }
  .quote-field select { color: var(--parchment); }
  .quote-field select option { background: var(--near-black); color: var(--parchment); }
  .quote-field textarea { resize: none; height: 64px; }
  .quote-field input:focus,
  .quote-field select:focus,
  .quote-field textarea:focus {
    outline: none;
    border-color: var(--surveyor-orange);
  }
  .quote-check {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .quote-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 0;
    padding: 0;
    accent-color: var(--surveyor-orange);
    background: rgba(244,241,234,0.06);
    border: 1px solid rgba(244,241,234,0.2);
    border-radius: 2px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    place-content: center;
  }
  .quote-check input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    background: var(--surveyor-orange);
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0, 43% 62%);
  }
  .quote-check input[type="checkbox"]:checked::before {
    transform: scale(1);
  }
  .quote-check input[type="checkbox"]:focus {
    outline: none;
    border-color: var(--surveyor-orange);
  }
  .quote-check label {
    display: inline;
    margin: 0;
    text-transform: none;
    letter-spacing: 0.02em;
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--parchment);
    cursor: pointer;
  }
  .quote-submit {
    width: 100%;
    background: var(--surveyor-orange);
    color: var(--near-black);
    border: none;
    border-radius: 2px;
    padding: 13px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.25s;
  }
  .quote-submit:hover { background: #ff7a3d; }
  .quote-status {
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--surveyor-orange);
    display: none;
  }
  .quote-status.is-success { color: #8fbf88; }
  .quote-status.is-error { color: #e07a6a; }
  .quote-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
  }
  .quote-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  @media (max-width: 900px) {
    .hero-with-form {
      flex-direction: column;
      align-items: stretch;
      flex-wrap: wrap;
      gap: 28px;
    }
    .quote-card {
      flex: 1 1 auto;
      width: 100%;
      max-width: none;
      padding: 24px 18px;
    }
    .hero-with-form .scene-inner {
      width: 100%;
    }
  }
