:root {
  --background: #191d23;
  --surface: #252b33;
  --bar: #303740;
  --inset: #20262e;
  --ink: #f0f2f4;
  --muted: #b1bdc9;
  --border: #47515e;
  --accent: #d8bb8a;
  --connector: #8f7e60;
  --dot: #9aabb312;
  --button: #d8bb8a;
  --button-ink: #27251f;
  --shadow: #070a1040;
}
body {
  background:
    radial-gradient(ellipse 780px 540px at 77% 10%, rgba(117,139,159,.105), transparent 76%),
    radial-gradient(ellipse 580px 460px at 12% 62%, rgba(76,100,122,.07), transparent 80%),
    radial-gradient(var(--dot) .7px, transparent .8px) 0 0 / 28px 28px,
    var(--background);
  letter-spacing: -.005em;
}
.topbar {
  background: rgba(34,40,48,.86);
  border-bottom-color: rgba(225,235,242,.12);
  box-shadow: 0 1px 0 rgba(255,255,255,.035), 0 12px 38px rgba(0,0,0,.10);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}
@supports (backdrop-filter: blur(12px)) {
  .topbar { background: rgba(34,40,48,.78); backdrop-filter: blur(22px) saturate(135%); -webkit-backdrop-filter: blur(22px) saturate(135%); }
}
.navigation a { letter-spacing: -.015em; }
.navigation a::after { height: 1px; }
.panel {
  background: linear-gradient(155deg, #2a3039 0%, #242a32 70%, #222830 100%);
  border-color: rgba(208,222,232,.15);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.075), 0 15px 42px rgba(2,5,10,.23), 0 2px 7px rgba(0,0,0,.12);
}
.filebar {
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.01)), #2b323b;
  border-bottom-color: rgba(205,219,229,.12);
  color: #b9c4cd;
  letter-spacing: -.012em;
}
.file-label .icon { color: #aebcc9; }
.window-dots i { background: #9aa8b3; opacity: .45; box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
.folder-state { color: #1fb765; font-weight: 700; letter-spacing: .06em; }
.folder-ready .folder-state { opacity: 1; }
h1 { font-size: clamp(29px, 2.35vw, 38px); letter-spacing: -1.25px; font-weight: 680; }
.role { color: #e3c89c; }
.bio { color: #b7c1ca; }
.portrait { border-color: rgba(226,235,241,.22); border-radius: 8px; box-shadow: 0 2px 12px rgba(4,8,13,.18); }
.skills li, .project-tags li {
  background: rgba(255,255,255,.025);
  border-color: rgba(214,227,235,.14);
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.code-window {
  background: rgba(11,17,23,.16);
  border-color: rgba(210,225,236,.16);
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.code-window .filebar { background: rgba(255,255,255,.035); }
.board .portfolio-card .image-slot {
  background: #1d242b;
  border-color: rgba(218,202,166,.29);
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 4px 15px rgba(3,6,11,.12);
}
.portfolio-caption h3, .disclosure-summary h2 { font-weight: 650; letter-spacing: -.025em; }
.project-tagline { color: #e2e8ed; }
.timeline-entry + .timeline-entry { border-top-color: rgba(216,229,238,.11); }
.timeline-entry::before { opacity: .62; }
.metric { border-color: rgba(220,232,241,.13); background: rgba(255,255,255,.025); }
.credential-frame {
  background: rgba(255,255,255,.025);
  border-color: rgba(216,229,238,.15);
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.credential-tags li { border-color: rgba(216,229,238,.14); }
.verified { color: #a4e1bd; background: rgba(60,128,91,.21); }
.resume-button {
  background: linear-gradient(180deg, #e2c99e, #d4b681);
  border-color: rgba(255,238,198,.48);
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 6px 20px rgba(5,8,12,.15);
}
.resume-button::after { background: linear-gradient(90deg, transparent, rgba(255,255,255,.17), transparent); }
.lang-switch { background: rgba(255,255,255,.035); border-color: rgba(216,229,238,.15); }
.lang-option.is-active { background: #d9bd8c; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 1px 4px rgba(0,0,0,.22); }
.connections .transmission { filter: drop-shadow(0 0 2px var(--accent)); }
@media (hover: hover) and (pointer: fine) {
  .certificate:hover .credential-frame {
    border-color: rgba(227,204,166,.4);
    box-shadow: 0 8px 22px rgba(2,5,10,.16), inset 0 1px 0 rgba(255,255,255,.04);
    transform: translateX(1px);
  }
  .resume-button:hover { filter: brightness(1.035); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 9px 25px rgba(5,8,12,.2); }
}
@media (max-width: 760px) {
  .panel { border-radius: 11px; }
  .filebar { border-radius: 10px 10px 0 0; }
  .topbar { background: rgba(34,40,48,.9); }
  h1 { font-size: clamp(21px, 4.8vw, 25px); letter-spacing: -.6px; }
}
@media (max-width: 420px) {
  .identity-header h1 { font-size: 21px; letter-spacing: -.7px; }
}
.filebar .file-label { min-width: 0; }
.filebar .file-label > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filebar .folder-state { flex: none; }
.portfolio, .portfolio-card { min-width: 0; }

/* Title bars follow the box's rounded corner at every moment. A bar with square (or smaller) corners, or a box
   left at the folded 9px radius, shows dark past the gold border while the box folds or unfolds. */
.board :is(.panel, .portfolio) { --panel-radius: 12px; }
.board .panel, .board .is-folded { border-radius: var(--panel-radius); }
.board .panel > .filebar, .board .panel > summary > .filebar { border-radius: calc(var(--panel-radius) - 1px) calc(var(--panel-radius) - 1px) 0 0; }
@media (max-width: 760px) {
  .board :is(.panel, .portfolio) { --panel-radius: 11px; }
  .board .panel.is-folding { overflow: hidden; transition: none; }
  .board .panel:not(.is-focused) > .filebar > .window-dots i,
  .board .panel:not(.is-focused) > summary > .filebar > .window-dots i,
  .board .panel.is-folded .window-dots i { transition: none; }
}
