/* DelayOS site. Colors: docs/ko/brand.md (B600 #4D6BFE accent, Night #0E1224).
   Signature: the frame-time trace (hero, section rules): a jittery line that runs flat, the "delay" taken out. */
:root {
  --night: #0B0F1F; --bg2: #10152B; --card: #151B36; --card2: #1A2142; --line: #252D52; --line2: #323C6B;
  --text: #EEF0FA; --muted: #9AA3C7; --faint: #6B75A0;
  --accent: #4D6BFE; --accent2: #7C93FF; --soft: #C5CEFF; --ok: #4ADE9B; --warn: #FFB547;
  --r: 18px; --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--night); color: var(--text);
  font: 16px/1.65 "Pretendard", "Inter", "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { color: var(--soft); }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; border-radius: 6px; }
code { font: 0.88em var(--mono); background: #090C1A; border: 1px solid var(--line); border-radius: 6px; padding: 0.05em 0.4em; }
kbd { font: 600 0.8em var(--mono); border: 1px solid var(--line2); border-bottom-width: 3px; border-radius: 7px; padding: 0.05em 0.5em; background: var(--card2); color: var(--text); white-space: nowrap; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(780px, 100% - 40px); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(11, 15, 31, 0.72); backdrop-filter: blur(16px) saturate(1.4);
       -webkit-backdrop-filter: blur(16px) saturate(1.4); border-bottom: 1px solid rgba(37, 45, 82, 0.8); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 28px; width: auto; }
.links { display: flex; align-items: center; gap: 24px; font-size: 15px; }
.links a { color: var(--muted); }
.links a:hover { color: var(--text); }
.links .gh { display: inline-flex; align-items: center; gap: 6px; }
.links .gh svg { width: 18px; height: 18px; fill: currentColor; }
.lang { font-size: 13px; color: var(--text) !important; border: 1px solid var(--line2); border-radius: 999px; padding: 4px 12px; }
.lang:hover { border-color: var(--accent); }
.nav .btn { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 12px;
       font-weight: 650; font-size: 15px; white-space: nowrap; border: 1px solid transparent; cursor: pointer; font-family: inherit;
       transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 10px 34px -8px rgba(77, 107, 254, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn.primary:hover { background: #5E7AFF; color: #fff; transform: translateY(-1px); }
.btn.ghost { border-color: var(--line2); color: var(--text); background: rgba(255, 255, 255, 0.02); }
.btn.ghost:hover { border-color: var(--accent); color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 0; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: -40% -20% auto 25%; height: 900px;
  background: radial-gradient(closest-side, rgba(77, 107, 254, 0.30), transparent 72%); }
.hero::after { content: ""; position: absolute; z-index: -2; inset: 0; opacity: 0.5;
  background-image: linear-gradient(rgba(124, 147, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 147, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero-in { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; font-size: 13px; font-weight: 600; color: var(--soft);
       border: 1px solid var(--line2); background: rgba(77, 107, 254, 0.10); border-radius: 999px; padding: 5px 14px 5px 10px; }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(74, 222, 155, 0.15); }
h1 { margin: 0 0 22px; font-size: clamp(44px, 6vw, 76px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
h1 em { font-style: normal; background: linear-gradient(100deg, #fff 10%, var(--soft) 45%, var(--accent2) 90%);
        -webkit-background-clip: text; background-clip: text; color: transparent; }
:lang(ko) h1 { letter-spacing: -0.03em; line-height: 1.12; }
.lead { margin: 0 0 32px; font-size: 19px; color: var(--muted); max-width: 32em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.meta li { display: inline-flex; align-items: center; gap: 7px; }
.meta svg { width: 16px; height: 16px; stroke: var(--accent2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-shot { position: relative; margin: 0; border-radius: 16px; padding: 6px; background: linear-gradient(160deg, rgba(124, 147, 255, 0.45), rgba(37, 45, 82, 0.4) 40%, rgba(37, 45, 82, 0.2));
             box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7), 0 0 80px -20px rgba(77, 107, 254, 0.35); }
.hero-shot img { border-radius: 11px; }

/* the frame-time trace under the hero */
.trace { position: relative; margin-top: 72px; height: 150px; }
.trace svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trace .grid-l { stroke: rgba(124, 147, 255, 0.10); stroke-width: 1; }
.trace .jit { fill: none; stroke: url(#tg); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round;
              stroke-dasharray: 3000; stroke-dashoffset: 3000; animation: draw 2.4s 0.3s cubic-bezier(0.6, 0, 0.2, 1) forwards; }
.trace .glow { fill: none; stroke: rgba(77, 107, 254, 0.35); stroke-width: 10; filter: blur(8px); stroke-dasharray: 3000; stroke-dashoffset: 3000;
               animation: draw 2.4s 0.3s cubic-bezier(0.6, 0, 0.2, 1) forwards; }
.trace .lbl { position: absolute; font: 600 12px var(--mono); color: var(--faint); letter-spacing: 0.04em; text-transform: uppercase; }
.trace .lbl.l { left: 0; top: 0; }
.trace .lbl.r { right: 0; top: 50px; color: var(--ok); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- stats ---------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-in > div { padding: 28px 24px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.stats-in > div:first-child { border-left: 0; padding-left: 0; }
.stats b { font-size: 36px; line-height: 1; letter-spacing: -0.03em; color: var(--text); font-weight: 750; }
.stats small { font-size: 16px; color: var(--muted); margin-left: 3px; font-weight: 500; letter-spacing: 0; }

/* ---------- sections ---------- */
.section { padding: 112px 0; position: relative; }
.section.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { margin: 0 0 12px; font: 700 13px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent2); }
h2 { margin: 0 0 16px; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 780; }
.sub { margin: 0 0 48px; color: var(--muted); font-size: 18px; max-width: 40em; }
.head { margin-bottom: 0; }

/* bento grid */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; overflow: hidden;
        transition: border-color 0.2s, transform 0.2s; }
.card:hover { border-color: rgba(124, 147, 255, 0.5); }
.card h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.01em; line-height: 1.3; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card p + p { margin-top: 10px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
             background: rgba(77, 107, 254, 0.12); border: 1px solid rgba(124, 147, 255, 0.28); }
.card .ico svg { width: 22px; height: 22px; stroke: var(--soft); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.c2 { grid-column: span 2; } .c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c6 { grid-column: span 6; }
.card.big { padding: 36px; background: radial-gradient(120% 120% at 100% 0%, rgba(77, 107, 254, 0.20), transparent 55%), var(--card); }
.card.big h3 { font-size: 26px; }
.card.warn { border-color: rgba(255, 181, 71, 0.32); }
.card.warn .ico { background: rgba(255, 181, 71, 0.1); border-color: rgba(255, 181, 71, 0.35); }
.card.warn .ico svg { stroke: var(--warn); }
.card.warn b { color: var(--warn); font-weight: 650; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { font: 600 12.5px var(--mono); color: var(--soft); background: rgba(77, 107, 254, 0.10); border: 1px solid rgba(124, 147, 255, 0.25);
            border-radius: 8px; padding: 4px 10px; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; margin: 18px 0 0; align-items: center; font-size: 14.5px; color: var(--muted); }
.keys dt { text-align: right; }
.keys dd { margin: 0; }

/* game mode toggle illustration */
.gm { display: flex; align-items: center; gap: 14px; margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); max-width: 360px; }
.gm b { font-size: 15px; }
.gm span { display: block; font-size: 13px; color: var(--muted); }
.switch { margin-left: auto; width: 46px; height: 26px; border-radius: 99px; background: var(--accent); position: relative; flex: none; box-shadow: 0 0 18px rgba(77, 107, 254, 0.6); }
.switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; }

/* update notification (the real banner's text and buttons) */
.notif { margin: 26px 0 4px; max-width: 420px; border-radius: 16px; padding: 16px 18px; background: rgba(26, 33, 66, 0.92);
         border: 1px solid var(--line2); box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.7); display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; }
.notif .ni { grid-row: span 2; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(77, 107, 254, 0.18); }
.notif .ni svg { width: 22px; height: 22px; stroke: var(--soft); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.notif b { font-size: 15px; }
.notif p { margin: 0; font-size: 14px; color: var(--muted); }
.notif .acts { grid-column: 2; display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.notif .acts span { font-size: 13px; font-weight: 650; padding: 6px 14px; border-radius: 9px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line2); }
.notif .acts span:first-child { background: var(--accent); border-color: var(--accent); color: #fff; }
.notif .app { grid-column: 2; font-size: 12px; color: var(--faint); margin-top: -2px; order: -1; }

/* checklist */
.ticks { margin: 16px 0 0; padding: 0; list-style: none; font-size: 15px; color: var(--muted); }
.ticks li { position: relative; padding-left: 26px; margin: 8px 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 12px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }

/* ---------- screenshots ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 22px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 14px; border: 1px solid var(--line); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
               cursor: zoom-in; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; background: var(--card); }
.gallery img:hover { transform: translateY(-3px); border-color: var(--line2); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6); }
.gallery figcaption { margin-top: 10px; color: var(--muted); font-size: 14px; }
.hero-shot img { cursor: zoom-in; }

/* ---------- download ---------- */
.editions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ed { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 32px; }
.ed.pri { border-color: rgba(124, 147, 255, 0.55); background: radial-gradient(140% 90% at 0% 0%, rgba(77, 107, 254, 0.22), transparent 60%), var(--card);
          box-shadow: 0 30px 80px -30px rgba(77, 107, 254, 0.5); }
.ed .flag { position: absolute; top: 24px; right: 24px; font: 700 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft);
            background: rgba(77, 107, 254, 0.16); border: 1px solid rgba(124, 147, 255, 0.35); border-radius: 7px; padding: 3px 8px; }
.ed h3 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.02em; }
.ed > p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.ed .ticks { margin: 0 0 26px; }
.ed .file { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); font: 13px var(--mono); color: var(--faint); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ed .btn { margin-top: 18px; width: 100%; }
.beta { display: inline-block; font: 700 11px var(--mono); letter-spacing: 0.06em; color: var(--warn); border: 1px solid rgba(255, 181, 71, 0.5); border-radius: 6px; padding: 1px 6px; vertical-align: 3px; }
.hash { margin-top: 14px; }
.hash summary { cursor: pointer; font-size: 13px; color: var(--muted); list-style: none; }
.hash summary::-webkit-details-marker { display: none; }
.hash summary::before { content: "▸ "; color: var(--faint); }
.hash[open] summary::before { content: "▾ "; }
.hash .h { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.hash code { flex: 1; font-size: 11.5px; padding: 8px 10px; overflow-x: auto; white-space: nowrap; display: block; }
.copy { font: 600 12px inherit; font-family: inherit; color: var(--text); background: var(--card2); border: 1px solid var(--line2); border-radius: 8px; padding: 7px 10px; cursor: pointer; flex: none; }
.copy:hover { border-color: var(--accent); }
.same { margin: 22px 0 0; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; border: 1px dashed var(--line2); color: var(--muted); font-size: 15px; }
.same svg { width: 22px; height: 22px; flex: none; stroke: var(--accent2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.same b { color: var(--text); }

/* install steps */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; margin-top: 88px; }
.steps { margin: 0 0 24px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 24px 54px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: -3px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 750; font-size: 15px; background: rgba(77, 107, 254, 0.15); color: var(--soft); border: 1px solid rgba(124, 147, 255, 0.4);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 17.5px; top: 38px; bottom: 4px; width: 1px; background: var(--line2); }
.req { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.req h3 { margin: 0 0 14px; font-size: 18px; }
.req dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 15px; }
.req dt { color: var(--muted); }
.req dd { margin: 0; }

.code { margin: 8px 0 0; background: #090C1A; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.7; }
.code code { background: none; border: 0; padding: 0; }
.code .c { color: var(--faint); }

/* ---------- final call ---------- */
.final { text-align: center; padding: 120px 0; position: relative; overflow: hidden; isolation: isolate; }
.final::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 900px; height: 500px; transform: translate(-50%, -50%);
                 background: radial-gradient(closest-side, rgba(77, 107, 254, 0.28), transparent); }
.final img { width: 72px; height: 72px; margin: 0 auto 26px; }
.final h2 { margin-bottom: 14px; }
.final p { color: var(--muted); font-size: 18px; margin: 0 auto 32px; max-width: 34em; }
.final .cta { justify-content: center; }

/* ---------- footer ---------- */
.foot { padding: 44px 0 60px; border-top: 1px solid var(--line); }
.foot-in { display: flex; align-items: flex-start; gap: 24px; color: var(--muted); font-size: 13px; }
.foot-in > img { width: 28px; height: 28px; flex: none; }
.foot-in p { margin: 0; flex: 1; max-width: 70em; }
.foot-links { display: flex; gap: 18px; flex: none; }

/* ---------- screenshots open large ---------- */
.lightbox { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center;
  background: rgba(6, 8, 18, 0.92); backdrop-filter: blur(6px); padding: 24px 72px; animation: lbIn 0.15s ease-out; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; cursor: zoom-out; }
.lightbox img { max-width: min(1600px, 100%); max-height: calc(100vh - 110px); width: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6); cursor: default; }
.lightbox figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }
.lb-close, .lb-nav { position: absolute; border: 1px solid var(--line); background: rgba(23, 29, 58, 0.85); color: var(--text);
  border-radius: 50%; width: 46px; height: 46px; font-size: 28px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-close:hover, .lb-nav:hover { border-color: var(--accent); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }

/* reveal on scroll (only when JS runs; without it everything is visible) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .rv.in { opacity: 1; transform: none; }

/* English is the default page; a Korean browser gets a hint, never a redirect */
.langhint { position: relative; z-index: 30; display: flex; justify-content: center; gap: 12px; align-items: center;
            padding: 8px 16px; background: #1A2142; border-bottom: 1px solid var(--line); font-size: 14px; }
.langhint button { font: inherit; color: var(--text); background: transparent; border: 0; cursor: pointer; font-size: 18px; line-height: 1; }

/* ---------- install guide (install/, ko/install/) ---------- */
.guide-head { padding: 72px 0 8px; position: relative; isolation: isolate; }
.guide-head::before { content: ""; position: absolute; z-index: -1; inset: -60% -10% auto 40%; height: 700px; background: radial-gradient(closest-side, rgba(77, 107, 254, 0.22), transparent 72%); }
.guide-head h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 14px; }
.guide-head .lead { margin-bottom: 24px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.toc a { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--muted); }
.toc a:hover { border-color: var(--accent); color: var(--text); }
.guide { padding: 48px 0 80px; }
.guide h2 { margin: 64px 0 18px; font-size: clamp(26px, 3.2vw, 34px); scroll-margin-top: 84px; }
.guide h2:first-child { margin-top: 0; }
.guide h3 { margin: 28px 0 8px; font-size: 18px; }
.guide p, .guide li { color: var(--text); }
.guide .steps > li { padding-bottom: 44px; }
.guide .steps > li > h3 { margin: 3px 0 8px; scroll-margin-top: 84px; }
.guide ul { padding-left: 1.2em; }
.guide ul li { margin: 4px 0; }
.shot { margin: 16px 0 0; }
.shot img { width: 100%; min-height: 140px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  color: var(--muted); font-size: 14px; text-align: center; line-height: 140px; }
.shot figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
.note { margin: 16px 0; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(77, 107, 254, 0.4); background: rgba(77, 107, 254, 0.08); }
.note.warn { border-color: rgba(255, 181, 71, 0.45); background: rgba(255, 181, 71, 0.07); }
.note > :first-child { margin-top: 0; } .note > :last-child { margin-bottom: 0; }
.tbl { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; font-size: 14px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); padding: 0 18px; margin: 10px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.faq details > p:last-child { margin-bottom: 16px; }
.dl-help { margin: 14px 0 0; font-size: 15px; }
.dl-help a { font-weight: 600; }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .hero-in, .split { grid-template-columns: 1fr; gap: 44px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .c2, .c3, .c4 { grid-column: span 1; } .c6, .card.big { grid-column: span 2; }
  .stats-in { grid-template-columns: 1fr 1fr; }
  .stats-in > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats-in > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .links .opt { display: none; }
}
@media (max-width: 680px) {
  .links { gap: 14px; }
  .links a:not(.lang):not(.btn) { display: none; }
  .section { padding: 80px 0; }
  .hero { padding-top: 52px; }
  .trace { margin-top: 48px; height: 110px; }
  .bento, .editions, .gallery { grid-template-columns: 1fr; }
  .c6, .card.big { grid-column: span 1; }
  .card, .card.big, .ed { padding: 24px; }
  .foot-in { flex-direction: column; }
  .lightbox { padding: 64px 8px; }
  .lb-nav { top: auto; bottom: 14px; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .trace .jit, .trace .glow { animation: none; stroke-dashoffset: 0; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn, .card, .gallery img { transition: none; }
}
