/* Magellan Studios — site styles */
:root {
  --bg: #0A0F0F;
  --panel: #0F1818;
  --panel-2: #0C1313;
  --line: #1F2C2C;
  --line-2: #253232;
  --line-3: #344242;
  --text: #ECECEC;
  --text-2: #A3A9B1;
  --text-3: #858D95;
  --gold: #D4AE66;
  --gold-2: #EBD3A0;
  --mint: #7FC8B8;
  --serif: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --gutter: clamp(16px, 3vw, 40px);
  --header-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
::selection { background: var(--gold); color: var(--bg); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3, p, ul, ol, dl, dd, figure, pre { margin: 0; }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--bg); padding: 10px 14px; font-family: var(--mono); font-size: 14px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; color: var(--bg); }
.wrap { max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); }
.gold { color: var(--gold); }
.mint { color: var(--mint); }
.dim { color: var(--text-3); }
.it { font-style: italic; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(10, 15, 15, 0.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid #1A2626; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0 28px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text); text-decoration: none; flex: none; }
.brand:hover { color: var(--text); }
.brand img { width: 28px; height: 29px; object-fit: contain; }
.brand span { font-family: var(--serif); font-size: 20px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 0 22px; font-family: var(--mono); font-size: 13px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav-status { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--text-3); white-space: nowrap; }
.nav-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.progress { height: 2px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }
@media (max-width: 1100px) { .nav-status { display: none; } }
@media (max-width: 720px) {
  .site-header .wrap { flex-wrap: wrap; padding-top: 4px; }
  .nav { width: 100%; overflow-x: auto; scrollbar-width: none; gap: 0 18px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .nav::-webkit-scrollbar { display: none; }
}

/* ---------- type ---------- */
.eyebrow { font-family: var(--mono); font-size: 13px; color: var(--gold); }
.display { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4.2vw, 58px); line-height: 1.08; letter-spacing: -0.015em; }
.h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 56px); line-height: 1.1; letter-spacing: -0.015em; }
.h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -0.01em; }
.lede { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.6; color: var(--text-2); max-width: 34em; }
.muted { color: var(--text-2); }
.section { padding-top: clamp(88px, 11vw, 160px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-bottom: 40px; }
.section-head > div { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.section-head > p { flex: 0 1 400px; min-width: 0; color: var(--text-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border: 1px solid var(--line-3); background: transparent; color: var(--text); font-family: var(--mono); font-size: 14px; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; -webkit-appearance: none; appearance: none; border-radius: 0; }
.btn:hover { border-color: var(--gold); color: var(--gold); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--bg); font-weight: 700; }
.btn-gold:hover { background: #E2C07F; border-color: #E2C07F; color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--mono); font-size: 14px; color: var(--gold); text-decoration: none; }
.textlink:hover { color: var(--gold-2); }

/* ---------- terminal windows ---------- */
.term { background: var(--panel); border: 1px solid var(--line); }
.term-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.term-bar b { color: var(--text); font-weight: 400; }
.term-body { padding: clamp(18px, 2.6vw, 28px); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.tags span { border: 1px solid #2A3636; padding: 3px 8px; }
.tags .on { border-color: #5A4416; color: var(--gold); }
.tags .live { border-color: #2C5048; color: var(--mint); }

/* ---------- ASCII field ---------- */
.field { position: absolute; inset: 0; overflow: hidden; background: var(--bg); font-family: var(--mono); cursor: crosshair; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.field pre { position: absolute; inset: 0; margin: 0; font-family: inherit; font-size: 13px; line-height: 15px; white-space: pre; overflow: hidden; pointer-events: none; }
.field .l0 { color: #1F302E; }
.field .l1 { color: #5E9A8F; }
.field .l2 { color: var(--gold); font-weight: 700; }
.field-probe { position: absolute; visibility: hidden; white-space: pre; font-family: var(--mono); }

/* ---------- hero ---------- */
.hero { position: relative; height: clamp(760px, 64vw, 880px); overflow: hidden; border-bottom: 1px solid #1A2626; }
.hero-hint { position: absolute; top: 18px; right: var(--gutter); z-index: 2; font-family: var(--mono); font-size: 12px; color: var(--text-3); pointer-events: none; }
.hero-ui { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter) clamp(24px, 5vw, 64px); pointer-events: none; }
.hero-ui .term { max-width: 640px; background: rgba(10, 15, 15, 0.9); border-color: var(--line-2); pointer-events: auto; }
.hero-ui .term-body { display: flex; flex-direction: column; gap: 20px; }
.whoami { font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--text-3); }
.whoami span { color: var(--text-2); }
.prompt { display: flex; flex-wrap: wrap; gap: 8px; }
.prompt-input { flex: 1 1 240px; min-width: 0; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border: 1px solid var(--line-3); background: var(--bg); }
.prompt-input:focus-within { border-color: var(--gold); }
.prompt-input span { font-family: var(--mono); color: var(--gold); }
.prompt-input input { flex: 1; min-width: 0; height: 40px; background: transparent; border: 0; color: var(--text); font-family: var(--mono); font-size: 16px; outline: none; }
.form-note { font-family: var(--mono); font-size: 12px; line-height: 1.5; color: var(--text-3); }
.form-ok { font-family: var(--mono); font-size: 15px; color: var(--text); }
.form-ok::before { content: "✓ "; color: var(--mint); }
.form-err { font-family: var(--mono); font-size: 13px; color: #F0A58C; }
input::placeholder, textarea::placeholder { color: #6B7178; opacity: 1; }
@media (max-width: 640px) {
  .field pre { font-size: 11px; line-height: 13px; }
  .hero-hint { display: none; }
}

/* ---------- fleet cards ---------- */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 860px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.fleet { list-style: none; padding: 0; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); transition: border-color .2s; }
.card:hover, .card:focus-within { border-color: var(--gold); }
.art { position: relative; display: block; width: 100%; height: 350px; padding: 0; overflow: hidden; background: var(--panel-2); border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; color: inherit; font: inherit; text-decoration: none; }
.art-ascii { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; line-height: 12px; font-weight: 500; white-space: pre; transition: opacity .35s ease; }
.art-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s ease; }
.art-hint { position: absolute; right: 10px; bottom: 8px; font-family: var(--mono); font-size: 11px; color: var(--text-3); transition: opacity .2s; }
.art.is-on .art-ascii, .art.is-on .art-hint { opacity: 0; }
.art.is-on .art-img { opacity: 1; }
@media (hover: hover) {
  .card:hover .art-ascii, .card:hover .art-hint { opacity: 0; }
  .card:hover .art-img { opacity: 1; }
}
.card-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 2.4vw, 28px); }
.card-title { display: flex; align-items: center; gap: 14px; }
.card-title img { width: 44px; height: 44px; border-radius: 11px; }
.card-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0 24px; }
@media (max-width: 640px) { .art { height: 280px; } .art-ascii { font-size: 8.5px; line-height: 9.5px; } }

/* ---------- studio ---------- */
.code { list-style: none; padding: 18px 0; font-family: var(--mono); font-size: 14px; line-height: 1.75; }
.code li { display: flex; gap: 16px; padding: 0 18px; min-height: 1.75em; }
.code li::before { content: attr(data-n); flex: none; width: 2ch; text-align: right; color: #4A5656; }
.code .hd { color: var(--text); font-weight: 700; }
.code .tx { color: var(--text-2); }
.log { display: flex; flex-direction: column; gap: 14px; font-family: var(--mono); font-size: 13px; }
.log-row { display: flex; align-items: center; gap: 12px; }
.log-row > :first-child { flex: 0 0 13ch; }
.log-row > :last-child { flex: 0 0 auto; min-width: 9ch; text-align: right; color: var(--mint); }
.bar { flex: 1; height: 12px; background: #162121; }
.bar i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 8px); }
@media (max-width: 480px) { .log-row > :first-child { flex-basis: 10ch; } .log-row > :last-child { display: none; } }
.checks { list-style: none; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; font-family: var(--mono); font-size: 14px; line-height: 1.5; }
.checks li { display: flex; gap: 12px; }
.checks li::before { content: "[✓]"; color: var(--mint); flex: none; }
.checks b { color: var(--text); font-weight: 400; display: block; }
.checks span { color: var(--text-2); }
.steps { list-style: none; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; font-family: var(--mono); font-size: 14px; line-height: 1.5; color: var(--text-2); counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: "0" counter(s) "  "; color: var(--gold); white-space: pre; }

/* ---------- band ---------- */
.band { position: relative; height: clamp(460px, 40vw, 540px); overflow: hidden; margin-top: clamp(88px, 11vw, 160px); border-top: 1px solid #1A2626; border-bottom: 1px solid #1A2626; }
.band-ui { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter); pointer-events: none; }
.band-ui .term { width: 100%; max-width: 720px; background: rgba(10, 15, 15, 0.9); border-color: var(--line-2); pointer-events: auto; }
.band-ui .term-body { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: clamp(24px, 4vw, 44px); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid #1A2626; }
.page-hero .field { opacity: .9; }
.page-hero-inner { position: relative; z-index: 2; padding-block: clamp(64px, 9vw, 120px) clamp(48px, 6vw, 80px); pointer-events: none; }
.page-hero-inner .term { max-width: 760px; background: rgba(10, 15, 15, 0.9); border-color: var(--line-2); pointer-events: auto; }
.page-hero-inner .term-body { display: flex; flex-direction: column; gap: 18px; }

/* ---------- app page ---------- */
.app-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; }
@media (max-width: 900px) { .app-hero { grid-template-columns: minmax(0, 1fr); } }
.app-id { display: flex; align-items: center; gap: 16px; }
.app-id img { width: 72px; height: 72px; border-radius: 17px; }
.crew { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.crew figure { position: relative; border: 1px solid var(--line-2); background: var(--panel-2); overflow: hidden; }
.crew img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.crew figcaption { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; background: rgba(10, 15, 15, 0.9); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12px; line-height: 1.35; color: var(--text-2); }
.crew figcaption b { display: block; font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--text); }
@media (max-width: 520px) { .crew figcaption { font-size: 10px; } .crew figcaption b { font-size: 14px; } }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .features { grid-template-columns: minmax(0, 1fr); } }
.mock { height: 220px; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 22px; background: #121A2A; border-bottom: 1px solid var(--line); font-family: var(--sans); }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: #1B2440; color: #E4DCFA; font-size: 14px; }
.mock-row em { font-style: normal; font-family: var(--mono); font-size: 12px; font-weight: 700; color: #121A2A; background: #B9A3F5; padding: 2px 8px; }
.mock-row s { color: #8C80A8; }
.streak { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 5px; }
.streak i { aspect-ratio: 1; background: #B9A3F5; }
.streak i.off { background: transparent; border: 1px solid #3B3468; }
.streak i.today { background: var(--gold); }
.treemap { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 5px; font-family: var(--mono); font-size: 12px; }
.treemap span { padding: 6px 8px; color: #121A2A; font-weight: 700; }
.kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); }
.kv > div { padding: 18px 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.kv > div:last-child { border-right: 0; }
.kv dt { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.kv dd { font-size: 17px; }
@media (max-width: 780px) { .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kv > div:nth-child(2n) { border-right: 0; } .kv > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
@media (max-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.fld { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fld label { font-family: var(--mono); font-size: 12px; color: var(--text-2); }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 52px; padding: 0 14px; background: var(--bg); color: var(--text); border: 1px solid var(--line-3); border-radius: 0; font-family: var(--mono); font-size: 16px; -webkit-appearance: none; appearance: none; }
.fld textarea { padding: 14px; min-height: 180px; line-height: 1.55; resize: vertical; }
.fld select { background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--gold); outline: none; }
.hp { position: absolute; left: -9999px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px 56px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.topics { display: grid; gap: 10px; }
.topics a { display: block; padding: 16px 18px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; font-family: var(--mono); font-size: 14px; }
.topics a:hover { border-color: var(--gold); color: var(--text); }
.topics a span { display: block; color: var(--text-2); font-size: 13px; margin-top: 2px; }

/* ---------- legal ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; padding-block: clamp(48px, 7vw, 96px); }
@media (max-width: 900px) { .legal { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-family: var(--mono); font-size: 13px; }
.toc p { color: var(--text-3); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--gold); }
@media (max-width: 900px) { .toc { position: static; } .toc ol { flex-direction: row; flex-wrap: wrap; border-left: 0; gap: 4px 0; } .toc a { padding: 6px 12px 6px 0; } }
.prose { max-width: 72ch; color: #D6D9DC; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; color: var(--text); margin: 56px 0 16px; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2::before { content: "## "; font-family: var(--mono); font-size: 0.55em; color: var(--gold); vertical-align: 0.25em; }
.prose h3 { font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--gold); margin: 32px 0 10px; }
.prose p, .prose ul { margin-bottom: 16px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--gold); }
.prose strong { color: var(--text); font-weight: 600; }
.app-block { margin: 40px 0; padding: clamp(18px, 3vw, 32px); border: 1px solid var(--line); background: var(--panel); }
.app-block > h2:first-child { margin-top: 0; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0; margin: 20px 0 8px; border-top: 1px solid var(--line); font-size: 15px; }
.facts dt, .facts dd { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 12px; color: var(--text-3); padding-right: 24px; text-transform: lowercase; }
@media (max-width: 560px) { .facts { grid-template-columns: minmax(0, 1fr); } .facts dt { border-bottom: 0; padding-bottom: 0; } }
.table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--text-3); background: var(--panel); }
.table-wrap td:first-child { font-family: var(--mono); font-size: 13px; color: var(--gold); white-space: nowrap; }

/* ---------- footer ---------- */
.site-footer { padding-block: 56px 36px; font-family: var(--mono); font-size: 13px; color: var(--text-3); }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-bottom: 28px; border-bottom: 1px solid #1A2626; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; }
.foot-nav a:hover { color: var(--gold); }
.foot-legal { margin-top: 28px; display: flex; flex-direction: column; gap: 8px; line-height: 1.6; }
.foot-legal div { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-legal dt { flex: 0 0 9ch; color: #5B6464; }
.foot-legal dd { color: var(--text-2); }
.foot-legal a { text-decoration: none; }
.copy { margin-top: 28px; }

/* ---------- language, notice, misc ---------- */
.nav { margin-left: auto; }
.lang { display: inline-flex; align-items: center; flex: none; border: 1px solid var(--line-2); font-family: var(--mono); }
.lang a { display: inline-flex; align-items: center; min-height: 36px; min-width: 40px; justify-content: center; padding: 0 8px; color: var(--text-3); font-size: 12px; text-decoration: none; }
.lang a + a { border-left: 1px solid var(--line-2); }
.lang a[aria-current="true"] { color: var(--bg); background: var(--gold); }
.lang a:hover:not([aria-current="true"]) { color: var(--gold); }
@media (max-width: 720px) {
  .lang { order: 2; margin-left: auto; }
  .lang a { min-width: 34px; min-height: 32px; padding: 0 6px; font-size: 11px; }
  .brand span { font-size: 18px; }
  .brand img { width: 24px; height: 25px; }
  .site-header .wrap { gap: 0 12px; }
  .nav a { min-height: 40px; }
  .nav { order: 3; margin-left: calc(var(--gutter) * -1); }
  .hero { height: auto; min-height: 760px; }
  .hero-ui { position: relative; padding-top: 330px; }
}
.consent { position: fixed; z-index: 80; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; background: rgba(12, 19, 19, 0.97); border: 1px solid var(--line-3); font-family: var(--mono); font-size: 13px; line-height: 1.5; color: var(--text-2); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.consent[hidden] { display: none; }
.consent p { flex: 1 1 280px; }
.consent-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.consent .btn { min-height: 44px; padding: 0 14px; font-size: 13px; }
.mono-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 11px; font-family: var(--serif); font-size: 22px; }
.term-col { display: flex; flex-direction: column; }
.term-foot { margin-top: auto; padding: 0 18px 20px; }
.align-start { align-items: start; }
.log-end { padding-top: 14px; border-top: 1px dashed #2A3636; }
.form-body { display: flex; flex-direction: column; gap: 8px; }
.form-body.form { gap: 20px; }
.page-hero .wrap { position: relative; }
.more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .more { grid-template-columns: minmax(0, 1fr); } }
.more a { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: var(--text-3); font-family: var(--mono); font-size: 12px; }
.more a:hover { border-color: var(--gold); color: var(--text-3); }
.more img { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.more b { display: block; font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--text); }

/* Japanese: Latin brand faces carry no kana or kanji; fall back to the system's Japanese faces. */
html[lang="ja"] { --serif: 'Bodoni Moda', 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', serif; --sans: 'IBM Plex Sans', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Yu Gothic', Meiryo, 'Noto Sans JP', sans-serif; --mono: 'IBM Plex Mono', ui-monospace, Menlo, 'Hiragino Sans', 'Yu Gothic', monospace; }
html[lang="ja"] body { line-height: 1.8; line-break: strict; word-break: normal; overflow-wrap: anywhere; }
html[lang="ja"] .display, html[lang="ja"] .h2, html[lang="ja"] .h3 { letter-spacing: 0.02em; line-height: 1.35; word-break: auto-phrase; }
html[lang="ja"] .it { font-style: normal; }
html[lang="ja"] .display { font-size: clamp(26px, 3.4vw, 46px); }
html[lang="ja"] .h2 { font-size: clamp(26px, 3.2vw, 44px); }
html[lang="pl"] .display { font-size: clamp(28px, 3.9vw, 54px); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .blink { animation: blink 1.1s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: progress linear both; animation-timeline: scroll(root); }
    .hero-ui .term { animation: hero-out linear both; animation-timeline: scroll(root); animation-range: 0px 640px; }
    .wipe { animation: wipe linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
    .rise { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 80%; }
    .rise.d1 { animation-range: entry 10% entry 90%; }
    .rise.d2 { animation-range: entry 20% entry 100%; }
    .scan { animation: scan linear both; animation-timeline: view(); animation-range: entry 15% cover 45%; }
    .fill { animation: fillbar linear both; animation-timeline: view(); animation-range: entry 40% cover 50%; }
    .fill.d1 { animation-range: entry 50% cover 55%; }
    .fill.d2 { animation-range: entry 60% cover 60%; }
    .fill.d3 { animation-range: entry 70% cover 65%; }
    .fill.d4 { animation-range: entry 80% cover 70%; }
  }
}
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes hero-out { to { opacity: 0; transform: translateY(-60px); } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(60px); } }
@keyframes scan { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fillbar { from { width: 0; } }

@media (max-width: 720px) { .hero-ui .term { animation: none !important; } }

/* Real art showcase & clean badges */

.art-img.icon { object-fit: contain; padding: 56px; }

/* clearer ASCII, quieter text windows */
.art-ascii { font-weight: 700; font-size: 12px; line-height: 12px; text-shadow: 0 0 8px currentColor; letter-spacing: 0.02em; }
@media (max-width: 640px) { .art-ascii { font-size: 9px; line-height: 9px; } }
.checks b { font-size: 14px; color: var(--text); }
.code .tx { display: none; }
.code li:has(.tx) { display: none; }
