.pg-reference,
.pg-reference * {
  box-sizing: border-box;
}

.pg-reference {
  --pg-blue: #006edf;
  --pg-blue-dark: #0754a4;
  --pg-ink: #1a1a1a;
  --pg-copy: #555;
  --pg-muted: #8a847d;
  --pg-line: #ece8e2;
  --pg-paper: #fff;
  --pg-soft: #f9f8f6;
  --pg-warm: #f6f2e9;
  --pg-max: 1000px;
  color: var(--pg-ink);
  background: var(--pg-paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.pg-reference--ospelt {
  --pg-blue: #8a5a2b;
  --pg-blue-dark: #65401f;
  --pg-soft: #faf8f3;
  --pg-warm: #f4eee2;
}

.pg-reference a {
  color: inherit;
}

.pg-reference img {
  display: block;
  max-width: 100%;
}

.pg-reference p,
.pg-reference h1,
.pg-reference h2,
.pg-reference h3,
.pg-reference figure,
.pg-reference blockquote,
.pg-reference dl,
.pg-reference dd {
  margin: 0;
}

.pg-shell {
  width: min(var(--pg-max), calc(100% - 64px));
  margin-inline: auto;
}

.pg-header {
  padding: 64px 0 44px;
  text-align: center;
}

.pg-header__logo {
  width: 76px;
  margin: 0 auto 24px;
}

.pg-header__logo--ospelt {
  width: 172px;
  height: 76px;
  object-fit: contain;
}

.pg-eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--pg-blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3.4px;
  text-transform: uppercase;
}

.pg-header__title,
.pg-section-title,
.pg-machine__h2,
.pg-cta__h2,
.pg-faq__h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
}

.pg-header__title {
  max-width: 820px;
  margin-inline: auto;
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  letter-spacing: -.035em;
  line-height: 1.12;
}

.pg-header__dek {
  max-width: 690px;
  margin: 22px auto 0;
  color: var(--pg-copy);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  font-weight: 300;
  line-height: 1.75;
}

.pg-divider {
  border: 0;
  border-top: 1px solid var(--pg-line);
}

.pg-intro {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
  padding: 52px 0 66px;
}

.pg-intro--person {
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 58px;
}

.pg-media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pg-media__hero,
.pg-gallery__item,
.pg-machine__photo {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--pg-line);
  background: var(--pg-soft);
  cursor: zoom-in;
}

.pg-media__hero {
  aspect-ratio: 1 / 1;
  border-radius: 14px;
}

.pg-media--portrait .pg-media__hero {
  aspect-ratio: 4 / 5;
}

.pg-media__hero img,
.pg-gallery__item img,
.pg-machine__photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform .45s ease;
}

.pg-media--portrait .pg-media__hero img,
.pg-media--portrait .pg-gallery__item img {
  object-fit: cover;
  padding: 0;
}

.pg-media--portrait .pg-gallery__item {
  aspect-ratio: 4 / 3;
}

.pg-media__hero:hover img,
.pg-gallery__item:hover img,
.pg-machine__photo:hover img {
  transform: scale(1.035);
}

.pg-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.pg-gallery__item,
.pg-machine__photo {
  aspect-ratio: 1 / 1;
  border-radius: 11px;
}

.pg-gallery__item img {
  padding: 10px;
}

.pg-media__note {
  padding: 10px 12px;
  border: 1px solid #e9e2d7;
  border-radius: 9px;
  background: #fbf9f6;
  color: #766e65;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.5;
  text-align: center;
  text-transform: uppercase;
}

.pg-intro__lead {
  margin: 2px 0 30px;
  color: #414141;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
}

.pg-intro__lead a,
.pg-content__p a,
.pg-sources a {
  color: var(--pg-blue-dark);
  text-decoration-color: rgba(0, 110, 223, .28);
  text-underline-offset: 3px;
}

.pg-section-title {
  margin-bottom: 27px;
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
  line-height: 1.3;
}

.pg-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .78fr);
  gap: 38px;
}

.pg-content__section {
  margin-bottom: 24px;
}

.pg-content__label {
  margin-bottom: 7px;
  color: var(--pg-blue);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: 1.25px;
  line-height: 1.45;
  text-transform: uppercase;
}

.pg-content__p {
  color: var(--pg-copy);
  font-size: .91rem;
  font-weight: 300;
  line-height: 1.82;
}

.pg-quote {
  align-self: start;
  padding: 24px 22px;
  border-left: 3px solid var(--pg-blue);
  border-radius: 0 10px 10px 0;
  background: var(--pg-soft);
}

.pg-quote__label {
  display: block;
  margin-bottom: 15px;
  color: var(--pg-blue);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.pg-quote blockquote {
  color: #3d3d3d;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.03rem;
  font-style: italic;
  line-height: 1.72;
}

.pg-quote cite {
  display: block;
  margin-top: 16px;
  color: var(--pg-muted);
  font-size: .67rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 1.2px;
  line-height: 1.55;
  text-transform: uppercase;
}

.pg-machine {
  background: var(--pg-soft);
  padding: 68px 0;
}

.pg-machine__header {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 62px;
  align-items: center;
}

.pg-machine__h2 {
  margin-bottom: 17px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.pg-machine__h2 em {
  color: #666;
  font-style: italic;
}

.pg-machine__desc {
  color: #626262;
  font-size: .94rem;
  font-weight: 300;
  line-height: 1.82;
}

.pg-machine__desc--note {
  margin-top: 14px;
  padding-left: 15px;
  border-left: 2px solid #d8c7ae;
  color: #766f67;
  font-size: .82rem;
}

.pg-machine__link {
  display: inline-block;
  margin-top: 23px;
  border-bottom: 1px solid currentColor;
  color: var(--pg-ink);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
}

.pg-machine__link::after {
  content: " →";
}

.pg-machine__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 22px;
  margin: 0;
}

.pg-machine__specs div {
  padding-top: 14px;
  border-top: 1px solid #ded9d1;
}

.pg-machine__specs dt {
  margin-bottom: 5px;
  color: #99938b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.1px;
  text-transform: uppercase;
}

.pg-machine__specs dd {
  color: #333;
  font-size: .9rem;
  line-height: 1.55;
}

.pg-machine__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 44px;
}

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

.pg-machine__photo img {
  padding: 14px;
}

.pg-machine__photo--studio {
  aspect-ratio: 4 / 3;
  border-color: #182b53;
  background: #050d1c;
}

.pg-machine__photo--studio img {
  object-fit: cover;
  padding: 0;
}

.pg-context,
.pg-tech,
.pg-followup,
.pg-sources,
.pg-faq {
  padding: 66px 0 4px;
}

.pg-context__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pg-context__grid--four {
  grid-template-columns: repeat(4, 1fr);
}

.pg-context__grid--four .pg-context__card {
  padding: 23px;
}

.pg-context__card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--pg-line);
  border-radius: 14px;
  background: #fff;
}

.pg-context__card span {
  color: var(--pg-blue);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.pg-context__card h3 {
  margin: 15px 0 11px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.24rem;
  font-weight: 400;
  line-height: 1.28;
}

.pg-context__card p {
  color: var(--pg-copy);
  font-size: .88rem;
  font-weight: 300;
  line-height: 1.72;
}

.pg-tech__panel {
  overflow: hidden;
  border: 1px solid var(--pg-line);
  border-radius: 16px;
  background: #fff;
}

.pg-tech__row {
  display: grid;
  grid-template-columns: minmax(180px, .75fr) minmax(0, 1.45fr);
  gap: 28px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--pg-line);
}

.pg-tech__row:last-child {
  border-bottom: 0;
}

.pg-tech__row dt {
  color: #807970;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pg-tech__row dd {
  color: #3f3f3f;
  font-size: .9rem;
  line-height: 1.62;
}

.pg-followup__panel {
  padding: 38px 40px;
  border: 1px solid #e9e1d5;
  border-radius: 18px;
  background: var(--pg-warm);
}

.pg-followup__panel p {
  max-width: 820px;
  margin-top: 13px;
  color: #55514c;
  font-size: .93rem;
  font-weight: 300;
  line-height: 1.82;
}

.pg-scope-note {
  margin-top: 20px;
  padding: 15px 17px;
  border-left: 3px solid var(--pg-blue);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, .76);
  color: #45413c;
  font-size: .82rem;
  line-height: 1.65;
}

.pg-sources__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.pg-sources a {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 17px;
  border: 1px solid var(--pg-line);
  border-radius: 10px;
  color: #444;
  font-size: .85rem;
  text-decoration: none;
}

.pg-sources a:hover {
  border-color: rgba(0, 110, 223, .42);
  color: var(--pg-blue-dark);
}

.pg-faq__list {
  border-top: 1px solid var(--pg-line);
}

.pg-faq details {
  padding: 19px 0;
  border-bottom: 1px solid var(--pg-line);
}

.pg-faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style-position: outside;
}

.pg-faq details p {
  max-width: 820px;
  padding: 12px 0 0 20px;
  color: var(--pg-copy);
  font-size: .9rem;
  font-weight: 300;
  line-height: 1.75;
}

.pg-cta {
  max-width: 700px;
  margin: 0 auto;
  padding: 72px 32px 94px;
  text-align: center;
}

.pg-cta__h2,
.pg-faq__h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.3;
}

.pg-cta__text {
  margin: 15px 0 29px;
  color: var(--pg-copy);
  font-size: .95rem;
  font-weight: 300;
  line-height: 1.8;
}

.pg-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.pg-cta__btn {
  display: inline-block;
  padding: 14px 26px;
  border: 1px solid var(--pg-ink);
  border-radius: 5px;
  background: var(--pg-ink);
  color: #fff !important;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
}

.pg-cta__btn--alt {
  background: transparent;
  color: var(--pg-ink) !important;
}

.pg-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.pg-lightbox.is-open {
  display: flex;
}

.pg-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 11, 10, .9);
  cursor: zoom-out;
}

.pg-lightbox__img {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 90vw);
  max-height: 84vh;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .48);
  object-fit: contain;
}

.pg-lightbox__close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  color: #fff;
  cursor: pointer;
  font-size: 25px;
  line-height: 42px;
}

@media (max-width: 860px) {
  .pg-shell {
    width: min(var(--pg-max), calc(100% - 40px));
  }

  .pg-intro,
  .pg-intro--person,
  .pg-machine__header {
    grid-template-columns: 1fr;
  }

  .pg-intro {
    gap: 36px;
  }

  .pg-media {
    width: min(560px, 100%);
    margin-inline: auto;
  }

  .pg-context__grid {
    grid-template-columns: 1fr;
  }

  .pg-context__grid--four {
    grid-template-columns: repeat(2, 1fr);
  }

  .pg-context__card {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .pg-header {
    padding-top: 44px;
  }

  .pg-body,
  .pg-sources__list {
    grid-template-columns: 1fr;
  }

  .pg-context__grid--four {
    grid-template-columns: 1fr;
  }

  .pg-machine__specs {
    grid-template-columns: 1fr;
  }

  .pg-machine__photos {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }

  .pg-machine__photos--two {
    grid-template-columns: 1fr;
  }

  .pg-machine__photo img {
    padding: 6px;
  }

  .pg-machine__photo--studio img {
    padding: 0;
  }

  .pg-tech__row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .pg-followup__panel {
    padding: 28px 24px;
  }

  .pg-cta__actions {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg-reference img {
    transition: none !important;
  }
}
