/* ridgewill.com home page ("First Light", Jon's pick, 2026-10-17).
   One photographic sky, then /legal's white reading pages. The tokens are
   /legal's own (assets/legal/legal.css) so the two surfaces stay one system. */
:root {
  --blue-900: #12307f; --blue-700: #1e4fd0; --blue-600: #2b63e8; --blue-500: #3d78f0;
  --teal: #40e0d0; --teal-ink: #0b7d73;
  --ink: #16233d; --ink-2: #3b4a66; --ink-3: #5b6884;
  --line: #e1e6ef; --line-2: #cfd7e6; --wash: #f3f6fb; --paper: #fff;
  --dusk: #c9845a;
  --sans: 'Public Sans', -apple-system, system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
::selection { background: #cdeffb; color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 3px; border-radius: 4px; }
a { color: var(--blue-700); }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Top bar: the legal bar, transparent over the sky, cobalt once past it */
.bar { position: fixed; inset: 0 0 auto; z-index: 40; height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(16px, 3vw, 32px); color: #fff; transition: background .35s, box-shadow .35s; }
.bar.stuck { background: var(--blue-700); box-shadow: 0 6px 18px -8px rgba(18, 48, 127, .55); }
.lockup { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.lockup svg { width: 28px; height: 28px; }
.lockup b { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.bar nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; }
.bar nav a.link { color: #fff; text-decoration: none; opacity: .92; }
.bar nav a.link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.pill { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; }
.pill:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }
.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 10px; padding: 3px 12px 3px 3px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .6); background: rgba(10, 16, 30, .18); color: #fff; cursor: pointer; font: 600 14px var(--sans); }
.acct-btn:hover { background: rgba(255, 255, 255, .18); }
.avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; position: relative; background: var(--teal); color: var(--ink); display: grid; place-items: center; font-weight: 800; flex: none; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; background: var(--paper); color: var(--ink); border-radius: 10px; padding: 8px; display: none; box-shadow: 0 12px 32px rgba(16, 22, 38, .16); }
.acct-btn[aria-expanded="true"] + .acct-menu { display: block; }
.acct-menu p { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: 13px; color: var(--ink-3); }
.acct-menu p strong { display: block; color: var(--ink); font-size: 15px; }
.acct-menu a, .acct-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); font: 600 14px var(--sans); background: none; border: 0; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--wash); }

/* The sky: exactly one screen tall, video cropped to fill it, never stretched.
   It stays put while the page slides up over it like a sheet. */
.sky { position: sticky; top: 0; z-index: 0; height: 100vh; height: 100svh; overflow: hidden; color: #fff; background: #26365a center / cover no-repeat; }
.sky video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sky::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 62% 50% at 50% 54%, rgba(10, 16, 30, .62), rgba(10, 16, 30, .18) 65%, rgba(10, 16, 30, 0) 85%), linear-gradient(180deg, rgba(18, 48, 127, .5) 0%, rgba(18, 48, 127, .08) 42%, rgba(10, 16, 30, .32) 100%); }
.reveal { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; text-align: center; padding: 0 16px 6vh; }
.reveal .big { width: clamp(84px, 11vw, 132px); height: auto; margin: 0 auto 28px; overflow: visible; }
.reveal .big path { transform-box: fill-box; transform-origin: 50% 100%; }
.reveal .big .back { animation: rise 1.4s var(--ease) .3s both; }
.reveal .big .front { animation: rise 1.6s var(--ease) .55s both; }
.reveal h1 { margin: 0 auto; font-weight: 400; font-size: clamp(44px, 7vw, 104px); line-height: 1.02; letter-spacing: -.035em; max-width: 13ch; text-wrap: balance; text-shadow: 0 1px 2px rgba(10, 16, 30, .45), 0 2px 28px rgba(10, 16, 30, .45); animation: lift 1.4s var(--ease) 1.25s both; }
.reveal h1 b { font-weight: 800; display: block; }
@keyframes rise { from { transform: scaleY(0); opacity: 0; } 40% { opacity: 1; } to { transform: scaleY(1); opacity: 1; } }
@keyframes lift { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* The sheet */
main > section:not(.sky), footer { position: relative; z-index: 1; background-color: var(--paper); }
#hello { border-radius: 28px 28px 0 0; margin-top: -28px; box-shadow: 0 -24px 60px -20px rgba(10, 16, 30, .45); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
.page { padding: clamp(64px, 9vw, 120px) 0; }
h2 { font-weight: 800; font-size: clamp(32px, 3.8vw, 48px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }

.note { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.note figure { position: sticky; top: 100px; }
.note figure img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.note .body p { font-size: 19px; line-height: 1.7; color: var(--ink-2); max-width: 62ch; margin-top: 18px; }
.note .body p:first-of-type { font-size: 23px; line-height: 1.55; color: var(--ink); }
.note .sig { font-weight: 800; color: var(--ink) !important; }

main > section.apps, footer { background-color: var(--wash); }
.rows { margin-top: 40px; border-top: 1px solid var(--line-2); }
.row { display: grid; grid-template-columns: 220px 1fr auto; gap: 28px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; color: var(--ink); }
.row .name { font-weight: 800; font-size: 32px; letter-spacing: -.03em; }
.row .desc { color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 58ch; }
a.row:hover .name { color: var(--blue-700); }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); white-space: nowrap; color: var(--ink); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--teal-ink); }
.chip.early i { background: #f6c9a8; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--dusk); }

.pledge { overflow: hidden; color: #fff; background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-700) 60%, var(--blue-600) 100%); }
.pledge .wrap { position: relative; z-index: 1; padding-top: clamp(64px, 9vw, 112px); padding-bottom: clamp(64px, 9vw, 112px); max-width: 900px; text-align: center; }
.pledge svg.bg { position: absolute; right: -90px; bottom: -120px; width: 520px; opacity: .1; }
.pledge h2 { font-size: clamp(38px, 5.6vw, 72px); }
.pledge h2 span { color: var(--teal); }
.pledge p { margin: 20px auto 0; max-width: 56ch; font-size: 19px; line-height: 1.65; }
.pledge .links { margin-top: 26px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.account .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.account .lede { margin-top: 14px; font-size: 18px; line-height: 1.7; color: var(--ink-2); max-width: 62ch; }
.acard { border-radius: 14px; padding: 28px; background: var(--wash); }
.acard .who { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.acard .who .avatar { width: 56px; height: 56px; font-size: 22px; }
.acard .who b { display: block; font-size: 19px; }
.acard .who b + span { display: block; color: var(--ink-3); font-size: 14px; }
.acard p.hint { color: var(--ink-2); margin-bottom: 18px; font-size: 17px; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-600); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 22px; border-radius: 8px; }
.btn:hover { background: var(--blue-700); }

footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px; color: var(--ink-3); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
footer a:hover { color: var(--blue-700); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 860px) {
  .bar nav a.link { display: none; }
  .note, .account .wrap { grid-template-columns: 1fr; }
  .note figure { position: static; max-width: 200px; }
  .row { grid-template-columns: 1fr auto; }
  .row .chip { grid-row: 1; grid-column: 2; justify-self: end; }
  .row .desc { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal *, .reveal .big path { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
}
