:root {
  --bg: #121212;
  --bg-soft: #181818;
  --text: #e5e5e5;
  --muted: #a8a29e;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

.case-page {
  min-height: 100vh;
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0));
}

.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.03;
  background-image: url('https://grainy-gradients.vercel.app/noise.svg');
}

.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 32px;
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled {
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav-btn,
.nav-share {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a8a29e;
  border: 0;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 11px;
  font-weight: 800;
  transition: 0.3s ease;
}

.nav-btn:hover,
.nav-share:hover { color: white; }
.nav-btn:hover .icon { transform: translateX(-4px); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  font-style: italic;
}

.nav-share {
  border: 1px solid rgba(255,255,255,0.1);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  justify-content: center;
  padding: 0;
}

.nav-share:hover {
  background: white;
  color: black;
}

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
}

.hero-media,
.hero-media::after,
.hero-media::before {
  position: absolute;
  inset: 0;
}

.hero-media {
  overflow: hidden;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: grayscale(0.5);
  transform: scale(1.03);
}

.hero-media::after {
  content: "";
  background: linear-gradient(to bottom, rgba(18,18,18,0.1), rgba(18,18,18,0.45) 48%, rgba(18,18,18,0.95));
}

.hero-media::before {
  content: "";
  background: radial-gradient(circle at 50% 25%, rgba(255,255,255,0.10), transparent 42%);
  mix-blend-mode: screen;
}

.hero-inner {
  position: relative;
  z-index: 10;
  width: min(1400px, 100%);
  text-align: center;
}

.kicker {
  display: inline-block;
  margin-bottom: 20px;
  color: #a8a29e;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5em;
}

.hero-title {
  margin: 0;
  font-size: clamp(56px, 10vw, 160px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  font-weight: 900;
  color: #f5f5f4;
}

.scroll-indicator {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #78716c;
  animation: bounce 2.4s infinite;
}

.scroll-indicator span {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.scroll-indicator i {
  display: block;
  width: 1px;
  height: 48px;
  background: #292524;
}

.section {
  position: relative;
  z-index: 10;
  padding: 128px 32px;
}

.wrap-1400 { width: min(1400px, calc(100vw - 64px)); margin: 0 auto; }
.wrap-1600 { width: min(1600px, calc(100vw - 64px)); margin: 0 auto; }
.wrap-1000 { width: min(1000px, calc(100vw - 64px)); margin: 0 auto; }

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
}

.meta-stack { display: grid; gap: 44px; }
.meta-block small,
.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: #78716c;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.meta-block p {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
}

.tag {
  display: inline-flex;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.intro-copy h2 {
  margin: 0 0 28px;
  font-size: clamp(34px, 4.5vw, 64px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.intro-copy h2 span { color: #78716c; }
.intro-copy p {
  max-width: 760px;
  margin: 0;
  color: #a8a29e;
  font-size: 22px;
  line-height: 1.8;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.gallery-card {
  border-radius: 48px;
  overflow: hidden;
  background: #1c1917;
  position: relative;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: grayscale(0.3);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover img {
  transform: scale(1.05);
  filter: grayscale(0);
}

.gallery-large { grid-column: span 7; }
.gallery-small { grid-column: span 5; }
.gallery-wide { grid-column: 1 / -1; height: min(80vh, 900px); }

.detail-section {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 156px;
  padding-bottom: 156px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
}

.detail-card h3 {
  margin: 0 0 20px;
  color: #78716c;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.38em;
  font-style: italic;
}

.detail-card p {
  margin: 0;
  color: #d6d3d1;
  line-height: 1.9;
  font-size: 18px;
}

.next-project {
  padding-top: 96px;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.next-project .label {
  display: block;
  margin-bottom: 24px;
  color: #78716c;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5em;
}

.next-project h2 {
  margin: 0 0 28px;
  font-size: clamp(48px, 9vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 900;
  color: #e7e5e4;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.next-project a:hover h2 { color: white; }
.next-meta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #78716c;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.next-meta .icon { transition: transform 0.3s ease; }
.next-project a:hover .icon { transform: translate(8px, -8px); }

.footer {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 64px 32px 48px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: #57534e;
  font-size: 10px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer a:hover { color: #d6d3d1; }

.reveal {
  opacity: 0;
  transform: translateY(50px);
  filter: blur(10px);
  animation: reveal 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.18s; }
.delay-2 { animation-delay: 0.34s; }

.list-page {
  min-height: 100vh;
  position: relative;
  background: radial-gradient(circle at top, rgba(255,255,255,0.05), transparent 40%), var(--bg);
}

.list-wrap {
  position: relative;
  z-index: 10;
  width: min(1400px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 160px 0 80px;
}

.list-head small {
  display: inline-block;
  color: #a8a29e;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.list-head h1 {
  margin: 0 0 18px;
  font-size: clamp(54px, 10vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 900;
  text-transform: uppercase;
}

.list-head p {
  max-width: 820px;
  margin: 0 0 64px;
  font-size: 22px;
  line-height: 1.8;
  color: #a8a29e;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.case-card {
  position: relative;
  display: block;
  min-height: 540px;
  overflow: hidden;
  border-radius: 40px;
  background: #1c1917;
  border: 1px solid rgba(255,255,255,0.05);
}

.case-card img {
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-card:hover img {
  transform: scale(1.06);
  filter: grayscale(0);
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,18,18,0.95), rgba(18,18,18,0.35) 38%, rgba(18,18,18,0.05));
}

.case-card-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 28px;
}

.case-card small {
  display: block;
  margin-bottom: 12px;
  color: #a8a29e;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.case-card h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 900;
  text-transform: uppercase;
}

.case-card p {
  margin: 0 0 18px;
  color: #c7c2bd;
  line-height: 1.7;
}

.case-card .more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a8a29e;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.26em;
}

.case-card:hover .more { color: white; }
.case-card:hover .more .icon { transform: translateX(8px); }
.case-card .more .icon { transition: transform 0.3s ease; }

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(50px);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 1100px) {
  .intro-grid,
  .detail-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-large,
  .gallery-small,
  .gallery-wide {
    grid-column: auto;
    height: auto;
  }

  .gallery-wide img,
  .gallery-large img,
  .gallery-small img {
    min-height: 300px;
  }
}

@media (max-width: 720px) {
  .nav,
  .section,
  .hero,
  .footer { padding-left: 20px; padding-right: 20px; }
  .nav { gap: 12px; }
  .brand span { display: none; }
  .nav-btn span { display: none; }
  .hero { min-height: 82vh; }
  .scroll-indicator { bottom: 28px; }
  .intro-copy p { font-size: 18px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 20px; }
  .list-wrap { width: min(1400px, calc(100vw - 40px)); padding-top: 132px; }
  .wrap-1400, .wrap-1600, .wrap-1000 { width: min(1600px, calc(100vw - 40px)); }
  .gallery-card { border-radius: 28px; }
  .case-card { min-height: 460px; border-radius: 28px; }
}
