/* ============================================================
   BERLIN-NEW-LIKE.CSS
   Page-specific styles for berlin/ — new visual language.
   Vars bridge to rrebellnexus.css globals — NO hardcoded hex
   for brand colours. Light theme fully covered below.
============================================================ */

/* === VAR BRIDGE: prototype → rrebellnexus.css globals ===== */
:root,
[data-theme="dark"] {
  --red:         var(--primary-accent);
  --rose:        var(--secondary-accent);
  --ember:       var(--tertiary-accent);
  --red-rgb:     var(--primary-accent-rgb);
  --red-glow:    var(--glow-color);
  --red-faint:   rgba(var(--primary-accent-rgb), 0.08);
  --red-border:  rgba(var(--primary-accent-rgb), 0.20);
  --border-red:  rgba(var(--primary-accent-rgb), 0.20);

  --text-1:  var(--text-primary);
  --text-2:  var(--text-secondary);
  --text-3:  var(--text-tertiary);
  --text-4:  #3A2828;

  --bg-0:      var(--bg-base);
  --bg-1:      var(--bg-surface);
  --bg-2:      var(--bg-elevated);
  --bg-3:      #130A0A;
  --bg-card:   var(--bg-elevated);
  --bg-card-h: #190D0D;
  --bg-overlay: rgba(5, 2, 2, 0.85);

  --border:      var(--border-color);
  --shadow-red:  0 0 48px var(--glow-color);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.7);

  /* utility constants */
  --btn-text:      #ffffff;
  --color-success: #2ecc71;
}

/* === LIGHT THEME EXTENSIONS (page-specific vars) =========== */
[data-theme="light"] {
  --red-faint:   rgba(var(--primary-accent-rgb), 0.05);
  --red-border:  rgba(var(--primary-accent-rgb), 0.15);
  --border-red:  rgba(var(--primary-accent-rgb), 0.15);

  --text-4:      #C0AEAE;

  --bg-3:        #FFECEC;
  --bg-card:     #FFFFFF;
  --bg-card-h:   #FFF0F0;
  --bg-overlay:  rgba(255, 250, 250, 0.9);

  --shadow-red:  0 0 48px rgba(var(--primary-accent-rgb), 0.10);
  --shadow-card: 0 8px 32px rgba(26, 8, 8, 0.10);
}

/* === CONTAINER ============================================= */
.bl2-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === HERO — Video ========================================== */
.bl2-hero {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 600px;
  max-height: 900px;
  overflow: hidden;
}

.bl2-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(0.8);
  transform: scale(1.02);
  animation: bl2ZoomOut 10s ease-out forwards;
}
@keyframes bl2ZoomOut { to { transform: scale(1); } }

.bl2-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg,
    rgba(var(--red-rgb), 0.1) 0%,
    transparent 40%,
    var(--bg-overlay) 80%,
    var(--bg-0) 100%
  );
}

.bl2-hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 24px 48px;
  max-width: 1100px;
  margin: 0 auto;
  animation: bl2SlideUp 1s 0.3s both;
}
@keyframes bl2SlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bl2-hero-kicker {
  font-family: var(--font-accent), sans-serif;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--red);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
}
.bl2-hero-kicker::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.bl2-hero-title {
  font-family: var(--font-heading), serif;
  font-size: clamp(48px, 12vw, 96px);
  line-height: 0.9;
  color: var(--text-1);
  margin-bottom: 16px;
}
.bl2-hero-title em {
  color: var(--red);
  font-style: italic;
}

.bl2-hero-desc {
  font-size: 14px;
  color: var(--text-2);
  max-width: 520px;
  margin-bottom: 24px;
}

.bl2-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* === BUTTONS =============================================== */
.bl2-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-accent), sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.2s;
  min-height: 48px;
  border: none;
  cursor: pointer;
}
.bl2-btn-primary {
  background: var(--red);
  color: var(--btn-text);
  box-shadow: 0 4px 24px rgba(var(--red-rgb), 0.3);
}
.bl2-btn-primary:hover {
  background: var(--ember);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(var(--red-rgb), 0.4);
}
.bl2-btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text-2);
  background: transparent;
}
.bl2-btn-outline:hover {
  border-color: var(--red);
  color: var(--text-1);
  background: var(--red-faint);
  transform: translateY(-2px);
}

/* === VIDEO GRID ============================================ */
.bl2-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin: 48px 0;
  border-radius: 8px;
  overflow: hidden;
}
@media (min-width: 640px) {
  .bl2-video-grid { grid-template-columns: repeat(2, 1fr); }
}

.bl2-video-card {
  aspect-ratio: 16/9;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.bl2-video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: filter 0.5s, transform 0.5s;
}
.bl2-video-card:hover video {
  filter: brightness(0.9);
  transform: scale(1.03);
}
.bl2-video-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-3);
  font-family: var(--font-accent), sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
}
.bl2-video-placeholder svg {
  width: 48px;
  height: 48px;
  fill: rgba(var(--red-rgb), 0.2);
}
.bl2-video-label {
  position: absolute;
  bottom: 12px;
  left: 16px;
  font-family: var(--font-accent), sans-serif;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--text-2);
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

/* === IMAGE GRID ============================================ */
.bl2-image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  margin: 32px 0;
  border-radius: 8px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .bl2-image-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .bl2-image-grid { grid-template-columns: repeat(5, 1fr); }
}

.bl2-image-item {
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
}
.bl2-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.9);
  transition: filter 0.5s, transform 0.5s;
  display: block;
}
.bl2-image-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.9) saturate(1.05);
}
.bl2-image-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 12px 12px;
  background: linear-gradient(to top, var(--bg-overlay), transparent);
  font-family: var(--font-accent), sans-serif;
  font-size: 8px;
  letter-spacing: 0.15em;
  color: var(--text-2);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s, transform 0.3s;
}
.bl2-image-item:hover .bl2-image-caption {
  opacity: 1;
  transform: translateY(0);
}

/* === SECTION =============================================== */
.bl2-section {
  margin: 64px 0;
}
.bl2-section-header {
  margin-bottom: 32px;
}
.bl2-section-eye {
  font-family: var(--font-accent), sans-serif;
  font-size: 10px;
  letter-spacing: 0.4em;
  color: var(--red);
  margin-bottom: 12px;
  text-transform: uppercase;
}
.bl2-section-title {
  font-family: var(--font-heading), serif;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.05;
  color: var(--text-1);
  margin-bottom: 12px;
}
.bl2-section-title em {
  color: var(--red);
  font-style: italic;
}
.bl2-section-rule {
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--red), transparent);
}

/* === DIVIDER =============================================== */
.bl2-divider {
  display: flex;
  align-items: center;
  margin: 48px 0;
}
.bl2-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.bl2-divider-text {
  padding: 0 20px;
  font-family: var(--font-accent), sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--text-4);
  white-space: nowrap;
  text-transform: uppercase;
}

/* === CARDS ================================================= */
.bl2-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  margin: 32px 0;
}
@media (min-width: 640px) {
  .bl2-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .bl2-card-grid { grid-template-columns: repeat(3, 1fr); }
}

.bl2-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px 24px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
  border-radius: 8px;
}
.bl2-card:hover {
  border-color: var(--red);
  background: var(--bg-card-h);
  transform: translateY(-2px);
}
.bl2-card-icon {
  font-size: 24px;
  margin-bottom: 16px;
  display: block;
}
.bl2-card h3 {
  font-family: var(--font-heading), serif;
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-1);
}
.bl2-card p {
  font-size: 14px;
  color: var(--text-3);
  line-height: 1.6;
}

/* Wide/callout card */
.bl2-wide-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  padding: 32px;
  border-radius: 0 0 8px 8px;
  margin: 32px 0;
}
.bl2-wide-card h3 {
  font-family: var(--font-heading), serif;
  font-size: 22px;
  margin-bottom: 16px;
  color: var(--text-1);
}
.bl2-wide-card p { color: var(--text-2); }

/* Escape card */
.bl2-escape-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}
.bl2-escape-card:hover { background: var(--bg-card-h); }
.bl2-escape-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.3s;
}
.bl2-escape-card:hover::after { background: var(--red); }
.bl2-escape-card .bl2-escape-num {
  font-family: var(--font-accent), sans-serif;
  font-size: 10px;
  color: var(--red);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
  display: block;
}
.bl2-escape-card h3 {
  font-family: var(--font-heading), serif;
  font-size: 18px;
  color: var(--text-1);
  margin-bottom: 8px;
}
.bl2-escape-card p { color: var(--text-2); font-size: 14px; }

/* Prompt card */
.bl2-prompt-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 28px 24px;
  border-radius: 8px;
}
.bl2-prompt-label {
  font-family: var(--font-accent), sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--red);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}
.bl2-prompt-card h4 {
  font-family: var(--font-heading), serif;
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--text-1);
}
.bl2-prompt-card > p { color: var(--text-3); font-size: 14px; margin-bottom: 12px; }
.bl2-prompt-text {
  border-left: 2px solid var(--red-border);
  padding-left: 16px;
  margin: 16px 0;
  font-style: italic;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.7;
}
.bl2-prompt-copy {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-3);
  padding: 8px 16px;
  font-family: var(--font-accent), sans-serif;
  font-size: 8px;
  letter-spacing: 0.2em;
  cursor: pointer;
  border-radius: 4px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-transform: uppercase;
}
.bl2-prompt-copy:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-faint);
}
.bl2-prompt-copy.copied {
  color: var(--color-success);
  border-color: var(--color-success);
}

/* === STATEMENT ============================================= */
.bl2-statement {
  border-left: 3px solid var(--red);
  background: var(--red-faint);
  padding: 24px;
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
}
.bl2-statement p { font-size: 15px; color: var(--text-2); }
.bl2-statement strong { color: var(--text-1); }
.bl2-statement-eye {
  font-family: var(--font-accent), sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* === TAGS ================================================== */
.bl2-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.bl2-tag {
  font-family: var(--font-accent), sans-serif;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  text-transform: uppercase;
}
.bl2-tag:hover {
  color: var(--red);
  border-color: var(--red-border);
  background: var(--red-faint);
}

/* === QUOTE ================================================= */
.bl2-quote {
  text-align: center;
  padding: 64px 0;
  position: relative;
}
.bl2-quote::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.bl2-quote blockquote {
  font-family: var(--font-heading), serif;
  font-style: italic;
  font-size: clamp(24px, 5vw, 40px);
  line-height: 1.2;
  color: var(--text-1);
  max-width: 700px;
  margin: 0 auto 16px;
  position: relative;
}
.bl2-quote blockquote em {
  color: var(--red);
  font-style: normal;
}
.bl2-quote cite {
  font-family: var(--font-accent), sans-serif;
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--rose);
  text-transform: uppercase;
}

/* === SOUNDCLOUD ============================================ */
.bl2-sc-wrapper {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--red);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  margin: 48px 0;
}
.bl2-sc-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.bl2-sc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: bl2Pulse 2s infinite;
  flex-shrink: 0;
}
.bl2-sc-label {
  font-family: var(--font-accent), sans-serif;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-3);
  text-transform: uppercase;
}
.bl2-sc-title {
  margin-left: auto;
  font-family: var(--font-heading), serif;
  color: var(--red);
}
@keyframes bl2Pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.bl2-sc-wrapper iframe {
  display: block;
}

/* === TWO-COL GRID ========================================== */
.bl2-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .bl2-two-col { grid-template-columns: 2fr 1fr; }
}

/* === BODY TEXT ============================================= */
.bl2-body-text {
  color: var(--text-2);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.75;
}
.bl2-body-text + .bl2-body-text { margin-top: 16px; }
.bl2-body-text strong { color: var(--text-1); }

/* scroll-margin for anchor targets */
.bl2-anchor {
  scroll-margin-top: var(--header-height, 64px);
}
