@font-face {
  font-family: Caslon;
  src: url("assets/fonts/libre-caslon-display.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: DM Sans;
  src: url("assets/fonts/dm-sans.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --paper: #eeece5;
  --card: #f2f0e8;
  --ink: #292b27;
  --muted: #606255;
  --rule: #c9c8bf;
  --serif: Caslon, Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --gutter: clamp(24px, 5.6vw, 96px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: url("assets/paper.svg");
  opacity: 0.21;
  mix-blend-mode: multiply;
}
body.dialog-open {
  overflow: hidden;
}
::selection {
  background: #cacbbc;
  color: #252621;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
button {
  border: 0;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #666a4c;
  outline-offset: 6px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #666a4c;
  outline-offset: 2px;
}
button,
a,
summary {
  touch-action: manipulation;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
.wrap {
  width: min(100%, 1600px);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.eyebrow {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.6;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  padding: 14px 24px;
  background: var(--ink);
  color: var(--paper);
  z-index: 30;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -1.3px;
  white-space: nowrap;
}
.brand-symbol {
  display: inline-block;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("assets/quartio-symbol.svg") center / contain no-repeat;
  mask: url("assets/quartio-symbol.svg") center / contain no-repeat;
}
.wordmark-name > span:first-child {
  margin-left: 6px;
}
.wordmark-period {
  color: #767960;
}
.desktop-nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
  margin-right: 52px;
}
.desktop-nav a,
.header-contact {
  font-size: 11px;
}
.desktop-nav a {
  position: relative;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.desktop-nav a:hover::after {
  transform: scaleX(1);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 36px;
}
.header-news { display: none; font-size: 10px; }
.language-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
}
.language-switch button {
  padding: 9px 0;
  background: none;
  color: var(--muted);
  min-width: 23px;
  min-height: 40px;
  font-size: 10px;
}
.language-switch button[aria-pressed="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.language-switch > span {
  color: #939487;
}
.header-contact {
  display: flex;
  gap: 27px;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  padding-block: 12px;
}
.header-contact > span:last-child {
  font-size: 18px;
}
.hero {
  padding-top: 39px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  padding-top: 70px;
  padding-bottom: 87px;
  min-height: 532px;
}
.hero-copy {
  min-width: 0;
}
.hero-art {
  width: 100%;
  min-width: 0;
  mix-blend-mode: multiply;
  transform: translateY(12px);
}
.hero-illustration {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.12);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(66px, 6.45vw, 106px);
  line-height: 0.99;
  letter-spacing: -0.045em;
  position: relative;
  z-index: 2;
  white-space: nowrap;
}
.hero-title-second {
  font-size: 0.87em;
}
.hero-description {
  font-size: 14px;
  line-height: 1.9;
  max-width: 344px;
  margin: 28px 0 0;
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 52px;
  min-height: 49px;
  padding: 15px 22px;
  font-size: 11px;
  line-height: 1.5;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button > span:last-child {
  font-size: 19px;
  line-height: 1;
}
.button:hover {
  transform: translateY(-2px);
}
.button-dark {
  background: var(--ink);
  color: var(--paper);
}
.button-dark:hover {
  background: #45473d;
}
.hero .button {
  margin-top: 30px;
}
.card-scene {
  position: relative;
  min-width: 0;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  transform: translate(5px, 22px);
}
.business-card {
  width: 92%;
  max-width: 468px;
  aspect-ratio: 1.79;
  background-color: var(--card);
  background-image: url("assets/paper.svg");
  border: 1px solid #f7f5ed;
  border-right-color: #d3d1c7;
  border-bottom-color: #c9c6ba;
  padding: 24px 25px 18px;
  transform: rotate(-8deg);
  box-shadow:
    0 1px 0 #bdb9af,
    0 3px 0 -1px #dedbd1,
    1px 6px 3px -3px #c5c1b4,
    10px 24px 28px -15px #706d5e55,
    26px 55px 40px -30px #7b776966;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #42413b;
  text-shadow:
    0 1px 0 #fff,
    0 -0.4px 0 #6e6b5d55;
  position: relative;
  transition:
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.6s;
}
.card-scene:hover .business-card {
  transform: rotate(-5deg) translateY(-6px);
}
.card-shadow {
  position: absolute;
  width: 83%;
  height: 61%;
  left: 10%;
  top: 28%;
  background: #77736113;
  filter: blur(20px);
  transform: rotate(-8deg);
}
.card-top,
.card-bottom {
  display: flex;
  justify-content: space-between;
  font-size: clamp(6px, 0.61vw, 9px);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.015em;
}
.card-top > span:last-child {
  text-align: right;
}
.card-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 7px;
}
.card-symbol {
  width: clamp(28px, 3vw, 45px);
  height: clamp(28px, 3vw, 45px);
  align-self: center;
  margin-bottom: 2px;
}
.card-name {
  font-family: var(--serif);
  font-size: clamp(22px, 2.28vw, 36px);
  letter-spacing: 0.04em;
}
.card-bottom {
  font-size: clamp(5px, 0.56vw, 8px);
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  background: none;
  padding: 7px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
}
.text-link:hover {
  color: #6d7159;
}
.contact {
  background: #292d27;
  color: #eeece3;
  position: relative;
}
.contact-inner {
  padding-top: 49px;
  padding-bottom: 62px;
}
.contact-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.contact-top > .eyebrow {
  font-size: 9px;
  color: #c1c5b5;
}
.contact-top > span:last-child {
  font-size: 35px;
  font-weight: 200;
}
.contact h2 {
  font-family: var(--serif);
  font-size: clamp(52px, 6.4vw, 98px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin-top: 37px;
}
.contact h2 > span:last-child {
  color: #b9beaa;
}
.contact-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 45px;
}
.contact-email {
  font-size: 19px;
  font-weight: 300;
  border-bottom: 1px solid #7b8371;
  padding-bottom: 4px;
}
.contact-email:hover {
  color: #cdd6ba;
}
.contact-bottom p {
  font-size: 12px;
  line-height: 1.9;
  color: #bcc0b1;
  margin-top: 19px;
}
.button-light {
  background: #ecebdf;
  color: #292d27;
  gap: 58px;
}
.button-light:hover {
  background: #fffdf1;
}
.site-footer {
  display: flex;
  align-items: center;
  gap: 44px;
  min-height: 126px;
  padding-block: 26px;
}
.footer-wordmark {
  font-size: 26px;
}
.footer-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 42px;
}
.footer-right > .text-link {
  font-size: 9px;
  gap: 20px;
}
.footer-right > span {
  font-size: 9px;
  color: var(--muted);
}
dialog {
  width: min(580px, calc(100% - 32px));
  max-height: calc(100dvh - 40px);
  border: 1px solid #c5c4b9;
  background: var(--paper);
  padding: 30px 38px;
  color: var(--ink);
  box-shadow: 0 25px 120px #1116;
}
dialog::backdrop {
  background: #25282191;
  backdrop-filter: blur(5px);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-top .eyebrow {
  font-size: 8px;
}
.close-dialog {
  background: none;
  font-size: 29px;
  font-weight: 200;
  width: 42px;
  height: 42px;
  margin-right: -13px;
}
.dialog-top + h2 {
  font-family: var(--serif);
  font-size: 53px;
  line-height: 1.1;
  margin-top: 13px;
  letter-spacing: -0.03em;
}
#dialog-intro {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 12px;
  max-width: 350px;
}
#project-form {
  display: grid;
  gap: 17px;
  margin-top: 25px;
}
#project-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  background: #f8f6ee;
  border: 1px solid #c9c9bd;
  border-radius: 0;
  font-size: 13px;
  padding: 11px;
  line-height: 1.4;
}
textarea {
  resize: vertical;
  min-height: 88px;
  max-height: 230px;
}
textarea::placeholder {
  color: #797a6c;
  font-size: 11px;
}
.form-privacy {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.75;
}
.form-submit {
  width: 100%;
}
.form-fallback {
  border-top: 1px solid var(--rule);
  padding-top: 14px;
}
.form-fallback p {
  font-size: 11px;
  line-height: 1.8;
}
.form-fallback .text-link {
  margin-top: 7px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--paper);
  max-width: calc(100vw - 40px);
  padding: 13px 22px;
  font-size: 11px;
  line-height: 1.6;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  text-align: center;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
html[lang="pl"] .hero h1 {
  font-size: clamp(62px, 6vw, 100px);
}
html[lang="pl"] .hero-title-second {
  font-size: 0.9em;
}
@media (min-width: 1600px) {
  .hero {
    padding-top: 50px;
  }
  .hero-grid {
    padding-top: 88px;
    padding-bottom: 110px;
  }
  .card-scene {
    height: 370px;
  }
}
@media (max-width: 1050px) {
  .desktop-nav {
    margin-right: 12px;
    gap: 22px;
  }
  .header-actions {
    gap: 20px;
  }
  .site-header {
    gap: 20px;
  }
  .hero h1 {
    font-size: clamp(59px, 6.6vw, 74px);
  }
  .hero-grid {
    gap: 10px;
    padding-top: 61px;
    padding-bottom: 72px;
    min-height: 480px;
  }
  .business-card {
    padding: 20px;
  }
  .card-scene {
    height: 280px;
  }
  .site-footer {
    gap: 20px;
  }
}
@media (max-width: 760px) {
  :root {
    --gutter: 26px;
  }
  html {
    scroll-padding-top: 18px;
  }
  .site-header {
    height: 89px;
  }
  .wordmark {
    font-size: 25px;
    gap: 9px;
  }
  .wordmark .brand-symbol {
    width: 29px;
    height: 29px;
  }
  .desktop-nav {
    display: none;
  }
  .header-news { display: inline; }
  .header-actions {
    gap: 16px;
  }
  .header-contact {
    font-size: 10px;
    gap: 12px;
  }
  .language-switch {
    gap: 3px;
  }
  .hero {
    padding-top: 29px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 43px;
    padding-bottom: 48px;
  }
  .hero-art {
    max-width: 520px;
    justify-self: center;
    margin-top: 40px;
    transform: none;
  }
  .hero h1,
  html[lang="pl"] .hero h1 {
    font-size: clamp(61px, 10.7vw, 83px);
    letter-spacing: -0.04em;
  }
  .hero-title-second {
    font-size: 0.92em;
  }
  .hero-description {
    font-size: 14px;
    max-width: 320px;
    margin-top: 22px;
  }
  .hero .button {
    margin-top: 24px;
  }
  .button {
    font-size: 11px;
    min-height: 48px;
  }
  .card-scene {
    height: 330px;
    max-width: 480px;
    width: 100%;
    justify-self: center;
    margin-top: 30px;
    transform: translate(0, 0);
  }
  .business-card {
    max-width: 380px;
    width: 86%;
    padding: 23px;
    transform: rotate(-7deg);
  }
  .card-top {
    font-size: 7px;
  }
  .card-bottom {
    font-size: 6px;
  }
  .card-name {
    font-size: 29px;
  }
  .contact-inner {
    padding-top: 32px;
    padding-bottom: 40px;
  }
  .contact-top > .eyebrow {
    font-size: 8px;
    max-width: 250px;
  }
  .contact-top > span:last-child {
    font-size: 29px;
  }
  .contact h2 {
    font-size: clamp(49px, 8.3vw, 65px);
    margin-top: 28px;
  }
  .contact-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    margin-top: 30px;
  }
  .contact-email {
    font-size: 18px;
  }
  .contact-bottom p {
    font-size: 12px;
  }
  .button-light {
    gap: 52px;
  }
  .site-footer {
    flex-wrap: wrap;
    gap: 20px;
    padding-block: 29px;
  }
  .footer-wordmark {
    font-size: 25px;
  }
  .footer-right {
    gap: 22px;
    flex: 1;
    justify-content: space-between;
    margin-left: 0;
  }
  .footer-right > .text-link {
    font-size: 8px;
    gap: 14px;
  }
  .footer-right > span {
    font-size: 8px;
  }
  dialog {
    padding: 22px 25px;
  }
  .dialog-top + h2 {
    font-size: 44px;
  }
}
@media (max-width: 390px) {
  :root {
    --gutter: 22px;
  }
  .site-header {
    gap: 10px;
  }
  .wordmark {
    font-size: 23px;
  }
  .site-header .wordmark-name > span:first-child {
    display: block;
    margin-left: 0;
    font-family: var(--sans);
    font-size: 7px;
    line-height: 1.5;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }
  .site-header .wordmark-name {
    line-height: 1;
  }
  .site-header .wordmark-period {
    display: none;
  }
  .header-actions {
    gap: 13px;
  }
  .header-contact {
    gap: 9px;
  }
  .hero h1,
  html[lang="pl"] .hero h1 {
    font-size: clamp(48px, 14.6vw, 58px);
  }
  .hero-title-second {
    font-size: 0.87em;
  }
  .card-scene {
    height: 290px;
  }
  .card-name {
    font-size: 25px;
  }
  .business-card {
    width: 90%;
    padding: 20px;
  }
  .card-top {
    font-size: 6px;
  }
  .card-bottom {
    font-size: 5px;
  }
  .contact h2 {
    font-size: 46px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-right {
    flex-basis: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
  .card-scene:hover .business-card {
    transform: rotate(-8deg);
  }
}
/* Editorial illustrations keep the offer open to the visitor's own idea. */
.engagement {
  padding-top: 64px;
  padding-bottom: 45px;
  border-top: 1px solid #d0d0c5;
  background: #e6e6de;
}
.engagement h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 3.6vw, 54px);
  letter-spacing: -0.025em;
  line-height: 1.12;
}
.engagement-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px;
  padding: 0;
  margin: 36px 0 0;
}
.engagement-steps > li {
  min-width: 0;
}
.engagement-illustration {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  margin-bottom: 25px;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.2) brightness(1.12);
}
.engagement-steps h3 {
  font-family: var(--serif);
  font-size: 31px;
  border-top: 1px solid #c6c8ba;
  padding-top: 20px;
  margin-bottom: 13px;
}
.engagement-steps p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 315px;
}
.founder-row {
  margin-top: 64px;
  border-top: 1px solid #c6c8ba;
  padding-top: 56px;
}
.founder-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 70px;
  max-width: 1050px;
  margin-inline: auto;
}
.founder {
  margin: 0;
  min-width: 0;
  text-align: center;
}
.founder-visual {
  position: relative;
  aspect-ratio: 1.05;
  isolation: isolate;
}
.founder-portrait {
  position: absolute;
  top: 0;
  left: 6%;
  width: 55%;
  aspect-ratio: 4 / 5;
  border: 8px solid var(--card);
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 2px 4px #39372e0d, 5px 12px 22px #39372e14;
  transform: rotate(-3deg);
}
.founder-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
  filter: grayscale(1);
}
.founder-bartek .founder-portrait img {
  transform: scale(1.25);
  transform-origin: 48% 20%;
}
.founder-michal .founder-portrait {
  transform: rotate(2deg);
}
.founder-michal .founder-portrait img {
  object-position: center;
}
.founder .card-scene {
  position: absolute;
  right: 3%;
  bottom: 0;
  width: 80%;
  max-width: none;
  height: auto;
  aspect-ratio: 1.79;
  margin: 0;
  transform: none;
}
.founder .business-card {
  width: 100%;
  max-width: none;
  padding: 22px;
  transform: rotate(-6deg);
}
.founder .card-shadow {
  transform: rotate(-6deg);
}
.founder-michal .business-card,
.founder-michal .card-shadow {
  transform: rotate(6deg);
}
.founder .card-scene:hover .business-card {
  transform: rotate(-3deg) translateY(-6px);
}
.founder-michal .card-scene:hover .business-card {
  transform: rotate(3deg) translateY(-6px);
}
.founder .card-name {
  font-size: clamp(23px, 2.3vw, 34px);
  letter-spacing: -0.01em;
}
.founder .card-top {
  font-size: 7px;
}
.founder .card-bottom {
  font-size: 6px;
}
.founder figcaption {
  margin-top: 32px;
  font-family: var(--serif);
  font-size: 28px;
}
@media (max-width: 1050px) {
  .engagement-steps {
    gap: 30px;
  }
  .founder-cards {
    gap: 30px;
  }
}
@media (max-width: 760px) {
  .engagement {
    padding-top: 43px;
    padding-bottom: 35px;
  }
  .engagement h2 {
    font-size: 37px;
  }
  .engagement-steps {
    grid-template-columns: 1fr;
    gap: 38px;
    margin-top: 30px;
  }
  .engagement-illustration {
    max-width: 390px;
    margin: 0 auto 20px;
  }
  .engagement-steps h3 {
    font-size: 29px;
  }
  .engagement-steps p {
    max-width: none;
  }
  .founder-row {
    margin-top: 38px;
    padding-top: 38px;
  }
  .founder-cards {
    grid-template-columns: 1fr;
    max-width: 430px;
    gap: 48px;
  }
  .founder-portrait {
    border-width: 6px;
  }
  .founder .business-card {
    padding: 20px;
  }
  .founder .card-name {
    font-size: clamp(23px, 6.1vw, 30px);
  }
  .founder figcaption {
    margin-top: 28px;
    font-size: 25px;
  }
}
@media (max-width: 390px) {
  .engagement h2 {
    font-size: 34px;
  }
  .founder .card-top {
    font-size: 5px;
  }
  .founder .card-bottom {
    font-size: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .founder .card-scene:hover .business-card {
    transform: rotate(-6deg);
  }
  .founder-michal .card-scene:hover .business-card {
    transform: rotate(6deg);
  }
}
