/* Layout concept: an engineer's bench at night — soldermask green, copper traces and
   instrument readouts. The 3D board is the one loud element; everything else is quiet. */
:root {
  --ground: #0a0d0c;
  --panel: #111614;
  --panel-2: #172019;
  --line: rgba(214, 228, 218, 0.12);
  --line-2: rgba(214, 228, 218, 0.22);
  --ink: #e8ece6;
  --muted: #98a69d;
  --copper: #e39d55;
  --copper-soft: rgba(227, 157, 85, 0.14);
  --signal: #7fc8ff;
  --mask: #2a7a55;
  --ok: #57d68d;
  --warn: #ffb347;
  --bad: #ff6b6b;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.8);
  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --step--1: clamp(0.78rem, 0.75rem + 0.1vw, 0.84rem);
  --step-0: clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);
  --step-1: clamp(1.18rem, 1.08rem + 0.45vw, 1.42rem);
  --step-2: clamp(1.45rem, 1.25rem + 0.9vw, 2rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 3rem);
  --step-4: clamp(2.2rem, 1.6rem + 3vw, 4.2rem);
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ground: #eef1ec; --panel: #ffffff; --panel-2: #e3eae4;
    --line: rgba(18, 40, 28, 0.13); --line-2: rgba(18, 40, 28, 0.24);
    --ink: #13201a; --muted: #4e5e55; --copper: #a65b17; --copper-soft: rgba(166, 91, 23, 0.1);
    --signal: #0b67a3; --mask: #2b7a55; --ok: #1e8a4f; --warn: #b26a00; --bad: #c43c3c;
    --shadow: 0 30px 70px -45px rgba(20, 40, 30, 0.45);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --ground: #eef1ec; --panel: #ffffff; --panel-2: #e3eae4;
  --line: rgba(18, 40, 28, 0.13); --line-2: rgba(18, 40, 28, 0.24);
  --ink: #13201a; --muted: #4e5e55; --copper: #a65b17; --copper-soft: rgba(166, 91, 23, 0.1);
  --signal: #0b67a3; --mask: #2b7a55; --ok: #1e8a4f; --warn: #b26a00; --bad: #c43c3c;
  --shadow: 0 30px 70px -45px rgba(20, 40, 30, 0.45);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  overflow-x: hidden;
}
body::before { /* faint drafting grid */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: 0.35;
  mask-image: radial-gradient(ellipse at 60% 10%, #000 0%, transparent 70%);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--f-mono); }
.kicker { font-family: var(--f-mono); font-size: var(--step--1); letter-spacing: 0.08em; text-transform: uppercase; color: var(--copper); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--ground) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; background: var(--mask); color: #f2f5ef; font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.02em; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 10px; border-radius: 8px; font-size: 0.92rem; }
.nav a:hover { color: var(--ink); background: var(--panel-2); }
.tools { display: flex; gap: 6px; }
.chip-btn {
  font: 500 0.82rem var(--f-mono); color: var(--ink); background: var(--panel); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 6px 10px; cursor: pointer; min-height: 34px;
}
.chip-btn:hover { border-color: var(--copper); }
@media (max-width: 860px) { .nav { display: none; } .tools { margin-left: auto; } }

/* Hero */
.hero { padding-block: clamp(28px, 5vw, 64px) 24px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; }
.hero-text { display: grid; gap: 22px; min-width: 0; }
.hero h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.9rem, 1.2rem + 2.3vw, 3.25rem); line-height: 1.08; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--copper); }
.hero-name { display: flex; align-items: center; gap: 14px; }
.hero-name img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2px solid var(--line-2); }
.hero-name strong { display: block; font-size: var(--step-1); }
.hero-name span { color: var(--muted); font-size: var(--step--1); font-family: var(--f-mono); }
.lead { font-size: clamp(1.02rem, 0.96rem + 0.3vw, 1.18rem); color: var(--muted); max-width: 62ch; line-height: 1.55; }
.lead strong { color: var(--ink); font-weight: 600; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; cursor: pointer;
  font: 600 0.95rem var(--f-body); padding: 12px 18px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--panel); color: var(--ink); transition: transform .15s, border-color .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); border-color: var(--copper); }
.btn.primary { background: var(--copper); color: #1a0f04; border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); }

.stage { position: relative; height: clamp(340px, 60vh, 620px); min-width: 0; border-radius: 22px; overflow: hidden;
  background: radial-gradient(closest-side at 50% 50%, color-mix(in srgb, var(--mask) 34%, transparent), transparent);
}
.stage canvas { z-index: 1; position: absolute; inset: 0; width: 100% !important; height: 100% !important; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage-ui { z-index: 3; position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; pointer-events: none; }
.stage-ui > * { pointer-events: auto; }
.stage-hint { font: 500 var(--step--1) var(--f-mono); color: var(--muted); }
@media (max-width: 600px) { .stage-hint { display: none; } .stage-ui { justify-content: flex-end; } }
.stage-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); font-family: var(--f-mono); }
.board-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.board-label {
  position: absolute; left: 0; top: 0; white-space: nowrap; opacity: 0;
  font: 500 11.5px var(--f-mono); color: var(--ink); background: color-mix(in srgb, var(--panel) 88%, transparent);
  border: 1px solid var(--line-2); padding: 3px 7px; border-radius: 6px; margin: -12px 0 0 10px;
  transition: opacity .2s;
}
.board-label::before { content: ""; position: absolute; left: -10px; top: 50%; width: 8px; height: 1px; background: var(--copper); }
.board-label.flip { margin: -12px 0 0 -10px; }
.board-label.flip::before { left: auto; right: -10px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: clamp(24px, 4vw, 44px); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--ground); padding: 18px 18px 16px; display: grid; gap: 4px; align-content: start; }
.stat b { font-family: var(--f-display); font-weight: 600; font-size: var(--step-3); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat b small { font-size: 0.45em; color: var(--copper); margin-left: 4px; font-family: var(--f-mono); }
.stat span { color: var(--muted); font-size: var(--step--1); line-height: 1.4; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } .stage { order: -1; height: clamp(300px, 70vw, 460px); } }
@media (max-width: 680px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sections */
section { scroll-margin-top: 70px; }
.sec { padding-block: clamp(56px, 7vw, 96px) 0; }
.sec-head { display: grid; gap: 12px; margin-bottom: clamp(24px, 4vw, 44px); max-width: 760px; }
.sec-head h2 { font-family: var(--f-display); font-weight: 600; font-size: var(--step-3); line-height: 1.1; letter-spacing: -0.015em; }
.sec-head p { color: var(--muted); max-width: 64ch; }

/* Featured */
.feats { display: grid; gap: clamp(18px, 3vw, 28px); }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 20px; background: var(--panel); overflow: hidden; box-shadow: var(--shadow); }
.feat:nth-child(even) .feat-body { order: 2; }
.feat-body { padding: clamp(20px, 3vw, 36px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.feat-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: baseline; font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); }
.feat-meta .yr { color: var(--copper); }
.feat h3 { font-family: var(--f-display); font-weight: 600; font-size: var(--step-2); line-height: 1.15; }
.feat ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.feat li { position: relative; padding-left: 18px; color: var(--muted); }
.feat li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 8px; height: 8px; border-radius: 2px; background: var(--copper); opacity: 0.85; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font: 500 0.76rem var(--f-mono); padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); }
.demo { position: relative; background: var(--panel-2); border-left: 1px solid var(--line); min-height: 360px; display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.feat:nth-child(even) .demo { border-left: 0; border-right: 1px solid var(--line); }
.demo-top { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; font: 500 var(--step--1) var(--f-mono); color: var(--muted); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.demo-top .live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.demo canvas { width: 100%; height: 100%; display: block; min-height: 230px; }
.demo-ctl { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); align-items: center; }
.demo-log { font: 12px/1.5 var(--f-mono); color: var(--muted); padding: 10px 14px; height: 108px; overflow: hidden; border-top: 1px solid var(--line); }
.demo-log div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-log b { color: var(--copper); font-weight: 500; }
.demo-log i { color: var(--signal); font-style: normal; }
.small-btn { font: 500 0.8rem var(--f-mono); border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.small-btn:hover { border-color: var(--copper); }
.small-btn.on { background: var(--copper-soft); border-color: var(--copper); }
.small-btn.go { background: var(--ok); color: #06210f; border-color: transparent; }
.small-btn.stop { background: var(--bad); color: #2a0606; border-color: transparent; }
.readout { font: 500 var(--step--1) var(--f-mono); color: var(--muted); margin-left: auto; font-variant-numeric: tabular-nums; }
.readout b { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .feat { grid-template-columns: 1fr; }
  .feat:nth-child(even) .feat-body { order: 0; }
  .demo, .feat:nth-child(even) .demo { border: 0; border-top: 1px solid var(--line); }
}

/* Pipeline demo */
.pipe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 16px 14px; align-content: center; }
.pipe-step { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 10px; background: var(--panel); display: grid; gap: 6px; align-content: start; min-height: 150px; transition: border-color .25s, background .25s; min-width: 0; }
.pipe-step .n { font: 500 0.72rem var(--f-mono); color: var(--muted); }
.pipe-step h4 { margin: 0; font-size: 0.95rem; }
.pipe-step p { font-size: 0.8rem; color: var(--muted); line-height: 1.4; overflow-wrap: anywhere; }
.pipe-step.active { border-color: var(--copper); background: var(--copper-soft); }
.pipe-step.done { border-color: var(--ok); }
.pipe-step .bar { height: 4px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: auto; }
.pipe-step .bar i { display: block; height: 100%; width: 0; background: var(--copper); transition: width .2s linear; }
.pipe-step.done .bar i { background: var(--ok); width: 100%; }
.pipe-preview { margin: 0 14px 14px; border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 112px; }
.pipe-preview canvas { width: 120px; height: 88px; min-height: 0; border-radius: 8px; background: var(--panel); }
@media (max-width: 560px) { .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pipe-preview { grid-template-columns: 1fr; } }

/* Tree timeline */
.tree { position: relative; display: grid; gap: 0; }
.tree::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-1px); background: linear-gradient(var(--copper), var(--mask)); opacity: 0.6; }
.yr-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: start; padding-block: 18px; }
.yr-node { grid-column: 2; justify-self: center; text-align: center; position: relative; z-index: 1; }
.yr-node b { display: block; font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; background: var(--ground); padding: 4px 8px; border: 1px solid var(--copper); border-radius: 10px; font-variant-numeric: tabular-nums; }
.yr-node span { display: inline-block; margin-top: 6px; font: 500 0.72rem var(--f-mono); color: var(--muted); background: var(--ground); padding: 0 4px; }
.branch { min-width: 0; position: relative; display: grid; gap: 10px; }
.yr-row:nth-child(odd) .branch { grid-column: 1; grid-row: 1; text-align: right; justify-items: end; }
.yr-row:nth-child(even) .branch { grid-column: 3; grid-row: 1; }
.branch::after { content: ""; position: absolute; top: 18px; width: 26px; height: 2px; background: var(--copper); opacity: 0.6; }
.yr-row:nth-child(odd) .branch::after { right: -34px; }
.yr-row:nth-child(even) .branch::after { left: -34px; }
.branch p { color: var(--muted); max-width: 52ch; font-size: 0.95rem; }
.leafs { display: flex; flex-wrap: wrap; gap: 6px; }
.yr-row:nth-child(odd) .leafs { justify-content: flex-end; }
.leaf { font: 500 0.8rem var(--f-body); border: 1px solid var(--line-2); background: var(--panel); color: var(--ink); padding: 5px 10px; border-radius: 999px; cursor: pointer; text-align: left; }
.leaf:hover, .leaf:focus-visible { border-color: var(--copper); }
.leaf.star { border-color: color-mix(in srgb, var(--copper) 60%, transparent); }
.leaf .d { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.cat-hw { background: var(--copper); } .cat-sw { background: var(--signal); } .cat-ai { background: #c79bff; } .cat-mech { background: var(--ok); }
@media (max-width: 760px) {
  .tree::before { left: 22px; }
  .yr-row { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .yr-node { grid-column: 1; grid-row: 1; justify-self: start; }
  .yr-node b { font-size: 0.9rem; padding: 3px 5px; }
  .yr-row:nth-child(odd) .branch, .yr-row:nth-child(even) .branch { grid-column: 2; text-align: left; justify-items: start; }
  .yr-row:nth-child(odd) .leafs { justify-content: flex-start; }
  .branch::after { display: none; }
}

/* Archive */
.arch-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.arch-tools input { flex: 1 1 220px; min-width: 0; font: 400 0.95rem var(--f-body); color: var(--ink); background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; }
.arch-count { font: 500 var(--step--1) var(--f-mono); color: var(--muted); margin-left: auto; }
.arch { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.card { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 16px; display: grid; gap: 8px; align-content: start; transition: border-color .2s, box-shadow .3s; min-width: 0; }
.card:hover { border-color: var(--line-2); }
.card.flash { border-color: var(--copper); box-shadow: 0 0 0 4px var(--copper-soft); }
.card.dim { opacity: 0.35; }
.card-top { display: flex; justify-content: space-between; gap: 8px; font: 500 0.76rem var(--f-mono); color: var(--muted); }
.card-top .yr { color: var(--copper); font-variant-numeric: tabular-nums; }
.card h3 { font-size: 1.04rem; font-weight: 600; line-height: 1.3; }
.card p { color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.card .dots { display: flex; gap: 4px; align-items: center; }
.card .dots i { width: 8px; height: 8px; border-radius: 50%; display: block; }
.card a.case { font: 500 0.8rem var(--f-mono); color: var(--copper); text-decoration: none; }
.card a.case:hover { text-decoration: underline; }
.empty { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* Skills */
.skills { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
.sk-groups { display: grid; gap: 18px; }
.sk-group h3 { font: 500 var(--step--1) var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }
.sk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sk { font: 500 0.92rem var(--f-body); background: var(--panel); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
.sk small { font-family: var(--f-mono); color: var(--muted); margin-left: 6px; }
.sk.on, .sk:hover { border-color: var(--copper); background: var(--copper-soft); }
.sk-panel { position: sticky; top: 84px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; min-height: 220px; }
.sk-panel h3 { font-size: var(--step-1); }
.sk-panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.sk-panel li { display: flex; gap: 10px; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 6px; font-size: 0.92rem; }
.sk-panel li span { font: 500 0.78rem var(--f-mono); color: var(--copper); white-space: nowrap; }
@media (max-width: 860px) { .skills { grid-template-columns: 1fr; } .sk-panel { position: static; } }

/* Experience */
.exp { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); }
.roles { display: grid; gap: 0; border-top: 1px solid var(--line); }
.role { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.role .when { font: 500 var(--step--1) var(--f-mono); color: var(--copper); font-variant-numeric: tabular-nums; }
.role h3 { font-size: 1.08rem; }
.role .org { color: var(--ink); font-weight: 500; }
.role p { color: var(--muted); font-size: 0.94rem; margin-top: 4px; }
.side-box { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; align-content: start; }
.side-box h3 { font: 500 var(--step--1) var(--f-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.side-box ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 6px; }
.side-stack { display: grid; gap: 14px; align-content: start; }
@media (max-width: 860px) { .exp { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .role { grid-template-columns: 1fr; gap: 4px; } }

/* Sport */
.sport { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
.sport > div:first-child { display: grid; gap: 14px; }
.sport p { color: var(--muted); max-width: 62ch; }
.nilda { border: 1px solid var(--line); border-radius: 20px; padding: clamp(18px, 3vw, 28px); background:
  linear-gradient(160deg, color-mix(in srgb, var(--signal) 14%, transparent), transparent 55%), var(--panel); display: grid; gap: 14px; }
.nilda h3 { font-family: var(--f-display); font-weight: 600; font-size: var(--step-2); line-height: 1.15; }
.medals { display: grid; gap: 8px; }
.medal { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--ground); }
.medal b { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font: 600 0.82rem var(--f-mono); color: #2b1a00; background: radial-gradient(circle at 35% 30%, #ffe7a6, #d6a332 60%, #9c7016); }
.medal span { font-size: 0.94rem; }
.press { font: 500 var(--step--1) var(--f-mono); color: var(--copper); }
@media (max-width: 860px) { .sport { grid-template-columns: 1fr; } }

/* Terminal */
.term { border: 1px solid var(--line-2); border-radius: 16px; background: #07090a; color: #d6e2d9; font: 14px/1.6 var(--f-mono); overflow: hidden; box-shadow: var(--shadow); }
.term-bar { display: flex; gap: 6px; align-items: center; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.08); color: #8a978f; font-size: 12px; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a423d; display: block; }
.term-out { padding: 14px; height: 300px; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.term-out .c { color: #e9a560; }
.term-out .s { color: #7fc8ff; }
.term-in { display: flex; gap: 8px; padding: 0 14px 14px; align-items: center; }
.term-in label { color: #57d68d; white-space: nowrap; }
.term-in input { flex: 1; min-width: 0; background: transparent; border: 0; color: #f0f4f1; font: inherit; outline: none; caret-color: #e9a560; }
.term-sugg { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 14px; }
.term-sugg button { font: 12px var(--f-mono); background: #111614; color: #b8c4bc; border: 1px solid rgba(255,255,255,0.1); border-radius: 6px; padding: 4px 8px; cursor: pointer; }

/* Contact */
.contact { border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 4vw, 48px); background:
  radial-gradient(ellipse at 90% 0%, color-mix(in srgb, var(--copper) 20%, transparent), transparent 55%), var(--panel);
  display: grid; gap: 20px; }
.contact h2 { font-family: var(--f-display); font-weight: 600; font-size: var(--step-3); line-height: 1.1; }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mail { font: 500 var(--step-1) var(--f-mono); user-select: all; overflow-wrap: anywhere; }
footer { padding-block: 40px 56px; color: var(--muted); font-size: var(--step--1); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
