/* ═══════════════════════════════════════════════════════════════════
   HUMANITAS TRUST — Interface Layer 2125
   Sits on top of Design System v3 (styles.css). Warm, clinical, light:
   pearl glass, slow aurora light, live vital signs. GCI is the cold
   authority behind the glass; Humanitas is the hand that holds yours.
   ═══════════════════════════════════════════════════════════════════ */
@font-face { font-family: 'IBM Plex Mono'; font-weight: 400; font-display: swap; src: url('../fonts/IBMPlexMono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url('../fonts/IBMPlexMono-500.woff2') format('woff2'); }

:root {
  --bg: #F7F9FC;
  --bg-2: #EDF2FA;
  --bg-3: #E1E9F5;
  --teal: #2DCECF;
  --teal-ink: #0E8E93;
  --peri: #7C9CFF;
  --blush: #FFB9A3;
  --glass: rgba(255,255,255,0.62);
  --glass-hi: rgba(255,255,255,0.82);
  --hair: rgba(13,13,38,0.08);
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --radius: 18px;
  --shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 10px 30px rgba(20,40,90,0.06);
  --shadow-lg: 0 1px 0 rgba(255,255,255,0.9) inset, 0 24px 70px rgba(20,40,90,0.12);
}

/* Ambient aurora behind every page */
body { background: var(--bg); }
body::before {
  content: ''; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 20% 15%, rgba(45,206,207,0.13), transparent 70%),
    radial-gradient(35% 30% at 85% 25%, rgba(124,156,255,0.12), transparent 70%),
    radial-gradient(45% 40% at 60% 90%, rgba(255,185,163,0.10), transparent 70%);
  animation: aurora 38s ease-in-out infinite alternate;
}
@keyframes aurora { 0% { transform: translate3d(0,0,0) rotate(0deg); } 100% { transform: translate3d(-4%,3%,0) rotate(8deg); } }
::selection { background: rgba(45,206,207,0.25); }

/* Micro-type */
.eyebrow { font-family: var(--mono) !important; font-weight: 400 !important; letter-spacing: 0.2em !important; font-size: 0.68rem !important; color: var(--teal-ink) !important; display: inline-flex; align-items: center; gap: 0.6rem; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(45,206,207,0.15); flex-shrink: 0; }
.centered .eyebrow, .eyebrow[style*="text-align:center"], .eyebrow[style*="text-align: center"] { justify-content: center; }
.accent-rule { height: 2px !important; width: 48px !important; border-radius: 2px; background: linear-gradient(90deg, var(--teal), var(--peri)) !important; }
.initiative-num, .pillar-num, .step-num, .service-number, .news-tag, .news-date, .job-dept, .center-badge, .data-lbl, .global-stat-lbl, .label, .region-lbl, .pub-year, .history-year, .gci-detail-label {
  font-family: var(--mono) !important; letter-spacing: 0.14em;
}

/* Glass navigation */
.nav { background: rgba(247,249,252,0.66) !important; -webkit-backdrop-filter: blur(22px) saturate(170%) !important; backdrop-filter: blur(22px) saturate(170%) !important; border-bottom: 1px solid var(--hair) !important; }
.nav.scrolled { background: rgba(247,249,252,0.84) !important; box-shadow: 0 8px 30px rgba(20,40,90,0.06) !important; }
.ht-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; transform-origin: 0 50%; transform: scaleX(var(--read, 0)); background: linear-gradient(90deg, var(--teal), var(--peri)); border-radius: 2px; pointer-events: none; }

/* Buttons: soft pills with a moving sheen */
.btn { border-radius: 999px !important; position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease) !important; }
.btn::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent); transform: skewX(-18deg); transition: left .8s var(--ease); pointer-events: none; }
.btn:hover::after { left: 120%; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { box-shadow: 0 10px 30px rgba(45,206,207,0.28); }

/* The card family: frosted glass, soft lift, a teal line that wakes on hover */
.card, .initiative-block, .pillar, .stat-block, .service-item, .tech-block, .news-card, .region-card, .team-card,
.center-entry, .job-item, .partner-block, .publication, .process-step, .contact-office, .board-member, .focus-area {
  border-radius: var(--radius) !important;
  background: var(--glass) !important;
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.75) !important;
  box-shadow: var(--shadow) !important;
  position: relative;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .5s var(--ease) !important;
}
.card:hover, .initiative-block:hover, .pillar:hover, .stat-block:hover, .service-item:hover, .tech-block:hover, .news-card:hover, .region-card:hover,
.team-card:hover, .center-entry:hover, .job-item:hover, .partner-block:hover, .publication:hover, .process-step:hover, .focus-area:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg) !important; background: var(--glass-hi) !important;
}
.ht-glow::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(45,206,207,0.12), transparent 60%); }
.ht-glow:hover::after { opacity: 1; }
/* grids that used 1px gaps as borders get breathing room */
.initiative-grid, .pillars { gap: 1.1rem !important; background: transparent !important; border: 0 !important; }

/* Images: rounded, living */
.split-image, .split-image img, .team-photo, .board-photo, .lifestyle-shot { border-radius: var(--radius); overflow: hidden; }
.split-image { position: relative; box-shadow: var(--shadow-lg); }
.ht-living-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.is-living > img, .is-living > video { visibility: hidden; }
.split-image.is-living { cursor: crosshair; touch-action: pan-y; }
.ht-living-tag { position: absolute; left: 0.9rem; bottom: 0.9rem; z-index: 2; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.38rem 0.7rem; border-radius: 999px;
  background: rgba(255,255,255,0.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.9);
  font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-ink); pointer-events: none; transition: opacity .4s; }
.split-image:hover .ht-living-tag { opacity: 0.4; }
.ht-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(45,206,207,0.5); animation: htpulse 2.2s var(--ease) infinite; flex-shrink: 0; }
@keyframes htpulse { 0% { box-shadow: 0 0 0 0 rgba(45,206,207,0.5); } 70% { box-shadow: 0 0 0 8px rgba(45,206,207,0); } 100% { box-shadow: 0 0 0 0 rgba(45,206,207,0); } }

/* ═══ HOMEPAGE HERO: the vital field ═══ */
.hero-v2 { background: linear-gradient(180deg, #FBFCFE 0%, var(--bg) 100%) !important; }
.hero-reel-video { opacity: 0.16 !important; }
#ht-vitals { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; width: 100%; z-index: 1; pointer-events: none; }
.ht-monitor {
  position: absolute; z-index: 3; right: clamp(1.25rem, 4vw, 3.5rem); top: calc(72px + 4.5rem); width: 300px;
  padding: 1rem 1.1rem 1.1rem; border-radius: var(--radius);
  background: var(--glass-hi); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.9); box-shadow: var(--shadow-lg);
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim);
}
.ht-monitor-head { display: flex; align-items: center; gap: 0.55rem; color: var(--teal-ink); margin-bottom: 0.8rem; }
.ht-monitor canvas { display: block; width: 100%; height: 56px; }
.ht-monitor .row { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.6rem; margin-top: 0.6rem; border-top: 1px solid var(--hair); }
.ht-monitor .row b { font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
@media (max-width: 1100px) { .ht-monitor { display: none; } }

/* Global presence: live globe of centers */
#ht-globe { position: absolute; top: 50%; left: 50%; width: min(1100px, 130vw); height: min(1100px, 130vw); max-width: none; transform: translate(-50%, -50%); z-index: 0; opacity: 0.95; }
.global-feature.has-globe .global-feature-video { display: none; }
.global-feature-content { position: relative; z-index: 2; }

/* ═══ INTAKE CARD: the site notices you, gently ═══ */
.ht-intake {
  position: fixed; right: clamp(0.75rem, 2vw, 1.5rem); bottom: 1.25rem; z-index: 90; width: 310px;
  border-radius: var(--radius); background: var(--glass-hi); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.9); box-shadow: var(--shadow-lg); color: var(--text);
  opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.ht-intake.shown { opacity: 1; transform: none; pointer-events: auto; }
.ht-intake-head { display: flex; align-items: center; gap: 0.55rem; padding: 0.85rem 1rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-ink); border-bottom: 1px solid var(--hair); }
.ht-intake-toggle { margin-left: auto; background: none; border: 0; font: inherit; color: var(--dim); cursor: pointer; letter-spacing: 0.14em; }
.ht-intake-body { padding: 0.9rem 1rem 1rem; display: grid; gap: 0.5rem; }
.ht-intake .row { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8rem; }
.ht-intake .row span:first-child { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); padding-top: 0.15rem; }
.ht-intake .row span:last-child { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.ht-intake .note { margin-top: 0.3rem; padding-top: 0.7rem; border-top: 1px dashed var(--hair); font-size: 0.82rem; line-height: 1.5; }
.ht-intake .note em { font-style: normal; color: var(--teal-ink); }
.ht-intake.collapsed .ht-intake-body { display: none; }
.ht-intake.collapsed .ht-intake-head { border-bottom: 0; }
.ht-intake.collapsed { width: auto; }
@media (max-width: 640px) { .ht-intake { left: 0.75rem; right: 0.75rem; width: auto; bottom: 0.75rem; } .ht-intake.collapsed { left: auto; } }

/* ═══ Companion console (Ask) ═══ */
.ht-ask-btn { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0.75rem; padding: 0.45rem 0.75rem; border-radius: 999px; border: 1px solid var(--hair); background: rgba(255,255,255,0.6); font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); cursor: pointer; flex-shrink: 0; transition: border-color .3s, box-shadow .3s; }
.ht-ask-btn:hover { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(45,206,207,0.12); }
.ht-ask-btn kbd { font-family: var(--mono); font-size: 0.58rem; color: var(--dim); border: 1px solid var(--hair); border-radius: 6px; padding: 0.05rem 0.35rem; }
@media (max-width: 1100px) { .ht-ask-btn { margin-left: auto; } .ht-ask-btn kbd { display: none; } }
.ht-ask { position: fixed; inset: 0; z-index: 200; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 1rem 2rem; background: rgba(230,236,246,0.55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility 0s .3s; }
.ht-ask.open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease); }
.ht-ask-panel { width: min(700px, 100%); max-height: 76vh; display: flex; flex-direction: column; border-radius: 22px; background: rgba(255,255,255,0.9); border: 1px solid #fff; box-shadow: 0 40px 120px rgba(20,40,90,0.22); overflow: hidden; transform: translateY(-8px) scale(0.985); transition: transform .4s var(--ease); }
.ht-ask.open .ht-ask-panel { transform: none; }
.ht-ask-head { display: flex; align-items: center; gap: 0.55rem; padding: 0.9rem 1.2rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-ink); border-bottom: 1px solid var(--hair); }
.ht-ask-close { margin-left: auto; background: none; border: 1px solid var(--hair); border-radius: 8px; font: inherit; color: var(--dim); padding: 0.15rem 0.45rem; cursor: pointer; }
.ht-ask-input { display: flex; align-items: center; gap: 0.8rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--hair); }
.ht-ask-input svg { width: 22px; height: 22px; flex-shrink: 0; }
.ht-ask-input input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-family: var(--display); font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--ink); caret-color: var(--teal); }
.ht-ask-meta { padding: 0.7rem 1.25rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.ht-ask-results { list-style: none; margin: 0; padding: 0 0.6rem 0.7rem; overflow-y: auto; }
.ht-ask-results a { display: grid; gap: 0.3rem; padding: 0.85rem 0.85rem; border-radius: 14px; text-decoration: none; }
.ht-ask-results li.active a { background: rgba(45,206,207,0.09); }
.ht-ask-results .k { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-ink); }
.ht-ask-results .t { font-family: var(--display); font-size: 1rem; color: var(--ink); }
.ht-ask-results .x { font-size: 0.86rem; line-height: 1.55; color: var(--text); }
.ht-ask-results mark { background: rgba(45,206,207,0.18); color: var(--ink); border-radius: 3px; padding: 0 0.1em; }
.ht-ask-suggest { display: inline-block; margin: 0.25rem 0.3rem 0.25rem 0.6rem; padding: 0.45rem 0.8rem; border-radius: 999px; border: 1px solid var(--hair); font-size: 0.82rem; color: var(--text); cursor: pointer; background: #fff; }
.ht-ask-suggest:hover { border-color: var(--teal); color: var(--ink); }
.ht-ask-special { margin: 0.3rem 0.6rem 0.7rem; padding: 1.1rem 1.2rem; border-radius: 16px; background: linear-gradient(120deg, rgba(45,206,207,0.10), rgba(124,156,255,0.10)); display: grid; gap: 0.3rem; font-family: var(--display); font-size: 1.15rem; color: var(--ink); }
.ht-ask-foot { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 1.25rem; border-top: 1px solid var(--hair); font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }

/* Soft cursor halo (desktop) */
.ht-halo { position: fixed; left: 0; top: 0; z-index: 300; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; pointer-events: none; opacity: 0;
  border: 1px solid rgba(14,142,147,0.45); background: radial-gradient(circle, rgba(45,206,207,0.14), transparent 70%); transition: opacity .3s, width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), border-color .3s; }
.ht-halo.on { opacity: 1; }
.ht-halo.lock { width: 52px; height: 52px; margin: -26px 0 0 -26px; border-color: var(--teal); }

/* Reveals: a soft focus-pull instead of GCI's decoding */
.js-ht .ht-reveal { opacity: 0; filter: blur(8px); transform: translateY(10px); transition: opacity 1.1s var(--ease), filter 1.1s var(--ease), transform 1.1s var(--ease); }
.js-ht .ht-reveal.in { opacity: 1; filter: none; transform: none; }

/* Cross-page transitions */
@view-transition { navigation: auto; }
.nav { view-transition-name: ht-nav; }
::view-transition-old(root) { animation: htvt-out .35s var(--ease) both; }
::view-transition-new(root) { animation: htvt-in .6s var(--ease) both; }
@keyframes htvt-out { to { opacity: 0; filter: blur(6px) brightness(1.08); } }
@keyframes htvt-in { from { opacity: 0; filter: blur(10px) brightness(1.1); } }

@media (prefers-reduced-motion: reduce) {
  body::before, .btn::after, .ht-dot { animation: none !important; }
  .js-ht .ht-reveal { opacity: 1; filter: none; transform: none; }
  .ht-halo { display: none; }
}

/* ═══ Phone safety net: inline multi-column layouts collapse, nothing runs off-screen ═══ */
@media (max-width: 760px) {
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  [style*="display: flex"], [style*="display:flex"] { flex-wrap: wrap !important; }
  [style*="white-space: nowrap"], [style*="white-space:nowrap"] { white-space: normal !important; }
  [style*="min-width"] { min-width: 0 !important; }
  .container { padding-left: 1.25rem !important; padding-right: 1.25rem !important; max-width: 100% !important; }
  img, video, input, select, textarea { max-width: 100%; }
  .btn { white-space: normal; }
  h2, h3, h4, p, .eyebrow { overflow-wrap: anywhere; }
  .split { gap: 2.5rem !important; }
  .split > * { min-width: 0; max-width: 100%; }
}
.team-card, .board-member { overflow: hidden; }

/* ── v1.1 homepage scroll layer (ht-flow.js) ── */
.ht-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-right: 0.55em; vertical-align: 0.1em; box-shadow: 0 0 0 0 rgba(45,206,207,0.5); animation: htDot 2.4s var(--ease) infinite; }
@keyframes htDot { 0% { box-shadow: 0 0 0 0 rgba(45,206,207,0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(45,206,207,0); } }
.region-block { position: relative; }
.ht-meter { height: 3px; margin: 1.1rem 0 0.9rem; border-radius: 3px; background: var(--hair); overflow: hidden; }
.ht-meter i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--peri), var(--teal)); transition: width 1.6s var(--ease); }
.region-grid.ht-on .ht-meter i { width: calc(var(--w) * 100%); }
.region-grid.ht-on .region-block:nth-child(2) .ht-meter i { transition-delay: 0.08s; }
.region-grid.ht-on .region-block:nth-child(3) .ht-meter i { transition-delay: 0.16s; }
.region-grid.ht-on .region-block:nth-child(4) .ht-meter i { transition-delay: 0.24s; }
.region-grid.ht-on .region-block:nth-child(5) .ht-meter i { transition-delay: 0.32s; }
.region-grid.ht-on .region-block:nth-child(6) .ht-meter i { transition-delay: 0.40s; }
.ht-reg-live { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); white-space: nowrap; }
.ht-reg-live b { color: var(--teal-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.region-count { font-variant-numeric: tabular-nums; }

.ht-life { margin-top: 2.6rem; padding: 1.1rem 1.3rem 1rem; border-radius: var(--radius); background: var(--glass); border: 1px solid rgba(255,255,255,0.7); box-shadow: var(--shadow-lg); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
.ht-life-head, .ht-life-foot { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.ht-life-state { color: var(--teal-ink); }
.ht-life.ht-done .ht-life-state { color: #C46A52; }
.ht-life svg { display: block; width: 100%; max-width: none; height: auto; margin: 0.5rem 0 0.4rem; overflow: visible; }
.ht-life-trace { fill: none; stroke: url(#htLifeG); stroke-width: 1.4; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 3px rgba(45,206,207,0.35)); }
.ht-life-ghost { stroke: var(--hair); stroke-width: 1; stroke-dasharray: 2 4; }
.ht-life-head-dot { fill: #fff; stroke: var(--teal); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(45,206,207,0.8)); }
.ht-life.ht-done .ht-life-head-dot { stroke: var(--blush); animation: htEnd 1.8s ease-in-out infinite; }
@keyframes htEnd { 50% { opacity: 0.35; } }
.ht-life-axis line { stroke: var(--dim); stroke-width: 0.8; opacity: 0.5; }
.ht-life-axis text { font-family: var(--mono); font-size: 9px; fill: var(--dim); text-anchor: middle; }
.ht-life-end { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--ink); opacity: 0.7; }
.ht-life-foot b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; margin-left: 0.35em; }
@media (max-width: 600px) {
  .ht-life { padding: 0.9rem 0.9rem 0.8rem; }
  .ht-life-foot { font-size: 0.58rem; gap: 0.35rem 0.9rem; }
  .ht-reg-live { white-space: normal; }
  .ht-life-axis text { font-size: 15px; }
  .ht-life-end { font-size: 16px; }
  .ht-life-axis text:nth-of-type(even) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ht-dot, .ht-life.ht-done .ht-life-head-dot { animation: none; } .ht-meter i { transition: none; } }

/* ── v1.2 centers page: designation result (ht-centers.js) ── */
.ht-assign { display: none; max-width: 560px; margin-top: 1.25rem; padding: 1.1rem 1.3rem 1.15rem; border-radius: var(--radius); background: var(--glass-hi); border: 1px solid rgba(255,255,255,0.75); box-shadow: var(--shadow-lg); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); }
.ht-assign.on { display: block; animation: htAssignIn 0.5s var(--ease); }
@keyframes htAssignIn { from { opacity: 0; transform: translateY(6px); } }
.ht-assign-head { display: flex; align-items: center; gap: 0.2rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal-ink); }
.ht-assign-id { margin-left: auto; color: var(--dim); }
.ht-assign-bar { height: 2px; margin-top: 0.9rem; border-radius: 2px; background: var(--hair); overflow: hidden; }
.ht-assign-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--peri), var(--teal)); transition: width 0.5s var(--ease); }
.ht-assign-title { font-family: var(--display); font-weight: 300; font-size: 1.6rem; letter-spacing: -0.02em; color: var(--ink); margin: 0.55rem 0 0.9rem; line-height: 1.15; }
.ht-assign-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem 1.4rem; }
.ht-assign-grid span { display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 0.2rem; }
.ht-assign-grid b { font-weight: 400; font-size: 0.92rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.ht-assign-src { margin-top: 0.85rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.ht-assign-note { margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid var(--hair); font-size: 0.88rem; color: var(--text); }
.ht-assign-note em { font-style: normal; color: var(--teal-ink); }
.center-entry.ht-designated { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), var(--shadow-lg); }
@media (max-width: 600px) { .ht-assign-grid { grid-template-columns: 1fr; } .ht-assign-title { font-size: 1.35rem; } .search-form { flex-wrap: wrap; } .search-form .btn { width: 100%; } }

/* ── v1.3 companion page: live Companion readout (ht-companion.js) ── */
.ht-comp { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; align-items: center; margin-top: 3rem; padding: 1.6rem 1.8rem; border-radius: 26px; background: linear-gradient(160deg, rgba(13,13,38,0.94), rgba(20,32,70,0.92)); color: #E8EEFA; box-shadow: var(--shadow-lg); border: 1px solid rgba(124,156,255,0.25); }
.ht-comp-ring { position: relative; width: 200px; height: 200px; }
.ht-comp-ring svg { width: 100%; height: 100%; max-width: none; }
.ht-comp-ring .bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 7; }
.ht-comp-ring .fg { fill: none; stroke: url(#htCompG); stroke-width: 7; stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); filter: drop-shadow(0 0 6px rgba(45,206,207,0.55)); }
.ht-comp-score { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ht-comp-score b { font-family: var(--display); font-weight: 200; font-size: 3.4rem; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.ht-comp-score span, .ht-comp-head, .ht-comp-sync, .ht-comp-row span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(232,238,250,0.55); }
.ht-comp-score span { margin-top: 0.5rem; }
.ht-comp-head { display: flex; justify-content: space-between; margin-bottom: 0.9rem; color: #7FE3E4; }
.ht-comp-row { display: grid; grid-template-columns: 7.5rem 1fr 8.5rem; gap: 0.9rem; align-items: center; padding: 0.42rem 0.5rem; margin: 0 -0.5rem; border-radius: 8px; transition: background 0.3s, opacity 0.3s; }
.ht-comp-row i { height: 3px; border-radius: 3px; background: rgba(255,255,255,0.08); overflow: hidden; }
.ht-comp-row em { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--peri), var(--teal)); border-radius: inherit; transition: width 1s var(--ease); }
.ht-comp-row b { font-weight: 400; font-size: 0.85rem; color: #fff; text-align: right; font-variant-numeric: tabular-nums; }
.ht-comp.focus .ht-comp-row { opacity: 0.35; }
.ht-comp.focus .ht-comp-row.lit { opacity: 1; background: rgba(45,206,207,0.12); }
.ht-comp-sync { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem 1rem; margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid rgba(255,255,255,0.08); }
.ht-comp-sync span:last-child { color: #F2A48D; }
@media (max-width: 760px) {
  .ht-comp { grid-template-columns: 1fr; justify-items: center; padding: 1.3rem 1.1rem; }
  .ht-comp-ring { width: 170px; height: 170px; }
  .ht-comp-body { width: 100%; }
  .ht-comp-row { grid-template-columns: 6.2rem 1fr 6.8rem; gap: 0.6rem; }
  .ht-comp-row b { font-size: 0.78rem; }
}

/* ═══ Header loops + plates (2026-11-16) ═══
   Page headers can carry a muted video loop fed through the living shader;
   .ht-plate is a full-width still between sections, living like the split images. */
.ht-living-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.is-looping > .ht-living-video.is-plain { visibility: visible; opacity: 1; }
.page-hero-cinematic-bg.is-looping > img { visibility: hidden; }
section.ht-plate-section { padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 5rem); }
.ht-plate { margin: 0; }
.ht-plate-media { position: relative; aspect-ratio: 21 / 9; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: var(--bg-3); }
.ht-plate-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ht-plate-media.is-living { touch-action: pan-y; }
.ht-plate figcaption { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.9rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-ink); }
.ht-plate figcaption::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(45,206,207,0.15); flex-shrink: 0; }
@media (max-width: 640px) { .ht-plate-media { aspect-ratio: 4 / 3; } }
