/* Home hero v6 "sunrise" (11-15). Brief: research/brief.md (possibility, future, government-grade trust).
   The whole section is a dawn sky. An arch window (the room of students) stands on the horizon with the sun
   rising behind it; thin rings radiate from the sun like a seal; the four audience doors are a glass dock on the
   horizon line. Loads after horizon.css (build.mjs moves it last). */

.hero--floor {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: min(100svh, 1000px);
  padding: calc(var(--header-h) + clamp(24px, 4.5vw, 64px)) 0 0;
  background: #060f3a;
  color: #fff;
  --ink: #ffffff;
  --ink-2: #e6eaff;
  --muted: #c9d1fb;
  --line: rgba(255, 255, 255, 0.16);
  --line-dark: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.4);
  --sun-x: 75%;
  --sun-y: 36%;
  --horizon: 74%;
}

/* ---------- the sky ---------- */
.sky,
.sky > span {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sky {
  z-index: -1;
  background:
    radial-gradient(120% 70% at var(--sun-x) 104%, rgba(255, 150, 110, 0.55), rgba(255, 150, 110, 0) 60%),
    linear-gradient(180deg, #050c31 0%, #0a1a78 34%, #1d36d6 60%, #4c46e4 78%, #8d63dc 90%, #d58bc0 100%);
}
.sky > .sky__sun {
  inset: auto;
  left: var(--sun-x);
  top: var(--sun-y);
  width: clamp(560px, 72vw, 1100px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff4dc 0%, #ffd29a 22%, rgba(255, 179, 92, 0.8) 38%, rgba(255, 140, 110, 0.38) 60%, rgba(255, 140, 110, 0) 100%);
  mix-blend-mode: screen;
  transition: translate 2.2s var(--ease-out), opacity 1.6s;
}
.sky__rings {
  background: repeating-radial-gradient(circle at var(--sun-x) var(--sun-y), rgba(255, 255, 255, 0) 0 71px, rgba(255, 255, 255, 0.13) 71px 72px);
  -webkit-mask-image: radial-gradient(70% 90% at var(--sun-x) var(--sun-y), #000 10%, transparent 75%);
  mask-image: radial-gradient(70% 90% at var(--sun-x) var(--sun-y), #000 10%, transparent 75%);
}
.sky > .sky__line {
  display: none;
  inset: auto 0;
  top: var(--horizon);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 226, 180, 0.9) var(--sun-x), rgba(255, 255, 255, 0.05));
  box-shadow: 0 0 24px 2px rgba(255, 196, 130, 0.55);
}
/* the sun is below the horizon until the page arrives */
.js .hero--floor:not(.go) .sky__sun { translate: -50% -38%; opacity: 0.4; }

/* ---------- layout ---------- */
.floor {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  grid-template-areas: "copy room" "rail rail";
  grid-template-rows: 1fr auto;
  gap: 0 clamp(32px, 5vw, 88px);
  align-items: end;
  width: min(1280px, 100% - 2 * var(--gutter));
  margin-inline: auto;
  background: none;
  border-radius: 0;
  box-shadow: none;
  animation: none;
  color: #fff;
}
.floor::before { display: none; }
.floor__copy {
  align-self: center;
  padding-bottom: clamp(56px, 7vw, 104px);
}

/* ---------- copy ---------- */
.floor .eyebrow {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.floor__title {
  margin-top: clamp(18px, 2vw, 26px);
  max-width: 9.6em;
  font-size: clamp(2.8rem, 6.2vw, 6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #fff;
}
.floor__title em {
  background: linear-gradient(92deg, #ffe2b0 0%, #ffb35c 55%, #ff8f7a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.floor__title em::before,
.floor__title em::after { display: none; }
.floor .swap s { text-decoration-color: rgba(255, 210, 154, 0.9); }
.floor .lead {
  max-width: 30em;
  margin-top: clamp(18px, 2vw, 26px);
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  line-height: 1.55;
  color: #d6ddff;
}
.floor .roll {
  align-items: center;
  margin-top: 14px;
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  color: #b9c3ec;
}
.floor .roll__mask { vertical-align: middle; }
.floor .roll__list > span { color: #fff; font-weight: 700; }
.floor .btn-row { margin-top: clamp(26px, 3vw, 40px); gap: 12px; }
.floor .btn { padding-inline: 26px; min-height: 52px; }
.floor .btn--primary {
  background: #fff;
  border-color: #fff;
  color: #0b1640;
  box-shadow: 0 16px 44px -14px rgba(255, 179, 92, 0.95);
}
.floor .btn--primary:hover { background: var(--amber); border-color: var(--amber); color: #0b1640; }
.floor .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.04); }
.floor .btn--ghost:hover { background: #fff; border-color: #fff; color: #0b1640; }

/* ---------- the arch window, standing on the horizon ---------- */
.floor__room {
  position: relative;
  justify-self: center;
  width: min(100%, clamp(320px, 33vw, 480px));
  aspect-ratio: 4 / 5;
  max-height: calc(100svh - var(--header-h) - 250px);
  min-height: 380px;
  margin: 0;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
  outline: 0;
  background: none;
  animation: none;
}
.hero--floor .aurora { display: none; }
.floor__room::before { /* the halo where the sun sits behind the arch */
  content: "";
  position: absolute;
  inset: -14px -14px 0;
  border-radius: 999px 999px 0 0;
  border: 1px solid rgba(255, 226, 180, 0.55);
  border-bottom: 0;
  box-shadow: 0 -10px 60px -6px rgba(255, 196, 130, 0.45);
  pointer-events: none;
}
.floor__photo,
.floor__photo:first-of-type {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 46% 60%;
  border-radius: 999px 999px 0 0;
  clip-path: inset(0 round 999px 999px 0 0);
  filter: saturate(1.08) contrast(1.04);
  mix-blend-mode: normal;
}
.floor__room::after { /* the photo dissolves into the horizon light */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px 999px 0 0;
  background:
    linear-gradient(180deg, rgba(10, 26, 120, 0.25) 0%, rgba(10, 26, 120, 0) 30%),
    linear-gradient(0deg, rgba(255, 190, 140, 0.55) 0%, rgba(255, 190, 140, 0) 26%);
  mix-blend-mode: normal;
  pointer-events: none;
}
.floor__photo--live { display: none; }
.floor__cap { /* visible to screen readers and on hover, not on the picture */
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* floating proof notes */
.floor__note {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 12px 18px 12px 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  background: rgba(12, 24, 96, 0.42);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 18px 40px -18px rgba(3, 8, 40, 0.8);
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
}
.floor__note small {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffd29a;
}
.floor__note::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  translate: 0 -50%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 3px, transparent 4px), #2340e8;
  box-shadow: 0 0 0 4px rgba(35, 64, 232, 0.3);
}
.floor__note--a { left: -22%; top: 34%; }
.floor__note--b { right: -14%; bottom: 16%; }
.floor__note--b::before { background: radial-gradient(circle, #0b1640 0 3px, transparent 4px), var(--amber); box-shadow: 0 0 0 4px rgba(255, 179, 92, 0.3); }

/* the apply seal on the arch's shoulder */
.floor__badge {
  right: -6%;
  top: 6%;
  bottom: auto;
  width: clamp(92px, 8vw, 116px);
  color: #0b1640;
  background: var(--amber);
  box-shadow: 0 16px 40px -12px rgba(255, 150, 80, 0.8);
}
.floor__badge b { background: none; color: #0b1640; }

/* ---------- the dock: four doors on the horizon ---------- */
.floor__rail {
  grid-area: rail;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 0;
  border-radius: 22px 22px 0 0;
  background: #fff;
  box-shadow: 0 -18px 50px -20px rgba(5, 10, 50, 0.45);
  overflow: hidden;
}
.floor__rail a {
  position: relative;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: clamp(18px, 1.8vw, 24px) clamp(18px, 2vw, 28px) clamp(20px, 2vw, 26px);
  border: 0;
  border-right: 1px solid rgba(11, 22, 64, 0.1);
  border-radius: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  color: #0b1640;
  text-decoration: none;
  transform: none;
  transition: background 0.3s var(--ease);
}
.floor__rail a:last-child { border-right: 0; }
.floor__rail a::after {
  content: "→";
  position: absolute;
  right: clamp(18px, 2vw, 28px);
  bottom: clamp(20px, 2vw, 26px);
  font-weight: 700;
  color: rgba(11, 22, 64, 0.4);
  transition: transform 0.3s var(--ease-out), color 0.3s;
}
.floor__rail a:hover,
.floor__rail a:focus-visible { background: #f2f4ff; transform: none; }
.floor__rail a:hover::after,
.floor__rail a:focus-visible::after { transform: translateX(5px); color: var(--blue); }
.floor__rail small {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1f37d6;
}
.floor__rail span {
  padding-right: 28px;
  font-family: var(--font-display);
  font-size: clamp(1.02rem, 1.25vw, 1.18rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0b1640;
  background: none;
}
.floor__rail a:hover span,
.floor__rail a:focus-visible span { background: none; }
.floor__rail a:first-child small::before { /* live dot on the open door */
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.2);
  vertical-align: 1px;
}

/* ---------- entrance: the arch rises, the sun comes up ---------- */
.js .hero--floor:not(.go) .floor__room { clip-path: none; opacity: 0; transform: translateY(48px); }
.floor__room { clip-path: none; transition: transform 1.2s var(--ease-out) 0.15s, opacity 0.9s 0.15s; }
.js .hero--floor:not(.go) .floor__note,
.js .hero--floor:not(.go) .floor__badge { opacity: 0; transform: translateY(14px) scale(0.96); }
.floor__note,
.floor__badge { transition: opacity 0.7s 0.9s, transform 0.9s var(--ease-out) 0.9s; }
.floor__note--b { transition-delay: 1.1s; }
.floor__badge:hover { transform: rotate(-8deg) scale(1.05); transition-delay: 0s; }

/* ---------- tablet and phone ---------- */
@media (max-width: 1100px) {
  .floor__note--a { left: -12%; }
  .floor__note--b { right: -6%; }
}
@media (max-width: 900px) {
  .hero--floor {
    min-height: 0;
    padding-top: calc(var(--header-h) + 14px);
    --sun-x: 50%;
    --sun-y: 58%;
    --horizon: 82%;
  }
  .floor {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "copy" "room" "rail";
    grid-template-rows: auto;
    width: calc(100% - 40px);
  }
  .floor__copy { padding-bottom: 40px; }
  .floor__title { font-size: clamp(2.6rem, 11.5vw, 3.6rem); max-width: none; }
  .floor .btn-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .floor .btn { justify-content: center; width: 100%; }
  .floor__room { width: min(78%, 340px); min-height: 0; max-height: none; }
  .floor__note { font-size: 0.86rem; padding: 10px 14px 10px 38px; }
  .floor__note::before { left: 13px; width: 14px; height: 14px; }
  .floor__note--a { left: -16%; top: auto; bottom: 22%; }
  .floor__note--b { display: none; }
  .floor__badge { right: -14%; top: 4%; width: 84px; }
  .floor__badge svg { font-size: 10.5px; }
  .floor__rail {
    grid-template-columns: 1fr 1fr;
    margin-top: 0;
    border-radius: 20px 20px 0 0;
  }
  .floor__rail a { padding: 16px 16px 18px; border-right: 1px solid rgba(11, 22, 64, 0.1); }
  .floor__rail a:nth-child(2n) { border-right: 0; }
  .floor__rail a:nth-child(n + 3) { border-top: 1px solid rgba(11, 22, 64, 0.1); }
  .floor__rail a::after { right: 14px; bottom: 18px; }
  .floor__rail span { padding-right: 18px; font-size: 0.98rem; }
  .sky__rings { background: repeating-radial-gradient(circle at var(--sun-x) var(--sun-y), rgba(255, 255, 255, 0) 0 47px, rgba(255, 255, 255, 0.13) 47px 48px); }
}

@media (prefers-reduced-motion: reduce) {
  .sky > .sky__sun, .floor__room, .floor__note, .floor__badge { transition: none; }
  .js .hero--floor:not(.go) .sky__sun { opacity: 1; translate: -50% -50%; }
  .js .hero--floor:not(.go) :is(.floor__room, .floor__note, .floor__badge) { opacity: 1; transform: none; }
}
