body#page-top:has(.ph-rev3) {
  --ph-nav: #f5f2ee;
  --ph-nav-ink: #282522;
  --ph-nav-line: #d8d0c8;
  --ph-nav-active: #873b20;
  margin: 0;
  background: var(--ph-nav);
  color: var(--ph-nav-ink);
}

body:has(.ph-rev3) > .container:has(.ph-rev3) {
  width: 100%;
  max-width: none;
  padding: 0;
}

body#page-top:has(.ph-rev3) .navbar.navbar-fixed-top {
  position: relative;
  min-height: 69px;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--ph-nav-line);
  border-radius: 0;
  background: var(--ph-nav);
}

body:has(.ph-rev3) .navbar > .container {
  width: min(100%, 1432px);
  padding-inline: clamp(17px, 4.4vw, 70px);
}

body:has(.ph-rev3) .navbar .navbar-header { margin-inline: 0; }

body:has(.ph-rev3) .navbar .navbar-nav > li,
body:has(.ph-rev3) .navbar .navbar-nav > li:hover {
  height: auto;
  background: transparent;
}

body:has(.ph-rev3) .navbar-header > a {
  display: inline-flex;
  align-items: center;
  min-height: 68px;
}

body:has(.ph-rev3) .navbar-header img {
  display: block;
  width: 159px;
  height: auto;
  max-height: 52px;
  margin: 0;
  object-fit: contain;
}

body:has(.ph-rev3) .navbar .navbar-toggle {
  min-width: 62px;
  min-height: 44px;
  margin: 12px 0;
  border: 1px solid var(--ph-nav-line);
  border-radius: 2px;
  background: var(--ph-nav);
  color: var(--ph-nav-ink);
  font: 650 14px/1.2 system-ui, sans-serif;
}

body:has(.ph-rev3) .navbar.navbar-custom .nav li > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px clamp(10px, 1.05vw, 16px);
  background: transparent;
  color: var(--ph-nav-ink);
  font: 650 13px/1.3 system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: none;
}

body:has(.ph-rev3) .navbar.navbar-custom .nav li > a:hover,
body:has(.ph-rev3) .navbar.navbar-custom .nav li.current_page_item > a {
  color: var(--ph-nav-active);
  text-decoration: underline;
  text-underline-offset: 5px;
}

body:has(.ph-rev3) .navbar :is(a, button):focus-visible {
  outline: 3px solid var(--ph-nav-active);
  outline-offset: 2px;
}

body:has(.ph-rev3) .footer { padding-top: 24px; }

@media (min-width: 768px) {
  body:has(.ph-rev3) .navbar > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  body:has(.ph-rev3) .navbar > .container::before,
  body:has(.ph-rev3) .navbar > .container::after { display: none; }

  body:has(.ph-rev3) .navbar .navbar-right {
    display: flex;
    align-items: center;
    margin: 0;
  }
}

.ph-rev3 {
  --ph-ink: #25201d;
  --ph-muted: #5a534d;
  --ph-paper: #f5f2ee;
  --ph-card: #fffdfa;
  --ph-line: #d8d0c8;
  --ph-accent: #873b20;
  --ph-focus: #8d4327;
  --ph-black: #151413;
  --ph-white: #fbf7f2;
  --ph-metal: #ffb290;
  --ph-soft: #d9d0c8;
  --ph-inset: clamp(20px, 5vw, 76px);
  color: var(--ph-ink);
  background: var(--ph-paper);
  font: 400 17px/1.6 system-ui, -apple-system, sans-serif;
}

.ph-rev3 *, .ph-rev3 *::before, .ph-rev3 *::after { box-sizing: border-box; }
.ph-rev3 [hidden] { display: none !important; }
.ph-rev3 :is(h1, h2, h3, p, figure, ul) { margin: 0; }
.ph-rev3 :is(p, li) { color: var(--ph-muted); font-size: inherit; }
.ph-rev3 :is(h1, h2, h3) { color: inherit; text-transform: none; }
.ph-rev3 ::selection { background: #ffbb9e; color: #26160e; }

.ph-rev3 :is(a, button, canvas):focus-visible {
  outline: 3px solid var(--ph-focus);
  outline-offset: 4px;
}

.ph-frame {
  width: min(calc(100% - 2 * var(--ph-inset)), 1280px);
  margin-inline: auto;
}

.ph-rev3 h1, .ph-rev3 h2 {
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 760;
  line-height: 1.035;
  letter-spacing: -.046em;
}

.ph-rev3 h1 { font-size: clamp(40px, 5.55vw, 84px); }
.ph-rev3 h2 { font-size: clamp(34px, 4vw, 60px); }
.ph-rev3 h3 { font: 720 clamp(22px, 2.1vw, 31px)/1.16 system-ui, sans-serif; letter-spacing: -.04em; }

.ph-hero {
  --ph-focus: var(--ph-metal);
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(540px, 47vw, 700px);
  isolation: isolate;
  overflow: clip;
  background: var(--ph-black);
  color: var(--ph-white);
}

.ph-hero-art { position: absolute; inset: 0 0 0 25%; z-index: -1; }

.ph-hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ph-hero-art figcaption {
  position: absolute;
  inset: auto var(--ph-inset) 17px auto;
  padding: 4px 9px;
  background: #171513ed;
  color: var(--ph-white);
  font: 550 11px/1.4 system-ui, sans-serif;
}

.ph-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #151413 11%, #151413 27%, #151413e8 39%, #1514136b 54%, transparent 74%);
  pointer-events: none;
}

.ph-hero-inner { padding-block: clamp(58px, 7vw, 112px); }
.ph-hero-copy { max-width: min(59%, 705px); }
.ph-hero h1 span { display: block; text-wrap: balance; }
.ph-hero .ph-service-name { max-width: 11ch; }
.ph-hero .ph-location { margin-top: .13em; color: var(--ph-metal); font-size: .82em; }

.ph-hero-copy > p {
  max-width: 41ch;
  margin-top: 24px;
  color: var(--ph-soft);
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.45;
}

.ph-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ph-hero .ph-actions { margin-top: 29px; }

.ph-rev3 .ph-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  max-width: 100%;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  text-align: center;
  text-decoration: none;
  font: 720 14px/1.25 system-ui, sans-serif;
}

.ph-rev3 .ph-primary { background: #ffb290; color: #30190e; }
.ph-rev3 .ph-primary:hover { background: #ffd0bc; }
.ph-rev3 .ph-outline { border-color: #a18e83; color: var(--ph-white); }
.ph-rev3 .ph-outline:hover { border-color: var(--ph-white); background: #ffffff14; }

.ph-services { padding-block: clamp(44px, 6.5vw, 100px); }

.ph-rev3 .ph-service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(23px, 3.4vw, 42px);
  padding: 0;
  border: 1px solid var(--ph-line);
  background: var(--ph-line);
  gap: 1px;
  list-style: none;
}

.ph-service-list li {
  position: relative;
  padding: clamp(23px, 3.2vw, 48px);
  background: var(--ph-card);
}

.ph-service-list li::before {
  content: "";
  display: block;
  width: 29px;
  height: 2px;
  margin-bottom: clamp(14px, 2vw, 21px);
  background: var(--ph-accent);
}

.ph-service-list h3 { max-width: 26ch; color: var(--ph-ink); }
.ph-service-list p { max-width: 45ch; margin-top: 10px; }

.ph-exhibit {
  --ph-focus: var(--ph-metal);
  padding-block: clamp(44px, 6.5vw, 100px);
  background: #20201e;
  color: var(--ph-white);
}

.ph-exhibit-inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: clamp(28px, 7vw, 110px);
}

.ph-exhibit-copy > p { max-width: 40ch; margin-top: 17px; color: var(--ph-soft); }

.ph-figure {
  min-width: 0;
  border: 1px solid #71665f;
  background: #171715;
}

.ph-stage { position: relative; aspect-ratio: 25 / 16; background: #171715; }

.ph-stage :is(img, canvas) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ph-stage canvas { cursor: grab; touch-action: pan-y; }
.ph-stage canvas:active { cursor: grabbing; }
.ph-stage canvas:focus-visible { outline-offset: -5px; }

.ph-figure-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 13px 16px;
  border-top: 1px solid #514944;
}

.ph-rev3 :is(.ph-figure-caption, .ph-model-hint, .ph-model-status) {
  color: var(--ph-soft);
  font-size: 13px;
  line-height: 1.45;
}

.ph-model-button {
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid #a18e83;
  border-radius: 2px;
  background: transparent;
  color: var(--ph-white);
  font: 690 13px/1.2 system-ui, sans-serif;
  cursor: pointer;
}

.ph-model-button:hover { border-color: var(--ph-white); background: #ffffff14; }
.ph-open { border-color: transparent; background: #ffb290; color: #30190e; }
.ph-open:hover { border-color: transparent; background: #ffd0bc; }
.ph-moves { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.ph-model-hint, .ph-model-status { width: 100%; }
.ph-model-status:empty { position: absolute; overflow: hidden; clip-path: inset(50%); width: 1px; height: 1px; }

.ph-reference { padding-block: clamp(44px, 6.5vw, 91px); }

.ph-reference-inner, .ph-contact-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(24px, 6vw, 86px);
}

.ph-reference h2 { font-size: clamp(32px, 3.4vw, 50px); }
.ph-reference p, .ph-contact p { margin-top: 12px; }

.ph-rev3 .ph-guide-list { list-style: none; padding: 0; border-top: 1px solid var(--ph-line); }
.ph-guide-list li { border-bottom: 1px solid var(--ph-line); }

.ph-rev3 .ph-guide-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  padding: 11px 4px;
  color: var(--ph-accent);
  font-weight: 670;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.ph-guide-list a::after {
  content: "";
  flex: 0 0 8px;
  height: 8px;
  margin-right: 5px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.ph-contact {
  --ph-focus: var(--ph-metal);
  padding-block: clamp(38px, 5vw, 72px);
  border-top: 3px solid #c57350;
  background: #33241e;
  color: var(--ph-white);
}

.ph-contact p { color: var(--ph-soft); }
.ph-contact .ph-actions { justify-content: end; }

@media (max-width: 930px) {
  .ph-exhibit-inner { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 26px; }
  .ph-hero-art { inset-inline-start: 18%; }
  .ph-hero-copy { max-width: min(65%, 530px); }
}

@media (max-width: 700px) {
  .ph-rev3 h1 { font-size: clamp(36px, 8.3vw, 57px); }
  .ph-hero { min-height: auto; }
  .ph-hero-art { inset: auto 0 0; height: clamp(260px, 68vw, 395px); }
  .ph-hero-art img { mask-image: linear-gradient(transparent, #000 24%); object-position: 67% 53%; }
  .ph-hero::after { background: linear-gradient(180deg, #151413 38%, #151413a1 58%, transparent 74%); }
  .ph-hero-inner { padding-block: 36px clamp(175px, 48vw, 290px); }
  .ph-hero-copy { max-width: 510px; }
  .ph-hero .ph-location { font-size: .9em; }
  .ph-hero-copy > p { margin-top: 15px; }
  .ph-hero .ph-actions { margin-top: 19px; }
  .ph-exhibit-inner, .ph-reference-inner, .ph-contact-inner { grid-template-columns: 1fr; }
  .ph-contact .ph-actions { justify-content: start; }
}

@media (max-width: 460px) {
  .ph-rev3 .ph-service-list { grid-template-columns: 1fr; }
  .ph-rev3 .ph-button { min-height: 48px; padding-inline: 13px; }
  .ph-figure-controls { padding: 11px; }
  .ph-model-button { padding-inline: 10px; }
}

@media (prefers-color-scheme: dark) {
  body#page-top:has(.ph-rev3) {
    --ph-nav: #191816;
    --ph-nav-ink: #f7f3ee;
    --ph-nav-line: #574b44;
    --ph-nav-active: #ffb290;
  }

  body:has(.ph-rev3) .navbar-header img { padding: 5px 7px; background: #f5f2ee; }

  .ph-rev3 {
    --ph-ink: #f7f3ee;
    --ph-muted: #d9cfc5;
    --ph-paper: #231f1d;
    --ph-card: #2c2623;
    --ph-line: #594b43;
    --ph-accent: #ffb290;
    --ph-focus: #ffb290;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ph-rev3 *, .ph-rev3 *::before, .ph-rev3 *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
