:root {
  --ink: #1c1712;
  --muted: #6d645b;
  --paper: #f4efe8;
  --card: #fbf8f4;
  --line: rgba(28, 23, 18, 0.12);
  --gold: #8a6a45;
  --shadow: 0 24px 60px rgba(40, 28, 16, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 300;
  letter-spacing: 0.02em;
}

img { width: 100%; height: 100%; object-fit: cover; display: block; }
a { color: inherit; text-decoration: none; }
button, a.cta { font-family: inherit; }

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  color: #f6f1ea;
  transition: background .2s ease, color .2s ease;
}
.nav.solid {
  background: rgba(244, 239, 232, 0.94);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  letter-spacing: 0.28em;
}
.nav-links { display: flex; gap: 22px; font-size: 13px; }
.nav-links a { opacity: 0.86; }
.nav-links a:hover { opacity: 1; }
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  position: relative;
}
.menu-btn span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1px;
  background: #f6f1ea;
}
.menu-btn span:first-child { top: 16px; }
.menu-btn span:last-child { top: 24px; }

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}
.hero-media { min-height: 100vh; }
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12vh 8vw 10vh;
  background: #efe7dc;
}
.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
h1, h2, h3 {
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
  margin: 0;
}
h1 {
  font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1.25;
  font-weight: 600;
}
.lede { margin: 22px 0 32px; color: var(--muted); font-size: 16px; }
.cta {
  align-self: flex-start;
  border: 1px solid var(--ink);
  padding: 12px 28px;
  letter-spacing: 0.28em;
  font-size: 13px;
}
.cta:hover { background: var(--ink); color: var(--paper); }

.section { padding: 96px 7vw; }
.section-head { margin-bottom: 36px; }
.section-head.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
h2 { font-size: clamp(32px, 3vw, 46px); }
.filter-label {
  color: var(--gold);
  letter-spacing: 0.18em;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.latest-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  grid-template-rows: 280px 280px;
  gap: 14px;
}
.shot {
  position: relative;
  overflow: hidden;
  background: #ddd;
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.shot.tall { grid-row: span 2; }
.shot.wide { grid-column: 2 / span 2; }
.shot .cap {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: #fff;
  font-size: 14px;
  text-shadow: 0 8px 18px rgba(0,0,0,.35);
}
.shot .cap span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.12em;
  opacity: 0.8;
}
.shot img { transition: transform .6s ease; }
.shot:hover img { transform: scale(1.04); }

.cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.cat-list li { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.cat-list a {
  display: flex;
  min-height: 92px;
  align-items: center;
  padding: 0 22px;
  font-family: "Noto Serif SC", serif;
  font-size: 22px;
}
.cat-list a:hover, .cat-list a.active { background: var(--ink); color: var(--paper); }

.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.work {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.work .frame { aspect-ratio: 4 / 5; overflow: hidden; background: #e7e0d6; }
.work .cap-row, .client-strip button span {
  display: flex;
  justify-content: space-between;
  padding: 12px 2px 0;
  font-size: 14px;
}
.work small { color: var(--muted); }
.client-strip button span { color: var(--muted); display: block; }

.client-strip {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 16px;
}
.client-strip figure, .client-strip button {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.client-strip img { aspect-ratio: 3 / 4; height: auto; }
.client-strip figcaption { margin-top: 10px; color: var(--muted); }

.contact-line { font-size: 18px; margin-top: 0; }
address { font-style: normal; line-height: 1.8; color: var(--muted); margin-bottom: 28px; }
.contact-actions, .dock {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.contact-actions a, .contact-actions button, .dock a, .dock button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
}
.contact-actions a:hover, .contact-actions button:hover,
.dock a:hover, .dock button:hover { border-color: var(--ink); }

.dock {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  flex-direction: column;
  width: 132px;
}
.dock a, .dock button { width: 100%; text-align: left; box-shadow: var(--shadow); }

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 7vw 110px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.foot span:first-child {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.24em;
  color: var(--ink);
}

.viewer {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(20, 16, 12, 0.92);
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  color: #f6f1ea;
}
.viewer[hidden] { display: none; }
.viewer figure { margin: 0; min-width: 0; }
.viewer img {
  width: min(920px, 100%);
  height: min(78vh, 820px);
  margin: 0 auto;
  object-fit: contain;
  background: transparent;
}
.viewer figcaption {
  display: flex;
  justify-content: space-between;
  width: min(920px, 100%);
  margin: 14px auto 0;
  font-size: 14px;
}
.viewer-close, .viewer-nav {
  border: 0;
  background: transparent;
  color: #f6f1ea;
  font-size: 36px;
  cursor: pointer;
}
.viewer-close { position: absolute; top: 12px; right: 18px; }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(28, 23, 18, 0.38);
  display: grid;
  place-items: center;
  padding: 24px;
}
.sheet[hidden] { display: none; }
.sheet-card {
  width: min(420px, 100%);
  background: var(--card);
  padding: 28px 26px 26px;
  position: relative;
  box-shadow: var(--shadow);
}
.sheet-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}
.sheet h3 { font-size: 26px; margin-bottom: 12px; }
.sheet p { color: var(--muted); line-height: 1.7; }
.qr {
  width: 160px;
  height: 160px;
  margin: 8px 0 12px;
  background:
    linear-gradient(90deg, #1c1712 12px, transparent 12px) 0 0 / 20px 20px,
    linear-gradient(#1c1712 12px, transparent 12px) 0 0 / 20px 20px,
    #f4efe8;
  border: 8px solid #fff;
  box-shadow: inset 0 0 0 8px #1c1712;
}
.chat-log { display: grid; gap: 8px; margin: 12px 0; }
.bubble {
  background: #efe7dc;
  padding: 10px 12px;
  width: fit-content;
  max-width: 100%;
}
.bubble.mine { margin-left: auto; background: var(--ink); color: var(--paper); }
.chat-form { display: flex; gap: 8px; }
.chat-form input {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  font: inherit;
}
.chat-form button, .copy-btn {
  border: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 14px;
  cursor: pointer;
}

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { mix-blend-mode: normal; background: rgba(244, 239, 232, 0.92); color: var(--ink); }
  .menu-btn span { background: var(--ink); }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .hero, .latest-grid, .works, .client-strip, .cat-list { grid-template-columns: 1fr; }
  .hero-media { min-height: 62vh; }
  .shot.tall, .shot.wide { grid-row: auto; grid-column: auto; }
  .latest-grid { grid-template-rows: none; }
  .shot { height: 320px; }
  .dock {
    right: 0;
    left: 0;
    bottom: 0;
    width: auto;
    flex-direction: row;
    flex-wrap: nowrap;
    background: rgba(251, 248, 244, 0.96);
    border-top: 1px solid var(--line);
    padding: 8px;
    gap: 6px;
  }
  .dock a, .dock button {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    box-shadow: none;
    text-align: center;
    font-size: 12px;
    line-height: 1.3;
    padding: 8px 2px;
    white-space: normal;
  }
  .foot { flex-direction: column; padding-bottom: 92px; }
  .viewer { grid-template-columns: 44px 1fr 44px; }
}
