.orbital-home {
  min-width: 0;
  background: #1b2229;
}
.orbital-home > .night-header {
  position: absolute;
  inset: 0 0 auto;
}
.orbital-home .skip-link {
  position: fixed;
  z-index: 6;
  top: 8px;
  left: 8px;
  padding: 10px;
  transform: translateY(-160%);
}
.orbital-home .skip-link:focus { transform: none; }
.cover {
  --scene-position: 68% 53%;
  --tile-size: clamp(41px, 6.25dvh, 56px);
  --tile-bottom: max(clamp(64px, 8.2dvh, 94px), env(safe-area-inset-bottom));
  position: relative;
  isolation: isolate;
  overflow: clip;
  box-sizing: border-box;
  display: grid;
  align-content: center;
  row-gap: clamp(16px, 2.5vh, 28px);
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(90px, 13vh) max(var(--night-gutter), calc((100% - var(--night-width)) / 2)) var(--tile-bottom);
}
.cover picture, .cover img, .cover video, .cover::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cover picture {
  z-index: -2;
  overflow: hidden;
  isolation: isolate;
  pointer-events: none;
}
.cover video { z-index: -2; pointer-events: none; }
.cover img, .cover video { object-fit: cover; object-position: var(--scene-position); }
.cover::before {
  content: "";
  z-index: -1;
  background: linear-gradient(180deg, #111820a8, transparent 24%, transparent 72%, #10161d85),
    linear-gradient(90deg, #111820bf, #11182048 41%, transparent 74%);
  pointer-events: none;
}
.cover h1 {
  margin: 0;
  font-size: var(--night-size-title);
  font-weight: 300;
  line-height: 1.19;
  letter-spacing: -.035em;
}
.cover h1 span { color: var(--night-accent); }
.cover h1::after {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  margin-top: 18px;
  background: var(--night-accent);
}
.cover p {
  margin: 16px 0 0;
  color: #eeeae3;
  font-size: var(--night-size-body);
  line-height: 1.6;
  white-space: nowrap;
}
.cover-projects {
  position: relative;
  isolation: isolate;
  justify-self: start;
  display: flex;
  gap: clamp(30px, 3.1vw, 45px);
  padding: 22px;
  margin: -22px;
}
.cover-projects::before, .tile-glass::after {
  content: "";
  position: absolute;
  pointer-events: none;
  opacity: 0;
}
.cover-projects::before {
  --halo-radius: 42px;
  z-index: -1;
  inset: calc(-1 * var(--halo-radius));
  /* Draw one halo in the expanded box, offsetting the row-relative cursor coordinates. */
  --halo-x: calc(var(--pointer-x, -100px) + var(--halo-radius));
  --halo-y: calc(var(--pointer-y, -100px) + var(--halo-radius));
  background: radial-gradient(var(--halo-radius) circle at var(--halo-x) var(--halo-y), #ffdfa62b, transparent) border-box no-repeat;
}
.cover-projects.is-lit::before, .is-lit .tile-glass::after { opacity: 1; }
.project-tile {
  position: relative;
  display: grid;
  grid-template-columns: var(--tile-size);
  justify-content: start;
  justify-items: center;
  align-content: start;
  gap: 6px;
  width: max(44px, var(--tile-size));
  color: #dedbd5;
  text-align: center;
  text-decoration: none;
  font-size: var(--night-size-meta);
  font-weight: 350;
  line-height: 1.4;
}
.tile-glass {
  position: relative;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: var(--tile-size);
  aspect-ratio: 1;
  border: 1px solid #f5e9d731;
  background: #151a1f24;
}
.tile-glass::after {
  inset: -1px;
  border: 1px solid #ffe8bdc4;
  background: radial-gradient(50px circle at var(--light-x, -100px) var(--light-y, -100px), #ffe9c159, transparent);
  mask-image: radial-gradient(72px circle at var(--light-x, -100px) var(--light-y, -100px), black 8%, transparent);
}
.tile-glass svg {
  position: relative;
  z-index: 1;
  width: clamp(17px, 2.5dvh, 23px);
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.project-tile :is([data-project-field], .tile-label) {
  width: max-content;
  max-width: calc(max(44px, var(--tile-size)) + 30px);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.project-tile:is(:focus-visible, :active) .tile-glass { border-color: var(--night-accent); background-color: #463e328c; }
@media (any-hover: hover) {
  .project-tile:hover { color: #fff2dd; }
  .project-tile:hover .tile-glass { border-color: #f1d8ac61; }
}
@media (any-hover: hover) and (prefers-reduced-motion: no-preference) {
  .project-tile:hover .tile-glass { transform: translateY(-2px) scale(1.085); }
}
@media (prefers-reduced-motion: no-preference) {
  .tile-glass { transition: transform .18s ease-out, border-color .18s, background-color .18s; }
  .cover-projects::before, .tile-glass::after { transition: opacity .15s; }
}
.cover-motion-control {
  position: absolute;
  inset-inline-start: max(var(--night-gutter), calc((100% - var(--night-width)) / 2));
  bottom: max(6px, env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center start;
  color: #e3e1dc;
  cursor: pointer;
}
.cover-motion-control input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cover-motion-control svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linejoin: round; stroke-width: 1.3; }
.cover-motion-control circle { stroke-opacity: .58; }
.cover-motion-control .play, .cover-motion-control input:checked ~ svg .pause { display: none; }
.cover-motion-control input:checked ~ svg .play { display: inline; }
.cover-motion-control:has(input:focus-visible) { outline: 1px solid var(--night-accent); outline-offset: 2px; }
.cover-filing {
  position: absolute;
  inset-inline-end: max(var(--night-gutter), calc((100% - var(--night-width)) / 2));
  bottom: max(6px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  min-height: 44px;
  color: #e3e1dc;
  font-size: var(--night-size-meta);
  text-decoration: none;
}
.cover-filing:hover { text-decoration: underline; }
@media (max-width: 600px) and (orientation: portrait) {
  .cover {
    --tile-size: clamp(39px, 11vw, 47px);
    --tile-bottom: calc(max(6px, env(safe-area-inset-bottom)) + clamp(80px, 10dvh, 104px));
    align-content: end;
    padding-top: 128px;
  }
  .cover { --scene-position: 65% 48%; }
  .cover::before {
    background: linear-gradient(180deg, #111820c4, transparent 34%, transparent 46%, #11182094 74%, #111820c9);
  }
}
@media (max-width: 380px) {
  .cover-projects { gap: clamp(18px, 6vw, 23px); }
}
@media (max-height: 450px) and (orientation: landscape) {
  .cover { --tile-size: 38px; --tile-bottom: max(39px, env(safe-area-inset-bottom)); row-gap: 8px; }
  .project-tile { gap: 4px; }
}
@media (max-width: 680px) and (max-height: 450px) and (orientation: landscape) {
  .cover { padding-top: 110px; }
  .cover h1::after { margin-top: 10px; }
  .cover p { margin-top: 8px; }
}
