/* BOK tiskara — karta boja: vrh s lepezom boja, popis usluga, B·O·K vrijednosti. */

:root {
  --ink: #16161a;
  --soft: #5b5b66;
  --line: #e7e7ec;
  --coral: #ff5a5f;
  --amber: #ffb703;
  --teal: #1f9e8f;
  --azure: #3a6bff;
  --violet: #7b3fe4;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
::selection { background: var(--amber); color: var(--ink); }
:focus-visible { outline: 3px solid var(--azure); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }

.wrap { max-width: 1320px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 48px); }

.code { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: #fff; padding: 12px 16px; }

/* ---------- Header ---------- */

.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-block: 14px; }
.logo img { height: 38px; width: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 22px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; padding-block: 10px; }
.nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.top-tools { display: flex; align-items: center; gap: 16px; }
.phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.lang { display: flex; border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px; font-weight: 700; font-size: 13px; }
.lang a { display: grid; place-items: center; width: 44px; height: 36px; border-radius: 999px; text-decoration: none; }
.lang a[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- Hero ---------- */

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
  gap: 40px clamp(32px, 5vw, 80px);
  align-items: start;
  padding-block: clamp(48px, 7vw, 104px) clamp(64px, 8vw, 112px);
}

.hero .wrap > div:first-child { position: relative; z-index: 3; }
.hero h1 { font-size: clamp(2.8rem, 5.4vw, 4.6rem); line-height: 0.9; }
.hero h1 span { display: block; color: var(--azure); font-size: 1.3em; text-transform: uppercase; letter-spacing: -0.045em; line-height: 0.86; }
.hero .lead { margin: 28px 0 0; max-width: 25em; font-size: 20px; color: var(--soft); }

.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; padding: 0; list-style: none; }
.facts li { padding: 9px 16px; border-radius: 999px; background: var(--c); color: var(--on, var(--ink)); font-weight: 700; font-size: 14px; }
.facts li:nth-child(1) { --c: var(--coral); }
.facts li:nth-child(2) { --c: var(--amber); }
.facts li:nth-child(3) { --c: var(--teal); }
.facts li:nth-child(4) { --c: var(--azure); --on: #fff; }
.facts li:nth-child(5) { --c: var(--violet); --on: #fff; }

.fan { position: relative; padding-left: 110px; }
.fan .chip-card {
  position: absolute;
  left: 0;
  top: 60px;
  width: 150px;
  height: 420px;
  border-radius: 14px;
  background: var(--c);
  transform-origin: 100% 100%;
  transform: rotate(var(--r));
  transition: transform 0.7s var(--ease-out);
}
.fan:hover .chip-card { transform: rotate(calc(var(--r) * 1.5)); }
.fan .c1 { --c: var(--coral); --r: -18deg; }
.fan .c2 { --c: var(--amber); --r: -14deg; }
.fan .c3 { --c: var(--teal); --r: -10deg; }
.fan .c4 { --c: var(--azure); --r: -6deg; }
.fan .c5 { --c: var(--violet); --r: -2deg; }

.tagcard {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), 0 30px 70px rgba(22, 22, 26, 0.16);
}
.tagcard .band {
  height: 120px;
  background: var(--shirt, #fff);
  border-bottom: 1.5px solid var(--ink);
  position: relative;
  transition: background-color 0.35s ease-out;
}
.tagcard .band::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--ink);
}
.tagcard .band .code { position: absolute; left: 20px; bottom: 14px; padding: 4px 10px; background: #fff; border-radius: 999px; }
.tagcard .body { padding: 22px clamp(18px, 2.4vw, 28px) 26px; }
.tagcard h2 { font-size: 26px; }
.tagcard .body > p { margin: 2px 0 18px; font-size: 14px; color: var(--soft); }

/* ---------- Form ---------- */

.quote { display: flex; flex-direction: column; gap: 20px; }
.quote fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quote legend,
.quote .field > span:first-child { display: block; padding: 0 0 9px; font-size: 13px; font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  border: 1.5px solid #cfd0d6;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.15s ease-out, color 0.15s ease-out, border-color 0.15s ease-out;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--azure); outline-offset: 2px; }

.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; background: var(--sw); }
.swatch--any { background: conic-gradient(var(--coral), var(--amber), var(--teal), var(--azure), var(--violet), var(--coral)); }

.select { position: relative; display: flex; align-items: center; }
.select select {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 46px;
  border: 1.5px solid #cfd0d6;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.select select:hover { border-color: var(--ink); }
.select select:focus-visible { outline: 3px solid var(--azure); outline-offset: 1px; }
.select .swatch { position: absolute; left: 16px; width: 20px; height: 20px; color: var(--ink); pointer-events: none; transition: background-color 0.3s ease-out; }
.select .chev { position: absolute; right: 16px; pointer-events: none; }

.pots { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.pot { position: relative; }
.pot input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pot span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1.5px solid #cfd0d6;
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background-color 0.2s ease-out, color 0.2s ease-out, transform 0.2s ease-out;
}
.pot.is-lit span { background: var(--c); border-color: var(--c); color: var(--on, #fff); }
.pot:hover span { transform: scale(1.08); }
.pot input:focus-visible + span { outline: 3px solid var(--azure); outline-offset: 2px; }
.pots-note { margin: 8px 0 0; font-size: 13px; color: var(--soft); }

.row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; }
.field input[type="text"],
.field input[type="email"],
.field input[type="number"] {
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid #cfd0d6;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.field input:hover { border-color: #9a9ba5; }
.field input::placeholder { color: #707078; }
.field input:focus-visible { outline: 3px solid var(--azure); outline-offset: 1px; border-color: var(--azure); }

.drop {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1.5px dashed #9a9ba5;
  border-radius: 10px;
  font-size: 14px;
  color: var(--soft);
}
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pick { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }
.drop:hover .pick { background: var(--azure); }
.drop:focus-within .pick { outline: 3px solid var(--azure); outline-offset: 2px; }
.drop-file { flex: 1 1 100%; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.drop-file:empty { display: none; }

.summary { margin: 0; font-size: 14px; color: var(--soft); }
.summary strong { color: var(--ink); }

.status { margin: 0; padding: 12px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.status:empty { display: none; }
.status--ok { background: #146b5f; color: #fff; }
.status--err { background: #c42b2b; color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease-out;
}
.btn:hover { background: var(--azure); }
.quote-alt { margin: 0; font-size: 13px; color: var(--soft); text-align: center; }

/* ---------- Sections ---------- */

.sec { padding-block: clamp(72px, 9vw, 128px); }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(2.4rem, 4.8vw, 4.2rem); line-height: 0.95; }
.sec-head p { margin: 0; max-width: 28em; color: var(--soft); }

/* services index (hover shows a photo) */
.index { margin: 0; padding: 0; list-style: none; border-top: 1.5px solid var(--ink); }
.index li { border-bottom: 1.5px solid var(--ink); }
.index a {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 16px 32px;
  align-items: center;
  padding: 28px 0;
  text-decoration: none;
  transition: padding 0.3s var(--ease-out), color 0.2s;
}
.index h3 { font-size: clamp(2rem, 4.2vw, 3.6rem); line-height: 1; }
.index p { margin: 0; color: var(--soft); }
.index .thumb { display: none; }
.index a:hover { padding-left: 18px; color: var(--c); }
.index li:nth-child(1) { --c: #e0393e; }
.index li:nth-child(2) { --c: #b57a00; }
.index li:nth-child(3) { --c: var(--azure); }
.index li:nth-child(4) { --c: #167a6e; }
.floater {
  position: fixed;
  z-index: 40;
  width: 300px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9) rotate(-3deg);
  transition: opacity 0.25s ease-out, transform 0.35s var(--ease-out);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.floater.on { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }

/* B·O·K values */
.bok { padding-block: clamp(72px, 9vw, 128px); }
.bok h2 { font-size: clamp(2.4rem, 4.8vw, 4.2rem); line-height: 0.95; margin-bottom: 48px; }
.bok-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.bok-row li { border-radius: 24px; padding: clamp(24px, 3vw, 36px); background: var(--c); color: var(--on, var(--ink)); display: flex; flex-direction: column; gap: 14px; min-height: 380px; }
.bok-row .letter { font-size: clamp(7rem, 14vw, 12rem); font-weight: 900; line-height: 0.8; letter-spacing: -0.06em; }
.bok-row h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); margin-top: auto; }
.bok-row p { margin: 0; font-size: 17px; }
.bok-row li:nth-child(1) { --c: var(--coral); }
.bok-row li:nth-child(2) { --c: var(--amber); }
.bok-row li:nth-child(3) { --c: var(--azure); --on: #fff; }

/* gallery with shirt-colour swatches */
.prints { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 16px; margin: 0; padding: 0; list-style: none; }
.prints figure { margin: 0; }
.prints img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.prints figcaption { display: flex; align-items: center; gap: 10px; padding-top: 10px; font-weight: 600; font-size: 15px; }
.prints figcaption i { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--ink); background: var(--sw); flex: none; }
.prints figcaption .code { margin-left: auto; color: var(--soft); }
.clients { margin: 40px 0 0; color: var(--soft); }
.clients strong { color: var(--ink); }

/* process */
.process { background: var(--ink); color: #fff; border-radius: 28px; margin-inline: clamp(12px, 2vw, 24px); }
.process ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.process li { border-radius: 16px; padding: 22px; background: #23232a; }
.process li .code { display: inline-block; margin-bottom: 18px; padding: 4px 10px; border-radius: 999px; background: var(--c); color: var(--on, var(--ink)); }
.process li:nth-child(1) { --c: var(--coral); }
.process li:nth-child(2) { --c: var(--amber); }
.process li:nth-child(3) { --c: var(--teal); }
.process li:nth-child(4) { --c: var(--azure); --on: #fff; }
.process h3 { font-size: 22px; margin-bottom: 6px; }
.process p { margin: 0; color: #c2c2cc; }
.process .sec-head p { color: #c2c2cc; }
.process .btn { margin-top: 32px; background: #fff; color: var(--ink); }
.process .btn:hover { background: var(--amber); }
.process :focus-visible { outline-color: var(--amber); }

/* footer */
.foot .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; padding-block: 56px; font-size: 15px; color: var(--soft); }
.foot strong { color: var(--ink); }

/* ---------- Motion & responsive ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .clock line { animation: none; }
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .wrap > div:first-child { position: relative; top: 0; }
  .fan { padding-left: 0; }
  .fan .chip-card { display: none; }
  .index a { grid-template-columns: 1fr; }
  .index .thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
  .index svg, .floater { display: none; }
  .bok-row { grid-template-columns: 1fr; }
  .bok-row li { min-height: 0; }
  .prints { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { order: 3; width: 100%; justify-content: space-between; gap: 0 10px; font-size: 14px; }
  .phone { display: none; }
}

@media (max-width: 560px) {
  .pots { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* hero: illustrated facts (js/boje.js links the 12 inks to the tag) */
.hero-copy > * { max-width: 600px; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}
.st {
  border-radius: 20px;
  padding: 18px 18px 16px;
  background: var(--c, #fff);
  color: var(--on, var(--ink));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 210px;
  padding: 24px;
}
.st p { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.25; }
.st p b { display: block; font-size: clamp(44px, 4.4vw, 64px); font-weight: 900; letter-spacing: -0.05em; line-height: 0.95; font-variant-numeric: tabular-nums; }
.st svg { fill: currentColor; }

.st-inks { grid-column: 1 / -1; border: 1.5px solid var(--line); min-height: 230px; }
.st-day { grid-column: 1 / -1; }
.st-people { grid-column: 1 / -1; flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
.inks { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0; padding-right: 8px; }
.ink {
  aspect-ratio: 1;
  margin-right: -8px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
  transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), transform 0.45s var(--ease-out);
}
.ink.is-lit { background: var(--c); border-color: #fff; }
.ink.pop { transform: translateY(-6px) scale(1.08); }
.ink-caption { display: flex; align-items: baseline; gap: 10px; }
.ink-caption .ink-count { display: inline; font-size: clamp(44px, 4.4vw, 64px); min-width: 1.4ch; padding-right: 4px; letter-spacing: -0.03em; }
.ink-caption .ink-text { color: var(--soft); font-weight: 500; }

.st-clock { --c: var(--azure); --on: #fff; }
.clock { width: 96px; height: 96px; }
.clock .hand-m { transform-origin: 50px 50px; animation: tick 6s linear infinite; }
.clock .hand-h { transform-origin: 50px 50px; animation: tick 72s linear infinite; }
@keyframes tick { to { transform: rotate(360deg); } }

.st-min { --c: var(--coral); }
.tees { display: grid; grid-template-columns: repeat(5, minmax(0, 34px)); gap: 6px 8px; }
.tees svg { width: 100%; height: auto; }

.st-day { --c: var(--amber); }
.st-day { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
.st-day p { flex: 0 0 auto; }
.bars { flex: 1 1 220px; display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.bars i { flex: 1; border-radius: 3px; background: rgba(22, 22, 26, 0.85); height: var(--h, 60%); }
.bars i:nth-child(3n) { --h: 90%; } .bars i:nth-child(4n+1) { --h: 45%; } .bars i:nth-child(5n+2) { --h: 75%; } .bars i:nth-child(7n) { --h: 100%; }

.st-people { --c: var(--violet); --on: #fff; }
.people { order: 2; flex: 1 1 260px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: flex-end; gap: 6px; }
.people svg { width: 30px; height: 33px; }
.people span { font-size: 40px; font-weight: 900; line-height: 33px; margin-left: 4px; }

@media (max-width: 960px) {
  .st { min-height: 170px; padding: 18px; }
  .bars { height: 70px; }
  .people svg { width: 20px; height: 22px; }
  .people span { font-size: 26px; line-height: 22px; }
  .clock { width: 64px; height: 64px; }
}

/* ---------- Equal columns: the facts stretch to the height of the tag ---------- */

@media (min-width: 961px) {
  .hero .wrap { align-items: stretch; }
  .hero .wrap > div:first-child { display: flex; flex-direction: column; }
  .stats { flex: 1; grid-auto-rows: minmax(0, 1fr); }
  .st, .st-inks { min-height: 0; }
  .bars { height: auto; align-self: stretch; min-height: 60px; }
}

/* ---------- Motion ---------- */

/* Load: headline rises, the fan opens, the tag settles, the tiles pop in. */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes fanout { from { transform: rotate(0deg); } }
@keyframes settle-in { from { opacity: 0; transform: translateY(40px) rotate(2deg); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(24px) scale(0.94); } }
@keyframes dot-in { from { transform: scale(0); } }

.hero h1 { animation: rise 0.9s var(--ease-out) both; }
.hero h1 span { animation: rise 0.9s var(--ease-out) 0.12s both; }
.hero .lead { animation: rise 0.9s var(--ease-out) 0.22s both; }
.fan .chip-card { animation: fanout 1.2s var(--ease-out) both; }
.fan .c1 { animation-delay: 0.35s; }
.fan .c2 { animation-delay: 0.3s; }
.fan .c3 { animation-delay: 0.25s; }
.fan .c4 { animation-delay: 0.2s; }
.fan .c5 { animation-delay: 0.15s; }
.tagcard { animation: settle-in 1s var(--ease-out) 0.1s both; }
.st { animation: pop-in 0.8s var(--ease-out) both; }
.st:nth-child(1) { animation-delay: 0.35s; }
.st:nth-child(2) { animation-delay: 0.45s; }
.st:nth-child(3) { animation-delay: 0.55s; }
.st:nth-child(4) { animation-delay: 0.65s; }
.st:nth-child(5) { animation-delay: 0.75s; }
.inks .ink { animation: dot-in 0.6s var(--ease-out) both; }
.inks .ink:nth-child(1) { animation-delay: 0.10s; } .inks .ink:nth-child(2) { animation-delay: 0.13s; }
.inks .ink:nth-child(3) { animation-delay: 0.16s; } .inks .ink:nth-child(4) { animation-delay: 0.19s; }
.inks .ink:nth-child(5) { animation-delay: 0.22s; } .inks .ink:nth-child(6) { animation-delay: 0.25s; }
.inks .ink:nth-child(7) { animation-delay: 0.28s; } .inks .ink:nth-child(8) { animation-delay: 0.31s; }
.inks .ink:nth-child(9) { animation-delay: 0.34s; } .inks .ink:nth-child(10) { animation-delay: 0.37s; }
.inks .ink:nth-child(11) { animation-delay: 0.40s; } .inks .ink:nth-child(12) { animation-delay: 0.43s; }
.bars i { transform-origin: 50% 100%; animation: grow 1s var(--ease-out) both; }
.bars i:nth-child(odd) { animation-delay: 0.7s; }
.bars i:nth-child(even) { animation-delay: 0.85s; }
@keyframes grow { from { transform: scaleY(0); } }

/* Scroll: sections reveal as they enter (js/anim.js adds .rv and .in). */
.js-anim :is(.sec-head, .index li, .bok h2, .bok-row li, .prints li, .clients, .process li, .process .btn):not(.in) { opacity: 0; transform: translateY(32px); }
.js-anim .rv { opacity: 0; transform: translateY(32px); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
.js-anim .rv.in { opacity: 1; transform: none; }
.js-anim .index li.rv { transform: translateX(-40px); }
.js-anim .index li.rv.in { transform: none; }
.js-anim .bok-row li.rv .letter { display: inline-block; transform: scale(0.4) rotate(-12deg); transition: transform 0.9s cubic-bezier(0.34, 1.56, 0.64, 1); transition-delay: calc(var(--d, 0s) + 0.15s); }
.js-anim .bok-row li.rv.in .letter { transform: none; }
.js-anim .prints li.rv { transform: translateY(32px) rotate(-2deg); }
.js-anim .prints li.rv.in { transform: none; }
.prints img { transition: transform 0.6s var(--ease-out); }
.prints li:hover img { transform: scale(1.03) rotate(-1deg); }
.bok-row li { transition: transform 0.5s var(--ease-out); }
.bok-row li:hover { transform: translateY(-6px) rotate(-1deg); }

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero h1 span, .hero .lead, .fan .chip-card, .tagcard, .st, .inks .ink, .bars i { animation: none; }
  .js-anim .rv, .js-anim .rv .letter { opacity: 1 !important; transform: none !important; }
}

@media (min-width: 961px) {
  .st { padding: 20px 22px; gap: 12px; }
  .st p b, .ink-caption .ink-count { font-size: clamp(36px, 3.4vw, 52px); }
  .clock { width: 72px; height: 72px; }
  .tees { grid-template-columns: repeat(5, minmax(0, 28px)); }
  .people svg { width: 24px; height: 26px; }
  .people span { font-size: 32px; line-height: 26px; }
  .stats { margin-top: 36px; gap: 12px; }
}

/* ---------- Hover ---------- */

@media (hover: hover) {
  /* header */
  .logo img { transition: transform 0.5s var(--ease-out); }
  .logo:hover img { transform: rotate(-4deg) scale(1.05); }
  .nav a { position: relative; text-decoration: none !important; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--azure); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease-out); }
  .nav a:hover::after { transform: scaleX(1); transform-origin: left; }
  .nav a:nth-child(2)::after { background: var(--coral); }
  .nav a:nth-child(3)::after { background: var(--amber); }
  .nav a:nth-child(4)::after { background: var(--teal); }
  .nav a:nth-child(5)::after { background: var(--violet); }
  .lang a { transition: background-color 0.2s, color 0.2s, transform 0.3s var(--ease-out); }
  .lang a:not([aria-current]):hover { background: var(--amber); transform: translateY(-1px); }
  .phone { transition: color 0.2s; }
  .phone:hover { color: var(--azure); }

  /* headline: TISKAMO letters bounce one by one is too much; tilt the word instead */
  .hero h1 span { transition: transform 0.6s var(--ease-out), color 0.3s; transform-origin: left bottom; }
  .hero h1:hover span { transform: skewX(-6deg) translateX(6px); color: var(--violet); }

  /* fan follows the tag */
  .fan:hover .c1 { transform: rotate(-30deg); }
  .fan:hover .c2 { transform: rotate(-23deg); }
  .fan:hover .c3 { transform: rotate(-16deg); }
  .fan:hover .c4 { transform: rotate(-9deg); }
  .fan:hover .c5 { transform: rotate(-2deg); }

  /* stat tiles: lift, plus a movement that belongs to each tile */
  .st { transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); }
  .st:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 18px 40px rgba(22, 22, 26, 0.16); }
  .st:nth-child(even):hover { transform: translateY(-6px) rotate(0.6deg); }

  .st-inks:hover .ink.is-lit { animation: wave 0.9s var(--ease-out) both; }
  .st-inks .ink:nth-child(1) { --w: 0s; } .st-inks .ink:nth-child(2) { --w: .04s; } .st-inks .ink:nth-child(3) { --w: .08s; }
  .st-inks .ink:nth-child(4) { --w: .12s; } .st-inks .ink:nth-child(5) { --w: .16s; } .st-inks .ink:nth-child(6) { --w: .2s; }
  .st-inks .ink:nth-child(7) { --w: .24s; } .st-inks .ink:nth-child(8) { --w: .28s; } .st-inks .ink:nth-child(9) { --w: .32s; }
  .st-inks .ink:nth-child(10) { --w: .36s; } .st-inks .ink:nth-child(11) { --w: .4s; } .st-inks .ink:nth-child(12) { --w: .44s; }
  .st-inks:hover .ink { animation-delay: var(--w) !important; }

  .st-clock:hover .hand-m { animation-duration: 0.8s; }
  .st-clock:hover .hand-h { animation-duration: 9.6s; }

  .st-min .tees svg { transition: transform 0.4s var(--ease-out); }
  .st-min:hover .tees svg { animation: hop 0.6s var(--ease-out) both; }
  .st-min .tees svg:nth-child(2) { animation-delay: .04s; } .st-min .tees svg:nth-child(3) { animation-delay: .08s; }
  .st-min .tees svg:nth-child(4) { animation-delay: .12s; } .st-min .tees svg:nth-child(5) { animation-delay: .16s; }
  .st-min .tees svg:nth-child(6) { animation-delay: .2s; } .st-min .tees svg:nth-child(7) { animation-delay: .24s; }
  .st-min .tees svg:nth-child(8) { animation-delay: .28s; } .st-min .tees svg:nth-child(9) { animation-delay: .32s; }
  .st-min .tees svg:nth-child(10) { animation-delay: .36s; }

  .st-day:hover .bars i { animation: equalise 0.9s ease-in-out infinite alternate; }
  .st-day:hover .bars i:nth-child(3n) { animation-duration: 0.6s; }
  .st-day:hover .bars i:nth-child(4n+1) { animation-duration: 0.75s; }
  .st-day:hover .bars i:nth-child(5n+2) { animation-duration: 0.5s; }

  .st-people:hover .people svg { animation: hello 0.7s var(--ease-out) both; }
  .st-people .people svg:nth-child(odd) { animation-delay: .05s; }
  .st-people .people svg:nth-child(3n) { animation-delay: .12s; }
  .st-people:hover .people span { animation: hello 0.7s var(--ease-out) .2s both; }

  /* tag: chips lift, button arrow nudges */
  .chip span, .select select, .field input { transition: background-color .15s, color .15s, border-color .15s, transform .3s var(--ease-out); }
  .chip:hover span { transform: translateY(-2px); }
  .pot:hover span { transform: translateY(-3px) scale(1.1); }
  .btn svg { transition: transform 0.35s var(--ease-out); }
  .btn:hover svg { transform: translateX(5px); }
  .btn:hover { transform: translateY(-2px); }
  .quote .btn { transition: background-color .15s, transform .3s var(--ease-out); }
  .pick { transition: background-color .2s, transform .3s var(--ease-out); }
  .drop:hover .pick { transform: rotate(-2deg) scale(1.03); }

  /* services: arrow slides, row gets a colour wash */
  .index a { position: relative; isolation: isolate; }
  .index a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--c); opacity: 0; transform: scaleY(0.3); transition: opacity .35s var(--ease-out), transform .45s var(--ease-out); border-radius: 12px; }
  .index a:hover::before { opacity: 0.08; transform: scaleY(1); }
  .index svg { transition: transform .4s var(--ease-out); }
  .index a:hover svg { transform: translateX(10px) rotate(-45deg); }
  .index h3 { transition: letter-spacing .4s var(--ease-out); }
  .index a:hover h3 { letter-spacing: -0.02em; }

  /* B·O·K */
  .bok-row li:hover .letter { animation: jiggle 0.7s var(--ease-out) both; }

  /* gallery: swatch spins, caption slides */
  .prints figcaption i { transition: transform .5s var(--ease-out); }
  .prints li:hover figcaption i { transform: rotate(180deg) scale(1.2); }
  .prints figcaption { transition: transform .4s var(--ease-out); }
  .prints li:hover figcaption { transform: translateX(4px); }

  /* process */
  .process li { transition: transform .45s var(--ease-out), background-color .3s; }
  .process li:hover { transform: translateY(-6px); background: #2c2c35; }
  .process li .code { transition: transform .45s var(--ease-out); }
  .process li:hover .code { transform: rotate(-4deg) scale(1.08); }

  /* footer */
  .foot a { transition: color .2s; }
  .foot a:hover { color: var(--azure); }
}

@keyframes wave { 40% { transform: translateY(-10px); } }
@keyframes hop { 40% { transform: translateY(-8px) rotate(-6deg); } 70% { transform: translateY(1px); } }
@keyframes equalise { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
@keyframes hello { 40% { transform: translateY(-6px); } }
@keyframes jiggle { 25% { transform: rotate(-8deg) scale(1.06); } 50% { transform: rotate(5deg); } 75% { transform: rotate(-2deg); } }

@media (prefers-reduced-motion: reduce) {
  .st:hover, .st *, .index a::before, .index svg, .bok-row .letter, .process li, .btn, .btn svg { animation: none !important; transform: none !important; }
}

/* After the load sequence: no replays, hover motion starts at once. */
.loaded .st, .loaded .inks .ink, .loaded .bars i, .loaded .tagcard, .loaded .fan .chip-card,
.loaded .hero h1, .loaded .hero h1 span, .loaded .hero .lead { animation: none; }
@media (hover: hover) {
  .loaded .st-inks:hover .ink.is-lit { animation: wave 0.6s var(--ease-out); }
  .st-inks .ink { --w: 0s !important; }
  .st-inks .ink:nth-child(2) { --w: .025s !important; } .st-inks .ink:nth-child(3) { --w: .05s !important; }
  .st-inks .ink:nth-child(4) { --w: .075s !important; } .st-inks .ink:nth-child(5) { --w: .1s !important; }
  .st-inks .ink:nth-child(6) { --w: .125s !important; } .st-inks .ink:nth-child(7) { --w: .15s !important; }
  .st-inks .ink:nth-child(8) { --w: .175s !important; } .st-inks .ink:nth-child(9) { --w: .2s !important; }
  .st-inks .ink:nth-child(10) { --w: .225s !important; } .st-inks .ink:nth-child(11) { --w: .25s !important; }
  .st-inks .ink:nth-child(12) { --w: .275s !important; }
  .loaded .st-day:hover .bars i { animation: equalise 0.9s ease-in-out infinite alternate; }
}

/* ---------- Footer ---------- */

.foot { margin-top: clamp(48px, 6vw, 80px); }
.foot .inkline { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); height: 10px; }
.foot .inkline i { background: var(--c); transition: transform 0.4s var(--ease-out); transform-origin: bottom; }
.foot .inkline:hover i { transform: scaleY(2.2); }
.foot .inkline i:nth-child(2) { transition-delay: .02s; } .foot .inkline i:nth-child(3) { transition-delay: .04s; }
.foot .inkline i:nth-child(4) { transition-delay: .06s; } .foot .inkline i:nth-child(5) { transition-delay: .08s; }
.foot .inkline i:nth-child(6) { transition-delay: .1s; } .foot .inkline i:nth-child(7) { transition-delay: .12s; }
.foot .inkline i:nth-child(8) { transition-delay: .14s; } .foot .inkline i:nth-child(9) { transition-delay: .16s; }
.foot .inkline i:nth-child(10) { transition-delay: .18s; } .foot .inkline i:nth-child(11) { transition-delay: .2s; }
.foot .inkline i:nth-child(12) { transition-delay: .22s; }
.foot .wrap.cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-block: 56px 40px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--soft);
}
.foot .brand p { margin: 14px 0 0; max-width: 24em; }
.foot .bok-word { display: flex; gap: 6px; margin-top: 18px; }
.foot .bok-word span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--c); color: var(--on, var(--ink)); font-weight: 900; font-size: 22px; transition: transform .4s var(--ease-out); }
.foot .bok-word span:nth-child(1) { --c: var(--coral); }
.foot .bok-word span:nth-child(2) { --c: var(--amber); }
.foot .bok-word span:nth-child(3) { --c: var(--azure); --on: #fff; }
.foot .bok-word:hover span:nth-child(1) { transform: rotate(-8deg) translateY(-4px); }
.foot .bok-word:hover span:nth-child(2) { transform: translateY(-8px); }
.foot .bok-word:hover span:nth-child(3) { transform: rotate(8deg) translateY(-4px); }
.foot h3 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.foot ul { margin: 0; padding: 0; list-style: none; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot strong { color: var(--ink); }
.foot .legal { border-top: 1.5px solid var(--line); }
.foot .legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 18px; font-size: 14px; color: var(--soft); }
@media (max-width: 960px) {
  .foot .wrap.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot .brand { grid-column: 1 / -1; }
}

/* ---------- Shirt colour picker ---------- */

.cpick { position: relative; }
.cpick summary {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 16px 0 10px;
  border: 1.5px solid #cfd0d6;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  transition: border-color .2s, box-shadow .3s var(--ease-out);
}
.cpick summary::-webkit-details-marker { display: none; }
.cpick summary:hover { border-color: var(--ink); }
.cpick[open] summary { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(58, 107, 255, 0.14); }
.cpick summary .swatch { width: 32px; height: 32px; border: 1.5px solid var(--ink); transition: background-color .3s ease-out, transform .4s var(--ease-out); }
.cpick summary:hover .swatch { transform: rotate(-20deg) scale(1.06); }
.cpick summary .chev { margin-left: auto; transition: transform .35s var(--ease-out); }
.cpick[open] summary .chev { transform: rotate(180deg); }
.cpick-panel {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 10px;
  background: #fff;
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 24px 50px rgba(22, 22, 26, 0.18);
  transform-origin: top center;
  animation: panel-in .35s var(--ease-out);
}
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px) scale(0.97); } }
.copt { position: relative; }
.copt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.copt span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px 0 8px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  transition: background-color .15s, color .15s;
}
.copt .swatch { width: 28px; height: 28px; border: 1.5px solid var(--ink); transition: transform .35s var(--ease-out); }
.copt:hover span { background: #f3f3f6; }
.copt:hover .swatch { transform: scale(1.12); }
.copt input:checked + span { background: var(--ink); color: #fff; }
.copt input:checked + span .swatch { border-color: #fff; }
.copt input:focus-visible + span { outline: 3px solid var(--azure); outline-offset: 1px; }
.copt:last-child { grid-column: 1 / -1; }
