/* Shared design tokens */
:root {
  color-scheme:dark;
  --bg:#0b1422;
  --surface:#101d2e;
  --text:#edf3f9;
  --muted:#a7b7c9;
  --accent:#79ded2;
  --line:#29394b
}
* {
  box-sizing:border-box
}
html {
  scroll-behavior:smooth;
  scroll-padding-top:110px
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:16px/1.7 'Segoe UI',Arial,sans-serif
}
a {
  color:inherit;
  text-decoration:none
}
button {
  font:inherit
}
a:focus-visible,button:focus-visible,summary:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:5px
}
::selection {
  background:var(--accent);
  color:var(--bg)
}
h1,h2,h3,h4,p {
  margin-top:0
}
h1,h2,h3,h4 {
  line-height:1.18
}
p {
  margin-bottom:18px;
  color:var(--muted)
}
.container {
  width:min(1180px,calc(100% - 80px));
  margin-inline:auto
}
.skip {
  position:fixed;
  top:-100px;
  left:20px;
  background:var(--accent);
  color:var(--bg);
  padding:10px 20px;
  z-index:100
}
.skip:focus {
  top:15px
}
/* Navigation */
header {
  position:sticky;
  top:0;
  z-index:50;
  background:#0b1422f5;
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--line)
}
.navigation {
  min-height:90px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:24px
}
.brand {
  display:flex;
  align-items:center;
  gap:14px;
  font-size:15px;
  font-weight:650
}
.brand b {
  font-size:29px;
  letter-spacing:-.09em
}
.brand b span {
  color:var(--accent)
}
.brand small {
  display:block;
  font-size:9px;
  letter-spacing:.15em;
  font-weight:500;
  color:var(--muted);
  margin-top:4px
}
#nav-links {
  display:flex;
  align-items:center;
  gap:27px;
  color:var(--muted);
  font-size:13px
}
#nav-links a:hover,#nav-links a.active {
  color:var(--accent)
}
.nav-contact {
  border:1px solid #49626a;
  border-radius:4px;
  padding:9px 16px;
  color:var(--text)
}
#menu {
  background:var(--surface);
  color:var(--text);
  border:1px solid var(--line);
  padding:8px 13px;
  border-radius:4px;
  cursor:pointer
}
/* Opening section */
.hero {
  display:grid;
  grid-template-columns:1.35fr 1fr;
  gap:70px;
  align-items:center;
  padding-block:88px 72px
}
.eyebrow {
  color:var(--accent);
  font-size:11px;
  font-weight:650;
  letter-spacing:.15em;
  text-transform:uppercase;
  margin-bottom:22px
}
h1 {
  font-size:clamp(60px,6.6vw,94px);
  font-weight:650;
  line-height:1.02;
  letter-spacing:-.055em;
  margin-bottom:26px
}
h1 span {
  color:var(--accent)
}
.degree {
  font-size:19px;
  color:var(--text);
  font-weight:550;
  margin-bottom:10px
}
.specialty {
  font-size:12px;
  color:var(--accent);
  line-height:1.8;
  margin-bottom:23px
}
.intro {
  font-size:15px;
  max-width:570px
}
.actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:16px 20px;
  margin-top:30px;
  font-size:13px
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 19px;
  border:1px solid #3b4d60;
  border-radius:4px;
  font-weight:650;
  transition:background .15s
}
.button:hover {
  background:#1c3144
}
.primary {
  background:var(--accent);
  color:#0a2025;
  border-color:var(--accent)
}
.primary:hover {
  background:#a3efe5
}
.actions>a:not(.button):hover {
  color:var(--accent)
}
.location {
  font-size:11px;
  margin:30px 0 0
}
.engineering-panel {
  border:1px solid #30465a;
  border-radius:8px;
  overflow:hidden;
  background:linear-gradient(135deg,#142b3b,#101d2e)
}
.panel-label {
  padding:20px 24px;
  font:10px Consolas,monospace;
  color:var(--muted);
  letter-spacing:.07em;
  display:flex;
  justify-content:space-between
}
.panel-label span {
  color:var(--accent)
}
.engineering-panel svg {
  display:block;
  width:100%;
  height:auto
}
.panel-bottom {
  padding:25px 28px 28px;
  border-top:1px solid #30465a
}
.panel-bottom small,.roles>small {
  font-size:10px;
  letter-spacing:.13em;
  color:var(--muted)
}
.panel-bottom p {
  font-size:25px;
  color:var(--text);
  line-height:1.35;
  margin:12px 0 22px
}
.tags {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  list-style:none;
  padding:0;
  margin:22px 0 0
}
.tags span,.tags li {
  border:1px solid #324759;
  padding:4px 10px;
  border-radius:3px;
  color:#c2d1df;
  font-size:11px
}
.focus-strip {
  background:#0e1929;
  border-block:1px solid var(--line)
}
.focus-strip>.container {
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:18px;
  padding-block:23px
}
.focus-strip small {
  font-size:9px;
  letter-spacing:.16em;
  color:var(--accent)
}
.focus-strip span {
  font-size:13px;
  color:#bccbd9
}
/* Sections and cards */
.section {
  padding-block:94px
}
.tint {
  background:#0e1929;
  border-block:1px solid #1e2c3e
}
h2 {
  font-size:clamp(30px,3.1vw,44px);
  letter-spacing:-.035em;
  font-weight:600;
  margin-bottom:40px
}
.section>.eyebrow,.section>.container>.eyebrow {
  margin-bottom:15px
}
.profile-grid {
  display:grid;
  grid-template-columns:1.5fr 1fr;
  gap:75px;
  align-items:start
}
.profile-grid p {
  font-size:15px
}
.profile-grid .lead {
  font-size:20px;
  line-height:1.55;
  color:var(--text)
}
.card {
  background:var(--surface);
  border:1px solid var(--line);
  padding:30px;
  border-radius:6px;
  min-width:0
}
.roles ul {
  list-style:none;
  padding:0;
  margin:18px 0 25px
}
.roles li {
  padding-block:9px;
  border-bottom:1px solid var(--line);
  font-size:15px
}
.roles li:last-child {
  border:0
}
.roles p {
  font-size:12px;
  border-top:1px solid var(--line);
  padding-top:18px;
  margin-bottom:0
}
.cards {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:22px
}
.card p {
  font-size:14px
}
.number {
  display:block;
  color:var(--accent);
  font:12px Consolas,monospace;
  margin-bottom:22px
}
h3 {
  font-size:21px;
  font-weight:600;
  letter-spacing:-.02em;
  margin-bottom:15px
}
.skills .card>p {
  font-size:13px
}
.split {
  display:grid;
  grid-template-columns:1fr 1.15fr;
  gap:90px
}
.section-intro {
  font-size:15px;
  max-width:480px;
  margin-top:-16px;
  margin-bottom:28px
}
.process {
  list-style:none;
  padding:0;
  margin:0
}
.process li {
  display:flex;
  gap:23px;
  padding:23px 0;
  border-bottom:1px solid var(--line)
}
.process li:first-child {
  padding-top:0
}
.process li>span {
  color:var(--accent);
  font:12px Consolas,monospace;
  padding-top:4px
}
.process h3 {
  font-size:17px;
  margin-bottom:9px
}
.process p {
  font-size:13px;
  margin:0
}
.featured {
  display:grid;
  grid-template-columns:.9fr 1.25fr;
  padding:0;
  overflow:hidden;
  margin-bottom:22px
}
.project-visual {
  padding:34px 24px;
  background:linear-gradient(145deg,#182f42,#0f2032);
  display:flex;
  flex-direction:column;
  justify-content:center
}
.project-visual small {
  color:var(--accent);
  font:10px Consolas,monospace;
  letter-spacing:.1em
}
.project-visual small:last-child {
  color:var(--muted);
  font-size:9px
}
.project-visual svg {
  width:100%;
  height:auto;
  margin-block:30px
}
.project-content {
  padding:32px
}
.project-content h3 {
  font-size:27px
}
.card .eyebrow {
  font-size:10px;
  color:var(--accent)
}
.note {
  font-size:12px!important;
  border-left:2px solid #436273;
  padding-left:13px
}
details {
  margin-top:24px;
  font-size:12px
}
summary {
  color:var(--accent);
  cursor:pointer;
  width:fit-content
}
details p {
  margin:12px 0 0;
  font-size:12px!important
}
/* Education, languages and contact */
.career-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:75px
}
.column-title {
  font-size:18px;
  border-bottom:1px solid var(--line);
  padding-bottom:18px;
  margin-bottom:30px
}
.timeline {
  margin-left:5px;
  border-left:1px solid #385164
}
.timeline article {
  padding:0 0 35px 27px;
  position:relative
}
.timeline article:last-child {
  padding-bottom:0
}
.timeline article::before {
  content:'';
  position:absolute;
  width:7px;
  height:7px;
  border:4px solid var(--bg);
  background:var(--accent);
  box-sizing:content-box;
  left:-8px;
  top:1px;
  border-radius:50%
}
.date {
  color:var(--accent);
  font:11px Consolas,monospace;
  letter-spacing:.06em
}
h4 {
  font-size:20px;
  font-weight:600;
  margin:12px 0 9px
}
.timeline p {
  font-size:13px;
  margin-bottom:8px
}
.timeline .subtitle {
  color:#cfdae4
}
.timeline ul {
  padding-left:17px;
  font-size:13px;
  color:var(--muted)
}
.timeline li {
  margin-bottom:7px
}
.training {
  display:grid;
  grid-template-columns:1fr 1.2fr;
  gap:40px;
  margin-top:65px
}
.training h3 {
  margin-bottom:0
}
.training ul {
  list-style:none;
  padding:0;
  margin:0;
  font-size:13px
}
.training li {
  padding:11px 0;
  border-bottom:1px solid var(--line)
}
.training li:first-child {
  padding-top:0
}
.training li:last-child {
  border:0;
  padding-bottom:0
}
.languages>div {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  border-bottom:1px solid var(--line);
  padding:15px 0
}
.languages>div:first-child {
  padding-top:0
}
.languages h3 {
  font-size:17px;
  margin:0
}
.languages span {
  font-size:13px;
  color:var(--muted);
  text-align:right
}
.languages p {
  font-size:13px;
  line-height:1.9;
  margin:25px 0 0
}
.placeholder-note {
  font-size:12px;
  color:var(--accent)
}
.contact-list {
  border-top:1px solid var(--line)
}
.contact-list>div {
  padding:20px 0;
  border-bottom:1px solid var(--line);
  overflow-wrap:anywhere
}
.contact-list span {
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-bottom:6px
}
.contact-list strong {
  font-size:15px;
  font-weight:500
}
.contact-list small {
  display:block;
  margin-top:7px;
  font-size:11px;
  color:var(--muted)
}
footer {
  border-top:1px solid var(--line);
  padding:30px 0
}
.footer-inner {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:25px
}
.footer-inner>p {
  font-size:11px;
  margin:0
}
.footer-inner>a:last-child {
  font-size:13px
}
.footer-inner>a:last-child:hover {
  color:var(--accent)
}
/* Responsive layout and accessible motion */
@media(max-width:1050px) {
  #nav-links {
    gap:17px
  }
  .hero {
    gap:32px
  }
  .actions {
    gap:12px
  }
  .profile-grid,.career-grid {
    gap:40px
  }
  .split {
    gap:45px
  }
}
@media(max-width:800px) {
  .container {
    width:calc(100% - 40px)
  }
  .navigation {
    min-height:78px;
    flex-wrap:wrap;
    gap:0;
    padding-block:14px
  }
  .brand {
    font-size:13px
  }
  .brand small {
    font-size:8px
  }
  #nav-links {
    width:100%;
    flex-wrap:wrap;
    padding-top:18px;
    gap:12px 22px
  }
  .js #nav-links {
    display:none
  }
  .js #nav-links.open {
    display:flex
  }
  .hero {
    grid-template-columns:1fr;
    padding-block:55px;
    gap:40px
  }
  h1 {
    font-size:clamp(60px,11vw,84px)
  }
  .engineering-panel {
    max-width:560px;
    width:100%
  }
  .engineering-panel svg {
    max-height:280px
  }
  .focus-strip>.container {
    justify-content:flex-start;
    gap:10px 20px
  }
  .focus-strip small {
    width:100%
  }
  .section {
    padding-block:64px
  }
  .profile-grid,.split,.career-grid,.training {
    grid-template-columns:1fr;
    gap:35px
  }
  .featured {
    grid-template-columns:1fr
  }
  .project-visual {
    padding:25px
  }
  .project-visual svg {
    max-height:190px;
    margin-block:18px
  }
  .footer-inner {
    flex-wrap:wrap
  }
  .footer-inner .brand {
    width:100%
  }
}
@media(min-width:801px) {
  #menu {
    display:none
  }
}
@media(max-width:540px) {
  .cards {
    grid-template-columns:1fr
  }
  .card,.project-content {
    padding:25px
  }
  .featured {
    padding:0
  }
  .degree {
    font-size:17px
  }
  .intro {
    font-size:14px
  }
  .actions .button {
    flex-grow:1
  }
  .actions>a:not(.button) {
    padding-block:6px;
    margin-right:12px
  }
  .location {
    line-height:1.9
  }
  h2 {
    margin-bottom:30px
  }
  .languages>div {
    align-items:flex-start
  }
  .languages span {
    max-width:190px
  }
  .project-content h3 {
    font-size:24px
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  * {
    transition:none!important
  }
}
@media print {
  :root {
    --bg:white;
    --text:#172330;
    --muted:#43515f;
    --accent:#14695f;
    --line:#ccd3d8;
    --surface:white
  }
  header,.actions,.engineering-panel,.focus-strip,.project-visual,.skip {
    display:none
  }
  .container {
    width:100%
  }
  .hero,.section {
    padding-block:20px
  }
  .tint {
    background:white
  }
  .hero,.featured {
    display:block
  }
  h1 {
    font-size:38pt
  }
  h2 {
    font-size:22pt
  }
  .card,.timeline article {
    break-inside:avoid
  }
  .tags li,.tags span,.timeline .subtitle {
    color:#43515f
  }
  .training {
    margin-top:25px
  }
}
/* Premium refinement: preserves the original navy and cyan visual identity. */
:root {
  --accent-soft: #9be9df;
  --radius: 12px;
}
body {
  background: radial-gradient(ellipse at 90% 0%, #16354755, transparent 32%), var(--bg);
}
section {
  scroll-margin-top: 16px;
}
.hero {
  padding-block: 100px 82px;
  position: relative;
}
.hero-position {
  font-size: clamp(21px, 2.2vw, 29px);
  line-height: 1.4;
  color: var(--text);
  letter-spacing: -.025em;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(62px, 7vw, 100px);
}
.hero .eyebrow {
  letter-spacing: .13em;
}
.intro {
  line-height: 1.85;
}
.button {
  min-height: 48px;
  gap: 14px;
  border-radius: 7px;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.button:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.primary {
  box-shadow: 0 6px 26px #79ded216;
}
.primary:hover {
  box-shadow: 0 8px 32px #79ded22b;
}
#nav-links a {
  position: relative;
  transition: color .2s, background .2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
#nav-links a:not(.nav-contact)::after {
  content: '';
  position: absolute;
  height: 2px;
  background: var(--accent);
  bottom: 0;
  left: 0;
  right: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s;
}
#nav-links a.active::after, #nav-links a:hover::after {
  transform: scaleX(1);
}
header.scrolled {
  box-shadow: 0 8px 30px #0003;
}
#menu {
  min-height: 44px;
  transition: background .2s;
}
#menu[aria-expanded='true'] {
  background: #19384b;
  border-color: var(--accent);
}
.engineering-panel {
  border-radius: 16px;
  box-shadow: 0 26px 70px #0003;
}
.panel-bottom {
  background: #0c1a29aa;
}
.card {
  border-radius: var(--radius);
  background: linear-gradient(135deg, #142439, #101d2e);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.card:hover {
  border-color: #4a707b;
  box-shadow: 0 14px 36px #0002;
  transform: translateY(-3px);
}
.roles, .featured {
  transform: none !important;
}
.skills {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.skills h3 {
  font-size: 22px;
  line-height: 1.35;
}
.skills .card {
  padding: 28px;
}
.skills .tags {
  gap: 9px;
}
.tags li, .tags span {
  background: #0b142244;
  line-height: 1.65;
}
.number {
  color: var(--accent);
  letter-spacing: .08em;
}
.project-method {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 8px;
}
.project-method h4 {
  font-size: 13px;
  color: var(--accent-soft);
  letter-spacing: .03em;
  margin-top: 20px;
}
.project-method p {
  font-size: 13px;
}
.featured {
  grid-template-columns: .8fr 1.3fr;
}
.project-visual {
  position: relative;
  background: radial-gradient(ellipse at center, #21445966, transparent 70%), #112334;
}
.project-secondary {
  grid-template-columns: 1fr;
}
.project-secondary .card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 45px;
}
.project-secondary .eyebrow, .project-secondary h3 {
  grid-column: 1;
}
.project-secondary > .card > p:not(.eyebrow) {
  grid-column: 1;
}
.project-secondary details {
  grid-column: 2;
  grid-row: 2 / span 2;
  align-self: start;
  margin-top: 0;
  border-left: 1px solid var(--line);
  padding-left: 30px;
}
.project-secondary .tags {
  grid-column: 1 / -1;
}
summary {
  padding-block: 8px;
  min-height: 40px;
}
summary:hover {
  color: #b8fff3;
}
details[open] summary {
  margin-bottom: 8px;
}
.training-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.training-grid .card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.training-grid h3 {
  font-size: 21px;
}
.qualification {
  margin-top: auto;
  display: inline-block;
  color: var(--accent-soft);
  background: #79ded20a;
  border: 1px solid #38575f;
  padding: 5px 9px;
  font-size: 10px;
  border-radius: 4px;
}
.qualification-note {
  font-size: 12px;
  max-width: 850px;
  margin: 22px 0 0;
  line-height: 1.8;
}
.contact-card {
  border: 1px solid #3a5a66;
  border-radius: var(--radius);
  background: linear-gradient(140deg, #173141, #101d2e);
  padding: 32px;
}
.email-link {
  display: block;
  font-size: clamp(16px, 1.7vw, 22px);
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  line-height: 1.6;
  margin-bottom: 24px;
}
.email-link:hover {
  color: var(--accent);
}
.email-link span {
  color: var(--accent);
}
.contact-card p {
  font-size: 13px;
}
.contact-focus {
  border-top: 1px solid #385064;
  padding-top: 22px;
  margin-top: 24px;
}
.contact-focus small {
  font-size: 10px;
  color: var(--accent);
  letter-spacing: .13em;
}
.contact-focus p {
  margin: 12px 0 0;
  line-height: 1.9;
}
#kontakt .section-intro {
  line-height: 1.85;
}
.back-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  z-index: 40;
  background: #152a3bf5;
  color: var(--accent);
  border: 1px solid #496877;
  border-radius: 50%;
  box-shadow: 0 8px 25px #0004;
}
.back-top[hidden] {
  display: none;
}
.back-top:hover {
  background: #244559;
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media(max-width:1050px) {
  .skills {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .skills .card:last-child {
    grid-column: 1 / -1;
  }
  .training-grid {
    gap: 16px;
  }
  .training-grid .card {
    padding: 23px;
  }
}
@media(max-width:800px) {
  .hero {
    padding-block: 60px;
  }
  .hero h1 {
    font-size: clamp(62px, 11vw, 86px);
  }
  .skills .card:last-child {
    grid-column: auto;
  }
  .skills, .training-grid {
    grid-template-columns: 1fr;
  }
  .featured {
    grid-template-columns: 1fr;
  }
  .project-secondary .card {
    display: block;
  }
  .project-secondary details {
    margin-top: 20px;
    padding-left: 0;
    border: 0;
  }
  #nav-links {
    padding-block: 12px 4px;
  }
  #nav-links a {
    padding-inline: 8px;
  }
  .navigation {
    position: relative;
  }
  .contact-card {
    padding: 28px;
  }
}
@media(max-width:420px) {
  .hero h1 {
    font-size: 60px;
  }
  .back-top {
    bottom: 18px;
    right: 18px;
  }
  .hero-position {
    font-size: 22px;
  }
  .contact-card {
    padding: 24px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
  .button:hover, .card:hover {
    transform: none;
  }
}
@media print {
  body, .card, .contact-card {
    background: white;
    box-shadow: none;
  }
  .back-top {
    display: none!important;
  }
  .reveal {
    opacity: 1!important;
    transform: none!important;
  }
  .project-method h4, .qualification, .contact-focus small {
    color: #14695f;
  }
  .qualification {
    background: white;
  }
  .contact-card {
    padding: 18px;
  }
  .training-grid {
    display: block;
  }
  .training-grid .card {
    margin-bottom: 15px;
  }
  .skills {
    grid-template-columns: 1fr 1fr;
  }
  .project-method p, .contact-card p {
    font-size: 10pt;
  }
  .hero-position {
    color: #172330;
  }
}

/* Separate academic and professional sections */
.academic-grid, .experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.academic-grid article, .experience-grid article {
  padding: 30px;
  border: 1px solid var(--line);
  border-left: 2px solid #4c918f;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(135deg, #122236, #0e1929);
}
.academic-grid p, .experience-grid p, .experience-grid li {
  font-size: 13px;
}
.experience-grid ul { color: var(--muted); padding-left: 18px; }
.experience-grid li { margin-bottom: 10px; }
@media(max-width:800px) {
  .academic-grid, .experience-grid { grid-template-columns: 1fr; }
  .academic-grid article, .experience-grid article { padding: 25px; }
}
@media print {
  .academic-grid article, .experience-grid article { background: white; break-inside: avoid; }
}

/* Authentic portrait: the copied image pixels and proportions are unchanged. */
.portrait-panel {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 440px;
  justify-self: end;
  overflow: hidden;
  background: #000;
  border: 1px solid #3a5665;
  border-radius: 16px;
  box-shadow: 0 26px 70px #0004;
}
.portrait-panel img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
}
.portrait-panel figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 52px 26px 24px;
  background: linear-gradient(transparent, #050c15eb);
}
.portrait-panel figcaption span {
  display: block;
  color: var(--text);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 5px;
}
.portrait-panel figcaption small {
  color: #c4d2de;
  font-size: 11px;
}
.resume-download {
  margin-top: 26px;
}
.resume-download .button {
  font-size: 13px;
  background: #0b142244;
  border-color: #587580;
}
.resume-download small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
}
@media (max-width: 800px) {
  .portrait-panel { justify-self: center; max-width: 380px; }
}
@media (max-width: 420px) {
  .portrait-panel figcaption { padding: 44px 20px 20px; }
  .resume-download .button { width: 100%; padding-inline: 12px; }
}
@media print {
  .portrait-panel { width: 135px; margin-top: 20px; box-shadow: none; }
  .portrait-panel figcaption, .resume-download { display: none; }
}

/* Practical frontend project, using the portfolio's existing visual language. */
.skills { grid-template-columns: repeat(2,minmax(0,1fr)); }
.skills .card:last-child { grid-column: auto; }
.frontend-link { display:inline-flex; gap:12px; margin-top:18px; color:var(--accent); font-size:13px; }
.frontend-link:hover { text-decoration:underline; text-underline-offset:5px; }
.web-project { margin-top:64px; padding-top:48px; border-top:1px solid var(--line); scroll-margin-top:110px; }
.web-project > h3 { font-size:clamp(28px,4vw,40px); margin:12px 0 22px; }
.web-statement { max-width:850px; font-size:18px; line-height:1.8; }
.web-project-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:28px; margin-top:32px; }
.web-project-card { min-width:0; transition:border-color .25s ease,box-shadow .25s ease; }
.web-project-card:hover { border-color:#4c918f; box-shadow:0 18px 45px #0003; }
.web-project-card h4 { font-size:23px; line-height:1.4; margin:18px 0; }
.web-preview { padding:22px; margin-bottom:28px; border:1px solid var(--line); border-radius:10px; background:linear-gradient(135deg,#142a3e,#0b1422); }
.preview-bar { display:flex; gap:16px; align-items:center; color:var(--accent); font-weight:700; }
.preview-bar > span,.preview-caption { font-size:9px; letter-spacing:.12em; color:var(--muted); }
.preview-layout { display:grid; grid-template-columns:1.2fr 1fr; align-items:center; gap:24px; margin:28px 0; }
.preview-line { display:block; width:85%; height:10px; border-radius:3px; background:#c4d2de; margin:12px 0; }
.preview-line.accent { background:var(--accent); width:70%; }
.preview-line.short { height:5px; width:90%; background:#587580; }
.preview-button { display:block; width:65px; height:20px; border-radius:4px; background:var(--accent); margin-top:20px; }
.preview-panel { display:grid; place-items:center; min-height:110px; border:1px solid #3a5665; border-radius:8px; color:var(--accent); font:32px monospace; background:#0b1422; }
.web-features { list-style:none; padding:0; margin:24px 0; }
.web-features li { border-top:1px solid var(--line); padding:18px 0; }
.web-features strong { display:block; font-size:14px; color:var(--text); margin-bottom:7px; }
.web-features span { color:var(--muted); font-size:13px; line-height:1.8; }
@media(max-width:800px) { .skills,.web-project-grid { grid-template-columns:1fr; } .web-project { margin-top:40px; padding-top:32px; } .web-statement { font-size:16px; } }
@media(prefers-reduced-motion:reduce) { .web-project-card { transition:none; transform:none; } }
@media print { .web-preview { display:none; } .web-project-grid { grid-template-columns:1fr; } .web-project-card { break-inside:avoid; } }
