:root {
  --bg: #0f0e0c;
  --bg-soft: #181613;
  --paper: #efe9df;
  --ink: #1b1916;
  --text: #e9e3d8;
  --muted: #a39b8e;
  --line: rgba(233, 227, 216, .16);
  --accent: #c9a46a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --kb-duration: 14s;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; margin: 0; line-height: 1.05; }
em { font-style: italic; }

.eyebrow {
  font: 500 11px/1 var(--sans);
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

.btn {
  display: inline-block;
  font: 500 12px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text);
  background: none;
  border: 1px solid var(--line);
  padding: 16px 28px;
  cursor: pointer;
  text-decoration: none;
  transition: background .3s, color .3s, border-color .3s;
}
.btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-light { border-color: rgba(27, 25, 22, .3); color: var(--ink); }
.btn-light:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- Ken Burns ---------- */
.kb-frame { position: relative; overflow: hidden; }
.kb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: var(--kb-origin, 50% 50%);
  animation: kenburns var(--kb-duration) ease-in-out infinite alternate;
  animation-play-state: var(--kb-state, running);
  will-change: transform;
}
.kb-slow { --kb-duration: 26s; }
@keyframes kenburns {
  from { transform: scale(var(--kb-from, 1)) translate(0, 0); }
  to   { transform: scale(var(--kb-to, 1.18)) translate(var(--kb-x, 2%), var(--kb-y, -2%)); }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  transition: background .4s, padding .4s;
}
.site-header.scrolled {
  background: rgba(15, 14, 12, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: block; height: 84px; transition: height .4s, opacity .3s; filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .35)); }
.brand:hover { opacity: .8; }
.brand .logo { display: block; height: 100%; width: auto; }
.site-header.scrolled .brand { height: 58px; }
.site-nav { display: flex; gap: clamp(16px, 3vw, 40px); }
.site-nav a {
  font: 500 12px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--accent); transition: right .35s;
}
.site-nav a:hover::after { right: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 2s ease; }
.hero-slide.active { opacity: 1; }
.hero-slide .kb { --kb-duration: 9s; animation-iteration-count: 1; animation-fill-mode: both; animation-name: none; }
.hero-slide.active .kb,
.hero-slide.leaving .kb { animation-name: kenburns; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(15,14,12,.55) 0%, rgba(15,14,12,0) 28%),
    linear-gradient(0deg, rgba(15,14,12,.85) 0%, rgba(15,14,12,.1) 55%);
}
.hero-content {
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: clamp(72px, 12vh, 130px);
}
.hero h1 {
  font-size: clamp(56px, 11vw, 168px);
  letter-spacing: -.01em;
  line-height: .9;
}
.hero h1 em { color: var(--paper); font-weight: 300; }
.hero-lead { font: italic 300 clamp(18px, 2vw, 24px)/1.4 var(--serif); color: var(--text); margin: 22px 0 0; opacity: .9; }
.hero-credit {
  font: 500 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--muted); margin: 26px 0 0;
}
.hero-credit strong { color: var(--text); font-weight: 500; }
.hero-counter {
  position: absolute; right: var(--gutter); bottom: clamp(72px, 12vh, 130px);
  font: 500 12px/1 var(--sans); letter-spacing: .2em; color: var(--muted);
}
.hero-counter span:first-child { color: var(--text); }
.scroll-cue {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%);
  width: 1px; height: 48px; background: var(--line); overflow: hidden;
}
.scroll-cue span {
  position: absolute; left: 0; top: -50%; width: 1px; height: 50%;
  background: var(--text); animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue { to { top: 100%; } }

/* ---------- Sections ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(44px, 7vw, 96px); }
.section-lead { color: var(--muted); font-size: 17px; margin: 22px 0 0; max-width: 560px; }

.work { padding: clamp(96px, 14vw, 180px) var(--gutter) clamp(72px, 10vw, 140px); }

/* Masonry grid via columns */
.grid { columns: 4 260px; column-gap: 14px; }
.tile {
  display: block;
  break-inside: avoid;
  margin: 0 0 14px;
  cursor: zoom-in;
  background: var(--bg-soft);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s ease, transform .9s ease;
}
.tile.visible { opacity: 1; transform: none; }
.tile .kb { --kb-duration: 16s; transition: filter .5s; filter: saturate(.92); }
.tile:hover .kb { filter: saturate(1.08) brightness(1.05); }
.tile:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
.grid-more { text-align: center; margin-top: 48px; }
.grid-more[hidden] { display: none; }

/* ---------- Atelier ---------- */
.atelier {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--paper);
  color: var(--ink);
  min-height: 90vh;
}
.atelier-media { min-height: 420px; }
.atelier-media .kb { position: absolute; inset: 0; --kb-duration: 20s; }
.atelier-text {
  padding: clamp(56px, 8vw, 120px) clamp(24px, 6vw, 96px);
  align-self: center;
  max-width: 620px;
}
.atelier-text .eyebrow { color: #8b6a36; }
.atelier-text h2 { font-size: clamp(40px, 5vw, 72px); margin-bottom: 32px; }
.atelier-text p { color: #4a4540; font-size: 17px; }
.atelier-text .btn { margin-top: 24px; }

/* ---------- Contact ---------- */
.contact { position: relative; padding: clamp(96px, 14vw, 180px) var(--gutter); overflow: hidden; }
.contact-bg { position: absolute; inset: 0; }
.contact-bg .kb { position: absolute; inset: 0; }
.contact-bg::after { content: ""; position: absolute; inset: 0; background: rgba(15, 14, 12, .84); }
.contact-inner { position: relative; max-width: 1280px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.3fr;
  border-top: 1px solid var(--line);
}
.contact-item { padding: 32px 28px 32px 0; border-bottom: 1px solid var(--line); }
.contact-item + .contact-item { padding-left: 28px; border-left: 1px solid var(--line); }
.contact-item h3 {
  font: 500 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.contact-item p { margin: 0 0 6px; font-size: 16px; }
.link-big { font: 400 clamp(20px, 1.7vw, 25px)/1.3 var(--serif); text-decoration: none; overflow-wrap: anywhere; border-bottom: 1px solid var(--line); transition: border-color .3s; }
.link-big:hover { border-color: var(--accent); }
.link { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--muted); text-decoration: none; }
.link:hover { color: var(--text); }
.contact-social { display: flex; gap: 32px; margin-top: 48px; }
.contact-social a {
  font: 500 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--muted);
}
.contact-social a:hover { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 28px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--muted);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 7, 6, .97); }
.lightbox[hidden] { display: none; }
.lb-stage { position: absolute; inset: 56px 72px; overflow: hidden; }
.lb-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  --kb-from: 1; --kb-to: 1.08; --kb-duration: 12s;
  opacity: 0; transition: opacity .6s ease;
}
.lb-stage img.loaded { opacity: 1; }
.lb-btn {
  position: absolute; background: none; border: 0; color: var(--text);
  font: 300 44px/1 var(--serif); cursor: pointer; padding: 12px 18px; opacity: .7;
  transition: opacity .2s;
}
.lb-btn:hover { opacity: 1; }
.lb-close { top: 6px; right: 12px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 12px; letter-spacing: .2em; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .atelier { grid-template-columns: 1fr; min-height: 0; }
  .atelier-media { min-height: 60vh; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-item:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 600px) {
  .brand { height: 60px; }
  .site-header.scrolled .brand { height: 46px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 10px; letter-spacing: .12em; }
  .grid { columns: 2; column-gap: 8px; }
  .tile { margin-bottom: 8px; }
  .hero-counter { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-item, .contact-item + .contact-item { padding: 24px 0; border-left: 0; }
  .lb-stage { inset: 56px 0 48px; }
  .lb-prev, .lb-next { top: auto; bottom: 0; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .kb, .hero-slide.active .kb { animation: none !important; transform: none; }
  .tile { transition: none; opacity: 1; transform: none; }
  .scroll-cue span { animation: none; }
}
