/* Aduro Institute */

@font-face { font-family: Jost; font-style: normal; font-weight: 300; font-display: swap; src: url(/fonts/jost-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: Jost; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/jost-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Cardo; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/cardo-latin-400-italic.woff2) format("woff2"); }

:root {
  --navy: #233748;
  --gold: #C69C5D;
  /* Rings stay inside the screen on phones and tablets, and crop deliberately on wide screens. */
  --sky-size: max(min(145vw, 125svh), 100vw);
}
@media (min-aspect-ratio: 3/2) and (max-aspect-ratio: 7/4) {
  :root { --sky-size: 115vw; }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--navy); color: var(--gold); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Jost, "Century Gothic", Futura, sans-serif; font-weight: 300; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* One stacking context: fire, sky and embers sit behind the text. */
.page { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; }

/* ---------- first screen ---------- */
/* The header covers the whole first screen; let the pointer through to the orrery behind it. */
.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px; text-align: center; pointer-events: none; }
.hero > * { pointer-events: auto; }
.mark { position: relative; width: min(62vw, 95svh, clamp(446px, 22vw, 580px)); margin: 0; font-size: inherit; }
.lockup { display: block; width: 100%; height: auto; overflow: visible; padding: 4%;
  filter: drop-shadow(0 0 6px rgba(232, 172, 84, .28)); }
/* The idle pulse cross-fades a brighter copy (opacity is composited; animating filter is not). */
.lockup.pulse { position: absolute; left: 0; top: 0; opacity: 0;
  filter: drop-shadow(0 0 10px rgba(232, 172, 84, .42)) drop-shadow(0 0 30px rgba(232, 150, 60, .14));
  animation: pulse 11s ease-in-out infinite; }
@keyframes pulse { 0%, 78%, 100% { opacity: 0; } 88% { opacity: 1; } }
.halo { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease-out; pointer-events: none; }
.halo svg { display: block; width: 100%; height: 100%; padding: 4%; overflow: visible; filter: blur(14px) brightness(1.25); animation: halo 2.6s ease-in-out infinite; }
@keyframes halo { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.tagline { margin: .5rem 0 0; font-family: Cardo, Georgia, serif; font-style: italic; font-size: 1rem; letter-spacing: .2rem; color: #d8bb8a; text-wrap: balance; }
h1.tagline { font-weight: 400; }
h1.tagline + .addr { margin-top: 1.25rem; }

/* ---------- below the fold ---------- */
.notice { max-width: 32rem; margin: 0 auto; padding: 2.5rem 20px 0; }
.line { margin: 0 0 3.5rem; font-family: Cardo, Georgia, serif; font-style: italic; font-size: clamp(1.25rem, 1rem + 1.2vw, 1.55rem); line-height: 1.45; color: #ecd3a3; text-align: center; text-wrap: balance; }
.paragraph { margin: 0; font-size: 15px; line-height: 1.75; letter-spacing: .01em; color: #c4ccd5; text-wrap: pretty; }

/* ---------- footer in the fire ---------- */
.foot { position: relative; padding: 150px 20px 44px; text-align: center; }
.fire { position: absolute; left: 0; right: 0; bottom: 0; height: 260px; z-index: -3;
  background: radial-gradient(78% 210px at 50% 100%, #a5592a 0%, #6b3a2a 30%, #2c3546 72%, rgba(35, 55, 72, 0) 100%); }
.addr { margin: 0; font-size: 12px; letter-spacing: .32em; color: #efdcb6; }
.addr .label { display: block; margin-bottom: 8px; font-size: 10px; letter-spacing: .42em; text-transform: uppercase; color: #d9c39b; }
.addr a { color: inherit; text-decoration: none; padding: 4px 2px; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s; overflow-wrap: anywhere; }
.addr a:hover { color: #fff3dc; border-bottom-color: rgba(239, 220, 182, .6); }
.addr a:focus-visible { outline: 2px solid #efdcb6; outline-offset: 4px; border-radius: 2px; }

/* ---------- embers ---------- */
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.lane { position: absolute; top: 100%; width: 3px; height: 100%; animation: rise linear infinite; }
.lane::before { content: ""; display: block; width: 3px; height: 3px; border-radius: 50%; background: #f0c27a; box-shadow: 0 0 6px #f0b050; }
@keyframes rise {
  0% { transform: translateY(0); opacity: 0; }
  4% { opacity: .85; }
  75% { opacity: .7; }
  100% { transform: translateY(-100%); opacity: 0; }
}

/* ---------- orrery ---------- */
/* The viewBox is padded 20% so rotating orbits never reach the box edge; the box is enlarged to match.
   The fade is tied to the first screen: the box is centred on it, so 50% + 50svh is its bottom edge. */
.sky { position: absolute; z-index: -2; left: 50%; top: 50svh; width: calc(var(--sky-size) * 1.2); height: calc(var(--sky-size) * 1.2); transform: translate(-50%, -50%);
  overflow: visible; fill: none; stroke: var(--gold);
  -webkit-mask-image: linear-gradient(#000 calc(50% + 25svh), transparent calc(50% + 50svh + 3rem));
  mask-image: linear-gradient(#000 calc(50% + 25svh), transparent calc(50% + 50svh + 3rem)); }
.sky * { pointer-events: none; }
.sky .tw, .sky .star { fill: #e9cf9e; stroke: none; }
.sky .star { fill-opacity: .75; transition: fill-opacity 1.6s ease-out, fill 1.6s ease-out; }
.sky .planet { fill: #e2b56f; fill-opacity: 1; }
.sky .band { fill: #e8a650; fill-opacity: 0; stroke: none; transition: fill-opacity 1.6s ease-out; }
.sky .hit { stroke: transparent; stroke-linecap: round; }
.sky .line { transition: stroke-opacity 1.6s ease-out; }
.sky .g1 { stroke: #ffd48a; stroke-width: 1.3; stroke-opacity: .45; stroke-linecap: round; }
.sky .g2 { stroke: #ffa940; stroke-width: 6; stroke-opacity: .32; stroke-linecap: round; filter: url(#soft); }
.sky .hov { opacity: 0; transition: opacity 1.6s ease-out; }
.sky .amb { opacity: 0; animation: amb 98s ease-in-out infinite; }
@keyframes amb { 0% { opacity: 0; } 5.5% { opacity: .3; } 9.5%, 100% { opacity: 0; } }
.spin { animation: spin linear infinite; transform-box: view-box; transform-origin: 500px 340px; }
@keyframes spin { to { transform: rotate(360deg); } }
.tw { animation: tw ease-in-out infinite alternate; }
@keyframes tw { from { opacity: .15; } to { opacity: .8; } }
.drift { animation: drift 60s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(14px, -8px); } }

/* Hover effects only where a pointer can hover. */
@media (hover: hover) and (pointer: fine) {
  .sky .band, .sky .hit { pointer-events: all; }
  .sky .hit { pointer-events: stroke; }
  .sky .band:hover { fill-opacity: .05; transition-duration: .5s; }
  .sky .lit:hover .line { stroke-opacity: .8; transition-duration: .5s; }
  .sky .lit:hover .star { fill-opacity: 1; fill: #ffe2a8; transition-duration: .5s; }
  .sky .lit:hover .hov { opacity: 1; transition-duration: .5s; }
  .mark:hover .halo { opacity: 1; transition-duration: .6s; }
}
@media not ((hover: hover) and (pointer: fine)) {
  .sky .hov { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .embers { display: none; }
  .spin, .tw, .drift, .lockup.pulse, .halo svg, .sky .amb { animation: none; }
  .halo, .sky .hov, .sky .line, .sky .star, .sky .band, .addr a { transition: none; }
}
