:root {
  color-scheme: dark;
  --bg: #141414;
  --text: #f2f2f2;
  --muted: #a8a8a8;
  --line: #303030;
  --accent: #8ab4f8;
  --surface: #1e1e1e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.6;
}

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

a:hover,
a:focus-visible {
  color: var(--accent);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 48px, 1080px);
  margin: 0 auto;
  padding: 30px 0;
  background: rgba(20, 20, 20, 0.88);
  backdrop-filter: blur(8px);
}

.brand,
.top-nav a {
  font-size: 0.95rem;
}

.brand {
  font-weight: 700;
}

.top-nav {
  display: flex;
  gap: 24px;
}

.site-shell {
  width: min(100% - 48px, 860px);
  margin: 0 auto;
}

.intro {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 120px 0 72px;
  text-align: center;
}

.drone-scene {
  position: absolute;
  z-index: 0;
  top: clamp(132px, 16vh, 198px);
  left: 50%;
  width: 100vw;
  height: min(68vh, 620px);
  transform: translateX(-50%);
  pointer-events: none;
}

.drone-flight {
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  height: 100%;
  animation: drone-fly 16s ease-in-out infinite;
}

.drone {
  position: absolute;
  top: 0;
  left: 0;
  width: 112px;
  height: auto;
  color: var(--text);
  opacity: 0.78;
  filter: blur(0.35px) drop-shadow(0 8px 22px rgba(0, 0, 0, 0.5));
  animation: drone-hover 2.8s ease-in-out infinite;
}

.drone-arm,
.rotor {
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.86;
}

.drone-body {
  fill: var(--surface);
  stroke: currentColor;
  stroke-width: 3;
}

.drone-lens {
  fill: var(--accent);
  filter: drop-shadow(0 0 8px rgba(138, 180, 248, 0.8));
}

.rotor {
  animation: rotor-spin 0.34s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.laser {
  position: absolute;
  --laser-angle: 0deg;
  top: 52px;
  left: 22px;
  width: 68px;
  height: min(58vh, 520px);
  transform-origin: top center;
  background:
    linear-gradient(90deg, transparent 0%, rgba(138, 180, 248, 0.18) 18%, rgba(138, 180, 248, 0.56) 50%, rgba(138, 180, 248, 0.18) 82%, transparent 100%),
    linear-gradient(180deg, rgba(138, 180, 248, 0.48), rgba(138, 180, 248, 0.2) 45%, transparent 100%);
  clip-path: polygon(48% 0, 52% 0, 100% 100%, 0 100%);
  filter: blur(1.5px);
  opacity: 0;
  animation: laser-pulse 8.5s ease-in-out infinite;
}

.laser-two {
  --laser-angle: 0deg;
  left: 16px;
  width: 80px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(106, 255, 207, 0.14) 16%, rgba(106, 255, 207, 0.42) 50%, rgba(106, 255, 207, 0.14) 84%, transparent 100%),
    linear-gradient(180deg, rgba(106, 255, 207, 0.38), rgba(106, 255, 207, 0.16) 48%, transparent 100%);
  animation-delay: 2.8s;
}

.laser-three {
  --laser-angle: 0deg;
  left: 28px;
  width: 56px;
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 111, 145, 0.14) 20%, rgba(255, 111, 145, 0.42) 50%, rgba(255, 111, 145, 0.14) 80%, transparent 100%),
    linear-gradient(180deg, rgba(255, 111, 145, 0.38), rgba(255, 111, 145, 0.16) 48%, transparent 100%);
  animation-delay: 5.6s;
}

.forest-layer {
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 14%;
  width: min(122vw, 1380px);
  height: clamp(210px, 28vw, 360px);
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, rgba(20, 20, 20, 0.18) 72%, var(--bg) 100%),
    linear-gradient(90deg, var(--bg) 0%, rgba(20, 20, 20, 0) 14%, rgba(20, 20, 20, 0) 86%, var(--bg) 100%),
    url("assets/eucalyptus-forest-bg.png") center top / cover no-repeat;
  opacity: 0.9;
  filter: blur(0.5px) saturate(0.9) brightness(0.9);
  pointer-events: none;
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, #000 76%, transparent 100%);
}

.portrait-wrap {
  position: relative;
  z-index: 2;
  width: clamp(160px, 24vw, 220px);
  aspect-ratio: 1;
  margin-bottom: 12px;
}

.portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
  box-shadow: 0 0 0 10px var(--bg), 0 18px 60px rgba(0, 0, 0, 0.42);
}

@keyframes drone-fly {
  0% {
    transform: translateX(0) scaleX(1);
  }

  46% {
    transform: translateX(calc(100vw - 160px)) scaleX(1);
  }

  50% {
    transform: translateX(calc(100vw - 160px)) scaleX(-1);
  }

  96% {
    transform: translateX(0) scaleX(-1);
  }

  100% {
    transform: translateX(0) scaleX(1);
  }
}

@keyframes drone-hover {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(7px) rotate(1deg);
  }
}

@keyframes rotor-spin {
  to {
    transform: rotate(180deg);
  }
}

@keyframes laser-pulse {
  0%,
  46%,
  100% {
    opacity: 0;
    transform: rotate(var(--laser-angle)) scaleY(0.08);
  }

  53% {
    opacity: 0.9;
    transform: rotate(var(--laser-angle)) scaleY(1);
  }

  66% {
    opacity: 0.16;
    transform: rotate(var(--laser-angle)) scaleY(0.76);
  }
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  font-size: clamp(2.35rem, 7vw, 4.75rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
}

.summary {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.keywords {
  position: relative;
  z-index: 2;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.95rem;
}

.social-links {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.social-links a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 700;
}

.social-links svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.text-icon {
  line-height: 1;
}

.social-links a:hover,
.social-links a:focus-visible {
  border-color: currentColor;
}

.research {
  padding: 84px 0 120px;
}

.section-heading {
  margin-bottom: 18px;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0;
}

.research-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.research-item:last-child {
  border-bottom: 1px solid var(--line);
}

.research-item h3 {
  margin-bottom: 6px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.25;
}

.research-item p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

.research-item .meta {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 0.9rem;
}

.research-link {
  padding-top: 2px;
  color: var(--accent);
  font-size: 0.92rem;
  white-space: nowrap;
}

.site-footer {
  width: min(100% - 48px, 860px);
  margin: 0 auto;
  padding: 0 0 34px;
  color: var(--muted);
  text-align: center;
  font-size: 0.78rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 700px) {
  .site-header {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 16px 12px;
    gap: 10px;
  }

  .brand,
  .top-nav a {
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .top-nav {
    flex: 0 0 auto;
    gap: 12px;
    margin-left: auto;
  }

  .site-shell {
    width: min(100% - 24px, 860px);
  }

  .intro {
    overflow: hidden;
    min-height: 100svh;
    gap: 12px;
    padding: 94px 0 58px;
    justify-content: center;
  }

  .portrait-wrap {
    width: min(44vw, 156px);
    margin-bottom: 8px;
  }

  .portrait {
    box-shadow: 0 0 0 7px var(--bg), 0 16px 42px rgba(0, 0, 0, 0.38);
  }

  .drone-scene {
    top: 60px;
    height: 45vh;
    opacity: 0.7;
  }

  .drone {
    width: 70px;
    opacity: 0.58;
  }

  .laser {
    top: 34px;
    left: 13px;
    width: 44px;
    height: 34vh;
    filter: blur(2.4px);
  }

  .laser-two {
    left: 10px;
    width: 50px;
  }

  .laser-three {
    left: 16px;
    width: 38px;
  }

  .forest-layer {
    bottom: 22%;
    width: 124vw;
    height: 210px;
    background:
      linear-gradient(180deg, rgba(20, 20, 20, 0) 0%, rgba(20, 20, 20, 0.1) 72%, var(--bg) 100%),
      linear-gradient(90deg, var(--bg) 0%, rgba(20, 20, 20, 0) 10%, rgba(20, 20, 20, 0) 90%, var(--bg) 100%),
      url("assets/eucalyptus-forest-bg.png") center top / cover no-repeat;
    opacity: 0.9;
    filter: blur(0.5px) saturate(0.9) brightness(0.9);
  }

  h1 {
    font-size: clamp(2.25rem, 13vw, 3.35rem);
    line-height: 1;
  }

  .summary {
    font-size: 0.98rem;
  }

  .keywords {
    max-width: 310px;
    font-size: 0.78rem;
    line-height: 1.45;
  }

  .social-links {
    max-width: 300px;
    gap: 10px;
  }

  .social-links a {
    width: 40px;
    height: 40px;
  }

  .social-links svg {
    width: 20px;
    height: 20px;
  }

  .research {
    padding: 52px 0 80px;
  }

  h2 {
    font-size: 1.75rem;
  }

  .research-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0;
  }

  .research-item h3 {
    font-size: 1rem;
    line-height: 1.35;
  }

  .research-item .meta,
  .research-item p,
  .research-link {
    font-size: 0.82rem;
  }

  .research-link {
    justify-self: start;
  }

  .site-footer {
    width: min(100% - 24px, 860px);
    padding-bottom: 28px;
  }
}

@media (max-width: 380px) {
  .brand {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand,
  .top-nav a {
    font-size: 0.72rem;
  }

  .top-nav {
    gap: 7px;
  }

  .intro {
    padding-top: 86px;
  }

  .portrait-wrap {
    width: 138px;
  }

  .social-links {
    max-width: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drone-flight,
  .drone,
  .rotor,
  .laser {
    animation: none;
  }

  .laser {
    display: none;
  }
}
