@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/BricolageGrotesque.woff") format("woff");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/HankenGrotesk.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0f0f0f;
  --surface: #181818;
  --soft: #1c1c1c;
  --ink: #ecebe6;
  --muted: #9c9b95;
  --line: #262626;
  --field: #121212;
  --field-line: #3a3a3a;

  --display: "Bricolage Grotesque", "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 3.5vw, 48px);
  --gap: clamp(6px, 0.7vw, 12px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 20;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5em 1em;
}
.skip:focus {
  top: 8px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 30px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.85);
}
.btn-light:hover {
  background: #fff;
  color: var(--ink);
}
/* The main button: light on the dark page. */
.btn-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.btn-dark:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 10px 12px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.icon-btn svg,
.viewer-nav svg,
.cell-dl svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon-btn:hover {
  opacity: 0.6;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 20px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--display);
  font-size: 1.375rem;
  line-height: 1;
  text-decoration: none;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.site-header nav {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
}
.site-header nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.site-header nav a:hover {
  opacity: 0.65;
}
.site-header nav {
  align-items: center;
}
.site-header .nav-hire {
  padding: 9px 16px;
  border: 1px solid var(--ink);
}
.site-header .nav-hire:hover {
  opacity: 1;
  background: var(--ink);
  color: var(--bg);
}

/* ---------- landing: faded photo wall + pop-up ---------- */

.landing .site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 15, 15, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.backdrop {
  pointer-events: none;
  user-select: none;
}
/* Full width at its natural height, so a tall photo scrolls behind the pop-up.
   Never shorter than the screen. Raise opacity for less fade. */
.backdrop-img {
  display: block;
  width: 100%;
  height: auto;
  min-height: calc(100vh - 67px);
  min-height: calc(100svh - 67px);
  object-fit: cover;
  opacity: 0.4;
}
.pop {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 88px 16px 24px;
  pointer-events: none;
}
.pop-panel {
  position: relative;
  pointer-events: auto;
  width: min(100%, 470px);
  padding: clamp(36px, 6vw, 52px) clamp(24px, 5vw, 48px) clamp(32px, 5vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}
@media (prefers-reduced-motion: no-preference) {
  .pop {
    animation: pop-in 0.7s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}
@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}
.pop-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.pop-close:hover {
  color: var(--ink);
}
.pop-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.pop-eyebrow {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.pop-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  line-height: 1.02;
  text-wrap: balance;
  letter-spacing: -0.035em;
}
.pop-text {
  margin: 14px auto 0;
  max-width: 34ch;
  color: var(--muted);
}
.pop-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
}
.pop-form input[type="email"] {
  font: inherit;
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid var(--field-line);
  background: var(--field);
  color: var(--ink);
  text-align: center;
  border-radius: 0;
}
.pop-form input[type="email"]:focus {
  outline: 2px solid var(--ink);
  outline-offset: -1px;
}
.pop-form .btn {
  width: 100%;
  padding-block: 16px;
}
.pop-form .btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.pop-error {
  margin: 14px 0 0;
  font-size: 0.875rem;
  color: #ff9182;
}
.pop-link {
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.pop-cta {
  margin-top: 26px;
}

/* ---------- gallery page ---------- */

.gallery-head {
  padding: clamp(48px, 8vw, 96px) var(--gutter) clamp(32px, 4vw, 48px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.gallery-date {
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.gallery-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  line-height: 0.98;
  max-width: 16ch;
  text-wrap: balance;
  letter-spacing: -0.04em;
}
.gallery-note {
  margin: 18px 0 0;
  max-width: 48ch;
  color: var(--muted);
  font-size: 1.0625rem;
}
.gallery-tools {
  display: flex;
  align-items: center;
  gap: 8px 20px;
  margin-top: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.gallery-tools .icon-btn {
  color: var(--ink);
}
.gallery {
  padding: 0 var(--gutter);
}
.gallery-help {
  margin: 40px auto 0;
  max-width: 46ch;
  text-align: center;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- masonry ---------- */

.masonry {
  columns: 2;
  column-gap: var(--gap);
}
.masonry .cell {
  break-inside: avoid;
  margin: 0 0 var(--gap);
}
.masonry.is-laid {
  columns: auto;
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
}
.masonry-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}
.masonry.is-laid .cell {
  margin: 0;
}
.cell {
  position: relative;
  overflow: hidden;
}
.cell-link {
  display: block;
}
.cell img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--r);
  object-fit: cover;
}
.cell-meta {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 28px 10px 8px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.cell-dl {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  pointer-events: auto;
}
.cell:hover .cell-meta,
.cell:focus-within .cell-meta {
  opacity: 1;
}
.cell-link:focus-visible {
  outline-offset: -4px;
  outline-color: #fff;
}
@media (hover: none) {
  .cell-meta {
    display: none;
  }
}

/* ---------- gallery cards ---------- */

.galleries {
  padding: 0 var(--gutter);
}
.cards {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1500px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: clamp(36px, 5vw, 64px) clamp(16px, 2.4vw, 32px);
}
.card-item a {
  display: block;
  text-decoration: none;
}
.card-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--soft);
}
.card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.card-item a:hover .card-img img {
  transform: scale(1.035);
}
.card-title {
  margin: 18px 0 4px;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.card-meta {
  margin: 0;
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- other pages ---------- */

.page-head {
  padding: clamp(64px, 10vw, 128px) var(--gutter) clamp(40px, 6vw, 72px);
  text-align: center;
}
.page-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}
.page-lede {
  margin: 18px auto 0;
  max-width: 44ch;
  color: var(--muted);
  font-size: 1.0625rem;
}

.about {
  padding: clamp(64px, 10vw, 128px) var(--gutter) 0;
}
.about .page-title {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.prose {
  max-width: 36rem;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.prose p {
  margin: 0 0 1.1em;
}
.prose > p:first-child {
  font-family: var(--display);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.prose h2 {
  margin: 2.2em 0 0.4em;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.prose a {
  text-underline-offset: 0.2em;
}
.contact {
  margin-top: 2.5rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: clamp(96px, 12vw, 160px);
  padding: clamp(56px, 7vw, 80px) var(--gutter) 48px;
  border-top: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-mark {
  font-family: var(--display);
  font-size: 1.875rem;
  line-height: 1;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.footer-tagline {
  margin: 10px 0 24px;
  color: var(--muted);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
}
.footer-links a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer-links a:hover {
  opacity: 0.6;
}
.footer-fine {
  margin: 36px 0 0;
  max-width: 52ch;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- viewer ---------- */

.viewer {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}
.viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.viewer::backdrop {
  background: var(--bg);
}
.viewer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(8px, env(safe-area-inset-top)) clamp(8px, 2vw, 24px) 8px clamp(16px, 2.5vw, 32px);
}
.viewer-count {
  margin: 0;
  font-size: 0.875rem;
  white-space: nowrap;
}
.viewer-count strong {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  margin-right: 8px;
  letter-spacing: -0.02em;
}
.viewer-count span {
  color: var(--muted);
}
.viewer-actions {
  display: flex;
  align-items: center;
}
.viewer-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 clamp(0px, 6vw, 96px);
  touch-action: pan-y pinch-zoom;
  outline: none;
}
.viewer-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.viewer-img.is-loading {
  opacity: 0.4;
}
@media (prefers-reduced-motion: no-preference) {
  .viewer-img {
    transition: opacity 0.2s;
  }
}
.viewer-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 56px;
  height: 96px;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.viewer-nav svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.2;
}
.viewer-nav:hover {
  opacity: 0.55;
}
.viewer-nav.prev {
  left: clamp(4px, 1.5vw, 24px);
}
.viewer-nav.next {
  right: clamp(4px, 1.5vw, 24px);
}
.viewer-nav[disabled] {
  visibility: hidden;
}
.viewer-foot {
  margin: 0;
  padding: 12px var(--gutter) max(16px, env(safe-area-inset-bottom));
  text-align: center;
  font-size: 0.8125rem;
}
.viewer-foot a {
  color: var(--muted);
  text-underline-offset: 0.2em;
}
.viewer-foot a:hover {
  color: var(--ink);
}
@media (max-width: 600px) {
  .viewer-nav {
    display: none;
  }
  .viewer-stage {
    padding: 0;
  }
  .viewer-share span {
    display: none;
  }
  .viewer-count strong {
    font-size: 1.25rem;
  }
}

/* ---------- small screens ---------- */

@media (max-width: 600px) {
  .site-header {
    padding-block: 14px;
  }
  .wordmark {
    font-size: 1.25rem;
  }
  .site-header nav {
    gap: 12px;
  }
  .site-header nav a {
    white-space: nowrap;
  }
  .site-header nav a {
    font-size: 0.6875rem;
    letter-spacing: 0.1em;
  }
  .site-header .nav-hire {
    padding: 7px 10px;
  }
  .gallery {
    padding: 0 6px;
  }
}

/* ---------- QR page (for showing on your phone) ---------- */

.qr-page,
.print-page {
  color-scheme: light;
}
.qr-page {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2vh;
  background: #fff;
  color: #000;
  text-align: center;
  padding: 24px;
}
.qr-page .qr {
  width: min(84vw, 58vh);
  height: auto;
  margin: 2vh 0;
}
.qr-name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.qr-top {
  margin: 0;
  font-size: clamp(1.125rem, 4.5vw, 1.5rem);
  font-weight: 600;
}
.qr-url {
  margin: 0;
  font-size: clamp(0.875rem, 3.5vw, 1.125rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #555;
}

/* ---------- printable cards ---------- */

@page {
  size: letter;
  margin: 0;
}
.print-page {
  background: #e9e9e6;
  color: #161616;
  padding: 32px 16px;
}
.print-help {
  max-width: 8.5in;
  margin: 0 auto 24px;
}
.print-help h1 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -0.03em;
}
.print-help p {
  margin: 0 0 0.5rem;
  max-width: 62ch;
}
.sheet {
  width: 8.5in;
  height: 11in;
  margin: 0 auto;
  background: #fff;
  padding: 0.5in 0.75in;
  display: grid;
  grid-template-columns: repeat(2, 3.5in);
  grid-auto-rows: 2in;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 12px 32px rgba(0, 0, 0, 0.1);
}
.card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.15in;
  padding: 0.22in 0.2in 0.22in 0.26in;
  outline: 0.5pt solid #c4c4c4;
  color: #000;
}
.card-text {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-name {
  margin: 0 0 auto;
  font-family: var(--display);
  font-size: 14pt;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.card-line {
  margin: 0 0 2pt;
  font-size: 8.5pt;
  color: #555;
}
.card-url {
  margin: 0;
  font-size: 10.5pt;
  font-weight: 600;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}
.card .qr {
  width: 1.4in;
  height: 1.4in;
  flex: none;
}
@media print {
  .print-page {
    background: none;
    padding: 0;
  }
  .print-help {
    display: none;
  }
  .sheet {
    box-shadow: none;
    margin: 0;
  }
}
