/* ============================================
   Dalas Kahila — dark cinematic design system
   ============================================ */

:root {
  --bg: #000;
  --bg-alt: #0a0a0a;
  --card-bg: #0d0d0d;
  --line: rgba(255,255,255,0.06);
  --line-soft: rgba(255,255,255,0.04);
  --text: #fff;
  --text-dim: rgba(255,255,255,0.5);
  --text-dimmer: rgba(255,255,255,0.3);
  --text-faint: rgba(255,255,255,0.2);
  --accent: #d42020;
  --accent-dim: rgba(212,32,32,0.3);
  --accent-glow: rgba(212,32,32,0.6);
  --motion-fluid: cubic-bezier(.2,.8,.2,1);
  --glass: rgba(14,12,11,.72);
  --glass-edge: rgba(255,255,255,.14);
  --font-display: 'Bebas Neue', sans-serif;
  --font-body: 'Barlow', 'Arial Narrow', Arial, sans-serif;
  --max: 1400px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  cursor: auto;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:where(.section-title, .case-title, .work-card-title, .service-card-title, .page-hero h1, .social-cta h2, .footer-brand) {
  overflow-wrap: anywhere;
}
section { position: relative; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 2000;
  padding: 10px 14px; background: var(--accent); color: #fff;
  font-family: var(--font-display); letter-spacing: 1.5px; text-transform: uppercase;
  text-decoration: none; transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
main:focus { outline: none; }
body.custom-cursor-active, body.custom-cursor-active a, body.custom-cursor-active button { cursor: none; }

@media (hover: none) {
  body { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }
}

/* ---------- Nav ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 20px 56px;
  display: flex; align-items: center; justify-content: space-between;
  transition: padding .38s var(--motion-fluid);
}
nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(0,0,0,0.93);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
body.home-page nav::before {
  background: rgba(4,4,4,.7);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: rgba(255,255,255,.035);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
  transition: background .38s var(--motion-fluid), border-color .38s var(--motion-fluid), box-shadow .38s var(--motion-fluid);
}
body.home-page nav.scrolled { padding-top: 14px; padding-bottom: 14px; }
body.home-page nav.scrolled::before {
  background: rgba(8,8,8,.82);
  border-bottom-color: rgba(255,255,255,.075);
  box-shadow: 0 14px 36px rgba(0,0,0,.28);
}
.logo { text-decoration: none; display: flex; align-items: center; }
.logo img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a {
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--text-dim); text-decoration: none; font-weight: 700;
  transition: color 0.2s;
}
body.home-page .nav-links a { position: relative; min-height: 44px; display: inline-flex; align-items: center; transition: color .24s ease; }
.nav-links a:hover { color: var(--text); }
.nav-links a.accent { color: var(--accent) !important; }
body.home-page .nav-links a::after {
  content: ''; position: absolute; left: 50%; bottom: 4px;
  width: 18px; height: 1px; border-radius: 1px;
  background: var(--accent); opacity: 0;
  transform: translateX(-50%) scaleX(.25);
  transition: opacity .25s ease, transform .38s var(--motion-fluid);
}
body.home-page .nav-links a:hover::after,
body.home-page .nav-links a.active::after { opacity: 1; transform: translateX(-50%) scaleX(1); }
.nav-toggle {
  display: none; width: 44px; height: 44px; position: relative;
  background: none; border: none; cursor: pointer; z-index: 1001;
}
.nav-toggle span {
  position: absolute; left: 8px; width: 28px; height: 2px; background: #fff;
  transition: transform .25s, opacity .25s;
}
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 30px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.nav-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}

/* Native-feeling media loading and failure states, shared across pages. */
.media-loading,
.media-failed { position: relative; }
.media-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid rgba(244,239,230,.16);
  border-top-color: var(--gold, #c7a76b);
  border-radius: 50%;
  animation: mediaLoadSpin .8s linear infinite;
  pointer-events: none;
}
@keyframes mediaLoadSpin { to { transform: rotate(360deg); } }
.media-status {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #100e0c;
  color: var(--text-dimmer);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
@media (max-width: 900px) {
  nav { padding: 16px 20px; }
  .logo img { height: 26px; }
  .nav-toggle { display: block; }
  .nav-backdrop { display: block; }
  .nav-backdrop.open { opacity: 1; pointer-events: auto; }
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; height: 100dvh; width: min(78vw, 320px);
    background: rgba(0,0,0,0.98); backdrop-filter: blur(16px);
    border-left: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 28px; padding: 40px; z-index: 1000;
    transform: translateX(100%); transition: transform .3s ease;
  }
  body.home-page .nav-links {
    background: rgba(12,10,9,.84); backdrop-filter: blur(26px) saturate(145%);
    border-color: var(--glass-edge); border-radius: 26px 0 0 26px;
    box-shadow: -24px 0 64px rgba(0,0,0,.46);
    transform: translateX(104%); transition: transform .42s var(--motion-fluid);
  }
  .nav-links.open { transform: translateX(0); }
  body.home-page .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 15px; letter-spacing: 2px; }
}

/* ---------- Buttons / tags ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 18px;
}
.tag::before { content: ''; display: block; width: 32px; height: 1px; background: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
  color: var(--text-dim); text-decoration: none;
  border: 1px solid var(--line); padding: 10px 18px;
  transition: border-color .2s, color .2s, background .2s;
  background: transparent;
}
body.home-page .btn {
  min-height: 44px; border-radius: 999px;
  transition: border-color .22s ease, color .22s ease, background .22s ease, transform .32s var(--motion-fluid), box-shadow .32s var(--motion-fluid);
  background: rgba(255,255,255,.018);
}
.btn:hover { color: #fff; border-color: var(--accent-glow); background: rgba(212,32,32,0.08); }
.btn.primary { color: #fff; border-color: var(--accent); background: rgba(212,32,32,0.12); }
.btn.primary:hover { background: var(--accent); }
body.home-page .btn.primary:hover { box-shadow: 0 10px 28px rgba(212,32,32,.2); }
body.home-page .btn:active { transform: scale(.97); transition-duration: 90ms; }
.btn:disabled { opacity: .55; cursor: wait; }

:where(a, button, input):focus-visible {
  outline: 2px solid rgba(244,239,230,.9);
  outline-offset: 4px;
}

.icon-link {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s;
}
.icon-link:hover { border-color: var(--accent); }
.icon-link svg { width: 16px; height: 16px; fill: var(--text-dim); }

/* ---------- Section scaffolding ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 100px 60px; }
.section-head { margin-bottom: 56px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 64px); font-weight: 700;
  line-height: 1.05; letter-spacing: 1px; text-transform: uppercase;
}
.section-title .accent { color: var(--accent); }
.section-sub {
  font-size: 14px; color: var(--text-dimmer); margin-top: 10px; max-width: 560px; line-height: 1.5;
}
.anchor { position: relative; top: -84px; display: block; }

@media (max-width: 900px) {
  .section { padding: 72px 24px; }
}

/* ---------- Hero ---------- */
#hero {
  width: 100%; aspect-ratio: 2880 / 1462;
  background: #000; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
#hero video {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
#hero .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.85) 100%);
  z-index: 1; pointer-events: none;
}
.hero-content {
  position: absolute; left: 50%; bottom: 64px; z-index: 2;
  max-width: 720px; width: 100%; padding: 0 24px;
  transform: translateX(-50%);
  text-align: center;
}
.hero-title { display: inline-block; text-align: left; }
.hero-content .tag {
  color: var(--accent); width: 100%;
  display: flex; align-items: center; justify-content: flex-start; gap: 10px;
}
.hero-content .tag::before {
  content: ''; display: block; width: 32px; height: 1px; background: var(--accent);
}
.hero-content h1 {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(40px, 6vw, 84px); line-height: 1.02; letter-spacing: 1px;
}
.hero-content h1 .accent { color: var(--accent); }
.hero-content p {
  margin: 16px auto 0; font-size: 15px; color: var(--text-dim); max-width: 480px; line-height: 1.7;
}
.scroll-cue {
  position: absolute; right: 60px; bottom: 64px; z-index: 2;
  font-family: var(--font-display); font-size: 11px; letter-spacing: 3px;
  color: var(--text-dimmer); text-transform: uppercase;
  writing-mode: vertical-rl; display: flex; align-items: center; gap: 10px;
}
.scroll-cue::after { content: ''; width: 1px; height: 40px; background: var(--text-dimmer); }
@media (max-width: 700px) {
  #hero { aspect-ratio: 3 / 2; }
  #hero video { object-fit: cover; object-position: center; }
  .hero-content { bottom: 40px; }
  .scroll-cue { display: none; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 340px 1fr; gap: 64px; align-items: start;
}
.about-photo { position: relative; }
.about-photo img { border-radius: 6px; filter: grayscale(15%); }
.about-photo::after {
  content: ''; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: 6px; pointer-events: none;
}

/* Home teaser variant: glass-framed portrait with hover reveal */
.about-teaser .tag::before { display: none; }
.about-teaser .about-body p { text-align: justify; text-align-last: left; }

.about-teaser .about-photo {
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
  aspect-ratio: 3 / 4;
}
.about-teaser .about-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 15%;
  border-radius: 14px; filter: grayscale(10%);
  transition: transform .6s ease;
  will-change: transform;
}
.about-teaser .about-photo::after {
  border: 1px solid rgba(255,255,255,.32); border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), inset 0 40px 60px rgba(255,255,255,.03);
}
.about-photo-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  display: flex; align-items: flex-end; padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,0) 100%);
  border-radius: 0 0 14px 14px;
  opacity: 0;
  -webkit-mask-image: linear-gradient(to top, #000 0%, #000 40%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, #000 40%, transparent 100%);
  transition: opacity .45s ease, backdrop-filter .45s ease, background .45s ease;
  pointer-events: none;
}
.about-teaser .about-photo:hover .about-photo-overlay,
.about-teaser .about-photo:focus-within .about-photo-overlay {
  opacity: 1; backdrop-filter: blur(10px);
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 100%);
}
.about-teaser .about-photo:hover img,
.about-teaser .about-photo:focus-within img {
  animation: photo-drift 7s ease-in-out infinite;
}
@keyframes photo-drift {
  0%, 100% { transform: scale(1.04) translate(0, 0); }
  50% { transform: scale(1.08) translate(-1%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .about-teaser .about-photo:hover img, .about-teaser .about-photo:focus-within img { animation: none; }
}
.about-photo-name {
  font-family: var(--font-display); font-size: 20px; letter-spacing: 1px;
  text-transform: uppercase; color: #fff;
}

.about-teaser .contact-row .btn {
  font-family: var(--font-body); font-weight: 600; letter-spacing: .2px;
  text-transform: none; font-size: 13.5px; gap: 10px;
}
.about-teaser .contact-row .btn svg { width: 15px; height: 15px; flex: none; }

.about-name {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-top: 20px;
}
.about-name .accent { color: var(--accent); }
.about-role { font-size: 11px; letter-spacing: 3px; color: var(--text-dimmer); text-transform: uppercase; margin-top: 6px; }
.about-photo + .about-role { margin-top: 16px; }

.about-body p { color: var(--text-dim); font-size: 16px; line-height: 1.65; margin-bottom: 22px; max-width: 600px; }
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { color: #fff; }

.software-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 36px; }
.software-chip {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600; letter-spacing: .2px;
  color: var(--text-dim); border: 1px solid var(--line); border-radius: 7px; padding: 6px 13px 6px 6px;
}
.software-icon {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 22px; height: 22px; border-radius: 5px;
  font-family: var(--font-body); font-size: 10px; font-weight: 800;
  object-fit: cover;
}

.contact-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

.timeline {
  margin-top: 64px; border-top: 1px solid var(--line); padding-top: 40px;
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: ''; position: absolute; left: 0; top: 78px; bottom: 10px; width: 2px; border-radius: 2px;
  background: linear-gradient(to bottom, #e91e63, #f4423f, #ff6b35, #ff9800, #ffc107, #ffeb3b, #cddc39, #4caf50, #00bcd4, #2196f3, #7c4dff);
}
.timeline-year {
  position: absolute; left: -16px; font-family: var(--font-display); font-size: 11px; letter-spacing: 2px;
  writing-mode: vertical-rl;
}
.timeline-year.top { top: 78px; color: #e91e63; }
.timeline-year.bottom { bottom: 10px; color: #7c4dff; transform: rotate(180deg); }
.timeline-label {
  font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: 1px;
  color: #fff; text-transform: uppercase; margin-bottom: 30px;
  margin-left: -32px;
}
.timeline-item {
  position: relative;
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: baseline;
  padding: 14px 0;
}
.timeline-item:first-child { padding-top: 0; }
.timeline-dot {
  position: absolute; left: -37px; top: 19px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--c, var(--accent));
  box-shadow: 0 0 0 4px var(--bg), 0 0 10px var(--c, var(--accent));
}
.timeline-role { font-size: 14px; font-weight: 600; color: #fff; }
.timeline-org { font-size: 12px; color: var(--text-dimmer); margin-top: 3px; }
.timeline-loc {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 1.5px;
  color: var(--text-dimmer); text-transform: uppercase; text-align: right; white-space: nowrap;
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 260px; }
  .about-teaser .about-photo { max-width: 190px; margin: 0 auto; }
  .about-teaser .about-name { font-size: 19px; letter-spacing: .5px; margin-top: 14px; text-align: center; }
  .about-teaser .about-role { font-size: 9px; letter-spacing: 1px; margin-top: 4px; text-align: center; }
  .timeline-item { grid-template-columns: 1fr; }
  .timeline-loc { text-align: left; margin-top: 2px; }
  .timeline-year { display: none; }
}

/* ---------- Logofolio ---------- */
.logofolio-frame {
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--card-bg);
}

/* ---------- Work grid ---------- */
.work-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px;
}
.work-grid-featured { grid-template-columns: 1fr; }
.work-grid-featured .work-card { aspect-ratio: 5400 / 923; }
@media (max-width: 900px) {
  /* No hover on touch, and these banners are collages/logos, not a single
     crop-friendly photo — so stop trying to crop them into a short strip.
     Show the whole banner, then a plain black panel for the text. */
  .work-grid-featured .work-card { aspect-ratio: auto; display: flex; flex-direction: column; }
}

/* ---------- Worldwide map ---------- */
.world-map-section {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  padding: clamp(108px, 11vw, 176px) clamp(24px, 4.5vw, 76px);
  overflow: hidden;
}
.world-map-section::before {
  content: '';
  position: absolute;
  top: 16%;
  bottom: 8%;
  left: -8vw;
  width: min(78vw, 1240px);
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 58%, rgba(116,14,18,.14), rgba(68,10,14,.06) 38%, transparent 72%),
    radial-gradient(ellipse at 16% 54%, rgba(86,16,20,.06), transparent 58%);
  filter: blur(44px);
  transform: scale(1.08);
  animation: worldMapHaze 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes worldMapHaze {
  from { transform: translate3d(-1.2%, .5%, 0) scale(1.08); opacity: .76; }
  to { transform: translate3d(1.4%, -1%, 0) scale(1.12); opacity: 1; }
}
.world-map-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .65fr);
  align-items: center;
  gap: clamp(52px, 6vw, 104px);
  width: min(100%, var(--max));
  margin: 0 auto;
}
.world-map-stage {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  background: transparent;
}
.world-map-plane {
  position: relative;
  width: 100%;
  aspect-ratio: 2463 / 1317;
}
.world-map-stage.is-visible .world-map-plane {
  animation: worldMapDrift 12s ease-in-out infinite;
  will-change: transform;
}
@keyframes worldMapDrift {
  0%, 100% { transform: translate3d(-.25%, 0, 0) rotate(-.08deg); }
  50% { transform: translate3d(.35%, -.55%, 0) rotate(.08deg); }
}
.world-map-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  opacity: .23;
  filter: contrast(1.08);
  pointer-events: none;
  user-select: none;
}
.world-map-copy { min-width: 0; }
.world-map-copy .section-title {
  max-width: 620px;
  font-size: clamp(3.6rem, 6.3vw, 6rem);
  line-height: .84;
  overflow-wrap: normal;
}
.world-map-copy .section-title > span { display: block; }
.world-map-copy .section-sub {
  max-width: 46ch;
  margin-top: clamp(26px, 3vw, 42px);
}
.world-map-cityline {
  max-width: 58ch;
  margin-top: 24px;
  color: var(--gold, #c7a76b);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.7;
  text-transform: uppercase;
}
.world-map-routes,
.world-map-cities { position: absolute; inset: 0; width: 100%; height: 100%; }
.world-map-routes { z-index: 2; overflow: visible; pointer-events: none; }
.world-map-route {
  fill: none;
  stroke: #d42020;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-dasharray: var(--route-length);
  stroke-dashoffset: var(--route-length);
  opacity: 0;
  filter: drop-shadow(0 2px 7px rgba(212,32,32,.52));
}
.world-map-stage.is-running .world-map-route {
  animation: mapRouteDraw 2.05s cubic-bezier(.16,1,.3,1) var(--route-delay) both;
}
@keyframes mapRouteDraw {
  0% { opacity: 0; stroke-dashoffset: var(--route-length); }
  15% { opacity: .78; }
  72% { opacity: .5; stroke-dashoffset: 0; }
  100% { opacity: 0; stroke-dashoffset: 0; }
}
.world-map-cities { z-index: 3; pointer-events: none; }
.map-city { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%,-50%); }
.map-city-dot {
  position: relative;
  display: block;
  width: clamp(5px, .55vw, 8px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #d42020;
  opacity: 0;
  transform: scale(.35);
}
.map-city-dot::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(212,32,32,.34);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.35);
}
.world-map-stage.is-running .map-city-dot {
  animation: mapPointArrive .75s cubic-bezier(.16,1,.3,1) var(--point-delay) forwards;
}
.world-map-stage.is-complete .map-city-dot { opacity: 1; transform: scale(1); }
.world-map-stage.is-complete.is-visible .map-city-dot::after {
  animation: mapPointGlow 2.8s ease-out var(--glow-delay) infinite;
}
@keyframes mapPointArrive {
  0% { opacity: 0; transform: scale(.35); }
  60% { opacity: 1; transform: scale(1.45); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes mapPointGlow {
  0%, 36% { opacity: 0; transform: scale(.35); }
  58% { opacity: .8; }
  100% { opacity: 0; transform: scale(1.25); }
}
.map-city-label {
  position: absolute;
  bottom: 13px;
  left: 50%;
  color: rgba(190,190,190,.72);
  font-family: var(--font-body);
  font-size: clamp(7px, .7vw, 10px);
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1;
  opacity: 0;
  text-transform: uppercase;
  transform: translate(-50%,4px);
  white-space: nowrap;
}
.world-map-stage.is-complete.is-visible .map-city-label {
  animation: mapCityName 18.7s linear var(--label-delay) infinite;
}
@keyframes mapCityName {
  0%, 7% { opacity: 0; transform: translate(-50%,4px); }
  1.5%, 5.5% { opacity: 1; transform: translate(-50%,0); }
}
.world-map-static {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 900px) {
  .world-map-section { padding: 92px 24px 104px; }
  .world-map-section::before { top: 36%; bottom: 2%; width: 116vw; }
  .world-map-layout { grid-template-columns: 1fr; gap: 52px; }
  .world-map-copy { order: -1; }
  .world-map-copy .section-title { font-size: clamp(54px, 15vw, 84px); }
  .world-map-copy .section-sub { margin-top: 22px; }
  .world-map-plane { width: 134vw; margin-left: calc((100% - 134vw) / 2); }
  .map-city-label { bottom: 10px; font-size: 6px; letter-spacing: .1em; }
  .map-city-dot::after { inset: -5px; }
}
@media (max-width: 420px) {
  .world-map-section { padding-right: 18px; padding-left: 18px; }
  .world-map-plane { width: 148vw; margin-left: calc((100% - 148vw) / 2); }
  .world-map-cityline { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .world-map-section::before { animation: none !important; }
  .world-map-plane { animation: none !important; transform: none !important; }
  .world-map-route,
  .map-city-dot,
  .map-city-dot::after,
  .map-city-label { animation: none !important; }
  .world-map-stage.is-complete .map-city-dot { opacity: 1; transform: none; }
  .world-map-static {
    position: static;
    display: block;
    width: auto;
    height: auto;
    margin: 20px auto 0;
    color: var(--text-dimmer);
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
    white-space: normal;
    clip: auto;
  }
}
.work-card {
  position: relative; aspect-ratio: 1800 / 923;
  background: var(--card-bg); border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px; overflow: hidden;
  transition: border-color .3s, transform .3s;
  text-decoration: none;
}
.work-card:hover { border-color: var(--accent-dim); }
body.home-page .work-card { transition: border-color .3s ease, transform .42s var(--motion-fluid), box-shadow .42s var(--motion-fluid); }
body.home-page .work-card:hover,
body.home-page .work-card:focus-visible {
  border-color: rgba(212,32,32,.42);
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0,0,0,.44), 0 0 0 1px rgba(255,255,255,.025) inset;
}
body.home-page .work-card:active { transform: translateY(-1px) scale(.992); transition-duration: 90ms; }
.work-card-img { position: absolute; inset: 0; background: #111; }
.work-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform-origin: center top; transition: transform .6s ease; will-change: transform; }
.work-card:hover .work-card-img img { animation: photo-drift 7s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .work-card:hover .work-card-img img { animation: none; }
}

/* Featured cards: the image itself is rendered wider than the card (matching its
   own aspect ratio, not cropped away by object-fit) so panning it slides in real
   pixels instead of just shifting an already-cropped view. */
.work-grid-featured .work-card-img img {
  width: 116%; max-width: none;
  object-position: left center; transform-origin: left center;
  transition: transform 6s ease, filter 6s ease;
  transform: translateX(0);
}
.work-grid-featured .work-card:hover .work-card-img img {
  animation: none;
  transform: translateX(-13.8%);
  filter: blur(4px);
}
body.home-page .work-grid-featured .work-card-img img { transition: transform 1.15s var(--motion-fluid), filter .7s ease; }
body.home-page .work-grid-featured .work-card:hover .work-card-img img { filter: blur(1.5px) brightness(.86); }
@media (max-width: 900px) {
  .work-grid-featured .work-card-img {
    position: relative; aspect-ratio: 16 / 9; background: #0a0a0a;
  }
  .work-grid-featured .work-card-body {
    position: relative; background: #0a0a0a;
  }
  /* touch has no :hover — auto-pan.js adds this class ~6s after the card
     scrolls into view, replaying the same pan+blur as the desktop hover */
  .work-grid-featured .work-card.auto-pan .work-card-img img {
    transform: translateX(-13.8%);
    filter: blur(4px);
  }
}
/* the image itself now provides the soft-focus look — drop the text panel's own
   backdrop-blur on hover so the two blurs don't stack into a muddy double layer */
.work-grid-featured .work-card:hover .work-card-body { backdrop-filter: none; }
@media (prefers-reduced-motion: reduce) {
  .work-grid-featured .work-card:hover .work-card-img img { transform: none; filter: none; }
}
.work-card-body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 8px;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,0) 100%);
  backdrop-filter: blur(0px);
  transition: backdrop-filter .4s ease, padding-top .4s ease, background .4s ease;
}
.work-card:hover .work-card-body {
  backdrop-filter: blur(8px);
  padding-top: 34px;
  background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,0) 100%);
}
.work-card-cat {
  font-family: var(--font-display); font-size: 10px; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase; font-weight: 700;
}
.work-card-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.1;
}
.work-card-desc {
  font-size: 13px; color: var(--text-dim); line-height: 1.75;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .4s ease, opacity .3s ease, margin-top .4s ease;
}
.work-card-desc ul { margin: 10px 0 0 18px; padding: 0; }
.work-card-desc li { margin-bottom: 4px; }
.work-card-links { display: flex; flex-wrap: wrap; gap: 8px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease, opacity .3s ease, margin-top .4s ease; }
.work-card-links span {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 2px; font-weight: 700;
  text-transform: uppercase; color: var(--accent); transition: letter-spacing .2s;
}
.work-card:hover .work-card-links span { letter-spacing: 3px; }
.work-card:hover .work-card-desc { max-height: 160px; opacity: 1; margin-top: 2px; }
.work-card:hover .work-card-links { max-height: 40px; opacity: 1; margin-top: 4px; }
@media (hover: none) {
  .work-card-body { padding-top: 34px; background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 60%, rgba(0,0,0,0) 100%); }
  .work-card-desc, .work-card-links { max-height: none; opacity: 1; margin-top: 4px; }
  .work-card:hover .work-card-img img, .work-card .work-card-img img { animation: none; }
}

/* ---------- More-work strip ---------- */
.strip-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px;
}
.strip-tile {
  position: relative; aspect-ratio: 4/3; overflow: hidden; background: #111;
  border: 1px solid var(--line); display: block; text-decoration: none;
}
.strip-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.strip-tile:hover img { transform: scale(1.06); }
.strip-tile-label {
  position: absolute; left: 0; bottom: 0; right: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.85));
  padding: 30px 18px 14px;
  font-family: var(--font-display); font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 700; color: #fff;
}
.strip-tile-label span { color: var(--accent); }

/* ---------- Social / closing CTA ---------- */
.social-cta {
  text-align: center; padding: 120px 24px;
  border-top: 1px solid var(--line);
}
.social-cta h2 {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 60px);
  text-transform: uppercase; letter-spacing: 1px;
}
.social-cta h2 .accent { color: var(--accent); }
.social-cta h2 .magnetic-word { display: inline-block; white-space: nowrap; }
.social-cta h2 .letter { display: inline-block; transition: transform .18s ease; }
.social-cta p { color: var(--text-dim); margin: 18px auto 36px; max-width: 480px; font-size: 14px; }
.social-icons { display: flex; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 40px 60px; }
.footer-inner {
  max-width: var(--max); margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 24px;
}
.footer-brand {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
}
.footer-brand .accent { color: var(--accent); }
.footer-tagline { font-size: 10px; letter-spacing: 3px; color: var(--text-faint); text-transform: uppercase; margin-top: 4px; }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dimmer);
  text-decoration: none; font-family: var(--font-display); font-weight: 700; transition: color .2s;
}
.footer-links a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 12px; align-items: center; }
.footer-bottom {
  max-width: var(--max); margin: 28px auto 0; padding-top: 20px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-bottom div { font-size: 11px; color: var(--text-faint); letter-spacing: 2px; }

@media (max-width: 768px) {
  footer { padding: 32px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}
@media (max-width: 480px) {
  footer { padding: 24px 16px; }
  .icon-link { width: 44px; height: 44px; }
}

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: .03s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .13s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .18s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .23s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .28s; }
.reveal-stagger.in > *:nth-child(n+7) { transition-delay: .32s; }
.reveal-scale { opacity: 0; transform: scale(.96); transition: opacity .8s ease, transform .8s ease; }
.reveal-scale.in { opacity: 1; transform: scale(1); }

body.home-page .reveal { transform: translateY(12px); transition: opacity .46s ease, transform .46s var(--motion-fluid); }
body.home-page .reveal.in { transform: translateY(0); }
body.home-page .reveal-stagger > * { transform: translateY(12px); transition: opacity .42s ease, transform .42s var(--motion-fluid); }
body.home-page .reveal-stagger.in > * { transform: translateY(0); }
body.home-page .reveal-stagger.in > *:nth-child(1) { transition-delay: .02s; }
body.home-page .reveal-stagger.in > *:nth-child(2) { transition-delay: .06s; }
body.home-page .reveal-stagger.in > *:nth-child(3) { transition-delay: .1s; }
body.home-page .reveal-stagger.in > *:nth-child(4) { transition-delay: .14s; }
body.home-page .reveal-stagger.in > *:nth-child(5) { transition-delay: .18s; }
body.home-page .reveal-stagger.in > *:nth-child(6) { transition-delay: .22s; }
body.home-page .reveal-stagger.in > *:nth-child(n+7) { transition-delay: .24s; }
body.home-page .reveal-scale { transform: scale(.985); transition: opacity .5s ease, transform .5s var(--motion-fluid); }
body.home-page .reveal-scale.in { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .reveal-scale { opacity: 1; transform: none; transition: none; }
}

/* ---------- Cursor ---------- */
#cursor-dot {
  width: 10px; height: 10px; background: var(--accent); border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 99999; transform: translate(-50%,-50%);
  left: 0; top: 0; display: none;
}
#cursor-ring {
  width: 32px; height: 32px; border: 1.5px solid var(--accent-glow); border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 99998; transform: translate(-50%,-50%);
  left: 0; top: 0; display: none;
  transition: border-color .2s ease;
}
body.custom-cursor-active #cursor-dot,
body.custom-cursor-active #cursor-ring { display: block; }

/* ---------- Simple page hero (contact / ai-videos) ---------- */
.page-hero { padding: 160px 60px 60px; max-width: var(--max); margin: 0 auto; }
@media (max-width: 900px) { .page-hero { padding: 130px 24px 40px; } }

/* ---------- Case-study project pages ---------- */
.case-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--text-dimmer); text-decoration: none; font-weight: 700; margin-bottom: 24px;
  transition: color .2s;
}
.case-back:hover { color: var(--accent); }
.case-back::before { content: '←'; }

.case-hero {
  max-width: var(--max); margin: 140px auto 0; padding: 0 60px;
}
.case-hero-frame {
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--card-bg);
}
.case-hero-frame img { width: 100%; height: auto; }

.case-meta { max-width: var(--max); margin: 0 auto; padding: 48px 60px 0; }
.case-cat { }
.case-title {
  font-family: var(--font-display); font-size: clamp(32px, 5vw, 56px); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; line-height: 1;
}
.case-sub { font-size: 13px; color: var(--text-dimmer); margin-top: 10px; letter-spacing: .5px; }
.case-credits {
  font-family: var(--font-display); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-dimmer); margin-top: 14px; font-weight: 600;
}
.case-hook { font-size: 17px; color: #fff; font-weight: 600; line-height: 1.6; max-width: 700px; margin-top: 20px; }
.case-desc { font-size: 16px; color: var(--text-dim); line-height: 1.85; max-width: 760px; margin-top: 24px; }
.case-desc ul { margin: 16px 0 0 20px; }
.case-desc li { margin-bottom: 8px; }

.case-links {
  max-width: var(--max); margin: 0 auto; padding: 40px 60px 100px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px;
}
.case-link-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); background: var(--card-bg); padding: 16px 20px;
  text-decoration: none; color: var(--text-dim); transition: border-color .2s, color .2s;
}
.case-link-item:hover { border-color: var(--accent-glow); color: #fff; }
.case-link-item .lbl { font-size: 13px; font-weight: 600; }
.case-link-item .ico { font-family: var(--font-display); font-size: 10px; letter-spacing: 2px; color: var(--accent); text-transform: uppercase; flex-shrink: 0; }

.case-gallery {
  max-width: var(--max); margin: 0 auto; padding: 0 60px 100px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
.case-gallery a { display: block; aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--line); background: #111; }
.case-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case-gallery a:hover img { transform: scale(1.06); }

.case-nav-footer {
  max-width: var(--max); margin: 0 auto; padding: 0 60px 100px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 32px;
}

@media (max-width: 900px) {
  .case-hero { margin-top: 110px; padding: 0 24px; }
  .case-meta { padding: 32px 24px 0; }
  .case-links { padding: 32px 24px 60px; }
  .case-gallery { padding: 0 24px 60px; }
  .case-nav-footer { padding: 0 24px 60px; }
}

/* ---------- Contact form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.contact-form label {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dimmer); font-weight: 700; margin-bottom: 8px; display: block;
}
.contact-form input, .contact-form textarea {
  width: 100%; background: var(--card-bg); border: 1px solid var(--line); color: #fff;
  font-family: var(--font-body); font-size: 14px; padding: 14px 16px; border-radius: 4px;
  transition: border-color .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent-glow); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form button { align-self: flex-start; cursor: pointer; font-family: var(--font-display); }
.contact-form-status { font-size: 13px; color: var(--text-dimmer); margin-top: 4px; }
.contact-form-status.ok { color: #4ade80; }
.contact-form-status.err { color: var(--accent); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 700px) {
  .contact-form input,
  .contact-form textarea { font-size: 16px; }
}

/* ---------- Secret "ACTION" easter egg ---------- */
.egg-overlay {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .25s ease, visibility 0s .25s;
}
.egg-overlay.show { opacity: 1; pointer-events: auto; visibility: visible; transition-delay: 0s; }

.egg-stage { position: relative; width: min(420px, 84vw); perspective: 900px; }

.egg-board {
  width: 100%; aspect-ratio: 16/10;
  background: #111; border: 2px solid #fff;
  position: relative; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.egg-board::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 22%;
  background: repeating-linear-gradient(-45deg, #fff 0 22px, #000 22px 44px);
  transform-origin: left top;
  animation: eggClap .55s ease-in-out .15s 1;
}
.egg-board-text {
  position: absolute; left: 0; right: 0; bottom: 14%;
  text-align: center;
  font-family: var(--font-display); text-transform: uppercase;
  color: #fff; letter-spacing: 3px;
}
.egg-board-text .take {
  font-size: 12px; color: var(--text-dimmer); letter-spacing: 5px; margin-bottom: 6px;
}
.egg-board-text .action {
  font-size: clamp(28px, 6vw, 44px); font-weight: 700; color: var(--accent);
  opacity: 0; transform: translateY(10px);
  animation: eggActionIn .4s ease .55s forwards;
}

@keyframes eggClap {
  0% { transform: rotate(0deg); }
  45% { transform: rotate(-38deg); }
  70% { transform: rotate(4deg); }
  100% { transform: rotate(0deg); }
}
@keyframes eggActionIn {
  to { opacity: 1; transform: translateY(0); }
}

.egg-message {
  margin-top: 28px; text-align: center;
  opacity: 0; transform: translateY(12px);
  animation: eggActionIn .5s ease .95s forwards;
}
.egg-message p {
  font-size: 15px; color: var(--text-dim); line-height: 1.7; max-width: 380px; margin: 0 auto 18px;
}
.egg-message .trivia {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-faint); margin-top: 16px;
}
.egg-close {
  position: absolute; top: -44px; right: 0;
  background: none; border: none; color: var(--text-dimmer);
  font-family: var(--font-display); font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  cursor: pointer; padding: 8px;
}
.egg-close:hover { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .media-loading::before { animation: none; }
  .egg-board::before, .egg-board-text .action, .egg-message { animation: none; opacity: 1; transform: none; }
}

/* ---------- Hero clapperboard cover ---------- */
.clapper-cover {
  position: absolute; inset: 0; z-index: 50;
  background: linear-gradient(180deg, rgba(0,0,0,.36), rgba(0,0,0,.6));
  backdrop-filter: blur(7px) saturate(75%);
  border: none; margin: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  perspective: 1200px;
}
.clapper-board {
  position: relative; width: min(560px, 78vw); aspect-ratio: 16/10;
  border: 1px solid rgba(255,255,255,.82); background: rgba(10,10,10,.9);
  box-shadow: 0 24px 70px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.08);
  animation: clapperFloat 4.2s ease-in-out infinite;
  transition: filter .12s ease, box-shadow .28s ease;
}
.clapper-cover:active .clapper-board {
  filter: brightness(1.06);
  box-shadow: 0 18px 52px rgba(0,0,0,.58), inset 0 1px 0 rgba(255,255,255,.12);
}
.clapper-board::after {
  content: '';
  position: absolute; left: 10%; right: 10%; bottom: -28px; height: 22px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.55), transparent 72%);
  filter: blur(4px);
  animation: clapperShadowFloat 4.2s ease-in-out infinite;
  z-index: -1;
}
@keyframes clapperFloat {
  0%, 100% { transform: rotateX(6deg) rotateY(-4deg) translateY(0); }
  50% { transform: rotateX(4deg) rotateY(-2deg) translateY(-10px); }
}
@keyframes clapperShadowFloat {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: .4; transform: scale(.9); }
}
.clapper-stripe {
  position: absolute; top: 0; left: 0; right: 0; height: 24%;
  background: repeating-linear-gradient(-45deg, #fff 0 26px, #000 26px 52px);
  border-bottom: 2px solid #fff;
  transform-origin: left top;
  transform: rotate(-16deg);
  transition: transform .28s var(--motion-fluid), filter .16s ease;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.clapper-cover:hover .clapper-stripe { filter: brightness(1.18); }
.clapper-stripe.dragging { transition: filter .2s ease; cursor: grabbing; }

.clapper-face {
  position: absolute; left: 0; right: 0; bottom: 0; top: 24%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  text-align: center; padding: 0 24px;
}
.clapper-name {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; font-size: clamp(20px, 4vw, 32px); color: #fff;
}
.clapper-role {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dimmer);
}
.clapper-tap {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 12px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent); font-weight: 700;
  animation: clapperPulse 1.6s ease-in-out infinite;
}
.clapper-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

@keyframes clapperPulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

.clapper-slate {
  margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center; justify-content: center; cursor: auto;
}
.clapper-slate-input {
  font-family: var(--font-body); font-size: 12px; color: #fff;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line);
  padding: 8px 12px; border-radius: 3px; width: 220px; max-width: 60vw;
  cursor: text;
}
.clapper-slate-input::placeholder { color: var(--text-faint); }
.clapper-slate-input:focus { outline: none; border-color: var(--accent-glow); }
.clapper-slate-btn {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 600; color: var(--text-dim); background: transparent;
  border: 1px solid var(--line); padding: 8px 14px; border-radius: 3px; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.clapper-slate-btn:hover { color: #fff; border-color: var(--accent-glow); }
@media (max-width: 700px) {
  .clapper-slate { margin-top: 12px; }
  .clapper-slate-input { font-size: 11px; padding: 7px 10px; }
}

.clapper-cover.clapping:not(.drag-completed) .clapper-stripe {
  animation: clapShut .3s cubic-bezier(.2,.9,.3,1) forwards;
}
@keyframes clapShut {
  0% { transform: rotate(-16deg); }
  55% { transform: rotate(3deg); }
  100% { transform: rotate(0deg); }
}
.clapper-cover.clapping .clapper-board { animation: clapperShake .3s ease .05s; }
@keyframes clapperShake {
  0%, 100% { transform: translate(0, 0); }
  30% { transform: translate(-2px, 1px); }
  60% { transform: translate(2px, -1px); }
}
.clapper-cover.leaving {
  animation: clapperLeave .58s var(--motion-fluid) .28s forwards;
  pointer-events: none;
}
@keyframes clapperLeave {
  to { opacity: 0; transform: scale(1.025); backdrop-filter: blur(0) saturate(100%); }
}

@media (max-width: 700px) {
  .clapper-board { width: 86vw; aspect-ratio: 4 / 3; }
  .clapper-face { gap: 6px; padding: 8px 14px 10px; }
  .clapper-role { font-size: 9px; }
  .clapper-tap { margin-top: 6px; }
  .clapper-slate { width: min(250px, 100%); margin-top: 6px; display: grid; grid-template-columns: 1fr; }
  .clapper-slate-input { width: 100%; max-width: none; }
  .clapper-slate-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .clapper-tap { animation: none; }
  .clapper-board,
  .clapper-board::after { animation: none; }
  .clapper-cover.clapping .clapper-stripe,
  .clapper-cover.clapping .clapper-board,
  .clapper-cover.leaving { animation: none; }
}

@media (prefers-reduced-transparency: reduce) {
  body.home-page nav::before,
  body.home-page .nav-links,
  .clapper-cover { backdrop-filter: none !important; background: rgba(0,0,0,.97); }
}

@media (prefers-contrast: more) {
  body.home-page nav::before,
  body.home-page .nav-links { background: #000; border-color: rgba(255,255,255,.45); }
  body.home-page .btn, body.home-page .work-card, .clapper-board { border-color: rgba(255,255,255,.58); }
  body.home-page .nav-links a, body.home-page .about-body p, body.home-page .section-sub { color: rgba(255,255,255,.82); }
}

/* ---------- Services ---------- */
.service-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px;
}
.service-card {
  background: var(--card-bg); border: 1px solid var(--line);
  display: flex; flex-direction: column; overflow: hidden;
  transition: border-color .3s;
}
.service-card:hover { border-color: var(--accent-dim); }
.service-card-img { aspect-ratio: 16/10; overflow: hidden; background: #111; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .service-card-img img { transform: scale(1.05); }
.service-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.service-card-index {
  font-family: var(--font-display); font-size: 10px; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase; font-weight: 700;
}
.service-card-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; line-height: 1.1;
}
.service-card-list { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.service-card-list li {
  position: relative; padding-left: 17px;
  font-size: 13px; color: var(--text-dim); line-height: 1.6;
}
.service-card-list li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.service-for { font-size: 12px; color: var(--text-dimmer); }
.service-for strong { color: var(--text-dim); font-weight: 600; }
.service-card .btn { align-self: flex-start; margin-top: 4px; }

/* ---------- Trust strip ---------- */
.trust-strip-wrap {
  max-width: var(--max); margin: 0 auto; padding: 36px 0 40px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.trust-strip-wrap + .trust-strip-wrap { border-top: none; padding-top: 36px; }
.trust-strip-label {
  font-family: var(--font-display); font-size: 10px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--text-faint); text-align: center; margin-bottom: 22px;
  padding: 0 60px;
}
.trust-strip {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.trust-track {
  display: flex; align-items: center; width: max-content;
  gap: 52px; padding: 0 26px;
  animation: trust-marquee 32s linear infinite;
}
.trust-strip:hover .trust-track { animation-play-state: paused; }
.trust-track--reverse { animation-direction: reverse; animation-duration: 38s; }
@keyframes trust-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  body:not(.motion-opted-in) .trust-track { animation-play-state: paused; }
}
.trust-logo { height: 26px; display: flex; align-items: center; justify-content: center; opacity: .45; transition: opacity .2s, transform .2s; flex: none; }
.trust-logo:hover { opacity: 1; transform: translateY(-1px); }
.trust-logo-text {
  font-family: var(--font-display); font-size: 16px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); white-space: nowrap;
  transition: color .2s;
}
.trust-logo:hover .trust-logo-text { color: #fff; }
.trust-logo-img { max-height: 100%; max-width: 96px; width: auto; height: auto; object-fit: contain; filter: grayscale(100%) brightness(1.6); transition: filter .2s; }
.trust-logo:hover .trust-logo-img { filter: none; }

@media (max-width: 700px) {
  .trust-strip-wrap { padding: 28px 0 32px; }
  .trust-strip-label { padding: 0 24px; }
  .trust-track { gap: 32px; }
  .trust-logo-text { font-size: 13px; }
}

/* ---------- Collaborations & Testimonials ---------- */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;
}
.testimonial-card { border: 1px solid var(--line); background: var(--card-bg); padding: 28px 26px; }
.testimonial-quote { font-size: 16px; line-height: 1.75; color: var(--text-dim); font-style: italic; }
.testimonial-quote::before { content: '\201C'; color: var(--accent); font-size: 28px; margin-right: 4px; }
.testimonial-author {
  font-family: var(--font-display); font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-dimmer); margin-top: 16px; font-weight: 600;
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  transition: transform .2s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab svg { width: 28px; height: 28px; fill: #fff; }

@media (max-width: 700px) {
  .whatsapp-fab { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .whatsapp-fab svg { width: 24px; height: 24px; }
}
