/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4
 * Press kit · dark document + fixed brand stage
 */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/ibm-plex-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  --paper: #000000;
  --paper-2: #0a0c0a;
  --ink: #f2f5f2;
  --muted: rgba(242, 245, 242, 0.62);
  --neon: #39ff14;
  --cyan: #00d4ff;
  --focus: #c44dff;
  --line: rgba(242, 245, 242, 0.16);
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

::selection { background: rgba(57, 255, 20, 0.35); color: #fff; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #9eecff; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* —— Top bar —— */
.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  background: rgba(0, 0, 0, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.bar-start {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.home {
  color: var(--neon);
  text-transform: uppercase;
  font-weight: 600;
  flex: 0 0 auto;
}

.home:hover { color: #b8ffb8; }

.bar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  color: var(--muted);
}

.bar-links a { color: var(--muted); }
.bar-links a:hover,
.bar-links a[aria-current="page"] { color: var(--ink); }

.langs { color: var(--muted); flex: 0 0 auto; }
.langs button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.langs button[aria-pressed="true"] { color: var(--neon); }
.langs .sep { margin: 0 0.35rem; color: rgba(242, 245, 242, 0.28); }

/* —— Atmosphere (no frame; lives in the page) —— */
.press-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.press-content {
  position: relative;
  z-index: 2;
  width: min(46rem, calc(100% - 2.5rem));
  margin: 0 auto 0 clamp(1.15rem, 4vw, 3rem);
  padding: 2rem 0 3.5rem;
  box-sizing: border-box;
}

.kicker {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.page-h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.7rem, 3.8vw, 2.35rem);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.02em;
  line-height: 1.15;
  overflow-wrap: anywhere;
  min-width: 0;
}

.meta {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 42ch;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  margin: 0 0 1.35rem;
}

.btn-dl {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1rem;
  border: 1px solid color-mix(in srgb, var(--neon) 55%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--neon) 14%, transparent);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  white-space: nowrap;
}

.btn-dl:hover {
  color: #fff;
  border-color: var(--neon);
  background: color-mix(in srgb, var(--neon) 22%, transparent);
}

.btn-dl.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.btn-dl.secondary:hover {
  color: var(--ink);
  border-color: var(--cyan);
}

/* TOC — flat, no heavy box */
.toc {
  margin: 0 0 1.75rem;
  padding: 0;
  border: 0;
}

.toc h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.toc li { margin: 0; }
.toc a { color: var(--ink); }
.toc a:hover { color: var(--cyan); }

.policy h2 {
  margin: 2rem 0 0.7rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.01em;
}

.policy h2:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.policy h3 {
  margin: 1.1rem 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 500;
  font-style: normal;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.policy p,
.policy li {
  color: color-mix(in srgb, var(--ink) 88%, transparent);
  font-size: 1.02rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.policy p { margin: 0 0 0.9rem; }

.policy ul {
  margin: 0 0 0.95rem;
  padding-left: 1.2rem;
}

.policy li { margin: 0.35rem 0; }

.policy code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--neon);
}

.desc-fold {
  margin: 2rem 0 0;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}

.desc-fold > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 1.2rem;
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.01em;
  color: var(--ink);
  user-select: none;
}

.desc-fold > summary::-webkit-details-marker { display: none; }

.desc-fold > summary::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1;
}

.desc-fold[open] > summary::after { content: "−"; }

.desc-fold > summary:hover { color: var(--cyan); }
.desc-fold > summary:hover::after { color: var(--cyan); }

.desc-fold > :not(summary) {
  margin-top: 0.7rem;
}

.fact-grid {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr);
  gap: 0.45rem 1rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.98rem;
}

.fact-grid dt {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fact-grid dd {
  margin: 0;
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.fact-grid a { word-break: break-all; }

.copy-block {
  position: relative;
  margin: 0 0 1.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 212, 255, 0.03);
}

.copy-block p:last-child { margin-bottom: 0; }

.note-soft {
  color: var(--muted);
  font-size: 0.95rem;
}

.video-wrap,
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 960px;
  margin: 0 0 0.85rem;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.media-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0a0c0a;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.media-card:hover {
  border-color: color-mix(in srgb, var(--neon) 40%, var(--line));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.shot-zoom {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.shot-zoom:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.media-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  vertical-align: middle;
  transform: scale(1);
  transition: transform 280ms var(--ease);
}

.media-card:hover img { transform: scale(1.03); }

.media-card.portrait {
  max-width: 22rem;
}

.media-card.portrait img {
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #060709;
}

.media-grid.portrait-row {
  grid-template-columns: repeat(auto-fill, minmax(11rem, 14rem));
  justify-content: start;
}

.media-card figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.65rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.55);
  border-top: 1px solid var(--line);
}

.media-card a { color: var(--cyan); }
.media-card a:hover { color: #9eecff; }

.logo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0 0 1.25rem;
  align-items: flex-end;
}

.logo-card {
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  min-width: 9rem;
  background: rgba(255, 255, 255, 0.03);
}

.logo-card img {
  display: block;
  width: 96px;
  height: 96px;
  margin: 0 auto 0.65rem;
}

.logo-card.dark-plate { background: #060709; }
.logo-card.light-plate { background: #f2f4f2; color: #121612; }
.logo-card.light-plate figcaption,
.logo-card.light-plate a { color: #1a4a55; }

.logo-card.wide img {
  width: min(100%, 280px);
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.logo-card figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.logo-card a { color: var(--cyan); }

.foot-nav {
  margin-top: 2.4rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.press-nebula {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(42% 48% at 78% 42%, rgba(0, 212, 255, 0.28), transparent 62%),
    radial-gradient(32% 40% at 88% 68%, rgba(57, 255, 20, 0.16), transparent 58%),
    radial-gradient(28% 34% at 70% 22%, rgba(255, 180, 84, 0.1), transparent 55%),
    radial-gradient(22% 28% at 92% 18%, rgba(196, 77, 255, 0.1), transparent 50%);
}

.press-field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.press-atmosphere .atom {
  --atom: min(36vw, 300px);
  width: var(--atom);
  aspect-ratio: 1;
  position: absolute;
  z-index: 2;
  top: 50%;
  right: clamp(1rem, 8vw, 6rem);
  transform: translateY(-50%);
}

.press-atmosphere .system { position: absolute; inset: 0; }

.press-atmosphere .orbit {
  position: absolute;
  width: 76%;
  height: 37%;
  left: 12%;
  top: 31.5%;
  border-radius: 50%;
  filter: drop-shadow(0 0 4px #05bfe5aa);
}

.press-atmosphere .orbit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--orbit-color);
  -webkit-mask: radial-gradient(ellipse closest-side, transparent calc(100% - 4px), #000 100%);
  mask: radial-gradient(ellipse closest-side, transparent calc(100% - 4px), #000 100%);
}

.press-atmosphere .orbit.a { transform: rotate(10deg); --orbit-color: #0cd7f5; }
.press-atmosphere .orbit.b { transform: rotate(60deg); --orbit-color: #0aa1b8; }
.press-atmosphere .orbit.c { transform: rotate(-55deg); --orbit-color: #035263; }

.press-atmosphere .nucleus {
  position: absolute;
  width: 11%;
  aspect-ratio: 1;
  left: 44.5%;
  top: 44.5%;
  border-radius: 50%;
  background: #03c7f4;
  border: 1px solid #40e9ff;
  box-shadow:
    0 0 0 1px #12dfff33,
    0 0 30px 13px #00d9fc6e,
    0 0 68px 35px #00dcff2b;
}

.press-atmosphere .nucleus::after {
  content: "";
  position: absolute;
  width: 37%;
  aspect-ratio: 1;
  left: 31.5%;
  top: 31.5%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px #e2fcffaf, 0 0 12px white;
}

.press-atmosphere .electron-track {
  position: absolute;
  width: 76%;
  height: 37%;
  left: 12%;
  top: 31.5%;
  border-radius: 50%;
  transform: rotate(var(--angle));
}

.press-atmosphere .electron {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.9%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: white;
  border: 3px solid #54eaff;
  box-shadow: 0 0 0 4px #2ddcff55, 0 0 12px 4px #00dfff;
  offset-path: ellipse(50% 50% at 50% 50%);
  offset-rotate: 0deg;
  animation: press-atom-travel var(--duration) linear infinite;
  animation-delay: var(--delay);
}

@keyframes press-atom-travel {
  from { offset-distance: 0%; }
  to { offset-distance: 100%; }
}

/* Lightbox (reuse lab pattern names) */
.shot-lightbox {
  max-width: min(96vw, 1280px);
  max-height: 92vh;
  margin: auto;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--neon) 40%, var(--line));
  border-radius: var(--radius);
  background: rgba(5, 8, 7, 0.96);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.shot-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.shot-lightbox img {
  display: block;
  max-width: 96vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  margin: 0 auto;
}

.shot-lightbox-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(5, 8, 7, 0.85);
  color: #f2f5f2;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.shot-lightbox-close:hover {
  border-color: #39ff14;
  color: #39ff14;
}

.shot-lightbox[open] { position: fixed; }

.lang-only { display: none; }
html[data-lang="en"] .lang-en { display: block; }
html[data-lang="es"] .lang-es { display: block; }

@media (max-width: 960px) {
  .press-content {
    width: min(46rem, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.6rem 0 3rem;
  }

  .press-atmosphere .atom {
    --atom: min(48vw, 180px);
    right: 0.5rem;
    top: auto;
    bottom: 1.25rem;
    transform: none;
    opacity: 0.55;
  }
}

@media (max-width: 720px) {
  .bar {
    flex-wrap: wrap;
    row-gap: 0.55rem;
  }
  .bar-links { width: 100%; order: 3; }
  .media-grid { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; gap: 0.15rem 0; }
  .fact-grid dt { margin-top: 0.55rem; }
  .fact-grid dt:first-child { margin-top: 0; }
  .btn-dl { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .press-atmosphere .electron { animation: none; offset-distance: 12%; }
  .media-card,
  .media-card img { transition: none; }
  .media-card:hover { transform: none; }
  .media-card:hover img { transform: none; }
}
