/* =========================================================
   AVOLVE Media — RENDER ROOM page (render-room.html)

   Used only by render-room.html. Every rule is scoped to .rr-page or a
   class starting with rr-, so no other page changes.
   Yellow sampled from the official Render Room logo: #ffcc00.
   Assets: assets/render-room/mountain.webp (monochrome still),
           assets/ventures/render-room-logo.png (official logo, unchanged).
   ========================================================= */

.rr-page {
  --rr-yellow: #ffcc00;
  --rr-yellow-hi: #ffd633;
  --rr-black: #050506;
  --rr-panel: #0e0e10;
  --rr-charcoal: #18181b;
  --rr-line: rgba(255, 255, 255, .13);
  --rr-text: #f4f4f2;
  --rr-muted: rgba(244, 244, 242, .66);
  --rr-head-w: clamp(150px, 12.2vw, 196px);   /* timeline track-header column */
  --rr-range: 7.3;                             /* seconds shown across the timeline */
  --rr-cond: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", "Arial Narrow", "DejaVu Sans Condensed", sans-serif;
  background: var(--canvas);
}

/* ---------- Shared navigation, Render Room colours (this page only) ---------- */
.rr-page .primary-nav ul { border-color: rgba(255, 255, 255, .16); background: rgba(5, 5, 6, .55); }
.rr-page .primary-nav a { color: var(--rr-text); }
.rr-page .primary-nav a:hover { background: rgba(255, 204, 0, .16); }
.rr-page .primary-nav a[aria-current="page"] { background: var(--rr-yellow); color: var(--rr-black); }
.rr-page .site-header .brand:focus-visible,
.rr-page .primary-nav a:focus-visible { outline: 2px solid var(--rr-yellow); outline-offset: 3px; }
.rr-page .rr-header-cta { background: var(--rr-yellow); color: var(--rr-black); }
.rr-page .rr-header-cta:hover { background: var(--rr-yellow-hi); box-shadow: 0 8px 22px -10px rgba(255, 204, 0, .8); }
.rr-page .rr-header-cta:focus-visible { outline: 2px solid var(--rr-text); outline-offset: 3px; }
.rr-page .menu-toggle { border-color: rgba(255, 255, 255, .26); background: rgba(5, 5, 6, .55); color: var(--rr-text); }
.rr-page .menu-toggle__bars span { background: currentColor; }
.rr-page .mobile-menu a[aria-current="page"] { background: rgba(255, 204, 0, .3); font-weight: 500; }

/* ---------- Hero frame ---------- */
.rr-hero {
  position: relative;
  margin: var(--frame-gap);
  padding: calc(var(--header-h) + 14px) 0 0;
  border-radius: var(--radius-frame);
  overflow: hidden;
  overflow: clip;
  background: var(--rr-black);
  color: var(--rr-text);
}
.rr-ws { border-top: 1px solid var(--rr-line); }
:where(.rr-hero) :is(h1, h2, p, fieldset) { margin: 0; }

/* Workspace bar */
.rr-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  padding: 8px clamp(14px, 1.8vw, 28px);
  border-bottom: 1px solid var(--rr-line);
  background: var(--rr-panel);
}
.rr-bar__brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rr-logo {                     /* official logo shown on its own yellow, unchanged */
  flex: none;
  display: block;
  width: 96px;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--rr-yellow);
  line-height: 0;
}
.rr-logo img { width: 100%; height: auto; }
.rr-bar__program { font-size: .98rem; color: var(--rr-muted); white-space: nowrap; }
.rr-bar__program strong { font-weight: 600; color: var(--rr-text); }

.rr-fx-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--rr-line);
  border-radius: 8px;
  background: var(--rr-charcoal);
  color: var(--rr-text);
  font: inherit;
  font-size: .95rem;
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.rr-fx-toggle svg { width: 18px; height: 18px; flex: none; }
.rr-fx-toggle__chev { width: 14px !important; height: 14px !important; transition: transform .35s var(--ease); }
.rr-fx-toggle:hover { border-color: rgba(255, 204, 0, .6); }
.rr-fx-toggle[aria-expanded="true"] { border-color: var(--rr-yellow); background: #24221a; }
.rr-fx-toggle[aria-expanded="true"] .rr-fx-toggle__chev { transform: rotate(180deg); }

/* ---------- Monitor + drawer ---------- */
.rr-main {
  --rr-fx-w: 0px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rr-fx-w);
  transition: grid-template-columns .5s var(--ease);
}
.rr-main.is-fx-open { --rr-fx-w: clamp(280px, 22vw, 330px); }
.rr-monitor { min-width: 0; display: flex; flex-direction: column; }

.rr-screen {
  position: relative;
  container-type: inline-size;
  height: clamp(380px, 54vh, 620px);
  overflow: hidden;
  background: #000;
}
.rr-screen__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform-origin: 50% 50%;
  will-change: transform;          /* moved only by the timeline (render-room.js) */
}
.rr-screen::after {           /* keeps the centre dark for the headline */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(48% 52% at 50% 50%, rgba(0, 0, 0, .38), transparent 75%),
    linear-gradient(180deg, rgba(0, 0, 0, .12), transparent 30%, transparent 75%, rgba(0, 0, 0, .3));
}

/* title-safe corner guides */
.rr-guide {
  position: absolute;
  z-index: 1;
  width: 38px; height: 38px;
  border: 0 solid rgba(255, 255, 255, .5);
  pointer-events: none;
}
.rr-guide--tl { left: 3.2%; top: 5%; border-left-width: 1.5px; border-top-width: 1.5px; }
.rr-guide--tr { right: 3.2%; top: 5%; border-right-width: 1.5px; border-top-width: 1.5px; }
.rr-guide--bl { left: 3.2%; bottom: 5%; border-left-width: 1.5px; border-bottom-width: 1.5px; }
.rr-guide--br { right: 3.2%; bottom: 5%; border-right-width: 1.5px; border-bottom-width: 1.5px; }

.rr-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7% 8%;
  text-align: center;
}
.rr-headwrap {
  --rr-s: 1; --rr-x: 0px; --rr-y: 0px; --rr-o: 1;
  transform: translate(var(--rr-x), var(--rr-y)) scale(var(--rr-s));
  opacity: var(--rr-o);
  transition: transform .18s ease-out, opacity .18s ease-out;
}
.rr-title {
  --rr-fs: 8.6cqw;               /* fitted by render-room.js to the monitor width */
  display: inline-block;
  font-family: var(--rr-cond);
  font-weight: 400;
  font-size: var(--rr-fs);
  line-height: .92;
  letter-spacing: .005em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.rr-title__line { display: block; }
.rr-title__line--accent { color: var(--rr-yellow); font-style: italic; font-synthesis: style; }
/* room for the largest Scale and Y settings, so the headline never touches the copy below */
.rr-sub {
  max-width: 30em;
  margin-top: var(--rr-head-gap, 18px);
  font-size: clamp(1rem, 2.15cqw, 1.7rem);
  line-height: 1.28;
  color: rgba(255, 255, 255, .92);
  text-wrap: balance;
}
.rr-cta {
  margin-top: clamp(16px, 2.6cqw, 32px);
  min-height: 54px;
  padding: 0 30px;
  background: var(--rr-yellow);
  color: var(--rr-black);
  font-size: clamp(1rem, 1.7cqw, 1.3rem);
  font-weight: 600;
  box-shadow: 0 10px 26px -14px rgba(255, 204, 0, .8);
}
.rr-cta:hover { background: var(--rr-yellow-hi); box-shadow: 0 12px 30px -10px rgba(255, 204, 0, .75); }
.rr-cta:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.rr-sig {
  position: absolute;
  z-index: 2;
  left: calc(3.2% + 46px);
  bottom: calc(5% + 6px);
  font-size: .95rem;
  color: rgba(255, 255, 255, .85);
}

/* Playback strip */
.rr-strip {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 54px;
  padding: 4px clamp(14px, 1.8vw, 28px);
  border-top: 1px solid var(--rr-line);
  background: var(--rr-panel);
}
.rr-tc {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "DejaVu Sans Mono", monospace;
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--rr-yellow);
  font-variant-numeric: tabular-nums;
}
.rr-transport { display: flex; gap: 6px; }
.rr-tbtn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rr-text);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.rr-tbtn svg { width: 20px; height: 20px; }
.rr-tbtn:hover { background: rgba(255, 255, 255, .08); color: var(--rr-yellow); }
.rr-tbtn:focus-visible,
.rr-fx-toggle:focus-visible,
.rr-fx__close:focus-visible,
.rr-fx__reset:focus-visible { outline: 2px solid var(--rr-yellow); outline-offset: 2px; }
.rr-ico-pause { display: none; }
.rr-tbtn--play[aria-pressed="true"] .rr-ico-play { display: none; }
.rr-tbtn--play[aria-pressed="true"] .rr-ico-pause { display: block; }

/* ---------- Effect Controls drawer ---------- */
.rr-fx {
  position: relative;            /* the drawer never makes the workspace taller */
  min-width: 0;
  overflow: hidden;
  border-left: 1px solid var(--rr-line);
  background: var(--rr-panel);
}
.rr-main:not(.is-fx-open) .rr-fx { border-left-color: transparent; }
.rr-fx__inner { position: absolute; top: 0; bottom: 0; left: 0; width: clamp(280px, 22vw, 330px); overflow-y: auto; display: flex; flex-direction: column; }
.rr-fx__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 10px 0 20px;
  border-bottom: 1px solid var(--rr-line);
}
.rr-fx__title { font-size: 1.12rem; font-weight: 600; }
.rr-fx__close {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  padding: 0; border: 0; border-radius: 8px;
  background: transparent; color: var(--rr-text);
  cursor: pointer;
}
.rr-fx__close:hover { background: rgba(255, 255, 255, .08); }
.rr-fx__close svg { width: 20px; height: 20px; }
.rr-fx__group { padding: 14px 20px 4px; border: 0; min-width: 0; }
.rr-fx__group legend { padding: 0; margin-bottom: 8px; font-size: 1.02rem; font-weight: 600; }
.rr-ctl {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "label value" "range range";
  align-items: center;
  gap: 6px 10px;
  padding: 10px 0;
}
.rr-ctl label { grid-area: label; font-size: .92rem; color: var(--rr-muted); }
.rr-ctl output {
  grid-area: value;
  min-width: 64px;
  padding: 3px 8px;
  border: 1px solid var(--rr-line);
  border-radius: 6px;
  font-size: .88rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.rr-ctl input[type="range"] {
  grid-area: range;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  accent-color: var(--rr-yellow);
  cursor: pointer;
}
.rr-ctl input[type="range"]:focus-visible { outline: 2px solid var(--rr-yellow); outline-offset: 2px; border-radius: 4px; }
.rr-fx__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 12px 10px 14px 20px;
  border-top: 1px solid var(--rr-line);
}
.rr-fx__hint { font-size: .86rem; color: var(--rr-muted); }
.rr-fx__reset {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 12px;
  border: 1px solid var(--rr-line); border-radius: 8px;
  background: transparent; color: var(--rr-text);
  font: inherit; font-size: .9rem;
  cursor: pointer;
}
.rr-fx__reset:hover { border-color: var(--rr-yellow); color: var(--rr-yellow); }
.rr-fx__reset svg { width: 16px; height: 16px; }

/* ---------- Timeline ---------- */
.rr-tl {
  position: relative;
  border-top: 1px solid var(--rr-line);
  background: var(--rr-black);
  user-select: none;
}
.rr-tl__ruler,
.rr-track {
  display: grid;
  grid-template-columns: var(--rr-head-w) minmax(0, 1fr);
}
.rr-tl__ruler { height: 50px; }
.rr-tl__corner { border-right: 1px solid var(--rr-line); }
.rr-tl__lane { position: relative; min-width: 0; margin: 0 14px; }
.rr-ruler {
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.55) 0 1px, transparent 1px calc(100% / var(--rr-range))) 0 100% / 100% 16px no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.3) 0 1px, transparent 1px calc(100% / var(--rr-range) / 6)) 0 100% / 100% 7px no-repeat;
}
.rr-ruler__label {
  position: absolute;
  left: calc(var(--t) / var(--rr-range) * 100%);
  top: 10px;
  font-size: .82rem;
  color: var(--rr-muted);
  font-variant-numeric: tabular-nums;
}
.rr-track { height: 50px; border-top: 1px solid var(--rr-line); }
.rr-track__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: clamp(14px, 1.8vw, 26px);
  border-right: 1px solid var(--rr-line);
  font-size: .95rem;
}
.rr-track__head b { font-weight: 600; }
.rr-track__name { color: var(--rr-text); }
.rr-clip {
  position: absolute;
  top: 8px; bottom: 8px;
  left: calc(var(--a) / var(--rr-range) * 100%);
  width: calc((var(--b) - var(--a)) / var(--rr-range) * 100% - 2px);
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 3px;
  background: var(--rr-yellow);
  color: var(--rr-black);
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rr-wave { position: absolute; inset: 5px 0; width: 100%; height: calc(100% - 10px); }
.rr-wave path { fill: none; stroke: rgba(255, 255, 255, .78); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.rr-tl__playzone {
  position: absolute;
  top: 26px; bottom: 0;
  left: calc(var(--rr-head-w) + 14px);
  right: 14px;
  pointer-events: none;
}
.rr-playhead {
  --rr-p: 0;
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--rr-yellow);
  transform: translateX(calc(var(--rr-p) * var(--rr-zone-w, 0px)));
}
.rr-playhead::before {         /* playhead handle */
  content: "";
  position: absolute;
  left: 50%; top: -1px;
  width: 14px; height: 14px;
  margin-left: -7px;
  border-radius: 2px 2px 7px 7px;
  background: var(--rr-yellow);
}
.rr-hint {
  padding: 12px clamp(14px, 1.8vw, 28px) 16px;
  border-top: 1px solid var(--rr-line);
  font-size: .9rem;
  text-align: right;
  color: var(--rr-muted);
}

/* ---------- Tablet ---------- */
@media (max-width: 1023px) {
  .rr-page { --rr-head-w: 128px; }
  .rr-track__head { gap: 10px; font-size: .88rem; }
  .rr-clip { font-size: .85rem; padding: 0 10px; }
}

/* ---------- Mobile: preview, headline and CTA first; simpler timeline ---------- */
@media (max-width: 759px) {
  .rr-page { --rr-head-w: 52px; }
  .rr-hero { padding-top: calc(var(--header-h) + 8px); }
  .rr-bar { min-height: 56px; }
  .rr-logo { width: 78px; }
  .rr-bar__program { display: none; }
  .rr-fx-toggle { padding: 0 12px; font-size: .9rem; }
  .rr-fx-toggle__chev { display: none; }

  .rr-screen { height: auto; min-height: 470px; }
  .rr-screen__bg { object-position: 52% 50%; }
  .rr-copy { padding: 56px 22px 76px; }
  .rr-sub { font-size: 1.05rem; }
  .rr-cta { width: 100%; max-width: 300px; }
  .rr-sig { left: 50%; transform: translateX(-50%); bottom: 22px; white-space: nowrap; font-size: .88rem; }
  .rr-guide { width: 26px; height: 26px; }

  .rr-tc { font-size: 1rem; }
  .rr-strip__spacer { display: none; }
  .rr-strip { grid-template-columns: 1fr auto; }

  /* timeline: short track names, labels every two seconds, readable clip text */
  .rr-track__name, .rr-ruler__label.rr-odd { display: none; }
  .rr-track__head { justify-content: center; padding: 0; font-size: .85rem; }
  .rr-tl__lane { margin: 0 10px; }
  .rr-tl__playzone { left: calc(var(--rr-head-w) + 10px); right: 10px; }
  .rr-clip { padding: 0 8px; font-size: .78rem; }
  .rr-ruler__label { font-size: .75rem; }
  .rr-hint { text-align: center; }

  /* Effect Controls as a bottom sheet */
  .rr-main, .rr-main.is-fx-open { grid-template-columns: minmax(0, 1fr); --rr-fx-w: 0px; }
  .rr-fx {
    position: fixed;
    z-index: 80;
    left: 0; right: 0; bottom: 0;
    max-height: 54vh;
    max-height: 54svh;
    overflow-y: auto;
    border: 1px solid var(--rr-line);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -18px 40px rgba(0, 0, 0, .55);
    transform: translateY(105%);
    transition: transform .4s var(--ease), visibility 0s linear .4s;
    visibility: hidden;
  }
  .rr-main.is-fx-open .rr-fx { transform: none; visibility: visible; transition: transform .4s var(--ease); }
  .rr-fx__inner { position: static; width: auto; overflow: visible; }
  .rr-fx__head { position: sticky; top: 0; z-index: 1; min-height: 52px; background: var(--rr-panel); }
  .rr-fx__group { padding: 6px 18px 0; }
  .rr-fx__group legend { margin-bottom: 2px; }
  .rr-ctl { padding: 4px 0; gap: 2px 10px; }
  .rr-fx__foot { padding: 8px 10px 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .rr-main, .rr-fx, .rr-headwrap, .rr-fx-toggle__chev { transition: none !important; }
}
