/* HB Labs landing — service-specific styles only.

   Design tokens, fonts, reset, and shared components (.hb-btn,
   .hb-card, .hb-glass, …) are loaded from the shared uikit package
   (packages/uikit) via /static/uikit/css/. This file holds only the
   landing-specific layout pieces: site header, hero, Cloud spotlight,
   featured grid, projects page, project cards, status badges. Token
   bumps in uikit propagate here for free; never redefine --hb-*
   variables locally. */

/* ============================================================
   Local additions to the token vocab
   ============================================================ */

:root {
  /* Violet accent for project-card[data-accent="violet"]. Not in
     uikit tokens because the Console design system doesn't use
     violet anywhere — landing-only. If a second consumer needs it,
     promote to uikit/tokens.css. */
  --hb-violet: oklch(0.55 0.18 295);
  --hb-violet-soft: oklch(0.94 0.05 295);
}

/* Dark variants — mirrors how uikit flips --hb-accent in dark
   (lighter solid, darkened soft) so violet tracks the theme like
   every other accent instead of staying a light-mode value. */
[data-theme="dark"] {
  --hb-violet: oklch(0.70 0.16 295);
  --hb-violet-soft: oklch(0.30 0.10 295);
}

/* ============================================================
   Reset + page chrome
   ============================================================ */

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

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--hb-font-sans);
  font-size: var(--hb-text-base);
  line-height: var(--hb-leading-normal);
  color: var(--hb-ink-7);
  background: var(--hb-ink-0);
  background-image: var(--hb-bg-mesh);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--hb-s-9) var(--hb-s-6);
}

a { color: var(--hb-accent); }
a:hover { color: var(--hb-accent-hover); }

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: var(--hb-tracking-snug);
  color: var(--hb-ink-7);
  margin: 0 0 var(--hb-s-3);
}

h1 { font-size: clamp(28px, 4vw, 44px); line-height: var(--hb-leading-tight); }
h2 { font-size: clamp(22px, 2.5vw, 30px); line-height: var(--hb-leading-snug); }
h3 { font-size: var(--hb-text-lg); line-height: var(--hb-leading-snug); }

.eyebrow {
  font-family: var(--hb-font-mono);
  font-size: var(--hb-text-xs);
  font-weight: 500;
  letter-spacing: var(--hb-tracking-wide);
  text-transform: uppercase;
  color: var(--hb-ink-5);
  margin: 0 0 var(--hb-s-3);
}

.lede {
  font-size: var(--hb-text-lg);
  color: var(--hb-ink-6);
  max-width: 60ch;
  margin: 0 0 var(--hb-s-6);
}

/* ============================================================
   Header / Footer
   ============================================================ */

.site-header {
  display: flex;
  align-items: center;
  gap: var(--hb-s-6);
  padding: var(--hb-s-4) var(--hb-s-6);
  border-bottom: 1px solid var(--hb-line);
  background: var(--hb-glass-bg);
  backdrop-filter: blur(var(--hb-blur-2)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--hb-blur-2)) saturate(140%);
  position: sticky;
  top: 0;
  z-index: var(--hb-z-sticky);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--hb-s-2);
  font-weight: 600;
  text-decoration: none;
  color: var(--hb-ink-7);
}

/* Brand mark (uikit/brand mono SVGs — the real square hex logo).
   The design system ships a light/dark pair; show the one matching
   the theme, same [data-theme] toggle as the .hb-theme-toggle
   icons. Square viewBox, so size by height with width auto. */
.brand-logo {
  display: block;
  height: 24px;
  width: auto;
}
.brand-logo--dark { display: none; }
[data-theme="dark"] .brand-logo--light { display: none; }
[data-theme="dark"] .brand-logo--dark { display: block; }

/* Wordmark next to the mark. Inherits weight/colour from .brand. */
.brand-text { font-size: var(--hb-text-base); }

.primary-nav {
  display: flex;
  gap: var(--hb-s-6);
  margin-left: auto;
  font-size: var(--hb-text-md);
}

.primary-nav a {
  color: var(--hb-ink-6);
  text-decoration: none;
  padding: var(--hb-s-1) 0;
  border-bottom: 1px solid transparent;
}

.primary-nav a:hover { color: var(--hb-ink-7); }
.primary-nav a[aria-current="page"] { color: var(--hb-ink-7); border-bottom-color: var(--hb-accent); }
.primary-nav .nav-cloud {
  color: var(--hb-accent);
  font-weight: 500;
}

.lang-switch {
  display: flex;
  gap: var(--hb-s-1);
  font-size: var(--hb-text-xs);
  font-family: var(--hb-font-mono);
  text-transform: uppercase;
}

.lang-switch a {
  color: var(--hb-ink-5);
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--hb-r-sm);
}

.lang-switch a[aria-current="true"] {
  color: var(--hb-ink-7);
  background: var(--hb-ink-2);
}

.site-footer {
  padding: var(--hb-s-8) var(--hb-s-6) var(--hb-s-6);
  border-top: 1px solid var(--hb-line);
  font-size: var(--hb-text-sm);
  color: var(--hb-ink-5);
  background: var(--hb-glass-bg-soft);
}

.site-footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--hb-s-6);
  max-width: 1200px;
  margin: 0 auto var(--hb-s-8);
  text-align: left;
}

.site-footer__col h4 {
  margin: 0 0 var(--hb-s-3);
  font-family: var(--hb-font-mono);
  font-size: var(--hb-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--hb-tracking-mono);
  color: var(--hb-ink-6);
}

.site-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--hb-s-2);
}

.site-footer__col a {
  color: var(--hb-ink-5);
  text-decoration: none;
  font-size: var(--hb-text-sm);
  transition: color var(--hb-dur-2) var(--hb-ease-standard);
}

.site-footer__col a:hover {
  color: var(--hb-ink-7);
}

.site-footer__brand .brand {
  display: inline-flex;
  align-items: center;
  gap: var(--hb-s-2);
  color: var(--hb-ink-7);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: var(--hb-s-3);
}

.site-footer__brand-lede {
  margin: 0;
  font-size: var(--hb-text-xs);
  color: var(--hb-ink-5);
  max-width: 320px;
  line-height: var(--hb-leading-normal);
}

.site-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: var(--hb-s-5);
  border-top: 1px solid var(--hb-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--hb-s-3);
}

.site-footer__tagline {
  margin: 0;
  font-family: var(--hb-font-mono);
  font-size: var(--hb-text-xs);
  color: var(--hb-ink-5);
  letter-spacing: var(--hb-tracking-mono);
}

.site-footer__copy {
  margin: 0;
  font-size: var(--hb-text-xs);
  color: var(--hb-ink-4);
}

@media (max-width: 900px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: var(--hb-s-5);
  }
  .site-footer__bottom {
    justify-content: center;
    text-align: center;
  }
}

/* Landing CTAs use the shared uikit .hb-btn / .hb-btn--primary /
   .hb-btn--ghost (loaded via uikit components.css) instead of a
   service-local button. The old .cta was an oversized,
   card-elevation reimplementation that drifted from the design
   system; .hb-btn is the single source of truth (fixed 36px,
   dark-aware) so the landing tracks the system automatically. */

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding: var(--hb-s-10) 0 var(--hb-s-9);
  text-align: left;
  max-width: 760px;
}

.hero-ctas {
  display: flex;
  gap: var(--hb-s-3);
  flex-wrap: wrap;
  margin-top: var(--hb-s-6);
}

.section-head {
  margin-bottom: var(--hb-s-6);
  max-width: 60ch;
}

.section-head h2 { margin-top: 0; }

/* ============================================================
   Featured grid
   ============================================================ */

.featured { margin-top: var(--hb-s-7); }

.featured-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  /* Same cascade as .project-grid: 1 → 2 → 3 cols. */
  grid-template-columns: 1fr;
  gap: var(--hb-s-4);
}

.featured-cta {
  margin-top: var(--hb-s-6);
  text-align: right;
}

/* ============================================================
   Cloud spotlight
   ============================================================ */

/* Plain section — no wrapping card. The individual .cloud-feature
   tiles are the only cards here; the section itself is just the
   page flow (vertical rhythm only, full content width). */
.cloud-spotlight {
  margin-top: var(--hb-s-10);
  padding: var(--hb-s-9) 0;
}

.cloud-spotlight__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--hb-s-9);
  align-items: center;
}

.cloud-spotlight h2 { margin-bottom: var(--hb-s-3); }

/* Feature grid for the Cloud section. 8 features as scannable
   cards (icon tile + short title + supporting line) instead of a
   dense single-column bullet list. Icon-tile idiom mirrors the
   design system's .hb-alert__icon (tinted soft square + accent
   glyph); every value is a token so it flips in dark. */
.cloud-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--hb-s-6);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--hb-s-3);
}

.cloud-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--hb-s-3);
  padding: var(--hb-s-4);
  border-radius: var(--hb-r-lg);
  background: var(--hb-glass-bg-soft);
  border: 1px solid var(--hb-glass-stroke);
}

.cloud-feature__ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--hb-r-md);
  background: var(--hb-accent-soft);
  color: var(--hb-accent);
}

.cloud-feature__title {
  margin: 0 0 var(--hb-s-1);
  font-size: var(--hb-text-base);
  font-weight: 600;
  color: var(--hb-ink-7);
}

.cloud-feature__desc {
  margin: 0;
  font-size: var(--hb-text-sm);
  line-height: var(--hb-leading-normal);
  color: var(--hb-ink-5);
}

.cloud-ctas {
  display: flex;
  gap: var(--hb-s-3);
  flex-wrap: wrap;
}

.cloud-spotlight__chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--hb-s-2);
  padding: var(--hb-s-6);
  border-radius: var(--hb-r-lg);
  /* Glass tokens (flip light/dark); were fixed white. */
  background: var(--hb-glass-bg-strong);
  border: 1px solid var(--hb-glass-border);
  box-shadow: var(--hb-shadow-md);
  font-family: var(--hb-font-mono);
}

.chip-label {
  font-size: var(--hb-text-xs);
  text-transform: uppercase;
  letter-spacing: var(--hb-tracking-wide);
  color: var(--hb-ink-5);
}

.chip-host {
  font-size: var(--hb-text-2xl);
  font-weight: 600;
  color: var(--hb-ink-7);
}

/* ============================================================
   Projects page — filter strip + grid
   ============================================================ */

.projects-page { padding-bottom: var(--hb-s-10); }
.projects-header { max-width: 70ch; margin-bottom: var(--hb-s-6); }

.filter-strip {
  display: flex;
  gap: var(--hb-s-2);
  flex-wrap: wrap;
  margin: var(--hb-s-6) 0;
  padding: var(--hb-s-2);
  border-radius: var(--hb-r-lg);
  background: var(--hb-glass-bg);
  border: 1px solid var(--hb-line);
  backdrop-filter: blur(var(--hb-blur-2));
}

.filter-chip {
  padding: 6px 14px;
  border-radius: var(--hb-r-full);
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--hb-font-sans);
  font-size: var(--hb-text-sm);
  font-weight: 500;
  color: var(--hb-ink-6);
  cursor: pointer;
  transition: background var(--hb-dur-2) var(--hb-ease-standard),
              color var(--hb-dur-2) var(--hb-ease-standard);
}

.filter-chip:hover { color: var(--hb-ink-7); background: var(--hb-ink-1); }

.filter-chip.is-active {
  background: var(--hb-ink-7);
  color: var(--hb-ink-0);
}

/* ============================================================
   Project cards (shared by home + projects page)
   ============================================================ */

.project-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  /* 1 col mobile → 2 col small tablet (≥600px) → 3 col larger
     (≥900px). Capped at 3 by design — cards stay legible at
     ~290px+ each instead of collapsing to 4-col strips on wide
     monitors. The breakpoints overrides live further down so the
     base rule is the mobile-first baseline. */
  grid-template-columns: 1fr;
  gap: var(--hb-s-4);
}

.project-card {
  /* Glass surface via uikit tokens — flips light/dark automatically
     (--hb-glass-bg-strong: light oklch(1 0 0 /.72) ≈ the old fixed
     white, dark oklch(0.22 .014 250 /.78)). Same recipe as
     .site-header. Was a hardcoded oklch(1 0 0 /.7): no dark variant,
     no glass. */
  background: var(--hb-glass-bg-strong);
  backdrop-filter: blur(var(--hb-blur-2)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--hb-blur-2)) saturate(140%);
  border: 1px solid var(--hb-glass-stroke);
  border-radius: var(--hb-r-lg);
  padding: var(--hb-s-6);
  box-shadow: var(--hb-shadow-glass);
  transition: transform var(--hb-dur-3) var(--hb-ease-standard),
              box-shadow var(--hb-dur-3) var(--hb-ease-standard),
              border-color var(--hb-dur-3) var(--hb-ease-standard);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.project-card > article {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--hb-shadow-md);
  border-color: var(--hb-line-strong);
}

.project-card.is-hidden { display: none; }

.project-card__icons {
  display: inline-flex;
  gap: 4px;
  flex-shrink: 0;
}

.project-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: var(--hb-r-sm);
  color: var(--hb-ink-5);
  text-decoration: none;
  transition: background var(--hb-dur-2) var(--hb-ease-standard),
              color var(--hb-dur-2) var(--hb-ease-standard);
}

.project-card__icon:hover {
  color: var(--hb-accent);
  background: var(--hb-ink-1);
}

.project-card__icon svg {
  width: 14px;
  height: 14px;
}

.project-card__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--hb-s-3);
  align-items: center;
  margin-bottom: var(--hb-s-3);
}

.project-card__logo {
  width: 44px;
  height: 44px;
  border-radius: var(--hb-r-md);
  background: var(--hb-ink-1);
  border: 1px solid var(--hb-line);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  align-self: center;
}

/* When the slot has an actual image we drop the placeholder
   surface (gray fill + border) so the logo sits on its own — the
   tile background is only meant to host the initials fallback. */
.project-card__logo:has(img) {
  background: transparent;
  border: 0;
}

.project-card__logo img {
  width: 100%;
  height: 100%;
  /* `contain` preserves the full logo (vector or raster). `cover`
     would crop the edges when aspect ratios don't match the 44×44
     slot — almost never what a brand logo wants. */
  object-fit: contain;
}

.project-card__initials {
  font-family: var(--hb-font-mono);
  font-weight: 700;
  font-size: var(--hb-text-md);
  color: var(--hb-ink-6);
  letter-spacing: 0.02em;
}

.project-card__heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.project-card__title-row {
  display: flex;
  align-items: center;
  gap: var(--hb-s-2);
  flex-wrap: nowrap;
  min-width: 0;
}

/* Title shrinks (with ellipsis) so the badge always sits beside it
   on a single line, regardless of card width. min-width:0 is the
   flexbox-truncation incantation — without it the h2 refuses to
   shrink below its intrinsic content width. */
.project-card__title-row .project-card__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card__title-row .badge {
  flex-shrink: 0;
}

.project-card__name {
  margin: 0;
  font-size: var(--hb-text-lg);
  font-weight: 600;
  color: var(--hb-ink-7);
}

.project-card__name a {
  color: inherit;
  text-decoration: none;
}

.project-card__name a:hover { color: var(--hb-accent); }

.project-card__body {
  margin-bottom: var(--hb-s-4);
}

.project-card__tagline {
  margin: 0;
  font-size: var(--hb-text-md);
  color: var(--hb-ink-6);
  line-height: var(--hb-leading-normal);
}

.project-card__foot {
  margin-top: auto;
  padding-top: var(--hb-s-3);
  border-top: 1px solid var(--hb-line);
  display: flex;
  flex-direction: column;
  gap: var(--hb-s-2);
}

.project-card__meta {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hb-s-2);
  font-family: var(--hb-font-mono);
  font-size: var(--hb-text-xs);
  color: var(--hb-ink-5);
  text-transform: uppercase;
  letter-spacing: var(--hb-tracking-mono);
}

.project-card__meta-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.meta-sep { padding: 0 6px; opacity: 0.5; }

.project-card__stack {
  margin: 0;
  font-family: var(--hb-font-mono);
  font-size: var(--hb-text-sm);
  color: var(--hb-ink-5);
  font-feature-settings: "tnum";
}

.project-card__tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: var(--hb-text-xs);
  font-family: var(--hb-font-mono);
  color: var(--hb-ink-5);
  background: var(--hb-ink-1);
  border-radius: var(--hb-r-full);
  letter-spacing: var(--hb-tracking-mono);
}

/* ============================================================
   Status badges (landing-specific; shared .hb-badge in uikit
   has different base styling for app density)
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--hb-r-full);
  font-family: var(--hb-font-mono);
  font-size: var(--hb-text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--hb-tracking-wide);
  white-space: nowrap;
}

.badge--live    { background: var(--hb-success-soft); color: var(--hb-success); }
.badge--beta    { background: var(--hb-info-soft);    color: var(--hb-info); }
.badge--building{ background: var(--hb-warning-soft); color: oklch(0.45 0.10 75); }
.badge--idea    { background: var(--hb-ink-2);        color: var(--hb-ink-5); }
.badge--sunset  { background: var(--hb-ink-2);        color: var(--hb-ink-4); }
/* --building keeps a darkened amber for contrast on the light
   warning-soft; in dark, warning-soft flips dark so the text must
   lighten too. Same value uikit uses for dark warning text. */
[data-theme="dark"] .badge--building { color: oklch(0.85 0.14 75); }

/* ============================================================
   Misc
   ============================================================ */

.back-link {
  margin-top: var(--hb-s-9);
  font-size: var(--hb-text-md);
}

.back-link a {
  text-decoration: none;
  color: var(--hb-ink-5);
}

.back-link a:hover { color: var(--hb-ink-7); }

.page-about, .page-angebot {
  max-width: 70ch;
  padding: var(--hb-s-7) 0;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
    gap: var(--hb-s-3);
    padding: var(--hb-s-3) var(--hb-s-4);
  }
  /* Row 1: brand left, then the lang + toggle cluster glued to the
     right edge (toggle rightmost). Row 2: nav wraps full-width.
     margin-left:auto on the first cluster item pushes both right. */
  .primary-nav { gap: var(--hb-s-3); width: 100%; order: 3; margin: 0; }
  .lang-switch { order: 1; margin-left: auto; }
  .hb-theme-toggle { order: 2; }
  main { padding: var(--hb-s-6) var(--hb-s-4); }
  .hero { padding: var(--hb-s-7) 0 var(--hb-s-6); }
  .cloud-spotlight { padding: var(--hb-s-7) 0; }
  .cloud-spotlight__inner {
    grid-template-columns: 1fr;
    gap: var(--hb-s-6);
  }
  .cloud-spotlight__chip { width: 100%; }
  .cloud-features { grid-template-columns: 1fr; }

  /* Body type scales down a notch — the design's --hb-text-* tokens
     are px-fixed (not rem), so we touch the consumers directly
     rather than scaling the root. The clamp() heading sizes shrink
     on their own via the vw lower bound. */
  body { font-size: var(--hb-text-md); }
  .lede { font-size: var(--hb-text-base); }
  .section-head h2 { font-size: clamp(20px, 5vw, 26px); }
  .featured h2,
  .projects-page h1 { font-size: clamp(22px, 6vw, 30px); }
}

/* Small tablet (~iPad mini portrait, narrow laptops): two cards
   per row. Card-internal typography stays at desktop sizes —
   each card is still ~290px+ wide, plenty of room. */
@media (min-width: 600px) {
  .project-grid,
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop and larger: three cards per row, capped here. Going to
   four would shrink each card below the readable threshold the
   design assumes. */
@media (min-width: 900px) {
  .project-grid,
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   Globe band — animated connections globe (canvas, JS-driven)
   ============================================================ */
.globe-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--hb-s-9);
  align-items: center;
  padding: var(--hb-s-10) 0;
}
.globe-band__copy { max-width: 46ch; }
.globe-band h2 { margin: var(--hb-s-2) 0 var(--hb-s-3); }
.globe-band__stage { display: grid; place-items: center; }
.globe-band__canvas {
  width: min(440px, 82vw);
  aspect-ratio: 1 / 1;
  display: block;
}
@media (max-width: 760px) {
  .globe-band {
    grid-template-columns: 1fr;
    gap: var(--hb-s-6);
    text-align: center;
    padding: var(--hb-s-8) 0;
  }
  .globe-band__copy { max-width: none; }
}

/* ============================================================
   Tech strip — infinite right→left marquee. Items fade in/out at
   the edges via a mask gradient (opacity ramp). The .tech-track is
   doubled at runtime (landing.js) so translateX(-50%) loops
   seamlessly. Same on mobile and desktop.
   ============================================================ */
.tech-strip {
  padding: var(--hb-s-9) 0 var(--hb-s-10);
  text-align: center;
}
.tech-strip__title { margin: 0 0 var(--hb-s-2); }
.tech-strip__sub { color: var(--hb-ink-5); margin: 0 0 var(--hb-s-7); }
.tech-marquee {
  position: relative;
  overflow: hidden;
}
/* Edge fade via overlay gradients (NOT mask-image: on iOS Safari a
   mask over animated/large content composites to a blank layer —
   that's why the strip vanished on mobile). Fades to the page ink. */
.tech-marquee::before,
.tech-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12%;
  z-index: 2;
  pointer-events: none;
}
.tech-marquee::before { left: 0;  background: linear-gradient(to right, var(--hb-ink-0), transparent); }
.tech-marquee::after  { right: 0; background: linear-gradient(to left,  var(--hb-ink-0), transparent); }
.tech-track {
  display: flex;
  align-items: flex-start;
  gap: var(--hb-s-8);
  width: max-content;
  list-style: none;
  margin: 0;
  padding: var(--hb-s-2) 0;
  animation: tech-scroll 70s linear infinite;
  /* GPU-composite the track so the wide layer rasterises
     consistently on mobile (translate3d in the keyframes). */
  will-change: transform;
  backface-visibility: hidden;
}
.tech-marquee:hover .tech-track { animation-play-state: paused; }
@keyframes tech-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 72px;
  color: var(--hb-ink-5);
  transition: color var(--hb-dur-2) var(--hb-ease-standard);
}
.tech-item:hover { color: var(--hb-ink-7); }
.tech-item__ico { display: grid; place-items: center; height: 28px; }
.tech-item__ico svg { display: block; }
.tech-item__ico img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
  /* Brand SVGs ship in their own colours; <img> can't be recoloured
     via currentColor. brightness(0) collapses any logo to a flat
     silhouette (alpha kept), opacity() tones it to grey. Dark adds
     invert(1) → light silhouette. Result: every logo is one
     theme-adaptive ink, matching the concept glyphs. */
  filter: brightness(0) opacity(0.5);
  transition: filter var(--hb-dur-2) var(--hb-ease-standard);
}
.tech-item:hover .tech-item__ico img { filter: brightness(0) opacity(0.85); }
[data-theme="dark"] .tech-item__ico img { filter: brightness(0) invert(1) opacity(0.62); }
[data-theme="dark"] .tech-item:hover .tech-item__ico img { filter: brightness(0) invert(1) opacity(0.95); }
.tech-item__name {
  font-size: var(--hb-text-xs);
  font-family: var(--hb-font-mono);
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .tech-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto;
  }
  .tech-marquee::before, .tech-marquee::after { display: none; }
}

/* Mobile: shrink the row so the doubled track is a smaller
   composited layer (extra safety against the mobile-GPU layer
   limit that can blank a very wide animated element). */
@media (max-width: 760px) {
  .tech-track { gap: var(--hb-s-6); }
  .tech-item { min-width: 56px; }
  .tech-item__name { font-size: 11px; }
}
