body[data-page=contact],
body[data-page=contact] main {
  background: #f4f4f1;
}

body[data-page=contact] {
  overflow-x: clip;
}

body[data-page=contact] main {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: clip;
}

.dr-contact-scene {
  position: relative;
  background: radial-gradient(ellipse at 50% 48%, #fff 0, #f4f4f1 62%);
}

.dr-contact-stage {
  display: grid;
  justify-items: center;
  position: relative;
  isolation: isolate;
  padding: 108px clamp(16px, 5vw, 44px) clamp(56px, 9vw, 80px);
  overflow: clip;
}

.dr-contact-stage::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: clamp(250px, 60vw, 350px);
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, #db8841eb, #e8aa727a 48%, transparent);
  opacity: var(--contact-intro-presence, 1);
}

.dr-contact-hero {
  display: contents;
}

.dr-contact-intro {
  position: relative;
  z-index: 3;
  width: 100%;
  text-align: center;
}

.dr-contact-intro h1 {
  margin: 0;
  color: #252821;
  font-size: clamp(27px, 4.4vw, 48px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.28;
  text-wrap: balance;
}

.dr-contact-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 3.3vw, 56px);
  width: min(100%, 1040px);
  margin: clamp(30px, 6.5vh, 64px) auto 0;
  font-style: normal;
}

.dr-contact-methods .dr-contact-method {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.3vw, 22px);
  min-width: 0;
  min-height: 76px;
  padding: 14px clamp(12px, 1.35vw, 22px);
  border: 1px solid #fff8;
  border-radius: 16px;
  background: linear-gradient(110deg, #fbfaf6e8, #f6e9dcdf);
  box-shadow: 0 9px 23px #33312b12;
  color: #383631;
  font-size: clamp(12px, .9vw, 15px);
  line-height: 1.5;
  text-align: left;
}

.dr-contact-method svg {
  width: 21px;
  height: 21px;
  flex: none;
  fill: #dc863c;
}

.dr-contact-method p {
  margin: 0;
}

.dr-contact-numbers {
  min-width: 0;
}

.dr-contact-landlines {
  display: flex;
  flex-wrap: wrap;
  column-gap: .25em;
}

.dr-contact-methods a {
  color: inherit;
  text-decoration: none;
}

.dr-contact-methods a:is(:hover, :focus-visible) {
  color: #a44f18;
}

.dr-contact-landlines a {
  white-space: nowrap;
}

.dr-contact-method > span {
  overflow-wrap: anywhere;
}

.dr-globe-wrap {
  position: relative;
  z-index: 1;
  width: min(100%, 450px);
  margin-top: 14px;
}

.dr-globe-sphere {
  position: relative;
  aspect-ratio: 1;
}

.dr-globe-sphere::before {
  content: '';
  position: absolute;
  inset: 6.5%;
  border: 1px solid #ffffffdc;
  border-radius: 50%;
  background: radial-gradient(circle at 31% 30%, #fff 6%, #f5f5f0 47%, #e4e7df 69%, #c4cbbf 90%);
  box-shadow: 0 8px 22px #52644320;
  pointer-events: none;
}

.dr-globe-sphere::after {
  content: '';
  position: absolute;
  inset: auto 21% 0;
  height: 6%;
  z-index: -1;
  border-radius: 50%;
  background: #69716c21;
  filter: blur(24px);
}

.dr-globe-canvas {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab !important;
  touch-action: pan-y pinch-zoom;
}

.dr-globe-canvas:active {
  cursor: grabbing !important;
}

.dr-globe-location {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
}

.dr-globe-location > i {
  display: block;
  width: 14px;
  height: 14px;
  border: 3px solid white;
  border-radius: 50%;
  background: #e88b40;
  box-shadow: 0 0 0 8px #e88b4020, 0 2px 12px #e88b4050;
  transform: translate(-50%, -50%) scale(var(--globe-counter-scale, 1));
}

.dr-globe-location > div {
  position: absolute;
  left: 18px;
  bottom: 16px;
  padding: 11px 14px;
  border: 1px solid #fff;
  border-radius: 11px;
  background: #fffffff0;
  box-shadow: 0 8px 36px #38443516;
  white-space: nowrap;
  transform: scale(var(--globe-counter-scale, 1));
  transform-origin: left bottom;
}

.dr-globe-location :is(strong, span) {
  display: block;
}

.dr-globe-location strong {
  color: #33382f;
  font-size: 13px;
  font-weight: 500;
}

.dr-globe-location span {
  margin-top: 3px;
  color: #71776d;
  font-size: 10px;
}

.dr-contact-wordmark {
  position: relative;
  z-index: 3;
  width: min(100%, 510px);
  margin-top: max(-48px, -11%);
  aspect-ratio: 714 / 74;
  background: #df8940;
  -webkit-mask: url('../static/svg/footer-wordmark.svg?v=20261112-smooth') center / 100% 100% no-repeat;
  mask: url('../static/svg/footer-wordmark.svg?v=20261112-smooth') center / 100% 100% no-repeat;
  pointer-events: none;
}

.dr-contact-start {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 4;
  width: max-content;
  min-height: 44px;
  margin-top: 24px;
  color: #614022;
  text-decoration: none;
  font-size: 13px;
}

.dr-contact-start svg {
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid #d4d6cc;
  border-radius: 50%;
  background: #fff9;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  transition: background .3s, border-color .3s, color .3s;
}

.dr-contact-start:is(:hover, :focus-visible) svg {
  border-color: #e88b40;
  background: #e88b40;
  color: #fff;
}

.dr-contact-panel {
  position: relative;
  z-index: 3;
  width: min(100%, 680px);
  margin-top: 34px;
  padding: clamp(22px, 4.5vw, 36px);
  border: 1px solid #e4ded3;
  border-radius: 22px;
  background: #fffefa;
  box-shadow: 0 16px 48px #4234250a;
  scroll-margin-top: 88px;
}

.dr-contact-panel h2 {
  margin: 0 0 9px;
  font-size: clamp(27px, 2.5vw, 43px);
  font-weight: 400;
  letter-spacing: -.04em;
  line-height: 1.2;
}

.dr-contact-panel-head > p {
  margin: 0;
  color: #62685f;
  font-size: 14px;
  line-height: 1.65;
}

body[data-page=contact] .dr-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 23px;
  margin: 24px 0 0;
  padding: 0;
}

body[data-page=contact] .dr-form label {
  gap: 6px;
  color: #535b50;
  font-size: 13px;
  line-height: 1.5;
}

body[data-page=contact] .dr-form :is(input:not([type=checkbox]), textarea) {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #cfd4c8;
  border-radius: 7px;
  background: #ffffffb3;
  box-shadow: none;
  color: #343c30;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color .25s, background .25s, box-shadow .25s;
}

body[data-page=contact] .dr-form :is(input:not([type=checkbox]), textarea):focus {
  border-color: #c37331;
  background: #fff;
  box-shadow: 0 0 0 3px #e88b401f;
  outline: none;
}

body[data-page=contact] .dr-form :is(input, textarea)::placeholder {
  color: #767d72;
}

body[data-page=contact] .dr-form textarea[name=message] {
  min-height: 146px;
  height: 146px;
  resize: vertical;
}

body[data-page=contact] .dr-form input[type=checkbox] {
  width: 17px;
  height: 17px;
  accent-color: #e88b40;
}

body[data-page=contact] .dr-consent-row {
  flex-wrap: wrap;
  gap: 4px;
}

body[data-page=contact] .dr-form .dr-consent {
  align-items: center;
  min-height: 44px;
  gap: 8px;
  font-size: 12px;
}

.dr-contact-panel .dr-privacy-open {
  min-height: 44px;
  font-size: 12px;
}

body[data-page=contact] .dr-form .dr-cta {
  justify-self: start;
  grid-column: 1 / -1;
  margin: 0;
}

body[data-page=contact] .dr-form-status {
  margin: 0;
  color: #535d4b;
  font-size: 12px;
}

.dr-contact-progress {
  display: none;
}

body[data-page=contact] .live-footer {
  background: linear-gradient(to bottom, #E99855, #fff);
}

@media (min-width: 901px) and (min-height: 701px) and (prefers-reduced-motion: no-preference) {
  .dr-contact-scene.is-ready {
    height: 220vh;
    height: 220dvh;
  }

  .dr-contact-scene.is-ready .dr-contact-stage {
    display: block;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    padding: 0;
  }

  .dr-contact-scene.is-ready .dr-contact-stage::before {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, #e88b4000, #f2a45c1f 25%, #ee954573 63%, #e88b40e0);
    opacity: var(--contact-glow, 0);
    transform: translateY(calc((1 - var(--contact-glow, 0)) * 55%));
  }

  .dr-contact-scene.is-ready .dr-contact-stage::after {
    height: 34%;
    transform: translateY(calc((1 - var(--contact-intro-presence, 1)) * -18%));
  }

  .dr-contact-scene.is-ready .dr-contact-intro {
    position: absolute;
    inset: clamp(95px, 12vh, 150px) var(--dr-gutter) auto;
    width: auto;
  }

  .dr-contact-intro h1 {
    font-size: clamp(28px, 2.7vw, 48px);
  }

  .dr-contact-scene.is-ready .dr-globe-wrap {
    position: absolute;
    top: var(--contact-globe-top, 82%);
    left: 50%;
    width: min(125vh, 80vw, 1400px);
    width: min(125dvh, 80vw, 1400px);
    margin-top: 0;
    transform: translate(-50%, -50%);
  }

  .dr-contact-scene.is-ready .dr-contact-wordmark {
    position: absolute;
    inset: auto 16px -3px;
    width: auto;
    margin: 0;
    opacity: var(--contact-intro-presence, 1);
    transform: translateY(calc((1 - var(--contact-intro-presence, 1)) * 65px));
  }

  .dr-contact-scene.is-ready .dr-contact-start {
    position: absolute;
    top: 50%;
    right: var(--dr-gutter);
    margin: 0;
  }

  .dr-contact-scene.is-ready .dr-contact-start > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .dr-contact-scene.is-ready .dr-contact-panel {
    position: absolute;
    top: clamp(91px, 12vh, 150px);
    right: var(--dr-gutter);
    width: min(43%, 680px);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    opacity: 0;
  }

  body[data-page=contact] .dr-contact-scene.is-ready .dr-form {
    margin-top: clamp(24px, 4vh, 56px);
  }

  body[data-page=contact] .dr-contact-scene.is-ready .dr-form :is(input:not([type=checkbox]), textarea) {
    min-height: 42px;
    border-radius: 3px;
    background: #fff7;
    font-size: 13px;
  }

  body[data-page=contact] .dr-contact-scene.is-ready .dr-form textarea[name=message] {
    min-height: 128px;
    height: 160px;
    resize: none;
  }

  .dr-contact-scene.is-ready .dr-contact-progress {
    display: block;
    position: absolute;
    inset: auto var(--dr-gutter) 0;
    height: 1px;
    background: #dfe2d8;
  }

  .dr-contact-progress i {
    display: block;
    height: 100%;
    background: #e88b40;
    transform: scaleX(0);
    transform-origin: left;
  }
}

@media (min-width: 901px) and (min-height: 701px) and (max-height: 780px) and (prefers-reduced-motion: no-preference) {
  body[data-page=contact] .dr-contact-scene.is-ready .dr-form {
    gap: 10px 18px;
  }

  body[data-page=contact] .dr-contact-scene.is-ready .dr-form textarea[name=message] {
    height: 128px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .dr-contact-scene.is-ready .dr-contact-intro h1 {
    animation: dr-contact-arrive .8s .1s both;
  }

  .dr-contact-scene.is-ready .dr-globe-sphere {
    animation: dr-globe-arrive 1.15s both cubic-bezier(.22, 1, .36, 1);
  }
}

@keyframes dr-contact-arrive {
  from {
    opacity: 0;
    translate: 0 16px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes dr-globe-arrive {
  from {
    opacity: 0;
    scale: .88;
  }

  to {
    opacity: 1;
    scale: 1;
  }
}

/* Small screens */

@media (max-width: 900px) {
  /* Contact */
  .dr-contact-stage {
    padding-top: var(--dr-mobile-nav);
    padding-inline: var(--dr-gutter);
  }

  .dr-contact-intro h1 {
    margin-inline: auto;
    max-width: 13em;
    font-size: clamp(27px, 5.7vw, 40px);
  }

  .dr-contact-start {
    display: none;
  }

  .dr-contact-methods {
    margin-top: var(--dr-mobile-block-gap);
  }

  .dr-contact-methods .dr-contact-method {
    border-color: #fff;
    font-size: 14px;
  }

  body[data-page=contact] .dr-form textarea[name=message] {
    height: 160px;
    max-height: 160px;
    resize: none;
  }
}

/* Phone composition: the stage clips the rotating globe at the hero edge. */
@media (max-width: 767px) {
  .dr-contact-stage {
    display: block;
    padding: 0 0 clamp(36px, 9vw, 56px);
    background: #f3f2ee;
  }

  .dr-contact-stage::after {
    display: none;
  }

  .dr-contact-hero {
    display: block;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    min-height: max(480px, min(192vw, 100vh));
    min-height: max(480px, min(192vw, 100svh));
    padding: clamp(80px, 23.5vw, 106px) clamp(24px, 10.7vw, 70px) clamp(92px, 24vw, 130px);
    background: linear-gradient(180deg, #de995e, #ecd3bc 38%, #eae9e4 60%, #e4e5df);
  }

  .dr-contact-intro {
    text-align: left;
  }

  .dr-contact-intro h1 {
    margin: 0;
    max-width: none;
    font-size: clamp(25px, 6.75vw, 36px);
    line-height: 1.4;
    font-weight: 700;
    color: #221e19;
  }

  .dr-contact-comma {
    display: none;
  }

  .dr-contact-title-end {
    display: block;
  }

  .dr-contact-methods {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(15px, 4.5vw, 23px);
    margin: clamp(26px, 9.5vw, 42px) 0 0;
  }

  .dr-contact-methods .dr-contact-method {
    justify-content: flex-start;
    align-items: flex-start;
    gap: clamp(12px, 3.6vw, 18px);
    min-height: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    color: #39342e;
    font-size: clamp(14px, 3.75vw, 17px);
    line-height: 1.32;
  }

  .dr-contact-method svg {
    width: 1.15em;
    height: 1.15em;
    margin-top: .1em;
  }

  .dr-globe-wrap {
    position: absolute;
    bottom: 0;
    left: -11%;
    width: min(258%, 1180px);
    margin: 0;
    transform: translateY(50%);
    opacity: .8;
  }

  .dr-globe-sphere::before {
    background: radial-gradient(circle at 32% 28%, #f0f0e9, #eeefe8 48%, #d9ddd2 75%, #c7cebf);
  }

  .dr-globe-location.is-right > div {
    left: auto;
    right: 12px;
  }

  .dr-globe-location > div {
    left: 12px;
    bottom: 10px;
    padding: 8px 10px;
  }

  .dr-contact-wordmark {
    position: absolute;
    inset: auto 3.2% 1.5%;
    width: auto;
    margin: 0;
  }

  .dr-contact-panel {
    width: min(90%, 600px);
    margin: clamp(56px, 23.3vw, 102px) auto 0;
    padding: clamp(24px, 7.2vw, 33px) clamp(18px, 5.3vw, 28px);
    border-radius: clamp(16px, 4.7vw, 22px);
  }

  .dr-contact-panel h2 {
    margin-bottom: clamp(10px, 3.25vw, 15px);
    font-size: clamp(27px, 7.5vw, 35px);
  }

  .dr-contact-panel-head > p {
    font-size: clamp(15px, 4.2vw, 18px);
    line-height: 1.7;
  }

  body[data-page=contact] .dr-form {
    grid-template-columns: minmax(0, 1fr);
    margin-top: clamp(25px, 8.4vw, 37px);
    gap: clamp(18px, 6vw, 26px);
  }

  body[data-page=contact] .dr-form label,
  .dr-contact-panel .dr-privacy-open {
    font-size: clamp(14px, 3.7vw, 16px);
  }

  body[data-page=contact] .dr-form label {
    gap: clamp(8px, 2.5vw, 12px);
  }

  body[data-page=contact] .dr-form :is(input:not([type=checkbox]), textarea) {
    min-height: clamp(48px, 14vw, 60px);
    border-radius: 10px;
    background-color: #fff;
  }

  body[data-page=contact] .dr-form :is(input, textarea):not(:focus)::placeholder {
    opacity: 0;
  }

  body[data-page=contact] .dr-form textarea[name=message] {
    height: clamp(144px, 43vw, 185px);
    max-height: none;
    resize: vertical;
  }

  body[data-page=contact] .dr-form input[type=checkbox] {
    width: 21px;
    height: 21px;
  }

  body[data-page=contact] .dr-form .dr-consent {
    font-size: clamp(13px, 3.5vw, 15px);
  }

  body[data-page=contact] .dr-form .dr-cta,
  body[data-page=contact] .dr-form .dr-cta > .cta-label {
    width: 100%;
    text-align: center;
  }

  body[data-page=contact] .dr-form .dr-cta > .cta-label {
    display: grid;
    place-items: center;
    min-height: clamp(48px, 13.3vw, 58px);
    padding: 0 16px;
    font-size: 16px;
  }

  .dr-privacy-dialog {
    max-width: calc(100% - 2 * var(--dr-gutter));
    max-height: calc(100% - 2 * var(--dr-gutter));
    padding: 24px 16px;
    overflow: auto;
  }
}
