/* The page around the particle field. Without JavaScript or WebGL it reads as one plain dark page. */
:root { --ease: cubic-bezier(.22, .61, .36, 1); }
html { background: var(--space); scroll-padding-top: 0; }
body { background: var(--space); overflow-x: clip; }
[hidden] { display: none !important; }
::selection { background: var(--signal); color: var(--on-color); }

#field { position: fixed; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; }
.poster { display: none; }
html:not(.js) .ch--mark, .nogl .ch--mark { display: none; }
html:not(.js) #field, .nogl #field { display: none; }
html:not(.js) .poster, .nogl .poster { display: block; position: absolute; inset: 0 0 auto; height: 100svh; z-index: 0; background: url("assets/poster.jpg") 70% 50% / cover no-repeat; opacity: .8; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 40; padding: 10px 14px; background: var(--signal); color: var(--on-color); font-weight: 600; }
.skip:focus { top: 12px; }

.bar { position: fixed; inset: 0 0 auto; z-index: 30; }
.pnm-links a:not(.pnm-talk) { font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.pnm-talk { font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: .05em; }
.pnm-nav > a:first-child { display: flex; align-items: center; gap: 4px; }
.pnm-nav svg.name { width: 139px; height: 12.4px; }
.pnm-nav a:focus-visible, .rail a:focus-visible, .cue:focus-visible, .dest li:focus-visible, .foot a:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

main { position: relative; z-index: 1; }
.ch { position: relative; }
.pin { position: relative; box-sizing: border-box; min-height: 100svh; display: grid; align-content: center; padding: 96px max(20px, 4.5vw); }

.copy { position: relative; max-width: min(37vw, 640px); }
.copy h1, .copy h2, .copy h3 { margin: 0; font-family: var(--font-display); font-weight: 300; letter-spacing: -.028em; line-height: 1.02; text-wrap: balance; text-shadow: var(--text-lift); }
.copy h1 { font-size: clamp(46px, 6.1vw, 118px); line-height: .98; }
.copy h1 span { display: block; }
.copy h2 { margin-top: 14px; font-size: clamp(38px, 4.5vw, 84px); }
.copy h3 { font-size: clamp(46px, 4.6vw, 88px); }
.copy p { margin: 18px 0 0; color: var(--soft); font-size: clamp(16px, 1.25vw, 20px); line-height: 1.5; text-wrap: balance; text-shadow: var(--text-lift-small); }
.copy .ph { display: block; }
.copy .nb { white-space: nowrap; }
.copy h2 .late { display: block; }
.copy--hero p { margin-top: 26px; }
/* The corner logo stays away only while the big logo carries the first screen. */
.pnm-nav > a:first-child { transition: opacity .5s; }
.logo-on-stage .pnm-nav > a:first-child { opacity: 0; pointer-events: none; }
.copy--mid { justify-self: center; max-width: none; text-align: center; }

.cue { position: absolute; left: 50%; bottom: 34px; padding: 6px 0; transform: translateX(-50%); text-align: center; color: var(--ink); font-family: var(--font-display); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.cue::after { content: ""; display: block; width: 1px; height: 34px; margin: 10px auto 0; background: linear-gradient(var(--signal), transparent); transform-origin: 50% 0; }

.rail { display: none; }

.foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 24px; margin-top: 32px; color: var(--soft); font-size: 14px; }
.foot p { margin: 0; }
.foot a { padding: 6px 0; color: var(--ink); font-family: var(--font-display); font-size: 14px; font-weight: 600; text-decoration: none; }
.foot a:hover { color: var(--signal); }

.talk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: center; gap: clamp(32px, 6vw, 110px); }
.talk .copy { max-width: none; }
.board { box-sizing: border-box; padding: clamp(20px, 3vh, 32px) clamp(20px, 2.4vw, 34px); border: 1px solid var(--hair); background: rgba(11, 8, 32, .58); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.board h3 { margin: 0 0 4px; font-family: var(--font-display); font-size: clamp(26px, 2.5vw, 38px); font-weight: 300; letter-spacing: -.02em; }
.board fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 8px; }
.board legend { padding: 0 0 8px; color: var(--soft); font-size: 15px; font-weight: 500; }
.pnm-chip { font-family: var(--font-body); font-size: 14px; letter-spacing: 0; }
.pnm-send { font-family: var(--font-display); font-size: 14px; font-weight: 800; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

/* Destinations: all six services at once. Each one's mark takes its own colour while the field shows it. */
.ch--dest .copy { max-width: min(40vw, 700px); }
.dest { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px clamp(20px, 2.6vw, 44px); margin: clamp(22px, 4vh, 40px) 0 0; padding: 0; }
.dest li { position: relative; padding: 10px 0 10px 22px; outline-offset: 4px; }
.dest li::before { content: ""; position: absolute; left: 1px; top: 19px; width: 7px; height: 7px; box-sizing: border-box; border: 1px solid var(--muted); transform: rotate(45deg); transition: background-color .3s, border-color .3s, box-shadow .3s; }
.copy .dest h3 { font-size: clamp(20px, 1.6vw, 28px); font-weight: 400; letter-spacing: -.01em; line-height: 1.15; transition: color .3s; }
.copy .dest p { margin-top: 5px; font-size: clamp(14px, 1vw, 16px); line-height: 1.42; text-wrap: pretty; }
.ports { display: none; }

.marks { display: grid; gap: 18px; margin-top: 30px; }
.pnm-tag em { font-weight: 400; }
.pnm-key .n { margin-right: .34em; }
.ringwords { display: none; }

/* The experience. These rules only hold once the field is running. */
html.js:not(.nogl), .js:not(.nogl) body { overscroll-behavior-y: none; }
.js:not(.nogl) .ch { height: calc(var(--h) * 1svh); }
.js:not(.nogl) .pin { position: fixed; inset: 0 0 auto; height: 100svh; min-height: 0; overflow: clip; padding-block: 96px 56px; }
.js:not(.nogl) .talk, .js:not(.nogl) .foot { opacity: var(--o, 0); will-change: opacity; }
.js:not(.nogl) .copy > * { opacity: clamp(0, calc(var(--o, 0) * 1.6), 1); will-change: opacity; }
.js:not(.nogl) .copy > * + * { opacity: clamp(0, calc(var(--o, 0) * 1.6 - .3), 1); }
.js:not(.nogl) .copy > * + * + * { opacity: clamp(0, calc(var(--o, 0) * 1.6 - .6), 1); }
.js:not(.nogl) .copy .late { opacity: min(var(--m, 0), var(--o, 0)); }
.js:not(.nogl) .cue { opacity: var(--o, 0); }

.js:not(.nogl) .marks { position: absolute; inset: 0; display: block; margin: 0; pointer-events: none; }
.js:not(.nogl) .mark { position: absolute; left: 0; top: 0; opacity: var(--m, 0); will-change: transform, opacity; }
.js:not(.nogl) .ringwords { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.ringwords path { fill: none; }
.ringwords text { opacity: var(--m, 0); font-family: var(--font-display); font-size: clamp(17px, 1.4vw, 21px); font-weight: 600; letter-spacing: .02em; text-anchor: middle; text-rendering: geometricPrecision; fill: var(--ink); }
.ringwords text:first-of-type { fill: var(--signal); }

/* With the field running each service is a control: a framed tile that takes its colour while the field shows it, and fills when it is kept. */
.js:not(.nogl) .dest { gap: 10px; }
.js:not(.nogl) .dest li { padding: 13px 16px 14px 36px; border: 1px solid var(--hair); background: rgba(11, 8, 32, .42); cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: border-color .3s, background-color .3s; }
.js:not(.nogl) .dest li::before { left: 16px; top: 22px; }
.js:not(.nogl) .dest li.on { border-color: var(--c, var(--signal)); }
.js:not(.nogl) .dest li.on h3 { color: var(--c, var(--signal)); }
.js:not(.nogl) .dest li.on::before { border-color: var(--c, var(--signal)); }
.js:not(.nogl) .dest li[aria-pressed="true"] { border-color: var(--c, var(--signal)); background: color-mix(in srgb, var(--c, var(--signal)) 14%, rgba(11, 8, 32, .6)); }
.js:not(.nogl) .dest li[aria-pressed="true"]::before { border-color: var(--c, var(--signal)); background: var(--c, var(--signal)); box-shadow: 0 0 14px var(--c, var(--signal)); }
.js:not(.nogl) .dest.invite li, .js:not(.nogl) .dest.invite li::before { animation: invite 1.3s var(--ease) var(--d, 0s); }
.dest li:nth-child(2) { --d: .09s; }
.dest li:nth-child(3) { --d: .18s; }
.dest li:nth-child(4) { --d: .27s; }
.dest li:nth-child(5) { --d: .36s; }
.dest li:nth-child(6) { --d: .45s; }
@keyframes invite { 35% { border-color: var(--c, var(--signal)); } }
.js:not(.nogl) .ports { position: absolute; inset: 0; display: block; margin: 0; pointer-events: none; opacity: var(--o, 0); }
.js:not(.nogl) .ports span { position: absolute; left: 0; top: 0; padding: 12px 14px; color: var(--ink); font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: .01em; text-transform: uppercase; white-space: nowrap; cursor: pointer; pointer-events: auto; opacity: var(--m, 0); text-shadow: 0 1px 14px rgba(11, 8, 32, .9); will-change: transform, opacity; }
.js:not(.nogl) .ports span.off { pointer-events: none; }
.js:not(.nogl) .ports span:hover { color: var(--signal); }
.js:not(.nogl) .ports span::before { content: ""; position: absolute; left: -2px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; background: var(--signal); transform: rotate(45deg); box-shadow: 0 0 14px var(--signal); }

.js:not(.nogl) .ch--mid .pin { justify-items: center; }
.js:not(.nogl) .ch--mid .copy { position: absolute; left: 20px; right: 20px; top: 50%; transform: translateY(-50%); }
/* The last chapter is the end of the page, so the form scrolls inside it instead of being clipped on small screens. */
.js:not(.nogl) .ch--form .pin { align-content: safe center; overflow-x: hidden; overflow-y: auto; padding-block: 76px 32px; }
.js:not(.nogl) .foot { position: absolute; left: max(20px, 4.5vw); bottom: 24px; margin: 0; }

.js:not(.nogl) .rail { position: fixed; right: max(12px, 1.6vw); top: 50%; z-index: 20; display: grid; gap: 2px; transform: translateY(-50%); }
.rail a { position: relative; display: grid; grid-template-columns: 22px; align-items: center; justify-content: end; width: 34px; height: 26px; color: var(--ink); text-decoration: none; }
.rail a::after { content: ""; justify-self: end; width: 10px; height: 1px; background: var(--muted); transition: width .25s var(--ease), background-color .25s; }
.rail a span { position: absolute; right: 34px; top: 0; pointer-events: none; font-family: var(--font-display); font-size: 12px; line-height: 26px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s var(--ease); text-shadow: var(--text-lift-small); }
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: none; }
.rail a:hover::after { width: 18px; background: var(--ink); }
.rail a[aria-current="true"]::after { width: 22px; height: 2px; background: var(--signal); }
.rail a[aria-current="true"] span { color: var(--signal); }

/* Portrait: the object sits high, the text sits low. */
@media (max-aspect-ratio: 1/1), (max-width: 760px) {
  .copy { max-width: none; }
  .copy h1 { font-size: clamp(40px, 11.6vw, 60px); }
  .copy h2 { font-size: clamp(32px, 8.8vw, 60px); }
  .copy h3 { font-size: clamp(42px, 12vw, 80px); }
  .copy p { font-size: 16px; }
  .pnm-key { font-size: 20px; }
  .js:not(.nogl) .pin { align-content: end; padding-block: 76px 88px; }
  .js:not(.nogl) .ch--form .pin { align-content: safe center; padding-block: 68px 16px; }
  .js:not(.nogl) .rail { display: none; }
  .js:not(.nogl) .foot { position: static; margin-top: 10px; }
  .pnm-links a:not(.pnm-talk) { display: none; }
  .talk { grid-template-columns: 1fr; gap: 14px; }
  .talk, .js:not(.nogl) .foot { justify-self: center; width: min(100%, 620px); }
  .talk .copy h2 { font-size: 26px; margin-top: 6px; }
  .talk .pnm-key { display: none; }
  .board { padding: 14px 16px; background: rgba(11, 8, 32, .72); }
  .board h3 { font-size: 24px; }
  .pnm-chip { padding: 7px 11px; min-height: 36px; }
  .cue { bottom: 22px; }
  .js:not(.nogl) .ports span { padding: 8px 10px; font-size: 15px; }
  .ch--dest .copy { max-width: none; }
  .js:not(.nogl) .ch--dest .pin { padding-bottom: 26px; }
  .ch--dest .copy h2 { margin-top: 6px; font-size: clamp(24px, 6.6vw, 44px); }
  .dest { gap: 0 16px; margin-top: 14px; }
  .dest li { padding: 7px 0 7px 16px; }
  .dest li::before { top: 14px; width: 6px; height: 6px; }
  .js:not(.nogl) .dest { gap: 8px; }
  .js:not(.nogl) .dest li { padding: 8px 10px 9px 26px; }
  .js:not(.nogl) .dest li::before { left: 11px; top: 15px; }
  .copy .dest h3 { font-size: 17px; }
  .copy .dest p { margin-top: 2px; font-size: 13px; line-height: 1.35; }
  .pnm-tag--call { width: 190px; font-size: 20px; }
}

/* The narrowest phones keep the six services to two short columns. */
@media (max-width: 349px) {
  .dest { gap: 0 12px; }
  .js:not(.nogl) .dest { gap: 6px; }
  .js:not(.nogl) .dest li { padding: 7px 8px 8px 22px; }
  .js:not(.nogl) .dest li::before { left: 9px; }
  .copy .dest h3 { font-size: 15px; }
  .copy .dest p { font-size: 12px; }
}

/* Short phones keep the service tiles tight so the scene above still has room. */
@media (max-aspect-ratio: 1/1) and (max-height: 700px) {
  .js:not(.nogl) .dest { gap: 5px; margin-top: 10px; }
  .js:not(.nogl) .dest li { padding: 5px 8px 6px 22px; }
  .js:not(.nogl) .dest li::before { left: 9px; top: 12px; }
  .copy .dest p { line-height: 1.28; }
  .ch--dest .copy h2 { margin-top: 2px; }
}

/* Tall tablets and narrow windows have the room the phone layout is squeezing for. */
@media (max-aspect-ratio: 1/1) and (min-width: 600px) and (min-height: 820px) {
  .js:not(.nogl) .ch--form .pin { padding-block: 16svh 32px; }
  .talk { gap: 28px; }
  .talk .copy h2 { font-size: 46px; margin-top: 14px; }
  .talk .pnm-key { display: block; }
  .board { padding: 28px 30px; }
  .board h3 { font-size: 30px; }
  .js:not(.nogl) .foot { margin-top: 18px; }
}

@media (hover: none) {
}

@media (max-height: 640px) and (min-width: 761px) {
  .board fieldset { gap: 2px; }
  .pnm-chip { padding: 6px 10px; min-height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .rail a::after, .rail a span, .dest li, .dest li::before, .copy .dest h3 { transition: none; }
}
