/* Archiscans — "technical & precise": graphite ground, laser-orange accent, Archivo + IBM Plex Mono. */
:root {
  --ink-0: #0c0f10; --ink-1: #080a0b; --ink-2: #111618; --ink-3: #151a1c;
  --line-d: #232a2c; --line-d2: #2e3739; --line-d3: #3a4446;
  --text-d: #e8ecea; --soft-d: #b9c2c0; --muted-d: #9aa5a3;
  --paper: #f2f3f0; --sheet: #ffffff; --text: #111515; --muted: #4f5a5a; --rule: #d5d9d6; --rule-2: #c9cfcb; --rule-3: #e3e6e3;
  --accent: #ff5a1f; --accent-hover: #ff7a45; --accent-ink: #0c0f10; --accent-text: #c2410c;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1280px; --gutter: 32px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink-0); color: var(--text-d); font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, svg, canvas, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.hp { position: absolute; left: -9999px; }

/* ---------- layout ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.stack-xl { display: flex; flex-direction: column; gap: 48px; }
.narrow { max-width: 720px; }
.narrow-lg { max-width: 920px; }
.section { padding-block: 104px; }
.section-tight { padding-block: 64px; }
.section-light { background: var(--paper); color: var(--text); }
.section-dark { background: var(--ink-0); color: var(--text-d); }
.split { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.split-side { flex: 1 1 320px; min-width: 0; }
.split-main { flex: 999 1 520px; min-width: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.section-head { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; }
.section-head-text { flex: 1 1 360px; max-width: 460px; margin: 0; }

/* ---------- type ---------- */
.eyebrow { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.section-light .eyebrow { color: var(--accent-text); }
.display, .display-sm, .h1, .h2 { margin: 0; font-weight: 700; font-stretch: 76%; line-height: .95; letter-spacing: -.005em; }
.display { font-size: clamp(44px, 5.2vw, 76px); line-height: .94; }
.display-sm { font-size: clamp(42px, 5.4vw, 76px); }
.h1 { font-size: clamp(38px, 4.6vw, 60px); }
.h2 { font-size: clamp(34px, 4vw, 54px); line-height: 1; font-stretch: 78%; }
.h3 { margin: 0; font-size: 22px; line-height: 1.15; font-weight: 650; font-stretch: 85%; }
.h3-lg { margin: 0; font-size: 28px; line-height: 1.1; font-weight: 700; font-stretch: 80%; }
.lead { margin: 0; font-size: 18px; line-height: 1.55; max-width: 600px; }
.muted { color: var(--muted-d); }
.section-light .muted, .booking .muted { color: var(--muted); }
.hero .muted, .section-dark .muted { color: var(--soft-d); }
.mono { font-family: var(--mono); }
.mono-sm { font-family: var(--mono); font-size: 12px; }
.mono-xs { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.small { font-size: 13px; line-height: 1.55; margin: 0; }
.accent { color: var(--accent); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border: 1px solid transparent; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-xl { min-height: 56px; width: 100%; font-size: 17px; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-accent:disabled { background: var(--line-d3); color: var(--soft-d); cursor: not-allowed; }
.btn-ghost { border-color: var(--line-d3); color: var(--text-d); }
.btn-ghost:hover { border-color: var(--text-d); color: var(--text-d); }
.btn-ink { background: var(--ink-0); color: var(--paper); }
.btn-ink:hover { background: #1c2224; color: var(--paper); }
.btn-light { background: var(--text-d); color: var(--ink-0); border: 0; }
.btn-light:hover { background: #fff; color: var(--ink-0); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 15px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule-2); background: var(--sheet); cursor: pointer; color: var(--text); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- header ---------- */
.site-header { background: var(--ink-0); border-bottom: 1px solid var(--line-d); position: relative; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 12px 36px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--text-d); }
.brand:hover { color: var(--text-d); }
.brand .logo-mark { color: var(--accent); }
.brand-name { font-weight: 700; font-stretch: 78%; font-size: 21px; letter-spacing: .08em; }
.header-panel { flex: 1; display: flex; align-items: center; gap: 12px 36px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; flex: 1; font-size: 15px; }
.main-nav a { text-decoration: none; padding: 12px 0; }
.main-nav a[aria-current="page"] { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.header-tools { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; font-family: var(--mono); font-size: 12px; border: 1px solid var(--line-d2); }
.lang-switch a { text-decoration: none; padding: 13px 10px; color: var(--muted-d); line-height: 1; }
.lang-switch a[aria-current="true"] { background: var(--text-d); color: var(--ink-0); }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--text-d); }
.account-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; color: var(--text-d); text-decoration: none; font-size: 15px; font-weight: 600; }
.account-link.is-in .icon { color: var(--accent); }
.account-label { display: none; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 11px; line-height: 18px; text-align: center; }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; background: none; border: 1px solid var(--line-d2); color: var(--text-d); cursor: pointer; font-size: 14px; }
@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .header-inner { flex-wrap: wrap; }
  .header-panel { display: none; flex: 1 1 100%; flex-direction: column; align-items: stretch; padding: 8px 0 16px; }
  .nav-open .header-panel { display: flex; }
  .main-nav { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line-d); }
  .main-nav a[aria-current="page"] { box-shadow: none; }
  .header-tools { flex-wrap: wrap; padding-top: 8px; }
  .account-link { padding-right: 8px; }
  .account-label { display: inline; }
}

/* ---------- hero ---------- */
.hero { background: var(--ink-0); }
.hero-inner { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 72px 80px; }
.hero-text { flex: 1 1 540px; min-width: 0; }
.hero-visual { flex: 1 1 500px; min-width: 0; }
.viewport { position: relative; height: 540px; background: var(--ink-1); border: 1px solid var(--line-d); }
.viewport canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.viewport-top, .viewport-bottom { position: absolute; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-d); pointer-events: none; }
.viewport-top { top: 14px; }
.viewport-bottom { bottom: 14px; }
.scale { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.scale-bar { display: block; width: 96px; height: 6px; border: 1px solid var(--muted-d); border-top: 0; }
.spec-row { margin: 8px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-d); font-family: var(--mono); }
.spec-row > div { padding: 16px 16px 0; border-left: 1px solid var(--line-d); }
.spec-row > div:first-child { padding-left: 0; border-left: 0; }
.spec-row dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-d); }
.spec-row dd { margin: 6px 0 0; font-size: 13px; }
@media (max-width: 640px) {
  .viewport { height: 360px; }
  .spec-row { grid-template-columns: 1fr; }
  .spec-row > div { padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--line-d); }
}

/* ---------- services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.service { background: var(--sheet); padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; color: var(--text); }
.service-top .ac { stroke: var(--accent-text); }
.service-top .mono-sm { color: #5e6868; }
.service-text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); flex-grow: 1; }
.service-meta { margin: 0; padding-top: 14px; border-top: 1px solid var(--rule-3); font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px 32px; }
.steps li { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line-d3); }
.steps li.is-first { border-top-color: var(--accent); }
.steps p { margin: 0; font-size: 15px; line-height: 1.55; }
.step-n { font-family: var(--mono); font-size: 13px; color: var(--muted-d); }
.steps li.is-first .step-n { color: var(--accent); }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.card-grid-fill { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.portfolio-groups { display: flex; flex-direction: column; gap: 56px; }
.portfolio-group[hidden] { display: none; }
.portfolio-group-title { margin: 0; display: flex; align-items: baseline; gap: 12px; font-size: 22px; font-weight: 650; letter-spacing: -.01em; padding-bottom: 12px; border-bottom: 1px solid var(--rule-2); }
.portfolio-group-title .mono-sm { color: var(--muted); font-weight: 400; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--sheet); border: 1px solid var(--rule); transition: border-color .15s; }
.card:hover { color: var(--text); border-color: var(--text); }
.card-media { position: relative; aspect-ratio: 45 / 32; background: var(--ink-1); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.03); }
.card-placeholder { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 16px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; color: var(--muted-d); background-color: var(--ink-1); background-image: radial-gradient(rgba(154, 165, 163, .22) 1px, transparent 1.2px); background-size: 14px 14px; }
.card-tags { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.card-tags .card-tag { position: static; }
.card-tag { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-0); background: var(--text-d); padding: 4px 8px; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.card-type { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.card-title { margin: 0; font-size: 22px; font-weight: 650; font-stretch: 85%; }
.card-meta { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- accent band ---------- */
.band-accent { background: var(--accent); color: var(--accent-ink); }
.band-accent-inner { padding-block: 80px; display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: center; justify-content: space-between; }
.band-accent-text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 16px; }
.band-accent .h2 { font-size: clamp(34px, 4.4vw, 60px); font-stretch: 76%; line-height: .98; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule-2); }
.faq details { border-bottom: 1px solid var(--rule-2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { font-family: var(--mono); font-size: 22px; color: var(--accent-text); transition: transform .2s; }
.faq details[open] .faq-plus { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 640px; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.field input, .field textarea, .input { min-height: 48px; padding: 0 14px; border: 1px solid var(--rule-2); background: var(--sheet); color: var(--text); font-size: 16px; font-weight: 400; border-radius: 0; }
.field textarea { padding-block: 12px; resize: vertical; }
.form-dark .field { color: var(--soft-d); font-weight: 500; }
.form-dark .field input, .form-dark .field textarea { background: var(--ink-3); border-color: var(--line-d2); color: var(--text-d); }
.form-dark .btn { align-self: flex-start; }
.contact-list { margin: 12px 0 0; display: flex; flex-direction: column; gap: 14px; font-family: var(--mono); font-size: 14px; }
.contact-list div { display: flex; gap: 16px; }
.contact-list dt { width: 92px; color: var(--muted-d); flex-shrink: 0; }
.contact-list dd { margin: 0; }
.notice { margin: 0; padding: 14px 16px; font-size: 15px; border-left: 0; }
/* Pricing page: "under development" banner */
.dev-banner { background: var(--accent); color: var(--accent-ink); border-bottom: 1px solid var(--accent-text); }
.dev-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 32px; padding-bottom: 32px; }
.dev-banner svg { width: 52px; height: 52px; flex: none; }
.dev-banner-body { flex: 1 1 420px; }
.dev-banner-title { margin: 0; font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; color: var(--accent-ink); }
.dev-banner p { margin: 8px 0 0; font-size: 17px; line-height: 1.5; max-width: 68ch; }
@media (max-width: 640px) { .dev-banner svg { width: 40px; height: 40px; } .dev-banner .btn { width: 100%; justify-content: center; } }
.notice-ok { background: #e3f1e7; color: #11351f; border: 1px solid #9cc8aa; }
.notice-err { background: #fbe9e2; color: #6b1f05; border: 1px solid #e7a487; }
.field-error { margin: 0; color: #a32d06; font-size: 14px; font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-1); border-top: 1px solid var(--line-d); color: var(--text-d); }
.footer-inner { padding-block: 56px 40px; display: flex; flex-direction: column; gap: 40px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; }
.footer-cols nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--soft-d); }
.footer-cols nav a { text-decoration: none; }
.footer-brand { flex: 1 1 260px; display: flex; flex-direction: column; gap: 14px; }
.footer-brand p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted-d); max-width: 300px; }
.footer-brand .brand-name { font-size: 18px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; font-style: normal; font-size: 14px; color: var(--soft-d); }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--accent-hover); }
.footer-head { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-d); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid #1c2224; font-family: var(--mono); font-size: 12px; color: var(--muted-d); }

/* ---------- generic pages ---------- */
.page-head { background: var(--ink-0); padding-block: 64px 56px; }
.page-head-tall { padding-block: 120px; }
.prose { max-width: 760px; margin-inline: 0; font-size: 17px; line-height: 1.7; }
.prose.wrap { margin-inline: auto; max-width: calc(760px + 2 * var(--gutter)); }
.prose h2 { font-size: 28px; line-height: 1.15; font-weight: 700; font-stretch: 82%; margin: 2em 0 .5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 21px; margin: 1.6em 0 .4em; }
.prose a { color: var(--accent-text); }
.prose img { margin-block: 24px; }
.prose figure { margin: 32px 0; }
.wc-wrap { min-height: 320px; }

/* ---------- portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--rule-2); background: var(--sheet); color: var(--text); font-size: 15px; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }

/* ---------- project ---------- */
.project-head { background: var(--ink-0); padding-block: 40px 32px; }
.crumbs { display: flex; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-d); }
.crumbs a { text-decoration: none; }
.project-title-row { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; }
.spec-cells { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); flex: 1 1 520px; max-width: 760px; font-family: var(--mono); border-left: 1px solid var(--line-d); }
.spec-cells > div { padding: 0 16px; border-right: 1px solid var(--line-d); }
.spec-cells dt { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-d); }
.spec-cells dd { margin: 6px 0 0; font-size: 14px; }
.project-viewer { background: var(--ink-0); padding-bottom: 72px; }
/* Tabs on the left, full screen always at the top right; the controls hint between them when it fits, else on a
   line of its own under them (.hints-below, set by project.js). */
.viewer-bar { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, 1fr) auto; border: 1px solid var(--line-d); border-bottom: 0; }
/* Up to seven tabs: they scroll sideways rather than wrap when the window is narrow. */
.viewer-tabs { grid-area: 1 / 1; display: flex; min-width: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--line-d3) transparent; }
.viewer-tabs button { flex: none; white-space: nowrap; min-height: 52px; padding: 0 18px; border: 0; border-right: 1px solid var(--line-d); background: var(--ink-0); color: var(--muted-d); font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; }
.viewer-tabs button:hover:not(:disabled) { color: var(--text-d); }
.viewer-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* Many tabs: the file type is in the name already, the type tag is left out to keep them on one line. */
.viewer-bar.is-many .viewer-tabs button { padding: 0 15px; gap: 8px; font-size: 14.5px; }
.viewer-bar.is-many .viewer-tabs .mono-tag { display: none; }
.viewer-tabs button[aria-selected="true"] { background: var(--ink-3); color: var(--text-d); box-shadow: inset 0 -2px 0 var(--accent); }
.viewer-tabs button:disabled { cursor: not-allowed; opacity: .5; }
.mono-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; }
.soon { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 2px 6px; border: 1px solid var(--line-d3); color: var(--muted-d); }
.viewer-hints { grid-area: 1 / 2; min-width: 0; display: flex; align-items: center; justify-content: flex-end; padding: 0 0 0 16px; overflow: hidden; white-space: nowrap; font-family: var(--mono); font-size: 12px; color: var(--muted-d); }
.viewer-bar.hints-below .viewer-hints { grid-area: 2 / 1 / 3 / 4; justify-content: flex-start; min-height: 40px; padding: 8px 16px; border-top: 1px solid var(--line-d); white-space: normal; }
.viewer-bar.hints-below .viewer-hints:not(:has(.viewer-hint:not([hidden]))) { display: none; }
.viewer-open { grid-area: 1 / 3; align-self: center; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; color: var(--text-d); background: none; border: 0; padding: 0 16px; font-family: var(--mono); font-size: 12px; white-space: nowrap; cursor: pointer; }
.viewer-open:hover { color: var(--accent-hover); }
.viewer-frame:fullscreen { max-width: none; width: 100%; height: 100%; padding: 0; display: flex; flex-direction: column; background: var(--ink-0); }
.viewer-frame:-webkit-full-screen { max-width: none; width: 100%; height: 100%; padding: 0; display: flex; flex-direction: column; background: var(--ink-0); }
.viewer-frame:fullscreen .viewer-stage { flex: 1; min-height: 0; }
.viewer-frame:-webkit-full-screen .viewer-stage { flex: 1; min-height: 0; }
.viewer-frame:fullscreen .viewer-panel { height: 100%; min-height: 0; }
.viewer-frame:-webkit-full-screen .viewer-panel { height: 100%; min-height: 0; }
/* Versions of the point cloud or of the IFC model, under the tabs (only the open tab's versions are shown) */
.viewer-versions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 16px; border: 1px solid var(--line-d); border-bottom: 0; background: var(--ink-2); color: var(--soft-d); }
.viewer-versions[hidden] { display: none; }
.viewer-versions .mono-tag { text-transform: uppercase; color: var(--soft-d); }
.version-switch { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.version-switch button { -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-d3); border-radius: 0; background: var(--ink-0); color: var(--text-d); font: inherit; font-size: 14px; cursor: pointer; }
.version-switch button:hover { border-color: var(--text-d); }
.version-switch button[aria-pressed="true"] { background: var(--text-d); border-color: var(--text-d); color: var(--ink-0); }
.version-switch button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.v-size { font-family: var(--mono); font-size: 11px; opacity: .7; }
.tab-count { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; padding: 2px 6px; background: var(--accent); color: var(--ink-0); }
.viewer-stage { border: 1px solid var(--line-d); background: var(--ink-1); }
.viewer-panel { position: relative; height: min(72vh, 720px); min-height: 420px; }
.viewer-panel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
/* A tab reserved to the project's clients: a lock on the tab, the reason and the way in on its panel. */
.viewer-tabs .tab-lock { display: inline-flex; color: var(--soft-d); }
.viewer-tabs button.is-locked { color: var(--soft-d); }
.viewer-tabs button.is-locked[aria-selected="true"] { color: var(--text-d); }
.viewer-locked { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; color: var(--text-d); background-color: var(--ink-1); background-image: radial-gradient(rgba(154, 165, 163, .16) 1px, transparent 1.2px); background-size: 16px 16px; }
.viewer-locked h2 { margin: 0; }
.viewer-locked p { margin: 0; max-width: 52ch; color: var(--soft-d); font-size: 16px; line-height: 1.55; }
.viewer-locked .viewer-locked-note { color: var(--text-d); }
.viewer-locked-ic { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--line-d3); color: var(--accent); }
.viewer-locked .btn { margin-top: 6px; }
.viewer-empty { position: absolute; inset: 0; margin: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--soft-d); font-size: 16px; background-color: var(--ink-1); background-image: radial-gradient(rgba(154, 165, 163, .16) 1px, transparent 1.2px); background-size: 16px 16px; }
.project-nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.project-nav-cta { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; flex: 1 1 360px; }
.viewer-hint[hidden], .viewer-hint-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .viewer-hint-mouse { display: none; } .viewer-hint-touch { display: inline; } }
@media (max-width: 640px) { .viewer-hint { display: none; } .viewer-panel { height: 70vh; } }

/* ---------- booking ---------- */
.bk-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.bk-steps li { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 2px solid var(--line-d3); font-size: 15px; color: var(--muted-d); }
.bk-steps li .icon { color: var(--accent); visibility: hidden; }
.bk-steps li.is-done { border-top-color: var(--accent); color: var(--text-d); }
.bk-steps li.is-done .icon { visibility: visible; }
.booking { padding-block: 40px 96px; color: var(--text); }
.booking-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.booking-main { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.panel { background: var(--sheet); border: 1px solid var(--rule); padding: 32px; display: flex; flex-direction: column; gap: 28px; }
.panel-head { display: flex; align-items: baseline; gap: 14px; }
.panel-head-split { justify-content: space-between; flex-wrap: wrap; }
.panel-n { font-family: var(--mono); font-size: 13px; color: var(--accent-text); }
.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fieldset legend, .label { padding: 0; margin-bottom: 12px; font-size: 15px; font-weight: 600; display: block; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-radio { position: relative; cursor: pointer; }
.pill-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill-radio > span { display: flex; align-items: center; min-height: 48px; padding: 0 20px; border: 1px solid var(--rule-2); background: var(--sheet); font-size: 15px; }
.pill-tall > span { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 58px; padding: 8px 18px; }
.pill-tall small { font-size: 13px; }
.pill-radio input:checked + span { background: var(--text); border-color: var(--text); color: #fff; }
.pill-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field-block { display: flex; flex-direction: column; gap: 12px; }
.field-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.field-row .label { margin: 0; }
.surface-input { display: inline-flex; align-items: center; gap: 8px; }
.surface-input input { width: 110px; min-height: 44px; padding: 0 10px; border: 1px solid var(--rule-2); font-family: var(--mono); font-size: 18px; text-align: right; background: var(--sheet); color: var(--text); }
input[type="range"] { width: 100%; accent-color: var(--accent); min-height: 32px; }
.range-legend { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--rule-2); align-self: flex-start; }
.stepper button { width: 48px; height: 48px; border: 0; background: var(--paper); font-size: 20px; cursor: pointer; color: var(--text); }
.stepper input { width: 64px; height: 48px; border: 0; text-align: center; font-family: var(--mono); font-size: 18px; background: var(--sheet); color: var(--text); -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.input-mono { font-family: var(--mono); font-size: 18px; }
.input-short { width: 140px; }
.check { display: flex; align-items: flex-start; gap: 14px; min-height: 44px; padding-top: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 0; accent-color: var(--accent); flex-shrink: 0; }
.check a { color: var(--accent-text); }
.deliv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.deliv { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--rule-2); cursor: pointer; }
.deliv:has(input:checked) { border-color: var(--text); }
.deliv input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.deliv.is-fixed { background: #f7f8f6; border-color: var(--text); cursor: default; }
.deliv.is-fixed input { accent-color: var(--text); }
.deliv.is-gift { border-style: dashed; cursor: default; }
.deliv.is-gift .icon { color: var(--accent-text); flex-shrink: 0; margin-top: 2px; }
.deliv-body { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; }
.deliv-body strong { font-size: 16px; font-weight: 600; }
/* Deliverables, in the order of the project viewer's tabs. */
.pills-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.pills-types .pill-radio > span { height: 100%; }
.type-note { margin: 12px 0 0; max-width: 64ch; }
.booking:not(.is-land) .only-land, .booking.is-land .only-building { display: none !important; }
.deliv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.deliv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; border: 1px solid var(--text); background: var(--sheet); }
.deliv-row.is-fixed { background: #f7f8f6; }
.deliv-row.is-off { border-color: var(--rule-2); }
.deliv-row.is-off .deliv-eta { opacity: .45; }
.deliv-main { display: flex; gap: 14px; padding: 20px 0 20px 20px; cursor: pointer; }
.deliv-row.is-fixed .deliv-main { cursor: default; }
.deliv-main input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.deliv-row.is-fixed input { accent-color: var(--text); }
.deliv-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.deliv-n { color: var(--accent-text); }
.deliv-tag { white-space: nowrap; padding: 2px 6px; border: 1px solid var(--rule-2); color: var(--muted); }
.deliv-eta { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 2px; padding: 20px 20px 0 0; text-align: right; }
.deliv-eta b { font-size: 20px; font-weight: 600; color: var(--text); }
.deliv-eta small { font-size: 12px; color: var(--muted); }
.deliv-extra { grid-column: 1 / -1; margin: 0; padding: 0 20px 18px 56px; }
.deliv-extra[hidden], .deliv-ex:has(a[hidden]) { display: none; }
.deliv-ex a { font-size: 14px; color: var(--accent-text); }
#bk-lod-set .pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
#bk-lod-set .pill-radio > span { height: 100%; }
.deliv-ex a { min-height: 32px; }
.account-set { display: flex; flex-direction: column; gap: 14px; }
.account-set .pills { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.account-set .pill-radio > span { height: 100%; }
.account-set .field[hidden] { display: none; }
.quote-deliv { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border: 1px solid var(--line-d); }
.quote-deliv .mono-xs { color: var(--muted-d); }
.quote-deliv ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.quote-deliv li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.quote-deliv li .mono-sm { color: var(--accent); white-space: nowrap; }
@media (max-width: 640px) {
  .deliv-main { padding: 16px 0 16px 16px; }
  .deliv-eta { padding: 16px 16px 0 0; }
  .deliv-extra { padding: 0 16px 16px 16px; }
}
.cal-layout { display: flex; flex-wrap: wrap; gap: 32px; }
.cal { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; }
#cal-month { font-size: 17px; font-weight: 600; text-transform: capitalize; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: center; text-transform: capitalize; }
.cal-grid > p { grid-column: 1 / -1; margin: 12px 0; }
.day { height: 46px; font-family: var(--mono); font-size: 14px; cursor: pointer; background: var(--sheet); color: var(--text); border: 1px solid var(--rule-2); }
.day:hover:not(:disabled) { border-color: var(--text); }
.day:disabled { background: #f7f8f6; color: #9aa3a1; border-color: #eceeeb; cursor: default; }
.day.is-full { text-decoration: line-through; }
.day.is-on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 16px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; display: inline-block; }
.sw-free { border: 1px solid var(--rule-2); background: var(--sheet); }
.sw-on { background: var(--accent); }
.slots { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; }
.slot-list { display: flex; flex-direction: column; gap: 10px; }
.slot { position: relative; cursor: pointer; }
.slot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.slot > span { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; padding: 10px 18px; border: 1px solid var(--rule-2); background: var(--sheet); }
.slot input:checked + span { background: var(--text); border-color: var(--text); color: #fff; }
.slot input:disabled + span { opacity: .45; text-decoration: line-through; cursor: default; }
.slot input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.quote { flex: 1 1 360px; min-width: 0; align-self: flex-start; position: sticky; top: 24px; }
.quote-inner { background: var(--ink-0); color: var(--text-d); padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.quote .muted { color: var(--muted-d); }
.quote .small { color: var(--soft-d); }
.quote-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.quote-lines { margin: 0; display: flex; flex-direction: column; }
.quote-lines > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-d); }
.quote-lines dt { display: flex; flex-direction: column; gap: 3px; font-size: 15px; }
.quote-lines dd { margin: 0; font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.quote-totals { margin: 0; display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--soft-d); }
.quote-totals > div { display: flex; justify-content: space-between; }
.quote-totals dd { margin: 0; }
.quote-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line-d3); font-size: 16px; font-weight: 600; }
.quote-total strong { font-size: 40px; font-weight: 700; font-stretch: 78%; color: var(--accent); white-space: nowrap; }
.quote-date { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--ink-3); border: 1px solid var(--line-d); }
.quote-date .mono-xs { color: var(--muted-d); }
.pay-badges { display: flex; flex-wrap: wrap; gap: 8px; color: var(--soft-d); }
.pay-badges span { padding: 5px 8px; border: 1px solid var(--line-d2); }
@media (max-width: 960px) { .quote { position: static; } }
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding-block: 72px; }
  .panel { padding: 22px 18px; }
  .day { height: 42px; font-size: 13px; }
  .range-legend span:nth-child(2) { display: none; }
}

/* ---------- WooCommerce (classic and block cart / checkout) ---------- */
.woocommerce .button, .woocommerce button.button, .wc-block-components-button:not(.is-link) { background: var(--accent) !important; color: var(--accent-ink) !important; border-radius: 0 !important; font-weight: 600 !important; }
.wc-block-components-button:not(.is-link):hover { background: var(--accent-hover) !important; }
.wc-block-components-text-input input, .wc-block-components-select select, .wc-blocks-components-select__select, .woocommerce form .input-text { border-radius: 0 !important; }
.wc-block-components-product-name { font-weight: 600; }
.wc-block-components-product-details { font-size: 13px; }
.woocommerce-info, .woocommerce-message, .woocommerce-error { list-style: none; padding: 14px 16px; margin: 0 0 24px; background: var(--sheet); border: 1px solid var(--rule); }
/* WooCommerce's own icon in front of its messages overlaps the text in this layout. */
.woocommerce-info::before, .woocommerce-message::before, .woocommerce-error::before { content: none !important; display: none !important; }
.woocommerce ul.products { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.woocommerce ul.products li.product { background: var(--sheet); border: 1px solid var(--rule); padding: 20px; }

/* ---------- client area (WooCommerce "My account") ---------- */
.logged-in.woocommerce-account .wc-wrap > .woocommerce { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 48px; align-items: start; }
.woocommerce-account .wc-wrap > .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.logged-in.woocommerce-account .wc-wrap > .woocommerce::before, .logged-in.woocommerce-account .wc-wrap > .woocommerce::after { display: none; }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.woocommerce-MyAccount-navigation li a { display: block; padding: 14px 12px; border-bottom: 1px solid var(--rule); color: var(--text); font-size: 15px; font-weight: 600; text-decoration: none; }
.woocommerce-MyAccount-navigation li a:hover { color: var(--accent-text); }
.woocommerce-MyAccount-navigation li.is-active a { color: var(--accent-text); background: var(--sheet); box-shadow: inset 3px 0 0 var(--accent); }
.woocommerce-MyAccount-navigation-link--customer-logout a { color: var(--muted); font-weight: 500; }
.woocommerce-MyAccount-content { min-width: 0; }
.woocommerce-MyAccount-content > p:first-child:not([class]) { margin-top: 0; }
@media (max-width: 900px) {
  .logged-in.woocommerce-account .wc-wrap > .woocommerce { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .woocommerce-MyAccount-navigation ul { display: flex; gap: 6px; overflow-x: auto; border: 0; padding-bottom: 4px; scrollbar-width: thin; }
  .woocommerce-MyAccount-navigation li a { white-space: nowrap; border: 1px solid var(--rule); padding: 10px 14px; font-size: 14px; }
  .woocommerce-MyAccount-navigation li.is-active a { box-shadow: inset 0 -2px 0 var(--accent); }
}

/* Forms: login, register, addresses, account details */
.woocommerce-account .woocommerce form .form-row { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; padding: 0; }
.woocommerce-account .woocommerce form .form-row label { font-size: 14px; font-weight: 600; }
.woocommerce-account .woocommerce form .input-text, .woocommerce-account .woocommerce form select, .woocommerce-account .select2-container .select2-selection { min-height: 48px; padding: 0 14px; border: 1px solid var(--rule-2); background: var(--sheet); color: var(--text); font-size: 16px; border-radius: 0; box-sizing: border-box; }
.woocommerce-account .select2-container .select2-selection__rendered { line-height: 46px !important; padding: 0 !important; }
.woocommerce-account .woocommerce form .input-text:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.woocommerce-account .woocommerce form .woocommerce-form-login__rememberme, .woocommerce-account .woocommerce form .woocommerce-form__label-for-checkbox { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.woocommerce-account .woocommerce form input[type="checkbox"] { accent-color: var(--accent); width: 18px; height: 18px; }
.woocommerce-account .woocommerce .button { min-height: 48px; padding: 0 22px; border: 0; cursor: pointer; font-size: 15px; }
.woocommerce-account .woocommerce .button:hover { background: var(--accent-hover) !important; }
.woocommerce-account .woocommerce form .password-input { position: relative; display: block; }
.woocommerce-account .woocommerce form .password-input .input-text { width: 100%; padding-right: 52px; }
.woocommerce-account .woocommerce .show-password-input { position: absolute; top: 50%; right: 8px; width: 36px; height: 36px; margin-top: -18px; padding: 0; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f5a5a' stroke-width='1.8'%3E%3Cpath d='M2 12s3.6-6.5 10-6.5S22 12 22 12s-3.6 6.5-10 6.5S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / 20px no-repeat; cursor: pointer; }
.woocommerce-account .woocommerce .show-password-input.display-password { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f5a5a' stroke-width='1.8'%3E%3Cpath d='M2 12s3.6-6.5 10-6.5S22 12 22 12s-3.6 6.5-10 6.5S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M4 20 20 4'/%3E%3C/svg%3E"); }
.woocommerce-account .woocommerce .show-password-input::after { display: none; }
.woocommerce-form-login .button, .woocommerce-form-register .button { width: 100%; }
.woocommerce-form-login .form-row:has(.woocommerce-form-login__submit) { gap: 16px; }
#customer_login { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
#customer_login h2, .woocommerce-account .woocommerce > h2 { margin: 0 0 16px; font-size: 26px; font-weight: 700; font-stretch: 82%; }
.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword, .woocommerce-EditAccountForm, .woocommerce-address-fields { margin: 0; padding: 28px; background: var(--sheet); border: 1px solid var(--rule); }
.woocommerce-LostPassword { margin: 12px 0 0; font-size: 14px; }
.woocommerce-LostPassword a, .woocommerce-privacy-policy-text a { color: var(--accent-text); }
.woocommerce-privacy-policy-text { font-size: 13px; color: var(--muted); }
.woocommerce-EditAccountForm fieldset { margin: 24px 0 16px; padding: 18px 18px 4px; border: 1px solid var(--rule); }
.woocommerce-EditAccountForm legend { padding: 0 6px; font-weight: 700; }
.woocommerce-account .woocommerce .form-row-first, .woocommerce-account .woocommerce .form-row-last { width: auto; }
.woocommerce-address-fields__field-wrapper { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
.woocommerce-address-fields__field-wrapper .form-row-wide { grid-column: 1 / -1; }
.woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.woocommerce-Address { padding: 22px 24px; background: var(--sheet); border: 1px solid var(--rule); }
.woocommerce-Address-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.woocommerce-Address-title h2, .woocommerce-Address-title h3 { margin: 0 0 10px; font-size: 18px; }
.woocommerce-Address-title a, .woocommerce-MyAccount-content address + a { color: var(--accent-text); font-weight: 600; }
.woocommerce-Address address { font-style: normal; line-height: 1.6; }
@media (max-width: 640px) { .woocommerce-address-fields__field-wrapper { grid-template-columns: minmax(0, 1fr); } .woocommerce-form-login, .woocommerce-form-register, .woocommerce-EditAccountForm, .woocommerce-address-fields { padding: 20px; } }

/* Tables: quotes, orders */
.acc-table, .woocommerce-account table.shop_table { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--rule); font-size: 15px; }
.acc-table th, .woocommerce-account table.shop_table th { padding: 12px 16px; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: left; }
.acc-table td, .woocommerce-account table.shop_table td { padding: 14px 16px; border-bottom: 1px solid var(--rule-3); vertical-align: middle; }
.acc-table tr:last-child td { border-bottom: 0; }
.acc-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acc-table a, .woocommerce-account table.shop_table a:not(.button) { color: var(--text); }
.woocommerce-account table.shop_table .button { min-height: 36px; padding: 0 14px; font-size: 13px; display: inline-flex; align-items: center; text-decoration: none; }
@media (max-width: 640px) {
  .acc-table thead, .woocommerce-account table.shop_table_responsive thead { display: none; }
  .acc-table tr, .woocommerce-account table.shop_table_responsive tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--rule); }
  .acc-table td, .woocommerce-account table.shop_table_responsive td { display: flex; justify-content: space-between; gap: 16px; padding: 6px 16px; border: 0; text-align: right; }
  .acc-table td::before, .woocommerce-account table.shop_table_responsive td::before { content: attr(data-title); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: left; }
}

/* Dashboard */
.acc-hello { margin: 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.05; font-weight: 700; font-stretch: 80%; }
.acc-intro { max-width: 640px; margin: 0; }
.acc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.acc-stat { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; background: var(--sheet); color: var(--text); text-decoration: none; }
.acc-stat:hover { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.acc-stat-k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.acc-stat-v { font-size: 44px; line-height: 1; font-weight: 700; font-stretch: 78%; font-variant-numeric: tabular-nums; }
.acc-stat-v.acc-stat-text { font-size: 22px; line-height: 1.2; }
.acc-stat.is-hot .acc-stat-v { color: var(--accent-text); }
.acc-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.acc-section-head .link-arrow { min-height: 0; color: var(--accent-text); text-decoration: none; }
.acc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.acc-card .card-body { gap: 10px; padding: 18px 20px 22px; }
.acc-card .card-title { font-size: 20px; }
.acc-badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; background: var(--sheet); border: 1px solid var(--rule-2); color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.acc-badge::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.acc-badge-planned, .acc-badge-surveyed { color: #1d4f91; border-color: #b9cbe6; }
.acc-badge-processing, .acc-badge-sent { color: var(--accent-text); border-color: #f3b89f; }
.acc-badge-delivered, .acc-badge-accepted, .acc-badge-paid { color: #1a6b38; border-color: #a9d3b6; }
.acc-badge-declined, .acc-badge-expired { color: var(--muted); }

/* Quote: actions and document */
.quote-back { margin: 0; }
.quote-back .link-arrow, .client-panel .link-arrow { min-height: 0; color: var(--accent-text); text-decoration: none; }
.quote-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.quote-bar-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 14px; }
.btn-ghost-light { background: transparent; color: var(--text); border-color: var(--rule-2); }
.btn-ghost-light:hover { color: var(--text); border-color: var(--text); }
.quote-answer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px 32px; margin: 0; padding: 24px; background: var(--ink-0); color: var(--text-d); }
.quote-accept { display: flex; flex-direction: column; gap: 16px; max-width: 620px; }
.quote-answer .check { display: flex; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--soft-d); cursor: pointer; }
.quote-answer .check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.quote-accept .btn { align-self: flex-start; }
.quote-decline summary { padding: 12px 0; color: var(--soft-d); font-weight: 600; cursor: pointer; }
.quote-decline[open] { flex-basis: 100%; }
.quote-decline textarea { width: 100%; padding: 12px 14px; background: var(--ink-2); color: var(--text-d); border: 1px solid var(--line-d3); }
.quote-decline .field { color: var(--text-d); }
.quote-decline .btn-ink { align-self: flex-start; background: var(--text-d); color: var(--ink-0); }
.quote-doc { padding: clamp(24px, 4vw, 56px); background: var(--sheet); border: 1px solid var(--rule); color: var(--text); font-size: 15px; }
.quote-doc-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 2px solid var(--text); }
.quote-doc-brand { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 700; font-stretch: 78%; letter-spacing: .08em; }
.quote-doc-brand svg { color: var(--accent); }
.quote-doc-id { text-align: right; }
.quote-doc-ref { margin: 6px 0 14px; font-family: var(--mono); font-size: 22px; font-weight: 500; }
.quote-doc-id dl { display: flex; justify-content: flex-end; gap: 28px; margin: 0; }
.quote-doc dt, .quote-doc h3, .quote-doc th { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.quote-doc-id dd { margin: 4px 0 0; font-family: var(--mono); font-size: 14px; }
.quote-doc-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding: 28px 0; }
.quote-doc h3 { margin: 0 0 8px; }
.quote-doc-parties p { margin: 0; line-height: 1.6; }
.quote-doc-subject { margin: 0 0 10px; font-size: 18px; font-weight: 650; }
.quote-doc-subject span { margin-right: 10px; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.quote-doc-intro { margin: 0 0 20px; color: var(--muted); }
.quote-doc-table { overflow-x: auto; margin-top: 12px; }
.quote-doc-table table { width: 100%; min-width: 560px; border-collapse: collapse; }
.quote-doc th { padding: 10px 12px; border-bottom: 1px solid var(--text); text-align: left; }
.quote-doc td { padding: 12px; border-bottom: 1px solid var(--rule-3); vertical-align: top; line-height: 1.5; }
.quote-doc .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.quote-doc-totals { width: min(380px, 100%); margin: 20px 0 0 auto; }
.quote-doc-totals > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 12px; }
.quote-doc-totals dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.quote-doc-totals .is-total { margin-top: 4px; background: var(--ink-0); color: var(--text-d); font-size: 17px; font-weight: 700; }
.quote-doc-totals .is-total dt { color: var(--text-d); }
.quote-doc-terms { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.quote-doc-terms p { margin: 0 0 8px; }
@media (max-width: 640px) {
  .quote-doc-parties { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .quote-doc-id { text-align: left; }
  .quote-doc-id dl { justify-content: flex-start; }
}
@media print {
  body, .section-light { background: #fff !important; }
  .site-header, .site-footer, .page-head, .skip-link, .woocommerce-MyAccount-navigation, .quote-back, .quote-bar, .quote-answer, .quote-view > .notice, .woocommerce-notices-wrapper { display: none !important; }
  .section { padding: 0 !important; }
  .wrap { max-width: none; padding: 0; }
  .logged-in.woocommerce-account .wc-wrap > .woocommerce { display: block; }
  .quote-doc { padding: 0; border: 0; font-size: 12.5px; }
  .quote-doc-table table { min-width: 0; }
  .quote-doc-totals .is-total, .quote-doc-brand svg { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Client panel on a project page */
.client-panel .section-head-text a { color: var(--accent-text); text-decoration: none; }
.status-track { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.status-track li { position: relative; display: flex; flex-direction: column; gap: 12px; color: var(--muted); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.status-track li::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--rule-2); }
.status-track li.is-done::before { background: var(--accent); }
.status-track li.is-current::before { background: linear-gradient(90deg, var(--accent) 16px, var(--rule-2) 16px); }
.status-track li:last-child::before { right: auto; width: 16px; }
.status-dot { position: relative; z-index: 1; width: 16px; height: 16px; box-sizing: border-box; background: var(--paper); border: 2px solid var(--rule-2); border-radius: 50%; }
.status-track .is-done, .status-track .is-current { color: var(--text); }
.status-track .is-done .status-dot { background: var(--accent); border-color: var(--accent); }
.status-track .is-current .status-dot { background: var(--sheet); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(255, 90, 31, .18); }
.client-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; }
.doc-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.doc-list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.doc-ic { flex: none; display: grid; place-items: center; width: 48px; height: 48px; background: var(--ink-0); color: var(--accent); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; }
.doc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.doc-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.doc-list .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
/* Client panel: the project's source files, by kind (in the order of the viewer's tabs), photos folded by album. */
.raw-files { gap: 18px; }
.raw-group { display: flex; flex-direction: column; gap: 10px; }
.raw-group-title { margin: 0; display: flex; align-items: baseline; gap: 10px; font-size: 16px; font-weight: 600; }
.raw-group-title .mono-tag { color: var(--accent-text); }
.raw-album { border-top: 1px solid var(--rule); }
.raw-album > summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.raw-album > summary .muted { font-weight: 400; }
.raw-album .doc-list { border-top: 0; }
.client-facts { display: grid; margin: 0; border-top: 1px solid var(--rule); }
.client-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.client-facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.client-facts dd { margin: 0; text-align: right; }
@media (max-width: 860px) { .client-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 640px) {
  .status-track { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .status-track li { flex-direction: row; align-items: center; }
  .status-track li::before { display: none; }
}

/* ---------- delivery timeline (client projects: client panel, and the viewer until something is delivered) ---------- */
.tl { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; --tl-line: var(--rule-2); --tl-dot-bg: var(--sheet); --tl-text: var(--text); --tl-muted: var(--muted); --tl-now: var(--accent-text); }
.tl-dark { --tl-line: var(--line-d3); --tl-dot-bg: var(--ink-1); --tl-text: var(--text-d); --tl-muted: var(--muted-d); --tl-now: var(--accent); }
.tl-step { position: relative; display: flex; flex-direction: column; gap: 10px; padding-right: 14px; color: var(--tl-muted); }
.tl-step::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--tl-line); }
.tl-step.is-done::before { background: var(--accent); }
.tl-step.is-current::before { background: linear-gradient(90deg, var(--accent) 16px, var(--tl-line) 16px); }
.tl-step:last-child::before { right: auto; width: 16px; }
.tl-dot { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--tl-line); background: var(--tl-dot-bg); }
.tl-step.is-done .tl-dot { background: var(--accent); border-color: var(--accent); }
.tl-step.is-current .tl-dot { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(255, 90, 31, .18); }
.tl-label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.tl-step.is-done .tl-label, .tl-step.is-current .tl-label { color: var(--tl-text); }
.tl-label a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tl-label a:hover { color: var(--tl-now); }
.tl-date { font-size: 14px; line-height: 1.4; }
.tl-step.is-current .tl-date { color: var(--tl-now); font-weight: 600; }
@media (max-width: 720px) {
  .tl { grid-auto-flow: row; gap: 18px; }
  .tl-step { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 0; }
  .tl-step::before { top: 16px; bottom: -18px; left: 7px; right: auto; width: 2px; height: auto; }
  .tl-step.is-current::before { background: var(--tl-line); }
  .tl-step:last-child::before { display: none; }
  .tl-dot { grid-row: span 2; }
}
.viewer-waiting { display: grid; gap: 44px; padding: clamp(28px, 5vw, 56px); border: 1px solid var(--line-d); color: var(--text-d); background-color: var(--ink-1); background-image: radial-gradient(rgba(154, 165, 163, .12) 1px, transparent 1.2px); background-size: 16px 16px; }
.viewer-waiting .waiting-text { max-width: 64ch; margin: 0; color: var(--soft-d); font-size: 16px; line-height: 1.6; }
.viewer-waiting .h2 { margin: 0; }
/* ---------- client area: latest deliveries, next step on project cards, sign-up ---------- */
.acc-news { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.acc-news li { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.acc-news-date { flex: none; width: 56px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.acc-news-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acc-news-main .muted { font-size: 14px; }
.acc-news .link-arrow { flex: none; min-height: 0; color: var(--accent-text); text-decoration: none; }
.card-next { margin: 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.card-next .mono { display: block; margin-bottom: 2px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.acc-reg-intro { margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.acc-prefs { margin: 18px 0 0; padding: 0; border: 0; }

/* ---------- home hero: scan → point cloud → BIM → IFC animation ---------- */
.viewport-s2b { container-type: inline-size; overflow: hidden; background: radial-gradient(120% 90% at 50% 40%, var(--ink-3), var(--ink-0) 70%); }
.viewport-s2b .viewport-top { align-items: center; }
.s2b-status { display: inline-flex; align-items: center; gap: 7px; color: var(--text-d); }
.s2b-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.s2b-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.s2b-steps span { padding: 4px 7px; border: 1px solid var(--line-d2); background: rgba(12, 15, 16, .6); color: var(--muted-d); letter-spacing: .06em; transition: background .3s, color .3s, border-color .3s; }
.s2b-steps span.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.s2b-steps span.done { border-color: var(--line-d3); color: var(--soft-d); }
.s2b-count { color: var(--soft-d); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: .04em; text-transform: none; }
.s2b-tree { position: absolute; top: 44px; right: 14px; width: 210px; background: rgba(8, 10, 11, .84); border: 1px solid var(--line-d2); font-family: var(--mono); font-size: 11px; color: var(--soft-d); pointer-events: none; opacity: 0; transition: opacity .4s; }
.s2b-th { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line-d2); color: var(--text-d); }
.s2b-th em { font-style: normal; color: var(--muted-d); }
.s2b-tree ul { margin: 0; padding: 4px 0; list-style: none; }
.s2b-tree li { display: grid; grid-template-columns: 1em minmax(0, 1fr) auto; gap: 7px; padding: 3px 10px; opacity: .35; transition: opacity .3s, color .3s; }
.s2b-tree li i { font-style: normal; color: var(--muted-d); }
.s2b-tree li b { font-weight: 400; color: var(--muted-d); font-variant-numeric: tabular-nums; }
.s2b-tree li.active { opacity: 1; color: var(--accent); }
.s2b-tree li.active i { color: var(--accent); }
.s2b-tree li.done { opacity: 1; color: var(--text-d); }
.s2b-tree li.done i { color: var(--accent); }
@container (max-width: 470px) { .s2b-tree { display: none; } .s2b-steps span { padding: 3px 5px; } .viewport-s2b .viewport-top > span:first-child { display: none; } .viewport-s2b .viewport-top { justify-content: flex-end; } }
@container (max-width: 380px) { .s2b-count { display: none; } }

/* ---------- home services: four steps in order, each viewable online ---------- */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--sheet); border: 1px solid var(--rule); border-bottom: 0; }
.flow-step { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 30px 26px 26px; border-left: 1px solid var(--rule); }
.flow-step:first-child { border-left: 0; }
/* The arrow from one step to the next, on the line between them. */
.flow-step:not(:last-child)::after { content: ""; position: absolute; z-index: 1; top: 44px; right: -9px; width: 16px; height: 16px; background: var(--sheet); border-top: 1px solid var(--rule); border-right: 1px solid var(--rule); transform: rotate(45deg); }
.flow-head { display: flex; justify-content: space-between; align-items: center; color: var(--text); }
.flow-head .ac { stroke: var(--accent-text); }
.flow-n { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: .12em; color: var(--accent-text); padding: 5px 8px; border: 1px solid #f3b89f; }
.flow-text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); flex-grow: 1; }
.flow-meta { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.flow-online { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--rule-3); }
.flow-online-k { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.flow-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.vtab { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--ink-0); color: var(--text-d); font-size: 13px; line-height: 1.2; white-space: nowrap; }
.vtab .mono-tag { font-size: 10px; color: var(--muted-d); }
/* The project viewer's tab bar, all deliverables together. */
.flow-viewer { background: var(--ink-0); color: var(--text-d); }
.flow-viewer-bar { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line-d); scrollbar-width: thin; scrollbar-color: var(--line-d3) transparent; }
.flow-viewer-bar .t { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 16px; border-right: 1px solid var(--line-d); color: var(--muted-d); font-size: 14px; white-space: nowrap; transition: color .2s, background .2s, box-shadow .2s; }
.flow-viewer-bar .t .mono-tag { font-size: 10px; }
.flow-viewer-bar .t.is-on { background: var(--ink-3); color: var(--text-d); box-shadow: inset 0 -2px 0 var(--accent); }
.flow-viewer-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 28px; padding: 18px 22px; }
.flow-viewer-foot p { margin: 0; max-width: 62ch; color: var(--soft-d); font-size: 15px; line-height: 1.55; }
.flow-viewer-foot .link-arrow { color: var(--accent); text-decoration: none; min-height: 44px; }
.flow-viewer-foot .link-arrow:hover { color: var(--accent-hover); }
/* Pointing at a step lights up its tabs in the viewer. */
.services-flow:has(.flow-step:hover) .flow-viewer-bar .t.is-on { background: none; box-shadow: none; color: var(--muted-d); }
.services-flow:has(.flow-step[data-s="1"]:hover) .t[data-s="1"],
.services-flow:has(.flow-step[data-s="2"]:hover) .t[data-s="2"],
.services-flow:has(.flow-step[data-s="3"]:hover) .t[data-s="3"],
.services-flow:has(.flow-step[data-s="4"]:hover) .t[data-s="4"] { background: var(--ink-3); color: var(--text-d); box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 1080px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-step:nth-child(odd) { border-left: 0; }
  .flow-step:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .flow-step:nth-child(2)::after { display: none; }
}
@media (max-width: 640px) {
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-step { border-left: 0; padding: 26px 20px 24px; }
  .flow-step + .flow-step { border-top: 1px solid var(--rule); }
  .flow-step:not(:last-child)::after, .flow-step:nth-child(2)::after { display: block; top: auto; right: auto; bottom: -9px; left: 28px; transform: rotate(135deg); }
}
@media (min-width: 1081px) { .flow-online { min-height: 108px; } }
