:root {
  --bg: #0b0d10; --bg2: #12151a; --bg3: #181c22; --line: #262b33; --text: #e9e4d8; --muted: #a39d90; --dim: #6f6a60;
  --gold: #c6a774; --gold2: #e2c48f; --bad: #e07a6a;
  --serif: "Cormorant Garamond", Georgia, serif; --sans: "IBM Plex Sans", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans); }
body.noscroll { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold2); outline-offset: 2px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 16px clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--line); background: rgba(11, 13, 16, .92); backdrop-filter: blur(8px); }
.brand { font: 600 28px/1 var(--serif); letter-spacing: .01em; text-decoration: none; }
.brand i, h3 i { color: var(--gold); font-style: italic; font-weight: 500; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav .ext span { color: var(--gold); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; flex: none; }
.lang button { background: transparent; color: var(--muted); border: 0; font: 500 12px/1 var(--mono); letter-spacing: .08em; padding: 8px 11px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--gold); color: #17130c; }

main { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.hero { padding: clamp(44px, 8vw, 96px) 0 clamp(28px, 5vw, 56px); max-width: 860px; }
.kicker { margin: 0 0 16px; font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
h1 { margin: 0; font: 600 clamp(36px, 6vw, 62px)/1.05 var(--serif); letter-spacing: -.005em; text-wrap: balance; }
.lead { margin: 22px 0 0; max-width: 660px; color: var(--muted); font-size: 17px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.pill { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; font-size: 14px; color: var(--text); transition: border-color .2s, background .2s; }
.pill:hover { border-color: var(--gold); background: var(--bg2); }
.pill span { color: var(--gold); }

.sec { padding: clamp(28px, 5vw, 56px) 0; scroll-margin-top: 70px; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 26px; }
h2 { margin: 0; font: 600 clamp(30px, 4vw, 42px)/1.05 var(--serif); }
.sec-note { margin: 0; color: var(--muted); font-size: 14px; max-width: 520px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; color: var(--muted); cursor: pointer; }
.chips button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold2); }

/* gallery grid */
.grid { columns: 3 320px; column-gap: 14px; }
.ph { position: relative; display: block; margin: 0 0 14px; break-inside: avoid; border-radius: 8px; overflow: hidden; background: #000; border: 1px solid var(--line); text-decoration: none; }
.ph img { width: 100%; transition: transform .5s ease, opacity .3s; }
.ph:hover img { transform: scale(1.02); }
.ph .cap { position: absolute; inset: auto 0 0 0; padding: 26px 14px 11px; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); display: grid; gap: 1px; }
.ph .cap b { font: 600 20px/1.15 var(--serif); }
.ph .cap small { color: #cfc8b8; font-size: 12px; font-family: var(--mono); }
.ph.feat { border-color: rgba(198, 167, 116, .55); }
.empty { color: var(--muted); }

/* tools */
.tools { display: grid; gap: clamp(40px, 6vw, 80px); }
.tool { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.tool.flip .shot { order: 2; }
.shot { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; }
.shot img { width: 100%; transition: transform .6s ease; }
.shot:hover img { transform: scale(1.015); }
.num { margin: 0 0 6px; font: 400 12px/1 var(--mono); color: var(--dim); letter-spacing: .1em; }
h3 { margin: 0; font: 600 clamp(30px, 3.6vw, 42px)/1.05 var(--serif); }
.what { margin: 10px 0 18px; color: var(--gold2); font: 500 15px/1.4 var(--sans); }
.tool ul { margin: 0 0 26px; padding: 0; list-style: none; display: grid; gap: 10px; }
.tool li { position: relative; padding-left: 20px; color: var(--muted); font-size: 15px; }
.tool li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--gold); }
.go { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; background: var(--gold); color: #17130c; font: 600 14px/1 var(--sans); padding: 13px 18px; border-radius: 7px; transition: background .2s; border: 0; cursor: pointer; }
.go:hover { background: var(--gold2); }

.foot { border-top: 1px solid var(--line); padding: 28px clamp(16px, 4vw, 48px) 36px; color: var(--dim); font-size: 13px; }
.foot p { margin: 0 0 8px; max-width: 920px; }
.foot .who { color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.foot a { color: var(--muted); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 50; display: grid; grid-template-columns: 1fr minmax(320px, 400px); background: rgba(5, 6, 8, .97); }
.lb[hidden] { display: none; }
.lb-img { display: flex; align-items: center; justify-content: center; padding: 20px; min-height: 0; min-width: 0; }
.lb-img img { max-width: 100%; max-height: calc(100vh - 40px); object-fit: contain; }
.lb-side { border-left: 1px solid var(--line); background: var(--bg); overflow-y: auto; padding: 16px 24px 28px; }
.lb-bar { display: flex; gap: 6px; justify-content: flex-end; margin-bottom: 8px; }
.ib { width: 38px; height: 38px; border: 1px solid var(--line); background: var(--bg2); border-radius: 7px; cursor: pointer; font-size: 16px; }
.ib:hover { border-color: var(--gold); }
.d-cat { margin: 0; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.lb-side h2, .pv h2 { margin: 8px 0 4px; font-size: 32px; }
.d-meta { margin: 0 0 14px; color: var(--muted); font-size: 13px; font-family: var(--mono); }
.d-desc p { margin: 0 0 10px; color: #d6d0c3; font-size: 15px; }
.lb-side h3, .pv h3 { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 22px 0 8px; }
.d-acq { width: 100%; border-collapse: collapse; font-size: 13px; }
.d-acq th { text-align: left; font-weight: 500; color: var(--dim); padding: 4px 6px 6px 0; border-bottom: 1px solid var(--line); }
.d-acq td { padding: 7px 6px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-family: var(--mono); font-size: 12.5px; }
.d-acq td small { display: block; color: var(--dim); font-size: 11px; }
.d-acq tfoot td { color: var(--gold2); border-bottom: 0; }
.d-eq { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 14px; }
.d-eq dt { color: var(--dim); }
.d-eq dd { margin: 0; }
.d-links { display: flex; gap: 16px; margin: 22px 0 0; font-size: 14px; }
.d-links a { color: var(--gold2); text-decoration: none; }

@media (max-width: 900px) {
  .lb { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; }
  .lb-img { padding: 10px; }
  .lb-img img { max-height: 62vh; }
  .lb-side { border-left: 0; border-top: 1px solid var(--line); overflow: visible; }
}
@media (max-width: 820px) {
  .tool { grid-template-columns: 1fr; }
  .tool.flip .shot { order: 0; }
  .nav { gap: 14px; }
  .nav .ext { display: none; }
}
@media (max-width: 480px) { .top { gap: 12px; } .brand { font-size: 24px; } .nav { font-size: 13px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .shot img, .ph img { transition: none; } }
