:root {
  --paper: #EFEBE3;
  --paper-deep: #E4DED3;
  --ink: #23211D;
  --ink-soft: #5E584F;
  --olive: #5A6447;
  --rule: #CFC7BA;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
}
.site-head.on-photo { position: fixed; left: 0; right: 0; background: transparent; backdrop-filter: none; color: #F7F3EC; }
.site-head.on-photo.scrolled { background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(6px); color: var(--ink); }
.wordmark { font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.nav { display: flex; gap: 26px; font-family: var(--sans); font-size: 15px; }
.nav a { text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }
.nav-toggle { display: none; font: 500 15px var(--sans); background: none; border: 0; color: inherit; padding: 6px 0; cursor: pointer; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--rule); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--rule); }
  .nav a:last-child { border-bottom: 0; }
}

/* Home hero */
.hero { position: relative; height: 100svh; min-height: 560px; overflow: hidden; background: #2B2723; color: #F7F3EC; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,17,14,.62) 0%, rgba(20,17,14,.18) 48%, rgba(20,17,14,0) 70%), linear-gradient(to bottom, rgba(20,17,14,.42) 0%, rgba(20,17,14,0) 22%); }
.hero h1, .hero p { text-shadow: 0 2px 24px rgba(20,17,14,.35); }
.site-head.on-photo:not(.scrolled) { text-shadow: 0 1px 12px rgba(20,17,14,.4); }
.hero-text { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(24px, 6vh, 64px); }
.hero h1 { margin: 0; font-weight: 300; font-size: clamp(56px, 13vw, 210px); line-height: .86; letter-spacing: -0.035em; }
.hero p { margin: 18px 0 0; max-width: 34ch; font-family: var(--sans); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.5; opacity: .92; }

/* Generic blocks */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.intro { padding: clamp(64px, 10vw, 140px) 0 clamp(40px, 6vw, 80px); }
.intro p { margin: 0; max-width: 30ch; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.18; font-weight: 300; letter-spacing: -0.01em; }

/* Section index on home */
.index { border-top: 1px solid var(--rule); }
.index a {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 16px;
  padding: clamp(18px, 2.6vw, 30px) 0; border-bottom: 1px solid var(--rule); text-decoration: none;
}
.index .t { font-size: clamp(36px, 6.4vw, 104px); line-height: 1; font-weight: 300; letter-spacing: -0.03em; transition: color .2s, padding-left .25s; }
.index .n { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); }
.index a:hover .t, .index a:focus-visible .t { color: var(--olive); padding-left: .25em; }
.index .peek { position: absolute; right: 12%; top: 50%; width: clamp(180px, 22vw, 340px); transform: translateY(-50%) rotate(-1.5deg); opacity: 0; pointer-events: none; transition: opacity .2s; box-shadow: 0 12px 30px rgba(35,33,29,.25); z-index: 3; }
.index a:hover .peek { opacity: 1; }
.index .thumbs { display: none; }
@media (hover: none), (max-width: 860px) {
  .index .peek { display: none; }
  .index a { grid-template-columns: 1fr; }
  .index .thumbs { display: flex; gap: 6px; margin-top: 12px; }
  .index .thumbs img { width: 31%; aspect-ratio: 4 / 5; object-fit: cover; }
}

.pair { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; padding: clamp(72px, 10vw, 150px) 0; }
.pair img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--paper-deep); }
.pair h2 { margin: 0 0 20px; font-weight: 300; font-size: clamp(34px, 4vw, 58px); line-height: 1.05; letter-spacing: -0.02em; }
.pair p { max-width: 42ch; margin: 0 0 16px; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }

.btn {
  display: inline-block; margin-top: 12px; padding: 14px 26px; font: 500 16px var(--sans);
  background: var(--ink); color: var(--paper); text-decoration: none; border: 1px solid var(--ink); border-radius: 999px; cursor: pointer;
}
.btn:hover { background: var(--olive); border-color: var(--olive); }
.link { font-family: var(--sans); font-size: 16px; text-underline-offset: 4px; }

/* Gallery pages */
.page-head { padding: clamp(48px, 8vw, 120px) 0 clamp(28px, 4vw, 56px); display: grid; grid-template-columns: 1fr minmax(0, 36ch); gap: 32px; align-items: end; }
.page-head h1 { margin: 0; font-weight: 300; font-size: clamp(48px, 9vw, 150px); line-height: .9; letter-spacing: -0.035em; }
.page-head p { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .page-head { grid-template-columns: 1fr; } }

.gallery { columns: 3 340px; column-gap: clamp(10px, 1.4vw, 20px); padding-bottom: 40px; }
.gallery button { display: block; width: 100%; padding: 0; margin: 0 0 clamp(10px, 1.4vw, 20px); border: 0; background: var(--paper-deep); cursor: zoom-in; break-inside: avoid; }
.gallery img { width: 100%; height: auto; }

.next { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--rule); padding: 32px 0 64px; font-family: var(--sans); }
.next a { text-decoration: none; }
.next .big { display: block; font-family: var(--serif); font-size: clamp(28px, 4vw, 52px); font-weight: 300; letter-spacing: -0.02em; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(24,22,19,.96); display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb img { max-width: 92vw; max-height: 86vh; width: auto; height: auto; }
.lb button { position: absolute; background: none; border: 0; color: #EFEBE3; font: 400 15px var(--sans); padding: 16px; cursor: pointer; }
.lb .close { top: 8px; right: 8px; }
.lb .prev { left: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; }
.lb .nxt { right: 4px; top: 50%; transform: translateY(-50%); font-size: 28px; }
.lb .count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #A9A196; font: 13px var(--sans); }

/* Prose pages */
.prose { max-width: 66ch; padding-bottom: clamp(64px, 8vw, 120px); }
.prose h2 { font-weight: 400; font-size: 30px; margin: 48px 0 12px; letter-spacing: -0.01em; }
.prose p { margin: 0 0 18px; }
.prose ul { padding-left: 1.1em; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); padding-bottom: clamp(64px, 8vw, 120px); }
.split img { width: 100%; object-fit: cover; background: var(--paper-deep); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Form */
form.inq { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; max-width: 760px; }
form.inq .full { grid-column: 1 / -1; }
form.inq label { display: block; font: 500 14px var(--sans); color: var(--ink-soft); margin-bottom: 6px; }
form.inq input, form.inq select, form.inq textarea {
  width: 100%; font: 18px var(--serif); color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--ink-soft); padding: 8px 0; border-radius: 0;
}
form.inq textarea { min-height: 140px; resize: vertical; }
form.inq input:focus, form.inq select:focus, form.inq textarea:focus { outline: none; border-bottom: 2px solid var(--olive); }
.form-status { font-family: var(--sans); font-size: 16px; min-height: 1.5em; }
@media (max-width: 640px) { form.inq { grid-template-columns: 1fr; } }

/* Footer */
.site-foot { background: var(--ink); color: #D9D2C6; padding: clamp(48px, 7vw, 96px) 0 32px; font-family: var(--sans); font-size: 15px; }
.site-foot .big { font-family: var(--serif); color: var(--paper); font-weight: 300; font-size: clamp(34px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 28px; max-width: 16ch; }
.site-foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; border-top: 1px solid #45403A; margin-top: 48px; padding-top: 20px; }
.site-foot a { color: var(--paper); }
.site-foot .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.site-foot .btn:hover { background: #C9D0B8; border-color: #C9D0B8; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

form.inq .fld { min-width: 0; }
form.inq .err { margin: 6px 0 0; font: 14px var(--sans); color: #9B3B2A; min-height: 0; }
form.inq .err:empty { display: none; }
form.inq .hint { margin: 6px 0 0; font: 14px var(--sans); color: var(--ink-soft); }
form.inq [aria-invalid="true"] { border-bottom-color: #9B3B2A; }
form.inq .actions { display: flex; gap: 20px; align-items: center; }
form.inq button.link { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; color: var(--ink); }
form.inq .btn[disabled] { opacity: .6; cursor: progress; }
.sent { font-size: clamp(24px, 3vw, 36px); font-weight: 300; line-height: 1.25; max-width: 24ch; margin: 0; }
/* Photo strip (from option 1) */
.strip { background: var(--ink); padding: 30px 0; position: relative; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; margin-bottom: clamp(48px, 7vw, 96px); }
.strip::-webkit-scrollbar { display: none; }
.strip::before, .strip::after { content: ""; position: absolute; left: 0; width: 8000px; height: 10px;
  background: repeating-linear-gradient(90deg, transparent 0 14px, var(--paper) 14px 24px, transparent 24px 32px); opacity: .9; }
.strip::before { top: 10px; } .strip::after { bottom: 10px; }
.frames { display: flex; gap: 12px; padding: 0 var(--gutter); width: max-content; }
.frame { height: clamp(220px, 44vh, 440px); scroll-snap-align: start; background: #2E2A25; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
