/* Hub-only styles for /services (loaded after vintara.css; nothing here touches another page).
   Built from the shared tokens. Reuses the shared ledger (.slip*), steps, FAQ, pills, matrix and CTA classes unchanged. */

/* ---------- hero: a darker, quieter frame than Home's (one still photograph, vignette, letterbox rail) ---------- */
.hub-hero .hero-panel::after { background:
  radial-gradient(120% 90% at 50% 38%, rgba(18,22,20,0) 30%, rgba(18,22,20,.55) 100%),
  linear-gradient(180deg, rgba(18,22,20,.42) 0%, rgba(18,22,20,.06) 24%, rgba(18,22,20,.2) 44%, rgba(18,22,20,.7) 70%, rgba(18,22,20,.94) 100%); }
.hub-hero .hero-media .poster { object-position: 50% 55%; }
.hub-hero .hero-top { grid-template-columns: minmax(0, 1.5fr) minmax(0, 30ch); }
@media (max-width: 1100px) { .hub-hero .hero-top { grid-template-columns: 1fr; } }
.hub-hero .hero-blurb { color: rgba(238,241,239,.94); }
.hub-focus { margin: 0; color: rgba(238,241,239,.86); }
.hub-rail { display: none; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid rgba(238,241,239,.28); color: rgba(238,241,239,.8); justify-content: space-between; gap: 16px; }
@media (min-width: 1024px) { .hub-rail { display: flex; } .hub-hero .hero-content { padding-bottom: 56px; } }
@media (min-width: 761px) { .hub-hero .hero-media .poster { object-position: 50% 50%; } }

/* ---------- sticky chapter bar ---------- */
.hub-body { position: relative; margin-top: var(--g); }
.hub-bar { position: sticky; top: 0; z-index: 60; background: var(--surface); border-block: 1px solid var(--line);
  transition: transform .4s var(--ease-expo); transform: translateY(var(--hub-off, 0px)); }
.hub-bar-in { max-width: 1360px; margin-inline: auto; display: flex; align-items: stretch; justify-content: space-between; gap: 12px; padding-inline: var(--pad); }
.hub-bar-list { list-style: none; margin: 0; padding: 0; display: flex; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.hub-bar-list::-webkit-scrollbar { display: none; }
.hub-bar-list li { flex: 1 0 auto; }
.hub-bar-list a { height: 100%; min-height: 56px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; align-items: center; column-gap: 8px; padding: 6px 12px; position: relative; }
.hub-bar-n { grid-row: 1 / span 2; }
.hub-bar-l, .hub-bar-d { grid-column: 2; }
.hub-bar-n { color: var(--muted); }
.hub-bar-l { font-weight: 600; letter-spacing: -.01em; }
.hub-bar-d { color: var(--muted); font-size: .8rem; line-height: 1.25; display: none; }
.hub-bar-list a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--ease-expo); }
.hub-bar-list a.is-current::after, .hub-bar-list a[aria-current="true"]::after { transform: scaleX(1); }
.hub-bar-list a[aria-current="true"] .hub-bar-n { color: var(--accent-ink); }
.hub-bar-cta { display: none; align-items: center; min-height: 44px; align-self: center; padding: 0 4px; font-weight: 600; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; }
.hub-bar-prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--hub-p, 0)); opacity: .55; }
@media (min-width: 900px) { .hub-bar-d { display: block; } .hub-bar-list a { padding-inline: 18px; } .hub-bar-list a::after { left: 18px; right: 18px; } }
@media (min-width: 720px) { .hub-bar-cta { display: inline-flex; } }
@media (max-width: 719px) { .hub-bar-in { padding-inline: 0; } .hub-bar-list li { flex: 1 1 0; } .hub-bar-list a { justify-content: center; padding-inline: 6px; } .hub-bar-list a::after { left: 6px; right: 6px; } }

/* ---------- the four chapters: full-bleed bands, one family, four tones ---------- */
.hub-chapters { position: relative; }
.hub-ch { position: relative; background: var(--bg); color: var(--ink); padding-block: clamp(64px, 9vw, 136px); overflow: clip; scroll-margin-top: 56px; }
.hub-ch.theme-dark { color: var(--on-dark); }
.hub-ch--reward { background: var(--dark); }
.hub-ch--grow { background: var(--tint); }
.hub-ch--align { background: var(--surface); }
.hub-ch-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); }
.hub-num { position: absolute; top: -.14em; right: var(--pad); z-index: 0; font-size: clamp(7rem, 24vw, 19rem); font-weight: 300; letter-spacing: -.06em; line-height: 1; pointer-events: none; user-select: none; color: color-mix(in srgb, var(--ink) 7%, transparent); font-variant-numeric: tabular-nums; }
.theme-dark .hub-num { color: rgba(238,241,239,.07); }
.hub-media, .hub-ch-body { position: relative; z-index: 1; margin: 0; min-width: 0; }
.hub-frame { position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3; background: var(--line); }
.hub-frame img { width: 100%; height: 100%; object-fit: cover; }
.hub-sample { position: absolute; top: 14px; right: 14px; z-index: 1; padding: 6px 12px; border-radius: 999px; background: rgba(18,22,20,.78); color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(238,241,239,.3); }
.hub-ch-body { display: grid; gap: clamp(16px, 2vw, 24px); align-content: start; }
.hub-eyebrow { margin: 0; }
.hub-ch-title { font-size: clamp(3rem, 8vw, 7rem); letter-spacing: -.045em; line-height: .92; }
.hub-intro { max-width: 58ch; color: var(--muted); }
.hub-ch .title { color: var(--ink); }
.theme-dark .hub-ch-title, .hub-ch.theme-dark .title { color: var(--on-dark); }
.hub-k { margin: 0 0 8px; color: var(--muted); font-weight: 500; }
.hub-rows { list-style: none; margin: clamp(4px, 1vw, 12px) 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.hub-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; grid-template-areas: "t go" "d go"; column-gap: 16px; row-gap: 4px; align-items: center; padding: 20px 4px; border-top: 1px solid var(--line); min-height: 76px; position: relative; }
.hub-row .roll { grid-area: t; font-weight: 600; text-transform: uppercase; letter-spacing: -.02em; font-size: clamp(1.25rem, 2.5vw, 2.05rem); line-height: 1.12; display: block; width: fit-content; max-width: 100%; }
.hub-row .roll > span + span { color: var(--accent-ink); }
.hub-row-d { grid-area: d; color: var(--muted); font-size: .98rem; max-width: 60ch; }
.hub-row-go { grid-area: go; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); transition: background-color .35s var(--ease-out), transform .45s var(--ease-expo); }
@media (hover: hover) and (pointer: fine) { .hub-row:hover .hub-row-go { background: var(--accent); color: var(--ink); transform: translateX(4px); } }
.hub-row:focus-visible { outline-offset: -2px; border-radius: 12px; }
.hub-row:focus-visible .hub-row-go { background: var(--accent); color: var(--ink); }
.hub-inside { padding-top: 4px; }
.hub-inside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hub-inside li { padding: 12px 0 12px 16px; border-left: 2px solid var(--accent); color: var(--muted); }
.hub-inside b { color: var(--ink); font-weight: 600; }
.theme-dark .hub-inside b { color: var(--on-dark); }
.hub-pills li { background: color-mix(in srgb, var(--ink) 4%, var(--bg)); color: var(--ink); }
.hub-ch--grow .hub-pills li { background: rgba(255,255,255,.65); }
.hub-ch--align .hub-pills li { background: var(--bg); }
.theme-dark .hub-pills li { background: rgba(238,241,239,.08); color: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(238,241,239,.18); }
.hub-expect { padding: 18px 20px; border-radius: 16px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.theme-dark .hub-expect { background: rgba(238,241,239,.06); }
.hub-expect p { margin: 0; max-width: 60ch; }
@media (min-width: 960px) {
  .hub-ch-inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(40px, 6vw, 96px); align-items: start; }
  .hub-ch.is-flip .hub-ch-inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .hub-ch.is-flip .hub-media { order: 2; }
  .hub-media { position: sticky; top: 96px; }
  .hub-frame { aspect-ratio: 1 / 1; }
  .hub-ch.is-flip .hub-num { right: auto; left: var(--pad); }
}
.hub-chfoot { padding-block: clamp(32px, 4vw, 56px); }
.hub-chfoot p { margin: 0; color: var(--muted); max-width: 72ch; }
.hub-chfoot a, .hub-see { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--accent-ink); }

/* ---------- formats index A to Z ---------- */
.hub-az-nav { display: none; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; }
.hub-az-nav a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-family: var(--mono); font-size: .8rem; box-shadow: inset 0 0 0 1px var(--line); }
@media (hover: hover) and (pointer: fine) { .hub-az-nav a:hover { background: var(--accent); } }
.hub-az { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.hub-az-group { padding-top: 12px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.hub-az-letter { margin: 0 0 4px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--accent-ink); }
.hub-az ul { list-style: none; margin: 0; padding: 0; }
.hub-az li a { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 48px; padding: 6px 0; }
.hub-az-f { font-weight: 600; letter-spacing: -.01em; }
.hub-az-m { margin-left: 4px; }
.hub-az-p { display: none; color: var(--muted); font-size: .9rem; }
.hub-az li a:hover .hub-az-f { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 640px) { .hub-az { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hub-az-p { display: block; } }
@media (min-width: 1024px) { .hub-az { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 28px; } .hub-az-nav { display: flex; } }
.hub-az-m .confirm-id { margin-left: 4px; }
.hub-az-m[data-proof="placeholder"] { text-decoration: underline dotted; text-decoration-color: var(--accent-ink); text-underline-offset: 3px; }

/* ---------- comparison table (stacked as labelled rows below 1100 px) ---------- */
.hub-table { width: 100%; border-collapse: collapse; font-size: .96rem; line-height: 1.5; }
.hub-table th, .hub-table td { text-align: left; vertical-align: top; padding: 18px 16px 18px 0; border-top: 1px solid var(--line); }
.hub-table thead th { border-top: 0; padding-top: 0; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); font-weight: 600; }
.hub-table tbody th { font-weight: 600; width: 20%; }
.hub-table tbody th a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; display: inline-flex; align-items: center; min-height: 44px; }
.hub-table tbody th a:hover { color: var(--accent-ink); text-decoration-color: currentColor; }
.hub-table td { color: var(--muted); }
@media (max-width: 1099.98px) {
  .hub-table, .hub-table tbody, .hub-table tr, .hub-table th, .hub-table td { display: block; }
  .hub-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hub-table tr { background: var(--surface); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); padding: 8px 20px 12px; margin-bottom: 12px; }
  .hub-table th, .hub-table td { padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); width: auto !important; }
  .hub-table tbody th { border-top: 0; font-size: 1.15rem; padding-top: 12px; }
  .hub-table td::before { content: attr(data-label); display: block; margin-bottom: 2px; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); opacity: .78; }
}

/* ---------- ledger across all six: affects tags, See how ---------- */
.hub-tags { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hub-tags li { padding: 3px 10px; border-radius: 999px; background: var(--tint); font-size: .66rem; color: var(--ink); }
.hub-see { margin-top: 4px; }
.hub-see .icon { transition: transform .45s var(--ease-expo); }
@media (hover: hover) and (pointer: fine) { .hub-see:hover .icon { transform: translateX(4px); } }
.hub-slip .slip-b p { margin-bottom: 4px; }

/* ---------- sample documents viewer ---------- */
.hub-tabs { display: grid; gap: clamp(28px, 3vw, 40px); }
.hub-panel { display: grid; gap: 14px; align-content: start; justify-items: start; min-width: 0; width: 100%; }
.hub-panel-h { margin: 0; font-weight: 600; text-transform: uppercase; letter-spacing: -.02em; font-size: 1.3rem; }
.hub-panel .matrix, .hub-panel .check-list { width: 100%; }
.hub-panel .matrix-note { margin: 0; }
.hub-panel .check-list li:first-child { padding-top: 12px; }
.hub-tabs.is-tabs .hub-panel-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hub-tabs.is-tabs { gap: 0; }
.hub-tablist { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.hub-tab { min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); transition: background-color .3s var(--ease-out); }
.hub-tab[aria-selected="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.hub-tab:focus-visible { outline-offset: 3px; border-radius: 999px; }
.hub-panel[hidden] { display: none; }
.hub-ros th[scope="row"] { width: 72px; font-weight: 400; }
.hub-ros time { color: var(--accent-ink); font-size: .8rem; }
.hub-ros td:last-child { white-space: normal; }
@media (max-width: 640px) {
  .hub-ros thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hub-ros tr { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 12px; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
  .hub-ros th, .hub-ros td { border: 0; padding: 0; width: auto; }
  .hub-ros td:nth-child(3) { grid-column: 2; color: var(--muted); font-size: .88rem; }
  .hub-ros td:nth-child(2) { grid-column: 2; }
}

/* ---------- cost line above the FAQ ---------- */
.hub-cost { margin: 0 0 clamp(28px, 4vw, 48px); padding: 16px 20px; border-radius: 16px; background: var(--tint); max-width: 72ch; }

/* ---------- placeholders ---------- */
.confirm-id { color: var(--ink); font-size: .66rem; }
.hub-table .confirm-id { margin-left: 6px; }

@media (prefers-reduced-motion: reduce) {
  .hub-bar, .hub-bar-list a::after, .hub-row-go, .hub-tab { transition: none; }
}
