/* The eclipse and the arrival share the same viewport and physical star. */
.station {
  --ink: #edece5; --locator: #d9c7aa;
  --face: Bahnschrift, "Arial Narrow", "Segoe UI", sans-serif;
  --cjk: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --left: var(--margin); --home-ink: 1; --paper: 0;
  --project-ink: 0; --action-ink: 0; --shelf-ink: 0; --about-ink: 0;
}
#stage::after { content: ""; position: absolute; inset: 0; z-index: 8; pointer-events: none; opacity: calc(.012 * var(--paper)); background: url("./eclipse/grain.png") repeat; }
.falloff, #titles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.falloff { z-index: 1; opacity: var(--paper); background: linear-gradient(180deg,#03030333,transparent 17%,transparent 82%,#03030380); }
#titles { z-index: 2; opacity: var(--paper); }
body:not([data-state="home"]) :is(.falloff, #titles, #project-directory, #about-copy) { visibility: hidden; }
#home-copy { opacity: var(--home-ink); }
body[data-state="home"] .dock { opacity: var(--home-ink); }
.mast { z-index: 7; }
#brand-home { border: 0; padding: 0; background: none; color: inherit; min-height: 44px; pointer-events: auto; }
#brand-home:disabled { pointer-events: none; }
#home-nav { position: relative; }
#home-nav button[aria-expanded="true"] { color: var(--ink); }
:where(#project-directory, #about-copy) :where(button,a,summary) { border: 0; margin-inline: 0; padding: 0; background: none; color: inherit; touch-action: manipulation; text-decoration: none; -webkit-tap-highlight-color: transparent; }
:where(#project-directory, #about-copy) :where(button,a,summary):focus-visible { outline: 1px solid var(--locator); outline-offset: 3px; }
#project-directory[inert], #about-copy[inert], #home-copy[inert] { pointer-events: none; }
#project-directory { color: var(--ink); }
#nav-rule{position:absolute;left:0;bottom:7px;width:19px;height:1.5px;background:#d5d6d4;pointer-events:none;opacity:var(--paper)}
#project-description,#project-action,#about-copy{position:absolute;left:var(--left);z-index:3}
#project-description{top:var(--meta-y,37%);margin:0;color:#bbc3c5;font:400 var(--label-size,19px)/1.35 var(--cjk);letter-spacing:.085em;pointer-events:none;opacity:var(--project-ink,1)}
#project-action{top:var(--action-y,66%);opacity:var(--action-ink,1)}
#project-action :is(a,span),#back-projects{display:inline-flex;align-items:center;gap:16px;min-height:44px;
  font:400 var(--action-size,17px)/1.45 var(--cjk)}
#unavailable{color:#b3bbbd}
.arrow{position:relative;display:inline-block;width:27px;height:12px;color:#dedbd0;transform:rotate(-10deg);transition:translate .18s ease}
.arrow::before,.arrow::after{content:"";position:absolute}
.arrow::before{left:0;right:0;top:50%;border-top:1.4px solid}
.arrow::after{right:1px;top:calc(50% - 3px);width:6px;height:6px;border-top:1.4px solid;border-right:1.4px solid;transform:rotate(45deg)}
:is(a,button):hover .arrow{translate:4px 0}
.shelf{position:absolute;z-index:5;left:var(--left);right:var(--left);bottom:max(3.4svh,env(safe-area-inset-bottom));border-top:1px solid #58626a;
  padding-top:clamp(7px,2svh,20px);opacity:var(--shelf-ink)}
.choices{position:relative;display:flex;justify-content:space-between;align-items:center;padding-right:4.1%}
.choices button{position:relative;min-height:44px;text-align:left;padding:0 8px;color:#a2abad;
  font:450 clamp(15px,1.33vw,23px)/1 var(--face);letter-spacing:.01em}
.choices button[aria-checked="true"]{font-weight:650;color:#f0eee5}
#locator{position:absolute;width:5.5px;height:5.5px;left:0;top:0;border-radius:50%;background:var(--locator);pointer-events:none;opacity:var(--project-ink)}
#about-copy{width:var(--about-width,455px);top:var(--about-y,35%);opacity:var(--about-ink);transform:translateX(var(--about-shift,0px));
  clip-path:inset(-6px var(--about-clip,100%) -8px -5px)}
#about-copy h2{margin:0;line-height:0;font-size:0}
#about-copy img{display:block;width:var(--signature-width,380px);height:auto}
#about-copy p{margin:var(--about-gap,21px) 0 0;font:400 var(--body-size,21px)/1.7 var(--cjk);color:#c3cbd0}
#back-projects{margin-top:var(--back-gap,23px)}

#motion-settings { position: absolute; top: calc(max(4.8%, env(safe-area-inset-top)) + 43px); right: var(--margin); z-index: 6; color: #b9c1c3; font: 12px/1.5 var(--cjk); opacity: var(--action-ink); }
#motion-settings summary { display: grid; width: 44px; height: 44px; place-items: center end; list-style: none; cursor: pointer; }
#motion-settings summary::-webkit-details-marker { display: none; }
#motion-settings summary:hover { color: var(--ink); }
.motion-controls { position: absolute; right: 0; min-width: 115px; padding: 4px 0; background: #0b0c0d; border: 1px solid #45494c; }
.motion-controls button { display: block; width: 100%; min-height: 44px; padding: 0 14px; text-align: left; white-space: nowrap; }
.motion-controls button:enabled:hover { color: white; background: #191a1b; }
.motion-controls button:disabled { opacity: .44; }
@media (max-width:679px),(max-aspect-ratio:1/1) {
  .shelf { bottom: max(15px,env(safe-area-inset-bottom)); padding-top: 8px; }
  .choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding-right: 0; }
  .choices button { font-size: 16px; padding-left: 11px; min-height: 44px; }
  #motion-settings { top: calc(max(21px,env(safe-area-inset-top)) + 43px); }
}
@media (min-width:680px) and (min-aspect-ratio:1/1) and (max-height:470px) {
  .shelf { bottom: 5px; padding-top: 2px; }
  #motion-settings { top: 49px; }
}
html[data-motion="still"] .arrow { transition: none; }
