/*
 * tanlas.ch
 *
 * The layout is the one a sanitary-technology site is expected to have: a
 * white header in two rows, a wide hero with a panel of text laid over it,
 * square tiles, a table, steps. The identity is Tanlas Modul's own -- the
 * turquoise and the graphite of the logo, and a technical drawing of the wall
 * where a photograph would otherwise be.
 *
 * Everything is laid out with logical properties (inline-start, inline-end),
 * so Arabic mirrors the page without a second stylesheet.
 */

:root {
  --ink: #172024;
  --graphite: #4a5256;
  --mute: #66717a;
  --line: #d6dcdc;
  --paper: #ffffff;
  --cream: #fafbf5;
  --mist: #eef2f1;

  --tq: #01beb8;            /* the logo's turquoise: for drawing, never for small text */
  --tq-ink: #00777a;        /* the same hue, dark enough to read on white */
  --tq-soft: #d9f5f3;
  --petrol: #0c2b30;
  --petrol-2: #113a40;
  --amber: #ffb454;

  --steel: #d3dee1;
  --wrap: 1240px;
  --gut: clamp(18px, 4vw, 44px);
  --hdr: 116px;

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue",
          "Noto Sans", Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
          "Noto Sans Arabic", "Geeza Pro", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--tq); outline-offset: 3px; }

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

.skip {
  position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ------------------------------------------------------------- type -- */

/* The two-line heading: one line heavy, one line light, both capitals. */
.h-pair {
  text-transform: uppercase;
  font-size: clamp(1.6rem, 2.9vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: .012em;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.h-pair strong { display: block; font-weight: 800; }
.h-pair span { display: block; font-weight: 300; }
.h-pair--xl { font-size: clamp(1.7rem, 2.8vw, 2.5rem); }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px;
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--tq-ink);
}
.eyebrow__n { color: var(--ink); font-variant-numeric: tabular-nums; }
.eyebrow__n::after {
  content: ""; display: inline-block; vertical-align: middle;
  width: 44px; height: 1px; margin-inline-start: 14px; background: currentColor; opacity: .5;
}

.lede { margin-top: 22px; max-width: 62ch; font-size: 1.15rem; color: var(--graphite); }

/* Letter-spacing pulls Arabic's joined letters apart and does nothing useful
   for Chinese; neither script has capitals for the headings to lean on. */
html[lang="ar"] *, html[lang="zh"] * { letter-spacing: 0 !important; }
html[lang="ar"] .h-pair, html[lang="zh"] .h-pair { line-height: 1.3; }

/* ---------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 10px 24px;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  border: 1.5px solid transparent; border-radius: 0; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--tq { background: var(--tq); color: var(--ink); }
.btn--tq:hover { background: #fff; }

.arrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-weight: 600; text-decoration: none;
}
.arrow svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.arrow:hover svg { transform: translateX(5px); }
.arrow:hover span { text-decoration: underline; text-underline-offset: 4px; }

html[dir="rtl"] .arrow svg, html[dir="rtl"] .btn .chev { transform: scaleX(-1); }
html[dir="rtl"] .arrow:hover svg { transform: scaleX(-1) translateX(5px); }

/* ----------------------------------------------------------- header -- */

.hdr {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.hdr.is-stuck { box-shadow: 0 6px 24px rgba(12, 43, 48, .12); }

.hdr__top { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); min-height: 68px; }

/* The name is a name: it reads left to right in every language. */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-inline-end: auto; direction: ltr; }
.brand__mark { width: 34px; height: 34px; flex: none; fill: none; stroke-linejoin: miter; }
.brand__frame { stroke: var(--graphite); stroke-width: 2.4; }
.brand__pipe { stroke: var(--tq); stroke-width: 2.8; stroke-linecap: square; }
.brand__name { display: inline-flex; gap: .32em; font-size: 1.32rem; line-height: 1; letter-spacing: .04em; }
.brand__name b { font-weight: 800; color: var(--tq); }
.brand__name i { font-style: normal; font-weight: 800; color: var(--graphite); }
.brand--light .brand__frame { stroke: #cfd9dc; }
.brand--light .brand__name i { color: #e8eef0; }

.hdr__meta { display: flex; gap: 26px; font-size: .92rem; font-weight: 600; }
.hdr__meta a { text-decoration: none; padding-block: 6px; }
.hdr__meta a:hover { color: var(--tq-ink); }
.hdr__cta { min-height: 44px; padding: 8px 20px; font-size: .95rem; }

.hdr__nav { border-top: 1px solid var(--line); }
.hdr__nav-in { display: flex; gap: clamp(18px, 3vw, 40px); min-height: 47px; align-items: stretch; }
.hdr__nav a:not(.btn) {
  display: inline-flex; align-items: center;
  font-size: .98rem; text-decoration: none; white-space: nowrap;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
  transition: border-color .2s, color .2s;
}
.hdr__nav a:not(.btn):hover, .hdr__nav a.is-here { border-bottom-color: var(--tq); }
.hdr__nav a.is-here { font-weight: 600; }
.m-only { display: none !important; }

.burger {
  display: none; width: 46px; height: 46px; padding: 0;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); transition: transform .25s, opacity .2s; }
.hdr.is-open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hdr.is-open .burger span:nth-child(2) { opacity: 0; }
.hdr.is-open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ------------------------------------------------- language switcher -- */
/* The menu rotabo.app has: a button showing the language, a panel with a
   search box, and a bottom sheet instead of a dropdown on a phone. */

.flagimg { height: 14px; width: auto; display: block; border: 1px solid rgba(0, 0, 0, .14); }

.lang-switcher { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 0;
  font-weight: 600; font-size: .92rem; cursor: pointer;
}
.lang-btn:hover { background: var(--mist); }
.lang-btn__globe { width: 18px; height: 18px; fill: none; stroke: var(--graphite); stroke-width: 1.5; }
.lang-btn .code { font-size: .78rem; color: var(--mute); }

.lang-panel {
  display: none; position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  width: 290px; max-width: calc(100vw - 32px); max-height: 400px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(12, 43, 48, .2);
  padding: 12px; z-index: 50;
}
.lang-panel.open { display: block; }
.lang-panel-close {
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin: 0 0 8px; margin-inline-start: auto;
  background: var(--mist); border: 0; font-size: 1.1rem; cursor: pointer; flex-shrink: 0;
}
.lang-search {
  width: 100%; padding: 11px 14px; margin-bottom: 8px;
  border: 1px solid var(--line); border-radius: 0; background: var(--mist);
  color: var(--ink); font: inherit; font-size: .95rem; flex-shrink: 0;
}
.lang-list { max-height: 312px; overflow-y: auto; overscroll-behavior: contain; }
.lang-option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 10px; text-align: start;
  background: none; border: 0; cursor: pointer; font-size: .98rem;
}
.lang-option .lo-name { display: inline-flex; align-items: center; gap: 10px; }
.lang-option:hover { background: var(--mist); }
.lang-option.active { background: var(--tq-soft); font-weight: 700; }
.lang-option .lo-code { color: var(--mute); font-size: .78rem; }
.lang-empty { color: var(--mute); font-size: .9rem; padding: 10px; text-align: center; }

/* -------------------------------------------------------- blueprint -- */
/* The dark ground the drawings sit on: a fine grid over a coarse one. */

.blueprint {
  background-color: var(--petrol);
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px),
    radial-gradient(1100px 620px at 72% 28%, #17525a 0%, var(--petrol) 58%, #071c20 100%);
  background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px, 100% 100%;
  color: #fff;
}

/* ------------------------------------------------------ the drawing -- */

.wall { display: block; width: 100%; height: auto; overflow: visible; }

.w-floor line { stroke: rgba(255, 255, 255, .5); stroke-width: 1.5; }
.w-floor path { stroke: rgba(255, 255, 255, .2); stroke-width: 1; fill: none; }
.hatch-l { stroke: rgba(255, 255, 255, .09); stroke-width: 1; }
.w-ins rect { stroke: none; }

/* Solid, so the pipes disappear behind the studs they pass, as on the logo. */
.w-frame rect { fill: #1d4d55; stroke: var(--steel); stroke-width: 1.6; }

.w-el rect, .w-el line, .w-el circle { fill: none; stroke: #eef5f6; stroke-width: 1.7; }
.w-el .w-elframe { stroke: var(--tq); stroke-width: 2; }
.w-el .w-cistern { fill: rgba(255, 255, 255, .14); }
.w-el .w-window { fill: rgba(255, 255, 255, .12); stroke: var(--tq); stroke-width: 2.2; }
.w-el .w-panel { fill: rgba(255, 255, 255, .12); }
.w-el .w-bar { fill: var(--tq); stroke: none; }
.w-el .w-bolt, .w-el .w-dark { fill: #08191c; }
.w-el .w-valve { fill: #9fb1b6; }
.w-el .w-port, .w-el .w-knob { fill: #fff; stroke: #08191c; stroke-width: 1.5; }
.w-el .w-lever { fill: #fff; stroke: none; }

.w-water path { fill: none; stroke: var(--tq); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }

.w-waste path { fill: none; stroke: #8a9aa0; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.w-waste circle { fill: var(--petrol); stroke: #8a9aa0; stroke-width: 12; }
.w-waste .w-sleeve path { stroke: rgba(1, 190, 184, .3); stroke-width: 26; }

.w-heat path { fill: none; stroke: var(--amber); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }

.w-prep rect { fill: var(--petrol); stroke: var(--amber); stroke-width: 1.7; }
.w-prep path { fill: none; stroke: var(--amber); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.w-prep .w-prep__lead { stroke-dasharray: 3 4; }

.w-dim path { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1; }
.w-dim text { fill: rgba(255, 255, 255, .7); font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }

/* What a line does not contain is left in the drawing as a ghost: dashed
   and faint, so the wall keeps its shape and the difference stays visible. */
.wall[data-line="basic"] .in-complete,
.wall[data-line="basic"] .in-premium,
.wall[data-line="complete"] .in-premium {
  opacity: .16; stroke-dasharray: 3 5;
}
/* On the small tiles the ghosts would only be noise, and the hero shows the
   wall the way the logo draws it. */
.wall--tile[data-line="basic"] .in-complete,
.wall--tile[data-line="basic"] .in-premium,
.wall--tile[data-line="complete"] .in-premium,
.wall--hero[data-line="complete"] .in-premium { opacity: 0; }

.wall--x .in-complete, .wall--x .in-premium, .wall--x [class*="part-"] { transition: opacity .45s ease; }
.wall--x[data-spot="1"] [class*="part-"]:not(.part-1),
.wall--x[data-spot="2"] [class*="part-"]:not(.part-2),
.wall--x[data-spot="3"] [class*="part-"]:not(.part-3),
.wall--x[data-spot="4"] [class*="part-"]:not(.part-4),
.wall--x[data-spot="5"] [class*="part-"]:not(.part-5),
.wall--x[data-spot="6"] [class*="part-"]:not(.part-6),
.wall--x[data-spot="7"] [class*="part-"]:not(.part-7) { opacity: .42; }
.wall--x[data-spot="5"] .hatch-l { stroke: rgba(255, 255, 255, .3); }
.wall--x[data-spot="1"] .part-1 rect { stroke: #fff; fill: #2a5a62; }

/* Numbered markers on the drawing. */
.hs { cursor: pointer; }
.hs circle { fill: var(--tq); stroke: var(--petrol); stroke-width: 2; transition: fill .2s; }
.hs text { fill: var(--ink); font-size: 15px; font-weight: 800; text-anchor: middle; pointer-events: none; }
.hs .hs__ring { fill: none; stroke: var(--tq); stroke-width: 2; opacity: 0; }
.hs.is-off circle:not(.hs__ring) { fill: var(--petrol); stroke: rgba(255, 255, 255, .6); stroke-width: 1.5; }
.hs.is-off text { fill: rgba(255, 255, 255, .85); }
.hs.is-on circle:not(.hs__ring) { fill: #fff; }
.hs.is-on .hs__ring { opacity: 1; animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { r: 15px; opacity: .9; } to { r: 32px; opacity: 0; } }

/* The hero's wall draws itself, then water runs through the pipes. */
.js .wall--hero.is-arming .d { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; }
.js .wall--hero.is-arming .w-ins, .js .wall--hero.is-arming .w-dim { opacity: 0; }
.js .wall--hero.is-live .d {
  stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0;
  animation: draw 1.1s cubic-bezier(.6, .1, .2, 1) forwards, fillin .7s ease forwards;
  animation-delay: calc(var(--i, 0) * 30ms), calc(var(--i, 0) * 30ms + .6s);
}
.js .wall--hero.is-live .w-ins, .js .wall--hero.is-live .w-dim { opacity: 0; animation: fade 1.2s ease 2.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; } }
@keyframes fade { to { opacity: 1; } }

.w-flow path { fill: none; stroke: #eafffd; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: .05 .95; opacity: 0; }
.wall--hero.is-flowing .w-flow path { opacity: .95; animation: flow 4.2s linear infinite; }
@keyframes flow { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* "Swiss made · Available worldwide": the same pill gift.ceo carries, at the
   top of the hero panel and again in the footer. */
.swiss {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 13px; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: 15px;
  font-size: .8rem; line-height: 1.35; color: var(--graphite);
}
.swiss .flagimg { width: 14px; height: 14px; border: 0; border-radius: 2px; flex: none; }
.ftr .swiss { margin: 18px 0 0; max-width: none; border-color: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .82); }

/* ------------------------------------------------------------- hero -- */

.hero { position: relative; overflow: hidden; min-height: clamp(560px, 80vh, 760px); display: flex; align-items: center; }
.hero__art {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: 58%;
  display: flex; align-items: center; padding: 40px clamp(16px, 3vw, 48px) 56px;
}
.hero__art .wall { max-height: 100%; }
.hero__wrap { position: relative; width: 100%; padding-block: 56px 72px; }
.hero__panel {
  width: min(560px, 45%);
  background: rgba(250, 251, 245, .96);
  color: var(--ink);
  padding: clamp(26px, 3.2vw, 46px);
  border-top: 5px solid var(--tq);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.hero__place { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--tq-ink); margin-bottom: 16px; }
.hero__lede { margin-top: 20px; color: var(--graphite); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__caption {
  position: absolute; inset-block-end: 18px; inset-inline: 0;
  text-align: end; font-size: .82rem; color: rgba(255, 255, 255, .62);
  pointer-events: none;
}

/* --------------------------------------------------------- sections -- */

.sec { padding-block: clamp(64px, 9vw, 128px); }
.sec--mist { background: var(--mist); }
.sec--cream { background: var(--cream); }
.sec--dark .eyebrow { color: var(--tq); }
.sec--dark .eyebrow__n { color: #fff; }
.sec--dark .lede { color: rgba(255, 255, 255, .78); }
.sec__head { margin-bottom: clamp(32px, 5vw, 60px); max-width: 900px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }

/* principle */
.facts { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.facts li { display: flex; gap: 22px; padding-block: 24px; border-bottom: 1px solid var(--line); }
.facts svg { width: 48px; height: 48px; flex: none; fill: none; stroke: var(--tq-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.facts h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 4px; }
.facts p { color: var(--graphite); font-size: 1rem; }

/* modules */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.tile { display: flex; flex-direction: column; background: var(--paper); }
.tile__art { aspect-ratio: 4 / 3; display: flex; align-items: center; padding: 18px; overflow: hidden; }
.tile__art .wall { max-height: 100%; }
.tile__body { flex: 1; display: flex; flex-direction: column; padding: clamp(22px, 2.6vw, 34px); }
.tile__tag { font-size: .8rem; font-weight: 800; letter-spacing: .16em; color: var(--tq-ink); }
.tile__title { margin-top: 10px; font-size: 1.45rem; line-height: 1.2; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; hyphens: auto; }
.tile__text { margin-top: 14px; margin-bottom: 26px; color: var(--graphite); font-size: 1rem; }
.tile .arrow { margin-top: auto; }
.tile--complete .tile__body { background: var(--tq); }
.tile--complete .tile__tag, .tile--complete .tile__text { color: var(--ink); }
.tile--premium .tile__body { background: var(--ink); color: #fff; }
.tile--premium .tile__tag { color: var(--tq); }
.tile--premium .tile__text { color: rgba(255, 255, 255, .8); }

/* explorer */
.x { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.x__stage { position: sticky; top: calc(var(--hdr) + 24px); }
.x__stage .wall { max-height: calc(100vh - var(--hdr) - 64px); }
.x__label { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); margin-bottom: 10px; }

.seg { display: grid; grid-template-columns: repeat(3, auto); border: 1px solid rgba(255, 255, 255, .28); }
.seg button {
  min-height: 48px; padding: 8px 10px;
  background: transparent; border: 0; border-inline-end: 1px solid rgba(255, 255, 255, .28);
  color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .1em; cursor: pointer;
  transition: background-color .2s, color .2s;
}
.seg button:last-child { border-inline-end: 0; }
.seg button:hover { background: rgba(255, 255, 255, .1); }
.seg button[aria-checked="true"] { background: var(--tq); color: var(--ink); }

.x-list { list-style: none; padding: 0; margin-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); }
.x-list li { border-bottom: 1px solid rgba(255, 255, 255, .16); }
.x-item {
  display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; row-gap: 2px; align-items: center;
  width: 100%; padding: 14px 4px; text-align: start;
  background: none; border: 0; cursor: pointer;
}
.x-item:hover { background: rgba(255, 255, 255, .05); }
.x-item__n {
  grid-row: span 2; align-self: start;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--tq); color: var(--ink); font-size: .9rem; font-weight: 800;
}
.x-item.is-off .x-item__n { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.x-item[aria-expanded="true"] .x-item__n { background: #fff; color: var(--ink); box-shadow: none; }
.x-item__t { font-size: .86rem; color: rgba(255, 255, 255, .66); }
.x-item__v { font-size: 1.08rem; font-weight: 600; color: #fff; }
.x-item.is-off .x-item__v { color: rgba(255, 255, 255, .6); font-weight: 400; }
.x-item__note { display: none; padding: 0 4px 16px; padding-inline-start: 48px; font-size: .95rem; color: rgba(255, 255, 255, .78); }
.x-item[aria-expanded="true"] + .x-item__note:not(:empty) { display: block; }

/* comparison */
.cmp { overflow-x: auto; border: 1px solid var(--line); }
.cmp table { width: 100%; min-width: 720px; border-collapse: collapse; table-layout: fixed; }
.cmp th, .cmp td { padding: 18px 20px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); transition: background-color .3s; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { padding: 0; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border-bottom: 0; }
.cmp thead th:first-child { padding: 18px 20px; }
.cmp thead button { width: 100%; min-height: 58px; padding: 18px 20px; text-align: start; background: none; border: 0; color: inherit; font-weight: inherit; letter-spacing: inherit; cursor: pointer; }
.cmp thead .c-basic { background: #5b666c; }
.cmp thead .c-complete { background: var(--tq-ink); }
.cmp thead .c-premium { background: var(--petrol); }
.cmp thead button:hover { background: rgba(255, 255, 255, .14); }
.cmp tbody th { width: 26%; font-weight: 700; background: var(--mist); }
.cmp td { color: var(--graphite); }
body[data-line="basic"] .cmp td.c-basic,
body[data-line="complete"] .cmp td.c-complete,
body[data-line="premium"] .cmp td.c-premium { background: var(--tq-soft); color: var(--ink); font-weight: 600; }
body[data-line="basic"] .cmp thead .c-basic,
body[data-line="complete"] .cmp thead .c-complete,
body[data-line="premium"] .cmp thead .c-premium { box-shadow: inset 0 -5px 0 var(--tq); }

/* planning */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.card { position: relative; background: var(--paper); padding: clamp(24px, 3vw, 38px); border-top: 4px solid var(--tq); }
.card__k { display: block; font-size: 3.4rem; line-height: 1; font-weight: 200; color: var(--tq-ink); margin-bottom: 18px; }
.card h3 { font-size: 1.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; margin-bottom: 10px; overflow-wrap: anywhere; hyphens: auto; }
.card p { color: var(--graphite); font-size: 1rem; }

/* process: five ticks on one dimension line */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; }
.steps li { position: relative; padding-top: 62px; padding-inline-end: 24px; counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; inset-inline-start: 0;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 800; font-size: .95rem; z-index: 1;
}
.steps li::after {
  content: ""; position: absolute; top: 21px; inset-inline: 0;
  height: 2px; background: var(--line);
}
.steps li:last-child::after { background: linear-gradient(to right, var(--line), transparent); }
html[dir="rtl"] .steps li:last-child::after { background: linear-gradient(to left, var(--line), transparent); }
.steps li:last-child::before { background: var(--tq); color: var(--ink); }
.steps h3 { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; margin-bottom: 8px; overflow-wrap: anywhere; hyphens: auto; }
.steps p { color: var(--graphite); font-size: .98rem; }

/* quote */
.split--quote { align-items: center; }
.quote { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); padding: clamp(24px, 3vw, 40px); }
.checks { list-style: none; padding: 0; margin-bottom: 28px; }
.checks li { position: relative; padding-block: 13px; padding-inline-start: 40px; border-bottom: 1px solid rgba(255, 255, 255, .16); font-size: 1.1rem; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 4px; top: 50%;
  width: 16px; height: 8px; margin-top: -8px;
  border-inline-start: 2.5px solid var(--tq); border-bottom: 2.5px solid var(--tq);
  transform: rotate(-45deg);
}
html[dir="rtl"] .checks li::before { transform: rotate(45deg); }
.quote__btn { width: 100%; min-height: 58px; font-size: 1.08rem; }
.quote__mail { display: block; margin-top: 16px; text-align: center; font-size: 1.25rem; font-weight: 300; letter-spacing: .04em; color: #fff; text-decoration: none; }
.quote__mail:hover { color: var(--tq); }
.quote__mail + .quote__mail { margin-top: 6px; }

/* sending documents: the choice the quote button opens */
.send {
  width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  padding: 32px clamp(20px, 4vw, 36px) 26px;
  border: 0; border-top: 5px solid var(--tq);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .45);
}
.send::backdrop { background: rgba(7, 28, 32, .72); }
.send[open] { animation: sendIn .25s ease; }
@keyframes sendIn { from { opacity: 0; transform: translateY(12px); } }
.send__close {
  position: absolute; top: 10px; inset-inline-end: 10px;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; color: var(--graphite);
}
.send__close:hover { color: var(--ink); background: var(--mist); }
.send__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.send__title { font-size: 1.35rem; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; padding-inline-end: 40px; }
.send__intro { margin-top: 10px; color: var(--graphite); font-size: .98rem; }
.send__opts { list-style: none; padding: 0; margin-top: 20px; border-top: 1px solid var(--line); }
.send__opts li { border-bottom: 1px solid var(--line); }
.send__opt {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 10px 6px;
  background: none; border: 0; cursor: pointer; text-align: start; text-decoration: none;
  font: inherit; font-weight: 600; color: var(--ink);
  transition: background-color .15s;
}
.send__opt:hover, .send__opt:focus-visible { background: var(--tq-soft); }
.send__opt svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--tq-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.send__addr { font-weight: 400; color: var(--graphite); }
.send__note { margin-top: 16px; font-size: .92rem; color: var(--graphite); }
.send__done { margin-top: 8px; min-height: 1.4em; font-weight: 700; color: var(--tq-ink); }
.offscreen { position: fixed; top: -1000px; inset-inline-start: -1000px; opacity: 0; }

/* about */
.split--about { grid-template-columns: minmax(200px, 380px) 1fr; align-items: center; }
.about__logo { display: block; width: 100%; height: auto; }
.about__people { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 62ch; font-weight: 700; letter-spacing: .02em; }
.split--about .arrow { margin-top: 28px; color: var(--tq-ink); }

/* ----------------------------------------------------------- footer -- */

.ftr { background: var(--ink); color: rgba(255, 255, 255, .74); padding-block: clamp(48px, 6vw, 80px) 28px; font-size: .96rem; }
.ftr__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.ftr__brand p { margin-top: 16px; max-width: 30ch; }
.ftr__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ftr__col h2 { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 6px; }
.ftr__col a { text-decoration: none; }
.ftr__col a:hover { color: var(--tq); }
.ftr__bottom { margin-top: clamp(36px, 5vw, 64px); padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); display: flex; flex-wrap: wrap; gap: 10px 40px; justify-content: space-between; font-size: .84rem; }
.ftr__tm { max-width: 78ch; color: rgba(255, 255, 255, .55); }

.totop {
  position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 30;
  width: 50px; height: 50px; display: grid; place-items: center;
  background: var(--ink); color: #fff; border: 1px solid rgba(255, 255, 255, .25);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .25s, transform .25s, background-color .2s;
}
.totop svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.totop.is-on { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover { background: var(--tq-ink); }

/* ----------------------------------------------------------- reveal -- */

.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.tiles [data-reveal]:nth-child(2), .cards [data-reveal]:nth-child(2) { transition-delay: .09s; }
.tiles [data-reveal]:nth-child(3), .cards [data-reveal]:nth-child(3) { transition-delay: .18s; }

/* ---------------------------------------------------------- 404 page -- */

.nf { min-height: 100vh; display: grid; place-items: center; padding: var(--gut); text-align: center; }
.nf__in { max-width: 620px; }
.nf__code { font-size: clamp(5rem, 18vw, 10rem); line-height: 1; font-weight: 200; color: var(--tq); }
.nf .h-pair { margin-top: 8px; }
.nf p { margin-top: 18px; color: rgba(255, 255, 255, .78); }
.nf .btn { margin-top: 30px; }
.nf .lang-switcher { position: absolute; top: 18px; inset-inline-end: var(--gut); color: var(--ink); }

/* ------------------------------------------------------- responsive -- */

@media (max-width: 1060px) {
  .x { grid-template-columns: 1fr; }
  .x__stage { position: static; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding-top: 0; padding-inline-start: 68px; padding-inline-end: 0; padding-bottom: 30px; min-height: 60px; }
  .steps li::after { top: 0; bottom: 0; inset-inline: 21px auto; width: 2px; height: auto; background: var(--line) !important; }
  .steps li:last-child::after { display: none; }
  .ftr__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --hdr: 68px; }
  .hdr__meta, .hdr__cta { display: none; }
  .burger { display: flex; }
  .hdr__nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(12, 43, 48, .16); max-height: calc(100vh - 68px); overflow-y: auto; }
  .hdr.is-open .hdr__nav { display: block; }
  .hdr__nav-in { flex-direction: column; gap: 0; padding-block: 8px 20px; }
  .hdr__nav a:not(.btn) { min-height: 54px; font-size: 1.1rem; border-bottom: 1px solid var(--line); margin: 0; white-space: normal; }
  .m-only { display: inline-flex !important; }
  .hdr__nav .btn { margin-top: 18px; }

  .hero { display: block; min-height: 0; }
  .hero__art { position: relative; width: 100%; padding: 28px var(--gut) 0; }
  .hero__wrap { padding-block: 0 56px; margin-top: 12px; }
  .hero__panel { width: 100%; }
  .hero__caption { position: static; padding-bottom: 22px; margin-top: -34px; text-align: start; }

  .split, .split--about { grid-template-columns: 1fr; }
  .about__logo { max-width: 260px; }
  .tiles, .cards { grid-template-columns: 1fr; }
  .tile__art { aspect-ratio: 4 / 3; }
  .hero__art .wall { max-height: 340px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .lang-btn__label, .lang-btn__globe { display: none; }
  .lang-btn { padding-inline: 10px; }
  .brand__name { font-size: 1.12rem; }
  .brand__mark { width: 28px; height: 28px; }

  .lang-panel {
    position: fixed; top: auto; inset-inline: 0; bottom: 0;
    width: 100%; max-width: 100%; max-height: 72vh;
    box-shadow: 0 -12px 40px rgba(12, 43, 48, .3); padding: 16px;
  }
  .lang-panel.open { display: flex; flex-direction: column; }
  .lang-panel-close { display: flex; }
  .lang-list { flex: 1; max-height: none; }

  /* Sixteen capitals in one word is ordinary in Dutch and Finnish; at this
     size they still fit the panel on the narrowest phones. */
  .h-pair--xl { font-size: 1.5rem; }
  .hero__cta .btn { width: 100%; }
  .seg { grid-template-columns: 1fr; }
  .seg button { border-inline-end: 0; border-bottom: 1px solid rgba(255, 255, 255, .28); }
  .seg button:last-child { border-bottom: 0; }
  .ftr__top { grid-template-columns: 1fr; }
  .hs text { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .wall--hero .d { stroke-dasharray: none; stroke-dashoffset: 0; }
  .js .wall--hero .w-ins, .js .wall--hero .w-dim { opacity: 1; }
}

@media print {
  .hdr, .totop, .lang-switcher { display: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
