@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=JetBrains+Mono:wght@400&display=swap");

:root {
  color-scheme: dark;
  --background: #0a0a0c;
  --panel: #111113;
  --panel-subtle: rgba(10, 10, 12, 0.5);
  --text: #e5e5e7;
  --text-strong: #f4f4f5;
  --text-soft: #d4d4d8;
  --text-muted: #71717a;
  --text-faint: #52525b;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --accent: #7c3aed;
  --accent-light: #d8b4fe;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  --radius: 1rem;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

:root[data-theme="light"] {
  color-scheme: light;
  --background: #f4f4f5;
  --panel: #ffffff;
  --panel-subtle: rgba(244, 244, 245, 0.72);
  --text: #27272a;
  --text-strong: #18181b;
  --text-soft: #3f3f46;
  --text-muted: #71717a;
  --text-faint: #a1a1aa;
  --border: rgba(24, 24, 27, 0.08);
  --border-strong: rgba(24, 24, 27, 0.14);
  --shadow: 0 12px 32px rgba(24, 24, 27, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 2rem;
  background: var(--background);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  transition: background-color 200ms ease, color 200ms ease;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(168, 85, 247, 0.3);
  color: white;
}

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

.portfolio-shell {
  width: min(100%, 1200px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.portfolio-nav {
  min-height: 58px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.identity,
.nav-tools,
.language-picker,
.local-time,
.theme-toggle {
  display: flex;
  align-items: center;
}

.identity {
  min-width: 0;
  gap: 0.75rem;
  padding-left: 0.5rem;
  color: var(--text-soft);
  white-space: nowrap;
}

.identity__avatar {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: #27272a;
  object-fit: cover;
  object-position: 50% 28%;
}

.nav-tools {
  gap: 1rem;
}

.language-picker,
.local-time,
.theme-toggle {
  min-height: 32px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: #a1a1aa;
  font-size: 0.75rem;
}

:root[data-theme="light"] .language-picker,
:root[data-theme="light"] .local-time,
:root[data-theme="light"] .theme-toggle {
  background: rgba(244, 244, 245, 0.8);
  color: var(--text-muted);
}

.language-picker {
  position: relative;
  gap: 0.25rem;
  padding: 0.375rem 0.45rem 0.375rem 0.75rem;
}

.language-picker svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.language-picker select {
  min-width: 2.75rem;
  padding: 0 1rem 0 0.35rem;
  border: 0;
  outline: 0;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) calc(100% - 6px) 48% / 4px 4px no-repeat,
    linear-gradient(135deg, currentColor 50%, transparent 50%) calc(100% - 2px) 48% / 4px 4px no-repeat;
  color: inherit;
  font-size: 0.75rem;
  cursor: pointer;
}

.language-picker:focus-within {
  border-color: rgba(168, 85, 247, 0.45);
  color: var(--text-soft);
}

.local-time {
  gap: 0.75rem;
  padding: 0.375rem 1rem;
}

.local-time svg {
  width: 0.875rem;
  height: 0.875rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.theme-toggle {
  gap: 0.5rem;
  padding: 0.375rem 1rem 0.375rem 0.375rem;
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--text-soft);
  border-color: var(--border-strong);
}

.theme-toggle__track {
  width: 1.75rem;
  height: 1rem;
  padding: 2px;
  display: flex;
  justify-content: flex-end;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
}

.theme-toggle__track span {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease;
}

:root[data-theme="light"] .theme-toggle__track {
  justify-content: flex-start;
  background: #d4d4d8;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.portfolio-grid--top {
  min-height: 340px;
}

.portfolio-grid--bottom {
  min-height: 300px;
}

.code-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
}

.code-card__lines {
  min-width: 3rem;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-right: 1px solid var(--border);
  background: var(--panel-subtle);
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.6;
  text-align: right;
  user-select: none;
}

.code-card__content {
  width: 100%;
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
  color: #a1a1aa;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.6;
}

.code-keyword { color: #f472b6; }
.code-class,
.code-constant { color: #a5b4fc; }
.code-method { color: #60a5fa; }
.code-instance { color: #d8b4fe; }
.code-global { color: #fbbf24; }
.code-operator { color: #a1a1aa; }
.code-string { color: #a5b4fc; }
.code-value { color: #86efac; }
.code-name { color: var(--text-soft); }
.code-punctuation { color: #a1a1aa; }

.code-cursor {
  animation: blink 1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.skills-card {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: linear-gradient(to bottom, transparent, rgba(17, 17, 19, 0.5));
}

.skills-marquee {
  display: grid;
  gap: 2.5rem;
  padding: 2.5rem 0 3.5rem;
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}

.skill-lane {
  width: 100%;
  overflow: hidden;
}

.skill-lane__track {
  width: max-content;
  display: flex;
  gap: 1rem;
  animation: skill-marquee 18s linear infinite;
  will-change: transform;
}

.skill-lane--reverse .skill-lane__track {
  animation-direction: reverse;
  animation-duration: 22s;
}

.skills-card:hover .skill-lane__track,
.skills-card:focus-within .skill-lane__track {
  animation-play-state: paused;
}

.skill-lane__sequence {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill-pill {
  padding: 0.375rem 1rem;
  flex: none;
  border: 1px solid color-mix(in srgb, var(--skill-color) 45%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--skill-color) 12%, transparent);
  color: var(--skill-color);
  font-size: 0.75rem;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  transition: transform 150ms ease;
}

.skill-pill:hover {
  transform: translateY(-2px);
}

.skills-card__all {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.84);
  color: var(--text-muted);
  font-size: 0.65rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.skills-card__all:hover,
.skills-card__all:focus-visible {
  border-color: rgba(168, 85, 247, 0.4);
  color: var(--text-soft);
  outline: none;
}

@keyframes skill-marquee {
  to { transform: translateX(calc(-50% - 0.5rem)); }
}

.skills-modal {
  width: min(720px, calc(100vw - 2rem));
  max-height: min(82vh, 720px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 1.25rem;
  background: transparent;
  color: var(--text);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.65);
}

.skills-modal::backdrop {
  background: rgba(3, 3, 5, 0.78);
  backdrop-filter: blur(8px);
}

.skills-modal__surface {
  max-height: min(82vh, 720px);
  overflow-y: auto;
  background:
    radial-gradient(circle at 85% 0%, rgba(124, 58, 237, 0.1), transparent 34%),
    var(--panel);
}

.skills-modal__grid {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.skills-modal__item {
  min-width: 0;
  padding: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--panel-subtle);
}

.skills-modal__item > div {
  min-width: 0;
}

.skill-color-dot {
  width: 0.65rem;
  height: 0.65rem;
  flex: none;
  border-radius: 50%;
  background: var(--skill-color);
  box-shadow: 0 0 16px color-mix(in srgb, var(--skill-color) 60%, transparent);
}

.skills-modal__item strong,
.skills-modal__item small {
  display: block;
}

.skills-modal__item strong {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.skills-modal__item small {
  margin-top: 0.2rem;
  color: var(--text-faint);
  font-size: 0.65rem;
}

.experience-card {
  min-width: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.tabs {
  position: relative;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  padding: 0.375rem 1rem;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  cursor: pointer;
}

.tab:hover,
.tab:focus-visible {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  outline: none;
}

.tab--active {
  border-color: rgba(76, 45, 179, 0.5);
  background: #2d1b69;
  color: #d8b4fe;
  box-shadow: 0 0 15px rgba(76, 45, 179, 0.2);
}

.timeline {
  flex: 1;
}

.timeline[hidden] {
  display: none;
}

.timeline__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px dashed var(--border-strong);
}

.timeline__item:first-child {
  padding-top: 0;
}

.timeline__item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.timeline__item strong,
.timeline__item span {
  display: block;
}

.timeline__item strong {
  color: var(--text-soft);
  font-size: 0.875rem;
  font-weight: 400;
}

.timeline__item span,
.timeline__item time {
  margin-top: 0.375rem;
  color: var(--text-faint);
  font-size: 0.75rem;
}

.timeline__item time {
  margin-top: 0;
  flex: none;
  font-family: var(--mono);
  text-align: right;
}

.map-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background-color: var(--panel);
  background-image:
    radial-gradient(ellipse at center, transparent 0%, var(--panel) 82%),
    radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-position: center;
  background-size: auto, 14px 14px;
}

:root[data-theme="light"] .map-card {
  background-image:
    radial-gradient(ellipse at center, transparent 0%, var(--panel) 82%),
    radial-gradient(circle, rgba(24, 24, 27, 0.09) 1px, transparent 1px);
}

.location-pin {
  position: absolute;
  top: 60%;
  left: 35%;
}

.location-pin__dot {
  position: relative;
  z-index: 2;
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.9);
}

.location-pin__pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.2);
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
  75%, 100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
}

.location-pin__tooltip {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  z-index: 3;
  padding: 0.375rem 0.75rem;
  transform: translateX(-50%);
  border: 1px solid var(--border-strong);
  border-radius: 0.375rem;
  background: #050505;
  color: #d4d4d8;
  font-size: 0.625rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 150ms ease;
}

.location-pin:hover .location-pin__tooltip,
.location-pin:focus-within .location-pin__tooltip {
  opacity: 1;
}

.access-card {
  position: relative;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.access-card__tab {
  position: absolute;
  top: 50%;
  left: -2.25rem;
  width: 2.25rem;
  height: 3rem;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: 0.75rem 0 0 0.75rem;
  background: var(--panel);
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
}

.access-card__tab svg,
.passcode-field svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--text-faint);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.access-card__content {
  padding-left: 0.5rem;
}

.access-card h2 {
  margin: 0 0 1.25rem;
  color: var(--text-soft);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.passcode-field {
  position: relative;
  display: block;
  margin-bottom: 1.25rem;
}

.passcode-field svg {
  position: absolute;
  top: 50%;
  left: 0.875rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.passcode-field input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.75rem;
  outline: none;
  background: var(--panel-subtle);
  color: var(--text-soft);
  font-size: 0.875rem;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.passcode-field input::placeholder {
  color: var(--text-faint);
}

.passcode-field input:focus {
  border-color: rgba(168, 85, 247, 0.5);
  background: var(--background);
}

.access-card p {
  margin: 0 0 1.5rem;
  color: var(--text-faint);
  font-size: 0.75rem;
  line-height: 1.7;
}

.access-card button,
.access-card input[type="submit"] {
  width: fit-content;
  padding: 0.625rem 1.25rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.75rem;
  background: var(--background);
  color: var(--text-soft);
  font-size: 0.75rem;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.access-card button:hover,
.access-card button:focus-visible,
.access-card input[type="submit"]:hover,
.access-card input[type="submit"]:focus-visible {
  border-color: rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.08);
  outline: none;
}

.access-card .access-card__feedback {
  margin: 0.75rem 0 0;
  color: #a78bfa;
}

.documents-card {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.documents-grid {
  width: 100%;
  max-width: 22rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.document {
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-faint);
  font-size: 0.625rem;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: color 150ms ease;
}

.document:hover,
.document:focus-visible {
  color: var(--text-soft);
  outline: none;
}

.document__icon {
  position: relative;
  width: 3rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 0.75rem;
  background: var(--panel-subtle);
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.document:hover .document__icon,
.document:focus-visible .document__icon {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.06);
}

.document__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.document:first-child .document__icon {
  color: rgba(96, 165, 250, 0.8);
}

.document__fold {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 0.875rem;
  height: 0.875rem;
  border-bottom: 1px solid var(--border-strong);
  border-left: 1px solid var(--border-strong);
  border-radius: 0 0 0 0.2rem;
  background: var(--panel);
}

.document__pdf {
  padding: 0.15rem 0.375rem;
  border-radius: 0.2rem;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  font-size: 0.5rem;
}

.portfolio-footer {
  margin-top: 0.25rem;
  padding: 1.25rem;
  border-radius: 2rem 2rem 1rem 1rem;
}

.portfolio-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  color: var(--text-faint);
  font-size: 0.75rem;
}

.portfolio-footer a {
  transition: color 150ms ease;
}

.portfolio-footer a:hover,
.portfolio-footer a:focus-visible {
  color: var(--text-soft);
  outline: none;
}

body.modal-open {
  overflow: hidden;
}

.document-modal {
  width: min(1080px, calc(100vw - 2rem));
  max-height: min(88vh, 820px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 1.25rem;
  background: transparent;
  color: var(--text);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.65);
}

.document-modal::backdrop {
  background: rgba(3, 3, 5, 0.78);
  backdrop-filter: blur(8px);
}

.document-modal__surface {
  max-height: min(88vh, 820px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 0%, rgba(124, 58, 237, 0.1), transparent 34%),
    var(--panel);
}

.document-modal__header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: none;
  border-bottom: 1px solid var(--border);
}

.document-modal__header span {
  display: block;
  margin-bottom: 0.25rem;
  color: #a78bfa;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.document-modal__header h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 1rem;
  font-weight: 500;
}

.document-modal__close {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--border-strong);
  border-radius: 0.65rem;
  background: var(--panel-subtle);
  color: var(--text-muted);
  cursor: pointer;
}

.document-modal__close:hover,
.document-modal__close:focus-visible {
  border-color: rgba(168, 85, 247, 0.4);
  color: var(--text-strong);
  outline: none;
}

.document-modal__close svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.document-modal__body {
  min-height: 0;
  padding: 1.5rem;
  overflow-y: auto;
}

.document-panel[hidden] {
  display: none;
}

.document-panel__lead {
  max-width: 70ch;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}

.document-panel__lead > :first-child {
  margin-top: 0;
}

.document-panel__lead > :last-child {
  margin-bottom: 0;
}

.document-panel__lead h1,
.document-panel__lead h2,
.document-panel__lead h3 {
  margin: 1.5rem 0 0.6rem;
  color: var(--text-strong);
  font-weight: 500;
  line-height: 1.3;
}

.document-panel__lead h1 { font-size: 1.25rem; }
.document-panel__lead h2 { font-size: 1.1rem; }
.document-panel__lead h3 { font-size: 1rem; }

.document-panel__lead p,
.document-panel__lead ul,
.document-panel__lead ol,
.document-panel__lead blockquote {
  margin: 0.75rem 0;
}

.document-panel__lead blockquote {
  padding-left: 1rem;
  border-left: 2px solid rgba(168, 85, 247, 0.5);
  color: var(--text-muted);
}

.document-panel__lead code {
  padding: 0.1rem 0.3rem;
  border-radius: 0.3rem;
  background: var(--panel-subtle);
  color: #c4b5fd;
  font-family: var(--mono);
  font-size: 0.85em;
}

.file-showcase__intro {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.file-showcase__intro > span {
  color: #a78bfa;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.file-showcase__intro > p {
  max-width: 42ch;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.6;
  text-align: right;
}

.experience-file__timeline {
  position: relative;
  display: grid;
  gap: 0;
}

.experience-file__timeline::before {
  position: absolute;
  top: 1.3rem;
  bottom: 1.3rem;
  left: 1.25rem;
  width: 1px;
  content: "";
  background: linear-gradient(#7c3aed, rgba(124, 58, 237, 0.08));
}

.experience-file__timeline article {
  position: relative;
  padding: 0 0 1rem;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
}

.experience-file__timeline article:last-child {
  padding-bottom: 0;
}

.experience-file__marker {
  position: relative;
  z-index: 1;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 50%;
  background: var(--panel);
  color: #c4b5fd;
  font-family: var(--mono);
  font-size: 0.65rem;
}

.experience-file__content {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), transparent 58%), var(--panel-subtle);
}

.experience-file__content header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.experience-file h3,
.skills-file h3,
.highlights-file h3,
.education-file h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: 0.9rem;
  font-weight: 500;
}

.experience-file__content header p,
.experience-file__content time,
.experience-file__location {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.experience-file__content time {
  flex: none;
  font-family: var(--mono);
}

.experience-file__location {
  display: block;
  color: #8b5cf6;
}

.experience-file__summary {
  margin-top: 0.7rem;
  color: var(--text-soft);
  font-size: 0.76rem;
  line-height: 1.65;
}

.experience-file__summary p {
  margin: 0;
}

.skills-file__groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.skills-file__groups section {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.08), transparent 42%),
    var(--panel-subtle);
}

.skills-file__groups section > header {
  margin-bottom: 0.85rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
}

.skills-file__groups section > header > span {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.7);
}

.skills-file__groups section > header small {
  color: var(--text-faint);
  font-family: var(--mono);
}

.skills-file__groups section > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.skills-file__pill {
  padding: 0.35rem 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid color-mix(in srgb, var(--skill-color) 28%, transparent);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--skill-color) 7%, transparent);
  color: var(--text-soft);
  font-size: 0.68rem;
}

.skills-file__pill i {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--skill-color);
}

.highlights-file__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.highlights-file__grid article {
  position: relative;
  min-height: 13rem;
  padding: 1.15rem;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: 1rem;
  background:
    linear-gradient(155deg, rgba(245, 158, 11, 0.12), transparent 55%),
    var(--panel-subtle);
}

.highlights-file__index {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: rgba(245, 158, 11, 0.38);
  font-family: var(--mono);
  font-size: 0.65rem;
}

.highlights-file__grid strong {
  margin: 1.4rem 0 1.2rem;
  display: block;
  color: #fbbf24;
  font-family: var(--mono);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.08em;
}

.highlights-file__grid h3 {
  margin-bottom: 0.45rem;
}

.highlights-file__grid article > div {
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.6;
}

.highlights-file__grid article > div p {
  margin: 0;
}

.projects-catalog__intro {
  align-items: flex-start;
}

.projects-catalog__intro > div > span {
  color: #a78bfa;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projects-catalog__intro p {
  max-width: 60ch;
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.projects-catalog__intro strong {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  white-space: nowrap;
}

.projects-catalog__search {
  position: relative;
  margin-bottom: 0.85rem;
}

.projects-catalog__search svg {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  width: 1rem;
  height: 1rem;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--text-faint);
  stroke-linecap: round;
  stroke-width: 1.6;
}

.projects-catalog__search input {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.6rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.7rem;
  outline: none;
  background: var(--panel-subtle);
  color: var(--text-strong);
  font: 0.78rem/1.4 var(--sans);
}

.projects-catalog__search input:focus {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.08);
}

.projects-catalog__filters {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.25rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
}

.projects-catalog__filters button {
  position: relative;
  padding: 0.65rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: none;
  border: 0;
  background: transparent;
  color: var(--text-faint);
  font: 0.68rem/1 var(--sans);
  cursor: pointer;
}

.projects-catalog__filters button::after {
  position: absolute;
  right: 0.65rem;
  bottom: -1px;
  left: 0.65rem;
  height: 2px;
  content: "";
  background: #60a5fa;
  opacity: 0;
}

.projects-catalog__filters button.is-active {
  color: var(--text-strong);
}

.projects-catalog__filters button.is-active::after {
  opacity: 1;
}

.projects-catalog__filters i,
.project-card__category i {
  width: 0.4rem;
  height: 0.4rem;
  flex: none;
  border-radius: 50%;
  background: var(--project-color);
  box-shadow: 0 0 10px color-mix(in srgb, var(--project-color) 55%, transparent);
}

.projects-catalog__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.project-card {
  min-height: 11.5rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-strong);
  border-radius: 0.8rem;
  background: var(--panel-subtle);
  transition: border-color 150ms ease, transform 150ms ease;
}

.project-card[hidden] {
  display: none;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.32);
}

.project-card > header,
.project-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.project-card__category {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.65rem;
}

.project-card > header small {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.project-card h3 {
  margin: 1rem 0 0.45rem;
  color: var(--text-strong);
  font-size: 0.95rem;
  font-weight: 550;
}

.project-card__description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.7rem;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.project-card__description p {
  margin: 0;
}

.project-card > footer {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.6rem;
}

.project-card > footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #93c5fd;
  font-family: var(--sans);
}

.project-card > footer svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.projects-catalog__empty {
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.education-file__list {
  display: grid;
  gap: 0.75rem;
}

.education-file__list article {
  padding: 1rem 1.2rem;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(45, 212, 191, 0.14);
  border-radius: 0.9rem;
  background:
    linear-gradient(90deg, rgba(20, 184, 166, 0.09), transparent 48%),
    var(--panel-subtle);
}

.education-file__year {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 0.8rem;
  color: #5eead4;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.education-file__list article span {
  color: #2dd4bf;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.education-file__list h3 {
  margin-top: 0.25rem;
}

.education-file__list p {
  margin: 0.3rem 0 0;
  color: var(--text-muted);
  font-size: 0.72rem;
}

.achievement-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.achievement-grid article,
.skill-groups article,
.education-list article {
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  background: var(--panel-subtle);
}

.achievement-grid article {
  padding: 1rem;
}

.achievement-grid strong,
.achievement-grid span {
  display: block;
}

.achievement-grid strong {
  margin-bottom: 0.4rem;
  color: var(--accent-light);
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 400;
}

.achievement-grid span,
.modal-timeline p,
.skill-groups p,
.education-list p {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.6;
}

.modal-timeline {
  position: relative;
}

.modal-timeline::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  bottom: 0.25rem;
  left: 6.25rem;
  width: 1px;
  background: var(--border-strong);
}

.modal-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 5.25rem 1fr;
  gap: 2rem;
  padding-bottom: 1.5rem;
}

.modal-timeline article:last-child {
  padding-bottom: 0;
}

.modal-timeline article::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 6rem;
  width: 0.5rem;
  height: 0.5rem;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.65);
}

.modal-timeline time {
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.modal-timeline h3,
.skill-groups h3,
.education-list h3 {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.875rem;
  font-weight: 500;
}

.modal-timeline span {
  display: block;
  margin-top: 0.25rem;
  color: #a78bfa;
  font-size: 0.7rem;
}

.modal-timeline p {
  margin: 0.6rem 0 0;
}

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

.skill-groups article,
.education-list article {
  padding: 1rem;
}

.skill-groups p,
.education-list p {
  margin: 0.5rem 0 0;
}

.education-list {
  display: grid;
  gap: 0.75rem;
}

.education-list article {
  position: relative;
}

.education-list article > span {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #a78bfa;
  font-family: var(--mono);
  font-size: 0.625rem;
}

.document-panel--resume > p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.resume-actions {
  margin-bottom: 1rem;
  display: flex;
  gap: 0.75rem;
}

.resume-actions a {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.625rem;
  background: var(--panel-subtle);
  color: var(--text-soft);
  font-size: 0.7rem;
}

.resume-actions a:hover,
.resume-actions a:focus-visible {
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.08);
  outline: none;
}

.document-panel--resume iframe {
  width: 100%;
  height: 58vh;
  min-height: 430px;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  background: white;
}

.document-panel iframe {
  width: 100%;
  height: 58vh;
  min-height: 430px;
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  background: white;
}

.document-preview-image {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: 0.875rem;
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.portfolio-notice,
.portfolio-empty {
  padding: 0.8rem 1rem;
  color: var(--text-soft);
  font-size: 0.75rem;
}

.portfolio-notice--notice {
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.06);
}

.portfolio-notice--alert {
  border-color: rgba(244, 63, 94, 0.24);
  background: rgba(244, 63, 94, 0.06);
}

@media (max-width: 1023px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .code-card,
  .experience-card,
  .map-card,
  .access-card,
  .documents-card {
    min-height: 300px;
  }

  .access-card__tab {
    display: none;
  }
}

@media (max-width: 639px) {
  body {
    padding: 1rem;
  }

  .portfolio-nav {
    align-items: flex-start;
  }

  .nav-tools {
    gap: 0.5rem;
  }

  .language-picker {
    padding-left: 0.55rem;
  }

  .local-time {
    display: none;
  }

  .theme-toggle {
    padding-right: 0.375rem;
  }

  .theme-toggle > [data-theme-target="label"] {
    display: none;
  }

  .identity > span:last-child {
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .code-card__content {
    padding: 1.25rem;
  }

  .experience-card,
  .access-card,
  .documents-card {
    padding: 1.25rem;
  }

  .timeline__item {
    flex-direction: column;
  }

  .timeline__item time {
    text-align: left;
  }

  .documents-grid {
    gap: 1.5rem 1rem;
  }

  .portfolio-footer nav {
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }

  .document-modal {
    width: calc(100vw - 1.5rem);
    max-height: 92vh;
  }

  .document-modal__surface {
    max-height: 92vh;
  }

  .document-modal__header,
  .document-modal__body {
    padding: 1rem;
  }

  .achievement-grid,
  .skill-groups {
    grid-template-columns: 1fr;
  }

  .modal-timeline::before {
    left: 0.25rem;
  }

  .modal-timeline article {
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 0 0 1.25rem 1.5rem;
  }

  .modal-timeline article::before {
    left: 0;
  }

  .education-list article {
    padding-top: 2.5rem;
  }

  .document-panel--resume iframe,
  .document-panel iframe {
    height: 60vh;
    min-height: 360px;
  }

  .skills-modal__grid {
    grid-template-columns: 1fr;
  }

  .file-showcase__intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .file-showcase__intro > p {
    text-align: left;
  }

  .skills-file__groups,
  .highlights-file__grid,
  .projects-catalog__grid {
    grid-template-columns: 1fr;
  }

  .highlights-file__grid article {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
