/* FROSTLY — shared stylesheet
   White header with the blue logo, dark network hero with centred
   letter-spaced heading, stacking service cards, dark About band and footer. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url(/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2) format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
  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: "Schibsted Grotesk";
  src: url(/assets/fonts/schibsted-grotesk-latin-ext-wght-normal.woff2) format("woff2");
  font-weight: 400 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #1d2433;
  --soft: #666f7e;
  --faint: #9aa1ad;
  --line: #e5e8ee;
  --brand: #0000ff;
  --link: #1f6ad3;
  --navy: #050b1f;
  --font: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
/* dark base so the area below the footer (iOS Safari toolbar, overscroll) matches the footer; the page itself stays white */
html { scroll-behavior: smooth; background: #01030a; }
/* body is dark too (iOS Safari tints its bottom toolbar from it); the content itself is white */
main { background: #fff; }
body { background: #01030a; color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
img { max-width: 100%; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.o-center { text-align: center; }
h1, h2, h3 { overflow-wrap: break-word; }
section[id], article[id], [id="yhteystiedot"], [id="contact"] { scroll-margin-top: 90px; }

/* ---------- Header ---------- */
nav.topnav { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 18px; }
.logo { display: block; flex: none; line-height: 0; }
.logo img { height: 30px; width: auto; display: block; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: 0.04em; white-space: nowrap; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.lang-switch { color: var(--brand) !important; }
.nav-toggle { display: none; background: #fff; cursor: pointer; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); width: 44px; height: 38px; font-size: 18px; line-height: 1; }
@media (max-width: 680px) {
  .nav-inner { height: 68px; }
  .logo img { height: 24px; }
  /* menu is just the language switch now, so it stays visible on phones */
}

/* ---------- Privacy page header ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  /* same dark blue and live network as the front page */
  background: radial-gradient(ellipse 80% 90% at 50% 45%, #04123d 0%, #020920 50%, #01030a 100%);
}
.page-hero .motion-toggle { right: 24px; bottom: 20px; }

/* ---------- Hero ---------- */
.o-hero { min-height: min(calc(86vh - 80px), 780px); display: flex; align-items: center; padding: 96px 0; }
.o-hero .wrap { width: 100%; }
.o-caps {
  font-size: clamp(26px, 3.6vw, 46px); font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.25;
  max-width: 22ch; margin: 0 auto;
}
.o-hero-sub { max-width: 46ch; margin: 22px auto 34px; font-size: 17px; color: rgba(255, 255, 255, 0.88); }
.o-btn {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  border: 2px solid #fff; color: #fff; background: transparent;
  font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  transition: background-color .2s, color .2s;
}
.o-btn:hover { background: #fff; color: var(--navy); text-decoration: none; }
.o-hero-badge-link { display: block; width: fit-content; margin: 40px auto 0; border-radius: 4px; }
.o-hero-badge { display: block; width: 260px; max-width: 70vw; height: auto; opacity: 0.95; transition: opacity .2s; }
.o-hero-badge-link:hover .o-hero-badge { opacity: 1; }
.o-contact-brand .ws-link, .o-contact-brand .logo-link { display: inline-block; transition: opacity .2s; }
.o-contact-brand .ws-link:hover, .o-contact-brand .logo-link:hover { opacity: 0.8; }
.o-hero :focus-visible { outline-color: #fff; }

.rise { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0.35; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Services ---------- */
.o-services { padding: 80px 0 96px; }
.o-title { text-align: center; font-size: clamp(24px, 2.4vw, 30px); font-weight: 400; letter-spacing: 0.01em; color: var(--ink); margin-bottom: 48px; }
.o-caps-sm { margin: 22px 0 12px; font-size: 14px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); }

/* ---------- Contact block (footer) ---------- */
footer { border-top: 1px solid var(--line); padding: 64px 0 28px; }
.o-contact { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 36px 40px; align-items: start; }
.o-contact-brand img { display: block; height: auto; }
.o-contact-brand .o-contact-logo { width: 240px; margin-bottom: 18px; }
.o-contact-brand img[alt^="WithSecure"] { width: 190px; }
.o-contact-badge img { display: block; width: 170px; height: auto; border-radius: 3px; }
.o-contact-info h2 { font-size: 20px; font-weight: 700; color: var(--brand); margin-bottom: 8px; }
.o-contact-info p { font-size: 14.5px; line-height: 1.8; color: var(--ink); }
.o-contact-info span { font-weight: 600; }
.foot-bottom { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--faint); font-size: 13px; }
.foot-bottom a, .foot-bottom button { color: var(--faint); background: none; border: 0; font: inherit; cursor: pointer; padding: 0; }
.foot-bottom a:hover, .foot-bottom button:hover { color: var(--brand); text-decoration: underline; }
@media (max-width: 820px) { .o-contact { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Privacy pages ---------- */
.page-hero { padding: 96px 0 72px; }
.page-hero h1 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; letter-spacing: 0.06em; line-height: 1.2; }
.page-hero .lead { margin-top: 16px; max-width: 60ch; color: rgba(255, 255, 255, 0.88); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); margin-bottom: 14px; }
section.tight { padding: 56px 0 72px; }
.content-block { padding: 26px 0; border-top: 1px solid var(--line); max-width: 760px; }
.content-block:first-child { border-top: 0; padding-top: 0; }
.content-block h2 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.content-block p { color: var(--soft); }
.content-block p + p { margin-top: 10px; }

/* ---------- Cookie consent ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 580px; margin: 0 auto; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(5, 11, 31, 0.2); padding: 22px 24px; display: none; max-height: calc(100vh - 32px); overflow-y: auto; }
.consent.open { display: block; }
.consent-title { font-size: 17px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.consent-text { color: var(--soft); font-size: 14.5px; line-height: 1.6; }
.consent-prefs { margin-top: 14px; border-top: 1px solid var(--line); }
.consent-prefs[hidden] { display: none; }
.consent-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; align-items: start; }
.consent-row input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--brand); }
.consent-row input:disabled { cursor: default; }
.consent-row strong { display: block; font-size: 14.5px; color: var(--ink); }
.consent-row small { display: block; font-size: 13.5px; color: var(--soft); line-height: 1.5; }
.consent-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.consent-actions [hidden] { display: none; }
.consent .btn-link { background: none; border: 0; color: var(--link); padding: 9px 6px; text-decoration: underline; text-underline-offset: 3px; }
.btn { display: inline-flex; align-items: center; padding: 9px 22px; border-radius: 999px; font: 600 14px/1.4 var(--font); cursor: pointer; border: 2px solid transparent; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: #0000c8; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }

@media (max-width: 640px) {
  .o-hero { min-height: 0; padding: 88px 0; }
  .o-caps { letter-spacing: 0.12em; }
  .o-services { padding: 60px 0 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { animation: none; }
}

/* =================================================================
   HEADER AND SCROLL DETAILS: shrinking header, progress line, scroll cue
   ================================================================= */

/* header shrinks a little once the page scrolls; thin blue progress line */
nav.topnav { transition: box-shadow .3s; }
.nav-inner { transition: height .3s; }
.logo img { transition: height .3s; }
nav.topnav.is-scrolled { box-shadow: 0 6px 24px rgba(5, 11, 31, 0.08); }
nav.topnav.is-scrolled .nav-inner { height: 64px; }
nav.topnav.is-scrolled .logo img { height: 24px; }
.scroll-progress { position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

.o-hero-content { will-change: transform, opacity; }

/* scroll cue at the bottom of the hero */
.o-scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255, 255, 255, 0.7); border-radius: 14px; }
.o-scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }


@media (max-width: 640px) {
  /* phones: a small down-chevron instead of the mouse outline */
  .o-scroll-cue { bottom: 22px; width: 28px; height: 28px; margin-left: -14px; border: 0; border-radius: 0; }
  .o-scroll-cue span { top: 4px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 0; background: none;
    border-right: 2px solid rgba(255, 255, 255, 0.8); border-bottom: 2px solid rgba(255, 255, 255, 0.8); transform: rotate(45deg); animation: cueChevron 1.8s ease-in-out infinite; }
}
@keyframes cueChevron { 0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.6; } 50% { transform: translateY(5px) rotate(45deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .o-scroll-cue span { animation: none; }
}

/* =================================================================
   NETWORK HERO, HEADLINE WORD REVEAL, SERVICE CARDS
   ================================================================= */

/* live network hero */
.net-hero {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, #04123d 0%, #020920 45%, #01030a 100%);
}
.net-canvas { position: absolute; inset: 0; z-index: -1; display: block; }
.net-hero .o-hero-sub { color: rgba(255, 255, 255, 0.86); }
.net-hero :focus-visible { outline-color: #fff; }

/* headline words rise in one after another */
.split-words .w { display: inline-block; animation: wordUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.15s + var(--i) * 0.11s); }
@keyframes wordUp { from { opacity: 0.25; transform: translateY(0.55em); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }

/* magnetic button */
.magnetic { transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), background-color .2s, color .2s; }

/* service cards: photo + text side by side, stacked on small screens */
.o-services { padding-bottom: 72px; }
.stack { display: flex; flex-direction: column; gap: 32px; margin-top: 8px; padding-bottom: 24px; }
.stack-card {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 380px; border-radius: 16px; overflow: hidden;
  background: #fff; box-shadow: 0 22px 54px rgba(5, 11, 31, 0.14);
}
.stack-media { position: relative; overflow: hidden; }
.stack-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.stack-body { padding: 48px 52px; display: flex; flex-direction: column; justify-content: center; }
.stack-body .o-caps-sm { margin: 0 0 10px; color: var(--brand); }
.stack-lead { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 14px; }
.stack-body p { color: var(--soft); font-size: 15.5px; line-height: 1.75; }
.stack-body .stack-lead { color: var(--ink); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 14px; }
@media (max-width: 860px) {
  .stack-card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .stack-media { aspect-ratio: 16 / 9; }
  .stack-body { padding: 28px 26px 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .split-words .w { animation: none; }
  .magnetic { transition: none; }
}

/* =================================================================
   GLOWING DOT SURFACE BAND (About)
   ================================================================= */
.o-wave-band {
  position: relative; overflow: hidden; isolation: isolate; color: #fff;
  min-height: min(70vh, 620px); display: flex; align-items: center; padding: 110px 0;
  background:
    radial-gradient(ellipse 55% 22% at 50% 31%, rgba(40, 110, 255, 0.1) 0%, rgba(40, 110, 255, 0) 70%),
    radial-gradient(ellipse 80% 70% at 50% 45%, #04123d 0%, #020920 45%, #01030a 100%);
}
.o-wave-band .wrap { width: 100%; }
.wave-canvas, .o-wave-band .net-canvas { position: absolute; inset: 0; z-index: -1; display: block; }
@media (max-width: 640px) { .o-wave-band { min-height: 0; padding: 120px 0; } }

/* =================================================================
   ABOUT TEXT IN THE WAVE BAND
   ================================================================= */
.o-wave-band .wave-lead {
  max-width: 30em; margin: 0 auto; color: #fff;
  font-size: clamp(21px, 2.3vw, 31px); line-height: 1.5; font-weight: 500; letter-spacing: -0.005em;
  text-shadow: 0 2px 30px rgba(2, 7, 19, 0.7);
  text-wrap: balance;   /* even line lengths, no lone last word */
}

/* =================================================================
   FOOTER: dark closing section with the live network behind it
   ================================================================= */
footer.site-footer {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; border-top: 0;
  padding: 92px 0 72px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 35%, #04123d 0%, #020920 45%, #01030a 100%);
}
.site-footer .wave-canvas { opacity: 0.9; }
.site-footer :focus-visible { outline-color: #fff; }
.site-footer .foot-bottom { color: #fff; border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 22px; text-shadow: 0 0 8px rgba(1, 4, 15, 0.95), 0 0 18px rgba(1, 4, 15, 0.9), 0 0 32px rgba(1, 4, 15, 0.7); }
.site-footer .foot-bottom a, .site-footer .foot-bottom button { color: #fff; }
.site-footer .foot-bottom a:hover, .site-footer .foot-bottom button:hover { color: #fff; }
.motion-toggle {
  position: absolute; right: 28px; bottom: 28px; z-index: 2;
  display: grid; place-items: center; width: 38px; height: 38px; padding: 0; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 50%; background: rgba(3, 8, 23, 0.35);
  color: #fff; transition: border-color .2s, background-color .2s;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }
.motion-toggle svg { width: 13px; height: 13px; fill: currentColor; }
@media (max-width: 640px) { .motion-toggle { right: 16px; bottom: 16px; } }
.motion-toggle .i-play, .motion-toggle.is-paused .i-pause { display: none; }
.motion-toggle.is-paused .i-play { display: block; }
@media (max-width: 640px) {
  footer.site-footer { padding: 72px 0 56px; }
}

/* =================================================================
   404 PAGE
   ================================================================= */
.notfound { padding: 96px 0 120px; text-align: center; }
.notfound h1 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; letter-spacing: 0.02em; margin-bottom: 14px; }
.notfound p { color: var(--soft); max-width: 46ch; margin: 0 auto 10px; }
.notfound .btn { margin: 22px 6px 0; text-decoration: none; }

/* =================================================================
   SERVICE CARDS: clearer and more distinct
   tinted section so the white cards stand out, defined card edge,
   photo side alternates card by card, larger and darker text
   ================================================================= */
.o-services { background: #eef2f8; }
.stack-card { border: 1px solid #d9e0ea; box-shadow: 0 26px 60px rgba(5, 11, 31, 0.16); }
.stack-body .o-caps-sm { font-size: 14.5px; margin-bottom: 14px; }
.stack-body .stack-lead { font-size: clamp(24px, 2.5vw, 33px); font-weight: 600; line-height: 1.18; margin-bottom: 16px; }
.stack-body p { color: #3c4554; font-size: 16.5px; line-height: 1.7; }
@media (min-width: 861px) {
  .stack-card:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
  .stack-card:nth-child(even) .stack-media { order: 2; }
  .stack-body { padding: 52px 56px; }
}

/* =================================================================
   CONTACT SECTION: light and still, between the two animated dark areas
   (original frostly.fi look: blue logo, blue heading)
   ================================================================= */
.contact-section { background: #fff; padding: 40px 0; }
/* one slim row: partner logos on the left, contact links on the right, all on one centre line */
.contact-section .o-contact { display: flex; align-items: center; flex-wrap: wrap; gap: 24px 24px; scroll-margin-top: 90px; }
.contact-section .o-contact-brand { display: flex; align-items: center; gap: 22px; }
.contact-section .o-contact-brand .o-contact-logo { width: 180px; margin: 0; }
.contact-section .o-contact-brand img[alt^="WithSecure"] { width: 190px; }
.contact-section .o-contact-badge img { width: 118px; }
.contact-section .o-contact-info { margin-left: auto; display: flex; align-items: center; flex-wrap: nowrap; gap: 12px 18px; white-space: nowrap; }
.contact-section .o-contact-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.contact-section .o-contact-info p { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink); }
.contact-section .o-contact-info .ci { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-section .o-contact-info .ci-fill { fill: var(--brand); stroke: none; }
.contact-section .o-contact-info p > a { color: var(--ink); border-bottom: 1px solid #c9d1de; transition: color .2s, border-color .2s; }
.contact-section .o-contact-info a:hover { color: var(--brand); border-bottom-color: var(--brand); text-decoration: none; }
/* company address: small quiet line under the row, right-aligned with the contact links */
.contact-section .o-contact-address { flex-basis: 100%; display: flex; align-items: center; justify-content: flex-start; gap: 6px; margin: -6px 0 0; font-size: 13px; color: var(--soft); }
@media (max-width: 1130px) {
  .contact-section .o-contact { justify-content: center; }
  .contact-section .o-contact-address { justify-content: center; margin-top: 0; }
  .contact-section .o-contact-info { margin-left: 0; justify-content: center; width: 100%; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .contact-section { padding: 36px 0; }
  .contact-section .o-contact { flex-direction: column; align-items: flex-start; gap: 24px; }
  .contact-section .o-contact-brand { flex-wrap: wrap; gap: 20px 28px; }
  .contact-section .o-contact-info { flex-direction: column; align-items: flex-start; gap: 12px; }
  .contact-section .o-contact-address { display: block; line-height: 1.6; }
  .contact-section .o-contact-address > span { display: block; }
  .contact-section .o-contact-address > .sep { display: none; }
}

/* slim dark footer with the network behind it */
.site-footer .foot-bottom { margin-top: 0; border-top: 0; padding-top: 0; }

/* privacy pages: tint the contact section so it separates from the white page text */
.page-sub .contact-section { background: #eef2f8; }

/* screen-reader-only text (keeps a heading for the services section without showing it) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* services: even space above the first card and below the last (no visible heading) */
.o-services { padding-top: 88px; }
@media (max-width: 640px) { .o-services { padding-top: 72px; } }
.nowrap { white-space: nowrap; }

/* =================================================================
   FENCIE CARD: own app, three phone screens on the site's dark blue
   ================================================================= */
.fencie-media {
  display: grid; place-items: center; padding: 36px 20px;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, #0b2a6e 0%, #04123d 50%, #01030a 100%);
}
.fencie-media .fencie-phones { position: relative; display: flex; align-items: center; justify-content: center; }
.stack-media.fencie-media img.fp {
  position: relative; inset: auto; width: auto; object-fit: contain;
  height: 340px; aspect-ratio: 960 / 2086;
  border-radius: 22px; border: 3px solid #1b2a4d; background: #000;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
.stack-media.fencie-media img.fp-main { z-index: 2; }
.stack-media.fencie-media img.fp-side { height: 290px; opacity: 0.92; }
.stack-media.fencie-media img.fp-left { margin-right: -34px; transform: rotate(-4deg); }
.stack-media.fencie-media img.fp-right { margin-left: -34px; transform: rotate(4deg); }
.fencie-brand { display: flex; align-items: center; gap: 12px; margin: 2px 0 12px; font-size: 22px; font-weight: 600; color: var(--ink); }
.fencie-brand img { width: 40px; height: 40px; border-radius: 9px; }
.fencie-links { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 22px; }
.appstore-badge img { display: block; height: 44px; width: auto; }
.appstore-badge:hover { opacity: 0.85; }
.fencie-site { display: inline-flex; align-items: center; gap: 8px; color: var(--brand); font-weight: 500; line-height: 1; text-decoration: none; }
.fencie-site span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.fencie-site .ci-web { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.fencie-site:hover { opacity: 0.75; }
@media (max-width: 860px) {
  .fencie-card .stack-media.fencie-media { aspect-ratio: auto; height: 340px; }
  .stack-media.fencie-media img.fp { height: 270px; border-radius: 16px; }
  .stack-media.fencie-media img.fp-side { height: 230px; }
  .stack-media.fencie-media img.fp-left { margin-right: -26px; }
  .stack-media.fencie-media img.fp-right { margin-left: -26px; }
}

/* front-page hero fills the visible window under the menu (80px, 68px on phones).
   svh = the visible height without the jumping mobile address bar; vh line is the
   fallback for older browsers. Capped on very tall screens; grows if content needs it. */
.page-home .net-hero { min-height: min(calc(100vh - 80px), 1100px); min-height: min(calc(100svh - 80px), 1100px); }
/* phones: the dark hero fills the whole screen under the menu, including the strip behind
   Safari's see-through bottom toolbar (lvh = full height incl. toolbars). The extra
   (lvh - svh) is added as bottom padding / offset, so text, arrow and pause button stay
   centred in the part of the screen that is actually visible. Older browsers: plain vh. */
@media (max-width: 680px) {
  .page-home .net-hero {
    --toolbar: 0px;
    --extra: 120px;   /* dark runs this far past the screen bottom (home-indicator strip etc.) */
    min-height: calc(100vh - 68px + var(--extra));
    padding: 72px 0 calc(72px + var(--toolbar) + var(--extra));
  }
  @supports (height: 100lvh) {
    .page-home .net-hero { --toolbar: calc(100lvh - 100svh); min-height: calc(100lvh - 68px + var(--extra)); }
  }
  .page-home .net-hero .o-scroll-cue { bottom: calc(22px + var(--toolbar) + var(--extra)); }
  .page-home .net-hero .motion-toggle { bottom: calc(16px + var(--toolbar) + var(--extra)); }
}

/* back-to-top button */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
  border: 0; border-radius: 50%; background: var(--brand); color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 40, 0.28);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background-color .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: #2a2aff; }
.to-top:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 4px var(--brand); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* phones: headline words on their own lines (VIILEÄÄ / TARKKUUTTA), a little larger */
@media (max-width: 680px) {
  .o-hero h1.o-caps { font-size: clamp(30px, 9vw, 40px); letter-spacing: 0.14em; line-height: 1.2; }
  .o-hero h1 .w { display: block; }
}

/* phones: phone screens show near-black navy as black, so the dark areas get a
   brighter blue glow (wider and lighter centre); desktop keeps the deeper tone */
@media (max-width: 680px) {
  .net-hero, .page-hero, .o-wave-band {
    background: radial-gradient(ellipse 120% 75% at 50% 45%, #05143d 0%, #030b24 45%, #01030b 100%);
  }
  footer.site-footer {
    background: radial-gradient(ellipse 120% 80% at 50% 35%, #05143d 0%, #030b24 45%, #01030b 100%);
  }
}
[tabindex="-1"]:focus { outline: none; }

/* hero text stays readable when bright network lines pass behind it:
   a soft dark halo around the letters, and the subline fully white */
.net-hero h1, .net-hero .o-hero-sub {
  text-shadow: 0 0 10px rgba(1, 4, 15, 0.95), 0 0 22px rgba(1, 4, 15, 0.85), 0 0 40px rgba(1, 4, 15, 0.6);
}
.net-hero .o-hero-sub { color: #fff; }
.o-wave-band .wave-lead { text-shadow: 0 0 10px rgba(1, 4, 15, 0.95), 0 0 22px rgba(1, 4, 15, 0.85), 0 0 40px rgba(1, 4, 15, 0.6); }

/* About text: a soft dark backdrop right behind the paragraph keeps it readable over the network */
.o-wave-band .wrap { position: relative; }
.o-wave-band .wrap::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: min(100%, 860px); height: calc(100% + 120px); transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(1, 4, 15, 0.78) 0%, rgba(1, 4, 15, 0.5) 55%, rgba(1, 4, 15, 0) 100%);
  pointer-events: none;
}

/* =================================================================
   HERO BUTTON: electric hover — glow, a spark racing around the edge,
   and a light sheen. Touch screens have no hover; reduced motion = glow only.
   ================================================================= */
@property --spark { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.net-hero .o-btn {
  position: relative; isolation: isolate;
  transition: background-color .5s ease, color .5s ease, border-color .5s ease, box-shadow .6s ease, transform .25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* sheen */
.net-hero .o-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 38%, rgba(190, 230, 255, 0.35) 50%, transparent 62%) no-repeat;
  background-size: 260% 100%; background-position: 140% 0;
  transition: background-position 0s;
}
/* spark ring */
.net-hero .o-btn::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 3px; pointer-events: none;
  background: conic-gradient(from var(--spark), rgba(47, 140, 255, 0) 0deg, rgba(47, 140, 255, 0) 150deg, rgba(30, 90, 255, 0.18) 220deg, rgba(47, 140, 255, 0.45) 275deg, rgba(95, 212, 255, 0.75) 320deg, #c8f6ff 345deg, #ffffff 356deg, rgba(255, 255, 255, 0) 360deg);
  filter: drop-shadow(0 0 4px rgba(200, 245, 255, 0.9)) drop-shadow(0 0 12px rgba(63, 180, 255, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .6s ease;
}
.net-hero .o-btn:hover, .net-hero .o-btn:focus-visible {
  background: rgba(40, 110, 255, 0.16); color: #fff; border-color: rgba(150, 205, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(150, 210, 255, 0.35), 0 0 22px rgba(70, 150, 255, 0.55), 0 0 60px rgba(40, 110, 255, 0.35);
}
.net-hero .o-btn:hover::before { background-position: -40% 0; transition: background-position 1.4s cubic-bezier(0.25, 0.6, 0.3, 1); }
.net-hero .o-btn:hover::after { opacity: 1; animation: sparkRun 2.4s linear infinite; }
@keyframes sparkRun { to { --spark: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .net-hero .o-btn::before, .net-hero .o-btn::after { display: none; }
}


/* desktop/tablet: hero headline on one line in both languages (wraps naturally only if it can't fit) */
@media (min-width: 681px) {
  .o-hero h1.o-caps { max-width: none; }
}

/* hero subline a bit larger */
.o-hero .o-hero-sub { font-size: clamp(18px, 1.55vw, 22px); line-height: 1.55; max-width: 40ch; }

/* letter-spacing adds space after the last letter too, which nudges spaced capitals
   left of centre; pad the left side by the same amount so they sit truly centred */
.o-hero h1.o-caps { padding-left: 0.2em; }
.o-hero .o-btn { padding-left: calc(28px + 0.18em); }
@media (max-width: 680px) { .o-hero h1.o-caps { padding-left: 0.14em; } }

/* company details line by line, directly under the FROSTLY logo */
.contact-section .o-contact-brand { align-items: flex-start; }
.contact-section .brand-col { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.contact-section .brand-col .o-contact-address { display: block; flex-basis: auto; margin: 0; font-size: 13px; line-height: 1.6; color: var(--soft); text-align: left; }
.contact-section .brand-col .o-contact-address > span { display: block; }
.contact-section .brand-col .o-contact-address > .sep { display: none; }
.contact-section .o-contact-brand .ws-link, .contact-section .o-contact-badge, .contact-section .o-contact-info { align-self: flex-start; margin-top: 4px; }
.contact-section .o-contact { align-items: flex-start; }

/* Privacy page: simple bullet list inside content blocks */
.content-block .plain-list { margin: 8px 0 10px 1.2em; padding: 0; color: var(--soft); list-style: disc; }
.content-block .plain-list li { margin: 3px 0; }
/* Footer links: taller tap area on touch screens (WCAG 2.2 target size, min 24px) */
.site-footer .foot-bottom a, .site-footer .foot-bottom button { display: inline-block; padding: 6px 0; }
