*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #050608;
  --panel: rgba(6, 9, 13, 0.88);
  --panel-soft: rgba(8, 12, 18, 0.72);
  --line: rgba(255, 106, 26, 0.48);
  --orange: #ff6a1a;
  --orange-hot: #ff9a2e;
  --cyan: #22e9ff;
  --green: #38ff56;
  --magenta: #ff2ed1;
  --text: #ffd9bd;
  --muted: rgba(255, 217, 189, 0.66);
}
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0;
  background:
    linear-gradient(90deg, rgba(5, 6, 8, 0.98), rgba(5, 6, 8, 0.82)),
    repeating-linear-gradient(135deg, rgba(255, 106, 26, 0.09) 0 1px, transparent 1px 22px),
    radial-gradient(circle at 78% 16%, rgba(34, 233, 255, 0.16), transparent 32%),
    radial-gradient(circle at 14% 82%, rgba(255, 46, 209, 0.12), transparent 28%),
    #050608;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(255, 106, 26, 0.4);
  box-shadow: inset 0 0 34px rgba(255, 106, 26, 0.18);
}
.scanline {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.032) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
}
a { color: inherit; text-decoration: none; }
.page {
  position: relative;
  z-index: 4;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 48px;
  display: grid;
  gap: 18px;
}
.topbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: stretch;
  border: 1px solid rgba(255, 106, 26, 0.68);
  background: linear-gradient(180deg, rgba(7, 8, 11, 0.94), rgba(7, 8, 11, 0.72));
  box-shadow: 0 0 26px rgba(255, 106, 26, 0.22), inset 0 0 30px rgba(255, 106, 26, 0.08);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.brand {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid var(--orange);
  border-radius: 6px;
  background: var(--orange);
  color: var(--bg);
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 0 16px rgba(255, 106, 26, 0.8);
}
.brand strong {
  display: block;
  color: var(--orange);
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(255, 106, 26, 0.76);
}
.eyebrow, .kicker, .media-label, .card-meta, .meta-grid span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.navlinks {
  display: flex;
  align-items: stretch;
  border-left: 1px solid rgba(255, 106, 26, 0.28);
}
.navlinks a {
  display: grid;
  place-items: center;
  padding: 0 18px;
  color: var(--cyan);
  border-right: 1px solid rgba(255, 106, 26, 0.28);
  font-weight: 900;
}
.navlinks a:hover, .index-card:hover strong { color: var(--orange-hot); }
.resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
}
.resource-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(34, 233, 255, 0.44);
  border-radius: 6px;
  color: var(--cyan);
  background: rgba(0, 26, 34, 0.32);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.resource-links a:hover {
  color: var(--bg);
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(34, 233, 255, 0.48);
}
.resource-links.compact {
  padding: 8px 12px 0;
  gap: 8px;
}
.resource-links.compact a {
  min-height: 30px;
  padding: 6px 8px;
  font-size: 11px;
}
.article-hero, .index-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 18px;
  align-items: stretch;
}
.index-hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  padding: 22px;
  border: 1px solid rgba(255, 106, 26, 0.48);
  background: rgba(5, 8, 12, 0.70);
}
.hero-copy {
  padding: 24px;
  border: 1px solid rgba(255, 106, 26, 0.48);
  background: rgba(5, 8, 12, 0.72);
  box-shadow: inset 0 0 34px rgba(255, 106, 26, 0.07);
}
h1 {
  margin: 12px 0 16px;
  color: var(--orange);
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.96;
  text-transform: uppercase;
  overflow-wrap: break-word;
  text-shadow: 0 0 14px rgba(255, 106, 26, 1), 0 0 42px rgba(255, 106, 26, 0.44);
}
.article-hero h1 { font-size: clamp(30px, 4.2vw, 60px); }
.index-hero h1 {
  max-width: 760px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.02;
  overflow-wrap: normal;
}
.speaker-line {
  color: var(--cyan);
  font-size: 18px;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(34, 233, 255, 0.58);
}
.hero-copy p, .index-hero p {
  margin: 18px 0 0;
  color: rgba(255, 217, 189, 0.86);
  font-size: 16px;
  line-height: 1.72;
}
.hero-figure, .figure-card, .index-card {
  position: relative;
  margin: 0;
  min-width: 0;
  border: 1px solid rgba(255, 106, 26, 0.35);
  background: rgba(7, 8, 11, 0.78);
  box-shadow: inset 0 0 30px rgba(255, 106, 26, 0.07);
}
.media-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
}
.hero-figure img, .figure-card img, .index-card img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-figure.video .media-zoom { height: 100%; }
.hero-figure.video img {
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}
.hero-figure.photo img {
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}
.hero-figure.slide img {
  height: auto;
  min-height: 0;
  object-fit: contain;
  background: #050608;
}
.figure-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.figure-card.video img,
.figure-card.photo img {
  max-height: 720px;
  aspect-ratio: auto;
  object-fit: contain;
  background: #050608;
}
.figure-card.slide img {
  object-fit: contain;
  background: #050608;
}
.media-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 8px;
  color: var(--bg);
  background: var(--green);
  font-weight: 900;
  box-shadow: 0 0 14px rgba(56, 255, 86, 0.54);
}
figcaption {
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.media-section {
  padding: 16px;
  border: 1px solid rgba(255, 106, 26, 0.42);
  background: rgba(5, 8, 12, 0.62);
}
.materials-section {
  padding: 16px;
  border: 1px solid rgba(34, 233, 255, 0.42);
  background: rgba(0, 16, 22, 0.56);
}
.video-launch {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  margin-top: 14px;
  border: 1px solid rgba(255, 106, 26, 0.35);
  color: var(--cyan);
  background: #050608;
  cursor: pointer;
}
.video-launch img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: cover;
  opacity: 0.86;
}
.video-launch:hover img { opacity: 1; }
.play-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(34, 233, 255, 0.68);
  border-radius: 6px;
  color: var(--bg);
  background: var(--cyan);
  font-weight: 950;
  text-transform: uppercase;
  box-shadow: 0 0 18px rgba(34, 233, 255, 0.62);
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  color: var(--cyan);
  border-bottom: 1px solid rgba(255, 106, 26, 0.30);
}
.section-head span {
  color: var(--orange-hot);
  font-weight: 900;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 14px;
}
.content {
  padding: clamp(18px, 3vw, 36px);
  border: 1px solid rgba(255, 106, 26, 0.50);
  background: linear-gradient(180deg, rgba(7, 8, 11, 0.90), rgba(7, 8, 11, 0.74));
  box-shadow: inset 0 0 34px rgba(255, 106, 26, 0.07);
}
.content p, .content li {
  max-width: 920px;
  color: rgba(255, 217, 189, 0.90);
  font-size: 17px;
  line-height: 1.76;
}
.content p { margin: 0 0 18px; }
.content h2 {
  margin: 40px 0 16px;
  max-width: 980px;
  color: var(--cyan);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(34, 233, 255, 0.54);
}
.content h3 {
  margin: 28px 0 12px;
  color: var(--orange-hot);
  font-size: 22px;
}
.content ul {
  margin: 0 0 24px 20px;
  padding: 0;
}
.content li { margin: 8px 0; }
.content code {
  color: var(--green);
  background: rgba(56, 255, 86, 0.08);
  border: 1px solid rgba(56, 255, 86, 0.18);
  padding: 1px 4px;
}
.content pre {
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(56, 255, 86, 0.28);
  background: rgba(0, 12, 5, 0.66);
}
.content a { color: var(--cyan); text-decoration: underline; }
.modal-open { overflow: hidden; }
.modal-shell[hidden] { display: none; }
.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 22px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.88);
  backdrop-filter: blur(6px);
}
.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: calc(100vh - 44px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(255, 106, 26, 0.72);
  background: rgba(5, 8, 12, 0.96);
  box-shadow: 0 0 34px rgba(255, 106, 26, 0.24), inset 0 0 30px rgba(255, 106, 26, 0.08);
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 106, 26, 0.32);
}
.modal-title {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.modal-close {
  min-width: 42px;
  min-height: 38px;
  border: 1px solid rgba(255, 106, 26, 0.72);
  border-radius: 6px;
  color: var(--orange-hot);
  background: rgba(7, 8, 11, 0.7);
  font-size: 22px;
  font-weight: 950;
  cursor: pointer;
}
.modal-body {
  min-height: 0;
  padding: 14px;
  overflow: auto;
}
.modal-body img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 132px);
  margin: 0 auto;
}
.modal-body video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 132px);
  background: #000;
}
.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, auto));
  border-left: 1px solid rgba(255, 106, 26, 0.28);
}
.meta-grid div {
  padding: 16px 18px;
  border-right: 1px solid rgba(255, 106, 26, 0.28);
}
.meta-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--cyan);
  font-size: 22px;
  text-shadow: 0 0 11px rgba(34, 233, 255, 0.7);
}
.index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.index-card {
  display: grid;
  gap: 8px;
  padding-bottom: 14px;
  border-radius: 6px;
  overflow: hidden;
}
.card-image { display: block; }
.index-card img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #050608;
  border-bottom: 1px solid rgba(255, 106, 26, 0.28);
}
.card-num {
  margin: 4px 12px 0;
  color: var(--green);
  font-weight: 950;
}
.card-meta, .index-card strong, .index-card em { margin: 0 12px; }
.card-title { display: block; }
.index-card strong {
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.index-card em {
  color: var(--cyan);
  font-style: normal;
  font-size: 14px;
}
@media (max-width: 980px) {
  .topbar, .article-hero, .index-hero { grid-template-columns: 1fr; }
  .navlinks, .meta-grid { border-left: 0; border-top: 1px solid rgba(255, 106, 26, 0.28); }
  .media-grid, .index-grid { grid-template-columns: 1fr 1fr; }
  .hero-figure img { min-height: 260px; }
}
@media (max-width: 640px) {
  .page { width: min(100% - 18px, 1240px); padding-top: 10px; }
  .media-grid, .index-grid { grid-template-columns: 1fr; }
  .navlinks { flex-wrap: wrap; }
  .navlinks a { min-height: 44px; }
  .meta-grid { grid-template-columns: 1fr; }
  .brand strong { font-size: 22px; }
}
