body {
  --gutter: max(5vw, calc((100vw - 77rem) / 2));
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
[hidden], .symbols { display: none !important; }
.frame { width: min(90%, 77rem); margin-inline: auto; }
.quote-footer { background: #fff; color: var(--ink); border-block: 1px solid var(--line); }
.wordmark { display: inline-flex; }
.text-action:hover, .back:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: .3em; }
.estimate-hero .button { justify-content: center; font-size: .875rem; text-transform: uppercase; }
.eyeline, .form-meta, .room-label, .gallery-item figcaption span { font-family: inherit; }
.eyeline { color: var(--blue-dark); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; line-height: 1.5; font-weight: 650; margin: 0 0 1.15rem; }
.action { line-height: 1.3; font-family: inherit; font-size: 1.1875rem; font-weight: 700; letter-spacing: .005em; display: inline-flex; align-items: center; justify-content: center; padding: .95rem 1.6rem; min-height: 50px; border: 1px solid var(--blue); border-radius: 0; background: var(--blue); color: #fff; cursor: pointer; text-decoration: none; }
.action:hover { color: white; background: var(--blue-dark); border-color: var(--blue-dark); }
.action:disabled { opacity: .6; cursor: wait; }
.estimate-section, .projects { scroll-margin-top: 0; }
.estimate-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: clamp(2rem, 8vw, 8rem); padding-block: clamp(3.4rem, 6vw, 6.5rem); }
.estimate-intro { padding-top: .15rem; align-self: start; }
.estimate-intro h2, .gallery-head h2, .portal-content h2 { color: var(--ink); font: 400 clamp(2.6rem, 4.2vw, 4.6rem)/1.02 Georgia, "Times New Roman", serif; letter-spacing: -.05em; margin: 0 0 1.25rem; }
.estimate-intro > p:not(.eyeline), .portal-content > p:not(.eyeline) { color: var(--muted); max-width: 28rem; margin: 0; line-height: 1.65; font-size: 1.02rem; }
.owner { display: flex; gap: .85rem; align-items: center; margin-top: 1.8rem; }
.owner img { width: 3.45rem; height: 3.45rem; object-fit: cover; object-position: 50% 28%; border-radius: 50%; }
.owner span, .owner strong { display: block; }
.owner strong { font-size: .96rem; font-weight: 610; }
.owner span { font-size: .83rem; color: var(--muted); }
.form-card { min-width: 0; }
.form-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-size: .9rem; font-weight: 560; color: var(--muted); }
#step-name { text-transform: uppercase; letter-spacing: .11em; color: var(--blue-dark); font-size: .75rem; }
.progress { display: flex; gap: 5px; margin: .65rem 0 1.4rem; }
.progress i { height: 3px; background: var(--line); flex: 1; }
.progress .filled { background: var(--blue); }
.form-card fieldset { min-width: 0; margin: 0; padding: 0; border: none; }
.form-card legend, .form-card h3 { font: 400 clamp(1.8rem, 2.5vw, 2.6rem)/1.12 Georgia, serif; letter-spacing: -.035em; color: var(--ink); margin: 0 0 1.05rem; padding: 0; }
.room-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.tile { position: relative; cursor: pointer; min-width: 0; border: 1px solid var(--line); background: #fff; }
.room-tile { display: grid; grid-template-rows: auto 1fr; }
.room-sample {
  aspect-ratio: 7 / 5;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 2px;
  background: var(--soft);
  overflow: hidden;
}
.room-sample img { display: block; width: 100%; height: 100%; object-fit: cover; }
.room-sample .room-ensuite-photo { object-position: center 69%; }
.room-sample .room-wc-photo { object-position: center 92%; }
.room-label { font-size: 1rem; font-weight: 575; line-height: 1.25; padding: .8rem 2.35rem .8rem .85rem; align-self: center; }
.tile input { appearance: none; -webkit-appearance: none; position: absolute; right: .8rem; bottom: .84rem; margin: 0; width: 1.08rem; height: 1.08rem; background: #fff; border: 1px solid var(--muted); border-radius: 50%; cursor: pointer; }
.tile input:checked { border: 5px solid var(--blue-dark); }
.tile:hover { border-color: var(--blue-dark); }
.tile:has(input:checked) { outline: 2px solid var(--blue-dark); outline-offset: -2px; background: color-mix(in srgb, var(--blue) 8%, white); }
.tile:focus-within, a:focus-visible, button:focus-visible, input:focus-visible, .gallery-track:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.budget-options, .contacts { display: grid; gap: .7rem; }
.budget { display: flex; align-items: center; min-height: 3.6rem; padding: .85rem 3rem .85rem 1rem; font-size: 1.12rem; font-weight: 500; }
.budget input { bottom: 50%; transform: translateY(50%); }
.field { display: grid; gap: .4rem; font-size: .92rem; font-weight: 560; }
.field input { width: 100%; min-height: 3rem; font-family: inherit; font-size: 1rem; border: 1px solid var(--muted); background: #fff; color: var(--ink); padding: .7rem .8rem; border-radius: 0; }
.field-hint, .preview-note, #quote-reference { font-size: .875rem; color: var(--muted); margin: .65rem 0 0; }
.permission { display: flex; gap: .65rem; align-items: flex-start; margin-top: 1.1rem; font-size: .9rem; }
.permission input { accent-color: var(--blue-dark); width: 1.15rem; height: 1.15rem; flex: none; margin: .1rem 0 0; }
.permission a, .text-action { color: var(--blue-dark); text-decoration: underline; text-underline-offset: .2em; }
.trap { position: absolute; left: -10000px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.1rem; }
.form-actions .action { margin-left: auto; min-width: 9rem; }
.back, .footer-links button { background: none; border: none; color: inherit; cursor: pointer; min-height: 44px; font-family: inherit; font-size: .94rem; padding: .4rem 0; }
.error { color: #a13737; margin: .7rem 0 0; }
.error:empty { display: none; }
#quote-reference { margin-bottom: 1rem; }
.projects { background: var(--soft); padding-block: clamp(3rem, 5.4vw, 5.5rem); overflow: hidden; }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.7rem; }
.gallery-head .eyeline { margin-bottom: .65rem; }
.gallery-head h2 { margin: 0; }
.gallery-controls { display: flex; gap: .4rem; }
.gallery-controls button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--muted); background: transparent; border-radius: 50%; color: var(--ink); cursor: pointer; }
.gallery-controls button:disabled { opacity: .38; cursor: default; }
.gallery-controls svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.gallery-track { display: flex; align-items: stretch; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); padding: .15rem var(--gutter) .7rem; scrollbar-width: thin; scrollbar-color: var(--muted) transparent; }
.gallery-item { flex: 0 0 min(34vw, 29rem); scroll-snap-align: start; min-width: 0; display: block; text-decoration: none; color: var(--ink); }
.gallery-item figure { margin: 0; }
.gallery-item img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; }
.gallery-item figcaption { padding: .8rem 0 .6rem; border-bottom: 1px solid var(--line); }
.gallery-item figcaption strong { display: block; font: 400 clamp(1.8rem, 2.5vw, 2.75rem)/1.1 Georgia, serif; letter-spacing: -.035em; }
.gallery-item figcaption span { display: block; margin-top: .3rem; font-size: .92rem; color: var(--muted); }
.gallery-item:hover strong { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.portal-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 7.5rem); align-items: center; padding-block: clamp(3rem, 6vw, 6rem); }
.portal-photo { min-width: 0; }
.portal-photo img { display: block; width: 100%; height: clamp(26rem, 35vw, 36rem); object-fit: cover; object-position: 50% 56%; }
.text-action { display: inline-flex; align-items: center; min-height: 44px; font-weight: 570; }
.customer-quote { border-top: 1px solid var(--line); margin: 1.4rem 0 1.5rem; padding-top: 1.35rem; max-width: 30rem; }
.customer-quote blockquote { font: 400 clamp(1.35rem, 1.8vw, 1.9rem)/1.29 Georgia, serif; margin: 0 0 .55rem; letter-spacing: -.025em; }
.customer-quote figcaption { color: var(--muted); font-size: .85rem; }
.quote-footer .frame, .footer-links { display: flex; justify-content: space-between; align-items: center; gap: 1.3rem; }
.quote-footer .frame { padding-block: 1.65rem; }
.quote-footer .wordmark img { width: 5.5rem; }
.footer-links { flex-wrap: wrap; }
.footer-links a, .footer-links button { color: var(--ink); font-size: .9rem; }
@media (max-width: 760px) {
  body { --gutter: clamp(1rem, 5vw, 1.65rem); }
  .frame { width: calc(100% - 2 * var(--gutter)); }
  html { scroll-padding-top: 0; }
  .estimate-hero { min-height: 0; height: clamp(31rem, calc(100svh - var(--header) - 3rem), 42rem); }
  .estimate-hero p:not(.eyebrow) { font-size: 1rem; line-height: 1.45; }
  .estimate-layout { display: flex; flex-direction: column; gap: 1.2rem; padding-block: 1.8rem 2.2rem; }
  .estimate-intro { order: 1; padding: .75rem 0 0; border-top: 1px solid var(--line); width: 100%; }
  .estimate-intro .eyeline, .estimate-intro h2 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; }
  .estimate-intro > p:not(.eyeline) { font-size: .93rem; line-height: 1.5; max-width: 35rem; }
  .owner { margin-top: .7rem; }
  .owner img { width: 2.75rem; height: 2.75rem; }
  .room-label { padding: .7rem 1.85rem .7rem .6rem; font-size: .94rem; }
  .tile input { right: .55rem; bottom: .75rem; }
  .budget input { bottom: 50%; }
  .room-grid { gap: .55rem; }
  .progress { margin-bottom: 1.15rem; }
  .form-actions .action { width: 100%; }
  .form-actions:has(.back:not([hidden])) .action { width: auto; flex: 1; max-width: 80%; }
  .gallery-head { align-items: flex-end; margin-bottom: 1.2rem; }
  .gallery-head h2 { font-size: clamp(2.25rem, 8.5vw, 3rem); }
  .gallery-controls { gap: .3rem; }
  .gallery-item { flex-basis: min(82vw, 25rem); }
  .gallery-track { gap: .7rem; }
  .portal-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .portal-photo img { height: clamp(12.5rem, 55vw, 17rem); object-position: 50% 50%; }
  .portal-content h2 { font-size: clamp(2.65rem, 10vw, 3.6rem); }
  .quote-footer .frame { align-items: flex-start; }
  .footer-links { gap: .3rem 1rem; justify-content: flex-end; }
}
.room-study { border-block-end: 1px solid var(--line); padding-block: clamp(2.75rem, 6vw, 6rem); }
.study-layout { display: grid; grid-template-columns: minmax(15rem, .9fr) minmax(0, 1.65fr); grid-template-rows: auto 1fr; gap: 1.5rem clamp(1.5rem, 5vw, 5rem); }
.study-intro { align-self: end; padding-top: clamp(1rem, 3.5vw, 4rem); }
.study-intro h2 { margin: 0 0 .9rem; max-width: 10.5em; font: 400 clamp(2.5rem, 4.4vw, 4.6rem)/1.03 Georgia, serif; letter-spacing: -.045em; }
.study-intro p { margin: 0; max-width: 30rem; color: var(--muted); line-height: 1.55; }
.study-rooms { display: flex; flex-wrap: wrap; column-gap: clamp(.75rem, 1.5vw, 1.3rem); margin-top: 1.25rem; }
.study-rooms button { min-height: 44px; padding: .45rem 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-family: inherit; font-size: .95rem; font-weight: 500; line-height: 1.3; cursor: pointer; }
.study-rooms button[aria-pressed="true"] { color: var(--ink); border-color: var(--blue); font-weight: 650; }
.study-pair { grid-column: 2; grid-row: 1 / 3; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(.5rem, 1.2vw, 1rem); }
.study-pair figure { margin: 0; }
.study-pair button { display: block; position: relative; width: 100%; padding: 0; border: 0; background: var(--soft); color: var(--ink); cursor: zoom-in; }
.study-pair img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; }
.study-pair button span { position: absolute; bottom: .5rem; right: .5rem; display: grid; place-items: center; width: 1.65rem; height: 1.65rem; background: #fffffff2; font: 400 1.25rem/1 Arial, sans-serif; }
.study-pair figcaption { padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; font-weight: 550; }
.study-estimate { justify-self: start; align-self: start; }
#lightbox .lightbox-close { min-width: 44px; min-height: 44px; cursor: pointer; }
#lightbox > p { margin: .55rem 0 0; font-size: 1rem; }
@media (max-width: 760px) {
  .study-layout { display: flex; flex-direction: column; gap: 1.25rem; }
  .study-intro { align-self: stretch; padding: 0; }
  .study-rooms { gap: 1.1rem; margin-top: .75rem; }
  .study-estimate { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.location-picker { position: relative; }
.location-picker label { display: block; margin-bottom: .4rem; font-weight: 550; }
.location-picker input { width: 100%; min-height: 48px; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 3px; background: white; color: var(--ink); font: inherit; font-size: max(1rem,16px); }
.location-picker input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
html:has(#quick-quote fieldset:not([hidden]) #estimate-location) { scroll-behavior: auto; overflow-anchor: none; }
.location-options { position: relative; list-style: none; margin: .25rem 0 0; padding: 0; max-height: min(13rem,32vh); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 3px; background: white; }
.location-options li { display: flex; align-items: center; min-height: 46px; padding: .6rem .9rem; cursor: pointer; line-height: 1.35; overflow-wrap: anywhere; }
.location-options li + li { border-top: 1px solid var(--line); }
.location-options li:hover,.location-options li[aria-selected="true"] { background: var(--soft); }
#location-status { min-height: 1.5em; margin: .55rem 0 0; }
#continue:disabled { opacity:.5; cursor: default; }
.location-credit { margin: .3rem 0 0; font-size: .8rem; color: var(--muted); }

.location-change-area { padding: .65rem 0; min-height: 44px; border: 0; background: transparent; color: var(--ink); text-decoration: underline; font: inherit; cursor: pointer; }
