/* Plakaten: one family (Roboto Flex), one field, one ink, one dot. */

:root {
  --blue: #1f35e8;
  --paper: #f1efe7;
  --signal: #ff4a1c;
  --m: clamp(16px, 2.2vw, 32px);
  --g: clamp(12px, 1.6vw, 24px);
  --pad: clamp(72px, 10vw, 144px);
  --t-s: 1rem;
  --t-b: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  --t-l: clamp(1.375rem, 1.05rem + 1.4vw, 2rem);
  --col7: calc((100% + var(--g)) / 2);
}

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

html {
  overflow-anchor: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--blue);
}

body {
  margin: 0;
  font-family: 'Roboto Flex', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--t-b);
  font-weight: 400;
  line-height: 1.45;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  color: var(--paper);
  background: var(--blue);
}

h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--signal); }

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

::selection { background: var(--signal); color: var(--paper); }

.f-blue { background: var(--blue); color: var(--paper); }
.f-paper { background: var(--paper); color: var(--blue); }

.dot {
  display: inline-block;
  width: 0.17em;
  height: 0.17em;
  border-radius: 50%;
  background: var(--signal);
  margin-left: 0.03em;
}

.skip {
  position: absolute; left: var(--m); top: -80px; z-index: 10;
  padding: 12px 16px; background: var(--paper); color: var(--blue);
}
.skip:focus { top: 8px; }

/* measuring helpers, never visible */
.probe { position: fixed; left: 0; top: 0; width: 0; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; white-space: nowrap; }
.probe span { position: absolute; left: 0; top: 0; white-space: pre; font-size: 100px; line-height: 1; }
.svh { position: fixed; left: 0; top: 0; width: 0; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; }

/* big type is measured and fitted, so its advances must not be rounded to whole pixels */
.probe span, .name, .row-name, .stmt-h, .bigmail, .t-num, .intro-glyph, .intro-h { text-rendering: geometricPrecision; }

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

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.bar {
  display: flex;
  align-items: center;
  gap: var(--g);
  min-height: 56px;
  padding: 4px var(--m);
  font-size: var(--t-s);
}
.bar a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.bar a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--signal); }
.mark { font-weight: 700; margin-right: auto; }
.nav { display: none; gap: clamp(16px, 2.4vw, 40px); }
.alle { margin-left: clamp(16px, 2.4vw, 40px); }

.name {
  align-self: end;
  padding: 0 clamp(3px, 0.45vw, 8px);
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: default;
}
.name-fb {
  display: block;
  font-size: 32vw;
  line-height: 0.8;
  text-transform: uppercase;
  white-space: nowrap;
  font-variation-settings: 'wdth' 40, 'wght' 550, 'YTUC' 760, 'slnt' 0, 'opsz' 144;
}
.name-line {
  display: grid;
  height: calc(var(--fs) * 0.8);
  font-size: var(--fs);
}
.name-line > span {
  display: flex;
  justify-content: center;
  height: 0.8em;
  line-height: 0.8;
  position: relative;
  top: 0.033em;
  white-space: nowrap;
  font-variation-settings: 'wdth' 40, 'wght' 550, 'YTUC' 760, 'slnt' 0, 'opsz' 144;
}
.name-line > .name-dot {
  display: block;
  top: 0;
  align-self: end;
  justify-self: end;
  width: 0.17em;
  height: 0.17em;
  margin: 0 0.012em 0.025em 0;
  border-radius: 50%;
  background: var(--signal);
}

.hero-foot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px var(--g);
  padding: 14px var(--m) 18px;
  font-size: var(--t-s);
  line-height: 1.4;
}
.hero-who { max-width: 34em; }
.hero-pos { display: none; font-variant-numeric: tabular-nums; }
.for-mouse { display: none; }
@media (hover: hover) and (pointer: fine) {
  .for-mouse { display: inline; }
  .for-touch { display: none; }
}

/* ---------- shared section pieces ---------- */

main > section { padding: var(--pad) var(--m); }

.sec-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px var(--g);
}
.sec-h {
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.15;
}
.sec-head p { max-width: 32em; }

.links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- intro ---------- */

.intro { padding-bottom: 0; overflow: hidden; }
.intro-grid { display: grid; grid-template-columns: 1fr; }
.intro-h {
  font-size: clamp(2.75rem, 1.6rem + 5.4vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.005em;
  font-variation-settings: 'wdth' 62, 'wght' 800, 'YTUC' 760, 'slnt' 0, 'opsz' 144;
  margin-bottom: 0.45em;
}
.lead { font-size: var(--t-l); line-height: 1.32; font-weight: 450; max-width: 27em; }
.intro-txt > p + p { margin-top: 1.1em; max-width: 32em; }

.facts { margin-top: clamp(32px, 4vw, 56px); max-width: 34em; border-bottom: 3px solid currentColor; }
.facts div {
  display: grid;
  grid-template-columns: 7.2em 1fr;
  gap: var(--g);
  padding: 10px 0 11px;
  border-top: 3px solid currentColor;
  font-size: var(--t-s);
}
.facts dt { font-weight: 700; }

.intro-fig {
  display: flex;
  align-items: flex-end;
  margin-top: clamp(40px, 8vw, 72px);
  margin-left: calc(-1 * var(--m) - 13vw);
  pointer-events: none;
}
.intro-glyph {
  display: block;
  flex: none;
  font-size: min(96vw, 620px);
  line-height: 0.75;
  height: 0.75em;
  margin-bottom: -0.033em;
  font-variation-settings: 'wdth' 100, 'wght' 900, 'YTUC' 760, 'slnt' 0, 'opsz' 144;
}
.intro-face {
  flex: none;
  width: min(38vw, 250px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  margin-left: -1.5vw;
}

/* ---------- work ---------- */

.work { overflow: hidden; }
.index { margin-top: clamp(28px, 4vw, 56px); }
.row-h { font-size: inherit; font-weight: inherit; }
.row-btn {
  -webkit-appearance: none; appearance: none;
  display: block;
  width: 100%;
  margin: 0;
  padding: clamp(8px, 1vw, 14px) 0 clamp(18px, 2vw, 30px);
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  overflow: clip visible;
  -webkit-tap-highlight-color: transparent;
}
.row-name {
  display: inline-block;
  vertical-align: top;
  white-space: nowrap;
  text-transform: uppercase;
  font-size: var(--fs, 22vw);
  line-height: 0.8;
  font-variation-settings: 'wdth' var(--wa, 40), 'wght' var(--ga, 250), 'YTUC' 760, 'slnt' 0, 'opsz' 144;
  transition: font-variation-settings 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.row.is-open .row-name,
.row-btn:focus-visible .row-name {
  font-variation-settings: 'wdth' var(--wb, 28), 'wght' var(--gb, 800), 'YTUC' 760, 'slnt' 0, 'opsz' 144;
}
@media (hover: hover) and (pointer: fine) {
  .row-btn:hover .row-name {
    font-variation-settings: 'wdth' var(--wb, 28), 'wght' var(--gb, 800), 'YTUC' 760, 'slnt' 0, 'opsz' 144;
  }
}
.row-cap {
  display: flex;
  align-items: center;
  margin-top: 10px;
  min-height: 24px;
  font-size: var(--t-s);
  font-weight: 500;
}
.row-cap .dot { display: none; width: 12px; height: 12px; margin: 0 8px 0 0; flex: none; }
.row.is-open .row-cap .dot { display: block; }

.panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px var(--g);
  padding: 10px 0 clamp(40px, 5vw, 72px);
}
.panel[hidden] { display: none; }
.panel-fig img { width: 100%; background: var(--paper); }
.panel-txt { max-width: 34em; }
.role { font-size: var(--t-s); font-weight: 700; }
.what { margin-top: 0.7em; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); line-height: 1.35; }
.more { margin-top: 0.8em; }
.panel .links { margin-top: 0.6em; }
.work-all { margin-top: clamp(24px, 3vw, 40px); }
.work-all a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- three statements ---------- */

.stands { overflow: hidden; }
.stmt { padding-top: clamp(56px, 8vw, 120px); }
.stmt-h {
  overflow: hidden;
  overflow: clip visible;
  font-size: clamp(2.75rem, 11vw, 9rem);
  font-weight: 400;
  line-height: 0.96;
  font-variation-settings: 'wdth' 40, 'wght' 720, 'YTUC' 760, 'slnt' 0, 'opsz' 144;
}
.ln {
  display: block;
  width: max-content;
  white-space: nowrap;
  line-height: 0.96;
}
.stmt-h .ln { font-variation-settings: 'wdth' 25, 'wght' 300, 'YTUC' 760, 'slnt' 0, 'opsz' 144; }
.stmt > p { margin-top: clamp(18px, 2vw, 32px); max-width: 30em; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); line-height: 1.35; }

/* ---------- tariff ---------- */

.t-list { margin-top: clamp(28px, 4vw, 56px); border-bottom: 3px solid currentColor; }
.t-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px var(--g);
  align-items: end;
  padding: 14px 0 16px;
  border-top: 3px solid currentColor;
}
.t-what h3 { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem); font-weight: 700; line-height: 1.15; }
.t-what p { margin-top: 4px; max-width: 32em; }
.t-what .links { margin-top: 2px; }
.t-price {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  font-size: var(--t-b);
  font-weight: 600;
}
.t-pre { margin-right: auto; }
.t-num {
  font-size: clamp(5rem, 13.5vw, 13rem);
  line-height: 0.8;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-variation-settings: 'wdth' 50, 'wght' 800, 'YTUC' 760, 'slnt' 0, 'opsz' 144;
}
.t-unit { flex: none; width: 4em; padding-left: 0.45em; }

.incl { margin-top: clamp(48px, 6vw, 88px); }
.incl ul { margin-top: 14px; max-width: 34em; }
.incl li { padding: 10px 0 11px; border-top: 3px solid currentColor; }
.incl ul { border-bottom: 3px solid currentColor; }
.incl .links { margin-top: 10px; }

/* ---------- contact ---------- */

.contact { overflow: hidden; padding-bottom: clamp(56px, 7vw, 104px); }
.bigmail-wrap { margin-top: clamp(24px, 3vw, 48px); }
.bigmail {
  display: block;
  overflow: hidden;
  overflow: clip visible;
  text-decoration: none;
  text-transform: uppercase;
  font-size: clamp(3rem, 13vw, 11rem);
  line-height: 0.84;
  font-variation-settings: 'wdth' 40, 'wght' 800, 'YTUC' 760, 'slnt' 0, 'opsz' 144;
}
.bigmail .ln {
  font-size: var(--fs);
  line-height: 0.84;
  font-variation-settings: 'wdth' var(--wa, 40), 'wght' var(--ga, 800), 'YTUC' 760, 'slnt' 0, 'opsz' 144;
  transition: font-variation-settings 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.bigmail:focus-visible .ln {
  font-variation-settings: 'wdth' var(--wb, 60), 'wght' var(--gb, 400), 'YTUC' 760, 'slnt' 0, 'opsz' 144;
}
@media (hover: hover) and (pointer: fine) {
  .bigmail:hover .ln {
    font-variation-settings: 'wdth' var(--wb, 60), 'wght' var(--gb, 400), 'YTUC' 760, 'slnt' 0, 'opsz' 144;
  }
}
.bigmail:focus-visible { outline-offset: -3px; }

.reach { margin-top: clamp(28px, 4vw, 56px); max-width: 34em; border-bottom: 3px solid currentColor; }
.reach div {
  display: grid;
  grid-template-columns: 5.8em 1fr;
  gap: var(--g);
  align-items: center;
  border-top: 3px solid currentColor;
}
.reach dt { font-weight: 700; font-size: var(--t-s); }
.reach a { display: inline-flex; align-items: center; min-height: 48px; font-size: clamp(1.125rem, 0.9rem + 1vw, 1.75rem); font-weight: 600; }

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

.foot { padding: clamp(40px, 5vw, 72px) var(--m) 24px; font-size: var(--t-s); line-height: 1.5; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 24px var(--g); }
.foot-mark { font-weight: 700; }
.foot-mark span { font-weight: 400; }
.foot-mark .dot { width: 9px; height: 9px; margin-left: 3px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-c { margin-top: 28px; }

/* ---------- from tablet up ---------- */

@media (min-width: 900px) {
  .nav { display: flex; }
  .hero-foot { grid-template-columns: repeat(12, 1fr); align-items: end; padding-top: 18px; padding-bottom: 22px; }
  .hero-who { grid-column: 1 / 7; }
  .hero-hint { grid-column: 7 / 10; }
  .hero-pos { display: block; grid-column: 10 / 13; justify-self: end; }

  .sec-head { grid-template-columns: repeat(12, 1fr); align-items: baseline; }
  .sec-head .sec-h { grid-column: 1 / 7; }
  .sec-head p { grid-column: 7 / 13; }

  .intro-grid { grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr; column-gap: var(--g); align-items: end; }
  .intro-h { grid-column: 1 / 7; grid-row: 1; align-self: start; margin-bottom: 0; font-size: clamp(4rem, 8.4vw, 9rem); }
  .intro-txt { grid-column: 7 / 13; grid-row: 1 / 3; align-self: start; padding-top: 0.6vw; padding-bottom: var(--pad); }
  .intro-fig { grid-column: 1 / 7; grid-row: 2; margin-top: clamp(40px, 5vw, 80px); margin-left: calc(-1 * var(--m) - 7vw); }
  .intro-glyph { font-size: 56vw; }
  .intro-face { width: 17vw; margin-left: -0.6vw; }

  .panel { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .panel-fig { grid-column: 1 / 7; }
  .panel-txt { grid-column: 7 / 13; }

  .stmt > p { margin-left: var(--col7); }

  .t-row { grid-template-columns: repeat(12, 1fr); padding: 18px 0 22px; }
  .t-what { grid-column: 1 / 7; padding-bottom: 0.2em; }
  .t-price { grid-column: 7 / 13; }
  .t-free .t-what { padding-right: var(--g); }

  .incl { margin-left: var(--col7); }
  .reach { margin-left: var(--col7); }

  .foot-grid { grid-template-columns: repeat(12, 1fr); }
  .foot-grid > :nth-child(1) { grid-column: 1 / 7; }
  .foot-grid > :nth-child(2) { grid-column: 7 / 11; }
  .foot-grid > :nth-child(3) { grid-column: 11 / 13; flex-direction: column; }
}

/* while the fit routine measures, nothing may be mid-transition */
.fitting *, .fitting *::before, .fitting *::after { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
