/* ==========================================================================
   RBR Cinematic Site, core stylesheet
   Photo led, motion driven layout system distilled from the Cannady V1 to V4
   builds. Every colour, font and timing comes from the tokens below, so a new
   client only changes the token block (or a [data-ground] set).
   Class prefix: cx-   Load order: site shell CSS, then cine.css, then brand.css
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand: replace per client (see references/brand-intake.md) */
  --cx-ink: #282e3f;          /* deep brand colour: hero panel, bands, buttons */
  --cx-ink-2: #151925;        /* deeper shade for footers, accordion, hovers */
  --cx-accent: #cf9455;       /* signature accent: rules, numbers, fills */
  --cx-accent-deep: #9c6630;  /* accent dark enough for small text on light grounds */
  --cx-accent-soft: #e9c9a5;  /* accent tint for small text on ink */
  --cx-fill: #9c6630;         /* background of text buttons and the call bar: must reach 4.5:1 with --cx-on-fill */
  --cx-on-fill: #ffffff;

  /* Ground: white page with an ink hero (the V2 look). See [data-ground] */
  --cx-ground: #ffffff;
  --cx-ground-2: #f3f3f1;
  --cx-surface: #ffffff;
  --cx-line: #e4e2dd;
  --cx-heading: #1f2229;
  --cx-text: #565963;
  --cx-on-ink: #ffffff;
  --cx-on-ink-muted: #c9ccd4;

  --cx-hero-bg: var(--cx-ink);
  --cx-hero-title: var(--cx-on-ink);
  --cx-hero-text: var(--cx-on-ink-muted);
  --cx-hero-kicker: var(--cx-accent-soft);
  --cx-hero-grid: rgba(255, 255, 255, .05);

  /* Type */
  --cx-font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --cx-font-display: "Marcellus", Georgia, serif;
  --cx-font-script: "Dynalight", cursive;

  /* Motion */
  --cx-ease: cubic-bezier(.22, .61, .36, 1);
  --cx-ease-wipe: cubic-bezier(.77, 0, .18, 1);
  --cx-hero-ms: 7s;            /* keep in step with data-interval on the hero */

  /* Shape */
  --cx-shadow: 0 18px 40px -18px rgba(15, 18, 28, .45);
  --cx-radius: 2px;
  --cx-container: 1200px;
  --cx-header-h: 84px;
  --cx-gutter: max(24px, calc((100vw - var(--cx-container)) / 2));
}

/* Cream ground: the V4 look. Ivory sections, cream hero, ink bands for CTAs */
[data-ground="cream"] {
  --cx-ground: #faf7f1;
  --cx-ground-2: #f3ede2;
  --cx-surface: #ffffff;
  --cx-line: #e7dccb;
  --cx-hero-bg: var(--cx-ground);
  --cx-hero-title: var(--cx-ink);
  --cx-hero-text: var(--cx-text);
  --cx-hero-kicker: var(--cx-accent-deep);
  --cx-hero-grid: color-mix(in srgb, var(--cx-accent) 14%, transparent);
}

/* Night ground: fully dark site for premium hospitality, auto, nightlife */
[data-ground="night"] {
  --cx-ground: var(--cx-ink-2);
  --cx-ground-2: var(--cx-ink);
  --cx-surface: color-mix(in srgb, var(--cx-ink) 70%, #fff 6%);
  --cx-line: rgba(255, 255, 255, .12);
  --cx-heading: #ffffff;
  --cx-text: var(--cx-on-ink-muted);
  --cx-accent-deep: var(--cx-accent-soft);
}

/* ---------- 2. Base ---------- */
.cx-page, .cx-page *, .cx-page *::before, .cx-page *::after, .cx-callbar, .cx-callbar * { box-sizing: border-box; }
.cx-page { background: var(--cx-ground); color: var(--cx-text); font-family: var(--cx-font-body); }
.cx-page img { max-width: 100%; height: auto; display: block; }
.cx-wrap { width: 100%; max-width: calc(var(--cx-container) + 48px); margin: 0 auto; padding: 0 24px; }
.cx-section { padding: clamp(80px, 9vw, 120px) 0; background: var(--cx-ground); }
.cx-section.is-alt { background: var(--cx-ground-2); }
.cx-section.is-ink { background: var(--cx-ink); color: var(--cx-on-ink-muted); }
.cx-section.is-ink h2, .cx-section.is-ink h3 { color: var(--cx-on-ink); }
.cx-display { font-family: var(--cx-font-display); font-weight: 400; line-height: 1.08; color: var(--cx-heading); }
.cx-page h2 { font-family: var(--cx-font-display); font-weight: 400; font-size: clamp(32px, 3.8vw, 52px); line-height: 1.1; color: var(--cx-heading); margin: 0 0 .5em; }
.cx-page h3 { color: var(--cx-heading); }
.cx-accent { color: var(--cx-accent); }
.cx-script { font-family: var(--cx-font-script); font-style: normal; color: var(--cx-accent); font-size: 1.2em; line-height: .8; }
.cx-eyebrow { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 18px; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--cx-accent-deep); }
.cx-eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--cx-accent); }
.is-ink .cx-eyebrow { color: var(--cx-accent-soft); }
.cx-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.cx-head-row h2 { margin: 0; }
.cx-head-row > p { max-width: 420px; margin: 0; }
.cx-page :focus-visible { outline: 2px solid var(--cx-accent); outline-offset: 3px; }

/* ---------- 3. Buttons: two part pill with arrow cell, hover brightens ---------- */
.cx-btn { display: inline-flex; align-items: stretch; border: 0; font: inherit; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; cursor: pointer; border-radius: var(--cx-radius); overflow: hidden; transition: filter .3s var(--cx-ease), box-shadow .3s var(--cx-ease), transform .3s var(--cx-ease), background .3s, color .3s; }
.cx-btn > span { display: inline-flex; align-items: center; padding: 17px 24px; }
.cx-btn > .cx-btn-arrow { padding: 0 15px; background: rgba(0, 0, 0, .14); }
.cx-btn-arrow svg { transition: transform .3s var(--cx-ease); }
.cx-btn:hover { filter: brightness(1.1) saturate(1.05); box-shadow: var(--cx-shadow); transform: translateY(-2px); }
.cx-btn:hover .cx-btn-arrow svg { transform: translateX(4px); }
.cx-btn:active { transform: translateY(0); }
.cx-btn-accent { background: var(--cx-fill); color: var(--cx-on-fill); }
.cx-btn-ink { background: var(--cx-ink); color: var(--cx-on-ink); }
.cx-btn-ghost { background: transparent; color: var(--cx-on-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55); }
.cx-btn-ghost:hover { background: var(--cx-on-ink); color: var(--cx-ink); filter: none; }
.cx-btn-ghost.on-light { color: var(--cx-ink); box-shadow: inset 0 0 0 1px var(--cx-ink); }
.cx-btn-ghost.on-light:hover { background: var(--cx-ink); color: var(--cx-on-ink); }
.cx-btn-sm > span { padding: 13px 18px; }
.cx-phone { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 900; line-height: 1.2; color: var(--cx-hero-title); text-decoration: none; }
.cx-phone > svg { width: 44px; height: 44px; padding: 12px; border: 1px solid color-mix(in srgb, var(--cx-accent) 60%, transparent); border-radius: 50%; color: var(--cx-accent); transition: background .3s, color .3s; }
.cx-phone small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cx-hero-kicker); }
.cx-phone:hover > svg { background: var(--cx-accent); color: #fff; }
.cx-phone.on-light { color: var(--cx-heading); }
.cx-phone.on-light small { color: var(--cx-accent-deep); }
.cx-textlink { font-weight: 700; color: var(--cx-ink); border-bottom: 1px solid var(--cx-accent); padding-bottom: 3px; text-decoration: none; transition: color .3s; }
.cx-textlink:hover { color: var(--cx-accent-deep); }

/* ---------- 4. Scroll reveal ---------- */
.cx-reveal { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--cx-ease), transform .9s var(--cx-ease); }
.cx-reveal.in { opacity: 1; transform: none; }
.cx-d1 { transition-delay: .1s; } .cx-d2 { transition-delay: .2s; } .cx-d3 { transition-delay: .3s; }
.no-js .cx-reveal { opacity: 1; transform: none; }

/* ==========================================================================
   HEROES. Pick one per page (references/sections.md, "Hero").
   ========================================================================== */

/* ---------- H1. Split wipe hero (V2/V4): copy panel + wiping photos ---------- */
.cx-hero { position: relative; display: grid; grid-template-columns: 5fr 6fr; min-height: max(640px, calc(100svh - var(--cx-header-h))); background: var(--cx-hero-bg); overflow: hidden; }
.cx-hero-copy { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 90px 60px 130px var(--cx-gutter);
  background: linear-gradient(90deg, var(--cx-hero-grid) 1px, transparent 1px) 0 0 / 80px 80px, var(--cx-hero-bg); }
.cx-hero-inner { max-width: 560px; }
.cx-kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 30px; font-size: 12px; font-weight: 700; letter-spacing: .2em; line-height: 1.6; text-transform: uppercase; color: var(--cx-hero-kicker); }
.cx-kicker::before { content: ""; flex: 0 0 44px; height: 1px; background: var(--cx-accent); }
.cx-titles { display: grid; min-height: 3.6em; font-size: clamp(40px, 5vw, 76px); }
.cx-title { grid-area: 1 / 1; margin: 0; font-family: var(--cx-font-display); font-weight: 400; line-height: 1.04; color: var(--cx-hero-title); }
.cx-line { display: block; overflow: hidden; }
.cx-line > span { display: block; transform: translateY(105%); transition: transform 1s var(--cx-ease); }
.cx-title .cx-line:nth-child(3) > span { color: var(--cx-accent); }
.cx-title.is-active .cx-line > span { transform: none; }
.cx-title.is-active .cx-line:nth-child(1) > span { transition-delay: .25s; }
.cx-title.is-active .cx-line:nth-child(2) > span { transition-delay: .35s; }
.cx-title.is-active .cx-line:nth-child(3) > span { transition-delay: .45s; }
.cx-title.is-leaving .cx-line > span { transform: translateY(-105%); transition-delay: 0s; }
.cx-tag { display: block; margin-top: 18px; font-family: var(--cx-font-script); font-size: .4em; color: var(--cx-hero-kicker); opacity: 0; transform: translateX(-16px); transition: opacity .8s var(--cx-ease) .6s, transform .8s var(--cx-ease) .6s; }
.cx-title.is-active .cx-tag { opacity: 1; transform: none; }
.cx-title.is-leaving .cx-tag { opacity: 0; transition-delay: 0s; }
.cx-lede { color: var(--cx-hero-text); font-size: 17px; max-width: 480px; margin: 28px 0 34px; }
.cx-hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.cx-counter { position: absolute; left: var(--cx-gutter); bottom: 44px; display: flex; align-items: center; gap: 16px; color: var(--cx-hero-title); font-family: var(--cx-font-display); font-size: 15px; letter-spacing: .1em; }
.cx-count-now { color: var(--cx-accent); font-size: 26px; }
.cx-count-bar { width: 120px; height: 1px; background: color-mix(in srgb, var(--cx-hero-title) 25%, transparent); position: relative; overflow: hidden; }
.cx-count-bar i { position: absolute; inset: 0; background: var(--cx-accent); transform: scaleX(0); transform-origin: left; }
.cx-count-bar i.run { animation: cx-fill var(--cx-hero-ms) linear forwards; }
@keyframes cx-fill { to { transform: scaleX(1); } }
.cx-hero-media { position: relative; overflow: hidden; background: var(--cx-ink-2); }
.cx-shot { position: absolute; inset: 0; margin: 0; clip-path: inset(0 0 0 100%); transition: clip-path 1.25s var(--cx-ease-wipe); z-index: 1; }
.cx-shot.is-active { clip-path: inset(0); z-index: 2; }
.cx-shot.was-active { clip-path: inset(0); z-index: 1; transition: none; }
.cx-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transform: scale(1.15); transition: transform 8s linear; }
.cx-shot.is-active img { transform: scale(1); }
.cx-hero-media::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(10, 12, 20, .45), transparent 30%); }
.cx-hero-card { position: absolute; z-index: 4; left: 0; bottom: 0; max-width: 60%; background: var(--cx-surface); padding: 20px 28px; border-top: 3px solid var(--cx-accent); display: flex; flex-direction: column; gap: 4px; }
.cx-hero-card strong { color: var(--cx-heading); font-size: 15px; }
.cx-hero-card span { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cx-accent-deep); }
.cx-hero-ctrl { position: absolute; z-index: 4; right: 0; bottom: 0; display: flex; }
.cx-hero-ctrl button { width: 60px; height: 60px; border: 0; background: var(--cx-ink); color: var(--cx-on-ink); display: grid; place-items: center; cursor: pointer; transition: background .3s, filter .3s; }
.cx-hero-ctrl button:last-child { background: var(--cx-fill); color: var(--cx-on-fill); }
.cx-hero-ctrl button:hover { filter: brightness(1.2); }

/* ---------- H2. Full bleed fade hero (V1): centred title box over photos ---------- */
.cx-hero-full { position: relative; height: min(100svh, 880px); min-height: 620px; overflow: hidden; background: var(--cx-ink-2); color: #fff; }
.cx-fslide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--cx-ease), visibility 1.2s; }
.cx-fslide.is-active { opacity: 1; visibility: visible; }
.cx-fslide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transform: scale(1.12); }
.cx-fslide.is-active img { animation: cx-kenburns 9s linear forwards; }
@keyframes cx-kenburns { to { transform: scale(1); } }
.cx-hero-full::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(0deg, rgba(10, 12, 20, .75), rgba(10, 12, 20, .05) 55%), linear-gradient(180deg, rgba(10, 12, 20, .45), transparent 25%); }
.cx-full-copy { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; padding: 120px 24px 110px; }
.cx-full-kicker { margin: 0 0 18px; font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.cx-full-kicker::before, .cx-full-kicker::after { content: ""; display: inline-block; width: 34px; height: 1px; background: var(--cx-accent); vertical-align: middle; margin: 0 14px; }
.cx-full-titles { display: grid; place-items: center; min-height: 140px; width: 100%; }
.cx-ftitle { grid-area: 1 / 1; margin: 0; padding: 14px 34px 16px; font-family: var(--cx-font-display); font-weight: 400; font-size: clamp(30px, 4.6vw, 58px); line-height: 1.12; letter-spacing: .02em; text-transform: uppercase; background: color-mix(in srgb, var(--cx-ink) 82%, transparent); opacity: 0; transform: translateY(-60px); transition: opacity .9s var(--cx-ease), transform .9s var(--cx-ease); }
.cx-ftitle.is-active { opacity: 1; transform: none; transition-delay: .35s; }
.cx-ftitle.is-leaving { opacity: 0; transform: translateY(40px); transition-delay: 0s; }
.cx-full-sub { margin: 22px 0 26px; font-size: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.cx-dots { position: absolute; z-index: 3; bottom: 40px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.cx-dots button { width: 34px; height: 3px; padding: 0; border: 0; background: rgba(255, 255, 255, .35); position: relative; overflow: hidden; cursor: pointer; }
.cx-dots button::after { content: ""; position: absolute; inset: 0; background: var(--cx-accent); transform: scaleX(0); transform-origin: left; }
.cx-dots button.is-active::after { animation: cx-fill var(--cx-hero-ms) linear forwards; }

/* ---------- H3. Arch hero (V3): editorial copy + arched rotating photo ---------- */
.cx-hero-arch { padding: 80px 0 90px; background: radial-gradient(1200px 500px at 85% 10%, var(--cx-ground-2), transparent 70%), var(--cx-ground); overflow: hidden; }
.cx-arch-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 70px; align-items: center; }
.cx-arch-title { font-family: var(--cx-font-display); font-weight: 400; font-size: clamp(42px, 5.2vw, 76px); line-height: 1.04; color: var(--cx-ink); margin: 0 0 26px; }
.cx-arch-title em { font-style: normal; color: var(--cx-accent-deep); position: relative; display: inline-block; }
.cx-arch-title em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .08em; background: var(--cx-accent); transform: scaleX(0); transform-origin: left; animation: cx-under 1.2s .6s var(--cx-ease) forwards; }
@keyframes cx-under { to { transform: scaleX(1); } }
.cx-arch { position: relative; overflow: hidden; border-radius: 999px 999px 6px 6px; background: var(--cx-ink); isolation: isolate; }
.cx-arch-art { position: relative; padding: 0 0 30px 30px; isolation: isolate; }
.cx-arch-art .cx-arch { aspect-ratio: 4 / 5.2; box-shadow: 0 40px 80px -40px rgba(15, 18, 28, .55); }
.cx-arch-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.4s var(--cx-ease), transform 8s linear; }
.cx-arch-img.is-active { opacity: 1; transform: none; }
.cx-arch-line { position: absolute; z-index: -1; top: -22px; right: -22px; bottom: 52px; left: 52px; border: 1px solid var(--cx-accent); border-radius: 999px 999px 6px 6px; }
.cx-badge { position: absolute; z-index: 2; background: var(--cx-surface); box-shadow: 0 20px 40px -18px rgba(15, 18, 28, .4); display: flex; align-items: center; gap: 12px; padding: 16px 20px; animation: cx-float 6s ease-in-out infinite; }
.cx-badge strong { display: block; color: var(--cx-heading); font-size: 14px; }
.cx-badge span { font-size: 12px; line-height: 1.4; }
.cx-badge.a { left: -10px; top: 58%; }
.cx-badge.b { right: -20px; bottom: 70px; animation-delay: -3s; }
@keyframes cx-float { 50% { transform: translateY(-10px); } }

/* ---------- H4. Video hero: muted loop behind the split or full copy ---------- */
.cx-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cx-hero-full .cx-hero-video + .cx-fslide { display: none; }

/* ---------- Pause control (accessibility: anything moving over 5s) ---------- */
.cx-pause { position: absolute; z-index: 5; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(10, 12, 20, .35); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(4px); transition: background .3s, border-color .3s; }
.cx-pause:hover { background: var(--cx-accent); border-color: var(--cx-accent); }
.cx-pause .i-play { display: none; }
.cx-paused .cx-pause .i-play { display: block; }
.cx-paused .cx-pause .i-pause { display: none; }
.cx-paused .cx-ticker-track, .cx-paused .cx-marquee-track, .cx-paused .cx-badge, .cx-paused .cx-lit img,
.cx-paused .cx-count-bar i, .cx-paused .cx-dots button::after, .cx-paused .cx-fslide img { animation-play-state: paused !important; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */

/* ---------- Ticker band ---------- */
.cx-ticker { background: var(--cx-ink); color: var(--cx-on-ink); overflow: hidden; padding: 16px 0; }
.cx-ticker.is-accent { background: var(--cx-accent); }
.cx-ticker-track { display: flex; width: max-content; animation: cx-scroll 40s linear infinite; }
.cx-ticker span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.cx-ticker span::after { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--cx-accent); }
.cx-ticker.is-accent span::after { background: var(--cx-ink); }
.cx-ticker:hover .cx-ticker-track { animation-play-state: paused; }
@keyframes cx-scroll { to { transform: translateX(-50%); } }

/* ---------- Statement + count up stats ---------- */
.cx-intro-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 80px; align-items: start; }
.cx-statement { font-family: var(--cx-font-display); font-weight: 400; font-size: clamp(36px, 4.6vw, 62px); line-height: 1.08; color: var(--cx-ink); }
.cx-intro-body { padding-top: 34px; border-top: 1px solid var(--cx-line); font-size: 17px; }
.cx-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 24px; margin-top: 36px; }
.cx-stats > div { border-left: 2px solid var(--cx-accent); padding-left: 18px; }
.cx-stats strong { font-family: var(--cx-font-display); font-weight: 400; font-size: 52px; line-height: 1; color: var(--cx-ink); }
.cx-stats sup { font-family: var(--cx-font-display); font-size: 28px; color: var(--cx-accent); vertical-align: top; }
.cx-stats span { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
[data-ground="night"] .cx-statement, [data-ground="night"] .cx-stats strong { color: var(--cx-on-ink); }

/* ---------- Expanding accordion panels (V2) ---------- */
.cx-accordion { display: flex; height: 600px; background: var(--cx-ink-2); }
.cx-panel { position: relative; flex: 1; min-width: 0; overflow: hidden; color: #fff; text-decoration: none; transition: flex .9s var(--cx-ease); border-right: 1px solid rgba(255, 255, 255, .12); }
.cx-panel:last-child { border-right: 0; }
.cx-accordion:not(:hover) .cx-panel.is-active, .cx-panel:hover, .cx-panel:focus-visible { flex: 3.2; }
.cx-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.55); transform: scale(1.08); transition: filter .9s var(--cx-ease), transform 1.4s var(--cx-ease); }
.cx-accordion:not(:hover) .cx-panel.is-active img, .cx-panel:hover img, .cx-panel:focus-visible img { filter: grayscale(0) brightness(.9); transform: none; }
.cx-panel-shade { position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--cx-ink-2) 92%, transparent) 0%, color-mix(in srgb, var(--cx-ink-2) 30%, transparent) 55%, transparent 100%); }
.cx-panel-num { position: absolute; top: 30px; left: 30px; z-index: 1; font-family: var(--cx-font-display); font-size: 22px; color: var(--cx-accent); }
.cx-panel-vert { position: absolute; left: 50%; bottom: 40px; z-index: 1; translate: -50% 0; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 15px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; transition: opacity .4s var(--cx-ease); }
.cx-panel-body { position: absolute; left: 40px; right: 40px; bottom: 44px; z-index: 1; max-width: 520px; opacity: 0; transform: translateY(24px); transition: opacity .5s var(--cx-ease), transform .6s var(--cx-ease); pointer-events: none; }
.cx-accordion:not(:hover) .cx-panel.is-active .cx-panel-body, .cx-panel:hover .cx-panel-body, .cx-panel:focus-visible .cx-panel-body { opacity: 1; transform: none; transition-delay: .3s; }
.cx-accordion:not(:hover) .cx-panel.is-active .cx-panel-vert, .cx-panel:hover .cx-panel-vert, .cx-panel:focus-visible .cx-panel-vert { opacity: 0; }
.cx-panel-script { font-family: var(--cx-font-script); font-size: 26px; color: var(--cx-accent-soft); }
.cx-panel h3 { color: #fff; font-size: clamp(28px, 2.6vw, 38px); margin: 4px 0 12px; white-space: nowrap; }
.cx-panel-text { display: block; font-size: 16px; color: #d4d7de; line-height: 1.65; margin-bottom: 22px; }
.cx-panel-link { display: inline-flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--cx-accent); border-bottom: 1px solid var(--cx-accent); padding-bottom: 6px; }

/* ---------- Grayscale tiles (V1): colour floods in, panel opens ---------- */
.cx-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cx-tile { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--cx-ink-2); color: #fff; isolation: isolate; text-decoration: none; }
.cx-tile img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transform: scale(1.02); transition: filter .7s var(--cx-ease), transform 1.1s var(--cx-ease); }
.cx-tile:hover img, .cx-tile:focus-visible img { filter: grayscale(0) brightness(1.06); transform: scale(1.1); }
.cx-tile-panel { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; padding: 22px 20px 18px; text-align: center; background: color-mix(in srgb, var(--cx-ink) 94%, transparent); border-bottom: 3px solid var(--cx-accent); transition: background .45s var(--cx-ease); }
.cx-tile h3 { color: #fff; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 4px; }
.cx-tile-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--cx-ease); }
.cx-tile-more > span { overflow: hidden; min-height: 0; display: block; font-size: 14px; line-height: 1.6; color: #d4d7de; }
.cx-tile:hover .cx-tile-more, .cx-tile:focus-visible .cx-tile-more { grid-template-rows: 1fr; }
.cx-tile:hover .cx-tile-panel { background: color-mix(in srgb, var(--cx-ink-2) 97%, transparent); }

/* ---------- Service index: hover a row, the photo swaps (V2) ---------- */
.cx-index-grid { display: grid; grid-template-columns: 5fr 6fr; gap: 70px; align-items: stretch; }
.cx-index { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid var(--cx-line); }
.cx-index-item { width: 100%; display: grid; grid-template-columns: 54px 1fr 24px; gap: 14px; align-items: start; padding: 22px 0; background: none; border: 0; border-bottom: 1px solid var(--cx-line); text-align: left; color: var(--cx-heading); position: relative; font: inherit; cursor: pointer; }
.cx-index-item::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--cx-accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--cx-ease); }
.cx-index-item.is-active::after { transform: scaleX(1); }
.cx-index-num { font-family: var(--cx-font-display); font-size: 20px; color: color-mix(in srgb, var(--cx-text) 55%, transparent); transition: color .3s; }
.cx-index-title { display: block; font-size: 21px; font-weight: 800; transition: color .3s, transform .4s var(--cx-ease); }
.cx-index-text { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: 15px; font-weight: 400; color: var(--cx-text); line-height: 1.65; transition: max-height .6s var(--cx-ease), margin .5s var(--cx-ease), opacity .5s; }
.cx-index-item.is-active .cx-index-text { max-height: 220px; margin-top: 10px; opacity: 1; }
.cx-index-arrow { color: color-mix(in srgb, var(--cx-text) 55%, transparent); transition: color .3s, transform .4s var(--cx-ease); }
.cx-index-item:hover .cx-index-title, .cx-index-item.is-active .cx-index-title { color: var(--cx-ink); transform: translateX(6px); }
.cx-index-item:hover .cx-index-num, .cx-index-item.is-active .cx-index-num, .cx-index-item.is-active .cx-index-arrow { color: var(--cx-accent); }
.cx-index-item.is-active .cx-index-arrow { transform: rotate(-45deg); }
[data-ground="night"] .cx-index-item:hover .cx-index-title, [data-ground="night"] .cx-index-item.is-active .cx-index-title { color: #fff; }
.cx-index-media { position: relative; min-height: 560px; overflow: hidden; background: var(--cx-ink); }
.cx-index-shot { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.06); transition: opacity .8s var(--cx-ease), transform 1.2s var(--cx-ease); }
.cx-index-shot.is-active { opacity: 1; transform: none; }
.cx-index-shot img { width: 100%; height: 100%; object-fit: cover; }
.cx-index-media::before { content: ""; position: absolute; z-index: 1; inset: 22px; border: 1px solid rgba(255, 255, 255, .45); pointer-events: none; }
.cx-index-cta { position: absolute; z-index: 2; right: 0; bottom: 0; background: var(--cx-ink); color: var(--cx-on-ink); padding: 22px 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* ---------- Tabs with sliding ink bar (V3) ---------- */
.cx-tabs { position: relative; display: grid; grid-template-columns: repeat(var(--cx-tab-count, 4), 1fr); border-bottom: 1px solid var(--cx-line); margin-bottom: 50px; }
.cx-tab { padding: 20px 10px; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--cx-text) 75%, transparent); cursor: pointer; transition: color .3s; }
.cx-tab.is-active, .cx-tab:hover { color: var(--cx-ink); }
.cx-tab-ink { position: absolute; bottom: -1px; left: 0; height: 3px; width: calc(100% / var(--cx-tab-count, 4)); background: var(--cx-accent); transition: transform .5s var(--cx-ease); }
.cx-tabpanel { display: grid; grid-template-columns: 5fr 7fr; gap: 70px; align-items: center; }
.cx-tabpanel[hidden] { display: none; }
.cx-tabpanel.is-active { animation: cx-rise .7s var(--cx-ease); }
@keyframes cx-rise { from { opacity: 0; transform: translateY(20px); } }
.cx-tabpanel-media { aspect-ratio: 1; overflow: hidden; border-radius: 4px 220px 4px 4px; }
.cx-tabpanel-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--cx-ease); }
.cx-tabpanel-media:hover img { transform: scale(1.06); }

/* ---------- Path cards: arch cards that flood with ink (V3) ---------- */
.cx-paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cx-path { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 300px; padding: 40px 28px 28px; background: var(--cx-ground-2); color: var(--cx-ink); text-decoration: none; overflow: hidden; isolation: isolate; border-radius: 160px 160px 4px 4px; transition: transform .5s var(--cx-ease), box-shadow .5s var(--cx-ease), color .5s var(--cx-ease); }
.cx-path::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cx-ink); transform: translateY(101%); transition: transform .6s var(--cx-ease); }
.cx-path:hover, .cx-path:focus-visible { transform: translateY(-10px); box-shadow: 0 30px 50px -28px rgba(15, 18, 28, .6); color: #fff; }
.cx-path:hover::before, .cx-path:focus-visible::before { transform: none; }
.cx-path-q { margin-top: 20px; font-family: var(--cx-font-display); font-size: 22px; line-height: 1.3; flex: 1; }
.cx-path-go { margin-top: 18px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; transition: background .4s, border-color .4s; }
.cx-path:hover .cx-path-go { background: var(--cx-accent); border-color: var(--cx-accent); color: #fff; }

/* ---------- Founder / feature spread ---------- */
.cx-feature { position: relative; background: var(--cx-ink-2); color: var(--cx-on-ink-muted); overflow: hidden; }
.cx-feature-media { position: absolute; inset: 0 0 0 42%; }
.cx-feature-media img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 20%; }
.cx-feature-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--cx-ink-2) 0%, color-mix(in srgb, var(--cx-ink-2) 60%, transparent) 30%, transparent 60%); }
.cx-feature-copy { position: relative; max-width: 560px; padding: 120px 0; }
.cx-quote { margin: 10px 0 26px; padding-left: 28px; border-left: 2px solid var(--cx-accent); font-family: var(--cx-font-display); font-size: clamp(28px, 3.2vw, 44px); line-height: 1.2; color: var(--cx-on-ink); }
.cx-creds { list-style: none; padding: 0; margin: 28px 0 34px; display: grid; gap: 10px; }
.cx-creds li { display: flex; gap: 12px; color: var(--cx-on-ink); }
.cx-creds li::before { content: ""; flex: 0 0 8px; height: 8px; margin-top: 9px; transform: rotate(45deg); background: var(--cx-accent); }
[data-ground="cream"] .cx-feature { background: var(--cx-ground-2); color: var(--cx-text); }
[data-ground="cream"] .cx-feature-media::after { background: linear-gradient(90deg, var(--cx-ground-2) 0%, color-mix(in srgb, var(--cx-ground-2) 55%, transparent) 22%, transparent 50%); }
[data-ground="cream"] .cx-quote { color: var(--cx-ink); }
[data-ground="cream"] .cx-creds li { color: var(--cx-heading); }

/* ---------- Area cards: ink floods from the corner (V2 counties) ---------- */
.cx-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cx-card { position: relative; display: flex; flex-direction: column; min-height: 320px; padding: 40px 34px 34px; background: var(--cx-surface); color: var(--cx-text); text-decoration: none; overflow: hidden; isolation: isolate; box-shadow: 0 0 0 1px var(--cx-line); transition: color .5s var(--cx-ease), transform .5s var(--cx-ease), box-shadow .5s var(--cx-ease); }
.cx-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--cx-ink); clip-path: circle(0% at 100% 0%); transition: clip-path .8s var(--cx-ease); }
.cx-card:hover { color: var(--cx-on-ink-muted); transform: translateY(-8px); box-shadow: var(--cx-shadow); }
.cx-card:hover::before { clip-path: circle(150% at 100% 0%); }
.cx-card-num { position: absolute; right: 28px; top: 20px; font-family: var(--cx-font-display); font-size: 64px; line-height: 1; color: var(--cx-ground-2); transition: color .5s; }
.cx-card:hover .cx-card-num { color: color-mix(in srgb, var(--cx-accent) 30%, transparent); }
.cx-card-kicker { font-family: var(--cx-font-script); font-size: 26px; color: var(--cx-accent-deep); }
.cx-card h3 { font-size: 26px; margin: 4px 0 16px; transition: color .5s; }
.cx-card:hover h3 { color: #fff; }
.cx-card:hover .cx-card-kicker { color: var(--cx-accent-soft); }
.cx-card-body { flex: 1; font-size: 15px; line-height: 1.8; }
.cx-card-link { margin-top: 24px; display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--cx-accent-deep); }
.cx-card:hover .cx-card-link { color: var(--cx-accent); }
.cx-card:focus-visible { color: var(--cx-on-ink-muted); }
.cx-card:focus-visible::before { clip-path: circle(150% at 100% 0%); }
.cx-card:focus-visible h3 { color: #fff; }

/* ---------- Testimonial rail ---------- */
.cx-rail-btns { display: flex; gap: 10px; }
.cx-rail-btns button { width: 54px; height: 54px; border: 1px solid var(--cx-line); background: transparent; color: var(--cx-ink); display: grid; place-items: center; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.cx-rail-btns button:hover { background: var(--cx-accent); border-color: var(--cx-accent); color: #fff; }
.cx-rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(340px, 400px); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--cx-gutter) 30px; scroll-padding-inline: var(--cx-gutter); scrollbar-width: none; }
.cx-rail::-webkit-scrollbar { display: none; }
.cx-rail > * { scroll-snap-align: start; }
.cx-qcard { margin: 0; padding: 40px 34px 30px; display: flex; flex-direction: column; background: var(--cx-surface); box-shadow: 0 0 0 1px var(--cx-line); transition: transform .5s var(--cx-ease), box-shadow .5s var(--cx-ease); }
.cx-qcard:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--cx-accent), var(--cx-shadow); }
.cx-qmark { font-family: var(--cx-font-display); font-size: 110px; line-height: .6; height: 44px; color: var(--cx-accent); }
.cx-qcard blockquote { margin: 18px 0 26px; flex: 1; font-size: 18px; line-height: 1.6; color: var(--cx-heading); }
.cx-qcard figcaption { padding-top: 18px; border-top: 1px solid var(--cx-line); font-size: 13px; }
.cx-qcard figcaption strong { display: block; letter-spacing: .06em; text-transform: uppercase; color: var(--cx-accent-deep); }

/* ---------- Press: marquee and lit in turn strip ---------- */
.cx-press { position: relative; padding: 110px 0 90px; background: var(--cx-ink); color: var(--cx-on-ink-muted); overflow: hidden; }
.cx-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.cx-marquee-track { display: flex; gap: 18px; width: max-content; animation: cx-scroll 50s linear infinite; }
.cx-marquee:hover .cx-marquee-track { animation-play-state: paused; }
.cx-logo { flex: 0 0 210px; height: 140px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); transition: border-color .4s, background .4s, transform .4s var(--cx-ease); }
.cx-logo img { max-width: 70%; opacity: .75; transition: opacity .4s; }
.cx-logo:hover { border-color: var(--cx-accent); transform: translateY(-6px); }
.cx-logo:hover img { opacity: 1; }
/* Lit strip: each logo lights in turn. Set --n to the logo count. */
.cx-lit { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cx-lit img { width: 120px; opacity: .5; animation: cx-lit calc(var(--n, 6) * 1.2s) var(--cx-ease) infinite; animation-delay: calc(var(--i, 0) * 1.2s); }
.cx-lit:hover img { animation-play-state: paused; }
@keyframes cx-lit { 0%, 16%, 100% { opacity: .5; transform: none; } 3%, 12% { opacity: 1; transform: translateY(-4px) scale(1.08); } }

/* ---------- Process steps: the rule draws in ---------- */
.cx-steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--cx-line); }
.cx-step { position: relative; padding: 40px 40px 10px 0; }
.cx-step + .cx-step { padding-left: 40px; border-left: 1px solid var(--cx-line); }
.cx-step::before { content: ""; position: absolute; left: 0; top: -1px; height: 2px; width: 0; background: var(--cx-accent); transition: width .9s var(--cx-ease); }
.cx-step.in::before { width: 100%; }
.cx-step-num { display: block; font-family: var(--cx-font-display); font-size: 56px; line-height: 1; color: var(--cx-accent); margin-bottom: 18px; }

/* ---------- FAQ with sticky side ---------- */
.cx-faq-grid { display: grid; grid-template-columns: 4fr 7fr; gap: 70px; align-items: start; }
.cx-faq-side { position: sticky; top: calc(var(--cx-header-h) + 30px); }
.cx-faq-item { background: var(--cx-surface); box-shadow: 0 0 0 1px var(--cx-line); margin-bottom: 10px; padding: 0 26px; }
.cx-faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; background: none; border: 0; font: inherit; font-size: 18px; font-weight: 700; color: var(--cx-heading); text-align: left; cursor: pointer; }
.cx-faq-icon { flex: 0 0 30px; height: 30px; border: 1px solid var(--cx-accent); color: var(--cx-accent-deep); display: grid; place-items: center; transition: transform .35s var(--cx-ease), background .35s, color .35s; }
.cx-faq-item.open .cx-faq-icon { transform: rotate(45deg); background: var(--cx-accent); color: #fff; }
.cx-faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--cx-ease); }
.cx-faq-a > div { overflow: hidden; }
.cx-faq-a p { margin: 0; padding-bottom: 20px; }
.cx-faq-item.open .cx-faq-a { grid-template-rows: 1fr; }

/* ---------- Closing contact band with form ---------- */
.cx-contact { position: relative; padding: clamp(80px, 9vw, 120px) 0; background: var(--cx-ink); color: var(--cx-on-ink-muted); overflow: hidden; }
.cx-contact::before { content: ""; position: absolute; left: -160px; bottom: -160px; width: 480px; height: 480px; border: 1px solid color-mix(in srgb, var(--cx-accent) 25%, transparent); border-radius: 50%; }
.cx-contact-grid { position: relative; display: grid; grid-template-columns: 5fr 6fr; gap: 70px; align-items: center; }
.cx-contact h2 { color: var(--cx-on-ink); }
.cx-contact-phone { display: inline-block; margin: 10px 0 18px; font-size: 38px; font-weight: 900; color: var(--cx-on-ink); text-decoration: none; }
.cx-contact-phone:hover { color: var(--cx-accent); }
.cx-form { background: var(--cx-surface); padding: 40px; border-top: 4px solid var(--cx-accent); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); display: grid; gap: 14px; }
.cx-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cx-form input, .cx-form select, .cx-form textarea { width: 100%; padding: 15px 16px; border: 1px solid var(--cx-line); background: var(--cx-ground); font: inherit; font-size: 15px; color: var(--cx-heading); border-radius: var(--cx-radius); transition: border-color .3s, background .3s; }
.cx-form input:focus, .cx-form select:focus, .cx-form textarea:focus { outline: none; border-color: var(--cx-accent); background: var(--cx-surface); }
.cx-form button[type="submit"] { padding: 17px; border: 0; background: var(--cx-fill); color: var(--cx-on-fill); font: inherit; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: filter .3s, box-shadow .3s; }
.cx-form button[type="submit"]:hover { filter: brightness(1.1); box-shadow: var(--cx-shadow); }
.cx-hp { position: absolute; left: -9999px; }

/* ==========================================================================
   CONVERSION LAYER (references/conversion.md)
   ========================================================================== */
.cx-callbar { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: none; grid-template-columns: 1fr 1fr; box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, .35); transform: translateY(110%); transition: transform .45s var(--cx-ease); padding-bottom: env(safe-area-inset-bottom); background: var(--cx-ink); }
.cx-callbar.show { transform: none; }
.cx-callbar a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: #fff; }
.cx-callbar a:first-child { background: var(--cx-ink); }
.cx-callbar a:last-child { background: var(--cx-fill); color: var(--cx-on-fill); }

/* ==========================================================================
   INNER PAGES (references/inner-pages.md)
   ========================================================================== */
.cx-page-hero { position: relative; min-height: 460px; display: flex; align-items: flex-end; padding: 140px 0 70px; background: var(--cx-ink-2); color: #fff; overflow: hidden; }
.cx-page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; animation: cx-kenburns 12s linear forwards; transform: scale(1.1); }
.cx-page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--cx-ink-2) 92%, transparent), transparent 75%); }
.cx-page-hero .cx-wrap { position: relative; z-index: 1; }
.cx-page-hero h1 { margin: 0 0 14px; font-family: var(--cx-font-display); font-weight: 400; font-size: clamp(38px, 5vw, 66px); line-height: 1.06; color: #fff; max-width: 820px; }
.cx-page-hero p { max-width: 620px; color: var(--cx-on-ink-muted); font-size: 18px; }
.cx-crumbs { display: flex; gap: 10px; margin-bottom: 22px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cx-accent-soft); }
.cx-crumbs a { color: inherit; text-decoration: none; }
.cx-crumbs a:hover { color: #fff; }
.cx-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 70px; align-items: start; }
.cx-aside { position: sticky; top: calc(var(--cx-header-h) + 30px); display: grid; gap: 20px; }
.cx-aside-card { background: var(--cx-ink); color: var(--cx-on-ink-muted); padding: 34px 30px; border-top: 3px solid var(--cx-accent); }
.cx-aside-card h3 { color: #fff; font-family: var(--cx-font-display); font-weight: 400; font-size: 26px; }
.cx-prose { font-size: 17px; line-height: 1.8; max-width: 720px; }
.cx-prose h2 { font-size: clamp(28px, 3vw, 38px); margin-top: 1.6em; }
.cx-prose h3 { font-size: 21px; margin-top: 1.4em; }
.cx-prose ul { padding-left: 0; list-style: none; }
.cx-prose li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.cx-prose li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--cx-accent); }
.cx-prose blockquote { margin: 34px 0; padding: 6px 0 6px 28px; border-left: 2px solid var(--cx-accent); font-family: var(--cx-font-display); font-size: 26px; line-height: 1.35; color: var(--cx-ink); }
.cx-progress { position: fixed; z-index: 95; top: 0; left: 0; height: 3px; width: 100%; background: var(--cx-accent); transform: scaleX(0); transform-origin: left; }
.cx-team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cx-person { position: relative; overflow: hidden; background: var(--cx-ink-2); }
.cx-person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); transition: filter .8s var(--cx-ease), transform 1.2s var(--cx-ease); }
.cx-person:hover img { filter: grayscale(0) brightness(1.05); transform: scale(1.04); }
.cx-person figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; background: linear-gradient(0deg, color-mix(in srgb, var(--cx-ink-2) 90%, transparent), transparent); color: #fff; }
.cx-person strong { display: block; font-family: var(--cx-font-display); font-weight: 400; font-size: 22px; }
.cx-person span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cx-accent-soft); }
.cx-map { position: relative; min-height: 420px; background: var(--cx-ground-2); }
.cx-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

/* ---------- Page transitions (cross document View Transitions) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: cx-vt-out .35s var(--cx-ease) both; }
::view-transition-new(root) { animation: cx-vt-in .55s var(--cx-ease) both; }
@keyframes cx-vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes cx-vt-in { from { opacity: 0; transform: translateY(18px); } }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1179px) {
  .cx-hero { grid-template-columns: 1fr 1fr; }
  .cx-hero-copy { padding-left: 32px; padding-right: 40px; }
  .cx-counter { left: 32px; }
  .cx-tiles, .cx-paths { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
  .cx-hero { grid-template-columns: 1fr; min-height: 0; }
  .cx-hero-media { order: -1; height: 60vh; min-height: 400px; }
  .cx-hero-copy { padding: 54px 24px 100px; }
  .cx-counter { left: 24px; bottom: 40px; }
  .cx-intro-grid, .cx-index-grid, .cx-faq-grid, .cx-contact-grid, .cx-arch-grid, .cx-tabpanel, .cx-split { grid-template-columns: 1fr; gap: 44px; }
  .cx-faq-side, .cx-aside { position: static; }
  .cx-accordion { flex-direction: column; height: auto; }
  .cx-panel, .cx-accordion:not(:hover) .cx-panel.is-active, .cx-panel:hover { flex: none; height: 420px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .cx-panel img { filter: brightness(.75); transform: none; }
  .cx-panel-vert { display: none; }
  .cx-panel-body { opacity: 1; transform: none; left: 24px; right: 24px; bottom: 30px; }
  .cx-panel h3 { white-space: normal; }
  .cx-index-media { min-height: 340px; order: -1; }
  .cx-cards, .cx-team { grid-template-columns: 1fr 1fr; }
  .cx-feature-media { position: relative; inset: auto; height: 420px; }
  .cx-feature-media::after { background: linear-gradient(0deg, var(--cx-ink-2), transparent 50%); }
  [data-ground="cream"] .cx-feature-media::after { background: linear-gradient(0deg, var(--cx-ground-2), transparent 45%); }
  .cx-feature-copy { padding: 10px 0 90px; }
  .cx-steps { grid-template-columns: 1fr; }
  .cx-step, .cx-step + .cx-step { padding: 34px 0 10px; border-left: 0; }
  .cx-arch-art { max-width: 440px; margin: 0 auto; width: 100%; }
  .cx-callbar { display: grid; }
}
@media (max-width: 767px) {
  .cx-head-row { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 34px; }
  .cx-hero-media { height: 52vh; min-height: 340px; }
  .cx-hero-card { padding: 12px 16px; max-width: calc(100% - 100px); }
  .cx-hero-ctrl button { width: 48px; height: 48px; }
  .cx-titles { font-size: 40px; }
  .cx-tiles, .cx-paths, .cx-cards, .cx-team { grid-template-columns: 1fr; }
  .cx-path { min-height: 0; border-radius: 120px 120px 4px 4px; }
  .cx-rail { grid-auto-columns: 84vw; padding: 4px 20px 24px; scroll-padding-inline: 20px; }
  .cx-logo { flex-basis: 150px; height: 100px; }
  .cx-form { padding: 28px 20px; }
  .cx-form .row { grid-template-columns: 1fr; }
  .cx-contact-phone { font-size: 30px; }
  .cx-faq-item { padding: 0 18px; }
  .cx-tabs { grid-template-columns: 1fr 1fr; }
  .cx-tab-ink { display: none; }
  .cx-tab.is-active { box-shadow: inset 0 -3px 0 var(--cx-accent); }
  .cx-badge.a { left: -6px; } .cx-badge.b { right: -6px; }
  .cx-page-hero { min-height: 380px; padding: 120px 0 50px; }
  body:has(.cx-callbar) { padding-bottom: 58px; }
}
/* Hover effects only where a real pointer exists */
@media (hover: none) {
  .cx-btn:hover, .cx-card:hover, .cx-qcard:hover, .cx-path:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-page *, .cx-page *::before, .cx-page *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .cx-line > span, .cx-reveal { transform: none; opacity: 1; }
  .cx-ticker-track, .cx-marquee-track { animation: none; }
  @view-transition { navigation: none; }
}
