:root {
  --bg: #edf2f8;
  --bg-2: #dfe6ef;
  --surface: #f7f9fc;
  --surface-2: #ffffff;
  --text: #0b1320;
  --muted: #506077;
  --line: rgba(11, 19, 32, 0.16);
  --line-soft: rgba(11, 19, 32, 0.08);
  --ink: #0d1726;
  --primary: #101f33;
  --accent: #24579f;
  --orb-1: rgba(17, 32, 52, 0.22);
  --orb-2: rgba(36, 87, 159, 0.2);
  --grid: rgba(12, 20, 34, 0.045);
  --stripe: rgba(255, 255, 255, 0.36);
  --topbar-bg: rgba(247, 250, 255, 0.78);
  --topbar-shadow: 0 16px 38px rgba(10, 20, 33, 0.12);
  --card-shadow: 0 28px 60px rgba(10, 20, 34, 0.12);
  --shadow-wash: rgba(22, 33, 48, 0.08);
  --btn-secondary-bg: rgba(255, 255, 255, 0.72);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: min(1160px, 92vw);
}

[data-theme="dark"] {
  --bg: #0b1016;
  --bg-2: #151b24;
  --surface: #141c27;
  --surface-2: #1a2330;
  --text: #ebf1fa;
  --muted: #9ba7b7;
  --line: rgba(181, 193, 211, 0.23);
  --line-soft: rgba(181, 193, 211, 0.13);
  --ink: #dfe7f2;
  --primary: #cfd8e5;
  --accent: #6f95c7;
  --orb-1: rgba(96, 109, 128, 0.22);
  --orb-2: rgba(111, 149, 199, 0.13);
  --grid: rgba(192, 202, 217, 0.07);
  --stripe: rgba(192, 202, 217, 0.05);
  --topbar-bg: rgba(12, 18, 27, 0.8);
  --topbar-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
  --card-shadow: 0 28px 60px rgba(0, 0, 0, 0.46);
  --shadow-wash: rgba(211, 220, 232, 0.06);
  --btn-secondary-bg: rgba(20, 28, 39, 0.78);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 12% 12%, var(--bg) 0%, var(--bg-2) 66%, var(--bg-2) 100%);
  line-height: 1.58;
  overflow-x: hidden;
  transition: background 300ms ease, color 300ms ease;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.024em;
  line-height: 1.1;
  font-weight: 600;
}

p {
  margin: 0;
}

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

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

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
}

.orb-one {
  width: 30rem;
  aspect-ratio: 1;
  background: var(--orb-1);
  top: -9rem;
  left: -7rem;
}

.orb-two {
  width: 28rem;
  aspect-ratio: 1;
  background: var(--orb-2);
  right: -8rem;
  bottom: -8rem;
}

.bg-grid,
.bg-stripes {
  position: absolute;
  inset: 0;
}

.bg-grid {
  background-image: linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 20%, transparent 95%);
}

.bg-stripes {
  background: repeating-linear-gradient(135deg, transparent 0 26px, var(--stripe) 26px 40px, transparent 40px 110px);
  opacity: 0.35;
}

.topbar {
  width: var(--container);
  margin: 1rem auto 0;
  padding: 0.62rem 0.92rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
  box-shadow: var(--topbar-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  position: sticky;
  top: 0.7rem;
  z-index: 50;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  font-weight: 600;
}

.brand-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.62rem;
  border: 1px solid var(--line-soft);
  box-shadow: 0 8px 16px rgba(12, 20, 33, 0.18);
  flex: 0 0 auto;
}

.brand-name {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav {
  display: inline-flex;
  align-items: center;
  gap: 1.32rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.2rem 0.08rem;
  position: relative;
  transition: color 170ms ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 210ms ease;
}

.nav a:hover,
.nav a.active {
  color: var(--text);
}

.nav a:hover::after,
.nav a.active::after {
  transform: scaleX(1);
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--btn-secondary-bg);
  color: var(--text);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  margin-left: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

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

.theme-icon {
  line-height: 1;
  font-size: 0.88rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.26rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1.32rem;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
  transition: transform 200ms ease;
}

main {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 5.8rem 0;
}

.hero {
  padding-top: 6.8rem;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(1.4rem, 4vw, 2.8rem);
  align-items: center;
}

.eyebrow,
.card-tag,
.loop-id {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.eyebrow {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.72rem;
  margin-bottom: 0.85rem;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(2.05rem, 5.1vw, 4.8rem);
  margin-bottom: 1rem;
}

.hero h1 span {
  color: var(--accent);
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.9vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.9rem;
}

.btn {
  border-radius: 12px;
  padding: 0.76rem 1.16rem;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #24364f);
  color: #f6f9ff;
  box-shadow: 0 12px 24px rgba(10, 18, 30, 0.26);
}

[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #1f2938, #304156);
  color: #ecf2fb;
  border-color: rgba(181, 193, 211, 0.22);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
  border-color: var(--line);
}

.hero-metrics {
  list-style: none;
  margin: 1.85rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.82rem;
}

.hero-metrics li {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, var(--surface), var(--surface-2));
  padding: 0.9rem;
  position: relative;
  overflow: hidden;
}

.hero-metrics li::after {
  content: "";
  position: absolute;
  inset: auto -24% -58% 38%;
  height: 150%;
  background: linear-gradient(135deg, transparent 0%, var(--shadow-wash) 52%, transparent 100%);
}

.hero-metrics strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.24rem;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 0.84rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--surface), var(--surface-2));
  box-shadow: var(--card-shadow);
}

.hero-mark {
  padding: clamp(1rem, 2.5vw, 1.4rem);
}

.mark-stage {
  position: relative;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #f8fbff, #e9eef5);
  border: 1px solid rgba(9, 17, 29, 0.1);
  min-height: min(27rem, 66vw);
  max-height: 29rem;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 26px 48px rgba(8, 16, 28, 0.18);
  overflow: hidden;
}

[data-theme="dark"] .mark-stage {
  background: linear-gradient(160deg, #1a2432, #121a26);
  border-color: rgba(181, 193, 211, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 26px 48px rgba(0, 0, 0, 0.44);
}

.corner {
  position: absolute;
  width: clamp(2.2rem, 6vw, 3rem);
  height: clamp(2.2rem, 6vw, 3rem);
  border: 0.44rem solid var(--ink);
  border-radius: 0.7rem;
  opacity: 0.88;
}

.corner-tl {
  top: 1.2rem;
  left: 1.2rem;
  border-right: 0;
  border-bottom: 0;
}

.corner-tr {
  top: 1.2rem;
  right: 1.2rem;
  border-left: 0;
  border-bottom: 0;
}

.corner-bl {
  bottom: 1.2rem;
  left: 1.2rem;
  border-right: 0;
  border-top: 0;
}

.corner-br {
  bottom: 1.2rem;
  right: 1.2rem;
  border-left: 0;
  border-top: 0;
}

.dot {
  position: absolute;
  width: clamp(0.7rem, 2vw, 0.9rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.88;
}

.dot-top {
  top: 1.45rem;
  left: 50%;
  transform: translateX(-50%);
}

.dot-right {
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.dot-bottom {
  bottom: 1.45rem;
  left: 50%;
  transform: translateX(-50%);
}

.dot-left {
  left: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.hero-logo {
  width: min(60%, 16rem);
  border-radius: clamp(1.2rem, 4vw, 2.2rem);
  box-shadow: 0 26px 40px rgba(10, 17, 28, 0.38), 32px 32px 0 rgba(11, 19, 30, 0.06);
  animation: logoFloat 4.8s ease-in-out infinite;
}

.mark-caption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.91rem;
}

.section-head {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}

.section-head h2 {
  max-width: 18ch;
  font-size: clamp(1.55rem, 3.1vw, 2.6rem);
}

.project-focus {
  padding-top: 0.4rem;
}

.project-panel {
  padding: 1.15rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.project-panel::after {
  content: "";
  position: absolute;
  inset: auto -28% -68% 34%;
  height: 175%;
  background: linear-gradient(135deg, transparent 0%, var(--shadow-wash) 56%, transparent 100%);
  pointer-events: none;
}

.project-copy {
  display: grid;
  gap: 0.85rem;
  max-width: 58ch;
}

.project-copy p {
  color: var(--muted);
}

.project-copy .btn {
  width: fit-content;
  margin-top: 0.2rem;
}

.project-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.project-points li {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 0.68rem 0.78rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
}

[data-theme="dark"] .project-points li {
  background: rgba(12, 21, 36, 0.42);
}

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

.venture-card,
.platform-card {
  padding: 1.15rem;
  display: grid;
  gap: 0.7rem;
  position: relative;
  overflow: hidden;
}

.venture-card::after,
.platform-card::after,
.loop::after,
.timeline::after,
.connect-panel::after {
  content: "";
  position: absolute;
  inset: auto -26% -62% 38%;
  height: 160%;
  background: linear-gradient(135deg, transparent 0%, var(--shadow-wash) 56%, transparent 100%);
  pointer-events: none;
}

.card-tag {
  width: fit-content;
  padding: 0.26rem 0.52rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.65rem;
  color: var(--muted);
}

.venture-card h3,
.platform-card h3,
.loop h3,
.timeline-item h3 {
  font-size: 1.14rem;
}

.venture-card p,
.platform-card p,
.loop p,
.timeline-item p {
  color: var(--muted);
}

.status {
  margin-top: auto;
  padding-top: 0.45rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
}

.loop {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.loop article {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 0.88rem;
  background: rgba(255, 255, 255, 0.14);
}

[data-theme="dark"] .loop article {
  background: rgba(12, 21, 36, 0.42);
}

.loop-id {
  font-size: 0.66rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.42rem;
}

.platform-card a {
  color: var(--accent);
  text-decoration: underline;
}

.timeline {
  padding: 1.1rem;
  display: grid;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
}

.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.75rem 0.45rem;
  border-bottom: 1px solid var(--line-soft);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.step {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.22);
}

[data-theme="dark"] .step {
  background: rgba(11, 19, 31, 0.48);
}

.connect {
  padding-bottom: 4.3rem;
}

.connect-panel {
  padding: clamp(1.12rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  box-shadow: var(--card-shadow);
  display: grid;
  gap: 0.86rem;
  position: relative;
  overflow: hidden;
}

.connect-panel h2 {
  font-size: clamp(1.48rem, 2.8vw, 2.18rem);
  max-width: 20ch;
}

.connect-panel p {
  color: var(--muted);
  max-width: 58ch;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.34rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.link-row a {
  color: var(--accent);
}

.link-row a:hover {
  text-decoration: underline;
}

.footer {
  width: var(--container);
  margin: 0 auto 1.6rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.83rem;
}

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

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

@keyframes logoFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@media (max-width: 1060px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 5.9rem;
  }

  .hero-mark {
    max-width: 40rem;
  }

  .hero h1 {
    max-width: 17ch;
  }

  .loop,
  .card-grid,
  .platform-grid,
  .hero-metrics,
  .project-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    border-radius: var(--radius-sm);
    top: 0.46rem;
    margin-top: 0.65rem;
    flex-wrap: wrap;
  }

  .brand {
    flex: 1;
  }

  .menu-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-top: 0.4rem;
  }

  .topbar.menu-open .nav {
    display: flex;
  }

  .theme-toggle {
    margin-left: 0;
  }

  .topbar.menu-open .menu-toggle span:first-child {
    transform: translateY(6px) rotate(45deg);
  }

  .topbar.menu-open .menu-toggle span:last-child {
    transform: translateY(-6px) rotate(-45deg);
  }

  .section {
    padding: 4.35rem 0;
  }

  .hero-actions {
    width: 100%;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
