/* Literal Turn 9 artboard pages — chrome + form + responsive */

:root {
  --amber: #E79734;
  --deep: #E79734;
}

body.artboard-body {
  padding-top: 0;
}

body.artboard-body h1 {
  font-weight: 400;
}

.artboard-page a:hover {
  filter: brightness(1.06);
}

/* About press list: keep headlines readable on hover */
.artboard-page a[href*="deadline.com"]:hover span:last-child,
.artboard-page a[href*="screendaily.com"]:hover span:last-child,
.artboard-page a[href*="broadcastnow.co.uk"]:hover span:last-child,
.artboard-page a[href*="televisual.com"]:hover span:last-child,
.artboard-page a[href*="vp-land.com"]:hover span:last-child {
  color: var(--amber);
}

/* Press coverage montage — layered headline clippings */
.press-montage {
  position: relative;
  min-height: 420px;
  margin: 0 -8px;
}

.press-clip {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(340px, 86%);
  padding: 22px 24px 26px;
  background: #161412;
  border: 1px solid #2a251e;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, border-color 0.2s ease, z-index 0s;
  z-index: 1;
}

.press-clip:hover {
  filter: none;
  border-color: var(--amber);
  z-index: 10;
  transform: translateY(-4px) rotate(0deg) !important;
}

.press-clip-logo {
  height: 18px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.92;
  filter: brightness(0) invert(1);
}

.press-clip-hed {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: #f7f5f0;
}

/* Ecosystem — Rogue Runner pitch deck p.2 */
.ecosystem {
  padding: 72px 40px 80px;
  border-top: 1px solid #1e1e1e;
}

.ecosystem-eyebrow {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e13a3a;
}

.ecosystem-title {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 16px 0 36px;
  max-width: 920px;
  color: #f7f5f0;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.ecosystem-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #12100e;
  border: 1px solid #2a251e;
  border-radius: 4px;
  padding: 28px 26px 30px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease;
}

.ecosystem-card:hover {
  filter: none;
  border-color: #3d3428;
}

/* Shared logo band so wordmarks share one baseline */
.ecosystem-card > :first-child {
  box-sizing: border-box;
  height: 40px;
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}

.ecosystem-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left bottom;
}

.ecosystem-logo--cm {
  height: 28px;
}

.ecosystem-logo--ca {
  height: 40px;
  margin: 0;
  object-position: left bottom;
}

.ecosystem-wordmark {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: #f7f5f0;
  white-space: nowrap;
}

.ecosystem-wordmark__rogue {
  color: #e13a3a;
}

.ecosystem-strap {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a877e;
}

.ecosystem-copy {
  font-size: 14.5px;
  line-height: 1.55;
  color: #c8c3bb;
  margin: 0;
}

.ecosystem-partners {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid #1e1e1e;
}

.ecosystem-partners-label {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #e13a3a;
  margin-bottom: 22px;
}

.ecosystem-partners-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  align-items: center;
}

.ecosystem-partners-row + .ecosystem-partners-row {
  margin-top: 14px;
}

.ecosystem-partners-row span {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(21px, 2.2vw, 24px);
  letter-spacing: 0.01em;
  color: #f7f5f0;
  white-space: nowrap;
}

.press-clip--1 { left: 2%; top: 8%; transform: rotate(-4deg); z-index: 3; width: min(360px, 88%); }
.press-clip--2 { right: 4%; top: 0; transform: rotate(3.5deg); z-index: 2; width: min(320px, 78%); }
.press-clip--3 { left: 18%; top: 38%; transform: rotate(2deg); z-index: 5; width: min(380px, 90%); }
.press-clip--4 { right: 8%; top: 42%; transform: rotate(-2.5deg); z-index: 4; width: min(300px, 72%); }
.press-clip--5 { left: 28%; top: 68%; transform: rotate(1.5deg); z-index: 6; width: min(340px, 82%); }

@media (max-width: 900px) {
  .press-montage {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
  }

  .press-clip {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    box-shadow: none;
  }

  .press-clip:hover {
    transform: none !important;
  }

  .ecosystem {
    padding: 56px 24px 64px;
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .ecosystem-partners-row {
    gap: 10px 20px;
  }
}

/* Top rail — 6px above the logo */
.artboard-page > div[style*="position:sticky"],
.artboard-page > div[style*="position: sticky"] {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  min-height: 0;
}

.artboard-page > div[style*="position:sticky"] .artboard-brand img,
.artboard-page > div[style*="position: sticky"] .artboard-brand img,
.artboard-page > div[style*="position:sticky"] > a[href="/"] img[alt="CineMe"],
.artboard-page > div[style*="position: sticky"] > a[href="/"] img[alt="CineMe"] {
  height: 36px !important;
  width: auto !important;
  max-width: none !important;
}

.artboard-page > div[style*="position:sticky"] .artboard-nav-desktop a[href="#request"],
.artboard-page > div[style*="position:sticky"] .artboard-nav-desktop a[href="/#request"],
.artboard-page > div[style*="position: sticky"] .artboard-nav-desktop a[href="#request"],
.artboard-page > div[style*="position: sticky"] .artboard-nav-desktop a[href="/#request"] {
  padding: 8px 16px !important;
  border-radius: 4px !important;
}
.artboard-page a[href="#request"],
.artboard-page a[href="/#request"],
a.menu-cta[href="/#request"],
a.menu-cta[href="#request"] {
  position: relative;
  z-index: 6;
  pointer-events: auto;
}

#request {
  scroll-margin-top: 96px;
}

/* Full-bleed decorative layers must not intercept CTA clicks */
.artboard-page [style*="position:absolute"][style*="inset:0"],
.artboard-page [style*="position: absolute"][style*="inset: 0"],
.artboard-page [style*="position:absolute"][style*="inset: 0"],
.artboard-page [style*="position: absolute"][style*="inset:0"] {
  pointer-events: none;
}

.artboard-burger {
  display: none;
}

.artboard-form-section {
  padding: 48px 40px 84px;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
}

.artboard-form-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 120% at 50% 0%, rgba(231, 151, 52, 0.14), transparent 60%);
  pointer-events: none;
}

.artboard-form-inner {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
}

.artboard-form-card {
  background: #12110f;
  color: #f7f5f0;
  border: 1px solid #262320;
  border-radius: 16px;
  overflow: hidden;
}

.artboard-form-intro {
  padding: 32px 34px 8px;
}

.artboard-form-eyebrow {
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

.artboard-form-title {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(28px, 4vw, 30px);
  letter-spacing: -0.02em;
  margin: 12px 0 8px;
  font-weight: 400;
}

.artboard-form-blurb {
  font-size: 15px;
  line-height: 1.5;
  color: #b7b3ac;
  margin: 0;
}

.artboard-form-panel {
  margin-top: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 22px 34px 34px;
  max-width: none;
}

.artboard-form-section .artboard-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 0;
}

.artboard-form-section .field {
  margin-bottom: 14px;
}

.artboard-form-section .field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #c9c6c0;
  margin-bottom: 6px;
}

.artboard-form-section .field .req {
  color: var(--amber);
}

.artboard-form-section .field input,
.artboard-form-section .field select,
.artboard-form-section .field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  background: #161412;
  border: 1px solid #2e2a25;
  border-radius: 9px;
  padding: 12px 14px;
  color: #f7f5f0;
  font: inherit;
  font-size: 14px;
}

.artboard-form-section .field textarea {
  min-height: 88px;
  resize: vertical;
}

.artboard-form-section .field input:focus,
.artboard-form-section .field select:focus,
.artboard-form-section .field textarea:focus {
  outline: none;
  border-color: var(--amber);
}

.artboard-form-section .field-consent {
  color: #8b8880;
  font-size: 13px;
  margin: 4px 0 10px;
}

.artboard-form-section .cm-turnstile {
  margin: 8px 0 12px;
  min-height: 56px;
  border: 1px dashed #2e2a25;
  border-radius: 9px;
  background: #0f0e0c;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.artboard-form-submit {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--amber);
  color: #12110f;
  border: none;
  border-radius: 10px;
  padding: 15px;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

.artboard-form-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.artboard-form-note {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #6f6b63;
  text-align: center;
}

.artboard-form-section .confirmation {
  display: none;
  padding: 8px 0 0;
  color: #c9c6c0;
  font-size: 15px;
  line-height: 1.5;
}

.artboard-form-section .confirmation.show {
  display: block;
}

/* Prefer clipping horizontal bleed over clipping the form blurb vertically */
.artboard-page {
  overflow-x: clip;
  overflow-y: visible;
}

@media (max-width: 900px) {
  html,
  body.artboard-body {
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
  }

  .artboard-nav-desktop {
    display: none !important;
  }

  .artboard-burger {
    display: inline-flex;
  }

  .artboard-page {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    box-sizing: border-box !important;
  }

  .artboard-page,
  .artboard-page * {
    box-sizing: border-box;
  }

  /* Wrap design-export text (often pre-wrap / nowrap) */
  .artboard-page p,
  .artboard-page h1,
  .artboard-page h2,
  .artboard-page div,
  .artboard-page span,
  .artboard-page a,
  .artboard-page li {
    max-width: 100% !important;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: normal !important;
  }

  /* Brand lockup in sticky rail — keep large; footer logos stay smaller via inline */
  .artboard-page > div[style*="position:sticky"] img[alt="CineMe"],
  .artboard-page > div[style*="position: sticky"] img[alt="CineMe"] {
    width: auto !important;
    max-width: 160px !important;
    height: 32px !important;
  }

  .artboard-page img[alt="CineMe"] {
    width: auto !important;
    max-width: 120px !important;
  }

  /* Sticky header */
  .artboard-page > div[style*="position:sticky"],
  .artboard-page > div[style*="position: sticky"] {
    padding: 6px 16px !important;
  }

  /* Section gutters — only on padded section shells, not every nested pad */
  .artboard-page > div[style*="padding:"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Drop desktop canvas heights so stacked content can grow */
  .artboard-page [style*="height:"] {
    height: auto !important;
    min-height: 0 !important;
  }

  /* Hero / tall media planes */
  .artboard-page [style*="height:660px"],
  .artboard-page [style*="min-height:640px"],
  .artboard-page [style*="min-height:520px"],
  .artboard-page [style*="min-height:480px"] {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    padding: 28px 20px !important;
    min-height: min(78vh, 560px) !important;
    height: auto !important;
    overflow: hidden !important;
  }

  /* Pixel widths from artboards → fluid (skip width:auto / % ) */
  .artboard-page [style*="width:"][style*="px"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Grids → single column */
  .artboard-page [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    position: relative !important;
  }

  .artboard-page [style*="grid-template-columns: 1.05fr"],
  .artboard-page [style*="grid-template-columns:1.05fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    align-items: stretch !important;
  }

  /* Process strips → vertical; hide → separators */
  .artboard-page [style*="display:flex"][style*="align-items:stretch"],
  .artboard-page [style*="display: flex"][style*="align-items: stretch"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .artboard-page [style*="display:flex"][style*="color:#5a554e"],
  .artboard-page [style*="display: flex"][style*="color:#5a554e"] {
    display: none !important;
  }

  /*
   * Demote placed absolute blocks (left/top/right/bottom).
   * Keep pure full-bleed overlays (inset:0, no placement offset).
   */
  .artboard-page [style*="position:absolute"],
  .artboard-page [style*="position: absolute"] {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    inset: auto !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0 !important;
  }

  /* Full-bleed hero media + gradients only */
  .artboard-page img[style*="inset:0"],
  .artboard-page img[style*="inset: 0"],
  .artboard-page div[style*="inset:0"]:not([style*="left:"]):not([style*="left :"]):not([style*="top:"]):not([style*="top :"]),
  .artboard-page div[style*="inset: 0"]:not([style*="left:"]):not([style*="left :"]):not([style*="top:"]):not([style*="top :"]) {
    position: absolute !important;
    inset: 0 !important;
    left: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    z-index: 0;
    pointer-events: none;
  }

  /* Hero copy / CTAs above media */
  .artboard-page [style*="height:660px"] > div[style*="left:"],
  .artboard-page [style*="height:660px"] > div[style*="bottom:"],
  .artboard-page [style*="min-height:640px"] > div[style*="left:"],
  .artboard-page [style*="min-height:640px"] > div[style*="bottom:"] {
    position: relative !important;
    z-index: 1;
    width: 100% !important;
    max-width: 100% !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    inset: auto !important;
  }

  /* Corner badges inside frame pairs */
  .artboard-page [style*="position:relative"] > span[style*="bottom:"],
  .artboard-page [style*="position: relative"] > span[style*="bottom:"] {
    position: absolute !important;
    left: 12px !important;
    bottom: 12px !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    max-width: calc(100% - 24px) !important;
    height: auto !important;
    z-index: 2;
  }

  .artboard-page img {
    max-width: 100% !important;
  }

  .artboard-page img:not([alt="CineMe"]) {
    height: auto !important;
  }

  .artboard-page [style*="aspect-ratio"] {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .artboard-page [style*="aspect-ratio"] img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* Type scale */
  .artboard-page h1,
  .artboard-page [style*="font-size:66px"] {
    font-size: clamp(30px, 8.5vw, 40px) !important;
    line-height: 1.08 !important;
  }

  .artboard-page [style*="font-size:52px"],
  .artboard-page [style*="clamp(36px"] {
    font-size: clamp(28px, 7.5vw, 36px) !important;
  }

  .artboard-page [style*="font-size:46px"],
  .artboard-page [style*="font-size:44px"],
  .artboard-page [style*="font-size:40px"] {
    font-size: clamp(24px, 6.5vw, 32px) !important;
  }

  .artboard-page [style*="font-size:36px"],
  .artboard-page [style*="font-size:34px"],
  .artboard-page [style*="font-size:30px"] {
    font-size: clamp(20px, 5.5vw, 26px) !important;
  }

  .artboard-page img[style*="mask-image"],
  .artboard-page img[style*="-webkit-mask-image"] {
    -webkit-mask-image: none !important;
    mask-image: none !important;
    width: 100% !important;
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }

  /* CTA row can wrap */
  .artboard-page [style*="display:flex"][style*="gap:18px"],
  .artboard-page [style*="display: flex"][style*="gap:18px"] {
    flex-wrap: wrap !important;
  }

  /* Form */
  .artboard-form-section {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .artboard-form-section .artboard-form-grid {
    grid-template-columns: 1fr;
  }

  .artboard-form-intro,
  .artboard-form-panel {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 480px) {
  .artboard-page [style*="gap:30px"],
  .artboard-page [style*="gap: 30px"],
  .artboard-page [style*="gap:40px"],
  .artboard-page [style*="gap: 40px"] {
    gap: 18px !important;
  }

  .artboard-page [style*="letter-spacing: .22em"],
  .artboard-page [style*="letter-spacing:.22em"],
  .artboard-page [style*="letter-spacing: .28em"],
  .artboard-page [style*="letter-spacing:.28em"] {
    letter-spacing: 0.12em !important;
  }
}
