/* ============================================================
   massimilianodiliberto.com — Design System
   Stack: GSAP · Lenis · Space Grotesk · DM Serif Display
   ============================================================ */

/* VARIABLES */
:root {
  --bg:             #080808;
  --bg-soft:        #0F0F0F;
  --bg-surface:     #141414;
  --text-primary:   #EFEFEF;
  --text-secondary: #AAAAAA;
  --text-muted:     #777777;
  --accent:         #B8A898;
  --accent-dim:     rgba(184, 168, 152, 0.12);
  --border:         rgba(255, 255, 255, 0.07);
  --overlay:        rgba(8, 8, 8, 0.88);

  --font-ui:        'Space Grotesk', sans-serif;
  --font-editorial: 'DM Serif Display', serif;

  --text-hero:      clamp(40px, 6.5vw, 84px);
  --text-display:   clamp(30px, 4.5vw, 60px);
  --text-title:     clamp(20px, 2.8vw, 38px);
  --text-body:      15px;
  --text-label:     11px;
  --text-micro:     10px;

  --section-v:      140px;
  --section-h:      6vw;
  --element-gap:    40px;
  --micro-gap:      16px;
  --grid-gap:       3px;
}

@media (max-width: 767px) {
  :root {
    --section-v: 80px;
    --section-h: 20px;
    --text-body: 14px;
  }
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--text-primary); scroll-behavior: auto; }
body { font-family: var(--font-ui); font-weight: 300; overflow-x: hidden; -webkit-font-smoothing: antialiased; background: linear-gradient(180deg, #0f0b09 0%, #030305 18%, #030305 82%, #08060d 100%); }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font-family: var(--font-ui); cursor: pointer; background: none; border: none; padding: 0; }

/* ============================================================
   GRAIN
   ============================================================ */

#grain {
  position: fixed;
  inset: -200px;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grain-drift 0.12s steps(1) infinite;
}

@keyframes grain-drift {
  0%   { background-position:   0px   0px; }
  10%  { background-position: -42px -63px; }
  20%  { background-position:  17px  85px; }
  30%  { background-position: -71px  14px; }
  40%  { background-position:  55px -37px; }
  50%  { background-position: -29px  62px; }
  60%  { background-position:  88px -18px; }
  70%  { background-position: -14px  47px; }
  80%  { background-position:  33px -91px; }
  90%  { background-position: -66px  28px; }
  100% { background-position:  11px -54px; }
}

/* ============================================================
   PAGE TRANSITION
   ============================================================ */

#page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9000;
  pointer-events: all;
}

/* ============================================================
   INTRO — cinematic atmospheric fade
   ============================================================ */

#intro {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  background: #060606;
}

#intro-flash-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
}

/* Vignette — darkens edges, adds depth */
.intro-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 45%, transparent 22%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Ambient drift — very subtle warm light movement */
.intro-ambient {
  position: absolute;
  inset: -30%;
  background: radial-gradient(ellipse 55% 38% at 50% 52%, rgba(22, 15, 9, 0.5) 0%, transparent 62%);
  animation: intro-drift 16s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes intro-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, -2%) scale(1.07); }
}

/* Phase 1 — three discipline lines */
#intro-p1 {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  pointer-events: none;
  transition: opacity 1000ms ease-in-out;
}

.iw {
  display: block;
  font-family: var(--font-ui);
  font-size: clamp(9px, 1.05vw, 11px);
  font-weight: 300;
  letter-spacing: 0.55em;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 1000ms ease-in-out;
}

/* ETF Overlay — floats over hero video after intro dissolves */
#etf-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
}
#intro-etf {
  position: relative;
  z-index: 2;
  display: block;
  font-family: var(--font-ui);
  font-size: clamp(11px, 1.15vw, 12px);
  font-weight: 300;
  letter-spacing: 0.68em;
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
}
.etf-char {
  display: inline-block;
  transform-origin: center 60%;
  white-space: pre;
}

/* Skip */
#intro-skip {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.12);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 20;
  text-transform: uppercase;
  transition: color 300ms ease;
  pointer-events: all;
}
#intro-skip:hover { color: rgba(255, 255, 255, 0.36); }

/* ============================================================
   NAVIGATION
   ============================================================ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 24px var(--section-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transition: opacity 500ms ease, background 500ms ease;
}
nav.visible { opacity: 1; }
nav.scrolled {
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo-img {
  display: block;
  height: 28px;
  width: auto;
  opacity: 0.88;
  transition: opacity 0.3s ease;
}
.nav-logo:hover .nav-logo-img {
  opacity: 1;
}
.nav-logo-text {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.nav-logo:hover .nav-logo-text {
  color: rgba(255, 255, 255, 1);
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-link {
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  transition: color 1400ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
}
.nav-link.active { color: var(--text-primary); }

.nav-toggle {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
}

#mobile-menu {
  display: block;
  position: fixed;
  inset: 0;
  background: #060606;
  z-index: 190;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  overflow: hidden;
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  position: relative;
  z-index: 2;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.52em;
  color: rgba(255, 255, 255, 0.38);
  transition: color 1400ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 1400ms cubic-bezier(0.16, 1, 0.3, 1);
  text-transform: uppercase;
}
#mobile-menu a:hover {
  color: rgba(255, 255, 255, 0.92);
  transform: translateY(-4px);
  animation: none;
}

@keyframes menu-link-pulse {
  0%, 100% { color: rgba(255, 255, 255, 0.22); }
  50%       { color: rgba(255, 255, 255, 0.92); }
}
#mobile-menu.open a {
  animation: menu-link-pulse 2200ms ease-in-out infinite;
}
#mobile-menu.open a:nth-child(3) { animation-delay:     0ms; }
#mobile-menu.open a:nth-child(4) { animation-delay:  -580ms; }
#mobile-menu.open a:nth-child(5) { animation-delay: -1220ms; }
#mobile-menu.open a:nth-child(6) { animation-delay: -1750ms; }

.menu-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.menu-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1;
}

@media (max-width: 767px) {
  .nav-links  { display: none; }
  .nav-toggle { display: block; }
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  padding: 36px var(--section-h);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
footer span,
footer a {
  font-family: var(--font-ui);
  font-size: var(--text-micro);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #555555;
}
footer a { transition: color 300ms ease; }
footer a:hover { color: var(--text-primary); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

[data-reveal] { opacity: 0; }

/* ============================================================
   ENTRY PAGE — Hero
   ============================================================ */

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}
/* Visible at all times — dark cinematic base while video loads */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}
.hero-video,
.hero-vid {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-enclosure,
.hero-video::-webkit-media-controls-panel,
.hero-vid::-webkit-media-controls,
.hero-vid::-webkit-media-controls-enclosure,
.hero-vid::-webkit-media-controls-panel { display: none !important; }
/* Gradient overlay — cinematic vignette + bottom fade for text contrast */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 25%, rgba(0, 0, 0, 0.52) 100%),
    linear-gradient(to right, rgba(0, 0, 0, 0.36) 0%, transparent 22%, transparent 78%, rgba(0, 0, 0, 0.36) 100%),
    linear-gradient(to top,   rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.30) 50%, rgba(0, 0, 0, 0.15) 100%);
}
.hero-content {
  position: absolute;
  bottom: 7vh;
  left: 6vw;
  z-index: 3;
}
.hero-name {
  font-family: var(--font-editorial);
  font-size: var(--text-hero);
  font-weight: 300;
  color: var(--text-primary);
  opacity: 1;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-subtitle {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 18px;
  opacity: 1;
}
.hero-descriptor {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.36);
  margin-top: 32px;
  opacity: 1;
  max-width: 480px;
  line-height: 1.9;
}
.scroll-indicator {
  position: absolute;
  bottom: 7vh;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  opacity: 0;
  transition: opacity 0.6s ease;
}
.scroll-indicator.active {
  animation: signal-pulse 2.6s ease-in-out infinite;
}
@keyframes signal-pulse {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) scaleY(1); }
  50%       { opacity: 0.7; transform: translateX(-50%) scaleY(0.6); }
}

/* ENTRY PAGE — Featured */

.featured {
  padding: var(--section-v) 0;
  position: relative;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--grid-gap);
}
.feat-item {
  position: relative;
  overflow: hidden;
  display: block;
  background: transparent;
}
.feat-large  { grid-column: span 12; aspect-ratio: 16/9; }
.feat-medium { grid-column: span 6;  aspect-ratio: 16/9; }

.feat-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.feat-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.feat-info {
  position: absolute;
  bottom: 28px;
  left: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
}
.feat-title {
  font-family: var(--font-ui);
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.28);
  transition: color 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.feat-item:hover .feat-title {
  color: rgba(255, 255, 255, 0.92);
}
.feat-meta {
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 300;
  letter-spacing: 0.16em;
  color: var(--text-secondary);
  transition: color 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}
.feat-item:hover .feat-meta {
  color: rgba(255, 255, 255, 0.55);
}

.featured-fade {
  position: absolute;
  left: 0; right: 0;
  height: 120px;
  pointer-events: none;
  z-index: 2;
}
.featured-fade--top {
  top: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
}
.featured-fade--bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}

/* ENTRY PAGE — Credentials */

.credentials {
  padding: 64px var(--section-h);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.credentials-text {
  font-family: var(--font-ui);
  font-size: var(--text-label);
  font-weight: 300;
  letter-spacing: 0.22em;
  color: #666666;
  text-align: center;
  line-height: 2.4;
}

/* ENTRY PAGE — Bill Jobs Intro */

.bj-intro {
  padding: var(--section-v) var(--section-h);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.bj-title {
  font-family: var(--font-ui);
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 300;
  color: #666666;
  line-height: 1.1;
}
.bj-text {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.9;
}
.bj-logo-img {
  display: block;
  max-width: 160px;
  width: 100%;
  opacity: 0.32;
  filter: grayscale(100%);
  transition: opacity 600ms ease;
}
.bj-intro:hover .bj-logo-img { opacity: 0.50; }
.bj-tagline {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.24);
  line-height: 1.7;
  margin-bottom: 0;
  max-width: 320px;
}
.bj-link {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.26em;
  color: rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding-bottom: 3px;
  transition: opacity 300ms ease;
}
.bj-link:hover { opacity: 0.7; }

@media (max-width: 767px) {
  .feat-large, .feat-medium { grid-column: span 12; aspect-ratio: 4/3; }
  .feat-info { opacity: 1; transform: none; }
  .bj-intro { gap: 20px; }
}

/* ============================================================
   WORK PAGE
   ============================================================ */

.work-page { padding-top: 0; }

.work-header {
  padding: 120px var(--section-h) 0;
}
@keyframes work-title-drift {
  0%   { transform: translate(0px,    0px); }
  20%  { transform: translate(5px,   -4px); }
  45%  { transform: translate(-3px,   3px); }
  65%  { transform: translate(7px,   -2px); }
  82%  { transform: translate(-5px,   1px); }
  100% { transform: translate(0px,    0px); }
}
.work-title {
  font-family: var(--font-editorial);
  font-size: clamp(52px, 9vw, 140px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.0;
  cursor: pointer;
  display: inline-block;
  animation: work-title-drift 11s ease-in-out infinite;
}
.work-subtitle {
  font-family: var(--font-ui);
  font-size: clamp(12px, 1.3vw, 15px);
  font-weight: 300;
  letter-spacing: 0.26em;
  color: rgba(255, 255, 255, 0.44);
  margin-top: 18px;
  opacity: 0;
}
.work-tagline {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.32);
  margin-top: 10px;
  opacity: 0;
}

/* SYSTEM GATE */
#sys-gate {
  position: fixed;
  inset: 0;
  z-index: 8500;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  pointer-events: none;
}
#sys-gate-svg {
  width: 68px;
  height: 68px;
}
#sys-gate-txt {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.34em;
  color: rgba(255, 255, 255, 0.28);
}

.work-filters {
  padding: 18px var(--section-h) 44px;
  display: flex;
  gap: 32px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  align-items: center;
}
.work-filters::-webkit-scrollbar { display: none; }

@keyframes filter-breathe {
  0%, 100% { color: rgba(255, 255, 255, 0.26); }
  50%       { color: rgba(255, 255, 255, 0.62); }
}
.filter {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.34);
  position: relative;
  line-height: 1.75;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
  flex-shrink: 0;
  max-width: 88px;
  animation: filter-breathe 4000ms ease-in-out infinite;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-filters .filter:nth-child(1) { animation-delay:     0ms; }
.work-filters .filter:nth-child(2) { animation-delay:  -667ms; }
.work-filters .filter:nth-child(3) { animation-delay: -1334ms; }
.work-filters .filter:nth-child(4) { animation-delay: -2000ms; }
.work-filters .filter:nth-child(5) { animation-delay: -2667ms; }
.work-filters .filter:nth-child(6) { animation-delay: -3334ms; }
.filter.active {
  animation: none;
  color: rgba(255, 255, 255, 0.92) !important;
  transform: scale(1.10);
}
.filter.active::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: rgba(184, 168, 152, 0.60);
  margin: 6px auto 0;
  animation: hp-divider-h-pulse 3.0s ease-in-out infinite;
}
.filter:hover:not(.active) {
  animation: none;
  color: rgba(255, 255, 255, 0.82);
  transform: translateY(-2px);
  transition: color 1200ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 1200ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   AUTHOR PAGE
   ============================================================ */

.author-main {
  min-height: 100vh;
}

@keyframes auth-breathe {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.96; }
}
.author-main {
  background: #060606;
  position: relative;
  animation: auth-breathe 14s ease-in-out infinite;
}
.author-main::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 1;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='200' height='200' filter='url(%23g)' opacity='0.04'/></svg>");
  background-size: 200px 200px;
}

.auth-block {
  padding: 22vh var(--section-h);
}
.auth-block:first-of-type {
  padding-top: 30vh;
}
.auth-text-wrap {
  display: flex;
  flex-direction: column;
}
.auth-line {
  display: block;
  font-family: var(--font-editorial);
  font-size: clamp(38px, 6.4vw, 100px);
  font-weight: 300;
  line-height: 1.10;
  color: rgba(255, 255, 255, 0.84);
}
.auth-line--dim   { color: rgba(255, 255, 255, 0.38); font-style: italic; }
.auth-line--thin  { font-style: italic; color: rgba(255, 255, 255, 0.60); }
.auth-line--close { color: rgba(255, 255, 255, 0.68); font-style: italic; }

.auth-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0A090E;
}
.auth-video-placeholder {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, #100F18 0%, #070610 100%);
  z-index: 1;
}
.auth-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.auth-pause {
  height: 42vh;
  background: transparent;
}

.auth-closing {
  padding: 22vh var(--section-h) 20vh;
}
.auth-closing-text {
  display: block;
  font-family: var(--font-editorial);
  font-size: clamp(52px, 8.4vw, 130px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.0;
}

@media (max-width: 767px) {
  .auth-block { padding: 16vh var(--section-h); }
  .auth-block:first-of-type { padding-top: 20vh; }
  .auth-closing { padding: 16vh var(--section-h) 14vh; }
}

.auth-billjobs {
  padding: 20vh var(--section-h) 24vh;
  background: transparent;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.auth-bj-title {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(28px, 4.2vw, 64px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 3vh;
  line-height: 1.1;
  text-align: center;
  width: 100%;
}
.auth-bj-phrase {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.09em;
  line-height: 2.0;
  margin-bottom: 6vh;
}
/* Bill Jobs cinematic frame */
.bj-frame-link {
  display: block;
  text-decoration: none;
  margin-bottom: 52px;
  overflow: hidden;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.bj-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}
.bj-frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  filter: grayscale(0.18) contrast(1.06);
  transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.bj-frame-link:hover .bj-frame-img {
  opacity: 0.86;
  transform: scale(1.02);
}
.bj-frame-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 35%, rgba(3,3,6,0.82) 100%);
  pointer-events: none;
}
.bj-frame-cta {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.bj-frame-play-icon {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.52);
  transition: color 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bj-frame-link:hover .bj-frame-play-icon { color: rgba(255, 255, 255, 0.92); }
.bj-frame-label {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.42);
  transition: color 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bj-frame-link:hover .bj-frame-label { color: rgba(255, 255, 255, 0.82); }

/* Bill Jobs micro-logo in page transition */
.page-bj-logo {
  position: absolute;
  bottom: 28px;
  right: 28px;
  width: 34px;
  height: auto;
  opacity: 0.10;
  filter: grayscale(1);
  pointer-events: none;
}

.auth-bj-body {
  margin-bottom: 6vh;
  width: 100%;
  text-align: center;
}
.auth-bj-body p {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.54);
  letter-spacing: 0.04em;
  line-height: 2.6;
  margin: 0;
  text-align: center;
}
.auth-bj-closing {
  margin-top: 6vh;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(16px, 2.2vw, 32px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
  text-align: center;
  width: 100%;
}

.auth-bj-artist-cta {
  margin-top: 3vh;
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.4vw, 16px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  letter-spacing: 0.08em;
}
.auth-bj-artist-cta a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.3s ease;
}
.auth-bj-artist-cta a:hover {
  color: #fff;
}

#auth-line-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}
#auth-line-svg {
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
}

.auth-moment {
  padding: 13vh var(--section-h);
  position: relative;
  z-index: 2;
}
.auth-moment--right {
  text-align: right;
}
.auth-moment--pause {
  padding-top: 10vh;
  padding-bottom: 10vh;
}
.auth-moment-num {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 24px;
}
.auth-moment-num::after {
  content: '';
  display: block;
  width: 52px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}
.auth-moment--right .auth-moment-num {
  justify-content: flex-end;
  flex-direction: row-reverse;
}
.auth-moment-title {
  font-family: var(--font-editorial);
  font-size: clamp(22px, 3.6vw, 56px);
  font-weight: 300;
  line-height: 1.14;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: -0.01em;
  position: relative;
  z-index: 2;
}
.auth-moment-title--large {
  font-size: clamp(32px, 5.5vw, 88px);
  text-shadow: 0 0 80px rgba(255, 255, 255, 0.07);
}
.auth-moment-sub {
  margin-top: 32px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.70);
  letter-spacing: 0.07em;
  line-height: 2.4;
  min-height: 5em;
  position: relative;
  z-index: 2;
}

@media (max-width: 767px) {
  .auth-billjobs { padding: 12vh var(--section-h) 16vh; }
  .auth-moment { padding: 14vh var(--section-h); }
  .auth-moment--pause { padding-top: 20vh; padding-bottom: 20vh; }
  .auth-moment-sub { font-size: 15px; color: rgba(255, 255, 255, 0.62); }
  .auth-bj-body p { font-size: 15px; color: rgba(255, 255, 255, 0.60); }
  .auth-breath-moment { padding: 10vh var(--section-h); }
  .auth-moment-title--broadcast { font-size: clamp(26px, 7.5vw, 64px); }
  .wk-statement { padding: 4vh 6vw 3vh; }
  .wk-statement-text { font-size: clamp(13px, 3.8vw, 17px); }
}

/* AUTH OPENING */
.auth-opening {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: clamp(6rem, 18vh, 14rem);
  padding-left: clamp(1.5rem, 6vw, 7rem);
  padding-right: clamp(1.5rem, 6vw, 7rem);
  padding-bottom: 8vh;
}
.auth-opening-h1 {
  font-family: var(--font-editorial);
  font-size: clamp(2.8rem, 7vw, 8.5rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0;
  margin: 0 0 1.4rem;
}
.auth-opening-h2 {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.2rem, 2.8vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.16);
  opacity: 0;
  margin: 0;
}
.auth-opening-h2--editorial {
  font-size: clamp(1.0rem, 2.0vw, 2.6rem);
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 0;
  line-height: 1.6;
}

/* flash.mov cinematic video background for Author opening */
.auth-opening {
  position: relative;
  overflow: hidden;
}
.auth-flash-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  filter: saturate(0.25) contrast(1.08) brightness(0.55);
  animation: auth-flash-fadein 2.2s 0.8s ease-out forwards;
}
@keyframes auth-flash-fadein {
  from { opacity: 0; }
  to   { opacity: 0.38; }
}
.auth-flash-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(4,4,6,0.70) 0%, rgba(4,4,6,0.20) 45%, rgba(4,4,6,0.72) 100%),
    linear-gradient(to right, rgba(4,4,6,0.36) 0%, transparent 38%, transparent 62%, rgba(4,4,6,0.36) 100%);
  z-index: 1;
  pointer-events: none;
}
.auth-opening-h1,
.auth-opening-h2 {
  position: relative;
  z-index: 2;
}

/* CINEMATIC BREATH MOMENT */
.auth-breath-moment {
  padding: 10vh var(--section-h);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.auth-breath-line {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(1.0rem, 1.8vw, 2.2rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
  letter-spacing: 0.01em;
  opacity: 0;
}

/* AUTH MOMENT — BROADCAST VARIANT */
.auth-moment-title--broadcast {
  font-size: clamp(28px, 5.5vw, 88px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

/* WORK PAGE — CATEGORY STATEMENTS */
.wk-statement {
  grid-column: span 12;
  padding: 6vh 10vw 4vh;
  text-align: center;
}
.wk-statement--open { padding-top: 2vh; padding-bottom: 5vh; }
.wk-statement--close { padding-top: 5vh; padding-bottom: 2vh; }
.wk-statement-text {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(15px, 1.8vw, 23px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.54);
  line-height: 1.9;
  max-width: 600px;
  margin: 0 auto;
  letter-spacing: 0.01em;
}
.wk-statement-sub {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.20);
  margin-top: 14px;
}

/* BREATH */
.auth-breath {
  height: 60vh;
  min-height: 380px;
}

/* FRAGMENTS */
.auth-frag {
  opacity: 0;
  margin-bottom: 18vh;
  padding-left: clamp(1.5rem, 6vw, 7rem);
  padding-right: clamp(1.5rem, 6vw, 7rem);
}
.auth-frag--large span {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 5vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.72);
}
.auth-frag--mid {
  display: flex;
  gap: clamp(1.5rem, 4vw, 4rem);
  flex-wrap: wrap;
}
.auth-frag--mid span {
  font-size: clamp(1rem, 2.5vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.45);
}
.auth-frag--small span {
  font-size: clamp(0.65rem, 1.2vw, 0.9rem);
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.28);
}

/* ============================================================
   SYSTEM PAGE
   ============================================================ */

.system-cinematic {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 620px;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: center;
}
#system-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
}
.system-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--section-h) 6vh;
  pointer-events: none;
  max-width: 52%;
}
.system-cinematic::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 38%;
  background: linear-gradient(to bottom, transparent, rgba(8,8,8,0.96));
  pointer-events: none;
  z-index: 1;
}
.sys-word {
  display: block;
  font-family: var(--font-editorial);
  font-size: clamp(26px, 5.8vw, 86px);
  font-weight: 300;
  line-height: 1.12;
  color: rgba(255, 255, 255, 0.88);
  opacity: 0;
}
.sys-word--mid {
  font-style: italic;
  color: rgba(255, 255, 255, 0.44);
}
.sys-word--accent {
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
}
.sys-desc {
  margin-top: 56px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.10em;
  color: rgba(255, 255, 255, 0.50);
  line-height: 2.2;
  opacity: 0;
}

@media (max-width: 767px) {
  .system-content { max-width: 90%; padding-bottom: 10vh; }
}

/* Cinematic concept sections */
.sys-concept {
  padding: 13vh var(--section-h);
  background: transparent;
  position: relative;
  overflow: hidden;
}
.sys-concept::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 72% 50%, rgba(255,255,255,0.008) 0%, transparent 65%);
  pointer-events: none;
}
.sys-concept--right {
  text-align: right;
}
.sys-concept--right::before {
  background: radial-gradient(ellipse at 28% 50%, rgba(255,255,255,0.008) 0%, transparent 65%);
}
.sys-concept-word {
  display: block;
  font-family: var(--font-editorial);
  font-size: clamp(21px, 4.3vw, 66px);
  font-weight: 300;
  line-height: 1.06;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: -0.02em;
  opacity: 0;
  position: relative;
  z-index: 2;
}
.sys-concept-phrase {
  margin-top: 28px;
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.06em;
  line-height: 2.0;
  max-width: 560px;
  opacity: 0;
  position: relative;
  z-index: 2;
}
.sys-concept--right .sys-concept-phrase {
  margin-left: auto;
}
.sys-concept-body {
  margin-top: 28px;
  max-width: 420px;
  opacity: 0;
}
.sys-concept--right .sys-concept-body {
  margin-left: auto;
  text-align: right;
}
.sys-concept-body p {
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.04em;
  line-height: 2.0;
  margin-bottom: 14px;
}
.sys-concept-body p:last-child { margin-bottom: 0; }

.sys-closing {
  padding: 18vh var(--section-h) 20vh;
  background: transparent;
}
.sys-closing-line {
  display: block;
  font-family: var(--font-editorial);
  font-size: clamp(26px, 5.3vw, 77px);
  font-weight: 300;
  line-height: 1.12;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.05);
  opacity: 0;
  position: relative;
  z-index: 2;
}
.sys-closing-line--accent {
  font-style: italic;
  color: rgba(255, 255, 255, 0.38);
}

@media (max-width: 767px) {
  .sys-concept { padding: 10vh var(--section-h); }
  .sys-closing { padding: 14vh var(--section-h) 12vh; }
  .sys-desc { font-size: 15px; color: rgba(255, 255, 255, 0.58); }
  .sys-concept-phrase { font-size: 15px; }
  .sys-closing-subtext { font-size: 14px; color: rgba(255, 255, 255, 0.56); }
}

.system-main { position: relative; }
#sys-line-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}
#sys-line-svg {
  position: absolute;
  top: 0;
  left: 0;
  overflow: visible;
}
.sys-section-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}
.sys-section-num {
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.72);
}
.sys-section-rule {
  width: 52px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}
.sys-concept--right .sys-section-header {
  justify-content: flex-end;
  flex-direction: row-reverse;
}
.sys-closing-subtext {
  margin-top: 48px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.50);
  letter-spacing: 0.10em;
  line-height: 2.2;
  opacity: 0;
}

/* ============================================================
   SIGNAL PAGE
   ============================================================ */

.signal-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.signal-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.signal-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 55%;
  filter: grayscale(0.45) contrast(1.12) brightness(0.38);
  transform-origin: center;
  animation: signal-drift 32s ease-in-out infinite alternate;
}
@keyframes signal-drift {
  from { transform: scale(1.0); }
  to   { transform: scale(1.055); }
}
.signal-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(4,4,6,0.48) 0%, rgba(4,4,6,0.80) 100%),
    linear-gradient(to bottom, rgba(4,4,6,0.72) 0%, transparent 30%, transparent 70%, rgba(4,4,6,0.80) 100%);
}

.signal-spacer-top {
  flex: 1;
  min-height: 18vh;
  position: relative;
  z-index: 1;
}

.signal-center {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--section-h);
}
.signal-email {
  display: block;
  font-family: var(--font-ui);
  font-size: clamp(14px, 2.0vw, 26px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.06em;
  opacity: 0;
  transition: color 700ms ease;
}
.signal-email:hover { color: rgba(255, 255, 255, 0.96); }
.signal-phone {
  font-family: var(--font-ui);
  font-size: clamp(14px, 2.0vw, 26px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.06em;
  margin-top: 12px;
  opacity: 0;
}

.signal-bottom {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: flex-end;
}
.signal-tagline {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 48px 20px 18px;
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.58);
  letter-spacing: 0.03em;
  line-height: 1.75;
  text-align: center;
  background: linear-gradient(to bottom, transparent 0%, rgba(4,4,6,0.72) 100%);
  opacity: 0;
}
.signal-logo {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  filter: grayscale(1) brightness(0.80);
}

/* Pulsating "Send a Signal" title at top of signal page */
.signal-top-header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--section-h);
  min-height: 20vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.signal-send-title {
  font-family: var(--font-editorial);
  font-size: clamp(28px, 4.5vw, 72px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.1;
  animation: signal-title-pulse 3.8s ease-in-out infinite;
  opacity: 0;
}
@keyframes signal-title-pulse {
  0%, 100% { opacity: 0.72; text-shadow: 0 0 40px rgba(255,255,255,0.08); transform: scale(1); }
  50%       { opacity: 0.96; text-shadow: 0 0 80px rgba(255,255,255,0.18); transform: scale(1.04); }
}

/* Frame container for Bill Jobs logo at bottom of signal page */
.frame-logo-bill-jobs {
  display: block;
  width: 100%;
  max-width: 100%;
  position: relative;
  margin: 0;
  background: #000;
  opacity: 0;
  overflow: hidden;
  align-self: stretch;
}

.signal-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  transition: color 500ms ease;
}
.signal-instagram:hover { color: rgba(255, 255, 255, 0.92); }
.signal-instagram svg { width: 22px; height: 22px; }

@media (max-width: 767px) {
  .signal-email { font-size: clamp(13px, 4vw, 20px); letter-spacing: 0.03em; }
  .signal-phone { font-size: clamp(13px, 4vw, 20px); letter-spacing: 0.03em; }
  .signal-send-title { font-size: clamp(24px, 7vw, 48px); }
}

/* ============================================================
   IMAGE TREATMENT
   ============================================================ */

.work-item img,
.group-item img,
.feat-media img {
  filter: saturate(0.85) contrast(1.05) brightness(0.95);
  transition: filter 0.7s ease;
}
.work-item:hover img,
.group-item:hover img,
.feat-item:hover img {
  filter: saturate(0.92) contrast(1.02) brightness(1.0);
}
.feat-media img {
  animation: slow-zoom 12s ease-in-out infinite alternate;
}
@keyframes slow-zoom {
  from { transform: scale(1);     }
  to   { transform: scale(1.025); }
}

/* ============================================================
   PROJECT OVERLAY
   ============================================================ */

[data-project] { cursor: pointer; }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms ease;
}
.overlay.active {
  pointer-events: all;
  opacity: 1;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.overlay-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  background: #0F0F0F;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(100%);
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.overlay.active .overlay-panel {
  transform: translateY(0);
}

.overlay-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #888888;
  font-size: 14px;
  cursor: pointer;
  z-index: 2;
  transition: color 300ms ease, border-color 300ms ease;
}
.overlay-close:hover {
  color: #EFEFEF;
  border-color: rgba(255, 255, 255, 0.4);
}

.overlay-media {
  width: 100%;
  aspect-ratio: 16/9;
  background: #080808;
  overflow: hidden;
}
.overlay-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.overlay-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}
.overlay-carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.4s ease;
}
.overlay-media iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.overlay-content {
  padding: 32px 24px 48px;
}
.overlay-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.overlay-title {
  font-family: var(--font-ui);
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 400;
  color: #EFEFEF;
  line-height: 1.2;
  margin-bottom: 10px;
}
.overlay-credits {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: #666666;
  text-transform: uppercase;
}
.overlay-description p {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 300;
  color: #888888;
  line-height: 1.85;
  margin-bottom: 16px;
}
.overlay-role {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: #555555;
  text-transform: uppercase;
  margin-top: 24px;
}
.overlay-work-link {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.22);
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 2px;
  transition: color 600ms ease, border-color 600ms ease;
}
.overlay-work-link:hover {
  color: rgba(255, 255, 255, 0.60);
  border-color: rgba(255, 255, 255, 0.25);
}

@media (min-width: 768px) {
  .overlay {
    align-items: stretch;
    justify-content: flex-end;
  }
  .overlay-panel {
    width: 480px;
    max-height: 100vh;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateX(100%);
    transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
  }
  .overlay.active .overlay-panel {
    transform: translateX(0);
  }
}

/* ============================================================
   FILM GRAIN
   ============================================================ */

#grain {
  position: fixed;
  inset: -200px;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  animation: grain-drift 0.12s steps(1) infinite;
}

@keyframes grain-drift {
  0%   { background-position:   0px   0px; }
  10%  { background-position: -42px -63px; }
  20%  { background-position:  17px  85px; }
  30%  { background-position: -71px  14px; }
  40%  { background-position:  55px -37px; }
  50%  { background-position: -29px  62px; }
  60%  { background-position:  88px -18px; }
  70%  { background-position: -14px  47px; }
  80%  { background-position:  33px -91px; }
  90%  { background-position: -66px  28px; }
  100% { background-position:  11px -54px; }
}

/* ============================================================
   WORK PAGE — Cards (wk-* system)
   ============================================================ */

.wk-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.wk-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-surface);
  grid-column: span 4;
  aspect-ratio: 16/9;
}
.wk-wide    { grid-column: span 8; aspect-ratio: 16/9; }
.wk-portrait { grid-column: span 4; aspect-ratio: 3/4; }

.wk-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.wk-media img, .wk-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.82) contrast(1.06) brightness(0.93);
  transition: filter 0.7s ease, transform 0.7s ease;
}
.wk-card:hover .wk-media img { filter: saturate(0.9) contrast(1.03) brightness(0.98); }

.wk-placeholder {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 40%, #111110 0%, #090909 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.wk-placeholder span {
  font-family: var(--font-ui);
  font-size: clamp(8px, 0.7vw, 10px);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.07);
  text-transform: uppercase;
  text-align: center;
  line-height: 2;
}

.wk-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.wk-play svg { width: 11px; height: 11px; margin-left: 2px; }
.wk-card:hover .wk-play { opacity: 0; }

.wk-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 22px 22px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0.72;
  transform: none;
}
.wk-cat-tag {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}
.wk-title {
  font-family: var(--font-ui);
  font-size: clamp(13px, 1.3vw, 17px);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.25;
}
.wk-role {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
}

@media (max-width: 1199px) {
  .wk-card, .wk-wide { grid-column: span 6; aspect-ratio: 16/9; }
  .wk-portrait { grid-column: span 6; aspect-ratio: 16/9; }
}
@media (max-width: 767px) {
  .wk-card, .wk-wide, .wk-portrait { grid-column: span 12; aspect-ratio: 16/9; }
  .wk-info { opacity: 1; transform: none; }
  .wk-ov { align-items: flex-end; }
  .wk-ov-panel {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    transform: translateY(60px);
  }
  .wk-ov-topbar { padding: 16px 20px 0; }
  .wk-ov-body   { padding: 20px 20px 14px; }
  .wk-ov-media  { width: calc(100% - 40px); margin: 0 20px 28px; }
}

/* ============================================================
   WORK PAGE — Overlay (wk-ov-* system)
   ============================================================ */

.wk-ov {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms ease;
}
.wk-ov.active {
  pointer-events: all;
  opacity: 1;
}
.wk-ov-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.wk-ov-panel {
  position: relative;
  z-index: 1;
  width: min(780px, 96vw);
  max-height: 88vh;
  overflow-y: auto;
  background: #0F0F0F;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(32px);
  opacity: 0;
  transition: transform 500ms cubic-bezier(0.16, 1, 0.3, 1), opacity 500ms ease;
}
.wk-ov.active .wk-ov-panel { transform: translateY(0); opacity: 1; }

.wk-ov-topbar {
  display: flex;
  align-items: center;
  padding: 18px 28px 0;
}
.wk-ov-close {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 8px 18px;
  cursor: pointer;
  transition: color 250ms ease, border-color 250ms ease, background 250ms ease;
  text-transform: uppercase;
}
.wk-ov-close:hover {
  color: #EFEFEF;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
}

.wk-ov-body { padding: 28px 28px 20px; }

.wk-ov-media {
  width: calc(100% - 56px);
  margin: 0 28px 40px;
  aspect-ratio: 16/9;
  background: #080808;
  overflow: hidden;
}
.wk-ov-media img, .wk-ov-media video {
  width: 100%; height: 100%; object-fit: cover;
}
.wk-ov-media iframe { width: 100%; height: 100%; border: none; }
.bj-ov-yt-wrap { width: 100%; height: 100%; background: #000; }
.wk-ov-empty {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
}
.wk-ov-empty span {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
}
.wk-ov-meta {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 16px;
}
.wk-ov-cat {
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
}
.wk-ov-role {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #555555;
  text-transform: uppercase;
}
.wk-ov-title {
  font-family: var(--font-ui);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 400;
  color: #EFEFEF;
  line-height: 1.2;
  margin-bottom: 18px;
}
.wk-ov-desc {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 300;
  color: #888888;
  line-height: 1.9;
}
.bj-ov-reel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.38);
  text-decoration: none;
  transition: color 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bj-ov-reel:hover { color: rgba(255, 255, 255, 0.88); }
.bj-ov-reel svg { flex-shrink: 0; }

/* Film dossier overlay skin — UP ALL NIGHT */
.wk-ov-panel[data-skin="film-dossier"] {
  background: #060610;
}
.wk-ov-panel[data-skin="film-dossier"] .wk-ov-title {
  font-family: var(--font-editorial);
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.88);
}
.wk-ov-panel[data-skin="film-dossier"] .wk-ov-media {
  background: #000;
  position: relative;
}
.wk-ov-panel[data-skin="film-dossier"] .wk-ov-media img {
  opacity: 0.80;
  filter: contrast(1.08) brightness(0.94);
}
.wk-ov-panel[data-skin="film-dossier"] .wk-ov-media::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 44%;
  background: linear-gradient(to bottom, transparent, rgba(6, 6, 16, 0.72));
  pointer-events: none;
}
.wk-ov-subtitle {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.34);
  text-transform: uppercase;
  margin-top: 4px;
  margin-bottom: 28px;
}
.wk-ov-intro {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.56);
  line-height: 1.8;
  margin-bottom: 28px;
}
.wk-film-stmts {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 22px;
}
.wk-film-stmt {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.03em;
  line-height: 2.2;
  margin-bottom: 16px;
}
.wk-film-stmt:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
  .wk-ov-panel {
    width: min(820px, 88vw);
    max-height: 88vh;
  }
}

/* ============================================================
   BJ PANEL — full-bleed video overrides
   ============================================================ */

#sys-bj-overlay .wk-ov-panel {
  width: min(920px, 98vw);
  position: relative;
}
#sys-bj-overlay .wk-ov-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(4, 4, 6, 0.62);
  border-color: rgba(255, 255, 255, 0.20);
}
#sys-bj-overlay .wk-ov-media {
  width: 100%;
  margin: 0;
}
#sys-bj-overlay .wk-ov-body {
  padding-top: 14px;
}

/* ============================================================
   SOUND TOGGLE
   ============================================================ */

#sound-toggle {
  position: fixed;
  bottom: 18px;
  right: 22px;
  z-index: 8500;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.18);
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.16em;
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.4s;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  display: block;
}
#sound-toggle:hover  { color: rgba(255, 255, 255, 0.50); }
#sound-toggle.active { color: rgba(255, 255, 255, 0.34); }

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator { animation: none; opacity: 0.3; }
  .feat-info, .thumb-info { transition: none; }
}


/* ============================================================
   VIDEO LAYERS
   ============================================================ */

/* Inside #page-transition — analog texture on the black wipe */
#vid-transition {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* Second layer in mobile menu — above the dark overlay */
.menu-vid-analog {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  mix-blend-mode: screen;
  opacity: 0.28;
  pointer-events: none;
}

/* System page hero — distortion texture behind canvas */
#system-vid-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  mix-blend-mode: overlay;
  opacity: 0.30;
  pointer-events: none;
}

/* Author page — slow analog memory texture */
#author-vid-texture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  mix-blend-mode: overlay;
  opacity: 0.25;
  pointer-events: none;
}

/* Work page — micro distortion flash on overlay open */
#vid-work-flash {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 7980;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  #vid-transition, .menu-vid-analog, #system-vid-bg,
  #author-vid-texture, #vid-work-flash { display: none; }
}

/* Mobile: reduce all video layer opacity by 50% */
@media (max-width: 767px) {
  #vid-transition       { opacity: 0.20; }
  .menu-vid-analog      { opacity: 0.18; }
  #system-vid-bg        { opacity: 0.18; }
  #author-vid-texture   { opacity: 0.18; }
  #vid-work-flash       { display: none; }
}

/* ============================================================
   INTRO LOADER
   ============================================================ */

#intro-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #060606;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

#il-svg {
  width: 56px;
  height: 56px;
}

#il-arc {
  transition: stroke-dashoffset 500ms ease-out;
}

#il-label {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   NAV GATE
   ============================================================ */

#nav-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #060606;
  pointer-events: all;
}

/* ============================================================
   HOMEPAGE — Cinematic Sections
   ============================================================ */

/* Hero philosophy block — standalone section after hero */
.hero-philosophy {
  background: var(--bg);
  padding: 7vh var(--section-h) 8vh;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.hero-phil-3lines {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55em;
}
.hero-phil-line {
  font-family: var(--font-ui);
  font-size: clamp(10px, 1.0vw, 13px);
  font-weight: 400;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.50);
  text-transform: uppercase;
  line-height: 1;
}

/* Vertical separator between homepage sections (animated line) */
.hp-section-sep {
  height: 12vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hp-section-sep::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(184,168,152,0.50), transparent);
  animation: hp-sep-pulse 2.6s ease-in-out infinite;
}
@keyframes hp-sep-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 0.7; transform: scaleY(0.6); }
}

/* Horizontal line divider (under nav buttons) */
.hp-divider-h {
  display: block;
  width: 36px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(184,168,152,0.50), transparent);
  margin: 0.6vh auto 0;
  animation: hp-divider-h-pulse 3.0s ease-in-out infinite;
}
@keyframes hp-divider-h-pulse {
  0%, 100% { opacity: 0.32; transform: scaleX(1); }
  50%       { opacity: 0.72; transform: scaleX(0.65); }
}

/* Uniform spacing between all work frames */
.hp-work-frame + .hp-work-frame {
  margin-top: 12vh;
}

/* Backstage image sections — cinematic: text inside image */
.hp-backstage {
  position: relative;
  padding: 0;
}
.hp-backstage-media {
  position: relative;
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
}
.hp-backstage-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.6) contrast(1.1) brightness(0.55);
  animation: hp-slow-zoom 18s ease-in-out infinite alternate;
}
@keyframes hp-slow-zoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.04); }
}
/* Left overlay: dark left, bright right */
.hp-bs-overlay--left {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    rgba(4,4,6,0.88) 0%,
    rgba(4,4,6,0.60) 38%,
    rgba(4,4,6,0.12) 100%);
}
/* Uniform dark patina over backstage images (more cinematic depth) */
.hp-bs-patina {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.40);
  pointer-events: none;
  z-index: 1;
}
/* Minimal backstage: tighter height, no text padding */
.hp-backstage--minimal {
  padding: 0;
}

/* Side vignette: dark sides, bright center */
.hp-bs-overlay--sides {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(4,4,6,0.80) 0%,
      transparent 32%,
      transparent 68%,
      rgba(4,4,6,0.80) 100%),
    linear-gradient(to bottom,
      rgba(4,4,6,0.44) 0%,
      transparent 28%,
      transparent 72%,
      rgba(4,4,6,0.44) 100%);
}
/* Inner text container positioned inside image */
.hp-bs-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6vw;
  z-index: 2;
}
.hp-bs-inner--left {
  align-items: flex-start;
  text-align: left;
}
.hp-bs-inner--center {
  align-items: center;
  text-align: center;
}
/* Title inside image */
.hp-bs-title {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(28px, 4.2vw, 68px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.18;
  opacity: 0;
  max-width: 560px;
}
/* Sub inside image */
.hp-bs-sub {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.48);
  margin-top: 2.4vh;
  opacity: 0;
}

/* Full-width cinematic work frames */
.hp-work-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  cursor: pointer;
  margin: 0;
  opacity: 1; /* GSAP fromTo sets it to 0 at animation start; 1 is the CSS fallback */
}
.hp-work-frame:hover .hp-wf-img img {
  transform: scale(1.03);
  filter: saturate(0.88) contrast(1.04) brightness(0.96);
}
.hp-wf-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hp-wf-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.80) contrast(1.06) brightness(0.90);
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hp-wf-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(8,8,8,0.80) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(0,0,0,0.30) 100%);
  transition: background 0.8s ease;
}
.hp-work-frame:hover .hp-wf-overlay {
  background:
    linear-gradient(to top, rgba(8,8,8,0.70) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, transparent 45%, rgba(0,0,0,0.20) 100%);
}
.hp-wf-content {
  position: absolute;
  bottom: clamp(28px, 5vh, 52px);
  left: 6vw;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hp-work-frame:hover .hp-wf-content {
  opacity: 1;
  transform: translateY(0);
}
.hp-wf-cat {
  display: block;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 8px;
}
.hp-wf-title {
  display: block;
  font-family: var(--font-ui);
  font-size: clamp(16px, 2.2vw, 28px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 10px;
  line-height: 1.2;
}
.hp-wf-cta {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.26em;
  color: rgba(255, 255, 255, 0.40);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding-bottom: 2px;
}

/* Closing image section */
.hp-closing {
  position: relative;
  height: 80vh;
  min-height: 440px;
  overflow: hidden;
}
/* Text-only closing: solid dark background, flex-centered */
.hp-closing--textonly {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-closing--textonly .hp-closing-content {
  position: relative;
  top: auto; left: auto;
  transform: none;
}
.hp-closing-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.5) contrast(1.12) brightness(0.48);
  animation: hp-slow-zoom 22s ease-in-out infinite alternate;
}
.hp-closing-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 55%, transparent 20%, rgba(4,4,6,0.65) 100%),
    linear-gradient(to bottom, rgba(4,4,6,0.40) 0%, transparent 30%, transparent 70%, rgba(4,4,6,0.80) 100%);
}
.hp-closing-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: min(700px, 88vw);
}
.hp-closing-text {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(26px, 4.0vw, 62px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.3;
  margin-bottom: 28px;
  opacity: 0;
}
.hp-closing-emphasis {
  font-family: var(--font-ui);
  font-size: clamp(13px, 1.4vw, 18px);
  font-weight: 300;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.52);
  line-height: 2.2;
  opacity: 0;
}

/* WHO IS BILL JOBS? editorial section */
.hp-bj-editorial {
  padding: 10vh var(--section-h) 12vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3.2vh;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
}
.hp-bj-editorial-title {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(26px, 4.0vw, 62px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.2;
  opacity: 0;
}
@keyframes author-btn-pulse {
  0%, 100% { color: rgba(255, 255, 255, 0.28); }
  50%       { color: rgba(255, 255, 255, 0.70); }
}
.hp-bj-author-btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.38em;
  color: rgba(255, 255, 255, 0.36);
  animation: author-btn-pulse 3.2s ease-in-out infinite;
  opacity: 0;
}
.hp-bj-author-btn:hover {
  animation: none;
  color: rgba(255, 255, 255, 0.82);
}

/* Bill Jobs footer frame at bottom of homepage / author / system */
.hp-bj-footer {
  position: relative;
  z-index: 2;
  padding: 0 var(--section-h) 0;
}
.hp-footer-nav-link {
  display: block;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.38em;
  color: rgba(255, 255, 255, 0.36);
  padding: 28px 0 40px;
  transition: color 600ms ease;
}
.hp-footer-nav-link:hover {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 767px) {
  .hero-philosophy { padding: 5vh var(--section-h); }
  .hp-backstage { padding: 6vh 0; }
  .hp-backstage-media { aspect-ratio: 4/3; }
  .hp-bs-title { font-size: clamp(18px, 5vw, 28px); }
  .hp-bs-inner { padding: 0 20px; }
  .hp-bs-sub { font-size: 9px; }
  .hp-work-frame { aspect-ratio: 16/9; }
  .hp-wf-content { opacity: 1; transform: none; bottom: 20px; left: 20px; }
  .hp-section-sep { height: 6vh; }
  .hp-closing { height: 12vh; }
  .hp-closing-emphasis { font-size: clamp(11px, 3vw, 14px); }
  .hp-bj-footer { padding: 0 20px; }
  .hp-bj-editorial { padding: 2vh 20px 3vh; }
  .hp-bj-editorial-title { font-size: clamp(22px, 6vw, 36px); }
}

/* ============================================================
   NAV — ACTIVE PAGE STATE
   ============================================================ */

.nav-link--active {
  color: rgba(255, 255, 255, 0.80) !important;
  opacity: 1 !important;
  animation: none !important;
}
#mobile-menu a.nav-link--active {
  color: rgba(255, 255, 255, 0.72);
  opacity: 1;
  animation: none !important;
}

/* AUTHOR nav link breathes on all pages */
.nav-link[href*="about"] {
  animation: filter-breathe 4000ms ease-in-out infinite;
  animation-delay: -800ms;
}
.nav-links .nav-link[href*="about"]:hover {
  animation: none;
}

/* ============================================================
   WORK GRID — WORD SPACERS (desktop only)
   ============================================================ */

.wk-word {
  grid-column: span 12;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2vh 0;
  pointer-events: none;
  user-select: none;
}
@media (max-width: 1199px) { .wk-word { display: none; } }
.wk-word-text {
  font-family: var(--font-editorial);
  font-size: clamp(72px, 10.5vw, 168px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}

/* ============================================================
   SIGNAL PAGE — STANDALONE TAGLINE + LOGO
   ============================================================ */

.signal-tagline-solo {
  font-family: var(--font-editorial);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.68);
  opacity: 0;
  letter-spacing: 0.03em;
  line-height: 1.75;
  text-align: center;
  margin-bottom: 48px;
}
.signal-bj-logo {
  display: block;
  width: 140px;
  height: auto;
  margin: 0 auto;
  opacity: 0;
  filter: brightness(0.9);
}
@keyframes signal-bj-logo-pulse {
  0%, 100% { opacity: 0.68; filter: brightness(0.9) drop-shadow(0 0 12px rgba(184,168,152,0.12)); }
  50%       { opacity: 0.92; filter: brightness(1.0) drop-shadow(0 0 28px rgba(184,168,152,0.28)); }
}
.signal-bj-email {
  display: block;
  margin: 2vh auto 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: clamp(11px, 1.3vw, 14px);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  transition: color 0.3s ease;
  opacity: 0;
}
.signal-bj-email:hover { color: rgba(255,255,255,0.85); }
