/* =========================================================
   SHARED PAGE STYLES — citylab/citydashboard/safexone/safexcross
   Mirrors the visual language of Weboldal.html.
========================================================= */
:root{
  --bg: #0B0B0B;
  --fg: #EFEAE0;
  --muted: #8C8479;
  --line: rgba(239,234,224,0.12);
  --accent: #14C4B9;
  --accent-ink: #0B0B0B;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --pad: clamp(40px, 6vw, 96px);

  --fs-display: clamp(56px, 11vw, 196px);
  --fs-h1: clamp(40px, 4.6vw, 76px);
  --fs-h2: clamp(36px, 4vw, 72px);
  --fs-h3: clamp(24px, 2.4vw, 36px);
  --fs-lead: clamp(22px, 1.8vw, 28px);
  --fs-body: 18px;
  --fs-body-sm: 15px;
  --fs-mono: 18px;
  --fs-mono-sm: 14px;
  --fs-mono-lg: 22px;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html, body{
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body{
  min-height: 100vh;
  zoom: 0.62;
  cursor: none;
}
@media (max-width: 1000px){ body{ zoom: 1; } }
@media (max-width: 800px){ body{ cursor: auto; } }

a{ color: inherit; text-decoration: none; }
a, button{ cursor: none; }
@media (max-width: 800px){ a, button{ cursor: pointer; } }
img, video{ max-width: 100%; display: block; }

/* =========================================================
   CUSTOM CURSOR
========================================================= */
.cursor{
  position: fixed; z-index: 9999;
  pointer-events: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--fg);
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width .25s cubic-bezier(.2,.8,.2,1),
              height .25s cubic-bezier(.2,.8,.2,1),
              background .2s ease,
              opacity .15s ease;
  top: 0; left: 0;
}
.cursor.large{ width: 60px; height: 60px; background: var(--accent); }
.cursor.hidden{ opacity: 0; }
@media (max-width: 800px){ .cursor{ display: none; } }

::selection{ background: var(--accent); color: var(--accent-ink); }

/* Accent-coloured inline text becomes serif italic */
span[style*="--accent"], em{
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

/* =========================================================
   TYPE
========================================================= */
.mono{
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow{
  display: inline-flex; gap: 14px; align-items: center;
  font-family: var(--mono);
  font-size: 22px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before{
  content: ''; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  flex-shrink: 0;
}
.h1{ font-size: var(--fs-h1); line-height: 0.95; letter-spacing: -0.025em; font-weight: 500; }
.h2{ font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -0.02em; font-weight: 500; }
.lead{
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--fg);
  max-width: 56ch;
  text-wrap: pretty;
}
.dim{ color: var(--muted); }
.hl-bg{
  background: var(--accent); color: var(--bg);
  padding: 0.05em 0.28em; line-height: 1;
  font-weight: 700; border-radius: 999px;
  display: inline-block;
}

/* =========================================================
   NAV (matches Weboldal.html)
========================================================= */
.nav{
  position: fixed; top: 16px; left: 16px; right: 16px;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
  background: rgba(11,11,11,0.85);
  border: 1px solid var(--line);
  border-radius: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
@media (max-width: 1000px){
  .nav{ top: 10px; left: 10px; right: 10px; padding: 10px 16px; border-radius: 22px; }
}
.brand{ display: flex; align-items: center; gap: 10px; }
.nav-links{
  display: flex; gap: 28px;
  font-family: var(--mono);
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-links a{
  position: relative; color: var(--fg);
  padding: 4px 0; opacity: 0.85;
  transition: opacity .2s ease;
}
.nav-links a:hover{ opacity: 1; }
.nav-links a span.num{
  font-size: 11px; vertical-align: super;
  margin-right: 6px; color: var(--muted);
}
.nav-right{ display: flex; align-items: center; gap: 18px; }
.lang-toggle{
  display: inline-flex;
  font-family: var(--mono); font-size: 18px;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle a{
  padding: 6px 12px;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.lang-toggle a.active{ background: var(--fg); color: var(--bg); }
@media (max-width: 1000px){ .nav-links{ display: none; } }

/* =========================================================
   PAGE WRAPPER
========================================================= */
.page{
  padding-top: clamp(120px, 12vh, 160px); /* clears the fixed nav */
}
.section{
  position: relative;
  padding: clamp(64px, 8vw, 140px) var(--pad);
  border-top: 1px solid var(--line);
}
.section:first-of-type{ border-top: none; }

/* =========================================================
   STYLE A — "CONTINUATION" HEADER (safexone / safexcross)
   Full-bleed video BACKGROUND, title overlaid.
   Body / meta / CTAs sit below, on solid bg.
========================================================= */
.page-hero--continuation{
  position: relative;
  padding: 0;
  border-top: none;
}
.ph-cont-stage{
  position: relative;
  min-height: clamp(560px, 78vh, 880px);
  overflow: hidden;
  background: #000;
  display: flex;
  flex-direction: column;
}
.ph-cont-bg{
  position: absolute; inset: 0;
  z-index: 0;
}
.ph-cont-bg video{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ph-cont-bg::after{
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(11,11,11,0.92) 0%, rgba(11,11,11,0.55) 45%, rgba(11,11,11,0.25) 100%),
    linear-gradient(to bottom, rgba(11,11,11,0.55) 0%, rgba(11,11,11,0) 30%);
  pointer-events: none;
}
.ph-cont-top{
  position: relative;
  z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(24px, 3vw, 40px) var(--pad);
  font-family: var(--mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}
.ph-cont-top a{ color: var(--fg); opacity: 0.75; transition: opacity .2s, color .2s; }
.ph-cont-top a:hover{ opacity: 1; color: var(--accent); }
.ph-cont-head{
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 0 var(--pad) clamp(48px, 6vw, 96px);
}
.ph-cont-head .ph-num{
  font-family: var(--mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.08em;
  color: var(--accent);
  display: block;
  margin-bottom: 20px;
}
.ph-cont-head .ph-logo{
  height: clamp(96px, 11vw, 160px);
  width: auto;
  margin-bottom: 32px;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.6));
}
.ph-cont-head .ph-logo[data-product="sxo-text"]{ height: clamp(54px, 6vw, 88px); }
.ph-cont-head .ph-logo[data-product="sxo-mark"]{ height: clamp(72px, 8vw, 117px); }
.ph-cont-head .ph-title{
  font-size: var(--fs-h1);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 18ch;
  color: var(--fg);
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.ph-cont-head .ph-title em{
  font-family: var(--serif); font-style: italic;
  font-weight: 700; color: var(--accent);
  letter-spacing: 0.08em;
}

.ph-cont-below{
  padding: clamp(48px, 6vw, 96px) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 96px);
  align-items: start;
}
.ph-cont-below .ph-body{
  font-size: var(--fs-lead);
  line-height: 1.45;
  max-width: 56ch;
  text-wrap: pretty;
  color: var(--fg);
}
.ph-cont-below .ph-body em{
  font-family: var(--serif); font-style: italic;
  font-weight: 700; color: var(--accent);
  letter-spacing: 0.08em;
}
.ph-cont-meta{
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.ph-cont-meta .pill{
  font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
}
.ph-cont-meta .pill .k{ color: var(--muted); margin-right: 8px; }
.ph-cont-ctas{
  display: flex; flex-wrap: wrap; gap: 16px;
}
.btn{
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 14px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 16px 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover{ background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.primary{ background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover{ filter: brightness(1.1); }
.btn .glyph{ font-size: 22px; line-height: 1; }
@media (max-width: 1100px){
  .ph-cont-below{ grid-template-columns: 1fr; gap: 32px; }
}

/* =========================================================
   STYLE B — "DATASHEET" HEADER (citylab / citydashboard)
   Full-bleed video BACKGROUND with title overlaid;
   datasheet column + body / CTAs sit below.
========================================================= */
.page-hero--datasheet{
  position: relative;
  padding: 0;
  border-top: none;
}
.ph-ds-stage{
  position: relative;
  min-height: clamp(620px, 86vh, 1000px);
  overflow: hidden;
  background: #000;
  display: flex;
  flex-direction: column;
}
.ph-ds-bg{
  position: absolute; inset: 0;
  z-index: 0;
}
.ph-ds-bg video{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.ph-ds-bg::after{
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(11,11,11,0.94) 0%, rgba(11,11,11,0.55) 45%, rgba(11,11,11,0.20) 100%),
    linear-gradient(to bottom, rgba(11,11,11,0.55) 0%, rgba(11,11,11,0) 30%);
  pointer-events: none;
}
.ph-ds-top{
  position: relative;
  z-index: 2;
  display: flex; justify-content: space-between; align-items: center;
  padding: clamp(24px, 3vw, 40px) var(--pad);
  font-family: var(--mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
}
.ph-ds-top a{ color: var(--fg); opacity: 0.75; transition: opacity .2s, color .2s; }
.ph-ds-top a:hover{ opacity: 1; color: var(--accent); }
.ph-ds-top .eyebrow{ font-size: var(--fs-mono-sm); color: var(--fg); }
.ph-ds-top .eyebrow::before{ width: 10px; height: 10px; }

.ph-ds-headblock{
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 0 var(--pad) clamp(56px, 7vw, 120px);
  max-width: 1400px;
}
.ph-ds-logo{
  height: clamp(80px, 9vw, 132px);
  width: auto;
  margin-bottom: clamp(24px, 3vw, 40px);
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.6));
}
.ph-ds-logo[data-product="citydashboard"]{ height: clamp(56px, 6.5vw, 96px); }
.ph-ds-logo[data-product="sxo-text"]{ height: clamp(54px, 6vw, 88px); }
.ph-ds-logo[data-product="sxc-text"]{ height: clamp(54px, 6vw, 88px); }
.ph-ds-headline{
  font-family: var(--sans);
  font-size: var(--fs-display);
  line-height: 0.94;
  letter-spacing: -0.03em;
  font-weight: 500;
  text-wrap: balance;
  margin-bottom: clamp(20px, 2.5vw, 36px);
  color: var(--fg);
  text-shadow: 0 2px 30px rgba(0,0,0,0.55);
}
.ph-ds-headline em{
  font-family: var(--serif); font-style: italic;
  font-weight: 400; color: var(--accent);
  letter-spacing: 0.02em;
}
.ph-ds-rule{
  height: 1px; background: var(--accent);
  width: clamp(140px, 14vw, 220px);
}
.ph-ds-headblock-body{
  margin-top: clamp(28px, 3vw, 44px);
  font-size: var(--fs-lead);
  line-height: 1.45;
  max-width: 60ch;
  text-wrap: pretty;
  color: var(--fg);
  text-shadow: 0 2px 24px rgba(0,0,0,0.55);
}
.ph-ds-headblock-body em{
  font-family: var(--serif); font-style: italic;
  font-weight: 700; color: var(--accent);
  letter-spacing: 0.08em;
}

.ph-ds-below{
  padding: clamp(48px, 6vw, 96px) var(--pad);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(40px, 5vw, 96px);
  align-items: stretch;
}
.ph-ds-side{
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ph-ds-side-head{
  flex-shrink: 0;
  padding-top: 24px;
}
.ph-ds-side-head .ds-row{
  /* keep the existing ds-row styling, but make sure the divider shows */
}
.ph-ds-side-scroll{
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
  min-height: 0;
}
.ph-ds-side-track{
  position: absolute;
  top: 0; left: 0; right: 0;
  padding-top: 0;
  will-change: transform;
}
.ph-ds-side-scroll::before,
.ph-ds-side-scroll::after{
  content: '';
  position: absolute; left: 0; right: 0;
  height: 60px;
  z-index: 2; pointer-events: none;
}
.ph-ds-side-scroll::before{
  top: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(11,11,11,0.6) 60%, transparent 100%);
}
.ph-ds-side-scroll::after{
  bottom: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(11,11,11,0.6) 60%, transparent 100%);
}
.ph-ds-side .ds-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.ph-ds-side .ds-k{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ph-ds-side .ds-v{
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--fg);
  line-height: 1.3;
}
.ph-ds-side .ds-v em{
  font-family: var(--serif); font-style: italic;
  font-weight: 700; color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: none;
}
.ph-ds-side .ds-items{
  list-style: none;
  margin-top: 12px;
  padding: 0;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.ph-ds-side .ds-items li{
  padding: 3px 0;
  position: relative;
  padding-left: 18px;
}
.ph-ds-side .ds-items li::before{
  content: '';
  position: absolute;
  left: 0; top: 0.85em;
  width: 8px; height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.ph-ds-main{ min-width: 0; display: flex; flex-direction: column; }
.ph-ds-main .ph-ds-body{ order: 1; }
.ph-ds-main .chapters{ order: 2; }
.ph-ds-main .ph-ds-ctas{
  order: 3;
  margin-top: clamp(32px, 4vw, 56px);
}
.ph-ds-body{
  font-size: var(--fs-lead);
  line-height: 1.45;
  max-width: 60ch;
  text-wrap: pretty;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.ph-ds-body em{
  font-family: var(--serif); font-style: italic;
  font-weight: 700; color: var(--accent);
  letter-spacing: 0.08em;
}
.ph-ds-ctas{
  display: flex; flex-wrap: wrap; gap: 16px;
}

/* =========================================================
   PRODUCT VIDEO STRIP — horizontal scrollable LAB-style strip
   with prev/next arrows (matches Weboldal.html LAB section)
========================================================= */
.product-strip{
  padding: 0 var(--pad) clamp(48px, 6vw, 96px);
}
.lab-grid{
  display: flex;
  direction: rtl;
  flex-direction: row;
  gap: var(--lab-gap, clamp(20px, 2.4vw, 40px));
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 8px;
}
.lab-grid::-webkit-scrollbar{ display: none; }
.lab-grid > .lab-card{
  flex: 0 0 calc((100% - 3 * var(--lab-gap, clamp(20px, 2.4vw, 40px))) / 4);
  scroll-snap-align: start;
  direction: ltr;
  min-width: 0;
}
@media (max-width: 1100px){
  .lab-grid > .lab-card{ flex-basis: calc((100% - 2 * var(--lab-gap, clamp(20px, 2.4vw, 40px))) / 3); }
}
@media (max-width: 700px){
  .lab-strip .lab-grid > .lab-card{ flex-basis: calc((100% - var(--lab-gap, clamp(20px, 2.4vw, 40px))) / 2); }
}
@media (max-width: 480px){
  .lab-strip .lab-grid > .lab-card{ flex-basis: 78vw; }
}
.lab-strip{
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
}
.lab-strip > .lab-grid{ min-width: 0; }
.lab-nav-side{
  background: transparent;
  border: 0;
  padding: 0;
  width: 56px;
  height: var(--lab-thumb-h, 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--mono);
  transition: color .25s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.lab-nav-side .arrow-glyph{
  font-family: var(--mono);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  display: inline-block;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.lab-nav-side:hover{ color: var(--accent); }
.lab-nav-side[data-dir="prev"]:hover .arrow-glyph{ transform: translateX(-8px) rotate(45deg); }
.lab-nav-side[data-dir="next"]:hover .arrow-glyph{ transform: translateX(8px) rotate(-45deg); }
.lab-nav-side[disabled]{ opacity: 0.2; pointer-events: none; }
@media (max-width: 800px){
  .lab-strip{ grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 8px; }
  .lab-nav-side{ width: 40px; }
}

/* =========================================================
   LAB CARDS (matches Weboldal.html LAB section)
========================================================= */
.lab-card{
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--fg);
  text-decoration: none;
  border-radius: 12px;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.lab-card:hover{ transform: translateY(-4px); }
.lab-card .lab-thumb{
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  position: relative;
  border: 1px solid var(--line);
}
.lab-card .lab-thumb::after{
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.6;
  pointer-events: none;
}
.lab-card .lab-thumb--video{
  background: linear-gradient(150deg, #1a1a1a 0%, #0b0b0b 100%);
}
.lab-card .lab-thumb img,
.lab-card .lab-thumb video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lab-card .lab-type{
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--fg);
  padding: 5px 9px;
  border-radius: 999px;
}
.lab-card .lab-type--accent{
  background: var(--accent);
  color: var(--accent-ink, #1A1100);
}
.lab-card .lab-meta{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px;
}
.lab-card .lab-source{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 6px;
}
.lab-card .lab-source .lab-source-author{ color: var(--fg); }
.lab-card .lab-source .lab-source-sep{ color: var(--muted); opacity: 0.5; }
.lab-card .lab-source .lab-source-venue{ font-style: italic; }
a.lab-source-author{
  color: var(--fg);
  text-decoration: none;
  position: relative;
  cursor: pointer;
}
a.lab-source-author::after{
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0.35;
  transition: opacity .25s ease;
}
a.lab-source-author:hover{ color: var(--accent); }
a.lab-source-author:hover::after{ opacity: 1; }
.lab-card .lab-title{
  font-size: clamp(18px, 1.5vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
  text-wrap: pretty;
}
.lab-card .lab-date{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.lab-card[data-video]{ cursor: pointer; }

/* =========================================================
   LAB VIDEO MODAL (lightbox)
========================================================= */
.lab-modal{
  position: fixed;
  inset: 0;
  z-index: 1000;
  font-family: var(--sans);
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 60px);
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.lab-modal.is-open{ opacity: 1; pointer-events: auto; }
.lab-modal-stage{
  position: relative;
  width: min(1100px, 90vw);
  max-height: 88vh;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06) inset;
  transform: scale(0.96);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.lab-modal.is-open .lab-modal-stage{ transform: scale(1); }
.lab-modal-stage video{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}
/* Remove the native fullscreen button cross-browser (WebKit/Blink). controlslist=nofullscreen covers Chrome/Edge; this also covers Safari. */
.lab-modal-stage video::-webkit-media-controls-fullscreen-button{ display: none !important; }
.lab-modal-meta{
  position: absolute;
  left: 0; right: 0; top: 0; bottom: auto;
  padding: 22px 22px 30px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(180deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0) 100%);
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}
.lab-modal-stage:hover .lab-modal-meta,
.lab-modal-stage:focus-within .lab-modal-meta{ opacity: 1; }
.lab-modal-meta .lm-title{
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 1.2;
}
.lab-modal-meta .lm-sub{
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.lab-modal-close{
  position: absolute;
  top: calc(50% - min(1100px, 90vw) * 9 / 16 / 2 - 56px);
  right: max(20px, calc(50% - min(1100px, 90vw) / 2));
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 18px; line-height: 1;
  transition: background .2s ease, transform .2s ease, color .2s ease;
  z-index: 2;
}
.lab-modal-close:hover{
  background: var(--accent);
  color: var(--accent-ink, #1A1100);
  transform: rotate(90deg);
}
@media (max-width: 800px){
  .lab-modal-stage{ width: 100%; }
  .lab-modal-close{ top: 14px; right: 14px; }
}
.lab-modal-fs{
  position: absolute;
  top: 14px; right: 14px;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 3;
  padding: 0;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.lab-modal-fs:hover{
  background: var(--accent);
  color: var(--accent-ink, #1A1100);
  transform: scale(1.06);
}
.lab-modal-fs svg{ width: 18px; height: 18px; display: block; }
.lab-modal-stage:fullscreen,
.lab-modal-stage.is-faux-fs{
  width: 100vw; height: 100vh;
  max-height: none;
  aspect-ratio: auto;
  border-radius: 0;
}
.lab-modal-stage:fullscreen video,
.lab-modal-stage.is-faux-fs video{ object-fit: contain; }

@media (max-width: 1100px){
  .ph-ds-below{ grid-template-columns: 1fr; }
  .ph-ds-side{ overflow: visible; height: auto; display: block; }
  /* The infinite-scroll module column is desktop decoration; stacked on
     mobile its cloned copies expand to thousands of px ("only the left
     strip runs"). Hide the scroller — the modules are listed in the
     chapters below. The fixed type/model head stays. */
  .ph-ds-side-scroll{ display: none; }
}

/* Hero-bg page wrapper: kill the top padding since the stage sits behind
   the nav, and let the nav float transparently over the video. */
.page--hero-bg{ padding-top: 0; }
.page--hero-bg ~ .nav,
body:has(.page--hero-bg) .nav{
  background: transparent;
  border-color: rgba(255,255,255,0.18);
}

/* =========================================================
   GENERIC CONTENT (placeholder until full pages exist)
========================================================= */
.placeholder{
  border: 1px dashed var(--line);
  border-radius: 16px;
  padding: clamp(40px, 5vw, 80px);
  text-align: center;
  color: var(--muted);
  font-family: var(--mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.placeholder strong{
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  color: var(--fg);
  letter-spacing: -0.01em;
  text-transform: none;
  margin-bottom: 12px;
}

/* =========================================================
   CHAPTERS ACCORDION (citylab.html)
   Pill-style toggle (matches .btn.primary), expandable panel.
   Lives inside .ph-ds-main, beneath the CTAs.
========================================================= */
.chapters{
  margin-top: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}.chapters-head{
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px; flex-wrap: wrap;
  padding: 18px 0;
  min-height: 85px;
  margin-bottom: clamp(20px, 2.4vw, 36px);
  border-bottom: 1px solid var(--line);
}
.chapters-head .eyebrow{ font-size: clamp(20px, 1.6vw, 26px); }
.chapters-head .chapters-meta{
  font-family: var(--mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.chapters-actions{
  display: flex; gap: 12px;
  margin-bottom: clamp(8px, 1vw, 16px);
  flex-wrap: wrap;
}
.chapters-actions button{
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: color .2s, border-color .2s;
}
.chapters-actions button:hover{ color: var(--accent); border-color: var(--accent); }

.ch-item{
  display: flex; flex-direction: column;
  gap: 0;
}
.ch-toggle{
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 24px 32px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  transition: filter .2s, background .25s, color .25s, border-color .25s;
}
.ch-toggle:hover{ filter: brightness(1.08); }
.ch-toggle .ch-num{
  font-size: 14px;
  letter-spacing: 0.18em;
  opacity: 0.7;
}
.ch-toggle .ch-title{
  font-family: var(--sans);
  font-size: clamp(22px, 1.9vw, 30px);
  letter-spacing: -0.01em;
  text-transform: none;
  font-weight: 500;
  line-height: 1.22;
  text-wrap: pretty;
}
.ch-toggle .ch-glyph{
  font-size: 24px; line-height: 1;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.ch-item[data-open="true"] .ch-toggle .ch-glyph{
  transform: rotate(180deg);
}
.ch-item[data-open="true"] .ch-toggle{
  background: transparent;
  color: var(--accent);
}

.ch-panel{
  overflow: hidden;
  transition: grid-template-rows .4s cubic-bezier(.2,.8,.2,1);
  display: grid;
  grid-template-rows: 1fr;
}
.ch-panel[hidden]{
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
}
.ch-panel-inner{
  min-height: 0;
  padding: clamp(20px, 2.4vw, 36px) clamp(20px, 3vw, 56px) clamp(28px, 3.4vw, 56px);
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--fg);
  max-width: 68ch;
}
.ch-panel-inner h3{
  font-family: var(--sans);
  font-size: clamp(28px, 2.3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--accent);
  margin: 36px 0 14px;
  line-height: 1.18;
}
.ch-panel-inner h3:first-child{ margin-top: 0; }
.ch-panel-inner p{ margin: 0 0 14px; text-wrap: pretty; }
.ch-panel-inner p:last-child{ margin-bottom: 0; }
.ch-panel-inner ul{
  margin: 0 0 18px;
  padding-left: 0;
  list-style: none;
}
.ch-panel-inner ul li{
  position: relative;
  padding: 4px 0 4px 22px;
  line-height: 1.55;
}
.ch-panel-inner ul li::before{
  content: '';
  position: absolute;
  left: 0; top: 0.85em;
  width: 12px; height: 1px;
  background: var(--accent);
}
.ch-panel-inner table{
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0 26px;
  font-size: clamp(15px, 1.1vw, 18px);
  font-family: var(--mono);
}
.ch-panel-inner th{
  text-align: left;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(13px, 1vw, 15px);
  color: var(--accent);
  padding: 14px 16px;
  border-bottom: 1px solid var(--accent);
  vertical-align: top;
}
.ch-panel-inner td{
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--fg);
  line-height: 1.45;
}
.ch-panel-inner tr:last-child td{ border-bottom: none; }

/* Stacked datasheet range: keep wide chapter tables inside the viewport by
   letting the table scroll horizontally within its own box (content kept). */
@media (max-width: 1100px){
  .ch-panel-inner{ min-width: 0; }
  .ch-panel-inner table{
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 700px){
  .ch-toggle{ padding: 16px 18px; gap: 14px; }
  .ch-panel-inner{ padding: 18px 20px 28px; }
  .ch-panel-inner table{ font-size: 12px; }
  .ch-panel-inner th, .ch-panel-inner td{ padding: 8px 10px; }
}

/* =========================================================
   FOOTER (matches Weboldal.html)
========================================================= */
.footer{
  border-top: 1px solid var(--line);
  padding: 32px var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  font-family: var(--mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.04em;
  color: var(--muted);
}
.footer .center{ text-align: center; }
.footer .right{ text-align: right; }
.footer-time{ display: inline-flex; gap: 8px; align-items: center; }
.footer-time .live{
  width: 6px; height: 6px; border-radius: 50%;
  background: #6BCB77;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse{
  0%, 100%{ opacity: 1; transform: scale(1); }
  50%{ opacity: 0.4; transform: scale(0.7); }
}
@media (max-width: 800px){
  .footer{ grid-template-columns: 1fr; }
  .footer .center, .footer .right{ text-align: left; }
}

/* =========================================================
   Chapter rail — sticky right-edge nav for the chapters
   (citylab / citydashboard / safexone / safexcross)
========================================================= */
.ch-rail{
  position: fixed;
  top: 50%;
  right: clamp(16px, 2vw, 32px);
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
.ch-rail.is-visible{
  opacity: 1;
  pointer-events: auto;
}
.ch-rail-item{
  display: flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--mono);
  text-align: right;
}
.ch-rail-label{
  display: block;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0;
  transition: max-width .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
}
.ch-rail-bar{
  display: block;
  width: 24px;
  height: 2px;
  background: var(--muted);
  opacity: 0.55;
  transition: width .3s cubic-bezier(.2,.8,.2,1), background .25s, opacity .25s;
  flex: 0 0 auto;
}
.ch-rail-num{
  font-size: 18px;
  letter-spacing: 0.14em;
  opacity: 0.7;
  transition: opacity .25s, color .25s;
  min-width: 58px;
}
.ch-rail-item:hover .ch-rail-num,
.ch-rail-item.is-active .ch-rail-num{
  opacity: 1;
  color: var(--accent);
}
.ch-rail-item:hover .ch-rail-bar,
.ch-rail-item.is-active .ch-rail-bar{
  width: 52px;
  background: var(--accent);
  opacity: 1;
}
.ch-rail-item:hover .ch-rail-label,
.ch-rail-item.is-active .ch-rail-label{
  max-width: 260px;
  opacity: 1;
}
/* Per-chapter sub-rail (h3 subsection nav within an opened chapter) */
.ch-rail-row{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.ch-rail-subs{
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-right: 18px;
  padding-top: 2px;
}
.ch-rail-row.is-expanded .ch-rail-subs{ display: flex; }
.ch-rail-sub{
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  padding: 2px 0;
  cursor: pointer;
  color: var(--muted);
  font-family: var(--mono);
  text-align: right;
}
.ch-rail-sub-label{
  display: block;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--sans);
  font-size: 17px;
  color: var(--ink);
  opacity: 0;
  transition: max-width .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
}
.ch-rail-sub-bar{
  display: block;
  width: 16px;
  height: 1px;
  background: var(--muted);
  opacity: 0.45;
  transition: width .3s cubic-bezier(.2,.8,.2,1), background .25s, opacity .25s;
  flex: 0 0 auto;
}
.ch-rail-sub:hover .ch-rail-sub-label,
.ch-rail-sub.is-active .ch-rail-sub-label{
  max-width: 220px;
  opacity: 1;
}
.ch-rail-sub:hover .ch-rail-sub-bar,
.ch-rail-sub.is-active .ch-rail-sub-bar{
  width: 36px;
  background: var(--accent);
  opacity: 1;
}
@media (max-width: 1100px){
  .ch-rail{ display: none; }
}

/* =========================================================
   Hide native cursor everywhere on desktop (custom cursor on)
   This must be last so it wins over earlier `cursor: pointer`.
========================================================= */
@media (min-width: 801px){
  *, *::before, *::after{
    cursor: none !important;
  }
}
