body.portfolio-workstation {
  background: #071a36;
}

@media (pointer: fine) {
  body.portfolio-workstation,
  body.portfolio-workstation .io-workstation,
  body.portfolio-workstation .io-workstation * {
    cursor: url("/assets/windows-98-arrow.svg") 2 1, default !important;
  }

  body.portfolio-workstation a,
  body.portfolio-workstation button,
  body.portfolio-workstation [role="button"] {
    cursor: url("/assets/windows-98-hand.svg") 9 2, pointer !important;
  }
}

body.portfolio-workstation #main-content {
  display: none !important;
}

body.portfolio-workstation header {
  z-index: 900 !important;
}

.io-workstation,
.io-workstation * {
  box-sizing: border-box;
}

.io-workstation {
  --io-navy: #0a1f44;
  --io-navy-dark: #06152f;
  --io-blue: #00aeef;
  --io-yellow: #ffd700;
  --io-teal: #08636b;
  --io-panel: #c4c7cc;
  --io-panel-light: #f5f6f7;
  --io-panel-mid: #d9dce0;
  --io-ink: #101828;
  --io-muted: #48576a;
  --io-white: #ffffff;
  position: relative;
  min-height: 100vh;
  padding: 108px 0 76px;
  color: var(--io-ink);
  background-color: var(--io-teal);
  font-family: Tahoma, Verdana, Arial, sans-serif;
}

.io-workstation button,
.io-workstation a {
  -webkit-tap-highlight-color: transparent;
}

.io-workstation a:focus-visible,
.io-workstation button:focus-visible {
  outline: 4px solid var(--io-yellow);
  outline-offset: 3px;
}

.io-desktop {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
}

.io-system-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 9px 12px;
  color: #dff8ff;
  background: #063c46;
  border: 1px solid #62b9c1;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.io-system-line strong {
  color: var(--io-yellow);
}

.io-workspace-grid {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.io-shortcuts {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 10px;
}

.io-shortcut {
  min-height: 112px;
  padding: 8px;
  color: var(--io-white);
  background: rgba(4, 38, 50, 0.78);
  border: 1px solid transparent;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.io-shortcut:hover {
  color: var(--io-yellow);
  border-color: #b7e8ed;
  background: #063c46;
}

.io-shortcut img {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 7px;
  border: 2px solid var(--io-panel-light);
  object-fit: cover;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
}

.io-shortcut span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 1px 1px 0 #000;
}

.io-window-stack {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.io-window {
  scroll-margin-top: 112px;
  background: var(--io-panel);
  border-top: 3px solid var(--io-panel-light);
  border-left: 3px solid var(--io-panel-light);
  border-right: 3px solid #34383f;
  border-bottom: 3px solid #34383f;
  box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.28);
}

.io-window.is-minimized .io-window-body,
.io-window.is-minimized .io-statusbar {
  display: none;
}

.io-window.is-maximized {
  width: calc(100vw - 40px);
  margin-left: max(-154px, calc((min(1440px, 100vw - 32px) - 100vw + 40px) / 2));
}

.io-titlebar {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 5px 6px 5px 10px;
  color: var(--io-white);
  background: var(--io-navy);
  border-bottom: 4px solid var(--io-yellow);
}

.io-titlebar-title {
  min-width: 0;
  margin-right: auto;
  overflow: hidden;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.io-window-actions {
  display: flex;
  gap: 5px;
  margin-left: 12px;
}

.io-window-actions button {
  min-width: 44px;
  min-height: 32px;
  padding: 4px 7px;
  color: #0d1a2d;
  background: var(--io-panel);
  border-top: 2px solid var(--io-white);
  border-left: 2px solid var(--io-white);
  border-right: 2px solid #34383f;
  border-bottom: 2px solid #34383f;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.io-window-actions button:active,
.io-win-button:active,
.io-start-button:active,
.io-task-button:active {
  border-top-color: #34383f;
  border-left-color: #34383f;
  border-right-color: var(--io-white);
  border-bottom-color: var(--io-white);
}

.io-menubar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 8px 12px;
  color: #243043;
  background: var(--io-panel-mid);
  border-bottom: 1px solid #838990;
  font-size: 12px;
}

.io-menubar button {
  min-height: 32px;
  padding: 3px 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.io-window-body {
  padding: clamp(20px, 3.5vw, 46px);
  background: var(--io-panel-light);
}

.io-statusbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 5px;
  color: #243043;
  background: var(--io-panel);
  font-size: 11px;
}

.io-statusbar span {
  min-width: 0;
  padding: 5px 8px;
  border-top: 1px solid #71757a;
  border-left: 1px solid #71757a;
  border-right: 1px solid var(--io-white);
  border-bottom: 1px solid var(--io-white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.io-overview-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.io-kicker {
  margin: 0 0 12px;
  color: #0b6b80;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.io-workstation h1,
.io-workstation h2,
.io-workstation h3,
.io-workstation h4,
.io-workstation p {
  margin-top: 0;
}

.io-workstation h1 {
  max-width: 850px;
  margin-bottom: 18px;
  color: var(--io-navy);
  font-family: Poppins, Tahoma, sans-serif;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.io-workstation h2 {
  color: var(--io-navy);
  font-family: Poppins, Tahoma, sans-serif;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}

.io-workstation h3 {
  color: var(--io-navy);
  font-family: Poppins, Tahoma, sans-serif;
  font-size: clamp(21px, 2.5vw, 30px);
  line-height: 1.15;
}

.io-lede {
  max-width: 820px;
  margin-bottom: 26px;
  color: #344358;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.io-hero-photo {
  position: relative;
  padding: 12px;
  background: var(--io-panel);
  border-top: 3px solid var(--io-white);
  border-left: 3px solid var(--io-white);
  border-right: 3px solid #34383f;
  border-bottom: 3px solid #34383f;
}

.io-hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 58% center;
  border: 1px solid #4f5661;
}

.io-hero-photo p {
  margin: 9px 0 0;
  color: #303b4b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.io-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.io-win-button,
.io-workstation a.io-win-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  color: #0c1930;
  background: var(--io-panel);
  border-top: 3px solid var(--io-white);
  border-left: 3px solid var(--io-white);
  border-right: 3px solid #34383f;
  border-bottom: 3px solid #34383f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.io-win-button.is-primary {
  background: var(--io-yellow);
}

.io-win-button.is-dark {
  color: var(--io-white);
  background: var(--io-navy);
}

.io-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
}

.io-fact {
  min-height: 94px;
  padding: 16px;
  background: #e9edf2;
  border: 1px solid #9098a3;
}

.io-fact strong {
  display: block;
  margin-bottom: 5px;
  color: var(--io-navy);
  font-size: 14px;
}

.io-fact span {
  color: var(--io-muted);
  font-size: 13px;
  line-height: 1.45;
}

.io-perspective {
  max-width: 930px;
}

.io-perspective p,
.io-body-copy p,
.io-work-column p,
.io-project-copy p {
  color: #36465b;
  font-size: 15px;
  line-height: 1.7;
}

.io-perspective .io-callout {
  margin-top: 22px;
  padding: 18px 20px;
  color: #18253a;
  background: #fff6b7;
  border-left: 8px solid var(--io-yellow);
  font-weight: 800;
}

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

.io-project-card {
  min-width: 0;
  background: var(--io-panel-light);
  border-top: 3px solid var(--io-white);
  border-left: 3px solid var(--io-white);
  border-right: 3px solid #4a5058;
  border-bottom: 3px solid #4a5058;
}

.io-project-titlebar {
  min-height: 38px;
  padding: 9px 12px;
  color: var(--io-white);
  background: #102d5e;
  border-bottom: 3px solid var(--io-blue);
  font-size: 12px;
  font-weight: 900;
}

.io-project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #9fa7b1;
  border-bottom: 1px solid #858b93;
}

.io-project-copy {
  padding: 22px;
}

.io-project-role {
  margin-bottom: 14px;
  color: #0a6e84;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.io-field-group {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #b9c0c9;
}

.io-field-group strong {
  display: block;
  margin-bottom: 5px;
  color: var(--io-navy);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.io-field-group p {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.6;
}

.io-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.io-tag {
  padding: 5px 8px;
  color: #19314f;
  background: #d7ebf3;
  border: 1px solid #6e8798;
  font-size: 11px;
  font-weight: 700;
}

.io-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.io-three-column {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.io-work-column {
  padding: 20px;
  background: #e9edf2;
  border: 1px solid #929aa5;
}

.io-list {
  margin: 0;
  padding-left: 22px;
  color: #36465b;
}

.io-list li {
  margin-bottom: 10px;
  line-height: 1.55;
}

.io-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.io-credential {
  padding: 8px 10px;
  color: #182b45;
  background: #e3e8ee;
  border-top: 2px solid var(--io-white);
  border-left: 2px solid var(--io-white);
  border-right: 2px solid #6d747c;
  border-bottom: 2px solid #6d747c;
  font-size: 12px;
  font-weight: 700;
}

.io-degree {
  padding: 22px;
  background: #eef1f5;
  border: 1px solid #949ca7;
}

.io-degree + .io-degree {
  margin-top: 12px;
}

.io-degree strong,
.io-degree span {
  display: block;
}

.io-degree strong {
  color: var(--io-navy);
  font-size: 16px;
}

.io-degree span {
  margin-top: 5px;
  color: var(--io-muted);
  font-size: 12px;
}

.io-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.io-gallery img,
.io-support-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid #f7f8fa;
  box-shadow: 2px 2px 0 #4f5660;
}

.io-gallery img:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

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

.io-support-card {
  margin: 0;
}

.io-support-card figcaption {
  margin-top: 7px;
  color: #35455a;
  font-size: 11px;
  line-height: 1.35;
}

.io-publication-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.io-publication {
  display: flex;
  flex-direction: column;
  min-height: 180px;
  padding: 20px;
  background: #e8edf3;
  border: 1px solid #8f98a4;
}

.io-publication h3 {
  margin-bottom: 14px;
  font-size: 20px;
}

.io-publication .io-win-button {
  margin-top: auto;
}

.io-taskbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 54px;
  padding: 5px 8px;
  background: var(--io-panel);
  border-top: 3px solid var(--io-white);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.35);
}

.io-start-button,
.io-task-button {
  min-height: 42px;
  color: #111d31;
  background: var(--io-panel);
  border-top: 2px solid var(--io-white);
  border-left: 2px solid var(--io-white);
  border-right: 2px solid #34383f;
  border-bottom: 2px solid #34383f;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.io-start-button {
  min-width: 96px;
  color: var(--io-white);
  background: var(--io-navy);
}

.io-task-buttons {
  display: flex;
  flex: 1;
  gap: 5px;
  min-width: 0;
  overflow-x: auto;
}

.io-task-button {
  flex: 0 0 auto;
  min-width: 118px;
  max-width: 210px;
  padding: 6px 10px;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.io-clock {
  min-width: 88px;
  padding: 9px 10px;
  color: #1a283b;
  border-top: 2px solid #71757a;
  border-left: 2px solid #71757a;
  border-right: 2px solid var(--io-white);
  border-bottom: 2px solid var(--io-white);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.io-start-menu {
  position: fixed;
  bottom: 54px;
  left: 8px;
  z-index: 850;
  display: none;
  width: min(330px, calc(100vw - 16px));
  background: var(--io-panel);
  border-top: 3px solid var(--io-white);
  border-left: 3px solid var(--io-white);
  border-right: 3px solid #34383f;
  border-bottom: 3px solid #34383f;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
}

.io-start-menu.is-open {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
}

.io-start-rail {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px 4px;
  color: var(--io-white);
  background: var(--io-navy);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.io-start-links {
  padding: 6px;
}

.io-start-links button,
.io-start-links a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 46px;
  padding: 9px 12px;
  color: #17243a;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.io-start-links button:hover,
.io-start-links a:hover {
  color: var(--io-white);
  background: var(--io-navy);
}

.io-start-links hr {
  height: 1px;
  margin: 5px 8px;
  background: #7b8088;
  border: 0;
  border-bottom: 1px solid var(--io-white);
}

.io-secret-explorer {
  max-width: 820px;
}

.io-secret-intro {
  max-width: 650px;
  color: #36465b;
  line-height: 1.7;
}

.io-secret-tree {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
  padding: 18px;
  list-style: none;
  background: #ffffff;
  border-top: 2px solid #707780;
  border-left: 2px solid #707780;
  border-right: 2px solid var(--io-white);
  border-bottom: 2px solid var(--io-white);
}

.io-secret-step[hidden] {
  display: none;
}

.io-secret-step:nth-child(2) { margin-left: 22px; }
.io-secret-step:nth-child(3) { margin-left: 44px; }
.io-secret-step:nth-child(4) { margin-left: 66px; }
.io-secret-step:nth-child(5) { margin-left: 88px; }
.io-secret-step:nth-child(6) { margin-left: 110px; }

.io-secret-folder {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: min(100%, 330px);
  min-height: 58px;
  padding: 8px 12px;
  color: #102344;
  background: var(--io-panel);
  border-top: 3px solid var(--io-white);
  border-left: 3px solid var(--io-white);
  border-right: 3px solid #34383f;
  border-bottom: 3px solid #34383f;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  text-align: left;
  text-decoration: none;
}

.io-secret-folder:hover,
.io-secret-folder:focus-visible {
  color: var(--io-white);
  background: var(--io-navy);
}

.io-secret-folder.is-open {
  color: #536174;
  background: #d9dce0;
}

.io-secret-folder-icon {
  position: relative;
  flex: 0 0 auto;
  width: 38px;
  height: 27px;
  margin-top: 5px;
  background: #f5c542;
  border: 2px solid #4b3b00;
  box-shadow: inset 3px 3px 0 #ffe982;
}

.io-secret-folder-icon::before {
  position: absolute;
  top: -8px;
  left: -2px;
  width: 19px;
  height: 8px;
  background: #f5c542;
  border: 2px solid #4b3b00;
  border-bottom: 0;
  content: "";
}

.io-secret-final {
  color: #132f5f;
  background: var(--io-yellow);
}

.io-secret-status {
  margin: 12px 0 0;
  color: #526174;
  font-size: 12px;
  font-weight: 800;
}

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

.io-confetti-field {
  position: fixed;
  inset: 0;
  z-index: 1100;
  overflow: hidden;
  pointer-events: none;
}

.io-confetti-piece {
  position: absolute;
  top: -24px;
  left: var(--io-left);
  width: 10px;
  height: 18px;
  background: var(--io-confetti-color);
  border: 1px solid rgba(0, 0, 0, 0.3);
  animation: io-confetti-fall var(--io-duration) linear var(--io-delay) forwards;
}

@keyframes io-confetti-fall {
  0% { transform: translate3d(0, -5vh, 0) rotate(0); }
  100% { transform: translate3d(var(--io-drift), 110vh, 0) rotate(var(--io-spin)); }
}

@media (max-width: 1060px) {
  .io-workspace-grid {
    grid-template-columns: 1fr;
  }

  .io-shortcuts {
    position: static;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .io-shortcut {
    min-height: 104px;
  }

  .io-window.is-maximized {
    width: auto;
    margin-left: 0;
  }

  .io-three-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .io-workstation {
    padding-top: 92px;
  }

  .io-desktop {
    width: min(100% - 18px, 760px);
  }

  .io-system-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .io-shortcuts {
    display: flex;
    gap: 8px;
    padding-bottom: 4px;
    overflow-x: auto;
  }

  .io-shortcut {
    flex: 0 0 112px;
  }

  .io-overview-layout,
  .io-two-column,
  .io-projects-grid,
  .io-publication-list {
    grid-template-columns: 1fr;
  }

  .io-overview-layout .io-hero-photo {
    max-width: 420px;
  }

  .io-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .io-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .io-window-actions button {
    min-width: 46px;
  }

  .io-task-buttons {
    display: none;
  }

  .io-clock {
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .io-window-body {
    padding: 20px 16px;
  }

  .io-titlebar {
    align-items: flex-start;
    flex-direction: column;
  }

  .io-titlebar-title {
    width: 100%;
    white-space: normal;
  }

  .io-window-actions {
    width: 100%;
    margin: 2px 0 0;
  }

  .io-window-actions button {
    flex: 1;
  }

  .io-facts,
  .io-gallery,
  .io-support-grid {
    grid-template-columns: 1fr 1fr;
  }

  .io-gallery img:first-child {
    grid-column: span 2;
  }

  .io-statusbar {
    grid-template-columns: 1fr;
  }

  .io-clock {
    min-width: 72px;
  }

  .io-secret-tree {
    padding: 12px 8px;
  }

  .io-secret-step:nth-child(n) {
    margin-left: 0;
  }

  .io-secret-folder {
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .io-shortcut,
  .io-win-button,
  .io-task-button,
  .io-window {
    transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, color 150ms ease;
  }

  .io-shortcut:hover,
  .io-win-button:hover,
  .io-secret-folder:hover {
    transform: translateY(-2px);
  }

  .io-window:focus-within {
    box-shadow: 14px 16px 0 rgba(0, 0, 0, 0.34);
  }
}

@media print {
  body.portfolio-workstation #main-content {
    display: none !important;
  }

  .io-workstation {
    padding: 0;
    color: #000;
    background: #fff;
  }

  .io-shortcuts,
  .io-taskbar,
  .io-start-menu,
  .io-window-actions,
  .io-menubar {
    display: none !important;
  }

  .io-workspace-grid {
    display: block;
  }

  .io-window {
    break-inside: avoid;
    box-shadow: none;
  }
}

/* Build 4: full-screen I/O Shield Evidence Workstation desktop */
body.portfolio-workstation {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #007b7b;
}

body.portfolio-workstation header,
body.portfolio-workstation footer {
  display: none !important;
}

.io-workstation {
  position: fixed;
  inset: 0;
  z-index: 2000;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #007b7b url("/assets/io-shield-desktop-wallpaper.png") center center / cover no-repeat;
}

.io-desktop {
  position: absolute;
  inset: 0 0 54px;
  width: auto;
  margin: 0;
  overflow: hidden;
}

.io-system-line {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 12;
  display: grid;
  gap: 3px;
  width: min(430px, calc(100vw - 170px));
  margin: 0;
  padding: 7px 10px;
  color: #effeff;
  background: rgba(1, 55, 66, 0.9);
  border: 1px solid #9be8ec;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.42);
  font-size: 10px;
  letter-spacing: 0.07em;
}

.io-workspace-grid {
  position: absolute;
  inset: 0;
  display: block;
}

.io-shortcuts {
  position: absolute;
  top: 10px;
  bottom: 42px;
  left: 10px;
  z-index: 15;
  display: grid;
  grid-template-rows: repeat(7, minmax(78px, 1fr));
  gap: 4px;
  width: 118px;
  max-height: 720px;
}

.io-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 4px 6px;
  color: #fff;
  background: transparent;
  border: 1px dotted transparent;
  text-align: center;
  text-decoration: none;
}

.io-shortcut:hover,
.io-shortcut:focus-visible {
  color: #fff8a8;
  background: rgba(0, 37, 74, 0.5);
  border-color: #fff;
}

.io-shortcut img {
  width: 46px;
  height: 46px;
  margin: 0 auto 4px;
  background: #fff;
  border: 1px solid #fff;
  object-fit: cover;
  image-rendering: auto;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.65);
}

.io-shortcut[href="/"] img,
.io-shortcut[data-target="hidden-files"] img {
  object-fit: contain;
}

.io-shortcut span {
  max-width: 106px;
  font-size: 11px;
  line-height: 1.15;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 rgba(0, 0, 0, 0.45);
}

.io-window-stack {
  position: absolute;
  inset: 0;
  display: block;
  min-width: 0;
  pointer-events: none;
}

.io-window {
  position: absolute;
  top: clamp(62px, 8vh, 92px);
  left: clamp(154px, 17vw, 250px);
  display: none;
  flex-direction: column;
  width: min(920px, calc(100vw - 360px));
  height: min(720px, calc(100vh - 150px));
  height: min(720px, calc(100dvh - 150px));
  max-height: none;
  margin: 0;
  overflow: hidden;
  pointer-events: auto;
  scroll-margin: 0;
  box-shadow: 11px 13px 0 rgba(0, 0, 0, 0.38);
}

.io-window.is-open {
  display: flex;
}

.io-window:not(.is-active) .io-titlebar {
  background: #536477;
}

.io-window.is-active .io-titlebar {
  background: linear-gradient(90deg, #001c70, #0a73b7);
}

.io-window.is-maximized {
  top: 8px;
  right: 8px;
  bottom: 8px;
  left: 8px;
  width: auto;
  height: auto;
  margin: 0;
}

#overview {
  top: clamp(68px, 9vh, 106px);
  left: clamp(170px, 24vw, 390px);
  width: min(780px, calc(100vw - 360px));
  height: min(650px, calc(100dvh - 170px));
}

.io-window-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #5c6670 #d7d9dc;
}

.io-statusbar,
.io-titlebar,
.io-menubar {
  flex: 0 0 auto;
}

.io-titlebar {
  min-height: 42px;
}

.io-window-actions button {
  min-width: 44px;
  min-height: 32px;
}

.io-taskbar {
  z-index: 5000;
}

.io-task-button.is-active {
  background: #e5e8eb;
  border-top-color: #34383f;
  border-left-color: #34383f;
  border-right-color: #fff;
  border-bottom-color: #fff;
}

.io-desktop-hint {
  position: absolute;
  right: 18px;
  bottom: 150px;
  z-index: 10;
  margin: 0;
  padding: 5px 8px;
  color: #eaffff;
  background: rgba(0, 52, 63, 0.68);
  border: 1px solid rgba(217, 255, 255, 0.75);
  font-size: 10px;
  font-weight: 700;
  text-shadow: 1px 1px 0 #000;
}

.io-achievement-toast {
  position: fixed;
  top: 26px;
  bottom: auto;
  left: 50%;
  z-index: 7000;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  width: min(520px, calc(100vw - 24px));
  min-height: 80px;
  color: #fff;
  opacity: 0;
  visibility: hidden;
  isolation: isolate;
  transform: translate(-50%, -28px) scale(0.96);
  pointer-events: none;
}

.io-achievement-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) scale(1);
}

.io-achievement-medallion {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  padding: 7px;
  background: #c4c7cc;
  border-top: 4px solid #fff;
  border-left: 4px solid #fff;
  border-right: 4px solid #34383f;
  border-bottom: 4px solid #34383f;
  border-radius: 50%;
  box-shadow: 5px 6px 0 rgba(0, 0, 0, 0.4);
}

.io-achievement-medallion img {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  border: 2px solid #0a1f44;
  border-radius: 50%;
  object-fit: cover;
}

.io-achievement-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 68px;
  margin-left: -14px;
  padding: 10px 24px 10px 32px;
  overflow: hidden;
  color: #fff;
  background: #06152f;
  border-top: 3px solid #f5f6f7;
  border-left: 3px solid #f5f6f7;
  border-right: 3px solid #34383f;
  border-bottom: 3px solid #34383f;
  border-radius: 0 34px 34px 0;
  box-shadow: 7px 8px 0 rgba(0, 0, 0, 0.34);
  transform-origin: left center;
}

.io-achievement-label,
.io-achievement-message,
.io-achievement-detail {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.io-achievement-label {
  color: #7ce7ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.2;
}

.io-achievement-message {
  margin-top: 4px;
  color: #ffd700;
  font-size: clamp(18px, 2.4vw, 27px);
  font-weight: 900;
  letter-spacing: 0.035em;
  line-height: 1.05;
}

.io-achievement-detail {
  margin-top: 5px;
  color: #dff8ff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.1;
}

@keyframes io-achievement-toast-cycle {
  0% { opacity: 0; transform: translate(-50%, -28px) scale(0.96); }
  9%, 86% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -16px) scale(0.98); }
}

@keyframes io-achievement-medallion-pop {
  0% { opacity: 0; transform: scale(0.58) rotate(-8deg); }
  8% { opacity: 1; transform: scale(1.1) rotate(0); }
  14%, 86% { opacity: 1; transform: scale(1) rotate(0); }
  100% { opacity: 0; transform: scale(0.72) rotate(5deg); }
}

@keyframes io-achievement-panel-deploy {
  0%, 8% { opacity: 0; transform: translateX(-42px) scaleX(0.08); }
  20%, 86% { opacity: 1; transform: translateX(0) scaleX(1); }
  100% { opacity: 0; transform: translateX(-42px) scaleX(0.08); }
}

@keyframes io-achievement-copy-reveal {
  0%, 18% { opacity: 0; transform: translateX(-12px); }
  27%, 84% { opacity: 1; transform: translateX(0); }
  100% { opacity: 0; transform: translateX(-8px); }
}

.io-start-menu {
  z-index: 5100;
}

.io-start-links {
  max-height: calc(100vh - 74px);
  max-height: calc(100dvh - 74px);
  overflow-y: auto;
}

.io-byte-helper {
  position: fixed;
  right: 18px;
  bottom: 52px;
  z-index: 5200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
}

.io-byte-avatar {
  position: relative;
  display: grid;
  justify-items: center;
  width: 118px;
  min-height: 126px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  text-shadow: 1px 1px 0 #000;
  pointer-events: auto;
}

.io-byte-avatar img {
  display: block;
  width: 108px;
  height: 108px;
  object-fit: contain;
  filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, 0.5));
}

.io-byte-avatar span {
  margin-top: -8px;
  padding: 2px 7px;
  background: rgba(0, 27, 57, 0.74);
  border: 1px dotted #fff;
}

.io-byte-bubble {
  width: min(300px, calc(100vw - 24px));
  margin: 0 62px -4px 0;
  color: #162239;
  background: #ffffd5;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  border-right: 3px solid #34383f;
  border-bottom: 3px solid #34383f;
  box-shadow: 7px 8px 0 rgba(0, 0, 0, 0.35);
  pointer-events: auto;
}

.io-byte-titlebar {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 4px 5px 4px 9px;
  color: #fff;
  background: #001c70;
  border-bottom: 3px solid #ffd700;
}

.io-byte-titlebar strong {
  margin-right: auto;
  font-size: 12px;
}

.io-byte-titlebar button,
.io-byte-actions button,
.io-byte-actions a {
  min-height: 40px;
  color: #101828;
  background: #c4c7cc;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #34383f;
  border-bottom: 2px solid #34383f;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.io-byte-titlebar button {
  min-width: 50px;
  min-height: 28px;
  padding: 2px 5px;
}

.io-byte-bubble p {
  margin: 0;
  padding: 13px 14px 9px;
  font-size: 13px;
  line-height: 1.45;
}

.io-byte-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px 12px 12px;
}

.io-byte-actions button,
.io-byte-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  text-align: center;
  text-decoration: none;
}

.io-byte-actions a {
  grid-column: 1 / -1;
}

.io-secret-folder-icon {
  display: block;
  flex: 0 0 44px;
  width: 44px;
  height: 38px;
  object-fit: contain;
}

.io-secret-folder-icon::before {
  display: none;
}

@media (max-width: 900px) {
  .io-system-line {
    right: 8px;
    width: min(360px, calc(100vw - 145px));
  }

  .io-shortcuts {
    width: 104px;
  }

  .io-window,
  #overview {
    top: 66px;
    left: 126px;
    width: calc(100vw - 150px);
    height: calc(100dvh - 132px);
  }
}

@media (max-width: 700px) {
  .io-workstation {
    background-position: center center;
  }

  .io-system-line {
    top: 7px;
    left: 7px;
    right: 7px;
    width: auto;
  }

  .io-shortcuts {
    top: 64px;
    right: 6px;
    bottom: 64px;
    left: 6px;
    grid-template-rows: repeat(4, minmax(78px, 1fr));
    grid-template-columns: repeat(2, 104px);
    grid-auto-flow: column;
    width: 214px;
    max-height: 440px;
  }

  .io-window,
  #overview,
  .io-window.is-maximized {
    top: 7px;
    right: 7px;
    bottom: 7px;
    left: 7px;
    width: auto;
    height: auto;
    margin: 0;
  }

  .io-window-body {
    padding: 18px 14px;
  }

  .io-titlebar {
    align-items: center;
    flex-direction: row;
    min-height: 46px;
  }

  .io-titlebar-title {
    white-space: nowrap;
  }

  .io-window-actions {
    width: auto;
    margin: 0 0 0 6px;
  }

  .io-window-actions button {
    min-width: 42px;
    padding: 3px;
  }

  .io-byte-helper {
    right: 6px;
    bottom: 50px;
  }

  .io-byte-avatar {
    width: 82px;
    min-height: 88px;
  }

  .io-byte-avatar img {
    width: 76px;
    height: 76px;
  }

  .io-byte-bubble {
    margin-right: 32px;
  }

  .io-achievement-toast {
    top: 70px;
    bottom: auto;
    grid-template-columns: 66px minmax(0, 1fr);
    width: calc(100vw - 18px);
    min-height: 68px;
  }

  .io-achievement-medallion {
    width: 64px;
    height: 64px;
    padding: 5px;
  }

  .io-achievement-panel {
    min-height: 58px;
    margin-left: -11px;
    padding: 8px 16px 8px 25px;
  }

  .io-achievement-label {
    font-size: 9px;
  }

  .io-achievement-message {
    font-size: clamp(16px, 5.2vw, 22px);
  }

  .io-desktop-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .io-achievement-toast.is-visible {
    animation: io-achievement-toast-cycle var(--io-achievement-duration, 4600ms) ease both;
  }

  .io-achievement-toast.is-visible .io-achievement-medallion {
    animation: io-achievement-medallion-pop var(--io-achievement-duration, 4600ms) ease both;
  }

  .io-achievement-toast.is-visible .io-achievement-panel {
    animation: io-achievement-panel-deploy var(--io-achievement-duration, 4600ms) cubic-bezier(0.2, 0.78, 0.2, 1) both;
  }

  .io-achievement-toast.is-visible .io-achievement-label,
  .io-achievement-toast.is-visible .io-achievement-message,
  .io-achievement-toast.is-visible .io-achievement-detail {
    animation: io-achievement-copy-reveal var(--io-achievement-duration, 4600ms) ease both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .io-achievement-toast.is-visible,
  .io-achievement-toast.is-visible .io-achievement-medallion,
  .io-achievement-toast.is-visible .io-achievement-panel,
  .io-achievement-toast.is-visible .io-achievement-label,
  .io-achievement-toast.is-visible .io-achievement-message,
  .io-achievement-toast.is-visible .io-achievement-detail {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  .io-titlebar-title {
    font-size: 11px;
  }

  .io-window-actions {
    gap: 2px;
  }

  .io-window-actions button {
    min-width: 44px;
    font-size: 9px;
  }

  .io-byte-bubble {
    width: calc(100vw - 16px);
    margin-right: 0;
  }

  .io-start-button {
    min-width: 82px;
  }
}

@media print {
  body.portfolio-workstation {
    height: auto;
    overflow: visible;
  }

  .io-workstation {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    background: #fff;
  }

  .io-desktop,
  .io-workspace-grid,
  .io-window-stack {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
  }

  .io-system-line,
  .io-byte-helper,
  .io-desktop-hint {
    display: none !important;
  }

  .io-window,
  .io-window.is-open {
    position: static;
    display: block;
    width: auto;
    height: auto;
    margin: 0 0 20px;
    overflow: visible;
  }

  .io-window-body {
    overflow: visible;
  }
}

@media screen {
  .io-window.is-maximized,
  #overview.is-maximized {
    top: 8px;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    height: auto;
    margin: 0;
  }
}

/* Build 6: candy-bar phone interface for the mobile Portfolio */
@media screen and (max-width: 720px) {
  body.portfolio-workstation {
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #151718;
  }

  .io-mobile-portfolio {
    --io-lcd: #9baa55;
    --io-lcd-dark: #17210f;
    --io-phone-silver: #c7c8c4;
    --io-phone-silver-dark: #8f918d;
    --io-phone-charcoal: #35383a;
    --io-phone-key: #2b2e30;
    --io-phone-yellow: #f2c842;
    display: block;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    padding: 0;
    overflow: auto;
    color: var(--io-lcd-dark);
    background: #151718;
    font-family: "Courier New", Courier, monospace;
  }

  .io-mobile-portfolio a:focus-visible,
  .io-mobile-portfolio button:focus-visible {
    outline: 3px solid #ffd700;
    outline-offset: 2px;
  }

  .io-phone-stage {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100%;
    padding: 4px;
    background: #151718;
  }

  .io-phone {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 56%) minmax(0, 44%);
    width: min(100%, 430px);
    height: max(680px, 100dvh);
    max-height: 920px;
    overflow: hidden;
    background: var(--io-phone-charcoal);
    border: 3px solid #070809;
    border-radius: 54px 54px 76px 76px;
    box-shadow: 0 0 0 3px #606361, 0 14px 28px rgba(0, 0, 0, 0.62);
  }

  .io-phone-top {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: 24px minmax(0, 1fr) 88px;
    min-height: 0;
    padding: 10px 13px 8px;
    background: var(--io-phone-silver);
    border-bottom: 3px solid #777a77;
    border-radius: 49px 49px 36px 36px;
    box-shadow: inset 4px 4px 0 #f1f1ed, inset -4px -3px 0 var(--io-phone-silver-dark);
  }

  .io-phone-speaker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 116px;
    height: 12px;
    margin: 0 auto 4px;
    background: #202324;
    border: 2px solid #707270;
    border-radius: 10px;
    box-shadow: inset 1px 1px 2px #000;
  }

  .io-phone-speaker span {
    width: 12px;
    height: 3px;
    background: #050606;
    border-radius: 3px;
  }

  .io-phone-display {
    position: relative;
    min-height: 0;
    margin: 0 3px;
    overflow: hidden;
    background: var(--io-lcd);
    border: 10px solid #282b2b;
    border-radius: 29px 29px 40px 40px;
    box-shadow: inset 0 0 0 3px #627131, 0 0 0 3px #a6a8a3;
  }

  .io-phone-display::after {
    position: absolute;
    inset: 0;
    z-index: 4;
    border: 1px solid rgba(23, 33, 15, 0.18);
    content: "";
    pointer-events: none;
  }

  .io-phone-screen {
    position: absolute;
    inset: 0 0 42px;
    z-index: 2;
    padding: 10px 11px 14px;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--io-lcd-dark);
    background: var(--io-lcd);
    scrollbar-color: var(--io-lcd-dark) var(--io-lcd);
    scrollbar-width: thin;
  }

  .io-phone-screen:focus-visible {
    outline: 2px dotted var(--io-lcd-dark);
    outline-offset: -4px;
  }

  .io-phone-soft-labels {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 42px;
    color: var(--io-lcd-dark);
    background: var(--io-lcd);
    border-top: 2px dotted var(--io-lcd-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
  }

  .io-phone-soft-labels span {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .io-phone-soft-labels span + span {
    border-left: 2px dotted var(--io-lcd-dark);
  }

  .io-mobile-screen-header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 2px dotted var(--io-lcd-dark);
  }

  .io-mobile-logo,
  .io-mobile-byte {
    display: block;
    width: 40px;
    height: 40px;
    mix-blend-mode: multiply;
    object-fit: contain;
    filter: grayscale(1) contrast(2.2) sepia(1) hue-rotate(30deg) saturate(0.6);
  }

  .io-mobile-byte {
    width: 38px;
    height: 42px;
  }

  .io-mobile-screen-header div {
    min-width: 0;
  }

  .io-mobile-screen-header strong,
  .io-mobile-screen-header span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .io-mobile-screen-header strong {
    font-size: clamp(14px, 4.5vw, 19px);
    line-height: 1.05;
  }

  .io-mobile-screen-header span {
    margin-top: 3px;
    font-size: 8px;
    font-weight: 700;
  }

  .io-mobile-status {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 1px 4px;
    font-size: 8px;
    font-weight: 900;
  }

  .io-mobile-welcome {
    display: grid;
    gap: 2px;
    margin: 2px 0 7px;
    padding: 5px 7px;
    border: 1px solid var(--io-lcd-dark);
  }

  .io-mobile-welcome strong {
    font-size: 11px;
  }

  .io-mobile-welcome span {
    font-size: 7px;
    font-weight: 700;
  }

  .io-mobile-menu,
  .io-mobile-case-list {
    display: grid;
    gap: 3px;
  }

  .io-mobile-choice {
    color: var(--io-lcd-dark);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    font: inherit;
    font-weight: 900;
    text-decoration: none;
  }

  .io-mobile-menu .io-mobile-choice {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 31px;
    padding: 3px 5px;
    text-align: left;
  }

  .io-mobile-menu .io-mobile-choice > span {
    font-size: 8px;
  }

  .io-mobile-menu .io-mobile-choice > strong {
    overflow: hidden;
    font-size: clamp(10px, 3.4vw, 14px);
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .io-mobile-menu .io-mobile-choice > i {
    font-size: 13px;
    font-style: normal;
  }

  .io-mobile-choice.is-selected,
  .io-mobile-choice:hover,
  .io-mobile-choice:focus-visible {
    color: var(--io-lcd);
    background: var(--io-lcd-dark);
    outline: 0;
  }

  .io-mobile-section-intro {
    margin: 3px 0 6px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.06em;
  }

  .io-mobile-case-list .io-mobile-choice {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 4px;
    align-items: center;
    min-height: 42px;
    padding: 5px;
    border-bottom: 1px dotted var(--io-lcd-dark);
    text-align: left;
  }

  .io-mobile-case-list .io-mobile-choice span {
    font-size: 9px;
  }

  .io-mobile-case-list .io-mobile-choice strong {
    font-size: 10px;
    line-height: 1.15;
  }

  .io-mobile-case-detail img,
  .io-mobile-headshot {
    display: block;
    width: 100%;
    height: 88px;
    margin: 0 0 7px;
    border: 2px solid var(--io-lcd-dark);
    mix-blend-mode: multiply;
    object-fit: cover;
    filter: grayscale(1) contrast(1.7) sepia(1) hue-rotate(30deg) saturate(0.55);
  }

  .io-mobile-case-detail h1,
  .io-mobile-copy h1 {
    margin: 0 0 7px;
    color: var(--io-lcd-dark);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.1;
  }

  .io-mobile-file-name,
  .io-mobile-role {
    margin: 0 0 5px;
    font-size: 8px;
    font-weight: 900;
  }

  .io-mobile-case-detail section {
    margin: 8px 0;
    padding: 6px;
    border: 1px solid var(--io-lcd-dark);
  }

  .io-mobile-case-detail h2 {
    margin: 0 0 4px;
    color: var(--io-lcd-dark);
    font-family: inherit;
    font-size: 10px;
  }

  .io-mobile-case-detail p,
  .io-mobile-copy p {
    margin: 0 0 7px;
    color: var(--io-lcd-dark);
    font-size: 9px;
    line-height: 1.38;
  }

  .io-mobile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 7px 0;
  }

  .io-mobile-tags span {
    padding: 3px 4px;
    border: 1px dotted var(--io-lcd-dark);
    font-size: 7px;
    font-weight: 900;
  }

  .io-mobile-detail-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  .io-mobile-detail-actions .io-mobile-choice,
  .io-mobile-screen-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin: 4px 0;
    padding: 5px;
    border: 1px solid var(--io-lcd-dark);
    font-size: 8px;
    text-align: center;
  }

  .io-mobile-copy {
    padding: 2px 1px 10px;
  }

  .io-mobile-headshot {
    height: 110px;
    object-position: center 35%;
  }

  .io-mobile-degree {
    display: grid;
    gap: 3px;
    margin-bottom: 7px;
    padding: 6px;
    border: 1px solid var(--io-lcd-dark);
  }

  .io-mobile-degree strong {
    font-size: 9px;
  }

  .io-mobile-degree span {
    font-size: 7px;
  }

  .io-mobile-records {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .io-mobile-records li {
    padding: 5px 3px;
    border-bottom: 1px dotted var(--io-lcd-dark);
    font-size: 8px;
    font-weight: 700;
  }

  .io-mobile-hidden ol {
    display: grid;
    gap: 4px;
    margin: 8px 0;
    padding: 0;
    list-style: none;
  }

  .io-mobile-hidden li {
    display: none;
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 4px;
    padding: 5px;
    border-bottom: 1px dotted var(--io-lcd-dark);
    font-size: 8px;
    font-weight: 900;
  }

  .io-mobile-hidden li.is-visible {
    display: grid;
  }

  .io-phone-navigation {
    display: grid;
    grid-template-columns: minmax(58px, 1fr) 112px minmax(58px, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px 3px 0;
  }

  .io-phone-route-key {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 58px;
    color: #202322;
    background: #d9dad6;
    border-top: 3px solid #f9f9f5;
    border-left: 3px solid #f9f9f5;
    border-right: 3px solid #676966;
    border-bottom: 3px solid #676966;
    border-radius: 25px 25px 32px 32px;
    box-shadow: 2px 3px 0 #5a5d5a;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
  }

  .io-phone-call {
    color: #164b29;
  }

  .io-phone-end {
    color: #7a201f;
  }

  .io-phone-dpad {
    position: relative;
    width: 112px;
    height: 76px;
    background: #bebfbc;
    border: 3px solid #6d706d;
    border-radius: 28px;
    box-shadow: inset 3px 3px 0 #f4f4f0, inset -3px -3px 0 #858784;
  }

  .io-phone-dpad button {
    position: absolute;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    overflow: hidden;
    color: #1d211f;
    background: transparent;
    border: 0;
    font-size: 0;
  }

  .io-phone-dpad button::after {
    display: block;
    color: #1d211f;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
  }

  .io-dpad-up { top: -5px; left: 34px; }
  .io-dpad-up::after { content: "UP"; }
  .io-dpad-down { bottom: -5px; left: 34px; }
  .io-dpad-down::after { content: "DN"; }
  .io-dpad-left { top: 16px; left: -4px; }
  .io-dpad-left::after { content: "LT"; }
  .io-dpad-right { top: 16px; right: -4px; }
  .io-dpad-right::after { content: "RT"; }

  .io-phone-dpad .io-dpad-select {
    top: 14px;
    left: 33px;
    z-index: 2;
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    background: #aeb0ad;
    border: 2px solid #6b6e6b;
    border-radius: 16px;
    box-shadow: inset 2px 2px 0 #ededeb;
  }

  .io-phone-dpad .io-dpad-select::after {
    content: "OK";
    font-size: 10px;
  }

  .io-phone-bottom {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    padding: 12px 18px 10px;
    background: var(--io-phone-charcoal);
    border-radius: 26px 26px 70px 70px;
    box-shadow: inset 3px 0 0 #55595b, inset -3px -3px 0 #1e2021;
  }

  .io-phone-keypad {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(46px, 1fr));
    gap: 7px 10px;
    min-height: 0;
  }

  .io-phone-keypad button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 44px;
    min-height: 46px;
    padding: 3px 6px;
    color: #b8c889;
    background: var(--io-phone-key);
    border-top: 2px solid #5f6365;
    border-left: 2px solid #5f6365;
    border-right: 2px solid #151718;
    border-bottom: 2px solid #151718;
    border-radius: 21px;
    box-shadow: 0 2px 0 #121314;
    font-family: "Courier New", Courier, monospace;
  }

  .io-phone-keypad button:active {
    border-top-color: #151718;
    border-left-color: #151718;
    border-right-color: #5f6365;
    border-bottom-color: #5f6365;
    transform: translateY(1px);
  }

  .io-phone-keypad strong {
    font-size: clamp(18px, 5.6vw, 25px);
    line-height: 1;
  }

  .io-phone-keypad span {
    display: none;
    font-size: 7px;
    font-weight: 700;
    line-height: 1;
  }

  .io-phone-instructions {
    margin: 7px 0 0;
    color: #c8cbc8;
    font-family: Arial, sans-serif;
    font-size: 8px;
    line-height: 1.2;
    text-align: center;
  }

  .io-mobile-portfolio .io-achievement-toast {
    top: 74px;
    bottom: auto;
    width: min(390px, calc(100vw - 18px));
  }

  .io-mobile-portfolio .io-achievement-panel {
    background: var(--io-lcd-dark);
  }

  .io-mobile-portfolio .io-achievement-label {
    color: var(--io-lcd);
  }

  .io-mobile-portfolio .io-achievement-message {
    color: #ffd700;
  }

  .io-mobile-portfolio .io-confetti-field {
    z-index: 7600;
  }
}

@media screen and (max-width: 380px) {
  .io-phone {
    border-right-width: 2px;
    border-left-width: 2px;
    border-radius: 42px 42px 60px 60px;
  }

  .io-phone-top {
    padding-right: 9px;
    padding-left: 9px;
    border-radius: 38px 38px 30px 30px;
  }

  .io-phone-navigation {
    grid-template-columns: minmax(52px, 1fr) 104px minmax(52px, 1fr);
    gap: 5px;
  }

  .io-phone-dpad {
    width: 104px;
  }

  .io-dpad-up,
  .io-dpad-down { left: 30px; }
  .io-phone-dpad .io-dpad-select { left: 29px; }

  .io-phone-bottom {
    padding-right: 12px;
    padding-left: 12px;
  }

  .io-phone-keypad {
    column-gap: 6px;
  }
}

@media screen and (max-width: 720px) and (max-height: 760px) {
  .io-phone {
    height: 680px;
  }

  .io-phone-stage {
    align-items: flex-start;
  }

  .io-phone-top {
    grid-template-rows: 20px minmax(0, 1fr) 82px;
    padding-top: 7px;
  }

  .io-phone-bottom {
    padding-top: 9px;
    padding-bottom: 7px;
  }

  .io-phone-keypad {
    gap-top: 5px;
    gap-bottom: 5px;
  }
}

@media screen and (max-width: 720px) and (orientation: landscape) {
  .io-mobile-portfolio {
    overflow: auto;
  }

  .io-phone-stage {
    min-width: 390px;
  }

  .io-phone {
    height: 680px;
  }
}

/* Build 8: expanded touch-first mobile Portfolio */
@media screen and (max-width: 720px) {
  .io-phone {
    grid-template-rows: minmax(0, 1fr);
    height: max(620px, 100dvh);
    max-height: 960px;
    background: var(--io-phone-silver);
    border-radius: 54px 54px 66px 66px;
  }

  .io-phone-top {
    grid-template-rows: 24px minmax(0, 1fr) 96px;
    height: 100%;
    padding: 10px 13px 12px;
    border-bottom: 0;
    border-radius: 49px 49px 61px 61px;
  }

  .io-phone-display {
    margin: 0 3px 8px;
    border-radius: 29px 29px 34px 34px;
  }

  .io-phone-screen {
    inset: 0 0 48px;
    padding: 12px 13px 18px;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .io-phone-soft-labels {
    height: 48px;
  }

  .io-phone-soft-labels button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 48px;
    padding: 0 8px;
    color: var(--io-lcd-dark);
    background: var(--io-lcd);
    border: 0;
    border-radius: 0;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    touch-action: manipulation;
  }

  .io-phone-soft-labels button + button {
    border-left: 2px dotted var(--io-lcd-dark);
  }

  .io-phone-soft-labels button:active,
  .io-phone-soft-labels button:focus-visible {
    color: var(--io-lcd);
    background: var(--io-lcd-dark);
  }

  .io-phone-soft-labels span {
    pointer-events: none;
  }

  .io-mobile-choice,
  .io-phone-route-key,
  .io-phone-dpad button {
    touch-action: manipulation;
  }

  .io-mobile-menu {
    gap: 5px;
  }

  .io-mobile-menu .io-mobile-choice {
    min-height: 48px;
    padding: 7px 8px;
    border-bottom: 1px dotted var(--io-lcd-dark);
  }

  .io-mobile-menu .io-mobile-choice > strong {
    font-size: clamp(11px, 3.5vw, 15px);
  }

  .io-mobile-case-list .io-mobile-choice {
    min-height: 52px;
    padding: 8px 7px;
  }

  .io-mobile-case-list .io-mobile-choice strong {
    font-size: 11px;
    line-height: 1.25;
  }

  .io-mobile-detail-actions .io-mobile-choice,
  .io-mobile-screen-link {
    min-height: 44px;
    padding: 8px;
  }

  .io-mobile-overview-lede {
    padding: 8px;
    border: 1px solid var(--io-lcd-dark);
    font-size: 10px !important;
    font-weight: 900;
  }

  .io-mobile-overview-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin: 8px 0 12px;
  }

  .io-mobile-overview-actions .io-mobile-screen-link {
    margin: 0;
  }

  .io-mobile-facts {
    display: grid;
    gap: 6px;
  }

  .io-mobile-facts section {
    padding: 8px;
    border: 1px dotted var(--io-lcd-dark);
  }

  .io-mobile-facts h2,
  .io-mobile-personal-section h2 {
    margin: 0 0 4px;
    color: var(--io-lcd-dark);
    font-family: inherit;
    font-size: 10px;
  }

  .io-mobile-facts p {
    margin: 0;
  }

  .io-mobile-about > p {
    font-size: 10px;
    line-height: 1.5;
  }

  .io-mobile-personal-section {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 2px dotted var(--io-lcd-dark);
  }

  .io-mobile-personal-gallery,
  .io-mobile-support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .io-mobile-personal-gallery img,
  .io-mobile-support-grid img {
    display: block;
    width: 100%;
    height: 112px;
    border: 2px solid var(--io-lcd-dark);
    mix-blend-mode: multiply;
    object-fit: cover;
    filter: grayscale(1) contrast(1.55) sepia(1) hue-rotate(30deg) saturate(0.55);
  }

  .io-mobile-support-grid figure {
    margin: 0;
  }

  .io-mobile-support-grid figcaption {
    padding: 4px 2px 8px;
    font-size: 7px;
    font-weight: 900;
    line-height: 1.25;
  }

  .io-phone-navigation {
    grid-template-columns: minmax(70px, 1fr) 120px minmax(70px, 1fr);
    gap: 9px;
    padding: 8px 3px 2px;
  }

  .io-phone-route-key {
    height: 64px;
  }

  .io-phone-dpad {
    width: 120px;
    height: 82px;
  }

  .io-dpad-up,
  .io-dpad-down {
    left: 38px;
  }

  .io-phone-dpad .io-dpad-select {
    top: 17px;
    left: 36px;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .io-dpad-left,
  .io-dpad-right {
    top: 19px;
  }

  .io-phone-bottom,
  .io-phone-keypad,
  .io-phone-instructions {
    display: none !important;
  }
}

@media screen and (max-width: 380px) {
  .io-phone-navigation {
    grid-template-columns: minmax(62px, 1fr) 106px minmax(62px, 1fr);
    gap: 5px;
  }

  .io-phone-dpad {
    width: 106px;
  }

  .io-dpad-up,
  .io-dpad-down {
    left: 31px;
  }

  .io-phone-dpad .io-dpad-select {
    left: 29px;
  }

  .io-mobile-overview-actions {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 720px) and (max-height: 700px) {
  .io-phone {
    height: 620px;
  }

  .io-phone-top {
    grid-template-rows: 20px minmax(0, 1fr) 88px;
    padding-top: 7px;
  }

  .io-phone-navigation {
    padding-top: 4px;
  }

  .io-phone-route-key {
    height: 58px;
  }
}
