/* =============================================================
   RESET & VARIABEL
   ============================================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --max-width: 1180px;
  --radius: 0px;
  --radius-sm: 0px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.45s var(--ease);

  --accent: #c8f54e;
  --accent-ink: #14160c; /* teks di atas accent */
}

[data-theme="dark"] {
  --bg: #0a0a0b;
  --bg-alt: #101012;
  --surface: #15151a;
  --surface-2: #1d1d24;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f4f1;
  --text-muted: #8d8d96;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
  --grain-opacity: 0.05;
}

[data-theme="light"] {
  --bg: #f3f1ea;
  --bg-alt: #eae7dd;
  --surface: #fdfcf8;
  --surface-2: #efece3;
  --border: rgba(20, 18, 12, 0.12);
  --border-strong: rgba(20, 18, 12, 0.2);
  --text: #16150f;
  --text-muted: #6c6a5e;
  --shadow: 0 30px 70px -35px rgba(40, 35, 20, 0.4);
  --grain-opacity: 0.035;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}

a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
em {
  font-style: italic;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* =============================================================
   GRAIN + SCROLL PROGRESS + CURSOR
   ============================================================= */
.grain {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s linear;
}

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 400;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.cursor-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
}
.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-strong);
  transition: width 0.25s var(--ease), height 0.25s var(--ease),
    background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.cursor-ring.grow {
  width: 64px;
  height: 64px;
  background: var(--accent-soft, rgba(200, 245, 78, 0.12));
  border-color: var(--accent);
}
body.cursor-on .cursor-dot,
body.cursor-on .cursor-ring {
  opacity: 1;
}

/* =============================================================
   NAVBAR
   ============================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 22px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  padding: 13px 0;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.brand span {
  color: var(--accent);
  font-size: 0.9rem;
}
.nav-links {
  display: flex;
  gap: 36px;
}
.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--text);
}
.nav-link.active::after {
  width: 100%;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.theme-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: var(--transition);
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.theme-icon {
  position: absolute;
  font-size: 1.1rem;
  transition: transform var(--transition), opacity var(--transition);
}
[data-theme="dark"] .sun {
  transform: translateY(40px);
  opacity: 0;
}
[data-theme="light"] .moon {
  transform: translateY(-40px);
  opacity: 0;
}
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 50%;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: var(--transition);
}
.menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -10px var(--accent);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 90vw;
  height: 70vh;
  display: none; /* flat: no gradient glow */
  z-index: 0;
}
@keyframes floatGlow {
  to {
    transform: translateX(-50%) translateY(30px) scale(1.08);
  }
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 70px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--surface);
  margin-bottom: 28px;
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent);
  }
  70% {
    box-shadow: 0 0 0 9px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.8rem, 9vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -2px;
  margin-bottom: 28px;
}
.hero-title .line {
  display: block;
}
.hero-title em {
  color: var(--accent);
  font-weight: 500;
}
.rotator {
  font-style: italic;
  border-bottom: 3px solid var(--accent);
  transition: opacity 0.25s ease;
}
.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 40px;
  border: 1.5px solid var(--text-muted);
  border-radius: 0;
  display: grid;
  place-items: start center;
  padding-top: 8px;
  z-index: 1;
}
.scroll-down span {
  width: 4px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 0;
  animation: scrollDot 1.6s infinite;
}
@keyframes scrollDot {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
  }
  80% {
    opacity: 0;
    transform: translateY(13px);
  }
  100% {
    opacity: 0;
  }
}

/* =============================================================
   MARQUEE
   ============================================================= */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  background: var(--bg-alt);
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 0;
  animation: scrollX 26s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.5px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  gap: 28px;
  color: var(--text);
}
.marquee-item::after {
  content: "✦";
  color: var(--accent);
  font-size: 0.8em;
}
@keyframes scrollX {
  to {
    transform: translateX(-50%);
  }
}

/* =============================================================
   SECTION DASAR
   ============================================================= */
.section {
  padding: 120px 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-head {
  margin-bottom: 60px;
}
.section-index {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: -1.5px;
  margin-top: 8px;
  line-height: 1;
}
.section-sub {
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 520px;
  font-size: 1.05rem;
}

/* =============================================================
   ABOUT
   ============================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 34px;
  letter-spacing: -0.4px;
}
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.skill-chip {
  padding: 9px 17px;
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 0.88rem;
  font-weight: 500;
  background: var(--surface);
  transition: var(--transition);
}
.skill-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.about-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 110px;
}
.avatar {
  width: 92px;
  height: 92px;
  border-radius: 0;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 28px;
  background-size: cover;
  background-position: center;
}
.stats {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* =============================================================
   FILTERS
   ============================================================= */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 22px;
}
.filter-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: color var(--transition);
}
.filter-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -23px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.filter-btn:hover {
  color: var(--text);
}
.filter-btn.active {
  color: var(--text);
}
.filter-btn.active::after {
  width: 100%;
}

/* =============================================================
   WORK LIST (baris ala studio)
   ============================================================= */
.work-list {
  display: flex;
  flex-direction: column;
}
.work-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 34px 8px;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: padding var(--transition), background var(--transition);
}
.work-row:hover {
  padding-left: 24px;
  padding-right: 24px;
  background: var(--surface);
}
.work-row-index {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-muted);
}
.work-row-main {
  min-width: 0;
}
.work-row-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -1px;
  line-height: 1.05;
  transition: color var(--transition);
}
.work-row:hover .work-row-title {
  color: var(--accent);
}
.work-row-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-top: 8px;
  max-width: 460px;
}
.work-row-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.work-tag {
  font-size: 0.74rem;
  padding: 4px 11px;
  border-radius: 0;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.work-row-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  white-space: nowrap;
}
.work-row-cat {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.work-row-year {
  font-size: 0.9rem;
  color: var(--text-muted);
}
/* gambar inline (mobile) */
.work-row-thumb-inline {
  display: none;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  margin-top: 18px;
  grid-column: 1 / -1;
  position: relative;
}
.work-row-thumb-inline span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.2rem;
  text-align: center;
  padding: 16px;
}

/* floating preview (desktop) */
.work-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  box-shadow: var(--shadow);
}
.work-preview.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.work-preview-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.3rem;
  text-align: center;
  padding: 18px;
}

/* =============================================================
   FILM RAIL (horizontal scroll)
   ============================================================= */
.film-rail-wrap {
  margin-top: 8px;
}
.film-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 8px 28px 28px;
  scroll-snap-type: x mandatory;
  max-width: calc(var(--max-width) + 56px);
  margin: 0 auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  cursor: grab;
}
.film-rail.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.film-rail::-webkit-scrollbar {
  height: 6px;
}
.film-rail::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 0;
}
.film-card {
  flex: 0 0 auto;
  width: 210px;
  scroll-snap-align: start;
  transition: transform var(--transition);
}
.film-card:hover {
  transform: translateY(-8px);
}
.film-poster {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  font-family: var(--font-display);
  font-weight: 500;
  color: #fff;
  background-size: cover;
  background-position: center;
  position: relative;
  border: 1px solid var(--border);
  overflow: hidden;
}
.film-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  display: none; /* flat: no gradient overlay */
}
.film-poster .film-rating-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.6);
  color: #ffd24a;
  font-size: 0.82rem;
  padding: 4px 10px;
  border-radius: 0;
  font-weight: 600;
  backdrop-filter: blur(4px);
  font-family: var(--font-body);
}
.film-poster span.film-poster-title {
  position: relative;
  z-index: 1;
}
.film-info {
  padding: 14px 4px 0;
}
.film-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.2;
}
.film-meta {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 3px;
}
.film-stars {
  color: #ffd24a;
  font-size: 0.9rem;
  margin-top: 7px;
  letter-spacing: 1px;
}
.film-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 7px;
}

/* =============================================================
   ARTICLE LIST
   ============================================================= */
.article-list {
  display: flex;
  flex-direction: column;
}
.article-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 8px;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.article-card:hover {
  padding-left: 22px;
  background: var(--surface);
}
.article-main {
  flex: 1;
  min-width: 0;
}
.article-tag {
  display: inline-block;
  font-size: 0.74rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.article-title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 400;
  letter-spacing: -0.6px;
  line-height: 1.15;
  transition: color var(--transition);
}
.article-card:hover .article-title {
  color: var(--accent);
}
.article-excerpt {
  color: var(--text-muted);
  font-size: 0.97rem;
  margin-top: 10px;
  max-width: 680px;
}
.article-meta {
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: 14px;
  display: flex;
  gap: 16px;
}
.article-arrow {
  font-size: 1.7rem;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}
.article-card:hover .article-arrow {
  color: var(--accent);
  transform: translate(5px, -5px);
}
.writing-cta {
  margin-top: 48px;
}

/* =============================================================
   CONTACT
   ============================================================= */
.contact {
  text-align: center;
}
.contact-inner {
  max-width: 760px;
  margin: 0 auto;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  font-weight: 400;
  letter-spacing: -2px;
  margin: 14px 0 26px;
  line-height: 1;
}
.contact-title em {
  color: var(--accent);
}
.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 2.2rem);
  font-style: italic;
  border-bottom: 2px solid var(--border-strong);
  padding-bottom: 4px;
  transition: var(--transition);
}
.contact-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.contact-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin: 28px 0 0;
}
.socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border: 1px solid var(--border);
  border-radius: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-link:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.back-top:hover {
  color: var(--accent);
}

/* =============================================================
   REVEAL
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .cursor-dot,
  .cursor-ring,
  .work-preview {
    display: none !important;
  }
  .menu-btn {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(80vw, 330px);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    background: var(--surface);
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 90;
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-link {
    font-size: 1.5rem;
    font-family: var(--font-display);
  }
  .section {
    padding: 84px 0;
  }
  .work-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 26px 4px;
  }
  .work-row:hover {
    padding-left: 4px;
    padding-right: 4px;
  }
  .work-row-index {
    display: none;
  }
  .work-row-meta {
    text-align: left;
    flex-direction: row;
    gap: 14px;
    margin-top: 8px;
  }
  .work-row-thumb-inline {
    display: block;
  }
  .article-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .article-arrow {
    align-self: flex-end;
  }
  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}


/* =============================================================
   MULTI-PAGE: top spacing for sub-pages (clear fixed navbar)
   ============================================================= */
main > .section:first-of-type {
  padding-top: 150px;
}

/* =============================================================
   FILMS INDEX PAGE (titles only, searchable + sortable)
   ============================================================= */
.films-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.films-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.film-search {
  width: min(320px, 70vw);
  padding: 12px 18px;
  border-radius: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
}
.film-search::placeholder {
  color: var(--text-muted);
}
.film-search:focus {
  border-color: var(--accent);
}
.film-sort {
  padding: 12px 16px;
  border-radius: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition);
}
.film-sort:focus,
.film-sort:hover {
  border-color: var(--accent);
}
.film-count {
  font-size: 0.95rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.film-count b {
  color: var(--text);
  font-weight: 600;
}

.film-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0 40px;
}
.film-item {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: -0.2px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  cursor: default;
  transition: color var(--transition), padding-left var(--transition);
}
.film-item:hover {
  color: var(--accent);
  padding-left: 12px;
}
.film-empty {
  color: var(--text-muted);
  padding: 20px 0;
}

@media (max-width: 720px) {
  main > .section:first-of-type {
    padding-top: 120px;
  }
  .films-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .film-search {
    width: 100%;
  }
  .film-index {
    grid-template-columns: 1fr;
    gap: 0;
  }
}


/* =============================================================
   WORK — ALBUM (masonry) + LIGHTBOX
   ============================================================= */
.album-grid {
  column-count: 3;
  column-gap: 20px;
}
@media (max-width: 1100px) {
  .album-grid {
    column-count: 2;
  }
}
@media (max-width: 680px) {
  .album-grid {
    column-count: 1;
  }
}

.album-item {
  break-inside: avoid;
  margin: 0 0 20px;
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  display: block;
}
.album-item img {
  width: 100%;
  height: auto; /* keeps the image's natural aspect ratio */
  display: block;
  transition: transform 0.6s var(--ease);
}
.album-item:hover img {
  transform: scale(1.04);
}
.album-ph {
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-align: center;
  padding: 24px;
}
.album-cap {
  position: static; /* sits below the image, not over it */
  padding: 14px 16px;
  background: var(--accent);
}
.album-cap-cat {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-ink);
  font-weight: 600;
}
.album-cap-title {
  display: block;
  font-family: var(--font-display);
  color: var(--accent-ink);
  font-size: 1.05rem;
  margin-top: 2px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.93);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  backdrop-filter: blur(2px);
}
.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}
.lb-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lb-figure img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.85);
}
.lb-caption {
  color: #e9e9ea;
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-align: center;
  max-width: 80vw;
}
.lb-close,
.lb-nav {
  position: fixed;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.3s var(--ease);
  backdrop-filter: blur(6px);
}
.lb-close:hover,
.lb-nav:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.lb-close {
  top: 22px;
  right: 26px;
}
.lb-nav {
  top: 50%;
  transform: translateY(-50%);
}
.lb-prev {
  left: 24px;
}
.lb-next {
  right: 24px;
}
@media (max-width: 680px) {
  .lb-nav {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
  .lb-prev {
    left: 10px;
  }
  .lb-next {
    right: 10px;
  }
}

/* ---- Collection (album-inside-a-tile) ---- */
.album-item.is-collection {
  cursor: pointer;
}
.album-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: 0.3s var(--ease);
}
.album-item.is-collection:hover .album-badge {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.album-badge svg {
  width: 15px;
  height: 15px;
}

/* Collection overlay: an album opened as its own full view */
.collection {
  position: fixed;
  inset: 0;
  z-index: 480;
  background: var(--bg);
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.collection.open {
  opacity: 1;
  pointer-events: auto;
}
.col-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 116px 24px 90px;
}
.col-head {
  max-width: 720px;
  margin-bottom: 40px;
}
.col-kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent);
}
.col-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  letter-spacing: -1px;
  line-height: 1.05;
  margin: 0.18em 0 0.32em;
}
.col-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}
.col-close {
  position: fixed;
  top: 22px;
  right: 26px;
  z-index: 490;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.3s var(--ease);
  backdrop-filter: blur(6px);
}
.col-close:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
@media (max-width: 680px) {
  .col-inner {
    padding: 96px 16px 70px;
  }
  .col-close {
    top: 14px;
    right: 16px;
    width: 44px;
    height: 44px;
  }
}


/* =============================================================
   DENNIS-STYLE ENHANCEMENTS (homepage)
   Preloader, smooth scroll, masked reveal, magnetic, statement
   scroll-fill, selected works hover preview, page transition.
   ============================================================= */

:root {
  --accent-soft: rgba(200, 245, 78, 0.12);
}

/* ---- Lenis smooth scroll recommended styles ---- */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* ---- Prevent scroll while the preloader is active ---- */
body.preloading {
  overflow: hidden;
  height: 100vh;
}

/* =============================================================
   PRELOADER
   ============================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: transform 1s var(--ease);
  will-change: transform;
}
.preloader.done {
  transform: translateY(-100%);
}
.preloader-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  letter-spacing: -1.5px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 18px;
}
.preloader-word::before {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse 2s infinite;
}
.preloader-count {
  position: absolute;
  right: 6vw;
  bottom: 6vh;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.5rem, 14vw, 11rem);
  line-height: 0.85;
  letter-spacing: -3px;
  color: var(--text);
}
.preloader-count span {
  color: var(--accent);
}

/* =============================================================
   PAGE TRANSITION CURTAIN
   ============================================================= */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 550;
  background: var(--accent);
  transform: translateY(100%);
  pointer-events: none;
  display: grid;
  place-items: center;
}
.page-curtain.cover {
  transform: translateY(0);
  transition: transform 0.32s var(--ease);
}
.page-curtain .curtain-mark {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--accent-ink);
  opacity: 0;
  transform: scale(0.4) rotate(-30deg);
}
.page-curtain.cover .curtain-mark {
  opacity: 1;
  transform: none;
  transition: opacity 0.22s var(--ease) 0.05s, transform 0.26s var(--ease) 0.04s;
}

/* =============================================================
   HERO — masked line reveal + staggered intro
   (gated behind html.js so it still shows with JS disabled)
   ============================================================= */
.js .hero-title .line {
  overflow: hidden;
  padding-bottom: 0.06em;
}
.js .hero-title .line-inner {
  display: block;
  transform: translateY(115%);
  transition: transform 1.1s var(--ease);
}
.js body.ready .hero-title .line-inner {
  transform: none;
}

.js .hero .intro {
  opacity: 0;
  transform: translateY(34px);
}
.js body.ready .hero .intro {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js body.ready .hero .intro.d1 {
  transition-delay: 0.45s;
}
.js body.ready .hero .intro.d2 {
  transition-delay: 0.58s;
}
.js body.ready .hero .intro.d3 {
  transition-delay: 0.7s;
}
.js body.ready .hero .intro.d4 {
  transition-delay: 0.85s;
}

.hero-lead {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: end;
  margin-top: 38px;
}
.hero-lead-text {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  max-width: 460px;
}
.hero-lead-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: right;
}
.hero-lead-meta b {
  color: var(--text);
  font-weight: 600;
}
@media (max-width: 760px) {
  .hero-lead {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .hero-lead-meta {
    text-align: left;
  }
}

/* magnetic wrapper keeps layout while inner element moves */
.magnetic {
  display: inline-block;
  will-change: transform;
}

/* =============================================================
   STATEMENT — scroll-driven word fill
   ============================================================= */
.statement {
  padding: 130px 0;
}
.statement-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 30px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.statement-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
}
.statement-text {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  line-height: 1.28;
  letter-spacing: -1px;
  max-width: 16ch;
  margin: 0;
}
.statement-text .fw {
  color: var(--text-muted);
  transition: color 0.4s var(--ease);
}
.statement-text .fw.on {
  color: var(--text);
}
.statement-text .fw.accent.on {
  color: var(--accent);
}
@media (max-width: 760px) {
  .statement {
    padding: 90px 0;
  }
  .statement-text {
    max-width: none;
  }
}

/* =============================================================
   SELECTED WORKS (homepage teaser, reuses .work-row styling)
   ============================================================= */
.selected-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.selected-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}
.selected-link:hover {
  color: var(--accent);
}
.work-row.work-row-link {
  text-decoration: none;
}

/* =============================================================
   CONTACT CTA (homepage footer-call)
   ============================================================= */
.cta {
  padding: 140px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 60vh;
  display: none; /* flat: no gradient glow */
  z-index: 0;
}
.cta-inner {
  position: relative;
  z-index: 1;
}
.cta-eyebrow {
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -2.5px;
  margin: 18px 0 40px;
}
.cta-title em {
  color: var(--accent);
}
.cta-email {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.6vw, 2.3rem);
  font-style: italic;
  border-bottom: 2px solid var(--border-strong);
  padding-bottom: 4px;
  transition: var(--transition);
}
.cta-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .preloader {
    display: none !important;
  }
  .page-curtain {
    display: none !important;
  }
}
