/* ─── Variables ─────────────────────────────────────────── */
:root {
  --bg:          #0A0A0A;
  --surface:     #141414;
  --surface-2:   #1C1C1C;
  --border:      rgba(255,255,255,0.07);
  --accent:      #8B5CF6;
  --accent-glow: rgba(139,92,246,0.25);
  --text:        #F5F5F5;
  --muted:       #6B7280;
  --muted-2:     #3D3D3D;
  --white:       #FFFFFF;

  --font-head:   'Syne', sans-serif;
  --font-body:   'Inter', sans-serif;

  --nav-h:       68px;
  --max-w:       1200px;
  --gap:         clamp(1.5rem, 4vw, 3rem);

  --ease:        cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--muted-2) transparent;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--muted-2); border-radius: 4px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

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

/* Remove 300ms tap delay on mobile */
a, button, .film-card { touch-action: manipulation; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

/* ─── Page load fade-in ─────────────────────────────────── */
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body { animation: pageFadeIn 0.55s ease forwards; }

/* ─── Noise overlay — adds depth to dark background ─────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.032;
  pointer-events: none;
  z-index: 9997;
}

/* ─── Custom Cursor ─────────────────────────────────────── */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--white);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: transform 0.1s var(--ease), width 0.3s var(--ease), height 0.3s var(--ease);
}
.cursor.expanded { width: 40px; height: 40px; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ─── Scroll Reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-hero {
  opacity: 0;
  transform: translateY(20px);
  animation: heroReveal 0.9s var(--ease-out) forwards;
}
.reveal-hero:nth-child(1) { animation-delay: 0.15s; }
.reveal-hero:nth-child(2) { animation-delay: 0.35s; }
.reveal-hero:nth-child(3) { animation-delay: 0.55s; }
.reveal-hero:nth-child(4) { animation-delay: 0.75s; }

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.75rem;
  border-radius: 4px;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}
.btn-primary:hover {
  background: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-primary.full-width { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--muted-2);
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--text); }

/* ─── Section Typography ────────────────────────────────── */
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}

/* ─── Navigation ────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background 0.4s, border-color 0.4s;
}
#nav.scrolled {
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--nav-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-right: auto;
  transition: color 0.2s;
}
.logo:hover { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.5rem 1.1rem;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--accent); color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s var(--ease-out);
}
.mobile-menu.open { max-height: 300px; }
.mobile-menu a {
  display: block;
  padding: 1rem clamp(1.25rem, 5vw, 3rem);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--text); }

/* ─── Hero ──────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 4rem) 1.5rem 6rem;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.5rem, 7.5vw, 7rem);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 2rem;
  white-space: nowrap;
}

.hero-name-sv {
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.hero-tagline em {
  font-style: italic;
  color: var(--text);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
}
.hero-scroll span {
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ─── Marquee ───────────────────────────────────────────── */
.marquee-wrapper {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  padding: 1rem 0;
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee-track .dot { color: var(--accent); }
.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── About ─────────────────────────────────────────────── */
#about {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.about-text {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-stats {
  display: flex;
  gap: 3rem;
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 0.25rem; }
.stat-num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tag {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.25);
  padding: 0.35rem 0.8rem;
  border-radius: 3px;
}

/* ─── Work — Compact Horizontal Strips ──────────────────── */
#work { padding: clamp(5rem, 10vw, 9rem) 0; }
#work > .container { margin-bottom: 3.5rem; }

.work-chapter {
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--border);
}
.work-chapter:last-child {
  border-bottom: 1px solid var(--border);
  padding-bottom: 2.5rem;
}

/* ── Top info row ── */
.chapter-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 1.75rem;
  padding: 0 clamp(1.5rem, 5vw, 3rem) 1.75rem;
}

.chapter-num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--muted-2);
  padding-top: 0.1rem;
}

.chapter-info { min-width: 0; }

.chapter-category {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.chapter-title {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.2vw, 1.75rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.chapter-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 58ch;
}

.chapter-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.35rem 0.8rem;
  border-radius: 3px;
  white-space: nowrap;
}

/* ── Horizontal image strip ── */
/* ── Film roll: two auto-scrolling rows per chapter ── */
.film-pair {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0.5rem 0 2.5rem;
  overflow: hidden;
}

.film-strip {
  overflow: hidden;
  position: relative;
  /* Fade edges — feel of film running off frame */
  mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

/* Pause the whole strip on hover */
.film-strip:hover .film-track { animation-play-state: paused; }

.film-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: filmLeft var(--dur, 40s) linear infinite;
}

/* Second row runs opposite direction */
.film-track--rtl {
  animation-name: filmRight;
}

@keyframes filmLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes filmRight {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Individual film frame card */
.film-card {
  flex: 0 0 auto;
  width: clamp(150px, 18vw, 210px);
  aspect-ratio: 4/5;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--surface);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s ease;
}

.film-card:hover {
  transform: scale(1.07) translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.65),
              0 0 0 2px var(--accent);
  z-index: 10;
}

.film-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
  transition: transform 0.4s ease;
}
.film-card:hover img { transform: scale(1.05); }

/* View label */
.film-card-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.film-card:hover .film-card-hover { opacity: 1; }

.film-card-hover span {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(139,92,246,0.9);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ─── Services ──────────────────────────────────────────── */
#services {
  padding: clamp(5rem, 10vw, 9rem) 0;
  border-top: 1px solid var(--border);
}
#services .section-label,
#services .section-title { margin-bottom: 3.5rem; }
#services .section-title { margin-bottom: 3.5rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.service-card {
  background: var(--surface);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  transition: background 0.3s;
}
.service-card:hover { background: var(--surface-2); }

.service-num {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.85rem;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ─── Contact ───────────────────────────────────────────── */
#contact {
  padding: clamp(5rem, 10vw, 9rem) 0;
  border-top: 1px solid var(--border);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-sub {
  color: var(--muted);
  margin: 1.25rem 0 2.5rem;
}

.contact-links { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-link {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.25s, background 0.25s;
}
.contact-link:hover { border-color: var(--accent); background: var(--surface-2); }
.contact-link-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-link-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

/* Floating label form */
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-group {
  position: relative;
  padding-top: 1.2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--muted-2);
  padding: 0.6rem 0 0.5rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.25s;
  resize: none;
}
.form-group textarea { min-height: 100px; }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-group label {
  position: absolute;
  top: 1.8rem;
  left: 0;
  font-size: 0.95rem;
  color: var(--muted);
  pointer-events: none;
  transition: all 0.22s var(--ease);
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: 0;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--white);
}
.footer-copy {
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-top {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-top:hover { color: var(--text); }

/* ─── Lightbox ──────────────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lb-img-wrap {
  max-width: min(420px, 90vw);
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img-wrap img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
}

.lb-close, .lb-prev, .lb-next {
  position: absolute;
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: background 0.2s, transform 0.2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(255,255,255,0.18);
  transform: scale(1.1);
}
.lb-close { top: 1.5rem; right: 1.5rem; }
.lb-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lb-prev:hover { transform: translateY(-50%) scale(1.1); }
.lb-next:hover { transform: translateY(-50%) scale(1.1); }

.lb-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
}
#lbClient { color: var(--text); font-weight: 500; }

/* ─── Active nav link underline ─────────────────────────── */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--text); }

/* ─── Service card left-border accent on hover ───────────── */
.service-card {
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 0;
  background: var(--accent);
  transition: height 0.4s var(--ease-out);
}
.service-card:hover::before { height: 100%; }

/* ─── Back to top button ─────────────────────────────────── */
.back-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 800;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease,
              background 0.2s, color 0.2s, border-color 0.2s;
  pointer-events: none;
}
.back-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}
.back-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
@media (max-width: 640px) {
  .back-top { bottom: 1.25rem; right: 1.25rem; width: 40px; height: 40px; font-size: 1rem; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   Breakpoints: 960px (tablet), 640px (mobile), 400px (small phone)
   ═══════════════════════════════════════════════════════ */

/* ── Tablet ─────────────────────────────────────────────── */
@media (max-width: 960px) {
  /* Sections — reduce vertical breathing room */
  #about, #work, #services, #contact {
    padding-top:    clamp(3.5rem, 8vw, 6rem);
    padding-bottom: clamp(3.5rem, 8vw, 6rem);
  }

  /* About — stack vertically */
  .about-grid  { grid-template-columns: 1fr; gap: 2.5rem; }

  /* Services — single column */
  .services-grid { grid-template-columns: 1fr; }

  /* Contact — stack vertically */
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

  /* Work chapter header: hide badge, tighten grid */
  .chapter-header { grid-template-columns: auto 1fr; gap: 1.25rem; }
  .chapter-badge  { display: none; }
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 640px) {

  /* Nav */
  .nav-links, .nav-cta { display: none; }
  .hamburger            { display: flex; }
  .mobile-menu          { display: flex; }

  /* Hero */
  #hero {
    padding: calc(var(--nav-h) + 2rem) 1.25rem 3.5rem;
    min-height: 100svh;
  }
  /* Give the name maximum width on mobile */
  .hero-content { padding: 0 0.75rem; }
  .hero-eyebrow   { font-size: 0.65rem; letter-spacing: 0.14em; margin-bottom: 1rem; }
  /* "ASHWIN SV" = ~9.5 char units at Syne 800 ≈ 1.0× em width each.
     8vw × 9.5 = 76vw — stays inside the padded container on all phones. */
  .hero-name      { font-size: clamp(1.4rem, 8vw, 3.5rem); margin-bottom: 1.25rem; }
  .hero-name-sv   { -webkit-text-stroke-width: 1.5px; }
  .hero-tagline   { font-size: 0.9rem; margin-bottom: 2rem; }
  .hero-actions   { flex-direction: column; align-items: center; gap: 0.9rem; }
  .btn-primary,
  .btn-ghost      { width: 100%; max-width: 260px; justify-content: center; text-align: center; }
  .hero-scroll    { bottom: 1.5rem; }

  /* About */
  .about-grid     { gap: 2rem; }
  .about-text     { font-size: 0.9rem; }
  .about-stats    { gap: 1rem; flex-wrap: wrap; padding: 1.5rem 0; }
  .stat-num       { font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .stat-label     { font-size: 0.68rem; }
  .about-tags     { gap: 0.4rem; }
  .tag            { font-size: 0.7rem; padding: 0.3rem 0.65rem; }

  /* Work — film roll */
  #work > .container  { margin-bottom: 2rem; }
  .work-chapter       { padding: 2rem 0 0.5rem; }
  .chapter-header     { grid-template-columns: 1fr; gap: 0.5rem;
                        padding: 0 1.25rem 1.25rem; }
  .chapter-num        { display: none; }
  .chapter-title      { font-size: 1.2rem; }
  .chapter-category   { font-size: 0.62rem; }
  .chapter-desc       { font-size: 0.82rem; line-height: 1.65;
                        display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
                        -webkit-box-orient: vertical; overflow: hidden; }
  .film-pair          { gap: 8px; padding-bottom: 1.75rem; }
  .film-card          { width: clamp(130px, 36vw, 175px); }

  /* Services */
  .service-card { padding: 1.5rem 1.25rem; }
  .service-card h3 { font-size: 1.05rem; }

  /* Contact */
  .contact-grid       { gap: 2rem; }
  .contact-links      { gap: 0.6rem; }
  .contact-link       { padding: 0.9rem 1rem; }
  .contact-link-value { font-size: 0.85rem; }
  .form-group         { padding-top: 1rem; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .footer-top { margin-top: 0.25rem; }

  /* Lightbox */
  .lb-img-wrap { max-width: 96vw; max-height: 75vh; }
  .lb-close    { top: 0.75rem; right: 0.75rem; width: 38px; height: 38px; font-size: 0.95rem; }
  .lb-prev     { left: 0.4rem; width: 38px; height: 38px; font-size: 1rem; }
  .lb-next     { right: 0.4rem; width: 38px; height: 38px; font-size: 1rem; }
  .lb-info     { font-size: 0.75rem; }

  /* Section typography */
  .section-title { font-size: clamp(1.75rem, 7vw, 2.5rem); }
}

/* ── Small phones ────────────────────────────────────────── */
@media (max-width: 400px) {
  /* 7.5vw × 9.5 chars = 71vw — safe on 320-400px screens */
  .hero-name    { font-size: clamp(1.25rem, 7.5vw, 2rem); }
  .film-card    { width: clamp(120px, 38vw, 155px); }
  .about-stats  { gap: 0.75rem; }
  .stat-num     { font-size: 1.6rem; }
}

/* ── Prefers reduced motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-hero  { animation: none; transition: none; opacity: 1; transform: none; }
  .film-track            { animation: none !important; }
  .film-card             { transition: none !important; }
  .marquee-track         { animation: none; }
  .scroll-line           { animation: none; }
}
