/* Telepass: original project artwork, stationary interaction targets. */
.tp-gallery { display: grid; grid-template-columns: 1.65fr 1fr; gap: 28px; align-items: center; padding: 24px 8px; }
.tp-artwork { margin: 0; min-width: 0; }
.tp-artwork:first-child { grid-row: span 2; }
.tp-open { display: block; width: 100%; padding: 12px 0; border: 0; background: none; cursor: zoom-in; perspective: 1100px; }
.tp-plane { position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 14px 28px rgba(0,0,0,.18); transition: transform .55s cubic-bezier(.16,1,.3,1), filter .55s, box-shadow .55s; }
.tp-plane img { display: block; width: 100%; height: auto; aspect-ratio: 1924 / 1462; object-fit: contain; }
.tp-plane::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg,rgba(255,255,255,.2),transparent 45%); opacity: .35; transition: opacity .55s; }
.tp-expand { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(10,20,25,.82); font-size: 1.3rem; }
.tp-artwork figcaption { padding: clamp(28px, 4vw, 40px) 2px 10px; font-size: .82rem; line-height: 1.5; color: var(--ink); }
.tp-artwork figcaption span { color: var(--soft); margin-right: 8px; font-variant-numeric: tabular-nums; }
@keyframes tp-levitate {
  0%, 100% { translate: 0 3px; }
  50% { translate: 0 -5px; }
}
@media (min-width: 701px) and (prefers-reduced-motion: no-preference) {
  .tp-gallery .tp-plane { animation: tp-levitate 8s ease-in-out infinite; pointer-events: none; }
  .tp-artwork:nth-child(2) .tp-plane { animation-duration: 9.5s; animation-delay: -3s; }
  .tp-artwork:nth-child(3) .tp-plane { animation-duration: 10.5s; animation-delay: -6s; }
  .tp-open:is(:hover,:focus) .tp-plane,
  body:has(.tp-lightbox[open]) .tp-plane { animation-play-state: paused; }
}
@media (hover: hover) and (pointer: fine) and (min-width: 701px) {
  .tp-plane { transform: rotateY(7deg) rotateZ(-2deg); filter: blur(.25px); }
  .tp-artwork:nth-child(2) .tp-plane { transform: rotateY(-8deg) rotateZ(3deg); }
  .tp-artwork:nth-child(3) .tp-plane { transform: rotateY(-6deg) rotateZ(-2deg); }
  .tp-open:is(:hover,:focus-visible) .tp-plane { transform: rotateY(0) rotateZ(0) translateZ(16px); filter: none; box-shadow: 0 22px 44px rgba(0,0,0,.24); }
  .tp-open:is(:hover,:focus-visible) .tp-plane::after { opacity: .8; }
}
.tp-lightbox { margin: auto; width: min(1100px,94vw); max-width: 94vw; max-height: 94dvh; padding: 18px; border: 1px solid var(--line-strong); border-radius: 18px; background: var(--bg); color: var(--ink); overflow: auto; }
.tp-lightbox::backdrop { background: rgba(5,12,9,.82); backdrop-filter: blur(10px); }
body:has(.tp-lightbox[open]) { overflow: hidden; }
/* Native dialogs sit above the custom cursor's document layer. */
html.has-custom-cursor .tp-lightbox,
html.has-custom-cursor .tp-lightbox * { cursor: auto !important; }
html.has-custom-cursor .tp-lightbox button { cursor: pointer !important; }
.tp-lightbox::backdrop { cursor: default; }
body:has(.tp-lightbox[open]) :is(.cursor-dot, .cursor-ring) { visibility: hidden; }
.tp-lightbox-head, .tp-lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tp-lightbox-head { margin-bottom: 14px; }
.tp-image-label { margin: 0; font-size: .9rem; }
.tp-lightbox button { min-height: 44px; min-width: 44px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: var(--bg); cursor: pointer; padding: 8px 14px; }
.tp-full-image { display: block; width: 100%; height: min(70dvh,760px); object-fit: contain; }
.tp-lightbox-controls { justify-content: center; margin-top: 14px; }
.tp-count { min-width: 60px; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) {
  .tp-gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 5px 20px; }
  .tp-artwork { flex: 0 0 88%; scroll-snap-align: center; }
  .tp-lightbox { padding: 12px; }
  .tp-full-image { height: min(65dvh,600px); }
}
@media (prefers-reduced-motion: reduce) {
  .tp-gallery .tp-plane, .tp-gallery .tp-open .tp-plane { transform: none; filter: none; transition: none; }
  .tp-plane::after { transition: none; }
}
/* Shared usability refinements; project branding stays in the existing styles. */
html { scroll-padding-top: 100px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.skip-link { position: fixed; z-index: 10001; background: var(--ink); color: var(--bg); }
.glass-nav .main-nav a { min-height: 44px; display: flex; align-items: center; font-size: .875rem; }
.glass-nav .main-nav a::after { bottom: 4px; }
.glass-nav .sound-toggle, .glass-nav .theme-switch,
.glass-nav .menu-switch { width: 44px; height: 44px; }
.glass-nav .language-switch { height: 44px; }
.glass-nav.is-scrolled::before, .glass-nav.scrolled::before { background: color-mix(in srgb, var(--bg) 94%, transparent); }
.scene-rail a:not(.is-active) { opacity: 1; }
.case-tab:is(.is-active, :hover) :is(span, small) { color: #34431e; }
.case-tab:focus-visible { outline-offset: -5px; }
.case-tab.is-active:focus-visible { outline-color: #34431e; }
.hero-copy, .hero-bottom, .hero-stage, .case-deck, .case-content { min-width: 0; }
/* All projects size the same grid cell, so switching never resizes the console. */
.case-console { width: 100%; min-width: 0; }
.case-deck { display: grid; grid-template-columns: minmax(0, 1fr); }
.case-panel { grid-area: 1 / 1; min-width: 0; }
.case-panel[hidden] { display: grid; visibility: hidden; pointer-events: none; animation: none; }
.decision-map { min-height: 440px; --core-x: 0px; --core-y: 0px; }
.decision-map::before, .decision-map::after {
  pointer-events: none; inset: auto; top: 50%; left: 50%;
  width: 76%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.decision-map::after { width: 42%; }
.map-ripple {
  position: absolute; z-index: 2; top: 50%; left: 50%; width: 34%; aspect-ratio: 1;
  border: 1px solid rgba(var(--ink-rgb), .5); border-radius: 50%;
  opacity: 0; pointer-events: none; transform: translate(-50%, -50%);
}
.decision-map[data-map-state="people"] { --glow-x: 0%; --glow-y: 0%; }
.decision-map[data-map-state="context"] { --glow-x: 100%; --glow-y: 0%; }
.decision-map[data-map-state="system"] { --glow-x: 0%; --glow-y: 100%; }
.decision-map[data-map-state="proof"] { --glow-x: 100%; --glow-y: 100%; }
.map-grid::after {
  content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(ellipse at var(--glow-x, 50%) var(--glow-y, 50%), rgba(170,225,110,.2), transparent 62%);
  transition: opacity .8s ease;
}
.decision-map:not([data-map-state="balance"]) .map-grid::after { opacity: 1; }
.decision-map .map-readout {
  margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); background: rgba(var(--bg-rgb), .88);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
.map-core {
  top: 50%; pointer-events: none;
  transform: translate(calc(-50% + var(--core-x, 0px)), calc(-50% + var(--core-y, 0px)));
  transition: transform .85s cubic-bezier(.16, 1, .3, 1), box-shadow .6s ease;
  background: linear-gradient(135deg, rgba(255,255,255,.56), transparent 44%, rgba(255,255,255,.18)), rgba(201,255,69,.92);
  border: 1px solid rgba(255,255,255,.65);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 2px 3px rgba(255,255,255,.5), inset 0 -8px 18px rgba(62,91,0,.1), 0 12px 32px rgba(0,0,0,.16), 0 0 0 9px rgba(201,255,69,.08);
}
.map-core::after { content: ''; position: absolute; inset: 7px; border-radius: inherit; border-top: 1px solid rgba(255,255,255,.65); transform: rotate(-25deg); }
.map-core strong { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .map-core { transition: none; transform: translate(-50%, -50%); }
  .map-ripple { display: none; }
  .map-grid::after { transition: none; }
}
@media (prefers-reduced-transparency: reduce) { .decision-map .map-readout { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (prefers-reduced-transparency: reduce) { .map-core { background: #c9ff45; backdrop-filter: none; -webkit-backdrop-filter: none; } }
.map-node { min-height: 44px; }
/* Keep the pointer hit area stationary: lifting the button can trigger a
   leave/enter feedback loop along its lower edge. */
.decision-map .map-node:is(:hover, .is-active) { transform: none; }
.node-proof { bottom: 128px; }
.node-system { bottom: 166px; }
@media (max-width: 480px) {
  .decision-map .node-system { bottom: 128px; }
  .decision-map .map-core strong { font-size: 1.25rem; }
}
.reveal { opacity: 1; transform: none; }
.cs-body .cs-page { padding-top: clamp(26px, 3vw, 44px); }
.cs-hero { padding-top: 32px; }
.cs-title { font-size: clamp(2.8rem, 7.5vw, 6.5rem); line-height: 1.02; }
.cs-title .word { animation: none; opacity: 1; transform: none; filter: none; }
.cs-toc { margin: 24px 0 32px; padding: 20px 0; border-block: 1px solid var(--line); }
.cs-toc p { font-weight: 600; margin-bottom: 10px; }
.cs-toc ul { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; }
.cs-toc a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 5px; color: var(--ink); }
.cs-section[id], .scene[id] { scroll-margin-top: 0; }
.cs-process h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.25; }
.cs-section { padding-block: clamp(32px, 5vw, 56px); }
.cs-section h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.cs-page .reveal { opacity: 1; transform: none; }
.bit-companion[hidden], .bit-scan-beam[hidden] { display: none !important; }
.bit-dismiss { position: absolute; right: 0; top: -32px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink); pointer-events: auto; font-size: 1.4rem; }
.bit-preference { min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font: inherit; color: var(--ink); background: var(--bg); }
.site-footer { padding-bottom: 40px; }
@media (max-width: 780px) {
  html { scroll-padding-top: 84px; }
  .glass-nav .nav-tools { gap: 4px; }
  .glass-nav .main-nav { top: 66px; max-height: calc(100dvh - 90px); overflow-y: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-bottom { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { width: 100%; }
  .coordinate { display: none; }
  .case-selector { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .case-tab { min-width: 0; min-height: 82px; padding: 12px 6px; grid-template-columns: 1fr; gap: 5px; text-align: center; }
  .case-tab span { grid-row: auto; }
  .case-tab strong { font-family: var(--font-sans); font-size: .875rem; overflow-wrap: anywhere; }
  .case-tab small, .case-tab::after { display: none; }
  .case-visual { min-height: 220px; }
  .case-label { margin-top: 26px; }
  .cases-intro h2 { font-size: clamp(2.6rem, 12vw, 4.8rem); line-height: 1.02; }
  .contact-main h2 { font-size: clamp(2.8rem, 14.5vw, 6rem); line-height: .95; }
  .contact-main h2 span { padding-left: 0 !important; }
  .cs-body .cs-page { padding-top: 26px; }
  .cs-hero { padding-top: 24px; }
  .cs-toc ul { gap: 2px 16px; }
  .cs-meta { column-gap: 12px; }
  .cs-meta dd { overflow-wrap: anywhere; }
}
@media (max-height: 700px), (prefers-reduced-motion: reduce) {
  .system-card { position: relative; top: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-iteration-count: 1 !important; }
}
.bit-preference {
  position: fixed; right: clamp(16px,2.4vw,38px);
  bottom: max(16px,env(safe-area-inset-bottom)); z-index: 160;
  display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  border-radius: 18px; border: 1px solid var(--line-strong);
  background: rgba(var(--bg-rgb),.72); color: var(--soft); cursor: pointer;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px #0002, inset 0 1px 0 rgba(var(--ink-rgb),.08);
}
.bit-preference[hidden] { display: none !important; }
.bit-preference:hover { border-color: var(--accent-ui); }
.bit-preference svg { color: var(--soft); }
.bit-preference .bit-icon-shell { fill: none; stroke: currentColor; }
.bit-preference .bit-icon-trim { stroke: currentColor; }
.bit-preference .bit-icon-visor { fill: var(--bg); stroke: currentColor; }
.bit-preference .bit-icon-eyes { stroke: currentColor; stroke-width: 2; }

.bit-preference:focus-visible { outline: 2px solid var(--accent-ui); outline-offset: 3px; }

/* A single illustrative image fills the gallery without carousel spacing. */
.tp-gallery.tp-gallery-single { display: block; overflow: visible; }
.tp-gallery-single .tp-artwork { width: 100%; }
.cs-section:has(.tp-gallery) + .cs-section { border-top: 0; }
.tp-lightbox-controls button[hidden] { display: none; }
