:root {
  --bg: #0f1115;
  --bg-alt: #161a21;
  --text: #eaecef;
  --text-muted: #9aa0aa;
  --accent: #5b8cff;
  --border: #2a2f3a;
  --max-width: 860px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  z-index: 10;
  transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
  transition: padding 0.3s ease;
}

.site-header.scrolled {
  background: rgba(15, 17, 21, 0.97);
}

.site-header.scrolled .header-inner {
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  align-items: center;
}

.site-header nav a {
  position: relative;
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.site-header nav a:hover {
  color: var(--accent);
}

.site-header nav a:hover::after {
  width: 100%;
}

.site-header nav a.active {
  color: var(--accent);
}

.site-header nav a.active::after {
  width: 100%;
}


/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(91, 140, 255, 0.16), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(91, 140, 255, 0.1), transparent 60%);
  animation: heroDrift 18s ease-in-out infinite;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

@keyframes heroDrift {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(3%, -3%) rotate(8deg);
  }
}

/* Circuit-board motif — a nod to electronic engineering rather than
   generic decoration. Thin traces sit behind the hero content; a few
   carry an animated "current" pulse along their dash pattern. */
.hero-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.circuit-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  opacity: 0.16;
}

.circuit-dot {
  fill: var(--accent);
  opacity: 0.22;
}

.circuit-pulse {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.25;
  stroke-linecap: round;
  opacity: 0.8;
  stroke-dasharray: 14 500;
  animation-name: circuitFlow;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes circuitFlow {
  to {
    stroke-dashoffset: -514;
  }
}

.hero-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 1.25rem;
  border: 2px solid var(--accent);
  animation: heroFadeUp 0.8s ease both;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.25rem;
  animation: heroFadeUp 0.8s ease both;
  animation-delay: 0.1s;
}

.subtitle {
  color: var(--accent);
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1.25rem;
  min-height: 1.5em;
  animation: heroFadeUp 0.8s ease both;
  animation-delay: 0.3s;
}

.cursor {
  animation: blink 1s step-start infinite;
  transition: opacity 0.6s ease;
}

.cursor.cursor-done {
  animation: none;
  opacity: 0;
}

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

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor {
    animation: none;
    transition: none;
  }

  .circuit-pulse {
    animation: none;
  }

  .hero::before {
    animation: none;
  }

  .hero-photo,
  .hero h1,
  .subtitle,
  .hero-text,
  .hero .btn {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.hero-text {
  max-width: 560px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  animation: heroFadeUp 0.8s ease both;
  animation-delay: 0.5s;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero .btn {
  animation: heroFadeUp 0.8s ease both;
  animation-delay: 0.7s;
}

.btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section h2 {
  margin-bottom: 1.5rem;
}

/* Paged navigation — one tab at a time, routed by URL hash */
main > [data-page] {
  display: none;
}

main > [data-page].is-active {
  display: block;
  animation: page-in 0.35s ease both;
}

@keyframes page-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  main > [data-page].is-active {
    animation: none;
  }
}

/* Timeline (Education) */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline > li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.timeline > li:hover {
  background: rgba(91, 140, 255, 0.06);
  padding-left: 0.5rem;
}

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

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.timeline-logo {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
}

.timeline-header h3 {
  margin: 0;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.timeline-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.timeline-place {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
}

.timeline-courses {
  margin: 0.6rem 0 0;
}

.timeline-courses-label {
  display: block;
  margin: 0 0 0.4rem;
  font-family: ui-monospace, "SFMono-Regular", "Consolas", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.7;
}

.timeline-courses .project-tags li {
  cursor: default;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.timeline-courses .project-tags li:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(91, 140, 255, 0.1);
  transform: translateY(-1px);
}

/* Dot timeline (Education, Experience) — vertical connector line with a
   dot per entry; an in-progress entry can be highlighted via
   .timeline-dot-current. Hover swaps the shared boxy highlight for a
   lighter accent on the dot + title, matching the site's flatter look. */
.dot-timeline {
  position: relative;
  padding-left: 28px;
}

.dot-timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--border);
}

.dot-timeline > li {
  position: relative;
}

.dot-timeline > li:hover {
  padding-left: 0;
  background: none;
}

.dot-timeline > li:hover .timeline-dot {
  border-color: var(--accent);
}

.dot-timeline > li:hover h3 {
  color: var(--accent);
}

.timeline-dot {
  position: absolute;
  left: -27px;
  top: 1.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  transition: border-color 0.2s ease;
}

.timeline-dot-current {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.15);
}

/* Skills */
.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.skill-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--group-color, var(--accent));
  flex-shrink: 0;
}

.skill-badge:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: var(--group-color, var(--accent));
  background: var(--group-color-soft, rgba(91, 140, 255, 0.08));
  box-shadow: 0 6px 16px -4px var(--group-color-soft, rgba(91, 140, 255, 0.3));
}

/* A skill demonstrated by a real project links straight to it instead of
   just naming the tool. */
.skill-badge-linked {
  text-decoration: none;
  cursor: pointer;
}

.skill-badge-link-icon {
  color: var(--group-color, var(--accent));
  font-size: 0.85em;
}

/* Label beside the badges rather than stacked above them: two groups on one
   row each keep Skills a quick glance on the home page instead of a block. */
.skill-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.1rem;
}

.skill-group:last-child {
  margin-bottom: 0;
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 0 0 13rem;
}

.skill-group-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.skill-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--group-color-soft, rgba(91, 140, 255, 0.15));
  flex-shrink: 0;
}

.skill-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: var(--group-color, var(--accent));
}

/* Projects */
.placeholder-note {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* Home page teaser for the Projects tab */
.preview-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  border-top: 1px solid var(--border);
}

.preview-list a {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: baseline;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: padding-left 0.2s ease, border-color 0.2s ease;
}

.preview-index {
  font-family: ui-monospace, "SFMono-Regular", "Consolas", monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.65;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.preview-list a:hover .preview-index,
.preview-list a:focus-visible .preview-index {
  color: var(--accent);
  opacity: 1;
}

.preview-list a:hover,
.preview-list a:focus-visible {
  padding-left: 0.6rem;
  border-color: var(--accent);
}

.preview-title {
  display: block;
  font-weight: 600;
}

/* Visible at rest, not only on hover: without it the rows read as plain
   paragraphs and nothing says they are links. */
.preview-title::after {
  content: " \2192";
  color: var(--accent);
  opacity: 0.35;
  transition: opacity 0.2s ease;
}

.preview-list a:hover .preview-title::after,
.preview-list a:focus-visible .preview-title::after {
  opacity: 1;
}

.preview-meta {
  display: block;
  margin: 0.15rem 0 0.3rem;
  font-family: ui-monospace, "SFMono-Regular", "Consolas", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.8;
}

.preview-note {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
}

@media (prefers-reduced-motion: reduce) {
  .preview-list a,
  .preview-index,
  .preview-title::after {
    transition: none;
  }

  .preview-list a:hover,
  .preview-list a:focus-visible {
    padding-left: 0;
  }
}

/* One card per row, not a 2-up grid: the projects read as a single scroll line
   that stays legible however many get added, and no card is left orphaned on a
   half-empty last row when the count is odd. */
.project-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  overflow: hidden;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--bg);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card-clickable {
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(91, 140, 255, 0.15);
}

/* The image column takes its height from the text beside it, so `min-height`
   is what stops a short description from squashing it into a strip. */
.project-visual {
  position: relative;
  display: block;
  flex: 0 0 40%;
  min-height: 240px;
  background: var(--bg-alt);
  border-right: 1px dashed var(--border);
  overflow: hidden;
}

.project-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Plot thumbnails (AICD, thesis) are meant to be read, not just glanced at.
   The whole image is the trigger — no icon sitting on top of it — with a
   hint label that only appears on hover/focus so the card stays clean at
   rest. Opens the same image full-size in the lightbox below. */
.visual-zoomable {
  all: unset;
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.visual-zoomable img {
  transition: transform 0.35s ease;
}

.visual-zoomable:hover img,
.visual-zoomable:focus-visible img {
  transform: scale(1.06);
}

.visual-zoom-hint {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(10, 11, 14, 0.85), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.visual-zoom-hint svg {
  width: 0.9rem;
  height: 0.9rem;
  flex-shrink: 0;
}

.visual-zoomable:hover .visual-zoom-hint,
.visual-zoomable:focus-visible .visual-zoom-hint {
  opacity: 1;
  transform: none;
}

/* Full-screen preview of a plot image, opened by .visual-zoomable */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: rgba(10, 11, 14, 0.92);
  cursor: zoom-out;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Live, non-interactive preview of the real Leaflet map — same source data
   as mountains/data.js, so it can't drift out of sync with a screenshot. */
#home-mini-map {
  width: 100%;
  height: 100%;
}

.map-preview {
  position: relative;
}

.map-credit {
  position: absolute;
  right: 0.35rem;
  bottom: 0.25rem;
  padding: 0 0.3rem;
  border-radius: 3px;
  background: rgba(15, 17, 21, 0.7);
  color: var(--text-muted);
  font-size: 0.6rem;
  line-height: 1.5;
}

.project-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem;
}

/* Echoes the "Selected work" teaser's 01/02/03 numbering, so ranking by
   order reads the same way on both the teaser and the full Projects list. */
.project-index {
  display: block;
  font-family: ui-monospace, "SFMono-Regular", "Consolas", monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.65;
  margin-bottom: 0.3rem;
}

.project-card h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Year + context under the title — the section used to say what was built
   but never when or in what capacity. */
.project-meta {
  margin: 0 0 0.65rem;
  font-family: ui-monospace, "SFMono-Regular", "Consolas", monospace;
  font-size: 0.76rem;
  color: var(--text-muted);
  opacity: 0.75;
}

/* A handful of hard numbers up top, so the card reads as measured work
   within the few seconds a recruiter actually spends scanning it — the
   same numbers used to live a click away inside each project's mini-page. */
.project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.project-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.project-stat-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.project-stat-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0.9rem 0 0;
}

.project-tags li {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.project-link {
  align-self: flex-start;
  margin-top: 0.85rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}

/* Only Mountains has real, browsable source to point to, so this stays a
   secondary/quiet link beside the primary "View project" one rather than a
   treatment every card gets. */
.project-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.project-links .project-link {
  margin-top: 0;
}

.project-link-secondary {
  color: var(--text-muted);
}

.project-link-secondary:hover {
  color: var(--accent);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

.footer-name {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0 1.25rem;
}

.footer-social a {
  display: inline-flex;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--accent);
}

.footer-social svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
}

/* Scroll reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children within a revealed section */
.project-card,
.skill-badge,
.timeline > li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible .project-card,
.reveal.is-visible .skill-badge,
.reveal.is-visible .timeline > li {
  opacity: 1;
  transform: none;
}

.project-grid .project-card:nth-child(2) { transition-delay: 0.08s; }
.project-grid .project-card:nth-child(3) { transition-delay: 0.16s; }
.skill-list .skill-badge:nth-child(2) { transition-delay: 0.05s; }
.skill-list .skill-badge:nth-child(3) { transition-delay: 0.1s; }
.skill-list .skill-badge:nth-child(4) { transition-delay: 0.15s; }
.timeline > li:nth-child(2) { transition-delay: 0.08s; }
.timeline > li:nth-child(3) { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .project-card,
  .skill-badge,
  .timeline > li {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .visual-zoomable img,
  .visual-zoom-hint {
    transition: none;
  }

  .visual-zoomable:hover img {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Responsive */
@media (max-width: 700px) {
  .header-inner {
    position: relative;
    flex-wrap: nowrap;
  }

  .hero-circuit {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.5rem 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-header nav.nav-open {
    max-height: 400px;
  }

  .site-header nav a {
    margin: 0.5rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .project-card {
    flex-direction: column;
  }

  .project-visual {
    flex: none;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: none;
    border-bottom: 1px dashed var(--border);
  }

  .skill-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
  }

  .skill-group-header {
    flex: none;
  }
}

/* Print */
@media print {
  .site-header,
  .cursor,
  .hero::before,
  .hero-circuit,
  .btn {
    display: none !important;
  }

  main > [data-page] {
    display: block;
    animation: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section,
  .section.alt {
    background: #fff;
    padding: 1rem 0;
  }

  .hero {
    padding: 0.5rem 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .reveal,
  .project-card,
  .skill-badge,
  .timeline > li {
    opacity: 1 !important;
    transform: none !important;
  }

  .project-card,
  .skill-badge {
    border-color: #ccc;
    box-shadow: none;
  }

  .site-footer {
    border-top: 1px solid #ccc;
  }
}
