/* WIBE · optical materials, editorial rhythm and booking clarity.
   Add after the design system. Geometry and spring transforms remain owned by
   motion.js. Reveals use the independent translate property on outer cards. */
:root {
  --ease-out-snappy: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out-luxury: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --wibe-reveal-duration: 420ms;
  --wibe-reveal-stagger: 60ms;
  --wibe-image-duration: 450ms;
  --wibe-header-offset: 116px;
  --glass-dark-rim: inset 0 1px 0 rgba(255,255,255,.45), inset 1px 0 0 rgba(255,255,255,.12), inset 0 -1px 0 rgba(255,255,255,.08), 0 12px 32px -4px rgba(20,24,29,.28);
  --glass-light-rim: inset 0 1px 0 rgba(255,255,255,.8), inset 1px 0 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(255,255,255,.18), 0 12px 32px -4px rgba(20,24,29,.22);
}
html { scroll-padding-top: var(--wibe-header-offset); }
.client-panel.case-study { scroll-margin-top: var(--wibe-header-offset); }
/* Opaque, readable fallbacks precede the optical enhancement. */
.nav-shell,.film-link,.viewer-control,.location-pill {
  background: linear-gradient(135deg,rgba(42,46,51,.96),rgba(24,33,39,.94));
  color: #fff; border: 1px solid rgba(255,255,255,.24);
  box-shadow: var(--glass-dark-rim);
}
.hero-photo-button,.photo-control,.film-play,.pricing-tabs {
  background: linear-gradient(135deg,rgba(255,254,250,.98),rgba(243,241,236,.95));
  color: var(--charcoal); border: 1px solid rgba(255,255,255,.72);
  box-shadow: var(--glass-light-rim);
}
.pricing-tabs { box-shadow: inset 0 1px 0 #fff,0 6px 20px -8px #14181d22; }
@supports (backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px)) {
  .nav-shell,.film-link,.viewer-control,.location-pill {
    background: linear-gradient(135deg,rgba(42,46,51,.78),rgba(24,33,39,.84));
    backdrop-filter: blur(22px) saturate(160%) brightness(1.06);
    -webkit-backdrop-filter: blur(22px) saturate(160%) brightness(1.06);
  }
  .hero-photo-button,.photo-control,.film-play,.pricing-tabs {
    background: linear-gradient(135deg,rgba(255,254,250,.87),rgba(243,241,236,.72));
    backdrop-filter: blur(20px) saturate(180%) brightness(1.04);
    -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(1.04);
  }
}
.film-link:hover,.viewer-control:hover { background-color: #182127; }
.hero-photo-button { z-index: 3; }
.location-pill { color: #fff; }
.primary-button,.nav-cta,.cover-banner-2x1 { position: relative; isolation: isolate; overflow: hidden; }
.primary-button::before,.nav-cta::before,.cover-banner-2x1::before {
  content: ""; position: absolute; inset: 0 auto 0 -85%; width: 65%;
  z-index: 3; pointer-events: none;
  background: linear-gradient(120deg,transparent 30%,rgba(255,255,255,.18) 50%,transparent 70%);
  transform: translateX(0); transition: transform 620ms var(--ease-out-snappy);
}
@media (hover: hover) and (pointer: fine) {
  .primary-button:hover::before,.nav-cta:hover::before,.cover-banner-2x1[href]:hover::before { transform: translateX(300%); }
  .photo-button:hover img,.g-item:hover > img,.cover-banner-2x1[href]:hover > img { transform: scale(1.03); }
  .photo-button:hover .photo-control,.g-item:hover .photo-control { transform: translateY(-3px); }
}
.photo-button img,.g-item > img,.cover-banner-2x1 > img { transition: transform var(--wibe-image-duration) var(--ease-in-out-luxury); }
.photo-control { transition: transform 250ms var(--ease-out-snappy),background 160ms var(--ease-out-snappy); }
.hero-shade,.cover-overlay {
  background: linear-gradient(180deg,rgba(20,24,29,.18) 0%,rgba(20,24,29,.35) 50%,rgba(20,24,29,.88) 100%);
}
.hero-shade { background: linear-gradient(180deg,#14181d2e 0%,#14181d59 50%,#14181de0 100%),linear-gradient(90deg,#14181d55,transparent 78%); }
.cover-copy { isolation: isolate; text-shadow: 0 2px 20px #0009; }
.cover-copy::before { background: radial-gradient(ellipse,#14181d80 0%,#14181d47 45%,transparent 80%); }
.cover-count { color: #fff; font-weight: 500; text-shadow: 0 1px 12px #000; }
.hero-copy { z-index: 2; bottom: 36px; }
.hero-summary { color: #fff; }
.hero-signature { z-index: 2; color: #ffffffd9; }
.hero-quick-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 14px; }
.hero-quick-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.hero-image { transform: scale(1); }
.hero-image.wibe-depth-ready { transition: transform 1200ms var(--ease-out-snappy); }
.hero-image.wibe-depth-pending { transform: scale(1.035); }
.hero-copy .eyebrow { color: #ffffffe0; }
.mobile-quick-nav { display: none; }
.studio-line.wibe-trust-line { display: block; padding: 24px 0 20px; }
.trust-deliverables { display: grid; grid-template-columns: 1.25fr .9fr 1fr; gap: 20px; list-style: none; padding: 0; }
.trust-deliverables li { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 11px; font-weight: 500; color: var(--charcoal); }
.trust-mark { display: grid; place-items: center; width: 27px; height: 27px; flex: none; border-radius: 50%; border: 1px solid #8e29372b; color: var(--accent); font-size: 13px; }
.trust-clients { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.trust-clients .eyebrow { font-size: 8px; color: var(--muted); }
.trust-client-names { font-family: Montserrat,Arial,sans-serif; font-weight: 500; font-size: clamp(12px,1.35vw,17px); letter-spacing: -.025em; color: var(--charcoal); }
.work-intro > p { max-width: 390px; }
@media (min-width: 801px) {
  .category-heading,.why-heading,.work-intro { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.85fr); gap: clamp(40px,6vw,88px); align-items: end; }
  .home-category-grid > .cover-banner-2x1:first-child,.cover-grid:not(.case-related .cover-grid) > .cover-banner-2x1:first-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
  .home-category-grid > .cover-banner-2x1:first-child .cover-title,.portfolio-view > .cover-grid > :first-child .cover-title { font-size: clamp(34px,4.4vw,58px); }
  .cover-grid[data-category-hub] > .cover-banner-2x1:last-child:nth-child(even),.project-cover-grid[data-odd=false] > :last-child { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
}
/* A useful route to people and pricing lives beside the portfolio, not only in a footer. */
.home-team-invitation { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 28px; align-items: center; padding-block: 32px; margin-top: 26px; border-block: 1px solid var(--line); }
.home-team-portraits { display: flex; gap: 8px; }
.home-team-portraits img { width: 66px; height: 82px; object-fit: cover; object-position: center 30%; border-radius: 9px; }
.home-team-invitation h2 { font-size: clamp(21px,2.6vw,30px); margin: 8px 0; }
.home-team-invitation p:not(.eyebrow) { font-size: 12px; color: var(--muted); max-width: 530px; }
.home-team-invitation .quiet-link { white-space: nowrap; }
.wibe-format-callout { padding: 28px 0; margin: 4px 0 26px; border-block: 1px solid var(--line); }
.wibe-format-heading { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(0,.85fr); gap: 40px; align-items: end; }
.wibe-format-heading h2 { font-size: clamp(25px,3vw,36px); margin-top: 10px; }
.wibe-format-heading > p { color: var(--muted); font-size: 12px; }
.wibe-format-heading .eyebrow { color: var(--accent); }
.wibe-format-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; list-style: none; padding: 24px 0 0; }
.wibe-format-list li { display: grid; grid-template-columns: 28px minmax(0,1fr); align-items: start; gap: 10px; }
.wibe-format-number { font-size: 10px; color: var(--accent); padding-top: 2px; }
.wibe-format-list strong { display: block; font-size: 12px; font-weight: 600; }
.wibe-format-list p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.wibe-format-note { font-size: 10px; color: var(--muted); margin-top: 18px; }
.case-study > .wibe-format-callout { margin: 36px 0 0; }
.project-cover .case-reel-shortcut { position: absolute; top: 22px; right: 22px; z-index: 4; min-height: 44px; padding: 10px 14px; font-size: 11px; gap: 8px; }
.case-reel-shortcut .line-icon { width: 15px; height: 15px; }
.case-gallery[data-count="1"] .case-film { aspect-ratio: 9 / 16; max-width: 440px; margin-inline: auto; }
.case-cta .primary-button { gap: 16px; }
.next-steps-card { display: block; padding: 24px 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.next-steps-card h3 { font-size: 22px; margin: 8px 0 20px; }
.next-steps-card > .eyebrow { color: var(--accent); }
.next-steps-list { list-style: none; display: grid; gap: 0; padding: 0; }
.next-steps-list li { position: relative; display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 12px; padding-bottom: 22px; }
.next-steps-list li:last-child { padding-bottom: 0; }
.next-steps-list li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 29px; bottom: 5px; width: 1px; background: var(--line); }
.next-step-index { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid #8e29372b; border-radius: 50%; color: var(--accent); font-size: 9px; }
.next-steps-list strong { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.next-steps-list p { font-size: 11px; line-height: 1.7; color: var(--muted); }
.contact-side .fast-lane { margin-top: 20px; }
.pricing-tabs [role=tab] { color: #4c504e; }
.pricing-tabs [aria-selected=true] { background: var(--charcoal); color: #fff; box-shadow: inset 0 1px 0 #ffffff26,0 3px 8px #14181d18; }
/* The original player is never recompressed. Loading is explicit and cancellable. */
.film-play { width: 64px; height: 64px; transition: width 160ms var(--ease-out-snappy),border-radius 160ms var(--ease-out-snappy); }
.film-play[aria-busy=true] { width: min(220px,90%); border-radius: 36px; gap: 4px; padding: 10px 14px; grid-template-columns: 1fr; font-size: 11px; }
.film-play[aria-busy=true] > svg { display: none; }
.film-load-label { font-size: 10px; line-height: 1.5; }
.film-play:not([aria-busy=true]) .film-load-label,.film-play:not([aria-busy=true]) .film-load-track { display: none; }
.film-load-track { height: 3px; width: 100%; overflow: hidden; background: #24272c20; border-radius: 8px; }
.film-load-fill { display: block; width: 100%; height: 100%; background: var(--accent); transform: scaleX(var(--load-progress,0)); transform-origin: left; transition: transform 140ms var(--ease-out-snappy); }
.film-load-note { font-size: 10px; color: var(--muted); margin-top: 8px; }
.film-sound-control { position: absolute; top: 12px; right: 12px; z-index: 3; min-height: 44px; max-width: calc(100% - 24px); padding: 8px 12px; font-size: 11px; }
.films-grid { grid-template-columns: repeat(12,minmax(0,1fr)); }
.films-grid > article { grid-column: span var(--reel-span,4); }
.film-caption h3 { font-size: 20px; }
/* JS only arms elements once an observer exists. No animation blocks interaction. */
.wibe-reveal-ready { transition: opacity var(--wibe-reveal-duration) var(--ease-out-snappy) var(--reveal-delay,0ms),translate var(--wibe-reveal-duration) var(--ease-out-snappy) var(--reveal-delay,0ms); }
.wibe-reveal-ready[data-wibe-reveal=pending] { opacity: 0; translate: 0 14px; }
.wibe-reveal-ready[data-wibe-reveal=shown] { opacity: 1; translate: 0 0; }
.wibe-reveal-instant { transition: none !important; }
@media (max-width: 1180px) {
  :root { --wibe-header-offset: 158px; }
  .mobile-quick-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; padding: 4px 10px 7px; border-top: 1px solid #ffffff1a; }
  .mobile-quick-nav .nav-link { justify-content: center; min-width: 0; min-height: 44px; font-size: 12px; color: #ffffffe6; }
  .mobile-quick-nav .nav-link[aria-current] { background: #ffffff14; color: #fff; }
  .mobile-quick-nav .nav-link::after { left: 22%; right: 22%; bottom: 3px; }
  .mobile-quick-nav .quick-enquiry { background: #ffffff14; }
  .mobile-nav { max-height: calc(100dvh - 166px); }
  .trust-deliverables { gap: 16px; }
}
@media (max-width: 800px) {
  :root { --gutter: 16px; --wibe-header-offset: 144px; }
  .site-header { top: 8px; margin-top: 10px; }
  .nav-row { min-height: 58px; padding: 8px 14px; }
  .brand svg { width: 118px; height: 30px; }
  .nav-shell { border-radius: 14px; }
  .mobile-quick-nav { padding: 2px 7px 5px; }
  .mobile-quick-nav .nav-link { font-size: 11px; }
  .hero { padding-top: 12px; }
  .hero-stage { display: block; height: auto; aspect-ratio: 4 / 5; min-height: 530px; border-radius: 15px; }
  .hero-image { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 58% 50%; }
  .hero-shade { display: block; position: absolute; inset: 0; background: linear-gradient(180deg,#14181d2e 0%,#14181d33 28%,#14181d99 55%,#14181df5 100%); }
  .hero-copy { position: absolute; left: 22px; right: 22px; bottom: 22px; padding: 0; max-width: 560px; }
  .hero h1 { font-size: clamp(34px,7.6vw,52px); line-height: 1.07; margin: 14px 0 16px; }
  .hero h1 br { display: initial; }
  .hero-copy .eyebrow { font-size: 8px; letter-spacing: .12em; }
  .hero-summary { font-size: 13px; max-width: 430px; line-height: 1.65; }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
  .hero-actions > * { flex: 1 1 auto; min-width: 0; min-height: 46px; padding: 10px 12px; gap: 7px; font-size: 11px; white-space: normal; }
  .hero-actions .primary-button { justify-content: center; }
  .hero-actions .film-link { flex: 0 1 auto; }
  .hero-actions .line-icon { width: 16px; height: 16px; }
  .hero-signature { left: 22px; top: 24px; font-size: 7px; }
  .hero-photo-button { top: 16px; right: 16px; }
  .hero-quick-links { gap: 4px 22px; margin-top: 10px; }
  .hero-quick-links a { font-size: 11px; }
  .studio-line.wibe-trust-line { padding-block: 24px 20px; }
  .trust-deliverables { grid-template-columns: 1fr; gap: 14px; }
  .trust-deliverables li { font-size: 11px; }
  .trust-clients { display: block; padding-top: 16px; margin-top: 18px; }
  .trust-client-names { display: block; margin-top: 8px; font-size: 13px; line-height: 1.9; }
  .work-intro { display: grid; grid-template-columns: 1fr; gap: 18px; padding-top: 44px; }
  .home-category-grid > .cover-banner-2x1:first-child,.cover-grid > .cover-banner-2x1:first-child { grid-column: auto; aspect-ratio: 16 / 10; }
  .home-team-invitation { grid-template-columns: auto minmax(0,1fr); gap: 18px; padding-block: 26px; }
  .home-team-portraits { gap: 5px; }
  .home-team-portraits img { width: 45px; height: 62px; border-radius: 7px; }
  .home-team-invitation h2 { font-size: 23px; }
  .home-team-invitation > .quiet-link { grid-column: 1 / -1; justify-self: start; }
  .wibe-format-heading { grid-template-columns: 1fr; gap: 14px; }
  .wibe-format-list { grid-template-columns: 1fr; gap: 18px; padding-top: 22px; }
  .wibe-format-callout { padding-block: 24px; }
  .wibe-format-heading h2 { font-size: 28px; }
  .pricing-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 3px; }
  .pricing-tabs [role=tab] { min-width: 0; min-height: 54px; padding: 9px 7px; font-size: 11px; line-height: 1.4; white-space: normal; }
  .case-cta .primary-button { min-height: 48px; white-space: normal; text-align: center; }
  .project-cover .case-reel-shortcut { top: 14px; right: 14px; font-size: 10px; padding-inline: 12px; }
  .films-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 16px; }
  .films-grid > article { grid-column: auto; }
  .films-grid[data-odd=true] > article:first-child { grid-column: 1 / -1; width: min(100%,340px); justify-self: center; }
  .film-surface .films-grid { display: grid; grid-template-columns: 1fr; max-width: 340px; }
  .film-surface .films-grid > article { grid-column: auto; width: 100%; }
}
@media (max-width: 600px) {
  .reels-view > .films-grid { grid-template-columns: 1fr; max-width: 380px; }
  .reels-view > .films-grid > article { grid-column: auto; width: 100%; }
}
@media (max-width: 360px) {
  .hero-stage { min-height: 570px; }
  .hero-copy { left: 18px; right: 18px; }
  .hero-actions .film-link { flex: 1 1 100%; }
  .hero-quick-links { gap: 4px 14px; }
  .cover-meta { align-items: end; gap: 8px; }
  .cover-meta .location-pill { max-width: 62%; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav-shell,.film-link,.viewer-control,.location-pill { background: #24272c; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hero-photo-button,.photo-control,.film-play,.pricing-tabs { background: #f3f1ec; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wibe-reveal-ready,.hero-image.wibe-depth-ready { opacity: 1 !important; translate: none !important; transform: none !important; transition: none !important; }
  .primary-button::before,.nav-cta::before,.cover-banner-2x1::before { display: none; }
  .film-play,.film-load-fill { transition: none; }
  .photo-button img,.g-item > img,.cover-banner-2x1 > img,.photo-control { transform: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .nav-shell,.pricing-tabs,.location-pill,.viewer-control,.film-play,.photo-control { border: 1px solid ButtonText; box-shadow: none; }
  .primary-button::before,.cover-banner-2x1::before { display: none; }
}
