:root {
  --ink: #142428;
  --ink-soft: #3a4f54;
  --paper: #eef4f3;
  --paper-2: #e2ecea;
  --teal: #0f6b66;
  --teal-deep: #0a4542;
  --teal-bright: #1a9a8f;
  --mist: #c5ddd8;
  --line: rgba(20, 36, 40, 0.12);
  --header-h: 4.25rem;
  --font-display: "Bricolage Grotesque", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(26, 154, 143, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 5%, rgba(197, 221, 216, 0.7), transparent 50%),
    linear-gradient(180deg, #f4f8f7 0%, var(--paper) 28%, #e8f1ef 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--teal);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--teal-deep);
}

.lattice {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(15, 107, 102, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 107, 102, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
  animation: lattice-drift 28s linear infinite;
}

@keyframes lattice-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 48px 48px, 48px 48px;
  }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding: 0.75rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(238, 244, 243, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--teal-deep);
  text-decoration: none;
  flex-shrink: 0;
}

.nav {
  display: none;
  gap: 1.25rem;
  margin-left: auto;
}

.nav a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.65rem;
  color: var(--ink-soft);
  cursor: pointer;
}

.lang-btn.is-active {
  background: var(--teal-deep);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: #fff;
  background: var(--teal);
  border: 1.5px solid var(--teal);
  text-decoration: none;
  transition: transform 0.25s var(--ease), background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: 0.9rem;
}

.btn-ghost {
  background: transparent;
  color: var(--teal-deep);
  border-color: rgba(15, 107, 102, 0.35);
}

.btn-ghost:hover {
  background: rgba(15, 107, 102, 0.08);
  color: var(--teal-deep);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  min-height: calc(100svh - var(--header-h));
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 4vw, 3rem)
    clamp(3rem, 8vw, 5rem);
}

.hero-copy {
  max-width: 38rem;
  animation: rise 0.9s var(--ease) both;
}

.hero-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--teal-deep);
}

.hero-lede {
  margin: 0 0 1.25rem;
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  animation: rise 1.1s var(--ease) 0.15s both;
}

.crystal {
  width: min(100%, 420px);
  height: auto;
  filter: drop-shadow(0 28px 40px rgba(10, 69, 66, 0.22));
}

.facet {
  transform-origin: center;
  animation: facet-breathe 7s ease-in-out infinite;
}

.f2 {
  animation-delay: -1.2s;
}
.f3 {
  animation-delay: -2.4s;
}
.f4 {
  animation-delay: -0.6s;
}
.f5 {
  animation-delay: -3s;
}
.f6 {
  animation-delay: -1.8s;
}
.f7 {
  animation-delay: -4s;
}

@keyframes facet-breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.82;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
}

.section-alt {
  background: linear-gradient(
    180deg,
    rgba(226, 236, 234, 0.65) 0%,
    rgba(238, 244, 243, 0.4) 100%
  );
  border-block: 1px solid var(--line);
}

.section-inner {
  max-width: 72rem;
  margin: 0 auto;
}

.section-inner.narrow {
  max-width: 42rem;
}

.part-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.part-list li {
  position: relative;
  padding-left: 1.35rem;
  max-width: 42rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.part-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--teal-bright);
  border-radius: 1px;
  transform: rotate(45deg);
}

.section h2 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 3.5vw, 2.55rem);
  letter-spacing: -0.03em;
  color: var(--teal-deep);
}

.lead {
  font-size: 1.25rem;
  color: var(--ink);
  max-width: 46rem;
}

.section p {
  margin: 0 0 1rem;
  max-width: 46rem;
  color: var(--ink-soft);
}

.section .lead {
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Objectives */
.objectives {
  display: grid;
  gap: 2.5rem;
  margin-top: 0.5rem;
}

.objectives h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--teal);
}

.objectives p {
  margin: 0;
}

/* Preparation */
.prep-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  counter-reset: prep;
  display: grid;
  gap: 2rem;
}

.prep-list > li {
  position: relative;
  padding-left: 3.25rem;
  counter-increment: prep;
}

.prep-list > li::before {
  content: counter(prep, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--teal-bright);
}

.prep-list h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
}

.software {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.5rem;
}

.software a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border-bottom: 2px solid rgba(15, 107, 102, 0.3);
}

.software a:hover {
  border-bottom-color: var(--teal);
}

.note {
  margin-top: 2.5rem;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--line);
  max-width: 46rem;
}

.note p {
  margin: 0;
  font-size: 1.05rem;
}

/* Scientists */
.scientists {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.scientists li {
  display: grid;
  gap: 0.35rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.scientist-name {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
  width: fit-content;
  transition: color 0.2s ease;
}

.scientist-name::after {
  content: "";
  display: inline-block;
  width: 0.85em;
  height: 0.85em;
  flex-shrink: 0;
  background-color: currentColor;
  opacity: 0.75;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M6 3H3.5A1.5 1.5 0 0 0 2 4.5v8A1.5 1.5 0 0 0 3.5 14h8A1.5 1.5 0 0 0 13 12.5V10M10 2h4v4M7 9l7-7'/%3E%3C/svg%3E")
    center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M6 3H3.5A1.5 1.5 0 0 0 2 4.5v8A1.5 1.5 0 0 0 3.5 14h8A1.5 1.5 0 0 0 13 12.5V10M10 2h4v4M7 9l7-7'/%3E%3C/svg%3E")
    center / contain no-repeat;
}

.scientist-name:hover {
  color: var(--teal-deep);
}

.scientist-name[href="#"] {
  color: var(--ink);
  text-decoration: none;
  pointer-events: none;
  cursor: default;
}

.scientist-name[href="#"]::after {
  display: none;
}

.scientist-name[href="#"]:hover {
  color: var(--ink);
}

.scientists span {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 52rem;
}

/* Contact */
.section-contact {
  background:
    linear-gradient(135deg, rgba(15, 107, 102, 0.12), transparent 45%),
    linear-gradient(180deg, var(--paper-2), var(--paper));
}

.contact-org {
  font-size: 1.2rem;
  color: var(--ink) !important;
}

.contact-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
}

.contact-list span {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal);
}

.contact-list a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--teal);
}

.site-footer {
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

@media (min-width: 720px) {
  .nav {
    display: flex;
  }

  .header-actions {
    margin-left: 0;
  }

  .objectives {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }

  .scientists li {
    grid-template-columns: minmax(14rem, 18rem) 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .lattice,
  .facet,
  .hero-copy,
  .hero-visual {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
