@font-face {
  font-family: 'Neue Montreal';
  src: url('assets/fonts/PPNeueMontreal-Book.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

@font-face {
  font-family: 'Walter Neue';
  src: url('assets/fonts/ABCWalterNeue-Regular-Trial.otf') format('opentype');
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

img, video {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

::selection {
  background: transparent;
}

::-moz-selection {
  background: transparent;
}

body {
  background: #f5f5f3;
  overflow-x: clip;
  font-family: 'Neue Montreal', sans-serif;
  font-weight: 300;
}

/* ── Mosaic ───────────────────────────────────────────── */

/*
  3-column grid. Rows size to content (grid-auto-rows: auto).
  align-items: start → cells shrink-wrap their image; no stretching.
  gap: 1px           → hairline separator between cells.
  Images: width 100%, height auto → preserves ratio, no crop.
*/

#mosaic, .mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  align-items: start;
  gap: 1px;
  background: #f5f5f3;
}

.mosaic-cell {
  position: relative;
  background: #f5f5f3;
  overflow: visible;
}

.mosaic-cell.align-bottom {
  align-self: start;
}

/* Offset middle column so each tile center aligns near side-column tile edges. */
.mosaic-grid > .mosaic-cell:nth-child(3n + 2),
#mosaic > .mosaic-cell:nth-child(3n + 2) {
  transform: translateY(-50%);
}

/* Same margins for images and videos, with stable vertical rhythm and no crop. */
.mosaic-cell img,
.mosaic-cell video {
  display: block;
  width: calc(100% - 20% - 10px);
  margin-left: calc(10% + 5px);
  margin-right: calc(10% + 5px);
  margin-top: clamp(9px, 1.35vw, 23px);
  margin-bottom: clamp(9px, 1.35vw, 23px);
  height: auto;
}

.mosaic-cell img {
  transition: opacity 200ms ease;
}

/* No hover effects */
.mosaic-label {
  display: none;
}

#contact-trigger {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 140;
  border: 0;
  background: transparent;
  color: #111;
  font-family: 'Walter Neue', sans-serif;
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 6px 8px;
  cursor: pointer;
}

#contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  pointer-events: none;
  background: #fff;
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  transition: opacity 180ms ease;
}

#contact-overlay.is-open {
  pointer-events: auto;
  clip-path: inset(0 0 0 0);
  opacity: 1;
}

#contact-panel {
  position: absolute;
  top: 60px;
  left: 14px;
  width: min(92vw, 760px);
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
  padding: clamp(10px, 1.5vw, 14px) 0 clamp(20px, 3vh, 28px) 0;
  color: #111;
  font-family: 'Walter Neue', sans-serif;
  opacity: 0;
  transition: opacity 180ms ease;
}

#contact-overlay.is-open #contact-panel {
  opacity: 1;
}

.contact-accordion {
  display: grid;
  gap: 10px;
}

.contact-section {
  border-top: 1px solid #111;
  padding-top: 8px;
}

.contact-section-toggle {
  width: 100%;
  border: 0;
  background: transparent;
  color: #111;
  text-align: left;
  font-family: 'Neue Montreal', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.1;
  padding: 2px 0;
  opacity: 0;
  transition: opacity 170ms ease;
  cursor: pointer;
}

#contact-overlay.is-open .contact-section-toggle {
  opacity: 1;
}

.contact-section.is-open .contact-section-toggle {
  display: none;
}

.contact-section-content {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 160ms ease;
}

.contact-section-inner {
  overflow: hidden;
  text-transform: uppercase;
}

.contact-section.is-open .contact-section-content {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 8px;
}

@media (max-width: 720px) {
  #contact-panel {
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 14px);
  }
}

.contact-section-content p,
.contact-section-content a {
  font-family: 'Neue Montreal', sans-serif;
  letter-spacing: 0.02em;
  font-size: clamp(0.88rem, 1.28vw, 1.03rem);
  line-height: 1.35;
}

.contact-section-content p + p {
  margin-top: 12px;
}

.contact-link {
  color: #111;
  text-decoration: none;
  display: inline-block;
}

.contact-link:hover {
  text-decoration: underline;
}
