/* Hero, the 3D canvas and its labels, and the model river. The five-layer stack is in stack.css. */

.tensor-canvas {
  position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 0;
  /* tensor-gl.js sets its size to what it draws; the page's max-width would squeeze it by the scrollbar. */
  max-width: none; pointer-events: none; opacity: 0; transition: opacity 0.2s linear;
}
.has-webgl .tensor-canvas { opacity: 1; }
/* The sky behind the hero (sky.js): under the block's canvas, and it scrolls away with the hero. */
.sky { position: absolute; left: 0; top: 0; width: 100%; height: 100vh; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.4s ease; }
.sky.on { opacity: 1; }
.no-webgl .sky { display: none; }
.tensor-labels { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
main, .footer { position: relative; z-index: 1; }
.nav { z-index: 50; }

.tl {
  position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity;
  transition: opacity 0.25s linear; white-space: nowrap;
}
/* A model out of the block: its name on a plate at the top of the cube's front face, its work below.
   tensor-labels.js lays this box onto the face in perspective, so its size here only sets the
   proportions; it fits a long name into one line, or two at most. */
.tl-out { display: flex; flex-direction: column; width: 220px; height: 220px; padding: 13px; transform-origin: 0 0; white-space: normal; color: #fff; }
.tl-plate {
  display: grid; justify-items: start; gap: 5px; padding: 12px 14px 12px; border-radius: 9px;
  background: rgba(4, 8, 16, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent);
}
.tl-out b { display: inline-block; font-size: 28px; line-height: 1.1; letter-spacing: -0.015em; white-space: nowrap; }
.tl-out .fam { font-weight: 700; }
.tl-out .ver { font-weight: 450; color: #c9d3e0; }
.tl-out .two span { display: block; }
.tl-out small { display: inline-block; font-size: 16px; font-weight: 500; line-height: 1.25; color: #c5ccda; white-space: nowrap; }
/* A text model's answer at the foot of its face: the question in blue on the right, the answer
   in light grey on the left, as in a chat. */
.tl-chat { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.tl-chat p {
  display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; max-width: 90%;
  padding: 7px 11px; border-radius: 13px; font-size: 14px; font-weight: 500; line-height: 1.3;
}
.tl-chat .ask { align-self: flex-end; -webkit-line-clamp: 2; border-bottom-right-radius: 4px; background: rgba(52, 104, 216, 0.95); color: #fff; }
.tl-chat .answer { align-self: flex-start; border-bottom-left-radius: 4px; background: rgba(226, 233, 243, 0.96); color: #0b1220; }
.tl-chat p[hidden] { display: none; }
.tl-hover {
  display: grid; gap: 2px; padding: 9px 13px; border-radius: 12px;
  background: rgba(10, 17, 31, 0.92); border: 1px solid var(--line-2);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7); transition: opacity 0.15s linear;
}
.tl-hover strong { font-size: 0.9375rem; font-weight: 650; }
.tl-hover span { font-size: 0.8125rem; color: var(--mist); }
.tl-layer { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; font-weight: 600; color: var(--mist); }
.tl-layer::before { content: ""; width: 34px; height: 1px; background: var(--line-2); }
.tl-layer b { font-weight: 700; color: var(--fog); font-variant-numeric: tabular-nums; }
.tl-layer.on { color: var(--frost); }
.tl-layer.on::before { background: var(--copper); }
.tl-layer.on b { color: var(--copper-lite); }

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 24px) 0 max(88px, 15vh); overflow: clip;
  background:
    radial-gradient(60% 55% at 76% 42%, rgba(78, 142, 184, 0.16), transparent 70%),
    radial-gradient(40% 40% at 72% 48%, rgba(200, 144, 96, 0.1), transparent 70%),
    radial-gradient(50% 60% at 10% 90%, rgba(78, 142, 184, 0.07), transparent 70%);
}
.hero-inner { position: relative; width: min(100% - 2 * var(--gut), var(--w)); }
.hero-copy { max-width: 660px; position: relative; z-index: 2; }
/* Two lines beside the block: "Every AI, / one subscription." */
.hero-title { font-size: clamp(2.9rem, 5vw, 4.6rem); line-height: 0.95; letter-spacing: -0.04em; font-stretch: 113%; font-weight: 720; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-title .line > span { display: inline-block; }
.js .hero-title .line > span { animation: line-up 1.15s var(--ease) both; }
.js .hero-title .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes line-up { from { transform: translateY(105%); } }
.hero-lede { margin-top: 28px; max-width: 31em; }
.hero-actions { margin-top: 34px; align-items: center; }
/* The way in outweighs the way back, by its fill alone: both are as tall. */
.hero-actions .btn { height: 56px; }
.hero-actions .btn-primary { min-width: 168px; padding: 0 30px; font-size: 1.0625rem; }
.checks { flex-wrap: wrap; gap: 8px 22px; padding: 0; list-style: none; }
.checks li { display: inline-flex; align-items: center; gap: 7px; }
/* Lit by the same blue air as the block: the one colour the offer carries. */
.hero-actions .btn-primary {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 0 0 1px rgba(160, 205, 255, 0.45),
    0 0 26px -4px rgba(96, 160, 255, 0.6), 0 12px 44px -8px rgba(96, 160, 255, 0.7);
}
.hero-actions .btn-primary:hover {
  box-shadow: 0 1px 0 #fff inset, 0 0 0 1px rgba(170, 210, 255, 0.8),
    0 0 34px -2px rgba(96, 160, 255, 0.75), 0 16px 52px -8px rgba(96, 160, 255, 0.9);
}
.js .hero-lede, .js .hero-actions, .js .hero .assure, .js .hero-fresh { animation: fade-up 0.9s var(--ease) both; }
.js .hero-lede { animation-delay: 0.35s; }
.js .hero-actions { animation-delay: 0.47s; }
.js .hero .assure { animation-delay: 0.56s; }
.js .hero-fresh { animation-delay: 1.4s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
/* News, set apart from the offer: a small card under it. */
.hero-fresh {
  position: relative; z-index: 2; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px;
  margin-top: 28px; padding: 10px 16px; border: 1px solid rgba(143, 200, 240, 0.24); border-radius: 12px;
  background: rgba(8, 13, 25, 0.55); font-size: 0.9375rem; color: var(--mist);
}
.hero-fresh span { color: #9fd0f2; font-weight: 600; }
.hero-fresh b { color: var(--frost); font-weight: 550; }
/* Holds its line until the names arrive, so nothing below it jumps. */
.hero-fresh.wait { visibility: hidden; }
.hero-poster, .hero-stage { display: none; }

/* The key under the block, placed by tensor-scene.js. Pointing at a kind, or pressing it,
   brings its cubes forward. */
.cube-key { position: absolute; left: 0; top: 0; z-index: 2; display: none; justify-items: center; gap: 10px; transform: translateX(-200vw); transform-origin: 50% 0; }
.has-webgl .cube-key { display: grid; }
.js .cube-key { animation: key-in 1s ease 2.2s both; }
@keyframes key-in { from { opacity: 0; } }
.cube-key p { font-size: 0.875rem; font-weight: 500; color: var(--mist); white-space: nowrap; }
/* One glass capsule; the pressed kind glows in the blue of the air below it. */
.ck-kinds {
  display: flex; justify-content: center; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgba(8, 13, 25, 0.62); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px -18px rgba(0, 0, 0, 0.9);
}
.ck-kinds button {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 11px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600; color: var(--mist); white-space: nowrap; border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.ck-kinds button:hover { color: var(--frost); background: rgba(232, 238, 246, 0.07); }
.ck-kinds button[aria-pressed="true"] {
  color: var(--frost); background: rgba(122, 176, 208, 0.18); border-color: rgba(143, 200, 240, 0.7);
  box-shadow: 0 0 18px -3px rgba(110, 170, 255, 0.55), inset 0 0 10px -3px rgba(143, 200, 240, 0.45);
}
.ck-kinds svg { flex: none; width: 16px; height: 16px; }
/* Beside the block on a wide screen the key carries the weight of a control. */
@media (min-width: 760px) {
  .cube-key p { font-size: 0.9375rem; }
  .ck-kinds { padding: 6px; }
  .ck-kinds button { height: 42px; gap: 8px; padding: 0 17px 0 14px; font-size: 0.875rem; }
  .ck-kinds svg { width: 17px; height: 17px; }
}
.ck-tap { display: none; }
@media (hover: none) { .ck-point { display: none; } .ck-tap { display: inline; } }
html.on-cube body { cursor: pointer; }

/* The card of a clicked cube (cube-card.js): what the model makes, who made it, the way in.
   Beside the cube on wide screens, along the bottom edge on a phone. */
.cube-card {
  position: fixed; left: 0; top: 0; z-index: 40; width: 300px; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 16px; background: rgba(10, 17, 31, 0.94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.85);
  opacity: 0; visibility: hidden; transition: opacity 0.18s linear, visibility 0s linear 0.18s;
}
.cube-card.open { opacity: 1; visibility: visible; transition: opacity 0.18s linear; }
.cc-media img, .cc-media video { display: block; width: 100%; height: 168px; object-fit: cover; }
/* Another model's piece on a card: the caption says whose it is. */
.cc-by { position: relative; }
.cc-by span {
  position: absolute; left: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px;
  background: rgba(4, 7, 13, 0.76); font-size: 0.74rem; font-weight: 560; color: var(--mist);
}
.cc-media .sp-eq { width: 100%; height: 92px; padding: 18px 28px; border: 0; border-radius: 0; }
/* A text model's chat (cube-card.js). Aligned to the bottom, so older messages leave at the top;
   each message and each line opens its own room, so nothing jumps. */
.cc-chat {
  display: flex; flex-direction: column; justify-content: flex-end; height: 150px; padding: 0 16px 14px; overflow: hidden; background: #04070d;
  -webkit-mask-image: linear-gradient(transparent, #000 44px); mask-image: linear-gradient(transparent, #000 44px);
}
.cc-chat .m { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.35s var(--ease), opacity 0.3s; }
.cc-chat .m.in { grid-template-rows: 1fr; opacity: 1; }
.cc-chat .m > div { min-height: 0; overflow: hidden; }
.cc-chat .b { margin-top: 8px; padding: 10px 12px; border-radius: 14px; }
.cc-chat .q .b { width: 44%; margin-left: auto; border-bottom-right-radius: 4px; background: #3d4d70; }
.cc-chat .a .b { width: 72%; border-bottom-left-radius: 4px; background: color-mix(in srgb, var(--c) 11%, #171d29); transition: width 0.3s var(--ease); }
.cc-chat .a .b.typing { width: 64px; }
.cc-chat i { display: block; width: var(--w); height: 6px; border-radius: 3px; background: rgba(226, 234, 248, 0.8); }
.cc-chat .a i { background: rgba(226, 234, 248, 0.5); animation: cc-line 0.3s var(--ease) both, cc-type 0.45s linear 0.1s both; }
.cc-chat .a i + i { margin-top: 7px; }
@keyframes cc-line { from { height: 0; margin-top: 0; } }
@keyframes cc-type { from { width: 0; } }
.cc-chat .dots { display: flex; gap: 5px; }
.cc-chat .dots b { width: 6px; height: 6px; border-radius: 50%; background: rgba(226, 234, 248, 0.55); animation: cc-dot 0.9s ease-in-out infinite; }
.cc-chat .dots b:nth-child(2) { animation-delay: 0.15s; }
.cc-chat .dots b:nth-child(3) { animation-delay: 0.3s; }
@keyframes cc-dot { 40% { transform: translateY(-3px); background: rgba(226, 234, 248, 0.9); } }
.cc-body { display: grid; gap: 4px; padding: 16px 18px 18px; }
.cc-name { padding-right: 34px; font-size: 1.15rem; font-weight: 700; color: var(--frost); }
.cc-line { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--mist); }
.cc-line i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.cc-more { margin: 8px 0 12px; font-size: 0.84rem; line-height: 1.45; color: var(--fog); }
.cube-card .btn { justify-self: start; }
.cc-close {
  position: absolute; top: 10px; right: 10px; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: 50%; background: rgba(6, 10, 18, 0.72); color: var(--mist);
}
.cc-close:hover { color: var(--frost); }
.cc-close svg { width: 14px; height: 14px; }
@media (max-width: 599px) { .cube-card { top: auto; right: 12px; bottom: 12px; left: 12px; width: auto; transform: none !important; } }
.no-webgl .hero-poster {
  display: block; position: absolute; right: -4%; top: 50%; width: min(62vw, 980px); height: auto;
  transform: translateY(-50%); pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent);
  mask-image: radial-gradient(closest-side, #000 72%, transparent);
}

@media (max-width: 1099px) and (min-width: 760px) {
  .hero-copy { max-width: 560px; }
}
/* Where tensor-scene.js puts the block above the text (narrower than 900 px, or not wider than
   23:20), the text starts below the block and its key. */
@media (max-width: 899px), (max-aspect-ratio: 23/20) {
  .hero { align-items: flex-end; padding-bottom: 56px; padding-top: calc(var(--nav-h) + 40vh + 40px); }
  .hero-title { font-size: clamp(2.9rem, 6.2vw, 6.1rem); }
  .hero-fresh { margin-top: 26px; }
  .no-webgl .hero-poster { top: 8%; right: 50%; transform: translateX(50%); width: min(120vw, 900px); }
}
/* A phone: the text first, centred, so the offer and the way in are read at once. The block stands in
   the room the text leaves below it (.hero-stage, see tensor-scene.js) and fills the first screen with
   its key under it; the news waits below the key, a plain line there, as it takes up to three. */
@media (max-width: 759px) {
  .hero { display: block; min-height: 0; padding-top: calc(var(--nav-h) + 14px); padding-bottom: 170px; }
  .hero-inner { display: flex; flex-direction: column; min-height: calc(100svh - var(--nav-h) - 96px); }
  .hero-stage { display: block; flex: 1 0 190px; }
  .hero-fresh {
    position: absolute; left: 50%; top: calc(100% + 94px); transform: translateX(-50%); width: max-content; max-width: 100%;
    justify-content: center; margin: 0; padding: 0; border: 0; background: none; font-size: 0.8125rem;
  }
  .js .hero-fresh { animation: none; }
  .hero-lede strong { display: block; }
  .no-webgl .hero-poster { top: auto; bottom: 24px; width: min(110vw, 620px); }
  .hero-copy, .hero-fresh { text-align: center; }
  .hero-title { font-size: clamp(2.2rem, 10.2vw, 3.6rem); }
  .hero-lede { margin: 14px auto 0; font-size: 1rem; line-height: 1.5; }
  .hero-actions { margin-top: 20px; justify-content: center; }
  .hero-actions .btn { height: 52px; }
  .hero-actions .btn-primary { flex: 2 1 0; min-width: max-content; padding: 0 10px; }
  .hero-actions .btn-ghost { flex: 1 1 0; padding: 0 14px; }
  .hero .assure { justify-content: center; gap: 6px 12px; margin-top: 14px; font-size: 0.75rem; }
  .hero .assure li { gap: 5px; }
  .hero .assure svg { width: 14px; height: 14px; }
  .tl-out { width: 170px; height: 170px; padding: 9px; }
  .tl-plate { gap: 3px; padding: 9px 10px; border-radius: 8px; }
  .tl-out b { font-size: 25px; }
  .tl-out small { font-size: 16px; }
  .tl-chat { gap: 5px; }
  .tl-chat p { padding: 6px 9px; border-radius: 11px; font-size: 15px; }
  /* The key is as wide as the text above it. */
  .ck-kinds { min-width: calc(100vw - 2 * var(--gut)); justify-content: space-between; }
  .ck-kinds button { gap: 5px; padding: 0 10px 0 8px; }
}

/* Model river */
.river { padding: 40px 0 64px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(6, 10, 18, 0.6), var(--night) 60%); }
/* Beside the block, its first row comes up into the room the hero leaves under the text and the
   key (cube-key.js), on a fade instead of a rule, so the planet shows through above the names. */
.river.peek { margin-top: calc(-1 * var(--peek)); border-top: 0; background: linear-gradient(180deg, transparent, var(--night) 72%); }
.river-head p { font-size: 1rem; color: var(--mist); margin-bottom: 22px; }
.river-head .num { color: var(--frost); font-weight: 650; }
.river-rows { display: grid; gap: 12px; }
.river-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.river-track { display: flex; width: max-content; animation: river 70s linear infinite; }
.river-row.rev .river-track { animation-direction: reverse; animation-duration: 80s; }
.river-row:hover .river-track { animation-play-state: paused; }
.river-track ul { display: flex; gap: 10px; padding: 0 5px; list-style: none; margin: 0; }
.river-track li {
  display: flex; align-items: center; gap: 9px; padding: 9px 15px; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 10px; background: rgba(232, 238, 246, 0.02);
  font-size: 0.9375rem; font-weight: 500; color: var(--mist);
}
.river-track li i { width: 7px; height: 7px; border-radius: 2px; background: var(--c); }
@keyframes river { to { transform: translateX(-50%); } }
/* Reduced motion: the names stand still, so the rows scroll by hand, as on the studio wall. */
.river-rows.still .river-row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
.river-rows.still .river-track { animation: none; }
.river-rows.still ul[aria-hidden] { display: none; }

@media (max-width: 389px) { .ck-kinds { gap: 6px; } .ck-kinds button { gap: 6px; padding: 0 10px 0 8px; } }
/* On a phone the lede is two lines, the lead and what else there is: its last sentence waits, so
   the way in comes sooner and the block gets the room. */
@media (max-width: 759px) { .lede-more { display: none; } }
