:root {
  --bg: #f4efe9;
  --bg-alt: #fffaf4;
  --ink: #0b1320;
  --muted: #44505f;
  --accent: #007a7a;
  --accent-strong: #0f4c5c;
  --accent-warm: #f4b860;
  --accent-coral: #ff6b4a;
  --border: rgba(11, 19, 32, 0.12);
  --shadow: 0 24px 40px rgba(11, 19, 32, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Spline Sans", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, rgba(244, 184, 96, 0.2), transparent 55%),
    radial-gradient(circle at 20% 20%, rgba(0, 122, 122, 0.15), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E");
  opacity: 0.25;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 6vw 0;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  object-fit: cover;
}

.brand__name {
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-nav a {
  padding: 6px 0;
  position: relative;
}

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

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

main {
  padding: 0 6vw 80px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: center;
  padding: 80px 0 60px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--accent-strong);
  margin: 0 0 12px;
}

.hero h1,
.section h2,
.project-hero h1 {
  font-family: "Fraunces", serif;
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(2.8rem, 4vw, 4.6rem);
  line-height: 1.05;
}

.hero__tagline {
  font-size: 1.3rem;
  font-weight: 500;
  max-width: 520px;
  margin: 0 0 16px;
}

.hero__summary {
  color: var(--muted);
  max-width: 560px;
  line-height: 1.6;
}

.hero__meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 20px 0 28px;
  font-weight: 500;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__links {
  margin-top: 18px;
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  color: var(--muted);
}

.hero__media {
  position: relative;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.hero__image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 360px;
}

.hero__logo {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: var(--bg-alt);
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 200px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(11, 19, 32, 0.12);
}

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

.btn--ghost {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.section {
  padding: 70px 0;
}

.section--alt {
  background: var(--bg-alt);
  margin: 0 -6vw;
  padding: 70px 6vw;
}

.section--cta {
  padding-bottom: 0;
}

.section--center {
  text-align: center;
}

.section-header h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.section-summary {
  color: var(--muted);
  max-width: 640px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
}

.metric {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 18px;
  border: 1px solid var(--border);
}

.metric__value {
  display: block;
  font-family: "Fraunces", serif;
  font-size: 2rem;
}

.metric__label {
  color: var(--muted);
  font-size: 0.9rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.skill-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.skill-card h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-family: "Fraunces", serif;
}

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

.skill-card__items span {
  background: rgba(0, 122, 122, 0.12);
  color: var(--accent-strong);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.timeline {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}

.timeline-item {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  box-shadow: var(--shadow);
}

.timeline-item__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-item__company {
  color: var(--muted);
  font-weight: 500;
}

.timeline-item__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 8px;
}

.timeline-item__list,
.timeline-item__responsibilities ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.timeline-item__responsibilities p {
  margin: 16px 0 8px;
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  margin-top: 32px;
}

.project-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 50px rgba(11, 19, 32, 0.18);
}

.project-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card__media {
  background: linear-gradient(135deg, rgba(0, 122, 122, 0.3), rgba(244, 184, 96, 0.4));
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card__media.is-placeholder .placeholder {
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 0 16px;
}

.project-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-card__title-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-card__role {
  font-size: 0.9rem;
  color: var(--muted);
}

.project-card__summary {
  color: var(--muted);
  line-height: 1.6;
}

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

.project-card__tech span {
  background: rgba(255, 107, 74, 0.12);
  color: var(--accent-coral);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.project-card__cta {
  font-weight: 600;
  color: var(--accent-strong);
}

.publication-note {
  max-width: 800px;
  color: var(--muted);
  line-height: 1.7;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.chip-list span {
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
}

.education-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-top: 32px;
}

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

.education-item__dates {
  display: block;
  margin: 8px 0 12px;
  color: var(--muted);
}

.education-item ul {
  padding-left: 18px;
  color: var(--muted);
}

.cta {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  background: var(--accent-strong);
  color: #fff;
  padding: 36px;
  border-radius: var(--radius);
}

.cta__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta .btn--primary {
  background: #fff;
  color: var(--accent-strong);
}

.cta .btn--ghost {
  border-color: #fff;
  color: #fff;
}

.site-footer {
  padding: 50px 6vw 60px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #fff;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 600;
}

.footer-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.project-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
  padding: 70px 0 50px;
}

.project-hero__summary {
  color: var(--muted);
  line-height: 1.6;
}

.project-hero__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.project-hero__tech span {
  background: rgba(0, 122, 122, 0.12);
  color: var(--accent-strong);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.project-hero__placeholder {
  min-height: 280px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--bg-alt);
}

.impact-list {
  max-width: 820px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-weight: 600;
}

.not-found {
  max-width: 520px;
  margin: 0 auto;
  padding: 60px 0;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 900px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__logo {
    position: static;
    margin-top: 12px;
  }
}

@media (max-width: 720px) {
  .site-nav {
    gap: 10px;
  }

  .hero {
    padding-top: 50px;
  }

  .cta {
    padding: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}
