:root {
  --bg: #000;
  --text: #f3f5ef;
  --muted: #8b8f8c;
  --accent: #f2c66f;
  --accent-strong: #d9893d;
  --card: #0a0a0b;
  --line: rgba(255, 255, 255, 0.08);
  --container: 1180px;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background: #000;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient background layers */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 0%, transparent 75%);
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 1200px;
  height: 800px;
  border-radius: 999px;
  background:
    radial-gradient(ellipse at center, rgba(242, 198, 111, 0.18) 0%, rgba(217, 137, 61, 0.08) 28%, transparent 60%);
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}

.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.container {
  width: min(var(--container), calc(100% - 2.2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  padding-top: 5rem;
  text-align: center;
}

.brand-lockup {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2.2rem;
}

.brand-mark-stage {
  position: relative;
  display: inline-block;
  perspective: 1000px;
}

.brand-mark {
  display: block;
  width: clamp(240px, 38vw, 460px);
  height: auto;
  position: relative;
  z-index: 2;
  mix-blend-mode: screen;
}

.brand-mark-shadow {
  display: none;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.38em;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  margin: 0 0 0.9rem;
  font-family: "Inter", sans-serif;
}

h1 {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 0%, #a8a8a8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro {
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.6;
  margin: 1.3rem auto 0;
  font-weight: 400;
}

.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  background: linear-gradient(180deg, rgba(242, 198, 111, 0.15), rgba(242, 198, 111, 0.05));
  border: 1px solid rgba(242, 198, 111, 0.28);
  color: var(--accent);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 6px 16px -8px rgba(242, 198, 111, 0.4);
}

.pill-ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  border-color: var(--line);
  color: var(--muted);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 4px 12px -6px rgba(0, 0, 0, 0.6);
}

main {
  padding-top: 4rem;
  padding-bottom: 3rem;
}

.section-head {
  text-align: center;
  margin-bottom: 2rem;
}

.section-head p {
  margin: 0.5rem auto 0;
  color: var(--muted);
  max-width: 52ch;
}

h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* Carousel */
.carousel {
  position: relative;
  margin-top: 1.5rem;
}

.carousel-viewport {
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2.5rem 0 3.5rem;
  margin: 0 -1.2rem;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 1.8rem;
  padding: 0 max(1.2rem, calc((100vw - 560px) / 2));
}

.venture-card {
  scroll-snap-align: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  flex: 0 0 clamp(300px, 78vw, 540px);
  min-height: 560px;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 40%),
    linear-gradient(160deg, #131315 0%, #0a0a0c 60%, #050506 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 10px 20px -10px rgba(0, 0, 0, 0.8),
    0 30px 60px -20px rgba(0, 0, 0, 0.9),
    0 60px 100px -40px rgba(0, 0, 0, 0.7);
  transition:
    transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 300ms ease,
    box-shadow 400ms ease;
  position: relative;
  isolation: isolate;
}

.venture-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.venture-card:hover {
  transform: translateY(-10px);
  border-color: rgba(242, 198, 111, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 20px 30px -10px rgba(0, 0, 0, 0.9),
    0 50px 80px -20px rgba(0, 0, 0, 0.95),
    0 0 80px -10px rgba(242, 198, 111, 0.28);
}

.venture-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  position: relative;
  z-index: 2;
}

.venture-id {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.venture-logo-wrap {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(160deg, #151517 0%, #05050a 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 10px 24px -8px rgba(0, 0, 0, 0.9);
}

.venture-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}

.venture-logo-placeholder {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
}

.venture-name {
  margin: 0.25rem 0 0;
  font-size: 1.55rem;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.venture-type {
  margin: 0;
  color: var(--accent);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
}

.status-chip {
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
  white-space: nowrap;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.venture-desc {
  margin: 0;
  color: #c7c9c5;
  line-height: 1.65;
  font-size: 1rem;
  position: relative;
  z-index: 2;
}

.venture-highlights {
  list-style: none;
  margin: 1.3rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
  position: relative;
  z-index: 2;
}

.venture-highlights li {
  position: relative;
  padding-left: 1.4rem;
  color: #b8bab6;
  line-height: 1.45;
  font-size: 0.92rem;
}

.venture-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(242, 198, 111, 0.55);
}

.venture-footer {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  position: relative;
  z-index: 2;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  font-weight: 500;
}

.venture-link {
  margin: 1.4rem 0 0;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  z-index: 2;
}

.venture-link::after {
  content: "→";
  transition: transform 260ms ease;
}

.venture-card:hover .venture-link::after {
  transform: translateX(4px);
}

.venture-link-muted {
  color: var(--muted);
}

.venture-card-static {
  cursor: default;
}

/* Carousel controls */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, #1a1a1d 0%, #0a0a0c 100%);
  color: var(--text);
  font-size: 1.3rem;
  font-family: "Space Grotesk", sans-serif;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 5;
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 12px 24px -8px rgba(0, 0, 0, 0.8);
}

.carousel-nav:hover {
  border-color: rgba(242, 198, 111, 0.5);
  transform: translateY(-50%) scale(1.06);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 12px 24px -8px rgba(0, 0, 0, 0.8),
    0 0 30px -4px rgba(242, 198, 111, 0.4);
}

.carousel-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.carousel-nav-prev {
  left: 0.5rem;
}

.carousel-nav-next {
  right: 0.5rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 220ms ease, width 220ms ease;
}

.carousel-dot.is-active {
  background: var(--accent);
  width: 26px;
  box-shadow: 0 0 12px rgba(242, 198, 111, 0.6);
}

/* Skills / Tech Stack */
.skills {
  margin-top: 6rem;
  text-align: center;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}

.skill-group {
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 40%),
    linear-gradient(160deg, #111113 0%, #07070a 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 1.4rem 1.6rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 18px 36px -18px rgba(0, 0, 0, 0.8);
}

.skill-group-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.85rem;
  font-family: "Inter", sans-serif;
}

.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-chip {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  color: #c7c9c5;
  background: rgba(255, 255, 255, 0.025);
  font-weight: 500;
  transition:
    border-color 220ms ease,
    color 220ms ease,
    box-shadow 220ms ease;
  cursor: default;
}

.skill-chip:hover {
  border-color: rgba(242, 198, 111, 0.35);
  color: var(--text);
  box-shadow: 0 0 16px -4px rgba(242, 198, 111, 0.25);
  z-index: 10;
}

.skill-chip[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 260px;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: #0b0b0e;
  border: 1px solid rgba(242, 198, 111, 0.25);
  color: #e8e9e4;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow:
    0 10px 30px -10px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  z-index: 20;
}

.skill-chip[data-tip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(242, 198, 111, 0.25);
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 20;
}

.skill-chip[data-tip]:hover::after,
.skill-chip[data-tip]:hover::before,
.skill-chip[data-tip]:focus-visible::after,
.skill-chip[data-tip]:focus-visible::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 600px) {
  .skill-chip[data-tip]::after {
    max-width: 200px;
  }
}

.skill-chip--accent {
  border-color: rgba(242, 198, 111, 0.22);
  color: var(--accent);
  background: rgba(242, 198, 111, 0.04);
}

.skill-chip--accent:hover {
  border-color: rgba(242, 198, 111, 0.5);
  box-shadow: 0 0 20px -4px rgba(242, 198, 111, 0.4);
}

@media (min-width: 600px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .skills-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Principles */
.principles {
  margin-top: 6rem;
  text-align: center;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.principles-grid article {
  grid-column: span 12;
  position: relative;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(160deg, #111113 0%, #07070a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2.6rem 1.8rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 48px -24px rgba(0, 0, 0, 0.85);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.principles-grid article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  opacity: 0.65;
}

.principles-grid article:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 30px 56px -24px rgba(0, 0, 0, 0.9);
}

.principles-grid .stat-value {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.75rem, 5.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.3rem;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(255, 255, 255, 0.6) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(var(--accent-rgb, 99, 102, 241), 0.12);
}

.principles-grid .stat-divider {
  width: 28px;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  margin: 0.4rem 0 0.8rem;
  border: 0;
}

.principles-grid h3 {
  margin: 0 0 0.55rem;
  color: rgba(255, 255, 255, 0.96);
  font-size: 1.05rem;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.principles-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.92rem;
  max-width: 28ch;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2.5rem;
  color: var(--muted);
  text-align: center;
  font-size: 0.85rem;
  margin-top: 3rem;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 560ms ease forwards;
}

.reveal:nth-of-type(2) {
  animation-delay: 120ms;
}

.reveal:nth-of-type(3) {
  animation-delay: 190ms;
}

.reveal:nth-of-type(4) {
  animation-delay: 270ms;
}

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

@media (min-width: 760px) {
  .principles-grid article {
    grid-column: span 4;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 1.6rem));
  }

  .site-header {
    padding-top: 2.5rem;
  }

  .brand-lockup {
    margin-bottom: 1.4rem;
  }

  .brand-mark {
    width: clamp(180px, 55vw, 320px);
  }

  .eyebrow {
    letter-spacing: 0.28em;
    font-size: 0.68rem;
  }

  .intro {
    margin-top: 1rem;
  }

  .hero-meta {
    margin-top: 1.4rem;
  }

  main {
    padding-top: 2.4rem;
  }

  .skills,
  .principles {
    margin-top: 3.2rem;
  }

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

  .carousel-nav {
    display: none;
  }

  .carousel-viewport {
    padding: 1.4rem 0 2rem;
    margin: 0 -0.8rem;
  }

  .carousel-track {
    gap: 1rem;
    padding: 0 7vw;
  }

  .venture-card {
    flex: 0 0 86vw;
    min-height: 0;
    padding: 1.4rem;
    border-radius: 20px;
  }

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

  .venture-top {
    margin-bottom: 1.2rem;
    gap: 0.75rem;
  }

  .venture-logo-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .venture-id {
    gap: 0.75rem;
  }

  .venture-name {
    font-size: 1.25rem;
  }

  .venture-type {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
  }

  .status-chip {
    padding: 0.3rem 0.6rem;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .venture-desc {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .venture-highlights {
    margin-top: 1rem;
    gap: 0.45rem;
  }

  .venture-highlights li {
    font-size: 0.88rem;
  }

  .venture-footer {
    margin-top: 1.2rem;
  }

  .venture-link {
    margin-top: 1.1rem;
  }

  .skill-group {
    padding: 1.1rem 1.2rem;
    border-radius: 18px;
  }

  .skill-chip {
    font-size: 0.76rem;
    padding: 0.3rem 0.7rem;
  }

  .skill-chip[data-tip]::after {
    max-width: 180px;
    font-size: 0.72rem;
  }

  .principles-grid {
    gap: 0.8rem;
  }

  .principles-grid article {
    padding: 2rem 1.3rem 1.6rem;
    border-radius: 20px;
  }

  .site-footer {
    margin-top: 2rem;
    padding: 1.2rem 0 1.8rem;
  }
}

@media (max-width: 380px) {
  .venture-card {
    flex: 0 0 90vw;
    padding: 1.2rem;
  }

  .venture-top {
    flex-wrap: wrap;
  }

  .status-chip {
    order: -1;
    align-self: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

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