:root {
  --night: #08111f;
  --night-2: #0d1929;
  --panel: #111f31;
  --white: #f4f7f8;
  --muted: #92a2b3;
  --cyan: #63e6ff;
  --cyan-soft: rgba(99, 230, 255, 0.12);
  --yellow: #f5d061;
  --line: rgba(174, 202, 218, 0.2);
  --rail: 17rem;
  --page-pad: clamp(1.3rem, 4.5vw, 5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body {
  margin: 0;
  color: var(--white);
  background: var(--night);
  font-family: "Manrope", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  z-index: 999;
  inset: 0;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: soft-light;
}
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.sr-only,
.skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus { position: fixed; z-index: 100; top: 1rem; left: 1rem; padding: .75rem 1rem; color: var(--night); background: var(--cyan); }

.rail {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  padding: 2rem 1.6rem;
  border-right: 1px solid var(--line);
  background: rgba(8, 17, 31, .94);
  backdrop-filter: blur(12px);
}

.rail-brand { display: flex; align-items: center; gap: .85rem; }
.rail-brand > span,
.mobile-brand span {
  display: grid; place-items: center; width: 2.7rem; aspect-ratio: 1;
  border: 1px solid var(--cyan); color: var(--cyan);
  font-family: "DM Mono", monospace; font-size: .75rem;
}
.rail-brand strong { font-size: .84rem; line-height: 1.25; letter-spacing: .04em; text-transform: uppercase; }

.rail-nav { display: grid; margin: auto 0; }
.rail-nav a {
  display: grid; grid-template-columns: 2.4rem 1fr; gap: .45rem;
  padding: .8rem 0; border-bottom: 1px solid var(--line);
  color: #ccd6dc; font-size: .82rem; font-weight: 600;
  transition: color 160ms ease, padding-left 160ms ease;
}
.rail-nav a:first-child { border-top: 1px solid var(--line); }
.rail-nav a span { color: var(--cyan); font-family: "DM Mono", monospace; font-size: .65rem; font-weight: 400; }
.rail-nav a:hover { padding-left: .45rem; color: var(--cyan); }

.rail-contact { display: grid; gap: .35rem; margin-bottom: 2rem; }
.rail-contact p { margin: 0 0 .35rem; color: var(--muted); font-family: "DM Mono", monospace; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.rail-contact a { width: fit-content; color: #d9e1e6; font-size: .72rem; border-bottom: 1px solid transparent; }
.rail-contact a:hover { color: var(--cyan); border-color: currentColor; }

.rail-status { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-family: "DM Mono", monospace; font-size: .58rem; text-transform: uppercase; }
.rail-status i { width: .5rem; aspect-ratio: 1; border-radius: 50%; background: #54dc91; box-shadow: 0 0 0 5px rgba(84,220,145,.1); }

.mobile-header { display: none; }
.page { margin-left: var(--rail); overflow: hidden; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(25rem, .95fr) minmax(30rem, 1.05fr);
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 3rem;
  padding: clamp(5rem, 9vh, 8rem) var(--page-pad) 2rem;
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(99,230,255,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(99,230,255,.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom right, black, transparent 75%);
}
.hero-copy { position: relative; z-index: 2; }
.code-label { margin: 0 0 1.2rem; color: var(--cyan); font-family: "DM Mono", monospace; font-size: .68rem; letter-spacing: .12em; }
.hero h1 { margin: 0; font-size: clamp(4.5rem, 8vw, 9rem); line-height: .77; letter-spacing: -.08em; text-transform: uppercase; }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: transparent; -webkit-text-stroke: 1px var(--cyan); }

.role-line { display: flex; align-items: center; gap: 1rem; margin: 2.3rem 0 1.5rem; }
.role-line strong { padding: .5rem .7rem; color: var(--night); background: var(--cyan); font-family: "DM Mono", monospace; font-size: .67rem; letter-spacing: .08em; }
.role-line span { color: var(--muted); font-family: "DM Mono", monospace; font-size: .7rem; }
.hero-lead { max-width: 39rem; margin: 0; color: #bfccd4; font-size: clamp(1rem, 1.5vw, 1.22rem); }
.hero-links { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 2.2rem; }
.hero-links a,
.hero-links button { padding: .55rem 0; border: 0; border-bottom: 1px solid currentColor; color: var(--white); background: none; cursor: pointer; font-family: "DM Mono", monospace; font-size: .7rem; text-transform: uppercase; }
.hero-links span { margin-left: .6rem; color: var(--cyan); }

.system-map { position: relative; z-index: 2; width: 100%; min-height: 34rem; border: 1px solid var(--line); background: rgba(13,25,41,.55); }
.system-map::before,
.system-map::after { content: ""; position: absolute; width: 1.2rem; height: 1.2rem; border-color: var(--cyan); }
.system-map::before { top: -.25rem; left: -.25rem; border-top: 2px solid; border-left: 2px solid; }
.system-map::after { right: -.25rem; bottom: -.25rem; border-right: 2px solid; border-bottom: 2px solid; }
.map-caption { position: absolute; top: 1rem; left: 1rem; color: var(--muted); font-family: "DM Mono", monospace; font-size: .58rem; letter-spacing: .12em; }
.map-portrait { position: absolute; z-index: 1; left: 6%; top: 12%; width: 42%; height: 70%; margin: 0; border: 1px solid rgba(99,230,255,.45); overflow: hidden; background: var(--night); }
.map-portrait::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(99,230,255,.08) 1px, transparent 1px); background-size: 100% 5px; mix-blend-mode: screen; }
.map-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; opacity: .78; filter: grayscale(1) contrast(1.08) brightness(.82); }
.map-portrait figcaption { position: absolute; z-index: 2; inset: auto .7rem .6rem; color: var(--cyan); font-family: "DM Mono", monospace; font-size: .48rem; letter-spacing: .09em; }
.map-line { position: absolute; height: 1px; background: var(--line); transform-origin: left; }
.line-a { top: 57%; left: 38%; width: 45%; transform: rotate(-32deg); }
.line-b { top: 57%; left: 38%; width: 46%; transform: rotate(24deg); }
.line-c { top: 57%; left: 38%; width: 43%; transform: rotate(3deg); }

.map-node {
  position: absolute; z-index: 2; width: 7.5rem; min-height: 4.6rem;
  display: flex; flex-direction: column; justify-content: center;
  padding: .8rem; border: 1px solid var(--line); background: var(--night-2);
  box-shadow: 7px 7px 0 rgba(0,0,0,.25);
}
.map-node small { color: var(--muted); font-family: "DM Mono", monospace; font-size: .5rem; letter-spacing: .1em; }
.map-node strong { margin-top: .25rem; font-family: "DM Mono", monospace; font-size: .82rem; }
.map-node i { position: absolute; right: .6rem; top: .6rem; width: .4rem; aspect-ratio: 1; background: var(--cyan); }
.node-core { left: 3%; bottom: 6%; width: 9rem; min-height: 6rem; border-color: var(--cyan); background: rgba(8,17,31,.9); }
.node-core strong { color: var(--cyan); font-size: 1.25rem; }
.node-vue { top: 13%; right: 10%; }
.node-php { top: 42%; right: 6%; }
.node-db { right: 15%; bottom: 10%; }
.node-linux { left: 43%; bottom: 5%; }
.map-note { position: absolute; right: 1.2rem; top: 1rem; color: var(--muted); font-family: "DM Mono", monospace; font-size: .56rem; }
.map-note b { color: var(--white); font-weight: 400; }
.map-note span { margin-left: .4rem; color: var(--yellow); }

.hero-meta { position: relative; z-index: 2; grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.hero-meta div { display: grid; gap: .25rem; padding: 1.2rem 1.4rem; border-right: 1px solid var(--line); }
.hero-meta div:first-child { padding-left: 0; }
.hero-meta div:last-child { border: 0; }
.hero-meta span { color: var(--muted); font-family: "DM Mono", monospace; font-size: .53rem; letter-spacing: .12em; }
.hero-meta strong { font-family: "DM Mono", monospace; font-size: .7rem; font-weight: 400; }

.content-section { padding: clamp(6rem, 11vw, 10rem) var(--page-pad); border-bottom: 1px solid var(--line); }
.section-intro { display: grid; grid-template-columns: 7rem 1fr; gap: clamp(1rem, 4vw, 4rem); margin-bottom: clamp(3.5rem, 7vw, 6rem); }
.section-index { margin: 0; color: transparent; font-family: "DM Mono", monospace; font-size: clamp(3rem, 6vw, 6rem); line-height: .8; -webkit-text-stroke: 1px rgba(99,230,255,.45); }
.section-intro h2 { max-width: 60rem; margin: 0; font-size: clamp(2.4rem, 5.1vw, 5.6rem); line-height: .98; letter-spacing: -.055em; }

.stack { background: #0b1625; }
.skill-matrix { border-top: 1px solid var(--line); }
.skill-matrix article { display: grid; grid-template-columns: 4rem minmax(13rem, .7fr) 1.3fr; align-items: center; gap: 2rem; padding: 1.8rem 0; border-bottom: 1px solid var(--line); }
.skill-number { color: var(--cyan); font-family: "DM Mono", monospace; font-size: .7rem; }
.skill-copy p { margin: 0 0 .25rem; color: var(--muted); font-family: "DM Mono", monospace; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; }
.skill-copy h3 { margin: 0; font-size: 1.25rem; font-weight: 600; }
.skill-matrix ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.skill-matrix li { padding: .45rem .65rem; border: 1px solid var(--line); color: #dce5e9; font-family: "DM Mono", monospace; font-size: .67rem; }
.skill-matrix li small { color: var(--muted); }
.skill-matrix .vim-item { border-color: rgba(245,208,97,.55); color: var(--yellow); }
.vim-item span { margin-left: .25rem; }

.work-history { background: var(--night); }
.jobs { border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: 5rem .8fr .7fr 1fr; align-items: start; gap: 2rem; padding: 2.5rem 0; border-bottom: 1px solid var(--line); }
.job-marker { padding-top: .2rem; }
.job-marker span { display: inline-block; padding: .35rem .45rem; border: 1px solid var(--cyan); color: var(--cyan); font-family: "DM Mono", monospace; font-size: .54rem; }
.job p { margin: 0; }
.job-company > p,
.job-role > p { margin-bottom: .6rem; color: var(--muted); font-family: "DM Mono", monospace; font-size: .56rem; letter-spacing: .1em; text-transform: uppercase; }
.job h3 { margin: 0; font-size: 1.55rem; line-height: 1.15; }
.job h4 { margin: 0; color: var(--cyan); font-family: "DM Mono", monospace; font-size: .8rem; font-weight: 400; }
.job-description { max-width: 29rem; color: #aab8c1; font-size: .9rem; }
.missing-dates { margin: 1rem 0 0; color: #647789; font-family: "DM Mono", monospace; font-size: .58rem; }

.projects { background: #dfe9ec; color: #101a25; }
.projects .code-label { color: #007d94; }
.projects .section-index { -webkit-text-stroke-color: rgba(0,125,148,.45); }
.section-note { max-width: 45rem; margin: 1.4rem 0 0; color: #596b74; font-size: .82rem; }
.project-grid { display: grid; grid-template-columns: repeat(12, 1fr); border-top: 1px solid rgba(8,17,31,.2); border-left: 1px solid rgba(8,17,31,.2); }
.case { grid-column: span 4; min-height: 26rem; display: flex; flex-direction: column; padding: 1.35rem; border-right: 1px solid rgba(8,17,31,.2); border-bottom: 1px solid rgba(8,17,31,.2); background: rgba(255,255,255,.18); transition: background 180ms ease, transform 180ms ease; }
.case:nth-child(-n+2) { grid-column: span 4; min-height: 26rem; }
.case:hover { z-index: 1; background: rgba(255,255,255,.65); transform: translateY(-.35rem); }
.case-top { display: flex; justify-content: space-between; gap: 1rem; color: #657780; font-family: "DM Mono", monospace; font-size: .52rem; letter-spacing: .07em; }
.case-top i { font-style: normal; }
.case-brand { width: 6rem; aspect-ratio: 1; display: grid; place-items: center; margin: auto 0 1.5rem; border: 1px solid #101a25; transform: rotate(-3deg); }
.case-brand strong { font-size: 2.3rem; line-height: 1; }
.case-brand small { position: absolute; translate: 0 2.3rem; font-family: "DM Mono", monospace; font-size: .43rem; }
.case-kwizda .case-brand { border-radius: 50%; transform: rotate(4deg); }
.case-wordmark { margin: auto 0 1.6rem; font-size: clamp(1.4rem, 2.3vw, 2.1rem); font-weight: 700; letter-spacing: .09em; }
.case-wordmark-lady { font-family: Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: .04em; }
.case-wordmark-austrian { color: #d04739; font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: .95; letter-spacing: -.02em; }
.case h3 { margin: 0 0 .5rem; font-size: clamp(1.45rem, 2.4vw, 2rem); letter-spacing: -.04em; }
.case > p { min-height: 4.5rem; margin: 0; color: #53666f; font-size: .83rem; }
.case ul { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.case li { padding: .34rem .5rem; border: 1px solid rgba(8,17,31,.25); font-family: "DM Mono", monospace; font-size: .54rem; }
.project-more { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid rgba(8,17,31,.2); font-family: "DM Mono", monospace; font-size: .62rem; }
.project-more span { margin-right: auto; color: #657780; text-transform: uppercase; }
.project-more a { padding-bottom: .2rem; border-bottom: 1px solid currentColor; }

.systems { background: #07131f; }
.system-board { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.system-board article { min-height: 15rem; display: flex; flex-direction: column; padding: 1.2rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(145deg, rgba(99,230,255,.045), transparent 55%); transition: background 180ms ease, transform 180ms ease; }
.system-board article:hover { z-index: 1; background: var(--cyan-soft); transform: translateY(-.35rem); }
.system-board span { color: var(--muted); font-family: "DM Mono", monospace; font-size: .52rem; letter-spacing: .08em; }
.system-board h3 { margin: auto 0 .4rem; font-size: clamp(1.2rem, 2vw, 1.75rem); letter-spacing: -.035em; }
.system-board i { color: var(--cyan); font-family: "DM Mono", monospace; font-size: .58rem; font-style: normal; }

.education { background: #e7edf0; color: #101a25; }
.education .code-label { color: #007d94; }
.education .section-index { -webkit-text-stroke-color: rgba(0,125,148,.45); }
.education-list { display: grid; grid-template-columns: 1fr; border-top: 1px solid rgba(8,17,31,.2); }
.education-list article { display: grid; grid-template-columns: 7rem 1fr; gap: 1.4rem; padding: 1.7rem; border-right: 1px solid rgba(8,17,31,.2); border-bottom: 1px solid rgba(8,17,31,.2); }
.education-list article { border-right: 0; }
.education-list .education-featured { grid-column: 1 / -1; grid-template-columns: 7rem 1fr; padding: 2.4rem 1.7rem; background: #cceff5; border-right: 0; }
.education-date { margin: .15rem 0 0; color: #007d94; font-family: "DM Mono", monospace; font-size: .62rem; }
.education-list h3 { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.education-list article div > p { margin: .35rem 0 0; color: #5f6d76; font-size: .75rem; }
.education-list article div > span { display: block; margin-bottom: .5rem; color: #007d94; font-family: "DM Mono", monospace; font-size: .57rem; letter-spacing: .1em; text-transform: uppercase; }
.education-featured h3 { font-size: clamp(1.35rem, 2.5vw, 2rem); }

.profile { background: var(--night-2); }
.profile-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(3rem, 8vw, 9rem); }
.profile-summary > p { margin: 0; color: #c2ced5; font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.55; }
.language-bars { display: grid; gap: 1.25rem; margin-top: 3rem; }
.language-bars div { display: grid; grid-template-columns: 2rem 1fr 7rem; align-items: center; gap: 1rem; }
.language-bars span,
.language-bars strong { font-family: "DM Mono", monospace; font-size: .6rem; font-weight: 400; }
.language-bars span { color: var(--cyan); }
.language-bars strong { color: var(--muted); }
.language-bars p { position: relative; height: 3px; margin: 0; background: var(--line); }
.language-bars b { position: absolute; inset: 0 auto 0 0; width: var(--level); background: var(--cyan); }

.personal-data { margin: 0; border-top: 1px solid var(--line); }
.personal-data div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.personal-data dt { color: var(--muted); font-family: "DM Mono", monospace; font-size: .57rem; letter-spacing: .08em; text-transform: uppercase; }
.personal-data dd { margin: 0; color: #d7e0e5; font-size: .84rem; }
.personal-data a { border-bottom: 1px solid var(--cyan); }

.contact { position: relative; padding: clamp(6rem, 12vw, 11rem) var(--page-pad); color: var(--night); background: var(--cyan); }
.contact::after { content: "</>"; position: absolute; right: 3vw; bottom: -2rem; color: rgba(8,17,31,.08); font-family: "DM Mono", monospace; font-size: clamp(7rem, 20vw, 20rem); line-height: 1; }
.contact > * { position: relative; z-index: 1; }
.contact-code { margin: 0 0 1rem; font-family: "DM Mono", monospace; font-size: .65rem; letter-spacing: .08em; }
.contact h2 { margin: 0; font-size: clamp(3.5rem, 8vw, 8rem); line-height: .9; letter-spacing: -.07em; }
.contact-links { display: flex; flex-wrap: wrap; gap: 1rem 3rem; margin-top: 3rem; }
.contact-links a { padding-bottom: .4rem; border-bottom: 2px solid currentColor; font-family: "DM Mono", monospace; font-size: clamp(.8rem, 1.6vw, 1.15rem); }
.contact-links span { margin-left: .5rem; }
.contact > button { margin-top: 2rem; padding: .75rem 1rem; border: 1px solid var(--night); color: var(--night); background: transparent; cursor: pointer; font-family: "DM Mono", monospace; font-size: .65rem; text-transform: uppercase; }
.contact > button:hover { color: var(--cyan); background: var(--night); }

.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1.5rem var(--page-pad); color: var(--muted); background: #050b14; font-family: "DM Mono", monospace; font-size: .56rem; letter-spacing: .08em; }
.footer p { margin: 0; }
.footer a { justify-self: end; color: var(--cyan); }

.reveal { opacity: 1; transform: translateY(1.4rem); transition: transform 650ms cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { transform: none; }

@media (max-width: 1060px) {
  :root { --rail: 14rem; }
  .hero { grid-template-columns: 1fr; }
  .system-map { min-height: 31rem; }
  .job { grid-template-columns: 4rem 1fr 1fr; }
  .job-description { grid-column: 2 / -1; }
  .system-board { grid-template-columns: repeat(3, 1fr); }
  .case { grid-column: span 6; }
  .case:nth-child(-n+2) { grid-column: span 6; }
}

@media (max-width: 780px) {
  html { scroll-padding-top: 5rem; }
  .rail { display: none; }
  .page { margin-left: 0; }
  .mobile-header {
    position: fixed; z-index: 40; inset: 0 0 auto; height: 4.5rem;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 var(--page-pad); border-bottom: 1px solid var(--line);
    background: rgba(8,17,31,.92); backdrop-filter: blur(14px);
  }
  .mobile-brand { display: flex; align-items: center; gap: .7rem; font-family: "DM Mono", monospace; font-size: .7rem; }
  .mobile-brand span { width: 2rem; }
  .menu-toggle { display: grid; gap: .4rem; width: 2.7rem; padding: .75rem; border: 0; background: none; cursor: pointer; }
  .menu-toggle i { width: 100%; height: 1px; background: var(--cyan); transition: transform 180ms ease; }
  .menu-toggle[aria-expanded="true"] i:nth-last-child(2) { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-nav { position: absolute; inset: 100% 0 auto; display: grid; padding: 1rem var(--page-pad) 1.5rem; border-bottom: 1px solid var(--line); background: var(--night); }
  .mobile-nav[hidden] { display: none; }
  .mobile-nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); font-family: "DM Mono", monospace; font-size: .72rem; text-transform: uppercase; }
  .hero { padding-top: 8rem; }
  .section-intro { grid-template-columns: 4rem 1fr; }
  .skill-matrix article { grid-template-columns: 2rem 1fr; }
  .skill-matrix ul { grid-column: 2; }
  .profile-layout { grid-template-columns: 1fr; }
  .system-board { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .case, .case:nth-child(-n+2) { grid-column: span 1; }
}

@media (max-width: 540px) {
  .hero { grid-template-columns: minmax(0,1fr); gap: 3.5rem; padding-top: 7rem; }
  .hero h1 { font-size: clamp(3.8rem, 21vw, 6.2rem); }
  .role-line { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .system-map { min-height: 28rem; }
  .map-node { width: 6rem; min-height: 4rem; padding: .6rem; }
  .node-core { left: 5%; width: 7rem; }
  .map-portrait { left: 5%; top: 13%; width: 58%; height: 65%; }
  .node-vue { right: 5%; }
  .node-php { right: 2%; }
  .node-db { right: 6%; }
  .node-linux { left: 15%; }
  .map-note { display: none; }
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta div,
  .hero-meta div:first-child { padding: .8rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .section-intro { grid-template-columns: 1fr; }
  .section-index { font-size: 3rem; }
  .skill-matrix article { grid-template-columns: 1.5rem 1fr; gap: 1rem; }
  .job { grid-template-columns: 3rem 1fr; gap: 1rem; }
  .job-role,
  .job-description { grid-column: 2; }
  .education-list { grid-template-columns: 1fr; }
  .education-list article,
  .education-list .education-featured { grid-column: auto; grid-template-columns: 5.5rem 1fr; padding: 1.3rem 0; border-right: 0; }
  .personal-data div { grid-template-columns: 1fr; gap: .3rem; }
  .language-bars div { grid-template-columns: 2rem 1fr; }
  .language-bars strong { grid-column: 2; }
  .footer { grid-template-columns: 1fr auto; }
  .footer p:nth-child(2) { display: none; }
  .system-board { grid-template-columns: 1fr; }
  .system-board article { min-height: 10rem; }
  .project-grid { grid-template-columns: 1fr; }
  .case, .case:nth-child(-n+2) { grid-column: 1; min-height: 22rem; }
}

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

@media print {
  @page { margin: 1.2cm; }
  body { color: #111; background: white; font-size: 9pt; }
  body::before, .rail, .mobile-header, .hero-grid, .system-map, .hero-links, .contact, .footer { display: none !important; }
  .page { margin: 0; overflow: visible; }
  .hero { min-height: auto; display: block; padding: 0 0 .8cm; border-color: #aaa; }
  .hero h1 { font-size: 38pt; }
  .hero h1 span:last-child { color: #111; -webkit-text-stroke: 0; }
  .code-label, .role-line strong, .section-index, .job h4, .education-date { color: #333; }
  .role-line strong { padding: 0; background: none; }
  .hero-meta { margin-top: .6cm; border-color: #aaa; }
  .content-section { padding: .7cm 0; color: #111; background: white; border-color: #aaa; page-break-inside: avoid; }
  .section-intro { display: block; margin-bottom: .45cm; }
  .section-index { display: none; }
  .section-intro h2 { font-size: 19pt; }
  .skill-matrix article { padding: .25cm 0; border-color: #bbb; }
  .skill-matrix li { color: #111; border-color: #888; }
  .job { padding: .35cm 0; border-color: #aaa; }
  .job-description, .profile-summary > p, .personal-data dd { color: #222; }
  .education-list { border-color: #aaa; }
  .education-list article, .education-list .education-featured { padding: .3cm; border-color: #aaa; background: white; }
  .profile-layout { gap: .7cm; }
  .language-bars p { background: #ccc; }
  .language-bars b { background: #333; }
  .personal-data div { padding: .18cm 0; border-color: #aaa; }
  .reveal { transform: none; }
}
