@font-face { font-family: "Voltaire"; src: url("assets/fonts/voltaire.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mohave"; src: url("assets/fonts/mohave.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("assets/fonts/manrope-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --steel-wall: #162f22;
  --steel-wall-deep: #0e2418;
  --steel-wall-lift: #1f4130;
  --engraved: #e4e6dc;
  --engraved-soft: #b9c4b6;
  --plate-ink: #183a2b;
  --tag-red: #d81c1c;
  --tag-red-deep: #a81512;
  --tag-yellow: #f8c80e;
  --tag-blue: #0f5fd6;
  --tag-ink: #ffffff;
  --yellow-ink: #2e2300;
  --display: "Voltaire", "Arial Narrow", sans-serif;
  --text: "Mohave", "Arial Narrow", sans-serif;
  --frame: min(100cqw, 1600px);
  --u: calc(var(--frame) / 1440);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #3d6350 var(--steel-wall-deep); }
body {
  margin: 0;
  background: linear-gradient(rgba(24, 53, 41, 0.62), rgba(24, 53, 41, 0.62)), var(--steel-wall) url("assets/plates/ground.png") 0 0 / 600px 260px;
  color: var(--engraved);
  font-family: var(--text);
  font-size: 20px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  container-type: inline-size;
}
::selection { background: var(--tag-yellow); color: var(--yellow-ink); }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--tag-yellow); outline-offset: 4px; border-radius: 2px; }
img, picture { display: block; }

/* The cabinet: side walls run the full height of the page. */
.cabinet { position: relative; width: var(--frame); margin: 0 auto; }
.cabinet::before, .cabinet::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: calc(48 * var(--u)); pointer-events: none; z-index: 0;
}
.cabinet::before { left: 0; background: linear-gradient(90deg, #08160f 0%, #0d2217 62%, #102a1c 88%, #2a4d3b 93%, #2a4d3b 95%, #0a1c13 100%); }
.cabinet::after { right: 0; background: linear-gradient(270deg, #08160f 0%, #0d2217 62%, #102a1c 88%, #2a4d3b 93%, #2a4d3b 95%, #0a1c13 100%); }

/* ---------- First viewport ---------- */
.top { position: relative; height: calc(1290 * var(--u)); }

.wordmark {
  position: absolute; left: calc(78 * var(--u)); top: calc(10 * var(--u));
  font: 800 calc(66 * var(--u)) / 1.2 "Manrope", sans-serif; letter-spacing: -0.02em;
  color: var(--engraved); text-decoration: none;
}
.nav { position: absolute; top: calc(36 * var(--u)); left: calc(877 * var(--u)); display: flex; gap: calc(66 * var(--u)); font: 400 calc(25 * var(--u)) / 1.3 var(--display); }
.nav a { color: var(--engraved); text-decoration: none; padding: 0.15em 0; }
.nav a:hover { text-decoration: underline; }
.lang { position: absolute; top: calc(36 * var(--u)); left: calc(1289 * var(--u)); display: flex; align-items: baseline; gap: 0.35em; font: 400 calc(25 * var(--u)) / 1.3 var(--display); color: var(--engraved-soft); }
.lang button { all: unset; cursor: pointer; padding: 0.15em 0; color: var(--engraved-soft); }
.lang button[aria-pressed="true"] { color: var(--engraved); }
.lang button:hover { color: #fff; }
.lang button:focus-visible { outline: 3px solid var(--tag-yellow); outline-offset: 4px; }

.plate { position: absolute; left: calc(92 * var(--u)); top: calc(118 * var(--u)); width: calc(1262 * var(--u)); height: calc(140 * var(--u)); }
.plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.plate h1 {
  position: absolute; left: calc(90 * var(--u)); top: calc(33 * var(--u)); margin: 0;
  font: 400 calc(56 * var(--u)) / 1.2 var(--display); color: var(--plate-ink); white-space: nowrap;
}
.plate .divider { position: absolute; left: calc(556 * var(--u)); top: calc(34 * var(--u)); width: max(1px, calc(2 * var(--u))); height: calc(68 * var(--u)); background: var(--plate-ink); opacity: 0.7; }
.plate .lede {
  position: absolute; left: calc(578 * var(--u)); top: calc(41 * var(--u)); width: calc(372 * var(--u)); margin: 0;
  font: 400 calc(20.5 * var(--u)) / 1.42 var(--text); color: var(--plate-ink);
}
.cta {
  position: absolute; left: calc(962 * var(--u)); top: calc(32 * var(--u)); width: calc(212 * var(--u)); height: calc(80 * var(--u));
  display: grid; place-items: center;
  font: 400 calc(31 * var(--u)) / 1 var(--display); color: #fff; text-decoration: none;
  background: linear-gradient(180deg, #c93a31 0%, #b3261e 55%, #a01f18 100%);
  border-radius: calc(7 * var(--u));
  box-shadow: 0 calc(2 * var(--u)) calc(3 * var(--u)) rgba(4, 14, 9, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), filter 0.25s;
}
.cta:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 calc(5 * var(--u)) calc(8 * var(--u)) rgba(4, 14, 9, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -2px 0 rgba(0, 0, 0, 0.25); }
.cta:active { transform: translateY(1px); filter: brightness(0.95); }

.rail { position: absolute; left: calc(26 * var(--u)); top: calc(286 * var(--u)); width: calc(1392 * var(--u)); height: auto; z-index: 3; pointer-events: none; }

/* ---------- Key tags ---------- */
.tag {
  --tw: calc(250 * var(--u)); --shift: 0; --fk: 1;
  position: absolute; top: calc(322 * var(--u)); width: var(--tw);
  font-size: calc(var(--tw) / 25 * var(--fk));
  color: var(--tag-ink); text-decoration: none; text-align: center;
  transform-origin: 50% 0; z-index: 2;
  clip-path: inset(0 -60px -60px -60px);
  filter: drop-shadow(calc(5 * var(--u)) calc(9 * var(--u)) calc(7 * var(--u)) rgba(4, 14, 9, 0.5));
}
.live .tag { animation: settle 2.6s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); }
.tag img { width: 100%; height: auto; margin-top: calc(var(--tw) * var(--shift)); user-select: none; }
.tag span { position: absolute; left: 0; right: 0; display: block; }
.tag .num { top: 1.92em; font: 400 10em / 1 var(--display); }
.tag .name { top: 5.25em; font: 400 5.6em / 1 var(--display); letter-spacing: 0.03em; text-transform: uppercase; }
.tag .rule { top: 36.4em; left: 22%; right: 22%; height: 0.28em; background: currentColor; opacity: 0.92; }
.tag .desc { top: 12em; left: 50%; right: auto; width: 3.8em; margin-left: -1.9em; font: 400 3.15em / 1.12 var(--display); }
.tag-3 .desc { width: 6.6em; margin-left: -3.3em; }
.tag-2 { color: var(--yellow-ink); }
.tag-1 { left: calc(80 * var(--u)); --tw: calc(250 * var(--u)); --shift: -0.231; --i: 0; }
.tag-2 { left: calc(386 * var(--u)); --tw: calc(256 * var(--u)); --shift: -0.2715; --fk: 0.9766; --i: 1; }
.tag-3 { left: calc(679 * var(--u)); --tw: calc(228 * var(--u)); --shift: -0.291; --fk: 1.0965; --i: 2; }
.tag-2 .name { font-size: 5.05em; top: 5.85em; letter-spacing: 0.015em; }

.tag.small { --tw: calc(88 * var(--u)); font-size: calc(var(--tw) / 8.8); }
.tag.small .num { top: 3.3em; font-size: 4.4em; transform: rotate(90deg); }
.tag.small .name { top: 9.3em; left: 50%; right: auto; transform: translateX(-50%); writing-mode: vertical-rl; white-space: nowrap; display: flex; align-items: center; justify-content: space-between; height: 8.62em; font: 400 2.2em / 1 var(--display); letter-spacing: 0.02em; text-transform: none; }
.tag.small svg { display: inline-block; width: 1.9em; height: 1.9em; margin-inline-start: 0.45em; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); }
.tag-4 { left: calc(968 * var(--u)); --i: 3; }
.tag-5 { left: calc(1058 * var(--u)); --i: 4; }
.tag-6 { left: calc(1148 * var(--u)); --i: 5; }
.tag-7 { left: calc(1238 * var(--u)); --i: 6; }

@keyframes settle {
  0% { transform: rotate(calc(var(--kick, 5deg))); }
  22% { transform: rotate(calc(var(--kick, 5deg) * -0.62)); }
  44% { transform: rotate(calc(var(--kick, 5deg) * 0.34)); }
  66% { transform: rotate(calc(var(--kick, 5deg) * -0.16)); }
  84% { transform: rotate(calc(var(--kick, 5deg) * 0.06)); }
  100% { transform: rotate(0deg); }
}
.tag:nth-child(even) { --kick: -4deg; }
.tag.small { --kick: 8deg; }
.tag.small:nth-child(even) { --kick: -7deg; }
.tag.swing { animation: swing 1.9s var(--ease-out); }
@keyframes swing {
  0% { transform: rotate(0deg); }
  14% { transform: rotate(calc(var(--kick, 5deg) * 0.9)); }
  36% { transform: rotate(calc(var(--kick, 5deg) * -0.55)); }
  58% { transform: rotate(calc(var(--kick, 5deg) * 0.28)); }
  80% { transform: rotate(calc(var(--kick, 5deg) * -0.1)); }
  100% { transform: rotate(0deg); }
}
.tag.taken { animation: none; transform: translateY(calc(26 * var(--u))) scale(1.04); transition: transform 0.5s var(--ease-out); z-index: 4; }

.still .tag, .still .tag.swing { animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tag, .tag.swing { animation: none !important; }
  .tag.taken, .cta { transition: none; }
}

.rail-2 { display: none; }

/* English runs longer than Finnish on the plate and on tags 2 and 3. */
html[lang="en"] .plate h1 { font-size: calc(45 * var(--u)); top: calc(41 * var(--u)); }
html[lang="en"] .plate .lede { font-size: calc(19 * var(--u)); top: calc(43 * var(--u)); }
html[lang="en"] .tag-2 .name { font-size: 4.6em; top: 6.5em; }
html[lang="en"] .tag-3 .name { font-size: 4.5em; top: 6.6em; letter-spacing: 0.01em; }

/* ---------- Shelves: the rest of the cabinet ---------- */
main, .foot { position: relative; z-index: 1; padding-inline: calc(48 * var(--u) + clamp(20px, 4.4vw, 72px)); }
main h2, main h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
main p { margin: 0; }

.intro { padding-block: clamp(40px, 6vw, 96px) clamp(48px, 7vw, 112px); max-width: 1180px; }
.intro h2 { font-size: clamp(2.3rem, 5.2vw, 4.6rem); line-height: 1.04; letter-spacing: -0.005em; color: var(--engraved); max-width: 16ch; }
.intro p { margin-top: clamp(18px, 2vw, 28px); font-size: clamp(1.2rem, 1.5vw, 1.45rem); max-width: 62ch; color: var(--engraved-soft); }

.shelf {
  --c: var(--tag-red); --c-ink: #fff;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 88px);
  padding-block: clamp(44px, 6vw, 92px);
  border-top: 1px solid #08170f; box-shadow: inset 0 1px 0 #2a4d3b;
  scroll-margin-top: 12px;
}
.shelf-yellow { --c: var(--tag-yellow); --c-ink: var(--yellow-ink); }
.shelf-blue { --c: var(--tag-blue); }
.shelf-head { display: grid; grid-template-columns: auto 1fr; column-gap: clamp(14px, 1.6vw, 24px); align-items: center; align-content: start; }
.chip {
  display: grid; place-items: center; width: clamp(54px, 5.4vw, 84px); aspect-ratio: 1;
  font: 400 clamp(2.4rem, 4.4vw, 4rem) / 1 var(--display); color: var(--c-ink); background: var(--c);
  border-radius: 8px;
}
.shelf-head h2 { font-size: clamp(3rem, 6.4vw, 5.75rem); line-height: 1; text-transform: uppercase; letter-spacing: 0.02em; color: var(--engraved); }
.claim { grid-column: 1 / -1; margin-top: clamp(16px, 1.8vw, 26px) !important; font: 400 clamp(1.3rem, 1.9vw, 1.75rem) / 1.25 var(--display); color: var(--engraved); max-width: 24ch; }
.shelf-body { font-size: 1.25rem; }
.shelf-body > p:first-child { max-width: 58ch; }
.features { list-style: none; margin: clamp(22px, 2.4vw, 34px) 0 0; padding: 0; columns: 2; column-gap: clamp(20px, 3vw, 48px); max-width: 720px; }
.features li { position: relative; padding: 0.42em 0 0.42em 1.25em; break-inside: avoid; border-bottom: 1px solid rgba(228, 230, 220, 0.14); }
.features li::before { content: ""; position: absolute; left: 0; top: 0.92em; width: 0.5em; height: 0.5em; border-radius: 2px; background: var(--c); }
.links { margin-top: clamp(24px, 2.6vw, 36px) !important; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.ask { font: 400 clamp(1.15rem, 1.4vw, 1.35rem) / 1.2 var(--display); color: var(--engraved); }
.ask:hover { color: #fff; text-decoration-thickness: 2px; }
.note { margin-top: 12px !important; font-size: 0.92em; color: var(--engraved-soft); max-width: 58ch; }

.label-link {
  display: inline-flex; align-items: center; gap: 0.6em; padding: 0.5em 0.95em 0.42em;
  font: 400 clamp(1.2rem, 1.5vw, 1.45rem) / 1.2 var(--display); text-decoration: none; color: var(--engraved);
  border: 1.5px solid rgba(228, 230, 220, 0.55); border-radius: 6px;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.label-link svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease-out); }
.label-link:hover { background: var(--engraved); color: var(--steel-wall); border-color: var(--engraved); }
.label-link:hover svg { transform: translateX(4px); }

.tools { padding-block: clamp(48px, 6.5vw, 100px); border-top: 1px solid #08170f; box-shadow: inset 0 1px 0 #2a4d3b; scroll-margin-top: 12px; }
.tools > h2 { font-size: clamp(2.3rem, 5.2vw, 4.6rem); line-height: 1; color: var(--engraved); }
.tools-lede { margin-top: 12px !important; font-size: 1.25rem; color: var(--engraved-soft); max-width: 58ch; }
.tool-list { list-style: none; margin: clamp(26px, 3vw, 44px) 0 0; padding: 0; }
.tool-list li {
  display: grid; grid-template-columns: clamp(104px, 9.4vw, 140px) minmax(150px, 2.2fr) minmax(0, 6fr) 11.5em; column-gap: clamp(14px, 2.4vw, 40px); align-items: baseline;
  padding-block: clamp(16px, 1.7vw, 24px); border-top: 1px solid rgba(228, 230, 220, 0.16); scroll-margin-top: 12px;
}
.tool-num { display: grid; place-items: center; width: clamp(104px, 9.4vw, 140px); aspect-ratio: 576 / 143; align-self: center; padding-left: 12%; font: 400 clamp(1.5rem, 2vw, 1.9rem) / 1 var(--display); color: #fff; background: url("assets/plates/tool-tag.png") center / 100% 100% no-repeat; }
.tool-list h3 { font-size: clamp(1.5rem, 2.1vw, 2.05rem); line-height: 1.1; color: var(--engraved); }
.tool-list li > p { font-size: 1.25rem; color: var(--engraved-soft); max-width: 60ch; }
.tool-links { display: flex; justify-content: flex-end; gap: 1.1em; font-family: var(--display); font-size: 1.25rem !important; color: var(--engraved) !important; white-space: nowrap; }
.tool-links a:hover { color: #fff; text-decoration-thickness: 2px; }

.contact { padding-block: clamp(56px, 8vw, 128px) clamp(40px, 5vw, 72px); border-top: 1px solid #08170f; box-shadow: inset 0 1px 0 #2a4d3b; scroll-margin-top: 12px; }
.contact h2 { font-size: clamp(3.2rem, 8.4vw, 6rem); line-height: 0.98; color: var(--engraved); }
.contact-lede { margin-top: clamp(16px, 2vw, 26px) !important; font-size: clamp(1.2rem, 1.5vw, 1.45rem); max-width: 54ch; color: var(--engraved-soft); }
.contact-card { margin-top: clamp(26px, 3vw, 40px); min-height: 96px; }
.cta.reveal { position: static; width: auto; height: auto; display: inline-grid; padding: 0.62em 1.25em 0.55em; font-size: clamp(1.5rem, 2.1vw, 2.05rem); border: 0; border-radius: 7px; cursor: pointer; }
.contact-details { margin: 0; display: grid; gap: clamp(14px, 1.6vw, 22px); }
.contact-details[hidden] { display: none; }
.contact-details dt { font: 400 1.2rem / 1.2 var(--display); color: #8fb09d; letter-spacing: 0.04em; text-transform: uppercase; }
.contact-details dd { margin: 4px 0 0; font: 400 clamp(1.9rem, 4.2vw, 3.2rem) / 1.1 var(--display); color: var(--engraved); overflow-wrap: anywhere; }
.contact-details dd a { text-decoration-thickness: 2px; text-decoration-color: rgba(228, 230, 220, 0.4); }
.contact-details dd a:hover { text-decoration-color: var(--tag-yellow); }
.contact-details .via { display: block; margin-top: 6px; font: 400 1.25rem / 1.4 var(--text); color: var(--engraved-soft); }
.contact-details.shown { animation: unveil 0.7s var(--ease-out); }
@keyframes unveil { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.personal { margin-top: clamp(28px, 3.2vw, 44px) !important; }

.foot {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px clamp(16px, 2.4vw, 36px);
  padding-block: 26px 34px; border-top: 1px solid #08170f; box-shadow: inset 0 1px 0 #2a4d3b;
  font-size: 1.25rem; color: var(--engraved-soft);
}
.foot-mark { font: 800 1.5rem / 1 "Manrope", sans-serif; letter-spacing: -0.02em; color: var(--engraved); }
.foot a { margin-left: auto; font-family: var(--display); font-size: 1.25rem; color: var(--engraved); }

@media (prefers-reduced-motion: reduce) { .contact-details.shown { animation: none; } .label-link, .label-link svg { transition: none; } }

@media (min-width: 1001px) {
  .intro { position: absolute; top: calc(-352 * var(--u)); left: calc(966 * var(--u)); width: calc(400 * var(--u)); padding: 0; scroll-margin-top: calc(820 * var(--u)); }
  .intro h2 { font-size: calc(44 * var(--u)); max-width: none; }
  .intro p { margin-top: calc(20 * var(--u)); font-size: max(15px, calc(19.5 * var(--u))); }
}

/* ---------- Narrow screens: two rails, whole tags only ---------- */
@media (max-width: 1000px) {
  .top { height: 286cqw; }
  .wordmark { left: 5cqw; top: 2.4cqw; font-size: 9.4cqw; }
  .lang { left: auto; right: 5cqw; top: 5.6cqw; font-size: 4.6cqw; }
  .lang button { padding: 0.72em 0.4em; }
  .nav { left: 5cqw; top: 17.5cqw; gap: 6.5cqw; font-size: 4.8cqw; }
  .nav a { padding: 0.62em 0; }
  .plate { left: 3cqw; top: 30cqw; width: 94cqw; height: 17cqw; }
  .plate h1 { left: 0; right: 0; top: 3.9cqw; text-align: center; font-size: 7.5cqw; }
  html[lang="en"] .plate h1 { top: 4.6cqw; font-size: 6.3cqw; }
  html[lang="en"] .plate .lede { top: 21.5cqw; font-size: 4.5cqw; }
  .plate .divider { display: none; }
  .plate .lede { left: 3cqw; top: 21.5cqw; width: 88cqw; font-size: 4.5cqw; line-height: 1.38; color: var(--engraved); }
  .cta { left: 3cqw; top: 39.5cqw; width: 52cqw; height: 13.5cqw; font-size: 6.2cqw; border-radius: 7px; }
  .rail { left: 1.5cqw; width: 97cqw; top: 91cqw; }
  .rail-2 { display: block; top: 203cqw; }
  .tag { top: 93.6cqw; filter: drop-shadow(0.8cqw 1.4cqw 1.1cqw rgba(4, 14, 9, 0.5)); }
  .tag-1 { left: 3.5cqw; --tw: 29cqw; }
  .tag-2 { left: 35.3cqw; --tw: 29.6cqw; }
  .tag-3 { left: 68cqw; --tw: 26.6cqw; }
  .tag.small { top: 205.6cqw; --tw: 15.5cqw; font-size: calc(var(--tw) / 8.8); }
  .tag-4 { left: 7cqw; } .tag-5 { left: 30cqw; } .tag-6 { left: 53cqw; } .tag-7 { left: 76cqw; }
  .cabinet::before, .cabinet::after { width: 1.6cqw; }
  main, .foot { padding-inline: 5.5cqw; }
  .shelf { grid-template-columns: 1fr; gap: 22px; }
  .claim { max-width: 30ch; }
  .tool-list li { grid-template-columns: auto 1fr; row-gap: 6px; }
  .tool-links { justify-content: flex-start; grid-column: 1 / -1; }
  .tool-links a { padding-block: 0.6em; }
  .tool-list li > p { grid-column: 1 / -1; }
  .foot a { margin-left: 0; }
}
@media (max-width: 560px) {
  .features { columns: 1; }
  .shelf-head h2 { font-size: clamp(2.3rem, 5.2vw, 4.6rem); }
}
