/* IOC Lahore – 3D body website. Light (default) + dark theme. */
:root {
  --bg: #ffffff;
  --surface: #f5f6f7;
  --raised: #eceef1;
  --border: #e2e5e9;
  --text: #0e1116;
  --muted: #5b6370;
  --accent: #0e9384;
  --accent-ink: #ffffff;
  --accent-3d: #2fd3c4;
  --contrast: #f0603a;
  --stage: #0b0c0e;
  --stage-text: #f2f0eb;
  --stage-muted: #8c8f96;
  --stage-raised: #1a1b1f;
  --stage-border: #26282d;
  --c-bones: #e9dfc9;
  --c-muscles: #e0765a;
  --c-vessels: #ff5d5d;
  --c-nerves: #f6c453;
  --radius: 24px;
  --pad: clamp(16px, 4.5vw, 64px);
  --maxw: 1312px;
  --f-head: "Sora", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(14, 17, 22, 0.04), 0 8px 30px rgba(14, 17, 22, 0.06);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0c0e;
  --surface: #121316;
  --raised: #1a1b1f;
  --border: #26282d;
  --text: #f2f0eb;
  --muted: #8c8f96;
  --accent: #2fd3c4;
  --accent-ink: #0b0c0e;
  --contrast: #ff7a59;
  --stage: #0b0c0e;
  --shadow: none;
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  transition:
    background 0.4s,
    color 0.4s;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: var(--f-head);
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.08;
  font-weight: 700;
}
p {
  margin: 0;
}
.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--pad));
  margin: 0 auto;
  padding: 0 var(--pad);
}
.eyebrow {
  font: 600 13px/1.2 var(--f-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--contrast);
  display: block;
  margin-bottom: 16px;
}
.h-xl {
  font-size: clamp(42px, 6.2vw, 80px);
}
.h-l {
  font-size: clamp(34px, 4.6vw, 60px);
}
.h-m {
  font-size: clamp(28px, 3.2vw, 44px);
}
.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--muted);
  max-width: 620px;
}
.muted {
  color: var(--muted);
}
.section {
  padding: clamp(72px, 10vw, 140px) 0 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head .lead {
  margin-top: 16px;
}
.center {
  text-align: center;
}
.center .lead {
  margin-left: auto;
  margin-right: auto;
}

/* buttons & chips */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font: 600 15px var(--f-body);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.25s,
    background 0.25s,
    color 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-ghost {
  border-color: color-mix(in srgb, var(--text) 25%, transparent);
}
.btn-ghost:hover {
  border-color: var(--text);
}
.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--raised);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.chip:hover {
  border-color: var(--accent);
}
.chip.is-active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.chip-sm {
  padding: 6px 12px;
  font-size: 13px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex: none;
}
.dot-bones {
  background: var(--c-bones);
}
.dot-muscles {
  background: var(--c-muscles);
}
.dot-vessels {
  background: var(--c-vessels);
}
.dot-nerves {
  background: var(--c-nerves);
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* header */
.topbar {
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color 0.3s,
    background 0.4s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.logo img {
  height: 40px;
  width: auto;
  border-radius: 6px;
}
:root[data-theme="dark"] .logo img {
  background: #fff;
  padding: 3px 5px;
  box-sizing: content-box;
  height: 34px;
}
.logo b {
  display: block;
  font: 600 15px var(--f-body);
}
.logo small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav a:hover,
.nav a.is-current {
  color: var(--text);
}
.nav a.is-current::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s;
}
.icon-btn:hover {
  border-color: var(--accent);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
}
.theme-moon {
  display: none;
}
:root[data-theme="dark"] .theme-moon {
  display: block;
}
:root[data-theme="dark"] .theme-sun {
  display: none;
}
.nav-toggle {
  display: none;
}
.mobile-nav {
  display: none;
}
@media (max-width: 1080px) {
  .nav,
  .header-actions .btn,
  .topbar .addr {
    display: none;
  }
  .nav-toggle {
    display: grid;
  }
  .mobile-nav {
    display: block;
    position: fixed;
    inset: 80px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 12px var(--pad) 24px;
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 40;
  }
  .nav-open .mobile-nav {
    transform: none;
  }
  .mobile-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font: 600 18px var(--f-head);
  }
  .mobile-nav .btn {
    margin-top: 18px;
    width: 100%;
    justify-content: center;
  }
}

/* page hero (inner pages) */
.page-hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: -30%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--accent) 14%, transparent),
    transparent
  );
  pointer-events: none;
}
.crumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.crumb a:hover {
  color: var(--text);
}
.page-hero h1 {
  margin-bottom: 20px;
  max-width: 900px;
}

/* Home scrolly hero ===== */
.scrolly {
  position: relative;
  height: 520vh;
}
.scrolly-sticky {
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
}
.steps {
  position: relative;
  height: 100%;
}
.step {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}
.step.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.step h1,
.step h2 {
  margin-bottom: 24px;
}
.step .lead {
  margin-bottom: 32px;
}
.step .btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.trust {
  display: flex;
  gap: 44px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.trust b {
  display: block;
  font: 700 22px var(--f-head);
}
.trust span {
  font-size: 14px;
  color: var(--muted);
}
.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 13px var(--f-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: var(--contrast);
}
.step-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 520px;
}
.step-facts div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
}
.step-facts b {
  display: block;
  font: 700 24px var(--f-head);
}
.step-facts span {
  font-size: 13px;
  color: var(--muted);
}
.progress-dots {
  position: absolute;
  left: 0;
  bottom: 28px;
  display: flex;
  gap: 8px;
}
.progress-dots span {
  width: 26px;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  transition:
    background 0.3s,
    width 0.3s;
}
.progress-dots span.on {
  background: var(--accent);
  width: 44px;
}
.scroll-hint {
  position: absolute;
  left: 0;
  bottom: 52px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 3D stage */
.stage {
  position: relative;
  height: calc(100% - 40px);
  min-height: 520px;
  border-radius: 32px;
  background: radial-gradient(60% 50% at 50% 45%, #13262a 0%, var(--stage) 70%);
  overflow: hidden;
  color: var(--stage-text);
  border: 1px solid var(--stage-border);
}
.stage-canvas {
  position: absolute;
  inset: 0;
}
.body3d-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  touch-action: pan-y;
  outline: none;
}
.is-dragging .body3d-canvas {
  cursor: grabbing;
}
.body3d-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.b3-label {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: opacity 0.3s;
  will-change: transform;
}
.b3-label {
  --pin: #2fd3c4;
}
.b3-label[data-layer="bones"] {
  --pin: #2fd3c4;
}
.b3-label[data-layer="muscles"] {
  --pin: #ffd25a;
}
.b3-label[data-layer="vessels"] {
  --pin: #6fa0ff;
}
.b3-label[data-layer="nerves"] {
  --pin: #b48cff;
}
.b3-dot {
  position: absolute;
  left: -6px;
  top: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--pin);
  box-sizing: border-box;
  box-shadow:
    0 0 0 2px rgba(11, 12, 14, 0.85),
    0 0 12px 2px color-mix(in srgb, var(--pin) 70%, transparent);
}
.b3-dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1.5px solid var(--pin);
  animation: ping 2.2s infinite;
}
@keyframes ping {
  from {
    transform: scale(0.6);
    opacity: 0.9;
  }
  to {
    transform: scale(2.2);
    opacity: 0;
  }
}
.b3-line {
  position: absolute;
  left: 8px;
  top: 0;
  width: var(--len, 34px);
  height: 1px;
  background: color-mix(in srgb, var(--pin) 70%, transparent);
  transform-origin: left center;
  transform: rotate(var(--ang, 0rad));
}
.b3-pill {
  position: absolute;
  left: 42px;
  top: calc(-15px + var(--dy, 0px));
  border-left: 3px solid var(--pin) !important;
  white-space: nowrap;
  font: 600 12.5px/30px var(--f-body);
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(26, 27, 31, 0.82);
  border: 1px solid var(--stage-border);
  color: var(--stage-text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    background 0.2s,
    color 0.2s;
}
.b3-label.left .b3-line {
  left: auto;
  right: 8px;
  transform-origin: right center;
}
.b3-label.left .b3-pill {
  border-left: 1px solid var(--stage-border) !important;
  border-right: 3px solid var(--pin) !important;
}
.b3-label.left .b3-pill {
  left: auto;
  right: 42px;
}
.b3-label:hover .b3-pill,
.b3-label.is-hover .b3-pill {
  border-color: var(--contrast);
}
.b3-label.is-selected .b3-pill {
  background: var(--accent-3d);
  color: #0b0c0e;
  border-color: var(--accent-3d);
}
.b3-label.is-selected {
  --pin: var(--accent-3d);
}
.b3-label.is-selected .b3-dot {
  background: var(--accent-3d);
  border-color: #fff;
}
.b3-label.is-selected .b3-dot::after {
  border-color: var(--accent-3d);
}
.stage-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.layer-switch {
  pointer-events: auto;
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(26, 27, 31, 0.85);
  border: 1px solid var(--stage-border);
  backdrop-filter: blur(10px);
}
.layer-switch button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  color: var(--stage-muted);
  font: 600 13.5px var(--f-body);
  padding: 9px 15px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}
.layer-switch button.is-active {
  background: rgba(242, 240, 235, 0.12);
  color: var(--stage-text);
}
.stage-hint {
  font-size: 12.5px;
  color: var(--stage-muted);
}
.stage-info {
  position: absolute;
  top: 18px;
  right: 18px;
  width: min(320px, calc(100% - 36px));
  background: rgba(18, 19, 22, 0.92);
  border: 1px solid var(--stage-border);
  border-radius: 20px;
  padding: 22px;
  backdrop-filter: blur(12px);
  color: var(--stage-text);
  transform: translateY(-10px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.35s,
    transform 0.35s;
}
.stage-info.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.stage-info .info-desc,
.stage-info .info-help {
  color: #b9bcc2;
  font-size: 14px;
}
.stage-info .chip {
  background: #24262b;
  border-color: #2e3137;
  color: var(--stage-text);
}
.stage-info .x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: #24262b;
  color: var(--stage-text);
  cursor: pointer;
}
.stage-info .btn {
  margin-top: 18px;
  height: 42px;
  font-size: 14px;
  background: var(--accent-3d);
  color: #0b0c0e;
}
.info-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 11.5px var(--f-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--contrast);
  margin-bottom: 10px;
}
.info-title {
  font-size: 24px;
  margin-bottom: 10px;
}
.info-desc {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 18px;
}
.info-label {
  font: 600 11px var(--f-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0 10px;
}
.info-help {
  font-size: 15px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .scrolly {
    height: 560vh;
  }
  .scrolly-sticky {
    grid-template-columns: 1fr;
    grid-template-rows: 46% 54%;
    gap: 0;
    top: 64px;
    height: calc(100svh - 64px);
    min-height: 0;
  }
  .steps {
    order: 2;
  }
  .step {
    justify-content: flex-start;
    padding-top: 18px;
  }
  .step h1,
  .step h2 {
    font-size: 30px;
    margin-bottom: 12px;
  }
  .step .lead {
    font-size: 15px;
    margin-bottom: 18px;
  }
  .trust,
  .step-facts,
  .scroll-hint {
    display: none;
  }
  .progress-dots {
    bottom: 16px;
  }
  .stage {
    order: 1;
    height: 100%;
    min-height: 0;
    border-radius: 22px;
  }
  .b3-pill {
    font-size: 11px;
    line-height: 24px;
    top: calc(-12px + var(--dy, 0px));
    padding: 0 8px;
    left: 30px;
  }
  .b3-label.left .b3-pill {
    right: 30px;
  }
  .b3-line {
    width: var(--len, 22px);
  }
  .layer-switch button {
    padding: 7px 10px;
    font-size: 12px;
  }
  .stage-info {
    top: auto;
    bottom: 64px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: 70%;
    overflow: auto;
  }
  .site-header .wrap {
    height: 64px;
  }
  .mobile-nav {
    inset: 64px 0 auto 0;
  }
}

/* layer cards */
.grid {
  display: grid;
  gap: 24px;
}
.g4 {
  grid-template-columns: repeat(4, 1fr);
}
.g3 {
  grid-template-columns: repeat(3, 1fr);
}
.g2 {
  grid-template-columns: repeat(2, 1fr);
}
.g6 {
  grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 1080px) {
  .g4,
  .g6 {
    grid-template-columns: repeat(2, 1fr);
  }
  .g3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .g4,
  .g3,
  .g2 {
    grid-template-columns: 1fr;
  }
  .g6 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.layer-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.35s,
    box-shadow 0.35s;
}
.layer-card:hover {
  transform: translateY(-6px);
}
.layer-card .img {
  aspect-ratio: 1 / 0.9;
  overflow: hidden;
  background: var(--stage);
}
.layer-card .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.layer-card:hover .img img {
  transform: scale(1.06);
}
.layer-card .body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 12px var(--f-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--muted);
}
.layer-card h3 {
  font-size: 26px;
  margin-bottom: 12px;
}
.layer-card p {
  color: var(--muted);
  font-size: 15px;
  flex: 1;
}
.layer-card .how {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 16px;
  font-size: 14px;
  font-weight: 600;
}
.layer-card .how small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.layer-card .link {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

/* region cards */
.region {
  padding: 30px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition:
    transform 0.35s,
    border-color 0.35s;
}
.region:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.region h3 {
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.region ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  flex: 1;
}
.region li {
  color: var(--muted);
  padding: 5px 0;
  font-size: 15px;
}
.region li::before {
  content: "•";
  margin-right: 10px;
  color: var(--contrast);
}
.region .more {
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
}
.region.cta {
  background: var(--raised);
  justify-content: space-between;
}
.ring {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--contrast) 18%, transparent);
}
.ring::after {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--contrast);
}

/* meet IOC */
.band {
  background: var(--surface);
  padding: clamp(64px, 8vw, 110px) 0;
  margin-top: clamp(72px, 10vw, 140px);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}
.portrait {
  aspect-ratio: 4 / 4.4;
  border-radius: 28px;
  background: var(--raised);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.portrait .ini {
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
  font: 700 clamp(48px, 6vw, 84px) var(--f-head);
  color: var(--accent);
}
.portrait figcaption {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
}
.portrait figcaption b {
  display: block;
  font: 600 20px var(--f-head);
}
.portrait figcaption span {
  color: var(--muted);
  font-size: 14px;
}
.ticks {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: grid;
  gap: 12px;
}
.ticks li {
  display: flex;
  gap: 12px;
  align-items: center;
  font-weight: 500;
}
.ticks li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.stats div {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}
.stats b {
  display: block;
  font: 700 32px var(--f-head);
}
.stats span {
  color: var(--muted);
  font-size: 14px;
}

/* steps */
.step-card {
  padding: 32px;
}
.step-card .n {
  font: 700 42px var(--f-head);
  color: var(--contrast);
  margin-bottom: 18px;
}
.step-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
}
.step-card p {
  color: var(--muted);
}

/* team */
.person {
  padding: 16px 16px 22px;
  text-align: center;
  transition: transform 0.35s;
}
.person:hover {
  transform: translateY(-4px);
}
.person .ph {
  aspect-ratio: 1;
  border-radius: 16px;
  background: var(--raised);
  display: grid;
  place-items: center;
  font: 700 clamp(30px, 3vw, 52px) var(--f-head);
  color: var(--accent);
  margin-bottom: 16px;
  overflow: hidden;
}
.person .ph {
  position: relative;
}
.person .ph img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.person .ph.has-photo > span {
  visibility: hidden;
}
.person b {
  display: block;
  font: 600 16px var(--f-head);
}
.person span {
  font-size: 13px;
  color: var(--muted);
}
.team-group {
  margin-top: 64px;
}
.team-group h2 {
  font-size: 28px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.team-group h2 small {
  font: 500 14px var(--f-body);
  color: var(--muted);
}
.g4.people {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .g4.people {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* reviews */
.review {
  padding: 32px;
}
.review .stars {
  color: var(--contrast);
  letter-spacing: 3px;
  margin-bottom: 16px;
}
.review p {
  font-size: 17px;
  margin-bottom: 22px;
}
.review small {
  color: var(--muted);
}

/* CTA band */
.cta {
  margin-top: clamp(72px, 10vw, 140px);
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 32px;
  padding: clamp(36px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgba(255, 255, 255, 0.22),
    transparent
  );
}
.cta h2 {
  font-size: clamp(28px, 3vw, 42px);
  margin-bottom: 12px;
}
.cta p {
  opacity: 0.85;
  max-width: 560px;
}
.cta .btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.cta .btn-dark {
  background: var(--accent-ink);
  color: var(--accent);
}
.cta .btn-outline {
  border-color: color-mix(in srgb, var(--accent-ink) 55%, transparent);
  color: var(--accent-ink);
}

/* footer */
.site-footer {
  background: var(--surface);
  margin-top: clamp(72px, 10vw, 140px);
  border-top: 1px solid var(--border);
  padding: 64px 0 28px;
  font-size: 14px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
}
.foot-grid h4 {
  font: 600 12px var(--f-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.foot-grid a,
.foot-grid li {
  color: var(--muted);
  display: block;
  padding: 4px 0;
  list-style: none;
}
.foot-grid ul {
  padding: 0;
  margin: 0;
}
.foot-grid a:hover {
  color: var(--text);
}
.foot-grid p {
  color: var(--muted);
  max-width: 300px;
  margin-top: 16px;
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding-top: 24px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 900px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

/* explorer page */
.explorer {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 360px;
  gap: 20px;
  height: calc(100vh - 120px);
  min-height: 680px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.panel {
  padding: 22px;
  overflow: auto;
}
.panel h4 {
  font: 600 12px var(--f-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 0 14px;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle:hover {
  background: var(--raised);
}
.toggle .t {
  flex: 1;
}
.toggle .t b {
  display: block;
  font-size: 15px;
}
.toggle .t small {
  color: var(--muted);
  font-size: 12px;
}
.toggle input {
  appearance: none;
  -webkit-appearance: none;
  width: 38px;
  height: 22px;
  border-radius: 22px;
  background: var(--border);
  position: relative;
  cursor: pointer;
  transition: background 0.25s;
  flex: none;
  margin: 0;
}
.toggle input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.toggle input:checked {
  background: var(--accent);
}
.toggle input:checked::after {
  transform: translateX(16px);
}
.part-list {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
}
.part-list button {
  text-align: left;
  border: 0;
  background: none;
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition:
    background 0.2s,
    color 0.2s;
}
.part-list button:hover {
  background: var(--raised);
  color: var(--text);
}
.part-list button.is-active {
  background: var(--raised);
  color: var(--text);
  font-weight: 600;
}
.region-title {
  font: 600 14px var(--f-head);
  margin: 16px 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.explorer .stage {
  height: 100%;
  min-height: 0;
}
.tools {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  z-index: 5;
}
.tools button {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--stage-border);
  background: rgba(26, 27, 31, 0.85);
  color: var(--stage-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 16px;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.tools button:hover {
  border-color: var(--accent-3d);
}
.tools button.is-active {
  background: rgba(47, 211, 196, 0.18);
  border-color: var(--accent-3d);
}
.panel-info .info:not(.has-part) {
  color: var(--muted);
}
.panel-info .info .btn {
  margin-top: 22px;
  width: 100%;
  justify-content: center;
}
.empty-art {
  display: grid;
  place-items: center;
  text-align: center;
  height: 100%;
  gap: 12px;
  padding: 20px;
}
.empty-art .big {
  font-size: 44px;
}
@media (max-width: 1080px) {
  .explorer {
    grid-template-columns: 1fr;
    height: auto;
  }
  .explorer .stage {
    height: 72vh;
    min-height: 460px;
    order: -1;
  }
  .panel {
    overflow: visible;
  }
}

/* deep dives */
.dive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  margin-top: 80px;
}
.dive .img {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--stage);
}
.dive .img img {
  width: 100%;
  height: 115%;
  object-fit: cover;
}
.dive:nth-child(even) .img {
  order: 2;
}
.dive h3 {
  font-size: clamp(34px, 4vw, 52px);
  margin-bottom: 18px;
}
.dive p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 24px;
}
.dive .box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 22px;
  font-weight: 600;
}
.dive .box small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
@media (max-width: 900px) {
  .dive {
    grid-template-columns: 1fr;
  }
  .dive:nth-child(even) .img {
    order: 0;
  }
}

/* conditions */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  position: sticky;
  top: 80px;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  padding: 14px 0;
  backdrop-filter: blur(10px);
}
.search {
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0 20px;
  min-width: 260px;
  font: 15px var(--f-body);
  color: var(--text);
  outline: none;
}
.search:focus {
  border-color: var(--accent);
}
.cond-group {
  margin-bottom: 56px;
}
.cond-group > h2 {
  font-size: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.cond-group > h2 small {
  margin-left: auto;
  font: 500 14px var(--f-body);
  color: var(--muted);
}
.cond-card {
  padding: 26px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 176px;
  transition:
    transform 0.3s,
    border-color 0.3s;
  scroll-margin-top: 160px;
}
.cond-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 3px;
  height: 30px;
  border-radius: 2px;
  background: var(--contrast);
}
.cond-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.cond-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.cond-card p {
  color: var(--muted);
  font-size: 15px;
  flex: 1;
}
.cond-card a {
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}
.cond-card.is-flash {
  animation: flash 2.4s;
}
@keyframes flash {
  0%,
  40% {
    border-color: var(--contrast);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--contrast) 25%, transparent);
  }
}
[hidden] {
  display: none !important;
}

/* condition detail */
.cond-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.mini-stage-wrap {
  height: min(72vh, 640px);
}
.mini-stage-wrap .stage {
  height: 100%;
  min-height: 0;
}
@media (max-width: 900px) {
  .cond-hero {
    grid-template-columns: 1fr;
  }
  .mini-stage-wrap {
    height: 60vh;
  }
}
.list-card {
  padding: 34px;
}
.list-card h3 {
  font-size: 24px;
  margin-bottom: 18px;
}
.list-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
}
.list-card li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.list-card li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  transform: translateY(-1px);
}
.warn {
  border-left: 4px solid var(--contrast);
  padding: 18px 24px;
  background: color-mix(in srgb, var(--contrast) 8%, transparent);
  border-radius: 0 16px 16px 0;
}
.warn h3 {
  color: var(--contrast);
  font-size: 20px;
  margin-bottom: 6px;
}

/* treatments */
.tech {
  padding: 30px;
  transition:
    transform 0.3s,
    border-color 0.3s;
}
.tech:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.tech .n {
  font-weight: 600;
  color: var(--contrast);
  font-size: 14px;
  margin-bottom: 18px;
}
.tech h3 {
  font-size: 22px;
  margin-bottom: 10px;
}
.tech p {
  color: var(--muted);
  font-size: 15px;
}
.advice {
  margin-top: 48px;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 32px;
  align-items: center;
  background: var(--raised);
}
@media (max-width: 900px) {
  .advice {
    grid-template-columns: 1fr;
  }
}

/* values */
.value {
  padding: 28px;
}
.value h3 {
  font-size: 20px;
  margin-bottom: 8px;
}
.value p {
  color: var(--muted);
  font-size: 15px;
}
.owner {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.owner .ini {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--raised);
  display: grid;
  place-items: center;
  font: 700 30px var(--f-head);
  color: var(--accent);
  flex: none;
}
.owner b {
  display: block;
  font: 600 20px var(--f-head);
}
.owner span {
  color: var(--muted);
}

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
}
@media (max-width: 900px) {
  .faq {
    grid-template-columns: 1fr;
  }
  .faq-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}
.faq-topics button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
}
@media (max-width: 900px) {
  .faq-topics button {
    width: auto;
    background: var(--raised);
    border-radius: 999px;
    padding: 9px 16px;
  }
}
.faq-topics button.is-active {
  background: var(--raised);
  color: var(--text);
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: background 0.3s;
}
.faq-item[open] {
  background: var(--raised);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 70px 26px 30px;
  font: 600 19px var(--f-head);
  position: relative;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--accent);
  font: 600 20px var(--f-body);
  transition: transform 0.3s;
}
.faq-item[open] summary::after {
  content: "–";
}
.faq-item .a {
  padding: 0 30px 26px;
  color: var(--muted);
  max-width: 820px;
  animation: faqIn 0.4s ease;
}
@keyframes faqIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* contact */
.contact {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
}
@media (max-width: 900px) {
  .contact {
    grid-template-columns: 1fr;
  }
}
.form {
  padding: clamp(24px, 4vw, 48px);
}
.form h2 {
  font-size: 28px;
  margin-bottom: 28px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.fields .full {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .fields {
    grid-template-columns: 1fr;
  }
}
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  padding: 0 16px;
  font: 15px var(--f-body);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.field textarea {
  height: 120px;
  padding: 14px 16px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}
.form .actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.form-done {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-weight: 600;
}
.side {
  display: grid;
  gap: 20px;
  align-content: start;
}
.side .card {
  padding: 30px;
}
.kv {
  margin-bottom: 18px;
}
.kv small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 600;
}
.kv b {
  font-size: 17px;
  font-weight: 500;
}
.hours div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  color: var(--muted);
}
.hours b {
  color: var(--text);
}
.map {
  margin-top: 28px;
  border-radius: 28px;
  overflow: hidden;
  height: 420px;
  border: 1px solid var(--border);
  background: var(--raised);
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
:root[data-theme="dark"] .map iframe {
  filter: invert(0.9) hue-rotate(180deg);
}

/* story */
.story-img {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 1.08;
  background: var(--stage);
}
.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}
/* Page-level footnote, set apart from the content above it */
.note.note-key {
  margin-top: 56px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  color: var(--text);
}
.note-key strong {
  margin-right: 8px;
  color: var(--accent);
}

/* 3D model loading state */
.body3d-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 13px var(--f-body);
  color: var(--stage-muted, #8c8f96);
  pointer-events: none;
  transition: opacity 0.5s;
}
.body3d-loading span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid
    color-mix(in srgb, var(--accent-3d, #2fd3c4) 30%, transparent);
  border-top-color: var(--accent-3d, #2fd3c4);
  animation: b3spin 0.8s linear infinite;
}
.body3d-loading.done {
  opacity: 0;
}
@keyframes b3spin {
  to {
    transform: rotate(360deg);
  }
}
.body3d-canvas {
  opacity: 0;
  transition: opacity 0.8s;
}
.is-loaded .body3d-canvas {
  opacity: 1;
}
.foot-credit {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: var(--muted);
}
.foot-credit a {
  color: inherit;
  text-decoration: underline;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.person .ph > span {
  font: inherit;
  color: inherit;
}
.owner .ini {
  overflow: hidden;
}
.owner .ini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* Phone polish */
@media (max-width: 560px) {
  .site-header .wrap {
    height: 68px;
    gap: 10px;
  }
  .logo {
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
  }
  .logo img {
    height: 34px;
  }
  .logo span {
    min-width: 0;
  }
  .logo b {
    font-size: 14px;
  }
  .logo small {
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
  }
  .header-actions {
    gap: 8px;
    flex: none;
  }
  .icon-btn {
    width: 40px;
    height: 40px;
  }
  .mobile-nav {
    inset: 68px 0 auto 0;
  }
  .topbar .wrap {
    justify-content: center;
    font-size: 12px;
  }
  .chip,
  .chips button,
  .faq-topics button,
  [data-filter],
  .layer-switch button {
    min-height: 40px;
  }
  .btn {
    min-height: 46px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  } /* stops iOS zooming into fields */
}
@media (max-width: 380px) {
  .logo small {
    display: none;
  }
}
.split > *,
.grid > * {
  min-width: 0;
}
.portrait .ini {
  overflow: hidden;
}
.portrait .ini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
@media (max-width: 560px) {
  .btn {
    white-space: normal;
    text-align: center;
  }
}
.mobile-nav,
.mobile-nav .btn {
  box-sizing: border-box;
  max-width: 100%;
}
.stats > div {
  min-width: 0;
}
@media (max-width: 420px) {
  .stats {
    gap: 10px;
  }
  .stats div {
    padding: 14px 12px;
  }
  .stats b {
    font-size: 26px;
  }
  .stats span {
    font-size: 12.5px;
  }
}
html,
body {
  overflow-x: clip;
}

.b3-pill {
  max-width: var(--pmax, none);
  overflow: hidden;
  text-overflow: ellipsis;
}
.foot-dev a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.foot-dev a:hover {
  text-decoration: underline;
}
