/* ransu.ai – konsulttisivu. Tumma, hillitty, oranssi vain toiminnoissa ja aktiivisessa tilassa. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/schibsted.woff") format("woff");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ground: #0C0C0D;
  --raise: #121214;
  --tile: #16161A;
  --tile-hi: #1D1D22;
  --edge: rgba(255, 255, 255, .07);
  --edge-hi: rgba(255, 255, 255, .13);
  --ink: #EDEDEF;
  --soft: #A3A3AB;
  --muted: #6F6F78;
  --accent: #E0862F;
  --accent-hi: #EC9845;
  --on-accent: #140F0A;

  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --fs-hero: clamp(2.6rem, 5.4vw, 5.25rem);
  --fs-h2: clamp(2rem, 3.6vw, 3.4rem);
  --fs-h3: clamp(1.25rem, 1.6vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1.35vw, 1.3125rem);
  --fs-body: 1.0625rem;
  --fs-small: .9375rem;

  --gutter: max(20px, min(4vw, 48px));
  --max: 1280px;
  --sec: clamp(104px, 12vw, 184px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.03em; line-height: 1.04; text-wrap: balance; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.015em; line-height: 1.2; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Painikkeet ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 10px; border: 0;
  font: inherit; font-weight: 600; font-size: 1rem; letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .16s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge-hi); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-hi); }
  .btn-quiet:hover { background: var(--tile); }
}
.text-link { display: inline-block; margin-top: 28px; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* ---------- Navigaatio ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(12, 12, 13, .9); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); box-shadow: 0 1px 0 var(--edge); }
.nav-in { display: flex; align-items: center; gap: 36px; height: 68px; }
.brand { text-decoration: none; font-weight: 650; font-size: 1.5rem; letter-spacing: -.035em; line-height: 1; color: var(--ink); }
.brand-r { color: var(--accent); }
.brand-ai { color: var(--muted); font-weight: 500; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--soft); font-size: .9375rem; transition: color .18s ease; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 900px) { .nav-links { display: none; } .nav-in { justify-content: space-between; height: 60px; } .brand { font-size: 1.3rem; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(64px, 9vw, 136px) 0 clamp(80px, 10vw, 152px); overflow: clip; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero::before { content: ""; position: absolute; right: -12%; top: -30%; width: 75vw; height: 75vw; max-width: 1100px; max-height: 1100px; pointer-events: none; background: radial-gradient(closest-side, rgba(224, 134, 47, .11), rgba(224, 134, 47, .03) 55%, transparent); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(transparent, var(--ground)); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero h1 { font-size: var(--fs-hero); font-weight: 600; letter-spacing: -.045em; line-height: .98; }
.hero-grid, .hero-copy { z-index: 1; }
.hero .lead { margin-top: 32px; font-size: var(--fs-lead); line-height: 1.55; color: var(--soft); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }

/* Automaatio-esimerkki */
.flow { background: rgba(18, 18, 20, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--edge), 0 40px 80px -30px rgba(0, 0, 0, .7); padding: 10px; }
.flow-tabs { display: flex; gap: 4px; padding: 4px; background: var(--ground); border-radius: 12px; }
.flow-tabs button {
  flex: 1; min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--soft);
  font: inherit; font-size: .875rem; font-weight: 550; cursor: pointer; transition: background-color .2s ease, color .2s ease;
}
.flow-tabs button[aria-selected="true"] { background: var(--tile-hi); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .flow-tabs button[aria-selected="false"]:hover { color: var(--ink); } }
.flow-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 22px 16px 8px; }
.flow-title { font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; }
.flow-time { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.flow-steps { list-style: none; margin: 0; padding: 8px 6px 4px; display: grid; }
.flow-steps li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 14px; padding: 12px 10px; position: relative; }
.flow-steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 38px; bottom: -10px; width: 2px; border-radius: 1px; background: var(--edge-hi); }
.flow-steps li.done:not(:last-child)::after { background: rgba(224, 134, 47, .45); }
.flow-steps i { width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; box-shadow: inset 0 0 0 2px var(--edge-hi); position: relative; z-index: 1; background: var(--raise); transition: background-color .3s ease, box-shadow .3s ease; }
.flow-steps li.active i { box-shadow: inset 0 0 0 2px var(--accent); }
.flow-steps li.active i::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1s ease-in-out infinite; }
.flow-steps li.done i { background: var(--accent); box-shadow: none; }
.flow-steps li.done i::before { content: ""; position: absolute; left: 8px; top: 5px; width: 6px; height: 10px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes pulse { 50% { opacity: .35; } }
.flow-steps b { display: block; font-weight: 600; font-size: .9875rem; transition: color .3s ease; }
.flow-steps span { display: block; color: var(--soft); font-size: .875rem; line-height: 1.45; margin-top: 2px; transition: opacity .3s ease; }
.flow-steps em { font-style: normal; color: var(--muted); font-size: .8125rem; padding-top: 2px; transition: opacity .3s ease; }
.flow-steps li.wait b { color: var(--muted); }
.flow-steps li.wait span, .flow-steps li.wait em, .flow-steps li.active em { opacity: 0; }
.flow-foot { padding: 6px 16px 14px; color: var(--muted); font-size: .8125rem; }

/* ---------- Johdanto ---------- */
.intro { padding: var(--sec) 0; background: var(--raise); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro h2 { max-width: 11em; }
.statement .w { transition: color .35s ease; }
.js .statement .w { color: #3A3A40; }
.js .statement .w.lit { color: var(--ink); }
.statement { font-size: clamp(1.4rem, 2.4vw, 2.25rem); line-height: 1.3; letter-spacing: -.022em; font-weight: 500; color: var(--ink); max-width: 24em; text-wrap: pretty; }
@media (max-width: 900px) { .intro-grid { grid-template-columns: 1fr; } }

/* ---------- Osioiden otsikot ---------- */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 48px; margin-bottom: clamp(44px, 5vw, 72px); }
.sec-head p { color: var(--soft); font-size: var(--fs-lead); max-width: 30em; }

/* ---------- Palvelut ---------- */
.services { padding: var(--sec) 0; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile {
  background: var(--tile); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--edge); padding: clamp(24px, 2.6vw, 36px);
  display: flex; flex-direction: column; gap: 12px; min-height: 240px; justify-content: flex-end;
  transition: background-color .25s ease, box-shadow .25s ease;
}
.tile p { color: var(--soft); max-width: 34em; }
.tile-wide { grid-column: span 2; }
@media (hover: hover) and (pointer: fine) { .tile:hover { background: var(--tile-hi); box-shadow: inset 0 0 0 1px var(--edge-hi); } }
.art { width: auto; height: 96px; margin-bottom: auto; align-self: flex-start; fill: none; stroke: rgba(255, 255, 255, .2); stroke-width: 1.5; overflow: visible; }
.art .hot { fill: var(--accent); stroke: none; }
.art .hot-fill { fill: var(--accent); stroke: none; opacity: .9; }
.art-stack .front { fill: var(--tile); stroke: rgba(255, 255, 255, .32); }
.art-radar .sweep { transform-origin: 60px 60px; animation: spin 6s linear infinite; }
.art-radar .sweep path { stroke: rgba(224, 134, 47, .7); }
.art-ring .dash { stroke-dasharray: 3 7; transform-origin: 60px 60px; animation: spin 30s linear infinite reverse; }
.art-ring .orbit { transform-origin: 60px 60px; animation: spin 9s linear infinite; }
.art-web .type { stroke: rgba(255, 255, 255, .32); stroke-width: 4; stroke-linecap: round; }
.art-stack rect:not(.front):not(.hot-fill) { transition: transform .5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .tile:hover .art-stack rect:nth-child(1) { transform: translate(8px, -6px); } .tile:hover .art-stack rect:nth-child(2) { transform: translate(4px, -3px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.tile .art { padding-bottom: 28px; height: 124px; }
.tile-art { display: flex; align-items: center; flex-wrap: wrap; margin-bottom: auto; padding-bottom: 32px; }
.node { font-size: .8125rem; font-weight: 550; color: var(--soft); padding: 8px 12px; border-radius: 8px; background: var(--ground); box-shadow: inset 0 0 0 1px var(--edge-hi); white-space: nowrap; }
.node-ai { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(224, 134, 47, .6); }
.wire { flex: 1 1 18px; min-width: 14px; max-width: 64px; height: 2px; background: var(--edge-hi); position: relative; overflow: hidden; }
.wire::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: var(--accent); animation: wire 2.4s var(--ease-out) infinite; }
.wire:nth-child(4)::after { animation-delay: .8s; } .wire:nth-child(6)::after { animation-delay: 1.6s; }
@keyframes wire { 0% { left: -40%; } 60%, 100% { left: 100%; } }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } .tile-wide { grid-column: span 2; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile-wide { grid-column: auto; } .tile { min-height: 0; } .tile-art { flex-wrap: nowrap; } .tile-art > :nth-child(n+6) { display: none; } }

/* ---------- Ennen / jälkeen ---------- */
.cases { padding: var(--sec) 0; background: var(--raise); }
.ba { display: grid; }
.ba-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 80px); padding: 26px 0; box-shadow: 0 -1px 0 var(--edge) inset; }
.ba-headrow { padding: 0 0 16px; color: var(--muted); font-size: var(--fs-small); }
.ba-headrow span:last-child { color: var(--accent); }
.ba-row p { font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.45; }
.ba-row p:first-child { color: var(--muted); }
.ba-row:last-child { box-shadow: none; }
@media (max-width: 700px) {
  .ba-row { grid-template-columns: 1fr; gap: 6px; }
  .ba-headrow { display: none; }
  .ba-row p:first-child { font-size: 1rem; }
  .ba-row p:last-child { padding-left: 20px; position: relative; }
  .ba-row p:last-child::before { content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
}

/* ---------- Tuotteet ---------- */
.products { padding: var(--sec) 0; overflow: clip; }
.prod-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.prod-copy h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); letter-spacing: -.025em; }
.prod-copy > p { margin-top: 16px; color: var(--soft); font-size: var(--fs-lead); line-height: 1.55; max-width: 32em; }
.prod-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.prod-list li { padding-left: 24px; position: relative; }
.prod-list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 900px) { .prod-head { grid-template-columns: 1fr; } }

.rail {
  display: flex; gap: clamp(16px, 2.2vw, 28px); margin-top: clamp(48px, 6vw, 88px);
  padding: 8px max(var(--gutter), calc((100vw - var(--max)) / 2)) 24px; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2));
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; outline: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.dragging img { pointer-events: none; }
.shot { margin: 0; flex: 0 0 clamp(230px, 24vw, 300px); scroll-snap-align: start; user-select: none; }
.shot .device { width: 100%; background: #050505; border-radius: 14%/6.4%; padding: 3%; box-shadow: inset 0 0 0 1px var(--edge-hi), 0 30px 60px -20px rgba(0, 0, 0, .7); transition: transform .5s var(--ease-out); }
.shot img { width: 100%; height: auto; border-radius: 11.5%/5.3%; }
.shot figcaption { margin-top: 18px; color: var(--soft); font-size: var(--fs-small); max-width: 22em; }
.shot figcaption b { display: block; color: var(--ink); font-weight: 600; font-size: 1.0625rem; margin-bottom: 2px; }
@media (hover: hover) and (pointer: fine) { .shot:hover .device { transform: translateY(-6px); } }
.rail-ctrl { display: flex; align-items: center; gap: 24px; margin-top: 12px; }
.rail-bar { flex: 1; height: 2px; background: var(--edge-hi); border-radius: 1px; overflow: hidden; }
.rail-bar i { display: block; height: 100%; width: 30%; background: var(--accent); border-radius: 1px; transform-origin: left; transition: transform .15s linear; }
.rail-btns { display: flex; gap: 8px; }
.arrow { width: 46px; height: 46px; border-radius: 50%; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--edge-hi); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background-color .18s ease, transform .16s var(--ease-out); }
.arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.arrow:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .arrow:hover { background: var(--tile); } }

/* ---------- Työtapa ---------- */
.method { padding: var(--sec) 0; background: var(--raise); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--tile); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--edge); padding: 26px 24px 28px; }
.steps li > h3::before { content: counter(s); display: grid; letter-spacing: 0; font-family: var(--mono); place-items: center; width: 30px; height: 30px; border-radius: 50%; margin-bottom: 40px; font-size: .8125rem; font-weight: 600; color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge-hi); }
.steps li:first-child > h3::before { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.steps p { margin-top: 10px; color: var(--soft); font-size: var(--fs-small); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); margin-top: clamp(72px, 9vw, 128px); }
.principles p { margin-top: 10px; color: var(--soft); }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li > h3::before { margin-bottom: 20px; } }

/* ---------- Kysymykset ---------- */
.faq { padding: var(--sec) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq-grid h2 { position: sticky; top: 112px; }
.faq-list details { box-shadow: 0 -1px 0 var(--edge) inset; }
.faq-list summary { list-style: none; cursor: pointer; padding: 24px 48px 24px 0; font-weight: 550; font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); letter-spacing: -.01em; position: relative; transition: color .18s ease; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 2px; border-radius: 1px; background: var(--soft); transition: transform .25s var(--ease-out); }
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list details p { padding: 0 48px 26px 0; color: var(--soft); max-width: 40em; }
@media (hover: hover) and (pointer: fine) { .faq-list summary:hover { color: var(--accent-hi); } }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid h2 { position: static; } }

/* ---------- Yhteys ---------- */
.contact { padding: var(--sec) 0; background: var(--raise); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-copy h2 { max-width: 10em; }
.contact-copy p { margin-top: 24px; color: var(--soft); font-size: var(--fs-lead); line-height: 1.55; max-width: 26em; }
.contact-copy .contact-mail { color: var(--ink); }
.contact-copy a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: var(--tile); border-radius: 22px; box-shadow: inset 0 0 0 1px var(--edge); padding: clamp(22px, 3vw, 40px); display: grid; gap: 20px; }
.f-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .f-row2 { grid-template-columns: 1fr; } }
.f { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.f > span, .f legend { font-weight: 550; font-size: .9375rem; padding: 0; }
.f em { font-style: normal; color: var(--muted); font-weight: 400; margin-left: 4px; }
.f input, .f textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--ground); border: 0; border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--edge-hi); padding: 13px 14px; outline: none; transition: box-shadow .18s ease;
}
.f textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.f input::placeholder, .f textarea::placeholder { color: var(--muted); }
.f input:focus, .f textarea:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.f [aria-invalid="true"] { box-shadow: inset 0 0 0 2px #E5604A; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.checks label { position: relative; }
.checks input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.checks span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--edge-hi); font-size: .9375rem; transition: background-color .18s ease, box-shadow .18s ease; }
.checks input:checked + span { box-shadow: inset 0 0 0 1.5px var(--accent); background: rgba(224, 134, 47, .1); }
.checks input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .checks input:not(:checked):hover + span { background: var(--tile-hi); } }
.f-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.f-legal { color: var(--muted); font-size: .875rem; }
.f-msg { font-size: 1rem; font-weight: 550; min-height: 1.5em; }
.f-msg.err { color: #F08A76; }
.form.sent > :not(.f-msg) { display: none; }
.form.sent .f-msg { font-size: var(--fs-lead); color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Alatunniste ---------- */
.foot { padding: clamp(64px, 8vw, 112px) 0 40px; color: var(--soft); font-size: var(--fs-small); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot-row p { max-width: 32em; }
.foot a { color: var(--ink); text-underline-offset: 3px; }
.privacy { margin-top: 32px; max-width: 46em; }
.privacy summary { cursor: pointer; color: var(--ink); }
.privacy p { margin-top: 12px; }
.copy { margin-top: 20px; color: var(--muted); }

/* ---------- Liike ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .hero-copy > * { animation: rise .9s var(--ease-out) both; }
.js .hero-copy > .lead { animation-delay: .12s; }
.js .hero-copy > .hero-ctas { animation-delay: .22s; }
.js .flow { animation: rise 1s var(--ease-out) .3s both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .rv { transform: none; transition: opacity .3s ease; }
  .js .hero-copy > *, .js .flow { animation: none; }
  .wire::after, .flow-steps li.active i::before, .art * { animation: none !important; }
  .js .statement .w { color: var(--ink); }
}

/* ---------- Tekninen viimeistely ---------- */
/* Hienojakoinen rae koko sivun päällä: syvyyttä tummaan pintaan */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Kohdevalo: pinta ja reuna syttyvät hiiren kohdalta */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .055), transparent 45%);
}
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease; padding: 1px;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(236, 152, 69, .55), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
@media (hover: hover) and (pointer: fine) { .spot:hover::before, .spot:hover::after { opacity: 1; } }
.steps li { position: relative; }

/* Otsikon purkautuminen */
.dec .g { color: var(--accent); }

/* Ennen/jälkeen: oranssi viiva vetää rivin auki */
.ba-row.rv { position: relative; }
.ba-row.rv::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-out) .1s; opacity: .7; }
.ba-row.rv.in::before { transform: scaleX(1); }

/* Yhteydenoton taustataide */
.contact { position: relative; overflow: clip; }
.contact-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .8; }
.contact > .wrap { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .ba-row.rv::before { transition: none; transform: scaleX(1); }
}
