/* Screenery Homepage: Kinetic Print-Studio Gallery
   Bold poster typography, color-reactive fanned exhibition stage, high-contrast ink marquee,
   tactile press-shadow specimen cards, dark token console, zero AI-SaaS clichés. */

:root {
  --paper: #f7f8fa;
  --surface: #ffffff;
  --mat: #ebedf2;
  --ink: #0e1014;
  --ink-2: #464b55;
  --ink-3: #707682;
  --rule: rgba(14, 16, 20, 0.14);
  --rule-strong: rgba(14, 16, 20, 0.28);
  --accent: #2952ff;
  --accent-ink: #ffffff;
  --signal: #e63922;
  --ok: #137a4b;
  --dark: #0e1014;
  --dark-2: #171a21;
  --dark-ink: #f4f3ef;
  --dark-muted: #98a0ad;
  --dark-rule: rgba(255, 255, 255, 0.14);

  --sans: 'Epilogue', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'Spline Sans Mono', ui-monospace, Menlo, monospace;

  --wrap: 1380px;
  --pad: clamp(18px, 3vw, 44px);
  --r-sm: 5px;
  --r-md: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); color: var(--ink); overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; line-height: 1; color: inherit; cursor: pointer; background: none; border: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
[hidden] { display: none !important; }

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}

.pill-nav {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.03em;
}
.brand__edition {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  padding-left: 12px;
  margin-left: 2px;
  border-left: 1px solid var(--rule-strong);
  text-transform: uppercase;
}

.pill-nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.pill-nav__links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 140ms ease;
}
.pill-nav__links a:hover { color: var(--ink); }

.pill-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px 9px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--r-sm);
  box-shadow: 3px 3px 0 var(--accent);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.pill-nav__cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--accent);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
}

.mobile-drawer {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 85;
  background: var(--paper);
  border-bottom: 1px solid var(--rule-strong);
  padding: 16px var(--pad) 24px;
  display: grid;
  gap: 2px;
}
.mobile-drawer a {
  padding: 12px 0;
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
}

/* ============================================================
   HERO: KINETIC POSTER + COLOR-REACTIVE 3-PLATE STAGE
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(14, 16, 20, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 16, 20, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.5) 70%, transparent 100%);
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  left: 50%;
  bottom: -140px;
  width: min(1240px, 96vw);
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--hero-accent, #2952ff) 24%, transparent) 0%, transparent 70%);
  pointer-events: none;
  transition: background 500ms ease;
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(28px, 3.6vw, 48px);
  padding-bottom: clamp(40px, 5vw, 68px);
}

.hero__poster {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-strong);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}
.hero__stamp {
  background: var(--ink);
  color: var(--paper);
  padding: 5px 10px 4px;
  border-radius: 3px;
  font-weight: 600;
}
.hero__meta-line {
  color: var(--ink-2);
}

.hero__headline-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
}
.hero__title {
  margin: 0;
  font-size: clamp(50px, 6.4vw, 96px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.048em;
  color: var(--ink);
}
.hero__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15em;
  letter-spacing: -0.015em;
  color: var(--hero-accent, var(--accent));
  transition: color 360ms ease;
  padding-right: 0.06em;
}
.hero__aside {
  max-width: 42ch;
  padding-bottom: 6px;
}
.hero__sub {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink-2);
}

.hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.cli-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 468px);
  min-width: 0;
  padding: 6px 6px 6px 16px;
  background: var(--ink);
  color: var(--dark-ink);
  border-radius: var(--r-sm);
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(14, 16, 20, 0.16);
}
.cli-pill code {
  min-width: 0;
  flex: 1;
  font-family: var(--mono);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cli-pill code::before {
  content: '$ ';
  color: #7ea0ff;
}
.cli-pill__btn {
  flex-shrink: 0;
  padding: 10px 14px 9px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  border-radius: 3px;
  transition: background 140ms ease;
}
.cli-pill__btn:hover { background: var(--accent); }
.cli-pill__btn.is-done { background: var(--ok); }

.hero__bar-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px 13px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.btn-primary:hover {
  transform: translate(-1.5px, -1.5px);
  box-shadow: 5.5px 5.5px 0 var(--ink);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px 13px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(14, 16, 20, 0.14);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.btn-ghost:hover {
  transform: translate(-1.5px, -1.5px);
  box-shadow: 5px 5px 0 var(--ink);
}
.hero__text-link {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 6px;
}
.hero__text-link:hover { color: var(--ink); text-decoration: underline; }

/* ============================================================
   KINETIC 3-PLATE FANNED EXHIBITION STAGE
   ============================================================ */
.stage {
  margin-top: clamp(32px, 4vw, 52px);
}

.stage__cinema {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 4.4fr) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.stage__peek {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  aspect-ratio: 16 / 11;
  box-shadow: 0 22px 44px -26px rgba(14, 16, 20, 0.35);
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease;
  padding: 0;
}
.stage__peek--left { transform: rotate(-4deg) translateX(8px); }
.stage__peek--right { transform: rotate(4deg) translateX(-8px); }
.stage__peek--left:hover { transform: rotate(-1.5deg) scale(1.04); z-index: 4; box-shadow: 6px 6px 0 var(--ink); }
.stage__peek--right:hover { transform: rotate(1.5deg) scale(1.04); z-index: 4; box-shadow: 6px 6px 0 var(--ink); }
.stage__peek img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.stage__peek-tag {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: rgba(14, 16, 20, 0.88);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-frame {
  position: relative;
  z-index: 3;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--ink), 0 36px 72px -30px rgba(14, 16, 20, 0.36);
}
.browser-frame.is-turn-next { animation: plateInNext 320ms cubic-bezier(0.22, 1, 0.36, 1); }
.browser-frame.is-turn-prev { animation: plateInPrev 320ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes plateInNext {
  from { opacity: 0.78; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes plateInPrev {
  from { opacity: 0.78; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

.browser-frame__viewport {
  position: relative;
  aspect-ratio: 16 / 9.5;
  background: #14161a;
  overflow: hidden;
}
.stage__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity 200ms ease;
}
.stage__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}
.stage__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(14, 16, 20, 0.18);
}
.stage__progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--hero-accent, var(--accent));
  transform-origin: left center;
  transform: scaleX(0);
}

.stage__caption {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 2px solid var(--ink);
  background: var(--surface);
}
.stage__caption-copy { min-width: 0; }
.stage__caption-copy strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.stage__caption-copy span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage__controls {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.live-toggle {
  padding: 8px 12px 7px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  transition: all 140ms ease;
}
.live-toggle:hover { background: var(--ink); color: var(--paper); }
.live-toggle[aria-pressed="true"] {
  background: var(--signal);
  border-color: var(--signal);
  color: #ffffff;
}
.stage__open {
  padding: 8px 12px 7px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}
.stage__open:hover { background: var(--ink); color: var(--paper); }
.stage__arrow {
  width: 34px;
  height: 32px;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 140ms ease, color 140ms ease;
}
.stage__arrow:hover { background: var(--ink); color: var(--paper); }

/* ============================================================
   HIGH-CONTRAST INK SPECIMEN MARQUEE
   ============================================================ */
.hero-ticker {
  overflow: hidden;
  background: var(--dark);
  color: var(--dark-ink);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 16px 0;
}
.hero-ticker__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: ticker 52s linear infinite;
}
.hero-ticker:hover .hero-ticker__track { animation-play-state: paused; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05);
  white-space: nowrap;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}
.ticker__chip:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}
.ticker__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}
.ticker__name { font-size: 18px; color: #ffffff; }
.ticker__type { font-family: var(--mono); font-size: 11px; color: var(--dark-muted); }

/* ============================================================
   SECTIONS SHARED
   ============================================================ */
.section {
  padding: clamp(56px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--rule);
}

.section-kicker {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 12px;
}

.section-h {
  margin: 0;
  font-size: clamp(34px, 3.8vw, 56px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 22ch;
}
.section-h em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  color: var(--accent);
}
.section-lede {
  margin: 16px 0 0;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
}

/* ============================================================
   GALLERY SECTION
   ============================================================ */
.gallery__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.random-btn {
  padding: 13px 18px 12px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--r-sm);
  box-shadow: 4px 4px 0 var(--accent);
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.random-btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--accent); }

.gallery__toolbar {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: rgba(247, 248, 250, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding: 14px 0;
  margin-bottom: 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gallery__toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  flex: 1 1 320px;
  max-width: 520px;
  display: flex;
  align-items: center;
}
.search-box__icon {
  position: absolute;
  left: 13px;
  color: var(--ink-3);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  height: 40px;
  padding: 0 38px 0 38px;
  background: var(--surface);
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 14px;
  color: var(--ink);
}
.search-box input:focus { border-color: var(--ink); outline: none; }
.search-box input::placeholder { color: var(--ink-3); }
.search-box__kbd {
  position: absolute;
  right: 10px;
  font-family: var(--mono);
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  color: var(--ink-3);
}

.gallery__controls-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tone-group, .view-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--r-sm);
  padding: 3px;
  gap: 2px;
}
.tone-btn, .view-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px 7px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink-2);
  border-radius: 3px;
  transition: background 120ms ease, color 120ms ease;
}
.tone-btn[aria-pressed="true"], .view-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}
.tone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(14, 16, 20, 0.25);
}
.tone-dot--dark { background: #14171d; }
.tone-dot--light { background: #f8f7f3; }
.tone-dot--vibrant { background: #ff4d2e; }

.gallery__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}
.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}
.filters::-webkit-scrollbar { display: none; }
.filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 9px 7px;
  border: 1px solid var(--rule-strong);
  background: var(--surface);
  border-radius: var(--r-sm);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 120ms ease;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.filter__n {
  font-family: var(--mono);
  font-size: 10.5px;
  opacity: 0.72;
}

.gallery__meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
  white-space: nowrap;
  flex-shrink: 0;
}
.gallery__reset {
  text-decoration: underline;
  color: var(--accent);
  font-weight: 500;
}

/* Tactile Press-Shadow Specimen Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.card {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 0 rgba(14, 16, 20, 0.08);
  transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 6px 6px 0 var(--ac, var(--ink));
}

.card__stage {
  position: relative;
  background: var(--mat);
  border-bottom: 1.5px solid var(--ink);
}

.card__chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  border-top: 3px solid var(--ac, var(--ink));
}
.card__num {
  color: var(--ink-3);
  font-weight: 600;
}

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #14161a;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .card__media img { transform: scale(1.03); }

.card__specimen-cover { display: none; }

.card__quick-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}
.card:hover .card__quick-actions,
.card:focus-within .card__quick-actions {
  opacity: 1;
  transform: translateY(0);
}
.card__peek-btn, .card__open-btn {
  padding: 8px 11px 7px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  border-radius: 3px;
  text-decoration: none;
  background: rgba(14, 16, 20, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.card__peek-btn:hover, .card__open-btn:hover { background: var(--accent); border-color: var(--accent); }

.card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}
.card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.card__name {
  font-size: 22px;
  line-height: 1.15;
  text-decoration: none;
  color: var(--ink);
}
.card__name:hover { color: var(--accent); }
.card__type {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  text-align: right;
  flex-shrink: 0;
}
.card__world {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.card__tag {
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 7px 3px;
  line-height: 1;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink-2);
}
.card__foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.swatches {
  display: flex;
  align-items: center;
  gap: 5px;
}
.swatch {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid rgba(14, 16, 20, 0.25);
  transition: transform 120ms ease;
}
.swatch:hover { transform: scale(1.25); }

.card__links {
  display: inline-flex;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
}
.card__links a { text-decoration: none; color: var(--ink-2); }
.card__links a:hover { color: var(--accent); text-decoration: underline; }

/* Specimen Wall View */
.cards[data-view="wall"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.cards[data-view="wall"] .card__chrome,
.cards[data-view="wall"] .card__body { display: none; }
.cards[data-view="wall"] .card__stage { border-bottom: 0; }
.cards[data-view="wall"] .card__specimen-cover {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: absolute;
  inset: 0;
  padding: 14px;
  background: linear-gradient(180deg, rgba(14, 16, 20, 0.1) 0%, rgba(14, 16, 20, 0.82) 100%);
  color: #ffffff;
  opacity: 0;
  transition: opacity 180ms ease;
}
.cards[data-view="wall"] .card:hover .card__specimen-cover { opacity: 1; }
.card__specimen-num { font-family: var(--mono); font-size: 11px; opacity: 0.8; }
.card__specimen-name { font-size: 22px; line-height: 1.1; margin-top: auto; }
.card__specimen-type { font-family: var(--mono); font-size: 11px; opacity: 0.85; margin-top: 4px; }

.gallery__empty {
  text-align: center;
  padding: 64px 24px;
  border: 1.5px dashed var(--rule-strong);
  border-radius: var(--r-sm);
}

/* ============================================================
   MANIFESTO / ARCHITECTURAL LEDGER (#inside)
   ============================================================ */
.ledger-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: 8px 8px 0 rgba(14, 16, 20, 0.12);
}
.ledger-col {
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  background: var(--surface);
}
.ledger-col + .ledger-col {
  border-left: 1.5px solid var(--ink);
}
.ledger-col--ink {
  background: var(--dark);
  color: var(--dark-ink);
}
.ledger-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 14px;
}
.ledger-col--ink .ledger-num { color: #7ea0ff; }
.ledger-col h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}
.ledger-col p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
}
.ledger-col--ink p { color: var(--dark-muted); }

.mini-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.mini-chips span {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 6px 9px 5px;
  line-height: 1;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  border-radius: 3px;
  color: var(--ink);
}

.tree-mini {
  margin: 0;
  padding: 18px 20px;
  background: #171a21;
  border: 1px solid var(--dark-rule);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  overflow-x: auto;
}
.tree-mini .hi { color: #7ea0ff; font-weight: 500; }
.tree-mini .dim { color: var(--dark-muted); }

/* ============================================================
   LIVE TOKEN STUDIO (#yours) — DARK CONSOLE CONTRAST
   ============================================================ */
.studio-box {
  margin-top: 36px;
  display: grid;
  grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr);
  gap: 32px;
  align-items: start;
  padding: clamp(22px, 2.8vw, 36px);
  background: var(--dark);
  color: var(--dark-ink);
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  box-shadow: 10px 10px 0 var(--accent);
}
.studio-box h3 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.02em;
}
.studio-box__p {
  margin: 10px 0 20px;
  font-size: 15px;
  color: var(--dark-muted);
}
.studio-box__p code {
  font-family: var(--mono);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 3px;
}
.palettes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.pal {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 11px;
  border: 1px solid var(--dark-rule);
  background: var(--dark-2);
  color: var(--dark-ink);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  transition: all 140ms ease;
}
.pal[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.pal__sw { display: inline-flex; }
.pal__sw i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-left: -4px;
}
.pal__sw i:first-child { margin-left: 0; }

.tokens {
  margin: 0;
  padding: 18px 20px;
  background: #08090c;
  color: #a5f3fc;
  border: 1px solid var(--dark-rule);
  border-radius: var(--r-sm);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
}

.scaled {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--dark-rule);
  border-radius: var(--r-sm);
  background: var(--mat);
}
.scaled iframe {
  border: 0;
  transform-origin: top left;
  display: block;
}

/* ============================================================
   CHROMIUM VERIFICATION LEDGER (#checked)
   ============================================================ */
.inspect-card {
  margin-top: 32px;
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: 6px 6px 0 rgba(14, 16, 20, 0.1);
}
.inspect-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1.5px solid var(--ink);
}
.inspect-metric { padding: 24px 26px; }
.inspect-metric + .inspect-metric { border-left: 1px solid var(--rule); }
.inspect-metric strong {
  display: block;
  font-family: var(--mono);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.inspect-metric strong.ok-num { color: var(--ok); }
.inspect-metric span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-2);
}

.inspect-checks {
  padding: 18px 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.check-pill {
  font-family: var(--mono);
  font-size: 12px;
  padding: 6px 10px 5px;
  line-height: 1;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  color: var(--ink-2);
}

.checked__table summary {
  padding: 18px 26px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.checked__scroll {
  max-height: 420px;
  overflow: auto;
  border-top: 1px solid var(--rule);
}
.checked__table table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 12.5px;
}
.checked__table th, .checked__table td {
  padding: 10px 18px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
}
.checked__table thead th {
  position: sticky;
  top: 0;
  background: var(--paper);
  color: var(--ink-2);
}
.checked__table td.ok { color: var(--ok); font-weight: 500; }
.checked__table td.bad { color: var(--signal); font-weight: 500; }
.checked__table .num { text-align: right; }

/* ============================================================
   AGENT INTEGRATION DESK (#agents)
   ============================================================ */
.agents-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 28px;
}

.terminal-box {
  background: var(--dark);
  color: var(--dark-ink);
  border-radius: var(--r-sm);
  border: 1.5px solid var(--ink);
  box-shadow: 6px 6px 0 var(--accent);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.terminal-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--dark-rule);
  background: var(--dark-2);
}
.terminal-tabs__group { display: flex; gap: 6px; }
.agent-tab {
  padding: 8px 12px 7px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
  color: var(--dark-muted);
  border-radius: 3px;
}
.agent-tab[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
.terminal-copy {
  padding: 8px 13px 7px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1;
  border-radius: 3px;
}
.terminal-copy.is-done { background: var(--ok); }
.terminal-code {
  margin: 0;
  padding: 24px 22px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  overflow-x: auto;
  flex: 1;
}
.terminal-note {
  margin: 0;
  padding: 16px 22px;
  border-top: 1px solid var(--dark-rule);
  font-size: 13.5px;
  color: var(--dark-muted);
  background: var(--dark-2);
}

.agent-files {
  display: flex;
  flex-direction: column;
  border-top: 1.5px solid var(--ink);
}
.file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 16px;
  text-decoration: none;
  background: var(--surface);
  border-bottom: 1px solid var(--rule-strong);
  border-left: 1.5px solid var(--ink);
  border-right: 1.5px solid var(--ink);
  transition: background 140ms ease;
}
.file-card:last-child { border-bottom: 1.5px solid var(--ink); }
.file-card:hover { background: var(--paper); }
.file-card strong {
  display: block;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
}
.file-card span {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.file-card__arrow {
  font-family: var(--mono);
  font-size: 16px;
  color: var(--accent);
}

.agents-strip {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.agent-badge {
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 12px 7px;
  line-height: 1;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 36px;
  border-top: 1.5px solid var(--ink);
}
.q {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}
.q summary {
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.q summary::-webkit-details-marker { display: none; }
.q summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ink-3);
}
.q[open] summary::after { content: '−'; color: var(--accent); }
.q p {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}

/* ============================================================
   CLOSING SPREAD & FOOTER
   ============================================================ */
.closing {
  background: var(--dark);
  color: var(--dark-ink);
  padding: clamp(64px, 8vw, 112px) 0;
}
.closing__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.closing h2 {
  margin: 0;
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.045em;
  max-width: 15ch;
}
.closing h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: #7ea0ff;
}
.closing__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: min(100%, 420px);
}
.closing .cli-pill {
  background: var(--dark-2);
  border-color: var(--dark-rule);
  box-shadow: none;
}
.closing .btn-primary {
  border-color: #ffffff;
  box-shadow: 4px 4px 0 #ffffff;
}

.foot {
  background: var(--paper);
  padding: 56px 0 36px;
}
.foot__cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--rule);
}
.foot__about {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  max-width: 36ch;
}
.foot__about strong { color: var(--ink); display: block; margin-bottom: 6px; font-size: 16px; }
.foot h3 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot ul a { text-decoration: none; font-size: 14px; color: var(--ink-2); }
.foot ul a:hover { color: var(--ink); text-decoration: underline; }

.foot__note {
  margin: 22px 0 36px;
  font-size: 13px;
  color: var(--ink-3);
}
.foot__note a { color: var(--ink-2); }

.wordmark {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  overflow: hidden;
}
.wordmark__word {
  display: block;
  line-height: 0.95;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--ink);
}
.wordmark__cap {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

/* ============================================================
   QUICK PEEK MODAL & TOAST
   ============================================================ */
.peek-modal {
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: var(--r-md);
  width: min(94vw, 1340px);
  height: min(90vh, 880px);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.5);
}
.peek-modal::backdrop { background: rgba(14, 16, 20, 0.72); backdrop-filter: blur(4px); }
.peek-modal__shell { display: flex; flex-direction: column; height: 100%; }
.peek-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  background: var(--surface);
  border-bottom: 1.5px solid var(--ink);
  flex-wrap: wrap;
}
.peek-modal__info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.peek-modal__info strong { font-size: 20px; }
.peek-modal__info span { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.peek-modal__swatches { display: flex; gap: 5px; }
.peek-modal__swatches button {
  width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(14, 16, 20, 0.25);
}
.peek-modal__controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.peek-modal__vp { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: var(--r-sm); padding: 2px; }
.peek-vp-btn { padding: 6px 10px 5px; font-family: var(--mono); font-size: 12px; line-height: 1; border-radius: 2px; }
.peek-vp-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.peek-btn {
  padding: 8px 12px 7px; border: 1px solid var(--rule-strong); border-radius: var(--r-sm);
  font-family: var(--mono); font-size: 12px; line-height: 1; text-decoration: none; background: var(--surface);
}
.peek-btn--primary { background: var(--accent); border-color: var(--accent); color: #ffffff; }
.peek-modal__nav { display: inline-flex; gap: 4px; }
.peek-icon-btn {
  width: 32px; height: 32px; border: 1px solid var(--rule-strong); border-radius: var(--r-sm);
  font-family: var(--mono); background: var(--surface);
}
.peek-modal__stage {
  flex: 1;
  background: var(--mat);
  display: flex;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
}
.peek-modal__stage iframe {
  width: 100%;
  height: 100%;
  border: 1px solid var(--rule-strong);
  background: #ffffff;
  transition: width 200ms ease;
}
.peek-modal__stage[data-vp="mobile"] iframe { width: 390px; }

.copy-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 120;
  padding: 11px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  border-radius: var(--r-sm);
  box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1120px) {
  .stage__cinema { grid-template-columns: 1fr; }
  .stage__peek { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards[data-view="wall"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ledger-grid { grid-template-columns: 1fr; }
  .ledger-col + .ledger-col { border-left: 0; border-top: 1.5px solid var(--ink); }
  .studio-box, .agents-grid { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .pill-nav__links, .brand__edition, .hero__meta-line { display: none; }
  .nav-toggle { display: inline-flex; }
  .stage__caption { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stage__caption-copy span { white-space: normal; }
  .cards, .cards[data-view="wall"] { grid-template-columns: 1fr; }
  .inspect-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inspect-metric:nth-child(3) { border-left: 0; border-top: 1px solid var(--rule); }
  .inspect-metric:nth-child(4) { border-top: 1px solid var(--rule); }
  .faq-grid { grid-template-columns: 1fr; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .hide-xs { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-ticker__track { animation: none; }
}
