/* =========================================================
   SWISSLEO — Portfolio
   Style: Cinematic dark · Apple-like · Editorial
   ========================================================= */

:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --surface: #161618;
  --surface-2: #1c1c20;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f3f3f5;
  --muted: #8a8a92;
  --muted-2: #5b5b62;
  --accent: #e63946;       /* Swiss touch */
  --accent-soft: rgba(230, 57, 70, 0.18);
  --grad-1: radial-gradient(1200px 600px at 80% -10%, rgba(230, 57, 70, 0.12), transparent 60%);
  --grad-2: radial-gradient(900px 500px at 0% 30%, rgba(120, 130, 200, 0.08), transparent 60%);
  --shadow-soft: 0 30px 80px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-image: var(--grad-1), var(--grad-2);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; cursor: pointer; font: inherit; }
img { max-width: 100%; display: block; }
.italic { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 400; }

/* =========================================================
   Custom cursor
   ========================================================= */
.cursor, .cursor-dot {
  position: fixed; pointer-events: none; z-index: 9999;
  top: 0; left: 0; transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor {
  width: 36px; height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.18s var(--ease);
}
.cursor-dot { width: 4px; height: 4px; background: #fff; border-radius: 50%; }
.cursor.is-hover { width: 64px; height: 64px; border-color: rgba(255, 255, 255, 0.85); }

@media (max-width: 900px) { .cursor, .cursor-dot { display: none; } body, * { cursor: auto !important; } }

/* =========================================================
   Loader
   ========================================================= */
.loader {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.loader-text {
  font-size: 14px; letter-spacing: 0.5em; color: var(--muted);
  text-transform: uppercase;
}
.loader-bar { width: 220px; height: 1px; background: var(--line); overflow: hidden; }
.loader-bar-fill { height: 100%; width: 0%; background: var(--text); transition: width 1.4s var(--ease); }

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
  z-index: 100;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
  padding: 14px 48px;
}
.nav-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: -0.01em; }
.nav-cross {
  display: inline-flex; width: 22px; height: 22px;
  align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  font-weight: 700; border-radius: 4px;
  transform: rotate(0deg); transition: transform 0.6s var(--ease);
}
.nav-brand:hover .nav-cross { transform: rotate(90deg); }
.nav-name { font-size: 15px; }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-link {
  font-size: 13px; color: var(--muted); letter-spacing: 0.02em;
  position: relative; padding: 8px 0;
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 4px;
  height: 1px; background: var(--text);
  transition: right 0.4s var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { right: 0; }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--text); color: var(--bg);
  border-radius: 999px; font-size: 13px; font-weight: 500;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); background: #fff; }

@media (max-width: 800px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-cta span { display: none; }
  .nav-cta { padding: 8px; }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 48px 160px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0.85;
}
.hero-content { position: relative; z-index: 2; max-width: 1100px; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px; color: var(--muted); letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(6px);
  margin-bottom: 30px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: 0.4 } }

.hero-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(48px, 9vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 36px;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); }
.hero-title.is-in .word { transform: translateY(0); }
.hero-title .line:nth-child(2) .word { transition-delay: 0.06s; }
.hero-title .line:nth-child(3) .word { transition-delay: 0.12s; }
.hero-title .line:nth-child(4) .word { transition-delay: 0.18s; }
.hero-title .italic { color: var(--accent); }

.hero-sub {
  max-width: 540px;
  font-size: 17px; color: var(--muted);
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn-primary {
  background: var(--text); color: var(--bg);
}
.btn-primary:hover { transform: translateY(-2px); background: #fff; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--text); transform: translateY(-2px); }

.hero-marquee {
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  z-index: 3;
}
.marquee-track {
  display: flex; gap: 50px; white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-size: 13px; color: var(--muted);
  letter-spacing: 0.18em; text-transform: uppercase;
}
.marquee-track .sep { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }

.scroll-indicator {
  position: absolute; bottom: 40px; left: 48px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; color: var(--muted); letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--text), transparent);
  animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top } 50% { transform: scaleY(1); transform-origin: top } 50.01% { transform-origin: bottom } 100% { transform: scaleY(0); transform-origin: bottom } }

@media (max-width: 800px) {
  .hero { padding: 110px 20px 110px; }
  .scroll-indicator { left: 20px; bottom: 24px; }
}

/* =========================================================
   Strip (numbers)
   ========================================================= */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 60px 48px;
  margin-top: 80px;
}
.strip-item {
  display: flex; flex-direction: column; gap: 6px;
  border-right: 1px solid var(--line);
  padding: 0 30px;
}
.strip-item:last-child { border-right: none; }
.strip-item .num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.strip-item .num em {
  font-style: normal; color: var(--accent); font-size: 0.5em;
  margin-left: 4px;
}
.strip-item .lbl {
  color: var(--muted); font-size: 13px; letter-spacing: 0.02em;
}
@media (max-width: 800px) {
  .strip { grid-template-columns: repeat(2, 1fr); padding: 30px 20px; }
  .strip-item { padding: 18px 14px; border-bottom: 1px solid var(--line); }
  .strip-item:nth-child(even) { border-right: none; }
  .strip-item:nth-child(3), .strip-item:nth-child(4) { border-bottom: none; }
}

/* =========================================================
   Section heads
   ========================================================= */
.section-head {
  padding: 120px 48px 60px;
  max-width: 1100px;
}
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--muted);
  letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 20px;
}
.section-eyebrow span { color: var(--accent); }
.section-title {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 600; letter-spacing: -0.03em;
  line-height: 1; margin-bottom: 24px;
}
.section-title .italic { color: var(--accent); }
.section-sub { color: var(--muted); font-size: 17px; max-width: 560px; }

/* =========================================================
   Filters
   ========================================================= */
.filters {
  position: relative;
  display: inline-flex;
  margin: 0 48px 40px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  gap: 4px;
}
.filter {
  position: relative; z-index: 2;
  padding: 10px 22px;
  font-size: 13px; color: var(--muted);
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color 0.3s var(--ease);
}
.filter em {
  font-style: normal; font-size: 11px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px; border-radius: 999px;
  color: var(--muted-2);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.filter.is-active { color: var(--bg); }
.filter.is-active em { background: rgba(0, 0, 0, 0.15); color: var(--bg); }
.filter:hover { color: var(--text); }
.filter.is-active:hover { color: var(--bg); }
.filter-indicator {
  position: absolute; top: 6px; bottom: 6px; left: 6px;
  background: var(--text);
  border-radius: 999px;
  z-index: 1;
  transition: transform 0.5s var(--ease), width 0.5s var(--ease);
}

/* =========================================================
   Grid (gallery)
   ========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
  padding: 0 48px 120px;
  perspective: 1400px;
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  will-change: transform;
}
.card:hover { box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 0 1px var(--line-strong); }
.card.size-l { grid-column: span 7; aspect-ratio: 16/10; }
.card.size-m { grid-column: span 5; aspect-ratio: 4/5; }
.card.size-s { grid-column: span 4; aspect-ratio: 3/4; }
.card.size-w { grid-column: span 8; aspect-ratio: 16/9; }
.card.size-t { grid-column: span 4; aspect-ratio: 3/4; }
.card.size-f { grid-column: span 12; aspect-ratio: 21/9; }

.card-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 1.4s var(--ease), filter 0.9s var(--ease);
  filter: saturate(0.92) brightness(0.92);
  transform: scale(1.001);
  will-change: transform;
}
.card:hover .card-img {
  transform: scale(1.06);
  filter: saturate(1.05) brightness(1);
}

.card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.85));
  opacity: 0.85; transition: opacity 0.5s var(--ease);
}
.card:hover::after { opacity: 0.95; }

.card-meta {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 26px;
  z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px;
  transition: transform 0.6s var(--ease);
}
.card:hover .card-meta { transform: translateY(-3px); }

.card-info { flex: 1; min-width: 0; }
.card-cat {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--accent); text-transform: uppercase;
  margin-bottom: 8px;
}
.card-title {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 500; letter-spacing: -0.02em;
  line-height: 1.1;
}
.card-year { color: var(--muted); font-size: 13px; margin-top: 6px; }

.card-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
  flex-shrink: 0;
}
.card:hover .card-arrow {
  background: var(--text); color: var(--bg);
  transform: rotate(-45deg);
}

.card.is-hidden { display: none; }
.card.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.card.is-in { opacity: 1; transform: translateY(0); }

@media (max-width: 1100px) {
  .card.size-l, .card.size-w, .card.size-f { grid-column: span 12; aspect-ratio: 16/9; }
  .card.size-m, .card.size-s, .card.size-t { grid-column: span 6; aspect-ratio: 3/4; }
}
@media (max-width: 700px) {
  .grid { padding: 0 20px 80px; gap: 14px; }
  .filters { margin: 0 20px 30px; flex-wrap: wrap; }
  .section-head { padding: 80px 20px 30px; }
  .card.size-l, .card.size-w, .card.size-f, .card.size-m, .card.size-s, .card.size-t { grid-column: span 12; aspect-ratio: 4/5; }
}

/* =========================================================
   About
   ========================================================= */
.about { padding: 80px 48px 120px; }
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1300px;
}
.about-text .section-title { margin-bottom: 36px; }
.about-text p { color: var(--muted); margin-bottom: 18px; max-width: 520px; line-height: 1.7; }
.about-skills {
  list-style: none; margin-top: 36px;
  border-top: 1px solid var(--line);
}
.about-skills li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  display: flex; gap: 24px; align-items: center;
  font-size: 17px;
  transition: padding 0.4s var(--ease), color 0.4s var(--ease);
}
.about-skills li span { color: var(--muted-2); font-size: 12px; letter-spacing: 0.2em; min-width: 30px; }
.about-skills li:hover { padding-left: 12px; color: var(--accent); }

.about-card { perspective: 1200px; }
.about-card-inner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
  box-shadow: var(--shadow-soft);
}
.about-portrait {
  aspect-ratio: 4/5;
  background-image: linear-gradient(135deg, rgba(230,57,70,0.2), transparent 60%), url('https://images.unsplash.com/photo-1488161628813-04466f872be2?w=900&q=80');
  background-size: cover; background-position: center;
}
.about-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}
.about-meta > div {
  padding: 22px;
  display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-meta > div:nth-child(2n) { border-right: none; }
.about-meta > div:nth-child(n+3) { border-bottom: none; }
.meta-k { font-size: 11px; color: var(--muted-2); letter-spacing: 0.2em; text-transform: uppercase; }
.meta-v { color: var(--text); font-size: 14px; }

@media (max-width: 1000px) {
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about { padding: 60px 20px 80px; }
}

/* =========================================================
   3D Showcase strip
   ========================================================= */
.showcase {
  position: relative;
  min-height: 80vh;
  display: flex; align-items: center;
  padding: 100px 48px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.3), transparent);
}
.showcase-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
}
.showcase-text {
  position: relative; z-index: 2;
  max-width: 540px;
}
.showcase-title {
  font-size: clamp(48px, 7vw, 110px);
  font-weight: 600; line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.showcase-title .line { display: block; }
.showcase-title .italic { color: var(--accent); }
.showcase-text p { color: var(--muted); font-size: 17px; max-width: 460px; }
@media (max-width: 800px) {
  .showcase { padding: 60px 20px; min-height: 60vh; }
}

/* =========================================================
   Contact
   ========================================================= */
.contact {
  position: relative;
  padding: 120px 48px 160px;
  overflow: hidden;
}
.contact-bg {
  position: absolute; inset: 0;
  background: radial-gradient(800px 600px at 50% 0%, rgba(230, 57, 70, 0.18), transparent 60%);
  pointer-events: none;
}
.contact-inner { position: relative; max-width: 900px; margin: 0 auto; text-align: center; }
.contact-title {
  font-size: clamp(60px, 10vw, 160px);
  font-weight: 600; line-height: 0.9;
  letter-spacing: -0.04em;
  margin-bottom: 30px;
}
.contact-title .line { display: block; }
.contact-title .italic { color: var(--accent); }
.contact-sub { color: var(--muted); font-size: 18px; margin-bottom: 50px; }

.contact-mail {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 22px 36px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 500;
  margin-bottom: 60px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.contact-mail:hover {
  background: var(--text); color: var(--bg);
  transform: translateY(-2px);
}
.contact-mail svg { transition: transform 0.4s var(--ease); }
.contact-mail:hover svg { transform: rotate(-45deg); }

.contact-form {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px; text-align: left;
  margin-bottom: 60px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: span 2; }
.field label { font-size: 12px; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.field input, .field textarea, .field select {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text);
  font: inherit; font-size: 15px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); background: var(--surface-2);
}
.form-submit { grid-column: span 2; justify-self: start; }

.contact-socials {
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px;
}
.contact-socials a { transition: color 0.3s var(--ease); }
.contact-socials a:hover { color: var(--accent); }

@media (max-width: 800px) {
  .contact { padding: 80px 20px 100px; }
  .contact-form { grid-template-columns: 1fr; }
  .field.full, .form-submit { grid-column: span 1; }
}

/* =========================================================
   Footer
   ========================================================= */
.foot {
  border-top: 1px solid var(--line);
  padding: 50px 48px 30px;
}
.foot-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.foot-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.foot-cross {
  display: inline-flex; width: 22px; height: 22px;
  align-items: center; justify-content: center;
  background: var(--accent); color: #fff;
  font-weight: 700; border-radius: 4px;
}
.foot-top p { color: var(--muted); font-size: 14px; }
.foot-bot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  padding-top: 24px;
  color: var(--muted-2); font-size: 12px;
}
@media (max-width: 700px) { .foot { padding: 40px 20px 20px; } }

/* =========================================================
   Project view (overlay)
   ========================================================= */
.project-view {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 200;
  overflow-y: auto;
  opacity: 0; visibility: hidden;
  transform: translateY(40px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0.6s var(--ease);
}
.project-view.is-open {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.pv-topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 24px;
  padding: 18px 48px;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.pv-close {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pv-close:hover { background: var(--surface); border-color: var(--line-strong); }

.pv-progress { flex: 1; height: 1px; background: var(--line); }
.pv-progress-fill { height: 100%; background: var(--accent); width: 0%; transition: width 0.2s linear; }

.pv-content { padding: 60px 48px 120px; }

.pv-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px; align-items: end;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 60px;
}
.pv-cat {
  display: inline-block;
  color: var(--accent); font-size: 12px; letter-spacing: 0.3em;
  text-transform: uppercase; margin-bottom: 20px;
}
.pv-title {
  font-size: clamp(48px, 7vw, 110px);
  font-weight: 600; line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 30px;
}
.pv-desc { color: var(--muted); font-size: 16px; max-width: 480px; line-height: 1.7; }
.pv-info {
  display: grid; gap: 22px;
  border-top: 1px solid var(--line); padding-top: 30px;
}
.pv-info-row {
  display: flex; justify-content: space-between; gap: 20px;
  border-bottom: 1px solid var(--line); padding-bottom: 16px;
}
.pv-info-k { color: var(--muted); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.pv-info-v { font-size: 15px; }

.pv-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-bottom: 60px;
}
.pv-gallery .pv-img { position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; }
.pv-gallery .pv-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter 0.6s var(--ease);
  filter: saturate(0.95);
}
.pv-gallery .pv-img:hover img { transform: scale(1.04); filter: saturate(1.05); }
.pv-gallery .pv-img.full { grid-column: span 12; aspect-ratio: 21/9; }
.pv-gallery .pv-img.wide { grid-column: span 8; aspect-ratio: 16/10; }
.pv-gallery .pv-img.half { grid-column: span 6; aspect-ratio: 4/3; }
.pv-gallery .pv-img.third { grid-column: span 4; aspect-ratio: 3/4; }
.pv-gallery .pv-img.tall { grid-column: span 4; aspect-ratio: 3/5; }

.pv-next-block {
  margin-top: 80px;
  padding: 60px 0;
  border-top: 1px solid var(--line);
  text-align: center;
}
.pv-next-block .lbl { color: var(--muted); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 14px; display: block; }
.pv-next-block .next-link {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 600; letter-spacing: -0.03em;
  color: var(--text);
  transition: color 0.3s var(--ease);
}
.pv-next-block .next-link:hover { color: var(--accent); }
.pv-next-block .next-link svg { transition: transform 0.4s var(--ease); }
.pv-next-block .next-link:hover svg { transform: translateX(8px); }

@media (max-width: 1000px) {
  .pv-hero { grid-template-columns: 1fr; gap: 30px; }
  .pv-content { padding: 40px 20px 80px; }
  .pv-topbar { padding: 14px 20px; }
  .pv-gallery .pv-img.full, .pv-gallery .pv-img.wide, .pv-gallery .pv-img.half, .pv-gallery .pv-img.third, .pv-gallery .pv-img.tall {
    grid-column: span 12; aspect-ratio: 4/5;
  }
}

/* =========================================================
   Lightbox
   ========================================================= */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 300;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
  backdrop-filter: blur(20px);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-stage {
  max-width: 90vw; max-height: 85vh;
  display: flex; align-items: center; justify-content: center;
}
.lb-stage img {
  max-width: 100%; max-height: 85vh;
  border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: lbZoom 0.5s var(--ease);
}
@keyframes lbZoom { from { opacity: 0; transform: scale(0.95) } to { opacity: 1; transform: scale(1) } }
.lb-caption {
  position: absolute; bottom: 30px; left: 0; right: 0;
  text-align: center; color: var(--muted);
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  font-size: 24px;
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(255, 255, 255, 0.15); transform: scale(1.05);
}
.lb-close { top: 30px; right: 30px; }
.lb-prev { left: 30px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 30px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.05); }

/* =========================================================
   Reveal animations
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* When loader is done */
body.is-ready .hero-title.is-in .word { transform: translateY(0); }

/* Selection */
::selection { background: var(--accent); color: #fff; }

/* Scrollbar (subtle) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #2a2a30; }
