/* RMP Software – whiteboard site */

@font-face {
  font-family: "Kalam";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/kalam-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Kalam";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/kalam-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Kalam";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/kalam-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Kalam";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/kalam-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/caveat-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/caveat-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --board: #fbfbf9;
  --ink-black: #24282d;
  --ink-blue: #1d4fae;
  --ink-red: #c9312a;
  --ink-green: #1f8547;
  --ink-yellow: #ffdc3c;
  --ink-mint: #6fdc8c;
  --ink-soft: #7a828b;
  --text-soft: #555c64;
  --postit: #ffe97a;
  --postit-edge: #f3d54f;
  --frame: 14px;
  --tray: 58px;
  --hand: "Kalam", "Segoe Print", "Bradley Hand", cursive;
  --head: "Caveat", "Kalam", "Segoe Print", cursive;
  --mag-red: #d8322a;
  --mag-blue: #2463c4;
  --mag-green: #3c9a4e;
  --mag-yellow: #f1bf2c;
  --mag-black: #2b2f33;
  --mag-white: #eef0f2;
}

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

html {
  background: var(--board);
  scrollbar-width: thin;
  scrollbar-color: #b9bfc5 transparent;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: var(--hand);
  font-size: clamp(17px, 0.6vw + 12px, 20px);
  line-height: 1.5;
  color: var(--ink-black);
  background:
    radial-gradient(ellipse 60% 45% at 18% 8%, rgba(255, 255, 255, 0.95), transparent 70%),
    linear-gradient(112deg, transparent 38%, rgba(255, 255, 255, 0.75) 47%, transparent 58%),
    radial-gradient(ellipse 30% 12% at 72% 64%, rgba(120, 130, 140, 0.035), transparent 70%),
    radial-gradient(ellipse 22% 9% at 30% 78%, rgba(29, 79, 174, 0.025), transparent 70%),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.045)),
    var(--board);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(255, 220, 60, 0.55); }

:focus-visible {
  outline: 2px dashed var(--ink-red);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 24px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--postit);
  color: var(--ink-black);
}
.skip:focus { left: 24px; }

.is-dragging, .is-dragging * { user-select: none; cursor: grabbing !important; }

/* ---------- Frame & tray ---------- */

/* The frame surrounds the whole board, which grows with its content:
   the page scrolls, not the board. */
.frame { position: absolute; inset: 0; z-index: 40; pointer-events: none; }
.frame i { position: absolute; display: block; }
.frame .f-top {
  top: 0; left: 0; right: 0; height: var(--frame);
  background: linear-gradient(180deg, #f6f7f8 0%, #d4d8dc 38%, #aab0b6 62%, #dde1e4 100%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
}
.frame .f-left, .frame .f-right {
  top: 0; bottom: 0; width: var(--frame);
  background: linear-gradient(90deg, #f3f5f6 0%, #cfd3d7 40%, #a9afb5 64%, #dadee1 100%);
}
.frame .f-left { left: 0; box-shadow: 2px 0 5px rgba(0, 0, 0, 0.12); }
.frame .f-right { right: 0; transform: scaleX(-1); box-shadow: 2px 0 5px rgba(0, 0, 0, 0.12); }
.frame .f-tray {
  left: 0; right: 0; bottom: 0; height: var(--tray);
  background:
    linear-gradient(180deg, #8d949b 0, #c6cbd0 3px, #eef0f2 7px, #d3d7db 16px, #b6bcc2 17px, #e3e6e9 22px, #cdd2d6 60%, #a2a8ae 100%);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.14);
}
.frame .c {
  width: calc(var(--frame) + 10px);
  height: calc(var(--frame) + 10px);
  background: radial-gradient(circle at 35% 30%, #6b7178, #33383d 70%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.frame .tl { top: 0; left: 0; border-radius: 0 0 10px 0; }
.frame .tr { top: 0; right: 0; border-radius: 0 0 0 10px; }
.frame .bl, .frame .br { bottom: 0; height: var(--tray); width: 20px; }
.frame .bl { left: 0; border-radius: 0 10px 0 0; }
.frame .br { right: 0; border-radius: 10px 0 0 0; }
.frame::after {
  content: "";
  position: absolute;
  top: var(--frame); left: var(--frame); right: var(--frame); bottom: var(--tray);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.16), inset 0 0 30px rgba(0, 0, 0, 0.04);
}

/* Legal links engraved on the tray. */
.tray-legal {
  position: absolute;
  z-index: 41;
  left: 50%;
  bottom: calc((var(--tray) - 22px) / 2 - 6px);
  translate: -50% 0;
  display: flex;
  gap: 22px;
  white-space: nowrap;
  font: 600 12px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.05em;
  color: #656c73;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}
.tray-legal a { color: inherit; text-decoration: none; }
.tray-legal a:hover { color: var(--ink-blue); text-decoration: underline; }

/* ---------- Board ---------- */

.board {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: calc(var(--frame) + 14px) calc(var(--frame) + 24px) calc(var(--tray) + 170px);
}

.js:not(.is-ready) .board-head > :not(.deco-layer),
.js:not(.is-ready) .surface { visibility: hidden; }

.ink {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  pointer-events: none;
  touch-action: auto;
}
.is-drawing .ink { pointer-events: auto; touch-action: none; }

.pen {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 30;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}
.pen svg {
  position: absolute;
  left: 0;
  top: -12px;
  width: 140px;
  height: 24px;
  transform-origin: 0 12px;
  rotate: -40deg;
  filter: drop-shadow(5px 8px 5px rgba(0, 0, 0, 0.22));
}

.deco-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.deco-layer path, .nav-line path, [data-icon] path, [data-portrait] path, [data-map] path {
  fill: none;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.deco-layer path.hl {
  stroke-linecap: butt;
  opacity: 0.55;
  mix-blend-mode: multiply;
}

.w { display: inline-block; }

/* ---------- Header ---------- */

.board-head {
  position: relative;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 18px 34px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 4px 0 22px;
}
.board-head > :not(.deco-layer) { position: relative; z-index: 1; }

.logo {
  flex: none;
  display: block;
  padding: 7px 12px 5px;
  background: #fff;
  rotate: -1.5deg;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 6px 14px -6px rgba(0, 0, 0, 0.3);
}
.logo img { display: block; width: 140px; height: auto; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 26px;
  flex: 1;
}
.nav a {
  position: relative;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(1.55rem, 1.2vw + 0.9rem, 2.05rem);
  line-height: 1.2;
  color: var(--ink-black);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav a:hover { color: var(--ink-blue); }
.nav a.is-active { color: var(--ink-blue); }
.nav-line {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 14px;
  overflow: visible;
}
.nav-line path { stroke: var(--ink-red); stroke-width: 3; }

.lang {
  display: flex;
  gap: 14px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.5rem;
}
.lang a { color: var(--ink-soft); text-decoration: none; }
.lang a:hover { color: var(--ink-blue); }
.lang a[aria-current] { color: var(--ink-black); }

.board-head > .rule {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
}

/* "≡ Menü", only on small screens (see media queries). */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 4px 6px;
  border: 0;
  background: none;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink-black);
  cursor: pointer;
}
.menu-toggle svg { width: 34px; height: 26px; overflow: visible; }
.menu-toggle path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.menu-toggle[aria-expanded="true"] { color: var(--ink-blue); }

/* ---------- Content ---------- */

.surface {
  position: relative;
  max-width: 1120px;
  margin: 26px auto 0;
}

.sheet { position: relative; }
.js .sheet:not(.is-active) { display: none; }
/* While switching, the old sheet lies under the new one and is wiped away
   (clip-path set by wipe.js); the ghost is a faint copy that fades out. */
.sheet.is-leaving {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
}
.sheet.ghost { pointer-events: none; }
.sheet.is-entering { z-index: 3; }
/* Positioned without z-index: no stacking contexts, so a dragged card can
   travel over everything while the marker layer stays under the text. */
.sheet > :not(.deco-layer) { position: relative; }
.no-js .sheet + .sheet { margin-top: 80px; }

h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.3em;
}
h1, h2 { color: var(--ink-blue); }
h1 { font-size: clamp(2.7rem, 4.2vw + 0.6rem, 4.6rem); max-width: 21ch; }
h2 { font-size: clamp(2.4rem, 3vw + 0.8rem, 3.6rem); }
h3 { font-size: clamp(1.6rem, 0.8vw + 1.2rem, 2rem); }
h1:focus, h2:focus { outline: none; }

p { margin: 0 0 0.8em; }
.lead { font-size: 1.22em; max-width: 46ch; }
.soft { color: var(--text-soft); }

.sheet a { color: var(--ink-blue); text-decoration: none; }
.sheet a .w {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(29, 79, 174, 0.45);
}
.sheet a:hover .w { text-decoration-color: currentColor; }
.sheet a.plain .w, .sheet .way .w { text-decoration: none; }

[data-icon] {
  display: inline-block;
  flex: none;
  width: 44px;
  height: 44px;
  color: var(--ink-black);
  vertical-align: middle;
}
[data-icon] svg { display: block; width: 100%; height: 100%; overflow: visible; }
[data-icon] path { stroke: currentColor; stroke-width: 2.4; }
[data-ink="green"][data-icon] { color: var(--ink-green); }
[data-ink="blue"][data-icon] { color: var(--ink-blue); }
[data-ink="red"][data-icon] { color: var(--ink-red); }

/* Magnets, post-its, cards */

.magnet {
  --c: var(--mag-red);
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.75) 0 7%, rgba(255, 255, 255, 0) 26%),
    radial-gradient(circle at 50% 45%, var(--c) 0 58%, color-mix(in srgb, var(--c), #000 28%) 100%);
  box-shadow:
    inset 0 -3px 5px rgba(0, 0, 0, 0.25),
    0 2px 2px rgba(0, 0, 0, 0.22),
    0 7px 12px -3px rgba(0, 0, 0, 0.3);
  cursor: grab;
  touch-action: none;
  transition: box-shadow 0.15s;
}
/* Loose magnets sit next to the frame on wide boards and are parked above
   the tray on narrower ones (see media queries). */
.magnet.free {
  position: absolute;
  z-index: 8;
  left: calc(var(--frame) + 4px + var(--x));
  top: var(--y);
}
.magnet.free.right { left: auto; right: calc(var(--frame) + 4px + var(--x)); }
.magnet.pin { display: none; }
.magnet.is-lifted, .is-lifted > .magnet {
  box-shadow:
    inset 0 -3px 5px rgba(0, 0, 0, 0.25),
    0 6px 6px rgba(0, 0, 0, 0.18),
    0 18px 22px -6px rgba(0, 0, 0, 0.32);
}
.magnet.is-lifted { z-index: 20; }

.postit, .card {
  position: relative;
  z-index: 3;
  rotate: var(--rot, -2deg);
  cursor: grab;
}
.postit {
  width: 230px;
  padding: 30px 20px 20px;
  background: linear-gradient(170deg, #fff2a3 0%, var(--postit) 40%, var(--postit-edge) 100%);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 12px 18px -8px rgba(0, 0, 0, 0.3);
  font-size: 0.98em;
  line-height: 1.4;
}
.postit p:last-child { margin-bottom: 0; }
.postit > .magnet, .card > .magnet {
  position: absolute;
  top: -15px;
  left: calc(50% - 18px);
}
.is-lifted.postit, .is-lifted.card {
  z-index: 20;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1), 0 26px 30px -10px rgba(0, 0, 0, 0.34);
}
.postit .big {
  font-family: var(--head);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--ink-red);
  margin-bottom: 4px;
}
.postit .small { font-size: 0.82em; color: var(--text-soft); }
.postit [data-icon] { width: 54px; height: 54px; float: right; margin: -4px -6px 0 4px; }

.card {
  width: 236px;
  margin: 0;
  padding: 12px 12px 14px;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 14px 22px -10px rgba(0, 0, 0, 0.32);
}
.portrait {
  aspect-ratio: 200 / 230;
  background: #fcfcfa;
  outline: 1px solid #ecece6;
}
.portrait svg { display: block; width: 100%; height: 100%; }
.portrait path { stroke: var(--ink-black); stroke-width: 2.2; }
.card figcaption { padding: 8px 4px 0; line-height: 1.25; }
.card figcaption strong {
  display: block;
  font-family: var(--head);
  font-size: 1.5rem;
}
.card figcaption span { color: var(--text-soft); }

/* Start */

/* The "Psst!" note starts out just above the marker cup, which rides along
   at the bottom of the window: on wide boards it hangs to the right of the
   content (partly in the board margin), otherwise below the motto. */
.hint { width: 200px; }
#start > .hint { margin: 40px 0 0 auto; }
@media (min-width: 1180px) {
  #start {
    --push: clamp(0px, calc((100vw - 1120px) / 2 - 90px), 600px);
    padding-right: max(0px, calc(250px - var(--push)));
  }
  #start > .hint {
    position: absolute;
    top: clamp(0px, calc(100vh - 500px), 560px);
    right: calc(-1 * var(--push));
    margin: 0;
  }
}

.fork { margin-top: 18px; }
.fork-q {
  font-family: var(--head);
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
  margin: 0 0 64px;
}
.fork-ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 90px;
  max-width: 900px;
  margin: 0 auto;
}
.way {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 2px 14px;
  align-content: start;
  padding: 10px 12px;
  color: var(--ink-black) !important;
  border-radius: 8px;
  transition: background 0.2s, rotate 0.25s;
}
.way:hover { background: rgba(29, 79, 174, 0.045); rotate: -0.7deg; }
.way [data-icon] { grid-row: span 3; width: 50px; height: 50px; }
.way-title {
  font-family: var(--head);
  font-size: 2.05rem;
  line-height: 1.05;
  color: var(--ink-blue);
}
.way-more { color: var(--ink-red); font-weight: 700; }

.motto {
  max-width: 620px;
  margin: 58px auto 0;
  padding: 14px 52px;
  font-size: 1.3em;
  line-height: 1.35;
  text-align: center;
  color: var(--text-soft);
}
.motto p { margin: 0; }

/* NEOLIMS */

.sheet-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.sheet-head [data-icon] { width: 62px; height: 62px; margin-bottom: 8px; }
.sheet-head h2 { margin: 0; }

.flow {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 22px 64px;
  padding: 0 10px;
  margin: 30px 0 36px;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1.1;
}
.flow li { padding: 6px 14px; }

.neo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 30px 60px;
  align-items: start;
}
.checks { list-style: none; margin: 0; padding: 0 0 0 46px; }
.checks li { margin: 0 0 10px; }
.neo-grid .cta { margin: 26px 0 0 46px; font-size: 1.2em; font-weight: 700; }
.neo-grid .postit { margin-top: 6px; }

/* Services */

.mindmap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px minmax(0, 1fr);
  gap: 40px 70px;
  align-items: center;
  margin: 26px 0 10px;
}
.hub {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  text-align: center;
  font-family: var(--head);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--ink-red);
}
.hub > span { display: inline-block; }
.branch h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.branch [data-icon] { width: 40px; height: 40px; }
.branch p { margin: 0; }
.b1 { grid-column: 1; grid-row: 1; }
.b2 { grid-column: 3; grid-row: 1; }
.b3 { grid-column: 1; grid-row: 2; }
.b4 { grid-column: 3; grid-row: 2; }
.services-foot { margin-top: 44px; font-size: 1.15em; }

/* Team */

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 44px 40px;
  align-items: flex-start;
  margin-top: 40px;
  padding-left: 6px;
}
.cards .postit { margin-top: 26px; }

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px 60px;
  align-items: start;
}
.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0;
  font-size: 1.32em;
}
.contact-line [data-icon] { width: 38px; height: 38px; }
address { font-style: normal; margin-top: 26px; line-height: 1.5; }
.map { margin: 10px 0 0; }
.map svg { display: block; width: 100%; height: auto; overflow: visible; }
.map path { stroke: var(--ink-black); stroke-width: 2.4; }
.map text { font-family: var(--hand); fill: var(--ink-black); }
.map figcaption { font-size: 0.8em; color: var(--ink-soft); text-align: right; }
.sheet .map figcaption a { color: inherit; }

/* Legal */

.legal { max-width: 780px; }
.legal h3 { font-size: 1.65rem; margin: 1.1em 0 0.25em; color: var(--ink-black); }
.legal p, .legal ul { margin: 0 0 0.7em; }

/* Board footer */

.board-foot {
  position: relative;
  z-index: 6;
  display: none;
  max-width: 1120px;
  margin: 80px auto 0;
  font-size: 0.88em;
  color: var(--ink-soft);
}
.board-foot a { color: var(--ink-soft); text-decoration: none; margin-right: 18px; }
.board-foot a:hover { color: var(--ink-blue); }

/* ---------- Tools: marker cup & sponge ---------- */

/* The dock overlaps the tray. While the tray is below the window, the
   tools ride along at the bottom edge (sticky); at the end of the board
   they settle into the tray. */
.dock {
  position: sticky;
  z-index: 45;
  bottom: calc(18px - var(--tray));
  height: var(--tray);
  margin-top: calc(-1 * var(--tray));
  pointer-events: none;
}
.dock > * { pointer-events: auto; }

.cup {
  position: absolute;
  right: calc(var(--frame) + 30px);
  bottom: calc(var(--tray) - 12px);
  width: 128px;
  height: 160px;
}
.cup-body {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 74px;
  border-radius: 6px 6px 16px 16px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), rgba(255, 255, 255, 0.35) 22%, rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, 0.16)),
    linear-gradient(180deg, #4a5056, #2e3338);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.18);
  pointer-events: none;
}
.cup-body::after {
  content: "rmp";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  text-align: center;
  font: 700 13px/1 system-ui, sans-serif;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.35);
}
.markers {
  position: absolute;
  z-index: 1;
  left: 12px;
  right: 12px;
  bottom: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.marker {
  --ink: var(--ink-black);
  position: relative;
  width: 22px;
  height: 118px;
  padding: 0;
  border: 0;
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(90deg, #c7ccd1 0, #fbfcfc 36%, #e6e9ec 68%, #b9bfc5 100%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: translate 0.28s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.marker:nth-child(2) { translate: 0 -6px; }
.marker:nth-child(3) { translate: 0 -2px; }
.marker:nth-child(4) { translate: 0 -8px; }
.marker::before {
  /* chisel tip, hidden under the cap */
  content: "";
  position: absolute;
  left: 5px;
  top: -9px;
  width: 12px;
  height: 14px;
  background: var(--ink);
  clip-path: polygon(0 100%, 18% 10%, 100% 0, 100% 100%);
}
.marker .cap {
  position: absolute;
  left: -2px;
  right: -2px;
  top: -12px;
  height: 40px;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--ink), #000 30%) 0,
    var(--ink) 30%,
    color-mix(in srgb, var(--ink), #fff 30%) 50%,
    var(--ink) 70%,
    color-mix(in srgb, var(--ink), #000 35%) 100%);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
  transition: translate 0.25s, opacity 0.25s;
}
.marker .band {
  position: absolute;
  left: 0;
  right: 0;
  top: 52px;
  height: 18px;
  background: var(--ink);
  opacity: 0.9;
}
.marker:hover { translate: 0 -14px; }
.marker[aria-pressed="true"] { translate: 0 -46px; }
.marker[aria-pressed="true"] .cap { translate: 0 -30px; opacity: 0; }
.marker[data-ink="blue"] { --ink: var(--ink-blue); }
.marker[data-ink="red"] { --ink: var(--ink-red); }
.marker[data-ink="green"] { --ink: var(--ink-green); }

.sponge {
  position: absolute;
  left: calc(var(--frame) + 30px);
  bottom: calc(var(--tray) - 16px);
  width: 148px;
  height: 64px;
  padding: 0;
  border: 0;
  background: none;
  cursor: grab;
  touch-action: none;
}
.sponge::before {
  /* handle */
  content: "";
  position: absolute;
  inset: 0 0 18px 0;
  border-radius: 16px 16px 6px 6px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 45%),
    linear-gradient(180deg, #2a5bb8, #173f8a);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}
.sponge::after {
  /* felt */
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 0;
  height: 19px;
  border-radius: 2px 2px 4px 4px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 2px, rgba(0, 0, 0, 0.05) 2px 4px),
    linear-gradient(180deg, #9aa0a6, #7b8187);
}
.sponge .grip {
  position: absolute;
  z-index: 1;
  left: 24px;
  right: 24px;
  top: 14px;
  height: 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.3);
}
.sponge { filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.25)); }
.sponge.is-lifted { cursor: grabbing; filter: drop-shadow(0 14px 12px rgba(0, 0, 0, 0.28)); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1279px) {
  .magnet.free, .magnet.free.right { top: auto; right: auto; left: var(--xm); bottom: var(--bm); }
}

@media (max-width: 1240px) {
}

/* Headings get their own row below logo and language switch. */
@media (max-width: 1080px) {
  .board-head { flex-wrap: wrap; gap: 6px 20px; padding-bottom: 16px; }
  .lang { margin-left: auto; }
  .nav { order: 3; flex: 1 0 100%; gap: 2px 30px; }
}

@media (max-width: 900px) {
  :root { --frame: 9px; --tray: 54px; }
  .board { padding: calc(var(--frame) + 10px) calc(var(--frame) + 14px) calc(var(--tray) + 150px); }
  .logo img { width: 116px; }
  .surface { margin-top: 18px; }
  .neo-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .fork-ways { grid-template-columns: minmax(0, 1fr); gap: 30px; padding: 0 10px; }
  .fork-q { margin-bottom: 46px; }
  .flow { gap: 18px 46px; font-size: 1.6rem; }
  .mindmap { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-left: 30px; }
  .hub { grid-column: 1; grid-row: auto; justify-self: start; margin: 20px 0 10px 20px; }
  .b1, .b2, .b3, .b4 { grid-column: 1; grid-row: auto; }
  .neo-grid .postit { margin: 10px auto 0; }
  .cards { justify-content: center; }
  .tray-legal { display: none; }
  .board-foot { display: block; }
  .cup { right: calc(var(--frame) + 10px); scale: 0.7; transform-origin: bottom right; }
  /* scaled around its centre, so the box sits a bit lower and further out */
  .sponge { left: calc(var(--frame) - 12px); bottom: calc(var(--tray) - 26px); scale: 0.7; }
}

/* Small screens: the headings move onto a post-it that opens from "≡ Menü". */
@media (max-width: 720px) {
  .board-head { gap: 6px 10px; }
  .logo img { width: 104px; }
  .js .menu-toggle { display: inline-flex; font-size: 1.45rem; }
  .menu-toggle svg { width: 28px; height: 22px; }
  .lang { gap: 8px; font-size: 1.3rem; }
  .js .lang { margin-left: 8px; }
  .js .nav {
    position: absolute;
    z-index: 25;
    top: calc(100% - 4px);
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: min(300px, 100%);
    padding: 32px 22px 20px;
    background: linear-gradient(170deg, #fff2a3 0%, var(--postit) 40%, var(--postit-edge) 100%);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 16px 24px -10px rgba(0, 0, 0, 0.35);
    rotate: 1.5deg;
    transform-origin: 100% 0; /* turning and growing stay inside the screen */
  }
  .js .nav.is-open { display: flex; }
  .js .nav a { font-size: 1.75rem; white-space: normal; }
  .js .nav .magnet.pin { display: block; position: absolute; top: -14px; left: calc(50% - 18px); cursor: default; }
}

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

@media print {
  .frame, .tray-legal, .dock, .ink, .pen, .magnet.free, .menu-toggle { display: none !important; }
  .js .sheet:not(.is-active) { display: none; }
  body { background: #fff; }
}
