/* A restrained editorial service menu keeps the portrait visible. */
.services-section {
  min-height: 790px;
  padding: 112px 0 124px;
  background: rgba(255, 255, 255, .08);
}

.services-section::before {
  background-image: none;
  background-size: cover;
  background-position: center;
  opacity: 0;
  filter: none;
}

.services-section::after {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, .95) 0%,
    rgba(255, 255, 255, .91) 28%,
    rgba(255, 255, 255, .78) 46%,
    rgba(255, 255, 255, .46) 68%,
    rgba(255, 255, 255, .16) 100%);
}

.services-section .section-head {
  display: block;
  max-width: 655px;
  margin-bottom: 48px;
}

.services-section .kicker {
  margin-bottom: 17px;
  padding-top: 0;
}

.services-section .lead {
  max-width: 590px;
  color: #52575a;
}

/* All light sections share the same bright editorial fade. */
.experience-section,
.contact-section {
  background: linear-gradient(90deg,
    rgba(255, 255, 255, .95) 0%,
    rgba(255, 255, 255, .91) 28%,
    rgba(255, 255, 255, .78) 46%,
    rgba(255, 255, 255, .46) 68%,
    rgba(255, 255, 255, .16) 100%);
  backdrop-filter: blur(5px);
}

/* Keep supporting copy crisp over the translucent experience panel. */
.experience-section .bio {
  color: #30363a;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.75;
}

.experience-section .experience-mark span {
  color: #343b40;
  font-size: .82rem;
  font-weight: 800;
}

.experience-section .row span {
  color: #353c41;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.6;
}

.contact-section .contact-box {
  background: linear-gradient(110deg, rgba(3, 4, 5, .64), rgba(3, 4, 5, .46)) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero-copy {
  background: linear-gradient(110deg, rgba(3, 4, 5, .64), rgba(3, 4, 5, .46)) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.hero-copy,
.contact-section .contact-box {
  --panel-cut: 26px;
  --panel-cut-line: 37px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - var(--panel-cut)) 0, 100% var(--panel-cut), 100% 100%, 0 100%) !important;
  border: 1px solid rgba(137, 147, 159, .78);
  border-left: 3px solid var(--red);
  border-radius: 0;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .025),
    inset 0 1px 0 rgba(255, 255, 255, .08),
    0 0 0 5px rgba(31, 39, 53, .24),
    0 0 0 6px rgba(112, 126, 148, .10),
    0 22px 64px rgba(0, 0, 0, .34);
}

@property --silver-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.hero-copy::before,
.contact-section .contact-box::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0 0 0 2px;
  padding: 1px;
  pointer-events: none;
  background: conic-gradient(
    from var(--silver-angle),
    #555e69 0deg,
    #919ca8 34deg,
    #fbfdff 44deg,
    #727c87 54deg,
    #4d5661 112deg,
    #a8b2bd 170deg,
    #ffffff 180deg,
    #6b7580 190deg,
    #4c5560 252deg,
    #9da8b4 306deg,
    #f8fbff 316deg,
    #59636e 326deg,
    #555e69 360deg
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  filter: drop-shadow(0 0 2px rgba(241, 247, 253, .34));
  animation: silver-frame-flow 7s linear infinite;
}

.hero-copy::after,
.contact-section .contact-box::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: calc(var(--panel-cut) - 1px);
  right: 0;
  width: var(--panel-cut-line);
  height: 1px;
  pointer-events: none;
  transform: rotate(45deg);
  transform-origin: right center;
  background: linear-gradient(90deg, #69737e 0%, #f9fcff 48%, #8a95a1 100%);
  box-shadow: 0 0 4px rgba(238, 246, 255, .34);
}

@keyframes silver-frame-flow {
  to { --silver-angle: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy::before,
  .contact-section .contact-box::before {
    animation: none;
  }
}

.services {
  display: grid;
  grid-template-columns: minmax(280px, 590px);
  gap: 17px;
  width: min(100%, 590px);
}

.service {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 68px;
  padding: 13px 24px 13px 28px;
  overflow: visible;
  border: 2px solid transparent;
  border-radius: 999px;
  color: #fff8e8;
  background:
    radial-gradient(115% 125% at 48% 125%, rgba(0, 0, 0, .98) 0 48%, transparent 49%) padding-box,
    linear-gradient(160deg, #2c2e2c 0%, #121313 45%, #020202 100%) padding-box,
    linear-gradient(112deg, #74500a 0%, #d9a827 14%, #fff0a2 27%, #ad7b0d 47%, #f6d562 67%, #8b6009 82%, #f1c94d 100%) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 196, .38),
    inset 0 -12px 24px rgba(0, 0, 0, .58),
    0 10px 22px rgba(0, 0, 0, .22),
    0 0 0 1px rgba(83, 56, 5, .68),
    0 0 15px rgba(231, 182, 34, .37),
    0 0 34px rgba(218, 166, 25, .16);
  font: 400 clamp(1.2rem, 2vw, 1.48rem)/1.2 "Iowan Old Style", Baskerville, Georgia, serif;
  letter-spacing: -.012em;
  text-shadow: 0 1px 9px rgba(255, 220, 117, .16);
  -webkit-tap-highlight-color: rgba(185, 154, 106, .15);
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}

.service::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2px;
  border-radius: inherit;
  background:
    radial-gradient(90% 90% at 29% 0%, rgba(244, 215, 113, .31), transparent 56%),
    linear-gradient(155deg, rgba(255, 255, 255, .13), transparent 36% 100%);
  pointer-events: none;
}

.service::after {
  content: "→";
  position: static;
  flex: 0 0 auto;
  margin-left: 22px;
  color: #e7c45c;
  background: none;
  font: 400 1.2rem/1 Georgia, serif;
  opacity: .86;
  transition: transform .3s ease, color .3s ease;
}

.service:focus-visible {
  outline: 2px solid #a51d32;
  outline-offset: 5px;
}

@media (hover: hover) and (pointer: fine) {
  .service:hover {
    transform: translateX(6px);
    filter: brightness(1.05);
    box-shadow:
      inset 0 1px 0 rgba(255, 248, 203, .44),
      inset 0 -12px 24px rgba(0, 0, 0, .55),
      0 13px 28px rgba(0, 0, 0, .27),
      0 0 0 1px rgba(114, 77, 7, .78),
      0 0 24px rgba(242, 194, 47, .54),
      0 0 50px rgba(228, 175, 29, .28);
  }

  .service:hover::after {
    color: #fff0a2;
    transform: translateX(4px);
  }
}

@media (max-width: 760px) {
  .hero-copy,
  .contact-section .contact-box {
    --panel-cut: 18px;
    --panel-cut-line: 26px;
  }

  .services-section {
    min-height: 770px;
    padding: 78px 0 92px;
  }

  .services-section::before {
    background-image: url('doctor-services.png');
    background-size: cover;
    background-position: 57% center;
    opacity: .82;
    filter: saturate(.82) contrast(1.05);
  }

  .services-section::after {
    background: linear-gradient(90deg,
      rgba(255, 255, 255, .94) 0%,
      rgba(255, 255, 255, .86) 40%,
      rgba(255, 255, 255, .58) 68%,
      rgba(255, 255, 255, .28) 100%);
  }

  .services-section .section-head {
    max-width: 100%;
    margin-bottom: 35px;
    padding: 23px 24px 24px;
    border: 1px solid rgba(255, 255, 255, .46);
    background: rgba(255, 255, 255, .46);
    backdrop-filter: blur(2px);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .08);
  }

  .services-section .lead {
    color: #34383a;
  }

  .experience-section,
  .contact-section {
    background: linear-gradient(90deg,
      rgba(255, 255, 255, .94) 0%,
      rgba(255, 255, 255, .86) 40%,
      rgba(255, 255, 255, .58) 68%,
      rgba(255, 255, 255, .28) 100%);
  }

  .services {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .service {
    min-height: 62px;
    padding: 12px 20px 12px 23px;
    font-size: clamp(1.08rem, 5.1vw, 1.32rem);
  }
}

@media (max-width: 430px) {
  .services-section { min-height: 720px; }
  .services-section .section-head { padding: 20px; }
  .services-section .section-head h2 { font-size: clamp(2.25rem, 12vw, 3.2rem); }
  .services-section .lead { font-size: .96rem; }
  .service { min-height: 58px; padding-inline: 20px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .service,
  .service::after { transition: none; }
  .service:hover,
  .service:hover::after { transform: none; }
}

/* Deep-black translucent panels: the lighter page beneath should remain only subtly visible. */
.hero-copy,
.contact-section .contact-box {
  background: linear-gradient(110deg, rgba(0, 0, 0, .92), rgba(0, 0, 0, .84)) !important;
}

/* Leave a strip of the background between the light experience section and contact plaque. */
.contact-section{padding-top:52px}
@media(max-width:760px){.contact-section{padding-top:38px}}

/* Keep supporting copy dark on the original white fade. */
.services-section .lead,
.experience-section .bio,
.experience-section .row span,
.experience-section .experience-mark span{
  color:#30383e;
}
