/* ============================================================================
   traveda.com — site.css (foundation layer)
   FROZEN after foundation — pages add namespaced inline styles only.
   (Unfrozen once 2026-08-18 for the v2 "full range" expansion: adds the
   .tv-catgrid category pattern and raises the nav mobile breakpoint to
   860px for the five-link nav. Nothing else changed.)
   Grammar mirrors the club standard (traveda.club / advisor landing):
   Fraunces + Inter self-hosted, warm grounds, hairline structure, square
   corners, brass accents, directional scrims + 3% grain over photography,
   reveal motion armed from JS with reduced-motion discipline.
   ========================================================================== */

/* ---------- fonts (self-hosted variable latin subsets, OFL — see
   /assets/site/fonts/OFL-NOTICE.txt) ---------- */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/site/fonts/fraunces.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url('/assets/site/fonts/fraunces-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/assets/site/fonts/inter.woff2') format('woff2'); }

/* ---------- tokens ---------- */
:root {
  --ink: #1E1B16;            /* v3 retune: warm espresso ink (was #182420) */
  --evergreen: #16342C;
  --evergreen-hi: #1E463B;
  --brass: #C8A24B;
  --brass-photo: #D4AF5E;   /* over photos / dark grounds */
  --brass-text: #84682B;    /* small text on ivory (AA) */
  --brass-numeral: #A07C2E; /* large numerals on ivory */
  --ivory: #F5F1E8;
  --parchment: #FBF9F4;
  --night: #0F141C;
  --footer: #0B211B;
  --muted: #5C665F;
  --sage: #7FB8A6;
  --hairline: rgba(24, 36, 32, .15);
  --hairline-dark: rgba(245, 241, 232, .15);
  --ivory-dim: rgba(245, 241, 232, .72);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.23, .6, .32, 1);
  /* ---- v3 tokens (2026-08-18 "light/airy" re-skin — Fora-style) ---- */
  --page: #FAF7F1;           /* body ground: warm paper */
  --band-alt: #F3EDE2;       /* alternating sand band + light footer */
  --card: #FFFFFF;
  --btn-light: #EFE9DC;      /* warm neutral button fill */
  --radius: 18px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(30, 27, 22, .10);
  /* soft watercolor washes — layered pastels, always legible under --ink */
  --wash-sky:
    radial-gradient(120% 90% at 78% -10%, rgba(173, 203, 214, .38) 0%, rgba(173, 203, 214, 0) 58%),
    radial-gradient(100% 80% at 12% 6%, rgba(233, 209, 176, .32) 0%, rgba(233, 209, 176, 0) 55%),
    radial-gradient(80% 60% at 50% 100%, rgba(250, 247, 241, .9) 0%, rgba(250, 247, 241, 0) 70%),
    linear-gradient(180deg, #F2F2EC 0%, #F8F3E9 55%, #FAF7F1 100%);
  --wash-sand:
    radial-gradient(110% 80% at 20% -8%, rgba(214, 182, 145, .30) 0%, rgba(214, 182, 145, 0) 55%),
    radial-gradient(90% 70% at 85% 15%, rgba(196, 171, 138, .22) 0%, rgba(196, 171, 138, 0) 52%),
    radial-gradient(70% 55% at 55% 105%, rgba(172, 196, 190, .20) 0%, rgba(172, 196, 190, 0) 60%),
    linear-gradient(180deg, #F7F1E5 0%, #F3EDE2 60%, #F6F1E7 100%);
  /* 3% feTurbulence grain — lay over photo bands at opacity .03 (.tv-grain) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
}

/* ---------- reset-lite ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--page); /* v3: warm paper ground */
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--brass); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brass-text); outline-offset: 4px;
}
[id] { scroll-margin-top: 96px; }

/* ---------- container ---------- */
.tv-wrap { max-width: 1352px; margin-inline: auto; padding-inline: clamp(24px, 4vw, 64px); }

/* ---------- type ladder ---------- */
.tv-eyebrow {
  display: block; font: 500 12px/1 var(--sans); letter-spacing: .24em;
  text-transform: uppercase; color: var(--brass-text);
}
.tv-eyebrow--photo { color: var(--brass-photo); } /* on dark/photo grounds */
.tv-h1 {
  font: 500 clamp(46px, 7vw, 104px)/1.02 var(--serif);
  letter-spacing: -.01em; text-wrap: balance; text-align: left;
}
.tv-h1 em { font-style: italic; font-weight: 400; } /* single accent word */
.tv-h2 {
  font: 500 clamp(40px, 3.6vw, 54px)/1.1 var(--serif);
  letter-spacing: -.01em; text-wrap: balance;
}
.tv-h2 em { font-style: italic; font-weight: 400; }
.tv-deck { font: 400 clamp(26px, 2.5vw, 34px)/1.55 var(--serif); text-wrap: balance; }
.tv-deck em { font-style: italic; }
.tv-numeral {
  font: 400 clamp(56px, 5.6vw, 80px)/0.85 var(--serif);
  color: var(--brass-numeral);
}
.tv-body { font: 400 16px/1.75 var(--sans); color: var(--muted); max-width: 560px; }
.tv-body strong { color: var(--ink); font-weight: 500; }
.tv-body + .tv-body { margin-top: 18px; }

/* ---------- buttons ---------- */
.tv-btn {
  display: inline-block; font: 600 12px/1 var(--sans); letter-spacing: .18em;
  text-transform: uppercase; text-decoration: none; text-align: center;
  padding: 15px 26px; border: 1px solid transparent; border-radius: 0;
  background: var(--evergreen); color: var(--ivory);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.tv-btn:hover { background: var(--evergreen-hi); }
.tv-btn--lg { padding: 19px 36px; font-size: 13px; }
.tv-btn--ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.tv-btn--ghost:hover { background: rgba(24, 36, 32, .06); }
/* on-dark variants for photo/night/evergreen grounds */
.tv-btn--on-dark { background: var(--ivory); color: var(--ink); }
.tv-btn--on-dark:hover { background: #FFFFFF; }
.tv-btn--ghost.tv-btn--on-dark { background: transparent; color: var(--ivory); border-color: rgba(255, 255, 255, .85); }
.tv-btn--ghost.tv-btn--on-dark:hover { background: rgba(255, 255, 255, .1); }

/* Underline that grows — text links (brass, the club touch; every current
   use sits on a light ground where --brass-text reads). */
.tv-link {
  text-decoration: none;
  background-image: linear-gradient(var(--brass-text), var(--brass-text));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 1px;
  transition: background-size .3s var(--ease);
  padding-bottom: 2px;
}
.tv-link:hover, .tv-link[aria-current="page"] { background-size: 100% 1px; }

/* ---------- scroll progress hairline ---------- */
.tv-progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  background: var(--ink); opacity: .2;
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}

/* ---------- nav ---------- */
.tv-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-block: 22px;
  transition: background-color .25s var(--ease), padding .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
}
.tv-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tv-lockup { display: flex; align-items: baseline; gap: 12px; text-decoration: none; color: inherit; }
.tv-lockup-name { font: 500 19px/1 var(--serif); letter-spacing: .04em; }
.tv-lockup-tag {
  font: 500 10px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase;
  color: var(--brass-text);
}
.tv-nav-links { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 36px); list-style: none; }
.tv-nav-links a:not(.tv-btn) {
  font: 500 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.tv-nav .tv-btn { padding: 12px 20px; }

/* photo theme: transparent over the hero, ivory text */
.tv-nav--photo { color: var(--ivory); }
.tv-nav--photo .tv-lockup-tag { color: var(--brass-photo); }
.tv-nav--photo .tv-btn-nav { background: var(--ivory); color: var(--ink); }
.tv-nav--photo .tv-btn-nav:hover { background: #FFFFFF; }

/* scrolled state (site.js) — and the always-solid theme — share the ivory bar */
.tv-nav.is-scrolled, .tv-nav--solid {
  background: rgba(245, 241, 232, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--hairline);
  padding-block: 13px;
  color: var(--ink);
}
.tv-nav.is-scrolled .tv-lockup-tag, .tv-nav--solid .tv-lockup-tag { color: var(--brass-text); }
.tv-nav.is-scrolled .tv-btn-nav, .tv-nav--solid .tv-btn-nav { background: var(--evergreen); color: var(--ivory); }
.tv-nav.is-scrolled .tv-btn-nav:hover, .tv-nav--solid .tv-btn-nav:hover { background: var(--evergreen-hi); }

/* mobile disclosure */
.tv-nav-toggle { display: none; align-items: center; gap: 10px; padding: 8px 2px; }
.tv-nav-toggle-bar {
  display: block; width: 22px; height: 2px; background: currentColor; position: relative;
}
.tv-nav-toggle-bar::before, .tv-nav-toggle-bar::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor;
}
.tv-nav-toggle-bar::before { top: -7px; }
.tv-nav-toggle-bar::after { top: 7px; }
.tv-nav-toggle-label {
  font: 500 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase;
}
.tv-nav-menu {
  background: var(--parchment); color: var(--ink);
  border-top: 1px solid var(--hairline);
  box-shadow: 0 24px 48px -24px rgba(15, 20, 28, .35);
}
.tv-nav-menu ul { list-style: none; padding: 18px clamp(24px, 4vw, 64px) 28px; display: flex; flex-direction: column; gap: 4px; }
.tv-nav-menu a:not(.tv-btn) {
  display: block; padding: 12px 0; text-decoration: none;
  font: 500 14px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid var(--hairline);
}
.tv-nav-menu a[aria-current="page"] { color: var(--brass-text); }
.tv-nav-menu .tv-btn { margin-top: 18px; }
/* the open menu always sits on parchment, so force ink even over a photo hero */
.tv-nav.is-open { background: var(--parchment); color: var(--ink); box-shadow: 0 1px 0 var(--hairline); }
.tv-nav.is-open .tv-lockup-tag { color: var(--brass-text); }

/* ---------- hero (full-bleed photo, directional scrim, grain) ---------- */
.tv-hero { position: relative; height: 100svh; min-height: 620px; overflow: clip; background: var(--night); }
.tv-hero--short { height: clamp(420px, 62vh, 620px); min-height: 420px; } /* interior pages */
.tv-hero-media, .tv-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.tv-hero-media img { object-fit: cover; object-position: 50% 38%; }
.tv-hero-scrim { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(12, 17, 24, .46) 0%, transparent 26%),
    linear-gradient(212deg, transparent 30%, rgba(12, 17, 24, .74) 94%);
}
.tv-grain { position: absolute; inset: 0; pointer-events: none; background: var(--grain); opacity: .03; }
.tv-hero-copy {
  position: absolute; z-index: 2;
  left: clamp(24px, 5.4vw, 84px); right: clamp(24px, 5.4vw, 84px);
  bottom: clamp(64px, 12vh, 128px);
  max-width: 920px; color: var(--ivory);
}
.tv-hero-copy .tv-h1 { margin-top: 26px; }
.tv-hero-sub {
  margin-top: 26px; max-width: 600px;
  font: 400 17px/1.65 var(--sans); color: rgba(245, 241, 232, .88);
}
.tv-hero-cta { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

/* hero load settle — pure CSS, honors reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .tv-hero-media { animation: tv-hero-photo 1.2s var(--ease) both; }
  .tv-hero-copy { animation: tv-hero-copy .9s var(--ease) .35s both; }
  @keyframes tv-hero-photo { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: scale(1); } }
  @keyframes tv-hero-copy { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
}

/* ---------- section bands ---------- */
.tv-band { padding: clamp(110px, 12vw, 170px) 0; }
.tv-band--ivory { background: var(--ivory); }
.tv-band--parchment { background: var(--parchment); }
.tv-band--white { background: #FFFFFF; }
.tv-band--night { background: var(--night); color: var(--ivory); }
.tv-band--evergreen { background: var(--evergreen); color: var(--ivory); }
.tv-band--night .tv-body, .tv-band--evergreen .tv-body { color: var(--ivory-dim); }
.tv-band--night .tv-body strong, .tv-band--evergreen .tv-body strong { color: var(--ivory); }
.tv-band--night .tv-eyebrow, .tv-band--evergreen .tv-eyebrow { color: var(--brass-photo); }
.tv-band--night .tv-numeral, .tv-band--evergreen .tv-numeral { color: var(--brass-photo); }

/* ---------- stat / proof row (hairline-separated) ---------- */
.tv-proof {
  display: flex; flex-wrap: wrap; gap: 32px clamp(48px, 7vw, 112px);
  border-top: 1px solid var(--hairline); padding-top: 52px;
  margin-top: clamp(64px, 7vw, 104px);
}
.tv-proof-item { display: flex; flex-direction: column; gap: 10px; }
.tv-proof-num { font: 500 30px/1 var(--serif); }
.tv-proof-label {
  font: 500 12px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); max-width: 220px;
}
.tv-band--night .tv-proof, .tv-band--evergreen .tv-proof { border-top-color: var(--hairline-dark); }
.tv-band--night .tv-proof-label, .tv-band--evergreen .tv-proof-label { color: var(--ivory-dim); }

/* ---------- steps (brass serif numerals, hairline rows) ---------- */
.tv-steps { display: flex; flex-direction: column; gap: 72px; }
.tv-step {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px clamp(24px, 3vw, 44px);
  border-top: 1px solid var(--hairline); padding-top: 44px;
}
.tv-step:nth-child(even) { margin-left: clamp(0px, 5vw, 72px); }
.tv-step .tv-numeral { min-width: 72px; }
.tv-step h3 { font: 500 24px/1.3 var(--serif); }
.tv-step .tv-body { margin-top: 12px; max-width: 480px; }

/* ---------- cards (square corners, hairline borders) ---------- */
.tv-card { background: var(--parchment); border: 1px solid var(--hairline); padding: clamp(28px, 3vw, 44px); }
.tv-card--ivory { background: var(--ivory); }
.tv-card h3 { font: 500 22px/1.3 var(--serif); }
.tv-card .tv-body { margin-top: 12px; }

/* ---------- details / accordion ---------- */
.tv-faq details { border-top: 1px solid var(--hairline); }
.tv-faq details:last-child { border-bottom: 1px solid var(--hairline); }
.tv-faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px;
  padding: 26px 0;
  font: 500 21px/1.4 var(--serif);
}
.tv-faq summary::-webkit-details-marker { display: none; }
.tv-faq .tv-mark {
  flex: none; font: 400 18px/1 var(--sans); color: var(--brass-text);
  transition: transform .25s var(--ease);
}
.tv-faq details[open] .tv-mark { transform: rotate(45deg); }
.tv-faq details .tv-body { padding: 0 0 30px; max-width: 560px; }

/* ---------- forms (square, hairline, ink on parchment) ---------- */
.tv-form label, .tv-label {
  display: block; font: 500 12px/1.35 var(--sans); letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 10px;
}
.tv-form input[type="text"], .tv-form input[type="email"], .tv-form input[type="tel"],
.tv-form select, .tv-form textarea, .tv-input {
  display: block; width: 100%;
  font: 400 16px/1.5 var(--sans); color: var(--ink);
  background: #FFFFFF; border: 1px solid rgba(24, 36, 32, .38); border-radius: 0;
  padding: 14px 16px;
  transition: border-color .2s var(--ease);
  appearance: none; -webkit-appearance: none;
}
.tv-form select, select.tv-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23182420' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 44px;
}
.tv-form textarea { min-height: 160px; resize: vertical; }
.tv-form input:hover, .tv-form select:hover, .tv-form textarea:hover { border-color: rgba(24, 36, 32, .6); }
.tv-form input:focus-visible, .tv-form select:focus-visible, .tv-form textarea:focus-visible,
.tv-input:focus-visible {
  outline: 2px solid var(--brass-text); outline-offset: 2px; border-color: var(--ink);
}
.tv-form ::placeholder { color: var(--muted); opacity: 1; }
.tv-field { margin-bottom: 26px; }
.tv-field-error { margin-top: 8px; font: 400 13px/1.5 var(--sans); color: #A03A20; }
.tv-form-note { font: 400 13px/1.6 var(--sans); color: var(--muted); }
/* honeypot: visually removed, still in the accessibility-invisible DOM for bots */
.tv-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer (deep evergreen) ---------- */
.tv-footer { position: relative; overflow: hidden; background: var(--footer); color: var(--ivory-dim); }
.tv-footer-word {
  font: 500 clamp(80px, 11vw, 160px)/1 var(--serif); letter-spacing: .04em;
  color: rgba(245, 241, 232, .045);
  white-space: nowrap; text-align: center;
  position: absolute; inset: auto 0 0 0;
  transform: translateY(.42em);
  pointer-events: none; user-select: none;
}
.tv-footer-inner { position: relative; z-index: 2; padding: clamp(72px, 8vw, 112px) 0 0; }
.tv-footer-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr));
  gap: 48px clamp(40px, 5vw, 96px);
}
.tv-footer-brand .tv-lockup-name { color: var(--ivory); }
.tv-footer-brand .tv-lockup-tag { color: var(--brass-photo); }
.tv-footer-brand p { margin-top: 20px; font: 400 14px/1.75 var(--sans); max-width: 360px; }
.tv-footer-coltitle {
  font: 500 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  color: var(--brass-photo); margin-bottom: 22px;
}
.tv-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.tv-footer-col a { font: 400 14px/1.4 var(--sans); color: var(--ivory-dim); }
.tv-footer-col a:hover { color: var(--ivory); }
.tv-footer-legal {
  margin-top: clamp(56px, 7vw, 96px); padding: 26px 0 clamp(90px, 9vw, 130px);
  border-top: 1px solid rgba(245, 241, 232, .12);
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px 32px; flex-wrap: wrap;
  font: 400 12px/1.6 var(--sans); color: rgba(245, 241, 232, .55);
}
.tv-footer-legal b { font-weight: 500; letter-spacing: .16em; text-transform: uppercase; font-variant-numeric: tabular-nums; }

/* ---------- reveal motion (armed FROM site.js only — nothing is ever
   invisible without script or under reduced motion) ---------- */
html.tv-motion .tv-reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease-out, transform .6s ease-out; }
html.tv-motion .tv-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html.tv-motion .tv-reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .tv-footer-grid { grid-template-columns: 1fr 1fr; }
  .tv-footer-brand { grid-column: 1 / -1; }
}
/* nav collapses earlier than the rest — five links + the CTA crowd the bar
   below ~860px (v2 added Travel), so the disclosure menu takes over there */
@media (max-width: 860px) {
  .tv-nav-links { display: none; }
  .tv-nav-toggle { display: inline-flex; }
}
@media (min-width: 861px) {
  .tv-nav-menu { display: none; }
}
@media (max-width: 720px) {
  .tv-h1 { font-size: clamp(40px, 12vw, 54px); }
  .tv-step { grid-template-columns: minmax(0, 1fr); }
  .tv-step:nth-child(even) { margin-left: 0; }
  .tv-step .tv-numeral { min-width: 0; }
  .tv-proof { flex-direction: column; gap: 36px; }
  .tv-footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .tv-btn--lg { padding: 17px 22px; font-size: 12px; letter-spacing: .16em; }
}

/* ---------- category grid (v2 "full range", 2026-08-18) ----------
   .tv-catgrid — the nine verticals on /travel and cross-links; add
   .tv-catgrid--compact for the text-only homepage band. Cards without a
   photo take .tv-cat--statement (evergreen ground, ivory type). */
.tv-catgrid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(48px, 5vw, 80px) clamp(24px, 3vw, 48px);
}
.tv-cat {
  display: block; text-decoration: none;
  border-top: 1px solid var(--hairline); padding-top: 26px;
}
.tv-cat-num { font: 400 clamp(30px, 2.6vw, 38px)/1 var(--serif); color: var(--brass-numeral); }
.tv-cat-media { overflow: hidden; margin-top: 22px; }
.tv-cat-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tv-cat-media img { transition: transform .6s var(--ease); }
  .tv-cat:hover .tv-cat-media img, .tv-cat:focus-visible .tv-cat-media img { transform: scale(1.04); }
}
.tv-cat h3 { margin-top: 20px; font: 500 22px/1.3 var(--serif); }
.tv-cat-line { margin-top: 8px; font: italic 400 16px/1.6 var(--serif); color: var(--muted); max-width: 400px; }
.tv-cat-go {
  display: inline-block; margin-top: 14px;
  font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass-text);
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px;
  transition: background-size .3s var(--ease);
  padding-bottom: 3px;
}
.tv-cat:hover .tv-cat-go, .tv-cat:focus-visible .tv-cat-go { background-size: 100% 1px; }
/* statement variant — no photo; the card itself becomes the color field */
.tv-cat--statement {
  background: var(--evergreen); color: var(--ivory);
  border-top-color: transparent;
  padding: 26px clamp(20px, 2vw, 30px) 32px;
}
.tv-cat--statement .tv-cat-num { color: var(--brass-photo); }
.tv-cat--statement .tv-cat-line { color: var(--ivory-dim); }
.tv-cat--statement .tv-cat-go { color: var(--brass-photo); }
/* compact modifier — text-only band (homepage): no media, tighter rhythm */
.tv-catgrid--compact { gap: clamp(32px, 4vw, 48px) clamp(24px, 3vw, 48px); }
.tv-catgrid--compact .tv-cat { padding-top: 20px; }
.tv-catgrid--compact .tv-cat-media { display: none; }
.tv-catgrid--compact .tv-cat h3 { margin-top: 12px; font-size: 20px; }
@media (max-width: 960px) {
  .tv-catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .tv-catgrid { grid-template-columns: 1fr; }
}

/* ============================================================================
   v3 grammar (2026-08-18) — light, centered, airy, rounded, product-forward.
   Additive layer: everything above stays live for interior pages; the tv3-
   classes below are the new chrome + section vocabulary. Centered-first,
   generous vertical rhythm, white cards on warm paper, soft shadows.
   ========================================================================== */

/* ---------- v3 buttons ---------- */
.tv3-btn {
  display: inline-block; font: 600 12px/1 var(--sans); letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none; text-align: center;
  padding: 16px 28px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--evergreen); color: var(--ivory);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.tv3-btn:hover { background: var(--evergreen-hi); }
.tv3-btn--light { background: var(--btn-light); color: var(--ink); }
.tv3-btn--light:hover { background: #E7DFCC; }

/* ---------- v3 helpers ---------- */
.tv3-center { text-align: center; }
.tv3-center .tv-body { margin-inline: auto; }

/* ---------- v3 nav: scroll-morph header (2026-08-18) ----------
   Fixed full-width wrapper; the SHELL morphs between two states:
   top      — transparent, flat, wide (1280px), roomy padding, full wordmark;
   scrolled — frosted white pill (blur 16px, hairline, radius 9999px),
              narrower (1152px), tighter padding, wordmark scales down.
   .is-scrolled lands on the header from site.js at scrollY > 16. */
.tv3-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 10px 16px 0;
  color: var(--ink);
  pointer-events: none; /* wrapper spans full width; only the shell is real */
}
/* Scrolled state: frost fade cap over the transparent top strip/side gaps so
   page content can't bleed through above/around the floating pill. Sits behind
   the (unpositioned) shell via negative z-index; only shown when scrolled.
   Background-agnostic (translucent tint + backdrop blur, faded by a mask):
   the previous solid var(--page) gradient painted a stray page-white patch
   beside the capsule whenever the pill floated over a non-page band. */
.tv3-nav::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 72px; z-index: -1;
  background: linear-gradient(180deg, rgba(250, 247, 241, .55) 0%, rgba(250, 247, 241, 0) 75%);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent);
  mask-image: linear-gradient(180deg, #000 35%, transparent);
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.tv3-nav.is-scrolled::before { opacity: 1; }
.tv3-nav-shell {
  pointer-events: auto;
  max-width: 1280px; margin-inline: auto;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0);
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: 0 12px 36px rgba(30, 27, 22, 0);
  -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
  transition:
    background-color .3s var(--ease),
    border-color .3s var(--ease),
    border-radius .3s var(--ease),
    box-shadow .3s var(--ease),
    max-width .3s var(--ease),
    padding .3s var(--ease),
    -webkit-backdrop-filter .3s var(--ease),
    backdrop-filter .3s var(--ease);
}
.tv3-nav.is-scrolled .tv3-nav-shell {
  max-width: 1152px;
  padding: 8px 12px 8px 20px;
  background: rgba(255, 255, 255, .92);
  border-color: rgba(30, 27, 22, .10);
  border-radius: 9999px;
  box-shadow: 0 12px 36px rgba(30, 27, 22, .16);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.tv3-nav-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px; min-height: 46px;
}
.tv3-nav-links {
  display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); list-style: none;
}
.tv3-nav-links a {
  font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: 8px 0;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px;
  transition: background-size .3s var(--ease);
}
.tv3-nav-links a:hover, .tv3-nav-links a[aria-current="page"] { background-size: 100% 1px; }
.tv3-wordmark {
  font: 500 25px/1 var(--serif); letter-spacing: .05em; color: inherit;
  text-decoration: none; justify-self: center; white-space: nowrap;
  transition: font-size .3s var(--ease);
}
.tv3-nav.is-scrolled .tv3-wordmark { font-size: 19px; } /* ~75% */
.tv3-nav-right { justify-self: end; display: flex; align-items: center; }
.tv3-nav .tv3-btn { padding: 13px 20px; border-radius: 999px; } /* pill CTA rhymes with the scrolled shell */

/* mobile toggle (accessible disclosure — same JS contract as v1/v2) */
.tv3-nav-toggle { display: none; align-items: center; gap: 10px; padding: 10px 2px; }
.tv3-nav-toggle-bar { display: block; width: 20px; height: 2px; background: currentColor; position: relative; border-radius: 2px; }
.tv3-nav-toggle-bar::before, .tv3-nav-toggle-bar::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
}
.tv3-nav-toggle-bar::before { top: -6px; }
.tv3-nav-toggle-bar::after { top: 6px; }
.tv3-nav-toggle-label { font: 600 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; }

/* mobile menu — full-viewport overlay: dimmed blurred backdrop that fades
   in + a right-anchored white drawer that slides in (~300ms). site.js adds
   .is-shown one frame after unhiding so both entrances animate; closing
   removes it and re-hides after the transition. Reduced motion: the global
   transition kill above makes both states instant. */
.tv3-nav-overlay { position: fixed; inset: 0; z-index: 80; pointer-events: auto; }
.tv3-nav-overlay[hidden] { display: none; }
.tv3-nav-backdrop {
  position: absolute; inset: 0;
  background: rgba(22, 52, 44, .40); /* evergreen ink @40% */
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.tv3-nav-drawer {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(384px, calc(100% - 48px));
  background: var(--card);
  box-shadow: -24px 0 60px rgba(30, 27, 22, .28);
  display: flex; flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
}
.tv3-nav-overlay.is-shown .tv3-nav-backdrop { opacity: 1; }
.tv3-nav-overlay.is-shown .tv3-nav-drawer { transform: none; }
.tv3-nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 16px 24px;
  border-bottom: 1px solid var(--hairline);
}
.tv3-wordmark--drawer { font-size: 21px; justify-self: unset; }
.tv3-nav-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; color: var(--ink);
}
.tv3-nav-close:hover { background: var(--btn-light); }
.tv3-nav-drawer-links { list-style: none; padding: 8px 24px 0; }
.tv3-nav-drawer-links a {
  display: block; padding: 17px 0; text-decoration: none;
  font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid var(--hairline);
}
.tv3-nav-drawer-links a[aria-current="page"] { color: var(--brass-text); font-weight: 700; }
.tv3-nav-drawer-cta { margin-top: auto; padding: 24px; }
.tv3-nav-drawer-cta .tv3-btn { display: block; }

/* ---------- v3 hero: centered stack on the sky wash ---------- */
.tv3-hero {
  background: var(--wash-sky);
  padding: clamp(150px, 18vh, 200px) 0 clamp(48px, 6vw, 72px);
  text-align: center;
}
.tv3-hero .tv-eyebrow { margin-bottom: 22px; }
.tv3-hero-title {
  font: 500 clamp(40px, 5vw, 72px)/1.08 var(--serif);
  letter-spacing: -.01em; text-wrap: balance;
  max-width: 21ch; margin-inline: auto;
}
.tv3-hero-title em { font-style: italic; font-weight: 400; }
.tv3-hero-sub {
  margin: 24px auto 0; max-width: 640px;
  font: 400 17px/1.7 var(--sans); color: #4B453B;
}
.tv3-hero-cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- v3 media: full-width rounded media card ---------- */
.tv3-media {
  position: relative; /* hosts the .tv-grain overlay */
  width: min(1240px, calc(100% - 32px)); margin-inline: auto;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--band-alt);
}
.tv3-media img, .tv3-media video { display: block; width: 100%; height: auto; }

/* ---------- v3 numbers strip ---------- */
.tv3-strip {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 36px clamp(40px, 6vw, 88px); text-align: center;
}
.tv3-strip-num { font: 500 clamp(34px, 3.2vw, 48px)/1 var(--serif); font-variant-numeric: tabular-nums; }
.tv3-strip-label {
  margin-top: 12px; font: 600 11px/1.5 var(--sans); letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}

/* ---------- v3 cards: white rounded cards, soft shadow ---------- */
.tv3-cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 28px);
}
.tv3-card {
  background: var(--card); border: 1px solid rgba(30, 27, 22, .05);
  border-radius: var(--radius); padding: clamp(28px, 3vw, 40px);
  box-shadow: 0 6px 24px rgba(30, 27, 22, .06);
}
.tv3-card-num { font: 400 clamp(28px, 2.4vw, 36px)/1 var(--serif); color: var(--brass-numeral); }
.tv3-card-kicker {
  display: block; font: 600 11px/1 var(--sans); letter-spacing: .18em;
  text-transform: uppercase; color: var(--brass-text);
}
.tv3-card h3 { margin-top: 16px; font: 500 22px/1.3 var(--serif); }
.tv3-card .tv-body { margin-top: 12px; }

/* ---------- v3 panel: accordion + media split on a sand card ---------- */
.tv3-panel {
  display: grid; grid-template-columns: minmax(0, 38fr) minmax(0, 62fr);
  gap: clamp(32px, 4.5vw, 72px); align-items: center;
  background: var(--band-alt); border-radius: calc(var(--radius) + 6px);
  padding: clamp(30px, 4vw, 60px);
}
.tv3-panel-media {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: var(--card);
}
.tv3-panel-media img { display: block; width: 100%; height: auto; }
.tv3-acc details { border-bottom: 1px solid var(--hairline); }
.tv3-acc details:first-of-type { border-top: 1px solid var(--hairline); }
.tv3-acc summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 2px;
  font: 600 15px/1.4 var(--sans);
}
.tv3-acc summary::-webkit-details-marker { display: none; }
.tv3-acc summary::after {
  content: "+"; flex: none; font: 400 18px/1 var(--sans); color: var(--brass-text);
  transition: transform .25s var(--ease);
}
.tv3-acc details[open] summary::after { transform: rotate(45deg); }
.tv3-acc-body { padding: 0 2px 20px; font: 400 15px/1.7 var(--sans); color: var(--muted); }

/* ---------- v3 tabs: destination directory ---------- */
.tv3-tablist {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px;
}
.tv3-tab {
  font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  padding: 11px 18px; border-radius: 999px; color: var(--muted);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.tv3-tab:hover { color: var(--ink); background: rgba(30, 27, 22, .06); }
.tv3-tab[aria-selected="true"] { background: var(--evergreen); color: var(--ivory); }
.tv3-tabpanel { margin-top: clamp(32px, 4vw, 48px); }
.tv3-tabpanel[hidden] { display: none; }
.tv3-linkcols { columns: 5; column-gap: clamp(28px, 3.5vw, 56px); list-style: none; }
.tv3-linkcols li { break-inside: avoid; }
.tv3-linkcols a {
  display: inline-block; padding: 6px 0; font: 400 14px/1.5 var(--sans);
  color: #4B453B; text-decoration: none;
}
.tv3-linkcols a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- v3 bands ---------- */
.tv3-band { padding: clamp(72px, 9vw, 128px) 0; }
.tv3-band--wash { background: var(--wash-sand); }
.tv3-band--alt { background: var(--band-alt); }
.tv3-band--dark { background: linear-gradient(180deg, #2A241B 0%, #1E1B16 100%); color: #F2EDE3; }
.tv3-band--dark .tv-body { color: rgba(242, 237, 227, .78); }
.tv3-band--dark .tv-body strong { color: #F2EDE3; }
.tv3-band--dark .tv-eyebrow { color: var(--brass-photo); }
.tv3-band--dark .tv3-strip-label { color: rgba(242, 237, 227, .66); }
.tv3-band--dark .tv3-btn { background: var(--btn-light); color: var(--ink); }
.tv3-band--dark .tv3-btn:hover { background: #FFFFFF; }

/* ---------- v3 footer: the club's deep evergreen ground (2026-08 owner
   round — the one place the traveda.club signature lands at full strength;
   shared by every page via partials/footer.php, must stay legible on all) */
.tv3-footer {
  background: var(--footer); color: var(--ivory-dim);
  border-top: 1px solid rgba(200, 162, 75, .38); /* brass hairline crown */
}
.tv3-footer .tv3-wordmark { color: var(--ivory); }
.tv3-footer-inner { padding-block: clamp(60px, 7vw, 92px) 0; } /* keep .tv-wrap side padding */
.tv3-footer-grid {
  display: grid; grid-template-columns: minmax(0, 2.3fr) repeat(5, minmax(0, 1fr));
  gap: 48px clamp(24px, 3vw, 56px);
}
/* the nav landmark wraps the five link columns; contents keeps them on the grid */
.tv3-footer-nav { display: contents; }
.tv3-footer-brand p { margin-top: 16px; font: 400 14px/1.75 var(--sans); color: var(--ivory-dim); max-width: 300px; }
.tv3-footer-contact { list-style: none; margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.tv3-footer-contact a {
  display: inline-block; font: 400 14px/1.5 var(--sans); color: var(--ivory-dim);
  text-decoration: none; padding: 3px 0 5px;
  background-image: linear-gradient(var(--brass-photo), var(--brass-photo));
  background-repeat: no-repeat; background-position: 0 calc(100% - 2px); background-size: 0% 1px;
  transition: background-size .3s var(--ease), color .25s var(--ease);
}
.tv3-footer-contact li:first-child a { font: 500 17px/1.4 var(--sans); color: var(--ivory); letter-spacing: .01em; }
.tv3-footer-contact a:hover { color: var(--ivory); background-size: 100% 1px; }
.tv3-footer-coltitle {
  font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass-photo); margin-bottom: 18px;
}
.tv3-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.tv3-footer-col a {
  display: inline-block; font: 400 14px/1.5 var(--sans); color: var(--ivory-dim);
  text-decoration: none; padding: 3px 0 5px;
  background-image: linear-gradient(var(--brass-photo), var(--brass-photo));
  background-repeat: no-repeat; background-position: 0 calc(100% - 2px); background-size: 0% 1px;
  transition: background-size .3s var(--ease), color .25s var(--ease);
}
.tv3-footer-col a:hover { color: var(--ivory); background-size: 100% 1px; }
.tv3-footer-legal {
  margin-top: clamp(48px, 6vw, 76px); padding: 24px 0 34px;
  border-top: 1px solid var(--hairline-dark);
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px 28px; flex-wrap: wrap;
  font: 400 12px/1.6 var(--sans); color: rgba(245, 241, 232, .55);
}
.tv3-footer-legal-links { list-style: none; display: flex; gap: 24px; }
.tv3-footer-legal-links a {
  color: rgba(245, 241, 232, .55); text-decoration: none; display: inline-block; padding: 6px 0;
  transition: color .25s var(--ease);
}
.tv3-footer-legal-links a:hover { color: var(--ivory); }
/* footer column collapse: 6 → 3 → 2 → 1, brand block going full-width first */
@media (max-width: 1120px) {
  .tv3-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px clamp(28px, 4vw, 56px); }
  .tv3-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .tv3-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
  .tv3-footer-col ul { gap: 9px; }
}
@media (max-width: 460px) {
  .tv3-footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- v3 responsive ---------- */
@media (max-width: 960px) {
  .tv3-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tv3-panel { grid-template-columns: 1fr; }
  .tv3-linkcols { columns: 3; }
}
@media (max-width: 860px) {
  .tv3-nav-links { display: none; }
  .tv3-nav-toggle { display: inline-flex; }
  .tv3-nav-right { display: none; }
  .tv3-nav-inner { min-height: 42px; grid-template-columns: 1fr auto 1fr; }
  .tv3-nav-inner > nav { justify-self: start; }
}
@media (min-width: 861px) {
  .tv3-nav-overlay { display: none; }
  .tv3-nav-toggle { display: none; }
}
@media (max-width: 600px) {
  .tv3-cards { grid-template-columns: 1fr; }
  .tv3-linkcols { columns: 2; }
  .tv3-strip { gap: 28px 36px; }
  .tv3-hero { padding-top: 130px; }
}

/* ============================================================================
   v5 additive block (2026-08-20 homepage rebuild) — ADDITIVE ONLY, nothing
   above this line changed. tv5-famrow: the "family of products" row that
   sits above the footer legal bar on every page (partials/footer.php).
   ========================================================================== */
.tv5-famrow {
  margin-top: clamp(48px, 6vw, 76px); padding-top: 24px;
  border-top: 1px solid var(--hairline-dark);
  display: flex; align-items: baseline; gap: 14px 28px; flex-wrap: wrap;
}
.tv5-famrow-title {
  font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass-photo); white-space: nowrap;
}
.tv5-famrow-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.tv5-famrow-list a {
  display: inline-block; font: 400 13px/1.5 var(--sans); color: var(--ivory-dim);
  text-decoration: none; padding: 2px 0 4px;
  background-image: linear-gradient(var(--brass-photo), var(--brass-photo));
  background-repeat: no-repeat; background-position: 0 calc(100% - 2px); background-size: 0% 1px;
  transition: background-size .3s var(--ease), color .25s var(--ease);
}
.tv5-famrow-list a:hover { color: var(--ivory); background-size: 100% 1px; }
/* when the family row is present, the legal bar tucks under it */
.tv5-famrow + .tv3-footer-legal { margin-top: 20px; border-top: 0; }
