:root {
  --ink: #1b2730;
  --muted: #5d6872;
  --green: #0d655d;
  --green-dark: #0a4746;
  --plum: #70435c;
  --brick: #a75a46;
  --blue: #2e618d;
  --gold: #b79243;
  --paper: #ffffff;
  --soft: #f5f7f4;
  --line: #d9e0dc;
  --shadow: 0 22px 58px rgba(27, 39, 48, 0.12);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.62;
}

body.nav-open,
body.modal-open {
  overflow: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  padding: 13px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(217, 224, 220, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 245px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--paper);
  background: linear-gradient(135deg, var(--green), var(--plum));
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.77rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 22px);
  color: var(--muted);
  font-size: 0.89rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--brick);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.site-nav a.is-active {
  color: var(--green-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--paper);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/academic-tourism-research-hero.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(15, 42, 45, 0.9) 0%, rgba(23, 48, 54, 0.7) 43%, rgba(30, 45, 52, 0.22) 100%),
    linear-gradient(0deg, rgba(18, 36, 43, 0.5), rgba(18, 36, 43, 0.08));
}

.hero-content {
  position: relative;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: 100px 0 108px;
}

.page-hero {
  padding: clamp(76px, 9vw, 124px) clamp(18px, 4vw, 48px);
}

.page-hero-inner {
  width: min(920px, 100%);
  margin: 0 auto;
}

.page-hero p:not(.section-kicker) {
  max-width: 820px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--brick);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c7b6;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.55rem, 5.4vw, 5.4rem);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 4.6rem);
}

h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3.6vw, 3.15rem);
}

h3 {
  margin: 0 0 10px;
  font-size: 1.06rem;
  line-height: 1.35;
}

.hero-intro {
  max-width: 780px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.91);
  font-size: 1.13rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--paper);
  background: var(--green);
}

.hero .button.primary {
  color: #172e32;
  background: #f0c7b6;
}

.button.secondary {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.12);
}

.button.ghost {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.38);
}

.section {
  padding: clamp(70px, 9vw, 118px) clamp(18px, 4vw, 48px);
}

.tinted {
  background: var(--soft);
}

.section-grid,
.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(34px, 6vw, 82px);
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-heading {
  width: min(var(--max), 100%);
  margin: 0 auto 38px;
}

.section-heading h2 {
  max-width: 890px;
}

.section-heading p:not(.section-kicker) {
  max-width: 830px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.section-heading.compact {
  max-width: 860px;
  text-align: center;
}

.section-heading.compact p:not(.section-kicker) {
  margin-right: auto;
  margin-left: auto;
}

.prose p,
.section-copy p,
.contact-copy,
.technology-panel > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.03rem;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(var(--max), 100%);
  margin: 46px auto 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.profile-facts article {
  padding: 22px;
  background: var(--paper);
}

.profile-facts strong,
.profile-facts span {
  display: block;
}

.profile-facts strong,
.overview-card span,
.cv-list strong {
  margin-bottom: 8px;
  color: var(--green-dark);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.profile-facts span,
.cv-list span {
  color: var(--muted);
  font-size: 0.95rem;
}

.overview-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

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

.overview-card,
.research-card,
.direction-list article,
.direction-card,
.conference-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(27, 39, 48, 0.06);
}

.overview-card {
  display: grid;
  gap: 12px;
  min-height: 180px;
  padding: 24px;
}

.overview-card strong {
  color: var(--ink);
  line-height: 1.45;
}

.research-card {
  min-height: 260px;
  padding: 24px;
}

.interactive-card {
  display: block;
  width: 100%;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.interactive-card:hover,
.interactive-card:focus-visible {
  border-color: rgba(13, 101, 93, 0.55);
  box-shadow: 0 18px 42px rgba(27, 39, 48, 0.12);
  outline: 0;
  transform: translateY(-2px);
}

.card-action {
  display: inline-block;
  margin-top: 18px;
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.research-card p,
.collaboration-list p,
.publication-panel p,
.publication-list p,
.method-layout p,
.direction-list p,
.technology-notes p,
.conference-list p {
  margin: 0;
  color: var(--muted);
}

.card-tag {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.method-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.method-layout article {
  padding: 26px;
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--paper);
}

.publication-panel {
  border-left: 4px solid var(--green);
  background: var(--soft);
}

.publication-panel article {
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.publication-panel article:last-child {
  border-bottom: 0;
}

.publication-panel h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.pub-meta {
  margin: 0 0 7px;
  color: var(--plum);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.publication-list {
  display: grid;
  gap: 16px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.publication-item {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(27, 39, 48, 0.05);
}

.publication-item h3 {
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.publication-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.publication-actions a,
.snapshot-button,
.text-link {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.snapshot-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.snapshot-button:hover,
.snapshot-button:focus-visible {
  color: var(--brick);
}

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

.snapshot-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 34px);
}

.snapshot-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 27, 32, 0.72);
  backdrop-filter: blur(5px);
}

.snapshot-dialog {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(1120px, 100%);
  max-height: min(92svh, 940px);
  overflow: auto;
  padding: clamp(18px, 3vw, 30px);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.snapshot-header {
  padding-right: 86px;
}

.snapshot-header h2 {
  max-width: 900px;
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
}

.snapshot-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--green-dark);
  background: var(--soft);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.snapshot-close:hover,
.snapshot-close:focus-visible {
  border-color: var(--green);
  outline: 3px solid rgba(13, 101, 93, 0.16);
}

.snapshot-dialog img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.snapshot-citation {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.note-panel {
  width: min(var(--max), 100%);
  margin: 0 auto 30px;
  padding: 20px 24px;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  color: var(--muted);
  background: #fffaf0;
}

.career-section {
  padding-top: clamp(54px, 7vw, 86px);
  padding-bottom: clamp(58px, 7vw, 90px);
}

.career-section .section-heading {
  margin-bottom: 28px;
}

.career-section h2 {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.18;
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.timeline-list article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 28px rgba(27, 39, 48, 0.05);
}

.timeline-list span {
  display: block;
  margin-bottom: 12px;
  color: var(--brick);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-list p,
.note-panel p {
  margin: 0;
  color: var(--muted);
}

.teaching-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(980px, 100%);
  margin: 0 auto;
}

.teaching-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.teaching-grid h2 {
  margin-bottom: 18px;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.teaching-grid ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.teaching-grid li + li {
  margin-top: 10px;
}

.technology-panel,
.cv-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.tech-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0;
}

.tech-list span {
  display: grid;
  min-height: 78px;
  place-items: center;
  padding: 12px;
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--green-dark);
  font-weight: 800;
  text-align: center;
}

.tech-list span:nth-child(2) {
  background: var(--blue);
}

.tech-list span:nth-child(3) {
  background: var(--plum);
}

.tech-list span:nth-child(4) {
  background: var(--brick);
}

.tech-list a {
  color: var(--paper);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.technology-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.technology-notes article {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.direction-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.direction-list article {
  padding: 24px;
}

.direction-card {
  min-height: 180px;
  padding: 24px;
}

.conference-list {
  display: grid;
  gap: 16px;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.conference-list article {
  padding: 22px 24px;
}

.conference-list h3 {
  max-width: 980px;
}

.conference-note {
  margin-top: 28px;
  margin-bottom: 0;
}

.collaboration-list {
  display: grid;
  gap: 18px;
}

.collaboration-list article {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.collaboration-list article:last-child {
  border-bottom: 0;
}

.cv-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(28px, 5vw, 68px);
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.cv-list {
  display: grid;
  gap: 16px;
}

.cv-list article {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.cv-list article:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-highlights-section .section-heading {
  margin-bottom: 22px;
}

.profile-links-section {
  padding-top: clamp(44px, 6vw, 66px);
  padding-bottom: clamp(50px, 6vw, 72px);
}

.profile-links-wrap {
  width: min(760px, 100%);
  margin: 0 auto;
}

.cv-list strong,
.cv-list span {
  display: block;
}

address {
  margin-top: 16px;
  font-style: normal;
}

.contact-portrait {
  width: min(190px, 58vw);
  margin: 24px 0 18px;
}

.contact-portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(27, 39, 48, 0.13);
}

address a {
  color: var(--green-dark);
  font-weight: 800;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.centered-links {
  justify-content: center;
}

.profile-links a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--green-dark);
  background: var(--paper);
  font-weight: 800;
}

.compact-links {
  margin-top: 18px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid #cbd4d0;
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  outline: 3px solid rgba(13, 101, 93, 0.16);
}

.form-button {
  width: fit-content;
}

.form-note {
  min-height: 1.35em;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 48px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--green-dark);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .overview-grid,
  .timeline-list,
  .profile-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .card-grid,
  .method-layout,
  .direction-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 71px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 12px 24px 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 34px rgba(27, 39, 48, 0.1);
    transform: translateY(-130%);
    transition: transform 220ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 0;
  }

  .hero {
    min-height: 84svh;
  }

  .hero-content {
    padding-bottom: 104px;
  }

  .section-grid,
  .split-section,
  .teaching-grid,
  .technology-notes,
  .cv-panel {
    grid-template-columns: 1fr;
  }

  .research-card {
    min-height: auto;
  }

  .contact-portrait {
    width: min(180px, 58vw);
  }
}

@media (max-width: 620px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-content {
    padding-top: 86px;
    padding-bottom: 100px;
  }

  .hero-intro,
  .page-hero p:not(.section-kicker) {
    font-size: 1rem;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(15, 42, 45, 0.92) 0%, rgba(23, 48, 54, 0.76) 100%),
      linear-gradient(0deg, rgba(18, 36, 43, 0.54), rgba(18, 36, 43, 0.12));
  }

  .hero-actions,
  .profile-links,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  .form-button {
    width: 100%;
  }

  .section,
  .page-hero {
    padding-inline: 18px;
  }

  .contact-portrait {
    width: min(170px, 56vw);
    margin-top: 20px;
  }

  .overview-grid,
    .profile-facts,
    .timeline-list,
    .card-grid,
  .method-layout,
  .direction-list,
  .tech-list {
    grid-template-columns: 1fr;
  }

  .contact-form,
  .technology-panel,
  .cv-panel,
  .teaching-grid article,
  .snapshot-dialog {
    padding: 20px;
  }

  .snapshot-header {
    padding-right: 0;
  }

  .snapshot-close {
    position: static;
    justify-self: end;
    order: -1;
  }
}
