:root {
  --bg: #0a0a0a;
  --surface: #171717;
  --glass: rgba(23, 23, 23, 0.55);
  --border: #262626;
  --text: #e5e5e5;
  --muted: #a3a3a3;
  --gold: #d4af37;
  --gold-glow: rgba(212, 175, 55, 0.16);
  --gold-border: rgba(212, 175, 55, 0.6);
  --metal: #a6adb7;
  --nav-bg: #171717;
  --track-bg: #262626;
  --pill-bg: #171717;
  --pill-border: #262626;
  --noise-opacity: 0.03;
  --radius-card: 22px;
  --radius-input: 15px;
  --radius-pill: 999px;
  --content-width: min(1200px, 92vw);
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: var(--noise-opacity);
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.7) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.7) 25%, transparent 25%);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
}

.topbar-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 0;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
}

.topbar-wrap.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-110%);
}

.topbar {
  width: min(980px, 92vw);
  min-height: 54px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--nav-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.86rem;
  padding: 0.42rem 0.58rem 0.42rem 0.8rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-width: 0;
}

.brand-block {
  display: grid;
  gap: 0.08rem;
}

.brand-mark {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.brand-sub {
  margin: 0;
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.topbar nav {
  display: inline-flex;
  gap: 0.9rem;
  align-items: center;
  font-size: 0.8rem;
}

.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

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

.btn {
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.5rem 0.78rem;
  transition: all 160ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn.primary {
  border-color: rgba(212, 175, 55, 0.9);
  background: transparent;
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: rgba(212, 175, 55, 0.1);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.35),
    0 12px 40px rgba(212, 175, 55, 0.08);
  outline: none;
}

main {
  width: var(--content-width);
  margin: 0 auto;
  padding-bottom: 4rem;
}

.narrative {
  position: relative;
  margin-top: 0.55rem;
  border-bottom: 1px solid var(--border);
}

.story-stage {
  position: sticky;
  top: 70px;
  height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(360px, 1fr);
  grid-template-rows: 1fr;
  grid-template-areas: "copy cube";
  align-items: center;
  gap: clamp(0.9rem, 3.1vw, 2.7rem);
  overflow: hidden;
}

.phase-copy {
  grid-area: copy;
  padding: clamp(0.95rem, 2.2vw, 1.7rem) 0 clamp(0.8rem, 1.9vw, 1.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.66rem;
  justify-content: center;
  align-self: stretch;
  max-width: min(560px, 100%);
}

.phase-message {
  display: grid;
  gap: 0.56rem;
}

.phase-chip {
  margin: 0;
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.66rem;
  color: var(--metal);
  display: none;
}

#phaseTitle {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(1.42rem, 3vw, 2.48rem);
  line-height: 1.1;
  letter-spacing: 0.008em;
  max-width: 15ch;
}

#phaseTitle .gold {
  color: var(--gold);
}

#phaseDesc {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  max-width: 40ch;
  min-height: 4.2em;
  font-size: 0.92rem;
}

.progress {
  margin-top: 0.46rem;
  width: min(320px, 96%);
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--track-bg);
  overflow: hidden;
}

.progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.36), #d4af37 68%, rgba(212, 175, 55, 0.3));
}

.progress-note {
  margin: 0.05rem 0 0;
  color: var(--muted);
  font-size: 0.69rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", monospace;
  width: min(320px, 96%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.story-microline {
  margin: 0.02rem 0 0;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", monospace;
  opacity: 0.8;
}

#replayStory {
  opacity: 0;
  pointer-events: none;
  color: var(--metal);
  text-decoration: none;
  transition: opacity 200ms ease, color 160ms ease;
}

#replayStory.is-visible {
  opacity: 0.9;
  pointer-events: auto;
}

#replayStory:hover {
  color: var(--text);
}

.cube-panel {
  grid-area: cube;
  position: relative;
  min-height: 0;
  height: clamp(320px, 58vh, 560px);
  align-self: center;
  overflow: hidden;
}

#cubeCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 1;
}

.label-stack {
  position: absolute;
  display: grid;
  gap: 0.55rem;
  z-index: 3;
  pointer-events: none;
  width: min(185px, 42%);
}

.label-stack.left {
  left: 0.95rem;
  top: 17%;
  justify-items: start;
}

.label-stack.right {
  right: 0.95rem;
  top: 22%;
  justify-items: end;
}

.label {
  opacity: 0;
  transform: translateX(0);
  border-radius: var(--radius-pill);
  border: 1px solid var(--pill-border);
  background: var(--pill-bg);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.67rem;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.43rem 0.66rem;
}

.scroll-track {
  height: 720vh;
  pointer-events: none;
}

.section {
  padding: clamp(3.8rem, 8vw, 6.8rem) 0;
  border-bottom: 1px solid var(--border);
}

.section-top {
  flex-wrap: wrap;
  align-items: flex-start;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-tag {
  margin: 0;
  padding: 0.26rem 0.62rem;
  width: fit-content;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: "IBM Plex Mono", monospace;
}

.section h3 {
  margin: 0.55rem 0 0;
  font-size: clamp(1.35rem, 3vw, 2.24rem);
  line-height: 1.16;
  max-width: 18ch;
  letter-spacing: -0.01em;
}

.section h3 .gold {
  color: var(--gold);
}

.section p.lead {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.55;
  font-size: 1.05rem;
}

.checklist {
  margin: 1rem 0 1.8rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  max-width: 78ch;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
  line-height: 1.45;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.02rem;
  color: var(--gold);
  font-weight: 700;
}

.checklist.big-check li {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-divider {
  height: 1px;
  background: var(--border);
  margin: 2rem 0 1.6rem;
  opacity: 0.9;
}

.offerings-head {
  margin-top: 2.1rem;
}

.services-grid.offerings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  padding: 1.5rem;
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.22);
  transition: border-color 160ms ease, transform 200ms ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  border-color: rgba(82, 82, 82, 0.8);
  transform: translateY(-2px);
}

.card.flagship {
  border-color: var(--gold-border);
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.06), rgba(23, 23, 23, 1));
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.card h4 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  font-weight: 600;
}

.card p {
  margin: 0.5rem 0 1rem;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.94rem;
  flex-grow: 1;
}

.card-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: var(--metal);
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
}

.card-list li {
  margin-bottom: 0.3rem;
  position: relative;
  padding-left: 1rem;
}

.card-list li::before {
  content: "•";
  color: var(--gold);
  position: absolute;
  left: 0;
}

/* FOUNDER SECTION */
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.founder-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.founder-bio p {
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1rem;
}

.founder-bio em {
  font-style: normal;
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: "IBM Plex Mono", monospace;
}

.founder-pillars {
  display: grid;
  gap: 1.2rem;
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.pillar strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.pillar p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--metal);
  line-height: 1.4;
}

.founder-visual {
  position: sticky;
  top: 100px;
}

.founder-img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  background: linear-gradient(135deg, #1f1f1f, #141414);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--metal);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  overflow: hidden;
}

.founder-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.3rem;
}

.step {
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: 18px;
  padding: 0.9rem 0.95rem;
  background: rgba(23, 23, 23, 0.9);
  transition: border-left-color 160ms ease, border-color 160ms ease;
}

.step:hover {
  border-color: rgba(82, 82, 82, 0.8);
  border-left-color: var(--gold);
}

.step strong {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--metal);
  margin-bottom: 0.26rem;
}

.step h5 {
  margin: 0;
  font-size: 1rem;
}

.step p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.section-cta {
  padding-bottom: clamp(4.2rem, 9vw, 7rem);
  border-bottom: 0;
}

.cta-wrap.single-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  justify-items: center;
}

.cta-copy.center-text {
  text-align: center;
  align-items: center;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.formaloo-container {
  width: 100%;
  max-width: 600px;
  min-height: 500px;
  background: transparent;
}

.footer {
  width: 100%;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 1rem 0 0.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--text);
}

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

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

@media (max-width: 1060px) {
  .services-grid.offerings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .founder-grid {
    grid-template-columns: 1fr;
  }
  
  .founder-visual {
    position: static;
    max-width: 400px;
    margin: 0 auto;
  }

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

@media (max-width: 900px) {
  .story-stage {
    top: 60px;
    height: calc(100vh - 72px);
    grid-template-columns: 1fr;
    grid-template-rows: minmax(280px, 46vh) auto;
    grid-template-areas:
      "cube"
      "copy";
    align-items: stretch;
    gap: 0.38rem;
  }

  .phase-copy {
    padding: 0.7rem 0 0.7rem;
    justify-content: flex-start;
    max-width: none;
  }

  .cube-panel {
    height: 100%;
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 44px;
    border-radius: 12px;
    width: min(330px, 92vw);
  }

  .topbar nav {
    display: none;
  }

  .brand-sub {
    display: none;
  }

  .btn {
    padding: 0.36rem 0.58rem;
    font-size: 0.66rem;
  }

  .story-stage {
    top: 54px;
    height: calc(100vh - 64px);
    grid-template-rows: minmax(250px, 42vh) auto;
    gap: 0.3rem;
  }

  .label {
    font-size: 0.61rem;
    padding: 0.38rem 0.52rem;
  }

  .progress-note {
    width: min(340px, 100%);
  }

  .services-grid.offerings-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .scroll-track {
    height: 670vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    scroll-behavior: auto !important;
  }
}