/* ═══════════════════════════════════════════════════════════════
   LUMENFORM — creative AI studio
   Design system: black / red / white / grey · light, machined.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --lf-black: #0a0a0a;
  --lf-coal:  #0e0e0e;
  --lf-panel: #131313;
  --lf-steel: #1c1c1c;
  --lf-line:  rgba(245, 245, 245, 0.09);
  --lf-white: #f5f5f5;
  --lf-grey:  #9b9b9b;
  --lf-dim:   #6b6b6b;
  --lf-red:   #cc0000;
  --lf-red-hot: #ff2222;
  --lf-red-dark: #7a0000;

  --lf-display: 'Syne', sans-serif;
  --lf-body: 'Space Grotesk', sans-serif;
  --lf-hud: 'VT323', monospace;

  --lf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lf-header-h: 64px;
  --lf-floor-h: 24px;
  /* keeps content clear of the fixed lift shaft on the left edge */
  --lf-gutter: 84px;
  /* tighter clearance used by wide media (hero image, machinery) */
  --lf-shaft-pad: 64px;
}

@media (max-width: 700px) {
  :root { --lf-gutter: 56px; --lf-shaft-pad: 46px; }
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body.lf {
  background: var(--lf-black);
  color: var(--lf-white);
  font-family: var(--lf-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* film grain over everything — keeps imagery cinematic */
body.lf::after {
  content: '';
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 10001;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: lf-grain 0.9s steps(4) infinite;
}

@keyframes lf-grain {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-2%, 1.4%); }
  50%  { transform: translate(1.6%, -1%); }
  75%  { transform: translate(-1%, -1.8%); }
  100% { transform: translate(0, 0); }
}

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

body.lf::-webkit-scrollbar { width: 10px; }
body.lf::-webkit-scrollbar-track { background: var(--lf-coal); }
body.lf::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 5px; }
body.lf::-webkit-scrollbar-thumb:hover { background: var(--lf-red); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.lf-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px);
  padding-inline: max(clamp(20px, 4vw, 56px), var(--lf-gutter));
}

section[data-level] { scroll-margin-top: calc(var(--lf-header-h) + 6px); }

.lf-dim { color: var(--lf-dim); }

/* ── Boot loader ───────────────────────────────────────────────── */
#lf-loader {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: var(--lf-black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.55s ease, visibility 0.55s;
}

#lf-loader.done { opacity: 0; visibility: hidden; }

.lf-loader-inner { text-align: center; }

.lf-loader-mark {
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  object-fit: contain;
  animation: lf-bootpulse 1.6s ease-in-out infinite;
}

/* the face powers up rather than spins */
@keyframes lf-bootpulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(204, 0, 0, 0.25)); }
  50%      { transform: scale(1.08); filter: drop-shadow(0 0 22px rgba(255, 34, 34, 0.65)); }
}

@keyframes lf-spin { to { transform: rotate(360deg); } }

.lf-loader-word {
  font-family: var(--lf-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.42em;
  margin-left: 0.42em; /* optical centring of tracking */
}

.lf-loader-status {
  font-family: var(--lf-hud);
  font-size: 17px;
  color: var(--lf-grey);
  letter-spacing: 0.08em;
  margin-top: 10px;
  min-height: 22px;
}

.lf-loader-bar {
  width: 180px;
  height: 2px;
  margin: 14px auto 0;
  background: var(--lf-steel);
  overflow: hidden;
}

.lf-loader-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--lf-red);
  transition: width 0.2s ease;
}

/* ── Custom cursor (desktop, pointer:fine) ─────────────────────── */
.lf-cursor,
.lf-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 10003;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.lf-cursor {
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(245, 245, 245, 0.55);
  transition: width 0.25s var(--lf-ease), height 0.25s var(--lf-ease),
              border-color 0.25s, background 0.25s, opacity 0.3s;
  mix-blend-mode: difference;
}

.lf-cursor-dot { width: 5px; height: 5px; background: var(--lf-red-hot); }

.lf-cursor.is-on, .lf-cursor-dot.is-on { opacity: 1; }

.lf-cursor.is-hover {
  width: 58px;
  height: 58px;
  border-color: var(--lf-red-hot);
  background: rgba(204, 0, 0, 0.12);
}

@media (pointer: coarse) { .lf-cursor, .lf-cursor-dot { display: none; } }

/* ── Header · top platform ─────────────────────────────────────── */
.lf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--lf-header-h);
  z-index: 9000;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  transition: background 0.4s ease;
}

/* the red line the spaceman walks on */
.lf-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--lf-red-dark), var(--lf-red) 30%, var(--lf-red) 70%, var(--lf-red-dark));
  box-shadow: 0 1px 10px rgba(204, 0, 0, 0.45);
}

.lf-header.scrolled { background: rgba(10, 10, 10, 0.85); }

.lf-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  padding: 0 clamp(16px, 3vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.lf-logo { display: flex; align-items: center; gap: 12px; }

.lf-logo-mark {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  transition: transform 0.5s var(--lf-ease);
}

.lf-logo:hover .lf-logo-mark { transform: rotate(-10deg) scale(1.12); }

.lf-logo-type {
  font-family: var(--lf-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.22em;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}

.lf-logo-type small {
  font-family: var(--lf-hud);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--lf-grey);
  font-weight: 400;
}

.lf-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }

.lf-nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lf-grey);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}

.lf-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--lf-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--lf-ease);
}

.lf-nav a:hover { color: var(--lf-white); }
.lf-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.lf-nav a.is-active { color: var(--lf-white); }
.lf-nav a.is-active::after { transform: scaleX(1); }

.lf-nav-ext { color: var(--lf-dim) !important; }
.lf-nav-ext:hover { color: var(--lf-white) !important; }

.lf-burger {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--lf-line);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.lf-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--lf-white);
  transition: transform 0.3s var(--lf-ease);
}

.lf-burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.lf-burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* ── Buttons ───────────────────────────────────────────────────── */
.lf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: var(--lf-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  will-change: transform;
}

.lf-btn-solid { background: var(--lf-red); color: var(--lf-white); }

.lf-btn-solid::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--lf-red-hot);
  transform: translateY(101%);
  transition: transform 0.35s var(--lf-ease);
  border-radius: inherit;
}

.lf-btn-solid:hover::before { transform: translateY(0); }
.lf-btn-solid:hover { box-shadow: 0 8px 32px rgba(204, 0, 0, 0.4); }
.lf-btn-solid > * { position: relative; }

.lf-btn-ghost { border-color: rgba(245, 245, 245, 0.25); color: var(--lf-white); }
.lf-btn-ghost:hover { border-color: var(--lf-red-hot); box-shadow: inset 0 0 0 1px var(--lf-red-hot); }

.lf-btn-big { font-size: clamp(14px, 1.6vw, 18px); padding: 20px 40px; }

.lf-btn-arrow { transition: transform 0.3s var(--lf-ease); }
.lf-btn:hover .lf-btn-arrow { transform: translateY(3px); }

/* ── Type helpers ──────────────────────────────────────────────── */
.lf-eyebrow {
  font-family: var(--lf-hud);
  font-size: 17px;
  letter-spacing: 0.24em;
  color: var(--lf-red-hot);
  margin-bottom: 18px;
}

.lf-h2 {
  font-family: var(--lf-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.lf-section-head { margin-bottom: clamp(36px, 5vw, 64px); }

.lf-section-note {
  font-family: var(--lf-hud);
  font-size: 16px;
  color: var(--lf-dim);
  letter-spacing: 0.14em;
  margin-top: 12px;
}

/* split-line reveal */
.lf-line { display: block; overflow: hidden; }

.lf-line > span {
  display: block;
  transform: translateY(112%);
  transition: transform 1s var(--lf-ease);
}

.in-view .lf-line > span, .lf-line.in-view > span { transform: translateY(0); }

.lf-line em { font-style: normal; color: var(--lf-red); }

/* generic reveal */
.lf-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--lf-ease), transform 0.9s var(--lf-ease);
}

.lf-reveal.in-view { opacity: 1; transform: none; }

/* parallax background gears */
.lf-gear {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  will-change: transform;
}

/* ── Hero · LVL 00 ─────────────────────────────────────────────── */
.lf-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: clip;
  padding-top: var(--lf-header-h);
  /* pure black so the photo's own black blends invisibly */
  background: #000;
}

.lf-hero-bg {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  will-change: transform;
}

/* soft ambience behind the framed image */
.lf-hero-bg-blur {
  background-size: cover;
  filter: blur(30px) brightness(0.32) saturate(1.15);
  transform: scale(1.2);
}

/* the banner itself sits in flow — never covered, never cropped */
.lf-hero-frame {
  width: 100%;
  flex: none;
  padding-left: calc(var(--lf-shaft-pad) - 6px);
  padding-right: clamp(10px, 1.6vw, 18px);
}

.lf-hero-frame img {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  max-height: min(78vh, 880px);
  object-fit: contain;
  /* feather the edges so the photo's black box melts into the page */
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 7%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%),
    linear-gradient(180deg, transparent 0, #000 7%, #000 90%, transparent 100%);
  mask-composite: intersect;
}

/* screen-reader-only headline (the visual name lives in the header) */
.lf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lf-hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  mix-blend-mode: screen;
}

.lf-hero-glow-red {
  width: 46vw; height: 46vw;
  left: -12vw; bottom: -10vw;
  background: radial-gradient(circle, rgba(204,0,0,0.4), transparent 65%);
  animation: lf-breathe 7s ease-in-out infinite;
}

.lf-hero-glow-white {
  width: 34vw; height: 34vw;
  right: -8vw; top: 4vh;
  background: radial-gradient(circle, rgba(245,245,245,0.14), transparent 60%);
  animation: lf-breathe 9s ease-in-out infinite reverse;
}

@keyframes lf-breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.12); }
}

.lf-hero-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(0,0,0,0.12) 3px 4px);
  opacity: 0.5;
  pointer-events: none;
}

.lf-gear-hero {
  width: clamp(280px, 36vw, 560px);
  right: -8%;
  bottom: -14%;
  opacity: 0.8;
}

.lf-hero-content {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  --lf-hero-gap: clamp(10px, 1.8vh, 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--lf-hero-gap);
  padding: clamp(6px, 1.2vh, 14px) 0 clamp(18px, 3vh, 32px);
}

/* text rows keep the reading gutter; media goes wider */
.lf-hero-kicker, .lf-hero-sub, .lf-hero-cta {
  padding-inline: max(clamp(20px, 4vw, 56px), var(--lf-gutter));
}

.lf-hero-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--lf-hud);
  font-size: 18px;
  letter-spacing: 0.3em;
  color: var(--lf-grey);
  margin-bottom: 0;
}

.lf-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--lf-red-hot);
  box-shadow: 0 0 12px var(--lf-red-hot);
  animation: lf-pulse 1.8s ease-in-out infinite;
}

@keyframes lf-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.lf-hero-sub {
  max-width: 640px;
  margin: 0 auto;
  color: var(--lf-grey);
  font-size: clamp(15px, 1.5vw, 18px);
}

.lf-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

.lf-hero-foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 56px) calc(var(--lf-floor-h) + 16px);
  padding-inline: max(clamp(20px, 4vw, 56px), var(--lf-gutter));
}

.lf-hud-tag {
  font-family: var(--lf-hud);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--lf-dim);
}

.lf-scrollcue {
  font-family: var(--lf-hud);
  font-size: 16px;
  letter-spacing: 0.4em;
  color: var(--lf-grey);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.lf-scrollcue-line {
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, var(--lf-red-hot), transparent);
  overflow: hidden;
  position: relative;
  animation: lf-cue 1.8s var(--lf-ease) infinite;
}

@keyframes lf-cue {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Marquee ───────────────────────────────────────────────────── */
.lf-marquee {
  border-top: 1px solid var(--lf-line);
  border-bottom: 1px solid var(--lf-line);
  background: var(--lf-coal);
  overflow: clip;
  padding: 14px 0;
}

.lf-marquee-track {
  display: flex;
  width: max-content;
  animation: lf-marquee 36s linear infinite;
}

.lf-marquee-track span {
  font-family: var(--lf-display);
  font-weight: 700;
  font-size: clamp(15px, 1.8vw, 21px);
  letter-spacing: 0.28em;
  color: var(--lf-dim);
  white-space: nowrap;
}

@keyframes lf-marquee { to { transform: translateX(-50%); } }

.lf-marquee:hover .lf-marquee-track { animation-play-state: paused; }

/* ── Girder divider ────────────────────────────────────────────── */
.lf-girder {
  height: 44px;
  background-image: url('../images/lumenform/girder.svg');
  background-size: 240px 44px;
  background-repeat: repeat-x;
  opacity: 1;
}

/* ── Studio · LVL 01 ───────────────────────────────────────────── */
.lf-studio {
  position: relative;
  padding: clamp(90px, 14vh, 160px) 0;
  background: var(--lf-black);
  overflow: clip;
}

.lf-gear-studio-a { width: clamp(340px, 44vw, 700px); left: -16%; top: -10%; opacity: 0.75; }
.lf-gear-studio-b { width: clamp(160px, 20vw, 300px); right: 4%; bottom: -6%; opacity: 0.85; }

.lf-studio .lf-wrap { position: relative; z-index: 1; }

.lf-manifesto {
  font-family: var(--lf-display);
  font-weight: 800;
  font-size: clamp(44px, 8.4vw, 128px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.lf-studio-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  max-width: 980px;
  margin-left: auto;
}

.lf-studio-cols p { color: var(--lf-grey); font-size: clamp(15px, 1.4vw, 18px); }

.lf-studio-cols a {
  color: var(--lf-white);
  border-bottom: 1px solid var(--lf-red);
  transition: color 0.25s, border-color 0.25s;
}

.lf-studio-cols a:hover { color: var(--lf-red-hot); border-color: var(--lf-red-hot); }

/* ── The graffiti tag on the studio wall ── */
.lf-tagwall {
  margin: clamp(56px, 8vw, 100px) auto 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

.lf-tagwall img {
  display: block;
  margin: 0 auto;
  max-width: min(580px, 92%);
  /* black plate melts into the page; red underglow ties it to the palette */
  mix-blend-mode: screen;
  transform: rotate(-2deg);
  filter: drop-shadow(0 0 34px rgba(204, 0, 0, 0.32)) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6));
  transition: transform 0.6s var(--lf-ease), filter 0.4s;
}

.lf-tagwall:hover img {
  transform: rotate(0deg) scale(1.02);
  filter: drop-shadow(0 0 44px rgba(255, 34, 34, 0.45)) drop-shadow(0 10px 24px rgba(0, 0, 0, 0.6));
}

.lf-tagwall figcaption { margin-top: 16px; }

/* compact variant: the graffiti is sprayed on the factory wall.
   Negative margins swallow the flex gap so the wall runs platform
   to platform with no black seams. */
.lf-hero .lf-tagwall {
  width: 100%;
  margin: calc(var(--lf-hero-gap, 16px) * -1) 0;
  padding: calc(var(--lf-hero-gap, 16px) + clamp(16px, 2.6vh, 30px)) 0;
  position: relative;
  z-index: 0;
  background:
    radial-gradient(75% 95% at 50% 50%, rgba(204, 0, 0, 0.18), rgba(120, 10, 10, 0.08) 55%, transparent 88%),
    repeating-linear-gradient(90deg, transparent 0 158px, rgba(245, 245, 245, 0.035) 158px 160px),
    linear-gradient(180deg, #150808, #1c0b0b 50%, #130707);
}

.lf-hero .lf-tagwall img { position: relative; }

/* platforms sit proud of the wall */
.lf-hero .lf-wallworks { position: relative; z-index: 1; }

.lf-hero .lf-tagwall img {
  max-width: min(440px, 74%);
  max-height: clamp(96px, 17vh, 176px);
  width: auto;
  transform: rotate(-1.5deg);
}

.lf-hero .lf-tagwall:hover img { transform: rotate(0deg) scale(1.03); }

/* ── Wallworks: steel truss platforms with one big mounted flywheel ── */
.lf-wallworks {
  position: relative;
  width: 100%;
  height: 44px;
  flex: none;
  background-image: url('../images/lumenform/girder.svg');
  background-size: 240px 44px;
  background-repeat: repeat-x;
}

.lf-wallworks-gear {
  position: absolute;
  top: 50%;
  width: clamp(150px, 22vw, 300px);
  translate: 0 -50%;
  pointer-events: none;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55));
  will-change: transform;
}

/* mounted off the platform edges, half-cut like the section gears */
.lf-wallworks-gear.gear-right { right: -7%; }
.lf-wallworks-gear.gear-left  { left: max(var(--lf-shaft-pad) - 26px, 4%); }

@media (max-width: 700px) {
  /* small screens: tuck the wheels into the edges, clear of the tag */
  .lf-wallworks-gear { width: 116px; }
  .lf-wallworks-gear.gear-right { right: -52px; }
  .lf-wallworks-gear.gear-left  { left: -52px; }
}

/* ── Work · LVL 02 — the Foundry ───────────────────────────────── */
.lf-work {
  position: relative;
  padding: clamp(90px, 14vh, 160px) 0;
  background:
    radial-gradient(70% 50% at 80% 0%, rgba(204, 0, 0, 0.07), transparent 70%),
    var(--lf-coal);
}

.lf-work-deck {
  display: grid;
  grid-template-columns: minmax(320px, 460px) 1fr;
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}

.lf-work-stage { position: sticky; top: calc(var(--lf-header-h) + 28px); }

.lf-work-stage-frame {
  position: relative;
  border: 1px solid var(--lf-line);
  border-radius: 14px;
  background: var(--lf-panel);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

/* corner screws on the stage — it's a machine, after all */
.lf-work-stage-frame::before, .lf-work-stage-frame::after {
  content: '+';
  position: absolute;
  font-family: var(--lf-hud);
  color: var(--lf-dim);
  font-size: 16px;
  z-index: 3;
}

.lf-work-stage-frame::before { top: 8px; left: 12px; }
.lf-work-stage-frame::after { bottom: 8px; right: 12px; }

.lf-work-stage-media {
  position: absolute;
  inset: 0;
}

.lf-work-stage-media > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.5s ease, transform 1.4s var(--lf-ease);
}

.lf-work-stage-media > .is-live { opacity: 1; transform: scale(1); }

.lf-work-stage-media .lf-stage-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
  filter: drop-shadow(0 0 30px rgba(204, 0, 0, 0.45));
}

.lf-work-stage-hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  font-family: var(--lf-hud);
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--lf-white);
  background: linear-gradient(transparent, rgba(10, 10, 10, 0.85));
}

.lf-work-list { list-style: none; }

.lf-work-entry { border-bottom: 1px solid var(--lf-line); }

.lf-work-list li:first-child { border-top: 1px solid var(--lf-line); }

/* row header — the dropdown trigger */
.lf-work-head {
  width: 100%;
  display: grid;
  grid-template-columns: 56px 1fr auto 40px;
  align-items: center;
  gap: 18px;
  padding: 22px 6px;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: padding-left 0.35s var(--lf-ease);
}

.lf-work-head::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 100%;
  background: var(--lf-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--lf-ease);
}

.lf-work-head:hover::before,
.lf-work-entry.open .lf-work-head::before { transform: scaleX(1); }

.lf-work-head:hover,
.lf-work-entry.open .lf-work-head { padding-left: 16px; }

.lf-work-num {
  font-family: var(--lf-hud);
  font-size: 18px;
  color: var(--lf-dim);
  transition: color 0.3s;
}

.lf-work-head:hover .lf-work-num,
.lf-work-entry.open .lf-work-num { color: var(--lf-red-hot); }

.lf-work-title {
  font-family: var(--lf-display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.lf-work-cat {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--lf-dim);
  text-align: right;
  transition: color 0.3s;
}

.lf-work-head:hover .lf-work-cat { color: var(--lf-grey); }

/* chevron chip */
.lf-work-chev {
  width: 34px;
  height: 34px;
  border: 1px solid var(--lf-line);
  border-radius: 50%;
  position: relative;
  justify-self: end;
  transition: transform 0.5s var(--lf-ease), border-color 0.3s, background 0.3s;
}

.lf-work-chev::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--lf-grey);
  border-bottom: 2px solid var(--lf-grey);
  transform: translate(-50%, -68%) rotate(45deg);
  transition: border-color 0.3s;
}

.lf-work-head:hover .lf-work-chev { border-color: var(--lf-red-hot); }

.lf-work-entry.open .lf-work-chev {
  transform: rotate(180deg);
  background: var(--lf-red);
  border-color: var(--lf-red);
}

.lf-work-entry.open .lf-work-chev::before { border-color: var(--lf-white); }

/* dropdown panel — animated open/close */
.lf-work-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.65s var(--lf-ease);
}

.lf-work-panel-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease 0.05s, transform 0.55s var(--lf-ease) 0.05s;
}

.lf-work-entry.open .lf-work-panel { grid-template-rows: 1fr; }

.lf-work-entry.open .lf-work-panel-inner {
  opacity: 1;
  transform: none;
  padding: 6px 6px 26px 16px;
}

.lf-work-desc {
  color: var(--lf-grey);
  font-size: 15px;
  max-width: 640px;
}

.lf-work-desc strong {
  display: block;
  margin-top: 6px;
  font-family: var(--lf-hud);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--lf-red-hot);
}

.lf-work-open {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lf-white);
  border: 1px solid rgba(245, 245, 245, 0.25);
  border-radius: 999px;
  padding: 10px 22px;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--lf-ease);
}

.lf-work-open:hover {
  border-color: var(--lf-red-hot);
  background: rgba(204, 0, 0, 0.18);
  transform: translateX(4px);
}

/* card image inside the panel — phones/tablets only (desktop has the stage) */
.lf-work-card { display: none; }

/* icon-card gradients (kept from the old cards) */
[data-grad="burbz"]   { background: linear-gradient(135deg, #0a0a12 0%, #1a1a2e 50%, #e63946 100%); }
[data-grad="nomad"]   { background: linear-gradient(135deg, #0d0d0d 0%, #1a3a2a 30%, #e87b35 80%, #d4a574 100%); }
[data-grad="camp"]    { background: linear-gradient(135deg, #4a7c8f 0%, #1a3a2a 50%, #2c1810 100%); }
[data-grad="ocean"]   { background: linear-gradient(160deg, #03141f 0%, #0a3a52 55%, #9fd8ef 130%); }
[data-grad="archive"] { background: linear-gradient(135deg, #141414 0%, #2a2a2a 55%, #cc0000 140%); }

/* ── Stills strip ──────────────────────────────────────────────── */
.lf-stills {
  position: relative;
  overflow: clip;
  padding: clamp(50px, 8vh, 90px) 0;
  background: var(--lf-black);
  border-top: 1px solid var(--lf-line);
}

.lf-stills-track {
  display: flex;
  gap: clamp(16px, 2.5vw, 36px);
  width: max-content;
  padding: 0 6vw;
  padding-inline: max(6vw, var(--lf-gutter));
  will-change: transform;
}

.lf-stills-track figure {
  position: relative;
  width: clamp(260px, 36vw, 520px);
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--lf-line);
  flex-shrink: 0;
}

.lf-stills-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  transition: transform 0.8s var(--lf-ease), filter 0.4s;
}

.lf-stills-track figure:hover img { transform: scale(1.05); filter: saturate(1.1); }

.lf-stills-track figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--lf-hud);
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--lf-white);
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid var(--lf-line);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ── Engine room · LVL 03 ──────────────────────────────────────── */
.lf-engine {
  position: relative;
  padding: clamp(90px, 14vh, 160px) 0;
  background: var(--lf-coal);
  overflow: clip;
}

/* centred via `translate` so JS can own `transform` for rotation */
.lf-gear-engine { width: clamp(400px, 52vw, 820px); left: 50%; top: 50%; translate: -50% -50%; opacity: 0.55; }

.lf-engine .lf-wrap { position: relative; z-index: 1; }

.lf-engine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.lf-plate {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
  background: rgba(19, 19, 19, 0.82);
  border: 1px solid var(--lf-line);
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(4px);
  transition: transform 0.35s var(--lf-ease), border-color 0.3s, box-shadow 0.3s;
}

.lf-plate:hover {
  transform: translateY(-6px);
  border-color: rgba(204, 0, 0, 0.6);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(204, 0, 0, 0.25);
}

.lf-plate-icon { font-size: 24px; }

/* ── Crew · LVL 04 ─────────────────────────────────────────────── */
.lf-crew { padding: clamp(90px, 14vh, 160px) 0; background: var(--lf-black); }

.lf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: clamp(48px, 7vw, 90px);
}

.lf-stat {
  text-align: center;
  padding: 30px 12px;
  border: 1px solid var(--lf-line);
  border-radius: 12px;
  background: var(--lf-panel);
}

.lf-stat-num {
  display: block;
  font-family: var(--lf-display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 52px);
  color: var(--lf-red);
  line-height: 1;
  margin-bottom: 10px;
}

.lf-stat-label {
  font-family: var(--lf-hud);
  font-size: 16px;
  letter-spacing: 0.2em;
  color: var(--lf-grey);
  text-transform: uppercase;
}

.lf-crewcard {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--lf-line);
  border-radius: 16px;
  background:
    radial-gradient(80% 120% at 0% 0%, rgba(204, 0, 0, 0.1), transparent 60%),
    var(--lf-panel);
}

.lf-crewcard-portrait {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.lf-crewcard-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
  border: 4px solid #b0b8c1;
  box-shadow: 0 0 0 3px #78868f, 0 0 0 6px #d0d8e0, 0 14px 40px rgba(0, 0, 0, 0.6);
}

.lf-crewcard-ring {
  position: absolute;
  inset: -14px;
  border: 1px dashed rgba(204, 0, 0, 0.5);
  border-radius: 50%;
  animation: lf-spin 14s linear infinite;
}

.lf-crewcard-body h3 {
  font-family: var(--lf-display);
  font-weight: 800;
  font-size: clamp(22px, 2.6vw, 34px);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.lf-crewcard-body p { color: var(--lf-grey); max-width: 640px; margin-bottom: 24px; }

/* ── Contact · LVL 05 ──────────────────────────────────────────── */
.lf-contact {
  position: relative;
  padding: clamp(100px, 16vh, 190px) 0 clamp(120px, 18vh, 210px);
  background:
    radial-gradient(60% 60% at 50% 100%, rgba(204, 0, 0, 0.13), transparent 70%),
    var(--lf-coal);
  overflow: clip;
  text-align: center;
}

.lf-gear-contact { width: clamp(300px, 40vw, 640px); right: -14%; top: -16%; opacity: 0.75; }

.lf-contact .lf-wrap { position: relative; z-index: 1; }

.lf-contact .lf-eyebrow { text-align: center; }

.lf-contact-title {
  font-family: var(--lf-display);
  font-weight: 800;
  font-size: clamp(48px, 10vw, 150px);
  line-height: 0.96;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}

.lf-contact-sub {
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--lf-grey);
  font-size: clamp(15px, 1.5vw, 18px);
}

.lf-contact .lf-hero-cta { justify-content: center; }

/* ── Footer ────────────────────────────────────────────────────── */
.lf-footer {
  border-top: 1px solid var(--lf-line);
  background: #070707;
  padding: clamp(48px, 7vw, 80px) 0 calc(var(--lf-floor-h) + 30px);
}

.lf-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: 48px;
}

.lf-footer-mark { width: 40px; height: 40px; margin-bottom: 16px; opacity: 0.9; }

.lf-footer-brand p { color: var(--lf-grey); font-size: 14px; line-height: 1.8; }

.lf-footer-brand strong {
  font-family: var(--lf-display);
  letter-spacing: 0.2em;
  color: var(--lf-white);
}

.lf-footer-col h4 {
  font-family: var(--lf-hud);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.24em;
  color: var(--lf-red-hot);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.lf-footer-col a {
  display: block;
  color: var(--lf-grey);
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.25s, transform 0.25s var(--lf-ease);
}

.lf-footer-col a:hover { color: var(--lf-white); transform: translateX(5px); }

.lf-footer-base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--lf-line);
  font-size: 13px;
  color: var(--lf-dim);
}

/* ── Music chip · the jukebox on the floor ─────────────────────── */
.lf-music {
  position: fixed;
  right: 18px;
  bottom: calc(var(--lf-floor-h) + 10px);
  z-index: 9100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(14, 14, 14, 0.9);
  border: 1px solid rgba(204, 0, 0, 0.5);
  font-family: var(--lf-hud);
  font-size: 16px;
  letter-spacing: 0.22em;
  color: var(--lf-white);
  backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--lf-ease);
}

.lf-music:hover {
  border-color: var(--lf-red-hot);
  box-shadow: 0 0 24px rgba(204, 0, 0, 0.35);
  transform: translateY(-3px);
}

.lf-music-eq { display: flex; align-items: flex-end; gap: 2.5px; height: 14px; }

.lf-music-eq i {
  width: 3px;
  background: var(--lf-red-hot);
  border-radius: 1px;
  animation: lf-eq 0.9s ease-in-out infinite;
}

.lf-music-eq i:nth-child(1) { height: 60%; animation-delay: 0s; }
.lf-music-eq i:nth-child(2) { height: 100%; animation-delay: 0.18s; }
.lf-music-eq i:nth-child(3) { height: 45%; animation-delay: 0.32s; }
.lf-music-eq i:nth-child(4) { height: 80%; animation-delay: 0.05s; }

@keyframes lf-eq {
  0%, 100% { transform: scaleY(0.5); }
  50%      { transform: scaleY(1); }
}

/* ═══ Responsive ═══════════════════════════════════════════════── */
@media (max-width: 1024px) {
  .lf-engine-grid { grid-template-columns: repeat(3, 1fr); }
  .lf-footer-grid { grid-template-columns: 1fr 1fr; }
}

/* tablet and below: no stage — the card image lives inside the panel */
@media (max-width: 1100px) {
  .lf-work-deck { grid-template-columns: 1fr; }
  .lf-work-stage { display: none; }

  .lf-work-head { grid-template-columns: 36px 1fr 40px; }
  .lf-work-cat { display: none; }

  .lf-work-card {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--lf-line);
    aspect-ratio: 16 / 9;
  }

  .lf-work-card img { width: 100%; height: 100%; object-fit: cover; }

  .lf-work-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
  }
}

@media (max-width: 900px) {
  .lf-nav {
    position: fixed;
    inset: var(--lf-header-h) 0 0 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 8999;
  }

  .lf-nav.open { opacity: 1; pointer-events: auto; }

  .lf-nav a {
    font-family: var(--lf-display);
    font-size: clamp(26px, 7vw, 40px);
    font-weight: 800;
    padding: 10px 0;
    color: var(--lf-white);
  }

  .lf-burger { display: flex; }

  .lf-studio-cols { grid-template-columns: 1fr; }
  .lf-stats { grid-template-columns: repeat(2, 1fr); }
  .lf-crewcard { grid-template-columns: 1fr; text-align: center; }
  .lf-crewcard-body p { margin-left: auto; margin-right: auto; }
  .lf-hero-foot .lf-hud-tag:last-child { display: none; }
}

@media (max-width: 600px) {
  .lf-hero-kicker { font-size: 14px; letter-spacing: 0.18em; }
  /* keep the big display lines inside the gutter — no clipped letters */
  .lf-manifesto { font-size: clamp(28px, 9vw, 42px); }
  .lf-contact-title { font-size: clamp(34px, 10.5vw, 52px); }
  .lf-hero .lf-tagwall img { max-width: 82%; }
  .lf-engine-grid { grid-template-columns: repeat(2, 1fr); }
  .lf-plate { padding: 16px 14px; font-size: 13px; }
  .lf-footer-grid { grid-template-columns: 1fr; }
  .lf-footer-base { flex-direction: column; gap: 4px; }
  .lf-hero-cta .lf-btn { width: 100%; justify-content: center; }
  .lf-logo-type small { display: none; }
  .lf-music { right: 12px; padding: 8px 14px; font-size: 14px; }
}

/* ═══ Reduced motion ═══════════════════════════════════════════── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  body.lf::after { animation: none; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .lf-reveal, .lf-line > span { opacity: 1; transform: none; }
}
