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

:root {
  --white: #ffffff;
  --black: #111111;
  --mid: #888888;
  --light: #e4e4e4;
  --xlight: #f5f5f5;
  --sans: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --nav-h: 60px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

/* ── Cursor ── */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--black);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: width .2s, height .2s, margin .2s;
  transform: translate(-4px, -4px);
}
.cursor.big {
  width: 36px; height: 36px;
  margin-left: -14px; margin-top: -14px;
  opacity: .15;
}

/* ── Nav ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
}
.nav-logo {
  font-size: 13px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--black); text-decoration: none; cursor: none;
}
.nav-right { display: flex; gap: 36px; }
.nav-link {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mid); text-decoration: none; cursor: none;
  transition: color .2s;
}
.nav-link:hover { color: var(--black); }

/* ── Hero ── */
.hero {
  padding: 72px 40px 56px;
  border-bottom: 1px solid var(--light);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-top: var(--nav-h);
}
.hero-title {
  font-size: clamp(40px, 6.5vw, 88px);
  font-weight: 300; line-height: 1; letter-spacing: -.03em;
}
.hero-title em { font-style: italic; }
.hero-side { flex-shrink: 0; text-align: right; }
.hero-role {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 10px;
}
.hero-desc {
  font-size: 13px; color: var(--mid);
  line-height: 1.7; max-width: 240px; text-align: right;
}

/* ── Filter Bar ── */
.filter-bar {
  display: flex; padding: 0 40px;
  border-bottom: 1px solid var(--light);
}
.fbtn {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mid); background: none; border: none;
  border-bottom: 2px solid transparent;
  padding: 16px 20px 14px; cursor: none;
  margin-bottom: -1px; transition: color .2s, border-color .2s;
}
.fbtn:first-child { padding-left: 0; }
.fbtn.on, .fbtn:hover { color: var(--black); border-bottom-color: var(--black); }

/* ── Grid ── */
.grid-wrap { padding: 32px 40px 64px; }
.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Card ── */
.card { display: block; text-decoration: none; color: inherit; cursor: none; }
.card-img {
  overflow: hidden; background: var(--xlight); aspect-ratio: 4/3;
}
.card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .7s cubic-bezier(.25,.46,.45,.94), opacity .35s;
}
.card:hover .card-img img { transform: scale(1.05); opacity: .82; }
.card-body { padding: 12px 0 0; }
.card-client { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.card-campaign { font-size: 12px; font-weight: 300; color: var(--mid); font-style: italic; }

/* ── About ── */
.about {
  border-top: 1px solid var(--light);
  padding: 72px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.about-label {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 28px;
}
.about-headline {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 300; line-height: 1.3; letter-spacing: -.02em;
}
.about-headline em { font-style: italic; }
.about-text { font-size: 14px; line-height: 1.85; color: #555; margin-bottom: 40px; }
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; border-top: 1px solid var(--light); padding-top: 28px;
}
.stat-n { font-size: 36px; font-weight: 300; letter-spacing: -.03em; line-height: 1; margin-bottom: 5px; }
.stat-l { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--mid); }

/* ── Footer ── */
footer {
  border-top: 1px solid var(--light);
  padding: 32px 40px;
  display: flex; justify-content: space-between; align-items: center;
}
.f-copy { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mid); }
.f-links { display: flex; gap: 28px; }
.f-links a {
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--mid); text-decoration: none; cursor: none; transition: color .2s;
}
.f-links a:hover { color: var(--black); }

/* ── Project Page ── */
.back-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mid); background: none; border: none;
  border-bottom: 1px solid var(--light);
  padding: 16px 40px; width: 100%; cursor: none; transition: color .2s;
  text-decoration: none;
}
.back-btn:hover { color: var(--black); }
.back-btn svg { width: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.proj-hero { width: 100%; aspect-ratio: 16/7; overflow: hidden; background: var(--xlight); }
.proj-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.proj-header {
  padding: 36px 40px 32px; border-bottom: 1px solid var(--light);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 40px;
}
.ph-cat { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mid); margin-bottom: 10px; }
.ph-title { font-size: clamp(24px, 3.5vw, 48px); font-weight: 300; letter-spacing: -.02em; line-height: 1.1; }
.ph-title em { font-style: italic; display: block; }
.ph-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.ptag { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--mid); border: 1px solid var(--light); padding: 4px 10px; }

.proj-overview {
  padding: 28px 40px; border-bottom: 1px solid var(--light); max-width: 800px;
}
.proj-overview p { font-size: 16px; font-weight: 300; line-height: 1.65; letter-spacing: -.01em; color: #333; }

/* ── Tabs ── */
.proj-tabs { display: flex; padding: 0 40px; border-bottom: 1px solid var(--light); }
.ptab {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mid); background: none; border: none;
  border-bottom: 2px solid transparent;
  padding: 16px 20px 14px; cursor: none;
  margin-bottom: -1px; transition: color .2s, border-color .2s;
}
.ptab:first-child { padding-left: 0; }
.ptab.on, .ptab:hover { color: var(--black); border-bottom-color: var(--black); }
.tpanel { display: none; padding: 32px 40px 64px; }
.tpanel.on { display: block; }

/* ── Images ── */
.img-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.img-grid img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: var(--xlight); }
.img-grid .full { grid-column: 1/-1; aspect-ratio: 21/9; }

/* ── Videos ── */
.vid-list { display: grid; gap: 12px; }
.vid-item {
  position: relative; aspect-ratio: 16/9;
  background: var(--xlight); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.vid-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.play {
  position: relative; z-index: 1;
  width: 52px; height: 52px;
  border: 1px solid rgba(0,0,0,.35); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.8);
}
.play::after {
  content: ''; width: 0; height: 0; border: 8px solid transparent;
  border-left: 14px solid var(--black); margin-left: 4px;
}
.vid-label {
  position: absolute; bottom: 16px; left: 20px; z-index: 1;
  font-size: 12px; font-weight: 500;
  background: rgba(255,255,255,.9); padding: 4px 10px;
}

/* ── Case Study ── */
.case-wrap { max-width: 660px; }
.cblock { margin-bottom: 48px; }
.c-eye { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); margin-bottom: 12px; }
.c-head { font-size: 20px; font-weight: 300; font-style: italic; line-height: 1.3; margin-bottom: 14px; }
.c-text { font-size: 14px; line-height: 1.9; color: #444; }
.result-box { background: var(--black); color: var(--white); padding: 40px; margin-top: 56px; }
.r-num { font-size: 64px; font-weight: 300; letter-spacing: -.04em; line-height: 1; margin-bottom: 14px; }
.r-text { font-size: 14px; line-height: 1.8; color: rgba(255,255,255,.6); max-width: 520px; }

/* ── Project Nav ── */
.proj-nav { border-top: 1px solid var(--light); display: grid; grid-template-columns: 1fr 1fr; }
.pnbtn {
  display: block; padding: 28px 40px; text-decoration: none;
  color: inherit; transition: background .2s;
  border-right: 1px solid var(--light); cursor: none;
}
.pnbtn:last-child { border-right: none; text-align: right; }
.pnbtn:hover { background: var(--xlight); }
.pn-lbl { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mid); margin-bottom: 6px; }
.pn-title { font-size: 13px; font-weight: 400; color: var(--black); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.card { opacity: 0; }
.card.in { animation: fadeUp .5s ease forwards; }

/* ── Responsive ── */
@media (max-width: 960px) {
  nav { padding: 0 20px; }
  .hero { padding: 48px 20px 40px; flex-direction: column; align-items: flex-start; }
  .hero-side { text-align: left; }
  .hero-desc { text-align: left; }
  .filter-bar, .grid-wrap, .about { padding-left: 20px; padding-right: 20px; }
  footer { padding: 24px 20px; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .back-btn, .proj-tabs, .proj-overview, .proj-header, .tpanel { padding-left: 20px; padding-right: 20px; }
  .proj-nav .pnbtn { padding: 24px 20px; }
}
@media (max-width: 580px) {
  .pgrid { grid-template-columns: 1fr; }
  .img-grid { grid-template-columns: 1fr; }
  .img-grid .full { aspect-ratio: 16/10; }
  footer { flex-direction: column; gap: 16px; align-items: flex-start; }
  .proj-header { flex-direction: column; }
  .ph-tags { justify-content: flex-start; }
}
