/* Selected visual direction: Night Voyage. Raster scenery, semantic live UI. */
.night-frame {
  min-height: 100svh;
  background: #0b1021;
}
.night-frame .shell {
  max-width: 1440px;
}
.night-masthead {
  position: absolute;
  z-index: 60;
  top: 0;
  inset-inline: 0;
}
.night-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.night-topbar .nav-links {
  display: flex;
  align-items: center;
  gap: 42px;
  margin-left: 0;
}
.night-topbar .nav-links a {
  padding: 14px 0;
  color: #c8d1ec;
  font-size: 15px;
  transition: color 0.2s;
}
.night-topbar .nav-links a:hover {
  color: #fff;
}
.night-topbar .nav-secondary {
  display: none;
}
.night-contact {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 25px;
  border-radius: 40px;
  background: #657af6;
  color: #fff;
  font-weight: 550;
}
.night-contact:hover {
  background: #7a8cff;
}
.night-topbar .menu-toggle {
  display: none;
}
.night-hero {
  position: relative;
  min-height: 640px;
  isolation: isolate;
}
.night-landscape {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.night-landscape img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.night-hero-inner {
  height: 640px;
  min-height: 640px;
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-block: 142px 30px;
}
.night-hero-copy {
  position: relative;
  z-index: 3;
  width: 62%;
}
.night-eyebrow {
  color: #a9b7ff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.24em;
}
.night-hero-copy .night-eyebrow {
  margin: 0 0 11px;
}
.night-hero h1 {
  margin: 0 0 20px;
  font-family: "Cat Ear Display", var(--font-sans);
  font-size: clamp(48px, 6.1vw, 96px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.045em;
  color: #f6f7fd;
  white-space: nowrap;
}
.night-hero h1 span {
  color: #8b9aff;
}
.night-introduction {
  color: #e0e5f4;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.75;
  margin: 0 0 27px;
}
.night-hero-actions {
  display: flex;
  align-items: center;
  gap: 35px;
}
.night-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  min-height: 60px;
  padding: 14px 46px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border-radius: 40px;
  background: #657af6;
  transition:
    background 0.2s,
    translate 0.2s,
    box-shadow 0.2s;
}
.night-primary:hover {
  background: #7c8eff;
  box-shadow: 0 6px 30px #6079ff25;
  translate: 0 -2px;
}
.night-primary:active {
  translate: 0 1px;
}
.night-text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #b7c3f4;
  font-size: 17px;
  padding-block: 12px;
}
.night-text-link:hover {
  color: #fff;
}
.night-availability {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
  color: #a7b4d5;
  font-size: 14px;
}
.night-status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6cddba;
}
.night-character {
  position: absolute;
  z-index: 1;
  height: 642px;
  width: auto;
  max-width: none;
  object-fit: contain;
  right: 12.5%;
  bottom: -28px;
  pointer-events: none;
  transform-origin: center bottom;
}
.night-orbit-caption,
.night-code-caption {
  position: absolute;
  color: #a2b4ff;
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: 0.2em;
}
.night-orbit-caption {
  right: 0;
  top: 135px;
}
.night-code-caption {
  right: 47%;
  bottom: 140px;
}
.night-feature {
  position: relative;
  min-height: 302px;
  border-top: 1px solid #9ab0ff40;
}
.night-feature-copy {
  position: relative;
  z-index: 3;
  padding-block: 33px 17px;
  width: 54%;
  pointer-events: none;
}
.night-feature-copy a {
  pointer-events: auto;
}
.night-feature .night-eyebrow {
  margin-bottom: 24px;
  font-size: 11px;
  letter-spacing: 0.21em;
}
.night-feature .night-eyebrow span {
  margin-left: 12px;
}
.night-feature-info {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}
.night-app-icon {
  width: 142px;
  height: 142px;
  border-radius: 31px;
  margin-top: 3px;
}
.night-feature h2 {
  margin: -5px 0 0;
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 1.3;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.night-feature-subtitle {
  margin: 2px 0 11px;
  font-size: 15px;
  color: #e0e6f6;
  line-height: 1.8;
}
.night-feature-description {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.65;
  color: #aab8d4;
}
.night-underlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  border-bottom: 1px solid #7f97fa;
  color: #a4b5ff;
  font-size: 16px;
}
.night-underlink:hover {
  color: #e0e7ff;
  border-color: #e0e7ff;
}
.night-device-link {
  position: absolute;
  width: 52%;
  height: calc(100% + 48px);
  right: -12px;
  bottom: 0;
  z-index: 2;
  overflow: hidden;
}
.night-device-link picture {
  display: block;
  width: 100%;
  height: 100%;
}
.night-device-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.night-demo-label {
  position: absolute;
  right: 18px;
  bottom: 8px;
  font-size: 9px;
  padding: 3px 8px;
  color: #b7c9ec;
  background: #0b1021c9;
  border-radius: 4px;
  letter-spacing: 0.06em;
}
.night-project-index {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 40px;
  border-top: 1px solid #9ab0ff40;
}
.night-project-index > p {
  font-size: 11px;
  color: #a8b8dc;
  margin: 0 30px 0 0;
  white-space: nowrap;
}
.night-project-index > p span {
  margin-left: 8px;
}
.night-project-index > a {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 48px;
  font-size: 16px;
  line-height: 1.5;
  padding-block: 10px;
}
.night-project-index > a + a:not(.night-all-work) {
  border-left: 1px solid #a0adff35;
  padding-left: 36px;
}
.night-project-index small {
  display: block;
  color: #a5b2d0;
  font-size: 11px;
  margin-top: 2px;
}
.night-project-index a .night-icon {
  width: 18px;
  height: 18px;
  opacity: 0.6;
}
.night-project-index a:hover {
  color: #b5c4ff;
}
.night-project-index > a.night-all-work {
  margin-left: auto;
  color: #aebeff;
  font-size: 14px;
  gap: 12px;
  border-bottom: 1px solid #a0adff40;
}
.night-explore {
  padding-block: 100px 85px;
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 80px;
  border-top: 1px solid #a0adff20;
}
.night-section-heading .night-eyebrow {
  margin-bottom: 21px;
}
.night-section-heading h2 {
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.4;
  margin: 0 0 18px;
}
.night-section-heading > p:last-child {
  font-size: 15px;
  color: #aab6d2;
}
.night-explore-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}
.night-explore-links > a {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 26px 0;
  border-bottom: 1px solid #a0adff25;
}
.night-explore-links > a:nth-child(-n + 2) {
  padding-top: 0;
}
.night-explore-links > a > .night-icon:first-child {
  margin-top: 4px;
  color: #a0adff;
}
.night-explore-links > a > .night-icon:last-child {
  margin: 4px 0 0 auto;
  width: 18px;
  height: 18px;
  color: #8f9ecb;
}
.night-explore-links h3 {
  font-size: 17px;
  font-weight: 550;
  margin: 0 0 7px;
}
.night-explore-links p {
  font-size: 13px;
  line-height: 1.7;
  color: #9caac9;
  margin: 0;
}
.night-explore-links > a:hover h3 {
  color: #aebeff;
}
.night-hello {
  padding-block: 55px 65px;
  border-top: 1px solid #a0adff30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.night-hello .night-eyebrow {
  margin-bottom: 16px;
}
.night-hello h2 {
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.5;
  margin: 0 0 12px;
}
.night-hello p:last-child {
  color: #aab6d2;
  margin: 0;
}
.night-hello .night-primary {
  font-size: 16px;
  min-height: 54px;
}
.night-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 28px;
  padding-block: 28px;
  border-top: 1px solid #a0adff22;
}
.night-footer-wordmark {
  font-weight: 650;
  font-size: 16px;
  letter-spacing: 0.1em;
  margin-right: auto;
}
.night-footer-wordmark span {
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 400;
  margin-left: 20px;
  color: #98a8ca;
}
.night-footer > a:nth-child(2) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #adbce1;
}
.night-footer .night-icon {
  width: 16px;
  height: 16px;
}
.night-footer .media-toggle {
  position: static;
  padding: 8px 12px;
  background: none;
  backdrop-filter: none;
}
.night-footer .command-trigger {
  padding: 6px 12px;
}
.night-copyright {
  color: #95a3c2;
  flex-basis: 100%;
  font-size: 10px;
  margin-top: -8px;
}
.night-frame > .explorer-dock {
  display: none;
}
.effects-on .night-character {
  animation: night-drift 7s ease-in-out infinite;
}
@keyframes night-drift {
  50% {
    transform: translateY(-9px);
  }
}
@media (min-width: 1700px) {
  .night-hero-inner,
  .night-hero {
    height: 720px;
    min-height: 720px;
  }
  .night-character {
    height: 655px;
  }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .night-topbar .nav-links {
    gap: 24px;
    margin-left: 0;
  }
  .night-hero-inner,
  .night-hero {
    height: 590px;
    min-height: 590px;
  }
  .night-hero h1 {
    font-size: 5.45vw;
  }
  .night-character {
    height: 520px;
    right: 6%;
  }
  .night-introduction {
    font-size: 16px;
  }
  .night-code-caption {
    display: none;
  }
  .night-primary {
    padding-inline: 26px;
    font-size: 16px;
    min-height: 54px;
  }
  .night-hero-actions {
    gap: 24px;
  }
  .night-project-index {
    gap: 24px;
  }
  .night-project-index > p {
    margin-right: 0;
  }
  .night-project-index > p span {
    display: none;
  }
  .night-project-index > a {
    font-size: 14px;
    gap: 12px;
  }
  .night-project-index > a + a:not(.night-all-work) {
    padding-left: 24px;
  }
  .night-app-icon {
    width: 100px;
    height: 100px;
    border-radius: 23px;
  }
  .night-feature-info {
    gap: 20px;
  }
  .night-feature-copy {
    width: 57%;
  }
  .night-feature-subtitle {
    font-size: 13px;
  }
  .night-explore {
    gap: 40px;
    grid-template-columns: 0.8fr 1.2fr;
  }
  .night-explore-links {
    column-gap: 24px;
  }
}
@media (max-width: 768px) {
  .night-topbar {
    display: flex;
    min-height: 76px;
    gap: 16px;
  }
  .night-topbar .brand {
    margin-right: auto;
    gap: 10px;
  }
  .night-contact {
    font-size: 12px;
    padding: 8px 15px;
    min-height: 38px;
    gap: 7px;
  }
  .night-contact .night-icon {
    width: 16px;
    height: 16px;
  }
  .night-topbar .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    padding: 0;
    border-color: #a0adff40;
    background: #111a30;
    border-radius: 10px;
  }
  .night-topbar .menu-toggle[aria-expanded="true"] .night-icon {
    --icon: url("/media/night/icons/x.svg");
  }
  .night-topbar .nav-links {
    display: none;
    position: absolute;
    top: 73px;
    right: 0;
    width: min(330px, calc(100vw - 44px));
    margin: 0;
    padding: 16px 24px;
    border-radius: 14px;
    background: #111a30;
    border: 1px solid #a0adff44;
    box-shadow: 0 20px 60px #020514d0;
  }
  .night-topbar .nav-links.is-open {
    display: grid;
    gap: 0;
  }
  .night-topbar .nav-links a {
    padding-block: 11px;
    font-size: 15px;
    border-bottom: 1px solid #a0adff20;
  }
  .night-topbar .nav-links .nav-secondary {
    display: block;
  }
  .night-topbar .nav-links a:last-child {
    border-bottom: 0;
  }
  .night-topbar {
    position: relative;
  }
  .night-hero,
  .night-hero-inner {
    height: auto;
    min-height: 760px;
  }
  .night-hero-inner {
    display: block;
    padding-block: 118px 305px;
  }
  .night-hero-copy {
    width: 100%;
  }
  .night-hero-copy .night-eyebrow {
    font-size: 10px;
    letter-spacing: 0.2em;
    margin-bottom: 22px;
  }
  .night-hero h1 {
    font-size: clamp(35px, 9.8vw, 64px);
    line-height: 1.32;
    letter-spacing: -0.055em;
    margin-bottom: 24px;
  }
  .night-introduction {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 24px;
  }
  .night-hero-actions {
    gap: 22px;
  }
  .night-primary {
    font-size: 15px;
    min-height: 50px;
    padding: 12px 23px;
    gap: 12px;
  }
  .night-text-link {
    font-size: 14px;
    gap: 8px;
  }
  .night-text-link .night-icon {
    width: 18px;
    height: 18px;
  }
  .night-availability {
    font-size: 12px;
    margin-top: 17px;
  }
  .night-status-dot {
    width: 8px;
    height: 8px;
  }
  .night-landscape {
    mask-image: linear-gradient(to bottom, transparent, #000 22%);
    top: auto;
    height: 385px;
    bottom: 0;
  }
  .night-landscape img {
    width: 100%;
    object-fit: cover;
    object-position: 83% center;
  }
  .night-character {
    height: 340px;
    right: 15%;
    bottom: -12px;
  }
  .night-orbit-caption {
    right: 0;
    top: auto;
    bottom: 220px;
    font-size: 8px;
  }
  .night-code-caption {
    display: none;
  }
  .night-feature {
    min-height: 0;
  }
  .night-feature-copy {
    width: 100%;
    padding-block: 28px 18px;
  }
  .night-feature .night-eyebrow {
    font-size: 10px;
    margin-bottom: 22px;
  }
  .night-feature .night-eyebrow span {
    margin-left: 5px;
  }
  .night-app-icon {
    width: 74px;
    height: 74px;
    border-radius: 17px;
    margin-top: 4px;
  }
  .night-feature-info {
    gap: 18px;
  }
  .night-feature h2 {
    font-size: clamp(31px, 8.8vw, 46px);
    line-height: 1.3;
    margin: 0 0 8px;
  }
  .night-feature-subtitle {
    font-size: 12px;
    line-height: 1.8;
    max-width: 250px;
    margin: 0 0 10px;
  }
  .night-feature-description {
    font-size: 13px;
    line-height: 1.8;
  }
  .night-underlink {
    font-size: 14px;
  }
  .night-underlink .night-icon {
    width: 18px;
    height: 18px;
  }
  .night-device-link {
    position: relative;
    display: block;
    width: calc(100% + 44px);
    margin-inline: -22px;
    height: 315px;
    right: auto;
    bottom: auto;
  }
  .night-device-link img {
    object-fit: cover;
    object-position: center top;
  }
  .night-demo-label {
    right: 25px;
    bottom: 8px;
  }
  .night-project-index {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 0;
    padding-block: 16px 22px;
  }
  .night-project-index > p {
    grid-column: 1 / -1;
    font-size: 10px;
    margin: 0 0 10px;
  }
  .night-project-index > p span {
    margin-left: 6px;
  }
  .night-project-index > a {
    font-size: 14px;
    gap: 8px;
    justify-content: space-between;
  }
  .night-project-index > a + a:not(.night-all-work) {
    padding-left: 20px;
  }
  .night-project-index > a.night-all-work {
    grid-column: 1 / -1;
    margin: 12px 0 0;
    justify-self: start;
    min-height: 40px;
    font-size: 13px;
  }
  .night-explore {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 48px;
  }
  .night-section-heading .night-eyebrow {
    font-size: 10px;
    margin-bottom: 14px;
  }
  .night-section-heading h2 {
    font-size: 29px;
    margin-bottom: 12px;
  }
  .night-section-heading > p:last-child {
    font-size: 13px;
  }
  .night-explore-links {
    grid-template-columns: 1fr;
  }
  .night-explore-links > a,
  .night-explore-links > a:nth-child(-n + 2) {
    padding: 20px 0;
    align-items: center;
  }
  .night-explore-links h3 {
    font-size: 16px;
    margin-bottom: 4px;
  }
  .night-explore-links p {
    font-size: 12px;
  }
  .night-hello {
    flex-direction: column;
    align-items: flex-start;
    padding-block: 38px 44px;
    gap: 22px;
  }
  .night-hello h2 {
    font-size: 29px;
  }
  .night-hello .night-eyebrow {
    font-size: 10px;
  }
  .night-hello p:last-child {
    font-size: 13px;
  }
  .night-hello .night-primary {
    font-size: 14px;
    min-height: 48px;
  }
  .night-footer {
    gap: 18px 22px;
    padding-block: 25px 30px;
  }
  .night-footer-wordmark {
    width: 100%;
  }
  .night-footer > a:nth-child(2) {
    width: 100%;
    font-size: 12px;
  }
  .night-footer .media-toggle {
    margin-left: auto;
  }
  .night-copyright {
    margin-top: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .night-character {
    animation: none !important;
  }
  .night-primary {
    transition: none;
  }
}

@media (min-width: 769px) {
  .night-device-link img {
    width: 155%;
    max-width: none;
    height: auto;
    position: absolute;
    top: -28px;
    left: -28%;
  }
}
@media (max-width: 360px) {
  .night-topbar .night-contact {
    display: none;
  }
}

/* Reuse the transparent product composition at independent device scales. */
.night-watch-layer {
  display: none !important;
}
@media (min-width: 769px) {
  .night-device-link > picture:first-child img {
    clip-path: inset(0 42% 0 0);
  }
  .night-device-link .night-watch-layer {
    display: block !important;
    position: absolute;
    inset: 0;
  }
  .night-device-link .night-watch-layer img {
    width: 110%;
    left: -6%;
    top: 0;
    clip-path: inset(20% 12% 27% 60%);
  }
}
/* Original student silhouette needs a narrower slot than the previous character. */
.night-character {
  height: 590px;
  right: 10%;
  bottom: -20px;
}
@media (min-width: 1700px) {
  .night-character {
    height: 650px;
  }
}
@media (min-width: 769px) and (max-width: 1100px) {
  .night-character {
    height: 515px;
    right: 5%;
  }
}
@media (max-width: 768px) {
  .night-character {
    height: 340px;
    right: 12%;
    bottom: -8px;
  }
}
