:root, html[data-theme="dark"] {
  --bg: #121212;
  --surface: #1a1a1a;
  --surface-2: #212121;
  --border: #262626;
  --border-strong: #333333;
  --text: #ededed;
  --heading: #fafafa;
  --muted: #8f8f8f;
  --dim: #666666;
  --accent: hsl(186 64% 54%);
  --accent-ink: #052024;
  --accent-soft: hsl(186 60% 50% / .14);
  --accent-line: hsl(186 60% 50% / .34);
  --green: #59c07a;
  --shadow: 0 1px 3px rgba(0,0,0,.4);
  --shadow-lg: 0 14px 40px -12px rgba(0,0,0,.6);
}
html[data-theme="light"] {
  --bg: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --border: #e2e5ea;
  --border-strong: #d1d5dd;
  --text: #24272c;
  --heading: #14161a;
  --muted: #667085;
  --dim: #97a0ad;
  --accent: hsl(191 92% 30%);
  --accent-ink: #ffffff;
  --accent-soft: hsl(191 80% 33% / .10);
  --accent-line: hsl(191 80% 33% / .28);
  --green: #1e8c43;
  --shadow: 0 1px 4px rgba(20,25,40,.07);
  --shadow-lg: 0 16px 40px -14px rgba(20,25,40,.2);
}
html[data-theme="minimal"] {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --border: #e6e6e6;
  --border-strong: #d4d4d4;
  --text: #1c1c1c;
  --heading: #0a0a0a;
  --muted: #6b6b6b;
  --dim: #9a9a9a;
  --accent: #111111;
  --accent-ink: #ffffff;
  --accent-soft: #f0f0f0;
  --accent-line: #d4d4d4;
  --green: #2b8a3e;
  --shadow: none;
  --shadow-lg: 0 8px 24px -16px rgba(0,0,0,.25);
}
html[data-theme="orange"] {
  --bg: #1c1a17;
  --surface: #24211d;
  --surface-2: #2c2823;
  --border: #37322b;
  --border-strong: #48413a;
  --text: #ece6dc;
  --heading: #f6f1e8;
  --muted: #a99f8f;
  --dim: #766d5e;
  --accent: #d97757;
  --accent-ink: #1c1109;
  --accent-soft: rgb(217 119 87 / .14);
  --accent-line: rgb(217 119 87 / .34);
  --green: #7aa66a;
  --shadow: 0 1px 3px rgba(0,0,0,.4);
  --shadow-lg: 0 14px 40px -12px rgba(0,0,0,.55);
}
html[data-theme="green"] {
  --bg: #0a0a0a;
  --surface: #161616;
  --surface-2: #1e1e1e;
  --border: #262626;
  --border-strong: #343434;
  --text: #f0f0f0;
  --heading: #ffffff;
  --muted: #a0a0a0;
  --dim: #6a6a6a;
  --accent: #1db954;
  --accent-ink: #04150a;
  --accent-soft: rgb(29 185 84 / .14);
  --accent-line: rgb(29 185 84 / .34);
  --green: #1db954;
  --shadow: 0 1px 3px rgba(0,0,0,.5);
  --shadow-lg: 0 14px 40px -12px rgba(0,0,0,.65);
}

:root { --ui: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
html[data-font="serif"]    { --ui: "Source Serif 4", Georgia, "Times New Roman", serif; }
html[data-font="system"]   { --ui: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
html[data-font="dyslexic"] { --ui: "Lexend", ui-sans-serif, system-ui, sans-serif; }
:root { --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg); color: var(--text);
  font-family: var(--ui); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
html[data-bg="none"] body::before,
html:not([data-bg]) body::before { display: none; }
html[data-bg="grid"] body::before {
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 80%);
}
html[data-bg="dots"] body::before {
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1.4px);
  background-size: 22px 22px; opacity: .6;
}
html[data-bg="aurora"] body::before {
  background:
    radial-gradient(45% 40% at 18% 8%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%),
    radial-gradient(40% 38% at 85% 18%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 55%);
  filter: blur(28px); opacity: .55;
}
html[data-bg="glow"] body::before {
  background: radial-gradient(60% 45% at 50% -8%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 72%);
  opacity: .8;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; font-weight: 600; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.mono { font-family: var(--mono); }

.page { max-width: 1200px; margin: 0 auto; padding: 14px var(--pad) 40px; display: flex; flex-direction: column; gap: 12px; --pad: clamp(12px, 3.5vw, 24px); }
.bento { display: grid; gap: 12px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.about-row { grid-template-columns: 1fr 2fr; }
.work-row { grid-template-columns: 2fr 1fr; align-items: stretch; }
.edu-ach-row { grid-template-columns: 2fr 1fr; align-items: stretch; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .about-row, .work-row, .edu-ach-row { grid-template-columns: 1fr; } .about-row .bio { order: -1; } }
@media (max-width: 560px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow);
}
.card-pad { padding: clamp(20px, 2.6vw, 26px); }
.card-link { color: inherit; transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); background: var(--surface-2); border-color: var(--border-strong); text-decoration: none; }
.cover { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }

.label { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); display: block; }
.label-row { display: flex; align-items: center; gap: 10px; margin: 14px 4px 2px; }
.label-row .label { color: var(--muted); }
.label-row::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.controls { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 16px clamp(18px, 2.6vw, 26px); position: relative; }
.controls .who h1 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--heading); }
.controls .who .label { margin-top: 3px; color: var(--accent); }
.controls .tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.navlink { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding: 6px 5px; letter-spacing: .01em; }
.navlink:hover { color: var(--accent); text-decoration: none; }
.tools-sep { width: 1px; height: 20px; background: var(--border); margin: 0 5px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); background: transparent;
  color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 14px;
  transition: border-color .2s, color .2s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn svg { width: 17px; height: 17px; fill: currentColor; display: block; }
.swatch-btn { display: inline-flex; align-items: center; gap: 3px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--border); background: transparent; cursor: pointer; }
.swatch-btn:hover { border-color: var(--border-strong); }
.swatch-btn span { width: 11px; height: 11px; border-radius: 3px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(128,128,128,.25); }

@media (max-width: 560px) {
  .hide-mobile { display: none !important; }
  .controls { gap: 10px; padding: 14px 16px; flex-wrap: nowrap; }
  .controls .who { min-width: 0; overflow: hidden; }
  .controls .who h1 { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .controls .who .label { font-size: 8.5px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .controls .tools { gap: 6px; justify-content: flex-end; flex-shrink: 0; }
  .bio-head { gap: 12px; }
  .bio-head > div:last-child { min-width: 0; flex: 1; }
  .bio-head .n { font-size: 16px; }
  .bio p { font-size: 14px; }
  .glance dd { font-size: 13.5px; }
  .tile-title { font-size: 18px; }
  .contact h2 { font-size: 23px; }
}

dialog#settings {
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  border-radius: 16px; padding: 0; box-shadow: var(--shadow-lg);
  position: fixed; top: 14px; right: max(14px, calc((100vw - 1200px) / 2 + 14px)); left: auto; bottom: auto; margin: 0;
  width: min(380px, calc(100vw - 28px));
}
dialog#settings[open] { animation: dlg-in .18s cubic-bezier(.16,1,.3,1); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
dialog#settings::backdrop { background: rgba(0,0,0,.4); backdrop-filter: blur(2px); }
@media (prefers-reduced-motion: reduce) { dialog#settings[open] { animation: none; } }
.dlg-head { padding: 20px 22px 0; }
.dlg-head h2 { font-size: 18px; font-weight: 700; color: var(--heading); }
.dlg-head p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.dlg-body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 20px; }
.dlg-close { position: absolute; top: 16px; right: 16px; }
.set-sec > h3 { font-size: 13px; font-weight: 600; color: var(--heading); margin-bottom: 10px; }
.theme-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.theme-opt { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 6px; border-radius: 9px; border: 1px solid var(--border); background: transparent; cursor: pointer; font-size: 12px; color: var(--text); font-family: var(--ui); transition: border-color .2s, background .2s; }
.theme-opt:hover { background: var(--surface-2); }
.theme-opt.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.theme-opt .sw { display: flex; gap: 3px; }
.theme-opt .sw i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(128,128,128,.3); }
.set-select { width: 100%; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 9px; padding: 10px 12px; font-size: 14px; font-family: var(--ui); cursor: pointer; }
.set-note { color: var(--dim); font-size: 12px; margin-top: 6px; }

.bio-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.avatar { position: relative; overflow: hidden; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 20px; color: var(--accent-ink); background: var(--accent); flex-shrink: 0; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bio-head .n { font-size: 17px; font-weight: 700; color: var(--heading); letter-spacing: -.01em; }
.bio-head .s { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 2px; }
.bio-head .s .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent); }
.bio p { color: var(--muted); font-size: 14.5px; line-height: 1.7; margin-top: 12px; }
.bio p:first-of-type { margin-top: 0; }
.bio p b, .bio p strong { color: var(--text); font-weight: 600; }
.bio .cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-family: var(--ui); }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.glance { display: flex; flex-direction: column; }
.glance .label { margin-bottom: 14px; }
.glance dl { display: flex; flex-direction: column; gap: 13px; }
.glance dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 3px; }
.glance dd { color: var(--text); font-size: 14px; font-weight: 500; }
.glance dd small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }
.resume-btn { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--accent); align-self: flex-start; }
.resume-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.resume-btn:hover { text-decoration: none; filter: brightness(1.1); }

.tile { display: flex; flex-direction: column; padding: 0; height: 100%; overflow: hidden; }
.tile-viz { position: relative; height: 128px; background: linear-gradient(140deg, #0e1319, #171f29); overflow: hidden; flex-shrink: 0; }
.tile-viz svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tile-viz .viz-cat { position: absolute; left: 16px; bottom: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); z-index: 2; }
.tile-viz .viz-badge { position: absolute; right: 14px; top: 14px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.7); background: rgba(0,0,0,.25); z-index: 2; white-space: nowrap; }
.tile-viz .viz-badge.live { color: #8ff0b0; border-color: rgba(120,220,150,.5); }
.card-link:hover .tile-viz svg { transform: scale(1.03); transition: transform .5s cubic-bezier(.16,1,.3,1); }
.tile-body { display: flex; flex-direction: column; flex: 1; padding: clamp(18px, 2.2vw, 22px); }
.tile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tile-cat { font-family: var(--mono); font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); }
.tile-badge { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted); white-space: nowrap; }
.tile-badge.live { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); background: color-mix(in srgb, var(--green) 12%, transparent); }
.tile-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--heading); margin-bottom: 4px; }
.tile-tag { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-bottom: 12px; }
.tile-oneline { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.tile-metrics { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 9px; align-items: baseline; margin: 2px 0 16px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; }
.tile-metrics .mv { font-family: var(--mono); font-weight: 700; color: var(--accent); font-size: 14px; white-space: nowrap; text-align: right; }
.tile-metrics .ml { color: var(--muted); font-size: 12px; line-height: 1.4; }
.tile-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.chip { font-family: var(--mono); font-size: 11px; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 999px; padding: 3px 9px; }
.chip.plain { color: var(--muted); background: var(--surface-2); border-color: var(--border); }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.tile-more { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--accent); }
.tile-ext { position: relative; z-index: 2; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tile-ext:hover { color: var(--accent); }

.viewmore-wrap { display: flex; justify-content: flex-end; margin-top: 2px; }
.viewmore { font-family: var(--mono); font-size: 13px; color: var(--muted); background: transparent; border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 20px; cursor: pointer; transition: border-color .2s, color .2s; }
.viewmore:hover { color: var(--accent); border-color: var(--accent); }
#moreProjects[hidden] { display: none; }

.idx { display: flex; flex-direction: column; padding: 18px 20px; height: 100%; }
.idx-name { font-weight: 700; font-size: 15px; color: var(--heading); letter-spacing: -.01em; }
.idx-st { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--dim); margin: 4px 0 10px; }
.idx-st.live { color: var(--green); }
.idx-desc { color: var(--muted); font-size: 13px; line-height: 1.55; }
.idx-link { position: relative; z-index: 2; font-family: var(--mono); font-size: 11.5px; color: var(--accent); margin-top: 12px; }

.exp .label { margin-bottom: 18px; }
.exp-item { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.exp-item:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.exp-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.exp-role { font-weight: 700; color: var(--accent); font-size: 15px; }
.exp-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.exp-date { font-family: var(--mono); font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.exp-desc { color: var(--muted); font-size: 13.5px; line-height: 1.65; margin-top: 8px; }
.exp-desc.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.exp-toggle { font-family: var(--mono); font-size: 12px; color: var(--accent); background: none; border: 0; padding: 0; margin-top: 8px; cursor: pointer; }
.exp-toggle:hover { text-decoration: underline; }

.skills-card .label, .edu-card .label, .ach-card .label { margin-bottom: 16px; }
.skills-row { margin-bottom: 15px; }
.skills-row:last-child { margin-bottom: 0; }
.skills-row .k { color: var(--heading); font-weight: 700; font-size: 13.5px; margin-bottom: 5px; }
.skills-row .v { display: flex; flex-wrap: wrap; gap: 5px; }
.edu-card { display: flex; flex-direction: column; }
.edu-card #education { display: flex; flex-direction: column; flex: 1; }
.edu-head { display: flex; align-items: center; gap: 13px; }
.edu-logo { width: 44px; height: 44px; border-radius: 11px; flex-shrink: 0; overflow: hidden; box-shadow: var(--shadow); }
.edu-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edu-card .deg { color: var(--heading); font-weight: 700; font-size: 15px; }
.edu-card .inst { color: var(--muted); font-size: 13px; margin-top: 3px; }
.edu-card .meta { font-family: var(--mono); font-size: 11.5px; color: var(--dim); margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.edu-card .meta b { color: var(--accent); font-weight: 600; }

.ach-card { display: flex; flex-direction: column; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; flex: 1; grid-auto-rows: 1fr; }
@media (max-width: 480px) { .ach-grid { grid-template-columns: 1fr; grid-auto-rows: auto; } }
.ach { padding: 15px 16px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: center; }
.ach .v { font-weight: 700; color: var(--heading); font-size: 14px; letter-spacing: -.01em; }
.ach .l { font-family: var(--mono); font-size: 11px; color: var(--muted); line-height: 1.5; margin-top: 5px; }

.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 44px); }
@media (max-width: 720px) { .contact-card { grid-template-columns: 1fr; } }
.contact .label { margin-bottom: 14px; }
.contact h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; letter-spacing: -.025em; color: var(--heading); margin-bottom: 10px; }
.contact-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 20px; max-width: 42ch; }
.contact-mail { font-family: var(--mono); font-size: clamp(14px, 2vw, 16px); font-weight: 700; word-break: break-all; }
.contact-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.contact-links a { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.contact-links a:hover { color: var(--accent); }
.cform { display: flex; flex-direction: column; gap: 11px; }
.cform label { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); }
.cform input, .cform textarea { width: 100%; background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 9px; color: var(--text); font-family: var(--ui); font-size: 14.5px; padding: 10px 13px; }
.cform input:focus, .cform textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.cform textarea { min-height: 104px; resize: vertical; }
.cform .btn { justify-content: center; }
.cform-note { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.cstatus { font-family: var(--mono); font-size: 12.5px; min-height: 1em; }
.cstatus:empty { display: none; }
.cstatus.ok { color: var(--green); }
.cstatus.err { color: var(--accent); }

.footer-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 22px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.langswitch { display: inline-flex; gap: 2px; }
.langswitch button { font-family: var(--mono); font-size: 11.5px; color: var(--dim); background: transparent; border: 0; padding: 3px 7px; cursor: pointer; border-radius: 6px; }
.langswitch button:hover { color: var(--accent); }
.langswitch button.active { color: var(--accent); background: var(--accent-soft); }

.reveal { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.detail { max-width: 760px; margin: 0 auto; padding: 40px clamp(16px,4vw,28px) 96px; }
.back { font-family: var(--mono); font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; margin-bottom: 40px; }
.back:hover { color: var(--accent); text-decoration: none; }
.detail-head { border-bottom: 1px solid var(--border-strong); padding-bottom: 30px; margin-bottom: 36px; }
.detail-tag { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.detail h1 { font-size: clamp(32px, 6vw, 46px); font-weight: 800; letter-spacing: -.028em; color: var(--heading); margin-bottom: 14px; }
.detail-lead { font-size: 18px; color: var(--muted); max-width: 60ch; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 24px; }
.detail-meta .k { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }
.detail-meta .v { color: var(--text); font-size: 14px; }
.detail section { margin-bottom: 36px; }
.detail h2 { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.detail p { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.detail p b { color: var(--text); font-weight: 600; }
.detail ul { color: var(--muted); font-size: 16px; padding-left: 20px; margin-bottom: 14px; }
.detail li { margin-bottom: 8px; }
.detail li::marker { color: var(--accent); }
.detail code { font-family: var(--mono); font-size: 13.5px; background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; color: var(--text); }
.detail .links { display: flex; flex-wrap: wrap; gap: 20px; }
.detail .links a { font-family: var(--mono); font-size: 13.5px; font-weight: 600; }
