/* =========================================================
   GLOBAL DESIGN SYSTEM — Minimal · Cinematic · Monochrome
   ========================================================= */

:root {
  /* =========================================================
     THEME — change THESE THREE values to re-skin the entire site.
     ========================================================= */
  --color-primary:   #7B2CBF;   /* Electric Violet — brand dot, key hovers, "Start here", active filters */
  --color-secondary: #E5722C;   /* Amber Dune    — badges, supporting accents, tile hover frames */
  --color-tertiary:  #F4C430;   /* Motel Yellow  — small highlights, REC dot, marquee stars */
  --color-general:white;
  --color-text : #b6b6b6;

  /* Auto-derived shades (no need to change) */
  --primary-soft:    color-mix(in srgb, var(--color-primary)   22%, transparent);
  --primary-glow:    color-mix(in srgb, var(--color-primary)   55%, #000);
  --secondary-soft:  color-mix(in srgb, var(--color-secondary) 18%, transparent);
  --secondary-line:  color-mix(in srgb, var(--color-secondary) 45%, transparent);
  --tertiary-soft:   color-mix(in srgb, var(--color-tertiary)  20%, transparent);

  /* =========================================================
     SURFACES & TYPE — light, glossy grey foundation
     ========================================================= */
  --bg-top:    #f6f6f6;   /* top of body gradient    */
  --bg-bottom: #d4d4d4;   /* bottom of body gradient */
  --bg:        #ececec;   /* fallback solid          */
  --bg-soft:   #fafafa;   /* slightly lifted surface */
  --bg-card:   #ffffff;   /* card surface            */
  --line:        #d6d6d6;
  --line-strong: #b6b6b6;
  --text:      #0a0a0a;
  --text-soft: #2a2a2a;
  --text-mute: #6a6a6a;
  --text-fade: #a8a8a8;

  /* Subtle reflective highlights for the glossy finish */
  --sheen-top:   rgba(255, 255, 255, 0.85);
  --sheen-card:  rgba(255, 255, 255, 0.65);
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.04), 0 12px 30px -16px rgba(0,0,0,0.10);
  --shadow-lift: 0 1px 2px rgba(0,0,0,0.06), 0 22px 50px -22px rgba(0,0,0,0.18);

  /* Legacy alias — points at primary so anything using --accent picks up the theme */
  --accent: var(--color-primary);

  --font-display: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

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

html {
  min-height: 100%;
  /* Glossy grey gradient with a soft top-light sheen */
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, var(--sheen-top) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0) 70%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  background-size: cover;
}

body {
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .35s var(--ease), opacity .35s var(--ease);
}

a:hover { opacity: .7; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--color-primary);
  color: #ffffff;
}

/* =========================================================
   CURSOR HINT — random floating text near cursor
   ========================================================= */

.cursor-hint {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 79;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  white-space: nowrap;
  opacity: 0;
  transition: opacity .35s ease;
}

/* Show once cursor is detected */
body.has-cursor .cursor-hint { opacity: 1; }

/* Fade between text changes */
.cursor-hint.hint-fading { opacity: 0; }

/* Hide on touch / no-hover devices */
@media (hover: none) { .cursor-hint { display: none; } }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--color-secondary);
  font-weight: 500;
}

.page-title {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 200;
  letter-spacing: -0.04em;
}

.page-subtitle {
  margin-top: 16px;
  color: var(--text-soft);
  max-width: 560px;
  font-size: 15px;
}

/* =========================================================
   LAYOUT — Header / Container / Footer
   ========================================================= */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--gutter);
  /* transparent at top */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background .4s var(--ease), border-color .4s var(--ease),
              backdrop-filter .4s var(--ease), box-shadow .4s var(--ease);
}

/* applied by JS when user scrolls down */
.site-header.scrolled {
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 8px 22px -18px rgba(0,0,0,0.18);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.18em;
  font-size: 13px;
  text-transform: uppercase;
}

.brand-mark .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.site-nav {
  display: flex;
  gap: 32px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.site-nav a {
  position: relative;
  padding: 6px 0;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--ease-out);
}

.site-nav a:hover::after,
.site-nav a.active::after { transform: scaleX(1); }
.site-nav a.active { color: var(--accent); }

@media (max-width: 720px) {
  .site-nav { gap: 18px; font-size: 11px; }
}

.site-footer {
  margin-top: 120px;
  padding: 60px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--text-mute);
  font-size: 13px;
}

.site-footer a:hover { color: var(--color-primary); opacity: 1; }

/* =========================================================
   PAGE INTRO BLOCK
   ========================================================= */

.page-intro {
  padding: 180px var(--gutter) 60px;
  max-width: var(--container);
  margin: 0 auto;
}

.page-intro .eyebrow { display: block; margin-bottom: 18px; }

/* =========================================================
   CATEGORY FILTERS
   ========================================================= */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 30px var(--gutter) 40px;
  max-width: var(--container);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.filter-chip {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  transition: all .35s var(--ease);
}

.filter-chip:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}

.filter-chip.active {
  color: #ffffff;
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* =========================================================
   GRIDS — Cards & Tiles
   ========================================================= */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 40px var(--gutter) 80px;
  max-width: var(--container);
  margin: 0 auto;
}

.work-grid.dense {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.tile {
  position: relative;
  display: block;
  background:
    linear-gradient(180deg, var(--sheen-card) 0%, rgba(255,255,255,0) 30%),
    var(--bg-card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .6s var(--ease-out), border-color .35s var(--ease), box-shadow .45s var(--ease);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.tile:hover {
  border-color: var(--secondary-line);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.tile .thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #e6e6e6, #cfcfcf);
}

.tile .thumb img,
.tile .thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile .meta {
  padding: 18px 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.tile .meta .title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.tile .meta .cat {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.tile .badge {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.55);
  color: var(--color-secondary);
  padding: 6px 10px;
  border: 1px solid var(--secondary-line);
  backdrop-filter: blur(6px);
}

/* Play icon for videos */
.tile.video .thumb::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  transform: translate(-50%, -50%) scale(0.9);
  background: rgba(255,255,255,0.92);
  clip-path: polygon(30% 22%, 30% 78%, 78% 50%);
  transition: transform .5s var(--ease-out), opacity .35s var(--ease);
  opacity: 0.85;
}

.tile.video:hover .thumb::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* PDF tile look */
.tile.pdf .thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(0deg, #131313 0 1px, transparent 1px 28px),
    linear-gradient(135deg, #1c1c1c, #0c0c0c);
}

.tile.pdf .doc {
  position: relative;
  width: 60%;
  aspect-ratio: 3 / 4;
  background: #f3f3f3;
  color: #111;
  padding: 14px 14px 16px;
  font-size: 8px;
  line-height: 1.6;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  transition: transform .8s var(--ease-out);
}

.tile.pdf:hover .doc { transform: translateY(-6px) rotate(-1deg); }

.tile.pdf .doc::before {
  content: '';
  position: absolute; top: 0; right: 0;
  border-style: solid;
  border-width: 0 14px 14px 0;
  border-color: transparent #d6d6d6 transparent transparent;
}

.tile.pdf .doc-lines {
  margin-top: 10px;
  display: grid;
  gap: 4px;
}

.tile.pdf .doc-lines span {
  display: block;
  height: 3px;
  background: #c9c9c9;
  border-radius: 2px;
}

.tile.pdf .doc-lines span:nth-child(odd) { width: 92%; }
.tile.pdf .doc-lines span:nth-child(even) { width: 75%; }
.tile.pdf .doc-lines span:nth-child(3) { width: 58%; }
.tile.pdf .doc-lines span:nth-child(7) { background: #2a2a2a; height: 5px; width: 40%; margin-top: 6px; }

.tile.pdf .doc-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #111;
  text-transform: uppercase;
}

/* =========================================================
   LIGHTBOX (CSS-only via :target)
   ========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5,5,5,0.94);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease);
  padding: 60px 24px;
}

.lightbox:target {
  opacity: 1;
  pointer-events: auto;
}

.lightbox .lb-inner {
  position: relative;
  max-width: 1100px;
  width: 100%;
  max-height: 86vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img,
.lightbox video {
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border: 1px solid var(--line-strong);
}

.lightbox .lb-close,
.lightbox .lb-back {
  position: absolute;
  top: -44px; right: 0;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-soft);
  border: 1px solid var(--line-strong);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.5);
}

.lightbox .lb-close:hover { color: var(--color-primary); border-color: var(--color-primary); background: var(--primary-soft); }

.lightbox .lb-caption {
  position: absolute;
  bottom: -40px; left: 0;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* =========================================================
   CONTACT / FOOTER BLOCK
   ========================================================= */

.contact-block {
  position: relative;
  padding: 120px var(--gutter) 80px;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

/* Decorative faded background images */
.contact-deco {
  position: absolute;
  object-fit: cover;
  pointer-events: none;
  opacity: 0.5;
  filter: grayscale(100%);
  z-index: 0;
}

.contact-deco--left {
  top: 0;
  left: calc(var(--gutter) - 20px);
  width: 260px;
  height: 360px;
  object-position: center;
}

.contact-deco--right {
  top: 220px;
  right: calc(var(--gutter) - 20px);
  width: 220px;
  height: 320px;
  object-position: center top;
}

/* Keep text content above the deco images */
.contact-block > div { position: relative; z-index: 1; }

@media (max-width: 720px) {
  .contact-block { grid-template-columns: 1fr; gap: 40px; }
}

.contact-block h2 {
  font-size: clamp(38px, 6vw, 80px);
  font-weight: 200;
  letter-spacing: -0.03em;
  line-height: 1;
}

.contact-block h2 a {
  border-bottom: 1px solid var(--line-strong);
  transition: border-color .4s var(--ease), color .4s var(--ease);
}

.contact-block h2 a:hover { border-color: var(--color-primary); color: var(--color-primary); opacity: 1; }

.contact-meta {
  display: grid;
  gap: 28px;
  align-content: end;
}

.contact-meta .row .label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 6px;
}

.contact-meta .row .value { font-size: 15px; color: var(--text); }

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Slight stagger when grids reveal */
.work-grid .tile.reveal { transition-delay: calc(var(--i, 0) * 60ms); }

/* =========================================================
   UTILITIES
   ========================================================= */

.hide { display: none !important; }
.center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
