@layer modules {
  .hero {
    position: relative;
    margin-block-start: calc(-1 * var(--header-height));
    padding-block-start: calc(var(--header-height) + var(--hero-block-start));
    padding-block-end: var(--hero-block-end);
    overflow-x: clip;
    background-color: var(--color-canvas);
  }
  @media (min-width: 768px) {
    .hero {
      padding-block-start: calc(var(--header-height) + var(--hero-block-start-lg));
      padding-block-end: var(--hero-block-end-lg);
    }
  }
  .hero__inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-width-wide);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding-inline: var(--hero-inline-pad);
  }
  /* Do not let the following section overlap the bento gutter. */
  .hero + .section {
    margin-block-start: 0;
  }

  /* ── Claim: even stack, centered (x.ai) ── */
  .hero__claim {
    width: 100%;
    max-width: var(--hero-claim-max);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--hero-claim-stack-gap);
  }
  @media (min-width: 768px) {
    .hero__claim {
      gap: var(--hero-claim-stack-gap-lg);
    }
  }
  /* Announcement chip — x.ai-style, links to newest shipped feature */
  .hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-block-end: 0;
    padding-block: var(--space-2);
    padding-inline: var(--space-2) var(--space-4);
    max-width: 100%;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-snug);
    letter-spacing: var(--letter-spacing-normal);
    color: var(--color-ink-subtle);
    text-decoration: none;
    background: var(--color-glass-soft);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-full);
    transition:
      border-color var(--duration-fast) var(--ease-out),
      color var(--duration-fast) var(--ease-out),
      background-color var(--duration-fast) var(--ease-out);
  }
  @media (hover: hover) and (pointer: fine) {
    .hero__badge:hover {
      color: var(--color-ink);
      border-color: var(--color-border-emphasis);
      background: var(--color-glass-medium);
    }
    .hero__badge:hover .hero__badge-arrow {
      transform: translateX(var(--space-1));
    }
  }
  .hero__badge:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
  }
  .hero__badge-new {
    flex-shrink: 0;
    padding-block: var(--space-1);
    padding-inline: var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    color: var(--color-emphasis-warm);
    border: 1px solid color-mix(in srgb, var(--color-emphasis-warm) 55%, transparent);
    border-radius: var(--radius-full);
  }
  .hero__badge-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero__badge-arrow {
    flex-shrink: 0;
    color: var(--color-ink-muted);
    transition: transform var(--duration-fast) var(--ease-out);
  }
  .hero__title {
    margin-block-end: 0;
    font-size: var(--hero-title-size);
    line-height: var(--line-height-tight);
    color: var(--color-ink);
    font-weight: var(--font-weight-light);
    letter-spacing: var(--letter-spacing-tighter);
    text-align: center;
  }
  @media (min-width: 768px) {
    .hero__title {
      font-size: var(--hero-title-size-lg);
    }
  }
  /*
   * Rotator: CSS grid stacks every phrase in one cell and sizes to the
   * widest. Short phrases stay centered under the stem — no left/xPercent math.
   */
  .hero__rotating-text {
    display: grid;
    grid-template-columns: max-content;
    grid-template-rows: max-content;
    justify-content: center;
    justify-items: center;
    align-items: start;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    color: var(--color-ink);
    text-align: center;
  }
  .hero__rotating-word {
    grid-area: 1 / 1;
    display: block;
    position: relative;
    width: max-content;
    max-width: min(100%, var(--hero-claim-max));
    opacity: 0;
    visibility: hidden;
    transform: translateY(var(--hero-phrase-fallback-y));
    transition:
      opacity calc(var(--hero-phrase-out) * 1s) var(--ease-out),
      transform calc(var(--hero-phrase-out) * 1s) var(--ease-out);
    padding-block-end: var(--hero-phrase-pad-end);
    text-align: center;
    pointer-events: none;
  }
  .hero__rotating-word.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .hero__rotating-word-label {
    display: block;
    white-space: nowrap;
  }
  .hero__accent-line {
    position: absolute;
    left: 0;
    right: 0;
    width: 100%;
    bottom: var(--hero-accent-inset);
  }
  html:not(.js-motion) .hero__rotating-word:not(.is-active) .hero__accent-line {
    opacity: 0;
    animation: none;
  }
  html:not(.js-motion) .hero__rotating-word.is-active .hero__accent-line {
    transform: scaleX(1);
    opacity: 1;
  }
  .hero__subtitle {
    margin-block-end: 0;
    margin-inline: auto;
    font-size: var(--text-base);
    line-height: var(--line-height-snug);
    max-width: var(--hero-subtitle-max);
    color: var(--color-ink-muted);
    text-align: center;
  }
  @media (min-width: 768px) {
    .hero__subtitle {
      font-size: var(--text-lg);
    }
  }
  .hero__subtitle-break {
    display: none;
  }
  @media (max-width: 767px) {
    .hero__subtitle-break {
      display: block;
    }
  }
  .hero__cta {
    display: inline-grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: var(--space-3);
  }
  @media (min-width: 480px) {
    .hero__cta {
      grid-template-columns: 1fr 1fr;
      gap: var(--space-4);
    }
  }
  .hero__cta .btn {
    width: 100%;
    box-sizing: border-box;
  }
  .hero__pricing {
    margin-inline-start: 0.35em;
    font-size: inherit;
    color: inherit;
    line-height: inherit;
    text-decoration: none;
    white-space: nowrap;
  }
  @media (max-width: 767px) {
    .hero__pricing {
      margin-inline-start: 0;
    }
  }
  @media (hover: hover) and (pointer: fine) {
    .hero__pricing:hover {
      color: var(--color-ink);
    }
  }
  .hero__pricing sup {
    font-size: 0.7em;
    vertical-align: super;
  }
  .hero__trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2) var(--space-5);
    margin-block-start: 0;
  }
  .hero__trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--color-ink-muted);
    white-space: nowrap;
  }
  .hero__trust-badge svg {
    width: var(--hero-icon-size);
    height: var(--hero-icon-size);
    flex-shrink: 0;
    color: var(--color-accent);
  }

  /* ── Bento: master height only; 2-up; overlay chrome like x.ai ── */
  .hero__bento {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: var(--hero-bento-card-height);
    align-items: stretch;
    justify-items: stretch;
    gap: var(--hero-bento-gap);
    width: 100%;
    max-width: var(--max-width-wide);
    margin-block-start: var(--hero-claim-bento-gap);
    margin-block-end: 0;
  }
  @media (min-width: 640px) {
    .hero__bento {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-auto-rows: var(--hero-bento-card-height-md);
      gap: var(--hero-bento-gap-lg);
    }
  }
  @media (min-width: 768px) {
    .hero__bento {
      margin-block-start: var(--hero-claim-bento-gap-lg);
    }
  }
  @media (min-width: 1024px) {
    .hero {
      min-height: 100vh;
      min-height: var(--hero-screen-min);
      display: flex;
      flex-direction: column;
    }
    .hero__inner {
      flex: 1 1 auto;
      min-height: 0;
      justify-content: space-between;
    }
    .hero__bento {
      flex: 1 1 auto;
      min-height: 0;
      grid-auto-rows: minmax(var(--hero-bento-card-height-lg), 1fr);
    }
  }
  .hero-bento__tile {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: var(--hero-bento-surface);
    border: 1px solid var(--bento-edge);
    border-radius: 1.25rem;
    box-shadow: var(--bento-lift);
    transition:
      border-color var(--duration-normal) var(--ease-out),
      box-shadow var(--duration-normal) var(--ease-out),
      transform var(--duration-normal) var(--ease-out);
  }
  @media (min-width: 768px) {
    .hero-bento__tile {
      border-radius: 1.35rem;
    }
  }
  .hero-bento__tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: 0 1px 0 color-mix(in srgb, var(--color-ink) 4%, transparent) inset;
    transition: box-shadow var(--duration-normal) var(--ease-out);
  }
  @media (hover: hover) and (pointer: fine) {
    .hero-bento__tile:hover {
      border-color: var(--bento-edge-hover);
      box-shadow: var(--bento-lift-hover);
      transform: translate3d(0, -4px, 0);
    }
    .hero-bento__tile:hover::after {
      box-shadow: 0 1px 0 color-mix(in srgb, var(--color-ink) 6%, transparent) inset;
    }
    .hero-bento__tile:hover .hero-bento__explore {
      color: var(--color-ink);
    }
    .hero-bento__tile:hover .hero-bento__image {
      transform: scale(1.03);
    }
  }
  .hero-bento__tile:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
  }
  /* Media fills the entire card — size from grid row token only */
  .hero-bento__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--color-canvas-alt);
    filter: var(--hero-bento-media-filter);
    transition: filter var(--hero-bento-focus-fade) var(--ease-out);
  }
  @media (hover: hover) and (pointer: fine) {
    .hero-bento__tile:hover .hero-bento__media {
      filter: var(--hero-bento-media-filter-clear);
    }
  }
  .hero-bento__tile.is-in-focus .hero-bento__media,
  .hero-bento__tile:focus-visible .hero-bento__media {
    filter: var(--hero-bento-media-filter-clear);
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-bento__media {
      transition: none;
    }
  }
  .hero-bento__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: top center;
    pointer-events: none;
    display: block;
    transition: transform var(--duration-slow) var(--ease-out);
  }
  .hero-bento__video {
    /* Same crop as stills; muted loop is decorative product proof */
    background: var(--color-canvas-alt);
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-bento__video {
      /* Browser keeps the poster/first frame; autoplay still allowed muted */
      animation: none;
    }
  }
  /*
   * Bubble tile = usetix AI launcher (admin .ai-assistant__launcher)
   * Dark face, cyan Phosphor sparkle, product kbd, spectrum ring + float.
   */
  .hero-bento__tile--bubble .hero-bento__media {
    background: var(--hero-bento-surface);
  }
  .hero-ask-ai {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding-block-end: var(--space-8);
    overflow: hidden;
    pointer-events: none;
  }
  .hero-ask-ai__ambient {
    position: absolute;
    inset: -40%;
    background:
      radial-gradient(
        ellipse 42% 36% at 30% 42%,
        color-mix(in srgb, var(--color-emphasis-via) 22%, transparent) 0%,
        transparent 62%
      ),
      radial-gradient(
        ellipse 46% 40% at 72% 58%,
        color-mix(in srgb, var(--hero-ask-ai-accent) 26%, transparent) 0%,
        transparent 68%
      ),
      radial-gradient(
        ellipse 50% 44% at 50% 50%,
        color-mix(in srgb, var(--hero-ask-ai-accent-hot) 12%, transparent) 0%,
        transparent 72%
      );
    animation: hero-ask-ai-ambient var(--hero-ask-ai-bg-duration) var(--ease-in-out) infinite alternate;
  }
  @keyframes hero-ask-ai-ambient {
    from {
      transform: scale(1) translate3d(-3%, 2%, 0) rotate(-2deg);
      opacity: 0.85;
    }
    to {
      transform: scale(1.16) translate3d(4%, -3%, 0) rotate(3deg);
      opacity: 1;
    }
  }
  /* Soft drifting orbs (background only — never near the pill chrome) */
  .hero-ask-ai__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(36px);
    opacity: 0.4;
    pointer-events: none;
  }
  .hero-ask-ai__orb--a {
    width: 38%;
    height: 38%;
    left: 10%;
    top: 16%;
    background: color-mix(in srgb, var(--color-emphasis-via) 40%, transparent);
    animation: hero-ask-ai-orb-a var(--hero-ask-ai-orb-duration) var(--ease-in-out) infinite alternate;
  }
  .hero-ask-ai__orb--b {
    width: 42%;
    height: 42%;
    right: 6%;
    bottom: 12%;
    background: color-mix(in srgb, var(--hero-ask-ai-accent) 38%, transparent);
    animation: hero-ask-ai-orb-b calc(var(--hero-ask-ai-orb-duration) * 1.15) var(--ease-in-out) infinite alternate;
  }
  .hero-ask-ai__orb--c {
    width: 22%;
    height: 22%;
    left: 52%;
    top: 62%;
    background: color-mix(in srgb, var(--hero-ask-ai-accent-hot) 32%, transparent);
    animation: hero-ask-ai-orb-c calc(var(--hero-ask-ai-orb-duration) * 0.85) var(--ease-in-out) infinite alternate;
  }
  @keyframes hero-ask-ai-orb-a {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(12%, 8%, 0) scale(1.1); }
  }
  @keyframes hero-ask-ai-orb-b {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-10%, -8%, 0) scale(0.95); }
  }
  @keyframes hero-ask-ai-orb-c {
    from { transform: translate3d(-4%, 0, 0) scale(0.95); }
    to { transform: translate3d(8%, -10%, 0) scale(1.08); }
  }
  /*
   * Product launcher shell.
   * Pill clips; ring is a large spinning conic *under* the face.
   * Only the 2px gap around the face shows color — no rotated bar.
   */
  .hero-ask-ai__pill {
    position: relative;
    z-index: 1;
    display: inline-flex;
    overflow: hidden;
    border-radius: var(--radius-full);
    padding: var(--hero-ask-ai-ring-width);
    isolation: isolate;
    box-shadow:
      0 12px 28px color-mix(in srgb, #000 50%, transparent),
      0 0 20px color-mix(in srgb, var(--hero-ask-ai-accent) 22%, transparent);
    animation:
      hero-ask-ai-float var(--hero-ask-ai-float-duration) var(--ease-in-out) infinite alternate,
      hero-ask-ai-glow var(--hero-ask-ai-glow-duration) var(--ease-in-out) infinite alternate;
  }
  @keyframes hero-ask-ai-float {
    from { transform: translate3d(0, 0.25rem, 0); }
    to { transform: translate3d(0, -0.4rem, 0); }
  }
  @keyframes hero-ask-ai-glow {
    from {
      box-shadow:
        0 10px 24px color-mix(in srgb, #000 48%, transparent),
        0 0 14px color-mix(in srgb, var(--hero-ask-ai-accent) 20%, transparent);
    }
    to {
      box-shadow:
        0 14px 32px color-mix(in srgb, #000 55%, transparent),
        0 0 26px color-mix(in srgb, var(--hero-ask-ai-accent) 38%, transparent),
        0 0 18px color-mix(in srgb, var(--color-emphasis-via) 18%, transparent);
    }
  }
  .hero-ask-ai__ring {
    position: absolute;
    /* Oversized so rotation never reveals empty corners inside the pill */
    top: 50%;
    left: 50%;
    width: 220%;
    height: 220%;
    z-index: 0;
    translate: -50% -50%;
    border-radius: 0;
    background: conic-gradient(
      from 0deg,
      var(--hero-ask-ai-accent),
      var(--color-emphasis-via),
      var(--hero-ask-ai-accent-hot),
      #60a5fa,
      var(--hero-ask-ai-accent)
    );
    animation: hero-ask-ai-ring-spin var(--hero-ask-ai-ring-duration) linear infinite;
    pointer-events: none;
  }
  @keyframes hero-ask-ai-ring-spin {
    to { transform: rotate(360deg); }
  }
  .hero-ask-ai__face {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: var(--hero-ask-ai-gap);
    padding-block: var(--hero-ask-ai-pill-pad-block);
    padding-inline: var(--hero-ask-ai-pill-pad-inline);
    color: #fff;
    background: var(--hero-ask-ai-surface);
    border-radius: inherit;
    box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 6%, transparent);
    transition:
      transform var(--duration-normal) var(--ease-out),
      box-shadow var(--duration-normal) var(--ease-out);
  }
  @media (min-width: 768px) {
    .hero-ask-ai__face {
      padding-block: var(--hero-ask-ai-pill-pad-block-lg);
      padding-inline: var(--hero-ask-ai-pill-pad-inline-lg);
      gap: var(--space-3);
    }
  }
  .hero-ask-ai__icon {
    display: inline-flex;
    flex-shrink: 0;
    width: var(--hero-ask-ai-icon-size);
    height: var(--hero-ask-ai-icon-size);
    color: var(--hero-ask-ai-accent);
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--hero-ask-ai-accent) 55%, transparent));
    animation: hero-ask-ai-icon-twinkle var(--hero-ask-ai-icon-twinkle) var(--ease-in-out) infinite;
  }
  @media (min-width: 768px) {
    .hero-ask-ai__icon {
      width: var(--hero-ask-ai-icon-size-lg);
      height: var(--hero-ask-ai-icon-size-lg);
    }
  }
  .hero-ask-ai__icon svg {
    width: 100%;
    height: 100%;
    display: block;
  }
  @keyframes hero-ask-ai-icon-twinkle {
    0%,
    100% {
      transform: scale(1) rotate(0deg);
      opacity: 1;
    }
    40% {
      transform: scale(1.08) rotate(-6deg);
      opacity: 0.92;
    }
    70% {
      transform: scale(0.96) rotate(5deg);
      opacity: 1;
    }
  }
  .hero-ask-ai__label {
    font-size: var(--hero-ask-ai-label-size);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-snug);
    letter-spacing: var(--letter-spacing-normal);
    white-space: nowrap;
  }
  @media (min-width: 768px) {
    .hero-ask-ai__label {
      font-size: var(--hero-ask-ai-label-size-lg);
    }
  }
  /* usetix .kbd on dark launcher */
  .hero-ask-ai__kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-inline-start: var(--space-1);
    min-height: 1.6em;
    min-width: 2.1em;
    padding-block: 0.2em;
    padding-inline: 0.45em;
    font-family: var(--font-sans);
    font-size: var(--hero-ask-ai-kbd-size);
    font-weight: var(--font-weight-medium);
    line-height: 1;
    color: var(--hero-ask-ai-kbd-color);
    background: var(--hero-ask-ai-kbd-bg);
    border: 1px solid var(--hero-ask-ai-kbd-border);
    border-radius: var(--radius-md);
    user-select: none;
  }
  @media (hover: hover) and (pointer: fine) {
    .hero-bento__tile--bubble:hover .hero-ask-ai__face {
      transform: scale(1.03);
      box-shadow:
        inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent),
        0 0 0 1px color-mix(in srgb, var(--hero-ask-ai-accent) 18%, transparent);
    }
    .hero-bento__tile--bubble:hover .hero-ask-ai__ring {
      animation-duration: calc(var(--hero-ask-ai-ring-duration) * 0.5);
    }
    .hero-bento__tile--bubble:hover .hero-ask-ai__icon {
      color: var(--hero-ask-ai-accent-hot);
      filter: drop-shadow(0 0 12px color-mix(in srgb, var(--hero-ask-ai-accent-hot) 70%, transparent));
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-ask-ai__ambient,
    .hero-ask-ai__orb,
    .hero-ask-ai__pill,
    .hero-ask-ai__ring,
    .hero-ask-ai__icon {
      animation: none !important;
    }
  }
  /*
   * Chat tile = product AI thread, not iMessage.
   * Organizer right (lifted glass), assistant left (chip outline + sparkle).
   */
  .hero-bento__tile--chat .hero-bento__media {
    background: var(--hero-bento-surface);
  }
  .hero-ai-chat {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: var(--space-5);
    padding-block-end: var(--space-12);
    overflow: hidden;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 100%);
  }
  .hero-ai-chat__thread {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    width: 100%;
  }
  .hero-ai-chat__msg {
    display: none;
    align-items: flex-start;
    gap: var(--space-2);
    max-width: 82%;
    margin: 0;
    padding-block: var(--space-2);
    padding-inline: var(--space-3);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-snug);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--radius-xl);
    pointer-events: none;
  }
  .hero-ai-chat__msg--ai {
    align-self: flex-start;
    color: var(--color-ink-subtle);
    background: color-mix(in srgb, var(--color-ink) 5%, transparent);
  }
  .hero-ai-chat__msg--user {
    align-self: flex-end;
    color: var(--color-ink);
    background: color-mix(in srgb, var(--color-ink) 10%, transparent);
  }
  .hero-ai-chat__msg.is-in {
    display: flex;
    animation: hero-ai-chat-in var(--duration-normal) var(--ease-out);
  }
  .hero-ai-chat__msg--ai.is-in {
    animation-name: hero-ai-chat-in-ai;
  }
  .hero-ai-chat__msg--user.is-in {
    animation-name: hero-ai-chat-in-user;
  }
  @keyframes hero-ai-chat-in-ai {
    from { opacity: 0; transform: translate3d(-0.65rem, 0.4rem, 0); }
    to { opacity: 1; transform: none; }
  }
  @keyframes hero-ai-chat-in-user {
    from { opacity: 0; transform: translate3d(0.65rem, 0.4rem, 0); }
    to { opacity: 1; transform: none; }
  }
  .hero-ai-chat__spark {
    flex-shrink: 0;
    display: inline-flex;
    width: 0.875rem;
    height: 0.875rem;
    margin-block-start: 0.15em;
    color: var(--hero-ask-ai-accent);
  }
  .hero-ai-chat__spark svg {
    width: 100%;
    height: 100%;
    display: block;
  }
  .hero-ai-chat__text {
    min-width: 0;
  }
  /* Product Nachdenken: same sparkle + spectrum ring as the Ask-AI launcher. */
  .hero-ai-chat__think {
    align-self: flex-start;
    display: none;
    align-items: center;
    pointer-events: none;
  }
  .hero-ai-chat__think.is-on {
    display: flex;
    animation: hero-ai-chat-in-ai var(--duration-normal) var(--ease-out);
  }
  .hero-ai-chat__think-orb {
    position: relative;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--radius-full);
    padding: 2px;
    background: var(--hero-ask-ai-surface);
    box-shadow: 0 0 16px color-mix(in srgb, var(--hero-ask-ai-accent) 22%, transparent);
  }
  .hero-ai-chat__think-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    width: 220%;
    height: 220%;
    translate: -50% -50%;
    background: conic-gradient(
      from 0deg,
      var(--hero-ask-ai-accent),
      var(--color-emphasis-via),
      var(--hero-ask-ai-accent-hot),
      #60a5fa,
      var(--hero-ask-ai-accent)
    );
    animation: hero-ask-ai-ring-spin var(--hero-ask-ai-ring-duration) linear infinite;
    pointer-events: none;
  }
  .hero-ai-chat__think-spark {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    color: var(--hero-ask-ai-accent);
    background: var(--hero-ask-ai-surface);
    filter: drop-shadow(0 0 8px color-mix(in srgb, var(--hero-ask-ai-accent) 55%, transparent));
    animation: hero-ask-ai-icon-twinkle var(--hero-ask-ai-icon-twinkle) var(--ease-in-out) infinite;
  }
  .hero-ai-chat__think-spark svg {
    width: 0.9rem;
    height: 0.9rem;
    display: block;
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-ai-chat__msg,
    .hero-ai-chat__msg--ai,
    .hero-ai-chat__msg--user,
    .hero-ai-chat__think {
      transition: none;
      animation: none !important;
    }
    .hero-ai-chat__msg.is-in,
    .hero-ai-chat__think.is-on {
      animation: none;
    }
    .hero-ai-chat__think {
      display: none;
    }
  }
  /*
   * Analytics tile = product Live View globe (cobe, same params as
   * analytics_live_controller) on the Ask-AI ambient family.
   */
  .hero-bento__tile--globe .hero-bento__media {
    background: var(--hero-bento-surface);
  }
  .hero-live-globe {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .hero-live-globe__stage {
    position: absolute;
    inset: 0;
  }
  .hero-live-globe__stage > div {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .hero-live-globe__canvas,
  .hero-live-globe__arcs {
    display: block;
    width: 100%;
    height: 100%;
  }
  .hero-live-globe__arcs {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  /*
   * Seating tile = zoomed product window on the Ask-AI ambient family.
   * Not full-bleed: the GIF sits inset so the grid is a demo, not wallpaper.
   */
  .hero-bento__tile--stage .hero-bento__media {
    background: var(--hero-bento-surface);
  }
  .hero-bento-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }
  .hero-bento-stage__frame {
    position: absolute;
    inset: var(--hero-stage-inset);
    inset-block-end: var(--hero-stage-inset-bottom);
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-glass-border);
    background: var(--color-canvas-alt);
    box-shadow:
      0 16px 32px color-mix(in srgb, #000 45%, transparent),
      0 0 24px color-mix(in srgb, var(--hero-ask-ai-accent) 10%, transparent);
    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 68%,
      color-mix(in srgb, #000 40%, transparent) 88%,
      transparent 100%
    );
  }
  .hero-bento-stage__media {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--hero-stage-focus-x) var(--hero-stage-focus-y);
    transform: scale(var(--hero-stage-zoom));
    transform-origin: var(--hero-stage-focus-x) var(--hero-stage-focus-y);
    pointer-events: none;
    transition: transform var(--duration-slow) var(--ease-out);
  }
  .hero-bento__tile--shop {
    container-type: size;
    container-name: shop-stage;
  }
  .hero-bento__tile--shop .hero-bento-stage__frame {
    inset: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    mask-image: none;
  }
  .hero-bento__tile--shop .hero-bento-stage__media {
    --hero-stage-zoom: var(--hero-stage-shop-zoom);
    --hero-stage-focus-x: var(--hero-stage-shop-focus-x);
    --hero-stage-focus-y: var(--hero-stage-shop-focus-y);
    transform: none;
    object-fit: cover;
    object-position: var(--hero-stage-shop-focus-x) var(--hero-stage-shop-focus-y);
  }
  /* Tile taller than the 16:9 shop film: cover would clip both sides.
     Pin to the readable left (UPCOMING EVENTS + first posters). */
  @container shop-stage (max-aspect-ratio: 16/9) {
    .hero-bento-stage {
      --hero-stage-shop-focus-x: var(--hero-stage-shop-focus-x-tight);
      --hero-stage-shop-focus-y: var(--hero-stage-shop-focus-y-tight);
    }
  }
  /*
   * Shop tile = original ticket picker on the Ask-AI ambient family.
   * Not a screenshot. One event, two types, one selected row.
   */
  .hero-bento__tile--shop-demo .hero-bento__media {
    background: var(--hero-bento-surface);
  }
  .hero-shop {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: start center;
    padding: var(--space-3) var(--space-4) var(--space-12);
    overflow: hidden;
    pointer-events: none;
  }
  @media (min-width: 640px) {
    .hero-shop {
      place-items: center;
      padding: var(--space-5);
      padding-block-end: var(--space-10);
    }
  }
  .hero-shop__card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--hero-shop-card-max);
    padding: var(--space-3);
    border-radius: var(--radius-xl);
    background: var(--hero-ask-ai-surface);
    border: 1px solid var(--color-glass-border);
    box-shadow: 0 16px 32px color-mix(in srgb, #000 50%, transparent);
    transition: transform var(--duration-normal) var(--ease-out);
  }
  .hero-shop__head {
    margin-block-end: var(--space-3);
  }
  .hero-shop__live {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-medium);
    letter-spacing: var(--letter-spacing-wide);
    text-transform: uppercase;
    color: var(--color-positive);
  }
  .hero-shop__live-dot {
    width: var(--hero-shop-live-size);
    height: var(--hero-shop-live-size);
    border-radius: var(--radius-full);
    background: var(--color-positive);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-positive) 22%, transparent);
  }
  .hero-shop__event {
    margin: 0;
    font-size: var(--text-lg);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-tight);
    letter-spacing: var(--letter-spacing-tight);
    color: var(--color-ink);
  }
  .hero-shop__meta {
    display: none;
    margin: var(--space-1) 0 0;
    font-size: var(--text-sm);
    color: var(--color-ink-muted);
  }
  @media (min-width: 640px) {
    .hero-shop__meta {
      display: block;
    }
  }
  .hero-shop__tickets {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: 0 0 var(--space-3);
    padding: 0;
    list-style: none;
  }
  .hero-shop__ticket:not(.is-selected) {
    display: none;
  }
  @media (min-width: 640px) {
    .hero-shop__ticket:not(.is-selected) {
      display: flex;
    }
  }
  .hero-shop__ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-glass-border);
    background: color-mix(in srgb, #fff 4%, transparent);
  }
  .hero-shop__ticket.is-selected {
    border-color: color-mix(in srgb, var(--hero-ask-ai-accent) 45%, transparent);
    background: color-mix(in srgb, var(--hero-ask-ai-accent) 12%, transparent);
  }
  .hero-shop__ticket-name {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-ink);
  }
  .hero-shop__ticket-price {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-ink);
  }
  .hero-shop__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-block: var(--space-2);
    padding-inline: var(--space-4);
    border-radius: var(--radius-full);
    background: var(--color-accent);
    color: var(--color-ink-inverted);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
  }
  @media (hover: hover) and (pointer: fine) {
    .hero-bento__tile--shop-demo:hover .hero-shop__card {
      transform: translateY(-2px);
    }
  }
  @media (hover: hover) and (pointer: fine) {
    .hero-bento__tile--stage:hover .hero-bento-stage__media {
      transform: scale(calc(var(--hero-stage-zoom) * 1.04));
    }
    .hero-bento__tile--stage:hover .hero-bento__image {
      transform: none;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero-bento-stage__media {
      transition: none;
    }
  }
  /* Title left · Explore right, overlaid on media (x.ai) */
  .hero-bento__chrome {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--hero-bento-label-pad);
    background: linear-gradient(
      to top,
      var(--color-scrim-medium) 0%,
      var(--color-scrim-soft) 55%,
      transparent 100%
    );
    pointer-events: none;
  }
  @media (min-width: 768px) {
    .hero-bento__chrome {
      padding: var(--hero-bento-label-pad-lg);
    }
  }
  .hero-bento__title {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--text-base);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-snug);
    color: var(--color-ink);
  }
  .hero-bento__explore {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-ink-subtle);
    white-space: nowrap;
    transition: color var(--duration-fast) var(--ease-out);
  }
  .hero-bento__description {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  /* Simplified hero for sub-pages */
  .hero--page {
    padding-block-start: calc(var(--header-height) + var(--section-spacing-compact));
    padding-block-end: var(--section-spacing-compact);
    min-height: auto;
  }
  @media (min-width: 768px) {
    .hero--page {
      padding-block-start: calc(var(--header-height) + var(--section-spacing-default));
      padding-block-end: var(--section-spacing-default);
      min-height: auto;
    }
  }
  .hero--page .hero__bento {
    display: none;
  }
}
