/* ============================================================
   Service Intelligence Labs — light theme, all sans
   ============================================================ */

:root {
  /* Surface */
  --bg:        #F4F2EC;     /* warm off-white */
  --bg-2:      #FFFFFF;     /* card surface */
  --bg-3:      #ECEAE3;     /* light panel */
  --ink:       #0F1216;     /* near-black */
  --ink-2:     #44494F;     /* secondary */
  --ink-3:     #7C8088;     /* tertiary / meta */
  --rule:      rgba(15,18,22,0.10);
  --rule-strong: rgba(15,18,22,0.22);

  /* Accent — D2D loop palette (kept for the wheel + accents) */
  --teal:    #2BAA7C;
  --purple:  #7B6CF0;
  --blue:    #2F6FD4;
  --amber:   #D69A2C;
  --terra:   #C95A35;

  /* Primary single accent for buttons / links */
  --accent:  #0F1216;

  --sans:    "Manrope", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1200px;
  --pad-x: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* subtle grain */
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(43,170,124,0.05), transparent 60%),
    radial-gradient(900px 500px at 0% 20%, rgba(123,108,240,0.04), transparent 60%);
  background-attachment: fixed;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad-x);
  background: rgba(244, 242, 236, 0.82);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

/* Logo — clean, type-driven, with a loop glyph */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.brand-glyph {
  position: relative;
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-glyph svg { width: 100%; height: 100%; }
.brand-text {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.brand-text .b-divider {
  width: 1px; height: 12px;
  background: var(--rule-strong);
  display: inline-block;
}
.brand-text .b-tag {
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-3);
  letter-spacing: 0.01em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--ink-2);
  font-weight: 500;
}
.primary-nav a {
  position: relative;
  padding: 6px 0;
  transition: color .15s ease;
  white-space: nowrap;
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 2px;
  height: 1px; background: var(--ink);
  transition: right .25s ease;
}
.primary-nav a:hover::after { right: 0; }

.nav-cta {
  padding: 9px 16px !important;
  border-radius: 99px;
  background: var(--ink);
  color: var(--bg) !important;
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: #2a2f36; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.menu-toggle span {
  display: block; width: 20px; height: 1.5px; background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1024px) {
  .menu-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    inset: 70px 0 auto 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 24px var(--pad-x) 32px;
    font-size: 22px;
    font-weight: 500;
    color: var(--ink);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .2s ease;
    border-bottom: 1px solid var(--rule);
  }
  .primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav a { padding: 12px 0; width: 100%; }
  .primary-nav a::after { display: none; }
  .nav-cta {
    margin-top: 12px;
    font-size: 14px;
    padding: 14px 18px !important;
  }
}

/* ============================================================
   SECTIONS — shared
   ============================================================ */
section { padding: clamp(72px, 9vw, 128px) var(--pad-x); }

.section-head {
  max-width: 780px;
  margin: 0 auto 56px;
}
.section-head.center { text-align: center; }
.kicker {
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.section-title {
  font-weight: 600;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.section-title .em {
  color: var(--teal);
  font-weight: 600;
}
.section-sub {
  color: var(--ink-2);
  font-size: clamp(15px, 1.35vw, 18px);
  margin: 0;
  text-wrap: pretty;
  max-width: 64ch;
}
.section-head.center .section-sub { margin-inline: auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(72px, 9vw, 120px);
  overflow: hidden;
}
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink-2);
  margin: 0 0 28px;
  font-weight: 500;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 99px; background: var(--teal);
  box-shadow: 0 0 0 4px rgba(43,170,124,0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(43,170,124,0.08); } }

.display {
  font-weight: 600;
  font-size: clamp(38px, 6.8vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
  text-wrap: balance;
  max-width: 18ch;
}
.display .l2 { color: var(--ink-3); display: block; }

.lede {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0 0 40px;
  text-wrap: pretty;
}
.lede strong { color: var(--ink); font-weight: 600; }

.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 64px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .15s ease, background .2s ease, color .2s ease, border .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 18px rgba(15,18,22,0.16);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(15,18,22,0.22); }
.btn-ghost {
  border: 1px solid var(--rule-strong);
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(15,18,22,0.04); }

.hero-meta {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
}
.hero-meta li {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 14px;
  color: var(--ink-2);
}
.hero-meta li .mono { color: var(--ink-3); }

@media (max-width: 720px) {
  .hero-meta { grid-template-columns: 1fr; gap: 14px; padding-top: 22px; }
}

/* ============================================================
   D2D LOOP
   ============================================================ */
.loop-section {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.loop-stage {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.wheel-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
}
.wheel {
  width: 100%; height: 100%;
  filter: drop-shadow(0 24px 40px rgba(15,18,22,0.08));
}

.seg {
  cursor: pointer;
  transition: opacity .2s ease, filter .2s ease;
  outline: none;
}
.seg:hover, .seg:focus-visible { filter: brightness(1.06); }
.seg.is-dim { opacity: 0.35; }
.seg.is-active { filter: brightness(1.06) saturate(1.05); }

.seg-label {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  fill: #fff;
  pointer-events: none;
  letter-spacing: -0.005em;
}
.seg-num {
  font-family: var(--mono);
  font-size: 9.5px;
  fill: rgba(255,255,255,0.85);
  letter-spacing: 0.18em;
  font-weight: 500;
  pointer-events: none;
}

.wheel-center {
  fill: var(--bg-2);
  stroke: var(--rule);
  stroke-width: 1;
}
.wheel-d2d {
  fill: var(--ink);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
}
.wheel-sub {
  fill: var(--ink-3);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  font-weight: 500;
}
.wheel-sub-2 {
  fill: var(--ink-3);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.18em;
}

/* Phase card */
.phase-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 22px;
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 460px;
  position: relative;
  overflow: hidden;
}
.phase-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--phase-color, var(--teal));
  transition: background .25s ease;
}

.phase-card-head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-areas:
    "idx swatch name"
    "idx swatch tag";
  column-gap: 14px;
  align-items: center;
}
.phase-index {
  grid-area: idx;
  font-size: 12px;
  color: var(--phase-color, var(--teal));
  font-weight: 600;
}
.phase-swatch {
  grid-area: swatch;
  width: 16px; height: 16px;
  border-radius: 99px;
  background: var(--phase-color, var(--teal));
  align-self: center;
}
.phase-name {
  grid-area: name;
  font-weight: 600;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.025em;
}
.phase-tag {
  grid-area: tag;
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 14px;
}

.phase-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.phase-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 2px 0;
}
.phase-list li::before {
  content: ""; flex: 0 0 auto;
  width: 5px; height: 5px;
  margin-top: 9px;
  border-radius: 99px;
  background: var(--phase-color, var(--teal));
  opacity: .9;
}

.phase-card-foot {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.phase-card-foot p:first-child { margin: 0 0 6px; color: var(--phase-color, var(--teal)); }
.phase-card-foot p:last-child  { margin: 0; color: var(--ink); font-size: 15px; font-weight: 500; }

.phase-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}
.phase-nav button {
  width: 38px; height: 38px;
  border-radius: 99px;
  border: 1px solid var(--rule);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .15s ease, border-color .15s ease;
  color: var(--ink-2);
}
.phase-nav button:hover { background: rgba(15,18,22,0.04); transform: translateY(-1px); border-color: var(--rule-strong); }

.phase-dots { display: flex; gap: 8px; }
.phase-dots span {
  width: 7px; height: 7px; border-radius: 99px;
  background: var(--rule-strong);
  transition: background .2s ease, transform .2s ease;
  cursor: pointer;
}
.phase-dots span.is-active { background: var(--phase-color, var(--teal)); transform: scale(1.4); }

.loop-footnote {
  text-align: center;
  margin: 56px auto 0;
  color: var(--ink-3);
}

@media (max-width: 880px) {
  .loop-stage { grid-template-columns: 1fr; }
  .phase-card { min-height: 0; }
}

/* ============================================================
   APPROACH
   ============================================================ */
.approach { background: var(--bg); }
.approach-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.approach-card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--bg-2);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.approach-card:hover {
  border-color: var(--rule-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15,18,22,0.05);
}
.card-num {
  position: absolute; top: 24px; right: 28px;
  color: var(--ink-3);
}
.approach-card h3 {
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  max-width: 18ch;
}
.approach-card p { margin: 0; color: var(--ink-2); }

@media (max-width: 720px) {
  .approach-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CLIENTS
   ============================================================ */
.clients {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.client-grid {
  max-width: var(--maxw);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.client-card {
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 28px;
  background: var(--bg);
}
.client-card .mono { margin: 0 0 14px; }
.client-stat {
  font-weight: 600;
  font-size: clamp(24px, 2.4vw, 32px);
  margin: 0 0 14px;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.client-detail {
  margin: 0; color: var(--ink-2); font-size: 14px;
}

.client-belt {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: rgba(43,170,124,0.06);
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
.client-belt .mono { color: var(--teal); margin: 4px 0 0; }
.client-belt ul {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  color: var(--ink);
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.client-belt li::before {
  content: "—";
  color: var(--teal);
  font-family: var(--mono);
  font-size: 13px;
  margin-right: 8px;
}

@media (max-width: 880px) {
  .client-grid { grid-template-columns: 1fr; }
  .client-belt { grid-template-columns: 1fr; }
  .client-belt ul { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--bg); }
.founder-grid {
  max-width: var(--maxw);
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.founder {
  border: 1px solid var(--rule);
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.founder:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(15,18,22,0.06); }
.founder-portrait {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(43,170,124,0.20), rgba(123,108,240,0.14));
  overflow: hidden;
}
.founder-portrait.alt {
  background: linear-gradient(135deg, rgba(214,154,44,0.22), rgba(201,90,53,0.22));
}
.founder-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.portrait-tag {
  position: absolute;
  left: 14px; bottom: 12px;
  background: rgba(15,18,22,0.78);
  color: rgba(255,255,255,0.92);
  padding: 6px 10px;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.founder-body { padding: 28px 28px 32px; }
.founder-role { margin: 0 0 10px; color: var(--ink-3); }
.founder-body h3 {
  font-weight: 600;
  font-size: clamp(28px, 3vw, 38px);
  margin: 0 0 14px;
  line-height: 1;
  letter-spacing: -0.025em;
}
.founder-line { margin: 0 0 20px; color: var(--ink-2); }
.founder-bullets {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 8px;
  font-size: 14px; color: var(--ink-2);
}
.founder-bullets li {
  position: relative;
  padding-left: 16px;
}
.founder-bullets li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 1.5px; background: var(--ink-3);
}

.values-row {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  border-top: 1px solid var(--rule);
  padding-top: 40px;
}
.value h4 {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.015em;
  margin: 10px 0 8px;
}
.value p { margin: 0; color: var(--ink-2); font-size: 15px; }

@media (max-width: 880px) {
  .founder-grid { grid-template-columns: 1fr; }
  .values-row { grid-template-columns: 1fr; gap: 22px; }
}

/* ============================================================
   QUIZ — interactive visual
   ============================================================ */
.quiz {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.quiz-shell {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid var(--rule);
  border-radius: 24px;
  background: var(--bg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15,18,22,0.06);
}
.quiz-progress {
  display: flex;
  height: 4px;
  background: rgba(15,18,22,0.04);
}
.quiz-progress .seg-bar {
  flex: 1;
  background: var(--rule);
  margin: 0 1px;
  transition: background .3s ease;
}
.quiz-progress .seg-bar.is-done { background: var(--teal); }
.quiz-progress .seg-bar.is-active { background: var(--ink); }

/* Question + visual layout */
.quiz-body {
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  min-height: 520px;
}
.quiz-body.is-single { grid-template-columns: 1fr; }

.quiz-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: space-between;
}
.quiz-step-head .mono { margin: 0 0 14px; }
.quiz-question {
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0;
  text-wrap: balance;
}
.quiz-question + .quiz-hint {
  margin: 12px 0 0;
  color: var(--ink-3);
  font-size: 14px;
}

.quiz-options { display: grid; gap: 10px; }
.quiz-options.cols-2 { grid-template-columns: 1fr 1fr; }
.quiz-options.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 720px) {
  .quiz-options.cols-2, .quiz-options.cols-3 { grid-template-columns: 1fr; }
}

.quiz-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--bg-2);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease, transform .12s ease, box-shadow .15s ease;
}
.quiz-opt:hover {
  border-color: var(--rule-strong);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15,18,22,0.05);
}
.quiz-opt.is-selected {
  border-color: var(--teal);
  background: rgba(43,170,124,0.08);
}
.quiz-opt-icon {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(15,18,22,0.05);
  color: var(--ink-2);
}
.quiz-opt-icon svg { width: 16px; height: 16px; }
.quiz-opt.is-selected .quiz-opt-icon { background: rgba(43,170,124,0.18); color: var(--teal); }

.quiz-opt-key {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(15,18,22,0.05);
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}
.quiz-opt-text { flex: 1; }

/* Visual side (right column) */
.quiz-visual {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(43,170,124,0.06), transparent 60%),
    radial-gradient(80% 60% at 0% 100%, rgba(123,108,240,0.05), transparent 60%),
    var(--bg-2);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}
.quiz-visual .mono { margin: 0; }
.quiz-visual h4 {
  margin: 0;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.quiz-visual p.vis-body {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
}

/* Mini D2D loop preview */
.quiz-mini-wheel {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1/1;
  margin: 0 auto;
  position: relative;
}
.qmw-seg { transition: opacity .25s ease, transform .25s ease; transform-origin: 200px 200px; }
.qmw-seg.dim { opacity: 0.25; }
.qmw-seg.pop { transform: scale(1.04); }
.qmw-label {
  fill: #fff;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  pointer-events: none;
}
.qmw-center { fill: var(--bg-2); stroke: var(--rule); }
.qmw-center-text {
  fill: var(--ink); font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.22em; font-weight: 500;
}
.qmw-center-num {
  fill: var(--ink); font-weight: 700; font-size: 36px;
  letter-spacing: -0.02em;
}

/* Industry visual */
.industry-icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.industry-icons .ii {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 12px;
  color: var(--ink-3);
  background: var(--bg);
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}
.industry-icons .ii svg { width: 22px; height: 22px; stroke: currentColor; }
.industry-icons .ii.active {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(43,170,124,0.06);
  transform: translateY(-2px);
}

/* Stage visual — ladder */
.stage-ladder {
  display: flex; flex-direction: column; gap: 6px;
}
.stage-ladder .rung {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: var(--bg);
  font-size: 13px;
  color: var(--ink-3);
  transition: all .25s ease;
}
.stage-ladder .rung .rung-bar {
  flex: 1; height: 4px; border-radius: 99px; background: var(--rule); position: relative;
}
.stage-ladder .rung .rung-bar i {
  position: absolute; left: 0; top: 0; bottom: 0;
  border-radius: 99px;
  background: var(--ink-3);
  transition: width .35s ease, background .25s ease;
}
.stage-ladder .rung.active {
  color: var(--ink);
  border-color: var(--teal);
  background: rgba(43,170,124,0.06);
}
.stage-ladder .rung.active .rung-bar i { background: var(--teal); }

/* Role visual */
.role-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.role-cards .rc {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--bg);
  color: var(--ink-3);
  font-size: 12px;
  text-align: center;
  transition: all .25s ease;
}
.role-cards .rc svg { width: 22px; height: 22px; stroke: currentColor; }
.role-cards .rc.active {
  color: var(--teal);
  border-color: var(--teal);
  background: rgba(43,170,124,0.06);
}

/* Quiz footer */
.quiz-foot {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  padding-top: 22px;
  margin-top: 8px;
  border-top: 1px solid var(--rule);
}
.quiz-foot button.quiz-back { color: var(--ink-2); font-size: 13px; font-weight: 500; }
.quiz-foot button.quiz-back:hover { color: var(--ink); }
.quiz-foot .quiz-next {
  padding: 11px 18px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
  font-size: 14px;
}
.quiz-foot .quiz-next:disabled {
  opacity: .35; cursor: not-allowed;
}

@media (max-width: 880px) {
  .quiz-body { grid-template-columns: 1fr; min-height: 0; }
  .quiz-visual { order: -1; }
}

/* Result */
.quiz-result-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vw, 48px);
}
@media (max-width: 880px) {
  .quiz-result-wrap { grid-template-columns: 1fr; }
}
.quiz-result {
  display: flex; flex-direction: column; gap: 16px;
}
.quiz-result .result-tag {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 99px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.quiz-result h3 {
  font-weight: 600;
  font-size: clamp(26px, 3.2vw, 40px);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.quiz-result p.result-body { margin: 0; color: var(--ink-2); font-size: 16px; }
.quiz-result .result-actions {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px;
}
.quiz-result .result-cta {
  display: inline-flex;
  padding: 12px 18px;
  border-radius: 99px;
  background: var(--ink); color: #fff;
  font-weight: 500;
  font-size: 14px;
}
.quiz-result .result-cta.ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule-strong); }

.result-actions ul { list-style: none; padding: 0; margin: 0; }
.result-next {
  border-top: 1px solid var(--rule);
  padding-top: 18px;
  margin-top: 6px;
}
.result-next p.mono { margin: 0 0 10px; }
.result-next ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 8px;
  font-size: 14.5px; color: var(--ink-2);
}
.result-next li {
  display: flex; align-items: flex-start; gap: 10px;
}
.result-next li::before {
  content: ""; flex: 0 0 auto;
  margin-top: 9px;
  width: 6px; height: 6px; border-radius: 99px;
  background: var(--result-color, var(--teal));
}

/* Result visual side */
.result-visual {
  border: 1px solid var(--rule);
  border-radius: 18px;
  background:
    radial-gradient(140% 90% at 100% 0%, var(--result-glow, rgba(43,170,124,0.10)), transparent 60%),
    var(--bg-2);
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.result-visual .mono { margin: 0; }
.result-wheel-wrap {
  width: 100%; max-width: 320px; margin: 6px auto 0; aspect-ratio: 1/1;
  position: relative;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg); }
.contact-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
}
.contact-card {
  padding: 32px;
  border: 1px solid var(--rule);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-2);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.contact-card .mono { margin: 0; }
.contact-card.primary {
  background: linear-gradient(135deg, rgba(43,170,124,0.08), rgba(123,108,240,0.04));
  border-color: rgba(43,170,124,0.35);
}
.contact-card:hover {
  transform: translateY(-2px);
  border-color: var(--rule-strong);
  box-shadow: 0 12px 30px rgba(15,18,22,0.06);
}
.contact-big {
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.05;
  word-break: break-word;
}
.contact-detail { margin: 0; color: var(--ink-2); font-size: 14px; }
.contact-arrow { margin: 0; color: var(--teal); font-size: 14px; font-weight: 500; }

@media (max-width: 880px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  padding: 56px var(--pad-x) 32px;
  border-top: 1px solid var(--rule);
  background: var(--bg);
}
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p { margin: 16px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.footer-brand .footer-tag { font-size: 13px; font-weight: 400; color: var(--ink-3); margin-top: 6px; }

.footer-col {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px; color: var(--ink-2);
}
.footer-col .mono { margin: 0 0 8px; color: var(--ink-3); }
.footer-col a { transition: color .15s ease; }
.footer-col a:hover { color: var(--ink); }

.footer-rule {
  max-width: var(--maxw);
  margin: 40px auto 16px;
  height: 1px;
  background: var(--rule);
}
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex; justify-content: space-between; gap: 16px;
}
.footer-bottom .mono { margin: 0; }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}
