/* ============================================================
   CASE STUDY — RITUAL
   Modern relationship-support brand · branding + illustration
   ============================================================ */

/* ── PAGE-SCOPED TOKENS (RITUAL palette) ───────────────────── */
:root {
  --rt-cream:     #FCF6E8;   /* authentic — warm off-white  */
  --rt-yellow:    #F7D877;   /* energetic & joy             */
  --rt-orange:    #F6C06C;   /* human & expressive          */
  --rt-orange-dk: #E8834A;   /* accent / CTA                */
  --rt-coral:     #EF6C52;   /* primary brand red           */
  --rt-green:     #A7E1C1;   /* empowering & supportive     */
  --rt-green-dk:  #178A6B;   /* deep green                  */
  --rt-lilac:     #E9E0FF;   /* honesty & growth            */
  --rt-purple:    #392A46;   /* dark purple — headings/ink  */
  --rt-ink:       #23202a;   /* body text                   */
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #fff;
}

/* ── SCROLL-REVEAL ANIMATIONS ──────────────────────────────── */
.rt-anim-up    { opacity: 0; transform: translateY(40px); transition: opacity .75s ease, transform .75s ease; }
.rt-anim-left  { opacity: 0; transform: translateX(-50px); transition: opacity .75s ease, transform .75s ease; }
.rt-anim-right { opacity: 0; transform: translateX(50px);  transition: opacity .75s ease, transform .75s ease; }
.rt-anim-up.in,
.rt-anim-left.in,
.rt-anim-right.in { opacity: 1; transform: none; }

/* stagger children of a grid */
.rt-stagger > *:nth-child(2) { transition-delay: .08s; }
.rt-stagger > *:nth-child(3) { transition-delay: .16s; }
.rt-stagger > *:nth-child(4) { transition-delay: .24s; }
.rt-stagger > *:nth-child(5) { transition-delay: .32s; }
.rt-stagger > *:nth-child(6) { transition-delay: .40s; }

/* ── HERO ──────────────────────────────────────────────────── */
.rt-hero {
  width: 100%;
  line-height: 0;
  background: var(--rt-orange);
}
.rt-hero img,
.rt-hero video { width: 100%; height: auto; display: block; }

/* ── PROJECT OVERVIEW ──────────────────────────────────────── */
.rt-info {
  background: #fff;
  padding: 90px 48px;
  border-bottom: 1px solid rgba(57,42,70,.1);
}
.rt-info-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}
.rt-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--rt-orange-dk);
  margin-bottom: 18px;
}
.rt-title {
  font-weight: 800;
  font-size: clamp(46px, 6vw, 92px);
  color: var(--rt-purple);
  line-height: .98;
  letter-spacing: -.01em;
  margin-bottom: 28px;
}
.rt-desc {
  font-size: 17px;
  line-height: 1.9;
  color: var(--rt-ink);
  opacity: .82;
  margin-bottom: 20px;
  max-width: 620px;
}
.rt-desc strong { color: var(--rt-purple); opacity: 1; font-weight: 700; }

.rt-meta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rt-purple);
  opacity: .42;
  margin-bottom: 20px;
}
.rt-meta-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(57,42,70,.14);
}
.rt-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(57,42,70,.14);
  gap: 16px;
}
.rt-meta-key {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rt-purple);
  opacity: .44;
  flex-shrink: 0;
}
.rt-meta-val {
  font-size: 14px;
  color: var(--rt-purple);
  font-weight: 400;
  text-align: right;
}

/* ── GENERIC SECTION SHELL ─────────────────────────────────── */
.rt-section {
  padding: 100px 48px;
  background: #fff;
}
.rt-section--cream  { background: var(--rt-cream); }
.rt-section--green  { background: var(--rt-green); }
.rt-section--lilac  { background: var(--rt-lilac); }
.rt-section--yellow { background: var(--rt-yellow); }
.rt-section--dark   { background: #141414; }

.rt-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.rt-head--start { text-align: left; }

.rt-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rt-orange-dk);
  margin-bottom: 16px;
}
.rt-section--green .rt-eyebrow  { color: var(--rt-green-dk); }
.rt-section--dark  .rt-eyebrow  { color: var(--rt-yellow); }

.rt-section-h {
  font-weight: 800;
  font-size: clamp(30px, 4vw, 56px);
  color: var(--rt-purple);
  line-height: 1.06;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}
.rt-section--green .rt-section-h { color: var(--rt-purple); }
.rt-section--dark  .rt-section-h { color: #fff; }

.rt-section-p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--rt-ink);
  opacity: .82;
}
.rt-section--dark .rt-section-p { color: #fff; opacity: .82; }
.rt-head .rt-section-p { max-width: 640px; margin: 0 auto; }
.rt-head--start .rt-section-p { margin: 0; }

/* ── FULL-BLEED MEDIA ──────────────────────────────────────── */
.rt-full { width: 100%; line-height: 0; }
.rt-full img,
.rt-full video { width: 100%; height: auto; display: block; }

/* framed image (rounded, shadow) inside padded sections */
.rt-frame {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 26px 70px rgba(57,42,70,.16);
}
.rt-frame img,
.rt-frame video { width: 100%; height: auto; display: block; }

/* ── SPLIT: two media side by side (type + photo) ──────────── */
.rt-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
}
.rt-split > figure { margin: 0; line-height: 0; }
.rt-split-type {
  background: var(--rt-cream);
  border-radius: 14px;
  overflow: hidden;
}
.rt-split-type img { width: 100%; height: 100%; object-fit: contain; display: block; }
.rt-split-photo img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

/* ── TWO / THREE-UP MEDIA ──────────────────────────────────── */
.rt-duo,
.rt-trio {
  display: grid;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.rt-duo  { grid-template-columns: 1fr 1fr; }
.rt-trio { grid-template-columns: repeat(3, 1fr); }
.rt-duo > *, .rt-trio > * { line-height: 0; }
.rt-duo img, .rt-duo video,
.rt-trio img, .rt-trio video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

/* ── MEDIA BLOCK (padded, framed video) ────────────────────── */
.rt-media {
  background: #fff;
  padding: 60px 48px;
}
.rt-media-inner {
  max-width: 1180px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 22px 60px rgba(57,42,70,.14);
}
.rt-media-inner video,
.rt-media-inner img { width: 100%; height: auto; display: block; }

/* ── POSTER (portrait video beside the icon set) ────────────── */
.rt-poster {
  background: var(--rt-cream);
  padding: 90px 48px;
}
.rt-poster-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: 1180px;
  margin: 0 auto;
}
.rt-poster-item { margin: 0; line-height: 0; }
.rt-poster-item video,
.rt-poster-item img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 74vh;
  margin: 0 auto;
  display: block;
  border-radius: 14px;
}
.rt-poster-item video { box-shadow: 0 30px 70px rgba(57,42,70,.18); }
.rt-poster-item--icons img { box-shadow: 0 18px 48px rgba(57,42,70,.12); }

/* ── SIDE-SCROLL GALLERY ────────────────────────────────────
   Frames sit edge-to-edge in a single row, sized by height so they
   tile like a filmstrip. Drag or swipe horizontally through the
   gallery. js/main.js adds click-drag on desktop; touch devices get
   native swipe scrolling for free via overflow-x. ─────────────── */
.rt-scroller {
  padding: 0;
  background: #fff;
}
.rt-scroll-track {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.rt-scroll-track::-webkit-scrollbar { display: none; }
.rt-scroll-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.rt-scroll-track img {
  flex: 0 0 auto;
  height: 70vh;
  max-height: 640px;
  width: auto;
  display: block;
  scroll-snap-align: start;
  pointer-events: none;
  user-select: none;
}

/* ── OUTRO (full-bleed closing image) ──────────────────────── */
.rt-outro {
  width: 100%;
  line-height: 0;
  background: var(--rt-cream);
}
.rt-outro img { width: 100%; height: auto; display: block; }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .rt-info { padding: 60px 24px; }
  .rt-info-grid { grid-template-columns: 1fr; gap: 44px; }

  .rt-section { padding: 60px 24px; }
  .rt-head { margin-bottom: 40px; }

  .rt-split { grid-template-columns: 1fr; }
  .rt-duo  { grid-template-columns: 1fr; }
  .rt-trio { grid-template-columns: 1fr; }

  .rt-statement { padding: 0 24px; }
  .rt-media { padding: 40px 24px; }

  .rt-poster { padding: 60px 24px; }
  .rt-poster-inner { grid-template-columns: 1fr; gap: 32px; }
  .rt-poster-item video,
  .rt-poster-item img { max-height: none; }

  .rt-scroll-track img { height: 44vh; }
}


/* The nav is fixed, so on a phone it sits on top of the opening image.
   Reserve its height here — clears the fixed nav. */
@media (max-width: 900px) {
  .rt-hero {
    padding-top: 70px;
  }
}
