/* ============================================================
   HUB (HIERARCHY ANCHOR) — /industries/, /what-we-do/
   Shared by any page using Template Name "Hub (Hierarchy Anchor)".
   Self-contained .hub-* prefix, fully fluid (no max-width cap). Hero +
   CTA follow the standard clip-text pattern used on every service/
   industry page; the tile grid adapts the .ihome-tile photo-card
   pattern from the home page's services bento grid (image + dark
   overlay + hover zoom + label), extended with a one-line description
   and a "Learn more" affordance since a hub tile has no home-page-style
   surrounding context to explain what it links to.
   ============================================================ */

.hub-page {
  --gutter: clamp(20px, 4vw, 50px);
  --gold: var(--ds-gold, #f6b43f);
  --navy: var(--ds-navy, #1e2e4c);
  --ink:  var(--ds-dark-900, #141414);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--t-bg);
  overflow-x: clip;
}

@media (scripting: enabled) {
  .hub-page .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s var(--ease-out); }
}
.hub-page .reveal.in { opacity: 1; transform: none; }

.hub-page a:focus-visible,
.hub-cta__btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.hub-kicker { font-family: var(--ds-font-heading); font-size: clamp(13px, 1.1vw, 16px); font-weight: 500; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.02em; color: var(--t-text-muted, #5b6472); margin: 0 0 clamp(18px, 2.2vw, 32px); }


/* ════ 1. HERO ════ */
.hub-hero { background: var(--t-bg); padding: clamp(80px, 12vw, 100px) var(--gutter) clamp(48px, 6vw, 80px); }
.hub-hero__inner { margin: 0 auto; }
.hub-hero__rule { display: block; height: 1px; margin-bottom: clamp(28px, 4vw, 56px); }
.hub-hero__title { font-family: var(--ds-font-heading); font-size: clamp(36px, 5.6vw, 76px); font-weight: 800; line-height: 1.08; letter-spacing: -0.01em; text-transform: uppercase; margin: 0 0 clamp(20px, 2.5vw, 32px); max-width: 26ch; color: var(--t-text); }
.hub-hero__title.is-clip-text { background-color: var(--t-text); background-repeat: no-repeat; background-attachment: fixed; background-size: cover; background-position: center top; filter: brightness(0.65); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hub-hero__lead { font-family: var(--ds-font-heading); font-size: clamp(17px, 1.7vw, 22px); font-weight: 400; line-height: 1.45; color: var(--t-text); margin: 0; max-width: 80ch; }
.hub-hero__lead + .hub-hero__lead { margin-top: clamp(12px, 1.5vw, 18px); }
.hub-hero__band { margin: clamp(32px, 5vw, 60px) auto 0; height: clamp(150px, 20vw, 280px); background-repeat: no-repeat; background-size: cover; background-position: center; background-attachment: fixed; }


/* ════ 2. TILE GRID ════ */
.hub-grid-section { background: var(--t-bg); padding: 0 var(--gutter) clamp(48px, 6vw, 96px); }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(14px, 1.6vw, 20px); }

.hub-tile { position: relative; display: flex; align-items: flex-end; min-height: clamp(280px, 26vw, 340px); overflow: hidden; text-decoration: none; background-color: var(--ink); background-size: cover; background-position: center; isolation: isolate; }
.hub-tile::before { content: ''; position: absolute; inset: 0; z-index: 0; background-image: inherit; background-size: cover; background-position: center; transition: transform 0.7s var(--ease-out); }
.hub-tile:hover::before, .hub-tile:focus-visible::before { transform: scale(1.08); }
.hub-tile__overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(9,16,29,0.15) 0%, rgba(9,16,29,0.9) 78%); transition: background 0.4s ease; }
.hub-tile:hover .hub-tile__overlay, .hub-tile:focus-visible .hub-tile__overlay { background: linear-gradient(180deg, rgba(9,16,29,0.05) 0%, rgba(9,16,29,0.94) 78%); }
.hub-tile__body { position: relative; z-index: 2; padding: clamp(22px, 2.2vw, 32px); display: flex; flex-direction: column; gap: 10px; transition: transform 0.4s ease; }
.hub-tile:hover .hub-tile__body, .hub-tile:focus-visible .hub-tile__body { transform: translateY(-6px); }
.hub-tile__label { font-family: var(--ds-font-heading); font-size: clamp(18px, 1.8vw, 23px); font-weight: 700; line-height: 1.2; text-transform: uppercase; color: #fff; }
.hub-tile__desc { font-family: var(--ds-font-heading); font-size: clamp(13px, 1.3vw, 15px); line-height: 1.45; color: rgba(255,255,255,0.8); max-width: 42ch; }
.hub-tile__more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--ds-font-heading); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }


/* ════ 3. CTA ════ */
.hub-cta { background: var(--t-bg); }
.hub-cta__panel { padding: clamp(48px, 6vw, 96px) var(--gutter); display: flex; flex-direction: column; align-items: center; text-align: center; }
.hub-cta__title { font-family: var(--ds-font-heading); font-size: clamp(28px, 4.6vw, 56px); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; text-transform: uppercase; color: var(--t-text); margin: 0 0 clamp(24px, 3vw, 40px); max-width: 26ch; }
.hub-cta__title.is-clip-text { background-color: var(--t-text); background-repeat: no-repeat; background-attachment: fixed; background-size: cover; background-position: center; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hub-cta__sub { font-family: var(--ds-font-heading); font-size: clamp(15px, 1.5vw, 20px); font-weight: 400; line-height: 1.5; color: var(--t-text); margin: 0 0 clamp(28px, 3vw, 40px); max-width: 80ch; }
.hub-cta__btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 clamp(28px, 3vw, 44px); background: var(--ink); color: #fff; font-family: var(--ds-font-heading); font-size: clamp(16px, 1.5vw, 24px); font-weight: 600; text-transform: uppercase; text-decoration: none; transition: background 0.25s ease, color 0.25s ease; }
.hub-cta__btn:hover { background: var(--gold); color: #141414; }
.hub-cta__band { height: clamp(160px, 22vw, 300px); background-repeat: no-repeat; background-size: cover; background-position: center; background-attachment: fixed; }


/* ════ DARK MODE ════ */
[data-theme="dark"] .hub-cta__btn { background: #f4f6f9; color: #141414; }
[data-theme="dark"] .hub-cta__btn:hover { background: var(--gold); color: #141414; }


/* ════ RESPONSIVE ════ */
@media (hover: none), (max-width: 1024px) {
  .hub-hero__title.is-clip-text, .hub-hero__band,
  .hub-cta__title.is-clip-text, .hub-cta__band { background-attachment: scroll; }
}
@media (max-width: 860px) {
  .hub-hero { padding-top: clamp(110px, 20vw, 130px); }
  .hub-hero__title.is-clip-text { background-image: none !important; background-color: transparent; -webkit-background-clip: unset; background-clip: unset; -webkit-text-fill-color: var(--t-text); color: var(--t-text); }
  .hub-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hub-cta__title.is-clip-text { background-image: none !important; background-color: transparent; -webkit-background-clip: unset; background-clip: unset; -webkit-text-fill-color: var(--t-text); color: var(--t-text); }
}
@media (prefers-reduced-motion: reduce) {
  .hub-page .reveal { opacity: 1; transform: none; transition: none; }
  .hub-hero__title.is-clip-text, .hub-hero__band, .hub-cta__title.is-clip-text, .hub-cta__band { background-attachment: scroll; }
  .hub-page *, .hub-page *::before { transition: none !important; }
}
