/* ARMADA motion build: scroll effects layered on top of v2.css.
   Everything here is opt-in: html.motion-on is set by motion.js (not for reduced-motion users),
   so without it the page falls back to the plain v2 layout. */

/* ---------- 1. Hero: the reel grows from a card to full screen as you scroll ---------- */
.hg-stick { display: contents; }
.motion-on .hero-grow { height: 300svh; min-height: 0; padding: 0; display: block; }
.motion-on .hg-stick {
  display: flex; align-items: flex-end; position: sticky; top: 0; height: 100svh; overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 clamp(36px, 6vw, 72px);
}
.motion-on .hero-grow .hero-content { width: 100%; }
/* Near the end of the grow, the line fades out and ARMADA fades in, then holds for a moment before the page moves on. */
.hero-brand { display: none; }
.motion-on .hero-grow .hero-content { display: grid; align-items: end; }
.motion-on .hero-grow .hero-content > * { grid-area: 1 / 1; }
.motion-on .hero-grow h1 { opacity: clamp(0, 1 - 2 * var(--t, 0), 1); transform: translateY(calc(var(--t, 0) * -24px)); }
.motion-on .hero-brand { display: block; margin: 0; font-size: clamp(4rem, 1rem + 13vw, 15rem); letter-spacing: -.045em; line-height: .9;
  opacity: clamp(0, 2 * var(--t, 0) - 1, 1); transform: translateY(calc((1 - var(--t, 0)) * 24px)); }
/* The card grows by scaling the frame and counter-scaling the video inside it (set in motion.js).
   Transforms run on the graphics card, so the full-screen video never has to be repainted while you scroll. */
.motion-on .hero-grow .hero-bg { will-change: transform; transform-origin: 50% 50%; }
.motion-on .hero-grow .hero-bg video { will-change: transform; transform-origin: 50% 50%; }
.motion-on .hero-grow .hero-bg::after { will-change: opacity; }
.motion-on .hero-grow h1, .motion-on .hero-brand { will-change: opacity, transform; }
.motion-on .hero-grow .hero-bg::after { opacity: calc(.5 + .5 * var(--p, 0)); }
@media (max-width: 699px) {
  .motion-on .hero-grow { height: 250svh; }
}

/* ---------- 2. Statement: words fill in as you read; photos drift at different speeds ---------- */
.statement { position: relative; overflow: hidden; padding: clamp(200px, 17vw, 250px) 0; }
.statement .wrap { position: relative; z-index: 1; }
.statement .fill-words {
  margin: 0 auto; max-width: 22ch; text-align: center;
  font-size: clamp(1.8rem, 1.1rem + 3vw, 4rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.12;
}
.fill-words.split .w { opacity: .16; transition: opacity .35s ease; }
.fill-words.split .w.lit { opacity: 1; }
/* Twelve photos in a range of sizes, scattered around the sentence (never behind it on desktop). */
.drift { position: absolute; z-index: 0; overflow: hidden; border-radius: 6px; background: var(--paper-2); will-change: transform; }
.drift img { width: 100%; height: 100%; object-fit: cover; }
.drift.d1 { left: 3%;   top: 5%;     width: 18vw; aspect-ratio: 4/5; }
.drift.d2 { left: 22%;  top: 4%;     width: 10.5vw;  aspect-ratio: 1/1; }
.drift.d3 { right: 23%; top: 1%;     width: 10.5vw;  aspect-ratio: 4/5; }
.drift.d4 { right: 2%;  top: 9%;     width: 20vw; aspect-ratio: 4/3; }
.drift.d5 { left: 6%;   top: 50%;    width: 15vw; aspect-ratio: 4/3; }
.drift.d6 { right: 5%;  top: 45%;    width: 15vw; aspect-ratio: 4/5; }
.drift.d7 { left: 17%;  bottom: 2%;  width: 17vw; aspect-ratio: 3/2; }
.drift.d8 { right: 12%; bottom: 6%;  width: 11vw; aspect-ratio: 1/1; }
.drift.d9  { left: 37%;  top: 1%;     width: 8vw;  aspect-ratio: 3/2; }
.drift.d10 { right: 37%; bottom: 1%;  width: 9vw;  aspect-ratio: 4/3; }
.drift.d11 { left: 15%;  top: 39%;    width: 7vw;  aspect-ratio: 1/1; }
.drift.d12 { right: 2%;  bottom: 3%;  width: 9vw;  aspect-ratio: 4/5; }
@media (max-width: 899px) {
  .statement { padding: 230px 0 250px; }
  .drift.d1 { left: -14px; top: 30px;  width: 124px; }
  .drift.d2 { left: 108px; top: 14px;  width: 72px; }
  .drift.d3 { right: 96px; top: 40px;  width: 78px; }
  .drift.d4 { right: -20px; top: 18px; width: 134px; }
  .drift.d5, .drift.d6, .drift.d9, .drift.d11 { display: none; }
  .drift.d10 { right: auto; left: 138px; bottom: 8px; width: 80px; }
  .drift.d12 { right: -16px; bottom: 150px; width: 72px; }
  .drift.d7 { left: -10px; bottom: 30px; width: 156px; }
  .drift.d8 { right: 20px; bottom: 60px; width: 94px; }
}

/* ---------- 3. What we do: the list holds still and lights up one service at a time ---------- */
.services { background: var(--ink); color: var(--on-green); }
.svc-stick { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.svc-grid { display: grid; gap: clamp(24px, 4vw, 64px); align-items: center; }
@media (min-width: 900px) { .svc-grid { grid-template-columns: 1.15fr 1fr; } }
.svc-list .label { color: rgb(238 241 238 / .6); }
.svc-list ol { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.svc-list .svc-item {
  display: flex; align-items: baseline; gap: .9rem; text-decoration: none;
  font-size: clamp(1.6rem, .9rem + 3.4vw, 4.4rem); font-weight: 300; letter-spacing: -.035em; line-height: 1.1;
  color: rgb(238 241 238 / .26); transition: color .35s ease;
}
.svc-list .svc-item .num { flex: 0 0 auto; font-size: .72rem; font-weight: 600; letter-spacing: .1em; transform: translateY(-1.1em); }
.svc-list .svc-item.on { color: #fff; }
.svc-media { position: relative; aspect-ratio: 4/5; max-height: calc(100svh - var(--header-h) - 80px); width: 100%; overflow: hidden; background: #000; justify-self: end; }
.svc-frame { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.05); transition: opacity .55s ease, transform .9s ease; }
.svc-frame.on { opacity: 1; transform: none; }
.svc-frame img { width: 100%; height: 100%; object-fit: cover; }
.svc-frame figcaption {
  position: absolute; left: 16px; right: 16px; bottom: 14px; color: #fff; text-shadow: 0 1px 14px rgb(0 0 0 / .55);
  font-size: var(--t-label); font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}
.motion-on .services { height: calc(var(--n) * 45svh + 100svh); }
.motion-on .svc-stick { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 8px) 0 24px; }
.motion-on .svc-stick > .wrap { width: 100%; }
/* Photo fills the whole block, behind the list; a dark gradient from the left keeps the type readable. */
.services { position: relative; }
.svc-stick { overflow: hidden; }
.svc-list { position: relative; z-index: 1; }
.svc-media { position: absolute; inset: 0; width: auto; max-height: none; aspect-ratio: auto; margin: 0; z-index: 0; justify-self: stretch; }
.svc-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to right, rgb(20 24 22 / .97) 0%, rgb(20 24 22 / .9) 30%, rgb(20 24 22 / .55) 55%, rgb(20 24 22 / .08) 85%);
}
.svc-frame figcaption { z-index: 2; left: auto; right: var(--gutter); bottom: 24px; text-align: right; }
@media (min-width: 900px) {
  .svc-grid { grid-template-columns: 1fr; min-height: clamp(420px, 60vh, 640px); }
  .services .wrap { max-width: none; }
  .svc-list { max-width: calc(54vw - 2 * var(--gutter)); }
  .svc-list .svc-item { font-size: min(4.4rem, 3.5vw); }
}
@media (max-width: 899px) {
  /* Phones: darker from the top, where the list sits; the photo shows through below. */
  .svc-media::after { background: linear-gradient(to bottom, rgb(20 24 22 / .95) 0%, rgb(20 24 22 / .85) 45%, rgb(20 24 22 / .25) 80%, rgb(20 24 22 / .1) 100%); }
  .motion-on .svc-stick { align-items: flex-start; padding-top: calc(var(--header-h) + 48px); }
}

/* Studio headshots FAQ: the same stepped list, no photos; the answer sits to the right. */
.faq-steps .svc-list .svc-item { display: block; }
.faq-steps .svc-item button {
  display: flex; align-items: baseline; gap: .9rem; width: 100%; padding: .06em 0; border: 0; background: none;
  font: inherit; letter-spacing: inherit; line-height: inherit; color: inherit; text-align: left; cursor: pointer;
}
.faq-steps .svc-item button:focus-visible { outline: 1px solid rgb(238 241 238 / .6); outline-offset: 6px; }
.faq-panes { display: grid; align-self: center; }
.faq-pane {
  grid-area: 1 / 1; max-width: 46ch; padding-left: clamp(18px, 2.4vw, 36px); border-left: 1px solid rgb(238 241 238 / .22);
  font-size: var(--t-lead); font-weight: 300; line-height: 1.5; color: rgb(238 241 238 / .86);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .45s ease, transform .7s ease, visibility 0s linear .45s;
}
.faq-pane.on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.faq-pane > :last-child { margin-bottom: 0; }
.faq-pane a { color: #fff; }
@media (min-width: 900px) {
  .faq-steps .svc-grid { grid-template-columns: 1.15fr 1fr; }
  .faq-steps .svc-list { max-width: none; }
  .faq-steps .svc-list .svc-item { font-size: min(4rem, 3.1vw); }
}
@media (max-width: 899px) {
  .faq-pane { font-size: 1.05rem; }
}

/* ---------- 4. More work: a swipeable row (touch, trackpad, drag, or the arrows) ---------- */
.head-end { display: flex; justify-content: flex-start; }
@media (min-width: 900px) { .head-end { justify-content: flex-end; } }
.more-work .section-head { margin-bottom: clamp(24px, 3vw, 40px); }
.rail-nav { display: flex; gap: .5rem; justify-content: flex-start; }
@media (min-width: 900px) { .rail-nav { justify-content: flex-end; } }
.rail-nav button {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; color: var(--ink);
  font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .2s, color .2s, opacity .2s;
}
.rail-nav button:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.rail-nav button:disabled { opacity: .25; cursor: default; }
.rail {
  --edge: 0px;  /* full bleed: the row runs edge to edge of the window */
  display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: 0 var(--edge); scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail::after { content: ""; flex: 0 0 1px; }
.rail.drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.rail.drag .card { pointer-events: none; }
.rail .card { flex: 0 0 clamp(250px, 27vw, 400px); scroll-snap-align: start; }
.rail:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.rail-bar { height: 2px; background: var(--rule); margin-top: 1.8rem; overflow: hidden; }
.rail-bar i { display: block; height: 100%; width: 20%; background: var(--ink); transition: transform .15s linear; }

/* ---------- About (v2.1) ---------- */
/* Bio now follows the full-width photo, so it needs its own top spacing. */
.interstitial + .about-bio { padding-top: clamp(64px, 10vw, 140px); }
/* "The team" intro: larger, full-strength type. */
.about-teamhead h2 { font-size: var(--t-h1); }
/* Bio and team copy share one size and colour for continuity. */
.about-bio .story .body, .about-teamhead .story .body { font-size: clamp(1.15rem, .95rem + .7vw, 1.6rem); line-height: 1.5; color: var(--ink); max-width: 52ch; }

/* About lead: title and intro on the left, the vertical reel on the right. */
.about-lead-grid { display: grid; gap: clamp(24px, 4vw, 64px); padding-top: clamp(16px, 3vw, 48px); padding-bottom: clamp(48px, 7vw, 100px); }
.about-lead .case-head { padding-bottom: 0; }
.about-lead .about-film { justify-self: center; }
@media (min-width: 900px) {
  .about-lead-grid { grid-template-columns: 1fr auto; align-items: center; }
  .about-lead .case-head .case-title { font-size: min(var(--t-case), calc((min(100vw, var(--max)) - 2 * var(--gutter) - 460px) / (var(--lmax) * .46))); }
  .about-lead .about-film { width: min(380px, calc((100svh - 160px) * 9 / 16)); padding-top: 0; }
}
/* "One creative lead": a light wash over the whole photo, darker toward the type. */
.about-inter .interstitial-bg::after { background:
  linear-gradient(to right, rgb(10 14 12 / .62) 0%, rgb(10 14 12 / .38) 40%, rgb(10 14 12 / .08) 75%, rgb(10 14 12 / 0) 100%),
  linear-gradient(to top, rgb(10 14 12 / .45), rgb(10 14 12 / 0) 55%); }

/* ---------- Contact (v2.1): the studio backdrop runs full bleed behind the header ---------- */
.contact-hero { position: relative; isolation: isolate; color: #fff; background: var(--ink); overflow: hidden;
  margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + clamp(64px, 10vw, 150px)); padding-bottom: clamp(64px, 9vw, 130px); }
.contact-bg { position: absolute; inset: 0; z-index: -1; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgb(10 14 12 / .78), rgb(10 14 12 / .5)); }
.contact-hero .label { color: rgb(255 255 255 / .7); }
.contact-hero .lead { color: rgb(255 255 255 / .88); }
.contact-hero + .rule { display: none; }

/* The statement under it gets a little breathing room from the edges. */
.about-lead + .statement { margin: clamp(16px, 2.5vw, 40px) clamp(12px, 2vw, 32px); }
.about-lead + .statement .fill-words { font-size: clamp(1.7rem, 1rem + 2.7vw, 3.5rem); }

/* Client logos: every logo colours up on hover, linked or not, so the wall feels even. */
.clients li:hover img { filter: none; opacity: 1; transform: scale(1.06); }
