:root {
  color-scheme: dark;
  --ink: #eff8f1;
  --muted: #96aaa0;
  --green: #62d69b;
  --green-strong: #36b979;
  --forest: #0b1c16;
  --night: #07100d;
  --line: rgba(164, 218, 184, .18);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  overflow: hidden;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, a { color: inherit; font: inherit; }
button { cursor: pointer; }
a { text-decoration: none; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 1000;
  padding: 10px 14px;
  background: white;
  color: #10251c;
}
.skip-link:focus { top: 18px; }

.demo-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
  padding: 0 clamp(22px, 4vw, 64px);
  border-bottom: 1px solid rgba(188, 228, 202, .12);
  background: linear-gradient(to bottom, rgba(6, 15, 12, .95), rgba(6, 15, 12, .76));
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; width: max-content; font-size: 15px; font-weight: 680; letter-spacing: -.35px; }
.brand-mark { position: relative; width: 34px; height: 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #10251c; }
.brand-mark img { position: absolute; top: 0; left: -25px; width: 86px; max-width: none; }
.demo-title { display: flex; align-items: center; gap: 12px; }
.demo-title span { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; }
.demo-title strong { font-size: 12px; font-weight: 590; letter-spacing: .15px; }
.project-link { justify-self: end; color: #b6c9bf; font-size: 11px; transition: color .2s ease; }
.project-link:hover { color: var(--green); }

.wall-app, .wall-stage { width: 100%; height: 100svh; }
.wall-stage {
  position: relative;
  overflow: hidden;
  cursor: grab;
  perspective: 1800px;
  perspective-origin: 50% 54%;
  background:
    radial-gradient(circle at 50% 44%, rgba(36, 99, 69, .2), transparent 42%),
    radial-gradient(circle at 50% 100%, rgba(50, 145, 96, .1), transparent 34%),
    linear-gradient(160deg, #0a1713 0%, #07100d 58%, #091510 100%);
  touch-action: none;
  user-select: none;
}
.wall-stage:active { cursor: grabbing; }
.wall-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(145, 199, 165, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(145, 199, 165, .025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle, #000 5%, transparent 76%);
}
.scene-copy {
  position: absolute;
  top: 86px;
  left: clamp(22px, 4vw, 64px);
  right: clamp(22px, 4vw, 64px);
  z-index: 24;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}
.scene-heading {
  max-width: 390px;
  padding: 6px 48px 14px 0;
  background: radial-gradient(ellipse at left top, rgba(4, 12, 9, .78), rgba(4, 12, 9, .38) 58%, transparent 75%);
}
.scene-heading > p { margin: 0 0 9px; color: var(--green); font-family: var(--mono); font-size: 8px; letter-spacing: 1.8px; }
.scene-copy h1 { margin: 0; font-size: clamp(27px, 2.25vw, 36px); font-weight: 540; letter-spacing: -1.8px; line-height: .95; }
.scene-copy h1 em { color: var(--green); font-style: normal; }
.scene-evidence { display: flex; align-items: flex-start; gap: 9px; padding: 8px 10px; border: 1px solid rgba(164, 218, 184, .13); border-radius: 5px; background: rgba(5, 15, 11, .54); text-align: right; backdrop-filter: blur(7px); }
.scene-evidence .status-dot { margin-top: 5px; }
.scene-evidence strong { display: block; font-size: 9px; font-weight: 620; }
.scene-evidence p { margin: 4px 0 0; color: var(--muted); font-family: var(--mono); font-size: 7px; line-height: 1.5; }

.wall-camera {
  --pan-x: 0px;
  --pan-y: 18px;
  --look-x: 0deg;
  --look-y: 0deg;
  --focus-x: 0px;
  --focus-y: 0px;
  --camera-scale: .56;
  position: absolute;
  left: 50%;
  top: 60%;
  width: 1px;
  height: 1px;
  transform-style: preserve-3d;
  transform: translate3d(calc(var(--pan-x) + var(--focus-x)), calc(var(--pan-y) + var(--focus-y)), 0) scale(var(--camera-scale));
  transition: transform 1.35s cubic-bezier(.2, .78, .18, 1);
  will-change: transform;
}
.wall-stage.is-ready .wall-camera { transition: transform .42s cubic-bezier(.2, .78, .18, 1); }
.wall-stage.is-auto-panning .wall-screen { transition: none; }
.wall-stage.is-dragging .wall-camera { transition: none; }
.wall-world {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: none;
}

.wall-screen {
  --x: 0px;
  --y: 0px;
  --z: 0px;
  --rx: 0deg;
  --ry: 0deg;
  --lift: 0px;
  --screen-scale: 1;
  position: absolute;
  left: -170px;
  top: -95.5px;
  width: 340px;
  height: 191px;
  padding: 0;
  overflow: hidden;
  border: 2px solid rgba(170, 217, 187, .38);
  border-radius: 12px;
  background: #eff5f1;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .34), 0 0 0 1px rgba(75, 210, 143, .04);
  transform: translate3d(var(--x), var(--y), calc(var(--z) + var(--lift))) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--screen-scale));
  transform-style: preserve-3d;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), opacity .32s ease, filter .32s ease, border-color .28s ease, box-shadow .28s ease;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  text-align: left;
}
.wall-screen.is-anchor {
  z-index: 4;
}
.wall-screen.is-wing { box-shadow: 0 19px 48px rgba(0, 0, 0, .42), 0 0 0 1px rgba(75, 210, 143, .045); }
.wall-screen::after {
  content: "";
  position: absolute;
  inset: 14px 0 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 55%, rgba(4, 13, 9, .03));
}
.screen-chrome {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
  padding: 0 7px;
  border-bottom: 1px solid rgba(0, 0, 0, .09);
  background: #e9eeeb;
}
.screen-chrome i { width: 3px; height: 3px; border-radius: 50%; background: #9bab9f; }
.screen-chrome span { overflow: hidden; margin-left: 4px; color: #697970; font-family: var(--mono); font-size: 5px; text-overflow: ellipsis; white-space: nowrap; }
.screen-image { display: block; width: 100%; height: calc(100% - 14px); object-fit: cover; object-position: top center; background: #f3f6f4; filter: contrast(1.055) saturate(1.06); }
.screen-meta {
  position: absolute;
  z-index: 3;
  inset: auto 0 0;
  padding: 29px 10px 9px;
  color: white;
  background: linear-gradient(to bottom, transparent, rgba(4, 13, 9, .92));
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease;
}
.screen-meta strong { display: block; overflow: hidden; font-size: 8px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.screen-meta span { display: block; overflow: hidden; margin-top: 2px; color: #c7d7cf; font-family: var(--mono); font-size: 5px; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.screen-badge {
  position: absolute;
  z-index: 4;
  top: 21px;
  right: 7px;
  padding: 3px 5px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 3px;
  color: white;
  background: rgba(7, 25, 18, .72);
  font-family: var(--mono);
  font-size: 5px;
  letter-spacing: .45px;
  text-transform: uppercase;
  opacity: .72;
  backdrop-filter: blur(4px);
}
.wall-screen.is-repeat .screen-badge { color: #d9e9e0; border-color: rgba(201, 226, 210, .34); background: rgba(42, 63, 53, .78); }
.wall-screen:hover,
.wall-screen.is-hovered,
.wall-screen:focus-visible {
  --lift: 58px;
  --screen-scale: 1.035;
  z-index: 20;
  border-color: rgba(102, 231, 164, .92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48), 0 0 0 2px rgba(86, 219, 151, .25), 0 0 32px rgba(64, 213, 139, .18);
}
.wall-screen.is-opening {
  --lift: 90px;
  --screen-scale: 1.06;
  z-index: 25;
  border-color: rgba(118, 240, 177, .96);
  box-shadow: 0 30px 78px rgba(0, 0, 0, .55), 0 0 0 2px rgba(86, 219, 151, .28), 0 0 38px rgba(64, 213, 139, .2);
}
.wall-screen:hover .screen-meta,
.wall-screen.is-hovered .screen-meta,
.wall-screen:focus-visible .screen-meta { opacity: 1; transform: none; }
.wall-world.has-focus .wall-screen:not(.is-hovered):not(.is-opening):not(:focus-visible) { opacity: .55; filter: brightness(.65) saturate(.76); }

.vignette {
  position: absolute;
  z-index: 10;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 120px 24px rgba(3, 9, 7, .58);
  background:
    radial-gradient(ellipse 94% 74% at 50% 52%, transparent 60%, rgba(3, 12, 8, .12) 84%, rgba(2, 8, 6, .26) 100%),
    linear-gradient(to bottom, rgba(4, 11, 8, .62), transparent 21%, transparent 84%, rgba(4, 11, 8, .68));
}
.status-dot { flex: 0 0 6px; width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(98, 214, 155, .7); }
.wall-controls {
  position: absolute;
  z-index: 20;
  right: clamp(22px, 4vw, 64px);
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.wall-controls p { margin: 0; color: #8da097; font-family: var(--mono); font-size: 7px; }
.wall-controls p span { color: var(--green); }
.wall-controls p i { display: inline-block; width: 2px; height: 2px; margin: 0 8px 2px; border-radius: 50%; background: #60766a; }
.wall-controls button {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #c2d2ca;
  background: rgba(7, 17, 13, .7);
  font-size: 8px;
}
.wall-controls button:hover { border-color: rgba(98, 214, 155, .55); color: var(--green); }

.intro-curtain { position: fixed; z-index: 200; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); pointer-events: none; }
.intro-curtain span { background: #07100d; transform: scaleY(1); transform-origin: top; transition: transform .9s cubic-bezier(.76, 0, .24, 1); }
.wall-stage.is-ready .intro-curtain span { transform: scaleY(0); transform-origin: bottom; }
.wall-stage.is-ready .intro-curtain span:nth-child(2) { transition-delay: .08s; }
.wall-stage.is-ready .intro-curtain span:nth-child(3) { transition-delay: .16s; }

.inspector {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(5, 13, 10, .96);
  color: var(--ink);
}
.inspector::backdrop { background: rgba(3, 9, 7, .86); backdrop-filter: blur(10px); }
.inspector[open] { animation: inspector-in .34s ease both; }
@keyframes inspector-in { from { opacity: 0; } to { opacity: 1; } }
.inspector[open] .browser-frame { animation: inspect-media-in .46s cubic-bezier(.2, .78, .18, 1) both; }
@keyframes inspect-media-in { from { opacity: .15; transform: translate3d(0, 16px, 0) scale(.975); } to { opacity: 1; transform: none; } }
.inspector-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(300px, .58fr);
  gap: clamp(32px, 5vw, 82px);
  align-items: center;
  width: min(1500px, calc(100% - 96px));
  min-height: 100%;
  margin-inline: auto;
  padding: 104px 0 62px;
}
.inspector-close {
  position: fixed;
  top: 26px;
  left: 34px;
  z-index: 3;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #c9d7d0;
  background: rgba(14, 30, 23, .74);
  font-size: 10px;
}
.inspector-close:hover { border-color: rgba(98, 214, 155, .55); color: var(--green); }
.inspector-media { min-width: 0; }
.browser-frame { overflow: hidden; border: 1px solid rgba(173, 219, 190, .3); border-radius: 10px; background: white; box-shadow: 0 28px 90px rgba(0, 0, 0, .42), 0 0 50px rgba(44, 151, 97, .08); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid #dce3de; background: #edf1ee; }
.browser-bar > span { width: 6px; height: 6px; border-radius: 50%; background: #a7b3ab; }
.browser-bar div { overflow: hidden; min-width: 0; margin-left: 8px; padding: 4px 10px; border-radius: 4px; color: #738078; background: #f8faf8; font-family: var(--mono); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.browser-frame img { display: block; width: 100%; max-height: min(70vh, 850px); object-fit: contain; object-position: top center; background: white; }
.view-switch { display: flex; justify-content: center; gap: 2px; margin-top: 15px; }
.view-switch[hidden] { display: none; }
.view-switch button { padding: 8px 13px; border: 1px solid var(--line); color: #aabbb2; background: transparent; font-size: 9px; }
.view-switch button:first-child { border-radius: 5px 0 0 5px; }
.view-switch button:last-child { border-radius: 0 5px 5px 0; }
.view-switch button.is-active { border-color: rgba(98, 214, 155, .48); color: #eaf7ef; background: rgba(62, 172, 112, .18); }
.inspector-copy { align-self: center; max-width: 390px; }
.inspect-index { margin: 0; color: var(--green); font-family: var(--mono); font-size: 9px; letter-spacing: 1.4px; }
.inspector-copy h2 { margin: 16px 0 0; font-size: clamp(34px, 4.5vw, 64px); font-weight: 540; letter-spacing: -2.8px; line-height: .98; }
.inspect-category { margin: 18px 0 0; color: #c4d4cb; font-size: 12px; }
.inspect-description { margin: 24px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.inspector-copy dl { display: grid; gap: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.inspector-copy dl div { display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.inspector-copy dt { color: #71867b; font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.inspector-copy dd { margin: 0; color: #c6d5cd; font-size: 10px; }
.case-link { display: inline-flex; gap: 8px; margin-top: 26px; color: var(--green); font-size: 10px; }
.case-link[hidden] { display: none; }

noscript { position: fixed; z-index: 999; inset: auto 20px 20px; padding: 12px; background: #fff; color: #111; }

@media (max-width: 840px) {
  body { overflow: auto; }
  .demo-header { grid-template-columns: 1fr auto; min-height: 62px; padding-inline: 18px; }
  .demo-title { display: none; }
  .wall-app, .wall-stage { height: auto; min-height: 100svh; }
  .wall-stage { overflow: visible; padding: 84px 16px 80px; cursor: default; perspective: none; touch-action: auto; user-select: auto; }
  .wall-stage::before, .vignette { display: none; }
  .scene-copy { position: static; display: block; min-height: 0; margin: 0 3px 24px; padding: 0 0 20px; }
  .scene-heading { padding: 0; background: none; }
  .scene-copy h1 { font-size: 36px; letter-spacing: -1.8px; }
  .scene-evidence { margin-top: 18px; text-align: left; }
  .wall-camera { position: static; width: auto; height: auto; transform: none !important; }
  .wall-world { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; transform: none; animation: none; }
  .wall-screen {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
  .wall-screen.is-anchor { inset: auto; width: 100%; height: auto; box-shadow: 0 16px 35px rgba(0, 0, 0, .34); }
  .wall-screen:nth-child(n+25) { display: none; }
  .wall-screen:hover, .wall-screen.is-hovered, .wall-screen:focus-visible { transform: translateY(-2px) !important; }
  .screen-meta { opacity: 1; transform: none; padding: 24px 8px 7px; }
  .screen-badge { top: 19px; }
  .wall-controls { display: none; }
  .inspector-shell { display: block; width: calc(100% - 28px); padding: 84px 0 48px; }
  .inspector-close { top: 16px; left: 14px; }
  .inspector-copy { max-width: none; padding: 34px 2px 0; }
  .inspector-copy h2 { font-size: 38px; letter-spacing: -1.7px; }
  .browser-frame img { max-height: 54vh; }
}

@media (max-width: 520px) {
  .brand > span:last-child { font-size: 13px; }
  .project-link { font-size: 9px; }
  .wall-stage { padding-inline: 10px; }
  .wall-world { gap: 8px; }
  .screen-meta span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .intro-curtain { display: none; }
  .wall-camera { --look-x: 0deg !important; --look-y: 0deg !important; }
}
