:root{
  --bg:#f6f2ec;
  --surface:#ffffff;
  --surface-2:#f0ebe4;
  --text:#1f1b18;
  --muted:#6a6057;
  --line:#d9d0c6;
  --accent:#26211d;
  --shadow:0 12px 30px rgba(0,0,0,.08);
  --radius:18px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Arial, Helvetica, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.5;
}

img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

.site-header{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(246,242,236,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{
  max-width:1240px;
  margin:0 auto;
  padding:14px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.brand{
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-size:.95rem;
}
.nav-links{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
}
.nav-links a{
  color:var(--muted);
  padding:6px 0;
  border-bottom:2px solid transparent;
}
.nav-links a:hover,
.nav-links a[aria-current="page"]{
  color:var(--accent);
  border-color:var(--accent);
}

main{
  max-width:1240px;
  margin:0 auto;
  padding:28px 24px 60px;
}

.hero{
  padding:36px 0 24px;
}
.hero h1{
  margin:0 0 10px;
  font-size:clamp(2.1rem, 5vw, 4rem);
  line-height:1.02;
  letter-spacing:-.03em;
}
.hero p{
  max-width:760px;
  margin:0;
  color:var(--muted);
  font-size:1.05rem;
}

.landing-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
  padding-top:10px;
}
.landing-card{
  min-height:180px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:26px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  gap:8px;
  box-shadow:var(--shadow);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.landing-card:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 34px rgba(0,0,0,.11);
  border-color:#b7aa9a;
}
.landing-card strong{
  font-size:1.35rem;
}
.landing-card span{
  color:var(--muted);
}

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:22px;
}

.media-card{
  appearance:none;
  border:1px solid var(--line);
  background:var(--surface);
  border-radius:var(--radius);
  padding:0;
  overflow:hidden;
  box-shadow:var(--shadow);
  cursor:pointer;
  text-align:left;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.media-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 34px rgba(0,0,0,.12);
  border-color:#b7aa9a;
}
.media-card:focus-visible{
  outline:3px solid #8f7f6f;
  outline-offset:2px;
}

.thumb-wrap{
  position:relative;
  aspect-ratio:4/3;
  background:var(--surface-2);
  overflow:hidden;
  display:block;
}
.thumb{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.card-badge{
  position:absolute;
  top:12px;
  right:12px;
  z-index:30;
  font-size:.72rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  background:rgba(31,27,24,.85);
  color:#fff;
  border-radius:999px;
  padding:6px 10px;
  display:inline-block;
  line-height:1;
}
.card-overlay{
  position:absolute;
  top:0;
  right:0;
  bottom:0;
  left:0;
  background:linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,.1));
  opacity:0;
  transition:opacity .18s ease;
  z-index:20;
}
.media-card:hover .card-overlay,
.media-card:focus-visible .card-overlay{
  opacity:1;
}
.card-overlay-label{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  background:rgba(255,255,255,.92);
  color:#16120f;
  padding:10px 16px;
  border-radius:999px;
  font-weight:700;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
  max-width:calc(100% - 32px);
  text-align:center;
  white-space:nowrap;
  line-height:1;
  pointer-events:none;
}

.thumb-wrap,
.card-overlay,
.card-badge,
.card-overlay-label{
  -webkit-backface-visibility:hidden;
  backface-visibility:hidden;
}

.card-copy{
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:16px 16px 18px;
}
.card-title{
  font-weight:700;
  font-size:1rem;
}
.card-desc{
  color:var(--muted);
  font-size:.92rem;
}

.site-footer{
  max-width:1240px;
  margin:0 auto;
  padding:0 24px 36px;
  color:var(--muted);
}

/* Modal */
.modal[hidden]{display:none !important}
.modal{
  position:fixed;
  inset:0;
  z-index:9999;
}
.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,11,8,.82);
}
.modal-shell{
  position:relative;
  z-index:1;
  width:min(96vw, 1500px);
  height:min(94vh, 980px);
  margin:3vh auto;
  background:rgba(24,20,17,.96);
  color:#fff;
  border:1px solid rgba(255,255,255,.12);
  border-radius:20px;
  box-shadow:0 30px 70px rgba(0,0,0,.38);
  display:grid;
  grid-template-rows:auto 1fr auto;
  overflow:hidden;
}
.modal-top,
.modal-bottom{
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:rgba(255,255,255,.04);
}
.modal-title{
  font-weight:700;
}
.modal-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
  align-items:center;
}
.modal-btn,
.modal-link{
  appearance:none;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
  color:#fff;
  border-radius:999px;
  padding:10px 14px;
  font:inherit;
  cursor:pointer;
  text-decoration:none;
}
.modal-btn:hover,
.modal-link:hover{
  background:rgba(255,255,255,.16);
}
.modal-main{
  min-height:0;
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:12px;
  padding:12px;
}
.modal-stage{
  position:relative;
  min-width:0;
  min-height:0;
  height:100%;
  overflow:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.18);
  border-radius:14px;
  touch-action:pan-y pinch-zoom;
}
.modal-media-wrap{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px;
  overflow:auto;
}
.modal-media{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  transform-origin:center center;
  transition:transform .12s ease;
}
.modal-media.image{
  max-width:min(100%, calc(100vw - 220px));
  max-height:min(100%, calc(94vh - 210px));
}
.modal-media.video{
  width:auto;
  height:auto;
  max-width:100%;
  max-height:100%;
  background:#000;
}
.modal-media.pdf{
  width:min(100%, 1100px);
  height:100%;
  min-height:500px;
  border:0;
  background:#fff;
}
.modal-nav{
  width:44px;
  height:44px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:28px;
}
.modal-nav[disabled]{
  opacity:.35;
  cursor:default;
}
.modal-bottom{
  justify-content:space-between;
  align-items:center;
}
.modal-dots{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
  align-items:center;
  padding:0 10px;
  flex:1;
}
.modal-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  border:0;
  padding:0;
  cursor:pointer;
  background:rgba(255,255,255,.28);
}
.modal-dot.active{
  background:#fff;
  transform:scale(1.15);
}
#modal-count{
  color:rgba(255,255,255,.76);
  white-space:nowrap;
}

@media (max-width: 860px){
  .landing-grid{grid-template-columns:1fr}
  .nav{flex-direction:column; align-items:flex-start}
  .modal-shell{
    width:100vw;
    height:100vh;
    margin:0;
    border-radius:0;
  }
  .modal-top, .modal-bottom{
    flex-direction:column;
    align-items:flex-start;
  }
  .modal-main{
    grid-template-columns:1fr;
  }
  .modal-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:2;
  }
  .modal-prev{left:10px}
  .modal-next{right:10px}
}