:root {
  --desktop: #008080;
  --chrome: #c0c0c0;
  --chrome-dark: #808080;
  --chrome-light: #dfdfdf;
  --chrome-white: #ffffff;
  --ink: #000000;
  --titlebar-start: #000080;
  --titlebar-end: #1084d0;
  --titlebar-inactive: #808080;
  --link: #0000cc;
  --visited: #800080;
  --selected-bg: #000080;
  --selected-fg: #ffffff;
  --win-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
  --btn-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
  --btn-shadow-down: inset 1px 1px #0a0a0a, inset -1px -1px #ffffff, inset 2px 2px #808080, inset -2px -2px #dfdfdf;
  --sunken: inset 1px 1px #0a0a0a, inset -1px -1px #ffffff, inset 2px 2px #808080, inset -2px -2px #dfdfdf;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tahoma', 'MS Sans Serif', Arial, sans-serif;
  font-size: 12px;
  color: var(--ink);
  background-color: var(--desktop);
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 4px 4px;
  padding-bottom: 32px;
}

a {
  color: var(--link);
  text-decoration: underline;
}

a:visited { color: var(--visited); }
a:hover { color: #ff0000; }

/* ─── IE CHROME ─────────────────────────────────────── */

/* ─── MAIN CONTENT ───────────────────────────────────── */

main {
  width: min(1100px, calc(100% - 16px));
  margin: 12px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
}

/* ─── WIN98 WINDOW ───────────────────────────────────── */

.win-window {
  background: var(--chrome);
  box-shadow: var(--win-shadow);
}

.win-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 4px;
  background: linear-gradient(90deg, var(--titlebar-start), var(--titlebar-end));
  color: white;
  font-size: 11px;
  font-weight: bold;
  font-family: 'Tahoma', sans-serif;
  gap: 6px;
}

.win-titlebar-left {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
}

.win-icon {
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
}

.win-controls {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.win-ctrl {
  width: 16px;
  height: 14px;
  background: var(--chrome);
  border: none;
  box-shadow: var(--btn-shadow);
  font-size: 9px;
  font-family: 'Tahoma', sans-serif;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

.win-ctrl:active { box-shadow: var(--btn-shadow-down); }
.win-ctrl.close:hover { background: #c00000; color: white; }

.win-body {
  padding: 12px 14px 14px;
}

.win-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px;
  border-top: 1px solid var(--chrome-dark);
  font-size: 11px;
  font-family: 'Tahoma', sans-serif;
}

.win-statusbar span {
  padding: 1px 6px;
  box-shadow: var(--sunken);
  background: var(--chrome);
  font-size: 11px;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────── */

h1, h2, h3 {
  font-family: 'VT323', 'Courier New', monospace;
  color: var(--ink);
  line-height: 1.1;
}

h1 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 400;
  margin-bottom: 10px;
  color: #000080;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.12);
}

h2 {
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 400;
  margin-bottom: 8px;
  color: #000080;
}

h3 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 6px;
  color: #000080;
}

p {
  font-size: 12px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 6px;
}

.eyebrow {
  font-family: 'VT323', monospace;
  font-size: 16px;
  color: #808080;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
  display: block;
}

/* ─── HERO ───────────────────────────────────────────── */

.hero-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

.hero-copy p {
  max-width: 560px;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.win-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 16px;
  min-height: 26px;
  background: var(--chrome);
  border: none;
  box-shadow: var(--btn-shadow);
  font-family: 'Tahoma', sans-serif;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.win-button:active,
.win-button:hover {
  box-shadow: var(--btn-shadow-down);
  color: var(--ink);
  text-decoration: none;
}

.win-button.primary {
  background: #000080;
  color: white;
  font-weight: bold;
}

.win-button.primary:hover {
  background: #0000b3;
  box-shadow: var(--btn-shadow-down);
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}

.stat-panel {
  background: white;
  box-shadow: var(--sunken);
  padding: 6px 10px;
}

.stat-label {
  font-size: 10px;
  color: #808080;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.stat-value {
  font-family: 'VT323', monospace;
  font-size: 22px;
  color: #000080;
}

/* ─── SECTION LAYOUT ─────────────────────────────────── */

.section-head {
  margin-bottom: 10px;
}

.summary-inner {
  background: white;
  box-shadow: var(--sunken);
  padding: 12px;
}

.summary-inner p {
  font-size: 13px;
  margin: 0;
}

/* ─── PROJECT GRID ───────────────────────────────────── */

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.project-card {
  background: var(--chrome);
  box-shadow: var(--btn-shadow);
  cursor: pointer;
  overflow: hidden;
  transition: none;
}

.project-card:hover .project-card-titlebar {
  background: linear-gradient(90deg, #000080, #1084d0);
}

.project-card-titlebar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px;
  background: var(--titlebar-inactive);
  color: white;
  font-size: 11px;
  font-family: 'Tahoma', sans-serif;
  font-weight: bold;
}

.project-visual.image-visual {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 4px;
  background: #000000;
}

.project-visual.image-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.project-content {
  padding: 8px 10px 10px;
}

.tag {
  display: inline-block;
  padding: 1px 6px;
  background: #000080;
  color: white;
  font-size: 10px;
  font-family: 'Tahoma', sans-serif;
  font-weight: bold;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-content h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

.project-content p {
  font-size: 11px;
  margin-bottom: 4px;
}

ul {
  padding-left: 16px;
  font-size: 11px;
  line-height: 1.6;
  color: #333;
}

/* ─── SKILLS ─────────────────────────────────────────── */

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.skill-grid div {
  background: white;
  box-shadow: var(--sunken);
  padding: 10px;
}

.skill-grid h3 { font-size: 18px; }
.skill-grid p { font-size: 11px; margin: 0; }

/* ─── LABS ───────────────────────────────────────────── */

.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.lab-grid article {
  background: white;
  box-shadow: var(--sunken);
  padding: 10px;
}

.lab-grid h3 { font-size: 18px; }
.lab-grid p { font-size: 11px; margin-bottom: 6px; }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pills span {
  display: inline-block;
  padding: 1px 6px;
  background: var(--chrome);
  box-shadow: var(--btn-shadow);
  font-size: 10px;
  font-family: 'Tahoma', sans-serif;
}

/* ─── TIMELINE ───────────────────────────────────────── */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline article {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dotted var(--chrome-dark);
  align-items: start;
}

.timeline article:last-child {
  border-bottom: none;
}

.timeline-date {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: var(--titlebar-start);
  padding-top: 2px;
  line-height: 1.2;
}

.timeline-content { }

.timeline-content h3 { font-size: 18px; }
.timeline-content p { font-size: 11px; margin: 0; }

/* ─── CERTIFICATIONS ─────────────────────────────────── */

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.cert-list span {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--chrome);
  box-shadow: var(--btn-shadow);
  font-size: 11px;
  font-family: 'Tahoma', sans-serif;
  font-weight: bold;
}

.cert-list span.wip {
  background: #ffff00;
  color: #800000;
}

/* ─── ABOUT ──────────────────────────────────────────── */

.about-inner {
  background: white;
  box-shadow: var(--sunken);
  padding: 14px;
  position: relative;
  overflow: hidden;
}

.about-inner::after {
  content: "/>_";
  position: absolute;
  right: 12px;
  top: 6px;
  font-family: 'VT323', monospace;
  font-size: 72px;
  color: rgba(0, 0, 128, 0.06);
  pointer-events: none;
  user-select: none;
}

.about-inner h2 { font-size: 32px; }
.about-inner p { font-size: 13px; margin: 0; }

/* ─── CONTACT ────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}

.contact-text h2 { font-size: 32px; }
.contact-text p { font-size: 12px; }

.contact-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--chrome-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-links {
  display: flex;
  gap: 4px;
}

.contact-links a {
  display: grid;
  width: 36px;
  height: 32px;
  place-items: center;
  background: var(--chrome);
  box-shadow: var(--btn-shadow);
  color: #000080;
  text-decoration: none;
}

.contact-links a:hover {
  background: #000080;
  color: white;
}

.contact-links svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-links a:nth-child(3) svg {
  fill: currentColor;
  stroke: none;
}

.contact-privacy {
  font-size: 10px;
  color: #808080;
  max-width: 380px;
}

.contact-info-panel {
  min-width: 180px;
  background: white;
  box-shadow: var(--sunken);
  padding: 10px;
}

.contact-info-panel .eyebrow {
  font-size: 13px;
  margin-bottom: 8px;
  color: #000080;
}

/* ─── MODAL ──────────────────────────────────────────── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.5);
}

.modal-backdrop[hidden],
.project-modal[hidden] {
  display: none;
}

.project-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(400px, 0.95fr) minmax(380px, 1.05fr);
  gap: 12px;
  width: min(1100px, calc(100vw - 24px));
  max-height: min(800px, calc(100vh - 24px));
  overflow: auto;
  padding: 12px;
  background: var(--chrome);
  box-shadow: var(--win-shadow), 4px 4px 0 #000000;
  transform: translate(-50%, -50%);
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 16px;
  height: 14px;
  background: var(--chrome);
  border: none;
  box-shadow: var(--btn-shadow);
  font-size: 9px;
  cursor: pointer;
  color: var(--ink);
  font-family: 'Tahoma', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.modal-close:active { box-shadow: var(--btn-shadow-down); }

.modal-media {
  display: grid;
  align-content: start;
  gap: 8px;
}

.modal-visual {
  background: #000;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  box-shadow: var(--sunken);
  overflow: hidden;
}

.modal-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.modal-snapshot {
  background: white;
  box-shadow: var(--sunken);
  padding: 10px;
}

.modal-snapshot .eyebrow { font-size: 13px; color: #808080; }

.modal-snapshot div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 6px;
}

.modal-snapshot span {
  display: grid;
  min-height: 40px;
  place-items: center;
  background: var(--chrome);
  box-shadow: var(--btn-shadow);
  font-size: 11px;
  font-family: 'Tahoma', sans-serif;
  font-weight: bold;
  text-align: center;
  padding: 4px;
}

.modal-content {
  min-width: 0;
  align-self: start;
}

.modal-content h2 { font-size: clamp(24px, 3vw, 38px); }

.modal-content p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.6;
  color: #333;
}

.modal-details {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.modal-details div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px;
  padding: 6px 8px;
  background: white;
  box-shadow: var(--sunken);
  align-items: center;
}

.modal-details span {
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  color: #808080;
  letter-spacing: 0.05em;
}

.modal-details strong {
  font-size: 12px;
  font-weight: normal;
  overflow-wrap: anywhere;
}

/* ─── TASKBAR ────────────────────────────────────────── */

.win-taskbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: 30px;
  background: var(--chrome);
  box-shadow: inset 0 1px 0 var(--chrome-light), inset 0 2px 0 var(--chrome-white);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
}

.start-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px 2px 6px;
  background: var(--chrome);
  border: none;
  box-shadow: var(--btn-shadow);
  font-family: 'Tahoma', sans-serif;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  height: 22px;
}

.start-btn:active { box-shadow: var(--btn-shadow-down); }

.start-icon { font-size: 16px; }

.taskbar-divider {
  width: 1px;
  height: 22px;
  background: var(--chrome-dark);
  box-shadow: 1px 0 0 var(--chrome-light);
  margin: 0 2px;
}

.taskbar-window-btns {
  display: flex;
  gap: 2px;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  min-width: 0;
}

.taskbar-btn {
  padding: 2px 8px;
  background: var(--chrome);
  border: none;
  box-shadow: var(--btn-shadow);
  font-family: 'Tahoma', sans-serif;
  font-size: 11px;
  cursor: pointer;
  height: 22px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  max-width: 160px;
}

.taskbar-btn.active {
  box-shadow: var(--btn-shadow-down);
  background: #d4d0c8;
}

.taskbar-tray {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px;
  box-shadow: var(--sunken);
  height: 22px;
  font-size: 11px;
  font-family: 'Tahoma', sans-serif;
}

.tray-clock { font-size: 11px; }

/* ─── SR-ONLY ─────────────────────────────────────────── */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-body,
  .contact-grid,
  .project-modal {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .skill-grid,
  .lab-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats { flex-direction: row; flex-wrap: wrap; }

  .timeline article {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 620px) {
  .taskbar-btn {
    font-size: 10px;
    padding: 2px 5px;
    max-width: none;
    flex-shrink: 0;
  }
}
