/* ymdshots - dark, cinematic. Change the accent in ONE place: --accent */
:root {
  --bg: #0b0c0f;
  --surface: #111317;
  --text: #ece8e1;
  --muted: #b9b6b0;
  --muted-2: #8d8f95;
  --accent: #d9a05b;
  --line: rgba(236, 232, 225, .14);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, picture { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -.01em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--text); }
p { margin: 0 0 1em; }
section[id] { scroll-margin-top: 24px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--accent); color: #17120a; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.eyebrow { font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 1.1rem; }
.placeholder { color: var(--muted-2); font-size: .95rem; border-left: 2px solid var(--accent); padding-left: 12px; }
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34em; }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.btn, .pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font-weight: 500; font-size: .98rem; text-decoration: none; letter-spacing: .01em;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.btn-fill { background: var(--accent); color: #17120a; border: 1px solid var(--accent); }
.btn-fill:hover { background: #e6b273; border-color: #e6b273; }
.btn-line { border: 1px solid rgba(236, 232, 225, .4); color: var(--text); }
.btn-line:hover { border-color: var(--text); background: rgba(236, 232, 225, .06); }
.pill { min-height: 44px; padding: 0 20px; border: 1px solid var(--accent); color: var(--accent); font-size: .9rem; }
.pill:hover { background: var(--accent); color: #17120a; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; font-weight: 500; }
.textlink:hover { color: #e6b273; }
.inline { color: var(--accent); text-underline-offset: 3px; }

/* Hero */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-img, .hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { z-index: -2; }
.hero-img img { object-fit: cover; object-position: 50% 62%; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, rgba(11,12,15,.55) 0, rgba(11,12,15,0) 22%),
    linear-gradient(to right, rgba(11,12,15,.7) 0, rgba(11,12,15,.15) 55%, rgba(11,12,15,0) 80%),
    linear-gradient(to top, var(--bg) 0, rgba(11,12,15,.8) 14%, rgba(11,12,15,0) 55%);
}
.nav { position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 20px; padding-block: 14px; }
.wordmark { font-family: var(--serif); font-size: 1.7rem; text-decoration: none; letter-spacing: -.01em; min-height: 44px; display: inline-flex; align-items: center; margin: 0; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-size: .95rem; color: var(--text); }
.nav-links a:hover { color: var(--accent); }
@media (max-width: 600px) {
  .nav-links { order: 3; width: 100%; margin: 0 -12px; }
}
.hero-copy { position: relative; z-index: 2; padding-top: 140px; padding-bottom: clamp(48px, 8vh, 96px); }
.hero h1 { font-size: clamp(2.7rem, 8.4vw, 6.6rem); line-height: .98; max-width: 11em; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero .lede { margin-top: 1.4rem; color: var(--text); opacity: .88; }
@media (max-width: 480px) { .hero h1 br { display: none; } }

/* Sections */
main > section { padding-block: clamp(64px, 11vw, 150px); }
h2 { font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1.02; }

/* Series */
.series { display: grid; gap: clamp(28px, 5vw, 80px); align-items: center; padding-top: clamp(24px, 5vw, 60px); }
@media (min-width: 760px) { .series { grid-template-columns: 1.35fr 1fr; } }
.series-photo { margin: 0; background: var(--surface); }
.series-photo img { width: 100%; height: auto; max-height: 86vh; object-fit: cover; }
.series-text p { color: var(--muted); max-width: 30em; }
.series-text h2 { margin-bottom: 1.2rem; }

/* Gallery */
.work-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; margin-bottom: clamp(28px, 4vw, 52px); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  min-height: 44px; padding: 0 20px; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  font: 500 .9rem/1 var(--sans); transition: all .25s;
}
.filters button:hover { color: var(--text); border-color: rgba(236,232,225,.5); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #17120a; }
.grid { columns: 1; column-gap: 16px; }
@media (min-width: 600px) { .grid { columns: 2; column-gap: 18px; } }
@media (min-width: 1040px) { .grid { columns: 3; column-gap: 22px; } }
.tile {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
  margin: 0 0 18px; break-inside: avoid; overflow: hidden; background: var(--surface);
  color: inherit; text-align: left; border-radius: 3px;
  animation: rise .7s cubic-bezier(.2,.7,.2,1) both;
}
@media (min-width: 1040px) { .tile { margin-bottom: 22px; } }
.tile img { width: 100%; height: auto; transition: transform .9s cubic-bezier(.2,.7,.2,1), filter .5s; }
.tile::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgba(11,12,15,.82), rgba(11,12,15,0)); pointer-events: none; transition: opacity .4s; }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px 18px 15px; display: flex; flex-direction: column; gap: 2px; }
.tag { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.cap-title { font-family: var(--serif); font-size: 1.4rem; line-height: 1.1; color: var(--text); }
@media (hover: hover) {
  .tile:hover img { transform: scale(1.035); filter: brightness(1.06); }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Guides */
.cards { display: grid; gap: 20px; margin-top: clamp(28px, 4vw, 52px); }
@media (min-width: 760px) { .cards { grid-template-columns: 1fr 1fr; gap: 28px; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: clamp(26px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; min-height: 320px; }
.card h3 { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; margin: 1.6rem 0 1rem; }
.card p { color: var(--muted); max-width: 26em; }
.card .btn { margin-top: auto; }
.badge { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.badge-on { color: var(--accent); border-color: var(--accent); }

/* About */
.about { display: grid; gap: clamp(28px, 5vw, 80px); align-items: center; }
@media (min-width: 860px) { .about { grid-template-columns: 5fr 7fr; } }
.portrait { aspect-ratio: 4 / 5; max-width: 460px; width: 100%; background: var(--surface); border: 1px dashed rgba(236,232,225,.3); border-radius: 4px; display: grid; place-items: center; color: var(--muted-2); font-size: .95rem; }
.about-text p { color: var(--muted); max-width: 32em; }
.about-text h2 { margin-bottom: 1.2rem; }

/* Contact */
.contact { text-align: center; border-top: 1px solid var(--line); }
.contact .lede { margin-inline: auto; }
.contact .btns { justify-content: center; }
.contact h2 { font-size: clamp(2.6rem, 7vw, 5.4rem); margin-bottom: 1.2rem; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding-block: 36px; color: var(--muted-2); font-size: .92rem; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; align-items: center; }
.footer p { margin: 0; }
.footer .wordmark { font-size: 1.3rem; color: var(--muted); min-height: 0; }

/* Scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(6,7,9,.96); display: flex; align-items: center; justify-content: center; animation: fade .3s ease both; }
.lb[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lb-fig { margin: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 16px 16px; gap: 14px; }
.lb-imgwrap { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; }
.lb-imgwrap img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: opacity .3s; border-radius: 2px; }
.lb-imgwrap img.swap { opacity: 0; }
.lb figcaption { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; justify-content: center; text-align: center; padding-inline: 56px; min-height: 52px; }
.lb-title { font-family: var(--serif); font-size: 1.5rem; }
.lb-cap, .lb-count { color: var(--muted); font-size: .9rem; }
.lb-count { color: var(--muted-2); }
.lb-btn { position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: rgba(17,19,23,.8); color: var(--text); cursor: pointer; display: grid; place-items: center; transition: border-color .2s, color .2s; }
.lb-btn:hover { border-color: var(--accent); color: var(--accent); }
.lb-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { top: 50%; margin-top: -24px; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
@media (max-width: 700px) {
  .lb-prev, .lb-next { top: auto; bottom: 8px; margin: 0; }
  .lb figcaption { padding-inline: 0; padding-bottom: 54px; }
}
body.lb-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
