/*
Theme Name: Lucid Mirage
Theme URI: https://lucidmirage.com
Author: lucidmirage.com
Description: One-page studio site: mirage-haze wordmark, showreel, filterable work with pop-out video previews, services accordion and a contact form that emails you. Edit projects under Projects; text under Appearance → Customize → Lucid Mirage.
Version: 1.0.6
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lucid-mirage
*/

@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
	--bg: #0b0b0b;
	--fg: #f2f2f2;
	--lime: #d4ff3a;
	--muted: #8f8f8f;
	--soft: #c4c4c4;
	--line: #222;
	--pad: 40px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--max: 1680px;
	--side: max(var(--pad), calc((100vw - var(--max)) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font-family: Inter, system-ui, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--lime); }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.wide { font-family: Archivo, sans-serif; font-stretch: 125%; }
.muted { color: var(--muted); font-size: 14px; }
.label { font-size: 13px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.fx-defs { position: absolute; width: 0; height: 0; }

/* ---------- Custom cursor (mouse only) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .3s; mix-blend-mode: difference; }
.has-cursor .cursor { opacity: 1; }
.cursor__dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--lime); }
.cursor__ring {
	position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
	border: 1px solid rgba(212,255,58,.6); display: flex; align-items: center; justify-content: center;
	transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background .3s, border-color .3s;
}
.cursor__label { font: 600 12px/1 Inter, sans-serif; letter-spacing: .14em; color: #0b0b0b; opacity: 0; transition: opacity .25s; }
.cursor.is-play .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--lime); border-color: var(--lime); }
.cursor.is-play .cursor__label { opacity: 1; }
.cursor.is-play .cursor__dot { opacity: 0; }
.cursor.is-link .cursor__ring { width: 56px; height: 56px; margin: -28px 0 0 -28px; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .js-play { cursor: none; }

/* ---------- Header + wordmark ---------- */
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; padding: 28px var(--side) 0; }
.wordmark { margin: 0; flex: 0 1 742px; max-width: 742px; min-width: 0; line-height: 0; }
#wm { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; user-select: none; }
.wm-type { font-family: Archivo, sans-serif; font-weight: 900; font-stretch: 125%; font-size: 196px; }
.nav { flex: none; display: flex; gap: 28px; align-items: center; flex-wrap: wrap; justify-content: flex-end; font-size: 14px; font-weight: 500; padding-top: 14px; }
.nav__place { display: inline-flex; align-items: center; gap: 8px; color: #a8a8a8; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(212,255,58,.15); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(212,255,58,0); } }

/* ---------- Buttons ---------- */
.pill {
	display: inline-flex; align-items: center; justify-content: center; gap: 12px; height: 56px; padding: 0 26px;
	border-radius: 999px; border: 0; font-size: 15px; font-weight: 600; cursor: pointer;
	transition: transform .35s var(--ease), background .25s, color .25s;
}
.pill:hover { transform: translateY(-2px) scale(1.02); }
.pill--lime { background: var(--lime); color: #0b0b0b; }
.pill--light { background: var(--fg); color: #0b0b0b; }
.pill--light:hover { background: var(--lime); color: #0b0b0b; }
.pill--dark { background: #0b0b0b; color: var(--lime); }
.pill--dark:hover { color: var(--lime); }

/* ---------- Hero ---------- */
.hero { padding: 40px var(--side); display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px; align-items: stretch; }
.reel { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #161616; }
.reel__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.55)); pointer-events: none; }
.reel__btn { position: absolute; left: 24px; bottom: 24px; }
.hero__side {
	display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-width: 0;
	padding: clamp(24px, 2.2vw, 40px); border: 1px solid var(--line); border-radius: 8px;
	background: linear-gradient(160deg, #141414 0%, #0e0e0e 100%);
}
.hero__copy, .hero__meta { display: flex; flex-direction: column; gap: 22px; }
.tagline { margin: 0; font-weight: 800; font-size: clamp(32px, 2.9vw, 52px); line-height: .95; letter-spacing: -.03em; text-transform: uppercase; }
.hero__intro { margin: 0; font-size: clamp(16px, 1.05vw, 19px); line-height: 1.55; color: var(--soft); max-width: 36ch; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stats > div { padding: 16px 0; display: flex; flex-direction: column; gap: 4px; }
.stats span { font-weight: 800; font-size: 26px; }
.stats small { font-size: 12px; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track .wide { font-weight: 800; font-size: 48px; letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px #5b5b5b; transition: color .4s, -webkit-text-stroke-color .4s; }
.marquee__track .wide:hover { color: var(--lime); -webkit-text-stroke-color: var(--lime); }
.marquee__sep { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 96px var(--side); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 40px; }
.marquee + .section { border-top: 0; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }
.title { margin: 0; font-weight: 900; font-size: clamp(56px, 7vw, 104px); line-height: .85; letter-spacing: -.04em; text-transform: uppercase; }

/* ---------- Work ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid #333; background: transparent; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.chip span { opacity: .55; margin-left: 2px; }
.chip:hover { border-color: var(--fg); }
.chip.is-on { background: var(--lime); border-color: var(--lime); color: #0b0b0b; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; perspective: 1400px; }
.card {
	position: relative; display: flex; flex-direction: column; gap: 14px; color: var(--fg);
	transform-style: preserve-3d; will-change: transform;
	transition: transform .6s var(--ease), opacity .4s var(--ease), filter .4s;
}
.card.is-out { opacity: 0; transform: scale(.94); pointer-events: none; }
.card.is-gone { display: none; }
.card:hover { color: var(--fg); z-index: 2; }
.card__media {
	position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #161616;
	transition: box-shadow .6s var(--ease), transform .6s var(--ease);
}
.card.is-hot .card__media { transform: translateZ(40px) scale(1.04); box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), 0 0 0 1px rgba(212,255,58,.35), 0 0 60px -10px rgba(212,255,58,.25); }
.card__media img, .card__media .preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__media img { transition: transform 1s var(--ease); }
.card.is-hot .card__media img { transform: scale(1.06); }
.preview { opacity: 0; transition: opacity .4s; }
.is-previewing .preview { opacity: 1; }
.card__glare { position: absolute; inset: 0; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.18), rgba(255,255,255,0) 45%); opacity: 0; transition: opacity .4s; mix-blend-mode: overlay; pointer-events: none; }
.card.is-hot .card__glare { opacity: 1; }
.card__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; transition: transform .6s var(--ease); }
.card.is-hot .card__cap { transform: translateZ(20px); }
.card__name { font-size: 19px; font-weight: 600; }
.card__name em { font-style: normal; color: var(--muted); font-weight: 500; }
.card__tags { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ---------- Services accordion ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__h { margin: 0; }
.acc__btn { width: 100%; display: flex; align-items: center; gap: 24px; padding: 28px 0; background: none; border: 0; cursor: pointer; text-align: left; }
.acc__num { width: 32px; font-size: 14px; color: var(--muted); }
.acc__name { flex: 1; font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.02em; text-transform: uppercase; transition: transform .5s var(--ease), color .3s; }
.acc__btn:hover .acc__name { transform: translateX(10px); color: var(--lime); }
.acc__sign { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #333; transition: transform .5s var(--ease), border-color .3s, background .3s; }
.acc__sign::before, .acc__sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; margin: -.75px 0 0 -8px; background: currentColor; transition: transform .5s var(--ease); }
.acc__sign::after { transform: rotate(90deg); }
.is-open .acc__sign { transform: rotate(180deg); background: var(--lime); border-color: var(--lime); color: #0b0b0b; }
.is-open .acc__sign::after { transform: rotate(0deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 40px; padding: 0 72px 0 56px; }
.is-open .acc__inner { padding-bottom: 36px; }
.acc__text { display: flex; flex-direction: column; gap: 18px; }
.acc__text p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--soft); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { height: 36px; padding: 0 14px; border-radius: 999px; background: #1a1a1a; display: inline-flex; align-items: center; font-size: 13px; }
.acc__inner img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; transform: scale(.96); opacity: 0; transition: transform .8s var(--ease) .1s, opacity .6s .1s; }
.is-open .acc__inner img { transform: none; opacity: 1; }

/* ---------- Fizz on headings (same as the wordmark) ---------- */
[data-fizz] { position: relative; }
.fizz-orig { display: block; }
.fizz-clone { position: absolute; inset: 0; display: block; pointer-events: none; visibility: hidden; }
.is-fizz > .fizz-clone {
	visibility: visible; filter: url(#lm-hfx);
	-webkit-mask-image: radial-gradient(circle var(--fr, 0px) at var(--fx, 0) var(--fy, 0), #000 80%, transparent 97%);
	mask-image: radial-gradient(circle var(--fr, 0px) at var(--fx, 0) var(--fy, 0), #000 80%, transparent 97%);
}
[data-fizz="dark"].is-fizz > .fizz-clone { filter: url(#lm-hfx-dark); }
.is-fizz > .fizz-orig {
	-webkit-mask-image: radial-gradient(circle var(--fr, 0px) at var(--fx, 0) var(--fy, 0), transparent 72%, #000 80%);
	mask-image: radial-gradient(circle var(--fr, 0px) at var(--fx, 0) var(--fy, 0), transparent 72%, #000 80%);
}

/* ---------- Quote ---------- */
.quote { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; }
.quote figure { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.quote blockquote { margin: 0; font-weight: 800; font-size: clamp(32px, 3.6vw, 52px); line-height: 1; letter-spacing: -.03em; text-transform: uppercase; }
.quote figcaption { font-size: 15px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: var(--lime); color: #0b0b0b; padding: 88px var(--side) 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
.contact a:hover { color: #0b0b0b; opacity: .7; }
.contact__left { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.contact__title { margin: 0; font-weight: 900; font-size: clamp(80px, 10vw, 150px); line-height: .8; letter-spacing: -.05em; text-transform: uppercase; }
.contact__email { align-self: flex-start; padding: 0; border: 0; background: none; color: #0b0b0b; cursor: pointer; font-size: 24px; font-weight: 600; text-decoration: underline; text-underline-offset: 6px; word-break: break-all; }
button.contact__email:hover { opacity: .7; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.form input, .form select, .form textarea { min-height: 52px; border: 1.5px solid #0b0b0b; border-radius: 8px; background: transparent; padding: 12px 14px; font: 400 16px Inter, sans-serif; color: #0b0b0b; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; background: rgba(255,255,255,.35); }
.form .pill { align-self: stretch; margin-top: 6px; }
.form__msg { margin: 0; padding: 14px 16px; border-radius: 8px; background: #0b0b0b; color: var(--lime); font-weight: 600; }
.form__msg--err { color: #ffb4a8; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1.5px solid #0b0b0b; padding-top: 20px; margin-top: 32px; font-size: 14px; font-weight: 500; }
.contact__social { display: flex; gap: 20px; }

/* ---------- Video player ---------- */
.player { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: #000; color: #fff; }
.player::backdrop { background: #000; }
.player[open] { animation: playerIn .5s var(--ease); }
@keyframes playerIn { from { opacity: 0; transform: scale(1.03); } }
.player__inner { width: 100%; height: 100%; display: flex; flex-direction: column; padding: 16px 24px 24px; gap: 16px; }
.player__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.player__title { font-size: 14px; font-weight: 500; letter-spacing: .08em; color: var(--soft); }
.player__close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.player__close:hover { background: var(--lime); color: #0b0b0b; border-color: var(--lime); }
.player__frame { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.player__frame video, .player__frame iframe { width: min(100%, calc((100vh - 108px) * 16 / 9)); aspect-ratio: 16 / 9; height: auto; max-height: 100%; border: 0; background: #000; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	:root { --pad: 20px; }
	.top { flex-direction: column-reverse; align-items: stretch; gap: 14px; padding-top: 16px; }
	.wordmark { flex: none; width: 70%; max-width: 742px; }
	.nav { padding-top: 0; gap: 18px; justify-content: flex-start; }
	.hero { grid-template-columns: 1fr; padding-top: 24px; }
	.hero__side { padding: 22px; gap: 28px; }
	.section { padding-top: 72px; padding-bottom: 72px; }
	.marquee__track .wide { font-size: 32px; }
	.acc__inner { grid-template-columns: 1fr; padding: 0 0 0 56px; }
	.quote, .contact { grid-template-columns: 1fr; }
	.contact__email { font-size: 20px; }
}
@media (max-width: 600px) {
	.cards { grid-template-columns: 1fr; }
	.reel__btn { height: 44px; padding: 0 18px; font-size: 14px; left: 14px; bottom: 14px; }
	.acc__btn { gap: 14px; }
	.acc__inner { padding-left: 0; }
	.stats span { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.marquee__track { animation: none; }
	.card, .card__media, .card__media img, .reel, .reel__media, .acc__panel, .acc__name, .pill { transition: none; }
	.dot { animation: none; }
}
