@font-face {
  font-family: "Cinzel";
  src: url("https://fontsapi.zeoseven.com/q/bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("https://fontsapi.zeoseven.com/q/bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #faf8f4;
  --bg-soft: #f0ede6;
  --ink: #1a1614;
  --ink-soft: rgba(26, 22, 20, 0.68);
  --accent: #e63946;
  --accent-2: #457b9d;
  --accent-3: #f77f00;
  --stroke: rgba(26, 22, 20, 0.12);
  --glass: rgba(250, 248, 244, 0.85);
  --glow: radial-gradient(circle at 20% 20%, rgba(230, 57, 70, 0.15), transparent 55%);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  --shadow-heavy: 0 30px 80px rgba(0, 0, 0, 0.15);
  --exit-overlay-start: #ffffff;
  --exit-overlay-end: #ffffff;
  --max-width: 1400px;
}

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

body {
  min-height: 100vh;
  font-family: "IBM Plex Sans", sans-serif;
  background: linear-gradient(135deg, #fdfbf7 0%, #f5f1ea 50%, #ebe7dd 100%);
  color: var(--ink);
  overflow-x: hidden;
  position: relative;
}

button {
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 20px;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: linear-gradient(135deg, #fdfbf7 0%, #f5f1ea 50%, #ebe7dd 100%);
  pointer-events: none;
}

.intro-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: min(90vw, 460px);
  margin: 0 auto;
}

.intro-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.4em;
  color: var(--ink-soft);
  font-weight: 500;
}

.intro-logo {
  font-family: "Cinzel", serif;
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--ink);
  margin: 0;
}

.progress-ring {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring svg {
  transform: scaleX(-1);
}

.progress-ring-circle {
  stroke-dasharray: 534.07;
  stroke-dashoffset: 534.07;
  transition: stroke-dashoffset 0.3s ease;
}

.progress-percent {
  position: absolute;
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  font-family: "Cinzel", serif;
}

.intro-sub {
  font-size: 0.9rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.transition-overlay {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--exit-overlay-start) 0%, var(--exit-overlay-end) 100%);
  z-index: 10000;
  pointer-events: none;
}

.site {
  opacity: 0;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  z-index: 2;
}

.glow-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--glow);
  opacity: 0.6;
  filter: blur(80px);
}

.g1 {
  top: -100px;
  right: 10%;
  background: radial-gradient(circle at 50% 50%, rgba(230, 57, 70, 0.25), transparent 70%);
}

.g2 {
  bottom: -80px;
  left: 5%;
  background: radial-gradient(circle at 50% 50%, rgba(69, 123, 157, 0.2), transparent 70%);
}

.g3 {
  top: 40%;
  left: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(247, 127, 0, 0.18), transparent 70%);
}

.hero {
  position: relative;
  z-index: 3;
  max-width: 100%;
  margin: 0 auto;
  padding: 120px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  align-items: start;
}

.hero-center {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: start;
  max-width: var(--max-width);
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-section {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(26, 22, 20, 0.08);
  border-radius: 20px;
  padding: 20px;
}

.sidebar-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  margin-bottom: 16px;
  font-weight: 600;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-link {
  display: block;
  padding: 8px 12px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.sidebar-link:hover {
  background: rgba(230, 57, 70, 0.1);
  color: var(--accent);
  transform: translateX(4px);
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.activity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.activity-text {
  line-height: 1.4;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.9rem;
}

.status-label {
  color: var(--ink);
  font-weight: 500;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.status-online {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  font-family: "Cinzel", serif;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-title {
  font-family: "Cinzel", serif;
  font-size: clamp(3.5rem, 6vw, 6rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  font-weight: 700;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin-top: 20px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.hero-tag {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.chip {
  padding: 8px 18px;
  border: 1.5px solid var(--stroke);
  border-radius: 999px;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.primary-btn {
  padding: 16px 36px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-heavy);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.2);
}

.ghost-btn {
  padding: 16px 36px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font-weight: 500;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
}

.ghost-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.hero-right {
  display: grid;
  gap: 32px;
  justify-items: start;
  position: relative;
}

.orbit {
  width: 320px;
  aspect-ratio: 1;
  position: relative;
  margin: 0;
}

.ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--stroke);
  transform: scale(var(--scale));
}

.ring:nth-child(1) {
  --scale: 1;
  border-color: var(--accent);
  border-width: 3px;
}

.ring:nth-child(2) {
  --scale: 0.75;
}

.ring:nth-child(3) {
  --scale: 0.5;
}

.satellite {
  position: absolute;
  top: 10%;
  right: 25%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(230, 57, 70, 0.6);
}

.hero-panel {
  width: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(26, 22, 20, 0.08);
  border-radius: 24px;
  padding: 24px 28px;
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-heavy);
}

.panel-row {
  display: flex;
  justify-content: space-between;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
}

.panel-row span:last-child {
  color: var(--accent);
  font-weight: 600;
}

.stage {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 48px 100px;
  position: relative;
  z-index: 3;
}

.filters {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 48px;
}

.label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--ink-soft);
}

.filter-tags {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.filter {
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--stroke);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  font-size: 0.85rem;
  color: var(--ink);
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.filter:hover {
  transform: translateY(-2px);
  border-color: var(--ink);
}

.sort-pill {
  padding: 12px 20px;
  border-radius: 999px;
  border: 2px solid var(--stroke);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-weight: 500;
}

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

.group-header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 16px;
  border-bottom: 2px solid var(--stroke);
  margin-top: 32px;
}

.group-header:first-child {
  margin-top: 0;
}

.group-header h2 {
  font-family: "Cinzel", serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.05em;
  margin: 0;
}

.group-count {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 6px 16px;
  background: rgba(230, 57, 70, 0.1);
  border-radius: 999px;
}

.nav-card {
  position: relative;
  padding: 32px 28px 36px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(26, 22, 20, 0.08);
  min-height: 260px;
  overflow: visible;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
  text-decoration: none;
  display: block;
  filter: blur(0px);
  opacity: 1;
}

.nav-card:hover {
  transform: translateY(-12px);
  border-color: var(--accent);
  box-shadow: var(--shadow-heavy);
  filter: blur(0px);
  opacity: 1;
  z-index: 10;
  border-radius: 24px 24px 0 0;
}

.nav-card:hover .nav-card-expanded.expand-up ~ * {
  border-radius: 0 0 24px 24px;
}

.nav-card.blur-out {
  filter: blur(6px);
  opacity: 0.4;
  transform: scale(0.98);
}

.nav-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.08), rgba(69, 123, 157, 0.08));
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: inherit;
  z-index: 0;
}

.nav-card:hover::before {
  opacity: 1;
}

.nav-card-expanded {
  position: absolute;
  top: 100%;
  left: -2px;
  right: -2px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  border: 2px solid rgba(26, 22, 20, 0.08);
  border-top: none;
  border-radius: 0 0 24px 24px;
  padding: 0 28px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  z-index: 5;
}

.nav-card-expanded.expand-up {
  top: auto;
  bottom: 100%;
  border-top: 2px solid rgba(26, 22, 20, 0.08);
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  transform: translateY(20px);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.15);
}

.nav-card:hover {
  border-radius: 24px 24px 0 0;
}

.nav-card:hover .nav-card-expanded.expand-up {
  border-color: var(--accent);
}

.nav-card:hover:has(.nav-card-expanded.expand-up) {
  border-radius: 0 0 24px 24px;
}

.nav-card:hover .nav-card-expanded {
  max-height: 350px;
  opacity: 1;
  transform: translateY(0);
  padding: 24px 28px;
  border-color: var(--accent);
}

.expanded-content h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-soft);
  margin-bottom: 12px;
  font-weight: 600;
}

.project-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 16px;
  border: 2px solid rgba(26, 22, 20, 0.08);
}

.project-icon img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.nav-card:hover .project-icon img {
  transform: scale(1.1);
}

.expanded-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.expanded-content li {
  font-size: 0.9rem;
  color: var(--ink);
  padding-left: 16px;
  position: relative;
}

.expanded-content li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.expanded-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.expanded-tag {
  padding: 6px 12px;
  background: rgba(230, 57, 70, 0.1);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 500;
}

.nav-card .meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--ink-soft);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.nav-card h3 {
  margin-top: 24px;
  font-family: "Cinzel", serif;
  font-size: 1.6rem;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  z-index: 1;
}

.nav-card p {
  margin-top: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.nav-card .cta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

.nav-card .cta span {
  display: inline-block;
  width: 48px;
  height: 2px;
  background: currentColor;
  transition: width 0.4s ease;
}

.nav-card:hover .cta span {
  width: 72px;
}

.nav-card .hover-line {
  position: absolute;
  inset: auto auto 28px 28px;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-card:hover .hover-line {
  width: 100px;
}

.footer {
  border-top: 2px solid rgba(26, 22, 20, 0.08);
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.85rem;
  z-index: 3;
  position: relative;
  font-weight: 500;
}

@media (hover: none) and (pointer: coarse) {
  .nav-card,
  .nav-card:hover,
  .nav-card:hover:has(.nav-card-expanded.expand-up) {
    border-radius: 24px;
  }

  .nav-card:hover {
    transform: none;
  }

  .nav-card.blur-out {
    filter: none;
    opacity: 1;
    transform: none;
  }

  .nav-card-expanded,
  .nav-card:hover .nav-card-expanded,
  .nav-card-expanded.expand-up,
  .nav-card:hover .nav-card-expanded.expand-up {
    position: static;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    border: none;
    border-top: 1px solid rgba(26, 22, 20, 0.12);
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    max-height: none;
    opacity: 1;
    transform: none;
    margin-top: 18px;
    padding: 18px 0 0;
  }

  .nav-card .hover-line {
    display: none;
  }
}

@media (max-width: 1200px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 80px 24px 48px;
  }

  .hero-center {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .sidebar {
    position: relative;
    top: 0;
  }

  .sidebar-left,
  .sidebar-right {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
    padding: calc(80px + env(safe-area-inset-top)) 24px 48px;
    gap: 40px;
  }

  .hero-center {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-title {
    font-size: clamp(2.4rem, 12vw, 3.8rem);
  }

  .hero-subtitle {
    margin-top: 16px;
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .primary-btn,
  .ghost-btn {
    width: min(100%, 320px);
    text-align: center;
  }

  .hero-right {
    justify-items: center;
  }

  .orbit {
    width: min(74vw, 280px);
  }

  .hero-panel {
    width: 100%;
    padding: 20px 22px;
  }

  .filters {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 36px;
  }

  .filters-left {
    width: 100%;
  }

  .filter-tags {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-tags::-webkit-scrollbar {
    display: none;
  }

  .filter {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .footer {
    flex-direction: column;
    gap: 10px;
    padding: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }

  .stage {
    padding: 0 24px 72px;
  }

  .nav-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .nav-card {
    min-height: 220px;
    padding: 24px 22px 26px;
  }

  .nav-card h3 {
    font-size: 1.35rem;
  }

  .group-header {
    padding: 16px 0 12px;
    margin-top: 24px;
  }

  .group-header h2 {
    font-size: 1.35rem;
  }

  .progress-ring {
    width: 164px;
    height: 164px;
  }

  .progress-ring svg {
    width: 164px;
    height: 164px;
  }

  .progress-percent {
    font-size: 1.65rem;
  }

  .intro-logo {
    font-size: clamp(2.8rem, 16vw, 4.4rem);
    letter-spacing: 0.12em;
  }

  .intro-kicker,
  .intro-sub {
    letter-spacing: 0.24em;
  }
}

@media (max-width: 420px) {
  .hero {
    padding: calc(70px + env(safe-area-inset-top)) 16px 40px;
  }

  .stage {
    padding: 0 16px 56px;
  }

  .nav-card {
    padding: 22px 18px 24px;
  }

  .filters {
    margin-bottom: 28px;
  }

  .footer {
    padding: 20px 16px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}
