/* Aria: the footer, About and the inner pages. Loaded after site.css on every page.
   The footer is the ground. Every page's sky ends on its top edge, a horizon that keeps the last light of the page's
   hour (the GL sky draws the ground and the light, sky-gl.js `horizon`; without it CSS paints the ground). On the
   ground: one closing line, the links, the legal line, and then the wordmark drawn in the sky's own dither, lit from
   above by that light, with the round dot of the i as the one point of light it all comes from. */

:root {
  --ground: #05070d; --n-ink: #f4f6fb; --n-ink-2: #aab3c4; --n-ink-3: #7d879b; --n-hair: rgba(178,200,240,.12);
}

/* ================================================================== FOOTER */
.foot { --focus: var(--glacier-300); --accent: var(--glacier-300);
  position: relative; overflow: hidden; display: flex; flex-direction: column; color: var(--n-ink-2); padding: clamp(96px, 15vh, 150px) var(--gutter) 0; border: 0; }
/* without the GL sky the ground is painted here, starting at the same edge */
.foot::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: var(--ground); box-shadow: 0 -1px 0 rgba(143,178,245,.35); }
.gl-sky .foot::before { display: none; }
.foot-in, .foot-bot, .foot-sig { position: relative; width: 100%; }

.foot-in { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px clamp(32px, 6vw, 96px); align-items: start; }
/* the small wordmark would repeat the big one below; it stays a home link for keyboards and appears when focused */
.foot-wm { position: absolute; left: 0; top: -56px; display: inline-block; padding: 6px 2px; font-size: 26px; color: var(--n-ink); text-decoration: none; opacity: 0; pointer-events: none; transition: opacity var(--quick); }
.foot-wm:focus-visible { opacity: 1; pointer-events: auto; }
.foot-brand { position: relative; }
/* the closing line: the page's last words, set like a title */
.foot-line { max-width: 13em; font-size: clamp(28px, 3vw, 42px); font-weight: 500; line-height: 1.1; letter-spacing: var(--track-3); color: var(--n-ink); text-wrap: balance; }
.foot-line span { display: block; }
.foot-line span + span { color: var(--n-ink-3); }
.foot-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; padding-top: 8px; }
.foot-h { margin: 0 0 12px; font-size: 13px; font-weight: 500; letter-spacing: -.005em; color: var(--n-ink-3); }
.foot-nav ul { display: grid; gap: 2px; }
.foot-nav a, .foot-bot a { position: relative; display: inline-flex; align-items: center; text-decoration: none; color: #cdd4e2; transition: color var(--quick) var(--enter); }
.foot-nav a { min-height: 32px; font-size: 15px; letter-spacing: -.01em; }
.foot-nav a::after, .foot-bot a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: currentColor; opacity: .5;
  transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--ui) var(--enter); }
.foot-nav a:hover, .foot-bot a:hover { color: #fff; }
.foot-nav a:hover::after, .foot-bot a:hover::after { transform: scaleX(1); }
.foot :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.foot-bot { max-width: var(--max); margin: clamp(64px, 10vh, 104px) auto 0; padding-top: 18px; border-top: 1px solid var(--n-hair);
  display: flex; align-items: center; justify-content: space-between; gap: 6px 28px; flex-wrap: wrap; font-family: var(--sans); font-size: 13px; letter-spacing: -.003em; color: var(--n-ink-3); }
.foot-bot a { min-height: 32px; color: var(--n-ink-2); }
.foot-legal { flex: 1 1 380px; text-align: center; }
.foot-up { gap: 8px; }
.foot-up svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--ui) var(--enter); }
.foot-up:hover svg { transform: translateY(-2px); }

/* the signature: the wordmark across the foot of the page, its base below the page's edge. Without script it is soft
   glacier type; with it, pages.js draws each letter in the sky's cells (.foot-ink) and the dot's light (.foot-glow). */
.foot-sig { --sig-fs: clamp(150px, 40vw, 640px); margin: clamp(40px, 7vh, 80px) calc(var(--gutter) * -1) 0; width: auto; height: calc(var(--sig-fs) * .7); }
.foot-giant { position: relative; margin: 0; text-align: center; font-size: var(--sig-fs); line-height: .8; pointer-events: none; user-select: none; -webkit-user-select: none;
  background: linear-gradient(180deg, rgba(169,196,244,.42), rgba(63,108,201,.2) 46%, rgba(63,108,201,0) 82%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-ink, .foot-glow { position: absolute; pointer-events: none; image-rendering: pixelated; image-rendering: crisp-edges; }
.foot-ink { will-change: transform; }
.sig-on .foot-giant { background: none; }

/* the dot of the i: a flat disc of the sky's brightest tone. Its light is drawn around it in rings (pages.js); without
   script a soft glow stands in. It lights first, then breathes at the orb's 0.2 Hz. */
.foot-giant .dot-i { z-index: 1; }
.foot-giant .dot-i::after { background: #F4F8FF; box-shadow: 0 0 .04em rgba(244,248,255,.6), 0 0 .2em rgba(143,178,245,.35); }
.sig-on .foot-giant .dot-i::after { box-shadow: none; opacity: 0; transform: scale(.2); }
.sig-on.sig-in .foot-giant .dot-i::after { opacity: 1; transform: none; transition: opacity 700ms var(--enter), transform 1000ms var(--enter); }

@media (max-width: 960px) {
  .foot-in { grid-template-columns: 1fr; gap: 48px; }
  .foot-line { max-width: 16em; }
}
@media (max-width: 640px) {
  .foot { padding-top: 88px; }
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .foot-bot { flex-direction: column; align-items: flex-start; gap: 4px; }
  .foot-legal { flex: none; order: 2; text-align: left; }
  .foot-up { order: 1; }
  .foot-sig { --sig-fs: 54vw; margin-top: 56px; }
}

/* ================================================================== INNER PAGES: a header on the sky, then glass */
.page { padding: clamp(132px, 20vh, 200px) var(--gutter) clamp(104px, 17vh, 190px); }
.page:focus { outline: none; }
.page-h { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
/* a little shade in the sky behind the words, so white type reads on bright cloud (shade, not glow) */
.page-h::before, .ab-words::before { content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: min(120%, 1100px); height: 150%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(36,72,160,.26), rgba(36,72,160,.1) 55%, rgba(36,72,160,0)); }
.page-h h1, .ab-words h1 { font-size: clamp(46px, 6.6vw, 96px); font-weight: 500; letter-spacing: -.05em; line-height: 1; margin-top: 18px; text-wrap: balance; }
.page-h .lede, .ab-words .lede { margin: 26px auto 0; max-width: 34em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: #fff; text-wrap: pretty; }
.sub-h { margin-top: clamp(112px, 18vh, 200px); }
.sub-h h2 { font-size: clamp(36px, 4.8vw, 68px); font-weight: 500; letter-spacing: -.048em; line-height: 1.02; margin-top: 16px; text-wrap: balance; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 32px; }
.cta-center { justify-content: center; margin-top: 40px; }

/* ------------------------------------------------------------------ documents */
.prose { max-width: 820px; margin: clamp(52px, 8vh, 80px) auto 0; padding: clamp(28px, 5.4vw, 72px) clamp(22px, 6.4vw, 84px); border-radius: 34px;
  font-size: 17px; line-height: 1.65; counter-reset: sec; }
.prose > p:first-child { font-size: clamp(19px, 1.65vw, 22px); line-height: 1.5; letter-spacing: -.014em; color: var(--ink); }
.prose p, .prose li { color: var(--ink-2); }
.prose p { max-width: 38em; text-wrap: pretty; }
.prose p + p { margin-top: 16px; }
.prose h2 { position: relative; counter-increment: sec; font-size: clamp(23px, 2.3vw, 29px); font-weight: 500; letter-spacing: -.03em; line-height: 1.2; color: var(--ink);
  margin: 52px 0 14px; padding-top: 30px; border-top: 1px solid var(--rule); scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h2::before { content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .14em; color: var(--ink-3); }
@media (min-width: 960px) {
  .prose h2::before { position: absolute; right: calc(100% + 26px); top: 39px; margin: 0; }
  .prose h2:first-child::before { top: 9px; }
}
.prose h3 { font-size: 19px; font-weight: 500; letter-spacing: -.02em; margin: 28px 0 8px; color: var(--ink); }
.prose ul, .prose ol { margin: 16px 0 0; padding: 0; list-style: none; }
.prose ul + p, .prose ol + p { margin-top: 18px; }
.prose li { position: relative; padding: 13px 0 13px 26px; border-top: 1px solid var(--rule); }
.prose li:last-child { border-bottom: 1px solid var(--rule); }
.prose ul li::before { content: ""; position: absolute; left: 5px; top: calc(13px + .82em - 3px); width: 6px; height: 6px; border-radius: 3px; background: var(--glacier-900); }
.prose ol, .prose ul.rows { counter-reset: n; }
.prose ol li, .prose ul.rows li { padding-left: 48px; }
.prose ol li::before, .prose ul.rows li::before { counter-increment: n; content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 13px; width: auto; height: auto; border-radius: 0; background: none;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; line-height: 28px; color: var(--ink-3); }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(58,96,181,.38); transition: text-decoration-color var(--quick); }
.prose a:hover { text-decoration-color: currentColor; }
.prose code { font-family: var(--mono); font-size: .86em; padding: 2px 6px; border-radius: 6px; background: rgba(14,15,18,.06); color: var(--ink); overflow-wrap: anywhere; }
.prose .cta-row { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule); }
.prose .cta-row a { text-decoration: none; }
.prose .pill-ink { color: #fff; } .prose .pill-line { color: var(--ink); }

/* a long document gets a quiet contents rail beside it on wide screens */
.toc { display: none; }
@media (min-width: 1240px) {
  .doc:has(.toc:not(:empty)) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 820px) minmax(0, 1fr); column-gap: 40px; max-width: 1360px; margin: 0 auto; }
  .doc > .prose { grid-column: 2; grid-row: 1; margin-left: 0; margin-right: 0; }
  .toc:not(:empty) { grid-column: 1; grid-row: 1; justify-self: end; display: block; position: sticky; top: 104px; align-self: start; width: 210px; margin-top: clamp(52px, 8vh, 80px); padding: 18px 8px 18px 18px;
    border-radius: 22px; background: rgba(246,248,253,.62); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5); box-shadow: inset 0 0 0 1px rgba(255,255,255,.7), 0 24px 50px -24px rgba(24,52,128,.4); }
}
.toc-h { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { position: relative; display: block; padding: 6px 10px 6px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.35; color: var(--ink-2); text-decoration: none; transition: color var(--quick), background var(--quick); }
.toc a::before { content: ""; position: absolute; left: 2px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--accent); opacity: 0; transform: scale(.4); transition: opacity var(--ui) var(--enter), transform var(--ui) var(--enter); }
.toc a:hover { color: var(--ink); background: rgba(255,255,255,.5); }
.toc a[aria-current] { color: var(--ink); }
.toc a[aria-current]::before { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ pricing page parts */
.plans-full { max-width: 1180px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan h2 { font-size: 15px; font-weight: 500; }
.plan li.head { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ui-grey); }
.plan li.later { color: var(--ui-grey); display: flex; justify-content: space-between; gap: 12px; }
.plan li.later .mono { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.pay-note { max-width: 980px; margin-top: 16px; padding: clamp(24px, 3.4vw, 40px) clamp(24px, 4vw, 48px); }
.pay-note > p:first-child { font-size: 17px; line-height: 1.65; letter-spacing: -.005em; color: var(--ink-2); }
@media (max-width: 860px) { .plans-full { grid-template-columns: 1fr; } }
.join-mini { margin-top: clamp(112px, 18vh, 180px); display: grid; place-items: center; }
.join-mini .join-card { margin-top: 0; }
.join-mini h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -.035em; }
.join-mini .for { margin: 8px 0 20px; }

/* ================================================================== ABOUT: an orb for a face, then a letter */
.ab-hero { max-width: 940px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ab-face { position: relative; width: clamp(128px, 12.5vw, 176px); aspect-ratio: 1; margin-bottom: clamp(30px, 5vh, 44px); border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #11141e 0, #07080d 58%, #030407 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 1.5px 0 rgba(255,255,255,.12), 0 44px 80px -28px rgba(8,20,64,.65), 0 14px 30px -14px rgba(8,20,64,.5); }
.ab-face::before { content: ""; position: absolute; inset: -42%; z-index: -1; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(143,178,245,.4), rgba(143,178,245,.12) 45%, rgba(143,178,245,0)); }
.ab-face canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.ab-words { position: relative; display: flex; flex-direction: column; align-items: center; }
/* light leads: the face settles first, the words 160 ms after */
.ab-face[data-rv] { transform: translateY(18px) scale(.9); }
.ab-face[data-rv].in { transform: none; transition-duration: 1200ms; }
.ab-words [data-rv] { transition-delay: calc(var(--rd, 0) * 1ms + 160ms); }
.ab-words .kin.in .w { transition-delay: calc(var(--i) * 70ms + 220ms); }

.letter { max-width: 1080px; margin: clamp(60px, 10vh, 104px) auto 0; padding: clamp(24px, 4.8vw, 68px); border-radius: 36px; }
.byline { display: flex; align-items: center; justify-content: space-between; gap: 22px 32px; flex-wrap: wrap; padding-bottom: clamp(26px, 3.6vw, 44px); border-bottom: 1px solid var(--rule); }
.by-name { font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.038em; line-height: 1.08; color: var(--ink); }
.by-role { margin-top: 10px; font-size: 11.5px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); }
.by-links { display: flex; gap: 8px; flex-wrap: wrap; }
.by-links .pill { height: 40px; padding: 0 18px 0 16px; font-size: 14px; }
.by-links .pill svg { width: 14px; height: 14px; }
.chap { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 14px clamp(28px, 6vw, 88px); padding-top: clamp(34px, 5vw, 60px); }
.chap + .chap { margin-top: clamp(34px, 5vw, 60px); border-top: 1px solid var(--rule); }
.chap-n { font-size: 11.5px; font-weight: 500; letter-spacing: .14em; color: var(--ink-3); }
.chap-rail h2 { margin-top: 10px; font-size: 19px; font-weight: 500; letter-spacing: -.02em; line-height: 1.3; color: var(--ink); }
.chap-lead { font-size: clamp(21px, 2.05vw, 28px); line-height: 1.4; letter-spacing: -.024em; color: var(--ink); text-wrap: pretty; }
.chap-body p + p { margin-top: 22px; }
.chap-body p:not(.chap-lead) { max-width: 36em; font-size: 17px; line-height: 1.65; color: var(--ink-2); text-wrap: pretty; }
/* paragraphs settle one at a time as they come into view (pages.js adds .pr-on) */
.pr-on [data-pr] { opacity: 0; transform: translateY(16px); filter: blur(8px); transition: opacity var(--reveal) var(--enter), transform var(--reveal) var(--enter), filter var(--reveal) var(--enter); transition-delay: var(--pd, 0ms); }
.pr-on [data-pr].in { opacity: 1; transform: none; filter: none; }

/* the three rules, on the notch's own material */
.rules-panel { position: relative; isolation: isolate; max-width: 1080px; margin: clamp(52px, 8vh, 80px) auto 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #000; color: var(--n-ink); border-radius: 28px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.09), 0 60px 110px -36px rgba(6,16,56,.7), 0 18px 40px -20px rgba(6,16,56,.5); }
.rules-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 600ms var(--enter);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(143,178,245,.11), rgba(143,178,245,0) 60%); }
.rules-panel.lit::before { opacity: 1; }
.rules-panel li { position: relative; padding: clamp(26px, 3.2vw, 44px); }
.rules-panel li + li { box-shadow: inset 1px 0 0 var(--n-hair); }
.rule-n { font-size: 11px; font-weight: 500; letter-spacing: .14em; color: var(--n-ink-3); }
.rules-panel h3 { margin-top: clamp(40px, 6vw, 72px); font-size: clamp(22px, 2vw, 27px); font-weight: 500; letter-spacing: -.028em; line-height: 1.15; }
.rules-panel p:last-child { margin-top: 12px; font-size: 15.5px; line-height: 1.55; color: var(--n-ink-2); }

/* say hello: three large rows */
.hello-list { max-width: 1080px; margin: clamp(52px, 8vh, 80px) auto 0; padding: 10px clamp(10px, 1.6vw, 20px); border-radius: 34px; list-style: none; }
.hello-list li + li { box-shadow: inset 0 1px 0 var(--rule); }
.hl { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr) auto 26px; align-items: center; gap: 12px 28px; padding: clamp(24px, 3.2vw, 38px) clamp(10px, 1.8vw, 22px);
  color: var(--ink); text-decoration: none; border-radius: 24px; transition: background-color var(--ui) var(--enter); }
.hl-k { font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.hl-v { font-size: clamp(25px, 3.5vw, 48px); font-weight: 500; letter-spacing: -.04em; line-height: 1.08; overflow-wrap: anywhere; transition: transform 700ms var(--enter); }
.hl-n { font-size: 15px; color: var(--ink-2); text-align: right; }
.hl-a { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--ink-3); transition: transform 700ms var(--enter), color var(--quick); }
.hl:hover { background-color: rgba(255,255,255,.55); }
.hl:hover .hl-v { transform: translateX(6px); }
.hl:hover .hl-a { transform: translate(3px, -3px); color: var(--accent); }
.hl:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 24px; }

@media (max-width: 860px) {
  .chap { grid-template-columns: 1fr; }
  .rules-panel { grid-template-columns: 1fr; }
  .rules-panel li + li { box-shadow: inset 0 1px 0 var(--n-hair); }
  .rules-panel h3 { margin-top: 22px; }
  .hl { grid-template-columns: minmax(0, 1fr) 22px; gap: 8px 16px; }
  .hl-k, .hl-v, .hl-n { grid-column: 1; text-align: left; }
  .hl-a { grid-column: 2; grid-row: 1 / span 3; align-self: start; margin-top: 2px; }
}
@media (max-width: 560px) {
  .byline { align-items: flex-start; }
  .letter { border-radius: 28px; }
}

/* ================================================================== 404: the number is a cloud, drifting off with the others */
.nf-cloud { position: relative; height: clamp(150px, 26vh, 260px); margin: 0 calc(var(--gutter) * -1) clamp(8px, 2vh, 24px); pointer-events: none; overflow: hidden; }
.nf-num { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; font-size: clamp(170px, 24vw, 340px); font-weight: 600; letter-spacing: -.06em; line-height: 1; color: rgba(255,255,255,.55); white-space: nowrap; user-select: none; -webkit-user-select: none; }
.nf-cloud canvas { position: absolute; left: 0; top: 0; image-rendering: pixelated; image-rendering: crisp-edges; }
.cloud-on .nf-num { color: transparent; }

/* ================================================================== reduced motion: the finished page, still */
@media (prefers-reduced-motion: reduce) {
  .pr-on [data-pr] { opacity: 1; transform: none; filter: none; }
  .sig-on .foot-giant .dot-i::after { opacity: 1; transform: none; }
}

/* tap targets on touch screens: every footer link is a 44px row */
@media (pointer: coarse) { .foot-nav a, .foot-bot a { min-height: 44px; } .foot-nav ul { gap: 0; } }
.foot-nav a { padding: 0 6px; margin: 0 -6px; }
.foot-nav a::after { left: 6px; right: 6px; }
