:root {
  --charcoal: #5C3C28;       /* espresso brown — primary type */
  --charcoal-soft: #7A5A45;  /* softer espresso for secondary type */
  --paper: #FBF6EE;          /* cream ground */
  --paper-deep: #F0E8DA;     /* slightly deeper cream */
  --line: rgba(92, 60, 40, .16);
  --muted: #8A7362;          /* warm muted brown-gray */
  --accent: #B46044;         /* terracotta / clay */
  --white: #FFFDF8;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--charcoal); background: var(--paper); font-family: var(--sans); line-height: 1.5; }
a { color: inherit; }
.container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { min-height: 140px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.wordmark img {
  display: block;
  height: 96px;
  width: auto;
  max-width: min(560px, 72vw);
  object-fit: contain;
}
.wordmark-primary { display: block; }
.header-note { color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.hero { padding: clamp(90px, 14vw, 170px) 0 150px; }
.eyebrow, .section-number, .gallery-kicker { color: var(--muted); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow { margin: 0 0 27px; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 780px; margin-bottom: 30px; font-family: var(--serif); font-size: clamp(48px, 7vw, 86px); font-weight: 400; letter-spacing: -.045em; line-height: .99; }
h1 em { color: var(--charcoal-soft); font-weight: 400; }
.hero-copy { max-width: 505px; margin-bottom: 36px; color: var(--charcoal-soft); font-size: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 9px; padding-bottom: 6px; border-bottom: 1px solid var(--accent); color: var(--charcoal); font-size: 13px; text-decoration: none; }
.text-link:hover { color: var(--accent); }
.text-link span { font-size: 18px; line-height: 10px; color: var(--accent); transition: transform .2s ease; }
.text-link:hover span { transform: translate(3px, -3px); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding: 28px 0 120px; border-top: 1px solid var(--line); }
.section-number { display: block; margin-bottom: 37px; color: var(--accent); }
.principles h2 { margin-bottom: 10px; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.principles p { max-width: 270px; margin: 0; color: var(--muted); font-size: 13px; }
.site-footer { display: flex; justify-content: space-between; padding: 22px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }

/* Gallery */
.gallery-shell { background: var(--paper); }
.gallery-header { padding: 38px 0 56px; }
.gallery-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 90px; }
.back-link { font-size: 12px; text-decoration: none; color: var(--muted); }
.back-link:hover { color: var(--accent); }
.gallery-title-row { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.gallery-kicker { margin-bottom: 15px; }
.gallery-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 6vw, 72px); letter-spacing: -.045em; line-height: .98; }
.gallery-meta { min-width: 210px; padding-bottom: 5px; text-align: right; }
.gallery-meta-label { display: block; margin-bottom: 4px; color: var(--muted); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.gallery-meta-value { font-family: var(--serif); font-size: 18px; }
.gallery-main { padding-bottom: 100px; }
.gallery-intro { display: flex; justify-content: space-between; gap: 35px; align-items: start; margin-bottom: 35px; }
.gallery-intro p { max-width: 520px; margin: 0; color: var(--charcoal-soft); font-size: 14px; }
.template-note { padding: 7px 10px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; white-space: nowrap; }
.photo-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.photo-button { position: relative; grid-column: span 4; min-height: 330px; padding: 0; border: 0; overflow: hidden; background: var(--paper-deep); cursor: pointer; }
.photo-button:nth-child(1), .photo-button:nth-child(6) { grid-column: span 8; }
.photo-button:nth-child(2), .photo-button:nth-child(3), .photo-button:nth-child(4), .photo-button:nth-child(5) { min-height: 270px; }
.photo-button img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.6,.2,1), filter .35s ease; }
.photo-button:hover img, .photo-button:focus-visible img { transform: scale(1.025); filter: brightness(.86); }
.photo-caption { position: absolute; right: 14px; bottom: 12px; left: 14px; color: var(--white); text-align: left; font-size: 11px; letter-spacing: .08em; opacity: 0; text-transform: uppercase; transition: opacity .25s ease; }
.photo-button:hover .photo-caption, .photo-button:focus-visible .photo-caption { opacity: 1; }
.video-slot { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; align-items: center; margin-top: 72px; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.video-copy h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.video-copy p { max-width: 370px; margin: 0; color: var(--muted); font-size: 13px; }
.video-placeholder { display: grid; min-height: 150px; place-items: center; background: var(--charcoal); color: var(--paper); }
.video-placeholder span { padding: 10px 14px; border: 1px solid rgba(251,246,238,.35); font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.access-panel { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; margin-top: 72px; padding: 25px 0; border-top: 1px solid var(--line); }
.access-panel h2 { margin: 0 0 4px; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.access-panel p { margin: 0; color: var(--muted); font-size: 12px; }
.access-form { display: flex; gap: 7px; }
.access-form input { width: 155px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--charcoal); font: inherit; font-size: 12px; }
.access-form button { padding: 11px 16px; border: 1px solid var(--charcoal); background: var(--charcoal); color: var(--paper); cursor: pointer; font: inherit; font-size: 12px; }
.access-form button:hover { background: var(--accent); border-color: var(--accent); }
.access-status { grid-column: 2; margin: -12px 0 0; color: var(--accent); font-size: 11px; text-align: right; }
.access-status.success { color: #61775c; }
.gallery-footer { margin-top: 30px; }

/* Lightbox */
.lightbox { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; padding: 35px; background: rgba(60, 40, 28, .94); }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: min(1100px, 92vw); max-height: 88vh; margin: 0; }
.lightbox img { display: block; max-width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox figcaption { padding-top: 14px; color: var(--paper); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.lightbox-close { position: absolute; top: 22px; right: 28px; border: 0; background: none; color: var(--paper); cursor: pointer; font-size: 32px; font-weight: 200; }

@media (max-width: 700px) {
  .container { width: min(100% - 38px, 1120px); }
  .site-header { min-height: 110px; }
  .wordmark img { height: 72px; }
  .header-note { display: none; }
  .hero { padding: 90px 0 110px; }
  .principles { grid-template-columns: 1fr; gap: 34px; padding-bottom: 90px; }
  .section-number { margin-bottom: 12px; }
  .site-footer { gap: 12px; flex-direction: column; }
  .gallery-header { padding-top: 25px; }
  .gallery-nav { margin-bottom: 70px; }
  .gallery-title-row, .gallery-intro { display: block; }
  .gallery-meta { margin-top: 22px; text-align: left; }
  .gallery-intro p { margin-bottom: 17px; }
  .photo-grid { gap: 8px; }
  .photo-button, .photo-button:nth-child(1), .photo-button:nth-child(6) { grid-column: span 12; min-height: 250px; }
  .video-slot, .access-panel { grid-template-columns: 1fr; gap: 20px; }
  .access-form { width: 100%; }
  .access-form input { flex: 1; width: auto; }
  .access-status { grid-column: 1; margin: -9px 0 0; text-align: left; }
}
