/* ==========================================================
   Showreel + Global footprint (shared by index.html & showcase.html)
   ========================================================== */

/* ---------- Showreel ---------- */
.reel { padding-bottom: clamp(60px, 9vw, 120px); }
.reel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 40px; margin-bottom: clamp(36px, 5vw, 64px); }
.reel__meta { color: #b5aca6; max-width: 380px; font-size: 16px; }
.reel__meta span { display: inline-block; margin-top: 10px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-2); }

.reel__frame {
  --grow: 1;
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000;
  border-radius: calc(28px - 18px * var(--grow));
  transform: scale(calc(0.86 + 0.14 * var(--grow)));
  transform-origin: 50% 0;
  box-shadow: 0 40px 120px rgba(0,0,0,.55);
  isolation: isolate;
}
.reel__teaser, .reel__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__video { z-index: 3; background: #000; object-fit: contain; }
.reel__frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(70% 70% at 50% 50%, transparent 40%, rgba(0,0,0,.55)), linear-gradient(180deg, transparent 60%, rgba(0,0,0,.5)); transition: opacity .6s; }
.reel__frame.is-playing::after { opacity: 0; }

.reel__play { position: absolute; left: 50%; top: 50%; z-index: 2; width: clamp(130px, 14vw, 200px); aspect-ratio: 1; margin: calc(clamp(130px, 14vw, 200px) / -2) 0 0 calc(clamp(130px, 14vw, 200px) / -2); display: grid; place-items: center; transition: transform .6s var(--ease), opacity .4s; }
.reel__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: reelSpin 14s linear infinite; }
.reel__ring text { font-family: var(--f-body); font-size: 15.5px; font-weight: 700; letter-spacing: .32em; fill: #fff; }
@keyframes reelSpin { to { transform: rotate(360deg); } }
.reel__btn { width: 42%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--accent); box-shadow: 0 0 0 0 var(--glow); transition: transform .5s var(--ease), background .3s; animation: pulse 2.2s infinite; }
.reel__btn svg { width: 34%; margin-left: 8%; fill: #fff; }
.reel__play:hover .reel__btn { transform: scale(1.12); background: var(--accent-2); }
.reel__frame.is-playing .reel__play, .reel__frame.is-playing .reel__badge { opacity: 0; pointer-events: none; }

.reel__badge { position: absolute; left: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 24px); z-index: 2; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 100px; background: rgba(0,0,0,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; transition: opacity .4s; }
.reel__badge i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; animation: pulse 1.6s infinite; }
@media (max-width: 600px) { .reel__frame { transform: none; border-radius: 12px; } .reel__badge { display: none; } }
@media (hover: none) { .reel__play { transform: none !important; } }

/* ---------- Global footprint ---------- */
.global { overflow: hidden; border-top: 1px solid var(--line); background: radial-gradient(60% 70% at 85% 50%, rgba(202,67,0,.10), transparent 70%), var(--bg); }
.global__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.global__lead { color: #b5aca6; font-size: clamp(16px, 1.3vw, 19px); max-width: 520px; margin-top: 24px; }
.global__stats { display: flex; gap: clamp(28px, 4vw, 56px); margin: 36px 0 34px; }
.global__stats div { display: flex; flex-direction: column; }
.global__stats b { font-family: var(--f-display); font-weight: 800; font-size: clamp(46px, 5vw, 72px); line-height: 1; }
.global__stats b::before { content: "0"; }
.global__stats span { color: var(--muted); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; margin-top: 8px; }

.places__label { font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent-2); margin: 22px 0 12px; }
.places__list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.places__list button { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 14px; border-radius: 100px; border: 1px solid var(--line); font-size: 15px; font-weight: 600; color: #ddd4cd; transition: background .35s, border-color .35s, color .35s, transform .35s var(--ease); }
.places__list button::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 3px rgba(255,106,31,.18); }
.places__list button:hover, .places__list button.is-active { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.places__list button:hover::before, .places__list button.is-active::before { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }

.global__visual { position: relative; }
.globe-canvas { display: block; width: 100%; aspect-ratio: 1; max-height: 680px; cursor: grab; touch-action: pan-y; }
.globe-canvas:active { cursor: grabbing; }
.global__hint { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-top: 6px; }
/* If the map data can't load, show a simple line globe instead */
.global__visual.is-fallback .globe-canvas { display: none; }
.global__visual.is-fallback::before { content: ""; display: block; width: min(80%, 420px); aspect-ratio: 1; margin: 0 auto; border-radius: 50%; border: 1px solid rgba(255,106,31,.5); box-shadow: inset 0 0 80px rgba(255,106,31,.12); background: repeating-linear-gradient(0deg, transparent 0 38px, rgba(255,255,255,.05) 38px 39px); }
.global__visual.is-fallback .global__hint { display: none; }

@media (max-width: 900px) {
  .global__grid { grid-template-columns: 1fr; }
  .global__visual { order: -1; max-width: 520px; margin: 0 auto; width: 100%; }
}

/* ---------- Hero: sound toggle for the background showreel ---------- */
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero__sound { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 100px; border: 1px solid rgba(255,255,255,.25); background: rgba(11,11,11,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--text); font-weight: 600; font-size: 14px; transition: border-color .4s, background .4s; }
.hero__sound:hover { border-color: var(--accent); }
.hero__sound svg { width: 20px; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.hero__sound .i-on, .hero__sound[aria-pressed="true"] .i-off { display: none; }
.hero__sound[aria-pressed="true"] .i-on { display: block; }
.hero__sound[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.hero__eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.hero__eq i { width: 3px; height: 30%; background: currentColor; border-radius: 2px; opacity: .5; }
.hero__sound[aria-pressed="true"] .hero__eq i { opacity: 1; animation: eq .9s ease-in-out infinite alternate; }
.hero__eq i:nth-child(2) { animation-delay: -.3s !important; } .hero__eq i:nth-child(3) { animation-delay: -.6s !important; } .hero__eq i:nth-child(4) { animation-delay: -.15s !important; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
@media (max-width: 520px) { .hero__sound-label { display: none; } }

/* ---------- About: longer statement + stats on one row ---------- */
.about__vision--long { font-size: clamp(24px, 3.1vw, 48px); line-height: 1.22; max-width: 1240px; }
.about__grid--stats { grid-template-columns: 1fr; }
@media (min-width: 901px) { .about__grid--stats .stats .stat { min-height: 170px; } }

/* ---------- Client logos strip (replaces the text marquee) ---------- */
.clients { position: relative; z-index: 2; background: var(--bg); border-block: 1px solid var(--line); padding: 22px 0 0; }
.clients__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.clients__title { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-body); font-weight: 600; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: #ddd4cd; }
.clients__count { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.marquee--clients { border: 0; padding: 18px 0 24px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee--clients .marquee__track { gap: 0; animation-duration: 48s; }
.marquee--clients:hover .marquee__track { animation-play-state: paused; }
.clients__set { list-style: none; display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); padding-right: clamp(18px, 2.4vw, 36px); }
.client { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.marquee--clients .client span { -webkit-text-stroke: 0; color: inherit; font-size: inherit; }
.client__logo { display: grid; place-items: center; height: 78px; min-width: 120px; padding: 8px 16px; border-radius: 14px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .5s var(--ease), box-shadow .5s; }
.client__logo img { display: block; width: auto; height: auto; max-height: 60px; max-width: 170px; }
.marquee--clients .client__name { font-family: var(--f-display); font-weight: 600; font-size: clamp(16px, 1.4vw, 20px); white-space: nowrap; color: #cfc8c2; transition: color .4s; }
.client:hover .client__logo { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(202,67,0,.35); }
.marquee--clients .client:hover .client__name { color: var(--accent-2); }
@media (max-width: 600px) {
  .client__logo { height: 62px; min-width: 96px; padding: 6px 12px; }
  .client__logo img { max-height: 48px; max-width: 130px; }
}

/* ---------- Hero: script lettering from the PDF layered over PORTFOLIO ---------- */
/* .hero__brand gets the fitted title size from JS, so everything below scales in em with the title */
.hero__brand { position: relative; display: block; font-size: clamp(32px, 9vw, 200px); padding-bottom: 1.15em; }
.hero__brand .hero__title { font-size: 1em; white-space: nowrap; }
.hero__brand .hero__script {
  position: absolute; left: 50%; top: .2em; width: 7.2em; margin: 0 0 0 -3.6em; opacity: 1; transform: none;
  color: #fff; pointer-events: none; filter: drop-shadow(0 6px 24px rgba(0,0,0,.5));
  clip-path: inset(-30% 100% -30% 0); transition: clip-path 2.2s cubic-bezier(.65, 0, .35, 1) 1.1s;
}
body.is-ready .hero__brand .hero__script { clip-path: inset(-30% -5% -30% 0); }   /* written in, left to right */
.hero__script-svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero__brand + .hero__row { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .hero__brand .hero__script { clip-path: none; } }
