/* Neptunion's pages (site/neptunion). One black sky drawn in characters behind
   everything (neptunion.js); the words in a sans of normal proportions, the
   small print and the listings in a monospace; the pictures of the app are the
   app's own dark windows, borrowed from the old site's scenes (/assets/v-*). */

:root {
  --ink: #ffffff;
  --soft: #c9cfe2;
  --dim: #8089a6;
  --faint: #2b3044;
  --line: rgba(190, 210, 255, .14);
  --blue: #6a9df4;
  --sans: "Mona Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* The app's own face, for the pictures of it: the system's, as the app uses. */
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gut: clamp(20px, 5vw, 76px);
  /* The bar's height: held pictures (pin.js) stand under it. */
  --bar-h: 66px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* No scroll anchoring: the scenes rearrange what is in them as they play, and
   the browser kept moving the page to follow whatever it had anchored to, so
   the page drifted on its own while somebody read (2026-11-11). */
html { background: #000; scroll-behavior: smooth; scroll-padding-top: var(--bar-h); overflow-anchor: none; }
body { margin: 0; color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
h1, h2, h3, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--blue); color: #000; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
/* The dark that comes up over the whole sky while words stand over the planet
   and lifts as they scroll away (stage.js), a little deeper in the middle.
   It was asked for lighter twice (2026-11-12). Scaling what shows through by
   a quarter (.88/.80/.72 to .85/.75/.65) was too small to see, so the second
   time the darkness itself is a quarter less: .85, .75 and .65 became .64,
   .56 and .49. */
#veil {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(130% 100% at 50% 50%, rgba(0, 0, 0, .64), rgba(0, 0, 0, .56) 55%, rgba(0, 0, 0, .49));
}
/* The app's glyphs, painted into [data-g] by neptunion.js from /assets/glyphs.js. */
.g { display: inline-flex; align-items: center; justify-content: center; flex: none; color: inherit; }
.g svg { display: block; fill: currentColor; width: calc(var(--gw, 1) * 1em); height: calc(var(--gh, 1) * 1em); }

/* ---------------------------------------------------------------- the bar */
.top { position: fixed; z-index: 10; top: 0; left: 0; right: 0; height: var(--bar-h); display: flex; align-items: center; gap: 30px; padding: 0 var(--gut); font: 500 12.5px/1 var(--mono); }
/* What scrolls under the bar fades out instead of running through its words. */
.top::before { content: ""; position: absolute; inset: 0 0 -30px; background: linear-gradient(#000 40%, transparent); z-index: -1; pointer-events: none; }
/* The name over "built on Octropy", as the first screen and the app's opening
   set them: every page says what Neptunion is built on (2026-11-17). */
.name { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 5px; margin-right: auto; font: 600 17px/1 var(--sans); font-stretch: 105%; letter-spacing: -.02em; text-decoration: none; }
.name-by { font: 500 9.5px/1 var(--mono); letter-spacing: .06em; color: var(--blue); }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--soft); text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
/* A narrow window has no room for the pages beside the name: one press
   opens them under the bar (page.js), and the bar keeps its height. */
.menu { display: none; padding: 8px 2px; background: none; border: 0; color: var(--soft); font: inherit; cursor: pointer; }
.menu:hover, .top.open .menu { color: var(--ink); }

.key { display: inline-block; padding: 13px 20px; background: var(--ink); color: #000; border: 1px solid var(--ink); font: 500 13px/1 var(--mono); text-decoration: none; text-shadow: none; transition: background .2s, color .2s; }
.key:hover { background: #000; color: var(--ink); }
.key.ghost { background: none; color: var(--ink); }
.key.ghost:hover { background: var(--ink); color: #000; }
.key.small { padding: 8px 13px; font-size: 12px; }

/* ---------------------------------------------------------------- the type
   Titles in a sans drawn at its normal width (2026-11-11: the condensed mono
   read as stretched upward). */
main { position: relative; z-index: 1; }
/* The landing's title is nine letters since the rename (Neptune was seven), so it
   is set 17% smaller: as wide as before, it still stops short of the planet that
   neptunion.js stands right of the words' 640px. */
h1 { font: 600 clamp(64px, 8.6vw, 139px)/.9 var(--sans); font-stretch: 108%; letter-spacing: -.045em; }
h2 { font: 560 clamp(34px, 4.6vw, 66px)/1.02 var(--sans); font-stretch: 104%; letter-spacing: -.035em; text-wrap: balance; }
h3 { font: 560 clamp(26px, 2.6vw, 36px)/1.05 var(--sans); font-stretch: 104%; letter-spacing: -.03em; }
.say { max-width: 34em; font-size: clamp(16.5px, 1.35vw, 19px); line-height: 1.55; color: var(--soft); text-wrap: pretty; }
.say + .say { margin-top: 1em; }
.fine { font: 400 12.5px/1.6 var(--mono); color: var(--dim); }
.fine a { color: var(--soft); }
/* Words over the sky keep a little dark round them, so a ring behind never runs
   through them: a shadow on each letter and a soft pool of night under the block. */
.over { text-shadow: 0 0 18px #000, 0 0 4px #000, 0 0 1px #000; }
.over .col, .stage-head { position: relative; }
.over .col::before, .stage-head::before {
  content: ""; position: absolute; inset: -70px -110px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .86), rgba(0, 0, 0, .62) 55%, transparent);
}
.soon .col::before { inset: -40px -60px -20px; }

/* ---------------------------------------------------------------- the parts
   Every part scrolls with the page (2026-11-11: held still and faded in place,
   the scrolling felt "disconnected"); its words and picture are in .held. An
   empty stretch (.fly) is the sky's alone. Clipped across: the dark pools
   under the words reach past the column, which on a phone widens the page;
   clip, unlike hidden, leaves the held pictures sticky. */
.part { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 120px var(--gut) 100px; overflow-x: clip; }
.held { width: 100%; }
.fly { height: calc(var(--len, 1.8) * 100vh); }
/* Reduced motion: no stretches of sky. */
.calm .fly { display: none; }
.col { width: min(100%, 600px); }
.col .say { margin-top: 22px; }
.col .key, .col .fine, .col .acts { margin-top: 32px; }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.acts .fine { margin: 0; }
/* A download block (get.js): the button for this computer, the other builds
   beside it, then what it runs on and the first open. Its small print is a
   step lighter, since it is read over the planet's rings. The button stands
   where the one before it did: 64px under a first screen's words, 32px under
   the last screen's. */
.col .get { margin-top: 64px; }
.col .get .acts, .col .get .key { margin-top: 0; }
.get .fine { color: var(--soft); }
.get .fine a { color: var(--ink); }
.get .fine a:hover { color: var(--blue); }
.col .get .req { margin-top: 18px; }
.col .get .first { margin-top: 2px; text-wrap: balance; }

/* An audience page's first screen: who it is for, over a smaller title. */
.tag { margin-bottom: 18px; color: var(--soft); }
h1.sub { font-size: clamp(46px, 5.6vw, 86px); line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
.col:has(h1.sub) { width: min(100%, 660px); }

/* The first screen is the app's own opening (2026-11-17): the name, "built on
   Octropy" under it in the sky's characters and Neptunion's blue as the app
   draws it (pn-ui chrome/welcome.css), and the planet beside them, its middle
   level with theirs (neptunion.js, landing). It is the window less --peek, so
   the line under it and the top of the film are there before any scroll. */
.hero { display: block; padding: 0 var(--gut) clamp(96px, 13vh, 150px); --peek: clamp(200px, 27vh, 280px); }
.hero .mark { display: flex; align-items: center; height: calc(100vh - var(--peek)); height: calc(100svh - var(--peek)); min-height: 360px; padding-top: var(--bar-h); }
.hero .col { width: min(100%, 640px); }
.by { display: inline-block; margin-top: 1.5em; font: 500 clamp(12px, 1.15vw, 17px)/1 var(--mono); letter-spacing: .06em; color: var(--blue); text-decoration: none; }
.by:hover { text-decoration: underline; }
/* Octropy named in Neptunion's blue, as under the name: the network the app is the first one built on. */
.oct { color: var(--blue); }
/* Under it, what the app is in one line, and the app itself in use: a film of
   its own window (app-shots.mjs tour), framed as the window it is, in the
   middle of the page; then the download. */
.intro { text-align: center; }
.intro > .say { position: relative; margin-inline: auto; max-width: 36em; }
.intro > .say::before {
  content: ""; position: absolute; inset: -36px -90px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .8), rgba(0, 0, 0, .5) 60%, transparent);
}
.film { width: min(100%, 1040px); margin: clamp(26px, 3.4vh, 36px) auto 0; overflow: hidden; border-radius: 12px; background: #0c0c0e; border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(0, 0, 0, .7); }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 1200; }
.intro .get { margin-top: clamp(40px, 5vw, 64px); }
.intro .acts { justify-content: center; }
.intro .get .req { margin-top: 18px; }
.intro .get .first { margin-top: 2px; text-wrap: balance; }

/* A stage: a claim centred and its picture under it, the width of the window. */
.stage { display: block; min-height: 0; padding: clamp(120px, 15vw, 200px) var(--gut) 0; }
.stage-head { max-width: 820px; margin-inline: auto; text-align: center; }
.stage-head .say { margin: 20px auto 0; max-width: 40em; }
/* The pictures at most 860px wide (2026-11-11: they took too much of the page). */
.stage-v { position: relative; width: min(100%, 860px); margin: clamp(36px, 4.5vw, 60px) auto 0; container-type: inline-size; }
.stage-v.bleed { width: 100%; }
.stage-fine { max-width: 60ch; margin: 26px auto 0; text-align: center; }
.stage-more { display: flex; justify-content: center; margin-top: 34px; }

/* A held picture (pin.js): it stands in a track taller than itself while the page goes by. */
.pin-track { position: relative; margin-top: clamp(44px, 6vw, 80px); }
.pin-track.pin-headed { margin-top: 0; }
.pin-hold { position: -webkit-sticky; position: sticky; z-index: 1; display: flow-root; }
.pin-hold > .stage-v { margin-top: 0; transform-origin: 50% 0; }
.pz, .pz *, .pz *::before, .pz *::after { animation-play-state: paused !important; }

/* The old site's scenes drew the app a grey too light; the app's dark theme is
   nearly black (theme.css: --ground #0c0c0e, --surface #17171a). */
html body .vb-gp, html body .vs-gp, html body .vx-gp { background: #0c0c0e; border-color: rgba(255, 255, 255, .12); }
html body .vs, html body .vx { --vs-ground: #0c0c0e; --vs-surface: #17171a; --vx-surface: #17171a; }
html body .vx-dc-pop, html body .vx-ix-card, html body .vb-mbar { background: #17171a; }

/* The Store's scenes, cropped to their focus, three across. */
.exts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); width: min(100%, 900px); margin: clamp(36px, 4.5vw, 60px) auto 0; }
.ext-c { display: block; color: inherit; text-decoration: none; }
.ext-v { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #0c0c0e; container-type: inline-size; transition: border-color .3s ease; }
.ext-c:hover .ext-v { border-color: rgba(200, 220, 255, .34); }
.ext-c b { display: block; margin-top: 16px; font: 560 20px/1.2 var(--sans); font-stretch: 104%; letter-spacing: -.02em; }
.ext-c span { display: block; margin-top: 4px; max-width: 34ch; font-size: 15px; line-height: 1.45; color: var(--soft); }


/* The doors: one way in for students, one for businesses, each with its
   picture, small enough to leave the planet its room beside them. */
#doors .col { width: min(100%, 640px); }
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: clamp(28px, 3.4vw, 40px); }
.door {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; color: var(--ink); text-decoration: none;
  background: #0c0c0e; border: 1px solid var(--line);
  transition: transform .4s var(--ease), border-color .3s ease; text-shadow: none;
}
.door:hover { transform: translateY(-4px); border-color: rgba(200, 220, 255, .34); }
.door-v { position: relative; height: clamp(150px, 12.5vw, 180px); container-type: inline-size; overflow: hidden; }
.door-t { padding: 6px 20px 20px; }
.door-t h3 { font-size: clamp(20px, 1.7vw, 23px); }
.door-t p { margin-top: 8px; font-size: 14.5px; line-height: 1.45; color: var(--soft); }
.door-t .go { display: inline-block; margin-top: 14px; font: 500 12px/1 var(--mono); color: var(--ink); }
.door-t .go::after { content: " ->"; color: var(--blue); }

/* Questions, opened one at a time. */
.asks { width: min(100%, 760px); margin: 40px auto 0; }
.asks details { border-top: 1px solid var(--line); background: rgba(0, 0, 0, .6); }
.asks details:last-child { border-bottom: 1px solid var(--line); }
.asks summary { cursor: pointer; list-style: none; padding: 20px 4px; font: 500 18px/1.35 var(--sans); }
.asks summary::-webkit-details-marker { display: none; }
.asks summary::before { content: "+"; display: inline-block; width: 1.4em; font-family: var(--mono); color: var(--blue); }
.asks details[open] summary::before { content: "-"; }
.asks details p { padding: 0 4px 20px 1.75em; max-width: 60ch; color: var(--soft); }

/* The last screen: the words over the planet's edge. */
.soon { align-items: flex-start; justify-content: center; text-align: center; padding-top: calc(var(--bar-h) + 12vh); }
.soon .held { display: flex; flex-direction: column; align-items: center; }
.soon .col { width: min(100%, 760px); }
/* Big enough to be the page's last word the moment it comes in (2026-11-12:
   the end took "too much scrolling for just the coming soon to pop up"). */
.soon h2 { font-size: clamp(54px, 8.4vw, 128px); line-height: .96; letter-spacing: -.045em; }
.soon .say { margin-inline: auto; }
.soon .get { margin-top: 32px; }
.soon .acts { justify-content: center; }

footer { position: relative; z-index: 2; margin-top: -110px; min-height: 110px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 28px; padding: 44px var(--gut) 22px; font: 400 12px/1.4 var(--mono); background: linear-gradient(transparent, #000 62%); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer > span a { color: var(--blue); }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .menu { display: block; min-height: 44px; }
  .nav { display: none; }
  /* Open, the pages fill the window under the bar in the titles' face, each
     a thumb's height (2026-11-16: the small mono list was hard to hit). */
  .top.open::before { inset: 0; background: #000; }
  .top.open .nav {
    position: fixed; top: var(--bar-h); left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 0;
    padding: 8px var(--gut) calc(28px + env(safe-area-inset-bottom)); background: #000; overflow-y: auto; overscroll-behavior: contain;
  }
  .top.open .nav a { padding: 18px 0; font: 560 28px/1.1 var(--sans); font-stretch: 104%; letter-spacing: -.025em; color: var(--ink); border-top: 1px solid var(--line); }
  .top.open .nav a:first-child { border-top: 0; }
  .top.open .nav a::after { content: "->"; float: right; margin-top: .3em; font: 400 14px/1 var(--mono); color: var(--blue); }
}
html.menu-open, html.menu-open body { overflow: hidden; }
@media (max-width: 520px) {
  /* A phone has no build to take: the bar keeps the name and the menu. */
  .top .key { display: none; }
  /* "Download for Mac with Apple chip" on one line down to a 360px phone. */
  .key { padding: 14px 16px; font-size: 12px; }
}
/* An upright tablet has the planet in its top corner (neptunion.js): the name
   stands under it, and the line and the film follow, instead of the name in
   the middle of an empty window. */
@media (max-width: 1000px) and (orientation: portrait) {
  .hero .mark { height: auto; min-height: 0; padding-top: calc(var(--bar-h) + 24vh); padding-top: calc(var(--bar-h) + 24svh); }
  .intro { margin-top: 56px; }
}
@media (max-width: 760px) {
  .top { gap: 14px; }
  .part { padding-top: 96px; }
  /* On a phone the planet stands above the words, in the top third of the
     window (neptunion.js NARROW): the first screen's words, and those of
     every part whose words stand over the sky, start under that third
     (2026-11-16). The dark pool keeps close to the words, off the planet. */
  main > section:first-of-type, .part.over:not(.soon) {
    align-items: flex-end; padding-top: calc(var(--bar-h) + 30vh); padding-top: calc(var(--bar-h) + 30svh); padding-bottom: 56px;
  }
  .over .col::before, .stage-head::before { inset: -28px -60px -40px; }
  .col .get { margin-top: 36px; }
  .fine { font-size: 11.5px; line-height: 1.6; }
  /* The first screen's name stands under the planet like every part's words;
     the line and the film follow it, the film whole on most phones. */
  .hero .mark { height: auto; min-height: 0; padding-top: 0; }
  .intro { margin-top: 34px; }
  .intro > .say::before { inset: -24px -40px; }
  .intro .get { margin-top: 36px; }
  .film { width: 100%; border-radius: 10px; }
  .soon { padding-top: calc(var(--bar-h) + 6vh); }
  .soon h2 { font-size: clamp(48px, 15vw, 72px); }
  /* Cards side by side, swiped, the next one showing at the edge: two ways in
     stay one screen under the planet, and the Store's three a glance. */
  .exts, .doors {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(80%, 320px); gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    width: auto; margin-inline: calc(-1 * var(--gut)); padding: 6px var(--gut) 12px; scroll-padding-inline: var(--gut);
  }
  .exts::-webkit-scrollbar, .doors::-webkit-scrollbar { display: none; }
  .ext-c, .door { scroll-snap-align: start; }
  .door:hover { transform: none; }
  .door-t { padding: 6px 18px 18px; }
  footer { flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  footer nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 26px; }
  footer nav a { padding: 7px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
