/* VSN Collective — Proximity-inspired redesign */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Syne:wght@500;600;700;800&display=swap");

:root {
  --bg: #050505;
  --fg: #f5f5f5;
  --muted: #f10000;
  --accent: #e0e0e0;
  --border: rgba(255, 0, 0, 0.08);
  --card: #0d0d0d;
  --card-hover: #141414;
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-display: "Syne", system-ui, sans-serif;
  --header-h: 72px;
  --gutter: 24px;
}
@media(min-width:768px) { :root { --gutter: 48px; --header-h: 80px; } }
@media(min-width:1200px) { :root { --gutter: 64px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-weight: 400; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto }
a { color: inherit; text-decoration: none }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer }
input, textarea { font: inherit; color: inherit }
::selection { background: var(--fg); color: var(--bg) }
ul, ol { list-style: none }

/* ===== Utility ===== */
.container { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter) }
.eyebrow {
  font-family: var(--font-body); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .35em; color: var(--muted);
}
.muted { color: var(--muted) }

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled, .header.menu-open {
  background: rgba(5,5,5,.85); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
}
.brand {
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: .18em; font-size: 14px; white-space: nowrap;
  display: inline-flex; align-items: center;
}
.brand-logo {
  height: 28px; width: auto; display: block;
}
@media(min-width:768px) { .brand { font-size: 16px } .brand-logo { height: 34px } }
.menu-btn {
  width: 44px; height: 44px; display: inline-flex; align-items: center;
  justify-content: center; transition: opacity .2s;
}
.menu-btn:hover { opacity: .6 }
.menu-btn svg { width: 22px; height: 22px }

/* ===== Overlay nav ===== */
.overlay {
  position: fixed; inset: 0; background: var(--bg); z-index: 90;
  display: none; flex-direction: column; opacity: 0;
  transition: opacity .5s var(--ease);
}
.overlay.open { display: flex; opacity: 1 }
.overlay nav {
  flex: 1; display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  gap: 8px; padding: var(--header-h) var(--gutter) 0;
}
.overlay nav a {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 8vw, 88px); line-height: 1.05; letter-spacing: -.03em;
  opacity: 0; transform: translateY(24px);
  transition: color .2s;
}
.overlay nav a:hover { color: var(--muted) }
.overlay.open nav a { animation: slideUp .6s var(--ease) forwards }
.overlay.open nav a:nth-child(1) { animation-delay: .08s }
.overlay.open nav a:nth-child(2) { animation-delay: .14s }
.overlay.open nav a:nth-child(3) { animation-delay: .20s }
.overlay.open nav a:nth-child(4) { animation-delay: .26s }
.overlay.open nav a:nth-child(5) { animation-delay: .32s }
@keyframes slideUp { to { opacity: 1; transform: translateY(0) } }

.overlay-foot {
  border-top: 1px solid var(--border); padding: 28px var(--gutter);
  display: flex; flex-direction: column; gap: 12px;
  color: var(--muted); font-size: 13px;
}
@media(min-width:768px) {
  .overlay-foot { flex-direction: row; justify-content: space-between; align-items: flex-end }
}
.overlay-foot a { color: var(--fg) }
.overlay-foot a:hover { opacity: .6 }

/* ===== Hero — full-screen video ===== */
.hero {
  position: relative; width: 100%; height: 100vh; min-height: 600px;
  overflow: hidden; background: var(--bg);
}
.hero-media {
  position: absolute; inset: 0; z-index: 1;
}
.hero-media video,
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5,5,5,.55) 0%,
    rgba(5,5,5,.2) 40%,
    rgba(5,5,5,.4) 70%,
    var(--bg) 100%
  );
}
.hero-content {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) 80px;
  max-width: 1440px; margin: 0 auto;
}
@media(min-width:768px) { .hero-content { padding-bottom: 120px } }
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(44px, 10vw, 120px); line-height: .92; letter-spacing: -.04em;
  max-width: 14ch;
}
.hero-sub {
  margin-top: 32px; display: flex; flex-direction: column; gap: 20px;
}
@media(min-width:768px) {
  .hero-sub { flex-direction: row; align-items: flex-end; justify-content: space-between }
}
.hero-sub p { max-width: 26rem; color: var(--muted); font-size: 16px; line-height: 1.6 }

/* ===== Buttons ===== */
.btn-line {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase;
  padding-bottom: 6px; border-bottom: 1px solid var(--fg);
  transition: gap .3s var(--ease), opacity .2s;
}
.btn-line:hover { gap: 18px; opacity: .75 }

.btn-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  padding: 14px 32px; border: 1px solid var(--border);
  transition: all .3s var(--ease);
}
.btn-pill:hover { background: var(--fg); color: var(--bg); border-color: var(--fg) }

/* ===== Sections ===== */
section { position: relative }
.section-pad { padding: 120px 0 }
@media(min-width:768px) { .section-pad { padding: 160px 0 } }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 64px; flex-wrap: wrap;
}
.section-header h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.03em;
  font-size: clamp(36px, 6vw, 72px); line-height: 1;
}

/* ===== "The Latest" — Proximity-style featured row ===== */
.featured-list {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
}
.featured-item {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 24px 0; transition: background .3s;
  text-decoration: none; color: var(--fg);
}
@media(min-width:768px) {
  .featured-item {
    grid-template-columns: 1fr 1fr auto;
    align-items: center; padding: 28px 0;
  }
}
.featured-item:hover { background: rgba(255,255,255,.02) }
.featured-item .fi-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 3.5vw, 44px); letter-spacing: -.02em; line-height: 1.1;
}
.featured-item .fi-cat {
  font-size: 10px; font-weight: 600; letter-spacing: .3em;
  text-transform: uppercase; color: var(--muted); margin-top: 4px;
}
@media(min-width:768px) { .featured-item .fi-cat { margin-top: 0 } }
.featured-item .fi-arrow {
  font-size: 24px; color: var(--muted); transition: color .2s, transform .3s var(--ease);
  display: none;
}
@media(min-width:768px) { .featured-item .fi-arrow { display: block } }
.featured-item:hover .fi-arrow { color: var(--fg); transform: translateX(6px) }

/* ===== Project Grid — video hover ===== */
.grid-projects { display: grid; gap: 20px; row-gap: 48px }
@media(min-width:768px) { .grid-projects { grid-template-columns: 1fr 1fr; row-gap: 64px } }

.project { display: block; text-decoration: none; color: var(--fg) }
.project .frame {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: #111; cursor: pointer;
}
.project .frame video,
.project .frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease), opacity .6s;
}
.project .frame video {
  position: absolute; inset: 0; opacity: 0; z-index: 2;
}
.project:hover .frame video { opacity: 1 }
.project:hover .frame img { transform: scale(1.03) }

.project .frame-overlay {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(to top, rgba(5,5,5,.7) 0%, transparent 50%);
  opacity: 0; transition: opacity .4s;
  display: flex; align-items: flex-end; padding: 24px;
}
.project:hover .frame-overlay { opacity: 1 }
.frame-overlay .play-icon {
  width: 48px; height: 48px; border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px); background: rgba(255,255,255,.1);
  transition: transform .3s var(--ease);
}
.project:hover .play-icon { transform: scale(1.08) }
.play-icon svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px }

.project-meta {
  margin-top: 16px; display: flex; align-items: baseline;
  justify-content: space-between; gap: 16px;
}
.project-meta h3 {
  font-family: var(--font-display); font-weight: 600;
  letter-spacing: -.01em; font-size: 20px;
}
.project-meta .tag {
  font-size: 10px; font-weight: 600; letter-spacing: .25em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
@media(min-width:768px) {
  .project:nth-child(even) { margin-top: 80px }
}

/* ===== Video lightbox / modal ===== */
.video-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.92); backdrop-filter: blur(20px);
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .4s var(--ease);
}
.video-modal.active { display: flex; opacity: 1 }
.video-modal-inner {
  width: 90vw; max-width: 1100px; aspect-ratio: 16/9;
  position: relative;
}
.video-modal-inner iframe,
.video-modal-inner video {
  width: 100%; height: 100%; border: 0;
}
.video-modal-close {
  position: absolute; top: -48px; right: 0;
  width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px; cursor: pointer; transition: opacity .2s;
}
.video-modal-close:hover { opacity: .6 }

/* ===== Statement / marquee ===== */
.statement {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 120px var(--gutter);
}
@media(min-width:768px) { .statement { padding: 180px var(--gutter) } }
.statement p {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(24px, 4.5vw, 52px); line-height: 1.15;
  max-width: 1200px; margin: 0 auto;
}

/* ===== CTA ===== */
.cta {
  text-align: center; padding: 120px var(--gutter);
}
@media(min-width:768px) { .cta { padding: 180px var(--gutter) } }
.cta h2 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.04em;
  font-size: clamp(44px, 8vw, 112px); line-height: .95;
}

/* ===== Page heads ===== */
.page-head { padding: calc(var(--header-h) + 80px) 0 0 }
@media(min-width:768px) { .page-head { padding-top: calc(var(--header-h) + 120px) } }
.page-head h1 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.04em;
  font-size: clamp(48px, 9vw, 112px); line-height: .95; max-width: 16ch;
  margin-top: 20px;
}

/* ===== Services ===== */
.services { border-top: 1px solid var(--border) }
.services li {
  display: grid; grid-template-columns: 1fr;
  gap: 8px; border-bottom: 1px solid var(--border);
  padding: 28px 0; transition: background .3s;
}
@media(min-width:768px) {
  .services li {
    grid-template-columns: 60px 1fr 1fr; gap: 24px;
    align-items: center; padding: 36px 0;
  }
}
.services li:hover { background: rgba(255,255,255,.02) }
.services .num {
  font-size: 10px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted); font-weight: 600;
}
.services .title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(24px, 3vw, 40px);
}
.services .desc { color: var(--muted); font-size: 15px; line-height: 1.5 }

/* ===== About ===== */
.about-grid { display: grid; gap: 48px; margin-top: 80px }
@media(min-width:768px) { .about-grid { grid-template-columns: 5fr 7fr; gap: 64px } }
.about-grid .photo { aspect-ratio: 4/5; overflow: hidden; background: #111 }
.about-grid .photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.8) }
.about-text { display: flex; flex-direction: column; gap: 28px }
@media(min-width:768px) { .about-text { padding-top: 40px } }
.about-text .lead {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.02em;
  font-size: clamp(20px, 2.2vw, 28px); line-height: 1.3;
}
.about-text p { color: var(--muted); font-size: 16px; line-height: 1.7 }
.stats {
  margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; border-top: 1px solid var(--border); padding-top: 32px;
}
.stats .n { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 3.5vw, 44px) }
.stats .l { font-size: 10px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-top: 6px }

/* ===== Contact ===== */
.contact-grid { display: grid; gap: 48px; margin-top: 80px }
@media(min-width:768px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 80px } }
.contact-info { display: flex; flex-direction: column; gap: 40px }
.contact-info .label {
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px; font-weight: 600;
}
.contact-info a.big {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(20px, 2.4vw, 28px); transition: opacity .2s;
}
.contact-info a.big:hover { opacity: .6 }

.form { display: flex; flex-direction: column; gap: 36px }
.field { border-bottom: 1px solid var(--border); transition: border-color .3s }
.field:focus-within { border-color: var(--fg) }
.field label {
  display: block; font-size: 10px; letter-spacing: .3em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 600;
}
.field input, .field textarea {
  width: 100%; background: transparent; border: 0;
  padding-bottom: 12px; font-size: 17px; outline: none; resize: none;
}

/* ===== Project detail page ===== */
.project-hero {
  position: relative; width: 100%;
  padding-top: calc(var(--header-h) + 60px);
}
.project-hero-media {
  width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #111;
  margin-top: 40px;
}
.project-hero-media iframe,
.project-hero-media video {
  width: 100%; height: 100%; border: 0; object-fit: cover;
}
.project-detail { padding: 64px 0 120px }
.project-detail h1 {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.04em;
  font-size: clamp(40px, 7vw, 80px); line-height: .95;
}
.project-detail .desc {
  margin-top: 24px; color: var(--muted); font-size: 17px;
  line-height: 1.7; max-width: 600px;
}
.project-credits {
  margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 32px; border-top: 1px solid var(--border); padding-top: 32px;
}
.credit-item .credit-label {
  font-size: 10px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px; font-weight: 600;
}
.credit-item .credit-value { font-size: 15px; font-weight: 500 }

/* ===== Footer ===== */
footer { border-top: 1px solid var(--border); background: var(--bg) }
.footer-inner { max-width: 1440px; margin: 0 auto; padding: 72px var(--gutter) 36px }
.footer-grid { display: grid; gap: 40px }
@media(min-width:768px) { .footer-grid { grid-template-columns: repeat(3, 1fr) } }
.footer-grid .brand-block {
  font-family: var(--font-display); font-weight: 800;
  letter-spacing: .15em; font-size: 18px;
}
.footer-grid p { margin-top: 12px; color: var(--muted); font-size: 13px; max-width: 18rem; line-height: 1.6 }
.footer-grid .label {
  font-size: 10px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px; font-weight: 600;
}
.subscribe { display: flex; border-bottom: 1px solid var(--border); transition: border-color .3s }
.subscribe:focus-within { border-color: var(--fg) }
.subscribe input {
  flex: 1; background: transparent; border: 0; padding: 10px 0;
  outline: none; font-size: 13px; color: var(--fg);
}
.subscribe input::placeholder { color: var(--muted) }
.subscribe button {
  font-size: 10px; letter-spacing: .25em; text-transform: uppercase;
  font-weight: 600; transition: opacity .2s;
}
.subscribe button:hover { opacity: .6 }

.socials { display: flex; gap: 12px }
@media(min-width:768px) { .right { text-align: right } .socials { justify-content: flex-end } }
.socials a {
  width: 36px; height: 36px; border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .25s var(--ease);
}
.socials a:hover { border-color: var(--fg); background: var(--fg); color: var(--bg) }
.socials svg { width: 14px; height: 14px }

.footer-bottom {
  margin-top: 64px; border-top: 1px solid var(--border); padding-top: 28px;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted);
}
@media(min-width:768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center }
}
.footer-bottom .links { display: flex; gap: 24px }
.footer-bottom a:hover { color: var(--fg) }

/* ===== Reveal ===== */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: none }

/* ===== Scroll cue ===== */
.scroll-cue {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.scroll-cue span {
  font-size: 9px; letter-spacing: .4em; text-transform: uppercase; color: var(--muted);
}
.scroll-line {
  width: 1px; height: 40px; background: var(--border); position: relative; overflow: hidden;
}
.scroll-line::after {
  content: ""; position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%; background: var(--fg);
  animation: scrollPulse 2s var(--ease) infinite;
}
@keyframes scrollPulse { 0% { top: -100% } 50% { top: 0 } 100% { top: 100% } }

/* ===== Noise overlay for cinematic texture ===== */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 256px;
  opacity: .4;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important }
  .reveal { opacity: 1; transform: none }
}
