/*
Theme Name: Kootenay Truck Girl
Theme URI: https://kootenaytruckgirl.ca/
Author: Kootenay Truck Girl
Description: Lightweight custom WordPress theme for Kootenay Truck Girl.
Version: 0.3.0
Text Domain: kootenay-truck-girl
*/
:root {
      --navy: #0B1E2D;
      --teal: #5DB8B9;
      --green: #9DB29B;
      --warm: #C47D55;
      --white: #FFFFFF;
      --cream: #F6F3EC;
      --ink: #1D2730;
      --muted: #66717A;
      --line: #DDD8CE;
      --max: 1180px;
      --radius: 22px;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      color: var(--ink);
      background: var(--white);
      line-height: 1.6;
      overflow-x: hidden;
    }

    a { color: inherit; }
    img { display: block; max-width: 100%; }

    .wrap {
      width: min(92%, var(--max));
      margin: 0 auto;
    }

    .eyebrow {
      margin: 0 0 10px;
      font-size: .78rem;
      font-weight: 800;
      letter-spacing: .14em;
      text-transform: uppercase;
      color: var(--teal);
    }

    .display {
      margin: 0;
      font-size: clamp(3.6rem, 8vw, 6.9rem);
      line-height: .93;
      letter-spacing: -.055em;
      color: var(--navy);
      text-wrap: balance;
    }

    .headline {
      margin: 0;
      font-size: clamp(2.3rem, 5vw, 4.25rem);
      line-height: 1.02;
      letter-spacing: -.045em;
      color: var(--navy);
      text-wrap: balance;
    }

    .lead {
      max-width: 720px;
      margin: 20px 0 0;
      color: var(--muted);
      font-size: clamp(1rem, 2vw, 1.2rem);
    }

    .section {
      padding: 90px 0;
    }

    .btns {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 28px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 50px;
      padding: 12px 22px;
      border: 2px solid var(--navy);
      border-radius: 999px;
      background: var(--navy);
      color: white;
      text-decoration: none;
      font-weight: 800;
      font-size: .95rem;
      transition: transform .2s ease, background .2s ease, border-color .2s ease;
    }

    .btn:hover { transform: translateY(-2px); }
    .btn.alt {
      background: transparent;
      color: var(--navy);
    }
    .btn.alt:hover { background: var(--cream); }
    .btn.light {
      background: white;
      color: var(--navy);
      border-color: white;
    }

    /* HEADER */
    header {
      position: sticky;
      top: 0;
      z-index: 50;
      background: rgba(255,255,255,.94);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(6,21,40,.08);
    }

    .nav {
      min-height: 74px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 28px;
    }

    .brand {
      text-decoration: none;
      font-weight: 900;
      color: var(--navy);
      letter-spacing: -.025em;
      font-size: 1.08rem;
    }

    .navlinks {
      display: flex;
      align-items: center;
      gap: 24px;
    }

    .navlinks a {
      text-decoration: none;
      font-size: .88rem;
      font-weight: 700;
      color: #344150;
    }

    .navlinks a:hover { color: var(--teal); }

    .navlinks .navcta {
      padding: 10px 16px;
      border-radius: 999px;
      background: var(--navy);
      color: white;
    }

    /* HERO */
    .hero {
      position: relative;
      overflow: hidden;
      background: var(--cream);
    }

    .hero::after {
      content: "";
      position: absolute;
      right: -5vw;
      bottom: -15vw;
      width: 58vw;
      height: 34vw;
      min-width: 660px;
      min-height: 390px;
      background:
        linear-gradient(145deg, transparent 0 29%, rgba(93,184,185,.14) 30% 42%, transparent 43%),
        linear-gradient(155deg, transparent 0 46%, rgba(164,208,180,.18) 47% 59%, transparent 60%);
      pointer-events: none;
    }

    .hero-grid {
      position: relative;
      z-index: 2;
      display: grid;
      grid-template-columns: 1.03fr .97fr;
      min-height: 720px;
      align-items: center;
      gap: 68px;
      padding: 74px 0 84px;
    }

    .hero-copy {
      max-width: 700px;
    }

    .hero-kicker {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 18px;
      color: var(--teal);
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .13em;
      font-size: .78rem;
    }

    .hero-kicker::before {
      content: "";
      width: 38px;
      height: 2px;
      background: var(--teal);
    }

    .hero-sub {
      max-width: 650px;
      margin-top: 24px;
      color: #5C6570;
      font-size: 1.18rem;
    }

    .hero-note {
      margin-top: 20px;
      color: #7A828B;
      font-size: .86rem;
    }

    .hero-media {
      position: relative;
      min-height: 560px;
    }

    .hero-photo {
      position: absolute;
      inset: 0 0 0 36px;
      overflow: hidden;
      border-radius: 32px 32px 10px 32px;
      background:
        linear-gradient(160deg, rgba(93,184,185,.95), rgba(164,208,180,.88));
      box-shadow: 0 28px 60px rgba(6,21,40,.13);
    }

    .hero-photo::before {
      content: "";
      position: absolute;
      inset: auto 0 0;
      height: 45%;
      background:
        linear-gradient(145deg, transparent 0 20%, rgba(6,21,40,.13) 21% 35%, transparent 36%),
        linear-gradient(155deg, transparent 0 48%, rgba(6,21,40,.10) 49% 65%, transparent 66%);
    }

    .hero-photo-placeholder {
      position: relative;
      z-index: 2;
      height: 100%;
      min-height: 560px;
      display: grid;
      place-items: center;
      padding: 40px;
      color: var(--navy);
      text-align: center;
      font-weight: 900;
    }

    .hero-tag {
      position: absolute;
      left: 0;
      bottom: 34px;
      z-index: 3;
      max-width: 260px;
      padding: 18px 20px;
      background: white;
      border-left: 5px solid var(--teal);
      box-shadow: 0 18px 45px rgba(6,21,40,.10);
    }

    .hero-tag strong {
      display: block;
      color: var(--navy);
      font-size: 1.05rem;
    }

    .hero-tag span {
      color: var(--muted);
      font-size: .84rem;
    }

    /* VALUE STRIP */
    .value-strip {
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
      background: white;
    }

    .value-grid {
      display: grid;
      grid-template-columns: repeat(3,1fr);
    }

    .value {
      padding: 24px 30px;
    }

    .value + .value { border-left: 1px solid var(--line); }

    .value strong {
      display: block;
      color: var(--navy);
      margin-bottom: 3px;
    }

    .value span {
      color: var(--muted);
      font-size: .88rem;
    }

    /* VEHICLE FINDER */
    .finder-intro {
      display: grid;
      grid-template-columns: .9fr 1.1fr;
      gap: 60px;
      align-items: end;
      margin-bottom: 42px;
    }

    .finder-grid {
      display: grid;
      grid-template-columns: repeat(5,1fr);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .finder {
      position: relative;
      min-height: 180px;
      padding: 28px 22px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      text-decoration: none;
      background: white;
      transition: background .2s ease, transform .2s ease;
      cursor: pointer;
    }

    .finder + .finder { border-left: 1px solid var(--line); }

    .finder:hover {
      background: var(--cream);
      transform: translateY(-3px);
    }

    .finder .icon {
      position: absolute;
      top: 24px;
      left: 22px;
      width: 42px;
      height: 42px;
      border: 2px solid var(--teal);
      border-radius: 50%;
    }

    .finder .icon::before,
    .finder .icon::after {
      content: "";
      position: absolute;
      background: var(--teal);
    }

    .finder .icon::before {
      width: 18px;
      height: 2px;
      left: 10px;
      top: 19px;
    }

    .finder .icon::after {
      width: 2px;
      height: 18px;
      left: 18px;
      top: 11px;
    }

    .finder strong {
      color: var(--navy);
      font-size: 1.08rem;
    }

    .finder span {
      margin-top: 6px;
      color: var(--muted);
      font-size: .8rem;
    }

    /* ABOUT */
    .about {
      background: var(--cream);
    }

    .about-grid {
      display: grid;
      grid-template-columns: .95fr 1.05fr;
      gap: 72px;
      align-items: center;
    }

    .about-photo {
      min-height: 540px;
      border-radius: 10px 30px 30px 30px;
      background: linear-gradient(150deg, var(--green), var(--teal));
      display: grid;
      place-items: center;
      color: var(--navy);
      font-weight: 900;
      text-align: center;
      padding: 40px;
    }

    .about-copy p {
      color: var(--muted);
      max-width: 660px;
    }

    .signature {
      margin-top: 26px;
      font-weight: 900;
      color: var(--navy) !important;
    }

    /* REVIEWS */
    .reviews {
      background: white;
    }

    .review-wrap {
      max-width: 930px;
    }

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

    .review:last-child {
      border-bottom: 1px solid var(--line);
    }

    .quote {
      margin: 0;
      font-size: clamp(1.6rem, 3vw, 2.45rem);
      line-height: 1.25;
      letter-spacing: -.025em;
      color: var(--navy);
    }

    .review-meta {
      display: flex;
      gap: 12px;
      align-items: center;
      margin-top: 20px;
      color: var(--muted);
      font-size: .88rem;
      font-weight: 700;
    }

    .stars {
      color: var(--teal);
      letter-spacing: .06em;
    }

    /* REFERRAL */
    .referral {
      padding: 0;
      background: var(--navy);
      color: white;
    }

    .referral-grid {
      display: grid;
      grid-template-columns: 1fr auto;
      align-items: center;
      gap: 60px;
      min-height: 290px;
      padding: 52px 0;
    }

    .referral .eyebrow { color: var(--warm); }
    .referral .headline { color: white; max-width: 830px; }
    .referral p {
      max-width: 760px;
      color: rgba(255,255,255,.72);
      margin: 14px 0 0;
    }

    .referral-amount {
      min-width: 260px;
      padding-left: 34px;
      border-left: 1px solid rgba(255,255,255,.18);
      text-align: left;
    }

    .referral-amount small {
      display: block;
      color: var(--warm);
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .12em;
      font-size: .72rem;
    }

    .referral-amount strong {
      display: block;
      margin-top: 4px;
      font-size: clamp(3.5rem, 7vw, 5.2rem);
      line-height: .95;
      letter-spacing: -.055em;
      color: white;
    }

    .referral-amount span {
      display: block;
      margin-top: 8px;
      color: rgba(255,255,255,.7);
      font-size: .85rem;
      max-width: 220px;
    }

    /* VIDEO */
    .videos {
      background: var(--cream);
    }

    .video-top {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 40px;
      align-items: end;
      margin-bottom: 36px;
    }

    .video-grid {
      display: grid;
      grid-template-columns: repeat(3,1fr);
      gap: 22px;
    }

    .video-card {
      background: white;
      border: 1px solid var(--line);
    }

    .video-thumb {
      aspect-ratio: 16/9;
      display: grid;
      place-items: center;
      background: linear-gradient(150deg, var(--teal), var(--navy));
      color: white;
      font-weight: 900;
      position: relative;
    }

    .play {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: white;
      color: var(--navy);
      display: grid;
      place-items: center;
      box-shadow: 0 12px 30px rgba(0,0,0,.14);
      font-size: 1.1rem;
    }

    .video-copy {
      padding: 20px 22px 24px;
    }

    .video-copy small {
      color: var(--teal);
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .1em;
      font-size: .7rem;
    }

    .video-copy h3 {
      margin: 7px 0 8px;
      color: var(--navy);
      font-size: 1.05rem;
    }

    .video-copy p {
      margin: 0;
      color: var(--muted);
      font-size: .87rem;
    }

    /* FORM */
    .contact {
      background: white;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: .9fr 1.1fr;
      gap: 72px;
      align-items: start;
    }

    .contact-side {
      position: sticky;
      top: 110px;
    }

    .contact-side p {
      color: var(--muted);
      max-width: 520px;
    }

    form {
      border-top: 4px solid var(--teal);
      padding-top: 28px;
    }

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

    .field { margin-bottom: 16px; }
    .full { grid-column: 1/-1; }

    label {
      display: block;
      margin-bottom: 7px;
      font-size: .84rem;
      font-weight: 800;
      color: var(--navy);
    }

    input, select, textarea {
      width: 100%;
      border: 1px solid #C8D0D2;
      border-radius: 10px;
      padding: 13px 14px;
      background: white;
      font: inherit;
      color: var(--ink);
    }

    input:focus, select:focus, textarea:focus {
      outline: 3px solid rgba(93,184,185,.14);
      border-color: var(--teal);
    }

    textarea {
      min-height: 125px;
      resize: vertical;
    }

    .referral-fields {
      display: none;
      grid-column: 1/-1;
      padding: 18px;
      background: var(--cream);
      border-left: 4px solid var(--green);
    }

    .referral-fields.show { display: block; }

    .fineprint {
      margin-top: 12px;
      color: #7B848C;
      font-size: .75rem;
    }


    /* HOW IT WORKS */
    .how {
      background: white;
    }

    .how-top {
      display: grid;
      grid-template-columns: .85fr 1.15fr;
      gap: 60px;
      align-items: end;
      margin-bottom: 44px;
    }

    .how-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .how-step {
      padding: 34px 30px 38px;
    }

    .how-step + .how-step {
      border-left: 1px solid var(--line);
    }

    .how-num {
      display: inline-flex;
      width: 42px;
      height: 42px;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: var(--green);
      color: var(--navy);
      font-weight: 900;
      margin-bottom: 18px;
    }

    .how-step h3 {
      margin: 0 0 8px;
      color: var(--navy);
      font-size: 1.15rem;
    }

    .how-step p {
      margin: 0;
      color: var(--muted);
      font-size: .92rem;
    }

    /* LOCAL BRAND */
    .local {
      background:
        linear-gradient(180deg, rgba(93,184,185,.08), rgba(164,208,180,.08)),
        var(--cream);
    }

    .local-grid {
      display: grid;
      grid-template-columns: 1.05fr .95fr;
      gap: 72px;
      align-items: center;
    }

    .local-art {
      min-height: 420px;
      border-radius: 28px 8px 28px 28px;
      position: relative;
      overflow: hidden;
      background:
        linear-gradient(160deg, rgba(93,184,185,.92), rgba(164,208,180,.84));
    }

    .local-art::before,
    .local-art::after {
      content: "";
      position: absolute;
      left: -5%;
      width: 110%;
      background: rgba(6,21,40,.12);
      clip-path: polygon(0 100%, 14% 58%, 25% 73%, 39% 34%, 51% 62%, 66% 18%, 79% 58%, 100% 38%, 100% 100%);
    }

    .local-art::before {
      bottom: 0;
      height: 72%;
      opacity: .45;
    }

    .local-art::after {
      bottom: -8%;
      height: 55%;
      opacity: .28;
      transform: scaleX(-1);
    }

    .local-label {
      position: absolute;
      right: 22px;
      bottom: 18px;
      z-index: 2;
      color: rgba(6,21,40,.38);
      font-weight: 900;
      font-size: clamp(2.5rem, 6vw, 5.4rem);
      letter-spacing: -.06em;
    }

    .local-copy p {
      color: var(--muted);
      max-width: 660px;
    }

    .local-list {
      display: grid;
      grid-template-columns: repeat(2,1fr);
      gap: 12px 26px;
      margin-top: 26px;
    }

    .local-list span {
      position: relative;
      padding-left: 18px;
      color: var(--navy);
      font-size: .9rem;
      font-weight: 700;
    }

    .local-list span::before {
      content: "";
      position: absolute;
      left: 0;
      top: .63em;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--teal);
      transform: translateY(-50%);
    }

    /* CONTENT HUB */
    .content-hub {
      background: white;
    }

    .content-top {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 40px;
      align-items: end;
      margin-bottom: 34px;
    }

    .content-grid {
      display: grid;
      grid-template-columns: 1.15fr .85fr .85fr;
      gap: 18px;
    }

    .content-card {
      border: 1px solid var(--line);
      background: white;
      min-height: 250px;
      padding: 26px;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      text-decoration: none;
      transition: transform .2s ease, border-color .2s ease, background .2s ease;
    }

    .content-card:hover {
      transform: translateY(-3px);
      border-color: var(--teal);
      background: var(--cream);
    }

    .content-card.featured {
      min-height: 360px;
      background:
        linear-gradient(165deg, rgba(93,184,185,.10), rgba(164,208,180,.16)),
        white;
    }

    .content-card small {
      color: var(--teal);
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: .1em;
      font-size: .68rem;
    }

    .content-card h3 {
      margin: 8px 0 8px;
      color: var(--navy);
      font-size: 1.18rem;
      line-height: 1.18;
    }

    .content-card p {
      margin: 0;
      color: var(--muted);
      font-size: .88rem;
    }

    /* FAQ */
    .faq {
      background: var(--cream);
    }

    .faq-grid {
      display: grid;
      grid-template-columns: .8fr 1.2fr;
      gap: 70px;
      align-items: start;
    }

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

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

    .faq-q {
      width: 100%;
      padding: 20px 0;
      background: none;
      border: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      text-align: left;
      color: var(--navy);
      font: inherit;
      font-weight: 800;
      cursor: pointer;
    }

    .faq-q::after {
      content: "+";
      color: var(--teal);
      font-size: 1.5rem;
      font-weight: 400;
      transition: transform .2s ease;
    }

    .faq-item.open .faq-q::after {
      transform: rotate(45deg);
    }

    .faq-a {
      display: none;
      padding: 0 0 20px;
      color: var(--muted);
      font-size: .92rem;
      max-width: 720px;
    }

    .faq-item.open .faq-a {
      display: block;
    }

    /* CONTACT POLISH */
    .contact-quick {
      display: grid;
      gap: 10px;
      margin-top: 30px;
    }

    .quick-link {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 0;
      border-bottom: 1px solid var(--line);
      text-decoration: none;
      color: var(--navy);
      font-weight: 800;
    }

    .quick-link span {
      color: var(--teal);
      font-weight: 900;
    }

    /* FOOTER */
    footer {
      background: var(--navy);
      color: rgba(255,255,255,.72);
      padding: 48px 0 24px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.2fr .8fr .8fr;
      gap: 48px;
      padding-bottom: 34px;
    }

    footer h3, footer h4 { color: white; margin-top: 0; }
    footer h4 { font-size: .9rem; margin-bottom: 12px; }

    footer a {
      display: block;
      margin: 7px 0;
      color: rgba(255,255,255,.72);
      text-decoration: none;
    }

    footer a:hover { color: var(--green); }

    .copyright {
      border-top: 1px solid rgba(255,255,255,.10);
      padding-top: 20px;
      font-size: .76rem;
    }

    /* SMALL, USEFUL MOTION */
    .reveal {
      opacity: 1;
      transform: none;
    }

    .mobile-cta {
      display: none;
    }

    @media (max-width: 980px) {
      .navlinks { display: none; }

      .hero-grid,
      .about-grid,
      .contact-grid,
      .finder-intro,
      .how-top,
      .local-grid,
      .faq-grid {
        grid-template-columns: 1fr;
      }

      .hero-grid {
        min-height: auto;
        gap: 42px;
      }

      .hero-media { min-height: 520px; }

      .finder-grid { grid-template-columns: repeat(3,1fr); }
      .finder:nth-child(4),
      .finder:nth-child(5) { border-top: 1px solid var(--line); }

      .video-grid { grid-template-columns: repeat(2,1fr); }
      .content-grid { grid-template-columns: 1fr 1fr; }
      .content-card.featured { grid-column: 1 / -1; }
      .how-grid { grid-template-columns: 1fr; }
      .how-step + .how-step {
        border-left: 0;
        border-top: 1px solid var(--line);
      }

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

      .referral-amount {
        border-left: 0;
        border-top: 1px solid rgba(255,255,255,.18);
        padding: 26px 0 0;
      }

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

      .contact-side { position: static; }
    }

    @media (max-width: 700px) {
      body { padding-bottom: 72px; }
      .section { padding: 66px 0; }

      .hero-grid { padding: 52px 0 64px; }

      .display {
        font-size: clamp(3.2rem, 16vw, 5rem);
      }

      .hero-media {
        min-height: 420px;
      }

      .hero-photo {
        inset: 0;
        border-radius: 24px 24px 8px 24px;
      }

      .hero-photo-placeholder {
        min-height: 420px;
      }

      .hero-tag {
        left: 14px;
        right: 14px;
        bottom: 14px;
        max-width: none;
      }

      .value-grid,
      .finder-grid,
      .video-grid,
      .content-grid,
      .form-grid,
      .footer-grid,
      .local-list {
        grid-template-columns: 1fr;
      }

      .value + .value,
      .finder + .finder {
        border-left: 0;
        border-top: 1px solid var(--line);
      }

      .finder {
        min-height: 120px;
      }

      .finder .icon {
        top: 20px;
      }

      .about-photo {
        min-height: 410px;
      }

      .video-top {
        grid-template-columns: 1fr;
      }

      .referral-grid {
        min-height: auto;
        padding: 46px 0;
      }

      .mobile-cta {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 100;
        display: grid;
        grid-template-columns: .8fr 1.2fr;
        gap: 8px;
        padding: 8px;
        background: rgba(255,255,255,.96);
        border: 1px solid rgba(6,21,40,.10);
        border-radius: 15px;
        box-shadow: 0 14px 34px rgba(6,21,40,.16);
        backdrop-filter: blur(10px);
        transform: translateY(120%);
        transition: transform .25s ease;
      }

      .mobile-cta.show {
        transform: translateY(0);
      }

      .mobile-cta .btn {
        min-height: 44px;
        padding: 10px 12px;
        font-size: .8rem;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after {
        transition-duration: .001ms !important;
        animation-duration: .001ms !important;
      }
      .reveal {
        opacity: 1;
        transform: none;
      }
    }
  
    /* V6 MOTION SYSTEM */
    .scroll-progress {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 999;
      width: 0%;
      height: 3px;
      background: linear-gradient(90deg, var(--teal), var(--green));
      box-shadow: 0 0 14px rgba(93,184,185,.45);
      pointer-events: none;
    }

    .hero-copy { animation: ktgHeroCopyIn .8s cubic-bezier(.2,.7,.2,1) both; }
    .hero-media {
      animation: ktgHeroMediaIn .95s .12s cubic-bezier(.2,.7,.2,1) both;
      will-change: transform;
    }
    .hero-tag { animation: ktgHeroTagIn .7s .55s cubic-bezier(.2,.7,.2,1) both; }

    @keyframes ktgHeroCopyIn {
      from { opacity: 0; transform: translateY(28px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    @keyframes ktgHeroMediaIn {
      from { opacity: 0; transform: translateX(38px) scale(.975); }
      to   { opacity: 1; transform: translateX(0) scale(1); }
    }
    @keyframes ktgHeroTagIn {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .hero::after { animation: ktgMountainDrift 12s ease-in-out infinite alternate; }
    .local-art::before { animation: ktgLocalMountainA 13s ease-in-out infinite alternate; }
    .local-art::after { animation: ktgLocalMountainB 16s ease-in-out infinite alternate; }

    @keyframes ktgMountainDrift {
      from { transform: translate3d(-12px, 3px, 0) scale(1); }
      to   { transform: translate3d(14px, -4px, 0) scale(1.03); }
    }
    @keyframes ktgLocalMountainA {
      from { transform: translateX(-10px) scale(1.02); }
      to   { transform: translateX(12px) scale(1.05); }
    }
    @keyframes ktgLocalMountainB {
      from { transform: translateX(8px) scaleX(-1) scale(1.02); }
      to   { transform: translateX(-10px) scaleX(-1) scale(1.06); }
    }

    /* Default state is visible. JavaScript upgrades it to scroll reveals. */
    .motion-ready .scroll-reveal {
      opacity: 0;
      transform: translateY(28px);
      transition: opacity .72s cubic-bezier(.2,.7,.2,1),
                  transform .72s cubic-bezier(.2,.7,.2,1);
    }
    .motion-ready .scroll-reveal.from-left { transform: translateX(-34px); }
    .motion-ready .scroll-reveal.from-right { transform: translateX(34px); }
    .motion-ready .scroll-reveal.is-visible {
      opacity: 1;
      transform: translate(0,0);
    }

    .motion-ready .scroll-stagger > * {
      opacity: 0;
      transform: translateY(18px);
      transition: opacity .55s cubic-bezier(.2,.7,.2,1),
                  transform .55s cubic-bezier(.2,.7,.2,1);
    }
    .motion-ready .scroll-stagger.is-visible > * {
      opacity: 1;
      transform: translateY(0);
    }
    .motion-ready .scroll-stagger.is-visible > *:nth-child(2) { transition-delay: .08s; }
    .motion-ready .scroll-stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
    .motion-ready .scroll-stagger.is-visible > *:nth-child(4) { transition-delay: .24s; }
    .motion-ready .scroll-stagger.is-visible > *:nth-child(5) { transition-delay: .32s; }

    .video-card .play { transition: transform .22s ease, box-shadow .22s ease; }
    .video-card:hover .play {
      transform: scale(1.08);
      box-shadow: 0 16px 36px rgba(0,0,0,.18);
    }

    .referral-amount strong.ktg-pop {
      animation: ktgAmountPop .55s cubic-bezier(.2,.8,.2,1);
    }
    @keyframes ktgAmountPop {
      0%   { transform: scale(.94); opacity: .65; }
      70%  { transform: scale(1.035); opacity: 1; }
      100% { transform: scale(1); }
    }

    @media (prefers-reduced-motion: reduce) {
      .hero-copy,.hero-media,.hero-tag,.hero::after,.local-art::before,.local-art::after {
        animation: none !important;
      }
      .motion-ready .scroll-reveal,
      .motion-ready .scroll-stagger > * {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
      }
    }

    /* v0.3 conversion hierarchy refinements */
    .value-strip + #vehicle-finder {
      padding-top: 76px;
    }

    #reviews {
      padding-top: 78px;
      padding-bottom: 78px;
    }

    @media (max-width: 700px) {
      .value-strip + #vehicle-finder {
        padding-top: 58px;
      }

      #reviews {
        padding-top: 62px;
        padding-bottom: 62px;
      }
    }
