/* Shared basics. index.html sets the colors via CSS variables,
   including --accent: change that one line to add a signature color later. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.page { display: none; }
.page.is-current { display: block; animation: page-in .6s ease both; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }
body[data-page="contact"] .hide-on-contact,
body[data-page="thanks"] .hide-on-contact { display: none !important; }
body:not([data-thanks="careers"]) [data-thanks-for="careers"],
body[data-thanks="careers"] [data-thanks-for="contact"] { display: none; }

/* placeholder media: a photo layer that slowly drifts to feel like footage */
.ph { position: relative; overflow: hidden; background: #0b0b0b; }
.ph::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.ph > .ph-img { position: absolute; inset: -6%; background-size: cover; background-position: center; filter: saturate(1.1); }
.ph-vid > .ph-img { animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1) translate(0, 0) rotate(0deg); } to { transform: scale(1.15) translate(-3%, -2%) rotate(3deg); } }
/* Instagram-style progress bar: thin, translucent track, softened white fill */
.ph-bar { position: absolute; left: 10px; right: 10px; top: 10px; height: 2px; background: rgba(255,255,255,.3); box-shadow: 0 0 4px rgba(0,0,0,.25); border-radius: 2px; overflow: hidden; z-index: 2; }
.ph-bar::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.88); transform-origin: left; animation: bar var(--d, 8s) linear infinite; }
@keyframes bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.ph-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.has-video::before { display: none; }
/* horizontal clips in small phone-shaped tiles fill the frame (center crop, like an Instagram grid);
   the full horizontal frame plays on the project page and in the wide tiles on Our Work */
.snd { position: absolute; right: 12px; bottom: 12px; z-index: 5; border: 0; border-radius: 99px; padding: 9px 14px; font: 600 12px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: rgba(0,0,0,.55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); cursor: pointer; }
.has-video .play { display: none; }
.has-video .ph-bar::after { animation: none; transform: scaleX(var(--p, 0)); }

.is-hidden { display: none !important; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ph-vid > .ph-img, .ph-bar::after, .page.is-current { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* small players (3-across reel walls on phones): a compact sound pill that doesn't cover the footage */
@media (max-width: 700px) { .wall .snd { right: 6px; bottom: 6px; padding: 6px 8px; font-size: 10px; white-space: nowrap; } }
