.reference-page {
  --origin-width: 980px;
  --origin-sky: #dce7eb;
  --origin-cream: #e8e4cc;
  --origin-ink: #2d3433;
}

/* Shared desktop header: dimensions measured from the Wix desktop source. */
.reference-page .masthead,
.reference-page .masthead-inner { height: 199px; min-height: 199px; background: var(--origin-sky); }
.reference-page .masthead-inner { position: relative; width: 100%; max-width: none; margin: 0; padding: 0; }
.reference-page .nameplate { position: absolute; top: 30px; left: max(20px, calc(50% - 615px)); font: 300 54px/.98 Poppins, sans-serif; letter-spacing: 0; }
.reference-page .nameplate strong { font-weight: 600; }
.reference-page .service-line { position: absolute; top: 143px; left: max(20px, calc(50% - 615px)); margin: 0; font: 300 18px/1.5 Quicksand, sans-serif; letter-spacing: -.03em; }
.reference-page .main-nav { right: max(20px, calc(50% - 817px)); top: 22px; gap: 37px; font: 300 16px/1.4 Helvetica, Arial, sans-serif; letter-spacing: .05em; }
.reference-page .main-nav a { padding-bottom: 15px; border-bottom-width: 2px; }
/* Functional addition requested for the self-hosted version: language choices. */
.reference-page .language { display: flex; gap: 0; margin-left: -18px; padding-left: 18px; border-left: 1px solid #aab6b8; }
.reference-page .language button { padding: 9px 8px; font: 500 13px/1 Poppins, sans-serif; }

.about-art { height: 292px; position: relative; overflow: hidden; }
.about-art img, .about-photo > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-art img { object-position: 50% 100%; }
.about-art p { position: absolute; z-index: 1; top: 56px; left: 50%; width: 820px; max-width: calc(100% - 40px); transform: translateX(-50%); margin: 0; text-align: center; font: italic 600 20px/1.67 Quicksand, sans-serif; }
.about-photo { height: 596px; position: relative; overflow: hidden; }
.about-photo > img { object-position: 50% 50%; }
.about-photo p { position: absolute; z-index: 1; bottom: 58px; left: 50%; width: 760px; max-width: calc(100% - 40px); transform: translateX(-50%); margin: 0; color: #fff; text-align: center; text-shadow: 0 1px 3px #222; font: italic 300 32px/1.25 Quicksand, sans-serif; }

.reference-journey { max-width: 980px; padding: 90px 0; margin: auto; font-family: Quicksand, sans-serif; }
.reference-journey > h1, .reference-journey h2 { font-family: Poppins, sans-serif; }
.reference-journey > h1 { font-size: 54px; font-weight: 300; text-align: center; }
.reference-journey .journey-lead { text-align: center; font: italic 300 30px/1.35 Quicksand, sans-serif; }
.reference-journey article { max-width: 820px; margin: 70px auto 0; }
.reference-journey h2 { font-size: 24px; }
.reference-journey ul { font-size: 20px; }
.reference-journey .practice p { font-family: Poppins, sans-serif; }
.reference-page footer { background: var(--origin-sky); }

/* The original page changes from the cream career introduction into a blue records panel. */
.professional-intro { min-height: 355px; padding: 90px 20px 55px; background: var(--origin-cream); color: var(--origin-ink); text-align: center; }
.professional-intro h1 { margin: 0 0 36px; font: 300 54px/1.2 Poppins, sans-serif; }
.professional-intro p { width: 820px; max-width: 100%; margin: 0 auto; font: italic 600 20px/1.67 Quicksand, sans-serif; }
.professional-records { position: relative; padding: 90px 0 110px; background: var(--origin-sky); color: var(--origin-ink); }
.professional-records article { width: 820px; max-width: calc(100% - 40px); margin: 0 auto 70px; }
.professional-records article + article { padding-top: 62px; border-top: 1px solid rgba(98,103,102,.35); }
.professional-records h2 { margin: 0 0 30px; font: 300 24px/1.35 Poppins, sans-serif; letter-spacing: .12em; }
.professional-records ul { margin: 0; padding-left: 26px; font: 300 20px/1.5 Quicksand, sans-serif; }
.professional-records li { padding: 5px 0; }
.professional-records .practice { margin-bottom: 0; }
.professional-records .practice p { margin: 0; color: #435c60; font: 300 68px/1 Poppins, sans-serif; }
.professional-records .practice small { display: block; max-width: 620px; margin-top: 10px; font: 300 17px/1.4 Quicksand, sans-serif; }

/* Original Wix video channel: five YouTube interviews in a three-column grid. */
.video-interviews { padding: 40px 0 58px; background: #f9f6ee; color: var(--origin-ink); }
.video-interviews h2 { width: 980px; max-width: calc(100% - 40px); margin: 0 auto 32px; font: 300 24px/1.35 Poppins, sans-serif; }
.video-interviews h2 span { color: #a2b2b6; }
.video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(1740px, calc(100% - 180px)); margin: 0 auto; gap: 40px 0; }
.video-card { display: block; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; font: 300 20px/1.15 Quicksand, sans-serif; }
.video-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.video-card > span { display: block; max-width: 95%; padding: 22px 20px 0; }
.video-card:focus-visible { outline: 3px solid #626766; outline-offset: 4px; }
.video-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 25px; background: rgba(20, 28, 28, .82); }
.video-modal[hidden] { display: none; }
.video-modal-content { position: relative; width: min(960px, 100%); background: #000; }
.video-modal iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video-modal-close { position: absolute; z-index: 1; top: -44px; right: 0; border: 0; background: transparent; color: #fff; cursor: pointer; font: 300 18px Poppins, sans-serif; }

/* Contact page: original picture, source dimensions and semi-transparent panels. */
.contact-reference { position: relative; height: 816px; overflow: hidden; background: #68716f; }
.contact-reference > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; display: block; }
.contact-reference::before { content: ""; position: absolute; z-index: 1; inset: 0 0 auto; height: 29px; background: var(--origin-sky); clip-path: polygon(0 0, 100% 0, 100% 14%, 77% 16%, 44% 65%, 0 100%); }
.contact-reference > h1 { position: absolute; z-index: 2; top: 70px; left: 50%; width: 980px; max-width: calc(100% - 40px); transform: translateX(-50%); margin: 0; color: #fff; text-align: center; font: 300 54px/1 Poppins, sans-serif; letter-spacing: 0; }
.contact-reference-content { position: absolute; z-index: 2; top: 195px; left: 0; width: 100%; height: 566px; }
.contact-reference .contact-details { position: absolute; top: 0; left: max(0px, calc(50% - 824px)); width: 245px; height: 566px; padding: 82px 18px 35px; background: rgba(255,255,255,.8); font: 300 16px/1.5 Quicksand, sans-serif; }
.contact-reference .contact-details p { margin: 0 0 24px; }
.contact-reference .contact-details strong { font: 600 18px/1.2 Poppins, sans-serif; letter-spacing: 0; }
.contact-reference .contact-details hr { width: 204px; margin: 54px 0 18px; border: 0; border-top: 2px solid #fff; }
.contact-reference .contact-details a { display: block; margin: 6px 0; text-decoration: underline; font: 600 16px/1.25 Poppins, sans-serif; }
.contact-reference form { position: absolute; top: 66px; left: calc(50% - 228px); display: grid; grid-template-columns: 218px 218px; width: 488px; padding: 16px 15px 29px 17px; gap: 0 18px; background: rgba(255,255,255,.4); }
.contact-reference form label { display: grid; gap: 9px; margin: 0 0 18px; color: var(--origin-ink); font: 600 16px/1.2 Poppins, sans-serif; letter-spacing: 0; }
.contact-reference form label:nth-of-type(3), .contact-reference form label:nth-of-type(4) { grid-column: 1 / 3; }
.contact-reference form input { width: 218px; height: 37px; padding: 3px 10px; border: 1px solid var(--origin-ink); background: rgba(220,231,235,.65); font: 14px/1.4 Arial, sans-serif; }
.contact-reference form label:nth-of-type(3) input, .contact-reference form textarea { width: 455px; }
.contact-reference form textarea { height: 143px; padding: 8px 10px; border: 1px solid var(--origin-ink); background: rgba(220,231,235,.65); resize: vertical; font: 14px/1.4 Arial, sans-serif; }
.contact-reference form button { grid-column: 2; width: 165px; height: 36px; justify-self: end; margin-top: 10px; padding: 0; border: 1px solid #626766; background: #626766; color: #fff; font: 300 16px/1 Poppins, sans-serif; letter-spacing: 0; }
.contact-reference .form-status { grid-column: 1 / 3; margin: 8px 0 0; font-family: Quicksand, sans-serif; }
.reference-page:has(.contact-reference) footer { height: 630px; padding: 0 0 100px; background: #fff; color: #2d3433; align-items: flex-end; font: 600 14px Poppins, sans-serif; }
.reference-page:has(.contact-reference) footer a { padding-right: 18px; border-right: 1px solid #909d9b; text-decoration: underline; }
.reference-page:has(.contact-reference) footer a:last-child { padding-right: 0; border: 0; }

@media (max-width: 800px) {
  .reference-page .masthead, .reference-page .masthead-inner { height: 185px; min-height: 185px; }
  .reference-page .nameplate { top: 28px; left: 20px; font-size: 32px; }
  .reference-page .service-line { top: 120px; left: 20px; margin: 0; font-size: 12px; }
  .reference-page .main-nav { top: 78px; right: 0; }
  .about-art { height: 320px; }
  .about-art p { top: 48px; font-size: 18px; }
  .about-photo { height: 480px; }
  .about-photo p { bottom: 45px; font-size: 25px; }
  .reference-journey { padding: 65px 25px; }
  .reference-journey > h1 { font-size: 38px; }
  .reference-journey .journey-lead { font-size: 24px; }
  .reference-journey article { margin-top: 45px; }
  .reference-journey ul { font-size: 18px; }
  .professional-intro { min-height: 0; padding: 65px 25px; }
  .professional-intro h1 { font-size: 38px; }
  .professional-intro p { font-size: 18px; }
  .professional-records { padding: 65px 0; }
  .professional-records article { margin-bottom: 50px; }
  .professional-records ul { font-size: 18px; }
  .professional-records .practice p { font-size: 52px; }
  .video-interviews { padding: 48px 0; }
  .video-interviews h2 { max-width: calc(100% - 50px); font-size: 22px; }
  .video-grid { grid-template-columns: 1fr; width: calc(100% - 50px); gap: 34px; }
  .video-card { font-size: 18px; }
  .video-card > span { padding: 15px 0 0; }
  .contact-reference { height: auto; min-height: 920px; }
  .contact-reference > img { position: relative; height: 390px; object-position: center; }
  .contact-reference::before { display: none; }
  .contact-reference > h1 { top: 42px; font-size: 31px; }
  .contact-reference-content { position: relative; top: 0; height: auto; padding: 0; }
  .contact-reference .contact-details, .contact-reference form { position: relative; top: auto; left: auto; width: 100%; height: auto; }
  .contact-reference .contact-details { padding: 42px 25px; background: rgba(255,255,255,.9); }
  .contact-reference form { display: grid; grid-template-columns: 1fr; padding: 30px 25px; background: var(--origin-cream); gap: 0; }
  .contact-reference form label, .contact-reference form label:nth-of-type(3), .contact-reference form label:nth-of-type(4) { grid-column: 1; }
  .contact-reference form input, .contact-reference form label:nth-of-type(3) input, .contact-reference form textarea { width: 100%; }
  .contact-reference form button { grid-column: 1; justify-self: start; }
  .reference-page:has(.contact-reference) footer { height: auto; padding: 35px 20px; background: var(--origin-sky); }
}
