/* Portfolio · public site */
:root {
  --paper: #f3f3ee;
  --paper-2: #e9ebe3;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --ink-2: #3a475a;
  --muted: #6b768a;
  --line: #dde0d7;
  --line-2: #c8ccc0;
  --accent: #e8590c;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --ok: #15803d;
  --term: #0c1420;
  --term-2: #121c2b;
  --term-ink: #d6dee8;
  --term-dim: #7f8da3;
  --term-green: #4ade80;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(15, 27, 45, .04), 0 18px 40px -22px rgba(15, 27, 45, .35);
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1120px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(15, 27, 45, .08) 1px, transparent 1.3px);
  background-size: 24px 24px;
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.ic { width: 18px; height: 18px; flex: none; }
.ic-s { width: 14px; height: 14px; flex: none; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.boot { font-family: var(--mono); color: var(--muted); padding: 40vh 24px 0; text-align: center; margin: 0; }
.boot-p { color: var(--accent); }

.cursor {
  display: inline-block; width: .55em; height: 1.05em; margin-left: 3px;
  background: var(--accent); vertical-align: -.15em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(21, 128, 61, .45); }
  70% { box-shadow: 0 0 0 8px rgba(21, 128, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(21, 128, 61, 0); }
}

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-in { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 64px; display: flex; align-items: center; gap: 20px; }
.brand { font-family: var(--mono); font-weight: 600; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; }
.brand .path { color: var(--accent); }
.nav-links { margin: 0 0 0 auto; padding: 0; list-style: none; display: flex; gap: 2px; }
.nav-links a {
  display: block; font-family: var(--mono); font-size: 13.5px; color: var(--ink-2); text-decoration: none;
  padding: 7px 11px; border-radius: 8px; transition: background .15s, color .15s;
}
.nav-links a:hover { background: var(--paper-2); color: var(--ink); }
.nav-links a.active { color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.nav-links a.active::before { content: '● '; color: var(--ok); font-size: 10px; vertical-align: 1px; }
.nav-cv { height: 38px; padding: 0 14px; font-size: 14px; }
.menu-btn { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 8px 18px -10px rgba(15, 27, 45, .7); }
.btn-primary:hover { background: #1b2b44; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 76px var(--gutter) 36px;
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); gap: 52px; align-items: center;
}
.status {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font-family: var(--mono); font-size: 13px; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); padding: 6px 13px 6px 11px; border-radius: 999px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 2.2s infinite; flex: none; }
.name { font-size: clamp(2.4rem, 5.6vw, 4.1rem); line-height: 1.02; letter-spacing: -.035em; margin: 22px 0 16px; font-weight: 700; }
.name .last { display: block; }
.name .us { color: var(--accent); animation: blink 1.1s steps(1) infinite; margin-left: .04em; }
.role { font-family: var(--mono); font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--ink-2); margin: 0 0 18px; }
.role::before { content: '> '; color: var(--accent); font-weight: 600; }
.bio { font-size: 1.06rem; color: var(--ink-2); max-width: 58ch; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.quick { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 14.5px; color: var(--ink-2); }
.quick li, .quick a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.quick a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.quick .ic { width: 16px; height: 16px; color: var(--muted); }

/* terminal "neofetch" card */
.term {
  background: var(--term); color: var(--term-ink); border-radius: 16px; overflow: hidden;
  font-family: var(--mono); font-size: 13px; line-height: 1.55;
  box-shadow: 0 36px 70px -32px rgba(12, 20, 32, .6), inset 0 0 0 1px rgba(255, 255, 255, .05);
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--term-2); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar b { flex: 1; text-align: center; font-weight: 500; font-size: 12px; color: var(--term-dim); margin-right: 40px; }
.term-body { padding: 18px 20px 18px; }
.term-cmd { color: var(--term-ink); }
.term-cmd .p { color: var(--term-green); }
.term-cmd.last { margin-top: 14px; }
.neo { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 18px; margin-top: 14px; align-items: start; }
.neo-photo { width: 100px; height: 100px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); }
.neo-head { color: var(--accent); font-weight: 600; }
.neo-head span { color: var(--term-ink); }
.neo-sep { color: var(--term-dim); overflow: hidden; white-space: nowrap; }
.neo dl { margin: 2px 0 0; }
.neo-row { display: flex; gap: 8px; }
.neo-row dt { color: var(--accent); flex: none; min-width: 64px; }
.neo-row dt::after { content: ':'; color: var(--term-dim); }
.neo-row dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.neo-colors { display: flex; margin-top: 12px; }
.neo-colors span { width: 20px; height: 11px; }
.neo-colors span:nth-child(1) { background: #ff5f57; }
.neo-colors span:nth-child(2) { background: #febc2e; }
.neo-colors span:nth-child(3) { background: #28c840; }
.neo-colors span:nth-child(4) { background: #4f9dff; }
.neo-colors span:nth-child(5) { background: #c084fc; }
.neo-colors span:nth-child(6) { background: #2dd4bf; }
.neo-colors span:nth-child(7) { background: var(--accent); }
.neo-colors span:nth-child(8) { background: #e5e7eb; }

/* stack strip */
.stack { max-width: var(--max); margin: 0 auto; padding: 8px var(--gutter) 8px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.stack-label { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-right: 6px; }
.chip { font-family: var(--mono); font-size: 12.5px; padding: 4px 10px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }

/* ---------- sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 76px var(--gutter) 8px; }
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.sec-if { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 6px; flex: none; }
.sec-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); letter-spacing: -.025em; margin: 0; line-height: 1.1; }
.sec-rule { flex: 1; height: 1px; background: var(--line-2); min-width: 20px; }
.sec-meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.sec-meta .dot { width: 7px; height: 7px; animation: none; }
.sec-sub { color: var(--ink-2); margin: 0 0 28px; max-width: 70ch; }
.sec-head + :not(.sec-sub) { margin-top: 26px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.tags li { font-family: var(--mono); font-size: 12px; padding: 3px 8px; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 20px; color: var(--ink-2); }
.ticks li::before { content: ''; position: absolute; left: 3px; top: .68em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }

/* ---------- projects ---------- */
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.proj {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 16px; display: flex; flex-direction: column; gap: 12px; cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.proj:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: var(--shadow); }
.proj-top { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.proj-ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: #fff; flex: none; }
.proj-ic .ic { width: 20px; height: 20px; }
.proj:hover .proj-ic { background: var(--accent); }
.proj-ctx { margin-left: auto; text-transform: none; letter-spacing: 0; border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.proj h3 { margin: 2px 0 0; font-size: 1.27rem; line-height: 1.25; letter-spacing: -.012em; }
.proj-title { background: none; border: 0; padding: 0; margin: 0; text-align: left; font-weight: 700; cursor: pointer; }
.proj-title:focus-visible { outline-offset: 4px; }
.proj p { margin: 0; color: var(--ink-2); font-size: 15px; }
.proj-inc {
  display: flex; gap: 10px; align-items: baseline; background: var(--paper); border: 1px dashed var(--line-2);
  border-radius: 10px; padding: 9px 12px; font-size: 13.5px; color: var(--ink-2);
}
.proj-inc b { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--ok); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.proj-inc span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.proj-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.proj-open { font-weight: 600; font-size: 14.5px; display: inline-flex; gap: 6px; align-items: center; }
.proj-open .ic { transition: transform .2s ease; color: var(--accent); }
.proj:hover .proj-open .ic { transform: translateX(4px); }
.proj-date { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.proj-doc {
  margin-left: auto; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); text-decoration: none;
  display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line);
  transition: border-color .15s, color .15s;
}
.proj-doc .ic { width: 15px; height: 15px; }
.proj-doc:hover { border-color: var(--ink); color: var(--ink); }

/* project dialog */
dialog.modal {
  width: min(940px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: 18px;
  background: var(--surface); color: var(--ink); overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 40px 100px -20px rgba(12, 20, 32, .55);
}
dialog.modal::backdrop { background: rgba(12, 20, 32, .58); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: pop .22s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } }
.m-head { position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 20px 24px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: center; }
.m-kicker { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.m-head h2 { margin: 2px 0 0; font-size: clamp(1.25rem, 2.6vw, 1.6rem); letter-spacing: -.02em; line-height: 1.2; }
.m-close { margin-left: auto; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; flex: none; }
.m-close:hover { border-color: var(--ink); }
.m-body { padding: 22px 24px 26px; display: grid; gap: 22px; }
.m-lead { margin: 0; font-size: 1.05rem; color: var(--ink-2); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); cursor: zoom-in; }
.gallery img { width: 100%; height: 190px; object-fit: contain; background: var(--paper); transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.02); }
.gallery figcaption { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 6px; }
.m-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .95fr); gap: 26px; align-items: start; }
.m-grid.single { grid-template-columns: 1fr; }
.m-h { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; font-weight: 500; }
.m-col > p { margin: 0 0 20px; color: var(--ink-2); }
.ticket { border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--paper); }
.ticket-head { display: flex; align-items: center; gap: 9px; padding: 10px 14px; background: var(--ink); color: #fff; font-family: var(--mono); font-size: 12.5px; }
.ticket-head .st { margin-left: auto; background: var(--ok); color: #fff; padding: 1px 9px; border-radius: 999px; font-size: 11.5px; }
.ticket ol { list-style: none; margin: 0; padding: 6px 14px; }
.ticket li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
.ticket li + li { border-top: 1px dashed var(--line-2); }
.t-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }
.t-ic .ic { width: 16px; height: 16px; }
.t-problem .t-ic { color: var(--accent); }
.t-diagnosis .t-ic { color: #2563eb; }
.t-solution .t-ic { color: var(--ok); }
.t-lbl { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.ticket p { margin: 2px 0 0; font-size: 14.5px; color: var(--ink); }
.result { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--ok) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 28%, transparent); }
.result > .ic { color: var(--ok); margin-top: 3px; }
.result b { font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ok); }
.result p { margin: 2px 0 0; }
.m-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }

/* ---------- experience (log timeline) ---------- */
.log { --when: 150px; --gap: 32px; list-style: none; margin: 0; padding: 0; position: relative; }
.log::before { content: ''; position: absolute; top: 8px; bottom: 8px; left: calc(var(--when) + var(--gap) / 2 - 1px); width: 2px; background: repeating-linear-gradient(to bottom, var(--line-2) 0 6px, transparent 6px 11px); }
.log-item { display: grid; grid-template-columns: var(--when) minmax(0, 1fr); gap: var(--gap); padding-bottom: 22px; }
.log-when { font-family: var(--mono); font-size: 13px; color: var(--muted); text-align: right; padding-top: 22px; line-height: 1.5; }
.log-when b { display: block; color: var(--ink); font-weight: 600; }
.log-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.log-card::before { content: ''; position: absolute; left: calc(var(--gap) / -2 - 6px); top: 26px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--paper); }
.log-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.log-top h3 { margin: 0; font-size: 1.15rem; letter-spacing: -.01em; }
.badge { font-family: var(--mono); font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.log-org { margin: 4px 0 14px; color: var(--ink-2); display: flex; align-items: center; gap: 7px; font-weight: 500; }
.log-org .ic { width: 16px; height: 16px; color: var(--muted); }
.log-card .tags { margin-top: 14px; }

/* ---------- skills ---------- */
.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.skill { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 22px; transition: border-color .2s ease; }
.skill:hover { border-color: var(--line-2); }
.skill-h { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.skill-h .box { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.skill-h h3 { margin: 0; font-size: 1.02rem; letter-spacing: -.005em; }
.skill ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.skill li { font-size: 14.5px; color: var(--ink-2); padding-left: 16px; position: relative; }
.skill li::before { content: '+'; font-family: var(--mono); color: var(--accent); position: absolute; left: 0; top: -.05em; font-weight: 600; }

/* ---------- education ---------- */
.edu { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .8fr); gap: 16px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.panel-h { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; align-items: center; margin: 0 0 14px; }
.panel-h .ic { color: var(--accent); width: 16px; height: 16px; }
.entry + .entry { border-top: 1px dashed var(--line-2); margin-top: 14px; padding-top: 14px; }
.entry h3 { margin: 0; font-size: 1.04rem; letter-spacing: -.005em; }
.entry h3 a { text-decoration: none; }
.entry h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.entry-meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }
.entry .ticks { margin-top: 10px; font-size: 14.5px; gap: 5px; }
.lang { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.lang + .lang { border-top: 1px dashed var(--line-2); margin-top: 10px; padding-top: 10px; }
.lang b { font-weight: 600; }
.lang span { font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-align: right; }

/* ---------- contact ---------- */
.contact-box {
  position: relative; overflow: hidden; background: var(--term); color: var(--term-ink); border-radius: 22px;
  padding: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center;
}
.contact-box::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: linear-gradient(120deg, transparent 20%, #000 90%); -webkit-mask-image: linear-gradient(120deg, transparent 20%, #000 90%);
}
.contact-box > * { position: relative; }
.contact-box h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0 0 14px; letter-spacing: -.025em; line-height: 1.12; }
.contact-box p { color: #b5c1d1; margin: 0 0 26px; }
.cterm { font-family: var(--mono); font-size: 14px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; padding: 16px 20px 18px; }
.cterm-cmd { color: var(--term-dim); margin-bottom: 8px; }
.cterm-cmd .p { color: var(--term-green); }
.cterm-cmd .c { color: var(--term-ink); }
.crow { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 6px 0; align-items: baseline; }
.crow + .crow { border-top: 1px dashed rgba(255, 255, 255, .08); }
.crow .k { color: var(--term-dim); }
.crow a { color: var(--term-ink); text-decoration: none; overflow-wrap: anywhere; border-bottom: 1px dashed rgba(255, 255, 255, .25); transition: color .15s, border-color .15s; }
.crow a:hover { color: #fff; border-color: var(--accent); }
.crow span:not(.k) { overflow-wrap: anywhere; }

/* ---------- footer ---------- */
.foot { max-width: var(--max); margin: 0 auto; padding: 34px var(--gutter) 46px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.foot .dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; vertical-align: 1px; animation: none; }

.preview-bar { position: sticky; top: 0; z-index: 60; background: var(--accent); color: #fff; text-align: center; font-family: var(--mono); font-size: 13px; padding: 7px 12px; }
.preview-bar + .nav { top: 33px; }

/* ---------- entrance (above the fold) ---------- */
.intro { animation: intro .7s cubic-bezier(.2, .7, .2, 1) both; }
.term.intro { animation-delay: .1s; }
.stack.intro { animation-delay: .2s; }
@keyframes intro { from { opacity: 0; transform: translateY(12px); } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 52px; }
  .term { max-width: 560px; }
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edu > :first-child { grid-column: 1 / -1; }
  .contact-box { grid-template-columns: 1fr; padding: 36px; gap: 28px; }
  .m-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .menu-btn { display: inline-flex; }
  .nav-cv { display: none; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 12px 14px; margin: 0;
    box-shadow: 0 20px 30px -20px rgba(15, 27, 45, .3);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 11px 12px; font-size: 14.5px; }
}
@media (max-width: 680px) {
  :root { --gutter: 16px; }
  .hero { padding-top: 36px; }
  .section { padding-top: 60px; }
  .projects, .skills, .edu { grid-template-columns: 1fr; }
  .sec-rule { display: none; }
  .sec-meta { margin-left: auto; }
  .log::before, .log-card::before { display: none; }
  .log-item { grid-template-columns: 1fr; gap: 8px; }
  .log-when { text-align: left; padding-top: 0; }
  .log-when b { display: inline; margin-right: 6px; }
  .contact-box { padding: 28px 20px; border-radius: 18px; }
  .crow { grid-template-columns: 1fr; gap: 0; }
  .m-head { padding: 16px 16px 14px; }
  .m-body { padding: 18px 16px 22px; }
  .gallery img { height: 170px; }
  .actions .btn { flex: 1 1 auto; }
  .proj { padding: 18px 18px 14px; }
}
@media (max-width: 440px) {
  .neo { grid-template-columns: 1fr; }
  .neo-photo { width: 88px; height: 88px; }
  .term-body { padding: 16px; }
  .proj-ctx { display: none; }
}
