/* ==========================================================================
   JBT — case study pages (RP Travel Group first)
   Same look as the homepage: cream #FBFAF6 + ink #111, deep navy stages,
   Alumni Sans headings in capitals (no italics), Instrument Sans text.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body.cs-page { background: #fbfaf6; color: #111; font: 400 17px/1.6 "Instrument Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
.cs-page em, .cs-page i { font-style: normal; }
.cs-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #111; color: #fbfaf6; padding: 10px 14px; border-radius: 8px; }
.cs-skip:focus { left: 8px; }
.cs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:root { --gutter: clamp(16px, 5vw, 72px); --header-h: 76px; --navy: #0e1733; --navy-2: #16224a; --rp-yellow: #f2b51d; }

/* ── Header (mirrors the homepage) ── */
.cs-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); display: flex; align-items: center; gap: 24px; padding: 0 var(--gutter); color: #fbfaf6; transition: background .4s, color .4s, border-color .4s; border-bottom: 1px solid transparent; }
.cs-header.is-scrolled { background: rgba(14, 23, 51, .86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-color: rgba(251, 250, 246, .12); }
.cs-header.on-light { color: #111; background: rgba(251, 250, 246, .88); border-color: rgba(17, 17, 17, .08); }
.cs-header__logo img { height: 36px; width: auto; filter: invert(1) brightness(1.15); transition: filter .4s; }
.cs-header.on-light .cs-header__logo img { filter: none; }
.cs-nav { margin-left: auto; margin-right: 40px; display: flex; gap: 34px; }
.cs-nav a, .cs-menu > a, .cs-footer nav a { font: 700 22px/1 "Alumni Sans", "Instrument Sans", sans-serif; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.cs-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.cs-lang { display: flex; gap: 6px; font-size: 15px; letter-spacing: .06em; }
.cs-lang a { text-decoration: none; }
.cs-lang [aria-current] { font-weight: 600; }
.cs-lang .is-soon { opacity: .45; }
.cs-menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid currentColor; background: none; color: inherit; cursor: pointer; position: relative; }
.cs-menu-btn span:not(.cs-sr) { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .3s; }
.cs-menu-btn span:nth-child(1) { top: 17px; } .cs-menu-btn span:nth-child(2) { top: 25px; }
.cs-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.cs-menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.cs-menu { position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: #fbfaf6; color: #111; display: flex; flex-direction: column; gap: 6px; padding: 32px var(--gutter); }
.cs-menu[hidden] { display: none; }
.cs-menu > a { font-size: 44px; line-height: 1.05; }
.cs-lang--menu { margin-top: auto; font-size: 18px; font-weight: 600; padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }

/* ── Shared ── */
.cs-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.cs-section { padding: clamp(72px, 12vh, 140px) 0; }
.cs-section[data-theme="dark"] { background: radial-gradient(120% 90% at 70% 0%, var(--navy-2) 0%, var(--navy) 60%, #0a1026 100%); color: #fbfaf6; }
.cs-eyebrow, .cs-label { display: flex; align-items: center; gap: 12px; font: 600 12px/1.2 "Instrument Sans", sans-serif; letter-spacing: .16em; text-transform: uppercase; margin: 0; }
.cs-eyebrow i { width: 28px; height: 1px; background: currentColor; }
.cs-label span { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid currentColor; border-radius: 50%; letter-spacing: 0; }
.cs-label--sub { margin-top: clamp(56px, 9vh, 96px); opacity: .8; }
h1, h2, h3 { font-family: "Alumni Sans", "Instrument Sans", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; line-height: .92; margin: 0; }
.cs-h2 { margin-top: 18px; font-size: clamp(42px, 5.4vw, 84px); text-wrap: balance; }
.cs-body { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.6; max-width: 46ch; }
.cs-body p { margin: 0 0 14px; }
.cs-body--wide { max-width: 64ch; margin-top: 20px; }
.cs-section[data-theme="dark"] .cs-body { color: rgba(251, 250, 246, .85); }
.cs-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.cs-grid--media { align-items: center; }
.cs-caption, figcaption { font-size: 13px; letter-spacing: .04em; color: #6b6a66; margin-top: 12px; }
.cs-section[data-theme="dark"] figcaption { color: rgba(251, 250, 246, .6); }
.cs-btn { display: inline-flex; align-items: center; height: 50px; padding: 0 22px; border-radius: 999px; border: 1.5px solid currentColor; text-decoration: none; font-weight: 500; font-size: 15px; transition: transform .25s, background .25s, color .25s; }
.cs-btn:hover { transform: translateY(-2px); }
.cs-btn--solid { background: #fbfaf6; color: #111; border-color: #fbfaf6; }
.cs-btn:focus-visible, .cs-nav a:focus-visible, .cs-menu-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ── Hero ── */
.cs-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fbfaf6; overflow: hidden; background: #0a1026; }
.cs-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 38, .55) 0%, rgba(10, 16, 38, .1) 35%, rgba(10, 16, 38, .25) 60%, rgba(10, 16, 38, .88) 100%); }
.cs-hero__copy { position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: calc(var(--header-h) + 40px) var(--gutter) clamp(48px, 10vh, 110px); }
.cs-hero__title { margin-top: 18px; font-size: clamp(64px, 11vw, 180px); line-height: .86; }
.cs-hero__lede { margin: 18px 0 0; max-width: 40ch; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.45; color: rgba(251, 250, 246, .92); }
.cs-tags { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cs-tags li { font-size: 13px; padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(251, 250, 246, .35); background: rgba(10, 16, 38, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cs-hero__actions { margin: 26px 0 0; }
.cs-hero__cue { position: absolute; right: var(--gutter); bottom: 28px; z-index: 1; margin: 0; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(251, 250, 246, .75); }
.cs-hero__cue span { display: inline-block; animation: cs-bob 1.6s ease-in-out infinite; }
@keyframes cs-bob { 50% { transform: translateY(5px); } }

/* ── Brief + pillars ── */
.cs-pillars { list-style: none; margin-top: clamp(48px, 8vh, 88px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(17, 17, 17, .14); }
.cs-pillars li { padding: 26px 22px 6px 0; border-right: 1px solid rgba(17, 17, 17, .1); padding-left: 22px; }
.cs-pillars li:first-child { padding-left: 0; } .cs-pillars li:last-child { border-right: 0; }
.cs-pillars b { font: 600 12px/1 "Instrument Sans", sans-serif; letter-spacing: .14em; color: #6b6a66; }
.cs-pillars h3 { margin-top: 14px; font-size: clamp(26px, 2.2vw, 34px); }
.cs-pillars p { margin: 10px 0 0; font-size: 15px; color: #3a3a38; }

/* ── Branding ── */
.cs-brand__grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cs-tile { margin: 0; border-radius: 18px; aspect-ratio: 1; display: grid; place-items: center; padding: 12%; overflow: hidden; }
.cs-tile img { max-height: 100%; width: auto; object-fit: contain; }
.cs-tile--wide { grid-column: span 2; aspect-ratio: 2 / 1; padding: 4% 8%; }
.cs-tile--white { background: #fff; border: 1px solid rgba(17, 17, 17, .08); }
.cs-tile--cream { background: #efe9dc; }
.cs-tile--navy { background: #12306b; }
.cs-tile--yellow { background: var(--rp-yellow); }
.cs-tile--photo { padding: 0; } .cs-tile--photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── Device frames ── */
.cs-laptop { margin: 0; }
.cs-laptop__screen { position: relative; aspect-ratio: 16 / 10; border-radius: 14px 14px 4px 4px; overflow: hidden; background: #000; border: 10px solid #1b1d22; border-bottom-width: 14px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.cs-laptop__screen video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.cs-laptop__base { height: 14px; margin: 0 -4%; background: linear-gradient(180deg, #c9ccd2, #8d9098); border-radius: 0 0 16px 16px; }
.cs-laptop--solo { max-width: 860px; margin: clamp(48px, 8vh, 80px) auto 0; }
.cs-phone { margin: 0; justify-self: center; width: min(300px, 70vw); }
.cs-phone__screen { aspect-ratio: 9 / 19.5; border-radius: 40px; overflow: hidden; background: #000; border: 10px solid #1b1d22; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .75); }
.cs-phone__screen video { width: 100%; height: 100%; object-fit: cover; }
.cs-phone--lg { width: min(360px, 78vw); }
.cs-devices { margin-top: clamp(48px, 8vh, 80px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 4vw, 64px); align-items: end; }

/* ── Reels ── */
.cs-reel { margin-top: 18px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; }
.cs-reel figure { margin: 0; }
.cs-reel video { width: 100%; aspect-ratio: 9 / 13; object-fit: cover; border-radius: 14px; background: #000; }
.cs-reel__main video { aspect-ratio: auto; height: 100%; max-height: none; }
.cs-reel__main { display: flex; flex-direction: column; }
.cs-reel__main video { flex: 1; aspect-ratio: 16 / 9; }
.cs-feature { margin: 32px 0 0; }
.cs-feature video { width: 100%; aspect-ratio: 1628 / 1080; object-fit: cover; border-radius: 18px; box-shadow: 0 40px 80px -48px rgba(17, 17, 17, .55); background: #e9dcc0; }

/* ── Social ── */
.cs-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.cs-list li { display: flex; gap: 12px; align-items: center; font-size: 16px; }
.cs-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rp-yellow); }
.cs-grid--flip > :first-child { order: 0; }

/* ── Quote + CTA ── */
.cs-quote { text-align: center; }
.cs-quote figure { margin: 0 auto; max-width: 980px; }
.cs-quote blockquote { margin: 0; font: 700 clamp(34px, 4.4vw, 66px)/1 "Alumni Sans", "Instrument Sans", sans-serif; text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
.cs-quote figcaption { margin-top: 22px; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #6b6a66; }
.cs-cta { text-align: center; }
.cs-cta .cs-body { margin: 16px auto 0; }
.cs-cta__actions { margin: 28px 0 0; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer (same blue as the homepage's Let's talk) ── */
.cs-footer { background: radial-gradient(60% 160% at 68% 0%, var(--navy-2) 0%, var(--navy) 55%, #0a1026 100%); color: #fbfaf6; padding: clamp(36px, 6vh, 64px) var(--gutter) 36px; display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 32px; align-items: end; border-top: 1px solid rgba(251, 250, 246, .1); }
.cs-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.cs-footer nav a { font-size: 18px; }
.cs-footer p { margin: 0; color: rgba(251, 250, 246, .7); font-size: 15px; max-width: 46ch; }
.cs-footer__legal { display: flex; gap: 18px; justify-content: flex-end; flex-wrap: wrap; font-size: 13px !important; }
.cs-footer__legal a { text-decoration: none; }

/* ── Reveal ── */
html.js [data-cs-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1); }
html.js [data-cs-reveal].is-in { opacity: 1; transform: none; }

/* ── Phones & small tablets ── */
@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .cs-nav, .cs-header > .cs-lang { display: none; }
  .cs-menu-btn { display: block; }
  .cs-header__logo img { height: 30px; }
  .cs-grid, .cs-devices { grid-template-columns: 1fr; }
  .cs-grid--flip > :first-child { order: 2; }
  .cs-pillars { grid-template-columns: 1fr 1fr; }
  .cs-pillars li { padding: 22px 16px 16px 0 !important; border-right: 0; border-bottom: 1px solid rgba(17, 17, 17, .1); }
  .cs-brand__grid { grid-template-columns: 1fr 1fr; }
  .cs-reel { grid-template-columns: 1fr 1fr 1fr; }
  .cs-reel__main { grid-column: 1 / -1; }
  .cs-footer { grid-template-columns: 1fr; }
  .cs-footer__legal { justify-content: flex-start; }
  .cs-hero__cue { display: none; }
}
@media (max-width: 560px) { .cs-pillars { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { html.js [data-cs-reveal] { opacity: 1; transform: none; transition: none; } .cs-hero__cue span { animation: none; } }
@media (max-width: 899px) { .cs-laptop { padding: 0 3%; } .cs-laptop__base { margin: 0 -3%; } }
body.cs-page { overflow-x: clip; }

/* Branding: the brand in use */
.cs-brand__intro { margin-top: 18px; align-items: end; }
.cs-brand__intro .cs-h2 { margin-top: 0; }
.cs-brand__board { margin: clamp(32px, 5vh, 52px) 0 0; }
.cs-brand__board img { width: 100%; height: auto; border-radius: 20px; box-shadow: 0 50px 90px -50px rgba(14, 23, 51, .55); }
.cs-brand__uses { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cs-brand__uses li { font-size: 13px; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1px solid rgba(17, 17, 17, .1); }


/* Chapter player: highlight reel + jump buttons */
.cs-chapters { margin-top: 18px; }
.cs-chapters__track { height: 3px; border-radius: 3px; background: rgba(17, 17, 17, .12); overflow: hidden; }
.cs-section[data-theme="dark"] .cs-chapters__track { background: rgba(251, 250, 246, .18); }
.cs-chapters__fill { height: 100%; width: 0; background: #f2b51d; transition: width .25s linear; }
.cs-chapters__btns { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cs-chapters__btns button {
  appearance: none; cursor: pointer; font: 600 12px/1 "Instrument Sans", sans-serif; letter-spacing: .1em; text-transform: uppercase;
  padding: 10px 14px; border-radius: 999px; border: 1.5px solid currentColor; background: transparent; color: inherit; opacity: .7;
  transition: opacity .25s, background .25s, color .25s, transform .25s;
}
.cs-chapters__btns button:hover { opacity: 1; transform: translateY(-1px); }
.cs-chapters__btns button.is-on { opacity: 1; background: #111; color: #fbfaf6; border-color: #111; }
.cs-section[data-theme="dark"] .cs-chapters__btns button.is-on { background: #fbfaf6; color: #111; border-color: #fbfaf6; }
.cs-chapters__btns button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ══════════ Layout: left column (case at a glance + case-study navigation) · right column (the story) ══════════
   Desktop: the left column stays put while the story scrolls beside it. Phones: it sits on top. */
.cs-layout { display: grid; grid-template-columns: minmax(330px, 31vw) minmax(0, 1fr); padding-top: var(--header-h); }
.cs-side {
  --case-a: #f2b51d;
  position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: clamp(24px, 4vh, 44px) clamp(22px, 2.6vw, 40px) clamp(18px, 3vh, 28px);
  background: radial-gradient(120% 80% at 0% 0%, #1b2a5c 0%, #0e1733 60%, #0a1026 100%); color: #fbfaf6;
  border-right: 1px solid rgba(251, 250, 246, .1); overflow: hidden auto;
}
.cs-side .cs-eyebrow { color: rgba(251, 250, 246, .8); }
.cs-side__client { margin: clamp(22px, 4vh, 40px) 0 0; font: 600 11px/1 "Instrument Sans", sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--case-a); }
.cs-side__title { margin-top: 10px; font-size: clamp(48px, 5.2vw, 92px); line-height: .86; }
.cs-side__lede { margin: 18px 0 0; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.5; color: rgba(251, 250, 246, .88); max-width: 34ch; }
.cs-side .cs-tags { margin-top: 18px; }
.cs-side .cs-tags li { background: rgba(251, 250, 246, .06); }
.cs-side__actions { margin: 22px 0 0; }

/* Case-study navigation: ◀ count / list ▶ */
.cs-cases { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(251, 250, 246, .14); }
.cs-cases__arrow { width: 54px; height: 54px; border-radius: 50%; display: inline-grid; place-items: center; background: #fbfaf6; color: #0e1733; text-decoration: none; transition: transform .25s, background .25s, color .25s; }
.cs-cases__arrow svg { width: 22px; height: 22px; }
.cs-cases__arrow:hover { background: var(--case-a); transform: scale(1.06); }
.cs-cases__arrow:focus-visible { outline: 2px solid var(--case-a); outline-offset: 3px; }
.cs-cases__arrow[aria-disabled="true"] { opacity: .3; pointer-events: none; }
.cs-cases__mid { text-align: center; min-width: 0; }
.cs-cases__count { appearance: none; border: 0; background: none; color: #fbfaf6; cursor: pointer; font: 700 17px/1 "Alumni Sans", "Instrument Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 4px 6px; border-radius: 6px; }
.cs-cases__count:hover, .cs-cases__count[aria-expanded="true"] { color: var(--case-a); }
.cs-cases__count:focus-visible { outline: 2px solid var(--case-a); outline-offset: 2px; }
.cs-cases__hint { margin: 6px 0 0; display: grid; gap: 2px; font-size: 12px; line-height: 1.3; color: rgba(251, 250, 246, .62); }
.cs-cases__hint b { font: 700 14px/1 "Alumni Sans", "Instrument Sans", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #fbfaf6; }
.cs-cases__list {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 10px); margin: 0; padding: 8px; list-style: none; z-index: 5;
  background: #fbfaf6; color: #111; border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.cs-cases__list[hidden] { display: none; }
.cs-cases__list a { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; text-decoration: none; }
.cs-cases__list a:hover, .cs-cases__list a:focus-visible { background: #efe9dc; outline: none; }
.cs-cases__list a[aria-current="page"] { background: #0e1733; color: #fbfaf6; }
.cs-cases__list b { font: 600 12px/1 "Instrument Sans", sans-serif; letter-spacing: .1em; opacity: .6; }
.cs-cases__list span { font: 700 20px/1 "Alumni Sans", "Instrument Sans", sans-serif; letter-spacing: .03em; text-transform: uppercase; }
.cs-cases__list i { font-style: normal; font-size: 12px; opacity: .65; }
.cs-cases__list .cs-cases__all { grid-template-columns: 1fr auto; border-top: 1px solid rgba(17, 17, 17, .1); margin-top: 4px; border-radius: 0 0 10px 10px; }

/* Right column: the story */
.cs-content { min-width: 0; container-type: inline-size; }
.cs-content .cs-hero { min-height: 0; height: calc(100svh - var(--header-h)); }
.cs-content .cs-hero__video { position: absolute; inset: 0; }
.cs-content .cs-h2 { font-size: clamp(38px, 6.6cqi, 84px); }
.cs-content .cs-quote blockquote { font-size: clamp(30px, 5.2cqi, 66px); }
@container (max-width: 780px) {
  .cs-grid, .cs-devices { grid-template-columns: 1fr; }
  .cs-grid--flip > :first-child { order: 2; }
  .cs-pillars { grid-template-columns: 1fr 1fr; }
  .cs-pillars li { padding: 22px 16px 16px 0 !important; border-right: 0; border-bottom: 1px solid rgba(17, 17, 17, .1); }
  .cs-reel { grid-template-columns: 1fr 1fr 1fr; }
  .cs-reel__main { grid-column: 1 / -1; }
  .cs-phone { justify-self: center; }
}

/* Phones & small tablets: the left column becomes the top of the page */
@media (max-width: 899px) {
  .cs-layout { grid-template-columns: 1fr; }
  .cs-side { position: relative; top: auto; height: auto; overflow: visible; border-right: 0; padding: 28px 20px 22px; }
  .cs-side__title { font-size: clamp(52px, 15vw, 76px); }
  .cs-cases { margin-top: 6px; }
  .cs-cases__list { bottom: auto; top: calc(100% + 10px); }
  .cs-content .cs-hero { height: 62svh; min-height: 360px; }
}
@media (min-width: 900px) and (max-height: 760px) {
  .cs-side__title { font-size: clamp(44px, 4.4vw, 70px); }
  .cs-side__client { margin-top: 16px; }
  .cs-side__lede { font-size: 14.5px; }
  .cs-side .cs-tags li { font-size: 12px; padding: 5px 10px; }
  .cs-cases__arrow { width: 46px; height: 46px; }
}

/* Case pages: the header is solid navy (matching the left column) and turns light over light sections */
body.cs-page .cs-header { background: rgba(14, 23, 51, .96); border-color: rgba(251, 250, 246, .1); }
body.cs-page .cs-header.on-light { background: rgba(251, 250, 246, .94); border-color: rgba(17, 17, 17, .08); }

/* Small laptops (short screens): a more compact left column */
@media (min-width: 900px) and (max-height: 700px) {
  .cs-side { padding-top: 18px; padding-bottom: 14px; gap: 14px; }
  .cs-side__client { margin-top: 12px; }
  .cs-side__title { font-size: clamp(36px, 3.8vw, 56px); margin-top: 6px; }
  .cs-side__lede { font-size: 13.5px; margin-top: 10px; }
  .cs-side .cs-tags { margin-top: 10px; gap: 6px; }
  .cs-side .cs-tags li { font-size: 11px; padding: 4px 9px; }
  .cs-side__actions { margin-top: 12px; }
  .cs-side .cs-btn { height: 40px; font-size: 13.5px; padding: 0 16px; }
  .cs-cases { padding-top: 12px; }
  .cs-cases__arrow { width: 42px; height: 42px; }
  .cs-cases__hint span { display: none; }
}

/* ══════════ Per-client themes (each case study wears its client's brand; the layout stays the same) ══════════ */
/* Gloria's Taquiza — exact logo colours: green #112f03, red #d12010, pink #cf124d, orange #eb6709 */
body.cs-theme-gt { --navy: #0f2a03; --navy-2: #1d4a08; --rp-yellow: #eb6709; }
.cs-theme-gt .cs-side { --case-a: #eb6709; background: radial-gradient(120% 80% at 0% 0%, #24570a 0%, #112f03 60%, #0b2002 100%); }
.cs-theme-gt .cs-header { background: rgba(17, 47, 3, .96) !important; }
.cs-theme-gt .cs-header.on-light { background: rgba(251, 250, 246, .94) !important; }
.cs-theme-gt .cs-section[data-theme="dark"] { background: radial-gradient(120% 90% at 70% 0%, #1d4a08 0%, #112f03 60%, #0b2002 100%); }
.cs-theme-gt .cs-footer { background: radial-gradient(60% 160% at 68% 0%, #1d4a08 0%, #112f03 55%, #0b2002 100%); border-top-color: rgba(235, 103, 9, .18); }
.cs-theme-gt .cs-cases__list a[aria-current="page"] { background: #112f03; }
.cs-theme-gt .cs-chapters__fill { background: #eb6709; }
.cs-theme-gt .cs-cases__arrow { color: #112f03; }

/* Key numbers */
.cs-stats { margin: clamp(32px, 5vh, 52px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(17, 17, 17, .14); border-bottom: 1px solid rgba(17, 17, 17, .14); }
.cs-stats div { padding: 22px 18px; border-right: 1px solid rgba(17, 17, 17, .1); display: flex; flex-direction: column-reverse; gap: 6px; }
.cs-stats div:last-child { border-right: 0; }
.cs-stats dd { margin: 0; font: 700 clamp(44px, 6cqi, 76px)/.9 "Alumni Sans", "Instrument Sans", sans-serif; color: var(--rp-yellow); }
.cs-stats dt { font-size: 13px; letter-spacing: .04em; color: #55534e; }
@container (max-width: 780px) { .cs-stats { grid-template-columns: 1fr 1fr; } .cs-stats div:nth-child(2) { border-right: 0; } .cs-stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(17, 17, 17, .1); } }

/* A real page in a browser window */
.cs-browser { margin: clamp(32px, 5vh, 52px) 0 0; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid rgba(17, 17, 17, .1); box-shadow: 0 50px 90px -50px rgba(17, 17, 17, .5); }
.cs-browser img { width: 100%; height: auto; }
.cs-browser__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #f1eee7; border-bottom: 1px solid rgba(17, 17, 17, .08); }
.cs-browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d8d3c8; }
.cs-browser__bar span { margin-left: 10px; font-size: 12px; color: #6b6a66; padding: 4px 12px; border-radius: 999px; background: #fff; }
.cs-browser--sub { width: 84%; margin-left: auto; margin-top: -8%; position: relative; }
@container (max-width: 780px) { .cs-browser--sub { width: 100%; margin-top: 20px; } }

/* Photo mosaic */
.cs-mosaic { margin-top: clamp(28px, 4vh, 44px); display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 15cqi, 230px); gap: 10px; }
.cs-mosaic figure { margin: 0; border-radius: 14px; overflow: hidden; background: #e9e2d2; }
.cs-mosaic img, .cs-mosaic video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.cs-mosaic figure:hover img { transform: scale(1.04); }
.cs-mosaic__a { grid-column: span 2; grid-row: span 2; }
.cs-mosaic__b { grid-column: span 2; }
.cs-mosaic__v { grid-row: span 2; }
@container (max-width: 780px) { .cs-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } .cs-mosaic__v { grid-row: span 2; } }

/* Rating card */
.cs-rating { justify-self: center; text-align: center; padding: clamp(28px, 4vw, 48px); border-radius: 24px; background: rgba(251, 250, 246, .06); border: 1px solid rgba(251, 250, 246, .16); max-width: 380px; }
.cs-rating__num { margin: 0; font: 700 clamp(96px, 14cqi, 170px)/.85 "Alumni Sans", "Instrument Sans", sans-serif; color: #fbfaf6; }
.cs-rating__num span { color: var(--rp-yellow); font-size: .6em; vertical-align: .35em; margin-left: 6px; }
.cs-rating__label { margin: 14px 0 0; font-size: 15px; color: rgba(251, 250, 246, .78); }

/* Gloria's — Google Places proof (a dark search page in a dark browser frame) */
.cs-browser--dark { background: #22242a; border-color: rgba(251, 250, 246, .14); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .8); }
.cs-browser--dark .cs-browser__bar { background: #2e3037; border-bottom-color: rgba(251, 250, 246, .08); }
.cs-browser--dark .cs-browser__bar i { background: #4a4d55; }
.cs-browser--dark .cs-browser__bar span { background: #1c1d22; color: rgba(251, 250, 246, .7); }
.cs-places { margin-top: clamp(36px, 6vh, 64px); }
.cs-places figcaption { padding: 14px 18px 16px; font-size: 14px; color: rgba(251, 250, 246, .72); border-top: 1px solid rgba(251, 250, 246, .08); }

/* ══════════ Divine Illusions theme (their palette: burgundy #651f32 / #42101f, champagne #d4ad62, espresso #21130f) ══════════ */
body.cs-theme-di { --navy: #42101f; --navy-2: #651f32; --rp-yellow: #d4ad62; }
.cs-theme-di .cs-side { --case-a: #d4ad62; background: radial-gradient(120% 80% at 0% 0%, #6b2236 0%, #42101f 58%, #2a0a14 100%); }
.cs-theme-di .cs-header { background: rgba(66, 16, 31, .96) !important; }
.cs-theme-di .cs-header.on-light { background: rgba(255, 250, 241, .94) !important; }
.cs-theme-di .cs-section[data-theme="dark"] { background: radial-gradient(120% 90% at 70% 0%, #5a1a2c 0%, #3a0e1c 58%, #21130f 100%); }
.cs-theme-di .cs-cases__list a[aria-current="page"] { background: #42101f; }
.cs-theme-di .cs-chapters__fill { background: #d4ad62; }
.cs-theme-di .cs-cases__arrow { color: #42101f; }
.cs-theme-di .cs-hero { background: #21130f; }
.cs-theme-di .cs-footer { background: radial-gradient(60% 160% at 68% 0%, #4a1424 0%, #42101f 45%, #21130f 100%); border-top-color: rgba(212, 173, 98, .18); }

/* A framed widescreen film with chapter buttons (the showcase) */
.cs-film { margin: clamp(32px, 5vh, 52px) 0 0; }
.cs-film__screen { border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 50px 90px -46px rgba(0, 0, 0, .8), 0 0 0 1px rgba(212, 173, 98, .35); }
.cs-film__screen video { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; }
.cs-film figcaption { margin-top: 12px; font-size: 14px; opacity: .7; }

/* A row of vertical films */
.cs-films { margin-top: clamp(32px, 5vh, 52px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2cqi, 26px); }
.cs-films figure { margin: 0; }
.cs-films video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; border-radius: 16px; background: #000; box-shadow: 0 40px 70px -44px rgba(17, 17, 17, .6); }
.cs-films figcaption { margin-top: 12px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.cs-films figcaption b { display: block; margin-top: 4px; font: 400 26px/1.1 "Instrument Serif", serif; letter-spacing: 0; text-transform: none; opacity: 1; }
@container (max-width: 780px) { .cs-films { grid-template-columns: 1fr 1fr; } .cs-films figure:last-child { grid-column: span 2; max-width: 50%; justify-self: center; width: 100%; } }

/* Campaign stills: tall frames + one wide */
.cs-stills { margin-top: clamp(28px, 4vh, 44px); display: grid; grid-auto-flow: dense; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 26cqi, 420px); gap: 10px; }
.cs-stills figure { margin: 0; border-radius: 14px; overflow: hidden; background: #2a0a14; }
.cs-stills img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.cs-stills figure:hover img { transform: scale(1.04); }
.cs-stills__w { grid-column: span 2; }
@container (max-width: 780px) { .cs-stills { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; } }

/* A photo beside text */
.cs-photo { margin: 0; }
.cs-photo img { width: 100%; height: auto; display: block; border-radius: 16px; box-shadow: 0 40px 70px -44px rgba(17, 17, 17, .55); }
.cs-photo figcaption { margin-top: 10px; font-size: 14px; opacity: .7; }
.cs-pair { margin-top: clamp(32px, 5vh, 52px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(20px, 3cqi, 40px); align-items: center; }
@container (max-width: 780px) { .cs-pair { grid-template-columns: 1fr; } }

/* A full-width page presentation: a framed browser window playing a real-time recording of the page */
.cs-film--page .cs-film__screen { background: #fff; }
.cs-film--page .cs-film__screen video { aspect-ratio: 16 / 10; object-position: top; }
.cs-section:not([data-theme="dark"]) .cs-film--page .cs-film__screen { box-shadow: 0 50px 90px -50px rgba(17, 17, 17, .55), 0 0 0 1px rgba(17, 17, 17, .1); }

/* Services → Local Search Marketing (dropdown on desktop, sub-link in the phone menu) */
.nav-item { position: relative; display: inline-flex; }
.nav-sub { position: absolute; top: 100%; left: -16px; padding-top: 14px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .25s, transform .25s, visibility .25s; z-index: 5; }
.nav-item--sub:hover .nav-sub, .nav-item--sub:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
.cs-nav .nav-sub a { display: block; white-space: nowrap; padding: 14px 18px; border-radius: 14px; background: rgba(14, 23, 51, .96); color: #fbfaf6; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .55); text-decoration: none; }
.cs-nav .nav-sub a:hover { background: #16224a; text-decoration: none; }
.cs-menu > a.cs-menu__sub { font: 600 20px/1.2 "Instrument Sans", sans-serif; letter-spacing: .02em; text-transform: none; padding-left: 22px; margin: -2px 0 8px; position: relative; opacity: .85; }
.cs-menu > a.cs-menu__sub::before { content: "↳"; position: absolute; left: 0; }
