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


:root {
  --ink: #0f0f0e;
  --ink-muted: #6b6b65;
  --ink-faint: #c2c1ba;
  --paper: #f7f5f0;
  --paper-warm: #efece5;
  --rule: #d8d5cc;
  --accent: #1a1a18;
  --mono: 'JetBrains Mono', monospace;
  --display: 'Space Grotesk', sans-serif;
}

body.dark-mode {
  --ink: #f3f3f3;
  --ink-muted: #b0b0b0;
  --ink-faint: #6e6e6e;

  --paper: #131316;
  --paper-warm: #1b1b1f;

  --rule: #2a2a2e;
  --accent: #ffffff;
}

:root {
  --ink: #111111;
  --ink-muted: #555555;
  --ink-faint: #b5b5b5;

  --paper: #fdfaf3;
  --paper-warm: #f5f0e3;

  --rule: #e8e3d4;
  --accent: #000000;

  --pop-1: #ffd93d;
  --pop-2: #ff8a5b;
  --pop-3: #6dc9c1;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--display);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  font-weight: 400;
}

/* ─── GRID SYSTEM ─── */
.grid-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

/* ─── SIDEBAR ─── */
aside {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--rule);
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--paper);
  z-index: 10;
}

.theme-toggle {
  background: transparent;
  border: 1.5px solid var(--rule);
  border-radius: 999px;

  color: var(--ink-muted);

  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;

  padding: 9px 16px;

  cursor: pointer;

  transition:
    border-color 0.15s,
    color 0.15s,
    background 0.15s,
    transform 0.15s;
}

.theme-toggle:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}

/* Only the sidebar needs top spacing above the button (it sits below nav in
   a column); the detail-page topbar aligns it inline via flexbox instead. */
aside .theme-toggle {
  margin-top: 32px;
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1;
}

.logo-link { text-decoration: none; }

.logo-sub {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink-muted);
  margin-bottom: 40px;
  margin-top: 4px;
}

nav { display: flex; flex-direction: column; gap: 2px; }

nav a {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

nav a::before {
  content: '';
  width: 16px;
  height: 3px;
  background: var(--ink-faint);
  border-radius: 2px;
  transition: width 0.2s, background 0.2s;
  flex-shrink: 0;
}

nav a:hover, nav a.active {
  color: var(--ink);
}

nav a:hover::before, nav a.active::before {
  width: 28px;
  background: var(--ink);
}

.aside-footer {
  margin-top: auto;
  font-family: var(--display);
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: -0.005em;
}

.aside-footer a {
  color: var(--ink-faint);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  transition: color 0.15s;
}

.aside-footer a:hover { color: var(--ink-muted); }

/* ─── MAIN CONTENT ─── */
main { padding: 0; }

section {
  padding: 80px 64px;
  border-bottom: 1px solid var(--rule);
}

section:last-child { border-bottom: none; }

.section-label {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-faint);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--rule);
  border-radius: 2px;
  max-width: 80px;
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 580px) 320px;
  gap: 96px;
  justify-content: start;
  align-items: center;
  padding: 72px 64px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.hero-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background:
    linear-gradient(135deg, var(--pop-1) 0%, var(--pop-2) 55%, var(--pop-3) 110%);
  overflow: hidden;
  position: relative;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(2deg);
  transition: transform 0.2s;
  transform-style: preserve-3d;
}

.hero-image:hover { transform: rotate(0deg) translateY(-2px); }

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

.placeholder-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  pointer-events: none;
  text-align: center;
  padding: 16px;
}

.placeholder-icon {
  font-family: var(--display);
  font-weight: 700;
  font-size: 72px;
  letter-spacing: -0.05em;
  line-height: 1;
}

.hero-index {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-faint);
  margin-bottom: 24px;
}

.hero-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 104px);
  letter-spacing: -0.045em;
  line-height: 0.9;
  color: var(--ink);
  margin-bottom: 32px;
}

.hero-name .accent {
  color: var(--ink);
  position: relative;
  display: inline-block;
}

.hero-name .accent::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6%;
  height: 18%;
  background: var(--pop-1);
  z-index: -1;
  border-radius: 4px;
}

.hero-desc {
  max-width: 520px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-muted);
  margin-bottom: 40px;
}

.hero-desc a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-muted);
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  padding: 5px 14px;
  background: var(--paper-warm);
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}

.tag:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}

/* ─── ABOUT ─── */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 600px) 320px;
  gap: 48px;
  align-items: start;
}

.about-bio {
  max-width: 600px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-muted);
}

.about-bio a{ color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.about-bio strong {
  color: var(--ink);
  font-weight: 600;
}

.about-bio p + p { margin-top: 14px; }

.about-subhead {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  margin-bottom: 12px;
}

.about-subhead:first-child { margin-top: 0; }

.about-subhead::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--pop-2);
  border-radius: 2px;
  max-width: 40px;
}

.about-photo {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--pop-3) 0%, var(--pop-1) 100%);
  overflow: hidden;
  position: relative;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  align-self: start;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

/* ─── PROJECTS: FILTERS ─── */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.filter-chip {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-muted);
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  padding: 7px 16px;
  background: var(--paper-warm);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s, transform 0.15s;
}

.filter-chip:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: translateY(-1px);
}

.filter-chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

/* ─── PROJECTS: GRID ─── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

.project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform 0.15s, box-shadow 0.15s;
  transition-property: transform, box-shadow, opacity;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 7px 7px 0 var(--ink);
}

.project-card.is-hidden {
  display: none;
}

.project-card-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}

.project-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}

.project-card:hover .project-card-thumb img {
  transform: scale(1.05);
}

.project-card-thumb.t1 { background: linear-gradient(135deg, var(--pop-3), var(--pop-1)); }
.project-card-thumb.t2 { background: linear-gradient(135deg, var(--pop-2), #ff5ea8); }
.project-card-thumb.t3 { background: linear-gradient(135deg, var(--pop-1), var(--pop-2)); }
.project-card-thumb.t4 { background: linear-gradient(135deg, #7b8cff, var(--pop-3)); }
.project-card-thumb.t5 { background: linear-gradient(135deg, var(--pop-2), #7b8cff); }
.project-card-thumb.t6 { background: linear-gradient(135deg, var(--pop-3), var(--pop-2)); }

.project-card-status {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
}

.project-card-body {
  padding: 16px 18px 18px;
}

.project-card-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.15;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.project-card-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  padding: 3px 9px;
}

.resume-link {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 9px 18px;
  background: var(--ink);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
  white-space: nowrap;
}

.resume-link:hover {
  background: var(--pop-1);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--ink);
}

/* ─── EXPERIENCE (Resume) ─── */
.exp-list { display: flex; flex-direction: column; gap: 40px; }

.exp-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 32px;
}

.exp-meta {
  padding-top: 2px;
}

.exp-years {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-faint);
  margin-bottom: 4px;
}

.exp-company {
  font-family: var(--display);
  font-size: 14px;
  color: var(--ink-muted);
  letter-spacing: -0.005em;
}

.exp-title {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.1;
}

.exp-body {
  font-size: 14.5px;
  color: var(--ink-muted);
  line-height: 1.75;
}

.exp-bullets {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-bullets li {
  font-size: 13.5px;
  color: var(--ink-muted);
  display: flex;
  gap: 10px;
  line-height: 1.6;
}

.exp-bullets li::before {
  content: '▸';
  color: var(--pop-2);
  flex-shrink: 0;
  font-weight: 700;
}

/* ─── SKILLS ─── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--ink);
}

.skill-group {
  background: var(--paper);
  padding: 24px 28px;
}

.skill-group-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rule);
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-item {
  font-size: 14.5px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-item::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--pop-2);
  flex-shrink: 0;
}

/* ─── CONTACT ─── */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 560px;
  margin-left: auto;
}

.contact-link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.contact-link-row:first-child { border-top: 1px solid var(--rule); }

.contact-link-label {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-faint);
}

.contact-link-val {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}

.contact-link-val:hover { color: var(--pop-2); }

/* ─── FLIP CARDS ─── */
.flip-card {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.flip-card .flip-inner {
  position: absolute;
  inset: 0;
  transition: transform 0.7s cubic-bezier(0.4, 0.0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-inner {
  transform: rotateY(180deg);
}

.flip-card .flip-front,
.flip-card .flip-back {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  overflow: hidden;
}

.flip-card .flip-back {
  transform: rotateY(180deg);
  background: var(--paper-warm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 22px;
  gap: 10px;
}

.flip-hint {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.2s;
}

.flip-card.flipped .flip-hint { opacity: 0; }

.flip-back-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
}

.flip-back-text {
  font-family: var(--display);
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.flip-back-meta {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--pop-2);
}

.hero-image .flip-back { padding: 30px; gap: 14px; }
.hero-image .flip-back-title { font-size: 30px; }
.hero-image .flip-back-text { font-size: 13px; line-height: 1.6; max-width: 220px; }
.hero-image .flip-back-text  a{ color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ─── PROJECT DETAIL PAGE ─── */
.detail-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 64px;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.back-link {
  font-family: var(--display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s;
}

.back-link:hover { color: var(--ink); }

.detail-topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.detail-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 64px 64px 120px;
}

.detail-status {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pop-2);
  margin-bottom: 16px;
}

.detail-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(38px, 5.5vw, 62px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--ink);
  margin-bottom: 20px;
}

.detail-tagline {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 680px;
  margin-bottom: 28px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.detail-action {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 22px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
  border: 2px solid var(--ink);
}

.detail-action.primary {
  color: var(--paper);
  background: var(--ink);
}

.detail-action.primary:hover {
  background: var(--pop-1);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.detail-action.secondary {
  color: var(--ink);
  background: transparent;
}

.detail-action.secondary:hover {
  background: var(--paper-warm);
  transform: translateY(-2px);
  box-shadow: 3px 3px 0 var(--ink);
}

.detail-cover {
  width: 100%;
  border-radius: 18px;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
  margin-bottom: 56px;
}

.detail-cover img,
.detail-cover video {
  width: 100%;
  display: block;
  object-fit: cover;
}

.detail-section { margin-bottom: 56px; }

.detail-section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.detail-body {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-muted);
}

.detail-body a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

.detail-body p + p { margin-top: 14px; }

.detail-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.detail-media-item {
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-warm);
}

.detail-media-item img,
.detail-media-item video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.detail-media-placeholder {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  padding: 16px;
  border: 2px dashed var(--rule);
  border-radius: 14px;
}

/* A real inline diagram. Drawn with its own background/border baked in (see
   images/*-diagram.svg), so this just gives it width and spacing rather than
   framing it in another box. */
.detail-diagram {
  display: block;
  width: 100%;
  height: auto;
  margin: 20px 0;
}

/* An inline placeholder for a diagram or screenshot that would help explain
   a specific point in the surrounding prose, as opposed to .detail-media-grid
   which is a gallery of finished demo media at the bottom of the page. */
.detail-diagram-placeholder {
  margin: 20px 0;
  padding: 28px 20px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border: 2px dashed var(--rule);
  border-radius: 14px;
}

.detail-nav-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .grid-wrap { grid-template-columns: 1fr; }
  aside {
    position: relative;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding: 24px 32px;
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .logo { margin-bottom: 0; margin-right: 32px; }
  .logo-sub { display: none; }
  nav { flex-direction: row; flex-wrap: wrap; gap: 0 24px; }
  nav a::before { display: none; }
  .aside-footer { display: none; }
  #hero { min-height: auto; padding: 48px 32px; grid-template-columns: 1fr; gap: 32px; }
  .hero-image { max-width: 280px; transform: rotate(0); }
  section { padding: 48px 32px; }
  .about-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
  .exp-item { grid-template-columns: 1fr; gap: 8px; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  aside .theme-toggle {
    margin-top: 0;
    margin-left: auto;
  }
  .flip-back-text {
    display: none;
  }
  .detail-topbar { padding: 20px 24px; }
  .detail-main { padding: 40px 24px 80px; }
}
