/* SSRD refined — the 2021 identity, cleaned up for 2026 */

/* Rubik, self-hosted (variable 400-700). latin-ext carries č, š, ž. */
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/rubik-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Rubik"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("../fonts/rubik-latin.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; }

:root {
  --blue: #2d9cdb;
  --blue-deep: #1b72a6;
  --ink: #0e1b2c;
  --ink-2: #44546a;
  --ground: #ffffff;
  --mist: #f3f7fb;
  --line: #e3eaf1;
  --font: "Rubik", "Segoe UI", system-ui, sans-serif;
  --margin: clamp(20px, 3.4vw, 56px);
  --gutter: clamp(16px, 2vw, 32px);
  --section: clamp(72px, 7vw, 120px);
  --max: 1360px;
  --radius: 24px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  /* fixed header height: the hero and the tablet splash are measured from it (fixed by design) */
  --bar-h: 94px;
  /* primary button: a bright cap on top, then blues that keep white text at 4.5:1 or more from a third of the height down */
  --primary-grad: linear-gradient(180deg, #2a8fcc 0%, #1e7bb5 34%, #1b72a6 100%);
  --primary-shadow: rgba(27, 114, 166, 0.7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 1.125rem; line-height: 1.6; -webkit-font-smoothing: antialiased; caret-color: var(--blue); }
::selection { background: #cfe8f7; color: var(--ink); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.22em; }
:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.3rem + 4vw, 4.5rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); font-weight: 600; }
h3 { font-size: 1.375rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.skip { position: absolute; left: var(--margin); top: -100px; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 50; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Buttons & links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px;
  border: 0; border-radius: 999px;
  background: var(--blue-deep); color: #fff;
  font: inherit; font-weight: 500; font-size: 1.0625rem; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.button:active { transform: scale(0.97); }
.button--white { background: #fff; color: var(--blue-deep); }
@media (hover: hover) and (pointer: fine) { .button--white:hover { background: var(--mist); } }
.button--small { min-height: 44px; padding: 0 22px; font-size: 1rem; }
.link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--blue); transition: text-decoration-color 160ms ease; }
.link:hover { text-decoration-color: var(--ink); }

/* ---------- Header ---------- */
.bar { position: relative; z-index: 10; padding-block: 24px; }
.bar .wrap { display: flex; align-items: center; gap: 32px; }
.bar__logo img { height: 46px; width: auto; }
.bar__nav { margin-left: auto; display: flex; align-items: center; gap: 30px; }
.bar__nav a:not(.button) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.0625rem; }
@media (min-width: 1200px) {
  .bar__nav a:not(.button) { color: #fff; }
  .bar__nav a:not(.button):hover { text-decoration-color: rgba(255, 255, 255, 0.75) !important; }
  .bar__nav .button { background: #fff !important; color: var(--blue-deep) !important; }
}
.bar__nav a:not(.button):hover { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--blue); }
.bar__nav .button { background: var(--blue-deep); color: #fff; }
/* menu: a 44px hamburger whose three bars fold into an X when open */
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; place-items: center; transition: color 220ms ease, background-color 160ms ease, transform 160ms var(--ease-out); }
.menu-toggle:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .menu-toggle:hover { background: rgba(14, 27, 44, 0.06); } }
.menu-toggle__icon { position: relative; display: block; width: 22px; height: 16px; }
.menu-toggle__icon span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform 240ms var(--ease-out), opacity 160ms ease; }
.menu-toggle__icon span:nth-child(1) { top: 0; }
.menu-toggle__icon span:nth-child(2) { top: 7px; }
.menu-toggle__icon span:nth-child(3) { top: 14px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) { opacity: 0; transform: scaleX(0.4); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1199px) {
  .menu-toggle { display: inline-grid; }
  .bar .wrap { flex-wrap: wrap; row-gap: 12px; }
  .bar__nav { display: none; width: 100%; margin-left: 0; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 20px 20px; background: #fff; border-radius: var(--radius); box-shadow: 0 16px 40px -16px rgba(14, 27, 44, 0.25); }
  .bar.is-menu-open .bar__nav { display: flex; }
  .bar__nav a:not(.button) { color: var(--ink); padding: 10px 0; font-size: 1.25rem; }
  .bar__nav .button { margin-top: 10px; background: var(--blue-deep); color: #fff; }
}

/* ---------- Intro (hero) ----------
   One centred frame (--max wide) holds the copy, the blob and the illustration, so the composition is
   identical on every screen wider than the frame; wider windows only gain white margins. The blob and
   the picture share one box (.intro__visual) and the picture is sized from that box, so it always stays
   inside the blue, whatever the width. */
:root { --blob-inset: 24px; --blob-w: 55%; }
.intro { position: relative; overflow-x: clip; }
.intro__frame { position: relative; max-width: var(--max); margin-inline: auto; padding-top: var(--bar-h); }
.intro__grid { position: relative; z-index: 1; align-items: center; padding-top: clamp(24px, 4vw, 64px); padding-bottom: 170px; }
.intro__copy { grid-column: 1 / span 6; }
.intro__copy h1 { font-size: clamp(2.25rem, 1.2rem + 3.1vw, 3.6rem); }
.intro__copy .lead { margin-top: 28px; font-size: clamp(1.1875rem, 1.05rem + 0.4vw, 1.375rem); line-height: 1.55; color: var(--ink-2); max-width: 34ch; }
.intro__actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.intro__actions .button { min-width: 220px; min-height: 60px; padding-inline: 44px; font-size: 1.125rem; }

.intro__visual { position: absolute; z-index: 0; top: 0; bottom: -10px; right: var(--blob-inset); width: var(--blob-w); margin: 0; }
.intro__blob { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro__blob path { fill: var(--blue); }
.intro__visual picture { position: absolute; left: 54%; top: 46%; width: 72%; transform: translate(-50%, -50%); }
.intro__img { width: 100%; height: auto; }

/* 901-1199: the frame is the window, so the blob runs a little off its right edge and the menu button sits on it. */
@media (max-width: 1199px) {
  :root { --blob-inset: -24px; --blob-w: calc(56% + 24px); }
  .intro__grid { padding-bottom: 130px; }
  .intro__copy .lead { max-width: 27ch; }
  .intro__visual picture { width: 70%; left: 53%; }
}

/* up to 900: stacked. A splash across the top holds the picture; the copy follows (see "Hero on tablets and phones"). */
@media (max-width: 900px) {
  .intro__frame { display: flex; flex-direction: column; }
  .intro__grid { order: 2; padding-bottom: 0; }
  .intro__copy { grid-column: 1 / -1; }
  .intro__copy .lead { max-width: 34ch; }
  .intro__visual { position: relative; inset: auto; }
  .intro__blob { display: none; }
  .intro__visual picture { display: block; position: relative; inset: auto; transform: none; }
}

/* ---------- Pillars card ---------- */
.pillars { position: relative; z-index: 2; margin-top: -50px; }
.pillars__card {
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 -8px 28px -14px rgba(14, 27, 44, 0.16), 0 2px 6px rgba(14, 27, 44, 0.05), 0 30px 60px -30px rgba(14, 27, 44, 0.3); /* taste-skill-ignore: incumbent SSRD card */
  padding: clamp(32px, 4vw, 56px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px);
}
.pillar .icon3d { width: 132px; height: 132px; margin: -12px 0 -8px -16px; overflow: visible; }
.icon3d .i-float { animation: i-float 3.2s var(--ease-in-out) infinite alternate; }
.icon3d .i-shadow { transform-box: fill-box; transform-origin: center; animation: i-shadow 3.2s var(--ease-in-out) infinite alternate; }
.icon3d .i-scan { animation: i-scan 5s var(--ease-in-out) infinite; }
.icon3d .i-pulse { transform-box: fill-box; transform-origin: center; animation: i-pulse 1.8s var(--ease-out) infinite; }
.icon3d .i-l1 { animation: i-lift 3.6s var(--ease-in-out) infinite alternate; }
.icon3d .i-l2 { animation: i-lift-half 3.6s var(--ease-in-out) infinite alternate; }
@keyframes i-float { to { transform: translateY(-6px); } }
@keyframes i-shadow { to { transform: scale(0.8); opacity: 0.08; } }
@keyframes i-scan { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-22px, -14px); } }
@keyframes i-pulse { from { transform: scale(0.8); opacity: 0.9; } to { transform: scale(2.6); opacity: 0; } }
@keyframes i-lift { to { transform: translateY(-7px); } }
@keyframes i-lift-half { to { transform: translateY(-3px); } }
.pillar h3 { margin-top: 20px; }
.pillar p { margin-top: 10px; color: var(--ink-2); font-size: 1.0625rem; }
@media (max-width: 900px) { .pillars { margin-top: 56px; } .pillars__card { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.section { padding-top: var(--section); }
.head { grid-column: 1 / span 7; }
.head p { margin-top: 20px; color: var(--ink-2); font-size: 1.25rem; max-width: 46ch; }

/* about: teardrop picture */
.about .grid { align-items: center; row-gap: 48px; }
.about__media { grid-column: 1 / span 5; margin: 0; }
.about__media img { width: 100%; }
.about__text { grid-column: 7 / span 6; }
.about__text p { margin-top: 20px; color: var(--ink-2); max-width: 52ch; }
.about__text p:first-of-type { color: var(--ink); font-size: 1.25rem; }
/* tablet: picture and text stay side by side, the picture runs off the left edge */
.about { overflow-x: clip; }
@media (max-width: 900px) {
  .about__media { grid-column: 1 / span 6; margin-left: calc(-1 * var(--margin) - 12%); }
  .about__text { grid-column: 7 / -1; }
  .about__text p:first-of-type { font-size: 1.125rem; }
  .about__text p { font-size: 1rem; }
}
/* phone: text only */
@media (max-width: 560px) { .about__media { display: none; } .about__text { grid-column: 1 / -1; } }

/* what we do */
.services__list { grid-column: 1 / -1; list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px var(--gutter); }
.services__list .icon3d { width: 116px; height: 116px; margin: -10px 0 -6px -14px; overflow: visible; }
.icon3d .i-wave { transform-box: view-box; transform-origin: 61.5px 36px; animation: i-wave 2.6s var(--ease-in-out) infinite alternate; }
.icon3d .i-tassel { transform-box: view-box; transform-origin: 60px 52px; animation: i-swing 2.8s var(--ease-in-out) infinite alternate; }
.icon3d .i-card { transform-box: view-box; transform-origin: 47px 90px; transform: rotate(var(--r)); animation: i-fan 3.4s var(--ease-in-out) infinite alternate; }
.icon3d .i-cube { animation: i-lift 1.2s var(--ease-in-out) infinite alternate; }
@keyframes i-wave { from { transform: skewY(-5deg); } to { transform: skewY(5deg); } }
@keyframes i-swing { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@keyframes i-fan { to { transform: rotate(calc(var(--r) * 1.3)); } }
.services__list h3 { margin-top: 18px; font-size: 1.25rem; }
.services__list p { margin-top: 8px; color: var(--ink-2); font-size: 1.0625rem; }
@media (max-width: 1000px) { .services__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services__list { grid-template-columns: 1fr; } }

/* "We also build": a quiet tinted band */
.tinted { margin-top: var(--section); background: var(--mist); padding-block: var(--section); }

/* products */
.drop { aspect-ratio: 1; border-radius: 6% 50% 50% 50%; overflow: hidden; display: grid; place-items: center; }
.drop--alt { border-radius: 50% 6% 50% 50%; }

/* blog */
.posts { grid-column: 1 / -1; list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px var(--gutter); }
.post a { text-decoration: none; color: inherit; display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; }
.post .drop { background: var(--mist); }
.post .drop img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .post a:hover .drop img { transform: scale(1.04); } .post a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--blue); } }
.post .meta { margin-top: 10px; color: var(--ink-2); font-size: 0.9375rem; }
.post p { margin-top: 10px; color: var(--ink-2); font-size: 1.0625rem; }
.more { grid-column: 1 / -1; margin-top: 56px; display: flex; justify-content: center; }
@media (max-width: 1000px) { .posts { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .post a { grid-template-columns: 1fr; gap: 20px; } .post .drop { width: 160px; } }

/* contact call */
.call { position: relative; margin-top: var(--section); color: #fff; }
.call .wrap { text-align: center; }
/* the same white space above and below the blob: the footer sits one section gap under it */
.call { margin-bottom: var(--section); }
@media (min-width: 701px) { .call { margin-bottom: calc(var(--section) + 2.6vw); } } /* the wave's top crest sits lower in its box than the bottom one */
/* every page ends with the CTA, so the footer starts right under its gap */
.footer { padding-top: 0; }
.call__panel { position: relative; isolation: isolate; padding: clamp(80px, 9vw, 140px) clamp(24px, 6vw, 96px) clamp(88px, 10vw, 150px); }
/* the same wavy family as the hero blob; it hangs a little outside the panel box so the waves have room */
.call__blob { position: absolute; z-index: -1; inset: -6% -2.5%; width: 105%; height: 112%; }
.call__blob path { fill: var(--blue); }
@media (max-width: 700px) { .call__blob { display: none; } .call__panel { background: var(--blue); border-radius: 40px 120px 40px 120px; } }
.call h2 { max-width: 16ch; margin-inline: auto; }
.call p { margin: 22px auto 0; font-size: 1.5rem; line-height: 1.45; max-width: 34ch; color: #fff; }
.call .button { margin-top: 36px; }

/* footer */
.footer { padding-block: 72px 40px; }
.footer__grid { row-gap: 32px; align-items: start; }
.footer__brand { grid-column: 1 / span 4; }
.footer__brand img { height: 40px; width: auto; }
.footer__brand address { margin-top: 18px; font-style: normal; color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.footer__col { grid-column: span 2; font-size: 1rem; line-height: 1.9; }
.footer__col strong { display: block; font-weight: 600; margin-bottom: 6px; }
.footer__col a { color: var(--ink-2); text-decoration: none; }
.footer__col a:hover { color: var(--ink); text-decoration: underline; }
.footer__security { grid-column: 9 / span 4; background: var(--mist); border-radius: var(--radius); padding: 24px; }
.footer__security strong { display: block; font-weight: 600; }
.footer__security p { margin-top: 6px; font-size: 1rem; color: var(--ink-2); }
.footer__security .link { display: inline-block; margin-top: 10px; font-size: 1rem; }
.footer__legal { grid-column: 1 / -1; margin-top: 24px; padding-top: 24px; font-size: 0.9375rem; color: var(--ink-2); box-shadow: inset 0 1px 0 var(--line); }
@media (max-width: 1000px) { .footer__brand { grid-column: 1 / -1; } .footer__col { grid-column: span 4; } .footer__security { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__col { grid-column: span 6; } }

/* ---------- Dialog ---------- */
.dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,0.1), 0 40px 80px -24px rgba(0,0,0,0.4); transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), overlay 220ms allow-discrete, display 220ms allow-discrete; }
.dialog:not([open]) { opacity: 0; transform: scale(0.97) translateY(8px); transition-duration: 150ms; }
@starting-style { .dialog[open] { opacity: 0; transform: scale(0.97) translateY(8px); } }
.dialog::backdrop { background: rgba(14, 27, 44, 0.5); }
.dialog__inner { padding: clamp(24px, 4vw, 40px); }
.dialog__top { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.dialog h2 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); }
.dialog__intro { margin-top: 10px; color: var(--ink-2); }
.dialog__close { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--mist); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: transform 160ms var(--ease-out); }
.dialog__close:active { transform: scale(0.94); }
.form { margin-top: 24px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: 1rem; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink); background: var(--mist); border: 2px solid transparent; border-radius: 14px; padding: 12px 16px; transition: border-color 160ms ease, background-color 160ms ease; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--blue); background: #fff; }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: #c8312b; }
.field__error { display: none; font-size: 0.9375rem; color: #b42318; }
.field[data-invalid] .field__error { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 6px; }
.form__legal { font-size: 0.8125rem; color: var(--ink-2); max-width: 32ch; }
.button[aria-busy="true"] { opacity: 0.75; cursor: progress; }
.form-done { display: none; margin-top: 24px; }
.dialog[data-state="done"] .form, .dialog[data-state="done"] .dialog__intro { display: none; }
.dialog[data-state="done"] .form-done { display: block; }
.form-done p { margin-top: 8px; color: var(--ink-2); }

/* reduced motion: nothing moves, but state changes still fade so feedback is not lost */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-property: opacity, color, background-color, border-color, box-shadow, filter !important;
    transition-duration: 160ms !important;
    transition-delay: 0ms !important;
  }
}
/* single featured product */
.product-feature { grid-column: 1 / -1; margin-top: 56px; display: grid; grid-template-columns: 200px 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; background: var(--mist); border-radius: 40px 120px 40px 120px; padding: clamp(28px, 4vw, 56px); }
.product-feature .drop { width: 100%; }
.product-feature h3 { font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); }
.product-feature p { margin-top: 12px; color: var(--ink-2); font-size: 1.1875rem; max-width: 52ch; }
@media (max-width: 640px) { .product-feature { grid-template-columns: 1fr; border-radius: 32px 80px 32px 80px; } .product-feature .drop { width: 140px; } }

/* secondary button: outline pill with an arrow */
.button--outline { background: transparent; color: var(--blue-deep); box-shadow: inset 0 0 0 2px var(--blue-deep); padding-inline: 30px 26px; }
.button--outline .arrow { width: 20px; height: 20px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .button--outline:hover { background: var(--blue-deep); color: #fff; }
  .button--outline:hover .arrow { transform: translateX(4px); }
}
/* Menu on the blob: both are measured from the same centred frame, so the menu sits on the blob's middle at every width. */
@media (min-width: 1200px) {
  .bar .wrap { position: relative; }
  .bar__nav { position: absolute; top: 50%; left: calc(100% - var(--blob-inset) - var(--blob-w) / 2); transform: translate(-50%, -50%); margin: 0; }
}
/* ---------- Sticky header that turns into a glass bar on scroll ---------- */
html { scroll-padding-top: 100px; }
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 50; }
.bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.74);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 1px 0 rgba(14, 27, 44, 0.06), 0 12px 32px -20px rgba(14, 27, 44, 0.35);
  opacity: 0;
  transition: opacity 220ms var(--ease-out);
}
.bar.is-scrolled::before { opacity: 1; }
.bar__logo img { transform-origin: left center; transition: transform 300ms var(--ease-in-out); }
.bar.is-scrolled .bar__logo img { transform: scale(0.88); }

/* the contact button arrives a beat after the glass */
.bar__cta {
  margin-left: auto;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(12px) scale(0.96);
  transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s linear 240ms;
}
.bar.is-scrolled .bar__cta {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: none;
  transition: opacity 220ms var(--ease-out) 60ms, transform 260ms var(--ease-out) 60ms, visibility 0s;
}
.bar.is-scrolled .bar__cta:active { transform: scale(0.97); }

@media (min-width: 1200px) {
  /* white links on the blob; ink on the glass. The menu slides from the blob's middle to the bar's middle. */
  .bar__nav a:not(.button) { transition: color 220ms ease; }
  .bar.is-scrolled .bar__nav a:not(.button) { color: var(--ink); }
  .bar.is-scrolled .bar__nav a:not(.button):hover { text-decoration-color: var(--blue) !important; }
  .bar__nav { transition: left 300ms var(--ease-in-out); }
  .bar.is-scrolled .bar__nav { left: 50%; }
}
@media (max-width: 1199px) {
  .bar__cta { margin-left: auto; }
  .menu-toggle { margin-left: 12px; }
}
@media (max-width: 520px) { .bar__cta { display: none; } .menu-toggle { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) {
  .bar__nav, .bar__logo img, .bar__cta { transition: none !important; }
}
@media (max-width: 1199px) { .bar__logo { order: 0; } .bar__cta { order: 2; } .menu-toggle { order: 3; } .bar__nav { order: 4; } }
/* ---------- Subtle glass details (only where something sits underneath to show through) ---------- */

/* 1. pillars card: frosted where it rests on the blue blob */
.pillars__card {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  outline: 1px solid rgba(255, 255, 255, 0.7);
  outline-offset: -1px;
}

/* 4. blog: a small glass label on each teardrop picture */
.post .drop { position: relative; }
.drop-chip {
  position: absolute; left: 12%; bottom: 10%; z-index: 1;
  padding: 5px 12px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600; color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.5), 0 8px 18px -10px rgba(14, 27, 44, 0.45);
}

/* 5. contact dialog: the page behind softly blurs */
.dialog::backdrop { background: rgba(14, 27, 44, 0.32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* ---------- Critique fixes ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* section intros use the full width on small screens */
@media (max-width: 900px) { .head { grid-column: 1 / -1; } }
/* contact reachable from the mobile menu (desktop has the header button) */
/* "Contact" is a menu item that scrolls to the closing CTA; desktop has the header button instead */
.bar__nav-contact { display: none; }
@media (max-width: 1199px) { .bar__nav-contact { display: block; } }
/* white menu on the blue blob: bold 19px counts as large text (3:1 passes); white focus ring on blue */
@media (min-width: 1200px) {
  .bar__nav a:not(.button) { font-size: 1.1875rem; font-weight: 600; }
  .bar:not(.is-scrolled) .bar__nav a:focus-visible { outline-color: #fff; }
}
.call :focus-visible { outline-color: #fff; }
/* credentials line under the pillars */
.proof { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px; }
.proof li { display: flex; align-items: flex-start; gap: 10px; max-width: 520px; font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.proof svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.proof a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1.5px; text-decoration-color: var(--blue); }
@media (max-width: 760px) { .proof { justify-content: flex-start; flex-direction: column; } }
/* ---------- Language switcher: set apart from the page links ---------- */
.lang { display: inline-flex; align-items: center; gap: 2px; padding-left: 24px; border-left: 1.5px solid rgba(14, 27, 44, 0.22); color: var(--ink); }
.lang__label { display: none; }
.lang__icon { width: 18px; height: 18px; margin-right: 6px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.lang__item { min-width: 40px; padding: 5px 9px; border-radius: 999px; text-align: center; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.04em; line-height: 1.2; }
.lang__item.is-current { box-shadow: inset 0 0 0 1.5px currentColor; }
.bar__nav .lang a.lang__item { color: inherit; font-size: 0.9375rem; padding: 5px 9px; }
@media (min-width: 1200px) {
  .bar:not(.is-scrolled) .lang { color: #fff; border-left-color: rgba(255, 255, 255, 0.45); }
  .lang__items { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; transition: background-color 220ms ease; }
  .bar:not(.is-scrolled) .lang__items { background: rgba(14, 27, 44, 0.26); }
  /* menu links on the blob are 19px bold: large text, so 3:1 is the bar and white passes */
  .bar__nav a:not(.button) { font-weight: 700; }
  .lang { transition: color 220ms ease, border-color 220ms ease; }
}
@media (max-width: 1199px) {
  .lang { width: 100%; margin-top: 10px; padding: 14px 0 0; border-left: 0; border-top: 1px solid rgba(14, 27, 44, 0.12); gap: 6px; }
  .lang__label { display: inline; margin-right: auto; font-size: 1rem; color: var(--ink-2); }
  .lang__icon { order: -1; }
}

/* ---------- BlueOctopus product ---------- */
.drop--octopus { background: #fff; box-shadow: 0 24px 48px -28px rgba(27, 114, 166, 0.45); }
.drop--octopus img { width: 62%; height: auto; }
.product-feature p.product-feature__badge { margin: 0 0 10px; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-deep); }
.product-feature p.product-feature__tag { margin-top: 6px; font-size: 1.3125rem; font-weight: 500; color: var(--ink); }
.product-feature__actions { margin-top: 24px; }

/* ---------- Hero on tablets and phones (<=900): a blue splash across the top, white logo and menu, the animation centred in it ---------- */
.intro__blob--top { display: none; }
@media (max-width: 900px) {
  .intro__visual { order: 1; width: auto; margin: calc(-1 * var(--bar-h)) 0 0; padding: calc(var(--bar-h) + 10px) var(--margin) clamp(56px, 11vw, 100px); }
  .intro__blob--top { display: block; inset: 0; width: 100%; height: 100%; }
  .intro__visual picture { width: min(720px, 100%); margin: 0 auto; }
  .intro__grid { padding-top: 12px; }
  .bar:not(.is-scrolled) .bar__logo img { filter: brightness(0) invert(1); }
  .bar__logo img { transition: transform 300ms var(--ease-in-out), filter 220ms ease; }
}
/* the hamburger sits on the blue (blob on 901-1199, top splash below 900): white until the glass bar appears */
@media (max-width: 1199px) {
  .bar:not(.is-scrolled) .menu-toggle { color: #fff; }
  .bar:not(.is-scrolled) .menu-toggle:focus-visible { outline-color: #fff; }
}
@media (max-width: 1199px) and (hover: hover) and (pointer: fine) { .bar:not(.is-scrolled) .menu-toggle:hover { background: rgba(255, 255, 255, 0.14); } }

/* ---------- Pillars on one column (<=900): icon on the left, words on the right, so the card fills its width ---------- */
@media (max-width: 900px) {
  .pillars__card { gap: 28px; }
  .pillar { display: grid; grid-template-columns: 86px 1fr; column-gap: 18px; align-items: center; }
  .pillar .icon3d { max-width: none; }
  .pillar .icon3d { grid-row: 1 / span 2; width: 112px; height: 112px; margin: -14px -10px -14px -16px; align-self: center; }
  .pillar h3 { margin-top: 4px; align-self: end; }
  .pillar p { margin-top: 6px; align-self: start; grid-column: 2; }
}
@media (max-width: 420px) {
  .pillar { grid-template-columns: 68px 1fr; column-gap: 14px; }
  .pillar .icon3d { width: 92px; height: 92px; margin: -12px -12px -12px -14px; }
  .pillar h3 { font-size: 1.1875rem; }
  .pillar p { font-size: 1rem; }
}

/* ---------- "We also build" on phones: the same icon-left rows as the pillars card ---------- */
@media (max-width: 560px) {
  .services__list { margin-top: 40px; gap: 32px; }
  .services__list li { display: grid; grid-template-columns: 72px 1fr; column-gap: 14px; align-items: center; }
  .services__list .icon3d { grid-row: 1 / span 2; width: 92px; height: 92px; max-width: none; margin: -12px -12px -12px -4px; }
  .services__list h3 { margin-top: 0; align-self: end; font-size: 1.1875rem; }
  .services__list p { grid-column: 2; margin-top: 6px; align-self: start; font-size: 1rem; }
}

/* ---------- Primary button: SSRD blue, a soft convex gradient, a light that follows the pointer ----------
   Applies to every .button that is not the white or outline variant. */
.button:not(.button--white):not(.button--outline) {
  --gx: 50%; --gy: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--primary-grad);
  color: #fff; font-weight: 600;
  text-shadow: 0 1px 1px rgba(10, 50, 80, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(10, 60, 100, 0.18),
    0 1px 2px rgba(14, 27, 44, 0.14),
    0 10px 22px -10px var(--primary-shadow);
  transition: transform 160ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
/* the glint: a soft light under the pointer, faded out until hover */
.button:not(.button--white):not(.button--outline)::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120px circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 70%);
  opacity: 0; transition: opacity 220ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .button:not(.button--white):not(.button--outline):hover {
    transform: translateY(-1px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.36),
      inset 0 -1px 0 rgba(10, 60, 100, 0.18),
      0 2px 4px rgba(14, 27, 44, 0.14),
      0 16px 28px -12px var(--primary-shadow);
  }
  .button:not(.button--white):not(.button--outline):hover::before { opacity: 1; }
}
.button:not(.button--white):not(.button--outline):active {
  transform: scale(0.97);
  transition-duration: 120ms;
  box-shadow:
    inset 0 1px 2px rgba(10, 60, 100, 0.25),
    0 1px 2px rgba(14, 27, 44, 0.12),
    0 4px 10px -6px var(--primary-shadow);
}
.button:not(.button--white):not(.button--outline):focus-visible { outline-color: var(--blue-deep); }
/* the header nav set its own solid fills; let the primary style win */
@media (prefers-reduced-motion: reduce) {
  .button:not(.button--white):not(.button--outline):hover { transform: none; }
}

/* contact form: server-side failure message */
.form__status { margin: 0; font-size: 0.9375rem; color: #b42318; }
.form__status:empty { display: none; }
/* menu items never break inside ("O nas") */
.bar__nav a { white-space: nowrap; }
