/* Cinematic landing corrections, scoped to the public /agentic-landing.html only.
   Does not touch Portal / staff pages. */
.page { min-height: 100vh; }
.gridspace { min-height: 760px; height: 760px; margin: 0 3%; overflow: visible; }
.hero { top: 106px; left: 3%; width: 56%; z-index: 6; }
.hero h1 {
  margin: 0 0 18px; height: 126px; display: flex; align-items: flex-start;
  font-size: clamp(66px, 8vw, 130px); line-height: 1;
  letter-spacing: -.085em; white-space: nowrap; overflow: visible;
}
.page[data-view="home"] .hero h1 { font-size: clamp(52px, 6.4vw, 109px); }
.hero .linecap { min-height: 44px; display: flex; align-items: center; justify-content: center; padding: 10px 12px; }
.hero .copy { min-height: 152px; grid-template-columns: 30% 70%; }
.hero .copy strong, .hero .copy p { align-content: start; line-height: 1.5; }
.hero .instruction {
  margin: 19px 0 0; padding: 9px 0 0;
  font-size: 11px; line-height: 1.4; letter-spacing: .16em;
  color: #b7ebe1; min-height: 43px; text-transform: uppercase;
}
.hero .instruction::before { content: '+ '; font-size: 16px; color: #b6f8e8; }
.hero #section-detail { margin-left: 0; }
.gridspace .sys-terminal {
  position: absolute; z-index: 6; display: flex; flex-direction: column;
  left: 3%; top: 535px; width: min(52%, 720px);
  min-height: 190px; margin: 0; padding: 21px 24px;
  border: 1px solid #a3eee47e; border-left: 3px solid #a3eee4;
  background: linear-gradient(115deg,#030e13eb,#071c22dc);
  box-shadow: 0 16px 44px #0005;
  font-size: 12px; letter-spacing: .07em; overflow: hidden;
}
.gridspace .sys-terminal .sys-id { font-size: 11px; margin-bottom: 10px; }
.gridspace .sys-terminal .sys-output {
  min-height: 125px; white-space: pre-wrap; overflow-wrap: anywhere;
  font: 700 clamp(11px,.98vw,14px)/1.7 'Courier New',monospace;
  color: #c6f2ea;
}
.gridspace .sys-terminal .sys-output::after { content: '▌'; color: #e0fffa; animation: qualityCaret .9s steps(1) infinite; }
.gridspace .sys-terminal .sys-lines {
  position: absolute; top: 18px; right: 20px; gap: 4px; justify-content: flex-end;
}
.gridspace .sys-terminal .sys-lines span { width: 4px; height: 14px; min-width: 4px; border: 0; background: #a4f5e4; transform-origin: bottom; animation: qualitySignal 1s ease-in-out infinite alternate; }
@keyframes qualityCaret { 50% { opacity: 0; } }
@keyframes qualitySignal { to { transform: scaleY(.35); opacity: .42; } }

.character {
  top: 0; right: 7%; width: min(35vw, 560px); height: 630px;
  transform: none !important; transition: filter .45s ease;
  perspective: none; overflow: visible;
}
.character .portrait {
  display: block !important; position: absolute; inset: 0;
  background-image: url('/approved-homepage-assets/hermes-approved-cutout.webp');
  background-position: center bottom; background-size: contain;
  background-repeat: no-repeat; mask-image: none; opacity: 1;
  animation: qualityFloat 15s ease-in-out infinite alternate;
  filter: brightness(1.02) contrast(1.05);
}
.character .body-figure, .character .head-figure { display: none !important; }
.character .core-light { opacity: .12; animation: qualityGlow 15s ease-in-out infinite alternate; }
.character .glow { opacity: .12; animation: qualityGlow 16s ease-in-out infinite alternate; }
.character:hover .portrait,.character.activated .portrait {
  filter: brightness(1.11) contrast(1.06);
}
.character.activated .portrait { animation: qualityActivate .85s ease-out 1, qualityFloat 15s ease-in-out 1s infinite alternate; }
@keyframes qualityFloat { to { transform: translateY(-3px); } }
@keyframes qualityActivate { 50% { transform: translateY(-4px) scale(1.008); } }
@keyframes qualityGlow { to { opacity: .2; } }

.character-details { right: 2%; top: 53%; z-index: 5; }
.hero-entry,.hero-entry.is-open {
  position: absolute; z-index: 9; top: 645px; bottom: auto;
  right: 6%; left: auto; margin: 0; max-width: 37%;
  text-align: center; white-space: normal; line-height: 1.5;
  padding: 14px 17px; box-shadow: 0 8px 30px #0008;
}
.cards { position: relative; z-index: 7; margin-top: 0; min-height: 120px; align-items: stretch; }
.cards .agent { height: 100%; min-height: 100px; transition: background .2s, border-color .2s; transform: none !important; }
.cards .agent:hover,.cards .agent:focus-visible { background:#12302f; border-color: #c4fff2; transform: none !important; }
.cards.home-grid,.cards.about-grid,.cards.agent-grid,.cards.complete-levels { margin-top: 0; padding-top: 22px; }
.page[data-view="home"] .cards.home-grid,
.page[data-view="about"] .cards.about-grid { min-height: 180px; }
.page[data-view="levels"] .cards.complete-levels { align-items: start; }
.page[data-view="agents"] .cards.agent-grid { align-items: stretch; }

.ex-rail { position: absolute; z-index: 14; top: 145px; max-height: none; height: 66vh;
  padding: 8px 5px; background: #071118ea; color: #c8ece8;
  font: 600 12px/1.5 'Courier New',monospace; letter-spacing: .2em;
  white-space: nowrap; overflow: visible; writing-mode: vertical-rl;
  text-shadow: 0 0 5px #53fff250; }
.ex-rail-left { left: 19px; transform: rotate(180deg); border-left: 1px solid #9de8d6; }
.ex-rail-right { right: 19px; border-left: 1px solid #9de8d6; }
.ex-rail::before { margin: 10px; }

.top .online { justify-self: end; padding-top: 5px; display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
.ex-audio {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  flex: 0 0 auto; min-width: 0; padding: 8px 10px; min-height: 35px;
  border: 1px solid #b9fff28c; background: #081719e0; color: #e3faf4;
  font-size: 10px; letter-spacing: .06em; white-space: nowrap;
}
.ex-noise-bars { display: inline-flex; align-items: flex-end; gap: 2px; width: 19px; height: 14px; }
.ex-noise-bars i { display: block; width: 3px; height: 40%; background: #a9f8e7; }
.ex-noise-bars i:nth-child(2) { height: 90%; }
.ex-noise-bars i:nth-child(3) { height: 65%; }
.ex-noise-bars i:nth-child(4) { height: 100%; }
.ex-audio[aria-pressed="true"] .ex-noise-bars i { animation: qualitySignal .45s ease-in-out infinite alternate; }
.ex-audio[aria-pressed="true"] .ex-noise-bars i:nth-child(2) { animation-delay: .19s; }
.ex-audio[aria-pressed="true"] .ex-noise-bars i:nth-child(3) { animation-delay: .33s; }
.ex-audio[aria-pressed="true"] .ex-noise-bars i:nth-child(4) { animation-delay: .09s; }

@media (max-width: 1250px) {
  .top { grid-template-columns: 1fr auto; }
  .top .tabs { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  .gridspace { min-height: 760px; height: 760px; }
  .hero { left: 3%; top: 110px; width: 61%; }
  .hero h1 { font-size: clamp(57px, 7vw, 105px); }
  .page[data-view="home"] .hero h1 { font-size: clamp(51px, 6.0vw, 91px); }
  .character { right: 2%; width: 40vw; }
  .gridspace .sys-terminal { width: 56%; }
  .ex-rail { font-size: 10px; }
}
@media (max-width: 780px) {
  .top { grid-template-columns: 1fr; padding: 15px 5%; }
  .top .tabs { grid-column: 1; grid-row: 2; justify-self: stretch; width: 100%; }
  .top .online { grid-row: 3; justify-self: end; }
  .top .tabs button { padding: 11px 5px; }
  .gridspace {
    display: flex; flex-direction: column; height: auto; min-height: 0;
    margin: 0 5%; padding-bottom: 15px; gap: 0;
  }
  .hero { position: relative; order: 1; width: 100%; top: auto; left: auto; margin: 0; padding: 0; }
  .hero h1,.page[data-view="home"] .hero h1 {
    font-size: clamp(47px,11vw,83px); height: auto; min-height: 96px;
    white-space: normal; overflow-wrap: anywhere;
  }
  .hero .copy { grid-template-columns: 1fr; min-height: 0; }
  .hero .copy p { border-left: 0; border-top: 1px solid #dcefe884; }
  .hero .instruction { min-height: 40px; }
  .gridspace .sys-terminal { position: relative; top: auto; left: auto; order: 2; width: 100%; min-height: 184px; margin: 10px 0 25px; }
  .gridspace .sys-terminal .sys-lines { display: none; }
  .character { position: relative; top: auto; right: auto; order: 3; width: min(95%,440px); height: 450px; margin: 0 auto; flex: 0 0 auto; }
  .character-details { position: relative; top: auto; right: auto; order: 4; width: 100%; max-width: 330px; margin: 6px auto 5px; }
  .hero-entry,.hero-entry.is-open { position: relative; order: 5; top: auto; right: auto; bottom: auto; left: auto; max-width: 95%; margin: 12px auto; }
  .cards.home-grid,.cards.about-grid,.cards.complete-levels,.cards.agent-grid { padding-top: 20px; }
  .ex-rail { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .character .portrait,.character .glow,.character .core-light,
  .gridspace .sys-terminal .sys-output::after,.ex-noise-bars i { animation: none !important; }
}
