:root {
  --bg: #121110;
  --bg-soft: #1c1b17;
  --ink: #f5f2ec;
  --ink-soft: #948e80;
  --line: rgba(245, 242, 236, 0.14);
  --accent: #c8663d;
  --card-bg: #201f1a;
  --header-h: 84px;

  --display: "Unbounded", -apple-system, sans-serif;
  --sans: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Space Mono", "SF Mono", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 500;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), height 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.is-solid {
  background: rgba(18, 17, 16, 0.88);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
  height: 68px;
}

.header__inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.hero .header__logo,
.header:not(.is-solid) .header__logo,
.header:not(.is-solid) .header__nav a {
  color: #fff;
}

.header__nav {
  display: flex;
  gap: 40px;
}

.header__nav a {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 4px;
}

.header__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.35s var(--ease);
}

.header__nav a:hover::after { width: 100%; }

.header__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.header__menu-btn span {
  display: block;
  height: 1px;
  background: currentColor;
  color: inherit;
}

.header:not(.is-solid) .header__menu-btn { color: #fff; }
.header.is-solid .header__menu-btn { color: var(--ink); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateY(-100%);
  transition: transform 0.5s var(--ease);
}

.mobile-nav.is-open { transform: translateY(0); }

.mobile-nav a {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.8rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 40px;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 9, 6, 0.55) 0%, rgba(10, 9, 6, 0.35) 45%, rgba(10, 9, 6, 0.75) 100%);
}

.hero__content {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  width: 100%;
  padding: 0 0;
}

.hero .eyebrow { color: rgba(255, 255, 255, 0.75); }

.hero h1 {
  font-size: clamp(2.2rem, 6.2vw, 4.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-family: var(--sans);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  max-width: 520px;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 36px;
  font-weight: 300;
}

.btn {
  display: inline-block;
  padding: 15px 34px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}

.btn:hover { background: #fff; color: var(--bg); }

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
}

.hero__scroll span {
  width: 1px;
  height: 46px;
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  position: relative;
}

.hero__scroll span::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

.hero__scroll small {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Sections shared */
main section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 140px 40px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 64px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.01em;
}

/* Work grid */
.work { padding-top: 130px; }

.work__group + .work__group {
  margin-top: 90px;
}

.work__group-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 24px;
}

.work__group-head h3 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  white-space: nowrap;
}

.work__group-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.work__group-count {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.work__item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--card-bg);
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

.work__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.work__item:hover img { transform: scale(1.06); }

.work__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 9, 6, 0.82) 0%, rgba(10, 9, 6, 0) 55%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.work__item:hover::before { opacity: 1; }

.work__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px;
  color: #fff;
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}

.work__item:hover .work__info {
  transform: translateY(0);
  opacity: 1;
}

.work__info .cat {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 6px;
}

.work__info .ttl {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 1.1rem;
}

.work__item--featured {
  grid-column: span 2;
  grid-row: span 2;
}

/* About */
.about { background: var(--bg-soft); }

.about__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: 60px;
}

.about__label h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); }

.about__lead {
  font-family: var(--sans);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
}

.about__text p { color: var(--ink-soft); }
.about__text p strong { color: var(--ink); font-weight: 500; }

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.about__tags span {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}

/* Contact */
.contact { text-align: center; }

.contact__inner { max-width: 800px; margin: 0 auto; }

.contact h2 {
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}

.contact__email {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.contact__email:hover { color: var(--accent); border-color: var(--accent); }

.contact__links {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 24px;
}

.contact__links a {
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}

.contact__links a:hover { color: var(--ink); border-color: var(--ink); }

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 40px 44px;
  max-width: 1320px;
  margin: 0 auto;
  font-size: 0.78rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
}

.footer a:hover { color: var(--ink); }

/* Lightbox */
body.no-scroll { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 9, 6, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__figure {
  margin: 0;
  max-width: 1100px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox__figure figcaption {
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.lightbox__figure .cat {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.lightbox__figure .ttl {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.05rem;
  color: #fff;
}

.lightbox__figure .count {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.3s var(--ease);
}

.lightbox__close:hover { opacity: 1; }

.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
  padding: 10px 18px;
  transition: opacity 0.3s var(--ease);
}

.lightbox__arrow:hover { opacity: 1; }
.lightbox__arrow--prev { left: 8px; }
.lightbox__arrow--next { right: 8px; }

@media (max-width: 700px) {
  .lightbox { padding: 24px; }
  .lightbox__figure figcaption { flex-direction: column; gap: 4px; }
  .lightbox__arrow { font-size: 2.2rem; padding: 8px 10px; }
  .lightbox__close { top: 14px; right: 16px; }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .header__inner { padding: 0 24px; }
  .header__nav { display: none; }
  .header__menu-btn { display: flex; }

  main section { padding: 100px 24px; }

  .work__grid { grid-template-columns: repeat(2, 1fr); }
  .work__item--featured { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/10; }

  .about__grid { grid-template-columns: 1fr; gap: 28px; }

  .footer { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 560px) {
  .work__grid { grid-template-columns: 1fr; }
  .work__item--featured { grid-column: span 1; }
  .hero { padding: 0 24px; align-items: flex-start; }
}
