/* bond.enterprises: a moving nebula, then plain pages.
   Colors, type, the menu and the footer come from the shared brand.css. */
main:focus { outline: none; }
.display { margin: 0 0 .5em; }
.lede { color: var(--text-soft); max-width: 40em; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #05040c; }
/* Two painted layers: deep space with stars, and glowing gas that drifts across
   it at a different speed, so the sky has depth. */
.space, .gas { position: absolute; inset: -6%; background-position: center; background-size: cover; will-change: transform; }
.space { background-image: url("/sky/sky.jpg"); }
.gas { background-image: url("/sky/gas.webp"); mix-blend-mode: screen; opacity: .55; }
@media (max-width: 900px) {
  .space { background-image: url("/sky/sky-small.jpg"); }
  .gas { background-image: url("/sky/gas-small.webp"); }
}
/* A soft shadow behind the logo keeps it readable over the brightest gas. */
.sky::after { content: ""; position: absolute; inset: 0; background: radial-gradient(48% 34% at 50% 45%, rgba(5, 4, 12, .62), transparent 75%); }

.hero-inner { display: grid; justify-items: center; gap: 2.5em; padding: 6em 1em 10vh; }
/* Explore: flies on to the next screen. The arrow drifts down to say which way. */
.hero-link {
  display: inline-flex; align-items: center; gap: .45em; min-height: 46px; padding: .6em 1.15em .6em 1.4em;
  color: #fff; text-decoration: none; font: 400 .9rem/1 var(--display); letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; background: rgba(5, 4, 12, .5);
  transition: border-color .2s, background .2s, box-shadow .3s;
}
.hero-link svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hero-link:hover, .hero-link:focus-visible { border-color: #fff; background: rgba(5, 4, 12, .72); box-shadow: 0 0 18px rgba(123, 108, 255, .55); }
@media (prefers-reduced-motion: no-preference) {
  .hero-link svg { animation: nudge 1.8s ease-in-out infinite; }
  @keyframes nudge { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(3px); } }
}

@media (prefers-reduced-motion: no-preference) {
  .space { animation: space 120s ease-in-out infinite alternate; }
  .gas { animation: gas 75s ease-in-out infinite alternate, colors 40s ease-in-out infinite alternate; }
  @keyframes space { to { transform: scale(1.1) translate(-2%, 1.5%); } }
  @keyframes gas { from { transform: scale(1.12) translate(2%, -2%) rotate(-1.5deg); } to { transform: scale(1.02) translate(-3%, 2%) rotate(1.5deg); } }
  @keyframes colors { from { filter: hue-rotate(-25deg); opacity: .4; } to { filter: hue-rotate(35deg); opacity: .7; } }
}

/* The navbar sits on the sky, then gets a background once the page scrolls. */
.topnav.over-sky.scrolled { background: rgba(5, 4, 12, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-block-end: 1px solid var(--line); }
@media (max-width: 760px) { .topnav.over-sky, .topnav.over-sky.scrolled { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; pointer-events: none; } .topnav.over-sky nav { pointer-events: auto; } }

/* ---------- Lists of tools ---------- */
.band { width: min(100%, 64em); margin-inline: auto; padding: clamp(3em, 8vw, 5em) clamp(1em, 4vw, 2em) 0; }
.band:last-of-type { padding-block-end: clamp(3em, 8vw, 5em); }
#tools { scroll-margin-top: 72px; }
.tool-list { list-style: none; margin: 1.5em 0 0; padding: 0; border-block-end: 1px solid var(--line); }
.tool-list li { border-block-start: 1px solid var(--line); }
.tool-list a, .tool-list li > div {
  display: grid; grid-template-columns: 15em 1fr auto; gap: .3em 2em; align-items: baseline;
  padding: 1.3em .25em; color: inherit; text-decoration: none;
}
.tool-name { font-weight: 700; font-size: 1.1em; }
.tool-desc { color: var(--text-soft); }
.tool-host { color: var(--text-soft); font-size: .9em; white-space: nowrap; }
.tool-list a:hover .tool-host, .tool-list a:focus-visible .tool-host { color: #fff; }
.soon .tool-name, .soon .tool-desc { color: var(--text-soft); }
@media (hover: hover) {
  .tool-list a:hover .tool-name {
    color: transparent; -webkit-text-fill-color: transparent;
    background: var(--sheen) 50% 0 / 300% 100%; -webkit-background-clip: text; background-clip: text;
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tool-list a:hover .tool-name { animation: sheen 1.8s linear infinite; }
}
@media (max-width: 760px) {
  .tool-list a, .tool-list li > div { grid-template-columns: 1fr; }
}

/* ---------- Plain pages ---------- */
.big-link { font: 400 clamp(1.05rem, 3.5vw, 1.6rem)/1.4 var(--display); color: #fff; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(14em, 1fr)); gap: 1.25em; margin: 2em 0; }
.facts div { border-block-start: 1px solid var(--line); padding-block-start: .75em; }
.facts dt { color: var(--text-soft); font-size: .9em; }
.facts dd { margin: .2em 0 0; }
.button {
  display: inline-flex; align-items: center; min-height: 44px; padding: .4em 1.1em;
  border: 1px solid #fff; border-radius: 8px; color: #fff; text-decoration: none; font-weight: 700;
}
.button:hover { background: var(--raised); }
.lost { text-align: center; min-height: 50vh; display: grid; align-content: center; }

/* ---------- Taglines ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tagline {
  position: relative; margin: -.75em 0 0; min-height: 2.8em; width: min(40em, 92vw);
  display: grid; place-items: center; text-align: center;
  font-size: clamp(1.05rem, 2.4vw, 1.4rem); line-height: 1.35; color: #fff;
  text-shadow: 0 2px 18px rgba(5, 4, 12, .9);
}
.tagline-text { position: relative; display: inline-block; }
.tagline-text .word { display: inline-block; white-space: nowrap; }
.tagline-text .c { display: inline-block; will-change: transform, opacity; }
/* Speed lines for the lightspeed jump, drawn by site.js. */
.tagline-warp { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 100vw; height: 140px; pointer-events: none; }
.tagline-text .word { display: inline-block; white-space: nowrap; }
.tagline-text .c { display: inline-block; will-change: transform, opacity; }

/* ---------- The logo over the cosmos ----------
   cosmos.js draws the sky and the black hole or supernova behind the logo on a
   canvas inside .sky; once it's running the painted layers step aside. */
.hero-logo { margin: 0; color: #fff; width: min(760px, 84vw); position: relative; z-index: 1; }
.hero-logo svg { display: block; height: auto; width: calc(100% + 16px); filter: drop-shadow(0 8px 30px rgba(5, 4, 12, .8)); }
.hero-logo .panel { fill: #05040c; fill-opacity: .6; }
.cosmos { position: absolute; inset: 0; width: 100%; height: 100%; animation: arrive .35s both; }
@keyframes arrive { from { opacity: 0; } }
.sky.live .space, .sky.live .gas, .sky.live::after { visibility: hidden; transition: visibility 0s .35s; }
.hero-inner { position: relative; z-index: 1; }
.hero-logo svg { overflow: visible; }
.hero-logo .ch { transform-box: fill-box; transform-origin: center; }
.hero-logo .frame { stroke-dasharray: 1; }
/* On the supernova the logo waits for the blast (site.js). If the blast never
   comes (no WebGL), it fades in on its own. */
@media (prefers-reduced-motion: no-preference) {
  html:not(.intro-seen) .hero[data-scene="supernova"] :is(.hero-logo .ch, .hero-logo .frame, .hero-logo .panel, .tagline, .hero-link) { animation: appear .6s 6s both; }
  @keyframes appear { from { opacity: 0; } }
}

/* ---------- The stage ----------
   With JavaScript the home page doesn't scroll: each .scene fills the screen
   over the supernova, and site.js flies from one to the next. A scene taller
   than the screen scrolls inside itself. Without JavaScript it's a normal page. */
.staged, .staged body { height: 100%; overflow: hidden; }
.staged .hero { position: fixed; inset: 0; min-height: 0; }
.staged .scene {
  position: fixed; inset: 0; z-index: 1; margin: 0; width: auto; max-width: none;
  display: grid; align-content: safe center; overflow-y: auto; overscroll-behavior: contain;
  padding: 5em clamp(1em, 4vw, 2em) 2.5em; visibility: hidden; transform-origin: 50% 50%;
}
.staged .scene.current, .staged .scene.leaving { visibility: visible; }
.staged .hero-inner.scene { justify-items: center; grid-template-columns: minmax(0, 1fr); }
.staged .band.scene > * { width: min(100%, 60rem); margin-inline: auto; }
.staged .band.scene .display { text-shadow: 0 2px 18px rgba(5, 4, 12, .9); }
.staged .band.scene .lede { max-width: none; text-shadow: 0 1px 12px rgba(5, 4, 12, .95), 0 0 2px rgba(5, 4, 12, .9); color: #fff; }
.staged .band.scene .tool-list {
  background: rgba(5, 4, 12, .84);
  border-radius: 14px; border: 1px solid var(--line);
}
.staged .band.scene .tool-list { padding-inline: 1em; }
.staged .band.scene .tool-list li:first-child { border-block-start: 0; }
.staged .scene .foot { margin-block-start: 2.5em; background: rgba(5, 4, 12, .84); border-radius: 14px; }
.staged .scene :is(h1, h2):focus { outline: none; }
.sky .cosmos { transition: opacity .9s; }
.staged.away .sky .cosmos { opacity: .6; }
@media (max-width: 760px) { .staged .scene { padding: 2.5em 2.6em calc(6em + env(safe-area-inset-bottom)) 1em; } .staged .hero-inner.scene { padding-inline: 1em; } }

/* Where you are: a slim track with a circle for each screen. The current one is
   filled with glowing color; moving squeezes the color through the track into
   the next circle. No text. */
.scene-dots {
  position: fixed; z-index: 20; inset-inline-end: 22px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 160px; display: flex; flex-direction: column; justify-content: space-between; align-items: center;
}
.scene-dots::before { content: ""; position: absolute; top: 13px; bottom: 13px; left: 50%; width: 2px; transform: translateX(-50%); border-radius: 2px; background: rgba(255, 255, 255, .28); }
.scene-dots button {
  position: relative; z-index: 1; width: 12px; height: 12px; margin-block: 7px; padding: 0; border-radius: 50%; cursor: pointer;
  background: #0b0918; border: 2px solid rgba(255, 255, 255, .55);
  transition: border-color .3s;
}
.scene-dots button[aria-current="true"] {
  /* The color fills this circle; its outline steps aside as the color lands. */
  border-color: transparent; background: transparent;
  transition: border-color 0s .5s, background 0s .5s;
}
.scene-dots button:not([aria-current="true"]):hover { border-color: #fff; }
.scene-dots button::after { content: ""; position: absolute; inset: -10px; } /* a bigger target */
.scene-dots button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.scene-dots .pill {
  position: absolute; z-index: 2; left: 50%; width: 10px; height: 18px; transform: translateX(-50%); border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, #2ec4b6, #7b6cff, #ff4fa0, #ffd166);
  box-shadow: 0 0 10px 2px rgba(123, 108, 255, .8), 0 0 22px 5px rgba(255, 79, 160, .35);
}
/* Keep the content clear of the track on bigger screens. */
@media (min-width: 761px) {
  .staged .scene { padding-inline: clamp(1em, 4vw, 2em) 5rem; }
  .staged .hero-inner.scene { padding-inline: 5rem; }
  .hero-logo { max-width: 100%; }
}
@media (max-width: 760px) {
  .scene-dots { inset-inline-end: 10px; height: 130px; }
}

/* Pick what follows the cursor: a small button in the corner (site.js). */
.companion { position: fixed; z-index: 41; inset-inline-start: 18px; bottom: 18px; color: #fff; }
.companion summary {
  list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(5, 4, 12, .72); border: 1px solid rgba(255, 255, 255, .22); transition: border-color .2s, transform .2s;
}
.companion summary::-webkit-details-marker { display: none; }
.companion summary:hover { border-color: #fff; transform: scale(1.06); }
.companion svg { width: 22px; height: 22px; }
.companion fieldset {
  position: absolute; bottom: 54px; inset-inline-start: 0; margin: 0; padding: .5em; min-width: 13em;
  background: rgba(5, 4, 12, .94); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px;
}
.companion legend { float: left; width: 100%; padding: .3em .6em .5em; font-size: .78rem; color: var(--text-soft); }
.companion label { display: flex; align-items: center; gap: .7em; padding: .45em .6em; border-radius: 8px; cursor: pointer; font-size: .92rem; }
.companion label:hover { background: rgba(255, 255, 255, .08); }
.companion input { position: absolute; opacity: 0; pointer-events: none; }
.companion label:has(input:checked) { background: rgba(123, 108, 255, .28); box-shadow: inset 0 0 0 1px rgba(123, 108, 255, .7); }
.companion label:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 1px; }

/* The little ship that follows the cursor (site.js). */
.wingman { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }

/* ---------- The menu: the brands up front ---------- */
.topnav .phone-only { display: none; }
.topnav .more { position: relative; }
.topnav .more summary {
  list-style: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15em;
  min-width: 4.5em; min-height: 52px; padding: .3em .4em; color: var(--text-soft); font-size: .76rem; cursor: pointer; border-radius: 8px;
}
.topnav .more summary::-webkit-details-marker { display: none; }
.topnav .more[open] summary, .topnav .more summary:hover { color: #fff; }
.topnav .more ul {
  position: absolute; bottom: calc(100% + 10px); inset-inline-end: 4px; display: grid; gap: 2px; min-width: 11em; padding: .4em;
  background: rgba(11, 9, 24, .97); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.topnav .more ul a { flex-direction: row; min-height: 44px; font-size: .95rem; padding: .5em .9em; justify-content: flex-start; }
.topnav .more ul a[aria-current="page"]::after { display: none; }
.topnav .more:has(a[aria-current="page"]) summary { color: #fff; font-weight: 700; }
@media (max-width: 760px) {
  .topnav .phone-only { display: revert; }
  .topnav li.phone-only { display: list-item; list-style: none; }
  .topnav .desk-only { display: none; }
  .topnav ul a { min-width: 0; }
  .topnav nav > ul > li { flex: 1; }
}
@media (min-width: 761px) and (max-width: 980px) { .topnav ul a { padding-inline: .55em; font-size: .92rem; } }
/* Over the supernova, a soft shade behind the menu keeps it readable. */
@media (min-width: 761px) {
  .topnav.over-sky:not(.scrolled) { background: linear-gradient(rgba(5, 4, 12, .78), rgba(5, 4, 12, .35) 70%, transparent); }
  .topnav.over-sky ul a { color: rgba(255, 255, 255, .88); text-shadow: 0 1px 10px rgba(5, 4, 12, .95); }
}
@media (max-width: 760px) {
  .topnav nav > ul > li > a span, .topnav .more summary span { white-space: nowrap; font-size: .7rem; }
  .topnav .more ul { padding: .35em; }
  .topnav .more ul a { padding: .55em .8em; min-width: 0; }
}
