/* ============================================================
   Azure Update Briefings — static showcase
   Dark cinematic editorial. Vanilla CSS, no build step.
   ============================================================ */

:root {
  /* cool near-black canvas */
  --bg:        oklch(0.165 0.014 255);
  --bg-2:      oklch(0.195 0.016 255);
  --surface:   oklch(0.215 0.017 255);
  --surface-2: oklch(0.255 0.019 255);
  --line:      oklch(0.34 0.02 255 / 0.55);
  --line-soft: oklch(0.34 0.02 255 / 0.28);

  --text:   oklch(0.96 0.004 255);
  --muted:  oklch(0.74 0.012 255);
  --faint:  oklch(0.6 0.013 255);

  /* one confident azure accent + a teal partner, same L/C, varied hue */
  --accent:      oklch(0.74 0.142 245);
  --accent-deep: oklch(0.6 0.14 248);
  --teal:        oklch(0.78 0.11 195);
  --violet:      oklch(0.72 0.12 290);
  --accent-glow: oklch(0.74 0.142 245 / 0.16);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;

  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: oklch(0.74 0.142 245 / 0.18);
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent-glow); color: var(--text); }

.shell {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  padding-left: max(28px, env(safe-area-inset-left));
  padding-right: max(28px, env(safe-area-inset-right));
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: oklch(0.18 0.02 255);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------- Top bar ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: oklch(0.165 0.014 255 / 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line-soft);
}
.topbar__inner {
  display: flex; align-items: center; gap: 22px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand__mark {
  width: 60px; height: 60px;
  object-fit: contain;
  display: block;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  letter-spacing: -0.01em;
}
.brand__sub {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint);
}

.topbar__link {
  flex: 0 0 auto;
  font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: 0.02em; color: var(--muted);
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid oklch(0.52 0.06 248 / 0.9);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.brand + .topbar__link { margin-left: auto; }
.topbar__link:hover { color: var(--text); border-color: var(--accent); background: var(--bg-2); }

.topbar__app {
  flex: 0 0 auto;
  font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: 0.02em; color: var(--bg);
  padding: 9px 14px; border: 1px solid var(--accent); border-radius: 999px;
  background: var(--accent); font-weight: 600;
  transition: filter 0.2s, box-shadow 0.2s;
}
.topbar__app:hover { filter: brightness(1.08); box-shadow: 0 6px 20px -8px var(--accent); }

.topbar__menu {
  display: none; width: 40px; height: 40px; flex: none;
  place-items: center; border-radius: 50%;
  background: transparent; color: var(--text); cursor: pointer;
  border: 1px solid oklch(0.52 0.06 248 / 0.9);
  transition: border-color 0.2s, background 0.2s;
}
.topbar__menu:hover { border-color: var(--accent); background: var(--bg-2); }
.topbar__menu svg { width: 18px; height: 18px; }

.topbar__icon {
  display: grid; width: 40px; height: 40px; flex: none;
  place-items: center; border-radius: 50%;
  color: var(--muted);
  border: 1px solid oklch(0.52 0.06 248 / 0.9);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.topbar__icon:hover { color: var(--text); border-color: var(--accent); background: var(--bg-2); }
.topbar__icon svg { width: 17px; height: 17px; }

/* ---------------- Mobile nav drawer ---------------- */
.drawer { position: fixed; inset: 0; z-index: 80; }
.drawer[hidden] { display: none; }
.drawer__scrim {
  position: absolute; inset: 0;
  background: oklch(0.1 0.01 255 / 0.62);
  backdrop-filter: blur(4px);
  animation: fade 0.25s var(--ease);
}
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(300px, 84vw);
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  padding: calc(16px + env(safe-area-inset-top)) 20px calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: -30px 0 80px -20px oklch(0 0 0 / 0.6);
  animation: drawer-in 0.32s var(--ease);
}
@keyframes drawer-in { from { transform: translateX(100%); } }
.drawer__close {
  align-self: flex-end; width: 40px; height: 40px; margin-bottom: 12px;
  display: grid; place-items: center; border-radius: 50%;
  color: var(--text); background: transparent; border: 1px solid var(--line);
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.drawer__close:hover { border-color: var(--accent); background: var(--surface); }
.drawer__close svg { width: 16px; height: 16px; }
.drawer__link {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.02em;
  color: var(--text); padding: 14px 12px; border-radius: var(--r-sm);
  transition: background 0.18s, color 0.18s;
}
.drawer__link:hover { background: var(--surface); color: var(--accent); }
.drawer__link--app {
  margin-top: 16px; text-align: center; font-weight: 600;
  background: var(--accent); color: oklch(0.16 0.02 255);
  border-radius: 999px;
}
.drawer__link--app:hover { background: var(--accent-deep); color: oklch(0.16 0.02 255); }

/* ---------------- Mobile filter bottom sheet ---------------- */
/* Phones route the Products / Status / Sort buttons here instead of the
   anchored dropdown panels (see app.js openSheet). The active dropdown's
   existing options panel is moved into .sheet__body, so state stays shared. */
.sheet { position: fixed; inset: 0; z-index: 85; }
.sheet[hidden] { display: none; }
.sheet__scrim {
  position: absolute; inset: 0;
  background: oklch(0.1 0.01 255 / 0.62);
  backdrop-filter: blur(4px);
  animation: fade 0.25s var(--ease);
}
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  max-height: 82vh; max-height: 82dvh;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: 0 -30px 80px -20px oklch(0 0 0 / 0.6);
  animation: sheet-in 0.34s var(--ease);
}
@keyframes sheet-in { from { transform: translateY(100%); } }
.sheet__handle {
  display: grid; place-items: center;
  width: 100%; height: 24px; flex: none; margin: 0; padding: 8px 0 0;
  border: none; background: transparent; cursor: pointer;
}
.sheet__handle::before {
  content: ""; width: 42px; height: 4px; border-radius: 999px;
  background: var(--line);
}
.sheet__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 8px 20px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.sheet__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 18px; letter-spacing: -0.02em; margin: 0;
}
.sheet__close {
  flex: none; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; color: var(--text); background: transparent;
  border: 1px solid var(--line); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.sheet__close:hover { border-color: var(--accent); background: var(--surface); }
.sheet__close svg { width: 15px; height: 15px; }
.sheet__body {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 10px 14px;
}
/* the relocated dropdown panel renders as a plain full-width list here */
#sheet-body .dropdown__panel {
  position: static; inset: auto;
  width: 100%; min-width: 0; max-width: none; max-height: none;
  overflow: visible; padding: 0;
  background: transparent; border: none; box-shadow: none;
}
.sheet .opt { padding: 13px 12px; font-size: 15px; }
.sheet .opt input[type="checkbox"] { width: 18px; height: 18px; }
.sheet__foot {
  flex: none; padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-soft);
}
.sheet__apply {
  width: 100%; font-family: var(--font-sans); font-size: 15px; font-weight: 600;
  color: oklch(0.16 0.02 255); background: var(--accent);
  border: none; border-radius: 999px; padding: 14px; cursor: pointer;
  transition: background 0.18s;
}
.sheet__apply:hover { background: var(--accent-deep); }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 92px 0 0; overflow: hidden; }

/* aurora: three soft blobs in the house L/C band, drifting slowly */
.hero::before {
  content: ""; position: absolute; inset: -22% -12%;
  pointer-events: none;
  background:
    radial-gradient(46% 42% at 16% 20%, oklch(0.74 0.142 245 / 0.22), transparent 68%),
    radial-gradient(40% 38% at 80% 10%, oklch(0.78 0.11 195 / 0.14), transparent 70%),
    radial-gradient(38% 42% at 56% 60%, oklch(0.72 0.12 290 / 0.12), transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 96%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 96%);
  animation: aurora-drift 45s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes aurora-drift {
  from { transform: translate3d(-2%, -1.5%, 0) rotate(-1.5deg) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) rotate(1.5deg) scale(1.06); }
}

/* faint dot-grid so the glow reads as texture, not airbrush */
.hero::after {
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(oklch(0.62 0.03 250 / 0.5) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  opacity: 0.3;
}

.hero__inner { position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--accent);
  margin: 0 0 26px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before {
  content: ""; width: 30px; height: 1px; background: var(--accent); opacity: 0.6;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 7.2vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 30px;
  max-width: 16ch;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic; font-weight: 600;
  color: transparent;
  background: linear-gradient(94deg, var(--teal), var(--accent) 55%, var(--accent-deep));
  -webkit-background-clip: text; background-clip: text;
}
.hero__lede {
  font-size: clamp(16px, 1.7vw, 19px); color: var(--muted);
  max-width: 56ch; margin: 0 0 44px; line-height: 1.62;
  text-wrap: pretty;
}
.hero__stats {
  display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 70px;
  border: 1px solid var(--line-soft); border-radius: var(--r);
  background: oklch(0.2 0.016 255 / 0.5);
  overflow: hidden; width: fit-content; max-width: 100%;
}
.stat {
  padding: 18px 32px 16px; min-width: 150px;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: 0; }
.stat dt {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 6px;
}
.stat dd {
  margin: 0; font-family: var(--font-display); font-weight: 600;
  font-size: 26px; letter-spacing: -0.02em; color: var(--text);
}
.hero__rule {
  height: 1px; max-width: var(--maxw); margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

/* Glowing brand mark — desktop only; fills the space right of the title */
.hero__mark { display: none; }

@media (min-width: 1024px) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 320px);
    gap: 56px;
    align-items: center;
  }
  .hero__mark {
    display: grid;
    place-items: center;
    position: relative;
    /* nudge the mark toward the right edge, off the column center */
    transform: translateX(30px);
  }
  /* ambient halo behind the cloud, breathing slowly — it's a pulse */
  .hero__mark::before {
    content: ""; position: absolute; inset: -16%;
    pointer-events: none;
    background:
      radial-gradient(50% 50% at 50% 50%, oklch(0.97 0.01 245 / 0.13), transparent 62%),
      radial-gradient(62% 62% at 50% 56%, oklch(0.74 0.142 245 / 0.18), transparent 72%);
    animation: mark-breathe 5.5s ease-in-out infinite alternate;
  }
  .hero__mark-img {
    position: relative;
    width: min(100%, 300px); height: auto;
    /* tight white rim traced along the cloud's alpha, then a wide azure bloom */
    filter:
      drop-shadow(0 0 14px oklch(0.99 0 0 / 0.42))
      drop-shadow(0 0 48px oklch(0.8 0.1 245 / 0.42));
    animation: mark-float 7s ease-in-out infinite alternate;
  }
  @keyframes mark-breathe {
    from { opacity: 0.65; transform: scale(0.96); }
    to   { opacity: 1;    transform: scale(1.05); }
  }
  @keyframes mark-float {
    from { transform: translateY(7px); }
    to   { transform: translateY(-7px); }
  }
}


/* ---------------- Catalog ---------------- */
.catalog { padding: 64px 0 96px; }
.catalog__head {
  display: block; margin-bottom: 36px;
}
.catalog__head .section-title { margin-bottom: 22px; }
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.025em; margin: 0;
}

/* ---- Azure-style search / filter / sort toolbar ---- */
.toolbar { display: flex; flex-direction: column; gap: 16px; }

.toolbar__search {
  display: flex; align-items: center; gap: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 0 0 0 14px; max-width: 620px;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.toolbar__search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.toolbar__search-icon { width: 18px; height: 18px; fill: var(--faint); flex: none; }
.toolbar__search input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: var(--text); font-family: var(--font-sans); font-size: 15px;
  padding: 13px 12px;
}
.toolbar__search input::placeholder { color: var(--faint); }
.toolbar__search-btn {
  font-family: var(--font-sans); font-size: 14px; font-weight: 600;
  color: oklch(0.16 0.02 255); background: var(--accent); border: none;
  padding: 0 20px; align-self: stretch; cursor: pointer;
  border-radius: 0 var(--r) var(--r) 0; transition: background 0.18s;
}
.toolbar__search-btn:hover { background: var(--accent-deep); }

.toolbar__controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
}
/* Result count + clear live on their own line so toggling "Clear filters"
   never reflows the Products / Status / Sort controls above. */
.toolbar__meta {
  display: flex; align-items: center; gap: 12px;
  min-height: 30px;
}
.toolbar__count {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--muted);
  letter-spacing: 0.01em;
}
.toolbar__clear { margin-left: auto; }
.toolbar__clear {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  background: transparent; border: none; cursor: pointer; padding: 6px 4px;
  text-decoration: underline; text-underline-offset: 3px;
}
.toolbar__clear:hover { color: var(--text); }

.dropdown { position: relative; }
.dropdown--sort { margin-left: auto; }
.dropdown__btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 13.5px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 14px; cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.dropdown__btn:hover { border-color: var(--faint); }
.dropdown__btn.is-active { border-color: var(--accent); color: var(--accent); }
.dropdown__btn-pre { color: var(--faint); }
.dropdown__chev { width: 14px; height: 14px; transition: transform 0.18s; }
.dropdown.is-open .dropdown__chev { transform: rotate(180deg); }

.dropdown__panel {
  position: absolute; z-index: 40; top: calc(100% + 8px); left: 0;
  min-width: 230px; max-height: 320px; overflow-y: auto;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 8px;
  box-shadow: 0 18px 44px oklch(0 0 0 / 0.45);
}
.dropdown--sort .dropdown__panel { left: auto; right: 0; min-width: 180px; }

.opt {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--r-sm); cursor: pointer;
  font-size: 14px; color: var(--text); width: 100%;
  background: transparent; border: none; text-align: left;
}
.opt:hover { background: var(--surface); }
.opt input[type="checkbox"] { accent-color: var(--accent); width: 15px; height: 15px; flex: none; }
.opt__name { flex: 1; }
.opt__count { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.opt--empty { color: var(--faint); cursor: default; }
.opt--empty:hover { background: transparent; }
.opt--sort[aria-pressed="true"] { color: var(--accent); font-weight: 600; }
.opt--sort[aria-pressed="true"]::after { content: "✓"; margin-left: auto; }


.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 26px;
}

/* ---------------- Card ---------------- */
.card {
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s var(--ease), border-color 0.3s, box-shadow 0.4s var(--ease);
  will-change: transform;
}
.card:active { transform: translateY(-2px) scale(0.995); }
@media (hover: hover) {
  .card:hover {
    transform: translateY(-5px);
    border-color: var(--line);
    box-shadow: 0 24px 60px -28px oklch(0 0 0 / 0.7), 0 0 0 1px var(--accent-glow);
  }
  .card:hover .card__play { transform: scale(1.08); background: var(--accent); }
  .card:hover .card__play svg { fill: oklch(0.16 0.02 255); }
  .card:hover .card__cta svg { transform: translate(2px, -2px); }
}
.card__media {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--bg);
}
/* striped placeholder that shows while metadata loads / mp4 absent */
.card__media::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      oklch(0.24 0.02 255) 0 2px, transparent 2px 11px),
    radial-gradient(120% 90% at 50% 0%, oklch(0.27 0.03 250), var(--bg));
}
.card__media video {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  background: transparent;
}
/* top scrim so the product badge always sits on something readable */
.card__media::after {
  content: ""; position: absolute; z-index: 2; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, oklch(0.1 0.01 255 / 0.45), transparent 30%);
}
.card__play {
  position: absolute; z-index: 3; inset: 0; margin: auto;
  width: 56px; height: 56px; pointer-events: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: oklch(0.16 0.02 255 / 0.55);
  border: 1px solid oklch(1 0 0 / 0.22);
  backdrop-filter: blur(6px);
  transition: transform 0.4s var(--ease), background 0.3s;
}
.card:active .card__play { transform: scale(1.06); background: var(--accent); }
.card__play svg { width: 20px; height: 20px; fill: var(--text); margin-left: 3px; }

.card__badge {
  position: absolute; z-index: 4; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em;
  color: var(--text);
  background: oklch(0.16 0.02 255 / 0.62);
  border: 1px solid color-mix(in oklab, var(--card-accent, var(--accent)) 45%, oklch(1 0 0 / 0.16));
  backdrop-filter: blur(8px);
  padding: 5px 11px; border-radius: 999px;
  max-width: calc(100% - 24px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.card__duration {
  position: absolute; z-index: 4; right: 12px; bottom: 12px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em;
  color: var(--text);
  background: oklch(0.16 0.02 255 / 0.62);
  border: 1px solid oklch(1 0 0 / 0.16);
  backdrop-filter: blur(8px);
  padding: 4px 9px; border-radius: 999px;
}

.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card__kicker {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint);
  display: flex; align-items: center; gap: 8px;
}
.card__kicker .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--card-accent, var(--accent)); }
.card__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 20px; line-height: 1.18; letter-spacing: -0.02em;
  margin: 0; color: var(--text); text-wrap: pretty;
}
.card__desc {
  font-size: 14.5px; color: var(--muted); margin: 0; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card__cta {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--accent);
  display: inline-flex; align-items: center; gap: 7px; font-weight: 500;
}
.card__cta svg { width: 13px; height: 13px; transition: transform 0.25s var(--ease); }

.empty {
  text-align: center; color: var(--muted); font-size: 16px;
  padding: 70px 0; font-family: var(--font-mono);
}

/* ---------------- MCP servers ---------------- */
.mcp {
  border-top: 1px solid var(--line-soft);
  padding: 72px 0 88px;
  scroll-margin-top: 68px; /* keep the heading clear of the sticky topbar */
}
.mcp .eyebrow { margin-bottom: 18px; }
.mcp__lede {
  font-size: 15.5px; color: var(--muted); line-height: 1.65;
  max-width: 62ch; margin: 14px 0 36px; text-wrap: pretty;
}
.mcp__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px; max-width: 980px;
}
.mcp-card {
  display: flex; flex-direction: column; gap: 12px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: 24px 26px 22px;
}
.mcp-card__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 19px; letter-spacing: -0.02em; margin: 0;
}
.mcp-card__desc {
  font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0;
}
.mcp-card__endpoint {
  display: flex; align-items: center; gap: 10px;
  margin-top: 4px; padding: 9px 10px 9px 14px;
  background: var(--bg); border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
}
.mcp-card__endpoint code {
  flex: 1; min-width: 0;
  font-family: var(--font-mono); font-size: 12px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mcp-card__copy {
  flex: none;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600;
  color: var(--accent); background: transparent;
  border: 1px solid var(--accent); border-radius: 999px;
  padding: 5px 12px; cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.mcp-card__copy:hover { background: var(--accent); color: oklch(0.16 0.02 255); }
.mcp-card__copy.is-copied { background: var(--accent); color: oklch(0.16 0.02 255); }
.mcp-card__link {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--accent);
  margin-top: 2px; width: fit-content;
}
.mcp-card__link:hover { color: var(--teal); }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--line-soft); padding: 40px 0 calc(64px + env(safe-area-inset-bottom)); }
.footer__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__note { color: var(--faint); font-size: 13.5px; max-width: 62ch; margin: 0; line-height: 1.6; }
.footer__disclaimer { margin-top: 10px; font-size: 12px; opacity: 0.8; }
.footer__meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); margin: 0; white-space: nowrap; }

/* ---------------- Detail overlay ---------------- */
.detail { position: fixed; inset: 0; z-index: 90; display: grid; }
.detail[hidden] { display: none; }
.detail__scrim {
  position: absolute; inset: 0;
  background: oklch(0.1 0.01 255 / 0.74);
  backdrop-filter: blur(8px);
  animation: fade 0.3s var(--ease);
}
.detail__panel {
  position: relative; z-index: 1;
  width: min(1040px, 100%);
  max-height: 92vh; max-height: 92dvh; margin: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 40px 120px -30px oklch(0 0 0 / 0.8);
  animation: rise 0.42s var(--ease);
}
@media (max-width: 700px){
  .detail__panel { max-height: 100vh; max-height: 100dvh; border-radius: 0; height: 100%; }
}
.detail__close {
  position: absolute; z-index: 5;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, env(safe-area-inset-right));
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; cursor: pointer; color: var(--text);
  background: oklch(0.16 0.02 255 / 0.6);
  border: 1px solid oklch(1 0 0 / 0.16);
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
}
.detail__close:hover { background: var(--accent); color: oklch(0.16 0.02 255); transform: rotate(90deg); }
.detail__close svg { width: 18px; height: 18px; }

.detail__player {
  position: relative; aspect-ratio: 16 / 9; background: #000;
}
.detail__player::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg, oklch(0.22 0.02 255) 0 2px, transparent 2px 12px),
    radial-gradient(120% 90% at 50% 0%, oklch(0.25 0.03 250), #000);
}
.detail__player video { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; background:#000; }
/* portrait (short-form) rendition: give it a vertical stage instead of a letterboxed 16:9 */
.detail__player.is-portrait { aspect-ratio: auto; height: min(72vh, 178vw); }

.detail__content { padding: 34px clamp(24px, 4vw, 48px) 44px; }
.detail__meta {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 18px;
}
.detail__tag {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--accent); border: 1px solid var(--accent);
  padding: 5px 12px; border-radius: 999px;
}
.detail__date { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.detail__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(26px, 3.6vw, 40px); line-height: 1.06; letter-spacing: -0.03em;
  margin: 0 0 28px; text-wrap: balance;
}

/* ---- real Azure update body (sanitized rich text) ---- */
.detail__update { margin: 0 0 34px; }
.update-body {
  font-size: 15.5px; line-height: 1.65; color: var(--text);
}
.update-body > *:first-child { margin-top: 0; }
.update-body > *:last-child { margin-bottom: 0; }
.update-body p { margin: 0 0 16px; }
.update-body strong, .update-body b { color: var(--text); font-weight: 700; }
.update-body em, .update-body i { font-style: italic; }
.update-body h3, .update-body h4 {
  font-family: var(--font-display); letter-spacing: -0.01em;
  margin: 26px 0 12px; color: var(--text);
}
.update-body h3 { font-size: 19px; }
.update-body h4 { font-size: 16px; }
.update-body ul, .update-body ol { margin: 0 0 18px; padding-left: 22px; }
.update-body li { margin: 0 0 9px; padding-left: 4px; }
.update-body ul li::marker { color: var(--accent); }
.update-body ol li::marker { color: var(--faint); font-family: var(--font-mono); }
.update-body a {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 2px; text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}
.update-body a:hover { color: var(--teal); }
.update-body code {
  font-family: var(--font-mono); font-size: 0.9em;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-sm); padding: 1px 6px;
}
.update-body blockquote {
  margin: 0 0 18px; padding: 4px 0 4px 16px;
  border-left: 2px solid var(--accent); color: var(--muted);
}

.detail__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans); font-size: 14.5px; font-weight: 600;
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform 0.2s, box-shadow 0.25s, background 0.2s, border-color 0.2s;
}
.btn svg { width: 15px; height: 15px; }
.btn--primary {
  background: var(--accent); color: oklch(0.15 0.02 255);
  box-shadow: 0 10px 30px -12px var(--accent);
}
.btn--ghost {
  background: transparent; color: var(--text); border-color: var(--line);
}
.btn--soft {
  background: var(--accent-glow); color: var(--accent); border-color: transparent;
}
.btn--icon { padding: 14px; }
.btn--icon svg { width: 17px; height: 17px; }
.btn--primary:active { transform: translateY(0) scale(0.98); }
.btn--ghost:active { transform: translateY(0) scale(0.98); }
.btn--soft:active { transform: translateY(0) scale(0.98); }
@media (hover: hover) {
  .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--accent); }
  .btn--ghost:hover { border-color: var(--accent); background: var(--bg-2); transform: translateY(-2px); }
  .btn--soft:hover { background: oklch(0.74 0.142 245 / 0.26); transform: translateY(-2px); }
}

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px) scale(0.98); } }

/* card entrance */
.card { animation: card-in 0.5s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
  .hero { padding-top: 64px; }
}

/* portrait tablets */
@media (max-width: 768px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .hero { padding-top: 56px; }
  .hero__stats { width: 100%; }
  .stat { flex: 1; min-width: 0; }
  .catalog { padding: 48px 0 80px; }
  .toolbar__search { max-width: none; }
  .dropdown--sort { margin-left: 0; }
}

@media (max-width: 640px) {
  .shell {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
  .topbar__link { display: none; }
  .topbar__app { display: none; }
  .topbar__icon { display: none; }
  .topbar__menu { display: grid; margin-left: auto; }
  .mcp { padding: 56px 0 72px; }
  .topbar__inner { gap: 14px; height: 60px; }
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand__text { min-width: 0; }
  .brand__mark { width: 40px; height: 40px; }
  .brand__name { font-size: 13px; line-height: 1.15; }
  .brand__sub { display: none; }
  /* single column on phones — give cards a bit more breathing room top/bottom */
  .grid { grid-template-columns: 1fr; gap: 28px; }
  .stat { padding: 14px 22px; min-width: 0; flex: 1; }
  .hero__stats { width: 100%; }
  .toolbar__search { max-width: none; }
  /* 16px input prevents iOS auto-zoom on focus */
  .toolbar__search input { font-size: 16px; }
  .dropdown--sort { margin-left: 0; }
  .toolbar__controls { gap: 10px; }
  /* keep dropdown panels inside the viewport on narrow phones */
  .dropdown__panel {
    min-width: 0;
    width: max-content;
    max-width: calc(100vw - 36px);
  }
  .dropdown--sort .dropdown__panel { min-width: 0; }
}
