/* Alejandro-specific content layered over Ernesto's original neutral/red system. */
:root {
  --paper: #f4f4f4;
  --paper-2: #ececec;
  --paper-3: #e2e2e2;
  --ink: #0a0a0a;
  --ink-2: #5a5a5a;
  --rule: #cfcfcf;
  --rule-2: #9a9a9a;
  --mark: #e0241b;
  --mark-ink: #b11a12;
  --signal: #315ec9;
  --signal-soft: #aebfee;
}

body.dark-theme {
  --paper: #0e0e0e;
  --paper-2: #161616;
  --paper-3: #1f1f1f;
  --ink: #f0f0f0;
  --ink-2: #9a9a9a;
  --rule: #2a2a2a;
  --rule-2: #3f3f3f;
  --mark: #e0241b;
  --mark-ink: #ff5b52;
  --signal: #7195ff;
  --signal-soft: #b8c7ff;
}

body.light-theme { --intro-shadow: rgba(10, 10, 10, 0.12); }
body.dark-theme { --intro-shadow: rgba(0, 0, 0, 0.42); }

::selection { background: var(--mark); color: var(--paper); }

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

/* Intro: profile-aware interactive data field kept quiet behind the auth card. */
.bio-canvas-container {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: none;
  opacity: 0;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 25% 42%, color-mix(in srgb, var(--mark) 7%, transparent), transparent 32%),
    radial-gradient(circle at 72% 66%, color-mix(in srgb, var(--signal) 6%, transparent), transparent 30%),
    var(--paper-2);
  transition: opacity 260ms var(--ease-snap);
}

.bio-canvas-container.active {
  display: block;
  opacity: 1;
}

.bio-canvas-container::before,
.bio-canvas-container::after { display: none; }

.bio-canvas-container canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.56;
  filter: saturate(0.92) contrast(0.98);
}

body.dark-theme .bio-canvas-container canvas {
  opacity: 0.48;
  filter: saturate(0.88) contrast(1.06);
}

/* The scientific-computing mode uses the same palette with a measurement-field
   treatment; the bioinformatics sequence mode retains the default styling. */
html[data-visual-mode="measurement"] .bio-canvas-container {
  background:
    radial-gradient(circle at 22% 38%, color-mix(in srgb, var(--signal) 9%, transparent), transparent 34%),
    radial-gradient(circle at 76% 70%, color-mix(in srgb, var(--mark) 6%, transparent), transparent 32%),
    var(--paper-2);
}

html[data-visual-mode="measurement"] .bio-canvas-container canvas {
  opacity: 0.58;
  filter: saturate(0.86) contrast(1.02);
}

html[data-visual-mode="measurement"] .sequence-console {
  border-left-color: var(--signal);
}

html[data-visual-mode="measurement"] .sequence-console[data-state="result"] {
  border-left-color: var(--mark);
}

/* Login: same clean card language as Ernesto's portfolio. */
.auth-container {
  z-index: 2;
  min-height: 100svh;
  height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
  background: transparent;
  overflow-x: hidden;
  overflow-y: auto;
  pointer-events: none;
  perspective: 1400px;
}

.auth-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --depth-x: 0px;
  --depth-y: 0px;
  --card-x: 50%;
  --card-y: 50%;
  width: 100%;
  max-width: 420px;
  margin: 0;
  flex: 0 0 auto;
  padding: var(--s-6);
  color: var(--ink);
  background:
    radial-gradient(
      220px circle at var(--card-x) var(--card-y),
      color-mix(in srgb, var(--signal) 4%, transparent),
      transparent 72%
    ),
    var(--paper);
  border: 1px solid var(--ink);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--paper) 70%, transparent) inset,
    0 18px 48px var(--intro-shadow);
  transform: perspective(1400px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transform-style: preserve-3d;
  transform-origin: center;
  transition:
    transform 320ms cubic-bezier(0.2, 0.75, 0.25, 1),
    border-color 180ms var(--ease-step),
    box-shadow 240ms var(--ease-step);
  will-change: transform;
  pointer-events: auto;
}

.auth-card::before { border-color: var(--mark); }
.auth-card::after { border-color: var(--signal); }

.auth-card.is-data-active {
  border-color: color-mix(in srgb, var(--signal) 48%, var(--ink));
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--paper) 70%, transparent) inset,
    0 0 0 1px color-mix(in srgb, var(--signal) 14%, transparent),
    calc(0px - var(--depth-x)) calc(20px - var(--depth-y)) 52px var(--intro-shadow);
  transition-duration: 80ms, 180ms, 180ms;
}

.auth-card.is-scanning {
  border-color: var(--signal);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--paper) 70%, transparent) inset,
    0 0 0 1px color-mix(in srgb, var(--signal) 22%, transparent),
    0 20px 54px var(--intro-shadow);
}

.auth-card.is-variant-called {
  border-color: var(--mark);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--paper) 70%, transparent) inset,
    0 0 0 1px color-mix(in srgb, var(--mark) 72%, transparent),
    0 20px 54px var(--intro-shadow);
}

.auth-card.is-analysis-called {
  border-color: var(--mark);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--paper) 70%, transparent) inset,
    0 0 0 1px color-mix(in srgb, var(--mark) 54%, transparent),
    0 20px 54px var(--intro-shadow);
}

.auth-card > * { transform: translateZ(5px); }

.auth-card .auth-header {
  transform: translate3d(var(--depth-x), var(--depth-y), 12px);
  transition: transform 180ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

.auth-header {
  grid-template-columns: 72px minmax(0, 1fr);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-color: var(--rule);
}

.auth-profile-image {
  display: block;
  aspect-ratio: 1;
  object-position: center 35%;
  background: var(--paper-2);
  box-shadow: 3px 3px 0 color-mix(in srgb, var(--signal) 24%, transparent);
}

.auth-header h1 {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.12;
  white-space: normal;
}

.auth-header h1::after { color: var(--mark); }
.auth-header p { color: var(--ink-2); }
.auth-body { gap: var(--s-3); }

.sequence-console {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--signal);
  text-align: left;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--paper) 68%, transparent) inset;
  transition:
    border-color var(--dur-1) var(--ease-step),
    background var(--dur-1) var(--ease-step),
    transform 120ms var(--ease-step),
    box-shadow 180ms var(--ease-step);
}

.sequence-console::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: -35%;
  width: 28%;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--signal) 13%, transparent),
    color-mix(in srgb, var(--mark) 8%, transparent),
    transparent
  );
  transform: skewX(-14deg);
}

.sequence-console-readout {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  justify-content: space-between;
}

.sequence-console:hover,
.sequence-console:focus-visible {
  border-color: var(--signal);
  background: var(--paper-3);
  box-shadow:
    0 1px 0 color-mix(in srgb, var(--paper) 68%, transparent) inset,
    0 0 0 2px color-mix(in srgb, var(--signal) 10%, transparent);
  outline: none;
}

.sequence-console:active { transform: translateY(1px); }

.sequence-console[data-state="scanning"] {
  cursor: progress;
  border-color: var(--signal);
  background: color-mix(in srgb, var(--signal) 5%, var(--paper-2));
}

.sequence-console[data-state="scanning"]::before {
  opacity: 1;
  animation: sequence-sweep 680ms cubic-bezier(0.25, 0.7, 0.25, 1) both;
}

.sequence-console[data-state="result"] {
  border-left-color: var(--mark);
}

.sequence-console-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  color: var(--signal);
  white-space: nowrap;
}

.sequence-console-status::before {
  content: '';
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 28%, transparent);
  animation: sequence-idle-pulse 2.6s ease-out infinite;
}

.sequence-console[data-state="scanning"] .sequence-console-status::before {
  animation-duration: 620ms;
}

.sequence-console[data-state="result"] .sequence-console-status {
  color: var(--mark);
}

.sequence-console[data-state="result"] .sequence-console-status::before {
  animation: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--mark) 14%, transparent);
}

.sequence-console strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--t-11);
  font-weight: 500;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: color 160ms var(--ease-step), letter-spacing 220ms var(--ease-step);
}

.sequence-console[data-state="scanning"] strong {
  color: var(--signal);
  letter-spacing: 0.16em;
}

.sequence-console > span:last-child {
  color: var(--mark);
  font-family: var(--font-mono);
  font-size: var(--t-11);
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  justify-self: start;
}

.sequence-console > span:last-child b { font-weight: 500; }

@keyframes sequence-sweep {
  0% { left: -35%; }
  100% { left: 112%; }
}

@keyframes sequence-idle-pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 28%, transparent); }
  54%, 100% { box-shadow: 0 0 0 5px transparent; }
}

/* A completed call includes depth and allele-frequency metrics. Give that
   wider result its own row so it never collides with the full sequence. */
.auth-card.is-variant-called .sequence-console {
  grid-template-columns: 1fr;
  gap: 7px;
}

.auth-card.is-variant-called .sequence-console-readout {
  width: 100%;
  justify-content: space-between;
}

.auth-card.is-variant-called .sequence-console > span:last-child {
  justify-self: start;
}

.auth-body .divider { margin: var(--s-1) 0; }

/* Desktop hero: pair the outpainted 4:5 portrait with a wider editorial frame. */
@media (min-width: 901px) {
  .hero-split-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-figure {
    min-height: 0;
    align-self: stretch;
  }

  .hero-figure img {
    flex: 1 1 0;
    min-height: 0;
    width: 100%;
    height: 0;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }
}

.project-section-intro {
  max-width: 68ch;
  margin-top: var(--s-3);
  color: var(--ink-2);
  font-family: var(--font-serif);
  font-size: var(--t-16);
}

/* Scientific projects without screenshots retain a restrained data marker. */
.project-data-preview {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 210px;
  overflow: hidden;
  background:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px),
    var(--paper-2);
  background-size: 24px 24px;
}

.project-data-preview span {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid var(--mark);
  border-radius: 50%;
  color: var(--mark);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.project-data-preview i {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--mark) 42%, transparent);
  border-radius: 50%;
}

.project-data-preview i:nth-of-type(1) { width: 138px; height: 138px; }
.project-data-preview i:nth-of-type(2) {
  width: 190px;
  height: 190px;
  border-color: color-mix(in srgb, var(--signal) 42%, transparent);
  border-style: dashed;
}
.project-data-preview i:nth-of-type(3) { width: 245px; height: 245px; opacity: 0.32; }

@media (max-width: 900px) {
  .hero-figure { min-height: 0; }
}

@media (max-width: 640px) {
  .auth-container { padding: 14px; }
  .auth-card { max-width: 430px; padding: var(--s-5); }
  .auth-header { grid-template-columns: 62px minmax(0, 1fr); }
  .auth-profile-image { width: 62px; height: 62px; }
  .auth-header p {
    max-width: 22ch;
    line-height: 1.35;
  }
  .sequence-console {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .sequence-console-readout {
    width: 100%;
    justify-content: space-between;
  }
  .sequence-console > span:last-child { justify-self: start; }

  .auth-card,
  .auth-card.is-data-active {
    transform: none;
    will-change: auto;
  }

  .auth-card .auth-header { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bio-canvas-container { transition: none; }

  .auth-card,
  .auth-card .auth-header,
  .sequence-console {
    transition: none;
  }

  .auth-card { transform: none; }
  .sequence-console::before,
  .sequence-console-status::before { animation: none !important; }
}

/* Project detail methods are a scannable toolset, not an unbroken text run. */
.project-modal .project-technologies {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
}

/* Six categories should read as a balanced 3 x 2 competency matrix. */
#skills .skills-container {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-modal .project-technologies h4 {
  margin: 0 0 var(--s-3);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: var(--t-11);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.project-modal .project-technologies .tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.project-modal .project-technology-tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--rule-2);
  background: var(--paper-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: var(--t-11);
  font-weight: 500;
  letter-spacing: 0.035em;
  line-height: 1.2;
}

/* Experience lives on its own instrument surface; cards read as distinct records. */
section#experience.section {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px),
    var(--paper-2);
  background-size: 36px 36px;
}

section#experience.section .section-header {
  position: relative;
  z-index: 2;
  background: var(--paper-2);
}

section#experience.section .timeline-container.horizontal-timeline {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: color-mix(in srgb, var(--paper) 82%, var(--paper-2));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--paper) 70%, transparent),
    inset 0 18px 44px color-mix(in srgb, var(--ink) 3%, transparent);
}

section#experience.section .timeline ol::before {
  background: var(--ink) !important;
  opacity: 0.56;
}

section#experience.section .timeline ol li::before {
  border-color: var(--paper) !important;
  background: var(--mark) !important;
  box-shadow: 0 0 0 2px var(--ink);
}

section#experience.section .timeline ol li .timeline-event-content {
  border: 1px solid var(--rule-2) !important;
  background: var(--paper) !important;
  box-shadow: 7px 7px 0 color-mix(in srgb, var(--ink) 8%, transparent);
}

section#experience.section .timeline ol li .timeline-event-content:hover,
section#experience.section .timeline ol li .timeline-event-content:focus-visible {
  border-color: var(--ink) !important;
  background: color-mix(in srgb, var(--paper) 92%, var(--signal-soft)) !important;
  box-shadow: 9px 9px 0 color-mix(in srgb, var(--signal) 18%, transparent);
}

section#experience.section .timeline-logo {
  border: 1px solid var(--rule) !important;
  background: #fff;
}

section#experience.section .timeline-date {
  color: var(--signal);
  font-weight: 700;
}

section#experience.section .timeline-scroll-arrows button {
  border-color: var(--ink);
  background: var(--paper);
  color: var(--ink);
}

@media (max-width: 700px) {
  #skills .skills-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-modal .project-technology-tag {
    min-height: 26px;
    padding: 3px 7px;
  }
}

@media (max-width: 480px) {
  #skills .skills-container {
    grid-template-columns: 1fr;
  }
}

/* The final experience is real content, not the spacer used by the legacy timeline. */
@media (min-width: 769px) {
  section#experience.section .timeline ol li:last-child::before {
    display: block !important;
  }
}

/* Phone timeline: one directional rail, with every record connected on its right. */
@media (max-width: 768px) {
  #experience .container,
  #projects .container {
    padding-right: 20px !important;
    padding-left: 20px !important;
  }

  section#experience.section .timeline-container.horizontal-timeline {
    width: 100% !important;
    height: auto !important;
    margin: var(--s-4) 0 0 !important;
    padding: var(--s-3) 0 var(--s-5) !important;
    overflow: visible !important;
    border: 1px solid var(--rule-2);
    background: var(--paper) !important;
    box-shadow: none;
  }

  section#experience.section .timeline-container.horizontal-timeline .timeline {
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  section#experience.section .timeline-container.horizontal-timeline .timeline ol {
    position: relative !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 10px 12px 26px 48px !important;
    box-sizing: border-box !important;
  }

  section#experience.section .timeline-container.horizontal-timeline .timeline ol::before {
    content: '' !important;
    position: absolute !important;
    display: block !important;
    top: 16px !important;
    bottom: 17px !important;
    left: 23px !important;
    width: 3px !important;
    height: auto !important;
    background: var(--mark) !important;
    opacity: 1 !important;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--mark) 18%, transparent);
  }

  /* Arrowhead makes the past-to-present reading direction explicit. */
  section#experience.section .timeline-container.horizontal-timeline .timeline ol::after {
    content: '';
    position: absolute;
    left: 17px;
    bottom: 7px;
    width: 0;
    height: 0;
    border-top: 10px solid var(--mark);
    border-right: 7px solid transparent;
    border-left: 7px solid transparent;
  }

  section#experience.section .timeline-container.horizontal-timeline .timeline ol li,
  section#experience.section .timeline-container.horizontal-timeline .timeline ol li:last-child {
    position: relative !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  section#experience.section .timeline-container.horizontal-timeline .timeline ol li::before {
    display: none !important;
  }

  section#experience.section .timeline-container.horizontal-timeline .timeline ol li::after {
    content: '' !important;
    position: absolute !important;
    z-index: 3;
    display: block !important;
    top: 23px !important;
    left: -31px !important;
    width: 13px !important;
    height: 13px !important;
    box-sizing: border-box;
    border: 2px solid var(--paper) !important;
    border-radius: 50%;
    background: var(--mark) !important;
    box-shadow: 0 0 0 2px var(--ink);
  }

  section#experience.section .timeline-container.horizontal-timeline .timeline ol li:last-child::after {
    border-radius: 0;
    background: var(--ink) !important;
    box-shadow: 0 0 0 2px var(--mark);
  }

  section#experience.section .timeline-container.horizontal-timeline .timeline ol li .timeline-event-content {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 16px 16px 17px !important;
    transform: none !important;
    box-sizing: border-box !important;
    border: 1px solid var(--ink) !important;
    background: var(--paper) !important;
    box-shadow: 5px 5px 0 color-mix(in srgb, var(--ink) 10%, transparent) !important;
  }

  section#experience.section .timeline-container.horizontal-timeline .timeline ol li .timeline-event-content::before {
    content: '' !important;
    position: absolute !important;
    display: block !important;
    top: 29px !important;
    right: auto !important;
    bottom: auto !important;
    left: -25px !important;
    width: 25px !important;
    height: 2px !important;
    border: 0 !important;
    background: var(--mark) !important;
  }

  section#experience.section .timeline-container.horizontal-timeline .timeline ol li .timeline-event-content::after {
    display: none !important;
  }

  section#experience.section .timeline-scroll-arrows {
    display: none !important;
  }

  /* Projects become discrete records instead of one continuous image-and-text strip. */
  #projects .projects-container {
    gap: 18px;
    padding: 2px 0 10px;
    border-top: 0;
    background: transparent;
  }

  #projects .project-card {
    width: 100%;
    min-height: 0;
    padding: 0 !important;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid var(--ink);
    background: var(--paper);
    box-shadow: 5px 5px 0 color-mix(in srgb, var(--ink) 10%, transparent);
  }

  #projects .project-image-container {
    border: 0;
    border-bottom: 1px solid var(--rule-2);
  }

  #projects .project-content {
    gap: 10px;
    padding: 16px 18px 20px;
  }

  #projects .project-card::after {
    right: 18px;
    bottom: 18px;
  }
}

/* Scientific-computing profile: lead with measurement and software evidence
   while preserving the original sequence-oriented bioinformatics layout. */
@media (min-width: 900px) {
  html[data-profile="scientific-computing"] .auth-container {
    justify-content: flex-end;
    padding-right: clamp(56px, 12vw, 180px);
  }
}

@media (min-width: 769px) {
  html[data-profile="scientific-computing"] section#experience .timeline-container.horizontal-timeline {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 46px 20px 52px !important;
    overflow: visible !important;
  }

  html[data-profile="scientific-computing"] section#experience .timeline {
    width: 100% !important;
    max-width: 1160px !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
  }

  html[data-profile="scientific-computing"] section#experience .timeline ol {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html[data-profile="scientific-computing"] section#experience .timeline ol::before,
  html[data-profile="scientific-computing"] section#experience .timeline ol::after,
  html[data-profile="scientific-computing"] section#experience .timeline ol li::before,
  html[data-profile="scientific-computing"] section#experience .timeline ol li::after,
  html[data-profile="scientific-computing"] section#experience .timeline-event-content::before,
  html[data-profile="scientific-computing"] section#experience .timeline-event-content::after {
    display: none !important;
  }

  html[data-profile="scientific-computing"] section#experience .timeline ol li,
  html[data-profile="scientific-computing"] section#experience .timeline ol li:last-child {
    position: relative !important;
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html[data-profile="scientific-computing"] section#experience .timeline-event-content,
  html[data-profile="scientific-computing"] section#experience .timeline ol li:nth-child(odd) .timeline-event-content,
  html[data-profile="scientific-computing"] section#experience .timeline ol li:nth-child(even) .timeline-event-content {
    position: relative !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 232px;
    height: 100% !important;
    margin: 0 !important;
    padding: 18px !important;
    transform: none !important;
    text-align: left;
  }

  html[data-profile="scientific-computing"] section#experience .timeline-event-content:hover,
  html[data-profile="scientific-computing"] section#experience .timeline-event-content:focus-visible {
    transform: translateY(-2px) !important;
  }

  html[data-profile="scientific-computing"] section#experience .timeline-date {
    margin-top: auto;
  }

  html[data-profile="scientific-computing"] section#experience .timeline-scroll-arrows {
    display: none !important;
  }

  html[data-profile="scientific-computing"] #projects .projects-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    border-top: 0;
  }

  html[data-profile="scientific-computing"] #projects .project-card.is-featured {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 0;
    min-height: 430px;
    padding: 0;
    border: 1px solid var(--ink);
    box-shadow: 5px 5px 0 color-mix(in srgb, var(--ink) 10%, transparent);
  }

  html[data-profile="scientific-computing"] #projects .project-card.is-featured .project-image-container {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    aspect-ratio: 16 / 10;
    border: 0;
    border-bottom: 1px solid var(--ink);
  }

  html[data-profile="scientific-computing"] #projects .project-card.is-featured .project-content {
    grid-column: 1;
    grid-row: 2;
    gap: 10px;
    padding: 18px 20px 22px;
  }

  html[data-profile="scientific-computing"] #projects .project-card.is-featured .project-description {
    -webkit-line-clamp: 4;
  }

  html[data-profile="scientific-computing"] #projects .project-card.is-featured::after {
    right: 18px;
    bottom: 18px;
  }

  html[data-profile="scientific-computing"] #projects .project-card:not(.is-featured),
  html[data-profile="scientific-computing"] #projects .guest-message {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  html[data-profile="scientific-computing"] .hero-split-text { order: 2; }
  html[data-profile="scientific-computing"] .hero-figure { order: 3; }

  html[data-profile="scientific-computing"] .vital-stats {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow: visible;
  }

  html[data-profile="scientific-computing"] .vital-stats > div {
    min-width: 0;
    padding: 7px 10px;
  }

  html[data-profile="scientific-computing"] .vital-stats > div:nth-child(2),
  html[data-profile="scientific-computing"] .vital-stats > div:nth-child(5) {
    display: none;
  }

  html[data-profile="scientific-computing"] .vital-stats > div:nth-child(4) {
    grid-column: 1 / -1;
    border-top: 1px solid var(--rule);
  }

  html[data-profile="scientific-computing"] .about-social {
    padding-right: 44px;
  }
}

@media (max-width: 768px) {
  html[data-profile="scientific-computing"] #projects .project-card:not(.is-featured) {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: minmax(112px, auto);
    gap: 0;
    min-height: 112px;
  }

  html[data-profile="scientific-computing"] #projects .project-card:not(.is-featured) .project-image-container {
    grid-column: 1;
    grid-row: 1;
    width: 104px;
    height: 100%;
    aspect-ratio: auto;
    border: 0;
    border-right: 1px solid var(--rule-2);
  }

  html[data-profile="scientific-computing"] #projects .project-card:not(.is-featured) .project-content {
    grid-column: 2;
    grid-row: 1;
    align-content: center;
    padding: 13px 30px 13px 14px;
  }

  html[data-profile="scientific-computing"] #projects .project-card:not(.is-featured) .project-description {
    display: none;
  }

  html[data-profile="scientific-computing"] #projects .project-card:not(.is-featured) .project-title {
    font-size: var(--t-14);
  }

  html[data-profile="scientific-computing"] #projects .project-card:not(.is-featured)::after {
    right: 12px;
    bottom: 50%;
    transform: translateY(50%);
  }
}
