@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-ext.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --rock: #1C1F22;
  --rock-2: #272B2F;
  --dust: #9AA1A7;
  --paper: #F3F2EF;
  --ink: #1C1F22;
  --yellow: #F5C400;
  --yellow-ink: #6B5400;
  --measure: 36rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--paper);
}
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--yellow); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wrap { max-width: 66rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header floats over the hero */
.site-head { position: absolute; inset: 0 0 auto 0; z-index: 2; color: var(--paper); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 2rem; height: 2rem; }
.brand-name { font-stretch: 125%; font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; }
.brand-name span { color: var(--yellow); font-weight: 600; margin-left: .3rem; }
.lang { display: flex; gap: .15rem; font-size: .9rem; }
.lang a { padding: .3rem .5rem; text-decoration: none; color: var(--dust); border-radius: 3px; }
.lang a[aria-current="page"] { color: var(--rock); background: var(--yellow); font-weight: 700; }
.lang a:hover { color: var(--paper); }
.lang a[aria-current="page"]:hover { color: var(--rock); }
.page-priv .site-head { position: static; background: var(--rock); }
.menu { display: flex; gap: .2rem; font-size: .95rem; margin-left: auto; margin-right: 1rem; }
.menu a { padding: .35rem .6rem; text-decoration: none; color: #D6DADD; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--paper); }
.menu a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--yellow); }
@media (max-width: 52rem) {
  .site-head .wrap { flex-wrap: wrap; }
  .menu { order: 3; width: 100%; margin: .4rem -0.6rem 0; font-size: .9rem; overflow-x: auto; }
  .menu a { white-space: nowrap; }
}

/* Cinematic hero: full viewport, rock texture, one headline, one line, one action */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: end;
  background: var(--rock); color: var(--paper); overflow: hidden;
  padding: 7rem 0 4rem;
}
.hero.photo { background: var(--rock) url("img/hero.jpg") center 42% / cover no-repeat; }
@media (max-width: 52rem) { .hero.photo { background-image: url("img/hero-s.jpg"); background-position: 28% 45%; } }
.hero.photo::before { background: linear-gradient(to right, rgba(28,31,34,.35), rgba(28,31,34,.15) 45%, rgba(28,31,34,.5)); }
.hero.photo::after { height: 70%; background: linear-gradient(to top, rgba(10,12,14,.9) 15%, rgba(10,12,14,.3) 60%, transparent); }
.hero.photo .wrap { display: grid; justify-items: end; }
.hero.photo h1, .hero.photo p, .hero.photo .cta { justify-self: end; }
.hero.photo h1 { max-width: 11ch; }
.hero.photo h1, .hero.photo p { text-align: left; }
.hero.photo .inner { max-width: 34rem; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 70% 20%, rgba(245,196,0,.14), transparent 55%),
    radial-gradient(90% 70% at 10% 100%, rgba(255,255,255,.05), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,.45), transparent);
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  font-stretch: 112%; font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  line-height: .98; letter-spacing: -.02em;
  margin: 0 0 1.5rem; max-width: 12ch;
}
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero p { font-size: clamp(1.1rem, 1.8vw, 1.35rem); max-width: var(--measure); color: #D6DADD; margin: 0 0 2.25rem; line-height: 1.5; }
.cta {
  display: inline-block; background: var(--yellow); color: var(--rock);
  font-weight: 700; text-decoration: none; padding: .9rem 1.5rem;
  font-stretch: 110%;
}
.cta:hover { background: #FFD84D; }
.hero.small { min-height: 58svh; padding-top: 8.5rem; }
.hero.small h1 { font-size: clamp(2.4rem, 6.5vw, 5rem); }
.hero .motto { display: none; }
@media (min-width: 52rem) { .hero .motto { display: block; } }
.hero .motto { position: absolute; right: 1.25rem; bottom: 1.4rem; font-stretch: 125%; font-weight: 600; font-size: .85rem; letter-spacing: .08em; color: var(--dust); z-index: 1; }

/* Sections: generous air, no boxes */
section { padding: 6rem 0; }
.dark { background: var(--rock); color: var(--paper); }
.dark p { color: #D6DADD; }
h2 { font-stretch: 112%; font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.01em; margin: 0 0 1.5rem; max-width: 20ch; }
h3 { font-stretch: 110%; font-weight: 700; font-size: 1.15rem; margin: 0 0 .5rem; }
p { max-width: var(--measure); margin: 0 0 1rem; }

.two { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 52rem) { .two { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.two > div > h2 { margin-bottom: 1rem; }

ul.plain { list-style: none; padding: 0; margin: 1.5rem 0 0; max-width: var(--measure); }
ul.plain li { padding: .65rem 0 .65rem 1.3rem; position: relative; }
ul.plain li::before { content: ""; position: absolute; left: 0; top: 1.2rem; width: .5rem; height: .5rem; background: var(--yellow); transform: rotate(45deg); }

/* The one big line: the saying */
.saying {
  font-stretch: 112%; font-weight: 800;
  font-size: clamp(1.9rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.015em;
  margin: 0 0 2rem; max-width: 22ch;
}
.saying::after { content: ""; display: block; width: 4rem; height: .4rem; background: var(--yellow); margin-top: 1.5rem; }

ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 3rem 0 0; display: grid; gap: 2rem; }
@media (min-width: 52rem) { ol.steps { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
ol.steps li { counter-increment: s; }
ol.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-stretch: 125%; font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--yellow); margin-bottom: .75rem; }
ol.steps strong { display: block; margin-bottom: .35rem; font-size: 1.1rem; }
ol.steps p { margin: 0; font-size: 1rem; }

.case { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.15); max-width: 44rem; }
.case h3 { color: var(--yellow); }
.case p:last-child { margin-bottom: 0; }

dl.contact { display: grid; grid-template-columns: 1fr; gap: .2rem 2rem; margin: 0; }
@media (min-width: 40rem) { dl.contact { grid-template-columns: 11rem 1fr; } }
dl.contact dt { color: #5C6369; }
dl.contact dd { margin: 0 0 .9rem; font-weight: 600; font-size: 1.1rem; }

.site-foot { background: var(--rock); color: var(--dust); padding: 2.25rem 0; font-size: .92rem; border-top: 1px solid rgba(255,255,255,.1); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-foot p { margin: 0; }

/* Privacy page */
.doc { padding: 3.5rem 0 5rem; }
.doc h1 { font-stretch: 112%; font-weight: 800; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.05; margin: 0 0 .5rem; }
.doc .updated { color: #5C6369; margin-bottom: 2.5rem; }
.doc h2 { font-size: 1.35rem; margin-top: 2.5rem; }
.doc ul { max-width: var(--measure); padding-left: 1.2rem; }
.doc li { margin-bottom: .4rem; }

/* One orchestrated entrance, nothing else moves */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero p, .hero .cta { opacity: 0; transform: translateY(14px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero p { animation-delay: .25s; }
  .hero .cta { animation-delay: .45s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

.dark ul.plain { margin-top: 2.5rem; }

/* Teasers on the front page */
.teasers { padding: 3.5rem 0; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 52rem) { .grid2 { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.teaser { display: block; text-decoration: none; padding: 1.75rem 0 1.5rem; border-top: 3px solid var(--yellow); }
.teaser h3 { font-stretch: 112%; font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 .6rem; }
.teaser p { color: #D6DADD; margin-bottom: .9rem; }
.teaser span { color: var(--yellow); font-weight: 700; }
.teaser:hover h3 { color: var(--yellow); }
.case.top { margin-top: 0; padding-top: 0; border-top: 0; }
.after { margin-top: 2.5rem; }
.page-contact dl.contact dd { font-size: 1.25rem; }

.hero.photo.tj { background-image: url("img/tyonjohto.jpg"); background-position: center 78%; }
@media (max-width: 52rem) { .hero.photo.tj { background-image: url("img/tyonjohto-s.jpg"); background-position: 45% 70%; } }
.hero.photo.tj::before { background: linear-gradient(to right, rgba(28,31,34,.7), rgba(28,31,34,.4) 55%, rgba(28,31,34,.5)); }
.hero.small.photo .wrap { justify-items: start; }
.hero.small.photo h1, .hero.small.photo p { justify-self: start; }
.hero.photo.dev { background-image: url("img/kehitys.jpg"); background-position: right center; }
@media (max-width: 52rem) { .hero.photo.dev { background-image: url("img/kehitys-s.jpg"); background-position: 30% center; } }
.hero.photo.dev::before { background: linear-gradient(to right, rgba(28,31,34,.88), rgba(28,31,34,.7) 40%, rgba(28,31,34,.25) 70%, rgba(28,31,34,.15)); }
.hero.photo.dev .wrap { justify-items: start; }
.hero.photo.dev h1, .hero.photo.dev p { justify-self: start; }

.hero .stats { margin: 1.4rem 0 0; color: var(--dust); font-size: 1rem; font-stretch: 110%; font-weight: 600; letter-spacing: .01em; }
.hero .stats + .cta { margin-top: 1.6rem; }
.hero > .wrap { width: 100%; }
.hero.photo .inner { width: min(100%, 34rem); }
.hero.photo.dev .inner { width: min(100%, 36rem); }
.hero.photo.dev { background-position: right 60%; }
@media (min-width: 52rem) { .hero.photo.dev { background-size: auto 115%; } }
.hero.photo .inner > *, .hero.photo.dev .inner > * { justify-self: auto; }
