:root {
  color-scheme: dark;
  --glass: rgba(10, 22, 38, 0.42);
  --cyan: #62f4f4;
  --line: rgba(130, 255, 255, 0.55);
  --display: "Luckiest Guy", "Trebuchet MS", sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  margin: 0;
  padding: 24px;
  min-height: 100vh;
  color: #fff;
  background: #347dad url("./assets/bliss.jpg") center center / cover fixed no-repeat;
  font: 400 14px/1.65 "Inter", Arial, sans-serif;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .72);
}
button, a { font: inherit; }
button { color: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.material-symbols-outlined {
  font-size: 24px;
  color: #fff;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  line-height: 1;
  user-select: none;
}
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 32px rgba(0, 28, 44, .23);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.site-shell {
  width: 100%;
  max-width: 1240px;
  height: calc(100dvh - 48px);
  min-height: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
}
.sidebar { min-height: 0; display: flex; flex-direction: column; gap: 16px; }
.profile { border-radius: 28px; padding: 24px; }
.profile img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center 38%; border: 1px solid rgba(255,255,255,.65); border-radius: 17px; }
.profile-greeting { display: none; }
.desktop-nav { border-radius: 28px; padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.desktop-nav h2 { margin: 0; text-align: center; }
.nav-link, .pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid rgba(210,255,255,.7); border-radius: 9999px;
  color: #fff; background: linear-gradient(180deg, rgba(101,255,255,.55), rgba(0,155,172,.55));
  box-shadow: inset 0 1px 1px rgba(255,255,255,.48), 0 4px 10px rgba(0,32,49,.16);
  text-decoration: none; cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .2s;
}
.nav-link { width: 100%; height: 48px; min-height: 48px; padding: 0 24px; font: 19px/1 var(--display); letter-spacing: .025em; }
.pill { height: 40px; min-height: 40px; padding: 0 24px 0 16px; font: 600 .875rem/1 "Inter", sans-serif; letter-spacing: .02em; }
.nav-link:hover, .pill:hover { background: linear-gradient(180deg, rgba(150,255,255,.7), rgba(0,185,194,.7)); transform: translateY(-1px); }
.nav-link[aria-current="page"] { border-color: #fff; box-shadow: inset 0 0 0 2px #fff, 0 0 14px rgba(126,255,255,.7); }
.sidebar-note { margin: auto 8px 0; padding-top: 20px; color: rgba(255,255,255,.82); font-size: 11px; line-height: 1.5; text-align: center; }
.main-pane { min-width: 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; border-radius: 28px; padding: 24px; scrollbar-color: rgba(161,255,255,.7) transparent; }
.view { width: 100%; margin: auto; }
.view-header { padding-bottom: 20px; border-bottom: 3px solid rgba(47, 234, 229, .75); margin-bottom: 24px; }
.eyebrow, .project-number { margin: 0 0 9px; color: #b6ffff; font-size: 10px; line-height: 1.3; font-weight: 700; letter-spacing: .17em; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; background: #a4ffb9; border-radius: 50%; box-shadow: 0 0 9px #a4ffb9; }
h1 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: .025em; font-size: clamp(30px, 3.5vw, 48px); line-height: 1.05; }
.desktop-nav h2, .about-copy h2, .section-heading h2, .project-copy h2, .cv-section h2 {
  font-family: "Inter", sans-serif; font-weight: 800; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3;
}
.header-subtitle { margin: 8px 0 0; color: #e4ffff; font-size: 13px; }
.about-copy p { margin: 0 0 18px; }
.about-copy h2 { margin: 0 0 10px; }
.interest-list { margin: 0; padding-left: 20px; }
.interest-list li { padding-left: 4px; margin: 0 0 12px; }
.interest-list li::marker { color: #7dffff; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 25px 0 14px; padding-top: 20px; border-top: 2px solid rgba(47,234,229,.65); }
.section-heading .eyebrow { margin-bottom: 4px; }
.section-heading h2 { margin: 0; }
.section-heading a { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; font-weight: 700; font-size: 12px; text-decoration-color: var(--cyan); text-underline-offset: 4px; }
.teaser-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.teaser { min-width: 0; overflow: hidden; padding: 16px; border: 1px solid rgba(180,255,255,.65); border-radius: 16px; background: rgba(0,48,57,.56); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.teaser:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.teaser-image { position: relative; overflow: hidden; aspect-ratio: 16/9; border-radius: 12px; background: #154d5c; }
.teaser-image img { width: 100%; height: 100%; object-fit: cover; }
.teaser-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.teaser-slide.is-visible { opacity: 1; }
.teaser-label { padding-top: 12px; }
.teaser-label span { display: block; color: #b6ffff; font-size: 9px; letter-spacing: .12em; font-weight: 700; }
.teaser-label strong { display: block; margin-top: 3px; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.project-list { display: grid; gap: 16px; }
.project-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: center; padding: 16px; border: 1px solid rgba(174,255,255,.38); border-radius: 16px; background: rgba(0,50,59,.48); }
.project-image, .gallery { overflow: hidden; position: relative; aspect-ratio: 16/10; border: 1px solid rgba(183,255,255,.7); border-radius: 17px; background: #134a5c; }
.project-image img, .gallery-image img { width: 100%; height: 100%; object-fit: cover; }
.project-copy h2 { margin: 0 0 8px; }
.project-copy p { margin: 0 0 14px; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-image { width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.expand-icon { position: absolute; right: 12px; top: 12px; padding: 6px; border-radius: 50%; background: rgba(4,40,52,.75); }
.gallery-arrow { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(4,40,52,.72); cursor: pointer; }
.gallery-arrow.previous { left: 10px; } .gallery-arrow.next { right: 10px; }
.gallery-caption { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 85px); padding: 3px 9px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(4,40,52,.78); font-size: 10px; }
.gallery-dots { position: absolute; right: 12px; bottom: 15px; display: flex; gap: 5px; }
.gallery-dots button { width: 10px; height: 10px; padding: 0; border: 1px solid white; border-radius: 50%; background: transparent; cursor: pointer; }
.gallery-dots button[aria-current="true"] { background: #fff; box-shadow: 0 0 7px #fff; }
.image-note { font-size: 11px; color: #d3fafa; }
.cv-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.cv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pill:disabled { cursor: wait; opacity: .7; transform: none; }
.pdf-status:empty { display: none; }
.pdf-status { margin: -12px 0 16px; color: #fff; font-weight: 600; }
.language-switch { display: flex; gap: 5px; align-items: center; border-radius: 999px; background: rgba(0,55,66,.65); padding: 3px; }
.language-switch button { padding: 5px 8px; border: 0; border-radius: 999px; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.language-switch button[aria-pressed="true"] { background: rgba(72,218,222,.65); }
.cv-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: start; }
.cv-column { display: grid; gap: 16px; }
.cv-section { border: 1px solid rgba(157,255,255,.4); border-radius: 16px; background: rgba(0,50,59,.48); padding: 16px; }
.cv-section h2 { margin: 0 0 10px; color: #d9ffff; }
.cv-section p { margin: 0; }
.cv-entry + .cv-entry { margin-top: 14px; }
.cv-entry h3 { margin: 0; font-size: 13px; }
.cv-entry small { display: block; color: #baffff; font-size: 11px; }
.cv-entry p { margin-top: 4px; font-size: 12px; }
.skill-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.skill-list li { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid rgba(180,255,255,.5); border-radius: 9999px; background: rgba(0,171,178,.4); font-size: .8125rem; }
.social-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.social-card { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 16px; border: 1px solid rgba(170,255,255,.55); border-radius: 16px; background: rgba(0,55,64,.55); text-decoration: none; }
a.social-card:hover { background: rgba(0,100,105,.65); }
.social-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 1px solid rgba(200,255,255,.6); border-radius: 14px; background: rgba(42,219,220,.3); }
.social-card strong, .social-card small { display: block; overflow-wrap: anywhere; }
.social-card small { color: #d4ffff; font-size: 12px; }
.social-arrow { margin-left: auto; }
.social-unavailable { opacity: .8; }
.email-card { grid-column: 1 / -1; }
.copy-button { margin-left: auto; flex-shrink: 0; }
.copy-status { min-height: 1.5em; }
.mobile-nav { display: none; }
.lightbox { width: min(900px, calc(100% - 48px)); max-height: calc(100% - 48px); padding: 24px; border-radius: 28px; color: #fff; }
.lightbox::backdrop { background: rgba(1,13,22,.75); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.lightbox img { width: 100%; max-height: 75vh; object-fit: contain; border-radius: 12px; }
.lightbox p { margin: 10px 0 0; text-align: center; }
.lightbox-close { position: absolute; z-index: 1; top: 32px; right: 32px; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid white; border-radius: 50%; background: rgba(0,40,50,.85); cursor: pointer; }
.pdf-export-holder { position: fixed; left: -10000px; top: 0; width: 210mm; min-height: 297mm; background: #fff; }
.pdf-sheet { width: 210mm; height: 296mm; padding: 8mm; color: #173d4d; background: #fff; color-scheme: light; font: 11px/1.35 "Inter", Arial, sans-serif; text-shadow: none; }
.pdf-header { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #0284c7 0%, #06b6d4 55%, #10b981 100%); font-family: "Nunito", Arial, sans-serif; }
.pdf-avatar { width: 84px; height: 84px; flex: 0 0 84px; border: 2px solid rgba(255,255,255,.85); border-radius: 12px; object-fit: cover; object-position: center 38%; }
.pdf-header-content { min-width: 0; }
.pdf-sheet .pdf-header h1 { margin: 0; color: #fff; font: 800 29px/1.1 "Nunito", Arial, sans-serif; letter-spacing: 0; }
.pdf-title { margin: 3px 0 9px; font-size: 14px; font-weight: 700; }
.pdf-contacts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 10px; font-weight: 700; }
.pdf-contacts a { color: #fff; text-decoration: none; }
.pdf-columns { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; }
.pdf-column { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pdf-column:first-child { width: 34%; }
.pdf-column:last-child { flex: 1; }
.pdf-card { padding: 12px; border: 1px solid #bae6fd; border-radius: 12px; background: #f4fbff; }
.pdf-card h2 { margin: 0 0 6px; color: #087c92; font: 800 .875rem/1.2 "Inter", Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.pdf-card p { margin: 0; }
.pdf-entry + .pdf-entry { margin-top: 7px; }
.pdf-entry h3 { margin: 0; color: #194658; font-size: 11px; line-height: 1.3; }
.pdf-entry small { display: block; color: #28768b; font-size: 9px; line-height: 1.3; }
.pdf-entry p { margin-top: 2px; }
.pdf-skills { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0; list-style: none; }
.pdf-skills li { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border: 1px solid #83d9e3; border-radius: 9999px; background: linear-gradient(180deg, #e6ffff, #b6edf0); color: #075969; font-size: .8125rem; font-weight: 700; }
.pdf-strengths { margin: 0; padding-left: 15px; }
.pdf-strengths li + li { margin-top: 3px; }
@media (max-width: 767px) {
  body { min-height: 100dvh; padding: 16px; }
  .site-shell { height: calc(100dvh - 32px - 96px - env(safe-area-inset-bottom)); grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); gap: 16px; }
  .sidebar { display: block; }
  .profile { display: flex; align-items: center; gap: 16px; padding: 16px; }
  .profile img { width: 66px; height: 66px; flex-shrink: 0; border-radius: 13px; }
  .profile-greeting { display: grid; line-height: 1.25; }
  .profile-greeting span { color: #c5ffff; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .profile-greeting strong { margin-top: 3px; font: 800 1rem/1.2 "Inter", sans-serif; }
  .profile-greeting small { margin-top: 3px; font-size: 11px; }
  .desktop-nav { display: none; }
  .main-pane { padding: 16px; }
  .view-header { margin-bottom: 20px; padding-bottom: 16px; }
  h1 { font-size: clamp(29px, 8vw, 38px); }
  .teaser-label span { font-size: 8px; letter-spacing: .02em; }
  .teaser-label strong { font-size: 10px; }
  .project-row { grid-template-columns: 1fr; }
  .project-image, .gallery { aspect-ratio: 16/9; }
  .cv-header { display: block; }
  .cv-actions { margin-top: 16px; }
  .cv-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }
  .email-card { grid-column: auto; flex-wrap: wrap; }
  .copy-button { margin-left: 0; }
  .mobile-nav { position: fixed; z-index: 5; bottom: calc(16px + env(safe-area-inset-bottom)); left: 16px; right: 16px; display: grid; grid-template-columns: repeat(4, minmax(48px, 1fr)); min-height: 76px; padding: 8px 12px; border-radius: 9999px; background: rgba(10,38,51,.76); }
  .mobile-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 48px; min-height: 48px; color: #fff; text-decoration: none; font-size: .75rem; font-weight: 600; line-height: 1.2; }
  .nav-indicator { display: grid; place-items: center; width: 56px; height: 32px; border: 1px solid transparent; border-radius: 9999px; }
  .mobile-nav a[aria-current="page"] .nav-indicator { border-color: #fff; background: rgba(45,205,214,.45); box-shadow: 0 0 14px rgba(126,255,255,.7); }
  .lightbox { width: calc(100% - 32px); max-height: calc(100% - 32px); padding: 16px; }
  .lightbox-close { top: 24px; right: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  @page { margin: 14mm; }
  body { padding: 0; color: #172f39; background: #fff !important; font-size: 10px; text-shadow: none; }
  .site-shell { display: block; width: auto; height: auto; margin: 0; }
  .sidebar, .mobile-nav, .cv-actions { display: none; }
  .main-pane { overflow: visible; padding: 0; border: 0; background: none; box-shadow: none; backdrop-filter: none; }
  .view-header { border-color: #16848b; }
  .eyebrow, .header-subtitle, .cv-entry small, .cv-section h2 { color: #17666d; }
  .cv-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 10px; }
  .cv-column { gap: 10px; }
  .cv-section { break-inside: avoid; border: 1px solid #acd2d2; background: #f5fbfb; padding: 10px; }
  .cv-section h2 { font-size: 15px; }
  .cv-entry + .cv-entry { margin-top: 8px; }
  .cv-entry h3 { font-size: 10px; }
  .cv-entry small, .cv-entry p, .skill-list li { font-size: 9px; }
  .skill-list li { color: #174e54; background: #e3f6f5; border-color: #acd2d2; }
}
