:root {
  --bg: #fbf9f5;
  --ink: #1c1a17;
  --muted: #4a463e;
  --faint: #8a8474;
  --line: #e8e2d6;
  --soft: #f3efe6;
  --accent: #e8611f;
  --accent-soft: #fbe4d4;
  --wood: #8a5a3b;
  --stem: #6b8e5a;
  --disc: #7a5230;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Work Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

a {
  color: inherit;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 48px;
  background: rgba(251, 249, 245, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-nav-links a {
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

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

.site-nav-links a.is-solid {
  border-bottom-color: var(--ink);
}

.hero-section {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  align-items: center;
  gap: 40px;
  padding: 72px 48px 96px;
  max-width: 1360px;
  margin: 0 auto;
}

.hero-copy {
  position: relative;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.hero-title .accent {
  color: var(--accent);
}

.hero-decor {
  position: absolute;
  pointer-events: none;
}

.hero-photo-wrap {
  position: relative;
  cursor: pointer;
}

.hero-meta {
  position: absolute;
  top: -46px;
  left: -14px;
  right: -30px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.hero-media {
  position: relative;
}

.hero-frame-offset {
  position: absolute;
  inset: 16px -16px -16px 16px;
  background: var(--accent);
  border-radius: 24px;
}

.hero-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  filter: grayscale(0.15);
}

.hero-hint {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(28, 26, 23, 0.6);
  backdrop-filter: blur(4px);
  color: var(--bg);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 100px;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hero-hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 100px;
  background: var(--accent);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(28, 26, 23, 0.05) 0%, rgba(28, 26, 23, 0.82) 100%);
  display: flex;
  align-items: flex-end;
  padding: 32px;
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.hero-photo-wrap.is-hovered .hero-overlay {
  opacity: 1;
}

.hero-photo-wrap.is-hovered .hero-hint {
  opacity: 0;
}

.hero-overlay-copy {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.4;
  color: var(--bg);
  font-weight: 500;
  margin: 0;
}

.section-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 48px;
}

.fence {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
  overflow: hidden;
}

.fence-post {
  width: 5px;
  background: var(--wood);
  border-radius: 2px 2px 0 0;
  flex-shrink: 0;
}

.fence-rail {
  height: 4px;
  background: var(--wood);
  border-radius: 2px;
  margin-top: -14px;
}

.section-pad {
  padding: 8px 48px 96px;
  max-width: 1360px;
  margin: 0 auto;
}

.section-head {
  padding-top: 56px;
  margin-bottom: 40px;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.exp-list {
  display: flex;
  flex-direction: column;
}

.exp-row {
  display: grid;
  grid-template-columns: 200px 32px 1fr auto;
  align-items: center;
  gap: 0 24px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.exp-row:hover {
  background: var(--soft);
}

.exp-date {
  font-size: 14px;
  color: var(--faint);
  padding: 26px 0;
}

.exp-stem {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
}

.exp-line {
  width: 1px;
  flex: 1;
  background: var(--line);
}

.exp-line.is-hidden {
  background: transparent;
}

.exp-flower-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 48px;
}

.exp-flower {
  position: relative;
  width: 48px;
  height: 48px;
}

.exp-petal {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 100px;
  background: var(--accent);
}

.exp-disc {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 100px;
  background: var(--disc);
}

.exp-stem-bar {
  width: 2px;
  background: var(--stem);
}

.exp-body {
  padding: 26px 0;
  min-width: 0;
}

.exp-role-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.exp-role {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}

.badge-current {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 100px;
}

.exp-org {
  font-size: 15px;
  color: var(--muted);
  margin-top: 2px;
}

.exp-arrow {
  font-size: 22px;
  color: #c9c2b2;
}

.uptime-section {
  background: var(--ink);
  padding: 88px 48px;
}

.uptime-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
  max-width: 1360px;
  margin: 0 auto;
}

.uptime-body {
  font-size: 17px;
  line-height: 1.7;
  color: #c9c2b2;
  margin: 0 0 20px;
}

.stats-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--bg);
}

.stat-label {
  font-size: 13px;
  color: var(--faint);
}

.uptime-growing {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 16px;
}

.gh-block {
  max-width: 1360px;
  margin: 40px auto 0;
}

.gh-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.gh-link {
  font-size: 14px;
  color: var(--bg);
  text-decoration: none;
  border-bottom: 1.5px solid var(--muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.gh-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.gh-frame {
  border: 1px solid #3a362e;
  border-radius: 16px;
  padding: 32px;
  background: #221f1a;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.gh-frame img {
  width: 100%;
  min-width: 640px;
  display: block;
  filter: invert(1) hue-rotate(180deg);
}

.project-heading {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
}

.project-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  background: #fff;
}

.project-media {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: var(--soft);
}

.project-media img,
.project-media iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  object-fit: cover;
}

.project-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.project-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.project-role {
  font-size: 15px;
  color: var(--faint);
  margin-bottom: 18px;
}

.project-blurb {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 20px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tag {
  font-size: 12px;
  padding: 5px 11px;
  background: var(--soft);
  border-radius: 100px;
  color: var(--muted);
}

.tag.outline {
  background: transparent;
  border: 1px solid var(--line);
  font-size: 13px;
  padding: 7px 13px;
}

.explore-link {
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  cursor: pointer;
  background: none;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.explore-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.project-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 100px;
  border: 1.5px solid #d8d2c4;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  background: transparent;
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.nav-btn:hover {
  border-color: var(--ink);
}

.skills-grid {
  padding-top: 56px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  border-top: 1px solid var(--line);
}

.skills-heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.edu-school {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
}

.edu-degree {
  font-size: 15px;
  color: var(--muted);
  margin-top: 6px;
}

.edu-meta {
  font-size: 14px;
  color: var(--faint);
  margin-top: 4px;
}

.site-footer {
  padding: 40px 48px;
  max-width: 1360px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 14px;
  color: var(--faint);
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.footer-links a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 26, 23, 0.55);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  animation: fadeIn 0.15s ease;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  background: var(--bg);
  border-radius: 20px;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  animation: riseIn 0.2s ease;
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 100px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  border: none;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
  background: var(--accent);
  color: #fff;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
  padding-right: 44px;
}

.modal-org {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 6px;
}

.modal-date {
  font-size: 14px;
  color: var(--faint);
  margin-bottom: 20px;
}

.modal-bullets {
  margin: 0 0 20px;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-bullets li {
  font-size: 15.5px;
  line-height: 1.6;
  color: #2a2721;
}

@media (max-width: 900px) {
  .hero-section {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 48px 28px 72px;
  }

  .hero-photo-wrap {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .hero-meta {
    position: static;
    margin: 0;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px;
  }

  .uptime-grid,
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .exp-row {
    grid-template-columns: 48px 1fr auto;
    gap: 0 16px;
  }

  .exp-date {
    grid-column: 2 / -1;
    padding: 20px 0 0;
    font-size: 13px;
  }

  .exp-stem {
    grid-row: 1 / 3;
  }

  .exp-body {
    padding: 4px 0 20px;
  }

  .exp-arrow {
    align-self: end;
    padding-bottom: 20px;
  }
}

@media (max-width: 640px) {
  .site-nav {
    padding: 14px 16px;
  }

  .site-nav-links {
    gap: 14px 18px;
    font-size: 13px;
  }

  .hero-section {
    padding: 36px 16px 56px;
    gap: 48px;
  }

  .hero-title {
    font-size: clamp(36px, 11vw, 56px);
  }

  .hero-decor {
    display: none;
  }

  .hero-photo-wrap {
    gap: 24px;
  }

  .hero-meta {
    flex-wrap: wrap;
    font-size: 11px;
    gap: 6px 14px;
  }

  .hero-frame-offset {
    inset: 10px -10px -10px 10px;
    border-radius: 18px;
  }

  .hero-overlay {
    padding: 20px;
  }

  .hero-overlay-copy {
    font-size: 15px;
  }

  .section-shell,
  .section-pad {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-pad {
    padding-bottom: 64px;
  }

  .section-head {
    padding-top: 40px;
    margin-bottom: 28px;
  }

  .exp-role {
    font-size: 17px;
  }

  .uptime-section {
    padding: 56px 16px;
  }

  .stats-row {
    gap: 20px;
  }

  .gh-frame {
    padding: 16px;
    border-radius: 12px;
  }

  .project-card {
    padding: 16px;
    border-radius: 16px;
  }

  .project-heading {
    font-size: 26px;
  }

  .project-title {
    font-size: 22px;
  }

  .skills-grid {
    gap: 36px;
    padding-top: 40px;
  }

  .site-footer {
    padding: 28px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-backdrop {
    padding: 16px;
    align-items: flex-end;
  }

  .modal-panel {
    padding: 24px 20px;
    max-height: 88vh;
    border-radius: 16px;
  }

  .modal-title {
    font-size: 22px;
  }
}
