/* ============================================================
   PLAZMA — bold editorial cinematic studio site
   ============================================================ */

:root {
  --plazma: #4f2ce0;
  --plazma-deep: #3a1eb0;
  --ink: #0a0a0a;
  --paper: #e7e3d8;        /* warm off-white for WORK */
  --white: #ffffff;
  --rail: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.64, 0, 0.78, 0);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; overflow-x: hidden; }

body {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  background: var(--ink);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body.lock { overflow: hidden; }

#root { min-height: 100vh; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--plazma); color: var(--white); }

/* ---------- Wordmark type ---------- */
.wm {
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.045em;
  line-height: 0.78;
  text-transform: none;
  font-variation-settings: "wght" 800;
}

/* ---------- Image logotype (PLAZMA_TEXT.png as a fillable mask) ---------- */
.logo-mark {
  display: block;
  width: 100%;
  aspect-ratio: 1794 / 177;
  background-color: currentColor;
  -webkit-mask: url("uploads/PLAZMA_TEXT.png") no-repeat left center / contain;
  mask: url("uploads/PLAZMA_TEXT.png") no-repeat left center / contain;
}

/* ---------- P-swoosh brand mark (Logo_p.png as a fillable mask) ---------- */
.logo-p {
  display: block;
  width: 100%;
  aspect-ratio: 1155 / 315;
  background-color: currentColor;
  -webkit-mask: url("uploads/Logo_p.png") no-repeat center / contain;
  mask: url("uploads/Logo_p.png") no-repeat center / contain;
}

/* =========================================================
   PAGE WRAPPER (sits to the right of the rail)
   ========================================================= */
.page {
  margin-left: var(--rail);
  min-height: 100vh;
  position: relative;
}

@media (max-width: 760px) {
  :root { --rail: 48px; }
}

/* =========================================================
   LEFT RAIL
   ========================================================= */
.rail {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--rail);
  height: 100vh;
  height: 100dvh;
  background: var(--plazma);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  color: var(--white);
}
.rail.on-paper { /* keep plazma bg regardless of page */ }

.rail__symbol {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  transition: transform 0.5s var(--ease);
}
.rail__symbol:hover { transform: rotate(90deg) scale(1.08); }
.rail__symbol svg { width: 100%; height: 100%; display: block; }

.rail__mid {
  flex: 1;
  width: 100%;
  align-self: stretch;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.rail__vlogo {
  position: absolute;
  top: 50%; left: 50%;
  width: 13vh;
  transform: translate(-50%, -50%) rotate(-90deg);
  color: var(--ink);
}

.rail__social {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.rail__social a {
  width: 20px; height: 20px;
  display: grid; place-items: center;
  opacity: 0.92;
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.rail__social a:hover { transform: translateY(-2px); opacity: 1; }
.rail__social svg { width: 18px; height: 18px; display: block; fill: var(--ink); }

/* =========================================================
   CINEMATIC VIDEO PLACEHOLDER
   ========================================================= */
.plasma {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #060507;
  z-index: 0;
}
.plasma__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  mix-blend-mode: screen;
  will-change: transform;
}
.plasma__b1 {
  width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(79,44,224,0.9), rgba(79,44,224,0) 70%);
  top: -10%; left: 5%;
  animation: drift1 22s var(--ease) infinite alternate;
}
.plasma__b2 {
  width: 50vw; height: 50vw;
  background: radial-gradient(circle, rgba(124,77,255,0.7), rgba(124,77,255,0) 70%);
  bottom: -15%; right: 0%;
  animation: drift2 28s var(--ease) infinite alternate;
}
.plasma__b3 {
  width: 38vw; height: 38vw;
  background: radial-gradient(circle, rgba(40,18,140,0.85), rgba(40,18,140,0) 70%);
  top: 30%; left: 40%;
  animation: drift3 19s var(--ease) infinite alternate;
}
@keyframes drift1 { from { transform: translate(0,0) scale(1);} to { transform: translate(12vw, 14vh) scale(1.25);} }
@keyframes drift2 { from { transform: translate(0,0) scale(1.1);} to { transform: translate(-14vw, -10vh) scale(0.9);} }
@keyframes drift3 { from { transform: translate(0,0) scale(0.9);} to { transform: translate(-8vw, 12vh) scale(1.3);} }

/* film grain + scanline overlay */
.plasma__grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: var(--grain-op, 0.14);
  mix-blend-mode: overlay;
  animation: grainShift 0.6s steps(4) infinite;
  pointer-events: none;
}
@keyframes grainShift {
  0% { transform: translate(0,0);} 25% { transform: translate(-3%, 2%);}
  50% { transform: translate(2%, -3%);} 75% { transform: translate(-2%, -1%);} 100% { transform: translate(1%, 3%);}
}
.plasma__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}
.plasma__bars { /* cinematic letterbox feel, subtle */
  position: absolute; inset: 0; pointer-events: none;
}

/* =========================================================
   HOME
   ========================================================= */
.home { margin-left: var(--rail); }

.section { position: relative; }

/* --- Hero --- */
.hero {
  height: 100vh;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
}
.hero__media {
  position: absolute; inset: 0;
  overflow: hidden;
  background: #060507;
  z-index: 0;
}
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero__logo {
  position: relative;
  z-index: 2;
  color: var(--white);
  width: 112%;
  margin: 0 0 -1vw -1%;
  padding-left: 3vw;
  pointer-events: none;
}
.hero__tag {
  position: absolute;
  top: 7vh; left: 3vw;
  z-index: 2;
  max-width: 32ch;
  font-size: clamp(1rem, 1.4vw, 1.4rem);
  font-weight: 500;
  line-height: 1.25;
  color: rgba(255,255,255,0.9);
}
.hero__scroll {
  position: absolute;
  right: 3vw; bottom: 4vh; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.hero__scroll .dot {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%; display: grid; place-items: center;
  animation: bob 2.2s var(--ease) infinite;
}
@keyframes bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(6px);} }

/* --- Intro statement --- */
.intro {
  background: var(--plazma);
  color: var(--ink);
  display: flex;
  align-items: center;
  padding: 7vh 5vw;
}
.intro__inner { width: 100%; max-width: none; }
.intro__eyebrow {
  font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 2.5vh; opacity: 0.7;
}
.intro__headline {
  font-weight: 800;
  font-style: italic;
  font-size: clamp(3rem, 13vw, 13rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 760px) {
  .intro__headline { white-space: normal; }
}
.intro__statement {
  max-width: min(1500px, 95%);
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.intro__statement p {
  font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

/* --- Video / menu section --- */
.vmenu {
  height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.vmenu__list {
  position: relative; z-index: 2;
  padding-left: 5vw;
  display: flex; flex-direction: column;
}
.vmenu__eyebrow {
  font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 3vh; font-weight: 700;
}
.menu-item {
  display: flex; align-items: baseline; gap: 0.3em;
  font-weight: 800; font-style: italic;
  font-size: clamp(3rem, 9vw, 10rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.32);
  transition: color 0.5s var(--ease), transform 0.5s var(--ease);
  text-transform: uppercase;
  width: max-content;
}
.menu-item .idx {
  font-size: 0.18em; font-style: normal; font-weight: 700;
  letter-spacing: 0.1em; transform: translateY(-1.6em);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.menu-item:hover { color: var(--white); transform: translateX(16px); }
.menu-item:hover .idx { opacity: 0.8; }

/* --- Contact / footer --- */
.cfoot {
  background: var(--plazma);
  color: var(--ink);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 12vh 5vw 0 5vw;
}
.cfoot__top { display: flex; flex-wrap: wrap; gap: 6vw 10vw; align-items: flex-start; }
.cfoot__brand { flex: 1 1 9ch; min-width: 7ch; display: flex; flex-direction: column; gap: 3.5vh; }
.cfoot__head {
  font-weight: 700; font-style: italic;
  font-size: clamp(2.6rem, 7vw, 7rem);
  line-height: 0.9; letter-spacing: -0.04em;
  text-transform: uppercase;
}
.cfoot__plogo {
  width: clamp(170px, 22vw, 320px);
  color: var(--white);
}
.cblock { display: flex; flex-direction: column; gap: 6px; }
.cblock h4 { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; margin-bottom: 8px; }
.cblock a, .cblock p { font-size: clamp(1.1rem, 1.8vw, 1.7rem); font-weight: 500; }
.cblock a { position: relative; width: max-content; }
.cblock a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1.5px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.cblock a:hover::after { transform: scaleX(1); }

.cfoot__logo {
  width: 108%;
  margin: 0 0 -0.8vw -1%;
  color: var(--ink);
  align-self: flex-start;
}

/* =========================================================
   WORK PAGE
   ========================================================= */
.work {
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  padding: 7vh 4vw 12vh 4vw;
}
.work__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 4vw; margin-bottom: 6vh; flex-wrap: wrap;
}
.work__title {
  color: var(--plazma);
  font-weight: 800; font-style: italic;
  font-size: clamp(4rem, 16vw, 18rem);
  line-height: 0.8; letter-spacing: -0.05em;
  text-transform: uppercase;
}
.work__intro { max-width: 30ch; font-size: clamp(1rem,1.3vw,1.3rem); font-weight: 500; line-height: 1.3; padding-top: 1vh; }
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 960px) { .work__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .work__grid { grid-template-columns: 1fr; } }

.proj {
  display: block; cursor: pointer; padding: 0; width: 100%;
  text-align: left;
}
.proj__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f0b1e;
}
.proj .ph {
  position: absolute; inset: 0;
  transition: transform 0.8s var(--ease), opacity 0.5s var(--ease);
}
.proj__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.proj:hover .proj__poster { transform: scale(1.05); }
.proj__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.proj:hover .proj__video { opacity: 1; }
.proj:hover .ph { transform: scale(1.05); }

.proj__caption {
  position: absolute; left: 16px; bottom: 14px; z-index: 3;
  display: flex; flex-direction: column; gap: 2px;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  text-shadow: 0 2px 12px rgba(0,0,0,0.55);
  pointer-events: none;
}
.proj:hover .proj__caption { opacity: 1; transform: none; }
.proj__caption .proj__name {
  font-weight: 800; font-style: italic; letter-spacing: -0.02em;
  font-size: clamp(1.05rem, 1.5vw, 1.5rem); line-height: 1; text-transform: uppercase;
}
.proj__caption .proj__client {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em;
  opacity: 0.85; text-transform: uppercase;
}

.work__more {
  text-align: center;
  margin-top: 8vh;
  font-weight: 800; font-style: italic; text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--plazma);
  font-size: clamp(1.8rem, 4vw, 3.4rem);
}

/* placeholder media art */
.ph { position: absolute; inset: 0; }

/* =========================================================
   PROJECT VIEW PAGE
   ========================================================= */
.project {
  background: var(--ink);
  color: var(--white);
  min-height: 100vh;
  padding: 6vh 5vw 10vh 5vw;
  display: flex; flex-direction: column; gap: 4vh;
}
.project__back {
  align-self: flex-start;
  font-size: 0.9rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; color: rgba(255,255,255,0.7);
  transition: color 0.3s var(--ease);
}
.project__back:hover { color: var(--white); }
.project__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #060507;
  overflow: hidden;
  border-radius: 2px;
}
.project__video { width: 100%; height: 100%; object-fit: cover; display: block; }
.project__info { display: flex; flex-direction: column; gap: 0.4em; }
.project__tag {
  font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase;
  font-weight: 700; color: var(--plazma);
}
.project__title {
  font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: clamp(2.6rem, 8vw, 8rem); line-height: 0.85; letter-spacing: -0.04em;
}
.project__client {
  font-size: clamp(1rem, 1.6vw, 1.5rem); font-weight: 500;
  color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.04em;
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about {
  background: var(--plazma);
  color: var(--ink);
  min-height: 100vh;
  padding: 7vh 5vw 12vh 5vw;
}
.about__title {
  font-weight: 800; font-style: italic;
  font-size: clamp(4rem, 17vw, 19rem);
  line-height: 0.8; letter-spacing: -0.05em; text-transform: uppercase;
  margin-bottom: 8vh;
}
.about__body {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 6vw;
}
@media (max-width: 900px) { .about__body { grid-template-columns: 1fr; gap: 8vh; } }
.about__lede {
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 3rem);
  line-height: 1.08; letter-spacing: -0.02em; text-wrap: pretty;
}
.about__lede em { font-style: italic; }
.services h3 {
  font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 3vh; opacity: 0.7;
}
.services ul { list-style: none; }
.services li {
  font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  letter-spacing: -0.02em; line-height: 1.45;
  border-top: 1.5px solid rgba(10,10,10,0.25);
  padding: 0.5em 0;
  display: flex; align-items: center; justify-content: space-between;
  transition: padding 0.4s var(--ease), color 0.3s;
}
.services li:last-child { border-bottom: 1.5px solid rgba(10,10,10,0.25); }
.services li .num { font-size: 0.5em; font-weight: 700; opacity: 0.5; }
.services li:hover { padding-left: 14px; }

/* About stats row */
.about__left {
  display: flex;
  flex-direction: column;
  gap: 8vh;
}
.about__stats {
  display: flex;
  flex-direction: column;
  gap: 3vh;
}
.stat { display: flex; flex-direction: column; gap: 0.5em; }
.stat__label {
  font-size: clamp(0.85rem, 1vw, 1rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(10,10,10,0.45);
}
.stat__value {
  font-weight: 800; font-style: italic;
  font-size: clamp(2.6rem, 5.5vw, 5.5rem);
  line-height: 0.88; letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--white);
}

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact {
  background: var(--plazma);
  color: var(--ink);
  min-height: 100vh;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 7vh 5vw 0 5vw;
}
.contact__title {
  font-weight: 800; font-style: italic;
  font-size: clamp(3.4rem, 12vw, 14rem);
  line-height: 0.82; letter-spacing: -0.05em; text-transform: uppercase;
  max-width: 14ch;
}
.contact__grid {
  display: flex; flex-wrap: wrap; gap: 5vh 8vw;
  margin: 8vh 0 4vh;
}
.contact__logo {
  width: 108%;
  margin: 0 0 -0.8vw -1%;
  color: var(--ink);
}

/* =========================================================
   MENU OVERLAY
   ========================================================= */
.overlay {
  position: fixed; inset: 0; z-index: 80;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 760px) { .overlay { grid-template-columns: 1fr; } }
.overlay__left {
  background: var(--plazma);
  padding: 6vh 5vw 5vh calc(var(--rail) + 4vw);
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.overlay__close {
  position: absolute; top: 3vh; left: calc(var(--rail) + 4vw);
  width: 38px; height: 38px; display: grid; place-items: center;
  color: var(--ink);
}
.overlay__close svg { width: 26px; height: 26px; }
.overlay__nav { display: flex; flex-direction: column; }
.ov-item {
  font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  line-height: 1.02; letter-spacing: -0.04em;
  color: var(--ink);
  width: max-content;
  display: flex; align-items: baseline; gap: 0.25em;
  transition: color 0.45s var(--ease), transform 0.45s var(--ease);
}
.ov-item .idx { font-size: 0.2em; font-weight: 700; font-style: normal; opacity: 0.45; }
.ov-item:hover { color: var(--white); transform: translateX(16px); }
.ov-item.is-current { color: var(--white); }

.overlay__foot {
  position: absolute; bottom: 4vh; left: calc(var(--rail) + 4vw);
  display: flex; gap: 4vw; flex-wrap: wrap;
  color: var(--ink); font-size: 0.85rem;
}
.overlay__foot h5 { font-weight: 700; margin-bottom: 6px; }
.overlay__right {
  position: relative; overflow: hidden; background: var(--plazma);
  display: grid; place-items: center;
}
.overlay__right .overlay__logo {
  width: 15%;
  max-width: 130px;
  height: auto;
  object-fit: contain;
  z-index: 2; pointer-events: none;
}
@media (max-width: 760px) { .overlay__right { display: none; } }

/* overlay enter animation */
.overlay__left { animation: ovLeftIn 0.6s var(--ease) both; }
.overlay__right { animation: ovRightIn 0.7s var(--ease) both; }
@keyframes ovLeftIn { from { transform: translateX(-100%);} to { transform: translateX(0);} }
@keyframes ovRightIn { from { transform: translateX(100%);} to { transform: translateX(0);} }
.ov-item { animation: ovItemIn 0.6s var(--ease) both; }

/* =========================================================
   LOADER
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--plazma);
  display: grid; place-items: center;
  will-change: transform;
}
.loader.slide-out { animation: loaderOut 0.7s var(--ease) forwards; }
@keyframes loaderOut { from { transform: translateX(0);} to { transform: translateX(101%);} }

.loader__wm {
  position: relative;
  width: min(143px, 22vw);
  color: rgba(10,10,10,0.25);
}
.loader__fill {
  position: absolute; inset: 0;
  color: var(--white);
  clip-path: inset(0 100% 0 0);
  animation: fillLR 1.1s var(--ease) forwards;
}
@keyframes fillLR { from { clip-path: inset(0 100% 0 0);} to { clip-path: inset(0 0 0 0);} }

/* =========================================================
   FIRST-VISIT PRE-LOADER  (black bg, brand-colour P fill)
   ========================================================= */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink);
  display: grid; place-items: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.preloader.is-out { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__logo {
  position: relative;
  width: min(173px, 24vw);
  color: rgba(79, 44, 224, 0.20);   /* faint brand outline */
}
.preloader__fill {
  position: absolute; inset: 0;
  color: var(--plazma);             /* brand colour fill */
  clip-path: inset(0 100% 0 0);
  animation: fillLR 1.25s var(--ease) 0.15s forwards;
}
body.reduce-motion .preloader__fill { animation-duration: 0.4s; }

/* =========================================================
   PAGE ENTER
   ========================================================= */
.page-enter { animation: pageIn 0.8s var(--ease) both; }
@keyframes pageIn { from { opacity: 0.4; } to { opacity: 1; } }

/* reveal-on-scroll util */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* tweak-driven states */
body.no-grain .plasma__grain { display: none; }
body.reduce-motion .plasma__blob,
body.reduce-motion .plasma__grain,
body.reduce-motion .hero__scroll .dot,
body.reduce-motion .loader__wm .spark { animation: none !important; }
body.reduce-motion .reveal { transition-duration: 0.3s; }

/* =========================================================
   TOUCH DEVICES — no hover, so reveal interactive bits
   ========================================================= */
@media (hover: none) {
  /* WORK menu links are legible without hover */
  .menu-item { color: rgba(255,255,255,0.92); }
  .menu-item .idx { opacity: 0.7; }

  /* project captions always visible on touch */
  .proj__caption { opacity: 1; transform: none; }
  .proj__media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 42%);
    z-index: 2; pointer-events: none;
  }

  /* overlay nav + footer links legible without hover */
  .ov-item:active { color: var(--white); }
}

/* =========================================================
   MOBILE LAYOUT  (≤ 760px)
   ========================================================= */
@media (max-width: 760px) {
  /* HERO -------------------------------------------------- */
  .hero {
    min-height: 100svh; height: 100svh;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
  }
  .hero__logo {
    width: 100%;
    margin: 0 0 2vh 0;
    padding-left: 4vw; padding-right: 4vw;
  }
  .hero__tag {
    position: static;
    margin: 13vh 4vw 0;
    width: auto !important; height: auto !important;
    max-width: 30ch;
  }
  .hero__scroll { display: none; }

  /* INTRO ------------------------------------------------- */
  .intro { padding: 9vh 6vw; }
  .intro__statement { max-width: 100%; }
  .intro__statement p { font-size: 1.05rem !important; line-height: 1.32 !important; }

  /* VIDEO MENU -------------------------------------------- */
  .vmenu { min-height: 100svh; height: 100svh; }
  .vmenu__list { padding-left: 6vw; padding-right: 6vw; }
  .menu-item { font-size: clamp(2.6rem, 15vw, 5rem); }

  /* CONTACT FOOTER on home -------------------------------- */
  .cfoot { padding: 10vh 6vw 0; }
  .cfoot__top { gap: 5vh 8vw; }
  .cfoot__logo { width: 100%; margin: 0 0 -0.8vw 0; }

  /* WORK -------------------------------------------------- */
  .work { padding: 9vh 5vw 12vh; }
  .work__title { font-size: 22vw !important; max-width: 100%; }
  .work__intro { padding-top: 3vh; }
  .work__grid { gap: 14px; }
  /* show the caption permanently on the tile */
  .proj__caption { position: absolute; left: 14px; bottom: 12px; }

  /* PROJECT VIEW ------------------------------------------ */
  .project { padding: 8vh 5vw 10vh; gap: 3vh; }

  /* ABOUT ------------------------------------------------- */
  .about { padding: 9vh 6vw 12vh; }
  .about__title { font-size: 20vw; max-width: 100%; margin-bottom: 5vh; }
  .about__lede { font-size: 1.4rem !important; }
  .about__lede em { font-size: 1.4rem !important; }
  .about__left { gap: 6vh; }
  .about__stats { gap: 4vh; }
  .services li { font-size: 1.3rem; }

  /* CONTACT ----------------------------------------------- */
  .contact { padding: 9vh 6vw 0; }
  .contact__grid { gap: 4vh 8vw; }
  .contact__logo { width: 100%; margin: 0 0 -0.8vw 0; }

  /* OVERLAY MENU ------------------------------------------ */
  .overlay__left { padding: 12vh 6vw 14vh calc(var(--rail) + 6vw); justify-content: flex-start; }
  .overlay__foot { position: static; margin-top: 6vh; gap: 6vw 8vw; }
  .ov-item { font-size: clamp(2.4rem, 13vw, 4.4rem); }

  /* RAIL -------------------------------------------------- */
  .rail__vlogo { width: 11vh; }
  .rail__social { gap: 11px; }
}

/* very small phones */
@media (max-width: 380px) {
  .menu-item { font-size: 13vw; }
  .about__lede { font-size: 1.25rem !important; }
}
