/* VARAX extras (Nov 2026): Work section by format, short-form grid, dark mode toggle */
:root { --vx-grad: linear-gradient(100deg, #ff2a1f 0%, #ff5a36 45%, #ff9a5c 100%); }
.overview__media { max-width: 640px; }

.wk-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.wk-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; transition: background .25s, color .25s, border-color .25s; }
.wk-jump a span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wk-jump a:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.wk-jump a:hover span { color: inherit; opacity: .7; }
.wk-group { margin-top: clamp(64px, 8vw, 112px); scroll-margin-top: calc(var(--nav-h, 80px) + 24px); }
.wk-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 8px 20px; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.wk-head__num { font-size: 13px; font-weight: 600; color: var(--accent); align-self: start; padding-top: 10px; font-variant-numeric: tabular-nums; }
.wk-head__title { font-size: clamp(26px, 3vw, 38px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 600; margin: 0; }
.wk-head__blurb { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.wk-head__count { font-size: 13px; color: var(--muted); white-space: nowrap; padding-bottom: 4px; }
@media (max-width: 600px) { .wk-head { grid-template-columns: auto 1fr; } .wk-head__count { display: none; } }
.digital.wk-group .project-grid { margin-top: 0; }
.video-grid--landscape { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 24px; }
.video-grid--landscape > li { flex: 0 0 100%; min-width: 0; }
@media (min-width: 720px) { .video-grid--landscape > li { flex-basis: calc((100% - 24px) / 2); } }
@media (min-width: 1100px) { .video-grid--landscape > li { flex-basis: calc((100% - 48px) / 3); } }

.reel { position: relative; }
.reel__nav { position: absolute; right: 0; top: -84px; display: flex; gap: 8px; }
.wk-group--short .wk-head { padding-right: 112px; }
.wk-group--short .wk-head__count { display: none; }
.reel__btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; transition: background .25s, color .25s, opacity .25s; }
.reel__btn:hover:not(:disabled) { background: var(--text); color: var(--bg); }
.reel__btn:disabled { opacity: .35; cursor: default; }
.reel__track { list-style: none; margin: 0; padding: 4px 0 8px; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 64px), transparent); mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 64px), transparent); }
.reel.is-end .reel__track { -webkit-mask-image: none; mask-image: none; }
.reel__track::-webkit-scrollbar { display: none; }
.reel__item { flex: 0 0 clamp(210px, 21vw, 270px); scroll-snap-align: start; min-width: 0; }
.reel__item .vp { border-radius: 18px; }
.reel__num { margin: 12px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .reel__nav { display: none; }
  .wk-group--short .wk-head { padding-right: 0; }
  .reel__item { flex-basis: 68vw; }
  .reel__track { margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
}

.nav__theme { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; padding: 0;
  border: 1px solid var(--line-strong); background: rgba(23, 25, 30, 0.6); color: #f3f2ee; cursor: pointer; transition: background .25s, transform .4s; }
.nav__theme:hover { background: rgba(255,255,255,.12); transform: rotate(20deg); }
.nav__actions { gap: 8px; }
.theme-dark { background:
  radial-gradient(900px 620px at 100% 6%, rgba(255, 70, 40, .10), transparent 62%),
  radial-gradient(820px 600px at 0% 40%, rgba(255, 42, 31, .06), transparent 60%),
  radial-gradient(900px 640px at 100% 74%, rgba(255, 120, 70, .08), transparent 62%),
  var(--bg); color: var(--text); color-scheme: dark; }

/* Short-form: 3-row grid (Nov 26) */
.short-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.short-grid__item { min-width: 0; }
.short-grid__item .vp { border-radius: 18px; }
@media (max-width: 1000px) { .short-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .short-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .short-grid__item .vp { border-radius: 14px; } }

/* Why Us graphic, in the same style as the ESR carousel cards (Nov 26) */
.why__media { background: var(--surface) !important; border: 1px solid var(--line); }
.wy { position: relative; aspect-ratio: 1; width: 100%; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(22px, 3vw, 32px); color: var(--text); }
.wy__index { font-family: var(--serif); font-style: italic; font-size: clamp(56px, 7vw, 96px); line-height: .8; letter-spacing: -0.05em; }
.wy__svg { width: 100%; max-width: 460px; height: auto; margin: 0 auto; overflow: visible; }
.wy__lane { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.wy__flow { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 18 220; stroke-dashoffset: 238; opacity: .55; animation: wyFlow 3.3s linear infinite; }
@keyframes wyFlow { to { stroke-dashoffset: 0; } }
.wy__pulse { fill: var(--accent); offset-distance: 0%; opacity: 0; animation: wyPulse 3.3s cubic-bezier(.5,.1,.3,1) infinite; }
@keyframes wyPulse { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.wy__chip { fill: var(--surface-2, var(--surface)); stroke: var(--line-strong); }
.wy__label { font: 500 13px var(--font, Inter, system-ui, sans-serif); fill: var(--text); text-anchor: middle; }
.wy__small { font: 500 11px var(--font, Inter, system-ui, sans-serif); fill: var(--muted); text-anchor: middle; letter-spacing: .08em; text-transform: uppercase; }
.wy__orbit { fill: none; stroke: var(--line-strong); stroke-dasharray: 3 6; transform-origin: 240px 200px; animation: wySpin 24s linear infinite; }
@keyframes wySpin { to { transform: rotate(360deg); } }
.wy__node { fill: var(--surface); stroke: var(--accent); stroke-width: 2; }
.wy__check { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 34; stroke-dashoffset: 34; animation: wyCheck 3.3s ease-in-out infinite; }
@keyframes wyCheck { 0%, 30% { stroke-dashoffset: 34; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 34; } }
.wy__ping { fill: none; stroke: var(--accent); transform-origin: 240px 200px; animation: wyPing 3.3s ease-out infinite; }
@keyframes wyPing { 0%, 35% { transform: scale(1); opacity: 0; } 40% { opacity: .5; } 75%, 100% { transform: scale(1.9); opacity: 0; } }
.wy__card { fill: var(--surface); stroke: var(--line-strong); }
.wy__screen { fill: var(--line); }
.wy__play { fill: var(--accent); }
.wy__bar { fill: var(--line-strong); transform-box: fill-box; transform-origin: left center; animation: wyBar 3.3s ease-in-out infinite; }
.wy__bar--1 { fill: var(--accent); opacity: .55; }
.wy__bar--2 { animation-delay: .15s; }
.wy__bar--3 { animation-delay: .3s; }
@keyframes wyBar { 0%, 45% { transform: scaleX(.15); } 65%, 90% { transform: scaleX(1); } 100% { transform: scaleX(.15); } }
.wy__cap { margin: 0; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 28px); color: var(--text); }
@media (prefers-reduced-motion: reduce) { .wy *, .wy__pulse { animation: none !important; } .wy__check { stroke-dashoffset: 0; } .wy__bar { transform: none; } }

/* Short-form: 2 rows on desktop */
@media (min-width: 1001px) { .short-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; } }
.why__media .wy { padding: clamp(24px, 3vw, 36px) !important; box-sizing: border-box; }

/* Engagement (Nov 26): scroll progress, floating booking pill, livelier cards */
.vx-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 350; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); background: var(--vx-grad); }
.vx-book { position: fixed; z-index: 320; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: 999px; background: #0b0b0b; color: #f3f2ee; text-decoration: none; font-size: 14px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 18px 40px -12px rgba(0,0,0,.55); opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none;
  transition: opacity .4s ease, transform .5s cubic-bezier(.2,.7,.2,1), background .25s; }
.vx-book.is-on { opacity: 1; transform: none; pointer-events: auto; }
.vx-book:hover { background: #1a1a1a; }
.vx-book__dot { width: 8px; height: 8px; border-radius: 50%; background: #ff2a1f; box-shadow: 0 0 0 0 rgba(255,42,31,.6); animation: vxDot 2s ease-out infinite; }
@keyframes vxDot { 70% { box-shadow: 0 0 0 10px rgba(255,42,31,0); } 100% { box-shadow: 0 0 0 0 rgba(255,42,31,0); } }
.video-card, .short-grid__item, .project-card { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) { .video-card:hover, .short-grid__item:hover, .project-card:hover { transform: translateY(-6px); } }
.short-grid__item .vp, .video-card .vp { transition: box-shadow .45s ease; }
@media (hover: hover) { .short-grid__item:hover .vp, .video-card:hover .vp { box-shadow: 0 24px 50px -24px rgba(255, 42, 31, .45); } }
@media (prefers-reduced-motion: reduce) { .vx-book, .video-card, .short-grid__item, .project-card { transition: none; } .vx-book__dot { animation: none; } }

/* Short-form: 10 videos as 2 even rows of 5 (Nov 26) */
@media (min-width: 701px) { .short-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 16px; } }

/* Overview: the 16:9 video gets the full width, right under the headline (Nov 26) */
.overview__grid { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; align-items: start; }
.overview__copy { display: contents; }
.overview__copy > .eyebrow { order: 1; justify-self: start; }
.overview__copy > .section-title { order: 2; max-width: 16ch; }
.overview__media { order: 3; position: relative !important; top: auto !important; max-width: none !important; width: 100%; justify-self: stretch !important; margin: clamp(32px, 4vw, 56px) 0; }
.overview__media .vp { border-radius: clamp(16px, 2vw, 24px); box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .45); }
.overview__copy > .feature-list { order: 4; }
