@media (max-width: 720px) {
  .hero,
  .page-hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 32px);
    padding-bottom: 42px;
    overflow: hidden;
  }

  .hero .video-shell,
  .page-hero .video-shell {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    aspect-ratio: auto;
    background: #000;
  }

  .hero .video-shell video,
  .page-hero .video-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: none;
    animation: none;
    background: #000;
  }

  .hero .video-shell video {
    filter: brightness(0.64) saturate(0.86) contrast(1.02);
  }

  .page-hero .video-shell video {
    filter: brightness(0.62) saturate(0.84) contrast(1.02);
  }

  .hero .video-overlay,
  .page-hero .video-overlay {
    background:
      linear-gradient(180deg, rgba(5, 6, 7, 0.7) 0%, rgba(5, 6, 7, 0.62) 36%, rgba(5, 6, 7, 0.86) 100%),
      radial-gradient(circle at 50% 8%, rgba(184, 155, 97, 0.12), transparent 36%);
  }

  .hero-shell {
    position: relative;
    z-index: 3;
    min-height: auto;
    align-items: start;
    padding-top: 0;
    padding-bottom: 0;
    margin-top: 0;
  }

  .hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    max-width: 100%;
    padding: 0;
    background: none;
  }

  .hero-copy .kicker,
  .hero-copy h1,
  .hero-copy .descriptor {
    position: relative;
    transform: none;
    z-index: 2;
  }

  .hero-copy .kicker,
  .page-hero .page-label {
    max-width: 22rem;
  }

  .hero-copy h1 {
    max-width: 9ch;
    margin-top: 14px;
    font-size: clamp(2.65rem, 13vw, 4.1rem);
    line-height: 0.94;
    letter-spacing: -0.048em;
  }

  .hero-copy .descriptor,
  .page-hero .descriptor {
    margin-top: 12px;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
  }

  .hero-copy .lead,
  .page-hero .lead {
    max-width: none;
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-copy .long-lead {
    display: none;
  }

  .hero-actions {
    margin-top: 24px;
    gap: 12px;
  }

  .hero-facts {
    width: 100%;
    margin-top: 6px;
    background: rgba(5, 6, 7, 0.48);
  }

  .hero-fact {
    padding: 22px 20px;
  }

  .hero-fact h2,
  .hero-fact h3 {
    font-size: 1.24rem;
    line-height: 1.14;
  }

  .page-hero {
    padding-bottom: 46px;
  }

  .page-hero .container {
    position: relative;
    z-index: 3;
    width: min(calc(100% - 28px), var(--max-width));
    margin: 0 auto;
    padding: 0;
    background: none;
  }

  .page-hero h1 {
    max-width: 11ch;
    margin-top: 12px;
    font-size: clamp(2.35rem, 12vw, 3.9rem);
    line-height: 0.94;
  }

  .hero-home .hero-shell {
    padding-bottom: 0;
  }

  .hero-home .hero-copy h1 {
    max-width: 100% !important;
    font-size: clamp(2.55rem, 10.6vw, 3.2rem) !important;
    line-height: 0.98 !important;
    letter-spacing: -0.046em !important;
    word-spacing: 0 !important;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-home .hero-copy h1 span {
    display: block !important;
    white-space: normal !important;
  }

  .hero-home .hero-copy .descriptor {
    margin-top: 12px;
  }

  .hero-home .hero-copy .lead {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .brand-lockup .brand-descriptor {
    display: none;
  }

  .hero,
  .page-hero {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 34px;
  }

  .hero-copy h1,
  .page-hero h1 {
    max-width: none;
  }

  .hero-home .hero-copy h1 {
    max-width: 100% !important;
    font-size: clamp(2.35rem, 10.2vw, 2.9rem) !important;
    line-height: 1 !important;
  }

  .hero-home .hero-copy h1 span {
    white-space: normal !important;
  }

  .hero-fact {
    padding: 20px 18px;
  }
}

/* Ashby launch cleanup: the closed website assistant should be compact and professional. */
.section-console {
  padding-top: 56px;
  padding-bottom: 72px;
}

.console-shell {
  max-width: 760px;
}

.console-launch {
  max-width: 720px;
  border-radius: 22px;
}

.console-launch-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 24px 26px;
  border-bottom: 0;
}

.console-launch-title {
  max-width: none;
  margin-top: 10px;
  font-size: clamp(1.7rem, 2.6vw, 2.3rem);
  line-height: 1.02;
}

.console-launch-copy {
  max-width: 35rem;
  margin-top: 12px;
  font-size: 0.95rem;
  line-height: 1.58;
}

.console-launch-actions {
  align-content: center;
}

.console-open-button {
  min-height: 48px;
  padding: 0 24px;
}

.console-launch-body,
.console-prompt-grid,
.console-prompt,
.console-launch-form,
.console-launch-note {
  display: none !important;
}

@media (max-width: 720px) {
  .section-console {
    padding-top: 24px !important;
    padding-bottom: 34px !important;
  }

  .section-console .container,
  .console-shell {
    width: min(calc(100% - 28px), var(--max-width));
    max-width: none;
  }

  .console-launch {
    width: 100%;
    max-width: none;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  }

  .console-launch-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px !important;
  }

  .console-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .console-launch-title {
    margin-top: 8px;
    font-size: 1.38rem;
    line-height: 1.08;
  }

  .console-launch-copy {
    display: none;
  }

  .console-launch-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .console-launch-status {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .console-open-button {
    width: auto !important;
    min-width: 132px;
    min-height: 44px;
    padding: 0 18px;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .ams-mobile-swapped-console {
    margin-top: 24px;
  }

  .ams-mobile-swapped-console.section-console {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: transparent;
  }

  .ams-mobile-actions-section {
    padding: 24px 0 34px;
    background: var(--surface-light, #f3efe7);
  }

  .ams-mobile-actions-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .ams-mobile-swapped-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 0 !important;
  }

  .ams-mobile-swapped-actions .button,
  .ams-mobile-swapped-actions .button-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .console-launch-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .console-open-button {
    width: 100% !important;
  }
}
