/* ============================================================
   FONT FACES — locally hosted
   ============================================================ */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/cg-300-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/cg-300-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/cg-300-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/cg-300-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cg-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cg-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cg-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cg-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cg-500-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/cg-500-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/sm-400-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/sm-400-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/sm-400-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/sm-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/sm-700-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/sm-700-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --bg:      #000000;
  --bg2:     #0d0d0d;
  --fg:      #ffffff;
  --fg-dim:  #888888;
  --accent:  #ffffff;
  --border:  rgba(255,255,255,0.1);
  --serif:   'Cormorant Garamond', Georgia, serif;
  --mono:    'Space Mono', monospace;
  --max-w:   1400px;
  --pad-x:   60px;
  --pad-y:   120px;
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--serif);
  cursor: none;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: none; font-family: inherit; }
ul, ol { list-style: none; }
iframe { border: none; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
#cur {
  position: fixed;
  top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--fg);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.15s var(--transition), height 0.15s var(--transition), background 0.15s;
  will-change: transform;
}
#curR {
  position: fixed;
  top: 0; left: 0;
  width: 30px; height: 30px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--transition), height 0.3s var(--transition), border-color 0.3s;
  will-change: transform;
}
body.cursor-hover #curR { width: 54px; height: 54px; border-color: rgba(255,255,255,0.9); }
@media (pointer: coarse) { #cur, #curR { display: none; } body { cursor: auto; } button { cursor: pointer; } }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 400;
  padding: 24px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.nav.scrolled {
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav-logo-name {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
}
.nav-logo-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.nav-links-desktop {
  display: flex;
  gap: 40px;
  align-items: center;
}
.nav-links-desktop a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  position: relative;
  transition: color 0.3s ease;
}
.nav-links-desktop a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--fg);
  transition: width 0.3s ease;
}
.nav-links-desktop a:hover { color: var(--fg); }
.nav-links-desktop a:hover::after { width: 100%; }

/* Nav links as list */
.nav-links-desktop { list-style: none; }

/* ── Mobile toggle button — "Menu" text ── */
.nav-menu-toggle {
  display: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #fff;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity .2s;
  position: relative;
  z-index: 400;
}
.nav-menu-toggle:hover { opacity: .65; }

/* ── Full-screen overlay ── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 350;
  background: #000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Nav links inside overlay ── */
.mobile-overlay-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.mobile-nav-item {
  font-family: var(--serif);
  font-size: clamp(44px, 11vw, 72px);
  font-weight: 300;
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  line-height: 1.15;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease, color .25s;
}
.mobile-overlay.open .mobile-nav-item:nth-child(1) {
  opacity: 1; transform: translateY(0);
  transition-delay: .05s;
}
.mobile-overlay.open .mobile-nav-item:nth-child(2) {
  opacity: 1; transform: translateY(0);
  transition-delay: .13s;
}
.mobile-overlay.open .mobile-nav-item:nth-child(3) {
  opacity: 1; transform: translateY(0);
  transition-delay: .21s;
}
.mobile-overlay.open .mobile-nav-item:nth-child(4) {
  opacity: 1; transform: translateY(0);
  transition-delay: .29s;
}
.mobile-nav-item:hover { color: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 0;
  pointer-events: none;
}

/* Gradient overlay — ensures text legibility */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45) 0%,
    rgba(0,0,0,0.20) 40%,
    rgba(0,0,0,0.65) 100%
  );
  pointer-events: none;
}

/* Film grain texture overlay */
.grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 var(--pad-x);
  width: 100%;
}
.hero-logo {
  width: 90px !important;
  max-width: 90px !important;
  height: auto !important;
  display: block;
  margin: 0 auto 28px auto;
  mix-blend-mode: screen;
  user-select: none;
  -webkit-user-drag: none;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeUp .9s .3s forwards;
}
.hero-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(32px, 4.5vw, 58px);
  letter-spacing: 0.12em;
  line-height: 1.1;
  color: #fff;
  opacity: 0;
  animation: fadeUp .9s .5s forwards;
}
.hero-rule {
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,.4);
  margin: 20px auto;
  opacity: 0;
  animation: fadeUp .9s .7s forwards;
}
.hero-sub {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp .9s .9s forwards;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.8s ease forwards 1.1s;
}
.btn-outline {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 12px 24px;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--fg);
}

/* Scroll cue */
.hero-scroll {
  position: absolute;
  bottom: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  opacity: 0;
  animation: fadeUp .9s 1.5s forwards;
}

/* Bottom video fade overlay */
.hero-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 40%,
    #000 100%
  );
  z-index: 10;
  pointer-events: none;
}
.hero-scroll-line {
  width: 1px; height: 38px;
  background: linear-gradient(to bottom, var(--fg), transparent);
  animation: scrollPulse 2s ease infinite;
}
.hero-scroll-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

/* ============================================================
   SECTION BASE
   ============================================================ */
.section {
  padding: var(--pad-y) var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-full { max-width: none; padding-left: 0; padding-right: 0; }
.section-full .section-header { padding: 0 var(--pad-x); }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 60px;
}
.section-number {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--fg-dim);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  flex-shrink: 0;
}
.section-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Alternating bg */
.section-alt { background: var(--bg2); }

/* ============================================================
   WORKS / GRID
   ============================================================ */
.works-outer { background: var(--bg); }

/* ── Filter bar ─────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 var(--pad-x);
  margin-bottom: 40px;
}

.filter-btn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 18px;
  cursor: pointer;
  transition: color .25s, background .25s, border-color .25s;
}
.filter-btn:hover  { color: var(--fg); border-color: rgba(255,255,255,.3); }
.filter-btn.active { color: #000; background: #fff; border-color: #fff; }

/* ── Works grid ─────────────────────────────────────────────── */
.works-grid {
  position: relative;
  width: 100%;
  padding-bottom: var(--pad-y);
  min-height: 200px;
}

/* ── Work card ──────────────────────────────────────────────── */
.work-card {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  overflow: hidden;
  cursor: pointer;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity .35s ease, transform .35s ease, left .4s cubic-bezier(0.4, 0, 0.2, 1), top .4s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card.card-leaving {
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  pointer-events: none;
}

.work-card.card-entering {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
}

.work-card.filtered-out {
  display: none;
}
.work-card-img-wrap {
  position: relative;
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.work-card-blur {
  position: absolute;
  top: -20px; left: -20px; right: -20px; bottom: -20px;
  background-size: cover;
  background-position: center;
  filter: blur(25px) brightness(0.4);
  z-index: 0;
  transition: transform .7s cubic-bezier(.4, 0, .2, 1);
}

.work-card img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  display: block;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
  transition: transform .7s cubic-bezier(.4, 0, .2, 1);
}

.work-card:hover .work-card-blur,
.work-card:focus-within .work-card-blur {
  transform: scale(1.05);
}
.work-card:hover img { transform: scale(1.06); }

.work-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.88) 0%,
    rgba(0,0,0,.1)  55%,
    transparent     100%
  );
  opacity: 0;
  transition: opacity .4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 20px;
}
.work-card:hover .work-card-overlay { opacity: 1; }

.work-card.coming-soon { cursor: default; }
.work-card.coming-soon .work-card-overlay {
  opacity: 1;
  background: rgba(0,0,0,.55);
}
.coming-soon-label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 6px;
}

.play-btn {
  font-size: 22px;
  color: rgba(255,255,255,.85);
  margin-bottom: 8px;
  display: block;
  transition: transform .3s, color .3s;
}
.work-card:hover .play-btn { transform: scale(1.2); color: #fff; }

.work-card-title {
  font-family: var(--serif);
  font-size: clamp(15px, 1.6vw, 20px);
  font-weight: 400;
  letter-spacing: .02em;
  color: #fff;
  margin-bottom: 7px;
  line-height: 1.2;
}

.work-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}
.work-card-tag {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.work-card-tag + .work-card-tag::before {
  content: ' · ';
  color: rgba(255,255,255,.3);
}

/* ── Video modal ────────────────────────────────────────────── */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.95);
  cursor: pointer;
}
.modal-inner {
  position: relative;
  z-index: 1;
  width: min(900px, 94vw);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-close {
  position: absolute;
  top: -44px; right: 0;
  font-size: 30px;
  line-height: 1;
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  transition: color .3s;
  font-family: var(--mono);
}
.modal-close:hover { color: #fff; }

.modal-embed-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.modal-inner.is-vertical {
  width: calc(min(85vh * 9 / 16, 94vw));
}
.modal-inner.is-vertical .modal-embed-wrap {
  padding-top: 0;
  aspect-ratio: 9 / 16;
}
.modal-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.modal-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 300;
  color: rgba(255,255,255,.7);
  letter-spacing: .03em;
  margin: 0;
}

/* ── PDF modal ──────────────────────────────────────────────── */
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pdf-modal[hidden] { display: none; }

.pdf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.92);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: pdfFadeIn .25s ease forwards;
}

.pdf-modal-inner {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  height: min(90vh, 1100px);
  display: flex;
  flex-direction: column;
  background: #111;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 40px 120px rgba(0,0,0,.9);
  animation: pdfSlideUp .3s cubic-bezier(.4,0,.2,1) forwards;
  overflow: hidden;
}

.pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}

.pdf-modal-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0;
}

.pdf-modal-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.35);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color .2s;
  font-family: var(--mono);
}
.pdf-modal-close:hover { color: #fff; }

.pdf-modal-body {
  flex: 1;
  overflow: hidden;
}

.pdf-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@keyframes pdfFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pdfSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}
.about-portrait-wrap {
  position: sticky;
  top: 100px;
}
.about-portrait {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(20%);
}
.about-caption {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 12px;
}
.about-text p {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
}
.about-text p a {
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.2s;
}
.about-text p a:hover { border-color: var(--fg); }
.about-text p:first-child::first-letter {
  font-size: 4.2em;
  font-weight: 300;
  float: left;
  line-height: 0.75;
  margin: 4px 12px 0 0;
  color: var(--fg);
}
.about-credits {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 32px;
}
.about-credits dt {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  align-self: start;
  padding-top: 2px;
}
.about-credits dd {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
}
.about-credits dd a {
  border-bottom: 1px solid rgba(255,255,255,0.25);
  transition: border-color 0.2s;
}
.about-credits dd a:hover { border-color: var(--fg); }

/* ============================================================
   AWARDS — timeline cards (always-visible)
   ============================================================ */
.awards-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.award-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 40px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  cursor: default;
  transition: border-color .3s;
}
.award-card:last-child { border-bottom: 1px solid var(--border); }
.award-card:hover { border-color: rgba(255,255,255,.18); }
.award-card:hover .award-card-title { color: #fff; }

.award-card-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 3px;
}

.award-card-date {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.award-card-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid;
  width: fit-content;
  opacity: 0.4;
  transition: opacity .3s ease, background .3s ease, color .3s ease, border-color .3s ease;
}

.award-badge--winner       { color: #fff; border-color: rgba(255,255,255,.5); }
.award-badge--selection    { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.25); }
.award-badge--nominee      { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.25); }
.award-badge--finalist     { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.25); }
.award-badge--certification{ color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.25); }

.award-card:hover .award-badge--winner {
  opacity: 1;
  background: #fff;
  color: #000;
  border-color: #fff;
}
.award-card:hover .award-badge--selection {
  opacity: 1;
  color: #fff;
  border-color: #fff;
}
.award-card:hover .award-badge--nominee {
  opacity: 1;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.award-card:hover .award-badge--finalist {
  opacity: 1;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.award-card:hover .award-badge--certification {
  opacity: 1;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}

.award-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.award-card-title {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--fg);
  line-height: 1.2;
}

.award-card-category {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 4px;
}

.award-card-desc {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

.award-card-link {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 1px;
  width: fit-content;
  margin-top: 4px;
  transition: color 0.3s, border-color 0.3s;
}
.award-card-link:hover { color: var(--fg); border-color: var(--fg); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-headline {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 40px;
}
.contact-identity {
  margin-bottom: 40px;
}
.contact-identity p {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
.contact-socials {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}
.contact-socials a {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  position: relative;
  transition: color 0.2s;
}
.contact-socials a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--fg);
  transition: width 0.3s ease;
}
.contact-socials a:hover { color: var(--fg); }
.contact-socials a:hover::after { width: 100%; }

.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 300;
  padding: 10px 0;
  width: 100%;
  transition: border-color 0.2s;
  outline: none;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--fg); }
.form-error {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,80,80,0.9);
  display: none;
  margin-top: 4px;
}
.form-group.has-error .form-error { display: block; }
.form-group.has-error input,
.form-group.has-error textarea { border-bottom-color: rgba(255,80,80,0.7); }
.btn-submit {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 14px 32px;
  align-self: flex-start;
  transition: background 0.3s ease, border-color 0.3s;
  margin-top: 8px;
}
.btn-submit:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--fg);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  padding: 32px var(--pad-x);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--fg); }


/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  :root { --pad-x: 40px; --pad-y: 90px; }
  /* .works-grid { grid-template-columns: repeat(2, 1fr); } JS handles this now */
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-portrait-wrap { position: static; }
  .about-portrait { max-width: 320px; }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  :root { --pad-x: 24px; --pad-y: 72px; }
  body { cursor: auto; }
  #cur, #curR { display: none; }
  .nav-links-desktop { display: none; }
  .nav-menu-toggle   { display: block; }
  /* .works-grid { grid-template-columns: 1fr; } JS handles this now */
  .hero-logo { width: 90px !important; max-width: 90px !important; }
  .hero-name { letter-spacing: 0.02em; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-scroll { bottom: 80px; }
  .award-card { grid-template-columns: 1fr; gap: 12px; padding: 24px 0; }
  .award-card-left { flex-direction: row; align-items: center; gap: 12px; }
  footer { 
    flex-direction: column; 
    gap: 32px; 
    text-align: center; 
    padding: 48px var(--pad-x) 32px; 
  }
  .footer-links { 
    flex-direction: column; 
    align-items: center; 
    gap: 20px; 
  }
  .footer-copy { 
    order: 3; 
    margin-top: 16px; 
    opacity: 0.6; 
  }
  .contact-grid { gap: 48px; }
}

/* ============================================================
   RESPONSIVE — 600px
   ============================================================ */
@media (max-width: 600px) {
  .hero { height: 90vh; }
  .hero-scroll { display: none; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  :root { --pad-x: 16px; }

  .award-date { display: none; }

  .hero-dots { right: 16px; }
  .nav { padding: 18px 16px; }
  .filter-bar { gap: 6px; }
  .filter-btn { font-size: 9px; padding: 6px 12px; }
  .lang-switcher { display: none; }
}

/* ================================================================
   LANG SWITCHER
   ================================================================ */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-btn {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
  transition: color .25s;
}
.lang-btn:hover,
.lang-btn.active { color: var(--fg); }
.lang-sep { color: var(--border); font-size: 10px; }

/* ================================================================
   AWARD BADGE — additional status aliases for dynamic rendering
   ================================================================ */
.award-badge--official-selection { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.25); }
.award-badge--runner-up          { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.25); }
.award-badge--honorable-mention  { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.25); }

.award-card:hover .award-badge--official-selection,
.award-card:hover .award-badge--runner-up,
.award-card:hover .award-badge--honorable-mention {
  opacity: 1;
  color: #fff;
  border-color: rgba(255,255,255,.7);
}

/* -- Trainings -- */
.trainings-container {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.trainings-title {
  font-family: var(--f-title);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--c-text);
}
.trainings-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.training-item {
  display: block;
}
.training-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  text-decoration: none;
  color: var(--c-text);
  transition: all 0.3s ease;
}
.training-link:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
.training-title {
  font-size: 1.1rem;
  font-weight: 500;
  flex-grow: 1;
}
.training-year {
  color: var(--c-muted);
  font-size: 0.9rem;
  margin: 0 1rem;
}
.training-icon {
  color: var(--c-muted);
  transition: color 0.3s ease;
}
.training-link:hover .training-icon {
  color: var(--c-text);
}

/* PDF-btn variant: reset native button styles so it looks like the link */
.training-pdf-btn {
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  color: inherit;
  text-align: left;
  border-radius: 8px;
}
.training-pdf-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* -- Certificate Viewer -- */
.cert-viewer {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  gap: 1rem;
  padding: 0 var(--pad-x);
}
.cert-header {
  display: flex;
  justify-content: flex-start;
}


.training-static {
  cursor: default;
}
.training-static:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.05);
  transform: none;
}

