:root {
  --bg: #0a0a0f;
  --bg-elev: #0f1016;
  --bg-card: #0d0e14;
  --line: #1b1d26;
  --line-2: #242633;
  --fg: #f0f0f0;
  --fg-dim: #9ca3af;
  --fg-meta: #6b7280;
  --accent: #00ffd1;
  --accent-2: #7c3aed;
  --accent-glow: 0 0 24px rgba(0, 255, 209, 0.35);
  --danger: #ff5577;
  --warn: #ffb020;
  --ok: #4ade80;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 4px;
  --radius-lg: 10px;
  --maxw: 1280px;
}

html.light {
  --bg: #f5f4ef;
  --bg-elev: #ffffff;
  --bg-card: #ffffff;
  --line: #e4e2da;
  --line-2: #d4d1c6;
  --fg: #0f0f14;
  --fg-dim: #4b5563;
  --fg-meta: #6b7280;
  --accent: #00a884;
  --accent-2: #6d28d9;
  --accent-glow: 0 0 24px rgba(0, 168, 132, 0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body { cursor: none; }
@media (pointer: coarse) { body { cursor: auto; } }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: none; }
@media (pointer: coarse) { button, a { cursor: pointer; } }

::selection { background: var(--accent); color: #000; }

/* ---------- Backgrounds ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.bg-fx canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  opacity: 0.35;
}

.bg-mesh {
  position: fixed; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(40% 40% at 15% 20%, color-mix(in oklch, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(35% 45% at 85% 10%, color-mix(in oklch, var(--accent-2) 28%, transparent), transparent 60%),
    radial-gradient(50% 30% at 50% 90%, color-mix(in oklch, var(--accent) 12%, transparent), transparent 60%);
  filter: blur(40px);
  animation: meshDrift 24s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0%   { transform: translate3d(-2%, -2%, 0) scale(1); }
  50%  { transform: translate3d(2%, 1%, 0) scale(1.05); }
  100% { transform: translate3d(1%, 3%, 0) scale(1); }
}

html.fx-off .bg-fx,
html.fx-off .bg-mesh,
html.fx-off .bg-grid { display: none; }

/* ---------- Cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  transition: transform 80ms linear;
}
.cursor-ring {
  width: 34px; height: 34px; border: 1px solid var(--accent);
  border-radius: 50%;
  transition: transform 200ms ease, width 200ms ease, height 200ms ease, border-color 200ms ease;
}
.cursor-ring.hover {
  width: 54px; height: 54px;
  border-color: var(--accent-2);
  background: color-mix(in oklch, var(--accent) 8%, transparent);
}
@media (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}
main { position: relative; z-index: 2; }

section { padding: 120px 0; position: relative; }
@media (max-width: 720px) { section { padding: 80px 0; } }

.section-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 48px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.section-head .tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.section-head .trail {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--line-2), transparent);
  align-self: center;
  margin-left: 8px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in oklch, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 13px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: 0.02em;
}
.logo .glyph {
  width: 22px; height: 22px; display: grid; place-items: center;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  box-shadow: var(--accent-glow);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--fg-dim); transition: color .2s; }
.nav-links a:hover { color: var(--accent); }
.nav-meta { display: flex; align-items: center; gap: 14px; color: var(--fg-dim); }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.5; } }

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  display: grid;
  align-content: center;
}
.hero-top {
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.hero-top span { display: flex; align-items: center; gap: 8px; }

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 9vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}
.hero h1 .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 300;
}
.hero h1 .strike {
  text-decoration: line-through;
  text-decoration-color: var(--accent-2);
  color: var(--fg-dim);
}

.hero-sub {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
@media (max-width: 820px) { .hero-sub { grid-template-columns: 1fr; gap: 24px; } }

.hero-sub p {
  font-size: 18px; max-width: 56ch; color: var(--fg-dim);
}
.hero-sub p strong { color: var(--fg); font-weight: 500; }

.terminal {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: 12.5px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--fg-meta);
}
.terminal-bar .dots { display: flex; gap: 6px; }
.terminal-bar .dots i {
  width: 10px; height: 10px; border-radius: 50%; display: block;
}
.terminal-bar .dots i:nth-child(1) { background: #ff5f57; }
.terminal-bar .dots i:nth-child(2) { background: #febc2e; }
.terminal-bar .dots i:nth-child(3) { background: #28c840; }
.terminal-bar .title { margin-left: 8px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.terminal-body {
  padding: 16px 18px;
  line-height: 1.8;
  min-height: 180px;
}
.term-line {
  display: block;
  white-space: pre-wrap;
  word-break: normal;
  overflow-wrap: break-word;
  min-width: 0;
}
/* Hanging indent pro JSON-like řádky — pokračování wrappu se zarovná za ': [' */
.term-line.indent {
  padding-left: var(--indent, 15ch);
  text-indent: calc(var(--indent, 15ch) * -1);
}
.term-line .prompt { color: var(--accent); }
.term-line .comment { color: var(--fg-meta); }
.term-line .str { color: #ffb86c; }
.term-line .kw { color: var(--accent-2); }
.cursor-blink::after {
  content: "▋";
  color: var(--accent);
  animation: blink 1s steps(2) infinite;
  margin-left: 2px;
}
@keyframes blink { 50% { opacity: 0; } }

.cta-row {
  display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent;
  position: relative;
  transition: all .2s ease;
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--accent-glow);
  transform: translateY(-1px);
}
.btn-primary {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in oklch, var(--accent) 8%, transparent);
}
.btn-primary:hover { background: var(--accent); color: #000; }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.about-lead {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.about-lead em { color: var(--accent); font-style: italic; font-weight: 300; }
.about-body { margin-top: 28px; color: var(--fg-dim); max-width: 56ch; }
.about-body p + p { margin-top: 16px; }

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  background: var(--bg-card);
  padding: 24px 22px;
}
.stat .k {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-meta); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 8px;
}
.stat .v {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 400;
  letter-spacing: -0.02em;
}
.stat .v .unit { color: var(--accent); font-size: 20px; margin-left: 2px; }
.stat .meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-meta); margin-top: 6px; }

/* ---------- Skills ---------- */
.skills-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
}
@media (max-width: 820px) { .skills-wrap { grid-template-columns: 1fr; } }

.skills-cats {
  border-right: 1px solid var(--line);
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 12px;
}
@media (max-width: 820px) { .skills-cats { border-right: 0; border-bottom: 1px solid var(--line); display: flex; overflow-x: auto; padding: 8px; } }

.skills-cats button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 22px;
  color: var(--fg-dim);
  border-left: 2px solid transparent;
  transition: all .15s;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.skills-cats button:hover { color: var(--fg); }
.skills-cats button.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: color-mix(in oklch, var(--accent) 6%, transparent);
}
@media (max-width: 820px) {
  .skills-cats button { border-left: 0; border-bottom: 2px solid transparent; }
  .skills-cats button.active { border-bottom-color: var(--accent); }
}

.skills-list {
  padding: 24px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px 20px;
  align-content: start;
}
.skill {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-family: var(--font-mono); font-size: 13px;
}
.skill .lvl {
  display: flex; gap: 3px;
}
.skill .lvl i {
  width: 6px; height: 6px; background: var(--line-2); display: block;
}
.skill .lvl i.on { background: var(--accent); box-shadow: 0 0 6px var(--accent); }

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.project {
  grid-column: span 6;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  position: relative;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), border-color .2s;
  transform-style: preserve-3d;
  will-change: transform;
}
.project.wide { grid-column: span 12; display: grid; grid-template-columns: 1.2fr 1fr; }
.project.wide .proj-vis { aspect-ratio: auto; }
@media (max-width: 820px) {
  .project, .project.wide { grid-column: span 12; grid-template-columns: 1fr; }
}

.project:hover { border-color: var(--accent); }
@media (pointer: coarse) { .project.clickable { cursor: pointer; } }

.proj-vis {
  aspect-ratio: 16 / 10;
  background: #07080c;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.project.wide .proj-vis { border-bottom: 0; border-right: 1px solid var(--line); min-height: 340px; }

.proj-chrome {
  position: absolute; top: 10px; left: 10px; right: 10px;
  display: flex; gap: 6px; align-items: center;
  font-family: var(--font-mono); font-size: 10px;
  color: var(--fg-meta);
  pointer-events: none;
}
.proj-chrome .d { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }

.proj-info {
  padding: 22px 24px 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.proj-meta {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-meta);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.proj-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.proj-meta .type { color: var(--accent); }
.proj-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 500; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 10px;
}
.proj-title .ext { color: var(--fg-meta); transition: transform .2s, color .2s; }
.project:hover .proj-title .ext { color: var(--accent); transform: translate(3px, -3px); }
.proj-desc { color: var(--fg-dim); font-size: 14.5px; max-width: 52ch; }
.proj-stack {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
.proj-stack span {
  font-family: var(--font-mono); font-size: 10.5px;
  padding: 4px 8px;
  border: 1px solid var(--line-2);
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}

/* Project visuals */
.vis-dash, .vis-shop, .vis-editor, .vis-site, .vis-dashboard, .vis-api {
  position: absolute; inset: 28px 24px 24px; border-radius: 6px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  overflow: hidden;
}
.vis-inner {
  position: absolute; inset: 0;
  display: grid;
  font-family: var(--font-mono); font-size: 9.5px;
  color: var(--fg-dim);
}

.vis-dash .vis-inner { grid-template-columns: 60px 1fr; }
.vis-dash .side { border-right: 1px solid var(--line); padding: 10px 6px; }
.vis-dash .side .pill { height: 6px; background: var(--line-2); border-radius: 2px; margin-bottom: 6px; }
.vis-dash .side .pill.on { background: var(--accent); }
.vis-dash .main { padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vis-dash .card { background: #0b0d14; border: 1px solid var(--line); padding: 8px; }
.vis-dash .card .num { color: var(--accent); font-size: 14px; font-weight: 600; }
.vis-dash .chart {
  grid-column: 1 / -1; height: 70px; position: relative;
  background: linear-gradient(transparent 70%, color-mix(in oklch, var(--accent) 8%, transparent));
}
.vis-dash .chart svg { width: 100%; height: 100%; }

.vis-shop .vis-inner { grid-template-rows: 30px 1fr; }
.vis-shop .header {
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 10px; gap: 8px;
  color: var(--fg-meta);
}
.vis-shop .header .search { flex: 1; height: 12px; background: #0b0d14; border: 1px solid var(--line); }
.vis-shop .header .cart { width: 14px; height: 12px; background: var(--line-2); }
.vis-shop .grid {
  padding: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
.vis-shop .grid .item {
  aspect-ratio: 1; background: #0b0d14; border: 1px solid var(--line);
  position: relative;
}
.vis-shop .grid .item::after {
  content: ""; position: absolute; inset: auto 4px 4px; height: 2px; background: var(--line-2);
}
.vis-shop .grid .item.hi::before {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--accent);
  box-shadow: var(--accent-glow);
}

.vis-editor .vis-inner { grid-template-columns: 80px 1fr; }
.vis-editor .tree { border-right: 1px solid var(--line); padding: 8px; }
.vis-editor .tree .f { color: var(--fg-meta); font-size: 9px; padding: 2px 0; }
.vis-editor .tree .f.on { color: var(--accent); }
.vis-editor .code { padding: 10px; }
.vis-editor .code .ln { opacity: 0.6; display: flex; gap: 8px; }
.vis-editor .code .ln .n { color: var(--fg-meta); width: 16px; text-align: right; }
.vis-editor .code .ln .kw { color: var(--accent-2); }
.vis-editor .code .ln .str { color: #ffb86c; }
.vis-editor .code .ln .fn { color: var(--accent); }

.vis-site .vis-inner { grid-template-rows: 24px 1fr; }
.vis-site .nav {
  position: relative;
  border-bottom: 1px solid var(--line); padding: 0 10px;
  display: flex; align-items: center; gap: 10px;
  background: transparent;
  backdrop-filter: none;
}
.vis-site .nav i { width: 18px; height: 4px; background: var(--line-2); display: block; }
.vis-site .nav i.on { background: var(--accent); }
.vis-site .body { padding: 14px; display: grid; gap: 8px; grid-template-rows: 18px 8px 8px auto; }
.vis-site .body .h { font-size: 14px; color: var(--fg); }
.vis-site .body .l { background: var(--line-2); height: 4px; border-radius: 2px; }
.vis-site .body .l.short { width: 50%; }
.vis-site .body .cta { margin-top: 4px; display: flex; gap: 6px; }
.vis-site .body .cta span { padding: 3px 8px; border: 1px solid var(--accent); color: var(--accent); font-size: 8px; }

.vis-dashboard .vis-inner { grid-template-columns: 1fr 120px; }
.vis-dashboard .m { padding: 10px; display: grid; gap: 6px; }
.vis-dashboard .m .row { display: flex; gap: 6px; }
.vis-dashboard .m .row .box { flex: 1; height: 22px; background: #0b0d14; border: 1px solid var(--line); position: relative; }
.vis-dashboard .m .row .box.lg { height: 90px; }
.vis-dashboard .m .row .box .fill { position: absolute; left: 0; top: 0; bottom: 0; background: color-mix(in oklch, var(--accent) 30%, transparent); }
.vis-dashboard .side { border-left: 1px solid var(--line); padding: 10px; display: grid; gap: 6px; align-content: start; }
.vis-dashboard .side .tag { padding: 3px 5px; border: 1px solid var(--line); font-size: 9px; color: var(--fg-dim); }

.vis-api .vis-inner { grid-template-columns: 1fr; padding: 12px; gap: 6px; font-size: 10px; }
.vis-api .req { display: flex; gap: 8px; align-items: center; }
.vis-api .m { padding: 2px 6px; border: 1px solid var(--accent); color: var(--accent); font-size: 9px; }
.vis-api .m.post { border-color: var(--warn); color: var(--warn); }
.vis-api .m.del { border-color: var(--danger); color: var(--danger); }
.vis-api .path { color: var(--fg-dim); }
.vis-api .status { margin-left: auto; color: var(--ok); }

/* subtle scanlines overlay */
.proj-vis::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(255,255,255,0.015) 2px 3px);
  pointer-events: none;
}

/* ---------- Services ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 820px) { .services { grid-template-columns: 1fr; } }

.service {
  background: var(--bg-card);
  padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: background .2s;
  position: relative;
}
.service:hover { background: var(--bg-elev); }
.service .num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.1em;
}
.service h3 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 500; letter-spacing: -0.01em;
}
.service p { color: var(--fg-dim); font-size: 14.5px; }
.service ul {
  list-style: none; padding: 0;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-dim);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  display: grid; gap: 6px;
}
.service ul li::before {
  content: "→ "; color: var(--accent);
}

/* ---------- Experience ---------- */
.timeline {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
}
@media (max-width: 820px) { .timeline { grid-template-columns: 1fr; } }

.tl-years {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-meta);
  letter-spacing: 0.08em;
  padding-right: 24px;
  border-right: 1px solid var(--line);
  padding-top: 6px;
}
@media (max-width: 820px) {
  .tl-years { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; margin-bottom: 20px; }
}

.tl-entry { padding: 0 0 56px 28px; position: relative; }
@media (max-width: 820px) { .tl-entry { padding-left: 0; } }
.tl-entry::before {
  content: ""; position: absolute; left: -5px; top: 8px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: var(--accent-glow);
}
@media (max-width: 820px) { .tl-entry::before { display: none; } }
.tl-entry:last-child { padding-bottom: 0; }

.tl-row { display: grid; grid-template-columns: 220px 1fr; gap: 0; align-items: start; }
@media (max-width: 820px) { .tl-row { grid-template-columns: 1fr; } }

.tl-entry h3 {
  font-family: var(--font-display); font-size: 22px; font-weight: 500;
  margin-bottom: 2px;
}
.tl-entry .role {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent); letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.tl-entry ul { list-style: none; padding: 0; display: grid; gap: 6px; color: var(--fg-dim); font-size: 14.5px; }
.tl-entry ul li { padding-left: 18px; position: relative; }
.tl-entry ul li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: 8px; height: 1px; background: var(--accent);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-lead {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.contact-lead em { color: var(--accent); font-style: italic; }

.contact-meta {
  margin-top: 32px;
  display: grid; gap: 12px;
  font-family: var(--font-mono); font-size: 13px;
}
.contact-meta .row {
  display: grid; grid-template-columns: 100px 1fr;
  border-bottom: 1px dashed var(--line);
  padding: 10px 0;
}
.contact-meta .row .k { color: var(--fg-meta); text-transform: uppercase; font-size: 11px; letter-spacing: 0.08em; }
.contact-meta .row .v { color: var(--fg); }
.contact-meta .row .v a:hover { color: var(--accent); }

.form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid; gap: 14px;
}
.form label {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--fg-meta); letter-spacing: 0.08em; text-transform: uppercase;
}
.form input, .form textarea, .form select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--fg);
  padding: 12px 14px;
  font: inherit;
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
  font-family: var(--font-mono); font-size: 13px;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}
.form textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form .sent {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--accent);
  padding: 10px 0 0;
  opacity: 0;
  transition: opacity .3s, color .2s;
}
.form.sent .sent { opacity: 1; }
.form.sent.error .sent { color: var(--danger); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 80px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--fg-meta);
}
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  color: var(--fg-dim);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  transition: all .2s;
  flex-shrink: 0;
}
.footer-socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--accent-glow);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal.delay-1 { transition-delay: 0.06s; }
.reveal.delay-2 { transition-delay: 0.12s; }
.reveal.delay-3 { transition-delay: 0.18s; }

/* ---------- Tweaks panel ---------- */
.tweaks-trigger {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 99;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--fg-dim);
  font-family: var(--font-mono); font-size: 11px;
  line-height: 1;
  letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transition: all .2s ease;
}
.tweaks-trigger:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--accent-glow);
  transform: translateY(-1px);
}
.tweaks-trigger .tw-icon {
  display: block;
  color: var(--accent);
  flex-shrink: 0;
}
.tweaks-trigger .tw-label {
  display: inline-block;
  line-height: 1;
  transform: translateY(0.5px); /* optical alignment s SVG gear */
}
.tweaks-trigger.hidden { opacity: 0; pointer-events: none; transform: translateY(10px); }

.tweaks-close {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 1px solid var(--line-2);
  color: var(--fg-dim);
  font-size: 16px; line-height: 1;
  border-radius: 4px;
  transition: all .15s ease;
}
.tweaks-close:hover { border-color: var(--accent); color: var(--accent); }

.tweaks {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 100;
  background: var(--bg-card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 16px;
  width: 240px;
  font-family: var(--font-mono);
  font-size: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  display: none;
}
.tweaks.open { display: grid; gap: 14px; }
.tweaks h4 {
  font-size: 11px; color: var(--accent);
  letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; justify-content: space-between; align-items: center;
}
.tweak-row { display: grid; gap: 6px; }
.tweak-row label { color: var(--fg-meta); text-transform: uppercase; font-size: 10px; letter-spacing: 0.08em; }
.tweak-toggle {
  display: flex; gap: 6px;
}
.tweak-toggle button {
  flex: 1;
  padding: 6px 8px;
  border: 1px solid var(--line-2);
  color: var(--fg-dim);
  font-size: 11px;
}
.tweak-toggle button.on { border-color: var(--accent); color: var(--accent); background: color-mix(in oklch, var(--accent) 10%, transparent); }

.swatches { display: flex; gap: 6px; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line-2);
}
.swatch.on { outline: 2px solid var(--fg); outline-offset: 2px; }
