/* Janx-Jakelu Oy – static base replica of janx.fi
   Brand colors from original Duda site */
:root {
  --red: #fd1818;
  --black: #000000;
  --ink: #272727;
  --gray: #f3f3f3;
  --white: #ffffff;
  --muted: #666666;
  --max: 1120px;
  --header-h: 88px;
  --font-body: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-nav: "Russo One", "Arial Black", sans-serif;
  --font-display: "Outfit", "Poppins", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 18px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--red); }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 12px solid var(--red);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  padding-block: .75rem;
}
.logo img { height: 56px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav a {
  font-family: var(--font-nav);
  text-decoration: none;
  letter-spacing: .02em;
  font-size: .95rem;
  color: var(--ink);
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--red);
  border-bottom-color: var(--red);
}
.lang {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-left: .5rem;
}
.lang a {
  display: inline-flex;
  border: 1px solid #dadada;
  border-radius: 2px;
  padding: 2px;
  line-height: 0;
}
.lang img { width: 24px; height: 18px; object-fit: cover; }
.menu-toggle {
  display: none;
  background: var(--red);
  border: 0;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
}

/* Floating phone CTA (matches original red pill) */
.phone-fab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  background: var(--red);
  color: white !important;
  text-decoration: none;
  padding: 1rem 1.25rem 1rem 1.75rem;
  border-radius: 35px 0 0 35px;
  font-family: var(--font-nav);
  font-size: .95rem;
  box-shadow: 0 8px 24px rgba(253,24,24,.35);
  display: flex;
  flex-direction: column;
  gap: .15rem;
  line-height: 1.2;
}
.phone-fab small { font-family: var(--font-body); font-weight: 400; opacity: .9; font-size: .75rem; }
.phone-fab:hover { color: white !important; filter: brightness(1.05); }

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  color: white;
  background: #111 center / cover no-repeat;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.25) 100%);
  z-index: -1;
}
.hero-inner {
  padding: 8rem 0 5rem;
  max-width: 720px;
}
.hero .hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 1.25rem;
  color: white;
}
.hero .lead {
  font-size: 1.05rem;
  max-width: 38rem;
  margin: 0 0 1.5rem;
  color: rgba(255,255,255,.92);
}
.hero .lead a { color: white; text-decoration: underline; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--red);
  color: white !important;
  text-decoration: none;
  font-weight: 600;
  padding: .85rem 1.4rem;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  font-family: var(--font-body);
}
.btn:hover { filter: brightness(1.08); color: white !important; }
.btn-outline {
  background: transparent;
  border: 2px solid white;
}
.btn-dark { background: var(--black); }

/* Zigzag divider like original kolmio */
.zigzag {
  height: 48px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% 18px, 50% 48px, 0 18px);
  margin-top: -1px;
}
.zigzag-up {
  height: 48px;
  background: var(--red);
  clip-path: polygon(0 48px, 100% 48px, 100% 30px, 50% 0, 0 30px);
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-gray { background: var(--gray); }
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 1rem;
  color: var(--black);
  line-height: 1.15;
}
.section h3 {
  font-size: 1.35rem;
  margin: 2rem 0 .75rem;
  color: var(--black);
}
.section p { margin: 0 0 1rem; }
.eyebrow {
  color: var(--red);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .85rem;
  margin-bottom: .5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 0;
}
.badge-row img {
  height: 72px;
  width: auto;
  object-fit: contain;
}

/* Quick contact */
.quick-contact {
  background: var(--black);
  color: white;
  padding: 3.5rem 0;
}
.quick-contact h2 { color: white; margin-bottom: .35rem; }
.quick-contact .sub { color: rgba(255,255,255,.8); margin-bottom: 1.5rem; }
.quick-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: .75rem;
  align-items: end;
}
.field label {
  display: block;
  font-size: .85rem;
  margin-bottom: .35rem;
  color: rgba(255,255,255,.85);
}
.field input,
.field textarea {
  width: 100%;
  border: 0;
  border-radius: 5px;
  padding: .85rem 1rem;
  font: inherit;
  background: white;
  color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.quick-form .btn { height: 52px; padding-inline: 1.75rem; }

/* Page hero (inner pages) */
.page-hero {
  background: var(--gray);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid #e6e6e6;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 .75rem;
  color: var(--black);
}
.page-hero p { margin: 0; max-width: 44rem; color: var(--muted); }

/* Historia */
.story { max-width: 760px; }
.story img.float {
  float: right;
  width: min(320px, 45%);
  margin: 0 0 1.25rem 1.5rem;
  border-radius: 8px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: .75rem;
  margin: 2rem 0;
}
.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
}
.signature {
  margin-top: 2rem;
  font-style: italic;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
}
.contact-card {
  background: var(--gray);
  border-radius: 12px;
  padding: 2rem;
}
.contact-card h2 { margin-top: 0; }
.contact-card a { color: var(--red); text-decoration: none; font-weight: 600; }
.contact-card dl { margin: 1.25rem 0 0; }
.contact-card dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: .9rem; }
.contact-card dd { margin: .2rem 0 0; font-weight: 600; }
.full-form { display: grid; gap: 1rem; }
.full-form .field label { color: var(--ink); }
.full-form .field input,
.full-form .field textarea { background: white; border: 1px solid #ddd; }
.check {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .95rem;
}
.check input { margin-top: .35rem; }

/* Footer */
.site-footer {
  background: #1a1a1a url("assets/footer-turku.svg") center bottom / contain no-repeat;
  color: white;
  padding: 3.5rem 0 2rem;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.85), rgba(0,0,0,.92));
  pointer-events: none;
}
.footer-inner { position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand img { height: 48px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.site-footer h3 {
  font-family: var(--font-nav);
  font-size: 1rem;
  margin: 0 0 1rem;
  color: white;
}
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: var(--red); }
.site-footer p, .site-footer li { color: rgba(255,255,255,.75); font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.socials { display: flex; gap: .75rem; margin-top: 1rem; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--red);
  display: grid; place-items: center;
  color: white !important;
  font-weight: 700;
  font-size: .85rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .85rem;
  color: rgba(255,255,255,.55);
}

/* Mobile */
@media (max-width: 900px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: white;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 4px solid var(--red);
    align-items: flex-start;
    gap: 1rem;
  }
  .menu-toggle { display: grid; place-items: center; }
  .two-col, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .quick-form { grid-template-columns: 1fr; }
  .phone-fab { top: auto; bottom: 1rem; transform: none; border-radius: 35px; right: 1rem; padding: .85rem 1.2rem; }
  .phone-fab span:last-child { display: none; }
  .story img.float { float: none; width: 100%; margin: 0 0 1.25rem; }
  .hero { min-height: 420px; }
  .hero-inner { padding: 5rem 0 3rem; }
}

/* =========================================================
   V2 – Landstar-henkinen ilme (iso hero, vahva navigaatio)
   ========================================================= */
:root {
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-nav: "Oswald", "Arial Narrow", sans-serif;
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --ink: #16181d;
}
body { font-family: var(--font-body); font-size: 17px; }
h1, h2, h3, .section h2, .section h3 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .02em; font-weight: 600; }

/* Header: fixed, transparent over hero, dark on scroll */
.site-header {
  position: fixed; left: 0; right: 0; top: 0;
  background: rgba(10,10,12,.92);
  border-bottom: 4px solid var(--red);
  box-shadow: none;
  transition: background .3s, border-color .3s;
}
.home .site-header:not(.scrolled) { background: linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,0)); border-bottom-color: transparent; }
body:not(.home) main { padding-top: var(--header-h); }
.logo img { height: 52px; background: #fff; padding: 6px 10px; border-radius: 4px; }
.nav a {
  color: #fff; text-transform: uppercase; font-weight: 600;
  font-size: 1rem; letter-spacing: .08em;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom: 3px solid var(--red); }

/* Full-screen hero */
.hero-full {
  position: relative; min-height: 100vh; min-height: 100svh;
  overflow: hidden; color: #fff; background: #0b0b0d;
}
.hero-bg {
  position: absolute; inset: 0; background: center / cover no-repeat;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.4s ease, transform 8s ease-out;
}
.hero-ready .hero-bg { opacity: 1; transform: scale(1); }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(0,0,0,.15) 30%, rgba(0,0,0,.75) 100%),
              linear-gradient(90deg, rgba(0,0,0,.25), rgba(0,0,0,0) 50%);
}
.hero-copy {
  position: absolute; right: 6vw; bottom: 12vh;
  max-width: min(640px, 88vw); text-align: right;
  opacity: 0; transform: translateY(24px);
  transition: opacity 1s ease .6s, transform 1s ease .6s;
}
.hero-ready .hero-copy { opacity: 1; transform: none; }
.hero-kicker { text-transform: uppercase; letter-spacing: .25em; font-size: .8rem; margin: 0 0 .75rem; color: rgba(255,255,255,.85); }
.hero-copy .hero-title {
  font-size: clamp(2.6rem, 6.5vw, 5.6rem); line-height: .98; margin: 0 0 1rem;
  color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.45);
}
.hero-copy .hero-title::after { content: ""; display: block; width: 90px; height: 6px; background: var(--red); margin: 1.1rem 0 0 auto; }
.hero-sub { font-size: 1.15rem; margin: 0 0 1.5rem; color: rgba(255,255,255,.9); }
.hero-actions { display: flex; gap: .75rem; justify-content: flex-end; flex-wrap: wrap; }
.btn { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; border-radius: 0; padding: .95rem 1.7rem; }
.btn-outline { border: 2px solid #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--ink) !important; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); color: #fff; font-size: 2rem; text-decoration: none; animation: bob 2s infinite; }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* Old EN hero full-bleed too */
.hero { min-height: 100vh; }

/* Section rhythm */
.section { padding: 6rem 0; }
.intro-band { text-align: center; }
.intro-band .container { max-width: 900px; }
.lead-lg { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.6; }
.lead-lg a { color: var(--red); }
.eyebrow { color: var(--red); letter-spacing: .2em; }
.stats { background: var(--ink); color: #fff; padding: 3.5rem 0; border-top: 6px solid var(--red); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stats strong { display: block; font-family: var(--font-head); font-size: 2.8rem; color: #fff; }
.stats span { color: rgba(255,255,255,.7); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }

/* Inner page hero: image banner */
.page-hero {
  position: relative; color: #fff; padding: 8rem 0 4rem; border: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.82), rgba(0,0,0,.35)), var(--bg) center / cover;
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); }
.page-hero p { color: rgba(255,255,255,.88); }
.page-hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: 160px; height: 6px; background: var(--red); }

.quick-contact { background: var(--red); }
.quick-contact .btn { background: var(--ink); }
.contact-card { border-radius: 0; border-left: 6px solid var(--red); }
.section-gray, .contact-card { background: #f5f5f3; }
img[style*="border-radius"] { border-radius: 0 !important; }

@media (max-width: 900px) {
  .nav.open { background: #0b0b0d; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-copy { right: 1.25rem; left: 1.25rem; bottom: 14vh; text-align: left; }
  .hero-copy .hero-title::after { margin-left: 0; }
  .hero-actions { justify-content: flex-start; }
  .phone-fab { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-bg, .hero-copy { transition: none; } .scroll-cue { animation: none; } }
.home .phone-fab { top: auto; bottom: 2rem; transform: none; }
.hero-copy .hero-title { overflow-wrap: break-word; hyphens: auto; }
.home .site-header:not(.scrolled) { border-bottom: 0; }
@media (max-width: 600px) { .hero-copy .hero-title { font-size: 2.3rem; } }
/* Miksi Janx – value cards + split rows */
.why { background: #f5f5f3; }
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 2.5rem; }
.value-grid article { background: #fff; padding: 2.25rem; border-top: 6px solid var(--red); box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.value-grid .num { font-family: var(--font-head); font-size: 2.6rem; color: var(--red); font-weight: 700; }
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.split-img { background: center/cover no-repeat; min-height: 320px; }
.split-text { padding: 5rem 6vw; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: var(--ink); color: #fff; }
.split-text h2 { color: #fff; font-size: clamp(1.8rem,3vw,2.6rem); }
.split-rev .split-img { order: 2; }
.split-rev .split-text { background: #fff; color: var(--ink); }
.split-rev .split-text h2 { color: var(--ink); }
.cert-row { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.cert-row img { height: 64px; width: auto; }
@media (max-width: 900px) { .value-grid, .split { grid-template-columns: 1fr; } .split-rev .split-img { order: 0; } }
.hero-full { max-height: 1100px; }
@media (max-width: 600px) { .hero-copy .hero-title { font-size: 1.9rem; overflow-wrap: normal; hyphens: manual; } }

/* ===== Vasen valikkoraide (Landstar-tyylinen) ===== */
:root { --rail: 76px; --rail-open: 280px; }
body { padding-left: var(--rail); }
body:not(.home) main { padding-top: 0; }
.rail {
  position: fixed; inset: 0 auto 0 0; z-index: 200; width: var(--rail);
  background: #0d0e11; color: #fff; display: flex; flex-direction: column;
  border-right: 4px solid var(--red); overflow: hidden auto;
  transition: width .28s ease, box-shadow .28s ease;
}
.rail:hover, .rail:focus-within, .rail.is-open { width: var(--rail-open); box-shadow: 12px 0 40px rgba(0,0,0,.45); }
.rail-logo { display: flex; align-items: center; height: 84px; padding: 0 18px; background: var(--red); flex-shrink: 0; text-decoration: none; }
.rail-mark { font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: #fff; width: 36px; text-align: center; flex-shrink: 0; }
.rail-logo .rail-wordmark { height: 44px; width: auto; background: #fff; padding: 4px 8px; border-radius: 3px; margin-left: 12px; opacity: 0; transition: opacity .2s; }
.rail-list { list-style: none; margin: 1rem 0; padding: 0; }
.rail-list > li > a, .rail-call {
  display: flex; align-items: center; gap: 18px; padding: 15px 24px; color: rgba(255,255,255,.85);
  text-decoration: none; white-space: nowrap; font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .08em; font-size: 1rem; border-left: 4px solid transparent; position: relative;
}
/* Vain navigaation ikonit 24px – EI logoa */
.rail-list > li > a > svg, .rail-call > svg { width: 24px; height: 24px; flex-shrink: 0; }
.rail-label { opacity: 0; transition: opacity .2s; }
.rail:hover .rail-label, .rail:focus-within .rail-label, .rail.is-open .rail-label,
.rail:hover .rail-logo .rail-wordmark, .rail:focus-within .rail-logo .rail-wordmark, .rail.is-open .rail-logo .rail-wordmark { opacity: 1; }
.rail-list > li > a:hover, .rail-list > li > a:focus-visible, .rail-list a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.06); border-left-color: var(--red); }
.rail-list li { position: relative; }
.rail-sub-toggle { position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; background: none; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; opacity: 0; transition: transform .2s, opacity .2s; }
.rail:hover .rail-sub-toggle, .rail:focus-within .rail-sub-toggle, .rail.is-open .rail-sub-toggle { opacity: .8; }
.rail-sub { list-style: none; margin: 0; padding: 0 0 0 66px; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.rail-sub a { display: block; padding: 8px 12px 8px 0; color: rgba(255,255,255,.65); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.rail-sub a:hover, .rail-sub a:focus-visible { color: var(--red); }
/* alavalikot aukeavat hover-tilassa leveällä raiteella tai napista */
.rail:hover .has-sub:hover > .rail-sub, .has-sub:focus-within > .rail-sub, .has-sub.sub-open > .rail-sub { max-height: 220px; padding-bottom: 8px; }
.has-sub:hover > .rail-sub-toggle, .has-sub.sub-open > .rail-sub-toggle { transform: rotate(90deg); }
.rail-call { margin-top: 0; background: var(--red); color: #fff; border: 0; }
.rail-toggle, .rail-backdrop { display: none; }
.rail a:focus-visible, .rail button:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.page-hero { padding-top: 6rem; }

/* Mobiili: raide piiloon, hampurilainen */
@media (max-width: 900px) {
  body { padding-left: 0; }
  .rail { width: var(--rail-open); transform: translateX(-105%); transition: transform .3s ease; }
  .rail .rail-label, .rail .rail-logo .rail-wordmark, .rail .rail-sub-toggle { opacity: 1; }
  .rail.is-open { transform: none; }
  .rail-toggle { display: flex; align-items: center; gap: 10px; position: fixed; top: 14px; right: 14px; z-index: 210; background: var(--red); color: #fff; border: 0; padding: 10px 14px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
  .rail-toggle span, .rail-toggle span::before, .rail-toggle span::after { display: block; width: 20px; height: 2px; background: #fff; position: relative; }
  .rail-toggle span::before, .rail-toggle span::after { content: ""; position: absolute; left: 0; }
  .rail-toggle span::before { top: -6px; } .rail-toggle span::after { top: 6px; }
  .rail-backdrop.is-open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 150; }
}
/* Heron teksti: ei katkea kesken sanan */
.hero-copy .hero-title { overflow-wrap: normal; word-break: normal; hyphens: manual; }
@media (max-width: 600px) { .hero-copy .hero-title { font-size: clamp(1.5rem, 7.4vw, 2.2rem); } }

/* Hero-teksti vasempaan yläkulmaan */
.hero-copy { left: clamp(1.5rem, 5vw, 5rem); right: auto; top: clamp(5rem, 14vh, 10rem); bottom: auto; text-align: left; }
.hero-copy .hero-title::after { margin: 1.1rem 0 0 0; }
.hero-actions { justify-content: flex-start; }
.hero-shade { background: linear-gradient(160deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 40%, rgba(0,0,0,.1) 75%), linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,0) 30%); }
@media (max-width: 900px) { .hero-copy { left: 1.25rem; right: 1.25rem; top: 6rem; } }

/* Käyttäjän alkuperäinen punainen tunnus, läpinäkyvä PNG, ei punaista laattaa. */
.rail-logo { background: #0d0e11; padding: 0 8px; gap: 0; }
.rail-logo .rail-emblem {
  display: block; width: 56px; height: auto; max-width: none; flex: 0 0 56px;
  margin: 0; padding: 0; background: transparent; border-radius: 0;
  opacity: 1; object-fit: contain;
}

/* Kiinteä Ota yhteyttä -painike oikeassa yläkulmassa (kaikki sivut) */
.top-contact { position: fixed; top: 14px; right: 14px; z-index: 220; background: var(--red); color: #fff; text-decoration: none; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; padding: 10px 16px; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.top-contact:hover { filter: brightness(1.1); color: #fff; }
.top-contact:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 900px) {
  .rail-toggle { right: auto; left: 14px; background: #0d0e11; }
  .top-contact { padding: 10px 12px; font-size: .9rem; }
}
.hero-actions [hidden] { display: none; }

/* ===== Valkoinen sivupalkki (v. 8.11.2026) ===== */
:root { --rail: 76px; --rail-open: 280px; --rail-ease: .32s cubic-bezier(.4,0,.2,1); }
body { padding-left: var(--rail); transition: padding-left var(--rail-ease); overflow-x: hidden; }
.rail { background: #fff; color: #111; border-right: 4px solid var(--red); box-shadow: 2px 0 14px rgba(0,0,0,.12); transition: width var(--rail-ease), transform var(--rail-ease); }
/* Laajennus vain JS-luokalla: hover/focus vain hiirelle (ks. script.js) */
.rail:hover, .rail:focus-within { width: var(--rail); box-shadow: 2px 0 14px rgba(0,0,0,.12); }
.rail.is-expanded, .rail.is-open { width: var(--rail-open); }
.rail-label, .rail .rail-sub-toggle { opacity: 0; }
.rail.is-expanded .rail-label, .rail.is-open .rail-label { opacity: 1; }
.rail.is-expanded .rail-sub-toggle, .rail.is-open .rail-sub-toggle { opacity: .8; }
/* Desktop: sisältö työntyy oikealle */
@media (min-width: 901px) { body.rail-pushed { padding-left: var(--rail-open); } }
.rail-list > li > a { color: #1a1a1a; }
.rail-list > li > a:hover, .rail-list > li > a:focus-visible, .rail-list a[aria-current="page"] { color: var(--red); background: rgba(200,16,46,.06); border-left-color: var(--red); }
.rail-sub-toggle { color: #1a1a1a; }
.rail-sub a { color: #555; }
.rail-sub a:hover, .rail-sub a:focus-visible { color: var(--red); }
.rail .rail-call { color: #fff; background: var(--red); }
.rail a:focus-visible, .rail button:focus-visible { outline: 2px solid var(--red); outline-offset: -3px; }
/* hover-alavalikot vain hiirelle; kosketuksessa nappi */
.rail:hover .has-sub:hover > .rail-sub { max-height: 0; padding-bottom: 0; }
.has-sub:hover > .rail-sub-toggle { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .rail.is-expanded .has-sub:hover > .rail-sub { max-height: 220px; padding-bottom: 8px; }
  .rail.is-expanded .has-sub:hover > .rail-sub-toggle { transform: rotate(90deg); }
}
.has-sub.sub-open > .rail-sub { max-height: 220px; padding-bottom: 8px; }
.has-sub.sub-open > .rail-sub-toggle { transform: rotate(90deg); }

/* Animoitu logo: X liukuu oikealle, JAN tulee vasemmalta -> JANX */
.rail-logo { background: #fff; height: 84px; padding: 0 10px; display: flex; align-items: center; gap: 0; overflow: hidden; border-bottom: 1px solid #eee; }
.rail-logo .rail-emblem { width: 52px; flex: 0 0 52px; height: auto; }
.logo-jan { display: block; overflow: hidden; max-width: 0; flex: 0 0 auto; transition: max-width .3s cubic-bezier(.4,0,.2,1); }
.logo-jan span { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2.35rem; line-height: 1; letter-spacing: .02em; color: var(--red); padding-right: 4px; white-space: nowrap; transform: translateX(-110%); opacity: 0; transition: transform .28s ease, opacity .2s ease; }
.rail.is-expanded .logo-jan, .rail.is-open .logo-jan { max-width: 110px; }
.rail.is-expanded .logo-jan span, .rail.is-open .logo-jan span { transform: none; opacity: 1; transition-delay: .14s; }
.rail-logo .rail-wordmark { display: none; }

/* Mobiili: overlay, Valikko-nappi logon ja Etusivun välissä */
@media (max-width: 900px) {
  body, body.rail-pushed { padding-left: 0; }
  .rail { width: var(--rail-open); transform: translateX(-105%); box-shadow: none; z-index: 200; }
  .rail.is-open { transform: none; box-shadow: 12px 0 40px rgba(0,0,0,.35); }
  .rail .rail-label { opacity: 1; }
  .rail .rail-sub-toggle { opacity: .8; }
  .rail-logo { height: 64px; }
  .rail-list { margin-top: 64px; }
  .rail-toggle { display: flex; position: fixed; top: 72px; left: 14px; right: auto; z-index: 230; background: #fff; color: #111; border: 2px solid var(--red); padding: 8px 12px; gap: 10px; align-items: center; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
  .rail-toggle .rail-toggle-text { display: none !important; }
  .rail-toggle .burger, .rail-toggle .burger::before, .rail-toggle .burger::after { display: block; width: 20px; height: 2px; background: #111; position: relative; transition: transform .2s, background .2s; }
  .rail-toggle .burger::before, .rail-toggle .burger::after { content: ""; position: absolute; left: 0; }
  .rail-toggle .burger::before { top: -6px; } .rail-toggle .burger::after { top: 6px; }
  .rail-toggle[aria-expanded="true"] .burger { background: transparent; }
  .rail-toggle[aria-expanded="true"] .burger::before { transform: translateY(6px) rotate(45deg); }
  .rail-toggle[aria-expanded="true"] .burger::after { transform: translateY(-6px) rotate(-45deg); }
  .rail-toggle:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
  /* Mobiilin kiinteä logo, kun valikko on kiinni */
  .m-brand { display: flex; position: fixed; top: 8px; left: 10px; z-index: 190; background: #fff; padding: 8px 10px; border-radius: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
  .m-brand img { width: 52px; height: auto; display: block; }
  .rail-backdrop.is-open { z-index: 150; }
  .hero-copy { top: 8.5rem; }
  .page-hero { padding-top: 8.5rem; }
}
@media (min-width: 901px) { .m-brand, .rail-toggle { display: none; } }
@media (prefers-reduced-motion: reduce) {
  body, .rail, .logo-jan, .logo-jan span, .rail-label, .rail-sub, .rail-toggle .burger, .rail-toggle .burger::before, .rail-toggle .burger::after { transition: none !important; }
}
.rail-toggle .rail-toggle-text { display: inline; width: auto; height: auto; background: none; position: static; }
.rail-toggle .rail-toggle-text::before, .rail-toggle .rail-toggle-text::after { content: none; }

/* Mobiili: avattu valikko ei saa ulottua oikean yläkulman Ota yhteyttä -painikkeen alle */
@media (max-width: 900px) {
  .top-contact { right: 10px; padding: 8px 10px; font-size: .82rem; letter-spacing: .05em; }
  .rail { width: min(var(--rail-open), 86%); } /* was 100vw-128: voi aiheuttaa vaakavieritystä */
  .rail-sub { padding-left: 54px; }
  .rail-sub a { white-space: normal; }
}

/* ===== Alkuperäinen Janx-SVG-logo (Akin tiedosto), animoitu =====
   Lopputila: transform none + clip-path none = alkuperäiset polut ja värit sellaisenaan.
   Kiinni: sama SVG skaalattuna tasaisesti (ei venytystä) ja rajattuna vain X-osaan. */
.rail-logo { --lw: 240px; padding: 0 10px; justify-content: flex-start; }
.rail-logo .logo-jan, .rail-logo .rail-emblem, .rail-logo .rail-wordmark { display: none; }
.rail-logo .janx-logo { display: block; flex: 0 0 auto; width: var(--lw); height: calc(var(--lw) * 38 / 170); overflow: visible;
  transform-origin: 0 50%; transform: translateX(calc(var(--lw) * -0.33)) scale(.55);
  clip-path: inset(0 0 0 62.4%);
  /* sulkeutuessa: ensin rajaus takaisin X:ään, sitten X liukuu vasemmalle */
  transition: clip-path .3s ease, transform .3s cubic-bezier(.4,0,.2,1) .22s; }
.janx-logo .jl-jan { transform: translateX(-14px); opacity: 0; transition: transform .3s ease, opacity .2s ease; }
.rail.is-expanded .rail-logo .janx-logo, .rail.is-open .rail-logo .janx-logo { transform: none; clip-path: inset(0 0 0 0);
  /* avautuessa: ensin X liikkuu oikealle, sitten JAN ja nopeusviivat paljastuvat */
  transition: transform .28s cubic-bezier(.4,0,.2,1), clip-path .38s ease .2s; }
.rail.is-expanded .janx-logo .jl-jan, .rail.is-open .janx-logo .jl-jan { transform: none; opacity: 1; transition: transform .32s ease .26s, opacity .25s ease .26s; }
@media (max-width: 900px) {
  .rail-logo { --lw: min(240px, calc(100vw - 128px - 24px)); }
  .rail .rail-logo .janx-logo, .rail .rail-logo .janx-logo .jl-jan { transform: none; clip-path: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .janx-logo, .janx-logo .jl-jan { transition: none !important; } }

/* ===== Mobiili: yksi yläpalkki (v. 20261109) ===== */
.m-bar { display: contents; }
.m-bar-logo { display: none; }
.tc-short { display: none; }
.rail-toggle-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  :root { --mbar: 60px; }
  .m-brand { display: none !important; }
  .m-bar {
    display: flex; align-items: center; gap: 8px;
    position: fixed; top: 0; left: 0; right: 0; height: var(--mbar);
    z-index: 240; background: #fff; border-bottom: 3px solid var(--red);
    box-shadow: 0 2px 12px rgba(0,0,0,.14); padding: 0 10px;
  }
  .m-bar-logo {
    display: flex; align-items: center; flex: 1 1 auto; min-width: 0;
    text-decoration: none; height: 100%;
  }
  .m-bar-logo .janx-logo {
    display: block; width: 120px; height: auto; max-width: 100%;
    transform: none !important; clip-path: none !important; opacity: 1 !important;
  }
  .m-bar-logo .janx-logo .jl-jan { transform: none !important; opacity: 1 !important; }
  .top-contact {
    position: static; flex: 0 0 auto; z-index: auto;
    padding: 8px 12px; font-size: .78rem; letter-spacing: .05em;
    box-shadow: none; white-space: nowrap;
  }
  .rail-toggle {
    display: flex; position: static; flex: 0 0 auto; z-index: auto;
    width: 44px; height: 44px; padding: 0; margin: 0;
    justify-content: center; align-items: center; gap: 0;
    background: transparent; color: #111; border: 0; box-shadow: none;
    cursor: pointer;
  }
  .rail-toggle .burger, .rail-toggle .burger::before, .rail-toggle .burger::after {
    display: block; width: 22px; height: 2px; background: #111; position: relative;
  }
  .rail-toggle .burger::before, .rail-toggle .burger::after { content: ""; position: absolute; left: 0; }
  .rail-toggle .burger::before { top: -7px; }
  .rail-toggle .burger::after { top: 7px; }
  .rail-toggle[aria-expanded="true"] .burger { background: transparent; }
  .rail-toggle[aria-expanded="true"] .burger::before { transform: translateY(7px) rotate(45deg); }
  .rail-toggle[aria-expanded="true"] .burger::after { transform: translateY(-7px) rotate(-45deg); }
  .rail-toggle:focus-visible, .m-bar-logo:focus-visible, .m-bar .top-contact:focus-visible {
    outline: 3px solid var(--red); outline-offset: 2px;
  }
  /* Valikko alkaa yläpalkin alta; logo piiloon laatikossa */
  .rail {
    top: var(--mbar); height: calc(100% - var(--mbar));
    width: min(var(--rail-open), 86vw);
    transform: translateX(-105%);
  }
  .rail.is-open { transform: none; }
  .rail .rail-logo { display: none; }
  .rail .rail-list { margin-top: .5rem; }
  .rail-backdrop.is-open {
    display: block; position: fixed; top: var(--mbar); left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.55); z-index: 150;
  }
  /* Hero alkaa palkin alta */
  .hero-copy { top: calc(var(--mbar) + 1.25rem); left: 1.25rem; right: 1.25rem; }
  .page-hero { padding-top: calc(var(--mbar) + 2.5rem); }
  .home .hero-full { /* kuva saa mennä palkin alle, teksti ei */
  }
}
@media (max-width: 360px) {
  .m-bar-logo .janx-logo { width: 100px; }
  .tc-full { display: none; }
  .tc-short { display: inline; }
  .top-contact { padding: 8px 10px; font-size: .75rem; }
}
@media (min-width: 901px) {
  .m-bar { display: contents; }
  .m-bar-logo { display: none; }
  .rail-toggle { display: none; }
}

/* ===== Rail: puhelin EN:n alle + sertifikaatit (v. 20261109-rail3) ===== */
.rail-call { margin-top: 0 !important; flex-shrink: 0; }
.rail-certs {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 8px 6px 18px; flex-shrink: 0;
}
.rail-certs img {
  width: 48px; height: auto; display: block;
  transition: width var(--rail-ease);
}
.rail.is-expanded .rail-certs img,
.rail.is-open .rail-certs img {
  width: 180px;
}
@media (max-width: 900px) {
  .rail-certs { padding: 12px 16px 24px; }
  .rail-certs img { width: 120px; } /* medium drawer size */
  .rail.is-open .rail-certs img { width: 120px; }
  /* 320px: estä mahdollinen valkoinen kaista / vaakavieritys */
  html, body { max-width: 100%; overflow-x: hidden; }
  main, .hero-full, .m-bar { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .rail-certs img { transition: none !important; }
}

/* ===== v2 (20261110): kiinteä H1-yläotsikko + vaihtuva iso lause tavallisena tekstinä ===== */
.hero-title { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .02em; font-weight: 600; }
h1.hero-kicker {
  font-family: var(--font-head); font-weight: 500; text-transform: uppercase;
  letter-spacing: .25em; font-size: .8rem; line-height: 1.4;
  margin: 0 0 .75rem; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.55);
}
@media (max-width: 600px) { h1.hero-kicker { font-size: .7rem; letter-spacing: .18em; } }
/* TurkuRahti-linkit */
.split-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.tr-note { font-size: .95rem; opacity: .85; }
.hero .tr-note { margin-top: 1rem; color: rgba(255,255,255,.88); }
.tr-cta { margin-top: 2rem; padding: 1.5rem 1.75rem; background: #f5f5f3; border-left: 6px solid var(--red); }
.tr-cta h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.tr-cta p { margin: 0 0 1rem; }
/* EN-sivun ankkurit eivät jää kiinteän yläpalkin alle */
#why, #transport, #cold, #quality, #history, #contact, #h1970, #h2000, #pikayhteydenotto { scroll-margin-top: 1rem; }
@media (max-width: 900px) { #why, #transport, #cold, #quality, #history, #contact, #h1970, #h2000, #pikayhteydenotto { scroll-margin-top: calc(var(--mbar, 60px) + 12px); } }
.contact-card h3 { margin-top: 0; }

/* ===== v3 (20261112): kielivalitsin FI | EN | SV, ankkurit, henkilöstölinkki ===== */
.lang-switch { display: flex; align-items: stretch; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; }
.lang-switch a { display: flex; align-items: center; justify-content: center; width: 40px; text-decoration: none; color: #111; font-size: 1rem; line-height: 1.6; padding: 10px 0; }
.lang-switch a + a { border-left: 1px solid #e3e3e3; }
.lang-switch a[aria-current="true"] { color: var(--red); font-weight: 700; box-shadow: inset 0 -3px 0 var(--red); }
.lang-switch a:hover { color: var(--red); }
.lang-switch a:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
@media (min-width: 901px) {
  .m-bar > .lang-switch { position: fixed; top: 14px; right: 14px; z-index: 220; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
  .top-contact { right: 142px; }
}
@media (max-width: 900px) {
  .m-bar { gap: 6px; }
  .m-bar > .lang-switch { flex: 0 0 auto; }
  .m-bar > .lang-switch a { width: 32px; min-height: 44px; padding: 0; font-size: .8rem; letter-spacing: .04em; }
  .m-bar > .lang-switch a + a { border-left: 0; }
}
@media (max-width: 480px) {
  .tc-full { display: none; }
  .tc-short { display: inline; }
  .m-bar-logo .janx-logo { width: 104px; }
}
@media (max-width: 360px) {
  .m-bar { gap: 4px; padding: 0 6px; }
  .m-bar-logo .janx-logo { width: 84px; }
  .m-bar > .lang-switch a { width: 28px; }
  .rail-toggle { width: 40px; }
}
/* Alatunnisteen kielilinkit (tumma tausta) */
.footer-bottom .lang-switch-footer a { color: rgba(255,255,255,.85); width: auto; padding: 0 .5rem; font-size: .85rem; }
.footer-bottom .lang-switch-footer a + a { border-left: 1px solid rgba(255,255,255,.25); }
.footer-bottom .lang-switch-footer a[aria-current="true"] { color: #fff; box-shadow: none; text-decoration: underline; text-underline-offset: 4px; }
.footer-staff a { opacity: .7; font-size: .9rem; }
/* Kaikki sisäiset ankkurit (myös EN/SV) eivät jää kiinteän palkin alle */
main [id] { scroll-margin-top: 1rem; }
@media (max-width: 900px) { main [id] { scroll-margin-top: calc(var(--mbar, 60px) + 12px); } }
/* EN/SV-sivujen yläkuvat: määritelty tässä tiedostossa, jotta polku on sama kaikissa kansioissa ja selaimissa */
.page-hero.bg-hero1 { --bg: url('assets/hero/hero1.jpg'); }
.page-hero.bg-hero2 { --bg: url('assets/hero/hero2.jpg'); }
.page-hero.bg-hero3 { --bg: url('assets/hero/hero3.jpg'); }
.page-hero.bg-kylma-1 { --bg: url('assets/hero/kylma-1.jpg'); }
/* ===== v4 (20261119): Janx ERP- ja TurkuRahti-sivut ===== */
.page-hero.bg-perus-6 { --bg: url('assets/hero/perus-6.jpg'); }
.page-hero.bg-kylma-6 { --bg: url('assets/hero/kylma-6.jpg'); }
.erp-logo { width: min(100%, 360px); height: auto; margin: 0 0 1.5rem; }
.erp-model { display: grid; gap: 1rem; align-content: start; }
.erp-card { background: #f5f5f3; border-left: 6px solid #111; padding: 1.25rem 1.5rem; }
.erp-card h3 { margin: 0 0 .35rem; font-size: 1.1rem; }
.erp-card p { margin: 0; }
.erp-card-red { border-left-color: var(--red); }
.erp-list { margin: .5rem 0 1rem; padding-left: 1.2rem; }
.erp-list li { margin-bottom: .35rem; }
.erp-list li::marker { color: var(--red); }
.erp-hint { font-size: .95rem; color: var(--muted); }
.erp-tier { margin: 2rem 0 .75rem; padding-bottom: .35rem; border-bottom: 3px solid var(--red); display: inline-block; }
.erp-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem 1.5rem; }
.erp-feat h4 { margin: 0 0 .25rem; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .03em; font-size: 1rem; }
.erp-feat p { margin: 0; font-size: .95rem; }
.erp-steps { list-style: none; counter-reset: s; padding: 0; margin: 1rem 0 0; }
.erp-steps li { counter-increment: s; position: relative; padding: 0 0 1rem 3rem; }
.erp-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); }
.erp-steps strong, .erp-steps span { display: block; }
.erp-login { margin-top: 1rem; font-size: .9rem; }
.erp-teaser { background: #f5f5f3; }
.erp-teaser-inner { display: grid; grid-template-columns: minmax(200px, 360px) 1fr; gap: 2rem; align-items: center; }
@media (max-width: 760px) { .erp-teaser-inner { grid-template-columns: 1fr; } }
.btn-outline-dark { background: transparent; color: var(--ink) !important; border: 2px solid var(--ink); }
.btn-outline-dark:hover { background: var(--ink); color: #fff !important; }
.split-actions .btn { margin-top: .25rem; }
/* v7: Laatu-osion eActros-kuva – auto pysyy kuvassa object-fit/cover-rajauksessa */
.split-img.split-img-laatu { background-position: 38% 50%; }
/* v9: historiakuvat tarinan sekaan, vuorotellen oikealle ja vasemmalle */
.story img.story-fig { width: min(250px, 36%); height: auto; border-radius: 8px; margin: .35rem 0 1rem 1.5rem; float: right; clear: both; }
.story img.story-fig-l { float: left; margin: .35rem 1.5rem 1rem 0; }
.story img.story-fig-w { float: none; display: block; width: 100%; margin: .5rem 0 1.5rem; }
.story img[src*="historia-kiito"], .story .signature { clear: both; }
.story img[src*="historia-kiito"] { display: block; }
@media (max-width: 640px) {
  .story img.story-fig, .story img.story-fig-l { float: none; width: 100%; margin: 0 0 1.25rem; }
}
/* v10: kaksi nykykaluston kuvaa rinnakkain tarinan lopussa, mobiilissa allekkain */
.story .story-pair { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0 1.75rem; }
.story .story-pair img { width: 100%; height: auto; border-radius: 8px; display: block; }
@media (max-width: 640px) { .story .story-pair { grid-template-columns: 1fr; } }
/* v11: suljetun sivupalkin X-tunnus – nopeusviivojen vasen pää häivytetään pehmeästi (ei enää katkea tyhjään) */
@media (min-width: 901px) {
  .rail-logo .janx-logo { -webkit-mask-image: linear-gradient(to right, transparent 62.4%, #000 72%); mask-image: linear-gradient(to right, transparent 62.4%, #000 72%); }
  .rail.is-expanded .rail-logo .janx-logo, .rail.is-open .rail-logo .janx-logo { -webkit-mask-image: none; mask-image: none; }
}

/* v13: Turku-siluetti näkyvämmäksi (kevyempi tummennus), teksti pysyy luettavana */
.site-footer::before { background: linear-gradient(180deg, rgba(0,0,0,.80), rgba(0,0,0,.70)); }
/* mobiilissa tiiviimpi versio (linna + tuomiokirkko) isompana */
@media (max-width: 700px) {
  .site-footer { background-image: url("assets/footer-turku-mobiili.svg"); background-size: auto 240px; background-position: center bottom; }
}

/* v15: etusivun TurkuRahti-toimintapainikkeet + "lue lisää" -tekstilinkki */
.split-actions { row-gap: .65rem; }
.split-text .tr-more { margin: .7rem 0 0; }
.split-text .tr-more a {
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}
.split-text .tr-more a:hover { color: var(--red); }
@media (max-width: 600px) {
  .split-actions .btn { padding: .85rem 1.2rem; }
}
