@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { height: 100%; background: var(--bg); }
body {
  margin: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
a:focus-visible, button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}
.nav-pill :is(a, button):focus-visible, .logo:focus-visible, .mobile-menu :is(a, button):focus-visible {
  outline-color: #555;
}

.bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}
.page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
  overflow: hidden;
}
.header, .hero, .stats { position: relative; z-index: 1; }
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 100%;
  max-width: 720px;
  gap: clamp(18px, 2.8vw, 28px);
  animation: slideDown 0.7s var(--ease) both;
}
.logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nav-shadow);
  transition: transform 0.25s var(--ease);
}
.logo img { width: 72%; height: 72%; object-fit: contain; }
.logo:hover { transform: scale(1.04); }
.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex: 1;
  max-width: 430px;
  height: clamp(44px, 5.2vw, 48px);
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--nav-text);
  background: #fff;
  box-shadow: var(--nav-shadow);
}
.nav-link {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  padding: 0 12px;
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}
.nav-link:hover { opacity: 0.75; }
.nav-link.active { opacity: 1; }
.nav-link.active::after, .mobile-link.active::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}
.header-action {
  flex: 0 0 auto;
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 23px;
  border-radius: 999px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: -0.01em;
  box-shadow: var(--nav-shadow);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}
.header-action:hover { background: #323234; color: #fff; transform: translateY(-1px); }
.burger { display: none; }

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 900px;
  text-align: center;
}
.world-picker {
  --picker-size: clamp(56px, 6.2vw, 72px);
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: min(400px, 100%);
  padding: 12px 0 24px;
}
.avatars { display: grid; grid-template-columns: repeat(3, 1fr); place-items: center; gap: 22px; }
.avatar {
  display: grid;
  place-items: center;
  width: var(--picker-size);
  height: var(--picker-size);
  padding: 5px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: #28282a;
  box-shadow: 0 3px 16px rgba(0,0,0,.2);
  transition: transform .25s var(--ease), border-color .25s ease;
}
.avatar-inner { display: block; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; }
.avatar-inner img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar:hover, .avatar:focus-visible { transform: translateY(-3px); border-color: #fff; }
.avatar:active { transform: scale(.96); }
.signature-replay { display: block; padding: 12px 0; background: transparent; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.headline {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 1px 1px #000, 0 0 8px rgba(0, 0, 0, 0.9);
  white-space: nowrap;
  overflow: hidden;
}
.headline.anim { opacity: 1; transform: none; filter: none; animation: none; }
.headline > span {
  display: block;
  opacity: 0;
  animation: headlineFade 0.85s var(--ease) forwards;
}
.headline > span:first-child { animation-delay: 0.12s; }
.headline > span:last-child { animation-delay: 0.3s; }
.subhead {
  max-width: min(500px, 92%);
  margin: clamp(16px, 2.4vh, 24px) 0 0;
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  color: #d0d0d0;
  line-height: 1.55;
  font-weight: 400;
}
.headline:focus { outline: none; }
.subhead.anim { --settled-opacity: 1; text-shadow: 0 1px 2px #000, 0 0 8px rgba(0, 0, 0, .65); }
.cta-wrap { max-width: 100%; margin-top: clamp(22px, 3.2vh, 32px); }
.cta-wrap.anim { animation-name: revealPulse; }
.cta {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15), 0 0 22px rgba(255, 255, 255, 0.32), 0 0 44px rgba(255, 255, 255, 0.12);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 0 30px rgba(255, 255, 255, 0.5), 0 0 55px rgba(255, 255, 255, 0.2);
}
.cta:active { transform: translateY(0) scale(0.98); }
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex-shrink: 0;
  width: 100%;
  max-width: 920px;
  gap: 16px;
  padding-top: 14px;
  text-align: center;
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.stat-icon {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 33px);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
}
.stat-value {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 400;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  color: #fff;
}
.stat-value { font-size: clamp(14px, 1.6vw, 20px); min-height: 1.25em; line-height: 1.25; }
.work-link { padding: 4px; border-radius: 12px; }
.work-link:focus { outline: 1px solid rgba(255, 255, 255, 0.65); outline-offset: 6px; }
.work-link:hover .stat-label { color: #fff; }
button.nav-link, button.mobile-link { background: transparent; color: inherit; }
.stat-contact { padding: 4px; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 8px; max-width: 100%; }
.contact-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 24px; }
.contact-links .stat-label { white-space: nowrap; }
.about-contact, .about-email { display: block; padding-block: 8px; color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.about-email { overflow-wrap: anywhere; }
.stat-label { color: var(--muted); font-size: clamp(11px, 1.2vw, 12.5px); line-height: 1.4; }
.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: overlayIn 0.28s ease both;
}
.mobile-menu {
  max-height: calc(100dvh - 104px);
  overflow-y: auto;
  position: fixed;
  top: calc(clamp(16px, 2.4vh, 28px) + 48px + 16px);
  left: 50%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: min(420px, calc(100% - 28px));
  padding: 22px 18px 20px;
  border-radius: 28px;
  background: #fff;
  color: var(--nav-text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: menuIn 0.38s var(--ease) both;
}
.mobile-link {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 48px;
  font-size: 16px;
  font-weight: 500;
  animation: linkIn 0.38s var(--ease) both;
  animation-delay: calc(0.06s + var(--i) * 0.055s);
}
.mobile-link.active::after { bottom: 8px; }
.mobile-link:not(.active) { color: #737373; }
.mobile-link:hover { color: #111; }
.mobile-action {
  flex-shrink: 0;
  width: 100%;
  margin-top: 12px;
  animation: linkIn 0.38s var(--ease) both;
  animation-delay: calc(0.06s + var(--i) * 0.055s);
}
.motion-toggle {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 4;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--pill-dark);
  color: #fff;
  opacity: 0;
  transform: translateY(120%);
}
.motion-toggle:focus-visible { opacity: 1; transform: none; }
.about-dialog {
  max-width: min(380px, calc(100% - 28px));
  padding: 28px;
  border: 1px solid #444;
  border-radius: 24px;
  background: #18181a;
  color: #fff;
}
.about-dialog::backdrop { background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(6px); }
.about-dialog h2 { margin: 0 0 14px; font-size: 24px; font-weight: 500; }
.about-dialog p { color: #c4c2c3; font-size: 15px; line-height: 1.55; }
.dialog-close { margin-top: 12px; padding: 10px 20px; border-radius: 999px; background: #fff; color: #111; }

.work-dialog { width: min(860px, calc(100% - 28px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: clamp(20px, 3vw, 32px); overflow: auto; border: 1px solid #444; border-radius: 24px; background: #18181a; color: #fff; box-shadow: 0 24px 100px #0008; }
.work-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.work-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.work-dialog h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 500; letter-spacing: -.03em; }
.work-dialog__header p { margin: 10px 0 0; color: #c4c2c3; line-height: 1.5; font-size: 15px; }
.work-dialog__close { flex-shrink: 0; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: #fff; color: #111; }
.work-dialog__close:focus-visible { outline-offset: 4px; }
.work-dialog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.work-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #414146; border-radius: 16px; background: #232326; overflow: hidden; transition: border-color .2s, background .2s; }
.work-card:hover { border-color: #c4c2c3; background: #2b2b2f; }
.work-card img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.work-card__copy { display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.work-card__number { color: #a5a5af; font-family: var(--font-display); font-size: 20px; }
.work-card__name { font-size: 18px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.work-card__action { color: #c4c2c3; font-size: 13px; line-height: 1.4; }
.work-dialog__note { color: #a5a5af; margin: 20px 0 0; font-size: 12px; line-height: 1.5; }
@media (max-width: 720px) {
  .work-dialog__grid { grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
  .work-card { display: grid; grid-template-columns: minmax(88px, 30%) minmax(0, 1fr); align-items: stretch; }
  .work-card img { height: 100%; min-height: 108px; aspect-ratio: auto; }
  .work-card__copy { padding: 14px; gap: 5px; }
  .work-card__name { font-size: 16px; }
}

@keyframes slideDown { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes reveal {
  from { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px); }
  to { opacity: var(--settled-opacity, 1); transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes headlineFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes revealPulse {
  0% { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px); }
  70% { opacity: 1; transform: translateY(0) scale(1.025); filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes menuIn { from { opacity: 0; transform: translate(-50%, -12px) scale(0.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes linkIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 720px) {
  .nav-pill, .desktop-action { display: none; }
  .header { justify-content: space-between; max-width: none; }
  .logo, .burger { width: 48px; height: 48px; }
  .burger {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 5px;
    padding: 0;
    border-radius: 50%;
    background: #28282a;
    box-shadow: var(--nav-shadow);
    transition: background 0.25s ease;
  }
  .burger span { display: block; width: 18px; height: 1.5px; border-radius: 2px; background: #fff; transition: transform 0.3s var(--ease), opacity 0.2s ease, background 0.2s ease; }
  .burger[aria-expanded="true"] { background: #fff; }
  .burger[aria-expanded="true"] span { background: #000; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  body.menu-open .header { z-index: 3; }
  .headline { letter-spacing: -0.08em; line-height: 1.05; }
  .subhead-break { display: none; }
  .subhead { max-width: min(500px, 92%); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 22px; }
  .stat { gap: 5px; }
}
@media (max-width: 420px) {
  .headline { letter-spacing: -0.09em; line-height: 1.04; }
}
@media (max-height: 700px) {
  .world-picker { --picker-size: 52px; padding: 8px 0 12px; }
  .subhead { margin-top: 14px; line-height: 1.45; }
  .cta-wrap { margin-top: 18px; }
  .stats { padding-top: 10px; row-gap: 14px; }
}
@media (max-height: 520px) {
  .page { padding-top: 12px; padding-bottom: 12px; }
  .headline { font-size: clamp(28px, 5.5vh, 44px); }
  .world-picker { --picker-size: 48px; padding: 6px 0; }
  .subhead { margin-top: 8px; font-size: 14px; line-height: 1.35; }
  .cta-wrap { margin-top: 12px; }
  .cta { padding: 8px 22px; }
  .stats { row-gap: 8px; padding-top: 8px; }
  .stat { gap: 2px; }
  .stat-icon { font-size: 22px; }
  .stat-value { font-size: 18px; }
  .stat-label { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .header, .anim, .headline > span, .mobile-link, .mobile-action { opacity: 1; transform: none; filter: none; }
  .subhead.anim { opacity: 0.8; }
  .mobile-menu { transform: translateX(-50%); }
  .headline { color: #fff; }
}

/* Add a second, scroll-reachable section without changing the first viewport. */
html { scrollbar-gutter: stable; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body.has-design-archive { height: auto; min-height: 100dvh; overflow-x: hidden; overflow-y: auto; }
body.has-design-archive.menu-open { overflow: hidden; }
html:is([data-intro='pending'],[data-intro='playing'],[data-intro='exiting']) body.has-design-archive { height: 100dvh; overflow: hidden; }
html:is([data-intro='pending'],[data-intro='playing'],[data-intro='exiting']) #design-archive { visibility: hidden; }
/* Scoped image archive. The surrounding portfolio keeps its accepted styles. */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/playfair-portfolio.ttf") format("truetype"); }
#design-archive {
  --bg: #000;
  --ink: #f4f2ef;
  --dim: #8c8783;
  --line: rgba(244,242,239,.28);
  --pad: clamp(14px,2.6vw,34px);
  --ease: cubic-bezier(.22,.61,.36,1);
  --persp: 1150px;
  --cw: 170px;
  --safe-top: env(safe-area-inset-top,0px);
  --safe-right: env(safe-area-inset-right,0px);
  --safe-bottom: env(safe-area-inset-bottom,0px);
  --safe-left: env(safe-area-inset-left,0px);
  --tap: 44px;
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 420px;
  max-height: 1000px;
  isolation: isolate;
  background: var(--bg);
  color: var(--ink);
  contain: layout style;
}
#design-archive *, #design-archive *::before, #design-archive *::after,
#lit, #lit * { box-sizing: border-box; }
#design-archive #stage {
  position: absolute;
  inset: 0;
  perspective: var(--persp);
  perspective-origin: 50% 50%;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
#design-archive #stage.dragging { cursor: grabbing; }
#design-archive #world {
  position: absolute; top: 50%; left: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
#design-archive #orb {
  position: absolute; top: 0; left: 0;
  width: 0; height: 0;
  transform-style: preserve-3d;
  opacity: 1;
  transform: none;
}
#design-archive .card {
  position: absolute; top: 0; left: 0;
  width: var(--cw); height: var(--cw);
  margin-left: calc(var(--cw) / -2);
  margin-top: calc(var(--cw) / -2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
#design-archive .card figure {
  position: relative;
  margin: 0; width: 100%; height: 100%;
  overflow: hidden; border-radius: 3px;
  background: #0a0a0a;
  transition: transform .5s var(--ease);
}
#design-archive .card:hover figure { transform: scale(1.045); }
#design-archive .card:focus-visible figure { outline: 2px solid #f4f2ef; outline-offset: 4px; }
#design-archive .card img {
  display: block; width: 100%; height: 100%;
  max-width: 100%; object-fit: contain;
  opacity: 0; transition: opacity .45s ease-out;
  -webkit-user-drag: none; pointer-events: none;
}
#design-archive .card img.in { opacity: 1; }
#design-archive .card figure::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,var(--d,0));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.07);
  border-radius: 3px; pointer-events: none;
}
#design-archive .orb-title {
  position: absolute; top: 50%; left: 50%; z-index: 3;
  transform: translate(-50%,-50%);
  width: max-content; max-width: calc(100% - 32px); margin: 0;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: min(clamp(26px,8.7vw,68px),12svh);
  font-weight: 400; font-style: normal; line-height: 1.2;
  letter-spacing: -.025em; text-align: center; white-space: nowrap;
  color: #f4f2ef; pointer-events: none; user-select: none;
  text-shadow: 0 2px 18px #000,0 1px 5px #000;
  transition: opacity .25s ease;
}
#design-archive.is-lit .orb-title { opacity: 0; }
#design-archive .vig {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 88% 92% at 50% 50%,transparent 48%,rgba(0,0,0,.26) 80%,rgba(0,0,0,.72) 100%);
}
#design-archive button, #lit button {
  font: inherit; color: inherit; background: none; border: 0;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
#design-archive .orb-motion {
  position: absolute; right: calc(var(--pad) + var(--safe-right));
  bottom: calc(var(--pad) + var(--safe-bottom)); z-index: 3;
  display: grid; place-items: center; width: 44px; height: 44px;
  padding: 12px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #f4f2ef;
  opacity: .5; transition: opacity .2s ease;
}
#design-archive .orb-motion:hover, #design-archive .orb-motion:focus-visible { opacity: 1; }
#design-archive .orb-motion:focus-visible { outline: 2px solid #f4f2ef; outline-offset: 3px; }
#design-archive .orb-motion svg { width: 18px; height: 18px; }
#design-archive [hidden] { display: none !important; }
#design-archive .orb-static { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; padding: 20px; }
#design-archive .orb-static img { width: 100%; height: auto; }
#lit {
  position: fixed; inset: 0; z-index: 90;
  width: 100%; height: 100vh; height: 100dvh;
  max-width: none; max-height: none; margin: 0;
  padding: max(20px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));
  border: 0; background: transparent; color: #f4f2ef;
  overflow: auto; overscroll-behavior: contain;
}
#lit:not([open]) { display: none; }
#lit[open] { display: grid; place-items: center; }
#lit::backdrop { background: transparent; }
#lit .plate {
  position: relative;
  width: min(82vw,1000px,calc(100dvh - 80px));
  margin: 0; opacity: 1;
  transition: transform .62s cubic-bezier(.22,.61,.36,1),opacity .42s ease;
  will-change: transform,opacity;
}
#lit .shot { width: 100%; margin: 0; background: #0b0b0b; border-radius: 3px; box-shadow: 0 30px 90px rgba(0,0,0,.75); }
#lit .shot img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 80px); object-fit: contain; border-radius: 3px; }
#lit .close {
  position: absolute; top: 12px; right: 12px;
  display: grid; place-items: center;
  min-width: 44px; min-height: 44px; padding: 12px;
  border: 1px solid rgba(244,242,239,.78); border-radius: 6px;
  background: rgba(0,0,0,.65); color: #f4f2ef;
}
#lit .close svg { width: 18px; height: 18px; }
#lit .close:hover { background: rgba(0,0,0,.85); border-color: #fff; }
#lit .close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (pointer: coarse) { #design-archive #stage { touch-action: pan-y; } }
@media (max-width: 640px) {
  #design-archive { --pad: clamp(12px,4vw,18px); }
  #lit .plate { width: min(100%,560px,calc(100dvh - 64px)); }
  #lit .close { top: 8px; right: 8px; }
}
@media (max-width: 380px) { #design-archive .orb-static { grid-template-columns: repeat(2,1fr); } }
@media (max-height: 520px) and (orientation: landscape) {
  #design-archive { min-height: 300px; }
  #lit .plate { width: min(58vw,calc(100dvh - 40px)); }
  #lit { padding-top: max(12px,env(safe-area-inset-top)); padding-bottom: max(12px,env(safe-area-inset-bottom)); }
  #lit .shot img { max-height: calc(100dvh - 40px); }
}
@media (prefers-reduced-motion: reduce) {
  #design-archive *, #design-archive *::before, #design-archive *::after, #lit * {
    animation-duration: .01ms !important; transition-duration: .14s !important;
  }
}
