:root {
  --bg: #f8f5f1;
  --paper: #ffffff;
  --ink: #0c0a09;
  --muted: #857c73;
  --line: #e7e0d6;
  --accent: #1f3a2c;
  --accent-ink: #f8f5f1;
  --deep: #1f3a2c;
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(250,247,242,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font: 600 26px/1 var(--serif); letter-spacing: .5px; text-decoration: none; white-space: nowrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo .lt { display: flex; flex-direction: column; line-height: 1; }
.logo .lt b { font: 600 22px/1 var(--serif); }
.logo .lt small { font: 500 9px/1.4 var(--sans); letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav { gap: 14px; font-size: 13px; } .nav .hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--paper); padding: 9px 16px; border-radius: 999px; cursor: pointer; text-decoration: none; font-size: 14px; white-space: nowrap; transition: .15s; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--deep); border-color: var(--deep); color: #fff; }
.btn.primary:hover { background: #222c25; }
.btn.gold { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.sm { padding: 6px 12px; font-size: 13px; }

/* ---------- Home ---------- */
.hero { padding: 96px 0 72px; text-align: center; }
.hero small { letter-spacing: 4px; text-transform: uppercase; color: var(--accent); font-size: 12px; }
.hero h1 { font: 500 clamp(44px, 8vw, 88px)/1.02 var(--serif); margin: 14px 0 18px; }
.hero p { color: var(--muted); max-width: 560px; margin: 0 auto 30px; font-size: 17px; }
.find { display: flex; gap: 8px; max-width: 520px; margin: 0 auto; }
.find input { flex: 1; min-width: 0; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); }
section.block { padding: 72px 0; border-top: 1px solid var(--line); }
section.block h2 { font: 500 42px/1.1 var(--serif); margin: 0 0 18px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }
.lead { font-size: 17px; color: #4b443d; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font: 600 22px var(--serif); margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); }
.contact-list { display: grid; gap: 10px; }
.contact-list a, .contact-list div { display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.contact-list b { min-width: 86px; color: var(--muted); font-weight: 500; }
footer { padding: 32px 0 48px; color: var(--muted); font-size: 13px; text-align: center; border-top: 1px solid var(--line); }

/* ---------- Album ---------- */
.album-head { padding: 40px 0 18px; }
.album-head h1 { font: 500 clamp(34px, 6vw, 56px)/1.05 var(--serif); margin: 0; }
.album-head .meta { color: var(--muted); margin-top: 6px; }
.filters { position: sticky; top: 64px; z-index: 20; background: var(--bg); padding: 12px 0; border-bottom: 1px solid var(--line); }
.frow { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; align-items: center; }
.frow::-webkit-scrollbar { display: none; }
.frow + .frow { margin-top: 8px; }
.flabel { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; min-width: 64px; }
.chip { flex: none; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 13px; }
.chip.on { background: var(--deep); color: #fff; border-color: var(--deep); }
.chip .n { opacity: .6; margin-left: 4px; font-size: 12px; }
.face { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 2px solid transparent; padding: 2px; cursor: pointer; background: none; position: relative; }
.face img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--line); }
.face.on { border-color: var(--accent); }
.face .n { position: absolute; right: -2px; bottom: -2px; background: var(--paper); border: 1px solid var(--line); font-size: 10px; border-radius: 999px; padding: 0 5px; }
.selfie { flex: none; width: 52px; height: 52px; border-radius: 50%; border: 1.5px dashed var(--accent); display: grid; place-items: center; cursor: pointer; color: var(--accent); font-size: 11px; text-align: center; line-height: 1.1; background: var(--paper); }
.status { padding: 10px 0; color: var(--muted); font-size: 13px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.status .sp { margin-left: auto; display: flex; gap: 8px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; padding-bottom: 120px; }
@media (max-width: 560px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 3px; } }
.ph { position: relative; aspect-ratio: 1; overflow: hidden; background: #ece6dc; cursor: zoom-in; border-radius: 4px; }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; opacity: 0; }
.ph img.ok { opacity: 1; }
.ph:hover img { transform: scale(1.03); }
.ph .tick { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.25); cursor: pointer; display: grid; place-items: center; color: #fff; font-size: 14px; opacity: 0; transition: .15s; }
.ph:hover .tick, .selecting .ph .tick, .ph.sel .tick { opacity: 1; }
.ph.sel .tick { background: var(--accent); border-color: var(--accent); }
.ph.sel { outline: 3px solid var(--accent); outline-offset: -3px; }

.bar { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); transition: transform .25s; z-index: 40; background: var(--deep); color: #fff; padding: 10px 10px 10px 20px; border-radius: 999px; display: flex; gap: 10px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.2); max-width: calc(100vw - 24px); }
.bar.show { transform: translate(-50%, 0); }
.bar .btn { background: rgba(255,255,255,.12); border-color: transparent; color: #fff; }
.bar .btn.gold { background: var(--accent); }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; background: rgba(15,13,11,.96); z-index: 60; display: none; }
.lb.open { display: block; }
.lb img { position: absolute; inset: 56px 0 64px; margin: auto; max-width: 100%; max-height: calc(100% - 120px); object-fit: contain; }
.lb .lbtop { position: absolute; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; gap: 10px; padding: 0 16px; color: #ddd; font-size: 13px; }
.lb .lbtop .sp { margin-left: auto; display: flex; gap: 8px; }
.lb .btn { background: rgba(255,255,255,.1); border-color: transparent; color: #fff; }
.lb .nav-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 22px; cursor: pointer; }
.lb .prev { left: 16px; } .lb .next { right: 16px; }

/* ---------- Progress modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: none; place-items: center; z-index: 80; padding: 16px; }
.modal.open { display: grid; }
.modal .box { background: var(--paper); border-radius: var(--radius); padding: 24px; width: min(440px, 100%); }
.modal h3 { font: 600 24px var(--serif); margin: 0 0 8px; }
.prog { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 14px 0 8px; }
.prog i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.muted { color: var(--muted); font-size: 13px; }
.empty { text-align: center; padding: 80px 0; color: var(--muted); }
