/*
Theme Name: Motion 8 Night
Theme URI: https://motion8.com.au
Author: Motion 8 Pty Ltd
Author URI: https://motion8.com.au
Description: Motion 8 website, Night direction. Full-screen project slideshow with the logo in the middle, filmstrip project viewer, studio, process and contact pages with a working enquiry form.
Version: 3.3.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: motion8
*/
/* Layout: Night — dark throughout. A transparent top bar over a full-screen photo slideshow with the
   logo in the middle, then the filmstrip on black. Deliberately single dark theme. */
:root {
  --bg: #0E0E0D;
  --ink: #ECE8E1;
  --mute: #8A857D;
  --body: #BEB9B0;
  --rule: rgba(236,232,225,.12);
  --stone: #191817;
  --f-display: 'Syne', 'Helvetica Neue', Arial, sans-serif;
  --f-text: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-text); font-weight: 400; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--bg); }

/* ——— logo ——— */
.lg { display: block; width: auto; overflow: visible; }
.lg rect { transform-box: fill-box; }
.brand:hover .lg .u, .lg.play .u { animation: shiftU 1.4s cubic-bezier(.65,0,.35,1); }
@keyframes shiftU { 0% { transform: translateX(0); } 40% { transform: translateX(-10px); } 72% { transform: translateX(1.4px); } 100% { transform: translateX(0); } }
.lg.intro .u { animation: introU 1.6s cubic-bezier(.65,0,.35,1) .25s both; }
.lg.intro .l { animation: introL 1s cubic-bezier(.65,0,.35,1) both; }
@keyframes introU { 0% { transform: translate(-10px, -26px); opacity: 0; } 45% { transform: translate(-10px, 0); opacity: 1; } 75% { transform: translate(1.2px, 0); } 100% { transform: none; opacity: 1; } }
@keyframes introL { 0% { transform: translateY(24px); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* ——— frame: top bar ——— */
.top { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: calc(24px + env(safe-area-inset-top, 0px)) clamp(20px, 4vw, 56px) 24px; transition: background .4s, padding .4s, border-color .4s; border-bottom: 1px solid transparent; }
.top.solid { background: rgba(14,14,13,.84); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding-block: calc(14px + env(safe-area-inset-top, 0px)) 14px; border-bottom-color: var(--rule); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand .lg { height: 28px; }
.brand .wm { font-weight: 500; font-size: 12px; letter-spacing: .36em; }
.menu { display: flex; gap: clamp(20px, 2.6vw, 38px); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
.menu a { text-decoration: none; opacity: .75; transition: opacity .2s, border-color .2s; border-bottom: 1px solid transparent; padding-bottom: 4px; }
.menu a:hover, .menu a[aria-current="page"] { opacity: 1; border-bottom-color: currentColor; }
main { min-width: 0; }
main.pad-top { padding-top: 84px; }
.burger { display: none; }

/* ——— hero: slideshow with the logo in the middle ——— */
.hero { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: #000; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; transform: scale(1.06); transition: transform 8s linear; }
.slide.on img { transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(8,8,7,.22) 0%, rgba(8,8,7,.62) 100%); pointer-events: none; }
.hero .center { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; pointer-events: none; }
.hero .center .lg { height: clamp(92px, 16vh, 164px); }
.hero .center .wm { font-weight: 500; font-size: clamp(13px, 1.3vw, 17px); letter-spacing: .6em; padding-left: .6em; }
.hero .hcap { position: absolute; left: clamp(20px, 4vw, 56px); right: clamp(20px, 4vw, 56px); bottom: 30px; z-index: 3; display: flex; justify-content: space-between; align-items: end; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; }
.hero .hcap span { opacity: .7; }
.ticks { display: flex; gap: 6px; } .ticks i { width: 22px; height: 2px; background: rgba(236,232,225,.3); display: block; } .ticks i.on { background: var(--ink); }
.work { padding-top: clamp(72px, 9vw, 130px); }

/* ——— shared type ——— */
.eyebrow { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }
.h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(36px, 4.6vw, 72px); line-height: 1.02; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.h2 { font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 2.8vw, 42px); line-height: 1.08; margin: 0; text-wrap: balance; }
.lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.7; max-width: 58ch; margin: 0; }
.body { font-size: 15px; line-height: 1.75; color: var(--body); max-width: 62ch; margin: 0; }
.pad { padding-inline: clamp(20px, 4vw, 64px); }
.section { padding-block: clamp(64px, 8vw, 120px); }
.more { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.more span { transition: transform .3s; } .more:hover span { transform: translateX(5px); }
.rule-top { border-top: 1px solid var(--rule); }

/* ——— filmstrip ——— */
.fs { position: relative; overflow: hidden; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; background: var(--bg); }
.fs.dragging { cursor: grabbing; }
.fs .strip { display: flex; height: 100%; width: max-content; will-change: transform; }
.fs .strip.snapping { transition: transform .55s cubic-bezier(.22,1,.36,1); }
.fs .card { position: relative; height: 100%; flex-shrink: 0; overflow: hidden; cursor: pointer; }
.fs .card img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; transition: transform .8s cubic-bezier(.4,0,.2,1); max-width: none; }
.fs .card:hover img { transform: scale(1.03); }
.fs .card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.62) 0%, rgba(0,0,0,.18) 32%, transparent 52%); pointer-events: none; }
.fs .lab { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 24px 24px; color: #fff; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.fs .lab .n { font-size: 10px; letter-spacing: .18em; opacity: .6; margin-bottom: 6px; }
.fs .lab .t { font-family: var(--f-display); font-weight: 500; font-size: clamp(16px, 1.6vw, 21px); line-height: 1.2; }
.fs .lab .e { font-size: 11px; letter-spacing: .06em; opacity: .7; margin-top: 4px; }
.fs .lab .go { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.7); padding-bottom: 3px; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity .4s .3s, transform .4s .3s; pointer-events: none; }
.fs .card.expanded .lab .go { opacity: 1; transform: none; pointer-events: auto; }
.fs-bar { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px clamp(20px, 2vw, 28px); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.fs-bar .ct { font-variant-numeric: tabular-nums; }

/* ——— home ——— */
.home-strip { height: 80vh; min-height: 460px; }
.intro-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.feature { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: end; }
.feature .ph { aspect-ratio: 16 / 10; overflow: hidden; position: relative; }
.feature .ph img, .ph-c img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.feature .txt { display: flex; flex-direction: column; gap: 20px; padding-bottom: 6px; }
.meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); }
.meta div { padding: 14px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.meta small { display: block; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.centre-mark { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.centre-mark .lg { height: clamp(46px, 5.6vw, 78px); filter: drop-shadow(0 2px 14px rgba(0,0,0,.18)); }
.band { background: var(--ink); color: var(--bg); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.band .lg { height: 76px; }
.band .h2 { max-width: 20ch; }
.band .more { color: var(--bg); }

/* ——— projects ——— */
.proj-strip { height: 72vh; min-height: 460px; }
.index { border-top: 1px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-flow: column; column-gap: clamp(32px, 5vw, 72px); align-content: start; }
.row { display: grid; grid-template-columns: 34px minmax(0, 1.6fr) minmax(0, 1.3fr) minmax(0, .9fr) 20px; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font-size: 15px; font-variant-numeric: tabular-nums; position: relative; }
.row .t { font-family: var(--f-display); font-weight: 500; font-size: 17px; }
.row span:not(.t) { color: var(--mute); }
.row span:last-child { text-align: right; }
.row .thumb { position: absolute; right: 36px; top: 50%; width: 132px; aspect-ratio: 3 / 2; transform: translateY(-50%) scale(.92); opacity: 0; transition: opacity .3s, transform .3s; pointer-events: none; overflow: hidden; z-index: 2; }
.row .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row:hover .thumb { opacity: 1; transform: translateY(-50%); }
.row:hover .t { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }

/* ——— project page ——— */
.p-hero { position: relative; height: 82vh; min-height: 480px; overflow: hidden; }
.p-hero img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.p-hero::after { content: ""; position: absolute; inset: 0; background: rgba(10,10,9,.16); }
.p-hero .centre-mark { z-index: 2; }
.p-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.p-head .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.details { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.ph-c { aspect-ratio: 4 / 5; overflow: hidden; }
.ph-c img { transform-origin: var(--o); transform: scale(var(--s)); object-position: var(--o); }
.wide { aspect-ratio: 21 / 9; overflow: hidden; }
.wide img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.wide.gal { aspect-ratio: 16 / 9; margin-top: 6px; }
.next { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; text-decoration: none; background: var(--stone); }
.next .ph { aspect-ratio: 16 / 10; overflow: hidden; }
.next .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.next:hover .ph img { transform: scale(1.04); }
.next .tx { padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }

/* ——— studio / process ——— */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.three div { border-top: 1px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.three h3, .stage h3 { font-family: var(--f-display); font-weight: 500; font-size: 22px; margin: 0; }
.director { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.director .card-id { aspect-ratio: 4 / 5; background: var(--stone); display: grid; place-items: center; }
.director .card-id .lg { height: 22%; }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 4vw, 64px); border-top: 1px solid var(--rule); }
.services div { padding: 22px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; }
.services h3 { font-family: var(--f-display); font-weight: 500; font-size: 19px; margin: 0; }
.services p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--body); }
.stages { border-top: 1px solid var(--ink); }
.stage { display: grid; grid-template-columns: 80px minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px; padding: 30px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.stage .no { font-family: var(--f-display); font-size: 15px; color: var(--mute); font-variant-numeric: tabular-nums; }
.stage p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--body); max-width: 60ch; }

/* ——— contact ——— */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 90px); }
form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.f { display: flex; flex-direction: column; gap: 8px; }
.f.full { grid-column: 1 / -1; }
.f label { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.f input, .f select, .f textarea { font: inherit; font-size: 15px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(236,232,225,.24); padding: 10px 0; border-radius: 0; outline: none; transition: border-color .2s; }
.f input:focus, .f select:focus, .f textarea:focus { border-bottom-color: var(--ink); }
.f textarea { min-height: 110px; resize: vertical; }
.send { grid-column: 1 / -1; justify-self: start; font: inherit; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; background: var(--ink); color: var(--bg); border: 0; padding: 16px 30px; cursor: pointer; margin-top: 10px; }
.send:hover { background: #FFFFFF; }
.sent { display: none; grid-column: 1 / -1; padding: 30px 0; }
.sent .h2 { margin-bottom: 10px; }
.cinfo { display: flex; flex-direction: column; gap: 26px; }
.cinfo div { border-top: 1px solid var(--rule); padding-top: 14px; font-size: 15px; line-height: 1.6; }
.cinfo small { display: block; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }

/* ——— footer ——— */
footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 40px 60px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); border-top: 1px solid var(--rule); }
footer .lg { height: 24px; }
footer a { text-decoration: none; }

.page { animation: pageIn .6s cubic-bezier(.2,.7,.2,1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .brand .lg { height: 23px; }
  .burger { display: block; font: inherit; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; background: none; border: 1px solid var(--ink); padding: 9px 14px; color: var(--ink); cursor: pointer; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--bg); padding: 20px 20px 26px; border-bottom: 1px solid var(--rule); font-size: 13px; gap: 18px; }
  .top.open { background: var(--bg); }
  .top.open .menu { display: flex; }
  .home-strip { height: 70vh; }
  .intro-row, .feature, .p-head, .director, .contact, .next { grid-template-columns: 1fr; }
  .three { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .stage { grid-template-columns: 50px minmax(0, 1fr); } .stage p { grid-column: 2; }
  .index { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-rows: none !important; } .row { grid-template-columns: 34px minmax(0, 1fr) 30px; } .row span:nth-child(3), .row span:nth-child(4), .row .thumb { display: none; }
}
@media (max-width: 520px) {
  form { grid-template-columns: 1fr; }
  .services div { grid-template-columns: 1fr; gap: 6px; }
  .details { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .page, .lg .u, .lg .l { animation: none !important; }
  .fs .strip.snapping, .fs .card img, .slide, .slide img { transition: none !important; }
}

/* ——— WordPress ——— */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.send:disabled { opacity: .6; cursor: wait; }
.senderr { grid-column: 1 / -1; margin: 0; font-size: 14px; color: #E0806B; }
body.admin-bar .top { top: 32px; }
@media (max-width: 782px) { body.admin-bar .top { top: 46px; } }
