:root {
  --bg: #f3f1ea;
  --ink: #1d2428;
  --ink-soft: #3f4e55;
  --line: rgba(30, 44, 53, 0.16);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --accent: #0a7f6f;
  --accent-alt: #d36a2d;
  --link-blue: #1458b8;
  --link-blue-hover: #0d4290;
  --shadow: 0 18px 38px rgba(21, 35, 43, 0.12);
  --radius-lg: 24px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 12%, rgba(10, 127, 111, 0.16), transparent 46%),
    radial-gradient(circle at 90% 18%, rgba(211, 106, 45, 0.15), transparent 45%),
    var(--bg);
  min-height: 100vh;
}

.bg-glow {
  position: fixed;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(58px);
  z-index: -1;
}

.bg-glow-a {
  top: -20rem;
  right: -12rem;
  background: rgba(10, 127, 111, 0.22);
}

.bg-glow-b {
  bottom: -20rem;
  left: -10rem;
  background: rgba(211, 106, 45, 0.18);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(9px);
  background: rgba(243, 241, 234, 0.86);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: linear-gradient(138deg, var(--accent), #27a692);
  color: #fff;
}

.brand-text {
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.2vw, 1.4rem);
}

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

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

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.62rem;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
}

.lang-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.lang-link.is-active {
  color: var(--ink);
}

main,
.footer {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.hero {
  padding: clamp(2.8rem, 7vw, 5.4rem) 0 2.2rem;
}

.eyebrow {
  margin: 0 0 0.82rem;
  font-size: 0.78rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

main a:not(.btn):not(.link-card):not(.site-tree-preview),
.footer a {
  color: var(--link-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

main a:not(.btn):not(.link-card):not(.site-tree-preview):hover,
.footer a:hover {
  color: var(--link-blue-hover);
}

.hero h1 {
  font-family: "Fraunces", "Source Serif 4", serif;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.hero h1 span {
  display: block;
  margin-top: 0.4rem;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  color: var(--ink-soft);
  font-size: clamp(1.18rem, 3vw, 2.08rem);
}

.hero-copy {
  margin: 1.2rem 0 0;
  max-width: 74ch;
  color: var(--ink-soft);
  line-height: 1.65;
}

.hero-showcase {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.hero-shot {
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: inherit;
  text-align: left;
  cursor: zoom-in;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hero-shot:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 88, 184, 0.45);
  box-shadow: 0 18px 34px rgba(21, 35, 43, 0.2);
}

.hero-shot:focus-visible {
  outline: 2px solid rgba(20, 88, 184, 0.38);
  outline-offset: 2px;
}

.hero-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 220ms ease;
}

.hero-shot:hover img {
  transform: scale(1.05);
}

.hero-shot span {
  display: block;
  padding: 0.66rem 0.8rem 0.73rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.hero-actions {
  margin-top: 1.52rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1.16rem;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-solid {
  background: linear-gradient(130deg, var(--accent), #1f9c87);
  color: #fff;
  box-shadow: 0 13px 26px rgba(10, 127, 111, 0.28);
}

.btn-soft {
  background: rgba(10, 127, 111, 0.12);
  color: #0e665a;
}

.btn-line {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--line);
  color: var(--ink);
}

.hero-metrics {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.metric-value {
  margin: 0;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--accent-alt);
}

.metric-label {
  margin: 0.34rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.metric-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dashed rgba(15, 23, 42, 0.35);
}

.metric-link:hover,
.metric-link:focus-visible {
  color: var(--accent);
  border-bottom-color: currentColor;
}

.section {
  padding: 1.8rem 0;
}

.section-head {
  margin-bottom: 1rem;
}

.section-head h2 {
  font-family: "Fraunces", "Source Serif 4", serif;
  font-size: clamp(1.5rem, 4vw, 2.45rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.05rem 1rem;
  box-shadow: var(--shadow);
}

.info-card h3 {
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1.02rem;
}

.info-card p {
  margin: 0.58rem 0 0;
  color: var(--ink-soft);
  line-height: 1.56;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid rgba(10, 127, 111, 0.4);
}

.timeline-item {
  position: relative;
  margin: 0 0 0.95rem 0;
  padding: 0.12rem 0 0.1rem 1.1rem;
}

.timeline-item::before {
  content: "";
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent), #1f9c87);
  position: absolute;
  left: -0.42rem;
  top: 0.38rem;
}

.phase {
  display: block;
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-weight: 700;
}

.timeline-item p {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  line-height: 1.58;
}

.matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.matrix-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.matrix-card h3 {
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
}

.matrix-card p {
  margin: 0.54rem 0 0;
  color: var(--ink-soft);
  line-height: 1.58;
}

.shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.shot {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shot[data-lightbox-image] {
  cursor: zoom-in;
}

.shot[data-lightbox-image]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.shot figcaption {
  margin: 0;
  padding: 0.72rem 0.8rem;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.site-map-grid {
  margin-top: 0.6rem;
}

.site-tree {
  margin: 0.58rem 0 0;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 0.24rem;
  color: var(--ink-soft);
}

.site-tree-preview {
  border: 1px solid rgba(20, 88, 184, 0.32);
  background: rgba(20, 88, 184, 0.08);
  color: #0d4290;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0.44rem 0.6rem;
}

.site-tree-preview:hover {
  background: rgba(20, 88, 184, 0.15);
}

.link-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.95rem 0.96rem;
  box-shadow: var(--shadow);
}

.link-card h3 {
  font-family: "Space Grotesk", "Avenir Next", sans-serif;
  font-size: 1rem;
}

.link-card p {
  margin: 0.52rem 0 0;
  color: var(--ink-soft);
}

.doi-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.doi-table th,
.doi-table td {
  text-align: left;
  padding: 0.72rem 0.8rem;
  border-bottom: 1px solid rgba(30, 44, 53, 0.12);
  vertical-align: top;
}

.doi-table tr:last-child td {
  border-bottom: 0;
}

.doi-table th {
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
}

.doi-table td a {
  color: var(--link-blue);
}

.footer {
  margin-top: 2rem;
  padding: 0 0 2.1rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

body.no-scroll {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(0.8rem, 3vw, 1.4rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background: rgba(11, 21, 26, 0.8);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-panel {
  width: min(1040px, 94vw);
  max-height: calc(100vh - 2rem);
  background: #0f1619;
  border: 1px solid rgba(220, 240, 245, 0.2);
  border-radius: 16px;
  padding: 0.85rem;
  display: grid;
  gap: 0.6rem;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.42);
}

.lightbox-image-wrap {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #0b1114;
}

.lightbox-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
  background: #0b1114;
}

.lightbox-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.lightbox-caption {
  margin: 0;
  color: #e3edf0;
  font-size: 0.88rem;
  line-height: 1.42;
}

.lightbox-close {
  border: 1px solid rgba(227, 237, 240, 0.28);
  background: rgba(227, 237, 240, 0.12);
  color: #ffffff;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.42rem 0.75rem;
}

.lightbox-close:hover {
  background: rgba(227, 237, 240, 0.2);
}

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

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

@media (max-width: 1024px) {
  .hero-metrics,
  .card-grid,
  .shot-grid,
  .hero-showcase,
  .doc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .topbar {
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 0.2rem;
  }

  .matrix {
    grid-template-columns: 1fr;
  }

  .hero-metrics,
  .card-grid,
  .shot-grid,
  .hero-showcase,
  .doc-grid {
    grid-template-columns: 1fr;
  }
}
