/* ==========================================================================
   V19 — Emmanuele Allamani Portfolio (expanded)
   Single-page scroll: Hero, TRADE (4 panels), Works+Process, About+What I Offer, Footer
   Playfair Display + Albert Sans · Pink accent on dark/light
   Based on V18 with expanded TRADE section (dots nav) and restructured ABOUT
   ========================================================================== */

/* ---- Reset ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---- Custom Properties ---- */
/* Original accent: #d53f8c / hover #e84e9a / glow rgba(213,63,140,0.15) */
:root,
[data-theme="dark"] {
  --bg: #0a0a0c;
  --bg-card: #141416;
  --text: #f0ede8;
  --text-secondary: #c0bdc6;
  --text-dim: #7e7a88;
  --accent: #d44a6a;
  --accent-hover: #e05a7a;
  --accent-glow: rgba(212, 74, 106, 0.15);
  --border: rgba(240, 237, 232, 0.12);
  --divider: rgba(240, 237, 232, 0.16);
  --font-display: 'Playfair Display', serif;
  --font-body: 'Albert Sans', sans-serif;
}

[data-theme="light"] {
  --bg: #f0ede8;
  --bg-card: #e5e1db;
  --text: #1a1a1c;
  --text-secondary: #3e3a44;
  --text-dim: #6e6a76;
  --accent: #d44a6a;
  --accent-hover: #e05a7a;
  --accent-glow: rgba(212, 74, 106, 0.12);
  --border: rgba(26, 26, 28, 0.1);
  --divider: rgba(26, 26, 28, 0.1);
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.loaded {
  opacity: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

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

input {
  font-family: inherit;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  z-index: 1000;
  background: rgba(28, 28, 32, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--divider);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

[data-theme="light"] .site-header {
  background: rgba(240, 237, 232, 0.8);
}

.site-header.hidden {
  transform: translateY(-100%);
}

/* Animate header reappearance */
.site-header.visible-anim {
  animation: headerSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes headerSlideIn {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  white-space: nowrap;
  line-height: 1;
}

.header-logo-name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-logo-sub {
  font-family: var(--font-body);
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 0.35rem;
}

.header-nav {
  display: flex;
  gap: 2rem;
  margin-right: auto;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text);
}

/* ---- Art Department header branding (far right) ---- */
.header-dsc-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.8rem;
  opacity: 0.7;
  transition: opacity 0.25s ease;
  white-space: nowrap;
}

.header-dsc-link:hover {
  opacity: 1;
}

.header-dsc-link:hover .header-dsc-label,
.header-dsc-link:hover .header-dsc-sub {
  color: var(--accent);
}

.header-dsc-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1;
}

.header-dsc-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

.header-dsc-sub {
  font-family: var(--font-body);
  font-size: 0.42rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.2rem;
  transition: color 0.25s ease;
}

.header-dsc-arrow {
  font-size: 0.72rem;
  color: var(--text-secondary);
  transition: transform 0.25s ease;
}

.header-dsc-link:hover .header-dsc-arrow {
  transform: translateX(2px);
}

.header-dsc-logo {
  height: 28px;
  width: auto;
}

.nav-link--external:hover .nav-external-arrow {
  opacity: 1;
  transform: translate(1px, -1px);
}

.mobile-nav-link--external {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--divider);
}

/* ---- Header Controls (theme + music, sits left of ART DEPARTMENT) ---- */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

/* Bare icon button — shared by theme toggle + music controls */
.hdr-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.15s ease;
}

.hdr-icon-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .hdr-icon-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}


/* Theme toggle icon visibility */
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  z-index: 1010;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---- Mobile Menu ---- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .mobile-menu {
  background: rgba(240, 237, 232, 0.95);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.25s ease;
}

.mobile-nav-link:hover {
  color: var(--text-secondary);
}

/* ==========================================================================
   SCROLL PROGRESS BAR (bottom of header)
   ========================================================================== */
.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--accent);
  z-index: 10;
  transition: width 0.05s linear;
  pointer-events: none;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.hero-video-wrap {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  overflow: hidden;
}

.hero-video-wrap iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78vh;
  height: 100vh;
  min-width: 100%;
  min-height: 56.25vw;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
}

.hero-spotlight {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, #0a0a0c 0%, rgba(10, 10, 12, 0.6) 50%, transparent 100%);
  z-index: 3;
  pointer-events: none;
}

[data-theme="light"] .hero-gradient {
  background: linear-gradient(to top, #f0ede8 0%, rgba(240, 237, 232, 0.6) 50%, transparent 100%);
}

.hero-content {
  position: absolute;
  bottom: clamp(4rem, 10vh, 7rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  text-align: center;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.hero-name-first {
  display: block;
  color: var(--text);
}

.hero-name-last {
  display: block;
  color: var(--text);
}

.hero-roles {
  margin-top: 0.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  white-space: nowrap;
}

.hero-location {
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Hero entrance animations */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-location,
.hero-name-first,
.hero-name-last,
.hero-roles {
  opacity: 0;
}

body.loaded .hero-location {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

body.loaded .hero-name-first {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

body.loaded .hero-name-last {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards;
}

body.loaded .hero-roles {
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.85s forwards;
}

/* ---- Scroll Indicator ---- */
.scroll-indicator {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
}

body.loaded .scroll-indicator {
  animation: heroFadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

.scroll-text {
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}

.scroll-line {
  display: block;
  width: 1px;
  height: 24px;
  background: var(--text-dim);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--text-secondary);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* ==========================================================================
   SECTIONS — Shared
   ========================================================================== */
.section {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2rem) 0;
  position: relative;
  min-height: calc(100vh - 52px);
  display: flex;
  flex-direction: column;
}

.section-divider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--divider);
}

.section-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: inline-block;
  padding-bottom: 0.1rem;
  border-bottom: none;
  line-height: 1.2;
  position: relative;
}

.section-title::after {
  display: none;
}

/* ---- Trade Header Row (section label + project title aligned) ---- */
.trade-header-row {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: baseline;
  margin-bottom: 0.4rem;
}

.trade-header-row .section-title {
  margin-bottom: 0;
}

/* ==========================================================================
   TRADE SECTION — Horizontal Slider
   ========================================================================== */

/* Tighter top padding for trade section */
.trade-section {
  padding-top: clamp(0.8rem, 1.5vw, 1.2rem);
}

/* Trade slider container */
.trade-slider {
  overflow: hidden;
  position: relative;
  flex: 1;
}

.trade-slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.trade-panel {
  min-width: 100%;
  flex: 0 0 100%;
}

/* Trade slider nav — label above, arrows + dots below */
.trade-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.trade-nav-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  text-align: center;
  transition: color 0.25s ease;
}

.trade-nav:hover .trade-nav-label {
  color: var(--accent);
}

.trade-nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Trade Arrows */
.trade-slider-arrow {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.3rem;
  transition: color 0.25s ease;
  line-height: 1;
}

.trade-slider-arrow:hover {
  color: var(--accent);
}

/* Trade Dots */
.trade-dots {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.trade-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.trade-dot:hover {
  background: var(--text-secondary);
  transform: scale(1.25);
}

.trade-dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

/* Compact donate link on details panel */
.trade-support--compact {
  text-align: center;
  padding: 1rem 0 0;
  margin-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.trade-support--compact .trade-donate-btn {
  display: inline-block;
  margin-bottom: 0.6rem;
}

.trade-support--compact .trade-tax-note {
  font-size: 0.75rem;
}

/* ---- Trade P2: The Story ---- */
.trade-story-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.5rem 0;
}

.trade-story-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
}

.trade-story-text p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.trade-story-closing {
  color: var(--text) !important;
  font-weight: 400;
}

.trade-story-question {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--accent);
  text-align: center;
  margin-top: 1.5rem;
  line-height: 1.5;
}

/* ---- Trade P4: The Team ---- */
.trade-team-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 0;
}

.trade-team-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.trade-team-statement {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-style: italic;
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
}

/* Team two-column layout */
.trade-team-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.trade-team-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  margin-top: 1.5rem;
}

.trade-team-member {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

.trade-team-role {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.trade-team-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
}

.trade-team-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.trade-team-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.trade-team-collaborators {
  text-align: left;
  padding: 0;
}

.trade-team-collab-title {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

.trade-team-collab-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.8rem;
}

.trade-team-collab-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Reduced director statement (smaller than the old big italic block) */
.trade-team-statement-sm {
  font-family: var(--font-display);
  font-size: 0.9rem;
  line-height: 1.65;
  font-style: italic;
  color: var(--text-secondary);
  padding-left: 1rem;
  border-left: 2px solid var(--border);
  margin-bottom: 1.5rem;
}

/* Collaborator individual cards */
.trade-collab-cards {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 1rem;
}

.trade-collab-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.trade-collab-photo {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.trade-collab-photo::after {
  content: attr(data-initials);
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-dim);
}

.trade-collab-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* When a photo is present, hide the initial */
.trade-collab-photo:has(img)::after {
  display: none;
}

.trade-collab-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.trade-collab-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}

.trade-collab-role {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-style: italic;
}

.trade-collab-quote {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.trade-team-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--accent);
  line-height: 1.6;
  padding-left: 1.2rem;
  border-left: 2px solid var(--accent);
  margin-top: 1.5rem;
}

/* ---- About P2: Services ---- */

/* Philosophy pull quote — pink, italic, prominent */
.services-philosophy {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 1.2rem;
  margin-bottom: 1.8rem;
}

/* Sub-section headings (Filmmaking Approach, Services) */
.services-subheading {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  margin-top: 0.2rem;
}

.about-grid--services .about-services p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
}

/* Override the philosophy quote from the generic p style */
.about-grid--services .about-services .services-philosophy {
  font-size: 1.1rem;
  color: var(--accent);
}

.equipment-list {
  margin-top: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid var(--divider);
}

.trade-grid {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}

.trade-content {
  display: flex;
  flex-direction: column;
}

.video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border: 1px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.video-container:hover {
  border-color: var(--text-dim);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none;
}

.trade-video {
  cursor: pointer;
}

.trade-video:hover .video-container {
  border-color: var(--text-dim);
  box-shadow: 0 0 30px rgba(213, 63, 140, 0.08);
}

.trade-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.3rem;
  color: var(--text);
}

.trade-subtitle {
  font-weight: 300;
  font-size: 0.38em;
  letter-spacing: 0.12em;
  opacity: 0.6;
  display: block;
  margin-top: 0.15rem;
  text-transform: uppercase;
}

.trade-synopsis {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.trade-credits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
  margin-bottom: 0.8rem;
}

.credit-item {
  display: flex;
  flex-direction: column;
}

.credit-label {
  font-size: 0.58rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.credit-value {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
}

.trade-fiscal {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-bottom: 0;
  margin-top: auto;
}

.trade-detail-heading {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.4rem;
  padding-bottom: 0.08rem;
  border-bottom: none;
  display: inline-block;
  line-height: 1.2;
  position: relative;
}

.trade-detail-heading::after {
  display: none;
}

/* ---- Trade Details Visual (Panel 3: photo + text cards) ---- */
.trade-details-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.trade-detail-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.trade-detail-img {
  width: 100%;
  aspect-ratio: 16 / 5;
  overflow: hidden;
  border-radius: 4px;
}

.trade-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) brightness(0.9);
  transition: filter 0.35s ease;
}

.trade-detail-card:hover .trade-detail-img img {
  filter: grayscale(0) brightness(1);
}

.trade-detail-text {
  padding: 0;
}

.trade-detail-text p {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---- Trade Support / Donate ---- */
.trade-support {
  margin-top: 0.6rem;
  padding: 0.5rem 0 0;
  border-top: 1px solid var(--divider);
  text-align: center;
}

.trade-support-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: inline-block;
  padding-bottom: 0.1rem;
  border-bottom: none;
  line-height: 1.2;
  position: relative;
}

.trade-support-title::after {
  display: none;
}

.trade-support-text {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 0.6rem;
}

/* Support needs tags */
.trade-support-needs {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.trade-support-need {
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.trade-donate-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.trade-donate-btn {
  padding: 0.7rem 2rem;
  font-size: 0.72rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--divider);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.trade-donate-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 74, 106, 0.12);
}

.trade-donate-crypto {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}

.trade-donate-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.trade-donate-addr {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-family: var(--font-body);
}

.trade-donate-addr em {
  color: var(--text-dim);
  font-style: italic;
  font-size: 0.65rem;
}

.trade-tax-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.trade-tax-note a {
  color: var(--text-secondary);
  transition: color 0.25s ease;
  text-decoration: underline;
}

.trade-tax-note a:hover {
  color: var(--accent);
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.7rem 1.4rem;
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-outline {
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(213, 63, 140, 0.25);
}

.btn-solid {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-solid:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

/* ==========================================================================
   SELECTED WORKS — Mosaic Grid
   ========================================================================== */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}

.works-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg-card);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.4s ease;
}

.works-item:hover {
  transform: scale(1.02);
  border-color: var(--text-dim);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.works-item--portrait { grid-column: 1; grid-row: 1 / 4; }
.works-item--landscape { grid-column: 2 / 4; grid-row: 1 / 3; }
.works-item--square { grid-column: 2; grid-row: 3; }
.works-item--fourth { grid-column: 3; grid-row: 3; }
.works-item--more { grid-column: 3; grid-row: 3; cursor: default; }
.works-item--more:hover { transform: none; border-color: transparent; box-shadow: none; }

.works-item-video {
  position: absolute;
  inset: 0;
}

.works-item-video iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78%;
  height: 177.78%;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: none;
  pointer-events: none;
  object-fit: cover;
}

.works-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.35);
  transition: background 0.35s ease;
  z-index: 1;
}

.works-item:hover .works-item-overlay {
  background: rgba(10, 10, 12, 0.6);
}

.works-item-desc {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  z-index: 2;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.35s ease, max-height 0.45s ease;
}

.works-item:hover .works-item-desc {
  opacity: 1;
  max-height: 120px;
}

.works-item-desc h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.works-tag {
  font-size: 0.58rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.works-item-more {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.works-more-icon {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--text-dim);
}

.works-more-text {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ---- Works Horizontal Slider ---- */
.works-slider {
  overflow: hidden;
  position: relative;
  flex: 1;
}

.works-slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.works-panel {
  min-width: 100%;
  flex: 0 0 100%;
}

/* Works Nav — label + arrows + dots (matches TRADE nav) */
.works-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.works-nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.works-arrow {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.4rem;
  transition: color 0.25s ease;
  line-height: 1;
}

.works-arrow:hover {
  color: var(--accent);
}

.works-nav-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  min-width: 100px;
  text-align: center;
  transition: color 0.25s ease;
}

.works-nav:hover .works-nav-label {
  color: var(--accent);
}

/* ---- Process Panel — Checkerboard Grid ---- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  max-height: calc(100vh - 52px - 6rem);
}

.process-cell {
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.process-cell--image {
  cursor: pointer;
}

.process-cell--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid transparent;
  border-radius: 4px;
  filter: grayscale(0.3) brightness(0.85);
  transition: filter 0.35s ease, transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.process-cell--image:hover img {
  filter: grayscale(0) brightness(1);
  transform: scale(1.03);
  border-color: var(--text-dim);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.process-cell--text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.2rem 1.4rem;
  background: transparent;
  border: none;
  border-radius: 4px;
}

.process-cell-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.process-cell--text p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ==========================================================================
   VIMEO LIGHTBOX
   ========================================================================== */
.vimeo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.vimeo-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.vimeo-lightbox-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  z-index: 1;
}

.vimeo-lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.25s ease;
  padding: 0 0.3rem;
}

.vimeo-lightbox-close:hover {
  opacity: 1;
}

.vimeo-lightbox-player {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.vimeo-lightbox-player iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.vimeo-lightbox-title {
  margin-top: 0.8rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  opacity: 0.8;
  text-align: center;
}

/* ==========================================================================
   ABOUT — Horizontal Slider
   ========================================================================== */
.about-slider {
  overflow: hidden;
  position: relative;
  flex: 1;
}

.about-slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.about-panel {
  min-width: 100%;
  flex: 0 0 100%;
}

/* Panel navigation — label + arrows + dots (matches TRADE nav) */
.about-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.about-nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-arrow {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.4rem;
  transition: color 0.25s ease;
  line-height: 1;
}

.about-arrow:hover {
  color: var(--accent);
}

.about-nav-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  min-width: 80px;
  text-align: center;
  transition: color 0.25s ease;
}

.about-nav:hover .about-nav-label {
  color: var(--accent);
}

/* Shared slider dots (used by Works + About, mirrors Trade dots) */
.slider-dots {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.slider-dot:hover {
  background: var(--text-secondary);
  transform: scale(1.25);
}

.slider-dot.active {
  background: var(--accent);
  transform: scale(1.25);
}

/* Grid layout (shared by both panels) */
.about-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  flex: 1;
}

.about-portrait {
  position: relative;
  cursor: pointer;
}

.about-portrait-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border: 1px solid transparent;
  border-radius: 4px;
  filter: grayscale(0.15);
  transition: filter 0.4s ease, border-color 0.35s ease, transform 0.35s ease;
}

.about-portrait:hover .about-portrait-img {
  filter: grayscale(0);
  border-color: var(--text-dim);
  transform: scale(1.01);
}

.about-portrait-hint {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  font-size: 0.55rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.about-portrait:hover .about-portrait-hint {
  opacity: 1;
}

.about-bio p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.about-bio p:last-child {
  margin-bottom: 0;
}

.about-bio .about-bio-quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--accent);
  border-left: 2px solid var(--accent);
  padding-left: 1.2rem;
  margin: 1.8rem 0;
}

.about-currently {
  margin-top: 1.2rem;
  padding: 0.8rem 1rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-glow);
  border-radius: 0 4px 4px 0;
}

.about-currently p {
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--text);
}

/* Equipment panel */
.equipment-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
}

.equipment-cat-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.equipment-category ul {
  list-style: none;
  padding: 0;
}

.equipment-category li {
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-secondary);
  padding-left: 0.8rem;
  position: relative;
}

.equipment-category li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-dim);
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 0.6rem;
  transition: color 0.25s ease;
}

.contact-email:hover {
  color: var(--accent);
}

/* ---- Header Music ---- */
.header-music {
  position: relative;
}

.music-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--divider);
  border-radius: 8px;
  padding: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1100;
}

[data-theme="light"] .music-dropdown {
  background: rgba(240, 237, 232, 0.95);
}

/* Invisible bridge so hover doesn't break crossing the gap */
.music-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  right: 0;
  width: 100%;
  height: 12px;
}

/* Open on hover or via .open class (JS fallback for mobile) */
.header-music:hover .music-dropdown,
.header-music.open .music-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Bandcamp embedded player */
.bc-player-embed {
  margin-bottom: 0.5rem;
  border-radius: 4px;
  overflow: hidden;
}

.bc-player-embed iframe {
  display: block;
}

/* Bandcamp controls (prev / now-playing / next) */
.bc-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid var(--divider);
}

.bc-ctrl-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 3px;
  line-height: 0;
  transition: color 0.2s ease, background 0.2s ease;
}

.bc-ctrl-btn:hover {
  color: var(--accent);
  background: var(--accent-glow);
}

.bc-now-playing {
  font-family: var(--font-body);
  font-size: 0.52rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
  text-align: center;
}

/* Bandcamp playlist */
.bc-playlist {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bc-playlist-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.bc-playlist-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .bc-playlist-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

.bc-playlist-item.active {
  background: var(--accent-glow);
}

.bc-playlist-num {
  font-family: var(--font-body);
  font-size: 0.5rem;
  font-weight: 500;
  color: var(--text-dim);
  width: 1.2em;
  text-align: right;
  flex-shrink: 0;
}

.bc-playlist-item.active .bc-playlist-num {
  color: var(--accent);
}

.bc-playlist-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.bc-playlist-title {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bc-playlist-item.active .bc-playlist-title {
  color: var(--text);
}

.bc-playlist-artist {
  font-family: var(--font-body);
  font-size: 0.48rem;
  font-weight: 400;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   PHOTO LIGHTBOX
   ========================================================================== */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.photo-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.photo-lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 90vw;
  max-height: 85vh;
}

.photo-lightbox-img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.photo-lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.25s ease;
  padding: 0 0.3rem;
}

.photo-lightbox-close:hover {
  opacity: 1;
}

.photo-lightbox-prev,
.photo-lightbox-next {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.25s ease;
  padding: 1rem;
  flex-shrink: 0;
}

.photo-lightbox-prev:hover,
.photo-lightbox-next:hover {
  opacity: 1;
}

.photo-lightbox-counter {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg);
  padding: 1.8rem 0;
  border-top: 1px solid var(--divider);
}

.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  position: relative;
}

/* Centered contact — container */
.footer-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Icon links — standalone */
.footer-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  padding: 0.4rem;
  transition: color 0.2s ease;
}

.footer-icon-link svg {
  width: 20px;
  height: 20px;
}

.footer-icon-link:hover {
  color: var(--accent);
}

/* Footer DSC branding */
.footer-dsc-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.footer-dsc-link:hover {
  opacity: 1;
}

.footer-dsc-link:hover .footer-dsc-label {
  color: var(--text-secondary);
}

.footer-dsc-label {
  font-family: var(--font-body);
  font-size: 0.87rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.footer-dsc-logo {
  height: 34px;
  width: auto;
}

.footer-dsc-arrow {
  font-size: 0.65rem;
  color: var(--text-dim);
  transition: transform 0.25s ease;
}

.footer-dsc-link:hover .footer-dsc-arrow {
  transform: translateX(2px);
}

.footer-dsc-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.footer-dsc-name {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
  text-transform: uppercase;
}

.footer-dsc-sub {
  font-family: var(--font-display);
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Footer inline icons */
.footer-icon {
  vertical-align: -2px;
  margin-right: 0.2rem;
  opacity: 0.7;
}

.footer-dot {
  color: var(--text-dim);
  font-size: 0.55rem;
}

.footer-location {
  font-family: var(--font-body);
  font-size: 0.87rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---- Footer Right (DSC branding) ---- */
.footer-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* ---- Footer Contact Inline (single row) ---- */
.footer-contact-inline {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  white-space: nowrap;
}

.footer-contact-inline .contact-label {
  margin-bottom: 0;
}

.footer-contact-inline .contact-email {
  margin-bottom: 0;
}

/* Stay in Touch — expandable email input */
.footer-touch-wrap {
  display: flex;
  align-items: center;
  border: 1px solid var(--divider);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.3s ease, width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-touch-wrap:hover,
.footer-touch-wrap.expanded {
  border-color: var(--text-dim);
}

.footer-touch-trigger {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}

.footer-touch-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  padding: 0.6rem 1rem;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.footer-touch-wrap:hover .footer-touch-label {
  color: var(--text-secondary);
}

.footer-touch-wrap.expanded .footer-touch-label {
  color: var(--text-secondary);
}

/* Email form — hidden by default */
.footer-touch-form {
  display: flex;
  align-items: center;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}

.footer-touch-wrap.expanded .footer-touch-form {
  max-width: 220px;
  opacity: 1;
}

.footer-touch-input {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text);
  background: transparent;
  border: none;
  border-left: 1px solid var(--divider);
  padding: 0.6rem 0.8rem;
  width: 170px;
  outline: none;
  letter-spacing: 0.02em;
}

.footer-touch-input::placeholder {
  color: var(--text-dim);
  font-style: italic;
}

.footer-touch-send {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-left: 1px solid var(--divider);
  color: var(--text-dim);
  padding: 0.6rem 0.7rem;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.footer-touch-send:hover {
  color: var(--accent);
  background: var(--accent-glow);
}

.footer-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  transition: color 0.25s ease;
}

.footer-whatsapp-link:hover {
  color: var(--accent);
}

/* ==========================================================================
   RESPONSIVE — 1024px
   ========================================================================== */
@media (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .works-item--portrait { grid-column: 1; grid-row: 1 / 3; }
  .works-item--landscape { grid-column: 2; grid-row: 1 / 3; }
  .works-item--square { grid-column: 1; grid-row: 3; }
  .works-item--fourth { grid-column: 2; grid-row: 3; }
  .works-item--more { grid-column: 2; grid-row: 3; }
}

/* ==========================================================================
   RESPONSIVE — 768px (Mobile)
   ========================================================================== */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-dsc-link { display: none; }
  .hamburger { display: flex; }
  .header-controls { margin-left: auto; margin-right: 0.5rem; }

  .hero-content {
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
  }

  .hero-roles {
    font-size: 0.83rem;
    white-space: normal;
  }

  .trade-header-row { grid-template-columns: 1fr; gap: 0.2rem; }
  .trade-grid { grid-template-columns: 1fr; }
  .trade-details-visual { grid-template-columns: 1fr; gap: 1.5rem; }
  .trade-support { padding: 1.5rem 1.2rem; }
  .trade-donate-options { flex-direction: column; gap: 1.2rem; }
  .trade-donate-crypto { align-items: center; }
  .trade-team-layout { grid-template-columns: 1fr; }
  .trade-story-content { padding: 1rem 0; }
  .trade-team-content { padding: 1rem 0; }
  .trade-story-question { font-size: 1.1rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-portrait-img { max-width: 260px; }
  .equipment-list { grid-template-columns: 1fr; }

  .process-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  .process-cell--text {
    padding: 1rem;
  }

  .process-cell--text p {
    font-size: 0.88rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
  }

  .footer-center {
    position: static;
    transform: none;
  }

  .footer-right {
    flex-direction: column;
    gap: 0.3rem;
  }

  .footer-touch-label {
    font-size: 0.65rem;
    padding: 0.5rem 0.8rem;
  }

  .footer-touch-wrap.expanded .footer-touch-form {
    max-width: 180px;
  }

  .footer-touch-input {
    width: 130px;
    font-size: 0.65rem;
    padding: 0.5rem 0.6rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-name {
    font-size: clamp(1.3rem, 7vw, 2rem);
  }

  .contact-email {
    font-size: 0.65rem;
    word-break: break-all;
  }
}
