@font-face { font-family: 'Podkova'; src: url("assets/fonts/Podkova.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Iosevka'; src: url("assets/fonts/iosevka-regular.woff2") format("woff2"); font-weight: 200 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Iosevka'; src: url("assets/fonts/iosevka-bold.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Iosevka'; src: url("assets/fonts/iosevka-italic.woff2") format("woff2"); font-weight: 200 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Iosevka'; src: url("assets/fonts/iosevka-bolditalic.woff2") format("woff2"); font-weight: 600 800; font-style: italic; font-display: swap; }

:root {
  --bg-bottom: #1c1c1c;
  --ink: #f0e7d5;
  --heading: #eee7d8;
  --muted: #b6b6b6;
  --accent: #ffcc00;
  --accent-soft: #ffeb9b;
  --rule: #434343;
  --panel: #232322;
  --panel-2: #191919;
  --panel-border: #121212;
  --hero-scrim: rgba(18, 18, 17, 0.55);
  --display: 'Podkova', Georgia, 'Times New Roman', serif;
  --body: 'Iosevka', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --topbar-h: 84px;
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; scroll-padding-top: var(--topbar-h); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-bottom);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 200;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
strong { font-weight: 600; color: var(--heading); }
em { font-style: italic; color: var(--muted); }

/* ---- hero ---- */
.hero { position: relative; min-height: 66vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center top;
  filter: grayscale(.3) contrast(1.1) brightness(.8) sepia(.12);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, transparent 40%, var(--bg-bottom) 85%);
}

.hero-topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(20px, 4vw, 56px);
  background: linear-gradient(180deg, var(--hero-scrim) 0%, rgba(18, 18, 17, 0.28) 70%, transparent 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-mark { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--heading); letter-spacing: .02em; }
.hero-topbar nav { display: flex; gap: 22px; }
.hero-topbar nav a { font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); }
.hero-topbar nav a:hover { color: var(--accent); }

.hero-content {
  position: relative; z-index: 2; margin: var(--topbar-h) clamp(20px, 4vw, 56px) 44px; max-width: 920px;
  padding: 26px 30px 30px;
  background: rgba(18, 18, 17, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-left: 2px solid var(--accent);
}
.hero-eyebrow {
  font-family: var(--body); font-weight: 600; text-transform: uppercase; letter-spacing: .18em;
  font-size: .72rem; color: var(--accent); margin: 0 0 16px;
}
.hero-name {
  font-family: var(--display); font-weight: 700; font-size: clamp(2.5rem, 6.5vw, 4.4rem);
  line-height: 1.02; color: var(--heading); margin: 0 0 16px; text-wrap: balance;
}
.hero-tagline { font-weight: 200; font-size: 1.05rem; line-height: 1.65; color: var(--ink); max-width: 560px; margin: 0; }

/* ---- content ---- */
.content-grid {
  max-width: 1100px; margin: 0 auto; padding: 10px clamp(20px, 4vw, 56px) 90px;
  display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start;
}
.sidebar {
  position: sticky; top: 88px;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 2px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35);
  padding: 26px 22px;
}
.sidebar-name {
  font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: var(--heading);
  margin: 0 0 4px;
}
.sidebar-location {
  font-size: .78rem; color: var(--muted); font-style: italic;
  margin: 0 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--rule);
}
.sidebar-links { margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.sidebar-label {
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 12px;
}
.sidebar-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.sidebar-links li::before { content: "»"; color: var(--ink); margin-right: 6px; }
.sidebar-links a { font-family: var(--body); font-size: .82rem; border-bottom: 1px solid transparent; }
.sidebar-links a:hover { border-bottom-color: var(--accent); }
.sidebar .tb-filter { margin-bottom: 0; }
.card {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: 2px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .35);
  padding: 32px clamp(20px, 3.5vw, 42px); margin-bottom: 26px;
}
.card summary { cursor: pointer; list-style: none; display: block; }
.card summary::-webkit-details-marker { display: none; }
.card summary::marker { content: ""; }
.card h2 {
  font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--heading);
  margin: 0 0 24px; display: flex; align-items: center; gap: 12px;
}
.card h2::before { content: ""; width: 22px; height: 2px; background: var(--accent); flex: none; }
.card h2::after {
  content: "▾"; margin-left: auto; color: var(--muted); font-size: 1rem;
  transition: transform .18s ease;
}
.card:not([open]) h2 { margin-bottom: 0; }
.card:not([open]) h2::after { transform: rotate(-90deg); }

.skill-groups { display: flex; flex-direction: column; gap: 9px; }
.skill-group { font-size: .88rem; line-height: 1.7; }
.skill-group::before { content: "»"; color: var(--ink); margin-right: 8px; }
.skill-group h3 {
  display: inline; font-family: var(--body); font-weight: 700; font-size: .88rem; color: var(--heading);
  margin: 0;
}
.skill-group h3::after { content: ":"; }
.skill-item { color: var(--ink); font-style: italic; }
.skill-item::after { content: ", "; }
.skill-item:last-child::after { content: ""; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font-family: var(--body); font-size: .76rem; border: 1px solid var(--rule); color: var(--ink); padding: 4px 10px; border-radius: 2px; }
.skill-group.is-hidden { display: none; }

.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--rule); }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 5px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--bg-bottom); border: 2px solid var(--accent);
}
.tl-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 6px; }
.tl-title { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--heading); margin: 0; }
.tl-co { color: var(--muted); font-weight: 400; font-size: .92rem; }
.tl-dates { font-family: var(--body); font-size: .74rem; color: var(--muted); letter-spacing: .03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-item ul { margin: 8px 0 10px; padding-left: 20px; font-size: .92rem; line-height: 1.6; }
.tl-item li { margin-bottom: 4px; }
.stack-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 8px; }

.proj { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 28px; padding: 18px 0; border-top: 1px solid var(--rule); }
.proj:first-child { padding-top: 0; border-top: none; }
.proj-body { flex: 1 1 320px; min-width: 0; }
.proj-media { flex: 0 0 160px; }
.proj-media a { display: block; border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; }
.proj-media img { display: block; width: 100%; height: auto; filter: grayscale(.15) contrast(1.05); transition: filter .15s ease, transform .15s ease; }
.proj-media a:hover img { filter: none; transform: scale(1.03); }
.proj-name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--heading); margin: 0 0 4px; }
.proj-note { color: var(--muted); font-size: .86rem; margin: 0 0 10px; }
.proj ul { margin: 6px 0 10px; padding-left: 20px; font-size: .9rem; line-height: 1.55; }
.proj-links { list-style: none; margin: 6px 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: .82rem; }
.proj-links li::before { content: "»"; color: var(--ink); margin-right: 6px; }

.table-wrap { overflow-x: auto; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .8rem; margin: 10px 0 14px; }
.spec-table th, .spec-table td { padding: 6px 12px 6px 0; border-bottom: 1px solid var(--rule); text-align: left; }
.spec-table th { text-transform: uppercase; letter-spacing: .06em; font-size: .66rem; color: var(--muted); font-weight: 600; }
.spec-table td.num, .spec-table th.num { text-align: right; font-variant-numeric: tabular-nums; }

.tb-filter { margin-bottom: 20px; }
.tb-filter label { display: block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.tb-filter input {
  width: 100%; max-width: 340px; font-family: var(--body); font-size: .86rem; padding: 9px 11px;
  background: var(--panel-2); border: 1px solid var(--rule); color: var(--ink); border-radius: 2px;
}
.tb-filter input:focus { border-color: var(--accent); }
.tb-count { font-size: .7rem; color: var(--muted); margin-top: 8px; }
.tech-grid { display: flex; flex-direction: column; gap: 6px; }
.tech-row { font-size: .88rem; line-height: 1.6; }
.tech-row::before { content: "»"; color: var(--ink); margin-right: 8px; }
.tech-row.is-hidden { display: none; }
.tech-link { font-family: var(--body); font-weight: 700; color: var(--accent); border-bottom: 1px solid transparent; }
.tech-link:hover { color: var(--accent-soft); border-bottom-color: var(--accent-soft); }
.tech-note { color: var(--ink); font-style: italic; }
.sheet-foot { font-size: .72rem; color: var(--muted); margin-top: 16px; border-top: 1px solid var(--rule); padding-top: 12px; }

footer { text-align: center; padding: 0 20px 60px; color: var(--muted); font-size: .78rem; line-height: 1.7; }
footer a { color: var(--muted); border-bottom: 1px solid var(--rule); }
footer a:hover { color: var(--accent); border-bottom-color: var(--accent); }

@media (max-width: 760px) {
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero { display: block; min-height: 0; }
  .hero img { bottom: auto; height: auto; aspect-ratio: 3 / 1; }
  .hero-content { margin-top: 22%; }
}
@media (max-width: 560px) {
  .hero-content { margin-left: 16px; margin-right: 16px; margin-bottom: 28px; padding: 20px 20px 24px; }
}
