/* WeaverLume Studios — website spec V1.0.1 section 6. No inline styles anywhere (CSP style-src 'self'). */

@font-face { font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/marcellus-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* size-matched fallbacks, so the swap does not move the layout */
@font-face { font-family: "Marcellus Fallback"; src: local("Georgia"); size-adjust: 96%; ascent-override: 98%; descent-override: 26%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }

:root {
  --bg: #0A0B14; --surface: #111321; --raised: #1A1C2E;
  --text: #F0EDF5; --text-2: #B8B1C7; --muted: #8F88A3;
  --gold: #E1BD7A; --gold-hover: #EDCF95; --gold-deep: #B8924F;
  --violet: #9564D6; --violet-text: #B08CE8; --cyan: #65DDF2;
  --success: #5FD39A; --warning: #F2B55C; --error: #FF7A8A;
  --border: #2A2D44; --border-strong: #3C4060;
  --serif: "Marcellus", "Marcellus Fallback", Georgia, serif;
  --sans: "Inter", "Inter Fallback", Arial, system-ui, sans-serif;
  --max: 1120px; --prose: 720px;
  --header: 64px;
}
@media (max-width: 599px) { :root { --header: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--sans); }
@media (max-width: 599px) { body { font-size: 16px; } }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--text); margin: 0 0 16px; letter-spacing: .01em; }
h1 { font-size: 44px; line-height: 1.15; }
h2 { font-size: 32px; line-height: 1.2; }
h3 { font-size: 22px; line-height: 1.3; }
@media (max-width: 599px) { h1 { font-size: 30px; } h2 { font-size: 24px; } h3 { font-size: 20px; } }
p { margin: 0 0 16px; }
a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .15s; }
a:hover { color: var(--gold-hover); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
code, pre { font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
strong { font-weight: 600; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--gold); color: var(--bg); padding: 10px 16px;
  border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--prose); }
.section { padding: 96px 0; }
@media (max-width: 599px) { .section { padding: 64px 0; } .wrap { padding: 0 20px; } }
.section.alt { background: var(--surface); }
.eyebrow { font: 600 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--violet-text); margin: 0 0 12px; }
.lede { font-size: 20px; color: var(--text-2); max-width: var(--prose); }
@media (max-width: 599px) { .lede { font-size: 18px; } }
.meta { font-size: 14px; color: var(--muted); }
.more { font-weight: 500; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header); background: rgba(10, 11, 20, .92);
  border-bottom: 1px solid var(--border); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font: 400 18px/1 var(--serif); }
.brand:hover { color: var(--text); }
.brand img { height: 40px; width: auto; }
.brand .short { display: none; }
.nav-desktop { display: flex; gap: 32px; }
.nav-desktop a, .menu-panel a { font: 500 15px/1 var(--sans); color: var(--text); text-decoration: none; padding: 8px 0;
  border-bottom: 2px solid transparent; }
.nav-desktop a:hover, .menu-panel a:hover { color: var(--gold-hover); }
.nav-desktop a[aria-current="page"], .menu-panel a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font: 500 15px/1 var(--sans); color: var(--text); padding: 10px 14px;
  border: 1px solid var(--border-strong); border-radius: 8px; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--raised); }
.menu-panel { position: fixed; left: 0; right: 0; top: var(--header); background: var(--raised); border-bottom: 1px solid var(--border-strong);
  padding: 8px 20px 16px; display: flex; flex-direction: column; }
.menu-panel a { display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--border); }
@media (max-width: 899px) {
  .nav-desktop { display: none; }
  .menu { display: block; }
}
@media (max-width: 599px) {
  .brand .full { display: none; }
  .brand .short { display: inline; }
}

/* ---------------------------------------------------------------- buttons */
.buttons { display: flex; flex-wrap: wrap; gap: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 8px; font: 600 15px/1 var(--sans); text-decoration: none; transition: background-color .15s, transform .15s, color .15s; }
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { background: var(--gold-hover); color: var(--bg); transform: translateY(-1px); }
.btn-primary:active { background: var(--gold-deep); transform: none; }
.btn-secondary { background: transparent; color: var(--gold); border: 1px solid var(--gold-deep); }
.btn-secondary:hover { background: var(--raised); color: var(--gold-hover); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; min-height: 620px; height: min(calc(100vh - 64px), 880px);
  display: flex; align-items: center; justify-content: center; text-align: center; isolation: isolate; }
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art { z-index: -2; }
.hero-art img { object-fit: cover; object-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,11,20,.15) 0%, rgba(10,11,20,.55) 60%, rgba(10,11,20,.92) 100%); }
.hero-glow { position: absolute; inset: -10%; z-index: -1; pointer-events: none; }
.hero-glow::before, .hero-glow::after { content: ""; position: absolute; width: 60%; height: 60%; border-radius: 50%; filter: blur(60px); }
.hero-glow::before { left: 10%; top: 20%; background: radial-gradient(closest-side, rgba(225,189,122,.35), transparent); opacity: .3; animation: drift-a 24s ease-in-out infinite alternate; }
.hero-glow::after { right: 5%; top: 30%; background: radial-gradient(closest-side, rgba(149,100,214,.4), transparent); opacity: .35; animation: drift-b 24s ease-in-out infinite alternate; }
@keyframes drift-a { from { transform: translate(0, 0); opacity: .25; } to { transform: translate(3%, 2%); opacity: .4; } }
@keyframes drift-b { from { transform: translate(0, 0); opacity: .4; } to { transform: translate(-3%, -2%); opacity: .25; } }
.hero-inner { position: relative; padding: 48px 24px; max-width: 760px; }
.hero-logo { width: 480px; max-width: 100%; height: auto; margin: 0 auto 24px; }
.hero-support { font-size: 20px; color: var(--text); margin: 0 auto 32px; max-width: 34em; text-shadow: 0 1px 12px rgba(10,11,20,.85); }
.hero .buttons { justify-content: center; }
@media (max-width: 599px) {
  .hero { min-height: 520px; height: min(calc(100svh - 56px), 760px); align-items: flex-end; }
  .hero-logo { width: min(84vw, 360px); }
  .hero-support { font-size: 18px; }
  .hero .buttons { flex-direction: column; align-items: stretch; }
  .hero .btn { width: 100%; }
}

/* ---------------------------------------------------------------- inner page header */
.page-head { position: relative; min-height: 240px; display: flex; align-items: flex-end; padding: 64px 0 40px;
  background:
    radial-gradient(60% 120% at 15% 0%, rgba(225,189,122,.16), transparent 70%),
    radial-gradient(50% 120% at 85% 10%, rgba(149,100,214,.22), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border); }
.page-head h1 { margin-bottom: 12px; }
.page-head .lede { margin: 0; }
.page-head.art { min-height: 420px; padding: 0; display: block; background: var(--bg); }
.page-head.art .art-frame { position: relative; height: 420px; overflow: hidden; }
.page-head.art .art-frame img { width: 100%; height: 100%; object-fit: cover; }
.page-head.art .art-frame::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,11,20,.15) 0%, rgba(10,11,20,.55) 60%, rgba(10,11,20,.92) 100%); }
.page-head.art .head-text { position: absolute; left: 0; right: 0; bottom: 40px; }
@media (max-width: 599px) {
  .page-head.art { min-height: 0; }
  .page-head.art .art-frame { height: 300px; }
  .page-head.art .art-frame::after { display: none; }
  .page-head.art .head-text { position: static; padding: 32px 0 8px; }
}

/* ---------------------------------------------------------------- divider */
.divider { display: flex; align-items: center; gap: 16px; max-width: var(--max); margin: 0 auto; padding: 0 24px; color: var(--gold-deep); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--gold-deep); opacity: .7; }
.divider svg { width: 12px; height: 12px; fill: currentColor; }

/* ---------------------------------------------------------------- grids and cards */
.two-col { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
@media (max-width: 899px) { .two-col { grid-template-columns: 1fr; gap: 16px; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; transition: box-shadow .2s, transform .2s, background-color .2s; }
.card.lift:hover { box-shadow: 0 8px 24px rgba(0,0,0,.45), inset 0 1px 0 rgba(225,189,122,.18); transform: translateY(-2px); background: var(--raised); }
.section.alt .card { background: var(--bg); }

.project { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); overflow: hidden; }
.project > * { min-width: 0; }
.project-media { width: 100%; height: 100%; min-height: 320px; aspect-ratio: auto; }
.project-media { position: relative; aspect-ratio: 16 / 9; background: var(--surface); }
.project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,11,20,.6) 100%); }
.project-body { padding: 32px; }
.project-body h3 { font-size: 28px; margin-bottom: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 16px; padding: 0; list-style: none; font-size: 14px; color: var(--text-2); }
.disclaimer { font-size: 14px; color: var(--muted); margin: 20px 0 0; }
.links-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }
@media (max-width: 899px) { .project { grid-template-columns: minmax(0, 1fr); } .project-media { height: auto; min-height: 0; aspect-ratio: 16 / 9; } .project-body { padding: 24px; } }
@media (max-width: 599px) { .project-body h3 { font-size: 22px; } }

.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font: 600 13px/1 var(--sans); }
.badge-released { color: var(--cyan); background: rgba(101,221,242,.12); }
.badge-in-development { color: var(--warning); background: rgba(242,181,92,.12); }
.badge-experimental { color: var(--violet-text); background: rgba(176,140,232,.12); }
.badge-planned { color: var(--muted); background: rgba(143,136,163,.12); }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 4px; }
.title-row h3 { margin: 0; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
@media (max-width: 1199px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .values { grid-template-columns: 1fr; } }
.value { padding: 24px; }
.value svg { width: 18px; height: 18px; fill: var(--gold); margin-bottom: 12px; }
.value h3 { font-size: 20px; }
.value p { color: var(--text-2); margin: 0; }

.team-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 32px 0 24px; }
@media (max-width: 899px) { .team-mini { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 399px) { .team-mini { grid-template-columns: 1fr; } }
.team-mini .card { padding: 24px; text-align: center; }
.team-mini img { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; }
.team-mini h3 { margin-bottom: 4px; }
.role { color: var(--gold); font-weight: 500; margin: 0 0 12px; }
.team-mini .role { margin: 0; font-size: 15px; }

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
@media (max-width: 1023px) { .team-grid { grid-template-columns: 1fr; } }
.member { padding: 32px; }
.member.founder { display: grid; grid-template-columns: 96px 1fr; gap: 24px 32px; }
.member.founder .member-text { grid-column: 2; }
@media (max-width: 599px) { .member.founder { grid-template-columns: 1fr; } .member.founder .member-text { grid-column: auto; } .member { padding: 24px; } }
.member img { width: 96px; height: 96px; border-radius: 50%; margin-bottom: 16px; }
.member .eyebrow { margin-bottom: 8px; }
.member p { color: var(--text-2); }
.stars { list-style: none; padding: 0; margin: 16px 0 0; }
.stars li { position: relative; padding-left: 24px; margin: 0 0 8px; color: var(--text); font-size: 15px; }
.stars li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 9px; height: 9px; background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.bullets-label { font: 600 13px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 20px 0 0; }

.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 899px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 499px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.steps li::before { content: counter(step); display: block; font: 400 28px/1 var(--serif); color: var(--gold); margin-bottom: 8px; }

.interests { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 24px; }
@media (max-width: 699px) { .interests { grid-template-columns: 1fr; } }
.interests .card { padding: 24px; }
.interests p { color: var(--text-2); margin: 0; }

.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 899px) { .panels { grid-template-columns: 1fr; } }
.panel { padding: 28px; }
.panel p { color: var(--text-2); }
.panel p:last-child { margin-bottom: 0; }

.closing { position: relative; overflow: hidden; text-align: center; padding: 128px 0; isolation: isolate; }
.closing .hero-art img { object-fit: cover; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10,11,20,.78); }
.closing h2 { font-size: 36px; margin-bottom: 32px; }
.closing .buttons { justify-content: center; }
.h3-size { font-size: 22px; }
.more-row { margin-top: 32px; }
.project-list { display: grid; gap: 32px; }
@media (max-width: 599px) { .closing { padding: 96px 0; } .closing h2 { font-size: 26px; } }

.journal-line { text-align: center; color: var(--text-2); margin: 0; }

/* ---------------------------------------------------------------- documents (legal, simple pages) */
.doc { padding: 64px 0 96px; }
.doc article { max-width: var(--prose); }
.doc article h2 { margin-top: 48px; font-size: 26px; }
.doc article h3 { margin-top: 32px; }
.doc article ul, .doc article ol { padding-left: 22px; }
.doc article li { margin-bottom: 8px; }
.doc .note { border-left: 2px solid var(--gold-deep); padding: 4px 0 4px 16px; color: var(--text-2); margin: 24px 0; }
.draft-banner { background: rgba(242,181,92,.12); border: 1px solid var(--warning); color: var(--text); border-radius: 8px; padding: 12px 16px; margin: 0 0 32px; font-size: 15px; }
.draft-banner strong { color: var(--warning); }
.doc-meta { font-size: 14px; color: var(--muted); margin: -4px 0 32px; }
.doc-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.doc-list li { margin: 0; }
.doc-list a { display: block; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text); }
.doc-list a:hover { background: var(--raised); color: var(--gold-hover); }
.doc-list .meta { display: block; margin-top: 4px; }
.licence-text { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; white-space: pre-wrap;
  overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; color: var(--text); }
.table { overflow-x: auto; margin: 24px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; color: var(--text-2); }
td code { overflow-wrap: anywhere; font-size: 12px; color: var(--text-2); }
.legal-basis summary { cursor: pointer; color: var(--gold); }
.legal-basis { margin-top: 40px; font-size: 15px; color: var(--text-2); }

.not-found { min-height: calc(100vh - 64px - 200px); display: flex; align-items: center; text-align: center; padding: 96px 0; }
.not-found .wrap { width: 100%; }
.not-found img { height: 80px; width: auto; margin: 0 auto 24px; }
.not-found .buttons { justify-content: center; margin-top: 24px; }

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg); padding: 48px 0 40px; font-size: 14px; color: var(--muted); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 24px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--text-2); }
.footer-brand img { height: 32px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--gold-hover); text-decoration: underline; }
.site-footer p { margin: 0; }

/* ---------------------------------------------------------------- entrance (added by JavaScript only) */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .4s ease; }
.js .reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn-primary:hover, .card.lift:hover { transform: none; }
}

/* ---------------------------------------------------------------- updates page */
.project-updates { padding: 32px; }
.project-updates .pu-title { margin: 0; font-size: 28px; }
.updates { list-style: none; padding: 0; margin: 24px 0; border-left: 1px solid var(--gold-deep); }
.update { position: relative; padding: 0 0 24px 24px; }
.update::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; background: var(--gold);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.update h3 { font-size: 20px; margin: 4px 0 8px; }
.update p:last-child { color: var(--text-2); margin: 0; }
.update .meta { margin: 0; }
.next-title { font-size: 20px; margin-top: 8px; }
.project-updates th[scope="row"] { white-space: nowrap; color: var(--gold); font-weight: 500; }
@media (max-width: 599px) { .project-updates { padding: 24px; } .project-updates .pu-title { font-size: 22px; } .project-updates th[scope="row"] { white-space: normal; } }
