@font-face {
  font-family: 'Fjalla One';
  src: url('./assets/fonts/FjallaOne-Latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Wix Madefor Display';
  src: url('./assets/fonts/font-07.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  font-family: 'Fjalla One', Arial, Helvetica, sans-serif;
  color: #181918;
  background: #f7f7f2;
  font-synthesis: none;
  letter-spacing: .04em;
}

* { box-sizing: border-box; }
body { margin: 0; font-variant-emoji: text; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
a:focus-visible,
button:focus-visible { outline: 2px solid #fb4c25; outline-offset: 5px; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 20;
  padding: 12px;
  background: white;
}
.skip-link:focus { top: 10px; }

.case-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 20px;
  border-bottom: 1px solid #d9d9d1;
  background: #f7f7f2;
  font-size: 12px;
  letter-spacing: .07em;
}
.back-link { display: flex; min-height: 40px; align-items: center; gap: 12px; }
.case-header-title {
  flex: 1;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.case-counter { font-variant-numeric: tabular-nums; white-space: nowrap; }
.case-accessible-title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.artwork-reader { width: 100%; max-width: 2000px; margin: 0 auto; overflow: hidden; }
.raster-reader img { display: block; width: 100%; height: auto; margin: 0; border: 0; }
.figma-canvas { position: relative; }
.figma-video { position: absolute; overflow: hidden; }
.figma-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
[data-case="fintech-platform"] .artwork-reader { background: #000; }
[data-case="ineco-bank"] .artwork-reader { background: #f6f7f4; }
[data-case="zaymer"] .artwork-reader { background: #fff; }

.case-transcript { max-width: 800px; margin: 0 auto; padding: 32px 24px; line-height: 1.6; }
.case-transcript section { margin: 0 0 52px; }
.case-transcript h2,
.case-transcript p { font-size: 18px; }

.case-footer {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: end;
  gap: 32px;
  margin: 0;
  padding: 40px 24px;
  border-top: 1px solid #d9d9d1;
  background: #f7f7f2;
}
.case-prev,
.contact-link { font-size: 13px; line-height: 1.5; }
.contact-link { text-align: right; }
.next-case span {
  display: block;
  margin-bottom: 18px;
  color: #666;
  font-size: 11px;
  letter-spacing: .1em;
}
.next-case strong {
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.05;
}
.next-case:hover strong,
.back-link:hover,
.contact-link:hover { color: #fb4c25; }

.fintech-motion-cover { position: absolute; top: 0; left: 0; width: 100%; overflow: hidden; background: #000; container-type: inline-size; }
.fintech-motion-cover video { display: block; width: 100%; height: 100%; object-fit: cover; }
.fintech-cover-copy { position: absolute; inset: 0; color: #fff; font-family: 'Wix Madefor Display', Arial, sans-serif; font-weight: 400; pointer-events: none; }
.fintech-cover-copy p { margin: 0; }
.fintech-cover-brand { position: absolute; top: 7.98005%; left: 4%; right: 4%; display: flex; align-items: center; justify-content: space-between; font-size: 1.75cqw; line-height: 1.875cqw; letter-spacing: -.035cqw; }
.fintech-cover-label { position: absolute; top: 23.8653%; left: 4%; font-size: .875cqw; line-height: 1.125cqw; letter-spacing: .075cqw; color: #775aff; }
.fintech-cover-brand span:last-child { font-size: .875cqw; line-height: 1.125cqw; letter-spacing: .075cqw; color: #775aff; }
.fintech-cover-rule { position: absolute; left: 4%; width: 92%; height: .0625cqw; background: #775aff; }
.rule-top { top: 17.7556%; }
.rule-bottom { top: 77.8304%; }
.fintech-cover-title { position: absolute; top: 30.0998%; left: 4%; font-size: 6.875cqw; line-height: 7.3125cqw; letter-spacing: -.1375cqw; }
.fintech-cover-lead { position: absolute; top: 63.2668%; left: 4%; font-size: 1.5cqw; line-height: 2.125cqw; }
.fintech-cover-facts { position: absolute; top: 83.9401%; left: 4%; right: 4%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; }
.fintech-cover-facts span { display: block; margin-bottom: .75cqw; font-size: .875cqw; line-height: 1.125cqw; letter-spacing: .075cqw; }
.fintech-cover-facts p { font-size: 1.5cqw; line-height: 2.125cqw; }

@media (max-width: 760px) {
  .case-header {
    min-height: 48px;
    padding: 6px 12px;
    gap: 8px;
  }
  .back-link span,
  .case-counter { font-size: 10px; }
  .case-header-title { font-size: 10px; }
  .case-footer { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; padding: 28px 16px; }
  .case-prev { order: 2; }
  .contact-link { order: 3; text-align: left; }
  .next-case strong { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
