:root {
  --bg: #f2efe8;
  --surface: #fffaf2;
  --surface-strong: #ffffff;
  --text: #112039;
  --muted: #4b5c76;
  --line: #d9d0c1;
  --brand: #0e5a8a;
  --brand-strong: #083d5f;
  --accent: #cf762c;
  --teal: #0f8a7a;
  --shadow: 0 18px 36px rgba(17, 32, 57, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 7% 10%, #d8e9ff 0%, transparent 33%),
    radial-gradient(circle at 94% 12%, #ddd4ff 0%, transparent 34%),
    radial-gradient(circle at 50% 110%, #d1dcff 0%, transparent 34%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  z-index: -2;
  pointer-events: none;
}

.bg-shape-a {
  width: 410px;
  height: 410px;
  left: -170px;
  top: 54vh;
  background: rgba(115, 84, 196, 0.16);
  filter: blur(20px);
}

.bg-shape-b {
  width: 330px;
  height: 330px;
  right: -95px;
  top: -70px;
  background: rgba(49, 118, 218, 0.16);
  filter: blur(26px);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.2;
  background-image:
    linear-gradient(to right, rgba(17, 32, 57, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(17, 32, 57, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 50%, black 46%, transparent 92%);
}

.hero,
main,
footer {
  width: min(1080px, calc(100% - 2.8rem));
  margin: 0 auto;
}

.hero {
  padding: 3.6rem 0 1.9rem;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 1.1rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.2rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 238, 0.95));
  box-shadow: var(--shadow);
}

.hero-main {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  background: rgba(255, 255, 255, 0.96);
}

.kicker {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
}

h1 {
  font-family: "Source Serif 4", serif;
  font-size: clamp(2.1rem, 5vw, 3.85rem);
  line-height: 0.94;
  margin: 0.45rem 0 0;
}

.subtitle {
  margin: 0.9rem 0 0;
  color: var(--brand);
  font-size: clamp(1rem, 2vw, 1.21rem);
  font-weight: 700;
}

.lead {
  margin: 1rem 0 0;
  max-width: 74ch;
  color: var(--muted);
  line-height: 1.68;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.hero-tags li {
  border: 1px solid #d0d9e9;
  background: #eef4fb;
  color: #24466e;
  border-radius: 999px;
  padding: 0.35rem 0.64rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.74rem 1.04rem;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(130deg, var(--brand), #2a84bc);
  box-shadow: 0 10px 24px rgba(14, 90, 138, 0.36);
}

.btn-primary:hover {
  background: linear-gradient(130deg, var(--brand-strong), var(--brand));
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: #fff;
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  background: linear-gradient(180deg, #fff, #f9f6ef);
}

.panel-title {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}

.metric-list {
  list-style: none;
  margin: 0.95rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.metric-list li {
  border: 1px solid #d6e5f0;
  border-radius: 13px;
  padding: 0.7rem;
  background: #f5f9fd;
  display: grid;
  gap: 0.2rem;
}

.metric-value {
  color: var(--brand);
  font-size: 1.2rem;
  font-weight: 700;
}

.metric-label {
  color: var(--muted);
  font-size: 0.86rem;
}

.tabs {
  position: sticky;
  top: 0.45rem;
  z-index: 5;
  width: min(1080px, calc(100% - 2.8rem));
  margin: 0 auto;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 245, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(17, 32, 57, 0.09);
}

.tabs a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 999px;
  padding: 0.52rem 0.88rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tabs a:hover {
  color: var(--brand);
}

.tabs a.active {
  background: var(--brand);
  color: #fff;
}

main {
  padding: 2.2rem 0 3.2rem;
}

.section {
  scroll-margin-top: 5rem;
  padding: 2rem 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

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

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

h2 {
  margin: 0.45rem 0 0;
  font-family: "Source Serif 4", serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

h3 {
  margin: 0;
  font-size: 1.03rem;
}

.grid {
  display: grid;
  gap: 0.95rem;
}

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

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

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.02rem;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #bfc9db;
  box-shadow: 0 20px 34px rgba(17, 32, 57, 0.15);
}

.card p {
  margin: 0.64rem 0 0;
  color: var(--muted);
  line-height: 1.64;
}

.section-note {
  margin: 0.62rem 0 0;
  color: var(--muted);
  max-width: 72ch;
  line-height: 1.6;
}

.project-grid {
  align-items: stretch;
}

.project-card {
  border-top: 4px solid #88a9df;
}

.project-label {
  margin: 0;
  color: #1f456e;
  width: fit-content;
  border-radius: 999px;
  padding: 0.26rem 0.55rem;
  background: #e8f2ff;
  border: 1px solid #c6dcf6;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.project-label--released {
  color: #0f6358;
  background: #e3f6f2;
  border-color: #bde6de;
}

.project-label--progress {
  color: #7a470f;
  background: #fff1de;
  border-color: #f3d0a3;
}

.project-link {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  word-break: break-word;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0.9rem;
  padding-left: 1.15rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.24rem;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(14, 90, 138, 0.42), rgba(14, 90, 138, 0.08));
}

.timeline-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.95rem 1rem 0.95rem 1rem;
  background: var(--surface);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.2rem;
  top: 1.08rem;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(14, 90, 138, 0.17);
}

.period {
  margin: 0;
  color: var(--accent);
  font-size: 0.79rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 700;
}

.timeline-item h3 {
  margin-top: 0.4rem;
}

.timeline-item ul {
  margin: 0.62rem 0 0 1.1rem;
  padding: 0;
  color: var(--muted);
  line-height: 1.55;
}

footer {
  padding: 0.9rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.2, 0.68, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.68, 0.2, 1);
}

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

@media (max-width: 960px) {
  .hero-shell {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 720px) {
  .hero,
  main,
  footer,
  .tabs {
    width: min(1080px, calc(100% - 1.4rem));
  }

  .hero {
    padding-top: 2.35rem;
  }

  .tabs {
    top: 0.22rem;
  }

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

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

  .reveal,
  .btn,
  .card {
    transition: none;
  }
}

.crawler-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
