/* ==========================================================================
   Inner pages — Amplify PR · AMP:UP! · Pictures · Partners · Legal
   ========================================================================== */

.hero-ctas { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

/* ---------- PR hero floating media ---------- */
.float-media { position: absolute; inset: 0; }
.fm { position: absolute; margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 50px 100px -30px rgba(0,0,0,.9), 0 0 0 1px var(--line); }
.fm img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(.6); }
.fm::after { content: ""; position: absolute; inset: 0; background: var(--holo); mix-blend-mode: soft-light; opacity: .35; }
.fm--1 { width: clamp(180px, 22vw, 340px); aspect-ratio: 4/5; right: 6%; top: 14%; transform: rotate(4deg); }
.fm--2 { width: clamp(120px, 13vw, 210px); aspect-ratio: 4/5; right: 30%; top: 8%; transform: rotate(-6deg); opacity: .8; }
.fm--3 { width: clamp(110px, 11vw, 180px); aspect-ratio: 4/5; right: 22%; top: 52%; transform: rotate(8deg); opacity: .6; }
@media (max-width: 860px) {
  .fm--1 { right: -8%; top: 12%; width: 46vw; opacity: .55; }
  .fm--2 { right: 40%; top: 10%; width: 26vw; opacity: .35; }
  .fm--3 { display: none; }
}
.phero .phero__title { text-shadow: 0 10px 60px rgba(0,0,0,.6); }
.phero--short { min-height: 78svh; }
.phero--legal { min-height: auto; padding-top: calc(var(--header-h) + 80px); padding-bottom: 20px; }
.phero--404 { align-items: center; }
.phero--404 .display { font-size: clamp(120px, 26vw, 360px); }

.about__sub { margin-top: 32px; max-width: 46ch; }
.hint-tap { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Expertise card icon drawing ---------- */
.xcard__icon svg .draw { stroke-dasharray: 260; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s var(--ease), stroke .4s; }
.xcard:hover .xcard__icon svg .draw { animation: draw 1.4s var(--ease) both; }
.xcard__icon svg { color: var(--ink); filter: drop-shadow(0 0 0 rgba(185,179,255,0)); transition: filter .5s, color .5s; }
.xcard:hover .xcard__icon svg { color: var(--holo-cyan); filter: drop-shadow(0 0 12px rgba(142,243,255,.8)); }
.xcard:hover .xcard__icon .wave { animation: draw 1.4s var(--ease) both, blink 1.2s .8s ease-in-out infinite; }
@keyframes draw { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
@keyframes blink { 50% { opacity: .3; } }

/* ---------- Case variations ---------- */
.case--flip .case__media { order: 2; }
.case--flip .case__copy { order: 1; }
@media (max-width: 960px) { .case--flip .case__media { order: 0; } }
.stack-wrap { position: relative; padding-bottom: 70px; max-width: 520px; margin-inline: auto; }
@media (max-width: 600px) { .stack-wrap { padding-inline: 14px; } }
.hint-tap .t-touch { display: none; }
@media (hover: none) { .hint-tap .t-desk { display: none; } .hint-tap .t-touch { display: inline; } }
.mid-cta { margin-top: clamp(80px, 10vw, 140px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 32px; border-radius: var(--radius); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- AMP:UP! hero ---------- */
.phero--ampup { align-items: center; }
.holo-mesh {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(246,184,232,.28), transparent 60%),
    radial-gradient(45% 50% at 80% 25%, rgba(142,243,255,.22), transparent 60%),
    radial-gradient(50% 60% at 60% 80%, rgba(185,179,255,.25), transparent 60%);
  filter: blur(30px);
  animation: meshMove 18s ease-in-out infinite alternate;
}
@keyframes meshMove { to { transform: translate(4%, -3%) rotate(6deg) scale(1.08); } }
.wave-canvas { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46%; opacity: .9; }
.au-logo { width: min(86vw, 760px); margin: 10px 0 18px -1%; filter: drop-shadow(0 0 40px rgba(185,179,255,.35)); }
.au-logo img { width: 100%; }
.au-title { font-size: clamp(42px, 7.4vw, 124px); }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter {
  height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); transition: background .3s, color .3s, box-shadow .3s;
}
.filter:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: 0 0 24px rgba(185,179,255,.35); }

/* ---------- Shows grid ---------- */
.shows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.show--wide { grid-column: 1 / -1; }
@media (max-width: 960px) { .shows { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .shows { grid-template-columns: 1fr; } }
.show {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line); transition: transform .6s var(--ease), box-shadow .5s; cursor: pointer;
}
.show:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 40px 80px -40px rgba(185,179,255,.55); }
.show__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.show__media figure { margin: 0; height: 100%; }
.show__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85); }
.show:hover .show__media img { transform: scale(1.08); filter: saturate(1.1); }
.show__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.85)); }
.show__media--trio { aspect-ratio: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.show__media--trio figure { aspect-ratio: 3 / 4; overflow: hidden; }
.show__media--trio figure:nth-child(2) img { transition-delay: .05s; }
.show__media--trio figure:nth-child(3) img { transition-delay: .1s; }
.show__info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px 22px; display: flex; justify-content: space-between; align-items: end; gap: 16px; pointer-events: none; }
.show__info small { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.show__info h3 { font-size: clamp(20px, 2vw, 28px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-top: 6px; }
.show__go { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); transform: scale(.6) rotate(-45deg); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
.show:hover .show__go { transform: none; opacity: 1; box-shadow: var(--glow); }

/* ---------- Capabilities list ---------- */
.caps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: c; }
.cap {
  position: relative; display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 18px;
  padding: clamp(18px, 2.4vw, 30px) 0; border-bottom: 1px solid var(--line); cursor: default; overflow: hidden;
}
.cap__n { font-family: var(--mono); font-size: 12px; color: var(--mute); letter-spacing: .1em; }
.cap__t { font-size: clamp(24px, 4vw, 60px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
@media (max-width: 860px) { .cap { grid-template-columns: 44px 1fr; } }

/* ---------- Partnership panels ---------- */
.panels { display: flex; gap: 12px; height: clamp(380px, 40vw, 500px); }
.panel {
  position: relative; flex: 1; min-width: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  padding: 26px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: flex .8s var(--ease), background .5s, box-shadow .5s;
  outline: none;
}
.panel::after { content: ""; position: absolute; right: -30%; bottom: -30%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: var(--holo); filter: blur(70px); opacity: 0; transition: opacity .6s; pointer-events: none; }
.panel.is-open { flex: 2.6; background: linear-gradient(160deg, #18181d, #0a0a0c); box-shadow: inset 0 0 0 1px rgba(185,179,255,.45); }
.panel.is-open::after { opacity: .3; }
.panel:focus-visible { box-shadow: inset 0 0 0 2px var(--holo-cyan); }
.panel__n { font-family: var(--mono); font-size: 12px; color: var(--mute); }
.panel__t { font-size: clamp(22px, 2.4vw, 34px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; position: relative; z-index: 1; }
.panel:not(.is-open) .panel__t { writing-mode: vertical-rl; transform: rotate(180deg); align-self: flex-start; white-space: nowrap; font-size: clamp(18px, 1.8vw, 24px); }
.panel__body { position: relative; z-index: 1; display: grid; gap: 18px; justify-items: start; opacity: 0; transform: translateY(20px); transition: opacity .4s, transform .6s var(--ease); max-height: 0; overflow: hidden; }
.panel.is-open .panel__body { opacity: 1; transform: none; max-height: 300px; transition-delay: .25s; }
.panel__body p { color: var(--ink-2); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.45; max-width: 36ch; }
@media (max-width: 860px) {
  .panels { flex-direction: column; height: auto; }
  .panel { min-height: 76px; }
  .panel:not(.is-open) .panel__t { writing-mode: initial; transform: none; }
  .panel { display: grid; gap: 14px; }
}

/* ---------- Pictures ---------- */
.phero--pictures .phero__bg { background: radial-gradient(70% 60% at 70% 30%, rgba(185,179,255,.12), transparent 70%); }
.projector {
  position: absolute; right: -10%; top: -10%; width: 90%; height: 130%;
  background: conic-gradient(from 220deg at 100% 0%, transparent 0deg, rgba(255,255,255,.08) 12deg, rgba(185,179,255,.12) 20deg, transparent 34deg);
  filter: blur(6px); animation: flicker 4s steps(12) infinite;
}
@keyframes flicker { 0%, 100% { opacity: .9; } 30% { opacity: .75; } 31% { opacity: 1; } 60% { opacity: .85; } }
.rec { color: var(--ink); }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: #ff4466; box-shadow: 0 0 10px #ff4466; animation: pulse 1.2s infinite; }
.rec::before { display: none; }
@keyframes pulse { 50% { opacity: .2; } }
/* static film strip: one featured project, no sideways scrolling (it fought page scroll) */
.reel { position: relative; overflow: hidden; padding: 40px 0 50px; }
.reel::before, .reel::after {
  content: ""; display: block; height: 22px; width: 100%;
  background-image: radial-gradient(circle at 12px 11px, var(--bg) 0 5px, transparent 5.5px);
  background-size: 28px 22px; background-color: #121215; pointer-events: none;
}
.reel__track { display: flex; justify-content: center; gap: 22px; padding: 22px var(--gutter); background: #121215; }
.frame { position: relative; width: clamp(240px, 26vw, 360px); flex: none; border-radius: 6px; overflow: hidden; background: #000; transition: transform .6s var(--ease), box-shadow .5s; }
.frame__img { margin: 0; aspect-ratio: 2 / 3; overflow: hidden; cursor: zoom-in; }
.frame__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); pointer-events: none; }
.frame:hover .frame__img img { transform: scale(1.06); }
.frame:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.3), var(--glow); }
.frame__info { padding: 16px 16px 18px; }
.frame__info small { font-family: var(--mono); font-size: 11px; color: var(--mute); letter-spacing: .1em; text-transform: uppercase; }
.frame__info h3 { font-size: 20px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; margin-top: 4px; }

/* featured project card (opens the details dialog) */
.frame--feature { width: clamp(260px, 30vw, 400px); }
.frame__btn { display: block; width: 100%; text-align: left; cursor: pointer; }
.frame__btn .frame__img { display: block; cursor: pointer; }
.frame__btn .frame__info { display: grid; gap: 6px; }
.frame__t { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.15; }
.frame__roles { font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.frame__cta { margin-top: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--holo-cyan); display: inline-flex; gap: 8px; align-items: center; }
.frame__cta span { display: inline-block; transition: transform .4s var(--ease); }
.frame__btn:hover .frame__cta span, .frame__btn:focus-visible .frame__cta span { transform: translate(3px, -3px); }

/* project details dialog */
.film-dlg {
  width: min(1080px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: calc(var(--radius) * 1.2);
  background: linear-gradient(160deg, #141418, #070708 60%); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 60px 140px rgba(0,0,0,.85), 0 0 80px rgba(185,179,255,.12);
  overflow: auto; overscroll-behavior: contain;
}
.film-dlg::backdrop { background: rgba(3,3,4,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.film-dlg[open] { animation: dlgIn .6s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.film-dlg__in { padding: clamp(18px, 3vw, 36px); }
.film-dlg__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: clamp(18px, 2.4vw, 28px); }
.film-dlg__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(22px, 4vw, 48px); align-items: start; }
.film-dlg__poster { border-radius: 10px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0,0,0,.9), 0 0 0 1px var(--line); }
.film-dlg__poster img { width: 100%; }
.film-dlg__body { display: grid; gap: 22px; }
.film-dlg__body > p { color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.film-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.film-roles li { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 4px; }
.film-roles b { font-size: 15px; font-weight: 750; letter-spacing: -0.01em; line-height: 1.2; }
.film-roles span { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.film-dlg__cta { display: grid; gap: 16px; justify-items: start; padding-top: 22px; border-top: 1px solid var(--line); }
.film-dlg__cta p { color: var(--ink-2); font-size: 16px; }
.film-dlg__cta strong { color: var(--ink); }
@media (max-width: 760px) {
  .film-dlg__grid { grid-template-columns: 1fr; }
  .film-dlg__poster { max-width: 220px; }
  .film-roles { grid-template-columns: 1fr; }
}

/* click-to-play YouTube (nothing loads from YouTube until pressed) */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt__play { position: absolute; inset: 0; width: 100%; display: grid; place-items: center; cursor: pointer; }
.yt__play img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: brightness(.45) blur(2px); transform: scale(1.06); }
.yt__btn { position: relative; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); box-shadow: var(--glow); transition: transform .5s var(--ease); }
.yt__play:hover .yt__btn, .yt__play:focus-visible .yt__btn { transform: scale(1.08); }
.yt__label { position: absolute; left: 16px; right: 16px; bottom: 14px; display: grid; gap: 2px; text-align: left; font-weight: 650; font-size: 15px; text-shadow: 0 1px 10px rgba(0,0,0,.8); }
.yt__label small { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); font-weight: 400; }

/* ---------- Partners ---------- */
.grid-lines {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent 75%);
}
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1000px) { .logos { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .logos { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.logo {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  display: grid; place-items: center; padding: 18% 16% 24%;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .6s var(--ease), box-shadow .5s, background .5s;
}
.logo::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(185,179,255,.25), transparent 55%);
}
.logo img { position: relative; width: auto; height: auto; max-width: 74%; max-height: 50%; object-fit: contain; opacity: .78; transition: opacity .4s, filter .5s, transform .6s var(--ease); }
.logo__meta { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--mute); transform: translateY(8px); opacity: .0; transition: opacity .4s, transform .5s var(--ease); }
.logo__meta b { font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo__meta small { font-family: var(--mono); letter-spacing: .1em; }
.logo:hover { background: #111115; box-shadow: inset 0 0 0 1px rgba(185,179,255,.45), 0 30px 60px -30px rgba(185,179,255,.4); }
.logo:hover::before { opacity: 1; }
.logo:hover img { opacity: 1; filter: drop-shadow(0 0 14px rgba(185,179,255,.65)); transform: scale(1.05); }
.logo:hover .logo__meta { opacity: 1; transform: none; }
@media (hover: none) { .logo__meta { opacity: 1; transform: none; } }

.logo-marquee { overflow: hidden; padding: 40px 0; border-block: 1px solid var(--line); margin-top: clamp(40px, 6vw, 80px); }
.logo-marquee__track { display: flex; align-items: center; width: max-content; animation: marquee 50s linear infinite; will-change: transform; }
/* margin (not gap) keeps both halves identical → seamless -50% loop; fixed
   height + width attrs mean the track never changes size mid-animation */
.logo-marquee__track img { height: 44px; width: auto; flex: none; margin-right: 70px; opacity: .55; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }

.partners-bar { justify-content: flex-end; margin-bottom: 28px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.quote {
  position: relative; margin: 0; padding: clamp(28px, 3.4vw, 48px); border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(90% 120% at 100% 0%, rgba(185,179,255,.12), transparent 55%), var(--bg-2);
  box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 24px;
}
.quote::before {
  /* in normal flow above the quote, so it never sits on the copy */
  content: "\201C"; display: block; height: .62em; margin-bottom: -.2em; pointer-events: none;
  font-size: clamp(88px, 8vw, 120px); font-weight: 850; line-height: 1;
  background: var(--holo); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .8;
}
.quote blockquote { margin: 0; position: relative; z-index: 1; }
.quote blockquote p { font-size: clamp(20px, 1.9vw, 27px); line-height: 1.35; letter-spacing: -0.015em; font-weight: 550; }
.quote figcaption { position: relative; z-index: 1; margin-top: auto; display: grid; gap: 4px; padding-top: 20px; border-top: 1px solid var(--line); }
.quote figcaption b { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.quote figcaption span { color: var(--mute); font-size: 14px; }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Legal ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 20px; margin: 10px 0; }
.legal li + li { margin-top: 6px; }
.legal p + p { margin-top: 12px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
