@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("fonts/alte_haas_grotesk/AlteHaasGroteskRegular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Alte Haas Grotesk";
  src: url("fonts/alte_haas_grotesk/AlteHaasGroteskBold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --pg-ground: #e6e2da;
  --pg-panel: #faf9f5;
  --pg-ink: #191b19;
  --pg-muted: #595954;
  --pg-stroke: rgba(25, 27, 25, .1);
  --pg-dark: #090707;
  --pg-hero-ink: #f4f1ec;
  --pg-frame-pad: 8px;
  --pg-panel-pad: clamp(24px, 2.2vw, 32px);
  --pg-radius: 8px;
  --font-serif: "Alte Haas Grotesk", Arial, sans-serif;
  --font-index: "Alte Haas Grotesk", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
html.pg-prehide body { opacity: 0; }
body {
  margin: 0;
  background: var(--pg-ground);
  color: var(--pg-ink);
  font: 16px/1.45 var(--font-index);
  letter-spacing: -.045em;
  word-spacing: -.05em;
  overflow-x: clip;
}
body:has(dialog[open]) {
  overflow: hidden;
}

::selection {
  background: var(--pg-ink);
  color: var(--pg-panel);
}

.pg-lightbox ::selection {
  background: var(--pg-hero-ink);
  color: var(--pg-dark);
}

a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, p { margin: 0; }
img, video, canvas { display: block; width: 100%; height: auto; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.ink-pending,
.card-ink-pending { opacity: 0; }

.index-serif {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -.01em;
}

/* Fixed Split-Panel Desktop Shell (matches reference proportion 703fr / 977fr) */
.pg-app {
  position: fixed;
  inset: 0;
  background: var(--pg-ground);
  padding: var(--pg-frame-pad);
}

.pg-panels {
  height: 100%;
  display: grid;
  grid-template-columns: 703fr 977fr;
  gap: var(--pg-frame-pad);
}

.pg-panel {
  position: relative;
  min-height: 0;
  border-radius: var(--pg-radius);
  overflow: hidden;
}

.pg-panel-left {
  background: var(--pg-panel);
  padding: clamp(78px, 11vh, 112px) var(--pg-panel-pad) var(--pg-panel-pad);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pg-intro {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.pg-title {
  margin-top: calc(clamp(16px, 4.5vh, 52px) - 20px);
  margin-inline: -24px;
  padding: 20px 24px;
  font: 700 clamp(40px, 3.8vw, 72px)/1 var(--font-index);
  letter-spacing: -.06em;
  color: var(--pg-ink);
  filter: url(#ink-bleed-sm);
}

.pg-copy {
  margin-top: calc(clamp(16px, 2.8vh, 32px) - 24px);
  margin-inline: -28px;
  padding: 24px 28px;
  max-width: calc(396px + 56px);
  font-size: 15px;
  line-height: 1.44;
  color: #5b5c57;
  filter: url(#ink-bleed-xs);
}

.pg-count {
  margin-top: auto;
  margin-inline: -24px;
  padding: 20px 24px clamp(24px, 5vh, 64px);
  align-self: flex-end;
  font: 700 clamp(68px, 9.2vw, 156px)/.9 var(--font-index);
  letter-spacing: -.06em;
  color: var(--pg-ink);
  filter: url(#ink-bleed-xl);
}

/* Rolling Odometer */
.pg-odometer {
  display: inline-flex;
}

.pg-odometer-digit {
  position: relative;
  display: inline-block;
  height: 1em;
  line-height: 1;
  clip-path: inset(0 -.35em);
}

.pg-odometer-sizer {
  display: block;
  visibility: hidden;
}

.pg-odometer-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: block;
  transform: translateY(0%);
  transition: transform 2.1s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.pg-odometer-cell {
  display: flex;
  justify-content: center;
  height: 1em;
  line-height: 1;
}

.pg-left-foot,
.pg-mobile-foot {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding-top: 12px;
  border-top: 1px solid var(--pg-stroke);
  font-size: 12px;
  letter-spacing: -.01em;
  color: var(--pg-muted);
}

.pg-mobile-foot {
  display: none;
  margin-top: 32px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.pg-foot-email {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  color: var(--pg-ink);
  font-weight: 500;
  text-decoration: none;
}

.pg-foot-email::before,
.pg-foot-email::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 1px;
  background: currentColor;
  pointer-events: none;
}

.pg-foot-email::before {
  transform-origin: right center;
  transform: scaleX(1);
  transition: transform .26s cubic-bezier(.42, 0, .2, 1) .06s;
}

.pg-foot-email::after {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform .22s cubic-bezier(.42, 0, .2, 1) 0s;
}

.pg-foot-email:hover::before,
.pg-foot-email:focus-visible::before {
  transform: scaleX(0);
  transition-delay: 0s;
}

.pg-foot-email:hover::after,
.pg-foot-email:focus-visible::after {
  transform: scaleX(1);
  transition: transform .36s cubic-bezier(.22, .88, .24, 1) .08s;
}

.pg-foot-email:focus-visible {
  outline: 2px solid var(--pg-ink);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Right Infinite Scroll Column */
.pg-panel-right {
  background: transparent;
  display: flex;
  flex-direction: column;
}

.pg-scroll {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 78px 0 32px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.pg-scroll::-webkit-scrollbar {
  display: none;
}

.pg-mobile-intro {
  display: none;
}

.pg-grid-shell {
  container-type: inline-size;
}

/* Exact 14-Tile Repeating Reference Bento Grid (325fr 324fr 325fr) */
.pg-grid {
  display: grid;
  grid-template-columns: 325fr 324fr 325fr;
  grid-auto-rows: calc((100cqw - 16px) * 242 / 974);
  gap: 8px;
}

.pg-tile {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}

.pg-tile:focus-visible {
  outline: 2px solid var(--pg-ink);
  outline-offset: -3px;
  border-radius: var(--pg-radius);
}

.pg-tile-media {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: var(--pg-radius);
  overflow: hidden;
  background: #ece8de;
  isolation: isolate;
}

.pg-tile-inner {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: inherit;
  overflow: hidden;
}

.pg-tile-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  border: 1px solid var(--pg-stroke);
  pointer-events: none;
}

.pg-tile-inner img,
.pg-tile-inner video,
.pg-tile-inner canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .48s cubic-bezier(.22, 1, .36, 1), opacity .36s ease;
}

.pg-tile-inner video {
  opacity: 0;
}

.pg-tile-media.is-video-ready .pg-tile-inner video {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .pg-tile:hover .pg-tile-inner img,
  .pg-tile:hover .pg-tile-inner video,
  .pg-tile:hover .pg-tile-inner canvas {
    transform: scale(1.028);
  }
}

.pg-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(9, 7, 7, .72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f4f1ec;
  font: 500 10px/1 var(--font-index);
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: none;
}

.pg-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f4f1ec;
  animation: pgPulse 1.8s ease-in-out infinite;
}

@keyframes pgPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.72); }
}

.pg-empty {
  padding: 56px 12px;
  color: var(--pg-muted);
  font-size: 15px;
}

.pg-empty[hidden] {
  display: none;
}

.pg-sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
}

/* Native Lightbox Dialog */
.pg-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(9, 7, 7, .96);
  color: var(--pg-hero-ink);
}

.pg-lightbox::backdrop {
  background: rgba(9, 7, 7, .92);
  backdrop-filter: blur(10px);
}

.pg-lb-shell {
  width: 100%;
  height: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding: max(20px, env(safe-area-inset-top)) max(clamp(20px, 4vw, 68px), env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(clamp(20px, 4vw, 68px), env(safe-area-inset-left));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(16px, 2.4svh, 28px);
}

.pg-lb-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pg-lb-heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pg-lb-meta {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #a29c96;
}

.pg-lb-title {
  font: 700 clamp(22px, 2.4vw, 34px)/1.06 var(--font-index);
  letter-spacing: -.055em;
  color: var(--pg-hero-ink);
}

.pg-lb-media {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  border-radius: 6px;
  overflow: hidden;
  background: #111010;
  border: 1px solid rgba(244, 241, 236, .12);
}

.pg-lb-stage-warp {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
}

.pg-lb-media img,
.pg-lb-media video,
.pg-lb-media canvas {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.pg-lb-media canvas {
  object-fit: cover;
}

.pg-lb-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.pg-lb-info {
  max-width: 62ch;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pg-lb-note {
  font-size: 15px;
  line-height: 1.48;
  color: rgba(244, 241, 236, .82);
  letter-spacing: -.025em;
}

.pg-lb-note:empty {
  display: none;
}

.pg-lb-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pg-lb-tool {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 236, .2);
  font-size: 12px;
  line-height: 1;
  color: var(--pg-hero-ink);
  letter-spacing: -.01em;
}

.pg-lb-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.pg-lb-counter {
  font-size: 15px;
  color: #a29c96;
}

.pg-lb-nav {
  display: inline-flex;
  gap: 8px;
}

.pg-lb-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 236, .34);
  background: transparent;
  color: var(--pg-hero-ink);
  font: 500 13px/1 var(--font-index);
  letter-spacing: -.02em;
  overflow: hidden;
  isolation: isolate;
  transition: color .3s cubic-bezier(.34, 0, .14, 1), border-color .22s ease, transform .28s cubic-bezier(.22, .88, .24, 1);
}

.pg-lb-btn::before {
  content: "";
  position: absolute;
  left: var(--ink-x, 50%);
  top: var(--ink-y, 50%);
  width: 250%;
  aspect-ratio: 1;
  background: #ffffff;
  border-radius: 44% 56% 52% 48% / 48% 44% 56% 52%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform .48s cubic-bezier(.34, 0, .14, 1);
  z-index: 0;
  pointer-events: none;
}

.pg-lb-btn .btn-label {
  position: relative;
  z-index: 1;
}

.pg-lb-btn:hover,
.pg-lb-btn:focus-visible {
  color: #090707;
  border-color: #ffffff;
}

.pg-lb-btn:hover::before,
.pg-lb-btn:focus-visible::before {
  transform: translate(-50%, -50%) scale(1);
}

.pg-lb-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.pg-lb-btn:active {
  transform: scale(.97);
}

.pg-lb-close {
  background: #eb3621;
  border-color: #eb3621;
  color: #ffffff;
}

.pg-lb-close::before {
  background: #ffffff;
}

.pg-lb-close:hover,
.pg-lb-close:focus-visible {
  color: #090707;
  border-color: #ffffff;
}

/* Tablet & Mobile Responsive (single scrolling column, mobile intro peek) */
@media (max-width: 900px) {
  body {
    background: var(--pg-panel);
  }

  .pg-app {
    position: static;
    inset: auto;
    padding: 0;
    min-height: 100svh;
    background: var(--pg-panel);
  }

  .pg-panels {
    height: auto;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .pg-panel-left {
    display: none;
  }

  .pg-panel-right {
    border-radius: 0;
    overflow: visible;
  }

  .pg-scroll {
    height: auto;
    overflow: visible;
    padding: 78px 20px 32px;
  }

  .pg-mobile-intro {
    display: flex;
    flex-direction: column;
    min-height: calc(100svh - 78px - 240px);
    padding-bottom: 36px;
  }

  .pg-mobile-intro .pg-title {
    margin-top: 12px;
    font-size: clamp(40px, 8vw, 64px);
  }

  .pg-mobile-intro .pg-copy {
    margin-top: 20px;
    max-width: 42ch;
  }

  .pg-mobile-intro .pg-count {
    margin-top: auto;
    margin-inline: -24px;
    padding-top: 28px;
    padding-bottom: 0;
    font-size: clamp(72px, 22vw, 124px);
  }

  .pg-mobile-foot {
    display: flex;
  }

  .pg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .pg-tile {
    grid-area: auto !important;
    height: auto;
    aspect-ratio: 325 / 242;
  }
}

@media (max-width: 600px) {
  .pg-scroll {
    padding: 72px 16px 28px;
  }

  .pg-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .pg-tile {
    aspect-ratio: 358 / 266;
  }

  .pg-lb-controls {
    width: 100%;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ink-pending,
  .card-ink-pending {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .pg-tile-inner img,
  .pg-tile-inner video,
  .pg-tile-inner canvas,
  .pg-odometer-strip,
  .pg-lb-btn,
  .pg-lb-btn::before,
  .pg-foot-email::before,
  .pg-foot-email::after {
    transition: none !important;
  }
  .pg-badge-dot {
    animation: none;
  }
}
