:root {
  --ink: #f6efe2;
  --muted: #c8bba8;
  --paper: #fff8ea;
  --night: #10110f;
  --charcoal: #1b1a17;
  --moss: #22392e;
  --copper: #c67838;
  --ember: #f0a64b;
  --cyan: #20b7c7;
  --rose: #c85a7d;
  --line: rgba(246, 239, 226, 0.18);
  --shadow: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--night);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--ink);
  transition: background-color 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(16, 17, 15, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-lockup img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-lockup span {
  font-size: clamp(0.98rem, 1.8vw, 1.2rem);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
}

.site-nav a {
  color: rgba(246, 239, 226, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ember);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(16, 17, 15, 0.42);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg,
.subpage-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg {
  object-position: center;
}

.hero-shade,
.subpage-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(12, 15, 13, 0.9) 0%, rgba(12, 15, 13, 0.48) 45%, rgba(12, 15, 13, 0.14) 100%),
    linear-gradient(180deg, rgba(16, 17, 15, 0.28) 0%, rgba(16, 17, 15, 0.18) 58%, rgba(16, 17, 15, 0.94) 100%);
}

.hero-copy {
  width: min(760px, calc(100% - 36px));
  padding: clamp(120px, 18vh, 170px) 0 82px clamp(18px, 6vw, 86px);
}

.hero-mark {
  width: clamp(92px, 12vw, 156px);
  height: clamp(92px, 12vw, 156px);
  margin-bottom: 28px;
  border: 1px solid rgba(246, 239, 226, 0.22);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 20px 60px var(--shadow);
}

.eyebrow,
.section-kicker,
.feature-index {
  margin: 0 0 16px;
  color: var(--ember);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(4.1rem, 13vw, 10.5rem);
  line-height: 0.84;
  max-width: 10ch;
}

.hero-line {
  margin-bottom: 14px;
  color: var(--paper);
  font-size: clamp(1.35rem, 3vw, 2.6rem);
  font-weight: 800;
}

.hero-subline {
  max-width: 690px;
  color: rgba(246, 239, 226, 0.78);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  background: var(--ember);
  color: #14100b;
}

.button.ghost {
  border-color: rgba(246, 239, 226, 0.28);
  background: rgba(16, 17, 15, 0.42);
  color: var(--ink);
}

.ticker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #171915;
}

.ticker p {
  min-height: 72px;
  margin: 0;
  padding: 22px clamp(18px, 4vw, 42px);
  border-right: 1px solid var(--line);
  color: rgba(246, 239, 226, 0.78);
  font-weight: 800;
}

.ticker p:last-child {
  border-right: 0;
}

.section {
  padding: clamp(66px, 9vw, 126px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: clamp(24px, 7vw, 92px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 62px);
}

.section-heading.compact {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.section h2,
.subpage-hero h1 {
  margin-bottom: 18px;
  color: var(--paper);
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 0.95;
  max-width: 11ch;
}

.section p {
  color: rgba(246, 239, 226, 0.7);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  line-height: 1.72;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid.single {
  grid-template-columns: minmax(0, 720px);
}

.feature-card {
  min-height: 320px;
  padding: clamp(22px, 3.2vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(160deg, rgba(34, 57, 46, 0.82), rgba(22, 20, 17, 0.88));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.feature-card h3,
.feature-card h2 {
  margin-bottom: 18px;
  color: var(--paper);
  font-size: clamp(1.5rem, 2.2vw, 2.15rem);
  line-height: 1.05;
}

.feature-card a,
.text-link {
  color: var(--ember);
  font-weight: 900;
  text-decoration-color: rgba(240, 166, 75, 0.38);
  text-underline-offset: 5px;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 7vw, 92px);
  align-items: center;
  background:
    linear-gradient(120deg, rgba(198, 120, 56, 0.12), transparent 38%),
    var(--charcoal);
}

.image-stack {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 14px;
  align-items: end;
}

.image-stack img,
.gallery-row img,
.gallery-page img {
  width: 100%;
  border: 1px solid rgba(246, 239, 226, 0.16);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.image-stack img:first-child {
  aspect-ratio: 4 / 5;
}

.image-stack img:last-child {
  aspect-ratio: 1 / 1;
}

.gallery-band {
  background: #111612;
}

.gallery-row,
.gallery-page {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-row img {
  aspect-ratio: 4 / 3;
}

.gallery-page img {
  aspect-ratio: 1 / 1;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, rgba(32, 183, 199, 0.14), rgba(200, 90, 125, 0.1)), #191814;
}

address {
  display: grid;
  gap: 8px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: rgba(246, 239, 226, 0.76);
  font-style: normal;
}

address strong {
  color: var(--paper);
  font-size: 1.35rem;
}

address a {
  color: var(--ember);
  font-weight: 900;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #0f100e;
  color: rgba(246, 239, 226, 0.66);
}

.site-footer img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ember);
  font-weight: 900;
}

.subpage-hero {
  position: relative;
  display: grid;
  min-height: 72svh;
  padding: clamp(120px, 18vh, 180px) clamp(18px, 6vw, 86px) 70px;
  overflow: hidden;
  isolation: isolate;
  align-items: end;
}

.subpage-hero div {
  max-width: 820px;
}

.subpage-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(246, 239, 226, 0.8);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.download-band {
  background: #151713;
}

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(34, 57, 46, 0.92), rgba(30, 24, 19, 0.92));
}

.download-item h2 {
  margin-bottom: 8px;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 78px 12px auto 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(16, 17, 15, 0.96);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 16px;
  }

  .hero-copy {
    width: 100%;
    padding-right: 18px;
  }

  .hero-shade,
  .subpage-hero::after {
    background:
      linear-gradient(180deg, rgba(16, 17, 15, 0.58) 0%, rgba(16, 17, 15, 0.56) 45%, rgba(16, 17, 15, 0.96) 100%),
      linear-gradient(90deg, rgba(16, 17, 15, 0.48), rgba(16, 17, 15, 0.22));
  }

  .ticker,
  .section-heading,
  .split-band,
  .contact-band,
  .feature-grid,
  .gallery-row,
  .gallery-page {
    grid-template-columns: 1fr;
  }

  .ticker p {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-heading.compact {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 250px;
  }

  .image-stack {
    grid-template-columns: 1fr;
  }

  .download-item {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .brand-lockup span {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  h1 {
    font-size: clamp(2.85rem, 12vw, 3.55rem);
    max-width: none;
  }

  .section h2,
  .subpage-hero h1 {
    font-size: clamp(2.35rem, 12vw, 4rem);
  }

  .hero-actions .button {
    width: 100%;
  }
}

body > :not(.landing) {
  display: none !important;
}

body {
  overflow: hidden;
  background: #090b0a;
}

.landing {
  position: relative;
  display: block;
  width: 100vw;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}

.backdrop,
.shade {
  position: absolute;
  inset: 0;
}

.backdrop {
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.shade {
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(3, 5, 4, 0.34) 0%, rgba(3, 5, 4, 0.08) 42%, rgba(3, 5, 4, 0.46) 100%),
    linear-gradient(180deg, rgba(3, 5, 4, 0.14) 0%, rgba(3, 5, 4, 0.34) 100%);
}

.anchor-logo {
  position: absolute;
  top: clamp(25px, 4.2vw, 55px);
  left: clamp(22px, 3.6vw, 58px);
  width: clamp(220px, 24vw, 400px);
  height: clamp(220px, 24vw, 400px);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 28px 70px rgba(0, 0, 0, 0.62));
}

.slogan {
  position: absolute;
  right: clamp(24px, 5vw, 72px);
  bottom: clamp(24px, 5vw, 64px);
  display: grid;
  gap: 0.22em;
  margin: 0;
  color: rgba(255, 248, 234, 0.92);
  font-size: clamp(1.05rem, 2vw, 1.72rem);
  font-weight: 800;
  line-height: 1.15;
  text-align: right;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.78);
}

.landing h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 680px) {
  .landing {
    min-height: 520px;
  }

  .backdrop {
    object-position: 58% center;
  }

  .anchor-logo {
    top: clamp(19px, 4.8vw, 35px);
    left: clamp(14px, 4.2vw, 28px);
    width: clamp(164px, 46vw, 216px);
    height: clamp(164px, 46vw, 216px);
  }

  .slogan {
    right: 22px;
    bottom: 24px;
    max-width: calc(100vw - 44px);
    font-size: clamp(1rem, 5vw, 1.25rem);
  }
}

/* Current GM portal build */
body > :not(.landing) {
  display: block !important;
}

.gm-hub,
.blank-shell,
.httyai-shell {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
  background: #020403;
}

.scene,
.blank-scene,
.httyai-scene,
.scene-grade {
  position: absolute;
  inset: 0;
}

.scene,
.blank-scene,
.httyai-scene {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gm-hub .scene {
  transform: scale(1.03);
  object-position: 50% center;
}

.scene-grade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 3, 5, 0.82) 0%, rgba(0, 5, 7, 0.54) 26%, rgba(0, 0, 0, 0.06) 62%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.2) 46%, rgba(0, 0, 0, 0.72) 100%);
}

.hub-panel {
  position: absolute;
  top: clamp(24px, 4.2vw, 56px);
  left: clamp(22px, 4.1vw, 64px);
  width: min(34vw, 420px);
  min-width: 330px;
}

.brand-mark {
  width: clamp(250px, 24vw, 380px);
  margin: 0 0 clamp(12px, 1.8vh, 20px);
  line-height: 0;
}

.brand-mark img {
  width: 100%;
  filter: drop-shadow(0 0 26px rgba(0, 174, 255, 0.2)) drop-shadow(0 10px 22px rgba(0, 0, 0, 0.8));
}

.hero-thesis {
  max-width: 46ch;
  margin: 0 0 clamp(14px, 2vh, 22px);
  color: rgba(245, 250, 255, 0.9);
  font-size: clamp(0.84rem, 0.92vw, 0.96rem);
  font-weight: 500;
  line-height: 1.36;
  letter-spacing: 0.035em;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.86);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.portal-list {
  display: grid;
  gap: clamp(8px, 1.05vh, 13px);
}

.portal-card,
.contact-card {
  --edge: rgba(58, 205, 255, 0.8);
  --glow: rgba(39, 195, 255, 0.26);
  position: relative;
  display: grid;
  grid-template-columns: clamp(58px, 6vw, 88px) 1fr;
  align-items: center;
  min-height: clamp(66px, 8.1vh, 82px);
  padding: 0 clamp(18px, 2vw, 28px);
  color: rgba(245, 250, 255, 0.96);
  background:
    linear-gradient(90deg, rgba(3, 15, 22, 0.84), rgba(3, 15, 22, 0.52)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(79, 207, 255, 0.28);
  clip-path: polygon(0 14px, 14px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  text-decoration: none;
  box-shadow: inset 0 0 34px rgba(53, 188, 255, 0.08), 0 0 22px rgba(0, 0, 0, 0.58);
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.portal-card::before,
.contact-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: var(--edge);
  box-shadow: 0 0 18px var(--glow);
}

.portal-card::after,
.contact-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.32;
}

.portal-card:hover,
.contact-card:hover {
  transform: translateX(6px);
  border-color: rgba(90, 222, 255, 0.66);
  background:
    linear-gradient(90deg, rgba(3, 23, 34, 0.9), rgba(4, 24, 35, 0.58)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.portal-card svg,
.contact-card svg,
.slogan-row svg {
  width: clamp(42px, 4.5vw, 62px);
  height: clamp(42px, 4.5vw, 62px);
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.portal-card svg,
.contact-card svg {
  color: #29cfff;
  filter: drop-shadow(0 0 10px rgba(41, 207, 255, 0.5));
}

.portal-copy,
.contact-card > span,
.slogan-row span {
  position: relative;
  z-index: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.portal-copy {
  display: grid;
  gap: 0.34em;
  min-width: 0;
}

.portal-title,
.portal-subtitle {
  display: block;
  min-width: 0;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.16);
}

.portal-title,
.contact-card > span {
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  font-weight: 500;
}

.portal-subtitle {
  color: rgba(173, 229, 255, 0.78);
  font-size: clamp(0.58rem, 0.82vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.13em;
}

.portal-card:first-child .portal-title {
  max-width: 26ch;
  font-size: clamp(0.82rem, 1.05vw, 1.05rem);
  line-height: 1.18;
}

.contact-card {
  --edge: rgba(255, 176, 36, 0.88);
  --glow: rgba(255, 173, 42, 0.28);
  width: min(72%, 310px);
  min-height: clamp(60px, 7vh, 72px);
  margin-top: clamp(16px, 3.4vh, 32px);
  grid-template-columns: clamp(48px, 5vw, 70px) 1fr;
  background:
    linear-gradient(90deg, rgba(159, 111, 23, 0.72), rgba(10, 73, 99, 0.62)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 190, 65, 0.38);
}

.contact-card svg {
  color: #ffd07a;
  filter: drop-shadow(0 0 10px rgba(255, 180, 54, 0.44));
}

.slogan-panel {
  position: absolute;
  right: clamp(28px, 5vw, 72px);
  bottom: clamp(28px, 6vh, 76px);
  display: grid;
  gap: clamp(14px, 2.2vh, 26px);
  width: min(41vw, 540px);
}

.slogan-row {
  display: grid;
  grid-template-columns: clamp(48px, 4.6vw, 68px) 1fr;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  margin: 0;
  font-size: clamp(1rem, 1.75vw, 1.48rem);
  font-weight: 500;
  line-height: 1.1;
  text-align: left;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.88);
}

.slogan-gold {
  color: #ffae2f;
}

.slogan-blue {
  color: #32bdf5;
}

.blank-shell {
  display: grid !important;
  place-items: center;
}

.httyai-shell {
  display: grid !important;
  place-items: center;
  padding: clamp(76px, 8vh, 104px) clamp(18px, 5vw, 72px) clamp(38px, 6vh, 72px);
}

.blank-shell::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.2) 55%, rgba(0, 0, 0, 0.46)),
    radial-gradient(circle at 30% 30%, rgba(42, 197, 255, 0.12), transparent 32%),
    radial-gradient(circle at 74% 78%, rgba(255, 167, 38, 0.12), transparent 34%);
}

.httyai-shell::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 3, 5, 0.86) 0%, rgba(0, 5, 7, 0.56) 34%, rgba(0, 0, 0, 0.28) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.36) 0%, rgba(0, 0, 0, 0.2) 46%, rgba(0, 0, 0, 0.78) 100%);
}

.httyai-artifact {
  display: grid;
  justify-items: center;
  gap: clamp(14px, 2.5vh, 24px);
  width: min(62vw, 440px);
  margin: 0;
}

.httyai-cover {
  width: 100%;
  max-height: min(70svh, 680px);
  object-fit: contain;
  border: 1px solid rgba(255, 219, 56, 0.26);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72), 0 0 32px rgba(43, 206, 255, 0.1);
}

.httyai-caption {
  margin: 0;
  color: rgba(245, 250, 255, 0.92);
  font-size: clamp(0.96rem, 1.3vw, 1.16rem);
  font-weight: 500;
  line-height: 1.42;
  text-align: center;
  text-shadow: 0 0 18px rgba(0, 0, 0, 0.86);
}

.blank-home-link {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(57, 209, 255, 0.42);
  color: rgba(57, 209, 255, 0.86);
  text-decoration: none;
  display: grid;
  place-items: center;
  background: rgba(0, 8, 12, 0.48);
}

.blank-home-link svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

@media (max-width: 920px) {
  .gm-hub,
  .blank-shell,
  .httyai-shell {
    min-height: 760px;
    height: auto;
  }

  .gm-hub {
    min-height: 100svh;
    padding: 24px 18px 28px;
  }

  .gm-hub .scene {
    object-position: 60% center;
  }

  .scene-grade {
    background:
      linear-gradient(180deg, rgba(0, 4, 6, 0.86) 0%, rgba(0, 5, 7, 0.56) 54%, rgba(0, 0, 0, 0.78) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.18));
  }

  .hub-panel,
  .slogan-panel {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: min(100%, 430px);
  }

  .brand-mark {
    width: min(78vw, 330px);
    margin-bottom: 14px;
  }

  .hero-thesis {
    max-width: min(100%, 46ch);
    margin-bottom: 18px;
    font-size: clamp(0.82rem, 2.7vw, 0.98rem);
  }

  .portal-list {
    gap: 10px;
  }

  .portal-card {
    min-height: 68px;
  }

  .contact-card {
    width: min(78%, 300px);
    margin-top: 22px;
  }

  .slogan-panel {
    margin-top: 30px;
    margin-left: auto;
  }

  .slogan-row {
    grid-template-columns: 46px 1fr;
    font-size: clamp(0.9rem, 4vw, 1.1rem);
  }

  .httyai-shell {
    min-height: 100svh;
    padding-top: 82px;
  }

  .httyai-artifact {
    width: min(74vw, 360px);
  }

  .httyai-cover {
    max-height: 68svh;
  }
}

@media (max-width: 520px) {
  .gm-hub {
    height: 100svh;
    min-height: 0;
    padding: 18px 18px 16px;
  }

  .hub-panel {
    min-width: 0;
  }

  .brand-mark {
    width: min(68vw, 280px);
    margin-bottom: 10px;
  }

  .hero-thesis {
    margin-bottom: 12px;
    font-size: 0.72rem;
    line-height: 1.28;
  }

  .portal-list {
    gap: 6px;
  }

  .portal-card,
  .contact-card {
    grid-template-columns: 48px 1fr;
    min-height: 54px;
    padding: 0 14px;
  }

  .contact-card {
    margin-top: 12px;
    min-height: 54px;
  }

  .slogan-panel {
    gap: 8px;
    margin-top: 14px;
  }

  .slogan-row {
    grid-template-columns: 42px 1fr;
  }

  .portal-card svg,
  .contact-card svg,
  .slogan-row svg {
    width: 38px;
    height: 38px;
  }

  .portal-card span,
  .contact-card > span,
  .slogan-row span {
    letter-spacing: 0.14em;
  }

  .portal-title,
  .contact-card > span {
    font-size: 0.98rem;
  }

  .portal-card:first-child .portal-title {
    max-width: 24ch;
    font-size: 0.74rem;
  }

  .portal-subtitle {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  .httyai-shell {
    min-height: 100svh;
    padding: 72px 18px 30px;
  }

  .httyai-artifact {
    width: min(64vw, 260px);
    gap: 13px;
  }

  .httyai-cover {
    max-height: 62svh;
  }

  .httyai-caption {
    font-size: 0.95rem;
  }
}
