/* Home hero — isis-papyrus.com
   Scope: .hh  |  tokens: --hh-*
   Base styles = phones and tablets (platform hero + topic rail).
   From 1101px the topics become a tabbed carousel. */

.hh {
  --hh-navy: #0f172a;
  --hh-navy-2: #111c33;
  --hh-navy-3: #1e293b;
  --hh-ink: #f8fafc;
  --hh-ink-2: #cbd5e1;
  --hh-ink-3: #94a3b8;
  --hh-teal: #6bb8be;
  --hh-teal-hi: #8fd0d5;
  --hh-teal-deep: #3e868c;
  --hh-line: rgba(148, 163, 184, 0.16);
  --hh-line-2: rgba(148, 163, 184, 0.32);
  --hh-tint: rgba(148, 163, 184, 0.06);
  --hh-tint-2: rgba(148, 163, 184, 0.11);
  --hh-glass: rgba(15, 23, 42, 0.72);
  --hh-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --hh-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --hh-head: 'Montserrat', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --hh-pad: 20px;
  --hh-dur: 9000ms;

  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  padding-bottom: 40px;
  background:
    radial-gradient(ellipse 70% 55% at 50% 60%, rgba(148, 163, 184, 0.1), transparent 70%),
    linear-gradient(100deg, #142039 0%, #192a47 50%, #23334f 100%);
  color: var(--hh-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hh *,
.hh *::before,
.hh *::after { box-sizing: border-box; }

/* resets carry the scope class, so the site theme's bare element rules (ul, li, p, h1-h6) cannot reach in */
.hh :where(p, h1, h2, h3, h4, h5, h6, ul, ol, li, dl, dt, dd, figure, blockquote) { margin: 0; padding: 0; }
.hh :where(ul, ol, li) { list-style: none; }
.hh :where(li)::marker { content: none; }
.hh :where(li)::before { content: none; }
/* Bootstrap rings every clicked link; keep the ring for keyboard focus only */
.hh a:focus:not(:focus-visible),
.hh button:focus:not(:focus-visible) { outline: 0; }
/* Bootstrap's normalize clips every inline svg (svg:not(:root)); these drawings reach past their box on purpose */
.hh svg.hh-repo-layer,
.hh svg.hh-strands,
.hh svg.hh-migrate,
.hh svg.hh-dep-stage { overflow: visible; }
.hh :where(img, svg) { max-width: none; }
.hh :where(img) { height: auto; border: 0; }

/* the site theme styles bare headings, paragraphs and links; inside the hero they take the hero's own colours */
.hh :where(h1, h2, h3, h4, h5, h6) {
  margin: 0;
  color: inherit;
  text-transform: none;
}
.hh :where(p, li, dt, dd, span, small, strong, b, em) { color: inherit; }
.hh :where(a):is(:link, :visited, :hover, :focus, :active) { color: inherit; }

:where(.hh) a,
:where(.hh) a:focus { text-decoration: none; }
@media (hover: hover) { :where(.hh) a:hover { text-decoration: none; } }

.hh :focus-visible {
  outline: 2px solid var(--hh-teal-hi);
  outline-offset: 3px;
}

.hh-nowrap { white-space: nowrap; }

.hh abbr[title] {
  border: 0;
  text-decoration: none;
  cursor: inherit;
}

.hh-container {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--hh-pad);
}

/* ---------- Backdrop: isometric floor the platform stands on ---------- */

.hh-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hh-iso {
  display: block;
  width: 100%;
  height: 100%;
  -webkit-mask-image: radial-gradient(ellipse 90% 46% at 50% 34%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 80%);
  mask-image: radial-gradient(ellipse 90% 46% at 50% 34%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 80%);
  transition: opacity 0.6s var(--hh-ease);
}

.hh-iso path {
  fill: none;
  stroke: rgba(148, 163, 184, 0.12);
  stroke-width: 1;
}

/* ---------- Type & actions ---------- */

.hh .hh-title {
  color: var(--hh-ink);
  font-family: var(--hh-head);
  font-weight: 800;
  font-size: clamp(32px, 22px + 2vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.hh .hh-title--md {
  font-size: clamp(24px, 17px + 1.5vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.022em;
}

.hh-lead {
  margin-top: 18px;
  max-width: 34em;
  color: var(--hh-ink-2);
  font-size: clamp(16px, 15px + 0.25vw, 18px);
  line-height: 1.6;
  text-wrap: pretty;
}

.hh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.2s var(--hh-ease), border-color 0.2s var(--hh-ease), color 0.2s var(--hh-ease);
}

.hh a.hh-btn--primary,
.hh a.hh-btn--primary:visited {
  background: var(--hh-teal);
  color: var(--hh-navy);
}
.hh a.hh-btn--primary:focus-visible {
  background: var(--hh-teal-hi);
  color: var(--hh-navy);
}
@media (hover: hover) { .hh a.hh-btn--primary:hover {
  background: var(--hh-teal-hi);
  color: var(--hh-navy);
} }

.hh a.hh-btn--quiet,
.hh a.hh-btn--quiet:visited {
  border-color: rgba(248, 250, 252, 0.32);
  background: rgba(15, 23, 42, 0.35);
  color: var(--hh-ink);
}
.hh a.hh-btn--quiet:focus-visible {
  border-color: var(--hh-ink);
  background: var(--hh-tint-2);
  color: var(--hh-ink);
}
@media (hover: hover) { .hh a.hh-btn--quiet:hover {
  border-color: var(--hh-ink);
  background: var(--hh-tint-2);
  color: var(--hh-ink);
} }

/* ---------- Stage ---------- */

.hh-stage { position: relative; z-index: 1; }
.hh-navwrap { display: none; }
.hh-panel { position: relative; }

/* ---------- Platform slide: four pillars around the repository ---------- */

.hh-hub {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'copy' 'flow' 'foot';
  justify-items: center;
  row-gap: 36px;
  padding-top: 44px;
  text-align: center;
}

.hh-hub > .hh-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1040px;
}
.hh-hub .hh-lead { margin-left: auto; margin-right: auto; }
.hh-hub > .hh-flow { grid-area: flow; }
.hh-hub > .hh-foot { grid-area: foot; }

.hh-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 1120px;
}

/* pillar cards */
.hh .hh-pillar {
  --c: 107, 184, 190;
  --mx: 50%;
  --my: 0%;
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 18px 18px 18px;
  border: 1px solid rgba(var(--c), 0.36);
  border-radius: 18px;
  background:
    linear-gradient(160deg, rgba(var(--c), 0.24) 0%, rgba(var(--c), 0.07) 46%, rgba(20, 31, 52, 0) 100%),
    #17243c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 18px 40px -26px rgba(2, 6, 23, 0.9);
  color: var(--hh-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(var(--lift));
  transition: transform 0.5s var(--hh-ease-out), border-color 0.25s var(--hh-ease), box-shadow 0.5s var(--hh-ease-out), opacity 0.3s var(--hh-ease), visibility 0s;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.hh .hh-pillar--idp { --c: 107, 184, 190; }
.hh .hh-pillar--acm { --c: 111, 207, 151; }
.hh .hh-pillar--ecm { --c: 96, 165, 250; }
.hh .hh-pillar--ccm { --c: 167, 139, 250; }

/* light that follows the pointer */
.hh .hh-pillar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(var(--c), 0.32), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s var(--hh-ease);
}

/* a thin highlight that runs along the top edge on hover */
.hh .hh-pillar::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--c), 0.9), transparent);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 0.35s var(--hh-ease), transform 0.6s var(--hh-ease-out);
}

.hh .hh-pillar.is-focus {
  --lift: -4px;
  border-color: rgba(var(--c), 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 28px 50px -26px rgba(var(--c), 0.55);
}
@media (hover: hover) { .hh .hh-pillar:hover {
  --lift: -4px;
  border-color: rgba(var(--c), 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 28px 50px -26px rgba(var(--c), 0.55);
} }
.hh .hh-pillar.is-focus::before { opacity: 1; }
@media (hover: hover) { .hh .hh-pillar:hover::before { opacity: 1; } }
.hh .hh-pillar.is-focus::after { opacity: 1; transform: scaleX(1); }
@media (hover: hover) { .hh .hh-pillar:hover::after { opacity: 1; transform: scaleX(1); } }

.hh .hh-pillar:focus-visible { outline-offset: 4px; }
.hh .hh-pillar:active { --lift: -1px; transition-duration: 0.12s; }

.hh-pillar-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hh .hh-pillar-code {
  color: rgb(var(--c));
  font-family: var(--hh-head);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  text-shadow: 0 0 22px rgba(var(--c), 0.35);
}

.hh-pillar-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgb(var(--c));
  color: var(--hh-navy);
  font-size: 16px;
  box-shadow: 0 8px 18px -8px rgba(var(--c), 0.8);
  transition: transform 0.5s var(--hh-ease-out);
}
@media (hover: hover) { .hh .hh-pillar:hover .hh-pillar-ico { transform: translateY(-2px) scale(1.05); } }

/* the card is a link: a small arrow marks where it goes */
.hh-pillar-plus {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(var(--c), 0.45);
  border-radius: 50%;
  color: rgb(var(--c));
  font-size: 11px;
  transition: transform 0.45s var(--hh-ease-out), background-color 0.25s var(--hh-ease);
}
.hh-pillar-plus i { transform: rotate(-45deg); transition: transform 0.45s var(--hh-ease-out); }
@media (hover: hover) {
  .hh .hh-pillar:hover .hh-pillar-plus { background: rgba(var(--c), 0.16); }
  .hh .hh-pillar:hover .hh-pillar-plus i { transform: rotate(0deg); }
}
.hh .hh-pillar:focus-visible .hh-pillar-plus i { transform: rotate(0deg); }

/* links styled as cards keep their card colours in every state */
.hh a.hh-pillar,
.hh a.hh-pillar:visited,
.hh a.hh-pillar:hover,
.hh a.hh-pillar:focus { color: var(--hh-ink); text-decoration: none; }
.hh abbr[title] { border-bottom: 0; text-decoration: none; cursor: inherit; }

.hh-pillar-name {
  margin-top: 14px;
  padding-right: 4px;
  color: var(--hh-ink);
  font-family: var(--hh-head);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.25;
}

.hh-pillar-tag {
  color: rgb(var(--c));
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
}

/* the value each pillar brings, always visible */
.hh-pillar-points {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(var(--c), 0.22);
  width: 100%;
}
.hh-pillar-points span {
  position: relative;
  padding-left: 14px;
  color: var(--hh-ink-2);
  font-size: 13.5px;
  line-height: 1.4;
}
.hh-pillar-points span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(var(--c));
  opacity: 0.85;
}

/* the repository */
.hh-core {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transition: opacity 0.3s var(--hh-ease), visibility 0s;
}

.hh-core-kicker {
  display: none;
  margin-bottom: 6px;
  color: var(--hh-ink-3);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 28px;
}

/* inbound and outbound, labelled where the flow enters and leaves */
.hh-lane {
  position: relative;
  z-index: 1;
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  margin: 0;
  color: var(--hh-ink-3);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.hh-lane--out { justify-content: flex-end; }

.hh-lane-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}
.hh-lane--in .hh-lane-tag {
  border: 1px solid rgba(107, 184, 190, 0.6);
  background: rgba(107, 184, 190, 0.14);
  color: #bfeaed;
}
.hh-lane--out .hh-lane-tag {
  border: 1px solid rgba(245, 158, 66, 0.6);
  background: rgba(245, 158, 66, 0.14);
  color: #ffd5a6;
}
.hh-lane-tag i { font-size: 12px; }

.hh-lane-list { overflow: hidden; text-overflow: ellipsis; }

/* the repository is stacked from separate layers so its motion stays on the GPU */
.hh-repo {
  position: relative;
  display: block;
  width: 180px;
  aspect-ratio: 240 / 216;
}
.hh-repo-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.hh-repo-glow { fill: url(#hh-repo-glow); }
.hh-repo-slab path {
  stroke: rgba(255, 224, 190, 0.7);
  stroke-width: 1;
  stroke-linejoin: round;
}
.hh-repo-slab .hh-rf-t { fill: url(#hh-repo-mid); }
.hh-repo-slab--top .hh-rf-t { fill: url(#hh-repo-top); }
.hh-repo-slab .hh-rf-l { fill: #d06a10; }
.hh-repo-slab .hh-rf-r { fill: #a9550a; }
.hh-repo-slab .hh-rf-inset { fill: none; stroke: rgba(90, 40, 0, 0.3); }

.hh-rf-word {
  fill: #4a2508;
  font-family: var(--hh-head);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
}

.hh-repo-lid { will-change: transform; animation: hh-float 6s ease-in-out infinite; }

.hh-repo-ring {
  opacity: 0;
  transform-origin: 50% 75.93%;
  will-change: transform, opacity;
  animation: hh-ring 5s var(--hh-ease-out) infinite;
}
.hh-repo-ring path {
  fill: none;
  stroke: rgba(245, 158, 66, 0.6);
  stroke-width: 1.25;
}
.hh:not(.is-flowing) .hh-repo-ring,
.hh:not(.is-flowing) .hh-repo-lid { animation-play-state: paused; }
.hh-repo-ring--2 { animation-delay: 2.5s; }

@keyframes hh-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes hh-ring {
  0% { opacity: 0; transform: scale(0.92); }
  18% { opacity: 0.85; }
  100% { opacity: 0; transform: scale(1.5); }
}

.hh a.hh-core-name,
.hh a.hh-core-name:visited {
  margin-top: 2px;
  padding: 2px 4px;
  border-radius: 4px;
  color: var(--hh-ink);
  font-family: var(--hh-head);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(245, 158, 66, 0);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  pointer-events: auto;
  transition: text-decoration-color 0.25s var(--hh-ease), color 0.25s var(--hh-ease);
}
.hh a.hh-core-name::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 200px;
  height: calc(100% - 30px);
  transform: translateX(-50%);
}
.hh-repo { transition: transform 0.6s var(--hh-ease-out); }
@media (hover: hover) {
  .hh a.hh-core-name:hover { color: #ffd5a6; text-decoration-color: rgba(245, 158, 66, 0.8); }
  .hh-core:has(a.hh-core-name:hover) .hh-repo { transform: translateY(-4px); }
}
.hh a.hh-core-name:focus-visible { color: #ffd5a6; text-decoration-color: rgba(245, 158, 66, 0.8); }

/* fiber strands behind the cards, faded out at the screen edges */
.hh-strands {
  position: absolute;
  top: -60px;
  left: 50%;
  z-index: 0;
  display: none;
  width: 100vw;
  height: calc(100% + 120px);
  overflow: visible;
  transform: translateX(-50%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  transition: opacity 0.4s var(--hh-ease);
}

.hh-strand { fill: none; stroke-linecap: round; }
.hh-strand--in-a { stroke: rgba(107, 184, 190, 0.55); }
.hh-strand--in-b { stroke: rgba(96, 165, 250, 0.42); }
.hh-strand--out-a { stroke: rgba(245, 158, 66, 0.55); }
.hh-strand--out-b { stroke: rgba(167, 139, 250, 0.42); }

/* light travelling along the strands: small layers moved along the curve, nothing is repainted */
.hh-comets {
  position: absolute;
  top: -60px;
  left: 50%;
  z-index: 0;
  display: none;
  width: 100vw;
  height: calc(100% + 120px);
  transform: translateX(-50%);
  pointer-events: none;
}
.hh-comet {
  --cr: 194, 240, 242;
  position: absolute;
  top: 0;
  left: 0;
  width: 46px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(var(--cr), 0), rgba(var(--cr), 0.85) 65%, #ffffff);
  box-shadow: 0 0 9px 1px rgba(var(--cr), 0.45);
  transform-origin: 100% 50%;
  opacity: 0;
  will-change: transform, opacity;
  animation-duration: 7s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}
.hh-comet--out { --cr: 255, 213, 166; }
.hh.is-flowing .hh-comet { animation-play-state: running; }

/* the path itself is written by the script as one keyframe set per comet */
@keyframes hh-comet-fade {
  0% { opacity: 0; }
  7% { opacity: 1; }
  93% { opacity: 1; }
  100% { opacity: 0; }
}

/* desktop carousel: slides that are not showing keep their loops paused */
@media (min-width: 1101px) {
  .hh-panel:not(.is-active) *,
  .hh-panel:not(.is-active) *::before,
  .hh-panel:not(.is-active) *::after { animation-play-state: paused !important; }
}




/* key numbers, then the next step */
.hh-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 28px;
  width: 100%;
  max-width: 1120px;
}

.hh-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  margin: 0;
}

.hh-foot .hh-actions {
  justify-content: center;
  margin-top: 0;
}

.hh-metric {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.hh-metric dd {
  margin: 0;
  color: var(--hh-ink);
  font-family: var(--hh-head);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.hh-metric dt {
  color: var(--hh-ink-3);
  font-size: 13px;
  font-weight: 600;
}

/* first view: one orchestrated entrance */
.hh-hub.is-intro .hh-copy > * { animation: hh-in 0.8s var(--hh-ease-out) both; }
.hh-hub.is-intro .hh-copy > :nth-child(2) { animation-delay: 0.08s; }
.hh-hub.is-intro .hh-lane { animation: hh-fade 0.8s var(--hh-ease) 0.45s both; }
.hh-hub.is-intro .hh-core { animation: hh-drop 0.9s var(--hh-ease-out) 0.2s both; }
.hh-hub.is-intro .hh-pillar { animation: hh-card 0.8s var(--hh-ease-out) both; }
.hh-hub.is-intro .hh-pillar--acm { animation-delay: 0.32s; }
.hh-hub.is-intro .hh-pillar--ecm { animation-delay: 0.32s; }
.hh-hub.is-intro .hh-pillar--idp { animation-delay: 0.42s; }
.hh-hub.is-intro .hh-pillar--ccm { animation-delay: 0.42s; }
.hh-hub.is-intro .hh-strands,
.hh-hub.is-intro .hh-comets { animation: hh-fade 1.2s var(--hh-ease) 0.5s both; }
.hh-hub.is-intro .hh-foot { animation: hh-fade 0.8s var(--hh-ease) 0.6s both; }

@keyframes hh-drop {
  from { opacity: 0; transform: translate3d(0, -14px, 0) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes hh-card {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes hh-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* isometric slabs (migration drawing) */
.hh-stack-floor { fill: rgba(107, 184, 190, 0.07); }

.hh-slab path {
  stroke: rgba(107, 184, 190, 0.55);
  stroke-width: 1;
  stroke-linejoin: round;
  transition: fill 0.45s var(--hh-ease), stroke 0.45s var(--hh-ease);
}
.hh-slab .hh-face-t { fill: #1b2a44; }
.hh-slab .hh-face-l { fill: #152238; }
.hh-slab .hh-face-r { fill: #101a2d; }
.hh-slab--top .hh-face-t { fill: #1e3d55; }
.hh-slab .hh-face-inset { fill: none; stroke: rgba(143, 208, 213, 0.32); }

.hh-doc--raw .hh-pg { fill: #cbd5e1; }
.hh-doc--raw .hh-ln { fill: #64748b; }
.hh-doc--done .hh-pg { fill: #ffffff; }
.hh-doc--done .hh-ln { fill: #cbd5e1; }
.hh-doc--done .hh-bar { fill: var(--hh-teal-deep); }

/* ---------- Topic panels ---------- */

.hh-split { display: flex; flex-direction: column; }

.hh-panel-img { display: none; }

.hh-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(248, 250, 252, 0.16);
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(30, 41, 59, 0.55), rgba(15, 23, 42, 0.85));
  box-shadow: 0 30px 60px -30px rgba(2, 6, 23, 0.8);
}

.hh-video-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.hh-video-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  padding-left: 4px;
  border-radius: 50%;
  background: var(--hh-ink);
  color: var(--hh-navy);
  font-size: 22px;
  box-shadow: 0 0 0 10px rgba(248, 250, 252, 0.12);
  transition: transform 0.25s var(--hh-ease), box-shadow 0.25s var(--hh-ease);
}
@media (hover: hover) { .hh-video-btn:hover .hh-video-play {
  transform: scale(1.05);
  box-shadow: 0 0 0 14px rgba(248, 250, 252, 0.16);
} }

.hh-video-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: var(--hh-ink);
  font-size: 14px;
  font-weight: 700;
}

.hh-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.hh-video.is-playing .hh-video-btn { display: none; }

/* migration drawing */
.hh-migrate { display: block; width: 100%; height: auto; overflow: visible; }
.hh-sheet { fill: #172238; stroke: rgba(203, 213, 225, 0.55); stroke-width: 1.25; stroke-dasharray: 5 4; }
.hh-sheet-ln { fill: none; stroke: rgba(203, 213, 225, 0.3); stroke-width: 3; stroke-linecap: round; }
.hh-mig-tag rect { fill: var(--hh-navy); stroke: var(--hh-line-2); }
.hh-mig-tag text { fill: var(--hh-ink-2); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.hh-mig-label { fill: var(--hh-ink-3); font-size: 13px; font-weight: 600; }
.hh-mig-label--strong { fill: var(--hh-ink); font-family: var(--hh-head); font-size: 14.5px; font-weight: 700; }
.hh-mig-wires path { fill: none; stroke: var(--hh-line-2); stroke-width: 1.5; }
.hh-mig-core { fill: #17384a; stroke: var(--hh-teal); stroke-width: 1.5; }
.hh-mig-orbit { fill: none; stroke: rgba(107, 184, 190, 0.45); stroke-width: 1.25; stroke-dasharray: 3 6; }
.hh-mig-sat { fill: var(--hh-teal-hi); }
.hh-mig-spark { fill: var(--hh-teal-hi); }
.hh-mig-ai-t { fill: var(--hh-ink); font-family: var(--hh-head); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.hh-mig-ring {
  transform-box: view-box;
  transform-origin: 315px 194px;
  animation: hh-orbit 18s linear infinite;
}

@keyframes hh-orbit {
  to { transform: rotate(360deg); }
}

/* deployment: one platform, three ways to run it */
.hh-dep {
  width: 100%;
  max-width: 580px;
  padding: 16px 18px 18px;
  border: 1px solid var(--hh-line);
  border-radius: 18px;
  background: var(--hh-glass);
  box-shadow: 0 30px 60px -34px rgba(2, 6, 23, 0.85);
}

.hh-dep-modes {
  display: flex;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--hh-line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
}

.hh .hh-dep-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--hh-ink-3);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s var(--hh-ease), color 0.3s var(--hh-ease);
  -webkit-appearance: none;
  appearance: none;
}
.hh .hh-dep-mode i { font-size: 13px; }
@media (hover: hover) { .hh .hh-dep-mode:hover { color: var(--hh-ink); } }
.hh .hh-dep-mode[aria-pressed="true"] { background: var(--hh-teal); color: var(--hh-navy); }

.hh-dep-stage {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 10px;
  overflow: visible;
}

.hh-dep-scene { opacity: 0; transition: opacity 0.5s var(--hh-ease); }
.hh-dep[data-hh-mode="onprem"] [data-hh-scene="onprem"],
.hh-dep[data-hh-mode="cloud"] [data-hh-scene="cloud"],
.hh-dep[data-hh-mode="hybrid"] [data-hh-scene="hybrid"] { opacity: 1; }

.hh-dep-stack {
  transform: translateY(-10px);
  transition: transform 0.7s var(--hh-ease-out);
}
.hh-dep[data-hh-mode="onprem"] [data-hh-scene="onprem"] .hh-dep-stack,
.hh-dep[data-hh-mode="cloud"] [data-hh-scene="cloud"] .hh-dep-stack,
.hh-dep[data-hh-mode="hybrid"] [data-hh-scene="hybrid"] .hh-dep-stack { transform: none; }

.hh-dep-frame { fill: rgba(148, 163, 184, 0.05); stroke: rgba(148, 163, 184, 0.4); stroke-width: 1.25; stroke-dasharray: 5 5; }
.hh-dep-cloud { fill: rgba(107, 184, 190, 0.08); stroke: rgba(107, 184, 190, 0.65); stroke-width: 1.5; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; }
.hh-dep-label { fill: var(--hh-ink-3); font-size: 12.5px; font-weight: 600; }
.hh-dep-label--sync { fill: var(--hh-teal-hi); }
.hh-dep-floor { fill: rgba(245, 158, 66, 0.12); }

.hh-dep-slab path { stroke: rgba(255, 224, 190, 0.7); stroke-width: 1; stroke-linejoin: round; }
.hh-dep-top { fill: url(#hh-dep-g-top); }
.hh-dep-mid { fill: url(#hh-dep-g-mid); }
.hh-dep-l { fill: #d06a10; }
.hh-dep-r { fill: #a9550a; }

.hh-rack-body { fill: #1b2a44; stroke: rgba(148, 163, 184, 0.45); stroke-width: 1; }
.hh-rack-slot { stroke: rgba(148, 163, 184, 0.3); stroke-width: 1.5; }
.hh-rack-led { fill: var(--hh-teal-hi); }
.hh-rack:nth-of-type(2n) .hh-rack-led { fill: #7fd3a0; }

/* containers that appear as the cloud scales out */
.hh-pod path { stroke: rgba(143, 208, 213, 0.65); stroke-width: 1; stroke-linejoin: round; }
.hh-pod-t { fill: #3e868c; }
.hh-pod-l { fill: #2f6a6f; }
.hh-pod-r { fill: #25575b; }
.hh-pod {
  opacity: 0;
  transform: scale(0.4);
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.4s var(--hh-ease), transform 0.5s var(--hh-ease-out);
}
.hh-dep[data-hh-mode="cloud"] .hh-pod { opacity: 1; transform: none; }
.hh-dep[data-hh-mode="cloud"] .hh-pod--2 { transition-delay: 0.35s; }
.hh-dep[data-hh-mode="cloud"] .hh-pod--3 { transition-delay: 0.7s; }
.hh-dep[data-hh-mode="cloud"] .hh-pod--4 { transition-delay: 1.05s; }
.hh-dep[data-hh-mode="cloud"] .hh-pod--1 { transition-delay: 0.1s; }

.hh-dep-link { fill: none; stroke: rgba(107, 184, 190, 0.6); stroke-width: 1.5; stroke-dasharray: 4 5; }
.hh-dep-dot { fill: var(--hh-teal-hi); opacity: 0; }
.hh-dep[data-hh-mode="hybrid"] .hh-dep-dot { animation: hh-sync 2.4s var(--hh-ease) infinite; }
.hh-dep[data-hh-mode="hybrid"] .hh-dep-dot--2 { animation-direction: reverse; animation-delay: 1.2s; }

@keyframes hh-sync {
  0% { opacity: 0; transform: translateX(0); }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateX(192px); }
}

.hh-dep-notes { display: grid; margin-top: 8px; }
.hh-dep-note {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--hh-ease), visibility 0s linear 0.4s;
}
.hh-dep[data-hh-mode="onprem"] [data-hh-note="onprem"],
.hh-dep[data-hh-mode="cloud"] [data-hh-note="cloud"],
.hh-dep[data-hh-mode="hybrid"] [data-hh-note="hybrid"] {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--hh-ease) 0.1s, visibility 0s;
}
.hh-dep-note p {
  color: var(--hh-ink-2);
  font-size: 14px;
  line-height: 1.45;
}

.hh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.hh-chips li {
  padding: 4px 10px;
  border: 1px solid var(--hh-line-2);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.5);
  color: var(--hh-ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}
.hh-chips--api li { border-color: rgba(245, 158, 66, 0.45); }

.hh-dep-apis {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hh-line);
}
.hh-dep-apis-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--hh-ink);
  font-size: 13.5px;
  font-weight: 700;
}
.hh-dep-apis-title i { color: #f6a24c; font-size: 13px; }

/* accessibility drawing: tag tree and tagged page, highlighted in reading order */
.hh-a11y {
  display: flex;
  align-items: center;
  gap: 36px;
}

.hh-tagtree {
  flex: none;
  width: 196px;
  padding: 16px 14px;
  border: 1px solid var(--hh-line);
  border-radius: 12px;
  background: var(--hh-glass);
}

.hh-tagtree-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 6px;
  color: var(--hh-ink-2);
  font-size: 13px;
  font-weight: 700;
}
.hh-tagtree-title i { color: var(--hh-teal); font-size: 12px; }

.hh-tt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 8px 6px;
  border-radius: 7px;
  color: var(--hh-ink-2);
  font-size: 13px;
  font-weight: 600;
}
.hh-tt b {
  min-width: 52px;
  padding: 2px 7px;
  border: 1px solid rgba(107, 184, 190, 0.45);
  border-radius: 5px;
  color: var(--hh-teal-hi);
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}

.hh-page {
  position: relative;
  flex: none;
  width: 272px;
  padding: 26px 24px 28px;
  border-radius: 8px;
  background: #fbfdfd;
  box-shadow: 0 30px 60px -30px rgba(2, 6, 23, 0.85);
}

.hh-page-el {
  position: relative;
  margin-bottom: 20px;
  border-radius: 3px;
  outline: 1.5px dashed rgba(62, 134, 140, 0.5);
  outline-offset: 5px;
}
.hh-page-el:last-child { margin-bottom: 0; }

.hh-page-el > i { display: block; border-radius: 3px; }
.hh-page-h > i { width: 72%; height: 16px; background: #1e293b; }
.hh-page-p > i { height: 7px; margin-top: 7px; background: #cbd5e1; }
.hh-page-p > i:first-child { margin-top: 0; }
.hh-page-p > i:last-child { width: 64%; }
.hh-page-fig {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 84px;
  padding: 12px 0;
  background: #e6f2f3;
}
.hh-bars { display: flex; align-items: flex-end; gap: 10px; height: 100%; }
.hh-bars i { display: block; width: 18px; border-radius: 2px 2px 0 0; background: var(--hh-teal-deep); }
.hh-bars i:nth-child(1) { height: 40%; }
.hh-bars i:nth-child(2) { height: 65%; }
.hh-bars i:nth-child(3) { height: 52%; }
.hh-bars i:nth-child(4) { height: 88%; }
.hh-page-tbl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.hh-page-tbl > i { height: 12px; background: #dbe4ea; }
.hh-page-tbl > i:nth-child(-n+3) { background: #94a3b8; }

.hh-a11y [data-hh-step] {
  animation-duration: 8s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.hh-a11y [data-hh-step="2"] { animation-delay: 2s; }
.hh-a11y [data-hh-step="3"] { animation-delay: 4s; }
.hh-a11y [data-hh-step="4"] { animation-delay: 6s; }
.hh-page-el { animation-name: hh-read; }
.hh-page-fig { animation-name: hh-read-fig; }
.hh-tt { animation-name: hh-read-tt; }

@keyframes hh-read {
  0%, 22% { background-color: rgba(107, 184, 190, 0.3); box-shadow: 0 0 0 5px rgba(107, 184, 190, 0.3); outline-color: var(--hh-teal-deep); }
  25%, 100% { background-color: rgba(107, 184, 190, 0); box-shadow: 0 0 0 5px rgba(107, 184, 190, 0); outline-color: rgba(62, 134, 140, 0.5); }
}
@keyframes hh-read-fig {
  0%, 22% { background-color: #cfe7e9; box-shadow: 0 0 0 5px rgba(107, 184, 190, 0.3); outline-color: var(--hh-teal-deep); }
  25%, 100% { background-color: #e6f2f3; box-shadow: 0 0 0 5px rgba(107, 184, 190, 0); outline-color: rgba(62, 134, 140, 0.5); }
}
@keyframes hh-read-tt {
  0%, 22% { background-color: rgba(107, 184, 190, 0.16); color: var(--hh-ink); }
  25%, 100% { background-color: rgba(107, 184, 190, 0); color: var(--hh-ink-2); }
}

/* ---------- Topic rail (phones and tablets) ---------- */

.hh-topics { margin-top: 56px; }

.hh-topics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.hh .hh-topics-title {
  color: var(--hh-ink);
  font-family: var(--hh-head);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hh-rail-ctrl { display: flex; gap: 8px; }

.hh .hh-rail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--hh-line-2);
  border-radius: 50%;
  background: transparent;
  color: var(--hh-ink);
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.2s var(--hh-ease), opacity 0.2s var(--hh-ease);
  -webkit-appearance: none;
  appearance: none;
}
@media (hover: hover) { .hh .hh-rail-btn:hover { border-color: var(--hh-ink); } }
.hh .hh-rail-btn:disabled { opacity: 0.35; cursor: default; }

.hh-rail {
  display: flex;
  gap: 12px;
  padding: 0 var(--hh-pad) 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--hh-pad);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.hh-rail::-webkit-scrollbar { display: none; }

.hh-rail > .hh-panel {
  display: flex;
  flex: 0 0 min(86%, 380px);
  isolation: isolate;
  scroll-snap-align: start;
  border: 1px solid var(--hh-line);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.6);
  overflow: hidden;
}

.hh-rail .hh-split {
  width: 100%;
  max-width: none;
  padding: 0;
}

.hh-rail .hh-visual {
  position: relative;
  order: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 180px;
  padding: 16px;
  border-bottom: 1px solid var(--hh-line);
  background: rgba(15, 23, 42, 0.5);
  overflow: hidden;
}

.hh-rail .hh-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 20px 20px 20px;
}

.hh-rail .hh-title--md { font-size: 20px; line-height: 1.22; letter-spacing: -0.012em; }

.hh-rail .hh-lead {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hh-rail .hh-actions { margin-top: auto; padding-top: 20px; gap: 8px; }
.hh-rail .hh-btn { min-height: 42px; padding: 0 16px; font-size: 14px; }

/* card visuals */
.hh-rail .hh-panel-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hh-rail .hh-panel--ibm::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.78) 45%, rgba(15, 23, 42, 0.94) 100%);
}
.hh-rail .hh-panel--ibm,
.hh-rail .hh-panel--ibm .hh-visual { background: transparent; }
.hh-rail .hh-panel--ibm .hh-visual { height: auto; padding: 16px 16px 0; border-bottom: 0; }
.hh-rail .hh-panel--ibm .hh-video-play { width: 56px; height: 56px; font-size: 16px; box-shadow: 0 0 0 7px rgba(248, 250, 252, 0.12); }

.hh-rail .hh-migrate { width: 100%; height: 100%; }

.hh-rail .hh-a11y {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 504px;
  transform: translate(-50%, -50%) scale(0.46);
}

/* ---------- Phones: headline first, platform as a static mark, topics as a swipe rail ---------- */

.hh-rail-dots { display: none; }

@media (max-width: 767px) {
  .hh { padding-bottom: 28px; }
  .hh-iso {
    -webkit-mask-image: radial-gradient(ellipse 120% 34% at 50% 14%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 80%);
    mask-image: radial-gradient(ellipse 120% 34% at 50% 14%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 80%);
  }
  .hh-hub {
    grid-template-areas: 'flow' 'copy' 'foot';
    row-gap: 4px;
    padding-top: 14px;
  }
  .hh-flow { display: block; }
  .hh .hh-pillar,
  .hh-strands,
  .hh-comets,
  .hh-core-name,
  .hh-core-kicker { display: none; }
  .hh-repo { width: 136px; margin: 0 auto; }
  .hh-repo-ring { display: none; }
  .hh-hub .hh-title { font-size: clamp(30px, 8.4vw, 40px); }
  .hh-lead { margin-top: 14px; font-size: 16px; }
  .hh-actions { margin-top: 24px; }
  .hh-hub > .hh-foot { margin-top: 26px; gap: 20px; }
  .hh-foot .hh-actions { margin-top: 0; }
  .hh-hub .hh-actions .hh-btn { flex: 1 1 100%; }
  .hh-metric {
    justify-content: flex-end;
    min-height: 76px;
    padding: 14px 8px 12px;
    border: 1px solid var(--hh-line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.35);
  }
  .hh-metric dd { font-size: 22px; }
  .hh-metric dt { font-size: 12.5px; }

  .hh-topics { margin-top: 44px; }
  .hh-topics-head { margin-bottom: 14px; }
  .hh .hh-topics-title { font-size: 19px; }
  .hh .hh-rail-btn { width: 40px; height: 40px; }
  .hh-rail .hh-visual { height: 156px; }
  .hh-rail .hh-panel--ibm .hh-visual { height: auto; }
  .hh-rail .hh-copy { padding: 18px 18px 18px; }
  .hh-rail .hh-lead { -webkit-line-clamp: 4; }
  .hh-rail .hh-actions { padding-top: 18px; }
  .hh-rail .hh-actions .hh-btn { flex: 0 1 auto; min-height: 42px; padding: 0 14px; font-size: 13.5px; }
  .hh-rail .hh-a11y { transform: translate(-50%, -50%) scale(0.4); }

  .hh-rail-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
  }
  .hh-rail-dots span {
    width: 6px;
    height: 6px;
    border-radius: 3px;
    background: var(--hh-line-2);
    transition: width 0.3s var(--hh-ease), background-color 0.3s var(--hh-ease);
  }
  .hh-rail-dots span.is-on { width: 20px; background: var(--hh-teal); }
}

/* phones: the four pillars stay on the first screen, as a compact two-by-two grid under the headline */
@media (max-width: 767px) {
  .hh-hub {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: 'core core' 'copy copy' 'idp acm' 'ecm ccm' 'foot foot';
    column-gap: 10px;
    row-gap: 10px;
  }
  .hh-flow { display: contents; }
  .hh-core { grid-area: core; }
  .hh-hub > .hh-copy { margin-bottom: 14px; }
  .hh .hh-pillar {
    display: flex;
    gap: 2px;
    padding: 14px 14px 15px;
    border-radius: 14px;
  }
  .hh .hh-pillar--idp { grid-area: idp; }
  .hh .hh-pillar--acm { grid-area: acm; }
  .hh .hh-pillar--ecm { grid-area: ecm; }
  .hh .hh-pillar--ccm { grid-area: ccm; }
  .hh-pillar-tag,
  .hh-pillar-points { display: none; }
  .hh-pillar-top { gap: 9px; }
  .hh-pillar-ico { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
  .hh .hh-pillar-code { font-size: 20px; }
  .hh-pillar-plus { top: 12px; right: 12px; width: 24px; height: 24px; font-size: 10px; }
  .hh-pillar-name { margin-top: 10px; padding-right: 0; font-size: 13.5px; line-height: 1.3; }
  .hh-hub > .hh-foot { margin-top: 16px; }
  .hh a.hh-core-name { display: inline-block; margin-top: 2px; font-size: 13px; }
}

@media (max-width: 1100px) {
  .hh-rail .hh-dep {
    max-width: none;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .hh-rail .hh-dep-modes,
  .hh-rail .hh-dep-notes,
  .hh-rail .hh-dep-apis { display: none; }
  .hh-rail .hh-dep-stage { width: auto; max-width: 100%; height: 100%; margin: 0 auto; }
}

/* ---------- Tablet ---------- */

@media (min-width: 768px) {
  .hh { --hh-pad: 32px; }
  .hh-hub { padding-top: 56px; }
  .hh-split .hh-copy { max-width: 700px; }
  .hh-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .hh-metric + .hh-metric { border-left: 1px solid var(--hh-line); }
  .hh-lane { display: flex; }
  .hh-lane--in { grid-area: 2 / 1; }
  .hh-lane--out { grid-area: 2 / 2; }
  .hh-lane-list { display: none; }
  .hh .hh-pillar--idp { grid-area: 3 / 1; }
  .hh .hh-pillar--ecm { grid-area: 3 / 2; }
  .hh .hh-pillar--acm { grid-area: 4 / 1; }
  .hh .hh-pillar--ccm { grid-area: 4 / 2; }
  .hh-rail > .hh-panel { flex-basis: calc((100% - 12px) / 2 - 24px); }
}

@media (min-width: 900px) {
  .hh-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .hh-lane--in { grid-area: 2 / 1 / 3 / 3; }
  .hh-lane--out { grid-area: 2 / 3 / 3 / 5; }
  .hh-lane-list { display: inline; }
  .hh .hh-pillar--idp { grid-area: 3 / 1; }
  .hh .hh-pillar--acm { grid-area: 3 / 2; }
  .hh .hh-pillar--ecm { grid-area: 3 / 3; }
  .hh .hh-pillar--ccm { grid-area: 3 / 4; }
}

/* ---------- Desktop: tabbed carousel ---------- */

@media (min-width: 1101px) {
  .hh { padding-bottom: 20px; }

  .hh-iso {
    -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 58%, #000 0%, rgba(0, 0, 0, 0.45) 46%, transparent 82%);
    mask-image: radial-gradient(ellipse 60% 62% at 50% 58%, #000 0%, rgba(0, 0, 0, 0.45) 46%, transparent 82%);
  }
  .hh[data-hh-slide="ibm"] .hh-iso { opacity: 0; }
  .hh[data-hh-slide="platform"] .hh-iso { opacity: 0.6; }

  .hh-navwrap { position: relative; z-index: 2; display: block; order: 2; }
  .hh-stage { order: 1; display: grid; }

  .hh-topics,
  .hh-rail { display: contents; }
  .hh-topics-head { display: none; }

  .hh-panel {
    grid-area: 1 / 1;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--hh-ease), visibility 0s linear 0.6s;
  }
  .hh-panel.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s var(--hh-ease), visibility 0s;
  }

  .hh-rail > .hh-panel {
    flex: none;
    border: 0;
    border-radius: 0;
    background: none;
    overflow: visible;
  }

  /* platform: centred story, pillars on both sides of the repository */
  .hh-hub {
    row-gap: 28px;
    padding-top: 34px;
    padding-bottom: 26px;
  }
  .hh-hub .hh-title { font-size: clamp(36px, 18px + 2vw, 48px); }
  .hh-hub .hh-lead { max-width: 46em; margin-top: 12px; }
  .hh-pillar-name { min-height: 2.5em; }
  .hh-pillar-tag { min-height: 2.8em; }
  .hh-flow {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 220px minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px 22px;
    align-items: stretch;
  }
  .hh-lane--in { grid-area: 1 / 1 / 2 / 3; }
  .hh-lane--out { grid-area: 1 / 4 / 2 / 6; }
  .hh-lane::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 50vw;
    height: 1px;
  }
  .hh-lane--in::before {
    right: calc(100% + 12px);
    background: linear-gradient(90deg, transparent, rgba(107, 184, 190, 0.55));
  }
  .hh-lane--out::before {
    left: calc(100% + 12px);
    background: linear-gradient(90deg, rgba(245, 158, 66, 0.55), transparent);
  }
  .hh-core { grid-area: 1 / 3 / 3 / 4; order: 0; align-self: stretch; }
  .hh-core-kicker { display: block; }
  .hh .hh-pillar--idp { grid-area: 2 / 1; }
  .hh .hh-pillar--acm { grid-area: 2 / 2; }
  .hh .hh-pillar--ecm { grid-area: 2 / 4; }
  .hh .hh-pillar--ccm { grid-area: 2 / 5; }
  .hh-strands,
  .hh-comets { display: block; }
  .hh-foot {
    flex-direction: row;
    align-items: center;
    gap: 0;
  }
  .hh-foot .hh-metrics { flex: 1 1 auto; }
  .hh-foot .hh-actions {
    flex: none;
    flex-wrap: nowrap;
    gap: 10px;
    margin-left: 8px;
    padding-left: 32px;
    border-left: 1px solid var(--hh-line);
  }
  .hh-foot .hh-btn { min-height: 46px; padding: 0 20px; font-size: 14.5px; }

  /* topic slides */
  .hh .hh-split,
  .hh-rail .hh-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
    max-width: 1280px;
    padding: 40px 32px 28px;
  }

  .hh-rail .hh-copy { display: block; padding: 0; }
  .hh-rail .hh-title--md { font-size: clamp(26px, 17px + 1.5vw, 38px); line-height: 1.12; letter-spacing: -0.022em; }
  .hh-rail .hh-lead { display: block; margin-top: 18px; font-size: clamp(16px, 15px + 0.25vw, 18px); line-height: 1.6; overflow: visible; -webkit-line-clamp: unset; }
  .hh-rail .hh-actions { margin-top: 28px; padding-top: 0; gap: 12px; }
  .hh-rail .hh-btn { min-height: 50px; padding: 0 24px; font-size: 15px; }

  .hh-rail .hh-visual,
  .hh-rail .hh-panel--ibm .hh-visual {
    order: 0;
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    overflow: visible;
  }

  /* IBM: the partnership artwork fills the slide, the video sits on top */
  .hh-rail .hh-panel-img {
    top: 0;
    bottom: -150px;
    height: auto;
    min-height: calc(100% + 150px);
  }
  .hh-rail .hh-panel--ibm::before {
    bottom: -150px;
    background:
      linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.78) 40%, rgba(15, 23, 42, 0.3) 100%),
      linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 30%);
  }
  .hh-rail .hh-panel--ibm .hh-video-play { width: 76px; height: 76px; font-size: 22px; box-shadow: 0 0 0 10px rgba(248, 250, 252, 0.12); }

  .hh-rail .hh-migrate { height: auto; max-width: 600px; }
  .hh-panel--migrate .hh-visual { justify-content: center; }

  .hh-rail .hh-a11y {
    position: static;
    width: auto;
    transform: none;
  }

  .hh-panel.is-entering .hh-copy > * { animation: hh-in 0.7s var(--hh-ease-out) both; }
  .hh-panel.is-entering .hh-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hh-panel.is-entering .hh-copy > :nth-child(3) { animation-delay: 0.12s; }
  .hh-panel.is-entering .hh-visual { animation: hh-in-visual 0.9s var(--hh-ease-out) 0.1s both; }

  /* slide tabs */
  .hh-nav {
    display: flex;
    align-items: stretch;
    gap: 16px;
  }
  .hh-nav::before {
    content: '';
    position: absolute;
    left: var(--hh-pad);
    right: var(--hh-pad);
    top: 0;
    height: 1px;
    background: var(--hh-line);
  }
  .hh-tabs { display: flex; flex: 1 1 auto; min-width: 0; }

  .hh .hh-tab {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 16px 16px 4px 0;
    border: 0;
    background: transparent;
    color: var(--hh-ink-3);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s var(--hh-ease);
    -webkit-appearance: none;
    appearance: none;
  }
  @media (hover: hover) { .hh .hh-tab:hover { color: var(--hh-ink-2); } }
  .hh .hh-tab[aria-selected="true"] { color: var(--hh-ink); }

  .hh-tab-label { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .hh-tab-bar {
    position: absolute;
    left: 0;
    right: 16px;
    top: -1px;
    height: 2px;
    overflow: hidden;
  }
  .hh-tab-bar span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--hh-teal);
    transform: scaleX(0);
    transform-origin: left center;
  }
  .hh-tab[aria-selected="true"] .hh-tab-bar span { transform: scaleX(1); }
  .hh.is-playing .hh-tab[aria-selected="true"] .hh-tab-bar span {
    transform: scaleX(0);
    animation: hh-progress var(--hh-dur) linear forwards;
  }
  .hh.is-playing.is-held .hh-tab[aria-selected="true"] .hh-tab-bar span { animation-play-state: paused; }

  .hh .hh-play {
    flex: none;
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--hh-line-2);
    border-radius: 50%;
    background: transparent;
    color: var(--hh-ink-2);
    font-size: 11px;
    cursor: pointer;
    transition: border-color 0.2s var(--hh-ease), color 0.2s var(--hh-ease);
    -webkit-appearance: none;
    appearance: none;
  }
  @media (hover: hover) { .hh .hh-play:hover { border-color: var(--hh-ink); color: var(--hh-ink); } }
}

@media (min-width: 1101px) and (max-width: 1260px) {
  .hh .hh-split { column-gap: 40px; }
  .hh-flow { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 176px minmax(0, 1fr) minmax(0, 1fr); gap: 12px 14px; }
  .hh-repo { width: 164px; }
  .hh .hh-pillar { padding: 16px 14px 16px; }
  .hh-pillar-points span,
  .hh-pillar-tag { font-size: 12.5px; }
  .hh-lane-list { display: none; }
  .hh-metric dd { font-size: 21px; }
  .hh-metric dt { font-size: 12.5px; }
  .hh-foot .hh-actions { padding-left: 22px; }
  .hh-foot .hh-btn { padding: 0 16px; font-size: 14px; }
  .hh-a11y { gap: 24px; }
}

/* shorter laptop screens: keep the whole hero in view */
@media (min-width: 1101px) and (max-height: 820px) {
  .hh .hh-title { font-size: clamp(32px, 16px + 2vw, 44px); }
  .hh .hh-title--md,
  .hh-rail .hh-title--md { font-size: clamp(26px, 14px + 1.4vw, 34px); }
  .hh-lead,
  .hh-rail .hh-lead { margin-top: 14px; font-size: 16.5px; }
  .hh-actions,
  .hh-rail .hh-actions { margin-top: 22px; }
  .hh-hub,
  .hh .hh-split,
  .hh-rail .hh-split { padding-top: 28px; padding-bottom: 18px; }
  .hh-hub { row-gap: 20px; padding-top: 22px; }
  .hh-hub .hh-title { font-size: clamp(32px, 14px + 2vw, 42px); }
  .hh-hub .hh-lead { margin-top: 10px; }
  .hh-foot .hh-btn { min-height: 42px; }
  .hh .hh-pillar { padding: 14px 16px 14px; }
  .hh-pillar-ico { width: 34px; height: 34px; font-size: 14px; border-radius: 10px; }
  .hh-pillar-plus { top: 14px; right: 14px; width: 26px; height: 26px; }
  .hh-pillar-name { margin-top: 10px; font-size: 15px; }
  .hh .hh-pillar-code { font-size: 21px; }
  .hh-pillar-points { margin-top: 6px; padding-top: 8px; gap: 2px; }
  .hh-repo { width: 144px; }
  .hh-dep { padding: 12px 16px 14px; }
  .hh-dep-stage { height: 188px; width: auto; margin: 8px auto 0; }
  .hh-dep-apis { margin-top: 10px; padding-top: 10px; }
  .hh-metric dd { font-size: 21px; }
  .hh-migrate,
  .hh-rail .hh-migrate { max-width: 520px; }
  .hh-rail .hh-a11y { transform: scale(0.9); }
}

@keyframes hh-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes hh-in {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes hh-in-visual {
  from { opacity: 0; transform: translate3d(24px, 0, 0); }
  to { opacity: 1; transform: none; }
}

/* ---------- Small phones ---------- */

@media (max-width: 400px) {
  .hh-actions .hh-btn { flex: 1 1 100%; }
  .hh .hh-topics-title { font-size: 17px; }
}

@media (hover: none) {
  .hh .hh-pillar:hover { --lift: 0px; border-color: rgba(var(--c), 0.36); }
}

@media (prefers-reduced-motion: reduce) {
  .hh *,
  .hh *::before,
  .hh *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .hh.is-playing .hh-tab[aria-selected="true"] .hh-tab-bar span {
    animation-duration: var(--hh-dur) !important;
  }
  .hh-comets,
  .hh-repo-ring,
  .hh-mig-flow,
  .hh-dep-dot { display: none; }
  .hh .hh-pillar { transform: none; }
}
