/* Header, hero, marquee, services */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(15,22,21,.78);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--ds-line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 14px 32px; padding-block: 14px; }
.brand { display: flex; flex: none; align-items: center; gap: 12px; color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.brand:hover { color: #fff; }
.brand img { width: 34px; height: 34px; border-radius: 50%; background: #fff; }
.brand b { color: var(--ds-sage); font-weight: 600; }
.nav { display: flex; gap: 2px; padding: 4px; background: var(--ds-surface-2); border: 1px solid #222e2b; border-radius: var(--ds-r-pill); font-size: 14px; }
.nav a { padding: 7px 14px; border-radius: var(--ds-r-pill); color: var(--ds-ink-2); white-space: nowrap; }
.nav a:hover, .nav a[aria-current="true"] { background: var(--ds-line); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { white-space: nowrap; }
.lang { display: flex; gap: 2px; font: 500 11px/1 var(--ds-font-mono); letter-spacing: .08em; }
.lang a { height: 30px; padding: 0 9px; display: flex; align-items: center; border-radius: var(--ds-r-sm); color: var(--ds-ink-muted); }
.lang a:hover { color: #fff; }
.lang a[aria-current="true"] { background: var(--ds-line); color: #fff; }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: #fff;
  background: var(--ds-surface-2); border: 1px solid var(--ds-line-2); border-radius: 50%; cursor: pointer; }
.menu-toggle[aria-expanded="true"] .i-menu { --i: url(../icons/ds-close.svg); }
/* Compact band just above the collapse point so longer (ES) labels still fit on one row */
@media (min-width: 961px) and (max-width: 1100px) {
  .site-header__inner { column-gap: 16px; }
  .nav { font-size: 13.5px; }
  .nav a { padding-inline: 8px; }
  .header-actions { gap: 6px; }
  .header-actions .btn { padding-inline: 12px; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: var(--ds-gutter); right: var(--ds-gutter); top: calc(100% + 8px);
    flex-direction: column; padding: 8px; border-radius: var(--ds-r-lg); font-size: 16px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .header-actions .btn { display: none; }
}

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(640px circle at var(--mx, 72%) var(--my, 38%), rgba(158,186,160,.13), transparent 62%); }
.hero__grid-bg { position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--ds-ghost) 1px, transparent 1px), linear-gradient(90deg, var(--ds-ghost) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%); }
.hero__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 64px; align-items: center; padding-block: 96px 88px; }
.hero__copy { display: flex; flex-direction: column; gap: 30px; }
.pill-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px;
  background: var(--ds-surface-2); border: 1px solid #243230; border-radius: var(--ds-r-pill);
  font: 500 11px/1 var(--ds-font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ds-ink-2); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ds-sage); animation: ds-pulse 1.8s ease-out infinite; }
.hero h1 { font-size: var(--ds-fs-display); font-weight: 600; letter-spacing: -.05em; line-height: .92; }
.hero h1 .serif { letter-spacing: -.02em; }
.hero__lead { max-width: 520px; font-size: 18.5px; line-height: 1.6; color: var(--ds-ink-3); text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Terminal window */
.term-wrap { position: relative; }
.term-wrap::before { content: ""; position: absolute; inset: 8% -6% -8% 10%; z-index: -1;
  background: radial-gradient(closest-side, rgba(98,124,131,.45), transparent); filter: blur(30px); }
.term { background: var(--ds-surface); border: 1px solid var(--ds-line-2); border-radius: var(--ds-r-lg); overflow: hidden; box-shadow: var(--ds-shadow-window); }
.term__bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--ds-surface-2); border-bottom: 1px solid var(--ds-line); }
.term__lights { display: flex; gap: 7px; }
.term__lights i { width: 11px; height: 11px; border-radius: 50%; }
.term__lights i:nth-child(1) { background: var(--ds-clay); }
.term__lights i:nth-child(2) { background: var(--ds-ochre); }
.term__lights i:nth-child(3) { background: var(--ds-sage); }
.term__tabs { display: flex; gap: 4px; font: 400 11.5px/1 var(--ds-font-mono); }
.term__tabs span { padding: 4px 10px; color: var(--ds-ink-muted); border-radius: 6px; }
.term__tabs span.is-active { background: var(--ds-bg); color: var(--ds-ink); }
.term__body { min-height: 340px; padding: 22px 22px 26px; font: 400 13.5px/1.85 var(--ds-font-mono); }
.term__line { display: flex; gap: 10px; white-space: pre-wrap; }
.term__line > b { flex: none; width: 14px; font-weight: 400; }
.term__line.is-cmd  > b { color: var(--ds-sage); }
.term__line.is-info > b, .term__line.is-info > span { color: var(--ds-ink-muted); }
.term__line.is-ok   > b { color: var(--ds-sage); }
.term__line.is-live > b, .term__line.is-live > span { color: var(--ds-ochre); }
.term__caret { width: 9px; height: 18px; margin-top: 4px; background: var(--ds-sage); animation: ds-blink 1s steps(1) infinite; }
.term__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--ds-line);
  font: 400 11px/1.4 var(--ds-font-mono); color: var(--ds-ink-muted); }

/* Marquee */
.marquee { overflow: hidden; background: var(--ds-bg-deep); border-block: 1px solid var(--ds-line); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__item { display: flex; align-items: center; gap: 28px; padding: 22px 0 22px 28px; font-size: 22px; font-weight: 500; letter-spacing: -.01em; color: var(--ds-ink-marquee); white-space: nowrap; }
.marquee__item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ds-line-3); }

/* Services explorer */
.services-title { font-size: var(--ds-fs-h2-svc); font-weight: 600; letter-spacing: -.045em; line-height: .98; text-wrap: balance; }
.svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 20px; }
.svc__tabs { display: flex; flex-direction: column; gap: 2px; }
.svc__tab { position: relative; display: flex; align-items: center; gap: 18px; padding: 20px 22px; text-align: left;
  font: inherit; color: var(--ds-ink-muted); background: transparent; border: 0; border-radius: var(--ds-r-md); cursor: pointer;
  transition: background 200ms ease, color 200ms ease; }
.svc__tab::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: transparent; }
.svc__tab[aria-selected="true"] { background: var(--ds-surface-3); color: #fff; }
.svc__tab[aria-selected="true"]::before { background: var(--ds-sage); }
.svc__tab:hover { color: #fff; }
.svc__num { font: 400 12px/1 var(--ds-font-mono); letter-spacing: .06em; color: var(--ds-slate-num); }
.svc__name { flex: 1; font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.02em; }
.svc__panel { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 22px; min-height: 460px;
  padding: clamp(28px, 3.4vw, 48px); background: linear-gradient(160deg, var(--ds-surface-3) 0%, var(--ds-surface) 60%);
  border: 1px solid var(--ds-line-2); border-radius: var(--ds-r-2xl); }
.svc__panel > * { position: relative; }
.svc__ghost { position: absolute !important; right: -10px; bottom: -60px; font-size: 280px; font-weight: 700; letter-spacing: -.06em; line-height: 1; color: var(--ds-ghost); pointer-events: none; }
.svc__lede { font-family: var(--ds-font-serif); font-style: italic; font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -.01em; color: #fff; }
.svc__body { max-width: 520px; font-size: 16.5px; line-height: 1.65; color: var(--ds-ink-2); text-wrap: pretty; }
.svc__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.svc__foot { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--ds-line-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.svc__out { display: flex; flex-direction: column; gap: 4px; font-size: 15.5px; font-weight: 500; color: #fff; }
.svc__more { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding-bottom: 4px; font-size: 15px; font-weight: 500; color: var(--ds-ink); border-bottom: 1px solid var(--ds-line-3); transition: color var(--ds-fast) ease, border-color var(--ds-fast) ease; }
.svc__more:hover { color: var(--ds-sage); border-color: var(--ds-sage); }
.svc__panel.is-swapping > :not(.svc__ghost) { animation: svc-in 380ms var(--ds-ease) both; }
@keyframes svc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
