/* CrownStore — Brand Story Split Section
 * Scroll entrance: root `data-cs-scroll-reveal` + `.reveal` on caption / copy — theme.css + components/js/animation.js */

/* ─── Section ─────────────────────────────────────────────────────────────── */
.tc-brand-story {
  width: 100%;
  line-height: 0;
}

.tc-brand-story-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 84vh;
  line-height: normal;
}

/* ─── Shared panel base ───────────────────────────────────────────────────── */
.tc-brand-story-panel {
  position: relative;
  overflow: hidden;
}

/* ─── Left panel image ────────────────────────────────────────────────────── */
.tc-brand-story-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.tc-brand-story-panel--left:hover .tc-brand-story-art {
  transform: scale(1.04);
}

/* ─── Builder placeholders ────────────────────────────────────────────────── */
.tc-brand-story-placeholder[hidden] {
  display: none !important;
}

.tc-brand-story-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: absolute;
  inset: 0;
  font-family: var(--theme-font-family);
  font-size: 13px;
  letter-spacing: 0.08em;
  z-index: 1;
}

.tc-brand-story-placeholder--image {
  background: var(--theme-cream);
  color: var(--theme-muted);
}

.tc-brand-story-placeholder--video {
  background: var(--theme-secondary);
  color: rgba(248, 244, 238, 0.35);
}

.tc-brand-story-placeholder-icon {
  font-size: 42px;
  opacity: 0.3;
  line-height: 1;
}

/* ─── Left caption box ────────────────────────────────────────────────────── */
.tc-brand-story-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--theme-bg);
  padding: 36px 52px 44px;
  z-index: 2;
  line-height: normal;
}

.tc-brand-story-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--theme-font-family);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--theme-text-secondary);
  margin-bottom: 14px;
}

.tc-brand-story-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--theme-accent);
  flex-shrink: 0;
  opacity: 0.7;
}

.tc-brand-story-heading {
  font-family: var(--theme-font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 2.8vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--theme-text);
  margin: 0;
}

.tc-brand-story-heading em {
  font-style: italic;
}

/* ─── Right panel video ───────────────────────────────────────────────────── */
/* Wrapper handles the absolute fill — mirrors the video-hero pattern so
   GrapesJS's built-in video component type cannot interfere with positioning */
.tc-brand-story-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform: translateZ(0);
}

.tc-brand-story-video-bg {
  /* position:absolute kept as fallback for any pages saved before the wrapper was added */
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
}

.tc-brand-story-video-bg::-webkit-media-controls,
.tc-brand-story-video-bg::-webkit-media-controls-enclosure,
.tc-brand-story-video-bg::-webkit-media-controls-panel {
  display: none !important;
}

/* ─── Right panel overlay ─────────────────────────────────────────────────── */
.tc-brand-story-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px 52px;
  background: linear-gradient(
    to top,
    rgba(18, 13, 8, 0.96) 0%,
    rgba(18, 13, 8, 0.72) 42%,
    rgba(18, 13, 8, 0.12) 70%,
    transparent 100%
  );
  z-index: 2;
}

.tc-brand-story-copy {
  display: flex;
  flex-direction: column;
}

/* ─── Overlay typography ──────────────────────────────────────────────────── */
.tc-brand-story-overlay-rule {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--theme-accent);
  opacity: 0.7;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.tc-brand-story-overlay-eyebrow {
  font-family: var(--theme-font-family);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--theme-accent);
  opacity: 0.85;
  margin-bottom: 14px;
}

.tc-brand-story-statement {
  font-family: var(--theme-font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2vw, 2.2rem);
  font-weight: 300;
  color: var(--theme-bg);
  line-height: 1.25;
  letter-spacing: 0.01em;
  max-width: 26ch;
  margin-bottom: 28px;
}

/* ─── CTA link ────────────────────────────────────────────────────────────── */
.tc-brand-story-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--theme-font-family);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--theme-bg);
  text-decoration: none;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(248, 244, 238, 0.28);
  transition:
    gap var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
  align-self: flex-start;
}

.tc-brand-story-cta:hover {
  gap: 16px;
  border-bottom-color: var(--theme-accent);
  color: var(--theme-accent);
}

/* ─── Responsive — 1024px ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tc-brand-story-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .tc-brand-story-panel {
    min-height: 60vw;
  }

  .tc-brand-story-overlay {
    padding: 40px 44px;
  }

  .tc-brand-story-caption {
    padding: 28px 40px 36px;
  }
}

/* ─── Responsive — 768px ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .tc-brand-story-heading {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
  }
}

/* ─── Responsive — 540px ──────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .tc-brand-story-panel {
    min-height: 75vw;
  }

  .tc-brand-story-overlay {
    padding: 28px 24px;
  }

  .tc-brand-story-caption {
    padding: 24px 24px 28px;
  }
}