:root {
  --color-teal: #245F59;
  --color-cream: #F7F4ED;
  --color-gold: #BD9550;
  --color-charcoal: #273238;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--color-cream); color: var(--color-charcoal); font: 400 17px/1.7 Arial, sans-serif; }
a { color: var(--color-teal); text-underline-offset: 5px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 3px solid var(--color-teal); outline-offset: 6px; border-radius: 2px; }
.page-width { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.site-header { padding-block: 34px 26px; display: flex; align-items: center; justify-content: space-between; gap: 32px; border-bottom: 1px solid var(--color-gold); }
.brand-link { flex-shrink: 0; max-width: 100%; }
.header-logo { display: block; width: 300px; max-width: 100%; height: auto; }
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 23px; font-size: 16px; }
nav a { text-decoration: none; }
nav a:hover, nav a:focus-visible { text-decoration: underline; }
.menu-toggle { display: none; }
.intro { padding-block: 64px; }
.tagline { max-width: 1030px; margin: 0 0 20px; color: var(--color-teal); font-family: system-ui, sans-serif; font-size: clamp(29px, 3.4vw, 42px); line-height: 1.25; font-weight: 300; letter-spacing: -0.5px; text-wrap: pretty; }
p { margin: 0 0 22px; }
.elevator-pitch { max-width: 70ch; margin-bottom: 32px; }
.launch { max-width: 590px; padding: 16px 20px; border-left: 3px solid var(--color-gold); background: rgb(36 95 89 / 5%); }
.launch p { margin-bottom: 5px; }
.launch p:last-child { margin-bottom: 0; }
.launch time { white-space: nowrap; }
.text-link { font-weight: 700; }
.text-link span { margin-left: 12px; }
h2, h3, h4 { color: var(--color-teal); line-height: 1.2; }
h2 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -1px; margin: 0 0 28px; }
h3 { font-size: 23px; margin: 0 0 22px; }
h4 { font-size: 22px; margin: 0 0 18px; }
.section { padding-block: 64px; border-top: 1px solid var(--color-gold); scroll-margin-top: 24px; }
figure { margin: 0; }
.draft-image img, .certificate img { display: block; width: 100%; height: auto; object-fit: contain; }
.about { display: grid; grid-template-columns: 0.85fr 1fr; align-items: center; gap: 90px; }
.certificate { width: min(450px, 100%); margin-top: 32px; }
.certificate a { display: block; }
.certificate-dialog { width: min(1100px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px); padding: 20px; border: 1px solid var(--color-gold); border-radius: 8px; background: var(--color-cream); color: var(--color-charcoal); }
.certificate-dialog::backdrop { background: rgb(0 0 0 / 70%); }
.certificate-dialog[open] { display: flex; flex-direction: column; gap: 16px; }
.certificate-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.certificate-toolbar h2 { margin: 0; font-size: 22px; }
.certificate-toolbar button { padding: 10px 16px; border: 1px solid var(--color-teal); border-radius: 4px; background: var(--color-cream); color: var(--color-teal); font: inherit; cursor: pointer; }
.certificate-toolbar button:focus-visible { outline: 3px solid var(--color-teal); outline-offset: 3px; }
.certificate-viewer { min-height: 0; overflow: auto; }
.certificate-viewer img { max-height: calc(100dvh - 210px); }
.certificate-viewer.is-zoomed img { width: 1000px; max-width: none; max-height: none; }
.approach-steps {
  --step-size: 38px;
  --step-gap: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--step-gap);
  list-style: none;
  max-width: calc(66ch + var(--step-size) + 18px);
  margin: 28px 0 0;
  padding: 0;
}
.approach-steps > li { position: relative; padding-left: calc(var(--step-size) + 18px); }
.approach-steps h3 { display: flex; align-items: center; min-height: var(--step-size); margin-bottom: 12px; }
.approach-steps p:last-of-type { margin-bottom: 0; }
.step-number {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: var(--step-size);
  height: var(--step-size);
  border-radius: 50%;
  background: var(--color-teal);
  color: var(--color-cream);
  font-size: 18px;
}
.step-arrow {
  --bend-start: calc(50% - 15px);
  --bend-end: calc(50% + 15px);
  --bend-left: calc(50% - 7px);
  --bend-right: calc(50% + 7px);
  position: absolute;
  top: calc(var(--step-size) + 8px);
  left: calc(var(--step-size) / 2 - 9px);
  bottom: calc(10px - var(--step-gap));
  width: 18px;
}
.step-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--color-gold);
  clip-path: polygon(
    8px 0, 10px 0,
    10px var(--bend-start), calc(var(--bend-left) + 2px) 50%,
    calc(var(--bend-right) + 2px) 50%, 10px var(--bend-end),
    10px 100%, 8px 100%,
    8px var(--bend-end), calc(var(--bend-right) - 1px) calc(50% + 2px),
    calc(var(--bend-left) - 1px) calc(50% + 2px), 8px var(--bend-start)
  );
}
.step-arrow::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 9px;
  height: 9px;
  box-sizing: border-box;
  border: solid var(--color-gold);
  border-width: 2px 2px 0 0;
  transform: translate(-50%, -50%) rotate(135deg);
}
@media (prefers-reduced-motion: no-preference) {
  .step-arrow.in-view::after { animation: arrow-down 1.5s linear backwards; }
}
@keyframes arrow-down {
  0% { top: 0; }
  40% { top: var(--bend-start); left: 50%; }
  47% { top: calc(50% + 1px); left: var(--bend-left); }
  53% { top: calc(50% + 1px); left: var(--bend-right); }
  60% { top: var(--bend-end); left: 50%; }
}
@media (min-width: 1001px) {
  .treatment {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 64px;
    align-items: start;
  }
  .approach-steps { margin-top: 0; }
}
.rights { padding-block: 64px; background: var(--color-teal); color: var(--color-cream); }
.rights h2 { color: inherit; }
.rights-layout { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 64px; }
.rights ul { margin: 0; padding: 0; list-style: none; }
.rights li { padding: 20px 0 20px 28px; border-bottom: 1px solid var(--color-gold); position: relative; }
.rights li:first-child { padding-top: 0; }
.rights li::before { content: ""; position: absolute; left: 0; top: 32px; width: 7px; height: 7px; border-radius: 50%; background: var(--color-gold); }
.rights li:first-child::before { top: 12px; }
#space { border-top: 0; }
.room { max-width: 960px; margin-inline: auto; }
.editorial { font-size: 14px; margin-top: 12px; }
.equipment-title { margin-top: 54px; }
.equipment-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.pricing-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.standard-rate { padding-block: 20px; border-bottom: 1px solid var(--color-gold); }
.standard-rate h3 { font-size: 22px; margin-bottom: 12px; }
.standard-rate p { margin: 0; }
.insurance { margin-top: 28px; }
.sliding-scale { align-self: start; border: 1px solid var(--color-teal); border-top: 5px solid var(--color-teal); padding: 32px; }
.sliding-scale p:last-child { margin-bottom: 0; }
.contact { padding-block: 64px; border-top: 1px solid var(--color-gold); }
.contact p { max-width: 610px; margin: 0; }
.contact a { overflow-wrap: anywhere; }
.site-footer { border-top: 1px solid var(--color-gold); padding-block: 26px; font-size: 14px; color: var(--color-teal); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 20px; top: -100px; padding: 12px 20px; background: var(--color-cream); z-index: 1; }
.skip-link:focus { top: 12px; }
@media (max-width: 1000px) {
  .intro, .section, .rights, .contact { padding-block: 48px; }
  .site-header { flex-direction: column; gap: 26px; }
  nav { justify-content: center; }
  .site-navigation nav a { display: flex; align-items: center; min-height: 44px; padding-block: 8px; }
  .about, .pricing-layout, .rights-layout { gap: 40px; }
}
@media (max-width: 700px) {
  .site-header { padding-block: 26px 22px; }
  .site-header:has(.menu-toggle[aria-expanded="true"]) { padding-bottom: 12px; }
  .site-navigation { width: 100%; }
  .site-navigation .menu-toggle { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0; background: transparent; color: var(--color-teal); font: inherit; font-size: 22px; letter-spacing: 0.04em; cursor: pointer; }
  .menu-icon { display: block; position: relative; top: 1px; width: 18px; height: 12px; background: linear-gradient(currentColor, currentColor) center / 18px 1.5px no-repeat; }
  .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: currentColor; }
  .menu-icon::before { top: 0; }
  .menu-icon::after { bottom: 0; }
  .menu-toggle[aria-expanded="true"] .menu-icon { background: none; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { top: 6px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { bottom: 4.5px; transform: rotate(-45deg); }
  .menu-toggle:focus-visible { outline: 3px solid var(--color-teal); outline-offset: 4px; }
  .site-navigation nav { flex-direction: column; align-items: center; gap: 0; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--color-gold); font-size: 18px; }
  .site-navigation nav a { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 8px 16px; text-decoration: none; }
  .site-navigation nav a:hover, .site-navigation nav a:focus-visible { text-decoration: underline; }
  .site-navigation .menu-toggle[aria-expanded="false"] + nav { display: none; }
}
@media (max-width: 640px) {
  .page-width { width: calc(100% - 40px); }
  body { font-size: 16px; }
  .intro, .section, .rights, .contact { padding-block: 40px; }
  .tagline { font-size: 29px; line-height: 1.3; margin-bottom: 16px; }
  .about, .rights-layout, .equipment-layout, .pricing-layout { grid-template-columns: 1fr; gap: 32px; }
  .portrait { width: min(380px, 100%); margin-inline: auto; }
  .certificate { width: 100%; }
  .rights-layout { gap: 12px; }
  .desktop-break { display: none; }
  .sliding-scale { padding: 24px; }
}
@media (max-width: 360px) {
  .tagline { text-wrap: balance; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
