/* bust:1789591861 — shared lead-form + centered quote card */

.quote-room {
  padding: calc(var(--header) + 3rem) 0 5rem;
}

.lead-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
  max-width: 36rem;
}

.lead-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.lead-form .label-line {
  display: block;
}

.lead-form .opt {
  font-weight: 500;
  color: var(--mute);
  font-size: 0.86em;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--foam-white);
  color: var(--ink);
  font: 400 1rem/1.4 Lato, system-ui, sans-serif;
}

.lead-form textarea {
  min-height: 4.25rem;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--mute);
}

.lead-ok {
  padding: 1.5rem 0;
}

.lead-ok p {
  margin: 0.6rem 0 0;
}

.lead-form[data-state="sending"] button {
  opacity: 0.6;
}

.nav-cta {
  anchor-name: --contact-btn;
}

/* bust:1789581729 Quote card craft climb — sister to end close */
.quote-card,
#contact-sheet.quote-card,
#contact-sheet {
  position: fixed;
  inset: auto;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  margin: 0;
  width: min(34rem, calc(100vw - 2rem));
  max-height: min(92svh, 52rem);
  overflow: auto;
  padding: clamp(1.75rem, 3.2vw, 2.5rem) clamp(1.6rem, 3vw, 2.35rem) clamp(1.35rem, 2.5vw, 1.85rem);
  border: 1px solid color-mix(in oklch, var(--gulf, #0a7ea4) 12%, transparent);
  border-radius: 1.35rem;
  background:
    linear-gradient(
      165deg,
      color-mix(in oklch, var(--gulf, #0a7ea4) 5%, #ffffff) 0%,
      #ffffff 42%,
      color-mix(in oklch, var(--gulf, #0a7ea4) 3%, #ffffff) 100%
    );
  box-shadow:
    0 1px 0 color-mix(in oklch, #fff 70%, transparent) inset,
    0 24px 64px color-mix(in oklch, var(--gulf-ink, #065a75) 14%, transparent),
    0 2px 8px color-mix(in oklch, var(--ink, #0a1014) 6%, transparent);
  color: var(--ink, #0a1014);
}

.quote-card::backdrop,
#contact-sheet::backdrop {
  background: color-mix(in oklch, var(--ink, #0a1014) 48%, transparent);
  backdrop-filter: blur(6px);
}

.quote-card__close {
  position: absolute;
  top: 1rem;
  right: 1.15rem;
  z-index: 2;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: color-mix(in oklch, var(--ink, #0a1014) 38%, transparent);
  font: 400 1.05rem/1 system-ui, -apple-system, sans-serif;
  cursor: pointer;
}

.quote-card__close:hover,
.quote-card__close:focus-visible {
  color: var(--ink, #0a1014);
  background: transparent !important;
  outline: none;
}

.quote-card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}

.quote-card__head {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 0;
  padding-right: 0.15rem;
}

.quote-card__lead {
  margin: 0;
  font-size: clamp(1.85rem, 3.4vw, 2.55rem);
  font-weight: 600;
  letter-spacing: -0.042em;
  line-height: 1.05;
  color: var(--ink, #0a1014);
  white-space: nowrap;
}

.quote-card__lede {
  margin: 0.45rem 0 0;
  max-width: 28rem;
  color: color-mix(in oklch, var(--ink, #212121) 68%, transparent);
  font-size: clamp(0.98rem, 1.35vw, 1.08rem);
  font-weight: 400;
  letter-spacing: -0.014em;
  line-height: 1.35;
}

.quote-card__phone {
  margin: 0.75rem 0 0;
}

.quote-card__phone a {
  color: var(--gulf-ink, #065a75);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.036em;
  text-decoration: none;
  line-height: 1.05;
}

.quote-card__phone a:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.quote-card .lead-form {
  margin-top: 1.35rem;
  max-width: none;
  gap: 0.75rem;
}

.quote-card .lead-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.quote-card .lead-form label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: color-mix(in oklch, var(--ink, #0a1014) 78%, transparent);
}

.quote-card .lead-form input,
.quote-card .lead-form textarea {
  padding: 0.72rem 0.85rem;
  border: 1px solid color-mix(in oklch, var(--gulf, #0a7ea4) 14%, var(--line, #d5dde3));
  border-radius: 0.55rem;
  background: color-mix(in oklch, var(--page, #f8f9fa) 55%, #fff);
  font: 400 1.02rem/1.35 Lato, system-ui, sans-serif;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.quote-card .lead-form input:focus,
.quote-card .lead-form textarea:focus {
  outline: none;
  border-color: var(--gulf, #0a7ea4);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--gulf, #0a7ea4) 18%, transparent);
  background: #fff;
}

.quote-card .lead-form textarea {
  min-height: 3.25rem;
  resize: vertical;
}

.quote-card .project-type {
  margin: 0.15rem 0 0;
  gap: 0.4rem;
}

.quote-card .project-type legend {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: color-mix(in oklch, var(--ink, #0a1014) 78%, transparent);
  margin-bottom: 0.35rem;
}

.quote-card .project-type__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.quote-card .project-type .choice {
  justify-content: center;
  padding: 0.7rem 0.65rem;
  border-radius: 0.55rem;
  border: 1px solid color-mix(in oklch, var(--gulf, #0a7ea4) 14%, var(--line, #d5dde3));
  background: color-mix(in oklch, var(--page, #f8f9fa) 55%, #fff);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
}

.quote-card .project-type .choice:has(input:checked) {
  border-color: var(--gulf, #0a7ea4);
  background: color-mix(in oklch, var(--gulf, #0a7ea4) 8%, #fff);
  box-shadow: inset 0 0 0 1px var(--gulf, #0a7ea4);
  color: var(--gulf-ink, #065a75);
}

.quote-card .lift-fields {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem 0 0.1rem;
  border-top: 1px solid color-mix(in oklch, var(--gulf, #0a7ea4) 10%, transparent);
  margin: 0;
}

.quote-card__submit {
  width: 100%;
  min-height: 2.85rem;
  margin-top: 0.15rem;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
}

.quote-card .lead-status {
  min-height: 0;
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
}

.quote-card__quiet {
  margin: 0.4rem 0 0;
  text-align: right;
  color: color-mix(in oklch, var(--ink, #212121) 38%, transparent);
  font-size: 0.76rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.quote-card__quiet a {
  color: color-mix(in oklch, var(--gulf-ink, #065a75) 82%, transparent);
  text-decoration: none;
  font-weight: 500;
}

.quote-card__quiet a:hover {
  color: var(--gulf-ink, #065a75);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

@media (max-width: 899px) {
  .quote-card,
  #contact-sheet.quote-card,
  #contact-sheet {
    width: calc(100vw - 1.15rem);
    max-height: min(94svh, 56rem);
    padding: 1.45rem 1.15rem 1.25rem;
    border-radius: 1.15rem;
  }
  .quote-card__head {
    align-items: flex-start;
    text-align: left;
  }
  .quote-card__lead {
    white-space: normal;
    font-size: clamp(1.65rem, 7vw, 2.1rem);
  }
  .quote-card__phone a {
    font-size: clamp(1.55rem, 7vw, 1.95rem);
  }
  .quote-card .lead-form__row,
  .quote-card .project-type__row {
    grid-template-columns: 1fr;
  }
  .quote-card__quiet {
    text-align: left;
  }
}

/* neutralize legacy drawer if class returns */
#contact-sheet.drawer,
#contact-sheet[class*="drawer"] {
  inset: auto !important;
  top: 50% !important;
  left: 50% !important;
  width: min(34rem, calc(100vw - 2rem)) !important;
  height: auto !important;
  max-height: min(92svh, 52rem) !important;
  border-radius: 1.35rem !important;
  translate: -50% -50% !important;
}


/* bust:1789581946 optional inline on photo label */
.quote-card .lead-form .label-line {
  display: block;
  white-space: nowrap;
}
.quote-card .lead-form .label-line .opt {
  font-weight: 500;
  color: var(--mute, #5c5c5c);
  font-size: 0.86em;
}


/* bust:1789581986 lift field spacing = form rhythm */
.quote-card .lift-fields label {
  display: grid;
  gap: 0.3rem;
  margin: 0;
}
.quote-card .lift-fields input[type="file"] {
  margin: 0;
  padding: 0.45rem 0;
}


/* bust:1789590981 slab photo only on foam jacking — [hidden] wins over display:grid */
.quote-card .lift-fields[hidden],
.lead-form .lift-fields[hidden] {
  display: none !important;
}

/* Type of project — no outer fieldset chrome; modules edge-to-edge */
.quote-card .project-type,
.lead-form .project-type {
  border: 0;
  margin: 0.15rem 0 0;
  padding: 0;
  min-inline-size: 0;
}

.quote-card .project-type legend,
.lead-form .project-type legend {
  padding: 0;
  float: none;
}

.quote-card .project-type__row,
.lead-form .project-type__row {
  width: 100%;
  margin: 0;
}

/* bust:1789607212 climb-quote-craft — mist plate, type, field rhythm, modules, X, submit; [hidden] intact */
#contact-sheet.quote-card,
#contact-sheet {
  width: min(36rem, calc(100vw - 1.75rem));
  padding: clamp(1.85rem, 3.4vw, 2.65rem) clamp(1.7rem, 3.1vw, 2.5rem) clamp(1.45rem, 2.6vw, 1.95rem);
  border: 1px solid color-mix(in oklch, var(--gulf, #0a7ea4) 16%, transparent);
  border-radius: 1.45rem;
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in oklch, var(--gulf, #0a7ea4) 10%, transparent), transparent 55%),
    radial-gradient(90% 70% at 0% 100%, color-mix(in oklch, var(--gulf, #0a7ea4) 7%, transparent), transparent 50%),
    linear-gradient(
      165deg,
      color-mix(in oklch, var(--gulf, #0a7ea4) 4%, #fff) 0%,
      #fff 38%,
      color-mix(in oklch, var(--gulf, #0a7ea4) 2.5%, #fff) 100%
    );
  box-shadow:
    0 1px 0 color-mix(in oklch, #fff 78%, transparent) inset,
    0 28px 72px color-mix(in oklch, var(--gulf-ink, #065a75) 16%, transparent),
    0 4px 14px color-mix(in oklch, var(--ink, #0a1014) 7%, transparent);
}

#contact-sheet::backdrop {
  background: color-mix(in oklch, var(--ink, #0a1014) 52%, transparent);
  backdrop-filter: blur(8px);
}

.quote-card__close {
  top: 0.95rem;
  right: 1.05rem;
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: color-mix(in oklch, var(--ink, #0a1014) 42%, transparent);
  font-size: 1.15rem;
  line-height: 1;
  transition: color 0.15s ease, background 0.15s ease;
}

.quote-card__close:hover,
.quote-card__close:focus-visible {
  color: var(--ink, #0a1014);
  background: color-mix(in oklch, var(--gulf, #0a7ea4) 8%, transparent) !important;
}

.quote-card__lead {
  font-size: clamp(1.95rem, 3.5vw, 2.65rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.quote-card__lede {
  margin-top: 0.5rem;
  color: color-mix(in oklch, var(--ink, #212121) 62%, transparent);
  font-size: clamp(0.96rem, 1.3vw, 1.06rem);
  letter-spacing: -0.012em;
  line-height: 1.38;
}

.quote-card__phone {
  margin-top: 0.85rem;
}

.quote-card__phone a {
  font-size: clamp(1.85rem, 3.3vw, 2.45rem);
  font-weight: 750;
  letter-spacing: -0.038em;
  color: var(--gulf-ink, #065a75);
}

.quote-card .lead-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.85rem;
}

.quote-card .lead-form__row {
  gap: 0.85rem;
}

.quote-card .lead-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: color-mix(in oklch, var(--ink, #0a1014) 70%, transparent);
}

.quote-card .lead-form input,
.quote-card .lead-form textarea {
  padding: 0.78rem 0.9rem;
  border: 1px solid color-mix(in oklch, var(--gulf, #0a7ea4) 16%, var(--line, #d5dde3));
  border-radius: 0.65rem;
  background: color-mix(in oklch, var(--page, #f8f9fa) 40%, #fff);
  font-size: 1.02rem;
}

.quote-card .lead-form input:focus,
.quote-card .lead-form textarea:focus {
  border-color: var(--gulf, #0a7ea4);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--gulf, #0a7ea4) 20%, transparent);
  background: #fff;
}

/* Type of project modules — edge-clean, equal tiles */
.quote-card .project-type {
  margin: 0.1rem 0 0;
  padding: 0;
  border: 0;
}

.quote-card .project-type legend {
  margin: 0 0 0.4rem;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: color-mix(in oklch, var(--ink, #0a1014) 70%, transparent);
}

.quote-card .project-type__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  width: 100%;
}

.quote-card .project-type .choice {
  margin: 0;
  justify-content: center;
  padding: 0.78rem 0.7rem;
  border-radius: 0.65rem;
  border: 1px solid color-mix(in oklch, var(--gulf, #0a7ea4) 16%, var(--line, #d5dde3));
  background: color-mix(in oklch, var(--page, #f8f9fa) 35%, #fff);
  font-size: 0.96rem;
  font-weight: 650;
  letter-spacing: -0.016em;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.quote-card .project-type .choice:has(input:checked) {
  border-color: var(--gulf, #0a7ea4);
  background: color-mix(in oklch, var(--gulf, #0a7ea4) 10%, #fff);
  box-shadow: inset 0 0 0 1px var(--gulf, #0a7ea4);
  color: var(--gulf-ink, #065a75);
}

.quote-card .lift-fields {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0.85rem 0 0.05rem;
  border-top: 1px solid color-mix(in oklch, var(--gulf, #0a7ea4) 12%, transparent);
}

/* HARD: slab fields only when jacking — never fight [hidden] */
.quote-card .lift-fields[hidden],
.lead-form .lift-fields[hidden] {
  display: none !important;
}

.quote-card__submit,
.quote-card .quote-card__submit {
  width: 100%;
  min-height: 3rem;
  margin-top: 0.25rem;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  /* fill + pill from --quote-cta-* */
}

.quote-card__submit:hover,
.quote-card .quote-card__submit:hover {
  /* shared token hover */
}

.quote-card__quiet {
  margin-top: 0.55rem;
  font-size: 0.74rem;
  color: color-mix(in oklch, var(--ink, #212121) 34%, transparent);
}

@media (max-width: 899px) {
  #contact-sheet.quote-card,
  #contact-sheet {
    width: calc(100vw - 1rem);
    padding: 1.5rem 1.15rem 1.3rem;
    border-radius: 1.2rem;
  }
  .quote-card .project-type__row {
    grid-template-columns: 1fr;
  }
}

/* bust:1789607521 zip-both-types — City/ZIP always in form flow; photo stays .lift-fields */
.quote-card .lift-fields {
  /* photo-only stack now */
}
.quote-card .lift-fields[hidden],
.lead-form .lift-fields[hidden] {
  display: none !important;
}

/* bust:1789608714 climb-mobile — quote sheet usable on phone */
@media (max-width: 899px) {
  #contact-sheet.quote-card,
  #contact-sheet {
    width: min(100vw - 0.85rem, 28rem);
    max-height: min(92svh, 54rem);
    padding: 1.35rem 1.05rem 1.2rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .quote-card .lead-form input,
  .quote-card .lead-form textarea {
    font-size: 16px; /* kill iOS zoom */
    min-height: 2.75rem;
  }
  .quote-card .project-type__row {
    gap: 0.55rem;
  }
  .quote-card .project-type .choice {
    min-height: 2.85rem;
    padding: 0.7rem 0.85rem;
  }
}

/* quote page canvas — owns mist so html/body root can stay hero dark */
html:has(.quote-room),
body:has(.quote-room) {
  background: var(--mist, #e6eef7);
  color: var(--body, #333333);
}

/* privacy / legal — html matches body.page-legal page ground */
html:has(body.page-legal) {
  background: var(--page, #f7f8f9);
}

/* bust: legal / secondary pages — match gulf mist chrome */
.page-legal {
  background: var(--page, #f7f8f9);
  color: var(--ink, #0a1014);
  min-height: 100dvh;
}
.legal-room {
  width: min(42rem, calc(100% - var(--gutter, 1.25rem) * 2));
  margin: 0 auto;
  padding: clamp(4.5rem, 12vw, 6.5rem) 0 clamp(3rem, 8vw, 4.5rem);
}
.legal-room .kicker {
  margin: 0;
  color: var(--gulf-ink, #065a75);
  font-size: clamp(0.68rem, 1vw, 0.74rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.legal-room .display {
  margin: 0.85rem 0 0;
  font-size: clamp(2.2rem, 6vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.legal-room .lede {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: color-mix(in oklch, var(--ink, #0a1014) 78%, transparent);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.45;
}
.legal-block {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}
.legal-block h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  letter-spacing: -0.02em;
}
.legal-block p,
.legal-card p,
.legal-note {
  margin: 0.55rem 0 0;
  color: color-mix(in oklch, var(--ink, #0a1014) 86%, transparent);
  font-size: clamp(1rem, 1.6vw, 1.08rem);
  line-height: 1.5;
}
.legal-block a {
  color: var(--gulf-ink, #065a75);
}
.legal-card {
  margin-top: 1.15rem;
  padding: 1rem 0 0;
  border-top: 1px solid color-mix(in oklch, var(--gulf, #0a7ea4) 16%, transparent);
}
.legal-card:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.legal-card h3 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  letter-spacing: -0.02em;
}
.legal-note {
  margin-top: 1.25rem;
  color: color-mix(in oklch, var(--ink, #0a1014) 70%, transparent);
}
.legal-cta {
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
  padding-top: clamp(1.5rem, 4vw, 2rem);
  border-top: 1px solid color-mix(in oklch, var(--gulf, #0a7ea4) 18%, transparent);
}
.legal-phone {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
.legal-phone a {
  color: inherit;
  text-decoration: none;
}
.legal-quiet {
  margin-top: 1rem;
  font-size: 0.95rem;
}
.legal-cta .btn {
  margin: 0.85rem 0.65rem 0 0;
  display: inline-flex;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* first-party quote thank-you — same room, no third-party flash */
.lead-ok {
  margin-top: 1.25rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: 1rem;
  background: color-mix(in oklch, var(--mist, #e6eef7) 88%, white);
  border: 1px solid color-mix(in oklch, var(--gulf, #0a7ea4) 18%, transparent);
}
.lead-ok strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  letter-spacing: -0.03em;
}
.lead-ok p {
  margin: 0.65rem 0 0;
  color: color-mix(in oklch, var(--ink, #0a1014) 82%, transparent);
  line-height: 1.45;
}


/* Audit quote radios — bust:1789667058 */
.lead-form .project-type,
.lead-form fieldset.project-type {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}
.lead-form .project-type legend {
  padding: 0;
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}
.lead-form label.choice {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid color-mix(in oklch, var(--gulf, #0a7ea4) 16%, var(--line, #d5dde3));
  border-radius: 0.55rem;
  background: color-mix(in oklch, var(--page, #f8f9fa) 40%, #fff);
  font-size: 0.96rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  text-align: left;
  box-sizing: border-box;
}
.lead-form label.choice input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--gulf, #0a7ea4);
}
.lead-form label.choice:has(input:checked) {
  border-color: var(--gulf, #0a7ea4);
  background: color-mix(in oklch, var(--gulf, #0a7ea4) 10%, #fff);
  box-shadow: inset 0 0 0 1px var(--gulf, #0a7ea4);
  color: var(--gulf-ink, #065a75);
}
@media (max-width: 768px) {
  .lead-form label.choice {
    min-height: 2.85rem;
  }
}



/* Nine craft — quote jewel-box — bust:1789668667 */
@media (max-width: 899px) {
  .quote-card,
  #contact-sheet.quote-card,
  #contact-sheet {
    top: max(0.45rem, env(safe-area-inset-top, 0px));
    left: 50%;
    right: auto;
    bottom: auto;
    translate: -50% 0;
    width: calc(100vw - 0.75rem);
    max-width: 26.5rem;
    max-height: calc(
      100dvh - env(safe-area-inset-top, 0px) - 0.85rem
    );
    min-height: min(
      78dvh,
      calc(100dvh - env(safe-area-inset-top, 0px) - 0.85rem)
    );
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 1.05rem 0.95rem 0.95rem;
    border: 1px solid color-mix(in oklch, var(--gulf, #0a7ea4) 10%, transparent);
    border-radius: 1.05rem;
    background:
      linear-gradient(
        165deg,
        color-mix(in oklch, var(--mist, #e6eef7) 55%, #fff) 0%,
        #fff 46%,
        color-mix(in oklch, var(--mist, #e6eef7) 22%, #fff) 100%
      );
    box-shadow:
      0 1px 0 color-mix(in oklch, #fff 72%, transparent) inset,
      0 18px 48px color-mix(in oklch, var(--ink, #0a1014) 10%, transparent);
  }

  .quote-card__close {
    top: 0.7rem;
    right: 0.7rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background: color-mix(in oklch, var(--mist, #e6eef7) 82%, #fff) !important;
    color: color-mix(in oklch, var(--ink, #0a1014) 48%, transparent) !important;
    font: 500 0.95rem/1 system-ui, sans-serif !important;
  }

  .quote-card__head {
    align-items: flex-start;
    text-align: left;
    padding-right: 2.2rem;
    gap: 0.15rem;
  }
  .quote-card__lead {
    white-space: normal;
    font-size: clamp(1.55rem, 6.4vw, 1.9rem);
    letter-spacing: -0.038em;
  }
  .quote-card__lede {
    margin-top: 0.35rem;
    font-size: 0.92rem;
    line-height: 1.35;
    max-width: 28ch;
  }
  .quote-card__phone {
    margin-top: 0.55rem;
  }
  .quote-card__phone a {
    font-size: clamp(1.35rem, 5.8vw, 1.7rem);
    font-weight: 650;
  }

  .quote-card .lead-form {
    margin-top: 0.95rem;
    gap: 0.55rem;
  }
  .quote-card .lead-form__row {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .quote-card .lead-form label {
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: color-mix(in oklch, var(--ink, #0a1014) 52%, transparent);
  }
  .quote-card .lead-form input,
  .quote-card .lead-form textarea {
    padding: 0.58rem 0.7rem;
    border-radius: 0.45rem;
    border-color: color-mix(in oklch, var(--gulf, #0a7ea4) 12%, var(--line, #d5dde3));
    background: color-mix(in oklch, var(--mist, #e6eef7) 18%, #fff);
    font-size: 16px;
    min-height: 2.55rem;
  }
  .quote-card .lead-form textarea {
    min-height: 2.6rem;
  }

  /* Choice row = quiet segmented control, not big tiles */
  .quote-card .project-type {
    margin: 0.05rem 0 0;
    gap: 0.3rem;
  }
  .quote-card .project-type legend,
  .lead-form .project-type legend {
    margin-bottom: 0.28rem;
    font-size: 0.72rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: color-mix(in oklch, var(--ink, #0a1014) 52%, transparent);
  }
  .quote-card .project-type__row,
  .lead-form .project-type__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0.12rem;
    border: 1px solid color-mix(in oklch, var(--gulf, #0a7ea4) 12%, transparent);
    border-radius: 0.55rem;
    background: color-mix(in oklch, var(--mist, #e6eef7) 28%, #fff);
  }
  .quote-card .project-type .choice,
  .lead-form label.choice {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    min-height: 2rem;
    margin: 0;
    padding: 0.32rem 0.5rem;
    border: 0;
    border-radius: 0.42rem;
    background: transparent;
    box-shadow: none;
    font-size: 0.82rem;
    font-weight: 550;
    letter-spacing: -0.012em;
    text-align: left;
    color: color-mix(in oklch, var(--ink, #0a1014) 72%, transparent);
  }
  .quote-card .project-type .choice:has(input:checked),
  .lead-form label.choice:has(input:checked) {
    background: #fff;
    color: var(--gulf-ink, #065a75);
    box-shadow: 0 1px 2px color-mix(in oklch, var(--ink, #0a1014) 6%, transparent);
  }
  .quote-card .project-type .choice input[type="radio"],
  .lead-form label.choice input[type="radio"] {
    width: 0.85rem;
    height: 0.85rem;
    margin: 0;
    accent-color: var(--gulf, #0a7ea4);
  }

  .quote-card__submit,
  .quote-card .quote-card__submit {
    margin-top: 0.35rem;
    min-height: 2.75rem;
    border-radius: var(--quote-cta-radius, 999px);
    background: var(--quote-cta-fill);
    font-weight: 650;
    letter-spacing: -0.014em;
  }
  .quote-card__quiet {
    margin-top: 0.65rem;
    text-align: left;
    font-size: 0.82rem;
  }
}

/* Desktop quote: keep centered jewel; hush mist chrome, no mobile geometry bleed */
@media (min-width: 900px) {
  .quote-card,
  #contact-sheet.quote-card,
  #contact-sheet {
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    width: min(34rem, calc(100vw - 2rem));
    max-height: min(92svh, 52rem);
    border-radius: 1.25rem;
    background:
      linear-gradient(
        165deg,
        color-mix(in oklch, var(--mist, #e6eef7) 42%, #fff) 0%,
        #fff 44%,
        color-mix(in oklch, var(--mist, #e6eef7) 16%, #fff) 100%
      );
  }
}

html:has(#contact-sheet:popover-open),
body:has(#contact-sheet:popover-open) {
  overflow: hidden;
  overscroll-behavior: none;
}


/* Nine-plus quote — quieter jewel — bust:1789668969 */
@media (max-width: 899px) {
  .quote-card,
  #contact-sheet.quote-card,
  #contact-sheet {
    border-color: color-mix(in oklch, var(--gulf, #0a7ea4) 8%, transparent);
    box-shadow:
      0 1px 0 color-mix(in oklch, #fff 78%, transparent) inset,
      0 14px 36px color-mix(in oklch, var(--ink, #0a1014) 8%, transparent);
    padding: 0.95rem 0.9rem 0.9rem;
  }
  .quote-card .lead-form {
    gap: 0.48rem;
  }
  .quote-card .project-type__row {
    background: color-mix(in oklch, var(--mist, #e6eef7) 22%, #fff);
    border-color: color-mix(in oklch, var(--gulf, #0a7ea4) 9%, transparent);
  }
  .quote-card .project-type .choice {
    min-height: 1.9rem;
    padding: 0.28rem 0.45rem;
    font-size: 0.8rem;
    font-weight: 500;
  }
  /* P0: never animate transform -50% — it stacks with CSS translate and clips off-screen */
  @supports (transition-behavior: allow-discrete) {
    #contact-sheet {
      opacity: 0;
      translate: -50% 0.45rem;
      transition:
        opacity 0.24s ease,
        translate 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        overlay 0.24s allow-discrete,
        display 0.24s allow-discrete;
    }
    #contact-sheet:popover-open {
      opacity: 1;
      translate: -50% 0;
    }
    @starting-style {
      #contact-sheet:popover-open {
        opacity: 0;
        translate: -50% 0.45rem;
      }
    }
  }
}

/* P0 geometry lock — fully inside visual viewport */
@media (max-width: 899px) {
  .quote-card,
  #contact-sheet.quote-card,
  #contact-sheet {
    top: max(0.4rem, env(safe-area-inset-top, 0px)) !important;
    left: 50% !important;
    right: auto !important;
    bottom: auto !important;
    translate: -50% 0 !important;
    transform: none !important;
    width: calc(100vw - 0.75rem) !important;
    max-width: 26.5rem !important;
    max-height: calc(
      100dvh - env(safe-area-inset-top, 0px) - 0.8rem
    ) !important;
    min-height: 0 !important;
    margin: 0 !important;
  }
}

