/* NexaTechSynergy public design system — Microsoft-shell layout, NexaTechSynergy brand */

:root {
  --hp-paper: #ffffff;
  --hp-paper-2: #f3f6f8;
  --hp-white: #ffffff;
  --hp-ink: #242424;
  --hp-ink-soft: #323130;
  --hp-muted: #605e5c;
  --hp-line: #edebe9;
  --hp-line-strong: #d2d0ce;
  --hp-accent: #0067b8;
  --hp-accent-dark: #005a9e;
  --hp-accent-soft: rgba(0, 103, 184, 0.08);
  --hp-teal: #0067b8;
  --hp-shadow: 0 1.6px 3.6px rgba(0, 0, 0, 0.13), 0 0.3px 0.9px rgba(0, 0, 0, 0.11);
  --hp-shadow-card: 0 2px 4px rgba(0, 0, 0, 0.08), 0 0.8px 1.6px rgba(0, 0, 0, 0.06);
  --hp-radius: 0;
  --hp-radius-card: 8px;
  --hp-font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
  --hp-font-body: "Segoe UI", system-ui, -apple-system, sans-serif;
  --hp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hp-max: 100rem;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.hp-site {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--hp-paper);
  background-image: none;
  color: var(--hp-ink);
  font-family: var(--hp-font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Prevent media from forcing horizontal scroll (cover heroes keep their own sizing). */
main img,
main video,
.hp-footer img {
  max-width: 100%;
}

main table {
  border-collapse: collapse;
}

.hp-table-scroll,
main .overflow-x-auto {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

body.hp-site main {
  flex: 1;
  min-width: 0;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* ——— Typography ——— */
.hp-display {
  font-family: var(--hp-font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--hp-ink);
}

.hp-eyebrow {
  font-family: var(--hp-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--hp-ink-soft);
  margin: 0 0 0.65rem;
}

.hp-lede {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--hp-muted);
  max-width: 38rem;
  margin: 0;
}

.hp-section-title {
  font-family: var(--hp-font-display);
  font-size: clamp(1.75rem, 2.8vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--hp-ink);
  margin: 0 0 0.75rem;
}

.hp-section-sub {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--hp-muted);
  max-width: 36rem;
  margin: 0;
}

/* ——— Layout ——— */
.hp-wrap {
  width: 100%;
  max-width: var(--hp-max);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

@media (min-width: 640px) {
  .hp-wrap {
    padding-left: max(2.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(2.5rem, env(safe-area-inset-right, 0px));
  }
}

@media (min-width: 1280px) {
  .hp-wrap {
    padding-left: max(3.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(3.5rem, env(safe-area-inset-right, 0px));
  }
}

.hp-section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .hp-section {
    padding: 4.5rem 0;
  }
}

.hp-section--band {
  background: var(--hp-paper-2);
  border-top: 0;
  border-bottom: 0;
}

/* Microsoft.com "For business" promo row */
.hp-section--for-business {
  background: var(--hp-paper-2);
  padding: 3.25rem 0 4rem;
}

@media (min-width: 768px) {
  .hp-section--for-business {
    padding: 4rem 0 4.75rem;
  }
}

.hp-section-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

@media (min-width: 640px) {
  .hp-section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

/* ——— Buttons ——— */
.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--hp-font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  touch-action: manipulation;
  cursor: pointer;
}

.hp-btn:active {
  transform: translateY(1px);
}

.hp-btn--primary {
  background: var(--hp-accent);
  color: #fff;
  border-color: var(--hp-accent);
}

.hp-btn--primary:hover {
  background: var(--hp-accent-dark);
  border-color: var(--hp-accent-dark);
  color: #fff;
}

.hp-btn--ghost {
  background: transparent;
  color: var(--hp-ink);
  border-color: var(--hp-line-strong);
}

.hp-btn--ghost:hover {
  background: var(--hp-white);
  border-color: var(--hp-ink);
  color: var(--hp-ink);
}

.hp-btn--on-media {
  background: #fff;
  color: var(--hp-ink);
  border-color: #fff;
}

.hp-btn--on-media:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--hp-ink);
}

.hp-btn--ghost-on-media {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.hp-btn--ghost-on-media:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.hp-cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .hp-cta-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.hp-text-link {
  color: var(--hp-accent);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--hp-ease), color 0.2s var(--hp-ease);
}

.hp-text-link:hover {
  color: var(--hp-accent-dark);
  border-bottom-color: var(--hp-accent-dark);
}

/* ——— Header (Microsoft-shell mega-nav) ——— */
.hp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--hp-line);
  overflow: visible;
  box-shadow: none;
  padding-top: env(safe-area-inset-top, 0px);
}

.hp-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.hp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 3.4rem;
  overflow: visible;
}

@media (min-width: 640px) {
  .hp-header__inner {
    gap: 0.75rem;
  }
}

.hp-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.hp-brand__logo {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  background: #fff;
  padding: 0;
  border: 1px solid var(--hp-line);
  aspect-ratio: 1 / 1;
}

.hp-brand__name {
  font-family: var(--hp-font-display);
  font-weight: 600;
  font-size: clamp(0.85rem, 2.8vw, 0.95rem);
  letter-spacing: -0.01em;
  color: var(--hp-ink);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hp-brand__tag {
  display: none;
  font-size: 0.7rem;
  color: var(--hp-muted);
  line-height: 1.2;
  margin-top: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 16rem;
}

@media (min-width: 640px) {
  .hp-brand__tag {
    display: block;
  }
}

.hp-nav {
  display: none;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 1;
  min-width: 0;
}

/* Mega-nav at ≥1100 so iPad portrait/landscape (768–1024) keep the hamburger. */
@media (min-width: 1100px) {
  .hp-nav {
    display: flex;
  }
}

.hp-nav details > summary {
  list-style: none;
}

.hp-nav details > summary::-webkit-details-marker {
  display: none;
}

.hp-nav__summary {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hp-ink-soft);
  cursor: pointer;
  border-radius: 0;
  outline: none;
  border-bottom: 2px solid transparent;
  touch-action: manipulation;
}

.hp-nav__summary:hover,
.hp-nav__summary.is-active {
  color: var(--hp-ink);
  background: transparent;
  border-bottom-color: var(--hp-accent);
}

.hp-nav details[open] > .hp-nav__summary {
  border-bottom-color: var(--hp-accent);
  color: var(--hp-ink);
}

.hp-nav__chevron {
  width: 0.75rem;
  height: 0.75rem;
  color: var(--hp-muted);
  transition: transform 0.2s var(--hp-ease);
}

.hp-nav details[open] > summary .hp-nav__chevron {
  transform: rotate(180deg);
}

.hp-nav__panel {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(3.4rem + env(safe-area-inset-top, 0px));
  z-index: 90;
  padding: 0;
  width: 100%;
  max-width: none;
  background: #fff;
  border-bottom: 1px solid var(--hp-line);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.hp-nav__menu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr));
  gap: 0.25rem 1.5rem;
  max-width: var(--hp-max);
  margin: 0 auto;
  padding-top: 1.5rem;
  padding-bottom: 1.75rem;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  background: transparent;
  border: 0;
  box-shadow: none;
}

@media (min-width: 640px) {
  .hp-nav__menu {
    padding-left: max(2.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(2.5rem, env(safe-area-inset-right, 0px));
  }
}

@media (min-width: 1280px) {
  .hp-nav__menu {
    padding-left: max(3.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(3.5rem, env(safe-area-inset-right, 0px));
  }
}

.hp-nav__item {
  display: block;
  padding: 0.85rem 0.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--hp-ink);
  text-decoration: none;
  border-radius: 0;
}

.hp-nav__item small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--hp-muted);
  line-height: 1.35;
}

.hp-nav__item:hover,
.hp-nav__item.is-active {
  background: transparent;
  color: var(--hp-accent);
}

.hp-nav__item:hover small,
.hp-nav__item.is-active small {
  color: var(--hp-muted);
}

.hp-nav__panel--compact {
  position: absolute;
  left: auto;
  right: 0;
  top: 100%;
  width: min(14rem, calc(100% - 1rem));
  max-width: min(14rem, calc(100dvw - 2rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  border-bottom: 0;
  box-shadow: var(--hp-shadow);
  padding: 0.35rem 0;
}

.hp-nav__panel--compact .hp-nav__menu {
  display: block;
  padding: 0.25rem 0;
  margin: 0;
}

.hp-nav__panel--compact .hp-nav__item {
  padding: 0.55rem 0.9rem;
  font-size: 0.875rem;
}

.hp-nav__panel--compact .hp-nav__item small {
  display: none;
}

.hp-nav__divider {
  width: 1px;
  height: 1.25rem;
  background: var(--hp-line);
  margin: 0 0.4rem;
  display: none;
}

@media (min-width: 1280px) {
  .hp-nav__divider {
    display: inline-block;
  }
}

.hp-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--hp-line-strong);
  background: var(--hp-white);
  color: var(--hp-ink);
  border-radius: var(--hp-radius);
  cursor: pointer;
  touch-action: manipulation;
  flex-shrink: 0;
}

@media (min-width: 1100px) {
  .hp-menu-btn {
    display: none;
  }
}

/* ——— Products & services launcher (waffle) ——— */
/* Trigger only — lives in the header flex row. Panel is portaled to <body>. */
.hp-launcher {
  position: relative;
  flex-shrink: 0;
  align-self: center;
  margin-left: 0.35rem;
  display: block;
  width: 2.75rem;
  height: 2.75rem;
}

.hp-launcher__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hp-ink-soft);
  border-radius: 0;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 0.15s ease, background 0.15s ease;
}

.hp-launcher__btn:hover,
.hp-launcher.is-open .hp-launcher__btn {
  color: var(--hp-ink);
  border-color: transparent;
  background: var(--hp-paper-2);
}

.hp-launcher__waffle {
  display: block;
  pointer-events: none;
}

/*
 * Panel is a fixed popover under <body>, toggled ONLY by .is-open.
 * Do not put display:flex on the base rule — it fights [hidden] and
 * inflates the header when the panel was nested in the flex row.
 */
.hp-launcher__panel {
  display: none !important;
  position: fixed !important;
  z-index: 400;
  box-sizing: border-box;
  width: min(20.5rem, calc(100dvw - 1.5rem - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  max-height: min(70dvh, 26rem);
  margin: 0;
  padding: 0;
  flex-direction: column;
  background: #f8f9fb;
  border: 1px solid var(--hp-line);
  border-radius: 1.25rem;
  box-shadow: 0 12px 40px rgba(11, 26, 43, 0.14), 0 2px 8px rgba(11, 26, 43, 0.06);
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.hp-launcher__panel.is-open {
  display: flex !important;
  visibility: visible;
  pointer-events: auto;
}

.hp-launcher__head {
  flex-shrink: 0;
  padding: 0.85rem 1rem 0.55rem;
  border-bottom: 1px solid var(--hp-line);
  background: #fff;
}

.hp-launcher__title {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hp-ink);
  letter-spacing: 0.01em;
}

.hp-launcher__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.75rem 0.65rem 0.9rem;
  -webkit-overflow-scrolling: touch;
}

.hp-launcher__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hp-launcher__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  padding: 0.7rem 0.35rem 0.65rem;
  text-decoration: none;
  color: var(--hp-ink-soft);
  border-radius: 0.85rem;
  transition: background 0.15s var(--hp-ease), color 0.15s var(--hp-ease);
}

.hp-launcher__item:hover,
.hp-launcher__item:focus-visible {
  background: rgba(0, 94, 168, 0.08);
  color: var(--hp-accent);
  outline: none;
}

.hp-launcher__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid var(--hp-line);
  color: var(--hp-accent);
  overflow: hidden;
}

.hp-launcher__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-launcher__label {
  font-size: 0.72rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.25;
  max-width: 5.6rem;
}

.hp-mobile {
  display: none;
  border-top: 1px solid var(--hp-line);
  margin-top: 0.5rem;
  padding: 0.75rem 0 calc(1rem + env(safe-area-inset-bottom, 0px));
  max-height: min(78dvh, 32rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.hp-mobile.is-open {
  display: block;
}

@media (min-width: 1100px) {
  .hp-mobile {
    display: none !important;
  }
}

.hp-mobile details > summary {
  list-style: none;
}

.hp-mobile details > summary::-webkit-details-marker {
  display: none;
}

.hp-mobile__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hp-muted);
  padding: 0.5rem 0.25rem 0.35rem;
}

.hp-mobile summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.85rem 0.25rem;
  font-weight: 600;
  color: var(--hp-ink);
  border-bottom: 1px solid var(--hp-line);
  cursor: pointer;
  touch-action: manipulation;
}

.hp-mobile summary.is-active {
  color: var(--hp-accent);
}

.hp-mobile a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.7rem 0.75rem;
  color: var(--hp-ink-soft);
  text-decoration: none;
  font-size: 0.9375rem;
  border-radius: var(--hp-radius);
  touch-action: manipulation;
}

.hp-mobile a.is-active,
.hp-mobile a:hover {
  background: var(--hp-accent-soft);
  color: var(--hp-accent);
}

/* ——— Hero (full-bleed, on-media) ——— */
.hp-hero {
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 46rem);
  min-height: min(88dvh, 46rem);
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.hp-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hp-hero__media img,
.hp-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  animation: hpKen 22s var(--hp-ease) infinite alternate;
}

.hp-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s var(--hp-ease);
}

.hp-hero__slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  transform: scale(1.04);
  animation: hpKen 22s var(--hp-ease) infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .hp-hero__media img,
  .hp-hero__slide img,
  .hp-hero__slide-bg {
    animation: none;
    transform: none;
  }
}

.hp-hero__slide.is-active {
  opacity: 1;
}

.hp-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(8, 18, 32, 0.88) 0%, rgba(8, 18, 32, 0.62) 42%, rgba(8, 18, 32, 0.35) 70%, rgba(8, 18, 32, 0.45) 100%),
    linear-gradient(0deg, rgba(8, 18, 32, 0.55) 0%, transparent 45%);
  pointer-events: none;
}

.hp-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 4.25rem 0 3.5rem;
}

@media (min-width: 768px) {
  .hp-hero__content {
    padding: 5.5rem 0 4.5rem;
  }
}

.hp-hero__brand {
  font-family: var(--hp-font-display);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0 0 0.85rem;
  opacity: 0;
  animation: hpRise 0.85s var(--hp-ease) 0.1s forwards;
}

.hp-hero__title {
  font-family: var(--hp-font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: #fff;
  max-width: 16ch;
  margin: 0 0 1rem;
  opacity: 0;
  animation: hpRise 0.9s var(--hp-ease) 0.22s forwards;
}

.hp-hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  max-width: 32rem;
  margin: 0 0 1.75rem;
  opacity: 0;
  animation: hpRise 0.9s var(--hp-ease) 0.36s forwards;
}

.hp-hero .hp-cta-row {
  opacity: 0;
  animation: hpRise 0.9s var(--hp-ease) 0.48s forwards;
}

.hp-hero__dots {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  pointer-events: none;
}

.hp-hero__dot {
  pointer-events: auto;
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: transparent;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}

.hp-hero__dot::before {
  content: "";
  position: absolute;
  inset: -0.85rem;
}

.hp-hero__dot.is-active {
  background: #fff;
}

/* ——— Page heroes (interior) ——— */
.hp-page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 0;
  background: #1b1b1b;
  color: #fff;
  min-height: min(52vh, 28rem);
  display: flex;
  align-items: flex-end;
}

/* Photo heroes: taller stage + stronger presence (solution/industry covers) */
.hp-page-hero--photo {
  min-height: min(74vh, 42rem);
  min-height: min(74dvh, 42rem);
}

.hp-page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hp-page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hp-page-hero--photo .hp-page-hero__bg img {
  /* Keep subject (robots / floor / consoles) in frame under cover crop */
  object-position: center 55%;
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .hp-page-hero--photo .hp-page-hero__bg img {
    transform: none;
  }
}

.hp-page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.45), transparent 50%);
  pointer-events: none;
}

.hp-page-hero--photo::after {
  /* Left/bottom type protection; keep mid/right photo readable */
  background:
    linear-gradient(105deg, rgba(8, 12, 18, 0.74) 0%, rgba(8, 12, 18, 0.4) 34%, rgba(8, 12, 18, 0.12) 64%, rgba(8, 12, 18, 0.18) 100%),
    linear-gradient(to top, rgba(8, 12, 18, 0.48) 0%, transparent 46%);
}

.hp-page-hero:not(.hp-page-hero--photo)::after {
  background: linear-gradient(135deg, #242424 0%, #323130 55%, #0067b8 160%);
}

.hp-page-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  /* Vertical only — .hp-wrap supplies horizontal inset */
  padding-top: 2.75rem;
  padding-bottom: 2.75rem;
}

.hp-page-hero--photo .hp-page-hero__inner {
  padding-top: 3.5rem;
  padding-bottom: 3.25rem;
}

@media (min-width: 768px) {
  .hp-page-hero__inner {
    padding-top: 4.5rem;
    padding-bottom: 4.25rem;
  }

  .hp-page-hero--photo .hp-page-hero__inner {
    padding-top: 5.75rem;
    padding-bottom: 5.25rem;
  }
}

.hp-page-hero .hp-eyebrow {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9375rem;
  text-transform: none;
  letter-spacing: 0;
}

.hp-page-hero--photo .hp-eyebrow {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8125rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
  margin-bottom: 0.65rem;
}

.hp-page-hero h1 {
  font-family: var(--hp-font-display);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  max-width: 18ch;
  margin: 0 0 0.85rem;
}

.hp-page-hero--photo h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.35rem);
  max-width: 14ch;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

.hp-page-hero p {
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  max-width: 40rem;
  margin: 0 0 1.5rem;
}

.hp-page-hero--photo p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 36rem;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
  margin-bottom: 1.75rem;
}

.hp-page-hero .hp-cta-row {
  margin-top: 0.25rem;
}

.hp-page-hero--photo .hp-cta-row {
  margin-top: 0.5rem;
  gap: 0.75rem;
}

/* ——— Microsoft-style story bands (one idea + image) ——— */
.hp-story {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hp-story {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .hp-story--flip .hp-story__copy {
    order: 2;
  }

  .hp-story--flip .hp-story__media {
    order: 1;
  }
}

.hp-story__media {
  margin: 0;
  overflow: hidden;
  background: var(--hp-paper-2);
  min-height: 16rem;
  border-radius: 0;
}

.hp-story__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 16rem;
  max-height: 32rem;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 960px) {
  .hp-story__media,
  .hp-story__media img {
    min-height: 24rem;
    max-height: none;
    aspect-ratio: 16 / 10;
  }
}

.hp-story__copy .hp-section-title {
  margin-bottom: 0.85rem;
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  font-weight: 600;
}

.hp-story__copy .hp-section-sub,
.hp-story__copy > p {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  color: var(--hp-muted);
  line-height: 1.5;
  font-size: 1rem;
}

/* ——— For business grid (Microsoft homepage pattern) ——— */
.hp-biz {
  margin: 0;
}

.hp-biz__head {
  margin-bottom: 1.75rem;
}

.hp-biz__head h2 {
  font-family: var(--hp-font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 0.35rem;
  color: var(--hp-ink);
}

.hp-biz__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .hp-biz__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

/* 4-up on large tablets / desktop; keep 2-up through iPad portrait. */
@media (min-width: 1080px) {
  .hp-biz__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.hp-biz__card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 0;
  overflow: hidden;
  border-radius: var(--hp-radius-card);
  box-shadow: var(--hp-shadow-card);
  transition: box-shadow 0.2s var(--hp-ease), transform 0.2s var(--hp-ease);
  height: 100%;
}

.hp-biz__card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.hp-biz__card:hover .hp-biz__title {
  color: var(--hp-accent);
}

.hp-biz__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--hp-paper-2);
}

.hp-biz__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-biz__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 1.25rem 1.35rem;
}

.hp-biz__title {
  font-family: var(--hp-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--hp-ink);
  transition: color 0.15s ease;
}

.hp-biz__text {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--hp-muted);
}

.hp-biz__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: auto;
  min-height: 2.75rem;
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  background: var(--hp-accent);
  border-radius: 2px;
  transition: background-color 0.15s ease;
}

.hp-biz__card:hover .hp-biz__cta {
  background: var(--hp-accent-dark);
}

.hp-visual-strip {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .hp-visual-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .hp-visual-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.hp-visual-strip a {
  display: block;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border: 0;
  background: transparent;
  transition: none;
}

.hp-visual-strip a:hover {
  border-color: transparent;
  transform: none;
}

.hp-visual-strip a:hover .hp-visual-strip__body h3 {
  color: var(--hp-accent);
}

.hp-visual-strip__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--hp-paper-2);
}

.hp-visual-strip__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-visual-strip__body {
  padding: 1rem 0 0.25rem;
}

.hp-visual-strip__body h3 {
  font-family: var(--hp-font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--hp-ink);
}

.hp-visual-strip__body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--hp-muted);
  line-height: 1.45;
}

/* ——— Content patterns (sparse, not card walls) ——— */
.hp-split {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .hp-split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
  }
}

.hp-rail {
  border-left: 2px solid var(--hp-accent);
  padding-left: 1.25rem;
}

.hp-rail p {
  margin: 0;
  color: var(--hp-ink-soft);
  line-height: 1.6;
}

.hp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hp-line);
}

.hp-list > li,
.hp-list > a {
  display: block;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--hp-line);
  text-decoration: none;
  color: inherit;
}

.hp-list a:hover h3,
.hp-list a:hover .hp-list__title {
  color: var(--hp-accent);
}

.hp-list__title,
.hp-list h3 {
  font-family: var(--hp-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hp-ink);
  margin: 0 0 0.4rem;
  transition: color 0.2s var(--hp-ease);
}

.hp-list p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--hp-muted);
}

.hp-list__meta {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hp-accent);
}

/* —— Solutions listing: mini flow chips + enriched lower rows —— */
.hp-sol-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}

.hp-sol-flow li {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hp-ink-soft);
  line-height: 1.2;
}

.hp-sol-flow li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 1.1rem;
  height: 1px;
  margin: 0 0.45rem;
  background: linear-gradient(90deg, var(--hp-accent) 0%, var(--hp-line-strong) 100%);
  vertical-align: middle;
}

.hp-visual-strip__body .hp-sol-flow {
  margin-top: 0.65rem;
}

.hp-sol-list {
  border-top: 1px solid var(--hp-line);
}

.hp-sol-row {
  display: grid;
  gap: 1.15rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--hp-line);
  text-decoration: none;
  color: inherit;
}

@media (min-width: 720px) {
  .hp-sol-row {
    grid-template-columns: minmax(0, 11.5rem) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
}

.hp-sol-row__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--hp-paper-2);
}

.hp-sol-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-sol-row__body p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--hp-muted);
}

.hp-sol-row__title {
  font-family: var(--hp-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hp-ink);
  margin: 0 0 0.4rem;
  transition: color 0.2s var(--hp-ease);
}

.hp-sol-row:hover .hp-sol-row__title {
  color: var(--hp-accent);
}

.hp-sol-row .hp-list__meta {
  margin-top: 0.7rem;
}

.hp-steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hp-line);
}

@media (min-width: 768px) {
  .hp-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hp-steps__item {
  padding: 1.5rem 1.25rem 1.5rem 0;
  border-bottom: 1px solid var(--hp-line);
}

@media (min-width: 768px) {
  .hp-steps__item {
    border-bottom: none;
    border-right: 1px solid var(--hp-line);
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  .hp-steps__item:first-child {
    padding-left: 0;
  }

  .hp-steps__item:last-child {
    border-right: none;
    padding-right: 0;
  }
}

.hp-steps__num {
  font-family: var(--hp-font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--hp-accent);
  margin-bottom: 0.65rem;
}

.hp-steps__item h3 {
  font-family: var(--hp-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--hp-ink);
}

.hp-steps__item p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--hp-muted);
}

.hp-feature-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hp-line);
}

@media (min-width: 640px) {
  .hp-feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hp-feature-grid.hp-feature-grid--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.hp-feature-grid > * {
  padding: 1.5rem 1.25rem 1.5rem 0;
  border-bottom: 1px solid var(--hp-line);
}

@media (min-width: 640px) {
  .hp-feature-grid > *:nth-child(odd) {
    padding-right: 1.75rem;
    border-right: 1px solid var(--hp-line);
  }

  .hp-feature-grid > *:nth-child(even) {
    padding-left: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .hp-feature-grid.hp-feature-grid--3 > * {
    border-right: 1px solid var(--hp-line);
    padding: 1.5rem 1.5rem 1.5rem 0;
  }

  .hp-feature-grid.hp-feature-grid--3 > *:nth-child(3n) {
    border-right: none;
  }

  .hp-feature-grid.hp-feature-grid--3 > *:nth-child(3n + 1) {
    padding-left: 0;
  }

  .hp-feature-grid.hp-feature-grid--3 > *:not(:nth-child(3n + 1)) {
    padding-left: 1.5rem;
  }
}

.hp-feature-grid h3 {
  font-family: var(--hp-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  color: var(--hp-ink);
}

.hp-feature-grid p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--hp-muted);
}

/* Homepage AI / agentic / n8n band — media cards + CTAs */
.hp-ai-cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .hp-ai-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .hp-ai-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hp-ai-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--hp-white);
  border: 1px solid var(--hp-line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hp-ai-card:hover {
  border-color: var(--hp-line-strong);
  transform: translateY(-2px);
}

.hp-ai-card:hover .hp-ai-card__title,
.hp-ai-card:hover .hp-ai-card__cta {
  color: var(--hp-accent);
}

.hp-ai-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--hp-band);
}

.hp-ai-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-ai-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.15rem 1.25rem;
  flex: 1 1 auto;
}

.hp-ai-card__title {
  font-family: var(--hp-font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--hp-ink);
  line-height: 1.3;
  transition: color 0.2s ease;
}

.hp-ai-card__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--hp-muted);
  flex: 1 1 auto;
}

.hp-ai-card__cta {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hp-ink);
  transition: color 0.2s ease;
}

.hp-ai-strip__ctas {
  margin-top: 1.75rem;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: center;
}

.hp-quote {
  font-family: var(--hp-font-display);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: var(--hp-ink);
  margin: 0 0 1rem;
  max-width: 40rem;
}

.hp-quote-attr {
  font-size: 0.875rem;
  color: var(--hp-muted);
  margin: 0;
}

.hp-quote-attr strong {
  color: var(--hp-ink);
  font-weight: 600;
}

.hp-cta-band {
  background: var(--hp-paper);
  color: var(--hp-ink);
  padding: 3.25rem 0;
  border-top: 1px solid var(--hp-line);
}

.hp-cta-band h2 {
  font-family: var(--hp-font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
  color: var(--hp-ink);
}

.hp-cta-band p {
  margin: 0 0 1.5rem;
  color: var(--hp-muted);
  max-width: 34rem;
  line-height: 1.55;
}

/* ——— Footer ——— */
.hp-footer {
  border-top: 0;
  background: var(--hp-paper-2);
  margin-top: 0;
  position: relative;
  z-index: 1;
  color: var(--hp-ink-soft);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.hp-footer__top {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hp-line);
}

.hp-footer__cols {
  display: grid;
  gap: 1.75rem;
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .hp-footer__cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .hp-footer__cols {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.hp-footer__col h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
  color: var(--hp-ink);
}

.hp-footer__col a {
  display: flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.45rem 0;
  font-size: 0.8125rem;
  color: var(--hp-muted);
  text-decoration: none;
  touch-action: manipulation;
}

.hp-footer__col a:hover {
  color: var(--hp-accent);
  text-decoration: underline;
}

.hp-footer__grid {
  display: block;
  padding: 0;
}

.hp-footer h2 {
  font-family: var(--hp-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 0.65rem;
  color: var(--hp-ink);
}

.hp-footer p {
  color: var(--hp-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0 0 1.1rem;
  max-width: 36rem;
}

.hp-footer__meta {
  font-size: 0.6875rem !important;
  color: var(--hp-muted) !important;
  margin: 0 !important;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--hp-line);
}

/* ——— Forms (Microsoft-shell B2B) ——— */
.hp-form-panel {
  background: var(--hp-white);
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-card);
  box-shadow: var(--hp-shadow-card);
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .hp-form-panel {
    padding: 2rem 2.25rem;
  }
}

.hp-form-panel__title {
  font-family: var(--hp-font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--hp-ink);
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.hp-form-panel__lead {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--hp-muted);
  margin: 0 0 1.5rem;
}

.hp-form-panel__lead strong {
  color: var(--hp-accent);
  font-weight: 600;
}

.hp-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hp-form__row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .hp-form__row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.hp-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.hp-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--hp-ink-soft);
  letter-spacing: 0;
}

.hp-label__hint,
.hp-label__optional {
  font-weight: 400;
  color: var(--hp-muted);
}

.hp-label__req {
  color: var(--hp-accent);
  font-weight: 600;
}

.hp-input,
.hp-select,
.hp-textarea {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  background: var(--hp-white);
  border: 1px solid var(--hp-line);
  border-radius: 2px;
  color: var(--hp-ink);
  font-family: var(--hp-font-body);
  font-size: 1rem;
  line-height: 1.4;
  padding: 0.7rem 0.85rem;
  min-height: 2.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.hp-textarea {
  min-height: 8.5rem;
  resize: vertical;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  line-height: 1.5;
}

.hp-input::placeholder,
.hp-textarea::placeholder {
  color: #a19f9d;
  opacity: 1;
}

.hp-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23605e5c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 0.75rem;
  padding-right: 2.25rem;
  cursor: pointer;
}

.hp-select:disabled {
  background-color: var(--hp-paper-2);
  color: var(--hp-muted);
  cursor: not-allowed;
  opacity: 0.85;
}

.hp-input:hover:not(:disabled):not(:focus),
.hp-select:hover:not(:disabled):not(:focus),
.hp-textarea:hover:not(:disabled):not(:focus) {
  border-color: var(--hp-line-strong);
}

.hp-input:focus,
.hp-select:focus,
.hp-textarea:focus {
  outline: none;
  border-color: var(--hp-accent);
  box-shadow: 0 0 0 1px var(--hp-accent), 0 0 0 4px var(--hp-accent-soft);
}

.hp-input:focus-visible,
.hp-select:focus-visible,
.hp-textarea:focus-visible {
  outline: none;
  border-color: var(--hp-accent);
  box-shadow: 0 0 0 1px var(--hp-accent), 0 0 0 4px var(--hp-accent-soft);
}

.hp-input[aria-invalid="true"],
.hp-select[aria-invalid="true"],
.hp-textarea[aria-invalid="true"],
.hp-field--error .hp-input,
.hp-field--error .hp-select,
.hp-field--error .hp-textarea {
  border-color: #a4262c;
  box-shadow: none;
}

.hp-input[aria-invalid="true"]:focus,
.hp-select[aria-invalid="true"]:focus,
.hp-textarea[aria-invalid="true"]:focus,
.hp-field--error .hp-input:focus,
.hp-field--error .hp-select:focus,
.hp-field--error .hp-textarea:focus {
  border-color: #a4262c;
  box-shadow: 0 0 0 1px #a4262c, 0 0 0 4px rgba(164, 38, 44, 0.12);
}

.hp-field__error {
  font-size: 0.8125rem;
  color: #a4262c;
  margin: 0;
  line-height: 1.4;
}

.hp-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-top: 0.35rem;
}

.hp-form__actions .hp-btn {
  min-width: 11rem;
}

.hp-alert {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  border: 1px solid var(--hp-line);
  border-radius: 2px;
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0 0 1.5rem;
  color: var(--hp-ink);
}

.hp-alert--success {
  background: var(--hp-accent-soft);
  border-color: rgba(0, 103, 184, 0.35);
  color: var(--hp-ink-soft);
}

.hp-alert--error {
  background: #fde7e9;
  border-color: #f1aeb5;
  color: #750b1c;
}

.hp-aside-panel {
  background: transparent;
  border-left: 2px solid var(--hp-accent);
  padding: 0.15rem 0 0.15rem 1.35rem;
}

.hp-aside-panel__text {
  color: var(--hp-ink-soft);
  line-height: 1.6;
  margin: 0;
  font-size: 1rem;
}

.hp-aside-panel__list {
  margin: 1.15rem 0 0;
  padding: 0 0 0 1.1rem;
  list-style: disc;
  color: var(--hp-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.hp-aside-panel__list li + li {
  margin-top: 0.55rem;
}

.hp-aside-panel__contact {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hp-line);
}

.hp-offices {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.35rem;
}

.hp-office__region {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hp-accent);
}

.hp-office__name {
  margin: 0.15rem 0 0;
  font-weight: 600;
  color: var(--hp-ink);
}

.hp-office__address,
.hp-office__phone {
  margin: 0.2rem 0 0;
  line-height: 1.45;
}

.hp-office + .hp-office {
  padding-top: 0.85rem;
  border-top: 1px solid var(--hp-line);
}

.hp-faq {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.hp-faq__item {
  border: 1px solid var(--hp-line);
  background: var(--hp-paper);
  padding: 0;
}

.hp-faq__q {
  cursor: pointer;
  list-style: none;
  padding: 0.95rem 1.1rem;
  font-weight: 600;
  color: var(--hp-ink);
  font-family: var(--hp-font-display);
  line-height: 1.35;
}

.hp-faq__q::-webkit-details-marker {
  display: none;
}

.hp-faq__item[open] .hp-faq__q {
  border-bottom: 1px solid var(--hp-line);
  color: var(--hp-accent-dark);
}

.hp-faq__a {
  padding: 0.9rem 1.1rem 1.1rem;
  color: var(--hp-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hp-faq__a p {
  margin: 0;
}

.hp-entity {
  margin-top: 2.25rem;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--hp-line);
  background: linear-gradient(180deg, #fafafa 0%, #fff 100%);
}

.hp-entity__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-family: var(--hp-font-display);
  color: var(--hp-ink);
}

.hp-entity__lead,
.hp-entity__note {
  margin: 0 0 1rem;
  color: var(--hp-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.hp-entity__note {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
}

.hp-entity__list {
  display: grid;
  gap: 0.9rem;
  margin: 0;
}

.hp-entity__list dt {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hp-accent);
}

.hp-entity__list dd {
  margin: 0.2rem 0 0;
  color: var(--hp-ink);
  line-height: 1.5;
}

.hp-company-email {
  margin: 0 0 1rem;
}

.hp-company-email p {
  margin: 0;
}

.hp-footer__col .hp-offices a,
.hp-aside-panel__contact .hp-offices a,
.hp-footer__col .hp-company-email a,
.hp-aside-panel__contact .hp-company-email a {
  display: inline;
  min-height: 0;
  padding: 0;
  color: var(--hp-accent);
  text-decoration: underline;
  font-size: inherit;
}

/* Schedule picker — interaction block inside form */
.hp-scheduler {
  border: 1px solid var(--hp-line);
  border-radius: 2px;
  background: var(--hp-paper-2);
  padding: 1rem;
}

@media (min-width: 640px) {
  .hp-scheduler {
    padding: 1.15rem 1.25rem;
  }
}

.hp-scheduler__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.85rem;
}

.hp-scheduler__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hp-accent);
  background: var(--hp-accent-soft);
  border: 1px solid rgba(0, 103, 184, 0.18);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  white-space: nowrap;
}

.hp-scheduler__grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hp-scheduler__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
  }
}

.hp-scheduler__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.hp-scheduler__nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--hp-accent);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.hp-scheduler__nav-btn:hover {
  background: var(--hp-white);
  border-color: var(--hp-line);
}

.hp-scheduler__nav-btn:focus-visible {
  outline: none;
  border-color: var(--hp-accent);
  box-shadow: 0 0 0 3px var(--hp-accent-soft);
}

.hp-scheduler__month {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hp-ink);
}

.hp-scheduler__cal {
  border: 1px solid var(--hp-line);
  background: var(--hp-white);
  overflow: hidden;
  border-radius: 2px;
}

.hp-scheduler__dow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--hp-muted);
  background: var(--hp-paper-2);
  border-bottom: 1px solid var(--hp-line);
  padding: 0.4rem 0;
}

.hp-scheduler__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--hp-line);
  padding: 1px;
}

.hp-scheduler__days .hp-cal-day,
.hp-scheduler__days button {
  aspect-ratio: 1;
  border: none;
  background: var(--hp-white);
  font-family: var(--hp-font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--hp-ink);
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.hp-scheduler__days .hp-cal-day:hover:not(:disabled),
.hp-scheduler__days button:hover:not(:disabled) {
  background: var(--hp-accent-soft);
  color: var(--hp-accent);
}

.hp-scheduler__days .hp-cal-day.is-selected,
.hp-scheduler__days button.is-selected {
  background: var(--hp-accent);
  color: #fff;
  font-weight: 600;
}

.hp-scheduler__days .hp-cal-day:disabled,
.hp-scheduler__days button:disabled {
  color: #c8c6c4;
  cursor: not-allowed;
  background: var(--hp-paper-2);
}

.hp-scheduler__days .hp-cal-day:focus-visible,
.hp-scheduler__days button:focus-visible {
  outline: 2px solid var(--hp-accent);
  outline-offset: -2px;
  z-index: 1;
}

.hp-scheduler__hint {
  font-size: 0.8125rem;
  color: var(--hp-muted);
  margin: 0.55rem 0 0;
  line-height: 1.45;
}

.hp-scheduler__summary {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(0, 103, 184, 0.28);
  background: var(--hp-accent-soft);
  border-radius: 2px;
}

.hp-scheduler__summary-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hp-accent);
  margin: 0 0 0.25rem;
}

.hp-scheduler__summary-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--hp-ink);
  margin: 0;
}

.hp-contact-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .hp-contact-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3rem;
    align-items: start;
  }
}

/* ——— Motion ——— */
@keyframes hpKen {
  from {
    transform: scale(1.04) translate(0, 0);
  }
  to {
    transform: scale(1.1) translate(-1.2%, -0.8%);
  }
}

@keyframes hpRise {
  from {
    opacity: 0;
    transform: translateY(1.1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hp-reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.7s var(--hp-ease), transform 0.7s var(--hp-ease);
}

.hp-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .hp-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hp-hero__brand,
  .hp-hero__title,
  .hp-hero__sub,
  .hp-hero .hp-cta-row {
    animation: none;
    opacity: 1;
  }
}

/* ——— Legacy utility remaps (light theme safety net) ——— */
main .text-white {
  color: var(--hp-ink);
}

.hp-hero .text-white,
.hp-page-hero .text-white,
.hp-cta-band .text-white,
.hp-on-media .text-white {
  color: #fff !important;
}

main .text-highpower-silver\/90,
main .text-highpower-silver\/85,
main .text-highpower-silver\/80,
main .text-highpower-silver\/75,
main .text-highpower-silver\/70,
main .text-highpower-platinum,
main .text-highpower-platinum\/95 {
  color: var(--hp-muted);
}

.hp-hero .text-highpower-silver\/90,
.hp-hero .text-highpower-silver\/85,
.hp-hero .text-highpower-platinum\/95,
.hp-page-hero .text-highpower-silver\/85,
.hp-page-hero .text-highpower-silver\/90,
.hp-page-hero .text-highpower-platinum,
.hp-cta-band .text-highpower-silver\/85,
.hp-cta-band .text-highpower-silver\/90 {
  color: rgba(255, 255, 255, 0.85) !important;
}

main .text-highpower-accent-light,
main .text-highpower-accent-light\/95,
main .text-highpower-accent-light\/90 {
  color: var(--hp-accent);
}

.hp-hero .text-highpower-accent-light,
.hp-page-hero .text-highpower-accent-light,
.hp-cta-band .text-highpower-accent-light {
  color: rgba(255, 255, 255, 0.75) !important;
}

main .bg-black\/50,
main .bg-black\/45,
main .bg-black\/40,
main .bg-black\/30,
main .bg-highpower-surface\/20,
main .bg-highpower-surface\/30,
main .bg-highpower-surface\/50,
main .bg-highpower-surface\/60,
main .bg-highpower-surface\/70,
main .bg-highpower-accent\/10 {
  background-color: var(--hp-white) !important;
}

main .hp-form-panel {
  background: var(--hp-white) !important;
  border: 1px solid var(--hp-line) !important;
  border-radius: var(--hp-radius-card) !important;
  box-shadow: var(--hp-shadow-card);
}

/* Contact form inputs should not inherit legacy dark-theme utility remaps */
main .hp-input,
main .hp-select,
main .hp-textarea {
  background-color: var(--hp-white) !important;
  border-color: var(--hp-line) !important;
  color: var(--hp-ink) !important;
  border-radius: 2px !important;
  box-shadow: none;
}

main .hp-input:focus,
main .hp-select:focus,
main .hp-textarea:focus,
main .hp-input:focus-visible,
main .hp-select:focus-visible,
main .hp-textarea:focus-visible {
  border-color: var(--hp-accent) !important;
  box-shadow: 0 0 0 1px var(--hp-accent), 0 0 0 4px var(--hp-accent-soft) !important;
}

main .border-highpower-steel\/50,
main .border-highpower-steel\/45,
main .border-highpower-steel\/40,
main .border-highpower-steel\/35,
main .border-highpower-steel\/30,
main .border-highpower-accent\/40,
main .border-highpower-accent\/30 {
  border-color: var(--hp-line) !important;
}

main .rounded-xl,
main .rounded-2xl,
main .rounded-lg {
  border-radius: var(--hp-radius) !important;
}

main .shadow-lg,
main .shadow-xl,
main .shadow-2xl,
main .shadow-md {
  box-shadow: none !important;
}

.readme-content h1,
.readme-content h2,
.readme-content h3,
.readme-content h4 {
  color: var(--hp-ink);
  font-family: var(--hp-font-display);
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.readme-content p,
.readme-content li {
  color: var(--hp-muted);
  line-height: 1.7;
}

.readme-content a {
  color: var(--hp-accent);
}

.readme-content code {
  background: var(--hp-paper-2);
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  padding: 0.1em 0.35em;
  font-size: 0.875em;
}

.readme-content pre {
  background: var(--hp-ink);
  border: none;
  border-radius: var(--hp-radius);
  padding: 1rem;
  overflow-x: auto;
  margin: 1rem 0;
  color: #e8edf3;
}

.readme-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

/* ——— Industry detail ——— */
.hp-industry-outcomes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hp-industry-outcomes li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.65rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--hp-muted);
}

.hp-industry-outcomes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--hp-accent);
}

.hp-industry-carousel {
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  background: var(--hp-paper);
}

.hp-industry-carousel__track {
  position: relative;
  min-height: 280px;
}

@media (min-width: 768px) {
  .hp-industry-carousel__track {
    min-height: 320px;
  }
}

.hp-industry-carousel__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--hp-ease);
}

.hp-industry-carousel__slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}

.hp-industry-carousel__slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .hp-industry-carousel__slide img {
    height: 280px;
  }
}

.hp-industry-carousel__copy {
  padding: 1.25rem 1.5rem 1.5rem;
}

.hp-industry-carousel__copy p {
  margin: 0 0 1rem;
  color: var(--hp-muted);
  line-height: 1.6;
  max-width: 42rem;
}

.hp-industry-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-top: 1px solid var(--hp-line);
  background: var(--hp-paper-2);
}

.hp-industry-carousel__btn {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--hp-ink-soft);
  background: transparent;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius);
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  touch-action: manipulation;
}

.hp-industry-carousel__btn:hover {
  color: var(--hp-accent);
  border-color: var(--hp-accent);
}

.hp-industry-carousel__dots {
  display: flex;
  gap: 0.4rem;
}

.hp-industry-carousel__dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--hp-line);
  cursor: pointer;
  touch-action: manipulation;
}

.hp-industry-carousel__dot::before {
  content: "";
  position: absolute;
  inset: -0.75rem;
}

.hp-industry-carousel__dot.is-active {
  background: var(--hp-accent);
}

.hp-industry-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}

.hp-industry-gallery__item {
  margin: 0;
  border: 1px solid var(--hp-line);
  border-radius: var(--hp-radius-lg);
  overflow: hidden;
  background: var(--hp-paper);
}

.hp-industry-gallery__item img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
  display: block;
}

.hp-industry-gallery__item figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.8125rem;
  color: var(--hp-muted);
  line-height: 1.45;
}

/* —— Industry infographics —— */
.hp-infographic {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hp-flow {
  display: grid;
  gap: 1.75rem;
  counter-reset: none;
  grid-template-columns: minmax(0, 1fr);
}

/* Tablet portrait: readable 2-up before full 4-step desktop row. */
@media (min-width: 640px) and (max-width: 899px) {
  .hp-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.75rem;
  }
}

@media (min-width: 900px) {
  .hp-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }
}

.hp-flow__step {
  position: relative;
  margin: 0;
  padding: 0;
}

@media (min-width: 900px) {
  .hp-flow__step {
    padding-right: 1.5rem;
  }

  .hp-flow__step:last-child {
    padding-right: 0;
  }
}

.hp-flow__marker {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0.85rem;
}

.hp-flow__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.5rem;
  border: 1px solid var(--hp-accent);
  background: var(--hp-white);
  color: var(--hp-accent);
  font-family: var(--hp-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hp-flow__connector {
  display: none;
  flex: 1 1 auto;
  height: 1px;
  margin-left: 0.75rem;
  background: linear-gradient(90deg, var(--hp-accent) 0%, var(--hp-line-strong) 100%);
}

@media (min-width: 900px) {
  .hp-flow__connector {
    display: block;
  }
}

.hp-flow__title {
  font-family: var(--hp-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  color: var(--hp-ink);
  line-height: 1.3;
}

.hp-flow__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--hp-muted);
  max-width: 18rem;
}

@media (min-width: 640px) {
  .hp-flow__text {
    max-width: none;
  }
}

.hp-caps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hp-line);
}

@media (min-width: 640px) {
  .hp-caps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .hp-caps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hp-caps__item {
  margin: 0;
  padding: 1.5rem 1.25rem 1.5rem 0;
  border-bottom: 1px solid var(--hp-line);
}

@media (min-width: 640px) {
  .hp-caps__item {
    padding: 1.5rem 1.5rem 1.5rem 0;
    border-right: 1px solid var(--hp-line);
  }

  .hp-caps__item:nth-child(2n) {
    border-right: none;
    padding-left: 1.5rem;
    padding-right: 0;
  }

  .hp-caps__item:nth-child(2n + 1) {
    padding-left: 0;
  }
}

@media (min-width: 1024px) {
  .hp-caps__item {
    border-right: 1px solid var(--hp-line);
    padding: 1.5rem 1.35rem 1.5rem 0;
  }

  .hp-caps__item:nth-child(2n) {
    border-right: 1px solid var(--hp-line);
    padding-left: 0;
    padding-right: 1.35rem;
  }

  .hp-caps__item:not(:first-child) {
    padding-left: 1.35rem;
  }

  .hp-caps__item:first-child {
    padding-left: 0;
  }

  .hp-caps__item:nth-child(4n) {
    border-right: none;
    padding-right: 0;
  }

  .hp-caps__item:nth-child(4n + 1) {
    padding-left: 0;
  }
}

.hp-caps__icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.85rem;
  color: var(--hp-accent);
}

.hp-caps__icon svg {
  width: 1.65rem;
  height: 1.65rem;
}

.hp-caps__title {
  font-family: var(--hp-font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.45rem;
  color: var(--hp-ink);
  line-height: 1.3;
}

.hp-caps__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--hp-muted);
}

.hp-glance {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hp-line);
}

@media (min-width: 768px) {
  .hp-glance {
    grid-template-columns: 1fr 1fr;
  }
}

.hp-glance__item {
  display: grid;
  grid-template-columns: auto 3px 1fr;
  gap: 0.85rem;
  align-items: start;
  margin: 0;
  padding: 1.25rem 1.25rem 1.25rem 0;
  border-bottom: 1px solid var(--hp-line);
}

@media (min-width: 768px) {
  .hp-glance__item {
    padding: 1.35rem 1.5rem 1.35rem 0;
  }

  .hp-glance__item:nth-child(odd) {
    padding-right: 1.75rem;
    border-right: 1px solid var(--hp-line);
  }

  .hp-glance__item:nth-child(even) {
    padding-left: 1.75rem;
    padding-right: 0;
  }
}

.hp-glance__index {
  font-family: var(--hp-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--hp-accent);
  line-height: 1.6;
  padding-top: 0.1rem;
}

.hp-glance__bar {
  width: 3px;
  min-height: 2.5rem;
  align-self: stretch;
  background: var(--hp-accent);
  opacity: 0.85;
}

.hp-glance__text {
  margin: 0;
  font-size: 0.975rem;
  line-height: 1.55;
  color: var(--hp-ink-soft);
  font-weight: 500;
}

@media (prefers-reduced-motion: no-preference) {
  .hp-flow__step,
  .hp-caps__item,
  .hp-glance__item,
  .hp-ai-card {
    transition: transform 0.35s var(--hp-ease), opacity 0.35s var(--hp-ease);
  }

  .hp-reveal.is-visible .hp-flow__step:nth-child(1),
  .hp-reveal.is-visible .hp-caps__item:nth-child(1),
  .hp-reveal.is-visible .hp-glance__item:nth-child(1),
  .hp-reveal.is-visible .hp-ai-card:nth-child(1) {
    transition-delay: 0.05s;
  }

  .hp-reveal.is-visible .hp-flow__step:nth-child(2),
  .hp-reveal.is-visible .hp-caps__item:nth-child(2),
  .hp-reveal.is-visible .hp-glance__item:nth-child(2),
  .hp-reveal.is-visible .hp-ai-card:nth-child(2) {
    transition-delay: 0.1s;
  }

  .hp-reveal.is-visible .hp-flow__step:nth-child(3),
  .hp-reveal.is-visible .hp-caps__item:nth-child(3),
  .hp-reveal.is-visible .hp-glance__item:nth-child(3),
  .hp-reveal.is-visible .hp-ai-card:nth-child(3) {
    transition-delay: 0.15s;
  }

  .hp-reveal.is-visible .hp-flow__step:nth-child(4),
  .hp-reveal.is-visible .hp-caps__item:nth-child(4),
  .hp-reveal.is-visible .hp-glance__item:nth-child(4),
  .hp-reveal.is-visible .hp-ai-card:nth-child(4) {
    transition-delay: 0.2s;
  }

  .hp-reveal.is-visible .hp-ai-card:nth-child(5) {
    transition-delay: 0.25s;
  }
}

/* Insights / blog ------------------------------------------------------- */

.hp-insight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hp-muted);
}

.hp-insight-meta a {
  color: var(--hp-accent);
  text-decoration: none;
}

.hp-insight-meta a:hover {
  text-decoration: underline;
}

.hp-insights-themes {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .hp-insights-themes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .hp-insights-themes {
    grid-template-columns: repeat(4, 1fr);
  }
}

a.hp-insights-theme {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.hp-insights-theme:hover h3 {
  color: var(--hp-accent);
}

a.hp-insights-theme .hp-list__meta {
  margin-top: 0.75rem;
}

.hp-insight-featured {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hp-insight-featured {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.5rem;
  }
}

.hp-insight-featured__copy .hp-section-title {
  margin: 0 0 0.85rem;
}

.hp-insight-featured__copy .hp-section-title a {
  color: inherit;
  text-decoration: none;
}

.hp-insight-featured__copy .hp-section-title a:hover {
  color: var(--hp-accent);
}

.hp-insight-featured__copy > p {
  margin: 0 0 1.25rem;
  color: var(--hp-ink-soft);
  line-height: 1.65;
  max-width: 38rem;
}

.hp-insight-featured__media {
  display: block;
  overflow: hidden;
  border: 1px solid var(--hp-line);
  background: var(--hp-surface-2, #f3f4f6);
}

.hp-insight-featured__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 14rem;
  max-height: 22rem;
  object-fit: cover;
}

.hp-article {
  max-width: 42rem;
}

.hp-prose {
  color: var(--hp-ink-soft);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.hp-prose > *:first-child {
  margin-top: 0;
}

.hp-prose h2,
.hp-prose h3 {
  font-family: var(--hp-font-display);
  color: var(--hp-ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 2rem 0 0.75rem;
}

.hp-prose h2 {
  font-size: 1.45rem;
}

.hp-prose h3 {
  font-size: 1.2rem;
}

.hp-prose p,
.hp-prose ul,
.hp-prose ol {
  margin: 0 0 1.1rem;
}

.hp-prose ul,
.hp-prose ol {
  padding-left: 1.25rem;
}

.hp-prose li {
  margin: 0 0 0.45rem;
}

.hp-prose a {
  color: var(--hp-accent);
}

.hp-prose strong {
  color: var(--hp-ink);
  font-weight: 650;
}

/* ——— Article visuals (agentic / n8n insight) — scoped ——— */
.hp-article-viz .hp-flow--5 {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) and (max-width: 1099px) {
  .hp-article-viz .hp-flow--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.75rem;
  }

  .hp-article-viz .hp-flow--5 .hp-flow__connector {
    display: none;
  }

  .hp-article-viz .hp-flow--5 .hp-flow__step {
    padding-right: 0;
  }
}

@media (min-width: 1100px) {
  .hp-article-viz .hp-flow--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
  }

  .hp-article-viz .hp-flow--5 .hp-flow__step {
    padding-right: 0.85rem;
  }

  .hp-article-viz .hp-flow--5 .hp-flow__step:last-child {
    padding-right: 0;
  }

  .hp-article-viz .hp-flow--5 .hp-flow__connector {
    display: block;
  }

  .hp-article-viz .hp-flow--5 .hp-flow__title {
    font-size: 1.05rem;
  }

  .hp-article-viz .hp-flow--5 .hp-flow__text {
    font-size: 0.875rem;
  }
}

.hp-article-viz__figures {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 0 2rem;
}

@media (min-width: 768px) {
  .hp-article-viz__figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.hp-article-viz__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--hp-white);
  border: 1px solid var(--hp-line);
}

.hp-article-viz__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--hp-paper-2);
}

.hp-article-viz__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-article-viz__caption {
  margin: 0;
  padding: 0 1rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--hp-muted);
}

.hp-article-viz__glance {
  margin-top: 0.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hp-reveal.is-visible .hp-flow__step:nth-child(5),
  .hp-reveal.is-visible .hp-article-viz__figure:nth-child(1) {
    transition-delay: 0.2s;
  }

  .hp-reveal.is-visible .hp-article-viz__figure:nth-child(2) {
    transition-delay: 0.25s;
  }

  .hp-article-viz__figure {
    transition: transform 0.35s var(--hp-ease), opacity 0.35s var(--hp-ease);
  }
}

/* ——— Digital Twin + Enterprise Platforms + Trust + Data/Decision + Integrations enrichment (scoped) ——— */
.hp-dt .hp-flow--5,
.hp-ep .hp-flow--5,
.hp-tv .hp-flow--5,
.hp-dd .hp-flow--5,
.hp-im .hp-flow--5 {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) and (max-width: 1099px) {
  .hp-dt .hp-flow--5,
  .hp-ep .hp-flow--5,
  .hp-tv .hp-flow--5,
  .hp-dd .hp-flow--5,
  .hp-im .hp-flow--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.75rem;
  }

  .hp-dt .hp-flow--5 .hp-flow__connector,
  .hp-ep .hp-flow--5 .hp-flow__connector,
  .hp-tv .hp-flow--5 .hp-flow__connector,
  .hp-dd .hp-flow--5 .hp-flow__connector,
  .hp-im .hp-flow--5 .hp-flow__connector {
    display: none;
  }

  .hp-dt .hp-flow--5 .hp-flow__step,
  .hp-ep .hp-flow--5 .hp-flow__step,
  .hp-tv .hp-flow--5 .hp-flow__step,
  .hp-dd .hp-flow--5 .hp-flow__step,
  .hp-im .hp-flow--5 .hp-flow__step {
    padding-right: 0;
  }
}

@media (min-width: 1100px) {
  .hp-dt .hp-flow--5,
  .hp-ep .hp-flow--5,
  .hp-tv .hp-flow--5,
  .hp-dd .hp-flow--5,
  .hp-im .hp-flow--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
  }

  .hp-dt .hp-flow--5 .hp-flow__step,
  .hp-ep .hp-flow--5 .hp-flow__step,
  .hp-tv .hp-flow--5 .hp-flow__step,
  .hp-dd .hp-flow--5 .hp-flow__step,
  .hp-im .hp-flow--5 .hp-flow__step {
    padding-right: 0.85rem;
  }

  .hp-dt .hp-flow--5 .hp-flow__step:last-child,
  .hp-ep .hp-flow--5 .hp-flow__step:last-child,
  .hp-tv .hp-flow--5 .hp-flow__step:last-child,
  .hp-dd .hp-flow--5 .hp-flow__step:last-child,
  .hp-im .hp-flow--5 .hp-flow__step:last-child {
    padding-right: 0;
  }

  .hp-dt .hp-flow--5 .hp-flow__connector,
  .hp-ep .hp-flow--5 .hp-flow__connector,
  .hp-tv .hp-flow--5 .hp-flow__connector,
  .hp-dd .hp-flow--5 .hp-flow__connector,
  .hp-im .hp-flow--5 .hp-flow__connector {
    display: block;
  }

  .hp-dt .hp-flow--5 .hp-flow__title,
  .hp-ep .hp-flow--5 .hp-flow__title,
  .hp-tv .hp-flow--5 .hp-flow__title,
  .hp-dd .hp-flow--5 .hp-flow__title,
  .hp-im .hp-flow--5 .hp-flow__title {
    font-size: 1.05rem;
  }

  .hp-dt .hp-flow--5 .hp-flow__text,
  .hp-ep .hp-flow--5 .hp-flow__text,
  .hp-tv .hp-flow--5 .hp-flow__text,
  .hp-dd .hp-flow--5 .hp-flow__text,
  .hp-im .hp-flow--5 .hp-flow__text {
    font-size: 0.875rem;
  }
}

@media (min-width: 1100px) {
  .hp-dt__cards.hp-ai-cards,
  .hp-ep__cards.hp-ai-cards,
  .hp-tv__cards.hp-ai-cards,
  .hp-dd__cards.hp-ai-cards,
  .hp-im__cards.hp-ai-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .hp-dt__cards.hp-ai-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hp-ep__cards.hp-ai-cards,
  .hp-tv__cards.hp-ai-cards,
  .hp-dd__cards.hp-ai-cards,
  .hp-im__cards.hp-ai-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hp-dt__figures,
.hp-ep__figures,
.hp-tv__figures,
.hp-dd__figures,
.hp-im__figures {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
}

@media (min-width: 768px) {
  .hp-dt__figures,
  .hp-ep__figures,
  .hp-tv__figures,
  .hp-dd__figures,
  .hp-im__figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }
}

.hp-dt__figure,
.hp-ep__figure,
.hp-tv__figure,
.hp-dd__figure,
.hp-im__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--hp-white);
  border: 1px solid var(--hp-line);
}

.hp-dt__figure-media,
.hp-ep__figure-media,
.hp-tv__figure-media,
.hp-dd__figure-media,
.hp-im__figure-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--hp-paper-2);
}

.hp-dt__figure-media img,
.hp-ep__figure-media img,
.hp-tv__figure-media img,
.hp-dd__figure-media img,
.hp-im__figure-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hp-dt__figure-caption,
.hp-ep__figure-caption,
.hp-tv__figure-caption,
.hp-dd__figure-caption,
.hp-im__figure-caption {
  margin: 0;
  padding: 0 1rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--hp-muted);
}

@media (prefers-reduced-motion: no-preference) {
  .hp-reveal.is-visible .hp-dt__figure:nth-child(1),
  .hp-reveal.is-visible .hp-ep__figure:nth-child(1),
  .hp-reveal.is-visible .hp-tv__figure:nth-child(1),
  .hp-reveal.is-visible .hp-dd__figure:nth-child(1),
  .hp-reveal.is-visible .hp-im__figure:nth-child(1) {
    transition-delay: 0.12s;
  }

  .hp-reveal.is-visible .hp-dt__figure:nth-child(2),
  .hp-reveal.is-visible .hp-ep__figure:nth-child(2),
  .hp-reveal.is-visible .hp-tv__figure:nth-child(2),
  .hp-reveal.is-visible .hp-dd__figure:nth-child(2),
  .hp-reveal.is-visible .hp-im__figure:nth-child(2) {
    transition-delay: 0.2s;
  }

  .hp-dt__figure,
  .hp-ep__figure,
  .hp-tv__figure,
  .hp-dd__figure,
  .hp-im__figure {
    transition: transform 0.35s var(--hp-ease), opacity 0.35s var(--hp-ease);
  }
}

/* ——— Portfolio library (Microsoft-shell filters + cards) ——— */
.hp-port-domains {
  margin-top: 0.5rem;
}

@media (min-width: 1100px) {
  .hp-port-domains {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hp-port-stack {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hp-line);
}

.hp-port-stack__label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hp-ink-soft);
}

.hp-port-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hp-port-chips li,
.hp-port-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--hp-ink-soft);
  background: var(--hp-white);
  border: 1px solid var(--hp-line-strong);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.hp-port-chip:hover {
  color: var(--hp-accent);
  border-color: var(--hp-accent);
}

.hp-port-chip.is-active {
  color: #fff;
  background: var(--hp-accent);
  border-color: var(--hp-accent);
}

.hp-port-filters {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.75rem;
}

.hp-port-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.hp-port-filters__label {
  flex: 0 0 auto;
  min-width: 4.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--hp-muted);
}

.hp-port-head {
  margin-bottom: 1.25rem;
}

.hp-port-grid {
  margin-top: 0.25rem;
}

.hp-port-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  margin-bottom: 0.15rem;
}

.hp-port-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hp-ink-soft);
  background: var(--hp-paper-2);
  border: 1px solid var(--hp-line);
  padding: 0.2rem 0.45rem;
}

.hp-port-badge--public {
  color: #0b6a0b;
  background: rgba(16, 124, 16, 0.08);
  border-color: rgba(16, 124, 16, 0.28);
}

.hp-port-lang {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--hp-muted);
}

.hp-port-card__cat {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--hp-ink-soft);
}

.hp-port-empty {
  padding: 2rem 0 1rem;
  border-top: 1px solid var(--hp-line);
}

.hp-port-empty .hp-section-title {
  font-size: clamp(1.35rem, 2vw, 1.6rem);
}

.hp-port-empty .hp-cta-row {
  margin-top: 1.25rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hp-reveal.is-visible .hp-port-grid .hp-ai-card:nth-child(1) { transition-delay: 0.04s; }
  .hp-reveal.is-visible .hp-port-grid .hp-ai-card:nth-child(2) { transition-delay: 0.08s; }
  .hp-reveal.is-visible .hp-port-grid .hp-ai-card:nth-child(3) { transition-delay: 0.12s; }
  .hp-reveal.is-visible .hp-port-grid .hp-ai-card:nth-child(4) { transition-delay: 0.16s; }
  .hp-reveal.is-visible .hp-port-grid .hp-ai-card:nth-child(5) { transition-delay: 0.2s; }
  .hp-reveal.is-visible .hp-port-grid .hp-ai-card:nth-child(6) { transition-delay: 0.24s; }
}

/* ——— Portfolio category modal ——— */
body.hp-port-modal-open {
  overflow: hidden;
}

.hp-port-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  visibility: hidden;
  pointer-events: none;
}

.hp-port-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

.hp-port-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 36, 36, 0.48);
  opacity: 0;
  transition: opacity 0.2s var(--hp-ease);
}

.hp-port-modal.is-open .hp-port-modal__backdrop {
  opacity: 1;
}

.hp-port-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(72rem, 100%);
  max-height: min(92vh, 92dvh);
  margin: 0;
  background: var(--hp-paper);
  border: 1px solid var(--hp-line-strong);
  box-shadow: var(--hp-shadow);
  transform: translateY(1rem);
  opacity: 0;
  transition: transform 0.22s var(--hp-ease), opacity 0.22s var(--hp-ease);
}

.hp-port-modal.is-open .hp-port-modal__panel {
  transform: translateY(0);
  opacity: 1;
}

.hp-port-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex: 0 0 auto;
  padding: 1.15rem 1.25rem 1rem;
  border-bottom: 1px solid var(--hp-line);
  background: var(--hp-white);
}

.hp-port-modal__titles {
  min-width: 0;
}

.hp-port-modal__titles .hp-eyebrow {
  margin-bottom: 0.35rem;
}

.hp-port-modal__title {
  margin: 0;
  font-family: var(--hp-font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--hp-ink);
}

.hp-port-modal__count {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--hp-muted);
}

.hp-port-modal__close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--hp-line-strong);
  background: var(--hp-white);
  color: var(--hp-ink-soft);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.hp-port-modal__close:hover,
.hp-port-modal__close:focus-visible {
  color: var(--hp-accent);
  border-color: var(--hp-accent);
  outline: none;
}

.hp-port-modal__body {
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.25rem;
  background: var(--hp-paper-2);
}

.hp-port-modal__grid {
  margin: 0;
}

@media (min-width: 768px) {
  .hp-port-modal {
    align-items: center;
    padding: 1.5rem;
  }

  .hp-port-modal__panel {
    max-height: min(88vh, 88dvh);
  }

  .hp-port-modal__head {
    padding: 1.35rem 1.5rem 1.15rem;
  }

  .hp-port-modal__body {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-port-modal__backdrop,
  .hp-port-modal__panel {
    transition: none;
  }
}

/* ——— Portfolio project detail ——— */
.hp-port-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 1rem 0 1.25rem;
}

.hp-port-readme {
  margin-top: 1rem;
  padding: 1.25rem 1.35rem;
  background: var(--hp-white);
  border: 1px solid var(--hp-line);
  color: var(--hp-ink);
  line-height: 1.65;
  max-width: 48rem;
}

.hp-port-readme h1,
.hp-port-readme h2,
.hp-port-readme h3 {
  color: var(--hp-ink);
  margin: 1.1rem 0 0.5rem;
  line-height: 1.25;
}

.hp-port-readme h1 { font-size: 1.35rem; }
.hp-port-readme h2 { font-size: 1.15rem; }
.hp-port-readme h3 { font-size: 1.05rem; }

.hp-port-readme p,
.hp-port-readme li {
  color: var(--hp-muted);
  margin: 0 0 0.75rem;
}

.hp-port-readme ul,
.hp-port-readme ol {
  margin: 0 0 0.85rem 1.15rem;
}

.hp-port-readme a {
  color: var(--hp-accent);
  text-decoration: underline;
}

.hp-port-readme code,
.hp-port-readme pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--hp-paper-2);
  border-radius: 0;
}

.hp-port-readme code {
  padding: 0.1em 0.35em;
}

.hp-port-readme pre {
  padding: 0.85rem 1rem;
  overflow-x: auto;
  margin: 0 0 0.85rem;
}

.hp-port-readme pre code {
  padding: 0;
  background: transparent;
}



/* Homepage popup — no Tailwind dependency */
.hp-popup{position:fixed;inset:0;z-index:110;display:none;background:rgba(0,0,0,.75);padding:0.75rem;box-sizing:border-box}
.hp-popup.is-open{display:block}
.hp-popup__center{height:100%;width:100%;display:flex;align-items:center;justify-content:center}
.hp-popup__panel{position:relative;width:100%;max-width:42rem;border:1px solid rgba(237,235,233,.5);background:#242424;color:#fff;overflow:hidden;border-radius:0.75rem;box-shadow:0 25px 50px rgba(0,0,0,.35)}
.hp-popup__close{position:absolute;top:0.5rem;right:0.5rem;z-index:20;width:2.5rem;height:2.5rem;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:0.5rem;background:transparent;color:rgba(255,255,255,.85);cursor:pointer;font-size:1.5rem;line-height:1}
.hp-popup__close:hover{background:rgba(255,255,255,.1)}
.hp-popup__body{padding:1.25rem;max-height:82vh;overflow-y:auto}
.hp-popup__title{margin:0 1.5rem 0.75rem 0;font-size:1.35rem;font-weight:700;color:#fff}
.hp-popup__text{margin:0 0 1rem;font-size:0.95rem;line-height:1.6;color:rgba(255,255,255,.85)}
.hp-popup__media{margin:0 0 1rem;overflow:hidden;border:1px solid rgba(237,235,233,.4);background:rgba(0,0,0,.3);border-radius:0.5rem}
.hp-popup__media iframe{width:100%;aspect-ratio:16/9;border:0;display:block}
.hp-popup__media img{width:100%;display:block;border-radius:0.5rem}
@media (min-width:640px){.hp-popup{padding:1rem}.hp-popup__body{padding:1.5rem}.hp-popup__title{font-size:1.5rem}}
