/* Omat fontit (SIL OFL 1.1, lisenssit: /fontit/OFL-*.txt). Latin ja latin-ext; selain lataa vain tarvitsemansa osan. */
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fontit/hanken-grotesk-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Hanken Grotesk'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/fontit/hanken-grotesk-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fontit/instrument-serif-italic-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url('/fontit/instrument-serif-italic-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fontit/instrument-serif-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fontit/instrument-serif-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fontit/jetbrains-mono-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fontit/jetbrains-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Copperplaten ja Phosphaten varafontit muille kuin Applen laitteille (19.11.2026) */
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('/fontit/cinzel-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cinzel'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('/fontit/cinzel-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Titan One'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fontit/titan-one-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Titan One'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fontit/titan-one-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Kulmikkaat fontit (29.11.2026, Petri): Chakra Petch, Rajdhani, Oxanium, Orbitron; SIL OFL, Google Fontsin latin-osajoukot */
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fontit/chakra-petch-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fontit/chakra-petch-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fontit/chakra-petch-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Chakra Petch'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fontit/chakra-petch-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fontit/rajdhani-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fontit/rajdhani-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fontit/rajdhani-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Rajdhani'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fontit/rajdhani-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oxanium'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fontit/oxanium-400-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Oxanium'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/fontit/oxanium-400-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Orbitron'; font-style: normal; font-weight: 400 900; font-display: swap; src: url('/fontit/orbitron-400-900-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Softori: tokenit ja komponentit design systemistä. Fontit: fontit.css (omalta palvelimelta), järjestelmäfontit varalla. */
:root,[data-theme="dark"]{--surface:#070d18;--surface-raised:#0f1828;--surface-sunk:#03060c;--line:#1f2b40;--line-strong:#5b6a86;--ink:#eef1f6;--ink-muted:#9aa6ba;--hehku:#f5a524;--on-hehku:#140c02;--hehku-ink:#f5a524;--kulta:#eccb98;--kulta-ink:#eccb98;--taivas:#8fb6de;--taivas-ink:#8fb6de;--link:var(--taivas-ink);--rusko:#e8b4a2;--pilvi:#4f5878;--lava:#ff6b78;--focus:#f5a524;--kuvaselain:#6fa6d6;--on-kuvaselain:#06182a;--kuvaselain-ink:#9ccbee;--kuvaselain-pinta:#0a1626;--tulostus:#9ab85a;--on-tulostus:#101a06;--tulostus-ink:#b9d47a;--tulostus-pinta:#0b1610;--koti:#f1bd75;--on-koti:#2a1a05;--koti-ink:#f0cd8a;--koti-pinta:#16110a;--paja:#d0783a;--on-paja:#1c0d04;--paja-ink:#e9a06a;--paja-pinta:#170e0a;--glow:0 0 120px 0 rgba(245, 165, 36, 0.22);}[data-theme="light"]{--surface:#f4f1eb;--surface-raised:#ffffff;--surface-sunk:#e9e4da;--line:#d6cfc1;--line-strong:#7d8696;--ink:#0b1220;--ink-muted:#4d586a;--hehku:#f5a524;--on-hehku:#140c02;--hehku-ink:#8f4c00;--kulta:#eccb98;--kulta-ink:#7a5418;--taivas:#8fb6de;--taivas-ink:#24548a;--link:var(--taivas-ink);--rusko:#e8b4a2;--pilvi:#4f5878;--lava:#b3122e;--focus:#1d4f91;--kuvaselain:#6fa6d6;--on-kuvaselain:#06182a;--kuvaselain-ink:#1f5f93;--kuvaselain-pinta:#e3edf5;--tulostus:#9ab85a;--on-tulostus:#101a06;--tulostus-ink:#456b14;--tulostus-pinta:#e8eedb;--koti:#f1bd75;--on-koti:#2a1a05;--koti-ink:#7a4f0a;--koti-pinta:#f3ead6;--paja:#d0783a;--on-paja:#1c0d04;--paja-ink:#8a3d0e;--paja-pinta:#f3e6dc;--glow:0 24px 60px -24px rgba(11, 18, 32, 0.35);}:root{--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--space-12:48px;--space-16:64px;--space-24:96px;--radius-sm:4px;--radius-md:10px;--radius-lg:20px;--radius-full:999px;--font-display:"Instrument Serif", "Iowan Old Style", Georgia, serif;--font-sans:"Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;--font-mono:"JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;}



/* Softori — component styles. Every value comes from tokens.css; nothing here re-declares a token. */

body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 26px; -webkit-font-smoothing: antialiased; }
.so-pad { padding: var(--space-6); }
.so-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.so-night { background: var(--surface); color: var(--ink); }

/* Type helpers */
.so-eyebrow { margin: 0; font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--hehku-ink); }
.so-caption { font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.so-h1, .so-h2, .so-h2l { margin: 0; font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.so-h1 { font-size: 112px; line-height: .95; }
.so-h2l { font-size: 72px; line-height: 1; }
.so-h2 { font-size: 44px; line-height: 1.08; letter-spacing: 0; }
.so-h1 em, .so-h2 em, .so-h2l em { font-style: italic; color: var(--kulta-ink); }
.so-lead { margin: 0; font-size: 20px; line-height: 32px; color: var(--ink-muted); max-width: 36ch; }
.so-title { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; }
.so-muted { color: var(--ink-muted); }
.so-stack > * + * { margin-top: var(--space-4); }
a.so-link { color: var(--link); text-underline-offset: 3px; }

/* Button — pill, three variants */
.so-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: 48px; padding: 0 var(--space-6); border-radius: var(--radius-full); border: 1px solid transparent; font: 600 15px/20px var(--font-sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.so-btn--primary { background: var(--hehku); color: var(--on-hehku); }
.so-btn--primary:hover { background: var(--kulta); }
.so-btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.so-btn--ghost:hover { border-color: var(--ink); }
.so-btn--link { height: auto; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); }
.so-btn--link::after { content: "→"; transition: transform .15s ease; }
.so-btn--link:hover::after { transform: translateX(3px); }
.so-btn--sm { height: 40px; padding: 0 var(--space-4); font-size: 14px; }
.so-btn:focus-visible, .so-nav a:focus-visible, .so-wordmark:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Lens — the circular viewport with the red/blue rim the telescope photos have */
.so-lens { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--surface-sunk); box-shadow: calc(var(--space-1) * -1) 0 0 0 var(--lava), var(--space-1) 0 0 0 var(--taivas); isolation: isolate; }
.so-lens img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--so-zoom, 1.6)); transform-origin: var(--so-origin, 50% 50%); }
.so-lens--glow { box-shadow: calc(var(--space-1) * -1) 0 0 0 var(--lava), var(--space-1) 0 0 0 var(--taivas), var(--glow); }
.so-lens--plain { box-shadow: none; }

/* Ocular — a whole telescope photo dissolved into the night ground */
.so-ocular { position: relative; aspect-ratio: 1; }
.so-ocular img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); }

/* Spectrum rule — the chromatic fringe as a three-band hairline */
.so-spectrum { display: flex; height: 3px; }
.so-spectrum span { flex: 1; }
.so-spectrum span:nth-child(1) { background: var(--lava); }
.so-spectrum span:nth-child(2) { background: var(--hehku); flex: 2; }
.so-spectrum span:nth-child(3) { background: var(--taivas); }

/* Header */
.so-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding: var(--space-4) var(--space-8); background: var(--surface); border-bottom: 1px solid var(--line); }
.so-wordmark { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--font-display); font-size: 30px; line-height: 1; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.so-wordmark small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--ink-muted); }
.so-nav { display: flex; align-items: center; gap: var(--space-8); }
.so-nav a { color: var(--ink-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.so-nav a:hover, .so-nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.so-hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: var(--space-12); padding: var(--space-16) var(--space-8) var(--space-24); background: var(--surface); color: var(--ink); overflow: hidden; }
.so-hero .so-h1 { margin: var(--space-4) 0 var(--space-6); }
.so-hero .so-lead { margin-bottom: var(--space-8); }
.so-hero__art { position: relative; }
.so-hero__sat { position: absolute; width: 30%; left: -4%; bottom: 6%; }
.so-hero__tag { position: absolute; right: 6%; top: 4%; }

/* Sky — the night ground: a Horisontti photo graded to night, a Valo photo as the sky, a real sun and planets on top */
.so-sky { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 760px; overflow: hidden; background: var(--surface); color: var(--ink); }
.so-sky__stars { position: absolute; inset: 0 0 35% 0; z-index: -3; background: url("kuvat/tahdet.svg") 0 0 / 1280px 520px repeat-x; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%); mask-image: linear-gradient(180deg, #000 30%, transparent 100%); }
.so-sky__aurora, .so-sky__horizon { position: absolute; left: 0; right: 0; }
.so-sky__aurora { top: 0; height: 75%; z-index: -2; mix-blend-mode: screen; opacity: .6; -webkit-mask-image: radial-gradient(ellipse 55% 60% at 62% 45%, #000 25%, transparent 80%); mask-image: radial-gradient(ellipse 55% 60% at 62% 45%, #000 25%, transparent 80%); }
.so-sky__horizon { bottom: 0; height: 60%; z-index: -1; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 80%, transparent 100%); }
.so-sky__aurora img, .so-sky__horizon img { display: block; width: 100%; height: 100%; object-fit: cover; }
.so-sky__aurora img { object-position: 50% 40%; }
.so-sky__horizon img { object-position: 50% var(--so-pos, 72%); filter: brightness(.5) saturate(.85) hue-rotate(-6deg); }
.so-sky__text { position: relative; max-width: 620px; padding: var(--space-16) var(--space-8); }
.so-sky .so-h1 { margin: var(--space-4) 0 var(--space-6); }
.so-sky .so-lead { margin-bottom: var(--space-8); }
.so-sky .so-sun { --so-size: 220px; }
.so-sky__tag { position: absolute; right: var(--space-8); bottom: var(--space-6); }

/* Sun — the real photographed disc: granulation from the photo, warmed, limb-darkened, with a corona */
.so-sun { position: absolute; z-index: -1; width: var(--so-size, 200px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; isolation: isolate; box-shadow: -2px 0 0 0 var(--lava), 2px 0 0 0 var(--taivas), 0 0 28px 6px color-mix(in srgb, var(--hehku) 70%, transparent), 0 0 110px 36px color-mix(in srgb, var(--hehku) 32%, transparent), 0 0 260px 110px color-mix(in srgb, var(--hehku) 12%, transparent); }
.so-sun img { position: absolute; max-width: none; width: var(--so-w, 420%); left: var(--so-x, -112%); top: var(--so-y, -146%); filter: blur(.6px) saturate(1.1); }
.so-sun::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--hehku); mix-blend-mode: multiply; opacity: .55; }
.so-sun::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 50%; background: radial-gradient(circle, rgba(255, 251, 235, .35) 0 18%, transparent 48%, rgba(169, 56, 13, .4) 82%, rgba(110, 28, 4, .85) 100%); }

/* Planet — a photo as surface texture on a sphere lit from the sun's side (--so-light) */
.so-planet { position: absolute; z-index: -1; width: var(--so-size, 64px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; isolation: isolate; box-shadow: 0 0 18px 2px color-mix(in srgb, var(--taivas) 18%, transparent); }
.so-planet img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--so-origin, 50% 50%); transform: rotate(var(--so-tilt, -20deg)) scale(var(--so-zoom, 1.6)); }
.so-planet::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at var(--so-light, 25% 25%), rgba(255, 255, 255, .12) 0 8%, transparent 26%, rgba(3, 6, 12, .55) 52%, rgba(3, 6, 12, .97) 76%); }

/* Apps — the other projects as a compact grid of tiles, each with its AppIcon */
.so-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.so-app { display: grid; grid-template-columns: 72px 1fr; column-gap: var(--space-4); row-gap: var(--space-1); align-content: start; padding: var(--space-6); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.so-app .so-appicon { grid-row: span 3; width: 72px; height: 72px; }
.so-app h3 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 600; }
.so-app p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 24px; }
.so-app .so-btn--link { grid-column: 2; justify-self: start; margin-top: var(--space-2); font-size: 15px; }

/* Service card */
.so-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.so-card { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-8); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.so-card .so-lens { width: 88px; margin: 0 0 var(--space-4) var(--space-1); }
.so-card p { margin: 0; color: var(--ink-muted); }
.so-card .so-btn--link { margin-top: auto; padding-top: var(--space-4); align-self: flex-start; }

/* Section shell */
.so-section { padding: var(--space-24) var(--space-8); }
.so-section__head { display: grid; gap: var(--space-2); max-width: 720px; margin-bottom: var(--space-12); }

/* Horizon — a lake photo as a full-bleed band, faded into the ground at both edges */
.so-horizon { position: relative; display: flex; align-items: flex-end; min-height: 560px; overflow: hidden; background: var(--surface); color: var(--ink); }
.so-horizon > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--so-pos, 50%); }
.so-horizon::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--surface) 0%, transparent 28%, transparent 38%, var(--surface) 88%); }
.so-horizon__text { position: relative; z-index: 2; display: grid; gap: var(--space-4); max-width: 640px; padding: var(--space-16) var(--space-8); }
.so-horizon__text p:not(.so-eyebrow) { margin: 0; color: var(--ink-muted); font-size: 20px; line-height: 32px; }

/* Steps */
.so-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); border-top: 1px solid var(--line); }
.so-step { display: grid; gap: var(--space-2); padding-top: var(--space-6); }
.so-step p { margin: 0; color: var(--ink-muted); }

/* Split — a photo with a small lens inset beside text */
.so-split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; }
.so-split__media { position: relative; aspect-ratio: 1; }
.so-split__media > img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); }
.so-split__media .so-lens { position: absolute; width: 30%; right: calc(var(--space-8) * -1); bottom: calc(var(--space-8) * -1); }
.so-split__text { display: grid; gap: var(--space-4); max-width: 520px; }
.so-split__text p:not(.so-eyebrow) { margin: 0; color: var(--ink-muted); }
.so-split--flip .so-split__media { order: 2; }
.so-split--flip .so-split__media .so-lens { right: auto; left: calc(var(--space-8) * -1); }

/* Mosaic */
.so-mosaic { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 140px; gap: var(--space-3); }
.so-mosaic figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius-md); background: var(--surface-sunk); grid-column: span 2; grid-row: span 2; }
.so-mosaic figure.is-wide { grid-column: span 4; grid-row: span 3; }
.so-mosaic figure.is-tall { grid-column: span 2; grid-row: span 3; }
.so-mosaic img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.so-mosaic figure:hover img { transform: scale(1.03); }
.so-mosaic figcaption { position: absolute; left: var(--space-3); bottom: var(--space-3); padding: 2px var(--space-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }

/* Call to action */
.so-cta { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: var(--space-12); padding: var(--space-16); background: var(--surface-sunk); border-radius: var(--radius-lg); }
.so-cta .so-lens { width: min(100%, 380px); justify-self: center; }

/* Footer */
.so-footer { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-8); padding: var(--space-12) var(--space-8); color: var(--ink-muted); font-size: 14px; line-height: 22px; }
.so-footer .so-wordmark { font-size: 40px; }
.so-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.so-footer a { color: var(--ink-muted); text-decoration: none; }
.so-footer a:hover { color: var(--ink); }
.so-footer h4 { margin: 0 0 var(--space-3); }

/* Project themes — one colour set per project, taken from its own landscape. Set data-project on the band, card or dock link. */
[data-project="kuvaselain"] { --so-pr: var(--kuvaselain); --so-pr-ink: var(--kuvaselain-ink); --so-on-pr: var(--on-kuvaselain); --so-pr-surface: var(--kuvaselain-pinta); }
[data-project="tulostus"] { --so-pr: var(--tulostus); --so-pr-ink: var(--tulostus-ink); --so-on-pr: var(--on-tulostus); --so-pr-surface: var(--tulostus-pinta); }
[data-project="koti"] { --so-pr: var(--koti); --so-pr-ink: var(--koti-ink); --so-on-pr: var(--on-koti); --so-pr-surface: var(--koti-pinta); }
[data-project="paja"] { --so-pr: var(--paja); --so-pr-ink: var(--paja-ink); --so-on-pr: var(--on-paja); --so-pr-surface: var(--paja-pinta); }

/* App icon — the SVG carries its own plate and macOS padding; only the size is set here */
.so-appicon { display: block; width: 96px; height: 96px; flex: none; }
.so-appicon--lg { width: 160px; height: 160px; }
.so-appicon--sm { width: 48px; height: 48px; }
.so-appicon--xs { width: 32px; height: 32px; }

/* Dock — the row of project icons under the Projektit heading; each link jumps to its band */
.so-dock { display: flex; flex-wrap: wrap; gap: var(--space-6); margin: 0; padding: 0; list-style: none; }
.so-dock a { display: grid; justify-items: center; gap: var(--space-2); width: 128px; padding: var(--space-2) 0; border-radius: var(--radius-md); color: var(--ink); text-decoration: none; text-align: center; font-size: 14px; line-height: 20px; font-weight: 500; }
.so-dock .so-appicon { transition: transform .15s ease; }
.so-dock a:hover .so-appicon { transform: translateY(-3px); }
.so-dock a:hover { color: var(--so-pr-ink, var(--ink)); }
.so-dock a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Backdrop — a landscape above a section's text, dissolved into the ground; the text always sits on solid surface */
.so-backdrop { position: relative; isolation: isolate; display: grid; grid-template-rows: var(--so-sky, 360px) auto; background: var(--surface); color: var(--ink); overflow: hidden; }
.so-backdrop > img:first-child { position: absolute; top: 0; left: 0; z-index: -1; width: 100%; height: calc(var(--so-sky, 360px) + 120px); object-fit: cover; object-position: 50% var(--so-pos, 50%); -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%); }
.so-backdrop__text { grid-row: 2; display: grid; gap: var(--space-4); padding: var(--space-12) var(--space-8) var(--space-16); }
.so-backdrop__text .so-lead { margin-bottom: var(--space-4); }
.so-backdrop--night > img:first-child { filter: brightness(.55) saturate(.85) hue-rotate(-6deg); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 50%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 50%, transparent 100%); }

/* Project — a full-bleed band per project: its landscape on one side, text on the project's own ground on the other */
.so-project { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; min-height: 600px; background: var(--so-pr-surface, var(--surface)); color: var(--ink); overflow: hidden; }
.so-project__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: var(--so-pos, 50% 50%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 42%, #000 68%); mask-image: linear-gradient(90deg, transparent 0%, transparent 42%, #000 68%); }
.so-project__text { grid-column: 1; display: grid; align-content: center; gap: var(--space-4); max-width: 560px; padding: var(--space-16) var(--space-8) var(--space-16) var(--space-8); }
.so-project__text .so-appicon { margin-bottom: var(--space-4); }
.so-project__text .so-eyebrow { color: var(--so-pr-ink, var(--hehku-ink)); }
.so-project__text .so-h2 em { color: var(--so-pr-ink, var(--kulta-ink)); }
.so-project__text p:not(.so-eyebrow) { margin: 0; color: var(--ink-muted); font-size: 20px; line-height: 32px; }
.so-project__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 22px; }
.so-project__meta li { padding: 2px var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-full); color: var(--ink); }
.so-project__text .so-row { margin-top: var(--space-4); }
.so-project .so-btn--primary { background: var(--so-pr, var(--hehku)); color: var(--so-on-pr, var(--on-hehku)); }
.so-project .so-btn--primary:hover { background: var(--ink); color: var(--so-pr-surface, var(--surface)); }
.so-project__inset { position: absolute; z-index: 1; right: var(--space-8); bottom: var(--space-8); width: 180px; }
.so-project--flip .so-project__bg { -webkit-mask-image: linear-gradient(270deg, transparent 0%, transparent 42%, #000 68%); mask-image: linear-gradient(270deg, transparent 0%, transparent 42%, #000 68%); }
.so-project--flip .so-project__text { grid-column: 2; justify-self: end; }
.so-project--flip .so-project__inset { right: auto; left: var(--space-8); }

@media (max-width: 820px) {
  .so-header { padding: var(--space-3) var(--space-4); }
  .so-nav a:not(.so-btn) { display: none; }
  .so-hero { grid-template-columns: 1fr; padding: var(--space-12) var(--space-4) var(--space-16); }
  .so-h1 { font-size: 56px; }
  .so-h2l { font-size: 44px; }
  .so-h2 { font-size: 34px; }
  .so-section { padding: var(--space-16) var(--space-4); }
  .so-cards, .so-steps, .so-footer, .so-cta, .so-split, .so-apps { grid-template-columns: 1fr; }
  .so-sky { align-items: flex-start; min-height: 760px; }
  .so-sky__text { padding: var(--space-12) var(--space-4) 0; }
  .so-sky .so-sun { --so-size: 120px; left: auto !important; right: var(--space-6); top: 480px !important; }
  .so-sky .so-planet { display: none; }
  .so-sky .so-planet.is-main { display: block; width: 64px; left: var(--space-6) !important; top: 560px !important; }
  .so-sky__tag { right: var(--space-4); }
  .so-split--flip .so-split__media { order: 0; }
  .so-split .so-split__media .so-lens { right: var(--space-4); left: auto; bottom: calc(var(--space-6) * -1); }
  .so-cta { padding: var(--space-8); }
  .so-horizon__text { padding: var(--space-12) var(--space-4); }
  .so-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .so-mosaic figure, .so-mosaic figure.is-wide, .so-mosaic figure.is-tall { grid-column: span 1; grid-row: span 1; }
  .so-mosaic figure.is-wide { grid-column: span 2; }
  .so-backdrop { grid-template-rows: var(--so-sky-mobile, 220px) auto; }
  .so-backdrop > img:first-child { height: calc(var(--so-sky-mobile, 220px) + 80px); }
  .so-backdrop__text { padding: var(--space-8) var(--space-4) var(--space-12); }
  .so-dock a { width: 96px; }
  .so-project, .so-project--flip { grid-template-columns: 1fr; grid-template-rows: 280px auto; min-height: 0; }
  .so-project__bg, .so-project--flip .so-project__bg { height: 360px; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); }
  .so-project__text, .so-project--flip .so-project__text { grid-column: 1; grid-row: 2; justify-self: start; max-width: none; padding: var(--space-6) var(--space-4) var(--space-12); }
  .so-project__text p:not(.so-eyebrow) { font-size: 17px; line-height: 28px; }
  .so-project__inset, .so-project--flip .so-project__inset { display: none; }
}
@media (prefers-reduced-motion: reduce) { .so-btn, .so-btn--link::after, .so-mosaic img, .so-dock .so-appicon { transition: none; } .so-dock a:hover .so-appicon { transform: none; } }

/* softori.app: sivuston omat lisäykset design systemin päälle. Ei inline-tyylejä (CSP style-src 'self'). */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.so-skip { position: absolute; left: var(--space-4); top: -60px; padding: var(--space-2) var(--space-4); background: var(--hehku); color: var(--on-hehku); border-radius: var(--radius-full); font-weight: 600; z-index: 10; }
.so-skip:focus { top: var(--space-4); }
.so-header { position: relative; z-index: 5; }  /* 23.11.2026: ei tartu ylälaitaan, vierittyy sivun mukana */
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Etusivun yötaivas: auringon ja planeettojen paikat luokkina */
.so-sun.is-paa { left: 72%; top: 11%; }
.so-planet.is-jatti { --so-size: 92px; --so-light: 82% 18%; --so-tilt: -18deg; --so-zoom: 3.2; --so-origin: 44% 48%; left: 57%; top: 41%; }
.so-planet.is-jaa { --so-size: 40px; --so-light: 12% 18%; --so-zoom: 3; --so-origin: 25% 30%; left: 90%; top: 47%; }
.so-planet.is-kuuma { --so-size: 22px; --so-light: 92% 45%; --so-zoom: 2.4; --so-origin: 52% 46%; left: 51%; top: 15%; }

/* Tuotekortit */
.so-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.so-product { position: relative; display: grid; grid-template-columns: 72px 1fr; column-gap: var(--space-4); row-gap: var(--space-2); align-content: start; padding: var(--space-6); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .15s ease; }
.so-product:hover { border-color: var(--line-strong); }
.so-product .so-appicon { grid-row: span 2; width: 72px; height: 72px; }
.so-product h3 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; }
.so-product h3 a { color: var(--ink); text-decoration: none; }
.so-product h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); }
.so-product p { grid-column: 1 / -1; margin: 0; color: var(--ink-muted); }
.so-product .so-price { grid-column: 1 / -1; color: var(--ink); font-weight: 600; }
.so-product .so-price small { font-weight: 400; color: var(--ink-muted); }

/* Tila ja kauppa merkintöinä */
.so-chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.so-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-full); font-family: var(--font-mono); font-size: 11px; line-height: 20px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }
.so-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); }
.so-chip--kaytossa { color: var(--ink); border-color: var(--hehku); }
.so-chip--kaytossa::before { background: var(--hehku); }
.so-chip--tulossa::before { background: var(--taivas); }

/* Sovelluskaupat */
.so-stores { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.so-store { display: grid; grid-template-columns: 96px 1fr; gap: var(--space-2) var(--space-6); padding: var(--space-8); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.so-store .so-appicon { grid-row: span 4; }
.so-store h3 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; }
.so-store p { margin: 0; color: var(--ink-muted); }
.so-store ul.so-list { margin: var(--space-2) 0 0; }
.so-list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-2); }
.so-list li { position: relative; padding-left: var(--space-6); color: var(--ink-muted); }
.so-list li::before { content: "→"; position: absolute; left: 0; color: var(--hehku-ink); }
.so-note { margin: var(--space-8) 0 0; color: var(--ink-muted); font-size: 14px; line-height: 22px; max-width: 70ch; }

/* Lupaukset */
.so-promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); border-top: 1px solid var(--line); }
.so-promises > div { display: grid; gap: var(--space-2); padding-top: var(--space-6); }
.so-promises p { margin: 0; color: var(--ink-muted); }

/* Tuotesivu */
.so-project h1.so-h2 { font-size: 56px; line-height: 1.04; }
.so-project__text .so-chips { margin-top: var(--space-2); }
.so-project .so-price-big { margin: 0; font-size: 20px; line-height: 28px; color: var(--ink); }
.so-project .so-price-big small { display: block; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.so-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); }
.so-cols h2 { margin: 0 0 var(--space-4); }
.so-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin: 0; }
.so-shots figure { margin: 0; display: grid; gap: var(--space-2); }
.so-shots img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); border: 1px solid var(--line); }
.so-shots figcaption { color: var(--ink-muted); font-size: 14px; line-height: 22px; }
.so-back { display: inline-block; margin-bottom: var(--space-8); color: var(--ink-muted); text-decoration: none; }
.so-back:hover { color: var(--ink); }
.so-prose { max-width: 70ch; }
.so-prose h2 { margin: var(--space-12) 0 var(--space-4); }
.so-prose p, .so-prose li { color: var(--ink-muted); }
.so-prose a { color: var(--link); }

@media (max-width: 1000px) {
  .so-products { grid-template-columns: 1fr 1fr; }
  .so-stores { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .so-products, .so-promises, .so-cols, .so-shots { grid-template-columns: 1fr; }
  .so-store { grid-template-columns: 64px 1fr; padding: var(--space-6); }
  .so-store .so-appicon { width: 64px; height: 64px; grid-row: span 1; }
  .so-store > *:not(.so-appicon):not(h3) { grid-column: 1 / -1; }
  .so-project h1.so-h2 { font-size: 38px; }
  .so-nav { gap: var(--space-4); }
}
@media (prefers-reduced-motion: reduce) { .so-product { transition: none; } }
.so-footer h2 { margin: 0 0 var(--space-3); }
.so-footer p { margin: 0; max-width: 34ch; }
/* Tuotesivun maisema liukuu pehmeämmin tekstin alle */
.so-project__bg { -webkit-mask-image: linear-gradient(90deg, transparent 28%, rgba(0, 0, 0, .25) 46%, rgba(0, 0, 0, .75) 64%, #000 82%); mask-image: linear-gradient(90deg, transparent 28%, rgba(0, 0, 0, .25) 46%, rgba(0, 0, 0, .75) 64%, #000 82%); }
@media (max-width: 820px) { .so-project__bg { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%); } }
/* Valikon pääpainikkeen teksti: .so-nav a ei saa ohittaa on-hehku-väriä (kontrasti) */
.so-nav a.so-btn--primary, .so-nav a.so-btn--primary:hover { color: var(--on-hehku); }

/* Krediittipaketit */
.so-packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.so-pack { display: grid; align-content: start; gap: var(--space-2); padding: var(--space-8); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.so-pack.is-suosittu { border-color: var(--hehku); box-shadow: var(--glow); }
.so-pack p { margin: 0; }
.so-pack__credits { font-family: var(--font-display); font-size: 56px; line-height: 1; color: var(--ink); }
.so-pack__credits span { font-family: var(--font-sans); font-size: 16px; color: var(--ink-muted); }
.so-pack__price { font-size: 24px; line-height: 32px; font-weight: 600; color: var(--ink); }
.so-pack__note { color: var(--ink-muted); }
.so-packs__cta { margin-top: var(--space-8); }
.so-table-wrap { overflow-x: auto; }
.so-table { width: 100%; border-collapse: collapse; }
.so-table th, .so-table td { padding: var(--space-3) var(--space-2); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-muted); }
.so-table th { color: var(--ink); font-weight: 600; }
.so-table thead th { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.so-table .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.so-steps-list { margin: 0; padding-left: var(--space-6); display: grid; gap: var(--space-4); color: var(--ink-muted); }
.so-steps-list strong { color: var(--ink); }
@media (max-width: 820px) {
  .so-packs { grid-template-columns: 1fr; }
  .so-pack__credits { font-size: 44px; }
}
/* Ankkurilinkit eivät jää kiinteän yläpalkin alle */
[id] { scroll-margin-top: 88px; }

/* Latauksen tarkistussumma rivittyy kapealla näytöllä */
.so-note code { overflow-wrap: anywhere; }

/* Uutiskatsauksen soitin (rakenna.py: uutissivu) */
.so-audio { margin: var(--space-8) 0 0; padding: var(--space-4); border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 16px; display: grid; gap: var(--space-3); }
.so-audio figcaption { color: var(--ink-muted); }
.so-audio audio { width: 100%; }

/* Softorin uudet värit (Petri 19.11.2026): tumma pohja, sininen pääväri, punainen ja vihreä aksentteina.
   Korvaa design systemin oranssin ja kullan tällä sivustolla; tuotteiden omat värit (kuvaselain, tulostus …) ennallaan.
   Sävyt ovat ehdotus, kunnes logo on valmis: vaihda ne vain tästä lohkosta. */
:root, [data-theme="dark"] {
  --sininen: #3d9bff; --sininen-ink: #74b9ff; --sininen-syva: #1b5fb8;
  --punainen: #ff4d5e; --punainen-ink: #ff7b88;
  --vihrea: #2fd17a; --vihrea-ink: #62e39d;
  --hehku: var(--sininen); --on-hehku: #03101f; --hehku-ink: var(--sininen-ink);
  --kulta: #8cc8ff; --kulta-ink: var(--vihrea-ink);
  --taivas: var(--vihrea); --taivas-ink: var(--vihrea-ink);
  --lava: var(--punainen);
  --link: #8cc8ff; --focus: var(--sininen-ink);
  --glow: 0 0 120px 0 rgba(61, 155, 255, 0.24);
}
/* Aurinko on valokuva: se pysyy lämpimänä uusista väreistä huolimatta. */
.so-sun { --hehku: #f5a524; }

/* Softori OY sinisinä 3D-kirjaimina: kirkas yläreuna ja porrastettu, tummeneva syvyys alaoikealle.
   Syvyys on em-yksiköissä, joten se kasvaa kirjainkoon mukana (yläpalkki 34 px, alatunniste 48 px). */
.so-wordmark { font-size: 34px; font-weight: 400; letter-spacing: .01em; }
.so-footer .so-wordmark { font-size: 48px; }
.so-wordmark, .so-wordmark small {
  color: var(--sininen);
  text-shadow:
    0 -.02em 0 #cfe7ff,
    .02em .025em 0 #2a7ddb, .04em .05em 0 #2269bd, .06em .075em 0 var(--sininen-syva), .08em .1em 0 #134a8f,
    .12em .18em .2em rgba(0, 0, 0, .7);
}
.so-wordmark small { font-family: var(--font-display); font-size: .6em; letter-spacing: .04em; }
/* Käyttöpainikkeiden ja korostusten punainen ja vihreä */
.so-chip--kaytossa { border-color: var(--vihrea); }
.so-chip--kaytossa::before { background: var(--vihrea); }
.so-list li::before { color: var(--sininen-ink); }

/* Työpaja-galleria (19.11.2026) */
.so-tyopaja h2.so-title { margin: var(--space-12) 0 var(--space-4); }
.so-tyopaja .so-shots { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: start; }
.so-tyopaja .so-shots img { aspect-ratio: 1; object-fit: cover; }
.so-tyopaja .so-note { margin-top: var(--space-12); }

/* Logo A (19.11.2026, lähde Brandit/softori-logo/tee_logo.py) */
.so-logo { display: inline-block; line-height: 0; text-shadow: none; }
.so-logo img { display: block; height: 46px; width: auto; }
.so-footer .so-logo img { height: 110px; }
@media (max-width: 820px) { .so-logo img { height: 42px; } }
.so-header { padding-top: var(--space-2); padding-bottom: var(--space-2); }

/* Etusivun maapallo ja uutiskatsaus (19.11.2026). Ilman skriptiä kuva ja linkki, skriptin kanssa canvas. */
.so-planet.is-jatti { left: 54%; top: 74%; }
.so-maa { position: absolute; z-index: 1; left: calc(74% - 150px); top: 36%; width: 300px; display: grid; justify-items: center; gap: var(--space-3); text-align: center; }
.so-maa__pallo { position: relative; display: block; width: 300px; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 1px rgba(154, 208, 255, .35), 0 0 40px 6px rgba(61, 155, 255, .35), 0 0 120px 30px rgba(61, 155, 255, .15); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), box-shadow 1.2s ease; cursor: pointer; }
.so-maa__pallo img, .so-maa__pallo canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; }
.so-maa__pallo canvas { display: none; }
.so-maa.on-js .so-maa__pallo canvas { display: block; }
.so-maa.on-js .so-maa__pallo img { display: none; }
.so-maa__pallo:hover { box-shadow: 0 0 0 1px rgba(154, 208, 255, .6), 0 0 48px 10px rgba(61, 155, 255, .45), 0 0 140px 40px rgba(61, 155, 255, .2); }
.so-maa__pallo:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; }
.so-maa.soi .so-maa__pallo { transform: scale(1.14); box-shadow: 0 0 0 1px rgba(255, 208, 213, .5), 0 0 50px 12px rgba(61, 155, 255, .5), 0 0 160px 50px rgba(255, 77, 94, .18); }
.so-maa__teksti { display: grid; gap: var(--space-1); margin: var(--space-6) 0 0; transition: transform 1.2s ease; }
.so-maa.soi .so-maa__teksti { transform: translateY(20px); }
.so-maa__tila { font-weight: 600; color: var(--ink); }
.so-maa__nyt { min-height: 26px; color: var(--punainen-ink); font-weight: 600; letter-spacing: .02em; }
@media (max-width: 1000px) { .so-maa { left: auto; right: var(--space-6); width: 240px; } .so-maa__pallo { width: 240px; } }
@media (max-width: 820px) {
  .so-maa { left: var(--space-4); right: auto; top: 470px; width: 200px; }
  .so-maa__pallo { width: 200px; }
  .so-sky { min-height: 860px; }
}
@media (prefers-reduced-motion: reduce) { .so-maa__pallo, .so-maa__teksti { transition: none; } }
.so-sky .so-sky__tag { left: var(--space-8); right: auto; }

/* Etusivun aurinko kauempana (19.11.2026): pienempi ja himmeämpi hehku, jotta maapallo on edessä. */
.so-sky .so-sun.is-paa { --so-size: 78px; left: calc(74% + 88px); top: calc(36% - 14px); box-shadow: -1px 0 0 0 var(--lava), 1px 0 0 0 var(--taivas), 0 0 12px 3px color-mix(in srgb, var(--hehku) 70%, transparent), 0 0 46px 14px color-mix(in srgb, var(--hehku) 26%, transparent), 0 0 110px 40px color-mix(in srgb, var(--hehku) 9%, transparent); }
@media (max-width: 1000px) { .so-sky .so-sun.is-paa { left: calc(100% - 92px); top: calc(36% - 16px); } }
@media (max-width: 820px) { .so-sky .so-sun.is-paa { --so-size: 52px; left: 178px !important; right: auto; top: 458px !important; } }

/* Etusivun iso logo yläpalkin ja otsikon välissä (19.11.2026) */
.so-sky { align-items: flex-start; }
.so-sky__text { padding-top: var(--space-6); }
.so-sky__logo { display: block; width: min(640px, 100%); height: auto; margin: 0 0 var(--space-4) calc(var(--space-4) * -1); }
.so-sky .so-h1 { font-size: 64px; line-height: 1; }
@media (max-width: 820px) {
  .so-sky__logo { margin-left: calc(var(--space-2) * -1); }
  .so-sky .so-h1 { font-size: 44px; }
}
@media (max-width: 820px) {
  .so-maa { top: 660px; }
  .so-sky .so-sun.is-paa { top: 648px !important; }
  .so-sky { min-height: 1090px; }
}

/* ===== Ulkoasun valinta (19.11.2026): fontti ja teema, ulkoasu.js asettaa html-attribuutit ===== */

/* Fontit: Copperplate ja Phosphate ovat Applen laitteiden järjestelmäfontteja (niitä ei jaeta, lisenssi ei salli).
   Muilla laitteilla niiden tilalla ovat lähes samannäköiset Cinzel ja Titan One (SIL OFL, /fontit/). */
html[data-fontti="copperplate"] { --font-display: Copperplate, "Copperplate Gothic Light", "Copperplate Gothic", "Cinzel", Georgia, serif; }
html[data-fontti="phosphate"] { --font-display: Phosphate, "Phosphate Solid", "Titan One", Georgia, sans-serif; }
html[data-fontti="copperplate"] :is(.so-h1, .so-h2, .so-h2l) { letter-spacing: .02em; }
html[data-fontti="copperplate"] :is(.so-h1, .so-h2, .so-h2l) em,
html[data-fontti="phosphate"] :is(.so-h1, .so-h2, .so-h2l) em { font-style: normal; }
html[data-fontti="phosphate"] :is(.so-h1, .so-h2, .so-h2l) { letter-spacing: .01em; }
html[data-fontti="copperplate"] .so-sky .so-h1 { font-size: 56px; }
@media (max-width: 820px) { html[data-fontti="copperplate"] .so-sky .so-h1 { font-size: 38px; } }
.so-f-copperplate { font-family: Copperplate, "Copperplate Gothic Light", "Cinzel", serif; }
.so-f-phosphate { font-family: Phosphate, "Phosphate Solid", "Titan One", sans-serif; letter-spacing: .02em; }

/* Teema Päivä: vaalea pohja; yötaivasosiot (etusivun taivas, kaupat, tuotesivujen kuvat) pysyvät tummina. */
[data-theme="light"] {
  --sininen: #1d6fd6; --sininen-ink: #1556a8; --sininen-syva: #0f3f80;
  --punainen: #c8253a; --punainen-ink: #a81d30;
  --vihrea: #12865a; --vihrea-ink: #0e6b48;
  --hehku: #1d6fd6; --on-hehku: #ffffff; --hehku-ink: #1556a8;
  --kulta: #1d6fd6; --kulta-ink: #0e6b48;
  --taivas: #12865a; --taivas-ink: #0e6b48;
  --lava: #c8253a; --link: #1556a8; --focus: #1556a8;
  --glow: 0 24px 60px -24px rgba(11, 18, 32, .35);
}
[data-theme="light"] .so-header { background: var(--surface); }
html[data-theme="light"] .so-header .so-logo img { filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .6)); }

/* Teema Revontuli: syvä yönvihreä pohja, revontulten vihreä ja violetti, pinkki aksentti. */
html[data-teema="revontuli"], html[data-teema="revontuli"] [data-theme="dark"] {
  --surface: #05110f; --surface-raised: #0b1d1a; --surface-sunk: #020807;
  --line: #173a33; --line-strong: #3f7a6c; --ink: #eafaf3; --ink-muted: #9cc7b9;
  --sininen: #3ddc97; --sininen-ink: #7af0bd; --sininen-syva: #1b8a5c;
  --punainen: #ff6fa8; --punainen-ink: #ff9cc4;
  --vihrea: #b48cff; --vihrea-ink: #cdb2ff;
  --hehku: #3ddc97; --on-hehku: #03140d; --hehku-ink: #7af0bd;
  --kulta: #a3f5cf; --kulta-ink: #cdb2ff;
  --taivas: #b48cff; --taivas-ink: #cdb2ff;
  --lava: #ff6fa8; --link: #9ff5cf; --focus: #7af0bd;
  --glow: 0 0 120px 0 rgba(61, 220, 151, .22);
}
html[data-teema="revontuli"] body {
  background:
    radial-gradient(ellipse 70% 40% at 15% -5%, rgba(61, 220, 151, .16), transparent 60%),
    radial-gradient(ellipse 60% 35% at 85% -10%, rgba(180, 140, 255, .14), transparent 60%),
    var(--surface);
}
html[data-teema="revontuli"] :is(.so-header, .so-section, .so-footer) { background: transparent; }
html[data-teema="revontuli"] .so-sky__horizon img { filter: brightness(.5) saturate(1.1) hue-rotate(95deg); }
html[data-teema="revontuli"] .so-sky__aurora img { filter: saturate(1.4) hue-rotate(-20deg); }

/* Valitsin yläpalkissa: näkyy vain, kun skripti toimii. */
.so-ulkoasu { display: none; position: relative; }
html[data-js] .so-ulkoasu { display: block; }
.so-ulkoasu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius-full); border: 1px solid var(--line-strong); color: var(--ink); font: 600 15px/1 var(--font-display); }
.so-ulkoasu summary::-webkit-details-marker { display: none; }
.so-ulkoasu summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.so-ulkoasu[open] summary { background: var(--surface-raised); }
.so-ulkoasu__valikko { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 300px; display: grid; gap: var(--space-2); padding: var(--space-4); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); }
.so-ulkoasu__valikko .so-caption { margin: var(--space-2) 0 0; }
.so-ulkoasu__rivi { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.so-ulkoasu button { flex: 1 1 auto; min-height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-full); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-size: 14px; cursor: pointer; }
.so-ulkoasu button[aria-pressed="true"] { background: var(--hehku); border-color: var(--hehku); color: var(--on-hehku); }
.so-ulkoasu button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 820px) { .so-ulkoasu__valikko { position: fixed; left: var(--space-4); right: var(--space-4); top: 72px; width: auto; } }

/* Iskulause ja sen alateksti vaihtavat fonttia valinnan mukana (Copperplate, Phosphate). */
html[data-fontti="copperplate"] .so-sky__lead { font-family: var(--font-display); letter-spacing: .03em; }
html[data-fontti="phosphate"] .so-sky__lead { font-family: var(--font-display); letter-spacing: .03em; }

/* Kielinappi EN/FI yläpalkissa (näkyy myös puhelimessa) */
.so-header a.so-kieli { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 var(--space-2); border-radius: var(--radius-full); border: 1px solid var(--line-strong); color: var(--ink); font: 600 13px/1 var(--font-sans); letter-spacing: .06em; text-decoration: none; }
.so-header a.so-kieli:hover { background: var(--surface-raised); }
.so-header a.so-kieli:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Etusivu 20.11.2026: iso logo on sivun pääotsikko. Logo laskeutuu alemmas ja keskemmälle niin, että sen nukkuva kuu
   on revontulikuvan pilvien takaisen kajastuksen kohdalla. Kajastus (mitattu selaimessa) on 51 % leveydestä ja
   noin 208 px ylhäältä, kun kuvan korkeus on kiinnitetty 570 px:iin (object-fit: cover, object-position 50 % 40 %). Kuu on logossa kohdassa 89,9 % leveydestä ja 24 % korkeudesta (640 × 320 px). */
.so-sky__otsikko { margin: 0; line-height: 0; }
.so-sky__otsikko .so-sky__logo { margin: 0; }
@media (min-width: 821px) {
  .so-sky__aurora { height: 570px; }
  .so-sky__text { padding-top: calc(131px + 320px + var(--space-6)); }
  .so-sky__otsikko { position: absolute; width: 640px; top: 131px; left: max(var(--space-4), calc(51vw - 575px)); }
  .so-sky__otsikko::before { content: ""; position: absolute; left: calc(89.9% - 110px); top: calc(24% - 110px); width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(226, 236, 255, .22) 0, rgba(200, 220, 255, .08) 40%, transparent 70%); pointer-events: none; z-index: -1; }
  .so-sky__otsikko .so-sky__logo { width: 640px; }
  /* Planeetat logon jättämään tilaan, maan kaltaiset kuvat (ei zoomia eikä kallistusta). */
  .so-sky .so-planet.is-jatti { --so-size: 96px; left: max(var(--space-8), calc(48vw - 640px)); top: 64px; }
  .so-sky .so-planet.is-jaa { --so-size: 44px; left: calc(48vw - 280px); top: 34px; }
}
.so-sky .so-planet img[src*="planeetta"] { transform: none; object-position: 50% 50%; }
.so-sky .so-planet:has(img[src*="planeetta"]) { box-shadow: 0 0 14px 2px rgba(120, 190, 255, .35), 0 0 40px 8px rgba(80, 150, 255, .12); }
.so-sky .so-planet.is-jatti { --so-light: 30% 28%; }
.so-sky .so-planet.is-jaa { --so-light: 70% 30%; }
@media (min-width: 821px) and (max-width: 1100px) {
  .so-sky__otsikko, .so-sky__otsikko .so-sky__logo { width: 520px; }
  .so-sky__otsikko { top: 146px; left: max(var(--space-4), calc(51vw - 467px)); }
  .so-sky__text { padding-top: calc(146px + 260px + var(--space-6)); }
}

/* Maata kiertävä kuu (entinen punapilkkuinen planeetta). Skripti liikuttaa sitä ja vaihtaa sen pallon eteen tai taakse. */
.so-maa__pallo { z-index: 1; }
.so-maa__kuu { position: absolute; left: calc(50% - 17px); top: 133px; width: 34px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: none; pointer-events: none; z-index: 0; box-shadow: 0 0 10px 1px rgba(220, 225, 240, .25); will-change: transform; }
.so-maa.on-js .so-maa__kuu { display: block; }
.so-maa__kuu img { display: block; width: 100%; height: 100%; }
.so-maa__kuu::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 72% 30%, rgba(255, 255, 255, .1) 0 8%, transparent 30%, rgba(3, 6, 12, .5) 58%, rgba(3, 6, 12, .9) 80%); }
.so-maa__kuu.edessa { z-index: 2; }
@media (max-width: 1000px) { .so-maa__kuu { width: 28px; left: calc(50% - 14px); top: 106px; } }
@media (max-width: 820px) { .so-maa__kuu { width: 24px; left: calc(50% - 12px); top: 88px; } }
@media (max-width: 820px) { .so-sky__otsikko { margin-bottom: var(--space-4); } }

/* Etusivun krediitit pienenä osiona yhteystietojen yläpuolella (20.11.2026); isot pakettikortit vain krediittisivulla. */
.so-krediitit { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-6); padding-top: var(--space-8); padding-bottom: var(--space-8); border-top: 1px solid var(--line); }
.so-krediitit .so-eyebrow { margin: 0; }
.so-krediitit__teksti { margin: 0; color: var(--ink-muted); }
.so-krediitit__paketit { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: 0; padding: 0; list-style: none; }
.so-krediitit__paketit li { display: inline-flex; gap: var(--space-2); padding: 2px var(--space-3); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink-muted); }
.so-krediitit__paketit li span + span { color: var(--ink); font-weight: 600; }

/* 20.11.2026: etusivun taivaalla vain logo, joten puhelimessa maapallo nousee logon alle. */
@media (max-width: 820px) {
  .so-maa { top: 400px; }
  .so-sky .so-sun.is-paa { top: 388px !important; }
  .so-sky .so-planet.is-main { top: 330px !important; }
  .so-sky { min-height: 800px; }
}
#sovellukset .so-section__head { max-width: 880px; }

/* 20.11.2026: logo laskeutuu niin, että S-kirjaimen alareuna koskettaa taustakuvan puiden latvoja (tietokoneen näytöllä).
   Puiden latvat ovat taivasosiossa kohdassa 0,832 × osion korkeus (760 px) + 0,033 × leveys; S:n alareuna on 84,4 %
   logon korkeudesta (640 × 320 px → 270 px, 520 × 260 px → 219 px). */
@media (min-width: 821px) {
  .so-sky { min-height: 760px; }
  .so-sky__text { padding-top: 0; padding-bottom: 0; }
  .so-sky__otsikko { top: calc(362px + 3.3vw); }
}
@media (min-width: 821px) and (max-width: 1100px) {
  .so-sky__otsikko { top: calc(413px + 3.3vw); }
}

/* Fontit: valinta vaihtaa kaikki tekstit (otsikot, leipäteksti ja pienet merkinnät). Logo on kuva eikä muutu. */
html[data-fontti="copperplate"] { --font-sans: var(--font-display); --font-mono: var(--font-display); }
html[data-fontti="phosphate"] { --font-sans: var(--font-display); --font-mono: var(--font-display); }
html[data-fontti="klassinen"] { --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif; --font-sans: var(--font-display); --font-mono: var(--font-display); }
html[data-fontti="moderni"] { --font-display: "Avenir Next", Avenir, Futura, "Century Gothic", "Trebuchet MS", sans-serif; --font-sans: var(--font-display); --font-mono: var(--font-display); }
html[data-fontti="pyorea"] { --font-display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Varela Round", "Nunito", sans-serif; --font-sans: var(--font-display); --font-mono: var(--font-display); }
html[data-fontti="kirjoituskone"] { --font-display: "American Typewriter", "Courier Prime", "Courier New", Courier, monospace; --font-sans: var(--font-display); --font-mono: var(--font-display); }
html[data-fontti="kasiala"] { --font-display: "Marker Felt", "Chalkboard SE", "Segoe Print", "Comic Sans MS", cursive; --font-sans: var(--font-display); --font-mono: var(--font-display); }
html:not([data-fontti="perus"]) body, html:not([data-fontti="perus"]) :is(button, input, select, textarea) { font-family: var(--font-sans); }
html:is([data-fontti="klassinen"], [data-fontti="moderni"], [data-fontti="pyorea"], [data-fontti="kirjoituskone"], [data-fontti="kasiala"]) :is(.so-h1, .so-h2, .so-h2l) em { font-style: normal; }
.so-f-klassinen { font-family: Georgia, "Iowan Old Style", "Times New Roman", serif; }
.so-f-moderni { font-family: "Avenir Next", Avenir, Futura, "Century Gothic", "Trebuchet MS", sans-serif; }
.so-f-pyorea { font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", sans-serif; }
.so-f-kirjoituskone { font-family: "American Typewriter", "Courier New", Courier, monospace; }
.so-f-kasiala { font-family: "Marker Felt", "Chalkboard SE", "Segoe Print", "Comic Sans MS", cursive; }
.so-ulkoasu__valikko { width: 340px; }

/* Sovelluslaatikot kasvavat yhteen: yksi yhtenäinen paneeli, laatikoiden välissä ohut viiva. */
.so-products { gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.so-product { border: 0; border-radius: 0; transition: background-color .15s ease; }
.so-product:hover { background: color-mix(in srgb, var(--surface-raised) 85%, var(--ink) 5%); }
.so-product h3 a::after { border-radius: 0; }

/* Kuvake on painike: iso punainen ympyrä kuvakkeen takana, vihreä kun sovellus on omasi. */
.so-product { grid-template-columns: 112px 1fr; }
.so-appnappi { grid-row: span 2; position: relative; z-index: 1; display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff6b78 0, #d8263c 45%, #8c0f22 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 10px 24px -10px rgba(216, 38, 60, .7); transition: transform .15s ease, box-shadow .15s ease, background .3s ease; }
.so-appnappi.is-oma { background: radial-gradient(circle at 35% 30%, #7ee2a0 0, #23a35a 45%, #0e5a2f 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 10px 24px -10px rgba(35, 163, 90, .7); }
.so-appnappi:hover { transform: scale(1.05); }
.so-appnappi:active { transform: scale(.97); }
.so-product .so-appnappi .so-appicon { grid-row: auto; width: 80px; height: 80px; }
@media (max-width: 820px) {
  .so-product { grid-template-columns: 96px 1fr; }
  .so-appnappi { width: 96px; height: 96px; }
  .so-product .so-appnappi .so-appicon { width: 68px; height: 68px; }
}
@media (prefers-reduced-motion: reduce) { .so-appnappi { transition: none; } .so-appnappi:hover, .so-appnappi:active { transform: none; } }

/* 3D-metallilogo (22.11.2026): logo3d.js piirtää kankaan kuvan päälle; ilman WebGL2:ta näkyy kuva. */
.so-logo3d { position: relative; display: block; aspect-ratio: 1100 / 506; }
.so-logo3d canvas { position: absolute; left: -6%; top: -10%; width: 112%; height: 120%; display: block; }
.so-logo3d.on-3d img { visibility: hidden; }
.so-sky__otsikko::before { display: none; }
@media (min-width: 821px) { .so-sky__otsikko { top: calc(285px + 3.3vw); } }
@media (min-width: 821px) and (max-width: 1100px) { .so-sky__otsikko { top: calc(315px + 3.3vw); } }
.so-header .so-logo img, .so-footer .so-logo img { width: auto; height: 46px; }

/* Teema Kiillotettu metalli (22.11.2026): grafiitti, kromi ja messinki; otsikoissa kromiliuku. */
html[data-teema="metalli"], html[data-teema="metalli"] [data-theme="dark"] {
  --surface: #0d0f12; --surface-raised: #171a1f; --surface-sunk: #08090b;
  --line: #2a2f37; --line-strong: #59616d; --ink: #eef1f5; --ink-muted: #a9b1bc;
  --sininen: #c9d2dd; --sininen-ink: #e8edf3; --sininen-syva: #6f7a88;
  --punainen: #d9a441; --punainen-ink: #f0c66e;
  --vihrea: #9fb7c9; --vihrea-ink: #cfdbe6;
  --hehku: #e2b85c; --on-hehku: #1a1206; --hehku-ink: #f5d58f;
  --kulta: #e2b85c; --kulta-ink: #f5d58f;
  --taivas: #b9c4d0; --taivas-ink: #dde4eb;
  --lava: #d9a441; --link: #f0c66e; --focus: #f5d58f;
  --glow: 0 0 120px 0 rgba(226, 184, 92, .16);
}
html[data-teema="metalli"] body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 30%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px),
    var(--surface);
}
html[data-teema="metalli"] :is(.so-header, .so-section, .so-footer) { background: transparent; }
html[data-teema="metalli"] :is(.so-h2, .so-h2l) {
  background: linear-gradient(180deg, #ffffff 0%, #c7ced8 45%, #59626e 52%, #dfe5ec 62%, #9aa3ae 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-teema="metalli"] :is(.so-h2, .so-h2l) em {
  background: linear-gradient(180deg, #fff3cf 0%, #e2b85c 45%, #7a5716 52%, #f0c66e 62%, #b5893a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-teema="metalli"] .so-sky__horizon img { filter: grayscale(.85) brightness(.55) contrast(1.15); }
html[data-teema="metalli"] .so-sky__aurora img { filter: grayscale(1) brightness(.8); }
html[data-teema="metalli"] .so-btn--primary { background: linear-gradient(180deg, #f5d58f, #c9973c 55%, #9c7126); color: #1a1206; border-color: #7a5716; }

/* Yläpalkki (23.11.2026): logo keskellä, kieli ja ulkoasu logon oikealla puolella, valikko omalla rivillään.
   Ota yhteyttä on alatunnisteessa. Mikään ei saa leventää sivua puhelimessa. */
body { overflow-x: clip; }
.so-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: var(--space-4); row-gap: var(--space-2); padding: var(--space-3) var(--space-6) var(--space-2); }
.so-header .so-logo { grid-column: 2; justify-self: center; }
.so-header .so-logo img { height: 64px; }
.so-header__valinnat { grid-column: 3; justify-self: start; display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.so-header a.so-kieli, .so-header .so-ulkoasu summary { width: 48px; min-width: 48px; height: 48px; font-size: 16px; }
.so-header .so-nav { grid-column: 1 / -1; justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-8); max-width: 100%; }
.so-footer .so-stack p + p { margin-top: var(--space-4); }
@media (max-width: 820px) {
  .so-header { column-gap: var(--space-2); padding: var(--space-2) var(--space-3); }
  .so-header .so-logo img { height: 48px; }
  .so-header__valinnat { gap: var(--space-2); }
  .so-header a.so-kieli, .so-header .so-ulkoasu summary { width: 44px; min-width: 44px; height: 44px; font-size: 15px; }
  .so-header .so-nav { gap: var(--space-1) var(--space-4); }
  .so-header .so-nav a:not(.so-btn) { display: inline-block; font-size: 14px; padding: var(--space-1) 0; }
  .so-header .so-ulkoasu { position: static; }
  .so-ulkoasu__valikko { position: absolute; top: calc(100% - var(--space-2)); left: var(--space-3); right: var(--space-3); width: auto; }
  .so-ulkoasu button { min-width: 0; }
}
@media (max-width: 400px) {
  .so-header .so-logo img { height: 40px; }
  .so-header a.so-kieli, .so-header .so-ulkoasu summary { width: 40px; min-width: 40px; height: 40px; font-size: 14px; }
  .so-header .so-nav { gap: var(--space-1) var(--space-3); }
  .so-header .so-nav a:not(.so-btn) { font-size: 13px; }
}
@media (max-width: 820px) { .so-sky__otsikko { margin-top: var(--space-8); } }

/* Logo 2C (29.11.2026, Petri): palikkalogo korvaa metallilogon. Iso logo sivun ylimpänä keskellä mustalla pohjalla,
   avaruus jatkuu sen alla planeettojen takana; planeetat siirretty logon alapuolelle. */
.so-header .so-logo img { height: 40px; width: auto; max-width: 100%; }
.so-footer .so-logo img { height: 36px; width: auto; max-width: 100%; }
.so-sky .so-sky__text { position: static; }
.so-sky__otsikko { position: absolute; z-index: 5; top: var(--space-6); left: 50%; transform: translateX(-50%); width: min(960px, calc(100% - 2 * var(--space-4))); margin: 0; }
.so-sky__otsikko .so-sky__logo { display: block; width: 100%; height: auto; margin: 0; }
.so-sky__otsikko::before { display: block; content: ""; position: absolute; z-index: -1; left: 50%; transform: translateX(-50%); width: 100vw; border-radius: 0;
  top: calc(var(--space-6) * -1); height: calc(100% + var(--space-6) + 140px); background: linear-gradient(#000 0, #000 calc(100% - 140px), transparent); }
.so-sky .so-planet.is-jatti { top: calc(64px + 16vw); }
.so-sky .so-planet.is-jaa { top: calc(34px + 16vw); }
@media (max-width: 820px) {
  .so-header .so-logo img { height: auto; width: min(150px, calc(100vw - 2 * 104px - 2 * var(--space-3))); max-height: none; }
  .so-header .so-wordmark { min-width: 0; }
  .so-footer .so-logo img { height: auto; width: min(100%, 300px); }
  .so-sky__otsikko { top: var(--space-4); }
}

/* S-kuusikulmio ja kristalli (29.11.2026, Petri; kuvat Brandit/softori-logo/s-kuusikulmio-2026-11-29/):
   ylä- ja alapalkissa pieni alkuperäinen logo ja Softori Oy, jonka o-kirjaimet ovat kristallilogoja (Cinzel, SIL OFL).
   Etusivulla iso kristallilogo pienenee vieritettäessä ylänurkkaan pelkällä CSS:llä (ei skriptiä). */
.so-vain-lukijalle { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.so-merkki { display: inline-flex; align-items: center; gap: .35em; color: var(--ink); text-decoration: none; text-shadow: none; line-height: 1; font-size: 26px; white-space: nowrap; }
.so-merkki:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: var(--radius-sm); }
.so-merkki__tunnus { display: block; height: 1.7em; width: auto; filter: drop-shadow(0 0 .25em rgba(140, 110, 255, .45)); }
.so-merkki__teksti { display: inline-block; font-family: "Cinzel", Georgia, serif; font-weight: 700; letter-spacing: .02em; line-height: 1;
  background: linear-gradient(180deg, #ffffff 0%, #e6deff 30%, #b7a6ff 58%, #7d68f0 82%, #5a45d0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 .18em rgba(140, 110, 255, .55)) drop-shadow(0 .04em 0 rgba(20, 10, 60, .8)); }
[data-theme="light"] .so-merkki__teksti { background-image: linear-gradient(180deg, #7d68f0 0%, #5a45d0 50%, #2b1f8a 100%); filter: drop-shadow(0 .03em 0 rgba(255, 255, 255, .7)); }
.so-merkki__o { display: inline-block; height: .74em; width: auto; margin: 0 .015em; vertical-align: -.02em; }
.so-merkki__o--iso { height: .96em; vertical-align: -.06em; }
.so-merkki__vali { display: inline-block; width: .3em; }
.so-header .so-merkki { grid-column: 2; justify-self: center; font-size: 26px; }
.so-footer .so-merkki { font-size: 32px; }
@media (max-width: 820px) { .so-header .so-merkki { font-size: 20px; } }
@media (max-width: 480px) { .so-header .so-merkki__teksti { display: none; } .so-header .so-merkki { font-size: 24px; } }
@media (max-width: 400px) { .so-footer .so-merkki { font-size: 24px; } }
/* Etusivun avaus: tähtitaivas, iso kristallilogo ja sen alla Softori Oy. Vieritettäessä kristalli lentää ylänurkkaan
   ja otsikko nousee näkyviin. Ilman tukea tai vähennetyllä liikkeellä kristalli on paikallaan otsikon yläpuolella. */
.so-intro { position: relative; overflow: clip; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: var(--space-8); min-height: calc(100svh - 120px); padding: var(--space-12) var(--space-4) var(--space-16); box-sizing: border-box; }
.so-intro { background: #04050f url(/kuvat/avaruus-intro.webp) center / cover no-repeat; }  /* mallin C avaruus ja sumu */
@media (max-aspect-ratio: 4/5) { .so-intro { background-image: url(/kuvat/avaruus-intro-pysty.webp); } }
.so-intro__kristalli { position: relative; display: block; width: min(56vmin, 400px); height: auto; filter: drop-shadow(0 0 36px rgba(140, 110, 255, .55)); }
.so-intro__otsikko.so-merkki--iso { position: relative; margin: 0; display: flex; justify-content: center; line-height: 1; white-space: nowrap; color: var(--ink);
  font-size: min(118px, calc((100vw - 2 * var(--space-4)) * .118)); padding: .12em 0 .16em; }
.so-kristalli { display: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .so-intro__kristalli { display: none; }
    .so-kristalli { display: block; position: fixed; z-index: 30; pointer-events: none; left: 50%; top: 48%; translate: -50% -50%;
      width: min(62vmin, 460px); filter: drop-shadow(0 0 36px rgba(140, 110, 255, .55));
      animation: so-kristalli-nurkkaan linear both; animation-timeline: scroll(root); animation-range: 0 55vh; }
    .so-kristalli img { display: block; width: 100%; height: auto; }
    .so-intro__otsikko.so-merkki--iso { animation: so-merkki-esiin linear both; animation-timeline: scroll(root); animation-range: 0 55vh; }
  }
}
@keyframes so-kristalli-nurkkaan {
  0% { left: 50%; top: 48%; translate: -50% -50%; width: min(62vmin, 460px); }
  100% { left: 12px; top: 10px; translate: 0 0; width: 40px; filter: drop-shadow(0 0 8px rgba(140, 110, 255, .6)); }
}
@keyframes so-merkki-esiin {
  0%, 25% { opacity: 0; scale: .9; }
  100% { opacity: 1; scale: 1; }
}
.so-intro::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, var(--surface)); pointer-events: none; }
.so-intro__otsikko, .so-intro__kristalli { z-index: 1; }
.so-intro__otsikko.so-merkki--iso { font-size: min(118px, calc((100vw - 2 * var(--space-4)) * .15)); }
/* Puhelimessa nurkkalogo peittäisi tekstiä, joten se häipyy nurkkaan päästyään */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) and (max-width: 820px) {
    .so-kristalli { animation-name: so-kristalli-nurkkaan-pois; animation-range: 0 100vh; }
  }
}
@keyframes so-kristalli-nurkkaan-pois {
  0% { left: 50%; top: 48%; translate: -50% -50%; width: min(62vmin, 460px); opacity: 1; }
  55% { left: 12px; top: 10px; translate: 0 0; width: 40px; opacity: 1; filter: drop-shadow(0 0 8px rgba(140, 110, 255, .6)); }
  100% { left: 12px; top: 10px; translate: 0 0; width: 40px; opacity: 0; filter: drop-shadow(0 0 8px rgba(140, 110, 255, .6)); }
}

/* Kristallin värimaailma (29.11.2026, Petri): siniset, punaiset ja vihreät sävytetty uuden S-kuusikulmiologon
   violettiin, laventeliin ja orkideaan. Muuttujien nimet (sininen, punainen, vihreä) säilyvät, arvot ovat violetteja.
   Revontuli- ja Kiillotettu metalli -teemat ovat käyttäjän omia valintoja ja pysyvät ennallaan. */
:root, [data-theme="dark"] {
  --surface: #0a0816; --surface-raised: #151029; --surface-sunk: #05040c;
  --line: #251d42; --line-strong: #5e5491; --ink: #f1eefb; --ink-muted: #aaa3c6;
  --sininen: #8f7dff; --sininen-ink: #b9adff; --sininen-syva: #4b3bb8;
  --punainen: #d77cff; --punainen-ink: #e7aaff;
  --vihrea: #a9b8ff; --vihrea-ink: #cdd6ff;
  --hehku: #8f7dff; --on-hehku: #0d0826; --hehku-ink: #b9adff;
  --kulta: #c9bdff; --kulta-ink: #d9cfff;
  --taivas: #a9b8ff; --taivas-ink: #cdd6ff;
  --lava: #d77cff; --link: #c3b8ff; --focus: #b9adff;
  --glow: 0 0 120px 0 rgba(143, 125, 255, .26);
  --kuvaselain: #9d8cff; --on-kuvaselain: #0d0826; --kuvaselain-ink: #c3b8ff; --kuvaselain-pinta: #100c22;
  --tulostus: #b49cff; --on-tulostus: #0d0826; --tulostus-ink: #d3c6ff; --tulostus-pinta: #110c20;
}
[data-theme="light"] {
  --surface: #f5f3fb; --surface-raised: #ffffff; --surface-sunk: #ebe7f6;
  --line: #d9d3ec; --line-strong: #7c7699; --ink: #120d26; --ink-muted: #534c70;
  --sininen: #5a45d0; --sininen-ink: #4433a8; --sininen-syva: #2b1f8a;
  --punainen: #9b3fc9; --punainen-ink: #7f2ea8;
  --vihrea: #4a5fc4; --vihrea-ink: #3a4b9e;
  --hehku: #5a45d0; --on-hehku: #ffffff; --hehku-ink: #4433a8;
  --kulta: #7d68f0; --kulta-ink: #3a4b9e;
  --taivas: #4a5fc4; --taivas-ink: #3a4b9e;
  --lava: #9b3fc9; --link: #4433a8; --focus: #4433a8;
  --kuvaselain: #6a56e0; --on-kuvaselain: #ffffff; --kuvaselain-ink: #4433a8; --kuvaselain-pinta: #ece8fa;
  --tulostus: #7d5ad8; --on-tulostus: #ffffff; --tulostus-ink: #4f2fa8; --tulostus-pinta: #efe9fa;
}
/* Ensisijainen painike (Ota yhteyttä ym.) kristallin liukuvärillä */
.so-btn--primary, .so-nav a.so-btn--primary { background: linear-gradient(180deg, #d9d0ff 0%, #a796ff 45%, #7360ea 100%); color: #120a33; border-color: rgba(255, 255, 255, .25);
  box-shadow: 0 0 0 1px rgba(90, 69, 208, .5), 0 6px 22px -8px rgba(143, 125, 255, .75); text-shadow: none; }
.so-btn--primary:hover, .so-nav a.so-btn--primary:hover { background: linear-gradient(180deg, #ffffff 0%, #c4b8ff 45%, #8f7dff 100%); color: #120a33; }
html[data-teema="metalli"] .so-btn--primary { box-shadow: none; }
/* Kieli- ja ulkoasunapit violetilla reunalla */
.so-header a.so-kieli, .so-header .so-ulkoasu summary { border-color: rgba(185, 173, 255, .55); color: var(--ink); background: rgba(143, 125, 255, .08); }
.so-header a.so-kieli:hover, .so-header .so-ulkoasu summary:hover { background: rgba(143, 125, 255, .2); border-color: #b9adff; }
/* Maapallo, planeetat ja sovellusnapit violetilla hehkulla */
.so-maa__pallo { box-shadow: 0 0 0 1px rgba(190, 178, 255, .35), 0 0 40px 6px rgba(143, 125, 255, .35), 0 0 120px 30px rgba(143, 125, 255, .15); }
.so-maa__pallo:hover { box-shadow: 0 0 0 1px rgba(190, 178, 255, .6), 0 0 48px 10px rgba(143, 125, 255, .45), 0 0 140px 40px rgba(143, 125, 255, .2); }
.so-maa.soi .so-maa__pallo { box-shadow: 0 0 0 1px rgba(231, 170, 255, .5), 0 0 50px 12px rgba(143, 125, 255, .5), 0 0 160px 50px rgba(215, 124, 255, .18); }
.so-sky .so-planet:has(img[src*="planeetta"]) { box-shadow: 0 0 14px 2px rgba(170, 150, 255, .35), 0 0 40px 8px rgba(130, 110, 255, .12); }
.so-appnappi { background: radial-gradient(circle at 35% 30%, #e7aaff 0, #a23fd6 45%, #4d1675 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 10px 24px -10px rgba(162, 63, 214, .7); }
.so-appnappi.is-oma { background: radial-gradient(circle at 35% 30%, #dcd4ff 0, #7d68f0 45%, #2f2290 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 10px 24px -10px rgba(125, 104, 240, .7); }

/* Kuusikulmaiset painikkeet (29.11.2026, Petri): logon muoto. Leveät painikkeet kärjet sivuille, neliönapit (EN, Aa)
   ja sovellusnapit kärki ylöspäin kuten logossa. Reuna on elementin tausta (--hex-reuna) ja täyttö ::before-kerros
   (--hex-tayte), koska clip-path leikkaisi tavallisen reunan ja kohdistuskehyksen. Kohdistus näkyy paksuna valkoisena reunana. */
.so-btn:not(.so-btn--link), .so-ulkoasu button, .so-header a.so-kieli, .so-header .so-ulkoasu summary {
  --kk: 14px;
  position: relative; isolation: isolate; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  background: var(--hex-reuna, var(--line-strong)) !important;
  clip-path: polygon(0 50%, var(--kk) 0, calc(100% - var(--kk)) 0, 100% 50%, calc(100% - var(--kk)) 100%, var(--kk) 100%);
}
.so-btn:not(.so-btn--link)::before, .so-ulkoasu button::before, .so-header a.so-kieli::before, .so-header .so-ulkoasu summary::before {
  content: ""; position: absolute; z-index: -1; inset: var(--hex-vali, 1.5px); background: var(--hex-tayte, var(--surface));
  clip-path: polygon(0 50%, var(--kk) 0, calc(100% - var(--kk)) 0, 100% 50%, calc(100% - var(--kk)) 100%, var(--kk) 100%);
}
.so-btn:not(.so-btn--link) { padding: 0 calc(var(--space-6) + 6px); }
.so-btn--sm:not(.so-btn--link) { --kk: 12px; padding: 0 calc(var(--space-4) + 8px); }
.so-ulkoasu button { --kk: 11px; padding: 0 calc(var(--space-3) + 6px); }
.so-btn--ghost { --hex-reuna: var(--line-strong); }
.so-btn--ghost:hover { --hex-reuna: var(--ink); }
.so-btn--primary { --hex-reuna: #e6deff; --hex-tayte: linear-gradient(180deg, #d9d0ff 0%, #a796ff 45%, #7360ea 100%); }
.so-btn--primary:hover { --hex-tayte: linear-gradient(180deg, #ffffff 0%, #c4b8ff 45%, #8f7dff 100%); }
html[data-teema="metalli"] .so-btn--primary { --hex-reuna: #7a5716; --hex-tayte: linear-gradient(180deg, #f5d58f, #c9973c 55%, #9c7126); }
.so-ulkoasu button[aria-pressed="true"] { --hex-reuna: var(--hehku); --hex-tayte: var(--hehku); }
/* EN ja Aa: kärki ylöspäin */
.so-header a.so-kieli, .so-header .so-ulkoasu summary { --hex-reuna: rgba(185, 173, 255, .6); --hex-tayte: #151029;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.so-header a.so-kieli::before, .so-header .so-ulkoasu summary::before { clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.so-header a.so-kieli:hover, .so-header .so-ulkoasu summary:hover { --hex-reuna: #b9adff; --hex-tayte: #231a45; }
[data-theme="light"] .so-header a.so-kieli, [data-theme="light"] .so-header .so-ulkoasu summary { --hex-tayte: var(--surface-raised); --hex-reuna: var(--line-strong); }
/* Kohdistus näppäimistöllä */
:is(.so-btn:not(.so-btn--link), .so-ulkoasu button, .so-header a.so-kieli, .so-header .so-ulkoasu summary):focus-visible { outline: none; --hex-reuna: #ffffff; --hex-vali: 3.5px; }
[data-theme="light"] :is(.so-btn:not(.so-btn--link), .so-ulkoasu button, .so-header a.so-kieli, .so-header .so-ulkoasu summary):focus-visible { --hex-reuna: var(--focus); }
/* Sovellusnappi kuvakkeen takana: kuusikulmio kärki ylöspäin */
.so-appnappi { border-radius: 0; box-shadow: none; clip-path: polygon(50% 0, 96% 25%, 96% 75%, 50% 100%, 4% 75%, 4% 25%); }
.so-appnappi.is-oma { box-shadow: none; }
/* Avattu ulkoasuvalikko kristallilogon yläpuolelle */
.so-header:has(.so-ulkoasu[open]) { z-index: 40; }

/* Kuusikulmaiset tilamerkit (Käytössä, Tulossa, Kehitteillä …) ja niiden pisteet (29.11.2026, Petri).
   Reuna = elementin tausta, täyttö = ::after-kerros; ::before on tilapiste, nyt pieni kuusikulmio. */
.so-chip { --kk: 8px; position: relative; isolation: isolate; border: 0 !important; border-radius: 0 !important;
  background: var(--chip-reuna, var(--line-strong)); padding: 2px calc(var(--space-3) + 4px);
  clip-path: polygon(0 50%, var(--kk) 0, calc(100% - var(--kk)) 0, 100% 50%, calc(100% - var(--kk)) 100%, var(--kk) 100%); }
.so-chip::after { content: ""; position: absolute; z-index: -1; inset: 1.5px; background: var(--chip-tayte, var(--surface));
  clip-path: polygon(0 50%, var(--kk) 0, calc(100% - var(--kk)) 0, 100% 50%, calc(100% - var(--kk)) 100%, var(--kk) 100%); }
.so-chip::before { width: 7px; height: 8px; border-radius: 0 !important; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.so-chip--kaytossa { --chip-reuna: var(--vihrea); --chip-tayte: #17123a; }
[data-theme="light"] .so-chip--kaytossa { --chip-tayte: var(--surface-raised); }
.so-chip--tulossa { --chip-reuna: rgba(185, 173, 255, .55); }
.so-project .so-chip, .so-sky .so-chip { --chip-tayte: var(--so-pr-surface, var(--surface)); }

/* Kulmikkaat fontit (29.11.2026, Petri): sopivat kuusikulmaiseen ulkoasuun. Kulmikas (Chakra Petch) on oletus.
   Orbitron on otsikoihin; sen leipäteksti on Chakra Petch, koska Orbitron on pitkässä tekstissä raskas. */
html[data-fontti="kulmikas"] { --font-display: "Chakra Petch", "Avenir Next", sans-serif; --font-sans: var(--font-display); --font-mono: var(--font-display); }
html[data-fontti="tekninen"] { --font-display: "Oxanium", "Avenir Next", sans-serif; --font-sans: var(--font-display); --font-mono: var(--font-display); }
html[data-fontti="kapea"] { --font-display: "Rajdhani", "Avenir Next Condensed", sans-serif; --font-sans: var(--font-display); --font-mono: var(--font-display); }
html[data-fontti="orbitron"] { --font-display: "Orbitron", "Chakra Petch", sans-serif; --font-sans: "Chakra Petch", "Avenir Next", sans-serif; --font-mono: var(--font-sans); }
html[data-fontti="kapea"] body { font-size: 17px; }
html:is([data-fontti="kulmikas"], [data-fontti="tekninen"], [data-fontti="kapea"], [data-fontti="orbitron"]) :is(.so-h1, .so-h2, .so-h2l) em { font-style: normal; }
html:is([data-fontti="kulmikas"], [data-fontti="tekninen"], [data-fontti="kapea"]) :is(.so-h1, .so-h2, .so-h2l) { font-weight: 600; letter-spacing: 0; }
html[data-fontti="orbitron"] :is(.so-h1, .so-h2, .so-h2l) { font-weight: 600; letter-spacing: .01em; }
.so-f-kulmikas { font-family: "Chakra Petch", sans-serif; font-weight: 600; }
.so-f-tekninen { font-family: "Oxanium", sans-serif; font-weight: 600; }
.so-f-kapea { font-family: "Rajdhani", sans-serif; font-weight: 600; font-size: 15px; }
.so-f-orbitron { font-family: "Orbitron", sans-serif; font-weight: 600; font-size: 12px; letter-spacing: .04em; }
/* Orbitron on leveä: puhelimessa pienemmät otsikot, jotta pitkät suomen sanat mahtuvat */
@media (max-width: 820px) {
  html[data-fontti="orbitron"] :is(.so-h1, .so-h2, .so-h2l) { font-size: 26px; line-height: 1.2; overflow-wrap: break-word; }
  html[data-fontti="orbitron"] :is(h3, .so-title) { font-size: 15px; overflow-wrap: break-word; }
}

/* Tuotekohtaiset rajaukset (rakenna.py) */
.so-project--taajuusanalysaattori .so-project__bg { object-position: 50% 55%; }
.so-project--jakarijokaiselle .so-project__bg { object-position: 50% 40%; }
.so-project--cro-k-avustaja .so-project__bg { object-position: 50% 50%; }
.so-project--oma-idea .so-project__bg { object-position: 50% 35%; }
.so-project--kodin-ohjauskeskus .so-project__bg { object-position: 50% 40%; }
.so-project--kuvaselain .so-project__bg { object-position: 50% 40%; }
.so-project--varikehys .so-project__bg { object-position: 50% 40%; }
.so-project--usb-muistitesti .so-project__bg { object-position: 50% 50%; }
.so-project--linkkivahti .so-project__bg { object-position: 50% 50%; }
.so-lens--pimennys { --so-zoom: 2.1; --so-origin: 44% 32%; }
.so-backdrop#kaupat { --so-sky: 380px; --so-pos: 30%; }
