/* Full-screen capability index. All selectors are scoped to .icx. */
.icx {
  --icx-accent: #ddccff;
  --icx-glow: rgba(170, 147, 228, .17);
  position: fixed;
  inset: 0;
  z-index: 100000;
  isolation: isolate;
  color: #f5f0fb;
  color-scheme: dark;
  background: #080a13;
  font-family: var(--font-sans-regular, "Instrument Sans", Arial, sans-serif);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.icx[hidden] { display: none !important; }
.icx, .icx * { box-sizing: border-box; }
.icx button { font: inherit; }
.icx[data-capability="workspaces"] { --icx-accent: #c8dcff; --icx-glow: rgba(119, 153, 222, .18); }
.icx[data-capability="images"] { --icx-accent: #f0d1e8; --icx-glow: rgba(228, 148, 203, .17); }
.icx[data-capability="voice"] { --icx-accent: #dbd6ff; --icx-glow: rgba(151, 143, 236, .18); }
.icx[data-capability="video"] { --icx-accent: #c6e6eb; --icx-glow: rgba(119, 191, 205, .16); }
.icx[data-capability="studio"] { --icx-accent: #efdfcf; --icx-glow: rgba(217, 181, 145, .17); }
.icx[data-capability="build"] { --icx-accent: #c8e9dc; --icx-glow: rgba(138, 203, 178, .17); }

.icx__ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 54% 70% at 80% 59%, var(--icx-glow), transparent 77%),
    radial-gradient(ellipse 35% 45% at 12% 93%, rgba(115, 100, 165, .10), transparent 75%),
    linear-gradient(118deg, #080a13 8%, #0c0e1a 58%, #090b14 100%);
}

.icx__scroll {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #49445b transparent;
}

.icx__topbar,
.icx__main,
.icx__footer {
  width: min(100%, 1720px);
  margin-inline: auto;
}

.icx__topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 84px;
  padding: max(13px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 12px max(24px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(8, 10, 19, .98), rgba(8, 10, 19, .90) 70%, rgba(8, 10, 19, .72));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.icx__brand {
  width: fit-content;
  font-family: var(--font-serif, Newsreader, Georgia, serif);
  font-size: 29px;
  font-style: italic;
  font-weight: 420;
  letter-spacing: -.065em;
  white-space: nowrap;
}

.icx__brand-dot { color: var(--icx-accent); }
.icx__top-label,
.icx__kicker,
.icx__chapter-label,
.icx__note,
.icx__footer {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
}

.icx__top-label { color: #aaa5ba; }

.icx__close {
  justify-self: end;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(238, 227, 255, .34);
  border-radius: 50%;
  background: rgba(229, 214, 255, .045);
  color: #f5f0fb;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.icx__close:hover {
  border-color: var(--icx-accent);
  background: rgba(229, 214, 255, .14);
  transform: rotate(90deg);
}

.icx__close:focus-visible,
.icx__item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.icx__main {
  display: grid;
  grid-template-columns: minmax(260px, .41fr) minmax(0, 1fr);
  gap: clamp(40px, 5.8vw, 118px);
  min-height: calc(100dvh - 132px);
  padding: clamp(22px, 5vh, 64px) max(24px, env(safe-area-inset-right)) clamp(24px, 5vh, 64px) max(24px, env(safe-area-inset-left));
}

.icx__index {
  position: relative;
  z-index: 2;
  align-self: center;
  min-width: 0;
}

.icx__kicker {
  margin: 0 0 22px;
  color: var(--icx-accent);
}

.icx__index h1 {
  margin: 0 0 16px;
  font-family: var(--font-serif, Newsreader, Georgia, serif);
  font-size: clamp(39px, 3.8vw, 66px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.04;
}

.icx__index h1 em {
  color: var(--icx-accent);
  font-weight: 400;
}

.icx__intro {
  margin: 0 0 clamp(18px, 3vh, 35px);
  color: #d3cfdd;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1.45;
}

.icx__nav-cue { display: none; }

.icx__preview {
  max-width: 35ch;
  margin: 18px 0 0;
  color: #aaa5ba;
  font-size: 12px;
  line-height: 1.45;
}

.icx__nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(240, 235, 255, .19);
}

.icx__item {
  position: relative;
  display: grid;
  grid-template-columns: 29px 1fr 20px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 49px;
  padding: 5px 3px;
  border: 0;
  border-bottom: 1px solid rgba(240, 235, 255, .19);
  border-radius: 0;
  background: transparent;
  color: #b9b5c7;
  text-align: left;
  cursor: pointer;
  transition: color .23s ease, padding-left .23s ease, background .23s ease;
}

.icx__item:hover,
.icx__item.is-active {
  color: #fff;
  padding-left: 8px;
  background: linear-gradient(90deg, rgba(239, 225, 255, .06), transparent 70%);
}

.icx__item.is-active::before {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--icx-accent);
  content: "";
}

.icx__item-number {
  color: var(--icx-accent);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}

.icx__item-name {
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.15;
}

.icx__item-arrow {
  justify-self: end;
  color: var(--icx-accent);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .23s ease, transform .23s ease;
}

.icx__item:hover .icx__item-arrow,
.icx__item.is-active .icx__item-arrow {
  opacity: 1;
  transform: translate(0, 0);
}

.icx__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 560px;
  overflow: hidden;
  padding: 36px 0 42px clamp(26px, 3.2vw, 58px);
  border-left: 1px solid rgba(240, 235, 255, .15);
}

.icx__halo {
  position: absolute;
  top: 50%;
  right: -20%;
  width: min(60vw, 870px);
  aspect-ratio: 1;
  border: 1px solid rgba(231, 216, 255, .07);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--icx-glow), transparent 59%);
  transform: translateY(-50%);
  pointer-events: none;
  animation: icx-breathe 13s ease-in-out infinite;
}

.icx__halo::before,
.icx__halo::after {
  position: absolute;
  border: 1px solid rgba(231, 216, 255, .09);
  border-radius: 50%;
  content: "";
}

.icx__halo::before { inset: 13%; }
.icx__halo::after { inset: 27%; border-color: rgba(231, 216, 255, .12); }

.icx__stage-content {
  position: relative;
  z-index: 1;
  max-width: 770px;
}

.icx__chapter {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 460px;
  margin-bottom: clamp(31px, 6.7vh, 88px);
}

.icx__chapter-label { color: var(--icx-accent); white-space: nowrap; }
.icx__chapter-line { flex: 1; height: 1px; background: rgba(240, 235, 255, .23); }

.icx__heading {
  max-width: 850px;
  margin: 0;
  font-family: var(--font-serif, Newsreader, Georgia, serif);
  font-size: clamp(58px, 6.65vw, 116px);
  font-weight: 400;
  letter-spacing: -.057em;
  line-height: .98;
  text-wrap: balance;
}

.icx__description {
  max-width: 52ch;
  margin: clamp(24px, 4vh, 50px) 0 0;
  color: #d3cfdd;
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.6;
}

.icx__example {
  max-width: 52ch;
  margin: 17px 0 0;
  color: #d3cfdd;
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.5;
}

.icx__example > span:first-child {
  margin-right: 10px;
  color: var(--icx-accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .13em;
  white-space: nowrap;
}

.icx__note {
  width: fit-content;
  margin: clamp(22px, 4vh, 42px) 0 0;
  padding-top: 13px;
  border-top: 1px solid var(--icx-accent);
  color: var(--icx-accent);
}

.icx__stage-bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  left: clamp(26px, 3.2vw, 58px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  pointer-events: none;
}

.icx__watermark {
  color: rgba(240, 235, 255, .065);
  font-family: var(--font-serif, Newsreader, Georgia, serif);
  font-size: clamp(96px, 13vw, 230px);
  letter-spacing: -.08em;
  line-height: .72;
}

.icx__progress { display: flex; gap: 6px; padding-bottom: 8px; }
.icx__progress-mark {
  width: 16px;
  height: 2px;
  background: rgba(240, 235, 255, .33);
  transition: width .3s ease, background .3s ease;
}
.icx__progress-mark.is-active { width: 38px; background: var(--icx-accent); }

.icx__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 max(24px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  color: #9994a9;
}

@keyframes icx-breathe {
  0%, 100% { opacity: .72; transform: translateY(-50%) scale(.97); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.03); }
}

@media (max-width: 900px) {
  .icx__topbar { min-height: 72px; }
  .icx__top-label { display: none; }
  .icx__topbar { grid-template-columns: 1fr auto; }
  .icx__main {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: calc(100dvh - 72px);
    padding-top: 22px;
  }
  .icx__index { align-self: stretch; }
  .icx__kicker { margin-bottom: 8px; }
  .icx__index h1 { margin-bottom: 10px; font-size: clamp(34px, 7.5vw, 54px); }
  .icx__index h1 br { display: none; }
  .icx__intro { margin-bottom: 14px; }
  .icx__nav-cue {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 4px;
    color: #aaa5ba;
    font-size: 11px;
    line-height: 1.4;
  }
  .icx__nav-cue span { color: var(--icx-accent); font-size: 16px; line-height: 1; }
  .icx__nav {
    flex-direction: row;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: rgba(240, 235, 255, .34) transparent;
    scroll-padding-inline: 4px;
  }
  .icx__preview { max-width: none; margin-top: 10px; }
  .icx__item {
    flex: 0 0 116px;
    grid-template-columns: 1fr 16px;
    grid-template-rows: auto auto;
    gap: 0;
    min-height: 63px;
    padding: 7px 4px;
    scroll-snap-align: start;
  }
  .icx__item:hover, .icx__item.is-active { padding-left: 4px; background: transparent; }
  .icx__item.is-active::before { inset: auto 0 0; width: auto; height: 2px; }
  .icx__item-number { grid-column: 1 / -1; font-size: 10px; }
  .icx__item-name { grid-row: 2; font-size: 15px; }
  .icx__item-arrow { grid-column: 2; grid-row: 2; }
  .icx__stage {
    flex: 1;
    min-height: 330px;
    padding: clamp(28px, 6vh, 58px) 0 95px;
    border-left: 0;
  }
  .icx__chapter { margin-bottom: 27px; }
  .icx__heading { max-width: 700px; font-size: clamp(48px, 8.5vw, 86px); }
  .icx__description { max-width: 56ch; margin-top: 22px; font-size: 17px; }
  .icx__example { max-width: 56ch; margin-top: 13px; font-size: 15px; }
  .icx__note { margin-top: 25px; }
  .icx__stage-bottom { left: 0; bottom: 15px; }
  .icx__halo { right: -22%; width: 75vw; }
}

@media (max-width: 600px) {
  .icx__topbar {
    min-height: 65px;
    padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right));
  }
  .icx__brand { font-size: 26px; }
  .icx__close { width: 44px; height: 44px; }
  .icx__main {
    min-height: calc(100dvh - 65px);
    padding: 17px max(20px, env(safe-area-inset-right)) 12px max(20px, env(safe-area-inset-left));
  }
  .icx__kicker { font-size: 10px; }
  .icx__index h1 { margin-bottom: 9px; font-size: clamp(31px, 9vw, 42px); }
  .icx__intro { margin-bottom: 11px; font-size: 14px; }
  .icx__nav { gap: 12px; }
  .icx__item { flex-basis: 108px; min-height: 61px; }
  .icx__stage { min-height: 380px; padding: 35px 0 82px; }
  .icx__chapter { margin-bottom: 23px; }
  .icx__heading { font-size: clamp(49px, 12vw, 68px); line-height: 1.01; }
  .icx__description { font-size: 16px; line-height: 1.52; }
  .icx__example { font-size: 14px; line-height: 1.45; }
  .icx__note { font-size: 10px; }
  .icx__halo { right: -52%; width: 125vw; }
  .icx__watermark { font-size: 100px; }
  .icx__footer { display: none; }
}

@media (max-height: 500px) and (min-width: 650px) {
  .icx__topbar { min-height: 58px; padding-block: 6px; }
  .icx__scroll { overflow-y: auto; }
  .icx__main { min-height: 0; padding-block: 12px 32px; }
  .icx__stage { flex: 0 0 auto; min-height: 0; overflow: visible; padding-block: 24px 32px; }
  .icx__chapter { margin-bottom: 15px; }
  .icx__heading { font-size: clamp(43px, 6vw, 70px); }
  .icx__description { margin-top: 15px; font-size: 16px; }
  .icx__example { margin-top: 10px; font-size: 14px; }
  .icx__note { margin-top: 17px; }
  .icx__preview { margin-top: 8px; }
  .icx__stage-bottom, .icx__footer { display: none; }
}

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