/* AeternumX – public site. Black, white, three accents. */
/* Fonts served from this site (SIL OFL 1.1, licenses in assets/fonts). No third-party requests. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 600; font-display: swap; src: url("fonts/cormorant-garamond.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: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/cormorant-garamond-italic.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: "IBM Plex Sans"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("fonts/ibm-plex-sans.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; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:root {
  --bg: #070708;
  --bg-2: #0c0c0e;
  --surface: rgba(20, 20, 23, 0.72);
  --surface-solid: #141417;
  --surface-2: rgba(28, 28, 32, 0.85);
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f3f1ec;
  --text-2: #c8c5be;
  --muted: #8e8a83;
  --faint: #5d5a55;
  --amber: #f0a646;
  --amber-2: #f7c873;
  --teal: #4fd6c4;
  --violet: #a48bff;
  --ok: var(--teal);
  --test: var(--violet);
  --work: var(--amber);
  --plan: #5a5751;
  --shine: linear-gradient(90deg, #e8913a 0%, #f0a646 22%, #f7c873 48%, #a9e2c8 74%, #4fd6c4 100%);
  --display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --radius: 12px;
  --gutter: 20px;
  --max: 1320px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--bg); }
body { margin: 0; background: transparent; color: var(--text); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--amber-2); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--text); color: var(--bg); padding: 6px 12px; border-radius: 6px; }
.skip:focus { left: 8px; }

/* ---------- Page background: light, grid, glowing particles ---------- */
.bg { position: fixed; inset: 0; z-index: -10; pointer-events: none; overflow: hidden; }
.bg__glow { position: absolute; inset: -20%; background:
  radial-gradient(38% 30% at 18% 22%, rgba(240,166,70,.10), transparent 70%),
  radial-gradient(34% 30% at 85% 35%, rgba(79,214,196,.09), transparent 70%),
  radial-gradient(40% 32% at 50% 95%, rgba(164,139,255,.06), transparent 70%);
  animation: bgdrift 40s ease-in-out infinite alternate; }
@keyframes bgdrift { to { transform: translate3d(4%, -3%, 0) scale(1.06); } }
.bg__grid { position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.2px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent 85%); mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent 85%); }
.bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bg__vignette { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 30%, transparent 55%, rgba(0,0,0,.6)); }

/* ---------- Header ---------- */
@keyframes pulse { 50% { opacity: .3; } }
.head { position: sticky; top: 0; z-index: 50; background: rgba(7, 7, 8, .78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.head__in { display: flex; align-items: center; gap: 34px; height: 64px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.mark img { width: 34px; height: 34px; border-radius: 50%; filter: drop-shadow(0 0 10px rgba(240,166,70,.25)); }
.mark span { font: 600 1.42rem/1 var(--display); letter-spacing: .01em; }
.mark b { color: var(--amber); font-weight: 600; margin-left: 1px; }
.nav { display: flex; gap: 24px; }
.nav a { position: relative; text-decoration: none; color: var(--muted); font-size: 14.5px; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--amber); transition: right .25s; }
.nav a:hover, .nav a.is-here { color: var(--text); }
.nav a:hover::after, .nav a.is-here::after { right: 0; }
.head__acts { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.head__acts a:not(.btn):not(.icon-link) { text-decoration: none; font-size: 14.5px; color: var(--text-2); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); font: 500 14px var(--sans); padding: 7px 12px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 8px; border: 1px solid var(--line-2); background: transparent; color: var(--text); text-decoration: none; font: 500 15px var(--sans); cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .2s; white-space: nowrap; }
.btn:hover { border-color: var(--text-2); color: var(--text); transform: translateY(-1px); }
.btn--primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn--primary:hover { background: #fff; border-color: #fff; color: var(--bg); box-shadow: 0 8px 30px -10px rgba(240, 166, 70, .6); }
.btn--sm { padding: 7px 14px; font-size: 14px; }
.btn--discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn--discord:hover { background: #6d78f5; border-color: #6d78f5; color: #fff; }
.btn.is-soon { cursor: default; opacity: .85; }
.btn.is-soon:hover { transform: none; box-shadow: none; }
.soon { font-size: 10.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,.18); }
.ico { width: 18px; height: 18px; flex: none; }
.icon-link { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: var(--muted); border: 1px solid var(--line); }
.icon-link:hover { color: #fff; border-color: #5865f2; background: rgba(88,101,242,.15); }
.icon-link.is-soon { opacity: .6; }
a.is-soon { cursor: default; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero__map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: -2;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,7,8,.85) 0%, rgba(7,7,8,.4) 38%, rgba(7,7,8,0) 62%);
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.hero__in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; min-height: min(78svh, 740px); padding: 64px 0 80px; }
.live { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; padding: 5px 12px 5px 10px; border: 1px solid rgba(79,214,196,.35); border-radius: 999px; background: rgba(79,214,196,.07); font-size: 13px; color: var(--text-2); }
.live i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.live i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--teal); animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
.live b { color: var(--teal); font-weight: 500; letter-spacing: .08em; }
.live--closed { --ember: #f2683a; padding-right: 14px; border-color: rgba(242,104,58,.5); background: linear-gradient(90deg, rgba(242,104,58,.16), rgba(240,140,60,.06)); box-shadow: 0 0 24px -10px rgba(242,104,58,.7); }
.live--closed i { background: var(--ember); box-shadow: 0 0 8px var(--ember); }
.live--closed i::after { border-color: var(--ember); }
.live--closed b { color: #ff8a5c; letter-spacing: .12em; }
.hero h1 { font: 500 clamp(2.8rem, 6.2vw, 5rem)/.98 var(--display); letter-spacing: -.012em; text-wrap: balance; }
.hero__answer { font: italic 500 clamp(2.6rem, 6vw, 4.6rem)/1.02 var(--display); margin: 6px 0 20px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--amber-2) 50%, var(--amber) 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.hero__lead { color: var(--text-2); font-size: 17.5px; max-width: 42ch; margin-bottom: 28px; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* Countdown with a slowly breathing teal/amber edge */
.clock-card { position: relative; background: rgba(16, 16, 19, .82); border-radius: 14px; padding: 22px 22px 18px; backdrop-filter: blur(8px); animation: breathe 7s ease-in-out infinite; }
.clock-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang), rgba(240,166,70,.9), rgba(79,214,196,.15) 25%, rgba(79,214,196,.9) 50%, rgba(240,166,70,.15) 75%, rgba(240,166,70,.9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 12s linear infinite; }
@keyframes spin { to { --ang: 360deg; } }
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0), 0 0 30px -14px rgba(240,166,70,.25), 0 30px 80px -30px rgba(0,0,0,.9); }
  50% { box-shadow: 0 0 0 0 rgba(0,0,0,0), 0 0 54px -10px rgba(79,214,196,.32), 0 30px 80px -30px rgba(0,0,0,.9); }
}
.card-label { margin: 0 0 12px; font-size: 11.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.clock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.clock div { background: rgba(7,7,8,.7); border: 1px solid var(--line); border-radius: 8px; padding: 12px 4px 9px; text-align: center; }
.clock b { display: block; font: 500 2.1rem/1 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.clock span { font-size: 10.5px; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; }
.clock-card__foot { display: flex; justify-content: flex-end; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.clock-card__foot b { color: var(--text-2); font-weight: 500; }

/* ---------- Sections ---------- */
.sec { position: relative; padding: 72px 0 0; }
.sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.kicker { margin: 0 0 6px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.sec h2 { font: 500 clamp(1.9rem, 3.6vw, 2.6rem)/1.05 var(--display); }
.sec__aside { font-size: 13.5px; color: var(--muted); }
.panel { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(6px); }
.foot-note { margin-top: 8px; font-size: 12px; color: var(--faint); }

/* ---------- One bar style everywhere ---------- */
.bar { position: relative; height: 8px; border-radius: 99px; background: rgba(255,255,255,.06); box-shadow: inset 0 1px 2px rgba(0,0,0,.5); }
.bar > i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--shine); background-size: var(--bs, 100%) 100%;
  transition: width 1.6s cubic-bezier(.22,.8,.2,1); transition-delay: var(--delay, 0s); box-shadow: 0 0 12px -2px rgba(240,166,70,.45); overflow: hidden; }
.bar > i::before { content: ""; position: absolute; inset: 0 0 50% 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0)); }
.bar > i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); background-size: 250% 100%; animation: sheen 3.6s ease-in-out infinite; animation-delay: var(--delay, 0s); }
@keyframes sheen { from { background-position: 170% 0; } to { background-position: -70% 0; } }
.bar > b { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; left: 0; border-radius: 50%; background: #fff7e6; opacity: 0;
  box-shadow: 0 0 10px 3px rgba(247,200,115,.7), 0 0 22px 6px rgba(79,214,196,.25); transition: left 1.6s cubic-bezier(.22,.8,.2,1), opacity .4s; transition-delay: var(--delay, 0s); }
.is-in .bar > b { opacity: 1; animation: headpulse 2.4s ease-in-out infinite; }
@keyframes headpulse { 50% { box-shadow: 0 0 6px 1px rgba(247,200,115,.5), 0 0 14px 3px rgba(79,214,196,.15); } }
.pct { font: 500 13.5px var(--sans); font-variant-numeric: tabular-nums; color: var(--text); text-align: right; }

/* ---------- Status (compact) ---------- */
.status { padding: 20px 24px 20px; }
.status__top { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
.status__big { font: 500 3.2rem/1 var(--display); font-variant-numeric: lining-nums; }
.status__big small { font-size: .5em; color: var(--muted); }
.status__big sup { font: 400 12px var(--sans); color: var(--faint); vertical-align: top; }
.status__answer { font: italic 500 1.6rem/1 var(--display); color: var(--amber-2); }
.status__sep { width: 1px; height: 34px; background: var(--line-2); }
.status__furthest { font-size: 13.5px; color: var(--muted); }
.status__furthest b { color: var(--text); font-weight: 500; }
.status__counts { display: flex; gap: 16px; flex-wrap: wrap; margin-left: auto; }
.scale { position: relative; padding: 2px 0; }
.scale .bar { height: 10px; }
.ticks { position: absolute; inset: 0; pointer-events: none; }
.ticks span { position: absolute; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; border-radius: 1px; background: rgba(255,255,255,.1); transition: background .4s, box-shadow .4s; transition-delay: var(--delay, 0s); }
.is-in .ticks span.is-done { background: rgba(7,7,8,.75); }
.legend-row { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 8px; }
.legend-row li { font-size: 12px; line-height: 1.3; color: var(--faint); }
.legend-row b { display: block; font: 500 12px var(--sans); font-variant-numeric: tabular-nums; color: var(--faint); }
.legend-row li.is-done { color: var(--text-2); }
.legend-row li.is-done b { color: var(--amber); }
.legend-row li.is-done b::after { content: " ✓"; color: var(--teal); }
.phases { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 36px; }
.phases li { display: grid; grid-template-columns: 120px 1fr 44px; gap: 12px; align-items: center; }
.phases .n { font-size: 14px; color: var(--text-2); }

/* State chips */
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--c, var(--muted)); white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--plan)); box-shadow: 0 0 8px var(--c, transparent); }
[data-s="working"], [data-s="done"], [data-s="playable"] { --c: var(--ok); }
[data-s="testing"] { --c: var(--test); }
[data-s="progress"] { --c: var(--work); }
[data-s="planned"], [data-s="charted"], [data-s="uncharted"] { --c: #8a857c; }
.st[data-s="planned"]::before, .st[data-s="charted"]::before, .st[data-s="uncharted"]::before { box-shadow: none; }

/* ---------- Island ---------- */
.island { display: grid; grid-template-columns: 1fr 340px; gap: 12px; }
.chart { padding: 12px; overflow: hidden; }
.layers { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.layers label { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--text-2); cursor: pointer; user-select: none; transition: border-color .2s, opacity .2s; }
.layers input { position: absolute; opacity: 0; pointer-events: none; }
.layers label i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.layers label:has(input:not(:checked)) { opacity: .45; }
.layers label:hover { border-color: var(--text-2); }
.map-wrap { position: relative; border-radius: 10px; background: radial-gradient(70% 70% at 50% 50%, #141416, #08080a 75%); border: 1px solid var(--line); }
#map { display: block; width: 100%; height: 560px; cursor: crosshair; }
.map-tip { position: absolute; z-index: 2; pointer-events: none; padding: 7px 10px; border-radius: 8px; background: rgba(7,7,8,.94); border: 1px solid var(--line-2); font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.map-tip b { display: block; color: var(--text); font-weight: 500; }
.terr { display: flex; flex-direction: column; padding: 8px; max-height: 616px; }
.terr__head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; }
.terr ul { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
.terr button { width: 100%; display: grid; grid-template-columns: 22px 1fr 70px 40px; gap: 10px; align-items: center; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font: 400 14px var(--sans); text-align: left; cursor: pointer; transition: background .15s; }
.terr button:hover { background: var(--surface-2); color: var(--text); }
.terr button.is-sel { background: rgba(240,166,70,.1); color: var(--text); box-shadow: inset 0 0 0 1px rgba(240,166,70,.3); }
.terr .no { font: 500 11.5px var(--sans); color: var(--faint); font-variant-numeric: tabular-nums; }
.terr button.is-sel .no { color: var(--amber); }
.terr .pct { color: var(--muted); }
.terr button.is-sel .pct { color: var(--amber-2); }

/* ---------- Features (compact, no info text) ---------- */
.features { padding: 16px 18px; }
.features__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.feat-counts { display: flex; flex-wrap: wrap; gap: 14px; }
.flist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; }
.flist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; background: rgba(255,255,255,.025); border: 1px solid var(--line); font-size: 14px; transition: border-color .2s, background .2s, transform .2s; position: relative; overflow: hidden; }
.flist li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--c, transparent); }
.flist li:hover { border-color: var(--line-2); background: rgba(255,255,255,.05); transform: translateY(-1px); }
.js .flist li { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease, border-color .2s, background .2s; transition-delay: calc(var(--i, 0) * 30ms); }
.js .features.is-in .flist li { opacity: 1; transform: none; }

/* ---------- News timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 4px 0 4px 26px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--amber), rgba(79,214,196,.5) 45%, var(--line)); }
.tl { position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 14px; align-items: center; padding: 10px 14px; margin-bottom: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s, transform .2s; }
.tl:hover { border-color: var(--line-2); transform: translateX(3px); }
.tl::before { content: ""; position: absolute; left: -25px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); }
.tl.is-current { border-color: rgba(240,166,70,.3); background: linear-gradient(90deg, rgba(240,166,70,.09), var(--surface) 55%); }
.tl.is-current::before { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 0 4px rgba(240,166,70,.15); animation: dotpulse 2.6s ease-in-out infinite; }
@keyframes dotpulse { 50% { box-shadow: 0 0 0 7px rgba(240,166,70,.04); } }
.tl time { font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.tl.is-current time { color: var(--amber); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { font-size: 12.5px; padding: 2px 9px; border-radius: 6px; background: rgba(255,255,255,.035); border: 1px solid var(--line); color: var(--text-2); }
.chip--more { color: var(--muted); border-style: dashed; cursor: pointer; font: inherit; font-size: 12.5px; }
.chip--more:hover { color: var(--text); }
.js .timeline .tl { opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease, border-color .2s; transition-delay: calc(var(--i, 0) * 90ms); }
.js .timeline.is-in .tl { opacity: 1; transform: none; }

/* ---------- The idea (compact cards with image) ---------- */
.idea { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.icard { overflow: hidden; transition: transform .25s, border-color .25s; }
.icard:hover { transform: translateY(-3px); border-color: var(--line-2); }
.icard__img { position: relative; height: 150px; overflow: hidden; }
.icard__img img { width: 100%; height: 100%; object-fit: cover; filter: brightness(1.1) saturate(1.05); animation: slowzoom 24s ease-in-out infinite alternate; }
.icard:nth-child(2) .icard__img img { animation-delay: -8s; }
.icard:nth-child(3) .icard__img img { animation-delay: -16s; }
.icard__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,20,23,.95), transparent 60%); }
@keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.icard__body { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 0 16px 16px; margin-top: -18px; }
.icard__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(240,166,70,.14); color: var(--amber); backdrop-filter: blur(4px); }
.icard:nth-child(2) .icard__ico { background: rgba(79,214,196,.14); color: var(--teal); }
.icard:nth-child(3) .icard__ico { background: rgba(164,139,255,.16); color: var(--violet); }
.icard__ico svg { width: 18px; height: 18px; }
.icard h3 { font: 500 15.5px/1.3 var(--sans); }
.icard p { font-size: 13.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 14px; padding: 12px 16px; font-weight: 500; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--amber); font-size: 18px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 16px 13px; color: var(--muted); font-size: 14.5px; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; margin-top: 72px; }
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; animation: slowzoom 30s ease-in-out infinite alternate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(7,7,8,.92), rgba(7,7,8,.35)); }
.cta__in { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 32px 36px; }
.cta h2 { font: 500 clamp(1.7rem, 3vw, 2.3rem)/1.1 var(--display); }
.cta p { margin-top: 6px; color: var(--text-2); }
.cta__acts { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer (compact) ---------- */
.foot { margin-top: 64px; border-top: 1px solid var(--line); background: rgba(10,10,12,.85); padding: 22px 0 18px; font-size: 13.5px; color: var(--muted); }
.foot__row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-left: auto; }
.foot__links a { text-decoration: none; }
.foot__links span { color: var(--faint); }
.foot__legal { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.6; color: var(--faint); }
.foot__legal p { margin: 0; }
.foot__copy { font-size: 12.5px; color: var(--faint); white-space: nowrap; }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal { display: grid; grid-template-columns: 210px minmax(0, 760px); gap: 60px; padding: 56px 0 0; }
.legal__toc { position: sticky; top: 92px; align-self: start; font-size: 14px; }
.legal__toc p { margin: 0 0 10px; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.legal__toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; border-left: 1px solid var(--line); }
.legal__toc a { display: block; padding-left: 14px; text-decoration: none; color: var(--muted); }
.legal__toc a:hover { color: var(--text); }
.legal h1 { font: 500 clamp(2.3rem, 5vw, 3.2rem)/1.05 var(--display); }
.legal__meta { color: var(--muted); font-size: 14px; margin: 10px 0 24px; }
.draft { border: 1px solid rgba(240,166,70,.35); background: rgba(240,166,70,.07); border-radius: 8px; padding: 12px 14px; font-size: 14px; color: var(--text-2); margin-bottom: 30px; }
.draft b { color: var(--amber); font-weight: 500; }
.legal h2 { font: 500 1.5rem/1.2 var(--display); margin: 34px 0 10px; scroll-margin-top: 92px; }
.legal p, .legal li { color: var(--text-2); }
.legal p { margin-bottom: 1em; }
.legal ul { padding-left: 20px; margin: 0 0 1em; }
.legal li { margin-bottom: 5px; }
.legal .ph { color: var(--amber); background: rgba(240,166,70,.1); padding: 0 4px; border-radius: 3px; }
.legal address { font-style: normal; color: var(--text-2); margin-bottom: 1em; }

/* ---------- Account pages ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - 64px); }
.auth__art { position: relative; overflow: hidden; border-right: 1px solid var(--line); }
.auth__art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth__quote { position: absolute; z-index: 1; left: 36px; right: 36px; bottom: 32px; font: italic 500 1.8rem/1.2 var(--display); }
.auth__panel { display: flex; flex-direction: column; justify-content: center; padding: 56px clamp(24px, 6vw, 90px); }
.auth__panel h1 { font: 500 clamp(2.3rem, 4.2vw, 3rem)/1.05 var(--display); margin-bottom: 8px; }
.auth__panel > p { color: var(--muted); margin-bottom: 26px; max-width: 42ch; }
.form { display: grid; gap: 16px; max-width: 400px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text-2); }
.field input { font: inherit; color: var(--text); background: var(--surface-solid); border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
.field input:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(240,166,70,.15); }
.field input[aria-invalid="true"] { border-color: #e0786a; }
.field small { color: var(--faint); font-size: 13px; }
.err { color: #f09a8c; font-size: 13px; }
.err:empty { display: none; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { accent-color: var(--amber); width: 16px; height: 16px; margin-top: 3px; flex: none; }
.form .btn { justify-self: start; }
.notice { max-width: 400px; margin-top: 22px; border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 14px; color: var(--text-2); font-size: 14px; }
.notice[hidden] { display: none; }
.notice b { color: var(--amber); font-weight: 500; }
.auth__switch { margin-top: 26px; color: var(--muted); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .head__acts { display: none; }
  .menu-btn { display: block; }
  .head.is-open .head__in { flex-wrap: wrap; height: auto; min-height: 64px; padding-bottom: 18px; }
  .head.is-open .nav, .head.is-open .head__acts { display: flex; width: 100%; }
  .head.is-open .nav { flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); order: 3; }
  .head.is-open .head__acts { order: 4; margin: 8px 0 0; }
  .hero__in { grid-template-columns: 1fr; gap: 32px; min-height: 0; padding: 56px 0 64px; }
  .hero::after { background: linear-gradient(0deg, rgba(7,7,8,.6), rgba(7,7,8,.5) 50%, rgba(7,7,8,.3)); }
  .legend-row { grid-template-columns: repeat(4, minmax(0,1fr)); row-gap: 10px; }
  .phases { grid-template-columns: 1fr; }
  .status__counts { margin-left: 0; }
  .island { grid-template-columns: 1fr; }
  #map { height: 440px; }
  .terr { max-height: none; }
  .terr ul { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; }
  .idea { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; gap: 20px; padding-top: 40px; }
  .legal__toc { position: static; }
  .foot__links { margin-left: 0; }
  .auth { grid-template-columns: 1fr; }
  .auth__art { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .auth__quote { display: none; }
}
@media (max-width: 680px) {
  :root { --gutter: 16px; }
  .sec { padding-top: 56px; }
  .status { padding: 16px; }
  .status__sep { display: none; }
  .legend-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .phases li { grid-template-columns: 1fr 44px; gap: 6px 12px; }
  .phases .bar { grid-column: 1 / -1; grid-row: 2; }
  #map { height: 330px; }
  .terr ul { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; gap: 6px; }
  .faq { grid-template-columns: 1fr; }
  .cta__in { padding: 24px 18px; }
  .clock b { font-size: 1.75rem; }
  .icard__img { height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js .flist li, .js .timeline .tl { opacity: 1; transform: none; }
}

/* 404 */
.lost { min-height: calc(100svh - 64px - 120px); display: grid; place-items: center; text-align: center; }
.lost__in { padding: 80px 16px; }
.lost h1 { font: 500 clamp(2.6rem, 6vw, 4.4rem)/1 var(--display); margin: 0 0 14px; }
.lost p { color: var(--text-2); margin: 0 0 28px; }
.lost__acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Short note, e.g. "Not open yet" */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 10px; border: 1px solid rgba(240,166,70,.35);
  background: rgba(14,14,16,.94); backdrop-filter: blur(8px); color: var(--text-2); font-size: 15px;
  box-shadow: 0 18px 50px -18px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03), 0 0 30px -12px rgba(240,166,70,.45);
  transition: opacity .25s, transform .25s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast b { color: var(--amber); font-weight: 500; margin-right: 4px; }
.toast a { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

