/* Font attribution:
 * Funnel Sans — Copyright 2025 The Funnel Project Authors; SIL OFL 1.1.
 * Source: https://github.com/Dicotype/Funnel
 * CPMono_v07 — Copyright 2009 Tino Meinert / Liquitype; CC BY 3.0 Germany.
 * License: https://creativecommons.org/licenses/by/3.0/de/
 * Converted to WOFF2; glyph designs unchanged.
 * Full attribution, source links and licenses: ./assets/fonts/credits.txt
 */
@font-face {
  font-family: FunnelSans;
  src: url('./assets/fonts/funnelsans-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: CPMono;
  src: url('./assets/fonts/cpmono-plain.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --bg: #111214;
  --ink: #e4e6e8;
  --muted: #999da2;
  --line: #35383c;
  --accent: #ff5639;
  --mono: CPMono, 'Courier New', monospace;
  --pad: clamp(1.25rem, 3.2vw, 4rem);
  font-family: FunnelSans, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  color-scheme: dark;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { color: var(--bg); background: var(--ink); }
.mono { font-family: var(--mono); font-size: .75rem; line-height: 1.5; text-transform: uppercase; letter-spacing: .07em; }
.accent { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 10; padding: 1rem; background: var(--ink); color: var(--bg); }
.skip-link:focus { top: 1rem; }
.page-shell { max-width: 1728px; min-height: 100svh; margin-inline: auto; padding-inline: var(--pad); display: flex; flex-direction: column; }
.site-header { min-height: 96px; display: flex; align-items: center; gap: 2rem; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; min-height: 48px; font-size: 3.3rem; font-weight: 800; letter-spacing: -.065em; line-height: 1; padding-right: .07em; }
.header-descriptor { color: var(--muted); }
.site-status { display: flex; align-items: center; gap: .7rem; margin-left: auto; }
.status-dot { width: 5px; height: 5px; background: var(--accent); flex-shrink: 0; }
main { flex: 1; display: flex; align-items: center; }
.maintenance { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 5rem); align-items: center; padding-block: clamp(3.5rem, 7vh, 6.5rem); }
.maintenance-copy { min-width: 0; padding-block: 1rem; }
.eyebrow { color: var(--muted); margin-bottom: 2rem; }
h1 { font-size: clamp(3.4rem, 6.55vw, 7.1rem); font-weight: 500; line-height: .98; letter-spacing: -.05em; text-transform: uppercase; }
.maintenance-note { margin-top: 1.85rem; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.65; }
.contact { margin-top: clamp(2.75rem, 5.2vh, 4rem); max-width: 25rem; scroll-margin-top: 2rem; }
.contact-label { color: var(--muted); margin-bottom: .65rem; }
.contact-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: clamp(1.6rem, 2.5vw, 2.4rem); line-height: 1.2; letter-spacing: -.035em; }
.contact a { transition: color .2s ease; }
.contact a:hover { color: var(--accent); }
.link-arrow { display: block; width: 24px; height: 24px; flex: 0 0 24px; }
.object-study { min-width: 0; width: 100%; max-width: min(680px, 58svh); justify-self: end; }
.object-stage { display: grid; place-items: center; width: 100%; aspect-ratio: 1; background: #000; overflow: hidden; }
.sphere { display: block; width: 92%; height: auto; aspect-ratio: 1; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.object-caption { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: .6875rem; }
.site-footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.5rem; }
.operator-notice { max-width: 39rem; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.footer-meta { display: flex; justify-content: flex-end; margin-left: auto; flex-shrink: 0; color: var(--muted); font-size: .6875rem; }

/* Real text remains accessible; the temporary noise is only a visual overlay. */
.scramble-word { position: relative; display: inline-block; }
.scramble-noise { position: absolute; inset: 0; clip-path: inset(-.35em 0); white-space: pre; pointer-events: none; user-select: none; display: none; }
.is-scrambling .scramble-original { opacity: 0; }
.is-scrambling .scramble-noise { display: block; }

@media (min-width: 1600px) {
  .maintenance { gap: 5rem; }
}
@media (max-width: 1000px) {
  .site-header { gap: 1.5rem; }
  .maintenance { gap: 2rem; }
  .object-caption { letter-spacing: .025em; }
  .site-footer { align-items: flex-start; }
  .operator-notice { max-width: 31rem; }
}
@media (max-width: 760px) {
  .site-header { min-height: 78px; }
  .wordmark { font-size: 2.8rem; }
  .header-descriptor { display: none; }
  .site-status { font-size: .6875rem; }
  .maintenance { grid-template-columns: 1fr; gap: 2.75rem; padding-block: 3.5rem 2.5rem; }
  .maintenance-copy { padding: 0; }
  .eyebrow { margin-bottom: 1.5rem; font-size: .6875rem; }
  h1 { font-size: clamp(3.2rem, 11.7vw, 5.7rem); }
  .maintenance-note { margin-top: 1.5rem; font-size: 1rem; }
  .contact { margin-top: 2.5rem; max-width: none; }
  .contact-link { font-size: 1.95rem; }
  .object-study { max-width: none; }
  .object-stage { aspect-ratio: 1.14; }
  .sphere { width: 82%; }
  .object-caption { font-size: .625rem; padding-block: .85rem; }
  .site-footer { flex-direction: column; gap: 1.25rem; padding-block: 1.5rem; }
  .operator-notice { max-width: 31rem; font-size: .8125rem; }
  .footer-meta { width: 100%; font-size: .625rem; }
}
@media (max-width: 360px) {
  .site-status { letter-spacing: .02em; }
  .maintenance { padding-top: 2.75rem; }
  h1 { font-size: 11.2vw; }
  .contact-link { font-size: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .is-scrambling .scramble-original { opacity: 1; }
  .is-scrambling .scramble-noise { display: none; }
}
