@font-face {
  font-family: "Golos";
  src: url("./golos-text-cyrillic-wght-normal-mKek_fSS.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Golos";
  src: url("./golos-text-latin-wght-normal-BS5oQT7X.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+2000-206F,U+20A0-20C0,U+2190-2199,U+2212;
}
@font-face {
  font-family: "Cormorant";
  src: url("./cormorant-garamond-cyrillic-600-italic-Bp4BYShX.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: "Cormorant";
  src: url("./cormorant-garamond-latin-600-italic-DCuhXWyK.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF,U+2000-206F,U+20A0-20C0;
}

:root {
  color-scheme: light;
  font-family: "Golos", sans-serif;
  color: #20251e;
  background: #f7f5ed;
  --paper: #f7f5ed;
  --tint: #eeeee4;
  --ink: #20251e;
  --muted: #555d53;
  --line: #d8dccf;
  --dark: #202920;
  --accent: #e0f49e;
  --on-dark: #fffdf4;
  --muted-dark: #d0d8c8;
  --dark-line: #f5f3e84a;
  --edge: clamp(20px, 5vw, 84px);
  --space: clamp(58px, 7.5vw, 112px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, p, h1, h2, h3, figure, blockquote { margin: 0; }
body { min-width: 320px; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { opacity: .4; cursor: default; }
:focus-visible { outline: 2px solid #567331; outline-offset: 4px; }
.dark :focus-visible, .hero :focus-visible, .lightbox :focus-visible { outline-color: var(--accent); }
[hidden] { display: none !important; }
section, [id^="price-"] { scroll-margin-top: 22px; }
p, blockquote, address { line-height: 1.56; }
h1, h2, h3 { font-weight: 500; line-height: 1.04; }
h1 { font-size: clamp(58px, 8.05vw, 132px); letter-spacing: -.078em; }
h2 { font-size: clamp(43px, 6.05vw, 92px); letter-spacing: -.072em; }
h3 { font-size: clamp(21px, 2.14vw, 33px); letter-spacing: -.049em; }
em { font-family: "Cormorant", Georgia, serif; font-weight: 600; letter-spacing: -.045em; font-size: 1.13em; }
.wrap { width: min(100% - var(--edge) * 2, 1440px); margin-inline: auto; }
.section { padding-block: var(--space); }
.section + .section:not(.tinted, .dark), .section.tinted + .section.tinted { border-top: 1px solid var(--line); }
.dark { color: var(--on-dark); background: var(--dark); }
.dark h2 em { color: var(--accent); }
.tinted { background: var(--tint); }
.skip { position: fixed; z-index: 20; top: 12px; left: 12px; transform: translateY(-180%); background: var(--accent); padding: 12px 20px; }
.skip:focus { transform: none; }

.hero { position: relative; isolation: isolate; min-height: clamp(660px, 88svh, 980px); display: grid; grid-template-rows: auto 1fr auto; background: #202b25; color: var(--on-dark); }
.hero-photo, .hero::after { position: absolute; inset: 0; height: 100%; z-index: -1; }
.hero-photo { object-fit: cover; object-position: center 52%; }
.hero::after {
  content: "";
  background: linear-gradient(90deg, #111a15ef 0%, #131c16c9 29%, #151c1573 53%, #12181012 83%),
              linear-gradient(0deg, #111810ae, transparent 30%, transparent 78%, #10181181);
}
.site-header { position: relative; min-height: 84px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; border-bottom: 1px solid var(--dark-line); }
.brand { display: block; width: fit-content; }
.brand img { width: clamp(104px, 10vw, 144px); height: auto; border-radius: 3px; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2.3vw, 39px); font-size: 14px; }
.site-header nav a { padding-block: 12px; white-space: nowrap; }
.site-header nav a:hover, .dark .text-link:hover { color: var(--accent); }
.header-cta { justify-self: end; white-space: nowrap; }
.site-header .menu { display: none; }
.hero-main { align-self: center; padding-block: 52px 68px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 550; letter-spacing: .095em; text-transform: uppercase; }
.dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.hero h1 { margin-top: 23px; line-height: .83; }
.hero h1 em { display: inline-block; color: var(--accent); padding-bottom: .11em; }
.hero-main > p { margin-top: 20px; max-width: 540px; font-size: clamp(16px, 1.42vw, 21px); color: #fffdf0ed; }
.hero-actions, .review-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-facts { display: flex; min-height: 76px; align-items: center; gap: clamp(20px, 6vw, 92px); border-top: 1px solid var(--dark-line); color: var(--muted-dark); font-size: 14px; }
.hero-facts strong { color: var(--on-dark); font-size: 20px; font-weight: 560; }
.hero-facts .icon { margin-inline-start: auto; }

.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; width: fit-content; min-height: 54px; padding: 13px 16px; font-size: 14px; line-height: 1.28; font-weight: 590; border: 1px solid transparent; border-radius: 4px; transition: background .2s, color .2s, border-color .2s; }
.button span { font-size: 17px; line-height: 1; flex-shrink: 0; }
.button.primary { background: var(--accent); color: var(--ink); }
.button.primary:hover { background: #edfbc5; }
.button.ghost { border-color: #fffdf480; background: #151d1757; color: var(--on-dark); }
.button.ghost:hover { background: #fffdf427; border-color: #fffdf4; }
.site-header .button { min-height: 41px; font-size: 13px; padding-block: 8px; }
.button.ink { color: var(--on-dark); background: var(--dark); }
.button.ink:hover { background: #3a4d36; }
.button.outline { border-color: #a1ab99; }
.button.outline:hover { background: var(--tint); }
.icon { display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; background: transparent; border: 1px solid currentColor; border-radius: 50%; font-size: 20px; line-height: 1; transition: background .2s, color .2s; }
.icon:hover:not(:disabled) { background: var(--accent); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: 10px; width: fit-content; min-height: 44px; font-size: 14px; font-weight: 560; text-decoration: underline; text-underline-offset: 4px; }

.promo { margin-top: clamp(18px, 3.6vw, 52px); display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: clamp(21px, 3vw, 40px); background: var(--accent); }
.promo h2 { font-size: clamp(26px, 4vw, 54px); letter-spacing: -.05em; margin-top: 6px; }
.promo .button { flex-shrink: 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: end; margin-bottom: clamp(26px, 4vw, 55px); }
.section-head > h2:only-child { grid-column: 1 / -1; }
.section-head p { color: var(--muted); max-width: 330px; margin: 0 0 3px auto; font-size: clamp(15px, 1.4vw, 19px); }
.dark .section-head p { color: var(--muted-dark); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.45vw, 23px); }
.card { background: #fcfbf4; display: flex; flex-direction: column; min-width: 0; }
.card > img { aspect-ratio: 1.53; object-fit: cover; background: #dcdfd2; }
.card-content { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(17px, 2.35vw, 34px); flex: 1; }
.card p { margin: 12px 0 17px; font-size: clamp(14px, 1.15vw, 16px); color: var(--muted); }
.card-link { display: inline-flex; gap: 10px; align-items: center; min-height: 40px; margin-top: auto; font-size: 14px; font-weight: 625; }
.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.service-card { background: #eeeee3; }
.service-card:nth-child(n+4) .card-content { min-height: 180px; }
.lined { gap: clamp(20px, 3vw, 48px); }
.lined .card { background: transparent; border-top: 1px solid #aeb6a6; }
.lined .card-content { padding-inline: 0; }
.lined .card p { margin-bottom: 0; }
.price-card p { font-size: clamp(17px, 1.7vw, 25px); font-weight: 570; color: var(--ink); }

table { border-collapse: collapse; width: 100%; text-align: left; }
th, td { padding: clamp(12px, 2vw, 25px) clamp(4px, 1vw, 15px); border-bottom: 1px solid var(--line); }
tr > :first-child { padding-inline-start: 0; }
tr > :last-child { text-align: right; padding-inline-end: 0; }
thead th { color: var(--muted); font-size: 13px; font-weight: 500; }
tbody th { font-size: clamp(14px, 1.8vw, 23px); font-weight: 560; }
tbody td { font-size: clamp(13px, 1.45vw, 18px); }
tbody td:last-child { font-weight: 650; }
#prices { padding-top: clamp(40px, 5vw, 77px); }

.step-list { list-style: none; counter-reset: steps; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); margin: 0; padding: 0; }
.step-list li { border-top: 1px solid var(--dark-line); padding-top: 22px; counter-increment: steps; }
.step-list li::before { content: counter(steps, decimal-leading-zero); color: var(--accent); font-size: 14px; display: block; margin-bottom: 19px; }
.step-list p { margin-top: 13px; color: var(--muted-dark); }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-list a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.service-list a:hover strong { text-decoration: underline; text-underline-offset: 5px; }
.service-list strong { font-size: clamp(17px, 1.85vw, 25px); font-weight: 545; }
.service-list span { margin-left: auto; font-size: 14px; color: var(--muted); }
.service-list b { margin-left: auto; font-weight: 450; }
.service-list span + b { margin-left: 0; }
.portal { overflow: hidden; }
.portal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6vw, 90px); }
.portal-copy { padding-block: var(--space); }
.portal h2 { font-size: clamp(40px, 4.9vw, 78px); }
.portal p { margin-block: 22px; max-width: 440px; color: var(--muted-dark); }
.portal img { width: calc(100% + var(--edge)); max-width: none; height: 100%; min-height: 380px; object-fit: cover; }

.projects-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.cover-card { background: #363c32; color: var(--on-dark); min-height: clamp(225px, 24vw, 365px); isolation: isolate; position: relative; justify-content: end; grid-column: span 2; overflow: hidden; }
.cover-card:nth-child(-n+2) { grid-column: span 3; }
.cover-card > img { position: absolute; inset: 0; height: 100%; z-index: -2; transition: transform .5s; }
.cover-card::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg,#10180fed,#18201710 84%); }
.cover-card:hover > img { transform: scale(1.04); }
.cover-card .card-content { flex: 0; }
.cover-card .card-link { color: var(--accent); }
.cover-card .card-link::before { content: ""; position: absolute; inset: 0; }

.gallery { position: relative; }
.gallery-actions { display: flex; justify-content: end; gap: 8px; margin-bottom: 11px; }
.gallery-actions .gallery-autoplay { font-size: 15px; }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--columns) - 1) * 12px) / var(--columns)); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #86957d transparent; padding-bottom: 10px; }
.gallery-item { position: relative; scroll-snap-align: start; min-width: 0; background: #dfe2d5; overflow: hidden; }
.gallery-item:focus-visible { outline-offset: -4px; }
.gallery-item img { aspect-ratio: 1.03; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item span { position: absolute; inset: auto 10px 10px auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); }
#gallery .gallery-item img { aspect-ratio: .89; }
#large .gallery-item img, #builders .gallery-item img { aspect-ratio: 1.45; }

.partner-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.partner-grid figure {
  background: #eeece1;
  border: 1px solid transparent;
  transition: border-color 180ms ease;
}
.partner-grid img {
  height: clamp(100px, 13vw, 174px);
  object-fit: contain;
  padding: 8px;
  mix-blend-mode: multiply;
  filter: brightness(var(--logo-brightness, 1)) grayscale(var(--logo-grayscale, 1));
  transition: filter 240ms ease;
}
/* Lighten the off-white backgrounds baked into these source images. */
.partner-grid figure:nth-child(2) img,
.partner-grid figure:nth-child(3) img { --logo-brightness: 1.025; }
.partner-grid figure:nth-child(5) img { --logo-brightness: 1.065; }
@media (hover: hover) {
  .partner-grid figure:hover {
    --logo-grayscale: 0;
    border-color: #b0b5a8;
  }
}
.hardware-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hardware-grid .card > img { aspect-ratio: 1.42; object-fit: contain; background: #fff; padding: 12px; }
.hardware-grid .card-content { padding: clamp(13px, 1.6vw, 24px); }
.hardware-grid h3 { font-size: clamp(19px, 1.65vw, 25px); }

.video-grid, .about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(22px, 5vw, 80px); align-items: center; }
.video-grid .text-link { margin-top: 20px; }
.video { position: relative; aspect-ratio: 16 / 9; background: var(--dark); }
.video-play { position: absolute; inset: 0; width: 100%; display: grid; place-items: center; border: 0; padding: 0; }
.video-play img { position: absolute; inset: 0; height: 100%; object-fit: cover; opacity: .9; }
.video-play span { z-index: 1; display: grid; place-items: center; padding-left: 3px; width: 58px; height: 58px; background: var(--accent); border: 1px solid #a4ae80; border-radius: 50%; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.about-grid img { aspect-ratio: 1.31; object-fit: cover; }
.about-grid p + p { margin-top: 12px; }
.about-grid .button { margin-top: 22px; }

.review { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; padding: clamp(16px, 2vw, 30px); background: var(--tint); }
.review blockquote { font-size: 15px; }
.review figcaption { display: flex; align-items: center; gap: 11px; }
.review figcaption img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.review figcaption strong, .review figcaption small { display: block; }
.review figcaption small { color: var(--muted); margin-top: 3px; }
.faq { max-width: 1020px; border-top: 1px solid #bbc3b3; }
.faq details { border-bottom: 1px solid #bbc3b3; }
.faq summary { min-height: 65px; padding-block: 12px; display: flex; justify-content: space-between; align-items: center; gap: 16px; list-style: none; cursor: pointer; font-size: clamp(18px, 2vw, 27px); font-weight: 540; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span::before { display: grid; place-items: center; content: "+"; width: 39px; height: 39px; border: 1px solid #a4AE9a; border-radius: 50%; font-weight: 440; }
.faq details[open] summary span::before { content: "−"; background: var(--accent); }
.faq details p { white-space: pre-line; max-width: 690px; padding-bottom: 24px; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 62px); align-items: start; }
.contact-main .phone { display: block; width: fit-content; font-size: clamp(23px, 3vw, 43px); margin-top: 22px; letter-spacing: -.055em; }
.contact-main .phone:hover { color: var(--accent); }
.contact-main address { margin-top: 12px; font-style: normal; color: var(--muted-dark); }
.social-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.social-links a { min-height: 38px; padding: 8px 10px; border: 1px solid var(--dark-line); border-radius: 4px; font-size: 13px; }
.social-links a:hover { border-color: var(--accent); color: var(--accent); }
.request { padding: clamp(19px, 3.2vw, 46px); background: #303d2f; border: 1px solid var(--dark-line); scroll-margin-top: 20px; }
.request:target { border-color: var(--accent); }
.request p { margin-block: 12px 18px; color: var(--muted-dark); }
.request .text-link { display: flex; margin-top: 6px; }
.request-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.request-fields label { display: grid; gap: 5px; font-size: 14px; }
.request-fields label:nth-child(n+3) { grid-column: 1 / -1; }
.request-fields label span { font-size: 12px; color: var(--muted-dark); }
.request-fields input, .request-fields textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid var(--dark-line);
  border-radius: 4px;
  color: var(--on-dark);
  background: #202920;
  font: inherit;
}
.request-fields textarea { resize: vertical; }
.request-fields input::placeholder { color: var(--muted-dark); opacity: .72; }
.request p.request-estimate { padding: 10px; margin-bottom: 0; border-left: 2px solid var(--accent); font-size: 14px; }
.request p.request-contact-note { margin-block: 12px; font-size: 13px; }
.request p.request-status { color: var(--accent); margin-block: 8px 0; }
.request p.request-status.error { color: #ffd2be; }
.request-status:empty { display: none; }
.map { width: 100%; height: 320px; grid-column: 1 / -1; border: 0; background: #363e32; }
.site-footer { background: #182218; color: var(--on-dark); }
.footer-row { min-height: 98px; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding-block: 14px; }
.footer-row > span, .footer-row > a:not(.brand) { font-size: 13px; color: var(--muted-dark); }
.footer-row a:hover { color: var(--accent); }

.subhead-inner { padding-block: clamp(42px, 7vw, 92px); }
.subhead-inner h1 { font-size: clamp(45px, 7.2vw, 100px); max-width: 1000px; margin-top: 16px; }
.case-page { display: grid; gap: clamp(32px, 5vw, 75px); }
.case-card { border-bottom: 1px solid var(--line); padding-bottom: clamp(26px, 5vw, 68px); }
.case-image img { aspect-ratio: 2.55; object-fit: cover; }
.case-card .gallery-track img { aspect-ratio: 1.45; }
.case-copy { margin-top: 20px; max-width: 900px; }
.case-copy h2 { font-size: clamp(29px, 4vw, 57px); letter-spacing: -.055em; }
.case-copy p { margin-top: 13px; white-space: pre-line; }
.case-copy .button { margin-top: 20px; }

.lightbox { width: min(95vw, 1250px); max-width: none; max-height: 93vh; background: #19211b; color: var(--on-dark); border: 1px solid var(--dark-line); padding: 12px; }
.lightbox::backdrop { background: #101510dd; }
.lightbox-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 4px 8px; }
.lightbox-stage { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; align-items: center; }
.lightbox-stage img { max-height: 77vh; width: 100%; object-fit: contain; background: #151b16; }

@media (max-width: 1000px) {
  .site-header { gap: 15px; }
  .site-header nav { gap: 16px; }
  .hero-facts { gap: clamp(14px, 3vw, 48px); }
}
@media (max-width: 820px) {
  .site-header { min-height: 68px; grid-template-columns: 1fr auto auto; gap: 10px; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; flex-wrap: wrap; padding: 0 0 9px; }
  .site-header .header-cta { grid-column: 2; grid-row: 1; }
  .js .site-header nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 4; padding: 11px; border: 1px solid var(--dark-line); background: #263127; }
  .js .site-header nav.is-open { display: grid; grid-template-columns: 1fr; gap: 0; }
  .js .site-header nav a { padding-inline: 12px; }
  .js .site-header .menu { display: inline-grid; grid-column: 3; grid-row: 1; }
  .grid, .step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-grid, .partner-grid, .hardware-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-grid .cover-card { grid-column: span 1; }
  .reviews-grid .review:last-child { grid-column: 1 / -1; }
  .gallery-track { --columns: 2 !important; }
  .portal-grid { gap: 22px; }
}
@media (max-width: 580px) {
  .hero { min-height: clamp(660px, 88svh, 790px); }
  .hero-photo { object-position: 62% center; }
  .hero::after { background: linear-gradient(90deg,#101710e6,#141e1490 76%,#141e1462), linear-gradient(0deg,#131b14a8,transparent 60%); }
  .hero h1 { font-size: clamp(50px, 13.4vw, 76px); }
  .hero-main { padding-block: 52px 44px; }
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px 13px; padding-block: 12px; font-size: 12px; }
  .hero-facts strong { font-size: 16px; }
  .hero-facts span:nth-child(3) { grid-column: 1 / 3; }
  .hero-facts .icon { grid-column: 3; grid-row: 1 / 3; }
  .site-header .header-cta { font-size: 11px; padding-inline: 8px; gap: 5px; min-height: 38px; }
  .icon { width: 40px; height: 40px; }
  .promo, .hero-actions { align-items: flex-start; }
  .promo { flex-direction: column; }
  .section-head, .grid, .step-list, .portal-grid, .about-grid, .video-grid, .contact-grid { grid-template-columns: 1fr; }
  .section-head { gap: 12px; }
  .section-head > p { margin-inline: 0; }
  .service-card:nth-child(n+4) .card-content { min-height: auto; }
  .partner-grid, .hardware-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-list a { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
  .service-list span { grid-column: 1; margin: 0; }
  .service-list b { grid-column: 2; grid-row: 1; }
  .portal-copy { padding-block: 50px 6px; }
  .portal img { width: calc(100% + 2 * var(--edge)); min-height: 0; aspect-ratio: 1.25; margin-inline: calc(-1 * var(--edge)); }
  .map { height: 260px; }
  .case-image img { aspect-ratio: 1.4; }
  .lightbox { padding: 8px; }
  .lightbox-stage { gap: 4px; }
  .lightbox-stage .icon { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

.window-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--dark-line);
}
.window-preview {
  --grid-line: #ddeac415;
  min-width: 0;
  min-height: 340px;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: clamp(18px, 3vw, 38px);
  background: radial-gradient(ellipse at 50% 58%, #63825242, transparent 75%),
              linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
              linear-gradient(var(--grid-line) 1px, transparent 1px), #27372d;
  background-size: auto, 23px 23px, 23px 23px, auto;
  border-inline-end: 1px solid var(--dark-line);
}
.window-preview figcaption, .window-width, .window-height {
  font-size: 13px;
  color: var(--muted-dark);
}
.window-drawing {
  --window-ratio: .9333;
  --frame: #eeeee3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-content: center;
  align-self: stretch;
  justify-self: center;
  max-width: 100%;
  padding-block: 14px;
}
.window-drawing[data-material="wood"] { --frame: #b98b61; }
.window-drawing[data-material="aluminum"] { --frame: #9daeb3; }
.window-width { grid-area: 1 / 1; text-align: center; border-bottom: 1px solid var(--dark-line); padding-bottom: 5px; }
.window-height { grid-area: 2 / 2; align-self: stretch; display: grid; place-items: center; border-left: 1px solid var(--dark-line); padding-left: 8px; writing-mode: vertical-rl; }
.window-frame {
  --left-pane: 0fr;
  --middle-pane: 0fr;
  --left-divider: 0px;
  --middle-divider: 0px;
  grid-area: 2 / 1;
  width: min(30vw, 340px, calc(214px * var(--window-ratio)));
  aspect-ratio: var(--window-ratio);
  padding: 7px;
  display: grid;
  grid-template-columns: minmax(0, var(--left-pane)) var(--left-divider) minmax(0, var(--middle-pane)) var(--middle-divider) minmax(0, 1fr);
  background: var(--frame);
  border: 1px solid #19271d;
  box-shadow: 0 14px 33px #111b166c;
  transition: grid-template-columns 640ms cubic-bezier(.22, 1, .36, 1), background-color 350ms ease;
}
.window-drawing:is([data-panes="2"], [data-panes="3"]) .window-frame {
  --left-pane: 1fr;
  --left-divider: 5px;
}
.window-drawing[data-panes="3"] .window-frame {
  --middle-pane: 1fr;
  --middle-divider: 5px;
}
.window-frame i {
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  background: linear-gradient(146deg, #bee2e18a, #557576 56%, #375760);
  box-shadow: inset 0 0 0 1px #3344487d;
}
.window-frame i:nth-child(1) { grid-column: 1; }
.window-frame i:nth-child(2) { grid-column: 3; }
.window-frame i:nth-child(3) { grid-column: 5; }
.window-frame i:last-child::after { content: ""; position: absolute; width: 3px; height: 16px; border-radius: 2px; background: var(--frame); inset: 48% 6px auto auto; transition: background-color 350ms ease; }

#window-options { min-width: 0; padding: clamp(17px, 3vw, 40px); }
#window-options label, .window-panes legend, .window-estimate > div > span { font-size: 14px; color: var(--muted-dark); }
#window-options select, .window-dimensions input {
  width: 100%;
  min-height: 45px;
  margin-top: 6px;
  padding: 9px 10px;
  color: var(--on-dark);
  background: #303d32;
  border-radius: 4px;
  border: 1px solid var(--dark-line);
  color-scheme: dark;
  font: inherit;
}
.window-dimensions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.window-panes { min-width: 0; margin: 16px 0 0; padding: 0; border: 0; }
.window-panes legend { margin-bottom: 6px; padding: 0; }
.window-panes > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.window-panes label { position: relative; cursor: pointer; }
.window-panes input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.window-panes label span { display: grid; min-height: 44px; place-items: center; padding: 5px; border: 1px solid var(--dark-line); border-radius: 4px; }
.window-panes input:checked + span { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.window-panes input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.window-estimate { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 22px; padding-top: 19px; border-top: 1px solid var(--dark-line); }
.window-estimate output { display: block; margin-top: 3px; font-size: clamp(29px, 4vw, 57px); line-height: 1.05; letter-spacing: -.065em; overflow-wrap: anywhere; }
#window-rate, .window-note { margin-top: 8px; font-size: 13px; color: var(--muted-dark); }
.window-note { margin-top: 14px; }

@media (max-width: 720px) {
  .window-calculator { grid-template-columns: 1fr; }
  .window-preview { min-height: 250px; border-inline-end: 0; border-bottom: 1px solid var(--dark-line); }
  .window-frame { width: min(65vw, 300px, calc(145px * var(--window-ratio))); }
}
@media (max-width: 350px) {
  .site-header { gap: 7px; }
  .site-header .header-cta span { display: none; }
  .request-fields { grid-template-columns: minmax(0, 1fr); }
}
