@font-face { font-family: 'Epilogue'; src: url('fonts/Epilogue.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #F5F3EF;
  --ink: #141414;
  --grey: #6E6A64;
  --line: #DEDAD3;
  --gutter: 16px;
  --max: 1440px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body { background: var(--bg); color: var(--ink); font-family: 'Epilogue', system-ui, sans-serif; font-size: 16px; line-height: 1.5; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) 64px; }

/* header */
.top { max-width: var(--max); margin: 0 auto; padding: 22px var(--gutter); display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.top nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
.top nav a { color: var(--grey); transition: color .2s; }
.top nav a:hover, .top nav a.on { color: var(--ink); }
.top nav a.on { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }

/* text */
.hero { padding: 40px 0 36px; }
.hero p { font-size: clamp(22px, 3.2vw, 40px); font-weight: 300; line-height: 1.15; max-width: 20ch; letter-spacing: -.01em; }
.crumbs { font-size: 13px; color: var(--grey); padding-top: 28px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span { margin: 0 6px; }
h1 { font-size: clamp(30px, 4.4vw, 56px); font-weight: 700; line-height: 1.02; letter-spacing: -.02em; margin: 10px 0 14px; }
.lead { font-size: 17px; color: #3b3935; max-width: 62ch; margin-bottom: 36px; }

/* tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 28px 20px; margin-bottom: 48px; }
.tiles-home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { display: block; min-width: 0; }
.tile-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--line); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile:hover .tile-img img { transform: scale(1.03); }
.tile-t { display: block; margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tile.big .tile-t { font-size: 15px; }

/* gallery */
.gallery { display: flex; gap: 14px; align-items: flex-start; }
.gallery.pre { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.g-col { flex: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.g-item { display: block; position: relative; background: var(--line); cursor: zoom-in; overflow: hidden; }
.g-item img, .g-item video { width: 100%; height: auto; transition: opacity .3s; }
.g-item:hover img, .g-item:hover video { opacity: .9; }
.g-video { cursor: pointer; }
.play { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(20,20,20,.72); }
.play::after { content: ''; position: absolute; left: 15px; top: 11px; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.next { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 700; }
.next a span { display: inline-block; transition: transform .2s; }
.next a:hover span { transform: translateX(4px); }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; padding-top: 32px; align-items: start; }
.about-txt h1 { margin-top: 0; }
.cta { font-weight: 700; margin-bottom: 18px; max-width: 46ch; }
.btn { display: inline-block; padding: 12px 20px; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 15px; }
.btn:hover { background: #333; }
.small { margin-top: 18px; font-size: 14px; color: var(--grey); }
.small a { text-decoration: underline; }

/* footer */
.foot { max-width: var(--max); margin: 0 auto; padding: 26px var(--gutter) 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 13px; color: var(--grey); }
.foot a:hover { color: var(--ink); }

/* lightbox */
.lb { position: fixed; inset: 0; background: rgba(245,243,239,.98); z-index: 50; display: none; align-items: center; justify-content: center; }
.lb.open { display: flex; }
.lb-stage { max-width: calc(100vw - 120px); max-height: calc(100vh - 100px); display: flex; align-items: center; justify-content: center; }
.lb-stage img, .lb-stage video { max-width: calc(100vw - 120px); max-height: calc(100vh - 100px); width: auto; height: auto; object-fit: contain; }
.lb button { position: absolute; background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer; padding: 14px; }
.lb-close { top: 10px; right: 14px; font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 28px; line-height: 1; }
.lb-prev { left: 10px; } .lb-next { right: 10px; }
.lb-count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--grey); }

@media (max-width: 900px) {
  .tiles-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .top { padding: 18px var(--gutter) 10px; }
  .brand { font-size: 14px; letter-spacing: .08em; }
  .top nav { gap: 4px 16px; font-size: 13px; }
  .tiles, .tiles-home { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .tile-img { aspect-ratio: 1 / 1; }
  .top nav { width: 100%; }
  .hero { padding: 24px 0 26px; }
  .lb-stage, .lb-stage img, .lb-stage video { max-width: 100vw; max-height: calc(100vh - 110px); }
  .lb-prev, .lb-next { top: auto; bottom: 4px; transform: none; }
}
