/* FIRST CORNER MEDIA — minimal white / thin black type / orange hover */
:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-40: rgba(10, 10, 10, 0.4);
  --ink-60: rgba(10, 10, 10, 0.62);
  --line: rgba(10, 10, 10, 0.12);
  --accent: #ff4d00;
  --pad: clamp(20px, 4vw, 64px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }

/* ---------- header ---------- */
#siteHeader {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--pad);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo {
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.34em;
}
.logo-dot { color: var(--accent); padding: 0 0.1em; }
#siteHeader nav { display: flex; gap: clamp(18px, 3vw, 44px); }
#siteHeader nav a {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-60);
  transition: color 0.25s;
  position: relative;
}
#siteHeader nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
#siteHeader nav a:hover { color: var(--accent); }
#siteHeader nav a:hover::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero {
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 0 var(--pad);
  position: relative;
  box-sizing: border-box;
}
.hero-content {
  flex: 1;
}
.hero-image {
  flex: 1.1;
  height: calc(100% - 180px);
  background: #f4f4f4;
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-kicker {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: 3.2rem;
}
.hero-title {
  font-weight: 200;
  font-size: clamp(32px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  display: flex;
  flex-direction: column;
}
.accent-dot { color: var(--accent); }
.hero-meta {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.hero-scroll svg { animation: drop 2.2s ease infinite; color: var(--ink-40); }
@keyframes drop {
  0%, 100% { transform: translateY(-2px); opacity: 0.4; }
  50% { transform: translateY(3px); opacity: 1; }
}

/* ---------- sections ---------- */
.section { padding: clamp(70px, 10vw, 150px) var(--pad) 0; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px 40px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 26px;
  margin-bottom: 44px;
}
.section-head h2 {
  font-weight: 200;
  font-size: clamp(30px, 4.4vw, 58px);
  letter-spacing: -0.01em;
}
.section-note {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-40);
}

/* filters */
.filters { display: flex; flex-wrap: wrap; gap: 10px 30px; }
.filters button {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-40);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.filters button:hover { color: var(--accent); }
.filters button.active { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- projects grid (masonry) ---------- */
.projects-grid {
  columns: 3;
  column-gap: 26px;
}
.project-card {
  break-inside: avoid;
  margin-bottom: 44px;
  cursor: pointer;
}
.project-card .card-img {
  overflow: hidden;
  background: #f4f4f4;
}
.project-card img {
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1), opacity 0.5s;
  opacity: 0;
}
.project-card img.loaded { opacity: 1; }
.project-card:hover img { transform: scale(1.025); }
.project-card .card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 12px;
  font-size: 13px;
}
.project-card .card-name { font-weight: 400; transition: color 0.25s; }
.project-card:hover .card-name { color: var(--accent); }
.project-card .card-count { font-size: 11px; color: var(--ink-40); letter-spacing: 0.12em; }
.project-card .card-cat {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-40);
  display: block;
  padding-top: 3px;
}

/* ---------- films ---------- */
.films-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.film-card { cursor: pointer; }
.film-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f4f4f4;
}
.film-poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.6, 0.2, 1), opacity 0.5s;
  opacity: 0;
}
.film-poster img.loaded { opacity: 1; }
.film-card:hover .film-poster img { transform: scale(1.03); }
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-btn span {
  width: 62px; height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(2px);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}
.play-btn svg { fill: #fff; margin-left: 3px; transition: fill 0.3s; }
.film-card:hover .play-btn span {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}
.film-card .film-meta { padding-top: 12px; }
.film-card .film-title {
  font-size: 13px;
  font-weight: 400;
  transition: color 0.25s;
}
.film-card:hover .film-title { color: var(--accent); }
.film-card .film-sub {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-40);
  padding-top: 3px;
}

/* ---------- about ---------- */
.about { padding-bottom: clamp(60px, 8vw, 120px); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
}
.about-grid h2 {
  font-weight: 200;
  font-size: clamp(30px, 4.4vw, 58px);
}
.about-lead { font-size: clamp(19px, 2.2vw, 26px); font-weight: 200; line-height: 1.5; margin-bottom: 1.4rem; max-width: 34ch; }
.about-lead em { font-style: normal; border-bottom: 1px solid var(--accent); }
.about-body p:not(.about-lead) { color: var(--ink-60); max-width: 52ch; margin-bottom: 2.4rem; }
.about-list { list-style: none; margin-bottom: 3rem; }
.about-list li {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
}
.about-list li::after { content: '—'; color: var(--accent); font-weight: 200; }
.about-contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  transition: color 0.25s, border-color 0.25s;
}
.about-contact:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.team-photo {
  aspect-ratio: 3 / 4;
  background: #f4f4f4;
  margin-bottom: 16px;
  width: 100%;
}
.team-name {
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 4px;
}
.team-role {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-40);
}

/* ---------- footer ---------- */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 30px;
  padding: 30px var(--pad) 36px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-40);
}
footer a:hover { color: var(--accent); }

/* ---------- project overlay ---------- */
.project-view {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--bg);
  overflow-y: auto;
  animation: slideUp 0.45s cubic-bezier(0.2, 0.6, 0.2, 1);
}
@keyframes slideUp {
  from { transform: translateY(3%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.project-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px var(--pad);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-60);
  justify-self: start;
  transition: color 0.25s;
}
.back-btn:hover { color: var(--accent); }
.project-title { font-weight: 400; font-size: 14px; letter-spacing: 0.04em; }
.project-count { font-size: 11px; color: var(--ink-40); letter-spacing: 0.18em; justify-self: end; }
.project-gallery {
  columns: 2;
  column-gap: 24px;
  padding: 40px var(--pad) 80px;
}
.project-gallery img {
  width: 100%;
  margin-bottom: 24px;
  cursor: zoom-in;
  opacity: 0;
  transition: opacity 0.5s;
}
.project-gallery img.loaded { opacity: 1; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img {
  max-width: calc(100vw - 140px);
  max-height: calc(100vh - 120px);
  object-fit: contain;
  animation: fadeIn 0.35s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lb-close {
  position: absolute;
  top: 26px; right: var(--pad);
  color: var(--ink-60);
  transition: color 0.25s, transform 0.25s;
  z-index: 3;
}
.lb-close:hover { color: var(--accent); transform: rotate(90deg); }
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-60);
  padding: 20px 14px;
  transition: color 0.25s;
}
.lb-nav:hover { color: var(--accent); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-counter {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--ink-40);
}

/* ---------- video modal ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
}
.video-frame {
  position: relative;
  width: min(1100px, 88vw);
  aspect-ratio: 16 / 9;
  background: #000;
  animation: fadeIn 0.35s ease;
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.vm-close { color: rgba(255, 255, 255, 0.85); position: absolute; }
.vm-close:hover { color: var(--accent); }
.video-caption {
  position: relative;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-top: 20px;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero { flex-direction: column; justify-content: center; gap: 20px; padding-top: 80px; padding-bottom: 80px; }
  .hero-content { display: flex; flex-direction: column; justify-content: center; }
  .hero-image { width: 100%; flex: 1; min-height: 0; height: auto; }
  .projects-grid { columns: 2; }
  .films-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .projects-grid { columns: 1; }
  .project-gallery { columns: 1; }
  .films-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .lightbox img { max-width: calc(100vw - 40px); }
  .hero-meta span:nth-child(3) { display: none; }
  .project-topbar { grid-template-columns: auto 1fr auto; }
  .team-grid { grid-template-columns: 1fr; gap: 40px; }
}
