:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f8f9fb;
  --text: #121417;
  --muted: #5e6673;
  --accent: #d26c2f;
  --accent-2: #1aa6a0;
  --card: #ffffff;
  --border: rgba(18, 20, 23, 0.2);
  --radius: 20px;
  --font-head: "Fraunces", serif;
  --font-body: "Space Grotesk", sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
}

.noise {
  display: none;
}

.hero {
  padding: 48px 8vw 72px;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
}

.brand {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a.is-current {
  color: var(--text);
}

.brand-link {
  color: var(--text);
  text-decoration: none;
}

.btn {
  border: 2px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
  border: none;
}

.btn.ghost {
  background: transparent;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.15;
  margin: 0;
  word-break: keep-all;
  overflow-wrap: normal;
}

.name-en {
  white-space: nowrap;
}

.hero-name-line {
  display: block;
}

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

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent-2);
  font-weight: 600;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
}

.cta-row {
  margin: 24px 0 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-meta {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.photo-placeholder {
  width: 180px;
  height: 220px;
  border: none;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(210, 108, 47, 0.08), rgba(26, 166, 160, 0.08));
  box-shadow: 0 16px 32px rgba(18, 20, 23, 0.12);
}

.hero-photo::after {
  content: none;
}

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

.meta-label {
  font-size: 0.8rem;
  color: var(--muted);
}

.meta-value {
  font-weight: 500;
}

.hero-card {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-intro {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  width: 100%;
}

.hero-heading {
  display: grid;
  gap: 14px;
}

.hero-photo {
  align-self: center;
  width: 180px;
}

.page-hero {
  padding-bottom: 56px;
}

.page-hero-copy {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

.page-hero-copy h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 1.02;
}

.page-lead {
  color: var(--muted);
  font-size: 1.05rem;
}

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

.page-lead code,
.page-note code,
.gallery-empty code {
  font-family: var(--font-body);
  font-size: 0.92em;
  padding: 0.1em 0.4em;
  border-radius: 999px;
  background: rgba(26, 166, 160, 0.12);
  color: var(--text);
}

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

  .hero-copy {
    align-items: center;
    text-align: center;
  }

  .hero-intro {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hero-heading {
    justify-items: center;
  }
}

.orb {
  display: none;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 2px solid var(--border);
}

.card,
.pill,
.timeline-item,
.project,
.contact-card {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

@media (hover: hover) {
  .card:hover,
  .pill:hover,
  .timeline-item:hover,
  .project:hover,
  .contact-card:hover,
  .card:focus-within,
  .pill:focus-within,
  .timeline-item:focus-within,
  .project:focus-within,
  .contact-card:focus-within {
    transform: translateY(-4px);
    border-color: rgba(210, 108, 47, 0.45);
    box-shadow: 0 18px 40px rgba(18, 20, 23, 0.08);
    background: #fffdf9;
  }
}

.card-title {
  font-weight: 600;
  margin-bottom: 12px;
}

.card ul {
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}

.section {
  padding: 72px 8vw;
}

.section.alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.pill-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pill {
  background: var(--card);
  border-radius: 18px;
  padding: 20px;
  border: 2px solid var(--border);
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--card);
  border: 2px solid var(--border);
}

.year-block {
  display: grid;
  gap: 2px;
  justify-items: center;
  width: 70px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.year {
  font-weight: 600;
  color: var(--accent);
}

.month {
  font: inherit;
  font-weight: 600;
  color: var(--accent);
}

#presentations .timeline {
  position: relative;
}

#presentations .timeline-item {
  position: relative;
  background: var(--card);
  z-index: 1;
}

#presentations .timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--border);
}


.section-action {
  margin-top: 24px;
}

.title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(18, 20, 23, 0.25);
}

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

.media-link {
  margin-top: 10px;
}


.project-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project {
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
  border: 2px solid var(--border);
  display: grid;
  gap: 12px;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(26, 166, 160, 0.12);
  color: var(--accent-2);
  font-size: 0.75rem;
  width: fit-content;
}

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

.contact-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  border: 2px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.gallery-slider {
  display: grid;
  gap: 22px;
  max-width: 980px;
}

.gallery-frame {
  padding: 0;
  overflow: hidden;
}

.gallery-slide-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--bg-soft);
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gallery-button {
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.gallery-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.gallery-status {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.gallery-empty {
  padding: 28px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.gallery-empty[hidden] {
  display: none;
}

.footer {
  padding: 28px 8vw 40px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

[data-animate] {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (max-width: 900px) {
  .nav {
    flex-direction: column;
    gap: 16px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .page-hero-copy {
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 36px 6vw 64px;
  }

  .hero-copy h1 {
    font-size: clamp(1.95rem, 9vw, 2.6rem);
  }

  .section {
    padding: 64px 6vw;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .page-hero-copy h1 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .gallery-controls {
    flex-direction: column;
  }
}
