:root,
[data-theme="dark"] {
  --bg: #071a1d;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.70);
  --muted-2: rgba(255, 255, 255, 0.55);

  --teal: #0f5f66;
  --teal-2: #1c8a8b;
  --oj: #ff9a1a;
  --oj-2: #ffb34d;

  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  --radius: 18px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snappy: cubic-bezier(0.32, 0.72, 0, 1);

  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
}

[data-theme="light"] {
  --bg: #f5f7f8;
  --panel: rgba(0, 0, 0, 0.04);
  --panel-strong: rgba(0, 0, 0, 0.07);
  --text: rgba(0, 0, 0, 0.88);
  --muted: rgba(0, 0, 0, 0.60);
  --muted-2: rgba(0, 0, 0, 0.45);

  --teal: #0a4a50;
  --teal-2: #147a7b;
  --oj: #e07800;
  --oj-2: #c06800;

  --border: rgba(0, 0, 0, 0.10);
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

[data-theme="dark"] body {
  background:
    radial-gradient(1200px 900px at 18% 10%, rgba(28, 138, 139, 0.33), transparent 55%),
    radial-gradient(800px 700px at 84% 22%, rgba(255, 154, 26, 0.25), transparent 55%),
    radial-gradient(900px 700px at 70% 90%, rgba(15, 95, 102, 0.25), transparent 55%),
    var(--bg);
}

[data-theme="light"] body {
  background:
    radial-gradient(1200px 900px at 18% 10%, rgba(28, 138, 139, 0.12), transparent 55%),
    radial-gradient(800px 700px at 84% 22%, rgba(255, 154, 26, 0.10), transparent 55%),
    radial-gradient(900px 700px at 70% 90%, rgba(15, 95, 102, 0.08), transparent 55%),
    var(--bg);
}

a {
  color: inherit;
  text-decoration-color: rgba(255, 154, 26, 0.55);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: rgba(255, 154, 26, 0.95);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 0.92rem;
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 100;
  background: transparent;
  pointer-events: none;
}

.scroll-progress__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal-2), var(--oj));
  transition: width 50ms ease-out;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 12px;
  z-index: 9999;
}

.skip-link:focus {
  left: 12px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7, 26, 29, 0.58);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .header {
  background: rgba(245, 247, 248, 0.85);
}

.nav-hint {
  margin: 0;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--muted-2);
  text-align: center;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.nav-hint kbd {
  font-family: var(--mono);
  font-size: 0.75em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--panel-strong);
  border: 1px solid var(--border);
}

.nav-hint__mac {
  color: var(--muted-2);
}

.nav {
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand__mark {
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

.brand__text {
  font-weight: 760;
  letter-spacing: 0.2px;
}

.nav__links {
  display: none;
  gap: 14px;
  align-items: center;
  color: var(--muted);
}

.nav__links a {
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 12px;
}

.nav__links a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav__links a.active {
  color: var(--oj);
  background: rgba(255, 154, 26, 0.08);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav__hire-btn {
  display: none;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
  color: var(--text);
  transition: background 150ms ease, border-color 150ms ease;
}

.theme-toggle:hover {
  background: var(--panel-strong);
  border-color: var(--oj);
}

.theme-toggle__icon {
  width: 20px;
  height: 20px;
}

.theme-toggle__icon--sun {
  display: none;
}

.theme-toggle__icon--moon {
  display: block;
}

[data-theme="light"] .theme-toggle__icon--sun {
  display: block;
}

[data-theme="light"] .theme-toggle__icon--moon {
  display: none;
}

/* Hamburger Menu Button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.hamburger:hover {
  background: var(--panel-strong);
  border-color: var(--oj);
}

.hamburger__line {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 200ms ease, opacity 200ms ease;
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(7, 26, 29, 0.98);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
  padding-top: 80px;
}

[data-theme="light"] .mobile-menu {
  background: rgba(245, 247, 248, 0.98);
}

.mobile-menu[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px;
}

.mobile-menu__link {
  display: block;
  width: 100%;
  text-align: center;
  padding: 16px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 150ms ease;
}

.mobile-menu__link:hover {
  background: var(--panel);
}

.mobile-menu__cta {
  margin-top: 16px;
  width: 100%;
  text-align: center;
}

/* Command Palette */
.cmd-palette {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.cmd-palette.open {
  opacity: 1;
  visibility: visible;
}

.cmd-palette__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.cmd-palette__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 16px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: scale(0.96) translateY(-10px);
  transition: transform 0.15s ease;
}

.cmd-palette.open .cmd-palette__dialog {
  transform: scale(1) translateY(0);
}

.cmd-palette__search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.cmd-palette__search-icon {
  color: var(--muted);
  flex-shrink: 0;
}

.cmd-palette__input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  outline: none;
}

.cmd-palette__input::placeholder {
  color: var(--muted-2);
}

.cmd-palette__kbd {
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.cmd-palette__results {
  max-height: 320px;
  overflow-y: auto;
  padding: 8px;
}

.cmd-palette__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.1s ease;
}

.cmd-palette__item:hover,
.cmd-palette__item.selected {
  background: var(--panel);
}

.cmd-palette__item.selected {
  background: var(--panel-strong);
}

.cmd-palette__item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  flex-shrink: 0;
}

.cmd-palette__item.selected .cmd-palette__item-icon {
  background: var(--oj);
  color: #000;
}

.cmd-palette__item-text {
  flex: 1;
  min-width: 0;
}

.cmd-palette__item-title {
  font-weight: 600;
  color: var(--text);
}

.cmd-palette__item-desc {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 2px;
}

.cmd-palette__empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.cmd-palette__footer {
  display: flex;
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.cmd-palette__footer kbd {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.7rem;
  margin-right: 4px;
}

@media (max-width: 600px) {
  .cmd-palette {
    padding-top: 10vh;
  }
  
  .cmd-palette__footer {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.2px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 200ms var(--ease-snappy), background 200ms var(--ease-snappy), border-color 200ms var(--ease-snappy), box-shadow 200ms var(--ease-snappy);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25);
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn--primary {
  border-color: rgba(255, 154, 26, 0.45);
  background: linear-gradient(180deg, rgba(255, 154, 26, 0.98), rgba(255, 154, 26, 0.75));
  color: rgba(0, 0, 0, 0.88);
}

.btn--primary:hover {
  border-color: rgba(255, 154, 26, 0.7);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.02);
}

.btn--sm {
  padding: 9px 12px;
  border-radius: 13px;
  font-weight: 680;
}

.hero {
  position: relative;
  padding: 64px 0 36px;
}

@media (min-width: 860px) {
  .hero {
    padding: 80px 0 48px;
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 650;
}

.kicker::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--oj-2), var(--oj));
  box-shadow: 0 0 0 5px rgba(255, 154, 26, 0.12);
}

/* Availability Badge */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  margin-left: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

.availability-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.availability-badge__text {
  color: #22c55e;
}

.availability-badge--busy {
  background: rgba(250, 204, 21, 0.15);
  border-color: rgba(250, 204, 21, 0.3);
}

.availability-badge--busy .availability-badge__dot {
  background: #facc15;
}

.availability-badge--busy .availability-badge__text {
  color: #facc15;
}

.availability-badge--unavailable {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

.availability-badge--unavailable .availability-badge__dot {
  background: #ef4444;
  animation: none;
}

.availability-badge--unavailable .availability-badge__text {
  color: #ef4444;
}

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(2.05rem, 4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.hero__lede {
  margin: 0 0 18px;
  color: var(--muted);
  max-width: 65ch;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.93rem;
}

.pill--accent {
  border-color: rgba(255, 154, 26, 0.35);
}

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

.hero__art {
  display: grid;
  justify-items: stretch;
}

.hero__frame {
  padding: 6px;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 95, 102, 0.12);
  box-shadow: var(--shadow);
}

[data-theme="light"] .hero__frame {
  background: rgba(15, 95, 102, 0.06);
  border-color: rgba(0, 0, 0, 0.08);
}

.hero__photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.card {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card--glass {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    radial-gradient(700px 450px at 20% 5%, rgba(255, 154, 26, 0.20), transparent 52%),
    radial-gradient(650px 420px at 80% 70%, rgba(28, 138, 139, 0.18), transparent 55%);
}

.card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.signal {
  display: inline-flex;
  gap: 6px;
}

.signal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.signal__dot:nth-child(1) {
  background: rgba(255, 154, 26, 0.75);
}
.signal__dot:nth-child(2) {
  background: rgba(28, 138, 139, 0.7);
}
.signal__dot:nth-child(3) {
  background: rgba(255, 255, 255, 0.35);
}

.card__tag {
  font-family: var(--mono);
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.10);
  padding: 6px 10px;
  border-radius: 999px;
}

.card__content {
  padding: 16px;
}

.mono {
  font-family: var(--mono);
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.80);
  font-size: 0.98rem;
}

.card__hint {
  margin: 0;
  color: var(--muted);
}

.hero__drip {
  height: 26px;
  margin-top: 18px;
  background:
    radial-gradient(42px 22px at 8% 55%, rgba(255, 154, 26, 0.35), transparent 70%),
    radial-gradient(70px 28px at 22% 40%, rgba(255, 154, 26, 0.28), transparent 70%),
    radial-gradient(46px 22px at 46% 65%, rgba(255, 154, 26, 0.22), transparent 70%),
    radial-gradient(96px 38px at 74% 35%, rgba(28, 138, 139, 0.22), transparent 72%),
    radial-gradient(54px 24px at 90% 70%, rgba(28, 138, 139, 0.18), transparent 70%);
  filter: blur(0.2px);
  opacity: 0.9;
}

.section {
  padding: 72px 0;
}

@media (min-width: 860px) {
  .section {
    padding: 104px 0;
  }
}

.section--alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section__head {
  display: grid;
  gap: 10px;
  margin-bottom: 36px;
  max-width: 76ch;
}

.section__head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section__head p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

.panel {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
  padding: 18px 18px 16px;
}

.panel h3 {
  margin: 0 0 10px;
  letter-spacing: -0.25px;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.panel li + li {
  margin-top: 6px;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline__item {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.04);
}

.timeline__when {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.95rem;
}

.timeline__what h3 {
  margin: 0 0 2px;
  letter-spacing: -0.25px;
}

.timeline__what p {
  margin: 0 0 10px;
}

.timeline__what ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.timeline__more {
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
}

.timeline__more summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--muted);
}

.timeline__compact {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.timeline__row {
  display: grid;
  gap: 6px;
}

/* Skills Filter */
.skills-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.skills-filter__btn {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.skills-filter__btn:hover {
  border-color: var(--oj);
  color: var(--text);
}

.skills-filter__btn.active {
  background: var(--oj);
  border-color: var(--oj);
  color: #000;
}

.skills-filter__btn:focus-visible {
  outline: 2px solid var(--oj);
  outline-offset: 2px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(255, 255, 255, 0.82);
  font-weight: 650;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  transform-origin: center;
}

.chip.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

.chip.visible {
  opacity: 1;
  transform: scale(1);
}

.writing__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

/* Post Grid & Cards */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 600px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.post-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  text-decoration: none;
  transition: transform 200ms var(--ease-snappy), background 200ms var(--ease-snappy), border-color 200ms var(--ease-snappy), box-shadow 200ms var(--ease-snappy);
  overflow: hidden;
}

.post-card:hover {
  border-color: var(--oj);
  background: var(--panel-strong);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.post-card--loading {
  justify-content: center;
  align-items: center;
  min-height: 120px;
  grid-column: 1 / -1;
}

.post-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: var(--border);
}

.post-card__content {
  display: flex;
  flex-direction: column;
  padding: 20px;
  flex: 1;
}

.post-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 auto;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.post-card__date {
  font-size: 0.85rem;
  color: var(--muted);
}

.post-card__read {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--oj);
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-card:hover .post-card__read {
  gap: 8px;
}

.post-card__read svg {
  transition: transform 0.2s ease;
}

.post-card:hover .post-card__read svg {
  transform: translateX(2px);
}

.post-card--error {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 20px;
}

.post-card--error a {
  color: var(--oj);
}

.quote {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 154, 26, 0.20);
  background: rgba(255, 154, 26, 0.05);
  padding: 16px 16px 14px;
}

.quote__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.quote__text {
  margin: 0 0 10px;
  font-weight: 650;
  letter-spacing: -0.1px;
}

.quote__by {
  margin: 0;
}

.quote__cta {
  display: inline-flex;
  margin-top: 8px;
  font-size: 0.92rem;
  color: var(--muted);
  letter-spacing: 0.1px;
}

/* Testimonials Carousel */
.carousel {
  position: relative;
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
}

.carousel__track {
  display: flex;
  transition: transform 600ms var(--ease-out);
}

.carousel__slide {
  flex: 0 0 100%;
  min-width: 100%;
  opacity: 0.4;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.carousel__slide.active {
  opacity: 1;
  transform: scale(1);
}

.carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.carousel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel__btn:hover {
  background: var(--panel-strong);
  border-color: var(--oj);
  color: var(--oj);
}

.carousel__btn:focus-visible {
  outline: 2px solid var(--oj);
  outline-offset: 2px;
}

.carousel__dots {
  display: flex;
  gap: 8px;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.carousel__dot:hover {
  background: var(--muted);
}

.carousel__dot.active {
  background: var(--oj);
  transform: scale(1.2);
}

.carousel__dot:focus-visible {
  outline: 2px solid var(--oj);
  outline-offset: 2px;
}

/* Pause indicator on hover */
.carousel:hover .carousel__btn--next::after {
  content: "";
}

@media (max-width: 600px) {
  .carousel__btn {
    width: 36px;
    height: 36px;
  }
  
  .carousel__slide.quote {
    padding: 14px;
  }
}

/* Testimonial detail page */
.testimonial-page .testimonial-header {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.testimonial-page .testimonial-headshot {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
  background: var(--panel);
}

.testimonial-page .testimonial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.testimonial-page .testimonial-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 20px;
}

.testimonial-page .testimonial-text {
  margin: 0;
  white-space: pre-line;
}

.testimonial-page .testimonial-referral {
  margin-top: 12px;
  color: var(--muted);
}

.testimonial-page .testimonial-referral a {
  color: var(--oj);
}

.contact-card {
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 18px;
  transition: transform 200ms var(--ease-snappy), background 200ms var(--ease-snappy), border-color 200ms var(--ease-snappy), box-shadow 200ms var(--ease-snappy);
}

.contact-card:hover {
  transform: translateY(-2px);
  background: var(--panel-strong);
  border-color: rgba(255, 154, 26, 0.26);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .contact-card:hover {
  border-color: rgba(224, 120, 0, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.contact-card__kicker {
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact-card__title {
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.contact-card__desc {
  color: var(--muted);
}

.contact-card__desc a {
  color: var(--oj);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-card__desc a:hover {
  color: var(--oj-2);
}

/* Primary contact card accent */
.contact-card--primary {
  border-color: rgba(255, 154, 26, 0.25);
  background: rgba(255, 154, 26, 0.04);
}

.contact-card--primary:hover {
  border-color: rgba(255, 154, 26, 0.4);
  background: rgba(255, 154, 26, 0.08);
}

[data-theme="light"] .contact-card--primary {
  border-color: rgba(224, 120, 0, 0.2);
  background: rgba(224, 120, 0, 0.04);
}

[data-theme="light"] .contact-card--primary:hover {
  border-color: rgba(224, 120, 0, 0.35);
  background: rgba(224, 120, 0, 0.07);
}

/* Compact social links row */
.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

.social-links__label {
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--muted-2);
}

.social-links__sep {
  color: var(--muted-2);
}

.social-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 200ms var(--ease-snappy);
}

.social-links a:hover {
  color: var(--oj);
}

/* Click-to-Copy Email */
.contact-card--email {
  cursor: pointer;
}

.contact-card--email .contact-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.copy-btn:hover {
  color: var(--oj);
  background: var(--panel);
}

.copy-btn__icon--check {
  display: none;
  color: #22c55e;
}

.contact-card--email.copied .copy-btn__icon--copy {
  display: none;
}

.contact-card--email.copied .copy-btn__icon--check {
  display: block;
}

.contact-card--email.copied {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.08);
}

/* Resume Card - Full Width, Half Height */
.contact-card--resume {
  width: 100%;
  display: block;
  padding: 12px 18px;
}

.contact-card--resume .contact-card__title {
  margin-bottom: 4px;
}

.contact-card--resume .contact-card__desc {
  margin: 0;
}

/* Contact Grid */
.contact-grid {
  align-items: stretch;
}

.contact-grid .panel {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Contact Form */
.contact-form-wrapper {
  display: flex;
  flex-direction: column;
}

.contact-form-panel {
  flex: 1;
  padding: 20px 24px;
}

.contact-form-panel .contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-form-panel .form-group:last-of-type {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-form-panel .form-textarea {
  flex: 1;
  min-height: 60px;
}

.contact-form__title {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-form__subtitle {
  margin: 0 0 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
  color: var(--muted-2);
}

.form-input:focus {
  outline: none;
  border-color: var(--oj);
  box-shadow: 0 0 0 3px var(--input-focus);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-actions {
  margin-top: 8px;
}

.contact-form__submit {
  position: relative;
  min-width: 150px;
}

.contact-form__submit-loading {
  display: none;
}

.contact-form.submitting .contact-form__submit-text {
  visibility: hidden;
}

.contact-form.submitting .contact-form__submit-loading {
  display: inline;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.contact-form.submitting .contact-form__submit {
  pointer-events: none;
  opacity: 0.7;
}

.contact-form__status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.contact-form__status.success {
  display: block;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.contact-form__status.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.contact-form__note {
  margin-top: 12px;
  font-size: 0.85rem;
}

.contact-form__note code {
  background: var(--panel);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* GitHub Activity Widget */
.github-widget {
  display: flex;
  flex-direction: column;
}

.github-widget > .panel {
  flex: 1;
}

.github-widget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.github-widget__head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.1rem;
}

.github-widget__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.github-widget__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.github-widget__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.github-widget__item:first-child {
  padding-top: 0;
}

.github-widget__item--loading {
  justify-content: center;
  padding: 20px 0;
}

.github-widget__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  flex-shrink: 0;
}

.github-widget__icon--push {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.github-widget__icon--star {
  background: rgba(250, 204, 21, 0.15);
  color: #facc15;
}

.github-widget__icon--fork {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
}

.github-widget__icon--pr {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.github-widget__content {
  flex: 1;
  min-width: 0;
}

.github-widget__title {
  font-weight: 600;
  margin-bottom: 2px;
}

.github-widget__title a {
  color: var(--text);
  text-decoration: none;
}

.github-widget__title a:hover {
  color: var(--oj);
}

.github-widget__meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.github-widget__error {
  text-align: center;
  padding: 16px 0;
  color: var(--muted);
}

.footer {
  padding: 34px 0 40px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 18px;
}

/* 404 Error Page */
.section--404 {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
}

.error-404 {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.error-404__content {
  padding: 40px 20px;
}

.error-404__title {
  font-size: 8rem;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 16px;
  background: linear-gradient(135deg, var(--oj), var(--oj-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.05em;
}

.error-404__subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}

.error-404__desc {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 0 32px;
  line-height: 1.6;
}

.error-404__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .error-404__title {
    font-size: 5rem;
  }
  
  .error-404__subtitle {
    font-size: 1.25rem;
  }
  
  .error-404__desc {
    font-size: 1rem;
  }
  
  .error-404__actions {
    flex-direction: column;
  }
  
  .error-404__actions .btn {
    width: 100%;
  }
}

.mt-14 {
  margin-top: 14px;
}

/* Scroll Reveal Animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
}

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

.scroll-reveal--delay-1 {
  transition-delay: 100ms;
}

.scroll-reveal--delay-2 {
  transition-delay: 200ms;
}

.scroll-reveal--delay-3 {
  transition-delay: 300ms;
}

@media (min-width: 860px) {
  .nav__links {
    display: flex;
  }
  .nav__hire-btn {
    display: inline-flex;
  }
  .hamburger {
    display: none;
  }
  .hero__grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
  }
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .timeline__item {
    grid-template-columns: 210px 1fr;
    align-items: start;
  }
  .timeline__row {
    grid-template-columns: 220px 1fr;
    align-items: baseline;
  }
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .contact-card,
  .post-card {
    transition: none;
  }
  .btn:active {
    transform: none;
  }
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Print Styles */
@media print {
  * {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  /* Hide non-essential elements */
  .header,
  .footer,
  .nav,
  .mobile-menu,
  .theme-toggle,
  .scroll-progress,
  .cmd-palette,
  .availability-badge,
  .carousel__nav,
  .skills-filter,
  .contact-form-wrapper,
  .github-widget,
  .btn,
  .post-card__read,
  .contact-card__desc a,
  .writing__head .btn {
    display: none !important;
  }

  /* Page setup */
  @page {
    margin: 1.5cm;
  }

  /* Typography */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    color: #000;
    font-weight: 700;
  }

  h1 {
    font-size: 24pt;
    margin-top: 0;
  }

  h2 {
    font-size: 18pt;
    margin-top: 20pt;
  }

  h3 {
    font-size: 14pt;
  }

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

  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
    color: #666;
  }

  a[href^="#"]:after,
  a[href^="/"]:after {
    content: "";
  }

  /* Sections */
  .section {
    page-break-inside: avoid;
    margin-bottom: 20pt;
  }

  .section__head {
    border-bottom: 2pt solid #000;
    padding-bottom: 8pt;
    margin-bottom: 12pt;
  }

  /* Containers */
  .container {
    max-width: 100%;
    padding: 0;
  }

  /* Panels and cards */
  .panel,
  .contact-card,
  .post-card,
  .quote {
    border: 1pt solid #ccc;
    padding: 12pt;
    margin-bottom: 12pt;
    page-break-inside: avoid;
    background: #fff;
  }

  /* Lists */
  ul, ol {
    margin-left: 20pt;
  }

  li {
    margin-bottom: 4pt;
  }

  /* Skills chips */
  .chips {
    display: block;
  }

  .chip {
    display: inline-block;
    border: 1pt solid #ccc;
    padding: 4pt 8pt;
    margin: 2pt;
    background: #fff;
    page-break-inside: avoid;
  }

  /* Timeline */
  .timeline__item {
    page-break-inside: avoid;
    margin-bottom: 16pt;
  }

  /* Tables */
  table {
    border-collapse: collapse;
    width: 100%;
  }

  th, td {
    border: 1pt solid #000;
    padding: 6pt;
  }

  /* Images */
  img {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid;
  }

  /* Code blocks */
  pre, code {
    border: 1pt solid #ccc;
    background: #f5f5f5;
    padding: 4pt;
    font-size: 10pt;
    page-break-inside: avoid;
  }

  pre {
    white-space: pre-wrap;
    word-wrap: break-word;
  }

  /* Page breaks */
  .page-break {
    page-break-before: always;
  }

  /* Avoid breaking */
  p, blockquote, ul, ol, dl {
    orphans: 3;
    widows: 3;
  }

  blockquote {
    border-left: 3pt solid #ccc;
    padding-left: 12pt;
    margin-left: 0;
    font-style: italic;
  }

  /* Hero section */
  .hero {
    page-break-after: always;
  }

  .hero__title {
    font-size: 28pt;
    margin-bottom: 12pt;
  }

  .hero__lede {
    font-size: 12pt;
    margin-bottom: 16pt;
  }

  /* Contact section */
  .contact-grid {
    display: block;
  }

  /* Post grid */
  .post-grid {
    display: block;
  }

  .post-card {
    margin-bottom: 16pt;
  }

  .post-card__image {
    display: none;
  }

  /* Testimonials carousel */
  .carousel__track {
    display: block;
  }

  .carousel__slide {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    page-break-inside: avoid;
    margin-bottom: 12pt;
  }

  /* GitHub activity */
  .github-widget__list {
    display: block;
  }

  .github-widget__item {
    page-break-inside: avoid;
    margin-bottom: 8pt;
  }

  .github-widget__icon {
    display: none;
  }

  /* Footer content */
  .footer__inner {
    border-top: 1pt solid #ccc;
    padding-top: 12pt;
    margin-top: 20pt;
    font-size: 10pt;
  }
}
