﻿:root {
  --ink: #0b0d0f;
  --mist: #f1efe8;
  --stone: #d3c9b5;
  --copper: #b85c2a;
  --forest: #1c5b4a;
  --sky: #7fb6c2;
  --shadow: rgba(8, 9, 10, 0.08);
  --glow: rgba(184, 92, 42, 0.22);
  --max-width: 1440px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Space Grotesk", "Arial", sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: radial-gradient(circle at top, #f7f1e2 0%, #efe5d5 40%, #e9dfcf 100%);
  min-height: 100vh;
  line-height: 1.6;
}

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

.bg-grid {
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(13, 15, 17, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 15, 17, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.25;
  pointer-events: none;
  z-index: -3;
}

.bg-orb {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.45;
  z-index: -2;
}

.orb-1 {
  background: radial-gradient(circle, rgba(28, 91, 74, 0.35) 0%, rgba(28, 91, 74, 0) 70%);
  top: -120px;
  right: -120px;
}

.orb-2 {
  background: radial-gradient(circle, rgba(184, 92, 42, 0.25) 0%, rgba(184, 92, 42, 0) 70%);
  bottom: -160px;
  left: -120px;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: rgba(247, 241, 226, 0.85);
  border-bottom: 1px solid rgba(13, 15, 17, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 6vw;
  z-index: 50;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-weight: 500;
  font-size: 0.95rem;
}

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

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

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

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

.nav-dropdown {
  position: relative;
  padding-bottom: 10px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 240px;
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(11, 13, 15, 0.08);
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(9, 11, 13, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a {
  padding-bottom: 0;
  color: var(--forest);
}

.dropdown-menu a::after {
  display: none;
}

.menu-btn {
  display: none;
  background: transparent;
  border: none;
  gap: 6px;
  flex-direction: column;
}

.menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px clamp(24px, 4vw, 56px) 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(300px, 0.45fr) minmax(420px, 0.55fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: 20px 0 30px;
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  background: rgba(255, 255, 255, 0.58);
  display: block;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 42px rgba(9, 11, 13, 0.16);
}

.hero-photo img.slide-dendrometer {
  object-position: 82% center;
}

.hero-photo img:not(.active) {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.hero-photo img.active {
  opacity: 1;
}

.hero-photo img {
  transition: opacity 0.5s ease;
}

.slider-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
}

.slider-controls button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(11, 13, 15, 0.64);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.slider-controls button:hover,
.slider-controls button:focus {
  background: rgba(28, 91, 74, 0.9);
  outline: none;
}

.image-caption {
  margin-top: 8px;
  color: rgba(11, 13, 15, 0.58);
  font-size: 0.88rem;
  text-align: center;
}

.pt-note {
  margin-top: 12px;
  color: var(--forest);
  font-weight: 600;
}

.highlight-card {
  position: relative;
}

.highlight-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(11, 13, 15, 0.55);
  margin-bottom: 10px;
  font-weight: 600;
}

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

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1.1;
  margin: 16px 0 18px;
}

.hero h1 span {
  color: var(--copper);
}

.lead {
  font-size: 1.1rem;
  max-width: 780px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 26px 0 30px;
}

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

.btn.primary {
  background: var(--forest);
  color: #f7f1e2;
  box-shadow: 0 16px 30px var(--shadow);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 35px var(--shadow);
}

.btn.ghost {
  border-color: rgba(11, 13, 15, 0.2);
}

.btn.ghost:hover {
  background: rgba(11, 13, 15, 0.06);
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.meta-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: rgba(11, 13, 15, 0.55);
  display: block;
}

.meta-value {
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 6px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 20px 50px rgba(9, 11, 13, 0.15);
}

.hero-card-inner h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(28, 91, 74, 0.12);
  color: var(--forest);
  font-size: 0.85rem;
  font-weight: 600;
}

.section {
  padding: 34px 0;
}

.panel-stage {
  margin-top: 28px;
  min-height: 420px;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.home-panel {
  padding-top: 4px;
}

.home-content {
  margin-top: 40px;
  display: grid;
  gap: 24px;
}

.paper-card img,
.about-photo img,
.media-frame img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

.paper-card img {
  margin-bottom: 16px;
}

.home-note {
  font-weight: 500;
}

.feature-callout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(420px, 1.25fr);
  align-items: center;
  gap: 24px;
  height: auto;
}

.feature-callout h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  margin-bottom: 8px;
}

.feature-callout p:not(.highlight-label) {
  max-width: 720px;
}

.reddai-options {
  display: grid;
  grid-template-columns: 1fr;
}

.reddai-visual {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(11, 13, 15, 0.08);
  box-shadow: 0 10px 24px rgba(9, 11, 13, 0.12);
}

.reddai-photo img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.reddai-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 13, 15, 0.1), rgba(11, 13, 15, 0.42));
}

.option-label {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
}

.timeline {
  list-style: none;
  display: grid;
  gap: 10px;
  color: rgba(11, 13, 15, 0.85);
}

.timeline strong {
  font-weight: 600;
}

.about-photo {
  display: grid;
  gap: 14px;
}

.links-card .link-row {
  display: grid;
  gap: 10px;
}

.links-card a {
  font-weight: 600;
  color: var(--forest);
}

.media-frame {
  margin-top: 14px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(11, 13, 15, 0.08);
  background: rgba(255, 255, 255, 0.7);
}

.media-list {
  gap: 20px;
}

.media-item {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 18px;
  align-items: center;
}

.media-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(11, 13, 15, 0.08);
  box-shadow: 0 8px 20px rgba(9, 11, 13, 0.12);
}

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

.media-thumb span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(11, 13, 15, 0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}

.thumb-list {
  gap: 20px;
}

.thumb-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  align-items: center;
}

.link-thumb {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 74px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(28, 91, 74, 0.12);
  color: var(--forest);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  border: 1px solid rgba(11, 13, 15, 0.08);
}

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

.link-thumb img + span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(11, 13, 15, 0.78);
  color: #fff;
  font-size: 0.74rem;
}

.type-zenodo {
  background: rgba(127, 182, 194, 0.2);
  color: #235d6a;
}

.type-github {
  background: rgba(11, 13, 15, 0.08);
  color: var(--ink);
}

.type-course,
.type-lecture,
.type-report,
.type-supervision {
  background: rgba(184, 92, 42, 0.12);
  color: var(--copper);
}

.type-web,
.type-dataset {
  background: rgba(28, 91, 74, 0.12);
  color: var(--forest);
}

.profile-card p + p {
  margin-top: 14px;
}

.about-grid {
  column-count: 2;
  column-gap: 32px;
  margin-top: 24px;
}

#about .about-grid > .card {
  display: inline-block;
  width: 100%;
  margin: 0 0 32px;
  padding-top: 28px;
  padding-bottom: 28px;
  height: auto;
}

#about .card h3 {
  margin-bottom: 16px;
}

#about .pillars {
  gap: 14px;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 2px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 0;
}

.section-header p {
  max-width: 100%;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}

.research-lines {
  margin-bottom: 24px;
}

.research-lines + .card {
  margin-top: 24px;
}

.development-intro {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 340px);
  gap: 24px;
  align-items: center;
}

.development-intro img {
  width: 100%;
  display: block;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(9, 11, 13, 0.12);
}

.pubs-card {
  margin-top: 24px;
}

.pub-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(130px, 180px);
  gap: 14px;
  align-items: end;
  margin: 14px 0 24px;
}

.pub-tools label {
  display: grid;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(11, 13, 15, 0.65);
}

.pub-tools input,
.pub-tools select {
  width: 100%;
  border: 1px solid rgba(11, 13, 15, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

.pub-tools input:focus,
.pub-tools select:focus {
  outline: 2px solid rgba(184, 92, 42, 0.35);
  border-color: var(--copper);
}

.pub-tools #pub-count {
  grid-column: 1 / -1;
  margin-top: -4px;
  font-size: 0.9rem;
}

.past-highlights {
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

@media (max-width: 860px) {
  .past-highlights {
    grid-template-columns: 1fr;
  }
}

.card {
  background: rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: 0 14px 35px rgba(9, 11, 13, 0.12);
  border: 1px solid rgba(11, 13, 15, 0.06);
  height: 100%;
}

.section > .card + .card {
  margin-top: 28px;
}


.card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.card h4 {
  margin: 18px 0 10px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--forest);
}

.card h4.status-heading {
  display: inline-flex;
  margin-top: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(28, 91, 74, 0.12);
  color: var(--forest);
  font-size: 0.85rem;
}

.card h4.status-heading + h4 {
  margin-top: 10px;
}

.muted {
  color: rgba(11, 13, 15, 0.55);
}

.supervision-summary {
  margin: 6px 0 18px;
}

.pillars {
  display: grid;
  gap: 10px;
  list-style: none;
}

.pillars li {
  padding-left: 16px;
  position: relative;
}

.pillars li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper);
  position: absolute;
  left: 0;
  top: 0.5em;
}

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

.list-title {
  font-weight: 400;
  display: block;
}

.list-subtitle {
  color: rgba(11, 13, 15, 0.6);
}

.section-footer {
  margin-top: 28px;
}

.contact {
  background: rgba(255, 255, 255, 0.45);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
}

.contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(11, 13, 15, 0.72);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(11, 13, 15, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(184, 92, 42, 0.35);
  border-color: var(--copper);
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.site-footer {
  text-align: center;
  padding: 30px 6vw 60px;
  font-size: 0.9rem;
  color: rgba(11, 13, 15, 0.6);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 860px) {
  .site-header {
    padding: 18px 5vw;
  }

  .site-nav {
    position: fixed;
    top: 70px;
    right: 20px;
    flex-direction: column;
    background: rgba(247, 241, 226, 0.98);
    padding: 18px 22px;
    border-radius: var(--radius-md);
    box-shadow: 0 12px 30px rgba(10, 12, 14, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-dropdown {
    padding-bottom: 0;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    padding: 4px 0 0 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 30px;
  }

  .contact {
    padding: 40px 24px;
  }
}

@media (max-width: 560px) {
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
  }

  .pub-tools {
    grid-template-columns: 1fr;
  }

  .feature-callout {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .reddai-options {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .about-grid {
    column-count: 1;
  }

  .development-intro {
    grid-template-columns: 1fr;
  }
}


.pub-year {
  margin-bottom: 26px;
}

.pub-year h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.list-title a {
  color: #2b6cb0;
  font-weight: 400;
}


.pub-title {
  font-weight: 600;
  color: var(--ink);
}

.pub-journal {
  color: rgba(11, 13, 15, 0.65);
}
