.site-header, .inner-page .site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  background: linear-gradient(112deg, rgb(15 24 20 / .96), rgb(32 46 38 / .93)) !important;
  border-color: #dcb17c45;
  box-shadow: 0 6px 20px #10161322, inset 0 1px #fff1;
  /* Override the legacy mobile header blur: no full-width scroll repaint. */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
html { scroll-padding-top: 88px; }
.new-home { --home-nav-height: 82px; }
.new-home > .site-header {
  margin-bottom: calc(-1 * var(--home-nav-height)) !important;
  background: transparent !important;
  border-color: transparent;
  box-shadow: none;
  transition: translate .65s cubic-bezier(.22,.61,.36,1), visibility .65s;
}
.new-home > .site-header.past-intro:not(:focus-within) {
  translate: 0 -100%;
  visibility: hidden;
}
.new-home .site-header nav a { text-shadow: 0 1px 3px #070d0ae6; }
.home-intro .field-hero-copy { padding-top: max(102px, 9vw); }
.site-header .header-actions { display: flex; align-items: center; gap: 9px; flex: none; }
.site-header .header-phone, .site-header .header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}
.site-header .header-phone {
  width: 44px;
  border: 1px solid #dcb17c71;
  border-radius: 6px;
  color: #f1c58d;
  background: #e7ceab0d;
}
.site-header .header-contact { padding-inline: 15px; white-space: nowrap; }
.site-header .header-contact::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 9px;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
  transform: rotate(45deg);
}

/* Translucent tints let the scene show through the frosted surface. */
:is(.primary, .outline, .site-header .header-contact, .site-header .header-phone, .field-scroll a, .inner-page .button) {
  --glass-top: rgb(250 226 192 / .78);
  --glass-bottom: rgb(220 174 122 / .69);
  --glass-edge: rgb(255 231 198 / .85);
  --glass-ink: #171b17;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--glass-ink) !important;
  background: linear-gradient(155deg, var(--glass-top), var(--glass-bottom)) !important;
  border-color: var(--glass-edge) !important;
  -webkit-backdrop-filter: blur(8px) saturate(125%);
  backdrop-filter: blur(8px) saturate(125%);
  box-shadow: inset 0 1px 1px #fffbd6, inset 0 -2px 4px #4a301b36, 0 5px 16px #0c120e42;
  transition: transform .58s cubic-bezier(.24,.62,.36,1);
}
:is(.primary, .outline, .site-header .header-contact, .site-header .header-phone, .field-scroll a, .inner-page .button)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 144px;
  height: 144px;
  z-index: -1;
  background: radial-gradient(circle, #ffffff67, transparent 70%);
  transform: translate(calc(var(--glass-x, 0px) - 50%), calc(var(--glass-y, 0px) - 50%));
  opacity: 0;
  pointer-events: none;
  transition: opacity .65s ease;
}
.site-header :is(.header-contact, .header-phone) {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
:is(.outline, .site-header .header-phone, .field-scroll a) {
  --glass-top: rgb(226 209 181 / .2);
  --glass-bottom: rgb(24 42 33 / .42);
  --glass-edge: rgb(245 217 179 / .55);
  --glass-ink: #fff5e7;
  box-shadow: inset 0 1px 0 #ffffff3d, inset 0 -1px 0 #09110d38, 0 4px 12px #0c120e32;
}
.field-merch-copy .primary {
  --glass-top: rgb(49 78 47 / .9);
  --glass-bottom: rgb(23 48 33 / .86);
  --glass-edge: rgb(146 171 135 / .86);
  --glass-ink: #fff8eb;
}
.field-feature .outline {
  --glass-top: rgb(255 253 244 / .75);
  --glass-bottom: rgb(237 225 205 / .54);
  --glass-edge: rgb(79 103 76 / .7);
  --glass-ink: #19291e;
}
@media (hover: hover) and (pointer: fine) {
  :is(.primary, .outline, .site-header .header-contact, .site-header .header-phone, .field-scroll a, .inner-page .button):hover {
    transform: translateY(-2px);
  }
  :is(.primary, .outline, .site-header .header-contact, .site-header .header-phone, .field-scroll a, .inner-page .button):hover::before {
    opacity: .8;
  }
  :is(.primary, .outline, .site-header .header-contact, .site-header .header-phone, .field-scroll a, .inner-page .button):active { transform: translateY(0); }
}

.field-hero h1, .merch-page-hero h1, .inner-page main h1 { animation: hero-arrive 1.45s cubic-bezier(.25,.62,.33,1) both; }
@keyframes hero-arrive {
  /* Keep primary content painted immediately for reading and LCP. */
  from { transform: translateY(10px); }
  to { transform: translateY(0); }
}
.field-scroll { display: grid; place-items: center; padding: 8px 0; background: #1c2b20; }
.field-scroll a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #f2d0a4;
  border: 1px solid #dcb17c71;
  border-radius: 50%;
  background: #f2d0a411;
}
#divisions-title { scroll-margin-top: 18px; }

.field-division-grid { gap: 10px; }
.field-division {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  isolation: isolate;
  min-height: clamp(244px, 24vw, 390px);
  border-radius: 10px;
  background: #1c2b20;
  box-shadow: 0 5px 16px #12191520;
}
.field-division > img {
  position: absolute;
  inset: 0 0 auto;
  z-index: -2;
  width: 100%;
  height: 79%;
  object-fit: cover;
  object-position: 50% 28%;
}
.field-division::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #152218 4%, #152218f5 22%, #15221861 61%, transparent 86%);
}
.field-division > div {
  position: relative;
  display: block;
  padding: clamp(17px, 2.5vw, 36px);
  padding-right: clamp(56px, 6vw, 87px);
}
.field-division .tile-arrow {
  background: linear-gradient(145deg, rgb(255 233 193 / .82), rgb(220 176 117 / .68));
  border: 1px solid #ffe9c5b0;
  box-shadow: inset 0 1px #fff9, 0 4px 9px #0c120e36;
}
.field-division h3 {
  font-size: clamp(25px, 3vw, 45px);
  line-height: .96;
  text-transform: uppercase;
  text-wrap: balance;
}
.field-division p:not(.field-kicker) { margin: 9px 0 0; font-size: clamp(13px, 1.15vw, 16px); }
.field-division .tile-arrow {
  position: absolute;
  right: clamp(13px, 1.8vw, 23px);
  bottom: clamp(17px, 2.3vw, 31px);
  display: grid;
  place-items: center;
  width: 40px;
  height: 34px;
  border-radius: 5px;
  color: #162018;
}
@media (min-width: 1024px) {
  .field-division-grid { padding-inline: 12px; }
  .field-division { transform: skewX(-6deg); }
  .field-division > img { inset-inline: -5%; width: 110%; max-width: none; transform: skewX(6deg); }
  .field-division > div { transform: skewX(6deg); }
}
/* Scroll position drives movement at both viewport edges. */
[data-reveal] {
  --motion-distance: clamp(28px, 4vw, 56px);
  --motion-edge-opacity: .82;
}
[data-reveal="section"] {
  --motion-distance: clamp(16px, 2.5vw, 32px);
  --motion-edge-opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) and (animation-range: cover 0% cover 100%) {
    [data-reveal] {
      animation: scroll-through auto linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
  [data-reveal].motion-fallback {
    transition: translate .75s cubic-bezier(.22,.61,.36,1), opacity .75s ease;
  }
  .motion-fallback.motion-below { translate: 0 var(--motion-distance); opacity: var(--motion-edge-opacity); }
  .motion-fallback.motion-above { translate: 0 calc(-1 * var(--motion-distance)); opacity: var(--motion-edge-opacity); }
}
@keyframes scroll-through {
  0% { translate: 0 var(--motion-distance); opacity: var(--motion-edge-opacity); }
  50% { translate: 0 0; opacity: 1; }
  100% { translate: 0 calc(-1 * var(--motion-distance)); opacity: var(--motion-edge-opacity); }
}
[data-reveal]:is(:focus-visible, :has(:focus-visible), .motion-anchor) {
  animation: none !important;
  transition: none !important;
  translate: none !important;
  opacity: 1 !important;
}

.field-merch { padding-bottom: 14px; }
.field-merch-frame { position: relative; min-height: clamp(250px, 25vw, 360px); background: #f0e6d7; }
.field-merch-frame::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, transparent 32%, #f0e6d7 52%, transparent 68%);
}
.field-merch-frame img { max-height: 365px; object-position: 41% center; }
.field-merch-copy {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: grid;
  justify-items: start;
  align-content: center;
  background: linear-gradient(115deg, #f0e6d7 42%, #f0e6d718 100%), url("images/editorial/merch-mountains.webp") right bottom / auto 83% no-repeat;
}
.field-merch-copy h2 { font-size: clamp(32px, 4.2vw, 61px); }
.field-features {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
  padding: 0 var(--gutter) var(--field-spacing);
}
.field-feature {
  --feature-art: url("images/editorial/field-journal.webp");
  min-height: clamp(246px, 24vw, 370px);
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  padding: clamp(19px, 3vw, 42px);
  background: linear-gradient(90deg,#f0e6d7 35%, #f0e6d7ed 52%, #f0e6d711 83%), var(--feature-art) right center / auto 100% no-repeat, #f0e6d7;
}
.field-feature.field-supplies { --feature-art: url("images/editorial/supplies-feature.webp"); }
.field-feature h2 { font-size: clamp(27px, 3.05vw, 44px); }
.field-feature .field-kicker { color: #4d6249; }
.field-feature p:not(.field-kicker) { max-width: 33ch; line-height: 1.6; }
.field-feature .outline, .field-feature .outline:hover { color: #19291e; border-color: #67775c; background-color: #f8f1e5ad; }
.field-feature-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }

[data-page="brands"] .edition-section-heading {
  padding: clamp(18px, 2.5vw, 33px);
  border: 1px solid #b9a88e8c;
  border-radius: 8px;
  background: linear-gradient(135deg, #fffaf0ef, #efe5d8c4);
  backdrop-filter: blur(12px);
}
[data-page="brands"] .edition-section-heading h2 { color: #17261d !important; }
[data-page="brands"] .businesses-grid article {
  --division: url("images/editorial/division-auto.webp");
  display: flex;
  flex-direction: column;
  background: #192a1e !important;
  border: 1px solid #b29d7d55 !important;
  box-shadow: 0 4px 14px #1016131f;
}
[data-page="brands"] .businesses-grid #commercial { --division: url("images/editorial/division-ag.webp"); }
[data-page="brands"] .businesses-grid #off-road { --division: url("images/editorial/division-trail.webp"); }
[data-page="brands"] .businesses-grid article::before {
  background: linear-gradient(0deg, #192a1e, transparent 51%), var(--division) center / cover;
  margin-bottom: 11px;
}
[data-page="brands"] .businesses-grid article > .textlink { margin-top: auto; align-self: start; }

.merch-page-hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  align-items: center;
  background: #17241d;
  color: #f8f1e5;
}
.merch-page-hero > div { padding: clamp(32px, 5vw, 80px) var(--gutter); padding-right: 16px; }
.merch-page-hero h1 { margin: 0; font: 400 clamp(35px, 5vw, 72px)/1.02 Georgia,serif; letter-spacing: -.05em; }
.merch-page-hero em, .merch-page-hero .field-kicker { color: #e4bb87; }
.merch-page-hero p:not(.field-kicker) { max-width: 44ch; line-height: 1.65; }
.merch-page-hero img { display: block; width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.merch-collection > .field-kicker { color: #4d6249; }
.merch-collection > h2 { margin: 0; font: 400 clamp(34px, 4.4vw, 58px)/1.08 Georgia,serif; }
.merch-collection .merch-gallery { grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: 20px; gap: 12px; }
.merch-collection .merch-tile img { display: block; width: 100%; height: auto; aspect-ratio: 1.2; object-fit: cover; }
.merch-collection .merch-tile h3 { margin: 0 0 8px; font: 400 clamp(19px, 2vw, 29px)/1.08 Georgia,serif; }

/* Scroll uses translate. Hover uses transform so both can run together. */
:where(.field-division, .businesses-grid > article, .merch-tile, .shop-card,
  .about-card, .post-card, .inventory-card, .brand-directory > article, .parent-feature) {
  --card-lift: 0px;
}
@media (min-width: 1024px) {
  .field-division { --card-skew: -6deg; }
}
@media (prefers-reduced-motion: no-preference) {
  :is(.field-division, .businesses-grid > article, .merch-tile, .shop-card,
    .about-card, .post-card, .inventory-card, .brand-directory > article, .parent-feature) {
    transform: translateY(var(--card-lift)) skewX(var(--card-skew, 0deg));
    transition: transform .42s cubic-bezier(.22,.61,.36,1);
  }
  :is(.field-division, .businesses-grid > article, .merch-tile, .shop-card,
    .about-card, .post-card, .inventory-card, .brand-directory > article, .parent-feature).motion-fallback {
    transition: translate .75s cubic-bezier(.22,.61,.36,1), opacity .75s ease, transform .42s cubic-bezier(.22,.61,.36,1);
  }
  .field-division > img { transition: scale .6s cubic-bezier(.22,.61,.36,1); }
  .inner-page main .textlink { transition: scale .3s ease, text-shadow .3s ease; }
}
:is(.field-arrow, .header-contact)::after { transition: translate .55s ease; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.field-division, .businesses-grid > article, .merch-tile, .shop-card,
    .about-card, .post-card, .inventory-card, .brand-directory > article, .parent-feature):hover {
    --card-lift: -6px;
    z-index: 1;
  }
  .field-division:hover > img { scale: 1.065; filter: none; }
  .field-division:hover .tile-arrow::after { translate: 4px 0; }
  :is(.field-arrow, .header-contact):hover::after { translate: 3px 0; }
  .inner-page main .textlink:hover { scale: 1.035; }
}

:is(.primary, .outline, .header-contact, .header-phone, .inner-page .button):focus-visible::before { opacity: .6; }

/* Native scroll progress; no page-wide scroll handlers or perpetual JS loop.
   Unsupported browsers and touch devices keep the static hero. */
@supports (animation-timeline: view()) {
  @media (min-width: 1024px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
    .field-hero { view-timeline-name: --hero-exit; view-timeline-axis: block; }
    .field-hero-image {
      transform-origin: right center;
      animation: hero-distance linear both;
      animation-timeline: --hero-exit;
      animation-range: exit 0% exit 100%;
    }
  }
}
@keyframes hero-distance { from { transform: scale(1.035); } to { transform: scale(1); } }

@media (max-width: 1100px) {
  .site-header .header-actions .header-contact { display: none; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 76px; }
  .new-home { --home-nav-height: 68px; }
  .home-intro .field-hero-copy { padding-top: 0; }
  .site-header { gap: 9px; }
  .site-header .menu-toggle { margin-left: auto; }
  .field-division-grid, .field-features, .merch-page-hero { grid-template-columns: 1fr; }
  .field-division { min-height: clamp(215px, 62vw, 340px); }
  .field-division > div { padding-right: 60px; }
  .field-division > img { height: 84%; }
  .field-merch-frame img { max-height: 252px; }
  .field-merch-frame::after { display: none; }
  .field-feature { background-size: auto, auto 90%, auto; }
  .merch-page-hero > div { padding: 35px var(--gutter); }
  .merch-page-hero img { min-height: 0; max-height: 290px; }
  .merch-collection .merch-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .new-home > .site-header { transition: none; }
  .field-hero h1, .merch-page-hero h1, .inner-page main h1, .field-hero-image { animation: none; }
  :is(.primary,.outline,.header-contact,.header-phone,.field-scroll a,.businesses-grid article,.merch-tile):hover { transform: none; translate: none; }
  .inner-page :is(.shop-card,.about-card,.post-card,.brand-directory > article):hover,
  :is(.field-arrow,.header-contact):hover::after { translate: none; }
}

/* These cream surfaces need a dark foreground independent of the page theme. */
.inner-page .edition-section-heading h2 { color: #17241c; }
.inner-page .edition-section-heading .eyebrow { color: #495744; }
[data-page="blog"] .blog-tabs { flex-wrap: wrap; gap: 8px; padding-bottom: 10px; }
[data-page="blog"] .blog-tabs button {
  padding: 9px 16px;
  font-size: .875rem;
  font-weight: 650;
  color: #17241c;
  background: #fffaf0;
  cursor: pointer;
}
[data-page="blog"] .blog-tabs button[aria-selected="true"] { color: #fffaf0; background: #14251e; }
[data-page="blog"] .blog-tabs button[aria-selected="false"]:hover { background: #eaddc7; }

@media (min-width: 761px) and (prefers-reduced-motion: no-preference) {
  .site-header nav a::after {
    position: absolute;
    inset-inline: 0;
    bottom: 3px;
    height: 1px;
    background: var(--field-gold);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(.22,.61,.36,1);
  }
  .site-header nav a:is([aria-current], :hover, :focus-visible)::after { transform: scaleX(1); }
}

/* The legacy active-link border duplicated the animated gold underline. */
.site-header nav a[aria-current="page"] { border-bottom: 0; }

/* Give these light surfaces their own foreground and background colors. */
.inner-page .inventory-section,
[data-page="blog"] .blog-panel {
  --ink: #17241c;
  --paper: #fffaf0;
  --line: #b3a48e;
}
.inner-page .inventory-section > h2 { color: #17241c; }
.inner-page .inventory-links > a {
  color: #213c2b;
  background: #fffaf0;
  border-color: #92836d;
  border-radius: 4px;
}
.inner-page .inventory-links > a:is(:hover, :focus-visible) { background: #e1ebdd; }

.inner-page main .textlink { display: inline-block; transform-origin: left center; }
.inner-page main .textlink:is(:hover, :focus-visible) {
  text-decoration: none;
  text-shadow: 0 0 8px color-mix(in srgb, currentColor 35%, transparent);
}
[data-page="brands"] .businesses-grid article > .textlink { border-bottom-color: currentColor; }
[data-page="blog"] .post-card .article-content > .textlink {
  color: #6f4828 !important;
  border-bottom-color: currentColor;
}
[data-page="blog"] .post-card .article-content > .textlink:is(:hover, :focus-visible) {
  color: #4d2e17 !important;
  text-shadow: 0 0 8px #6f48284d;
}

/* Carry the full panels and division cards through the viewport in either direction. */
.field-section .field-section-head[data-reveal],
.field-section .field-division[data-reveal],
.field-merch-frame[data-reveal] {
  --motion-distance: clamp(28px, 4vw, 58px);
}

/* Give the headline and the truck room to share the first screen. */
@media (min-width: 761px) {
  .home-intro .field-hero-copy {
    width: 100%;
    max-width: none;
    padding-block: clamp(112px, 10vw, 158px) clamp(60px, 7vw, 104px);
  }
  .home-intro .field-hero h1 {
    max-width: none;
    font-size: clamp(2.7rem, 5.25vw, 5.8rem);
    line-height: 1.01;
    letter-spacing: -.045em;
  }
  .home-intro .field-lede { max-width: 42ch; }
}
.inner-page .inventory-results {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 54px;
  margin: .5rem 0;
  border-bottom: 1px solid #cbbda7;
}
.inventory-results #inventory-count { margin: 0; color: #344a38; }
#inventory-reset {
  min-height: 44px;
  padding-inline: 12px;
  color: #274631;
  background: transparent;
  border: 0;
  font: 650 .95rem/1.4 var(--body);
  text-decoration: underline;
  text-underline-offset: .22em;
  cursor: pointer;
}
#inventory-empty:not([hidden]) {
  padding: clamp(16px, 3vw, 32px);
  border-inline-start: 3px solid #a6814d;
  background: #fff9ef;
  color: #23372a;
}
.inner-page :is(.kit-form,.inquiry-form) .preview-form-note a {
  color: #ffe0ab; text-underline-offset: .2em;
}
@media (max-width: 760px) {
  .inner-page :is(.inventory-toolbar,.kit-form,.inquiry-form) :is(input,select,textarea) { font-size: 1rem; }
  .site-header nav.open { max-height: calc(100dvh - 92px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 760px) {
  .home-intro .field-hero h1 { font-size: clamp(1.9rem, 8vw, 3.6rem); }
  .home-intro .field-hero-image::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 88px;
    background: linear-gradient(#0a110de0, transparent);
  }
}
