/* ==========================================================================
   TRAILBLAZER 4x4 — style.css
   Rugged overland used-4x4 dealership. DNA: khaki/mud/orange/sand/forest,
   Fraunces + Source Sans 3, .tb- prefix, topographic contour ground, mud atmosphere,
   STAMP buttons, terrain-bar capability meters.
   ========================================================================== */

:root {
  --tb-khaki: #6b6534;
  --tb-mud: #5a3a22;
  --tb-orange: #ff7a00;
  --tb-sand: #e5ddc8;
  --tb-forest: #23301c;

  --tb-sand-2: #efe9da;
  --tb-sand-3: #d8cdb0;
  --tb-mud-2: #6f4a2e;
  --tb-forest-2: #2f3f26;
  --tb-ink: #241d12;
  --tb-ink-soft: #4a3f2c;
  --tb-line: #cdbf9c;

  --tb-font-display:var(--catalog-font-heading);
  --tb-font-body:var(--catalog-font-body);

  --tb-shadow: 0 14px 34px -18px rgba(35, 25, 12, .55);
  --tb-shadow-lg: 0 26px 60px -26px rgba(35, 25, 12, .6);
  --tb-radius: 4px;
  --tb-topo: url("../img/topo.svg");
  --tb-splat: url("../img/splatter.svg");
  --tb-maxw: 1220px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--tb-font-body);
  color: var(--tb-ink);
  background: var(--tb-sand);
  line-height: 1.62;
  font-size: 17px;
  overflow-x: hidden;
}
body.tb-nav-locked { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--tb-font-display); font-weight: 700; line-height: 1.04; margin: 0; letter-spacing: -.01em; }

.tb-wrap { width: 100%; max-width: var(--tb-maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 44px); }
.tb-narrow { max-width: 760px; }
.tb-section { padding: clamp(56px, 8vw, 108px) 0; position: relative; }
.tb-muted { color: var(--tb-ink-soft); }

/* topo texture that sits behind sand sections */
.tb-topo-bg { position: relative; }
.tb-topo-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--tb-topo); background-size: 620px;
  opacity: .07; pointer-events: none; z-index: 0;
}
.tb-topo-bg > * { position: relative; z-index: 1; }

/* eyebrow / stamp label */
.tb-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--tb-font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .22em; font-size: .72rem;
  color: var(--tb-mud); margin-bottom: 1rem;
}
.tb-eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--tb-orange); border-radius: 2px; }
.tb-eyebrow--center { justify-content: center; }
.tb-title { font-size: clamp(1.9rem, 4.6vw, 3.3rem); color: var(--tb-forest); }
.tb-title--light { color: var(--tb-sand); }
.tb-lede { font-size: 1.06rem; color: var(--tb-ink-soft); max-width: 62ch; }

/* =============================== STAMP BUTTONS =========================== */
.tb-btn {
  --rot: -1.4deg;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  position: relative; isolation: isolate;
  font-family: var(--tb-font-display); font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; font-size: .84rem;
  color: var(--tb-sand); background: var(--tb-forest);
  padding: .92rem 1.6rem; cursor: pointer;
  border: 2.5px solid var(--tb-forest); border-radius: 3px;
  transform: rotate(var(--rot));
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s;
  /* distressed / rough stamp edge */
  clip-path: polygon(2% 6%, 9% 0, 34% 4%, 62% 0, 88% 5%, 100% 2%, 98% 40%, 100% 74%, 96% 100%, 68% 96%, 40% 100%, 14% 97%, 3% 100%, 0 62%, 2% 30%, 0 12%);
}
.tb-btn::after { /* mud fling burst */
  content: ""; position: absolute; inset: -30% -22%; z-index: -1;
  background: var(--tb-splat) center/contain no-repeat;
  opacity: 0; transform: scale(.3) rotate(8deg); pointer-events: none;
  transition: opacity .25s ease, transform .3s cubic-bezier(.2,1.4,.4,1);
}
.tb-btn:hover { transform: rotate(0deg) translateY(-2px); background: var(--tb-orange); border-color: var(--tb-orange); color: var(--tb-forest); box-shadow: var(--tb-shadow); }
.tb-btn:hover::after { opacity: .85; transform: scale(1.05) rotate(-6deg); }
.tb-btn:active { transform: rotate(0) translateY(1px) scale(.98); }
.tb-btn:focus-visible { outline: 3px solid var(--tb-mud); outline-offset: 3px; }
.tb-btn--orange { background: var(--tb-orange); border-color: var(--tb-orange); color: var(--tb-forest); --rot: 1.2deg; }
.tb-btn--orange:hover { background: var(--tb-forest); border-color: var(--tb-forest); color: var(--tb-sand); }
.tb-btn--ghost { background: transparent; color: var(--tb-forest); border-color: var(--tb-forest); }
.tb-btn--ghost:hover { background: var(--tb-forest); color: var(--tb-sand); border-color: var(--tb-forest); }
.tb-btn--light { background: var(--tb-sand); border-color: var(--tb-sand); color: var(--tb-forest); }
.tb-btn--block { width: 100%; }
.tb-btn--sm { padding: .62rem 1rem; font-size: .74rem; }

/* text link with arrow */
.tb-link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--tb-font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .1em; font-size: .78rem; color: var(--tb-mud);
}
.tb-link svg { transition: transform .2s; }
.tb-link:hover { color: var(--tb-orange); }
.tb-link:hover svg { transform: translateX(4px); }

/* ============================== TOP + HEADER ============================ */
.tb-topbar {
  background: var(--tb-forest); color: var(--tb-sand-3);
  font-size: .78rem; letter-spacing: .04em;
}
.tb-topbar .tb-wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: .5rem; padding-bottom: .5rem; }
.tb-topbar a { color: var(--tb-orange); font-weight: 600; }
.tb-topbar__spec { font-family: var(--tb-font-display); text-transform: uppercase; letter-spacing: .12em; }

.tb-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(229, 221, 200, .92); backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--tb-forest);
}
.tb-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem clamp(18px, 4vw, 44px); max-width: var(--tb-maxw); margin: 0 auto; }
.tb-brand { display: flex; align-items: center; gap: .7rem; }
.tb-brand__mark { width: 44px; height: 44px; }
.tb-brand__word { display: flex; flex-direction: column; line-height: 1; }
.tb-brand__name { font-family: var(--tb-font-display); font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; color: var(--tb-forest); }
.tb-brand__sub { font-size: .64rem; text-transform: uppercase; letter-spacing: .14em; color: var(--tb-mud); margin-top: 3px; }
.tb-nav { display: flex; align-items: center; gap: .3rem; }
.tb-nav a { font-family: var(--tb-font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; color: var(--tb-forest); padding: .5rem .7rem; border-radius: 3px; position: relative; }
.tb-nav a:not(.tb-btn)::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .28rem; height: 2px; background: var(--tb-orange); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.tb-nav a:not(.tb-btn):hover::after { transform: scaleX(1); }
.tb-nav .tb-btn { margin-left: .5rem; }
.tb-nav-toggle { display: none; background: var(--tb-forest); color: var(--tb-sand); border: none; width: 46px; height: 42px; border-radius: 3px; font-size: 1.3rem; cursor: pointer; }

/* ================================ HERO ================================= */
.tb-hero { position: relative; overflow: hidden; background: var(--tb-forest); color: var(--tb-sand); --tb-scroll: 0px; }
.tb-hero__scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.tb-hero__layers { position: absolute; inset: 0; }
/* Each depth layer: scroll-parallax on the wrapper, auto-pan drift on the inner svg */
.tb-layer { position: absolute; inset: 0; will-change: transform; transform: translate3d(0, calc(var(--tb-scroll) * var(--depth, .1)), 0); }
.tb-layer svg { position: absolute; top: 0; left: -8%; width: 116%; height: 100%; display: block; object-fit: cover; }
/* L0 real photographic backdrop: solid palette behind so a blocked photo degrades gracefully */
.tb-layer--photo { background: var(--tb-forest); }
.tb-hero__photo { position: absolute; top: -4%; left: -6%; width: 112%; height: 108%; object-fit: cover; filter: saturate(.82) brightness(.68) contrast(1.02); animation: tb-photopan 60s ease-in-out infinite alternate; }
@keyframes tb-photopan { from { transform: translate3d(0,0,0) scale(1.04); } to { transform: translate3d(-3%,0,0) scale(1.08); } }
/* Slow continuous drift, different rate + amplitude per depth = parallax */
.tb-layer--sky   svg { animation: tb-drift 46s ease-in-out infinite alternate; }
.tb-layer--ridge svg { animation: tb-drift 34s ease-in-out infinite alternate; --amp: -1.6%; }
.tb-layer--mid   svg { animation: tb-drift 26s ease-in-out infinite alternate; --amp: -2.8%; }
.tb-layer--truck svg { animation: tb-drift 26s ease-in-out infinite alternate; --amp: -2.8%; }
.tb-layer--fore  svg { animation: tb-drift 18s ease-in-out infinite alternate; --amp: -4.4%; }
@keyframes tb-drift { from { transform: translateX(0); } to { transform: translateX(var(--amp, -1%)); } }
/* The truck crawls across the mid trail on a long loop, bobbing over rocks */
.tb-truck { animation: tb-crawl 30s linear infinite, tb-bob 2.4s ease-in-out infinite; transform-box: fill-box; }
@keyframes tb-crawl { 0% { transform: translateX(180px); } 100% { transform: translateX(1560px); } }
@keyframes tb-bob { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-5px) rotate(-.6deg); } }
/* Occasional mud-fling flecks kicked up off the trail */
.tb-flecks { position: absolute; inset: 0; pointer-events: none; }
.tb-fleck { position: absolute; left: var(--fx); top: var(--fy); width: 12px; height: 12px; border-radius: 60% 40% 55% 45%; background: var(--tb-mud-2, #3f2a19); opacity: 0; animation: tb-fling 8s ease-out infinite; animation-delay: var(--fd, 0s); }
@keyframes tb-fling { 0% { opacity: 0; transform: translate(0,0) scale(.4); } 6% { opacity: .85; } 40% { opacity: .5; transform: translate(70px,-46px) scale(1); } 60% { opacity: 0; transform: translate(120px,10px) scale(.7); } 100% { opacity: 0; } }
.tb-hero__scene::after { content: ""; position: absolute; inset: 0; z-index: 3; background: linear-gradient(90deg, rgba(35,48,28,.92) 0%, rgba(35,48,28,.7) 42%, rgba(35,48,28,.15) 100%); }
.tb-hero__inner { position: relative; z-index: 2; max-width: var(--tb-maxw); margin: 0 auto; padding: clamp(64px, 11vw, 150px) clamp(18px, 4vw, 44px) clamp(72px, 10vw, 130px); }
.tb-hero__eyebrow { color: var(--tb-orange); }
.tb-hero__title { font-size: clamp(2.6rem, 7vw, 5.4rem); color: var(--tb-sand); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; max-width: 16ch; }
.tb-hero__title em { color: var(--tb-orange); font-style: normal; }
.tb-hero__sub { font-size: 1.15rem; max-width: 52ch; color: rgba(229,221,200,.9); margin: 1.3rem 0 2.2rem; }
.tb-hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.tb-hero__splat { position: absolute; top: 4%; right: 6%; width: 190px; opacity: .3; z-index: 1; transform: rotate(18deg); }
.tb-hero__live { display: inline-flex; align-items: center; gap: .55rem; margin-top: 2rem; font-family: var(--tb-font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--tb-sand-3); }
.tb-hero__live b { color: var(--tb-orange); font-size: 1.1rem; }
.tb-hero__live .tb-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tb-orange); box-shadow: 0 0 0 0 rgba(255,122,0,.6); animation: tb-pulse 2s infinite; }
@keyframes tb-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,122,0,.5);} 70%{ box-shadow: 0 0 0 10px rgba(255,122,0,0);} 100%{ box-shadow: 0 0 0 0 rgba(255,122,0,0);} }

/* hero spec strip */
.tb-hero-strip { background: var(--tb-mud); color: var(--tb-sand); }
.tb-hero-strip .tb-wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.tb-hspec { text-align: center; border-left: 2px solid rgba(229,221,200,.2); }
.tb-hspec:first-child { border-left: none; }
.tb-hspec b { display: block; font-family: var(--tb-font-display); font-weight: 800; font-size: 1.7rem; color: var(--tb-orange); }
.tb-hspec span { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--tb-sand-3); }

/* =============================== SECTIONS ============================== */
.tb-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.4rem; flex-wrap: wrap; }
.tb-section-head { text-align: center; max-width: 62ch; margin: 0 auto 2.8rem; }
.tb-band-forest { background: var(--tb-forest); color: var(--tb-sand); }
.tb-band-forest .tb-title { color: var(--tb-sand); }
.tb-band-mud { background: var(--tb-mud); color: var(--tb-sand); }
.tb-band-mud .tb-title { color: var(--tb-sand); }

/* =============================== VEHICLE CARDS ========================= */
.tb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: clamp(1.1rem, 2vw, 1.8rem); }
.tb-grid.is-loading { min-height: 200px; }
.tb-skel { grid-column: 1/-1; text-align: center; color: var(--tb-ink-soft); padding: 3rem; }

.tb-card {
  background: var(--tb-sand-2); border: 2px solid var(--tb-forest);
  border-radius: var(--tb-radius); overflow: hidden; position: relative;
  display: flex; flex-direction: column;
  box-shadow: var(--tb-shadow);
  transition: transform .22s ease, box-shadow .22s ease;
  opacity: 0; translate: 0 26px;
}
.tb-card.in-view { opacity: 1; translate: 0 0; transition: opacity .5s ease, translate .5s ease, transform .22s ease, box-shadow .22s; }
.tb-card:hover { transform: translateY(-5px); box-shadow: var(--tb-shadow-lg); }
.tb-card::after { /* mud fling on hover, top-right corner */
  content: ""; position: absolute; top: -14px; right: -14px; width: 96px; height: 80px;
  background: var(--tb-splat) center/contain no-repeat; opacity: 0; transform: scale(.4) rotate(20deg);
  transition: opacity .3s, transform .35s cubic-bezier(.2,1.3,.4,1); pointer-events: none; z-index: 3;
}
.tb-card:hover::after { opacity: .32; transform: scale(1) rotate(6deg); }
.tb-card.is-sold { opacity: .96; }
.tb-card.is-sold .tb-card__media { filter: saturate(.55) brightness(.94); }

.tb-card__media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--tb-forest); }
.tb-card__media .tb-scene { width: 100%; height: 100%; transition: transform .5s ease; }
.tb-card:hover .tb-card__media .tb-scene { transform: scale(1.05); }
/* Real photos fill their media box exactly like the SVG scenes they may fall back to. */
.tb-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.tb-card__media .tb-photo { transition: transform .5s ease; }
.tb-card:hover .tb-card__media .tb-photo { transform: scale(1.05); }
.tb-det-hero .tb-photo, .tb-gallery__stage .tb-photo, .tb-thumb .tb-photo { width: 100%; height: 100%; }
.tb-ribbon {
  position: absolute; top: 12px; left: 0; z-index: 2;
  background: var(--tb-orange); color: var(--tb-forest);
  font-family: var(--tb-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  font-size: .68rem; padding: .32rem .7rem .32rem .9rem;
  clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%);
}
.tb-ribbon--sold { background: var(--tb-mud); color: var(--tb-sand); }
.tb-ribbon--off { background: var(--tb-khaki); color: var(--tb-sand); }
.tb-card__price {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  background: var(--tb-forest); color: var(--tb-sand);
  font-family: var(--tb-font-display); font-weight: 800; font-size: 1.1rem;
  padding: .3rem .7rem; border-radius: 3px; border: 1.5px solid var(--tb-orange);
}
.tb-card__body { padding: 1.1rem 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.tb-card__eyebrow { font-family: var(--tb-font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--tb-mud); }
.tb-card__title { font-size: 1.28rem; color: var(--tb-forest); }
.tb-card__title a:hover { color: var(--tb-orange); }
.tb-card__specs { list-style: none; margin: .1rem 0 .2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem .8rem; font-size: .82rem; color: var(--tb-ink-soft); }
.tb-card__specs li { position: relative; padding-left: .9rem; }
.tb-card__specs li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; background: var(--tb-khaki); border-radius: 50%; }
.tb-card__specs b { font-weight: 600; color: var(--tb-ink); }
.tb-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .5rem; border-top: 1px dashed var(--tb-line); }
.tb-card__loc { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--tb-mud); }
.tb-card__go { display: inline-flex; align-items: center; gap: .3rem; font-family: var(--tb-font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--tb-orange); }
.tb-card__go svg { transition: transform .2s; }
.tb-card__go:hover svg { transform: translateX(3px); }

/* =========================== SIGNATURE: TERRAIN METERS ================= */
.tb-meters { display: grid; gap: .5rem; margin: .2rem 0; }
.tb-meters--compact { gap: .35rem; }
.tb-meter__top { display: flex; justify-content: space-between; align-items: baseline; font-size: .72rem; }
.tb-meter__label { text-transform: uppercase; letter-spacing: .06em; color: var(--tb-mud); font-family: var(--tb-font-display); font-weight: 500; }
.tb-meter__val { font-family: var(--tb-font-display); font-weight: 700; color: var(--tb-forest); }
.tb-meter__track {
  height: 9px; border-radius: 2px; margin-top: 3px; overflow: hidden;
  background: var(--tb-sand-3);
  /* terrain notches */
  background-image: repeating-linear-gradient(90deg, transparent 0 13px, rgba(90,58,34,.18) 13px 15px);
  border: 1px solid var(--tb-line);
}
.tb-meter__fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--tb-khaki), var(--tb-orange));
  transition: width 1s cubic-bezier(.3,1,.4,1);
}
.in-view .tb-meter__fill, .tb-cap-panel.in-view .tb-meter__fill { width: var(--w); }
.tb-meters--compact .tb-meter__track { height: 7px; }

/* =============================== WHY / STATS ========================== */
.tb-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.tb-why {
  background: var(--tb-sand-2); border: 2px solid var(--tb-line); border-radius: var(--tb-radius);
  padding: 1.6rem 1.4rem; position: relative; overflow: hidden;
  opacity: 0; translate: 0 22px; transition: opacity .5s, translate .5s, border-color .2s, transform .2s;
}
.tb-why.in-view { opacity: 1; translate: 0 0; }
.tb-why:hover { border-color: var(--tb-orange); transform: translateY(-3px); }
.tb-why__n { font-family: var(--tb-font-display); font-weight: 800; font-size: 2.4rem; color: var(--tb-sand-3); display: block; line-height: 1; }
.tb-why h3 { color: var(--tb-forest); font-size: 1.2rem; margin: .5rem 0 .5rem; }
.tb-why p { margin: 0; font-size: .92rem; color: var(--tb-ink-soft); }

.tb-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.tb-stat { text-align: center; opacity: 0; translate: 0 18px; transition: opacity .5s, translate .5s; }
.tb-stat.in-view { opacity: 1; translate: 0 0; }
.tb-stat__num { font-family: var(--tb-font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); color: var(--tb-orange); line-height: 1; }
.tb-stat__num span { font-size: .5em; color: var(--tb-sand); }
.tb-stat__label { margin-top: .5rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--tb-sand-3); }

/* split editorial */
.tb-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.tb-split__media { border: 2px solid var(--tb-forest); border-radius: var(--tb-radius); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--tb-shadow); }
.tb-split__media .tb-scene { width: 100%; height: 100%; }
.tb-split p { color: var(--tb-ink-soft); }
.tb-band-forest .tb-split p { color: rgba(229,221,200,.86); }

/* =============================== INVENTORY ============================ */
.tb-page-hero { background: var(--tb-forest); color: var(--tb-sand); position: relative; overflow: hidden; }
.tb-page-hero::before { content: ""; position: absolute; inset: 0; background-image: var(--tb-topo); background-size: 620px; opacity: .1; }
.tb-page-hero .tb-wrap { position: relative; padding-top: clamp(48px, 8vw, 92px); padding-bottom: clamp(48px, 8vw, 92px); }
.tb-page-hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); color: var(--tb-sand); text-transform: uppercase; }
.tb-page-hero p { color: rgba(229,221,200,.85); max-width: 56ch; margin-top: .8rem; }

.tb-inv-layout { display: grid; grid-template-columns: 288px 1fr; gap: 2rem; align-items: start; }
.tb-lotpanel {
  background: var(--tb-sand-2); border: 2px solid var(--tb-forest); border-radius: var(--tb-radius);
  padding: 1.4rem; position: sticky; top: 92px;
}
.tb-lotpanel h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tb-forest); margin-bottom: 1rem; }
.tb-field { margin-bottom: 1rem; }
.tb-field label { display: block; font-family: var(--tb-font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--tb-mud); margin-bottom: .35rem; }
.tb-input, .tb-select, textarea.tb-input {
  width: 100%; padding: .62rem .7rem; font-family: var(--tb-font-body); font-size: .92rem;
  border: 2px solid var(--tb-line); border-radius: 3px; background: #fff; color: var(--tb-ink);
}
.tb-input:focus, .tb-select:focus, textarea.tb-input:focus { outline: none; border-color: var(--tb-orange); }
.tb-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.tb-results-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.tb-count { font-family: var(--tb-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tb-forest); }
.tb-lotsub { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--tb-mud); }
.tb-empty { grid-column: 1/-1; text-align: center; padding: 3rem 1rem; color: var(--tb-ink-soft); background: var(--tb-sand-2); border: 2px dashed var(--tb-line); border-radius: var(--tb-radius); }

/* =============================== VEHICLE DETAIL ======================= */
.tb-det-hero { position: relative; height: clamp(240px, 40vw, 440px); overflow: hidden; background: var(--tb-forest); border-bottom: 3px solid var(--tb-orange); }
.tb-det-hero .tb-scene { width: 100%; height: 100%; }
.tb-det-hero__tag { position: absolute; bottom: 16px; left: 16px; background: var(--tb-forest); color: var(--tb-orange); font-family: var(--tb-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; padding: .4rem .9rem; border-radius: 3px; }
.tb-det { display: grid; grid-template-columns: 1fr 340px; gap: clamp(1.5rem, 3vw, 3rem); padding: clamp(2rem, 4vw, 3.4rem) clamp(18px,4vw,44px); align-items: start; }
.tb-crumbs { display: flex; gap: .5rem; font-size: .78rem; color: var(--tb-mud); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .8rem; flex-wrap: wrap; }
.tb-crumbs a:hover { color: var(--tb-orange); }
.tb-det__title { font-size: clamp(1.7rem, 4vw, 2.7rem); color: var(--tb-forest); text-transform: uppercase; }
.tb-det__loc { display: inline-flex; align-items: center; gap: .4rem; color: var(--tb-mud); margin: .6rem 0 1.4rem; }
.tb-gallery__stage { border: 2px solid var(--tb-forest); border-radius: var(--tb-radius); overflow: hidden; aspect-ratio: 16/9; box-shadow: var(--tb-shadow); }
.tb-gallery__stage .tb-scene { width: 100%; height: 100%; }
.tb-gallery__thumbs { display: flex; gap: .6rem; margin-top: .7rem; }
.tb-thumb { flex: 1; border: 2px solid var(--tb-line); border-radius: 3px; overflow: hidden; padding: 0; cursor: pointer; background: none; aspect-ratio: 16/10; }
.tb-thumb.active { border-color: var(--tb-orange); }
.tb-thumb .tb-scene { width: 100%; height: 100%; }
.tb-lead-label { font-family: var(--tb-font-display); text-transform: uppercase; letter-spacing: .1em; font-size: .9rem; color: var(--tb-mud); margin: 2rem 0 .8rem; padding-bottom: .4rem; border-bottom: 2px solid var(--tb-line); }
.tb-det__lede { color: var(--tb-ink-soft); }
.tb-sold-note { background: var(--tb-mud); color: var(--tb-sand); padding: .8rem 1rem; border-radius: 3px; margin-top: 1rem; font-size: .92rem; }
.tb-cap-panel { background: var(--tb-sand-2); border: 2px solid var(--tb-line); border-radius: var(--tb-radius); padding: 1.2rem 1.3rem; }
.tb-cap-panel .tb-meters { gap: .8rem; }
.tb-cap-panel .tb-meter__top { font-size: .8rem; }
.tb-spec-sheet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; border: 2px solid var(--tb-line); border-radius: var(--tb-radius); overflow: hidden; }
.tb-spec { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid var(--tb-line); }
.tb-spec:nth-child(odd) { border-right: 1px solid var(--tb-line); }
.tb-spec dt { color: var(--tb-mud); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.tb-spec dd { margin: 0; font-weight: 600; color: var(--tb-forest); text-align: right; font-size: .9rem; }

.tb-det__side { position: sticky; top: 92px; }
.tb-side-card { background: var(--tb-forest); color: var(--tb-sand); border-radius: var(--tb-radius); padding: 1.5rem; border: 2px solid var(--tb-forest); box-shadow: var(--tb-shadow-lg); position: relative; overflow: hidden; }
.tb-side-card::before { content: ""; position: absolute; top: -20px; right: -20px; width: 120px; height: 100px; background: var(--tb-splat) center/contain no-repeat; opacity: .12; }
.tb-side-card__price { font-family: var(--tb-font-display); font-weight: 800; font-size: 2.2rem; color: var(--tb-orange); }
.tb-side-card__sub { color: var(--tb-sand-3); font-size: .86rem; margin-bottom: 1.1rem; }
.tb-side-card__actions { display: grid; gap: .7rem; margin-bottom: 1.1rem; }
.tb-side-card__actions .tb-btn--ghost { color: var(--tb-sand); border-color: var(--tb-sand); }
.tb-side-card__actions .tb-btn--ghost:hover { background: var(--tb-sand); color: var(--tb-forest); }
.tb-side-agent { display: flex; align-items: center; gap: .7rem; padding-top: 1.1rem; border-top: 1px solid rgba(229,221,200,.2); }
.tb-side-agent strong { display: block; font-size: .92rem; }
.tb-side-agent em { font-style: normal; font-size: .76rem; color: var(--tb-sand-3); }
.tb-side-call { display: block; text-align: center; margin-top: 1rem; font-family: var(--tb-font-display); font-weight: 700; font-size: 1.2rem; color: var(--tb-orange); }

.tb-avatar { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 3px; background: var(--tb-orange); color: var(--tb-forest); font-family: var(--tb-font-display); font-weight: 800; font-size: 1rem; flex-shrink: 0; }
.tb-avatar--big { width: 68px; height: 68px; font-size: 1.5rem; }

/* =============================== PANELS =============================== */
.tb-panel { background: var(--tb-sand-2); border: 2px solid var(--tb-forest); border-radius: var(--tb-radius); padding: clamp(1.3rem, 3vw, 2rem); }
.tb-panel h2 { color: var(--tb-forest); font-size: 1.2rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 1.1rem; }
.tb-form-error { color: #a8321a; font-size: .86rem; margin: .6rem 0; min-height: 1.2em; font-weight: 600; }

/* =============================== TEAM ================================ */
.tb-crew-list { display: grid; gap: 1.2rem; }
.tb-crew {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: center;
  background: var(--tb-sand-2); border: 2px solid var(--tb-line); border-radius: var(--tb-radius);
  padding: 1.4rem 1.6rem; position: relative;
  opacity: 0; translate: 0 20px; transition: opacity .5s, translate .5s, border-color .2s;
}
.tb-crew.in-view { opacity: 1; translate: 0 0; }
.tb-crew:hover { border-color: var(--tb-orange); }
.tb-crew__badge { display: flex; align-items: center; gap: .8rem; }
.tb-crew__num { font-family: var(--tb-font-display); font-weight: 800; font-size: 1.6rem; color: var(--tb-sand-3); }
.tb-crew__body h3 { color: var(--tb-forest); font-size: 1.3rem; }
.tb-crew__role { font-family: var(--tb-font-display); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: .76rem; color: var(--tb-orange); margin: .2rem 0 .6rem; }
.tb-crew__bio { font-size: .92rem; color: var(--tb-ink-soft); margin: 0 0 .7rem; }
.tb-crew__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tb-crew__tags span { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; background: var(--tb-forest); color: var(--tb-sand); padding: .22rem .6rem; border-radius: 2px; }
.tb-crew__cta { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--tb-font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .74rem; color: var(--tb-mud); white-space: nowrap; }
.tb-crew__cta:hover { color: var(--tb-orange); }
.tb-crew__cta svg { transition: transform .2s; }
.tb-crew__cta:hover svg { transform: translateX(3px); }

/* =============================== SERVICES ============================ */
.tb-svc-list { display: grid; gap: 1.6rem; }
.tb-svc {
  display: grid; grid-template-columns: 300px 1fr; gap: 0;
  background: var(--tb-sand-2); border: 2px solid var(--tb-forest); border-radius: var(--tb-radius); overflow: hidden;
  opacity: 0; translate: 0 22px; transition: opacity .55s, translate .55s, box-shadow .2s;
}
.tb-svc.in-view { opacity: 1; translate: 0 0; }
.tb-svc:hover { box-shadow: var(--tb-shadow-lg); }
.tb-svc:nth-child(even) { grid-template-columns: 1fr 300px; }
.tb-svc:nth-child(even) .tb-svc__media { order: 2; }
.tb-svc__media { position: relative; background: var(--tb-forest); }
.tb-svc__media svg { width: 100%; height: 100%; object-fit: cover; min-height: 200px; }
.tb-svc__idx { position: absolute; top: 12px; left: 12px; font-family: var(--tb-font-display); font-weight: 800; font-size: 1.4rem; color: var(--tb-sand); background: var(--tb-mud); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 3px; }
.tb-svc__text { padding: clamp(1.3rem, 3vw, 2rem); }
.tb-svc__text h2 { color: var(--tb-forest); font-size: 1.5rem; text-transform: uppercase; }
.tb-svc__lede { color: var(--tb-ink-soft); margin: .6rem 0 1rem; }
.tb-svc__points { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .4rem; }
.tb-svc__points li { position: relative; padding-left: 1.5rem; font-size: .9rem; }
.tb-svc__points li::before { content: "▲"; position: absolute; left: 0; color: var(--tb-orange); font-size: .7rem; top: .25em; }
.tb-svc__cta { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--tb-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .76rem; color: var(--tb-orange); }
.tb-svc__cta:hover { color: var(--tb-mud); }

/* =============================== REVIEWS ============================= */
.tb-reviews-agg { display: flex; flex-direction: column; align-items: center; gap: .4rem; margin-bottom: 2.6rem; }
.tb-agg__num { font-family: var(--tb-font-display); font-weight: 800; font-size: 3.4rem; color: var(--tb-orange); line-height: 1; }
.tb-agg__count { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tb-mud); }
.tb-stars { display: inline-flex; gap: 2px; }
.tb-star { color: var(--tb-sand-3); font-size: 1.2rem; }
.tb-star.on { color: var(--tb-orange); }
.tb-reviews { columns: 3 300px; column-gap: 1.4rem; }
.tb-review {
  break-inside: avoid; margin: 0 0 1.4rem; background: var(--tb-sand-2);
  border: 2px solid var(--tb-line); border-left: 5px solid var(--tb-orange); border-radius: var(--tb-radius);
  padding: 1.3rem 1.4rem;
  opacity: 0; translate: 0 18px; transition: opacity .5s, translate .5s;
}
.tb-review.in-view { opacity: 1; translate: 0 0; }
.tb-review blockquote { margin: .7rem 0; font-size: .96rem; color: var(--tb-ink); line-height: 1.6; }
.tb-review figcaption { display: flex; flex-direction: column; }
.tb-review__who { font-family: var(--tb-font-display); font-weight: 700; color: var(--tb-forest); text-transform: uppercase; letter-spacing: .04em; font-size: .84rem; }
.tb-review__when { font-size: .74rem; color: var(--tb-mud); }

/* =============================== FAQ ================================ */
.tb-faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: .8rem; }
.tb-faq {
  background: var(--tb-sand-2); border: 2px solid var(--tb-line); border-radius: var(--tb-radius); overflow: hidden;
  opacity: 0; translate: 0 14px; transition: opacity .45s, translate .45s, border-color .2s;
}
.tb-faq.in-view { opacity: 1; translate: 0 0; }
.tb-faq[open] { border-color: var(--tb-orange); }
.tb-faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--tb-font-display); font-weight: 600; color: var(--tb-forest); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 1.02rem; }
.tb-faq summary::-webkit-details-marker { display: none; }
.tb-faq__mark { position: relative; width: 18px; height: 18px; flex-shrink: 0; }
.tb-faq__mark::before, .tb-faq__mark::after { content: ""; position: absolute; background: var(--tb-orange); border-radius: 2px; }
.tb-faq__mark::before { top: 8px; left: 0; width: 18px; height: 2.5px; }
.tb-faq__mark::after { left: 8px; top: 0; width: 2.5px; height: 18px; transition: transform .2s; }
.tb-faq[open] .tb-faq__mark::after { transform: rotate(90deg); opacity: 0; }
.tb-faq__a { padding: 0 1.3rem 1.2rem; }
.tb-faq__a p { margin: 0; color: var(--tb-ink-soft); }

/* =============================== ABOUT ============================== */
.tb-about-lead { font-size: clamp(1.3rem, 3vw, 1.9rem); font-family: var(--tb-font-display); font-weight: 600; color: var(--tb-forest); line-height: 1.28; }
.tb-about-lead em { color: var(--tb-orange); font-style: normal; }
.tb-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; margin-top: 2rem; }
.tb-value { background: var(--tb-forest); color: var(--tb-sand); padding: 1.5rem; border-radius: var(--tb-radius); border-top: 4px solid var(--tb-orange); }
.tb-value h3 { color: var(--tb-orange); font-size: 1.1rem; text-transform: uppercase; margin-bottom: .5rem; }
.tb-value p { font-size: .9rem; color: rgba(229,221,200,.85); margin: 0; }
.tb-prose { max-width: 68ch; }
.tb-prose p { color: var(--tb-ink-soft); margin: 0 0 1.1rem; }
.tb-prose h2 { color: var(--tb-forest); font-size: 1.5rem; text-transform: uppercase; margin: 2rem 0 .8rem; }

/* =============================== CONTACT =========================== */
.tb-contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.tb-contact-info h2 { color: var(--tb-forest); font-size: 1.4rem; text-transform: uppercase; margin-bottom: 1rem; }
.tb-contact-block { display: flex; gap: .8rem; margin-bottom: 1.3rem; align-items: flex-start; }
.tb-contact-block .tb-ico { width: 42px; height: 42px; flex-shrink: 0; background: var(--tb-forest); color: var(--tb-orange); border-radius: 3px; display: flex; align-items: center; justify-content: center; }
.tb-contact-block h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tb-mud); margin-bottom: .2rem; }
.tb-contact-block a, .tb-contact-block p { color: var(--tb-forest); font-weight: 600; margin: 0; }
.tb-listing-note { background: var(--tb-orange); color: var(--tb-forest); padding: .7rem 1rem; border-radius: 3px; margin-bottom: 1rem; font-size: .9rem; }
.tb-map { border: 2px solid var(--tb-forest); border-radius: var(--tb-radius); overflow: hidden; margin-top: 1.4rem; aspect-ratio: 16/9; }
.tb-map svg { width: 100%; height: 100%; }

/* success block */
.tb-success { text-align: center; padding: clamp(2rem, 5vw, 3.5rem) 1rem; }
.tb-success__mark { display: inline-flex; align-items: center; justify-content: center; width: 66px; height: 66px; border-radius: 50%; background: var(--tb-orange); color: var(--tb-forest); font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.tb-success h1, .tb-success h2 { color: var(--tb-forest); text-transform: uppercase; }
.tb-success__card { display: grid; gap: .6rem; max-width: 420px; margin: 1.6rem auto; text-align: left; background: var(--tb-sand-2); border: 2px solid var(--tb-line); border-radius: var(--tb-radius); padding: 1.3rem; }
.tb-success__card div { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .5rem; border-bottom: 1px dashed var(--tb-line); }
.tb-success__card div:last-child { border-bottom: none; padding-bottom: 0; }
.tb-success__card span { color: var(--tb-mud); text-transform: uppercase; font-size: .74rem; letter-spacing: .06em; }
.tb-success__card b { color: var(--tb-forest); font-family: var(--tb-font-display); }

/* =============================== CTA + FOOTER ====================== */
.tb-cta-band { background: var(--tb-orange); color: var(--tb-forest); position: relative; overflow: hidden; }
.tb-cta-band::before { content: ""; position: absolute; inset: 0; background-image: var(--tb-topo); background-size: 620px; opacity: .12; }
.tb-cta-band .tb-wrap { position: relative; text-align: center; }
.tb-cta-band h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); text-transform: uppercase; color: var(--tb-forest); }
.tb-cta-band p { max-width: 54ch; margin: 1rem auto 1.8rem; color: rgba(35,48,28,.85); }

.tb-footer { background: var(--tb-forest); color: var(--tb-sand); position: relative; overflow: hidden; }
.tb-footer::before { content: ""; position: absolute; inset: 0; background-image: var(--tb-topo); background-size: 620px; opacity: .06; }
.tb-footer .tb-wrap { position: relative; padding: clamp(3rem, 6vw, 5rem) clamp(18px,4vw,44px) 2rem; }
.tb-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(229,221,200,.18); }
.tb-footer__brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.tb-footer__brand img { width: 48px; }
.tb-footer__brand b { font-family: var(--tb-font-display); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; color: var(--tb-sand); }
.tb-footer p { color: var(--tb-sand-3); font-size: .92rem; max-width: 40ch; }
.tb-footer h4 { text-transform: uppercase; letter-spacing: .1em; font-size: .8rem; color: var(--tb-orange); margin-bottom: 1rem; }
.tb-footer__nav { display: grid; gap: .5rem; }
.tb-footer__nav a { color: var(--tb-sand-3); font-size: .92rem; }
.tb-footer__nav a:hover { color: var(--tb-orange); }
.tb-footer__legal { padding-top: 1.6rem; font-size: .78rem; color: rgba(229,221,200,.55); line-height: 1.6; }
.tb-footer__legal strong { color: var(--tb-sand-3); }

/* =============================== RESPONSIVE ======================== */
@media (max-width: 940px) {
  .tb-nav { position: fixed; inset: 0 0 0 auto; width: min(300px, 82vw); background: var(--tb-forest); flex-direction: column; align-items: stretch; padding: 5rem 1.4rem 2rem; transform: translateX(100%); transition: transform .28s ease; z-index: 60; }
  .tb-nav.open { transform: translateX(0); }
  .tb-nav a { color: var(--tb-sand); padding: .8rem .4rem; border-bottom: 1px solid rgba(229,221,200,.14); }
  .tb-nav a:not(.tb-btn)::after { display: none; }
  .tb-nav .tb-btn { margin: 1rem 0 0; }
  .tb-nav-toggle { display: block; z-index: 61; }
  .tb-inv-layout { grid-template-columns: 1fr; }
  .tb-lotpanel { position: static; }
  .tb-det { grid-template-columns: 1fr; }
  .tb-det__side { position: static; }
  .tb-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .tb-hero-strip .tb-wrap, .tb-stats { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .tb-split { grid-template-columns: 1fr; }
  .tb-svc, .tb-svc:nth-child(even) { grid-template-columns: 1fr; }
  .tb-svc:nth-child(even) .tb-svc__media { order: 0; }
  .tb-crew { grid-template-columns: auto 1fr; }
  .tb-crew__cta { grid-column: 1 / -1; justify-self: start; }
  .tb-spec-sheet { grid-template-columns: 1fr; }
  .tb-spec:nth-child(odd) { border-right: none; }
  .tb-reviews { columns: 1; }
  .tb-topbar__spec { display: none; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .tb-card, .tb-why, .tb-stat, .tb-crew, .tb-svc, .tb-review, .tb-faq { opacity: 1 !important; translate: none !important; }
  .tb-btn::after, .tb-card::after { display: none !important; }
  .tb-meter__fill { transition: none !important; width: var(--w) !important; }
  .tb-hero__live .tb-dot { animation: none !important; }
  .tb-card:hover, .tb-why:hover, .tb-btn:hover { transform: none !important; }
  .tb-card:hover .tb-card__media .tb-scene { transform: none !important; }
  /* Parallax hero → static layered still: kill drift/pan/crawl/flecks, freeze scroll offset */
  .tb-hero { --tb-scroll: 0px !important; }
  .tb-layer { transform: none !important; }
  .tb-layer svg, .tb-truck, .tb-hero__photo { animation: none !important; }
  .tb-hero__photo { transform: scale(1.04) !important; }
  .tb-layer--ridge svg, .tb-layer--mid svg, .tb-layer--truck svg, .tb-layer--fore svg { transform: none !important; }
  .tb-fleck { animation: none !important; opacity: 0 !important; }
}

/* =============================== STATIC LANDING ADDITIONS ============= */
/* Without JS nothing waits for the reveal observer. */
html:not(.js) [data-reveal], html:not(.js) .tb-card, html:not(.js) .tb-why, html:not(.js) .tb-stat, html:not(.js) .tb-crew, html:not(.js) .tb-svc, html:not(.js) .tb-review, html:not(.js) .tb-faq { opacity: 1; translate: 0 0; }
html:not(.js) .tb-meter__fill { width: var(--w); }

.tb-topbar__right { display: inline-flex; align-items: center; gap: 1rem; }
.tb-social { display: flex; align-items: center; gap: .45rem; }
.tb-social a { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 3px; color: var(--tb-sand); border: 1.5px solid rgba(229,221,200,.3); transition: background .15s, color .15s, border-color .15s; }
.tb-social a:hover { background: var(--tb-orange); border-color: var(--tb-orange); color: var(--tb-forest); }
.tb-social--top a { width: 26px; height: 26px; border: none; color: var(--tb-orange); }
.tb-social--top svg { width: 15px; height: 15px; }
.tb-social--foot { margin-top: 1.2rem; }

.tb-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-top: 2rem; }
.tb-chip { display: block; background: var(--tb-sand-2); border: 2px solid var(--tb-forest); border-left: 6px solid var(--tb-orange); border-radius: var(--tb-radius); padding: 1.1rem 1.2rem; color: var(--tb-forest); transition: transform .15s, background .15s; }
.tb-chip:hover { transform: translateY(-3px); background: var(--tb-sand-3); }
.tb-chip b { display: block; font-family: var(--tb-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; }
.tb-chip span { display: block; font-size: .86rem; color: var(--tb-ink-soft); margin-top: .25rem; }

.tb-jump { display: grid; gap: .4rem; }
.tb-jump a { display: flex; justify-content: space-between; align-items: center; padding: .6rem .7rem; background: #fff; border: 1.5px solid var(--tb-line); border-radius: 3px; font-family: var(--tb-font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; color: var(--tb-forest); }
.tb-jump a:hover { border-color: var(--tb-orange); }
.tb-jump a span { background: var(--tb-forest); color: var(--tb-sand); font-size: .72rem; padding: .1rem .45rem; border-radius: 3px; }
.tb-jump__note { font-size: .84rem; color: var(--tb-ink-soft); margin: 1rem 0; }
.tb-results-bar[id] { scroll-margin-top: 100px; }
.tb-grid + .tb-results-bar { margin-top: 2.6rem; }

.tb-subscribe__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.tb-subscribe__inner p { color: rgba(229,221,200,.85); }
.tb-subscribe__form .tb-field label { color: var(--tb-sand-3); }
.tb-subscribe__row { display: flex; gap: .5rem; }
.tb-subscribe__row .tb-input { flex: 1; min-width: 0; }
.tb-subscribe__note { font-size: .82rem; margin: .4rem 0 0; }
.tb-subscribe__note a { color: var(--tb-orange); text-decoration: underline; }
.tb-band-mud .tb-field-err { color: #ffb27a; }

.tb-field-err { display: block; min-height: 1.1em; font-size: .8rem; font-weight: 600; color: #a8321a; margin-top: .3rem; }
.tb-status { min-height: 1.2em; font-size: .9rem; font-weight: 600; margin: .4rem 0; }
.tb-status[data-state="pending"] { color: var(--tb-mud); }
.tb-status[data-state="ok"] { color: #3a5a2a; }
.tb-status[data-state="error"] { color: #a8321a; }
.tb-band-mud .tb-status[data-state="pending"], .tb-band-mud .tb-status[data-state="ok"] { color: var(--tb-sand); }
.tb-band-mud .tb-status[data-state="error"] { color: #ffb27a; }
[aria-invalid="true"] { border-color: #a8321a !important; }

.tb-legal h2:first-child { margin-top: 0; }

@media (max-width: 720px) {
  .tb-subscribe__inner { grid-template-columns: 1fr; }
  .tb-subscribe__row { flex-direction: column; }
  .tb-social--top { display: none; }
}
/* Catalogue typography identity — headings and reading text. */
:root{--catalog-font-heading:'Sora', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;--catalog-font-body:'Lora', Georgia, 'Times New Roman', serif;--tb-font-display:var(--catalog-font-heading);--tb-font-body:var(--catalog-font-body)}
html body,input,select,textarea,button{font-family:var(--catalog-font-body)}
h1,h2,h3,h4,h5,h6,.display,.disp,.brand,.logo{font-family:var(--catalog-font-heading)}

/* aajwebz-mailto-nowrap — an address is one token, never split across lines */
a[href^="mailto:"] {
  overflow-wrap: normal;
  word-break: normal;
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
}
@media (max-width: 380px) {
  a[href^="mailto:"] { font-size: 0.88em; }
}
