:root {
  --bg: #f6f2e9;
  --ink: #1c2027;
  --muted: #596070;
  --surface: rgba(255, 255, 255, 0.7);
  --line: rgba(28, 32, 39, 0.14);
  --accent: #d56f3e;
  --accent-2: #2f5566;
  --shadow: 0 20px 60px rgba(24, 29, 38, 0.12);
  --font-display: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-display);
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(213, 111, 62, 0.18), transparent 40%),
    radial-gradient(circle at 92% 18%, rgba(47, 85, 102, 0.2), transparent 45%),
    linear-gradient(180deg, #f8f3e8 0%, #f2efe9 100%);
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem min(4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 242, 233, 0.82);
  backdrop-filter: blur(10px);
}

.logo {
  font-family: var(--font-mono);
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

nav {
  display: flex;
  gap: 1rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

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

.page {
  width: min(1080px, 92vw);
  margin: 0 auto;
  padding: 2.2rem 0 4rem;
}

.page-narrow {
  width: min(920px, 92vw);
}

.page-title {
  margin: 0.2rem 0 0.5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.4rem;
  align-items: center;
  margin-bottom: 1rem;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-2);
  font-size: 0.78rem;
  margin: 0;
}

h1 {
  margin: 0.35rem 0;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.12;
}

.subtitle {
  max-width: 58ch;
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0.8rem 0 0.7rem;
}

.hero-about {
  max-width: 70ch;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-about a {
  color: var(--accent-2);
  text-decoration: none;
}

.hero-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 160ms ease;
}

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

.btn-solid {
  background: var(--ink);
  color: #fff;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
}

.hero-photo {
  margin: 0;
  max-width: 320px;
  justify-self: end;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.panel {
  margin-top: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  box-shadow: 0 8px 30px rgba(30, 36, 44, 0.06);
}

h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.section-head h2 {
  margin: 0;
}

.section-head a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font-size: 0.92rem;
  white-space: nowrap;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
}

p {
  margin: 0.42rem 0;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem;
  background: rgba(255, 255, 255, 0.62);
}

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

.work-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.68);
}

.work-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  padding: 0;
  background: #0b0d10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0b0d10;
}

.work-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0b0d10;
}

.work-card-video .work-media video {
  transform: scale(1.08);
  transform-origin: center center;
}

.work-card div {
  padding: 0.9rem;
}

.tag {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  color: var(--accent-2);
  text-transform: uppercase;
}

.work-card p {
  color: var(--muted);
}

.work-card a,
.contact-links a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.inline-links {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.pub-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 1rem;
}

.pub-item {
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
}

.pub-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1.03rem;
}

.pub-authors {
  color: var(--muted);
  font-size: 0.95rem;
}

.pub-venue {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-2);
  margin-top: 0.2rem;
  text-transform: uppercase;
}

.pub-links {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

.pub-links a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.7rem;
  align-items: start;
}

.timeline span {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-2);
  margin-top: 0.22rem;
}

.contact-links {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.4rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  padding: 1.3rem;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: reveal 660ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    max-width: 250px;
    justify-self: start;
  }

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

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .timeline li {
    grid-template-columns: 52px 1fr;
  }

  nav {
    gap: 0.55rem;
  }

  nav a {
    font-size: 0.9rem;
  }
}

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

  .btn {
    transition: none;
  }
}
