/* Cool Time: "hidden in the ceiling". Palette = plaster + ink + air. */
:root {
  --plaster: #F4F7F8;
  --paper: #FFFFFF;
  --sky: #E4EFF4;
  --ink: #1B2E3C;
  --ink-soft: #4A6070;
  --line: #9DB3C1;
  --rule: #CFDCE3;
  --air: #1F6F94;
  --air-deep: #175874;
  --warm: #E07A4F;
  --air-light: #5FA9C9;
  --error: #B42318;

  --f-display: "Frank Ruhl Libre", "IBM Plex Serif", Georgia, serif;
  --f-body: "IBM Plex Sans Hebrew", "IBM Plex Sans", "Segoe UI", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --sec-pad: clamp(64px, 9vw, 120px);
  --radius: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--f-display); font-weight: 400; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.06; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.7rem); line-height: 1.15; }
h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.35; }
p { margin: 0; text-wrap: pretty; }
.muted { color: var(--ink-soft); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 2px solid var(--air); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 26px;
  background: var(--air); color: #fff;
  border: 1.5px solid var(--air); border-radius: 999px;
  font: 500 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { background: var(--air-deep); border-color: var(--air-deep); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 247, 248, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 1.15rem/1 "IBM Plex Sans", var(--f-body); letter-spacing: -0.01em;
  text-decoration: none; color: var(--ink); white-space: nowrap;
}
.logo svg { width: 30px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.logo svg .air { stroke: var(--air); stroke-width: 1.6; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--ink-soft); font-size: .97rem; padding: 6px 0; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.hdr-phone { text-decoration: none; font-weight: 500; font-size: .97rem; }
.lang {
  min-width: 44px; min-height: 40px; padding: 0 10px;
  background: transparent; border: 1px solid var(--rule); border-radius: 999px;
  font: 500 .9rem var(--f-body); color: var(--ink); cursor: pointer;
  transition: border-color .2s;
}
.lang:hover { border-color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-text h1 { max-width: 12ch; }
.lead { margin-top: 24px; font-size: 1.12rem; color: var(--ink-soft); max-width: 44ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.drawing { margin: 0; }
.drawing figcaption {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 14px;
  font-size: .92rem; color: var(--ink-soft);
}
.legend-dash { flex: none; width: 34px; border-top: 2px dashed var(--ink-soft); }
.leg { display: inline-flex; align-items: center; gap: 10px; }
.leg-note { flex-basis: 100%; font-size: .85rem; font-style: italic; }
.legend-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.legend-dot.cold { background: var(--air); }
.legend-dot.warm { background: var(--warm); }

/* the drawing itself */
.dw { width: 100%; height: auto; overflow: visible; }
.dw .hatch-line { stroke: var(--line); stroke-width: 1; }
.dw .slab { fill: url(#hatch); stroke: var(--ink); stroke-width: 1.6; }
.dw .wall { fill: none; stroke: var(--ink); stroke-width: 3; }
.dw .ceiling { fill: none; stroke: var(--ink); stroke-width: 2.2; }
.dw .thin { fill: none; stroke: var(--ink); stroke-width: 1.2; }
.dw .hidden { fill: none; stroke: var(--ink-soft); stroke-width: 1.5; stroke-dasharray: 7 5; }
.dw .furn { fill: none; stroke: var(--line); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dw .air path { fill: none; stroke: var(--air); stroke-width: 2.2; stroke-linecap: round; }
.dw .ret path { fill: none; stroke: var(--warm); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 2 6; }
.dw .panel { fill: none; stroke: var(--air-deep); stroke-width: 2.6; stroke-linecap: square; }
.dw .arr-sup { fill: none; stroke: var(--air); stroke-width: 1.6; stroke-linejoin: round; }
.dw .arr-ret { fill: none; stroke: var(--warm); stroke-width: 1.6; stroke-linejoin: round; }
.dw .flow path { fill: none; stroke-linecap: round; }
.dw .s-wide { stroke-width: 10; stroke-dasharray: 9 7; opacity: .34; }
.dw .s-core { stroke-width: 2.2; stroke-dasharray: 5 11; opacity: .45; }
.dw .callout path { stroke: var(--ink-soft); stroke-width: 1; fill: none; }
.dw .callout circle { fill: var(--ink); }
.dw text { font-family: var(--f-body); fill: var(--ink); text-anchor: middle; }
.dw .callout text { font-size: 15px; font-weight: 500; }
.dw .callout text, .dw .temp text { paint-order: stroke; stroke: var(--plaster); stroke-width: 5px; stroke-linejoin: round; }
.dw .deg { font-family: var(--f-display); font-size: 46px; fill: var(--air); }
.dw .deg-sub { font-size: 13px; fill: var(--ink-soft); }

/* the one orchestrated moment: the section draws itself, then the air flows */
@media (prefers-reduced-motion: no-preference) {
  .dw .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s var(--ease) forwards; }
  .dw .slab.draw { animation-duration: 1.4s; }
  .dw .hidden, .dw .furn, .dw .callout, .dw .temp { opacity: 0; animation: fade .7s var(--ease) forwards; }
  .dw .hidden { animation-delay: .9s; }
  .dw .furn { animation-delay: 1.1s; }
  .dw .air path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; animation-delay: 1.5s; }
  .dw .air path:nth-child(2) { animation-delay: 1.6s; }
  .dw .air path:nth-child(3) { animation-delay: 1.7s; }
  .dw .air path:nth-child(4) { animation-delay: 1.8s; }
  .dw .air path:nth-child(5) { animation-delay: 1.9s; }
  .dw .air, .dw .ret { opacity: 0; animation: fade .4s var(--ease) forwards; }
  .dw .air { animation-delay: 1.5s; }
  .dw .flow { opacity: 0; animation: fade 1.2s var(--ease) 2.8s forwards; }
  .dw .s-wide { animation: steam 2.2s linear infinite; }
  .dw .s-core { animation: steam 1.6s linear infinite; }
  .dw .ret { animation-delay: 2.1s; }
  .dw .callout { animation-delay: 2.3s; }
  .dw .temp { animation-delay: 2.6s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes steam { to { stroke-dashoffset: -16; } }

/* ---------- Sections ---------- */
.sec { padding-block: var(--sec-pad); }
.sec.sky { background: var(--sky); }
.sec > .wrap > h2 { max-width: 22ch; }

.two-col { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.col-head { position: sticky; top: 108px; }
.col-head h2 { max-width: 16ch; }
.col-head p { margin-top: 18px; max-width: 40ch; }
.col-head .btn { margin-top: 30px; }

/* Approach */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 44px 40px; }
.principles article { border-top: 1px solid var(--rule); padding-top: 22px; }
.principles p { margin-top: 8px; color: var(--ink-soft); }
.ico { width: 28px; height: 28px; margin-bottom: 16px; fill: none; stroke: var(--air); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Architects */
.rows { margin: 0; }
.rows > div { display: grid; grid-template-columns: 15rem 1fr; gap: 24px; padding-block: 24px; border-top: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { font-weight: 600; }
.rows dd { margin: 0; color: var(--ink-soft); }

/* Process: a real sequence, so it is numbered */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; inset-inline: 0; top: 19px; border-top: 1.5px dashed var(--line); }
.steps li { position: relative; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 22px;
  background: var(--plaster); border: 1.5px solid var(--air); border-radius: 50%;
  font: 400 1.15rem/1 var(--f-display); color: var(--air); position: relative;
}
.steps p { margin-top: 8px; color: var(--ink-soft); font-size: .97rem; }

/* Projects */
.pj-head { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.pj-head p { max-width: 46ch; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.shot { margin: 0; min-width: 0; }
.shot-wide { grid-column: 1 / -1; }
.shot img, .shot video {
  width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: var(--radius); background: var(--rule);
}
.shot-wide img { aspect-ratio: 16 / 9; }
.shot figcaption { margin-top: 10px; font-size: .95rem; color: var(--ink-soft); }
.behind { margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(40px, 5vw, 64px); border-top: 1.5px dashed var(--line); }
.behind-h { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.2; }
.gallery-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-3 .shot img { aspect-ratio: 4 / 5; }

.mini-h { margin-top: 30px; font-size: .98rem; }
.hours { margin: 10px 0 0; max-width: 340px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding-block: 5px; border-bottom: 1px solid var(--rule); }
.hours dt { color: var(--ink-soft); }
.hours dd { margin: 0; font-weight: 500; }

/* Service */
.service { display: grid; gap: 40px; }
.plan { background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(24px, 4vw, 40px); }
.plan h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; }
.ticks li { position: relative; padding-block: 10px; padding-inline-start: 30px; border-top: 1px solid var(--rule); }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: 17px; width: 12px; height: 7px;
  border-left: 2px solid var(--air); border-bottom: 2px solid var(--air); transform: rotate(-45deg);
}
.note { margin: 18px 0 26px; color: var(--ink-soft); font-size: .95rem; }
.side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 40px; }
.side h3 { grid-row: 1; }
.side p { grid-row: 2; color: var(--ink-soft); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-block: 22px; font-weight: 500; font-size: 1.06rem; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  background: linear-gradient(var(--air), var(--air)) center/12px 2px no-repeat, linear-gradient(var(--air), var(--air)) center/2px 12px no-repeat;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 24px; color: var(--ink-soft); max-width: 60ch; }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 6px; }
.contact-list a { text-decoration: none; font-weight: 500; font-size: 1.1rem; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.contact-list a:hover { border-color: var(--air); }
.area { margin-top: 10px; color: var(--ink-soft); max-width: 46ch; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(22px, 4vw, 40px); }
.form label { display: grid; gap: 6px; font-size: .95rem; font-weight: 500; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: 400 1rem var(--f-body); color: var(--ink);
  background: var(--plaster); border: 1px solid var(--rule); border-radius: var(--radius);
  transition: border-color .2s, background-color .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--air); background: var(--paper); box-shadow: 0 0 0 3px rgba(31, 111, 148, .18); }
.form [aria-invalid="true"] { border-color: var(--error); }
.form .check { display: flex; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; }
.form .check input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--air); }
.form-error { color: var(--error); font-weight: 500; }
.form-hint { font-size: .88rem; color: var(--ink-soft); text-align: center; }

/* Footer */
.footer { border-top: 1px solid var(--rule); padding-block: 28px; color: var(--ink-soft); font-size: .93rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .logo { font-size: 1rem; }

/* Mobile call bar */
.mobile-bar { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 900px) {
  .hero-grid, .two-col { grid-template-columns: 1fr; }
  .col-head { position: static; }
  .hero-text h1 { max-width: 16ch; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { inset-inline: auto; inset-inline-start: 19px; top: 20px; bottom: 20px; border-top: 0; border-inline-start: 1.5px dashed var(--line); }
  .steps li { padding-inline-start: 64px; padding-bottom: 28px; min-height: 40px; }
  .steps li::before { position: absolute; inset-inline-start: 0; top: -6px; margin: 0; }
  .pj-head { grid-template-columns: 1fr; gap: 16px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .hdr-phone, .header-actions .btn-sm { display: none; }
  .principles, .side { grid-template-columns: 1fr; }
  .side h3, .side p { grid-row: auto; }
  .side p { margin-bottom: 18px; }
  .rows > div { grid-template-columns: 1fr; gap: 6px; }
  .form { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .dw .callout text { font-size: 22px; }
  .dw .deg-sub { font-size: 17px; }
  .dw .deg { font-size: 56px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
    background: var(--paper); border-top: 1px solid var(--rule);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .mobile-bar a {
    display: grid; place-items: center; min-height: 48px; border-radius: 999px;
    text-decoration: none; font-weight: 500; border: 1.5px solid var(--line);
  }
  .mobile-bar .mb-wa { background: var(--air); border-color: var(--air); color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; }
}

/* About: one person does the whole job */
.about { display: grid; grid-template-columns: 4fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-photo { margin: 0; max-width: 420px; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.about-photo figcaption { margin-top: 10px; font-size: .93rem; color: var(--ink-soft); }
.about-text h2 { max-width: 16ch; }
.about-text p { margin-top: 18px; max-width: 48ch; font-size: 1.08rem; }
.about-text p + p { color: var(--ink-soft); font-size: 1rem; }
.about-text .btn { margin-top: 30px; }
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; }
}
.about-text .about-name { margin-top: 10px; font-family: var(--f-display); font-size: 1.25rem; color: var(--air); }

/* Social links */
.social { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1.5px solid var(--line); color: var(--ink); background: var(--paper);
  transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.social a:hover { border-color: var(--air); color: var(--air); }
.social svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.social .dot { fill: currentColor; stroke-width: 1.4; }
.social-sm { margin: 0; gap: 6px; }
.social-sm a { width: 44px; height: 44px; border-color: transparent; background: transparent; }
.social-sm a:hover { border-color: var(--rule); }
.social-sm svg { width: 20px; height: 20px; }
.logo img { width: 34px; height: 34px; flex: none; }


.about-facts { list-style: none; padding: 0; margin: 4px 0 22px; display: grid; gap: 8px; }
.about-facts li { position: relative; padding-inline-start: 22px; color: var(--ink); font-weight: 500; }
.about-facts li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 10px; border-top: 2px solid var(--air); }

/* language menu */
.lang-wrap { position: relative; }
.lang { display: inline-flex; align-items: center; gap: 6px; }
.lang svg { opacity: .7; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 60;
  list-style: none; margin: 0; padding: 6px; min-width: 150px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(27, 46, 60, .12);
}
.lang-menu button {
  display: block; width: 100%; min-height: 44px; padding: 0 14px; border: 0; border-radius: 6px;
  background: none; font: 500 .95rem var(--f-body); color: var(--ink); text-align: start; cursor: pointer;
}
.lang-menu button:hover, .lang-menu button:focus-visible { background: var(--sky); }
.lang-menu button[aria-current="true"] { color: var(--air); }
.lang-menu button[aria-current="true"]::after { content: " ✓"; }

/* screen-reader-only text */
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* floating buttons: back to top + accessibility */
.fab {
  position: fixed; z-index: 70; inset-inline-end: 16px; bottom: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.fab-btn {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--rule); background: var(--paper); color: var(--ink); cursor: pointer;
  box-shadow: 0 6px 18px rgba(27, 46, 60, .14);
}
.fab-btn:hover { border-color: var(--ink); }
.fab-btn[hidden] { display: none; }
.fab-a11y { background: var(--air); border-color: var(--air); color: #fff; }
.fab-a11y:hover { background: var(--air-deep); }

.a11y-panel {
  position: fixed; z-index: 80; inset-inline-end: 16px; bottom: 136px;
  width: min(300px, calc(100vw - 32px)); padding: 14px; display: grid; gap: 6px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 12px;
  box-shadow: 0 14px 40px rgba(27, 46, 60, .18);
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.a11y-head h2 { margin: 0; font-size: 1.3rem; }
.dlg-x {
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--ink);
}
.dlg-x:hover { background: var(--sky); }
.a11y-opt {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px;
  border: 1px solid var(--rule); border-radius: 8px; background: var(--plaster);
  font: 500 1rem var(--f-body); color: var(--ink); text-align: start; cursor: pointer;
}
.a11y-opt:hover { border-color: var(--ink); }
.a11y-opt[aria-pressed="true"] { background: var(--air); border-color: var(--air); color: #fff; }
.opt-ico { width: 26px; text-align: center; font-weight: 600; font-family: "IBM Plex Sans", sans-serif; }
.opt-u { text-decoration: underline; }
.a11y-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.link-btn {
  border: 0; background: none; padding: 10px 0; min-height: 44px; cursor: pointer;
  font: 500 .95rem var(--f-body); color: var(--air); text-decoration: underline; text-underline-offset: 3px;
}
.foot-stmt { color: inherit; }

.dlg {
  width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 22px 26px;
  border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); color: var(--ink);
}
.dlg::backdrop { background: rgba(27, 46, 60, .45); }
.dlg p { margin: 0 0 14px; }

@media (max-width: 640px) {
  .fab { bottom: calc(76px + env(safe-area-inset-bottom)); inset-inline-end: 12px; }
  .a11y-panel { bottom: calc(192px + env(safe-area-inset-bottom)); inset-inline-end: 12px; }
}

/* accessibility settings */
html.a11y-big { font-size: 120%; }
html.a11y-big body { font-size: 20px; }
@media (max-width: 640px) { html.a11y-big body { font-size: 19px; } }
html.a11y-contrast {
  --ink: #000; --ink-soft: #1a1a1a; --line: #33475a; --rule: #5b6f7c;
  --plaster: #fff; --sky: #fff; --air: #0A4A66; --air-deep: #073648; --warm: #B4471C;
}
html.a11y-links a, html.a11y-links summary { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px dashed var(--air); outline-offset: 2px; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; }
html.a11y-still { scroll-behavior: auto; }
html.a11y-still .dw .hidden, html.a11y-still .dw .furn, html.a11y-still .dw .callout, html.a11y-still .dw .temp,
html.a11y-still .dw .flow { opacity: 1 !important; }
html.a11y-still .dw .draw, html.a11y-still .dw .air path { stroke-dashoffset: 0 !important; }
bdi[dir="ltr"] { white-space: nowrap; }

/* reviews */
#faq { border-top: 1px solid var(--rule); }
.rv-score { display: flex; align-items: baseline; gap: 10px; margin: 0 0 6px; }
.rv-big { font-family: var(--f-display); font-size: 2.6rem; line-height: 1; color: var(--air); }
.rv-score span + span { color: var(--ink-soft); }
.rv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; margin-top: 48px; }
.rv { margin: 0; padding: 26px 0 30px; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 14px; }
.rv-stars { display: flex; gap: 3px; margin: 0; fill: var(--air); }
.rv blockquote { margin: 0; }
.rv blockquote p { margin: 0 0 10px; }
.rv figcaption { margin-top: auto; font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .rv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .rv-grid { grid-template-columns: 1fr; margin-top: 32px; } }
.link-arrow { display: inline-block; margin-top: 8px; padding: 10px 0; color: var(--air); font-weight: 500; text-underline-offset: 3px; }
.rv figcaption { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: start; }
.rv-name { unicode-bidi: isolate; }
.rv-tr { font-weight: 400; font-size: .85rem; font-style: italic; color: var(--ink-soft); }
.rv-tr:empty { display: none; }
