:root {
  --bronze: #b8894a;
  --bronze-light: #d9b27a;
  --gold: #e8c46a;
  --ink: #1d1a16;
  --ink-soft: #4a443b;
  --paper: #faf7f1;
  --paper-alt: #f1ebe0;
  --night: #16130f;
  --night-soft: #221e18;
  --line: #e0d6c4;
  --radius: 10px;
  --wrap: 1180px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 400 17px/1.65 var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--bronze); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .5em; }
h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--bronze); margin-bottom: .8em;
}

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(22, 19, 15, .82);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: #fff; font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
}
.brand img { width: 26px; height: auto; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: #e9e2d6; text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--gold); }
.nav .nav-cta {
  border: 1px solid var(--bronze); padding: 7px 16px; border-radius: 999px; color: var(--gold);
}
.nav .nav-cta:hover { background: var(--bronze); color: var(--night); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .25s; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--night); padding: 8px 0 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 20px; width: 100%; text-align: center; }
  .nav .nav-cta { width: auto; margin-top: 8px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Sama valikkonappinäkymä, kun valikko ei mahdu riville (js/header-fit.js) */
.nav-compact .nav-toggle { display: block; }
.nav-compact .nav {
  position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
  background: var(--night); padding: 8px 0 16px; display: none;
}
.nav-compact .nav.open { display: flex; }
.nav-compact .nav a { padding: 12px 20px; width: 100%; text-align: center; }
.nav-compact .nav .nav-cta { width: auto; margin-top: 8px; }
.nav-compact .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-compact .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-compact .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav a, .brand { white-space: nowrap; }
.nav-compact .site-header .lang-menu { margin-left: auto; margin-right: 10px; }

/* Hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--night); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.05) 35%, rgba(18,14,10,.85) 100%);
}
.hero-content { position: relative; padding-bottom: 12vh; width: 100%; }
.hero h1 {
  font-size: clamp(3.2rem, 9vw, 7rem); font-weight: 600; margin-bottom: .25em;
  color: var(--gold); text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.hero .eyebrow { color: #f1dfbd; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 34em; color: #f3eee6; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px; font-weight: 600;
  text-decoration: none; font-size: .98rem; transition: .2s;
}
.btn-primary { background: var(--gold); color: var(--night); }
.btn-primary:hover { background: #f3d58b; }
.btn-ghost { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* Sections */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-alt { background: var(--paper-alt); }
.section-dark { background: var(--night); color: #e9e2d6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.08rem; }
.section-dark .section-head p:not(.eyebrow) { color: #bfb5a5; }

.split > * { min-width: 0; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact { grid-template-columns: 7fr 5fr; align-items: center; }
.portrait { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(40, 28, 10, .18); }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
#supavit .portrait { position: sticky; top: 96px; }
.prose .big {
  font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.3;
  color: var(--bronze); font-style: italic; margin: .2em 0 1em;
}
blockquote {
  margin: 1.6em 0 0; padding-left: 20px; border-left: 3px solid var(--bronze);
  font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--ink-soft);
}
@media (max-width: 820px) {
  .split, .contact { grid-template-columns: 1fr; }
  #supavit .portrait { position: static; }
  .portrait img { aspect-ratio: 4 / 3; }
}

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 72px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.facts div { background: var(--paper); padding: 24px; }
.facts strong { display: block; font-family: var(--serif); font-size: 1.45rem; color: var(--ink); }
.facts span { color: var(--ink-soft); font-size: .92rem; }
@media (max-width: 820px) { .facts { grid-template-columns: 1fr 1fr; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; grid-auto-flow: dense; }
.service {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.service > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.service-body { padding: 22px 24px 26px; position: relative; flex: 1; }
.service-body::before {
  content: ""; position: absolute; left: 24px; top: 0; width: 36px; height: 3px; background: var(--bronze);
}
.service:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(60, 40, 10, .1); }
.service p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
.service-feature { grid-column: span 2; grid-row: span 2; background: var(--night); border-color: var(--night); }
.service-feature h3 { color: #fff; font-size: 1.9rem; }
.service-feature p { color: #c7bdad; font-size: 1.02rem; }
.service-feature .eyebrow { color: var(--gold); margin-bottom: .4em; }
.feature-photos { display: grid; grid-template-columns: 3fr 2fr; grid-template-rows: 1fr 1fr; gap: 3px; flex: 1; min-height: 380px; }
.service-feature .service-body { flex: none; }
.feature-photos img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.feature-photos .main { grid-row: span 2; object-position: 50% 30%; }
@media (max-width: 960px) {
  .services { grid-template-columns: 1fr 1fr; }
  .service-feature { grid-row: auto; }
}
@media (max-width: 620px) {
  .services { grid-template-columns: 1fr; }
  .service-feature { grid-column: auto; }
  .feature-photos { min-height: 320px; }
}

/* Huoltotarve, prosessi, UKK */
.signs {
  list-style: none; padding: 0; margin: 0 0 72px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 32px;
}
.signs li { padding: 18px 0 18px 22px; border-left: 2px solid var(--bronze); }
.signs strong { display: block; font-family: var(--serif); font-size: 1.35rem; }
.signs span { color: var(--ink-soft); font-size: .95rem; }
.signs em { color: #8a4b1f; font-style: normal; font-weight: 600; }
.photo-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 72px; }
.photo-band figure, .inline-photo { margin: 0; }
.photo-band img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photo-band figcaption, .inline-photo figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: 8px; }
.inline-photo { margin-bottom: 28px; }
.inline-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 720px) { .photo-band { grid-template-columns: 1fr; } }
.checklist { margin-bottom: 72px; }
.checklist ul {
  list-style: none; padding: 0; margin: 0; columns: 2 320px; column-gap: 40px;
}
.checklist li {
  break-inside: avoid; padding: 10px 0 10px 30px; position: relative; border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.checklist li::before { content: "✓"; position: absolute; left: 4px; color: var(--bronze); font-weight: 600; }
.checklist strong { color: var(--ink); }
.process { margin-bottom: 72px; }
.process-title { font-size: 1.9rem; margin-bottom: 24px; }
.process ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.process li {
  counter-increment: step; background: var(--paper-alt); border-radius: var(--radius); padding: 26px 22px;
}
.process li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--night); color: var(--gold); font: 600 1.2rem var(--serif); margin-bottom: 14px;
}
.process strong { display: block; font-family: var(--serif); font-size: 1.35rem; margin-bottom: 4px; }
.process span { color: var(--ink-soft); font-size: .95rem; }
.split-even { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); }
.split-even h3 { font-size: 1.9rem; }
.split-even p { color: var(--ink-soft); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--bronze); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; font-size: .97rem; }
.kuossimo-cta.light { background: var(--paper-alt); }
@media (max-width: 900px) {
  .signs { grid-template-columns: 1fr 1fr; }
  .process ol { grid-template-columns: 1fr 1fr; }
  .split-even { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .signs, .process ol { grid-template-columns: 1fr; }
}

/* Kuossimo */
.kuossimo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.features { display: grid; gap: 26px; }
.feature { padding-left: 20px; border-left: 2px solid rgba(232, 196, 106, .35); }
.feature h3 { font-size: 1.35rem; color: var(--gold) !important; margin-bottom: .3em; }
.feature p { color: #c7bdad; font-size: .97rem; margin: 0; }
.screens { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; position: sticky; top: 96px; }
.screens figure { margin: 0; }
.screens img {
  width: 100%; border-radius: 8px; border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 12px 30px rgba(0,0,0,.5); max-height: 420px; object-fit: cover; object-position: top;
}
.screens figcaption { font-size: .82rem; color: #9d9384; margin-top: 8px; text-align: center; }
.references { margin-top: 72px; }
.references h3 { font-size: 1.9rem; }
.references > p { color: #bfb5a5; max-width: 44em; font-size: 1.05rem; }
.kuossimo-cta {
  margin-top: 64px; padding: 32px; border-radius: var(--radius); background: var(--night-soft);
  display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.kuossimo-cta p { margin: 0; max-width: 40em; }
@media (max-width: 900px) {
  .kuossimo-grid { grid-template-columns: 1fr; }
  .screens { position: static; }
}

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button {
  font: 500 .92rem var(--sans); padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
}
.filters button:hover { border-color: var(--bronze); color: var(--ink); }
.filters button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery .tile {
  aspect-ratio: 1; border-radius: 8px; overflow: hidden; cursor: zoom-in;
  position: relative; background: var(--paper-alt); display: block; width: 100%; padding: 0; border: 0;
}
.gallery .tile img, .gallery .tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr 1fr; gap: 6px; } }
.gallery .tile:hover img { transform: scale(1.04); }
.gallery .tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; color: #fff; font-size: .85rem;
  text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transition: opacity .25s;
}
.gallery .tile:hover .cap, .gallery .tile:focus-visible .cap { opacity: 1; }
.gallery .tile .play {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 3rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.gallery .tile[hidden] { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(12, 10, 8, .95);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.lightbox .lb-media img, .lightbox .lb-media video { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.lightbox figcaption { color: #d8cfc0; margin-top: 12px; font-size: .95rem; text-align: center; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff; font-size: 3rem; cursor: pointer;
  padding: 10px 18px; opacity: .75; line-height: 1;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 10px; right: 10px; }
.lb-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 6px; top: 50%; transform: translateY(-50%); }

/* Contact */
.contact-list { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 28px; margin: 28px 0 0; }
.contact-list dt { font-weight: 600; color: var(--ink-soft); font-size: .9rem; padding-top: 2px; }
.contact-list dd { margin: 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration-color: var(--bronze); }

/* Footer */
.site-footer { background: var(--night); color: #9d9384; padding: 36px 0; font-size: .9rem; }
.site-footer .wrap { display: flex; align-items: center; gap: 14px; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.site-footer .footer-links { margin-left: auto; }
.site-footer .footer-links a { color: #d8cfc0; text-decoration: none; }
.site-footer .footer-links a:hover { color: var(--gold); }
@media (max-width: 720px) { .site-footer .wrap { flex-wrap: wrap; } .site-footer .footer-links { margin-left: 0; width: 100%; } }
.muted { color: var(--ink-soft); }
.small { font-size: .92rem; }

/* Kellomuseo */
.museum-hero { background: var(--night); color: #e9e2d6; padding: calc(64px + clamp(40px, 7vw, 88px)) 0 clamp(56px, 8vw, 96px); }
.museum-hero-inner { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.museum-hero-inner > * { min-width: 0; }
.museum-hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); color: var(--gold); margin-bottom: .3em; }
.museum-hero .eyebrow { color: #f1dfbd; }
.museum-hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #d8cfc0; }
.museum-hero-photo { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.museum-hero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 860px) { .museum-hero-inner { grid-template-columns: 1fr; } .museum-hero-photo { order: -1; } }

.facts-2 { grid-template-columns: 1fr 1fr; margin-top: 0; align-self: center; }
.facts-2 strong { font-size: 2rem; color: var(--bronze); }

.tour { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(28px, 4vw, 48px); counter-reset: stop; }
.tour-stop { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(20px, 4vw, 48px); align-items: center; counter-increment: stop; }
.tour-stop:nth-child(even) figure { order: 2; }
.tour-stop figure { margin: 0; }
.tour-stop img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.tour-stop h3 { font-size: 1.9rem; display: flex; align-items: center; gap: 14px; }
.tour-stop h3::before {
  content: counter(stop); flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--night); color: var(--gold); font: 600 1.2rem var(--serif);
}
.tour-stop p { color: var(--ink-soft); }
@media (max-width: 760px) { .tour-stop { grid-template-columns: 1fr; } .tour-stop:nth-child(even) figure { order: 0; } }

.menu { background: var(--paper-alt); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); align-self: start; }
.menu h3 { font-size: 1.9rem; }
.menu ul { list-style: none; padding: 0; margin: 0; }
.menu li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dotted var(--bronze-light); }
.menu li b { font-family: var(--serif); font-size: 1.2rem; white-space: nowrap; color: var(--bronze); }
.menu-note { margin: 14px 0 0; font-size: .88rem; color: var(--ink-soft); }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info { background: var(--night-soft); border-radius: var(--radius); padding: 26px; }
.info p { color: #c7bdad; font-size: .97rem; }
.info p:last-child { margin-bottom: 0; }
.info .price { font-size: 1.05rem; color: #e9e2d6; }
.info .price b { font-family: var(--serif); font-size: 2rem; color: var(--gold); }
.info-warn { border: 1px solid rgba(232, 196, 106, .4); }
.info-wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.info-wide img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.info-warn h3 { color: var(--gold) !important; }
@media (max-width: 900px) { .info-grid { grid-template-columns: 1fr; } .info-wide { grid-column: auto; grid-template-columns: 1fr; gap: 16px; } }
/* Cormorantin numerot tasakorkuisiksi (hinnat, järjestysnumerot) */
h1, h2, h3, .facts strong, .menu li b, .info .price b, .tour-stop h3::before, .process li::before { font-variant-numeric: lining-nums; }

/* Urut */
.organ-hero-photo img { aspect-ratio: 4 / 3; object-position: 50% 60%; }
.organ-plate { margin: 0 auto 40px; max-width: 760px; }
.organ-plate img { width: 100%; border-radius: var(--radius); box-shadow: 0 20px 50px rgba(0,0,0,.45); }
.organ-plate figcaption { font-size: .88rem; color: #9d9384; margin-top: 8px; text-align: center; }
.organ-list { padding-left: 1.1em; }
.organ-list li { margin-bottom: .8em; color: var(--ink-soft); }
.organ-list strong { color: var(--ink); }
.info-grid-light { margin-top: 0; }
.info-grid-light .info { background: var(--paper-alt); }
.info-grid-light .info p { color: var(--ink-soft); }
.checklist-plain { padding-left: 1.1em; color: var(--ink-soft); }
#positiivit .portrait img { aspect-ratio: 4 / 3; }

/* Tervetulosivu: yläkuva, jonka päällä otsikko ja osiokortit */
.welcome { background: var(--night); color: #e9e2d6; }
.welcome-hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(36px, 8vh, 96px) 0 clamp(28px, 5vh, 56px);
}
.welcome-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.welcome-hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(22,19,15,.7) 0%, rgba(22,19,15,.3) 38%, transparent 55%),
              linear-gradient(180deg, transparent 45%, rgba(18,14,10,.85) 100%);
}
.welcome-hero-text { position: relative; width: 100%; }
.welcome-hero h1 { font-size: clamp(3rem, 7vw, 5.6rem); color: var(--gold); margin: 0 0 .15em; text-shadow: 0 2px 30px rgba(0,0,0,.45); }
.welcome-hero .eyebrow { color: #fff4dd; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.welcome-hero .lead { max-width: 25em; color: #f3eee6; font-size: clamp(1.02rem, 1.4vw, 1.18rem); text-shadow: 0 1px 10px rgba(0,0,0,.6); }
.welcome-hero-credit { position: absolute; right: 12px; bottom: 6px; margin: 0; font-size: .72rem; color: rgba(255,255,255,.55); }

.doors { position: relative; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.door {
  display: flex; flex-direction: column; align-items: flex-start; padding: 22px 24px 20px;
  border-radius: var(--radius); text-decoration: none; color: #fff;
  background: rgba(22, 19, 15, .58); border: 1px solid rgba(232, 196, 106, .28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35); transition: background .2s, border-color .2s, transform .2s;
}
.door .eyebrow { color: var(--gold); margin-bottom: .4em; text-shadow: none; }
.door-title { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 2.3vw, 2.05rem); line-height: 1.05; margin-bottom: .35em; }
.door-text { color: #ddd4c5; font-size: .95rem; margin-bottom: 14px; flex: 1; }
.door-go { color: var(--gold); font-weight: 600; font-size: .95rem; }
.door:hover, .door:focus-visible { background: rgba(22, 19, 15, .78); border-color: var(--gold); transform: translateY(-3px); }
.door:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
/* Puhelin: oma rajaus (kello, juna ja Supavit) omassa mittasuhteessaan, teksti ja kortit sen alla */
@media (max-width: 900px) {
  .welcome-hero { display: block; min-height: 0; padding: 0 0 36px; }
  .welcome-hero-img { position: static; display: block; width: 100%; height: auto; aspect-ratio: 1000 / 736; }
  .welcome-hero-shade { inset: 0 0 auto; height: calc(100vw * 736 / 1000);
    background: linear-gradient(180deg, transparent 55%, var(--night) 100%); }
  .welcome-hero-text { position: relative; margin-top: -56px; }
  .welcome-hero h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .welcome-hero .lead { max-width: none; color: #d8cfc0; text-shadow: none; }
  .welcome-hero-credit { position: static; text-align: right; padding: 4px 12px 0; }
  .doors { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .door { padding: 18px 20px; background: var(--night-soft); backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  .door-text { margin-bottom: 8px; }
}

/* Kirkontornisimulaattori */
.sim { background: var(--night); color: #e9e2d6; padding: calc(64px + clamp(28px, 5vw, 56px)) 0 clamp(40px, 6vw, 72px); }
.sim-head { max-width: 760px; margin-bottom: 24px; }
.sim-head h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); color: var(--gold); margin-bottom: .25em; }
.sim-head .lead { color: #d8cfc0; font-size: clamp(1rem, 1.4vw, 1.15rem); margin: 0; }
.sim-stage {
  position: relative; height: clamp(320px, 62vh, 620px); border-radius: var(--radius); overflow: hidden;
  background: #16130f; box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.sim-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.sim-stage canvas:active { cursor: grabbing; }
.sim-msg { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 20px; text-align: center; color: #bfb5a5; font-weight: 500; }
.sim-panel {
  margin-top: 18px; background: linear-gradient(#2a251e, #1f1b16); border: 1px solid #3a3228;
  border-radius: var(--radius); padding: clamp(14px, 2.5vw, 24px);
}
.sim-bells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(4px, 1.5vw, 16px); }
.sim-bell { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.sim-name { font: 600 clamp(.95rem, 2.2vw, 1.25rem) var(--serif); color: var(--gold); white-space: nowrap; font-variant-numeric: lining-nums; }
.sim-cap { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #9d9384; margin-top: -2px; }
.sim-led { display: block; width: 10px; height: 10px; border-radius: 50%; background: #4b4b4b; border: 1px solid #222; transition: background .08s, box-shadow .08s; }
.sim-led.on { background: #33ff66; box-shadow: 0 0 10px #33ff66; }
.sim-switch {
  position: relative; width: 100%; max-width: 46px; height: 64px; border-radius: 8px; cursor: pointer;
  background: #141210; border: 1px solid #4a4034; padding: 0;
}
.sim-switch .sim-led { position: absolute; top: 6px; left: 50%; margin-left: -5px; }
.sim-knob {
  position: absolute; left: 50%; width: 22px; height: 26px; margin-left: -11px; bottom: 6px; border-radius: 5px;
  background: linear-gradient(#cfc6b8, #8d8476); transition: bottom .15s;
}
.sim-switch[aria-checked="true"] .sim-knob { bottom: 22px; background: linear-gradient(var(--gold), var(--bronze)); }
.sim-switch:disabled { opacity: .45; cursor: not-allowed; }
.sim-hammer {
  position: relative; width: 100%; max-width: 46px; aspect-ratio: 1; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 40% 35%, #d9b27a, #8a6332); border: 2px solid #4a4034; padding: 0;
  box-shadow: 0 3px 0 #0e0c0a; transition: transform .06s, box-shadow .06s, opacity .2s;
}
.sim-hammer:active { transform: translateY(2px); box-shadow: 0 1px 0 #0e0c0a; }
.sim-hammer .sim-led { position: absolute; top: 50%; left: 50%; margin: -5px 0 0 -5px; }
.sim-hammer.locked { opacity: .4; }
.sim-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sim-btn {
  font: 600 .92rem var(--sans); padding: 11px 18px; border-radius: 999px; cursor: pointer;
  background: transparent; color: #e9e2d6; border: 1px solid rgba(255,255,255,.4);
}
.sim-btn:hover { background: rgba(255,255,255,.1); }
.sim-btn:disabled { opacity: .45; cursor: not-allowed; }
.sim-btn-gold { background: var(--gold); color: var(--night); border-color: var(--gold); }
.sim-btn-gold:hover { background: #f3d58b; }
.sim-btn-quiet { margin-left: auto; border-color: rgba(255,255,255,.2); color: #bfb5a5; }
.sim-status { margin: 12px 0 0; font-size: .88rem; color: #bfb5a5; min-height: 1.5em; }
.sim-prose { max-width: 760px; }
.sim-prose p { color: var(--ink-soft); }
.sim-prose h3 { margin-top: 1.4em; }
@media (max-width: 600px) {
  .sim-stage { height: 52vh; min-height: 300px; }
  .sim-switch { height: 56px; }
  .sim-switch[aria-checked="true"] .sim-knob { bottom: 18px; }
  .sim-btn { flex: 1 1 auto; }
  .sim-btn-quiet { margin-left: 0; }
}
.sim-rope {
  position: relative; width: 100%; max-width: 46px; height: 46px; border-radius: 8px; cursor: pointer; padding: 0;
  background: #141210; border: 1px solid #4a4034; transition: transform .06s;
}
.sim-rope span {
  position: absolute; left: 50%; top: 4px; bottom: 8px; width: 4px; margin-left: -2px; border-radius: 2px;
  background: linear-gradient(#c9b38a 55%, #9c2b2b 55%, #9c2b2b 90%, #c9b38a 90%);
}
.sim-rope:active { transform: translateY(3px); }
.sim-rope:disabled { opacity: .45; cursor: not-allowed; }

/* Kompakti soittopöytä: rivien nimet vasemmalla, pienet säätimet */
.sim-panel { margin-top: 10px; padding: 10px 14px; }
.sim-bells { grid-template-columns: auto repeat(7, minmax(0, 1fr)); gap: 0 6px; }
.sim-bell, .sim-rows { display: grid; grid-template-rows: 22px 26px 30px 30px; align-items: center; justify-items: center; gap: 2px; min-width: 0; }
.sim-rows { justify-items: start; }
.sim-rows span { font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: #9d9384; }
.sim-bell .sim-cap { display: none; }
.sim-name { font-size: clamp(.85rem, 1.8vw, 1rem); }
.sim-switch { width: 36px; height: 20px; max-width: none; border-radius: 10px; }
.sim-switch .sim-led { display: none; }
.sim-knob { width: 14px; height: 14px; left: 3px; bottom: auto; top: 2px; margin: 0; border-radius: 50%; transition: left .15s; }
.sim-switch[aria-checked="true"] { border-color: #33ff66; box-shadow: 0 0 6px rgba(51,255,102,.5); }
.sim-switch[aria-checked="true"] .sim-knob { left: 18px; bottom: auto; }
.sim-hammer { width: 26px; max-width: 26px; box-shadow: 0 2px 0 #0e0c0a; }
.sim-rope { width: 26px; max-width: 26px; height: 28px; border-radius: 6px; }
.sim-actions { margin-top: 8px; gap: 6px; }
.sim-btn { padding: 6px 12px; font-size: .8rem; }
.sim-status { margin-top: 6px; font-size: .8rem; }
@media (max-width: 600px) {
  .sim-switch { height: 20px; }
  .sim-switch[aria-checked="true"] .sim-knob { bottom: auto; }
  .sim-bells { gap: 0 3px; }
  .sim-switch { width: 32px; }
  .sim-switch[aria-checked="true"] .sim-knob { left: 15px; }
}
@media (max-width: 600px) {
  .sim-btn { flex: 0 1 auto; padding: 6px 10px; }
  .sim-status { font-size: .75rem; }
}
.sim-tune { display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.sim-tune-btn {
  width: 16px; height: 16px; padding: 0; border-radius: 4px; cursor: pointer; line-height: 1;
  font: 600 .8rem var(--sans); color: var(--gold); background: #141210; border: 1px solid #4a4034;
}
.sim-tune-btn:hover { border-color: var(--gold); }
.sim-tune-btn:disabled { opacity: .3; cursor: not-allowed; }
@media (max-width: 600px) {
  .sim-tune { flex-direction: column; gap: 1px; }
  .sim-tune-btn { width: 22px; height: 14px; font-size: .7rem; }
  .sim-bell, .sim-rows { grid-template-rows: 50px 26px 30px 30px; }
}

.sim-rate { display: flex; align-items: center; gap: 6px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: #9d9384; }
.sim-rate input { width: 120px; accent-color: var(--gold); }
.sim-rate output { min-width: 3.4em; font-variant-numeric: tabular-nums; text-transform: none; color: var(--gold); }
@media (max-width: 600px) { .sim-rate { flex: 1 1 100%; } .sim-rate input { flex: 1; width: auto; } }
/* Koko näyttö: kuva täyttää ruudun, soittopöytä kompaktina alareunassa */
.sim-play:fullscreen { display: flex; flex-direction: column; width: 100vw; height: 100vh; background: #0e0c0a; }
.sim-play:-webkit-full-screen { display: flex; flex-direction: column; width: 100vw; height: 100vh; background: #0e0c0a; }
.sim-play:fullscreen .sim-stage { flex: 1 1 auto; height: auto; min-height: 0; border-radius: 0; box-shadow: none; }
.sim-play:-webkit-full-screen .sim-stage { flex: 1 1 auto; height: auto; min-height: 0; border-radius: 0; box-shadow: none; }
.sim-play:fullscreen .sim-panel {
  margin: 0; border-radius: 0; border-width: 1px 0 0; padding: 4px 10px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2px 14px; align-items: center;
}
.sim-play:fullscreen .sim-bells { gap: 0 4px; }
.sim-play:fullscreen .sim-bell, .sim-play:fullscreen .sim-rows { grid-template-rows: 18px 20px 24px 24px; }
.sim-play:fullscreen .sim-name { font-size: .8rem; }
.sim-play:fullscreen .sim-actions { margin: 0; gap: 4px; }
.sim-play:fullscreen .sim-btn { padding: 3px 8px; font-size: .72rem; }
.sim-play:fullscreen .sim-btn-quiet { margin-left: 0; }
.sim-play:fullscreen .sim-rate { font-size: .66rem; }
.sim-play:fullscreen .sim-rate input { width: 80px; }
.sim-play:fullscreen .sim-status { grid-column: 1 / -1; margin: 0; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Puhelimella sävelnimet oktaavinumeroineen (esim. 3 · Ges4) mahtuvat sarakkeisiinsa */
@media (max-width: 480px) { .sim-name { font-size: .72rem; letter-spacing: -.01em; } }

/* Yhteistyökumppanin nosto palveluiden perässä */
.partner {
  margin-top: 28px; display: grid; grid-template-columns: 1fr 2fr; gap: 12px 40px; align-items: start;
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--bronze);
  border-radius: var(--radius); padding: 26px 28px;
}
.partner h3 { margin: 0; }
.partner p:not(.eyebrow) { color: var(--ink-soft); margin: 0 0 10px; }
.partner p:last-child { margin-bottom: 0; }
.partner a { color: var(--bronze); }
@media (max-width: 720px) { .partner { grid-template-columns: 1fr; padding: 22px 20px; } }

/* Kielivalikko: ylätunnisteessa valikon vieressä, puhelimella valikkonapin vieressä.
   <details>-pudotusvalikko, joten toimii ilman skriptiä. */
.lang-menu { position: relative; margin-left: 20px; }
.lang-menu summary {
  list-style: none; cursor: pointer; padding: 5px 10px; border: 1px solid rgba(255,255,255,.28); border-radius: 6px;
  color: #e9e2d6; font-size: .8rem; font-weight: 600; letter-spacing: .06em; user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: " ▾"; font-size: .7rem; opacity: .8; }
.lang-menu summary:hover, .lang-menu summary:focus-visible, .lang-menu[open] summary { border-color: var(--gold); color: var(--gold); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; margin: 0; padding: 6px 0; list-style: none;
  min-width: 132px; background: var(--night); border: 1px solid rgba(232,196,106,.35); border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}
.lang-menu li a { display: block; padding: 8px 16px; color: #e9e2d6; text-decoration: none; font-size: .92rem; }
.lang-menu li a:hover, .lang-menu li a:focus-visible { background: rgba(255,255,255,.07); color: var(--gold); }
.lang-menu li a[aria-current] { color: var(--gold); font-weight: 600; }
.lang-menu-float { position: absolute; top: 14px; right: 16px; z-index: 5; margin: 0; }
.lang-menu-float summary { background: rgba(22, 19, 15, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
@media (max-width: 1020px) {
  .site-header .lang-menu { margin-left: auto; margin-right: 10px; }
}
.header-inner .nav { order: 2; }
.header-inner .lang-menu { order: 3; }
.header-inner .nav-toggle { order: 4; }
@media (max-width: 480px) {
  .brand { font-size: 1.04rem; gap: 8px; line-height: 1.1; min-width: 0; white-space: normal; }
  .brand span { min-width: 0; overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; } /* pitkä nimi (de) rivittyy kahdelle riville */
  .site-header .lang-menu, .nav-toggle { flex-shrink: 0; }
  .lang-menu summary { white-space: nowrap; }
  .site-header .lang-menu { margin-right: 4px; }
  .site-header .lang-menu summary { padding: 4px 8px; }
}
/* Saksan ja ruotsin pitkät yhdyssanat (Kirchenglockenmuseum) tavutetaan kapeilla näytöillä */
:lang(de) :is(h1, h2, h3, .door-title), :lang(sv) :is(h1, h2, h3, .door-title), :lang(et) :is(h1, h2, h3, .door-title), :lang(pl) :is(h1, h2, h3, .door-title), :lang(lt) :is(h1, h2, h3, .door-title), :lang(uk) :is(h1, h2, h3, .door-title) { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
/* Kellosimulaattorin keinunnan nopeussäädin piilotettu: kerroin on kiinteä (1,21) */
.sim-rate { display: none !important; }
/* Kielivalikon liput */
.lang-flag { display: inline-block; width: 21px; height: 14px; object-fit: cover; border-radius: 2px; vertical-align: -2px; margin-right: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.lang-menu summary .lang-flag { margin-right: 6px; }
.lang-menu li a { display: flex; align-items: center; white-space: nowrap; }

/* Etusivu-nappi: talokuvake ja teksti ylätunnisteen vasemmassa reunassa, puhelimella pelkkä kuvake */
.home-link {
  order: -1; display: inline-flex; align-items: center; gap: 7px; margin-right: 18px; padding: 6px 12px 6px 10px;
  border: 1px solid rgba(232,196,106,.5); border-radius: 999px; color: var(--gold); text-decoration: none;
  font-size: .9rem; font-weight: 600; white-space: nowrap; flex-shrink: 0;
}
.home-link:hover, .home-link:focus-visible { background: var(--bronze); border-color: var(--bronze); color: var(--night); }
.home-link svg { flex-shrink: 0; }
@media (max-width: 600px) {
  .home-link { margin-right: 10px; padding: 7px; }
  .home-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Yläpalkissa vain kellologo ilman nimeä (Etusivu-nappi hoitaa kotiin paluun); nimi jää ruudunlukijalle */
.site-header .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Kellorekisteri --- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-dark { background: var(--night); color: #fff; border: 0; cursor: pointer; }
.btn-dark:hover { background: var(--bronze); color: var(--night); }
.reg-facts { margin-top: 28px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.12); }
.reg-facts div { background: rgba(255,255,255,.05); }
.reg-facts strong { color: var(--gold); }
.reg-facts span { color: #c7bdad; }
.reg-filters { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 18px; }
.reg-search { flex: 1 1 320px; }
.reg-filters input[type="search"], .reg-filters select {
  width: 100%; font: inherit; padding: 11px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.reg-filters select { width: auto; max-width: 100%; }
.reg-filters input:focus, .reg-filters select:focus { outline: 2px solid var(--bronze); outline-offset: 1px; }
.reg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.reg-chips button {
  font: inherit; font-size: .88rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--ink-soft); cursor: pointer;
}
.reg-chips button[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: var(--gold); }
.reg-check { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink-soft); flex-basis: 100%; }
.reg-count { font-weight: 600; color: var(--ink); margin: 0 0 14px; }
.reg-list { display: grid; gap: 16px; }
.reg-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; scroll-margin-top: 84px; }
.reg-card:target { border-color: var(--bronze); box-shadow: 0 0 0 2px rgba(184,137,74,.35); }
.reg-card header { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: start; margin-bottom: 12px; }
.reg-card h3 { margin: 0; font-size: 1.5rem; }
.reg-meta { grid-column: 1; margin: 0; font-size: .9rem; color: var(--ink-soft); }
.reg-badge { grid-column: 2; grid-row: 1 / span 2; font-size: .8rem; font-weight: 600; color: var(--bronze); border: 1px solid rgba(184,137,74,.5); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.reg-table-wrap { overflow-x: auto; }
.reg-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.reg-table th, .reg-table td { text-align: left; padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.reg-table thead th { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.reg-table tbody th { font-weight: 600; white-space: nowrap; }
.reg-table .reg-note td { border-bottom: 1px solid var(--line); padding-top: 0; color: var(--ink-soft); font-size: .88rem; }
.reg-table tr:has(+ .reg-note) > * { border-bottom: 0; }
.reg-note p, .reg-church-notes p { margin: 0 0 4px; }
.reg-src { font-size: .82rem; color: #8a8072; }
.reg-church-notes { margin-top: 10px; color: var(--ink-soft); font-size: .9rem; }
.reg-empty { color: var(--ink-soft); font-style: italic; margin: 0; }
.reg-actions { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 12px 0 0; font-size: .88rem; }
.reg-actions a { color: var(--bronze); }
.reg-more { text-align: center; margin-top: 24px; }
.reg-timeline { display: flex; align-items: flex-end; gap: 3px; height: 220px; padding-bottom: 26px; position: relative; }
.reg-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.reg-bar-fill { width: 100%; background: var(--bronze); border-radius: 3px 3px 0 0; transition: background .15s; }
.reg-bar:hover .reg-bar-fill, .reg-bar:focus-visible .reg-bar-fill { background: var(--gold); }
.reg-bar-n { position: absolute; bottom: calc(100% + 2px); font-size: .7rem; color: var(--ink-soft); display: none; }
.reg-bar:hover .reg-bar-n, .reg-bar:focus-visible .reg-bar-n { display: block; bottom: auto; top: -18px; }
.reg-bar-y { position: absolute; bottom: -24px; font-size: .74rem; color: var(--ink-soft); white-space: nowrap; }
.reg-oldest { margin-top: 40px; }
.reg-oldest ol { columns: 2; column-gap: 40px; padding-left: 1.2em; color: var(--ink-soft); }
.reg-oldest li { margin-bottom: 6px; break-inside: avoid; }
.reg-oldest strong { color: var(--ink); }
.reg-abbr { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.reg-abbr dt { font-weight: 700; color: var(--bronze); }
.reg-abbr dd { margin: 0; color: var(--ink-soft); }
.reg-wishlist li { margin-bottom: 4px; }
#taydenna .checklist-plain { color: #c7bdad; }
@media (max-width: 700px) {
  .reg-oldest ol { columns: 1; }
  .reg-timeline { height: 160px; gap: 1px; }
  .reg-bar-y { font-size: .62rem; }
  .reg-card { padding: 16px; }
  .reg-filters select { width: 100%; }
}
/* Etusivulla neljä osiota (suomeksi kellorekisteri mukana) */
.doors:has(> .door:nth-child(4)) { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1200px) { .doors:has(> .door:nth-child(4)) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .doors:has(> .door:nth-child(4)) { grid-template-columns: 1fr; } }
.reg-list { grid-template-columns: minmax(0, 1fr); }
.reg-card { min-width: 0; }
/* Puhelimella kellon tiedot allekkain otsikoineen taulukon sijaan */
@media (max-width: 700px) {
  .reg-table thead { display: none; }
  .reg-table, .reg-table tbody, .reg-table tr { display: block; }
  .reg-table tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .reg-table tr:has(+ .reg-note) { border-bottom: 0; padding-bottom: 0; }
  .reg-table th, .reg-table td { display: block; border: 0 !important; padding: 1px 0; }
  .reg-table td:empty { display: none; }
  .reg-table td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-soft); font-size: .82rem; }
  .reg-table .reg-note td { padding-top: 2px; }
}
.btn[hidden] { display: none; }
/* Äänentoisto (Vantaan Musiikki -yhteistyö) */
.av-refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.av-ref { background: var(--paper-alt); border-radius: var(--radius); overflow: hidden; }
.av-ref img, .av-ref-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.av-ref > div:last-child { padding: 20px 22px; }
.av-ref h3 { margin-bottom: .3em; }
.av-ref p:not(.eyebrow) { color: var(--ink-soft); font-size: .95rem; }
.av-ref-img { display: grid; place-items: center; border: 2px dashed var(--line); border-radius: var(--radius) var(--radius) 0 0; color: var(--ink-soft); font-size: .9rem; }
.av-tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.av-tags li { font-size: .8rem; padding: 2px 10px; border-radius: 99px; background: var(--paper); color: var(--bronze); }
.av-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.av-person { margin: 0 0 20px; max-width: 240px; }
.av-person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); display: block; }
.av-person figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 8px; }
.av-photos figure, .av-vk-photos figure { margin: 0; }
.av-photos img, .av-vk-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); display: block; }
.av-photos figcaption, .av-vk-photos figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: 8px; }
.av-vk-photos { display: grid; grid-template-columns: 3fr 2fr; gap: 16px; margin-top: 48px; }
.av-vk-photos img { aspect-ratio: auto; height: 420px; }
.section-dark .av-vk-photos figcaption { color: inherit; opacity: .75; }
.av-configs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.av-config { background: var(--paper); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; border-top: 3px solid var(--gold); }
.av-config h3 { margin-bottom: .5em; }
.av-config ul { padding-left: 1.1em; color: var(--ink-soft); font-size: .95rem; flex: 1; }
.av-config li { margin-bottom: .45em; }
.av-use { margin: 8px 0 0; font-size: .9rem; color: var(--bronze); font-weight: 500; }
.av-brands { color: var(--ink-soft); max-width: 62rem; margin-bottom: 72px; }
@media (max-width: 1100px) { .av-configs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .av-refs, .av-configs { grid-template-columns: 1fr; } .av-vk-photos img { height: 300px; } }
@media (max-width: 520px) { .av-photos { grid-template-columns: 1fr; } .av-photos img { aspect-ratio: 4 / 3; } .av-vk-photos { grid-template-columns: 1fr; } .av-vk-photos img { height: auto; aspect-ratio: 4 / 3; } }
/* Etusivulla viisi osiota: 3 + 2 */
.doors:has(> .door:nth-child(5)) { grid-template-columns: repeat(6, 1fr); }
.doors:has(> .door:nth-child(5)) > .door { grid-column: span 2; }
.doors:has(> .door:nth-child(5)) > .door:nth-child(4) { grid-column: 2 / span 2; }
@media (max-width: 900px) {
  .doors:has(> .door:nth-child(5)) { grid-template-columns: 1fr; }
  .doors:has(> .door:nth-child(5)) > .door, .doors:has(> .door:nth-child(5)) > .door:nth-child(4) { grid-column: auto; }
}
/* Aikakellot: yläkuvan kellotaulu on kirjava, joten tekstin puolelle tummempi varjostus */
.hero-aikakellot .hero-img { object-position: 50% 38%; }
.hero-aikakellot .hero-shade {
  background: linear-gradient(90deg, rgba(18,14,10,.86) 0%, rgba(18,14,10,.62) 42%, rgba(18,14,10,.12) 75%),
              linear-gradient(180deg, rgba(0,0,0,.25) 0%, transparent 30%, rgba(18,14,10,.7) 100%);
}
@media (max-width: 700px) {
  .hero-aikakellot .hero-shade { background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(18,14,10,.45) 35%, rgba(18,14,10,.9) 100%); }
}
.section-dark .history p { color: #c7bdad; }
.section-dark .history strong { color: var(--gold); font-weight: 600; }
.section-dark .history h3 { font-size: 1.9rem; }

/* Etusivun kuvanavigaatio: pyöreät osiokuvat, puhelimella kaksi saraketta */
.osionav { padding: clamp(40px, 7vw, 80px) 0 clamp(48px, 8vw, 96px); }
.osionav-title { text-align: center; color: var(--gold); font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: clamp(24px, 4vw, 40px); }
.osionav ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; max-width: 1040px; }
.osionav a {
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; text-align: center;
  color: #e9e2d6; font-family: var(--serif); font-weight: 600; font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.15;
}
.osionav img {
  width: 100%; max-width: 210px; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 2px solid rgba(232, 196, 106, .35); box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  transition: transform .25s, border-color .25s;
}
.osionav a:hover img, .osionav a:focus-visible img { transform: scale(1.04); border-color: var(--gold); }
.osionav a:hover span, .osionav a:focus-visible span { color: var(--gold); }
.osionav a:focus-visible { outline: none; }
.osionav a:focus-visible img { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (min-width: 700px) { .osionav ul { grid-template-columns: repeat(3, 1fr); gap: 36px 24px; } }
@media (min-width: 1000px) { .osionav ul:has(> li:nth-child(7)) { grid-template-columns: repeat(4, 1fr); } }
:lang(de) .osionav a, :lang(lt) .osionav a, :lang(pl) .osionav a, :lang(uk) .osionav a { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
/* Etusivulla kuusi osiota: 3 + 3 */
@media (min-width: 901px) { .doors:has(> .door:nth-child(6)) > .door:nth-child(4) { grid-column: span 2; } }
/* Kellohuollon palvelulistan lopussa koko levyinen nosto Aikakellot-sivulle */
.service-wide { grid-column: 1 / -1; flex-direction: row; }
.service-wide > img { width: 40%; height: 240px; aspect-ratio: auto; object-fit: cover; object-position: 50% 35%; }
.service-wide .service-body { align-self: center; }
@media (max-width: 620px) { .service-wide { flex-direction: column; } .service-wide > img { width: 100%; height: auto; aspect-ratio: 3 / 2; } }
/* Kielivalikon painike ei saa rivittyä: muuten header-fit.js ei huomaa ahdasta yläpalkkia */
.site-header .lang-menu summary { white-space: nowrap; }
/* Logo ja valikon linkit eivät kutistu tai rivity, jotta ahdas yläpalkki vaihtuu valikkonapiksi */
.site-header .brand, .header-inner .nav a { flex-shrink: 0; }
.header-inner .nav a { white-space: nowrap; }
.header-inner .nav { gap: 21px; } /* kellohuollon kymmenen linkkiä mahtuvat vielä riville */

/* Etusivun osiokorttien pyöreät pikkukuvat oikeassa yläkulmassa */
.door { position: relative; }
.door-img {
  position: absolute; top: 16px; right: 16px; width: 76px; height: 76px; object-fit: cover; border-radius: 50%;
  border: 2px solid rgba(232, 196, 106, .5); box-shadow: 0 6px 18px rgba(0, 0, 0, .45); transition: transform .25s, border-color .25s;
}
.door:has(.door-img) > .eyebrow, .door:has(.door-img) > .door-title { padding-right: 84px; }
.door:hover .door-img, .door:focus-visible .door-img { transform: scale(1.06); border-color: var(--gold); }
@media (max-width: 900px) { .door-img { width: 64px; height: 64px; top: 14px; right: 14px; } .door:has(.door-img) > .eyebrow, .door:has(.door-img) > .door-title { padding-right: 72px; } }
/* Seitsemän osiokorttia: viimeinen rivi keskitetään */
@media (min-width: 901px) { .doors:has(> .door:nth-child(7)) > .door:nth-child(7) { grid-column: 3 / span 2; } }

/* Etusivun yläkuvan karuselli: kuvat päällekkäin, näkyvä häivytetään esiin ja zoomautuu hitaasti */
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; opacity: 0; transition: opacity 2.5s ease-in-out; }
.hero-slides img.is-on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .hero-slides img.is-on { animation: hero-zoom 9s ease-out forwards; }
}
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }
@media (max-width: 900px) { .hero-slides { position: relative; aspect-ratio: 1000 / 736; } }

/* Simulaattorin aloitusnäyttö: kirkon valinta */
.sim-choose { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(8px, 2vh, 16px); padding: 16px; background: rgba(14, 12, 10, .9); }
.sim-choose-title { margin: 0; font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 600; color: var(--gold); }
.sim-choose-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 300px)); gap: clamp(10px, 2vw, 24px); width: 100%; justify-content: center; }
.sim-choose-card { display: flex; flex-direction: column; gap: 6px; padding: 10px; border: 1px solid rgba(232, 196, 106, .4); border-radius: 12px; background: #1d1915; color: #e9e2d6; text-align: left; font: inherit; cursor: pointer; transition: transform .15s, border-color .15s; }
.sim-choose-card:hover, .sim-choose-card:focus-visible { transform: translateY(-2px); border-color: var(--gold); }
.sim-choose-card img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.sim-choose-card strong { font-family: var(--serif); font-size: 1.2rem; color: var(--gold); }
.sim-choose-card span { font-size: .85rem; line-height: 1.4; color: #bfb5a5; }
@media (max-width: 600px) {
  .sim-choose-card { padding: 6px; gap: 4px; }
  .sim-choose-card strong { font-size: 1rem; }
  .sim-choose-card span { display: none; }
}
/* Ortodoksitorni: ei keinutus- eikä köysiriviä, vain kielen kilautus */
.sim-play.ortho .sim-switch, .sim-play.ortho .sim-switch + .sim-cap, .sim-play.ortho .sim-rope, .sim-play.ortho .sim-rope + .sim-cap { display: none; }
.sim-play.ortho .sim-rows span:nth-child(2), .sim-play.ortho .sim-rows span:nth-child(4) { display: none; }
.sim-play.ortho .sim-bell, .sim-play.ortho .sim-rows { grid-template-rows: auto 30px; }
/* Sävellin: Kuossimon tapainen step-sekvensseri soittopöydän alla */
.sim-comp { margin-top: 12px; background: linear-gradient(#2a251e, #1f1b16); border: 1px solid #3a3228; border-radius: var(--radius); padding: clamp(12px, 2.5vw, 22px); color: #e9e2d6; }
.sim-comp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.sim-comp-label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #9d9384; }
.sim-comp-bells { display: flex; flex-wrap: wrap; gap: 6px; }
.sim-comp-bell { font: 600 .82rem var(--sans); padding: 7px 10px; border-radius: 8px; border: 1px solid #5a5146; background: #3a342d; color: #fff; opacity: .6; cursor: pointer; }
.sim-comp-bell.on { opacity: 1; border-color: transparent; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.sim-comp-tempo, .sim-comp-check { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: #cfc6b8; }
.sim-comp-tempo input { width: clamp(90px, 18vw, 160px); accent-color: var(--gold); }
.sim-comp-check input { accent-color: var(--gold); }
.sim-comp-grid { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 3px; max-width: 620px; margin-bottom: 12px; }
.sim-comp-cell { aspect-ratio: 1; min-width: 0; padding: 0; border-radius: 3px; border: 1px solid #4b443b; background: #2f2a24; color: #fff; font: 700 clamp(.5rem, 1.4vw, .66rem) var(--sans); cursor: pointer; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.sim-comp-cell.beat { background: #403930; }
.sim-comp-cell.head { outline: 2px solid #fff; outline-offset: -1px; }
.sim-comp-name, .sim-comp-saved { font: .9rem var(--sans); padding: 9px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: #191612; color: #e9e2d6; min-width: 0; }
.sim-comp-name { flex: 1 1 160px; }
.sim-comp-hint { margin: 0; font-size: .8rem; color: #9d9384; max-width: 62em; }
/* Matikkapähkinä: kyläläisen kysymyskupla kohtauksen alareunassa */
.sim-quiz { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 4; width: min(600px, calc(100% - 24px)); padding: 14px 16px; border-radius: 14px; background: rgba(22, 19, 15, .93); border: 1px solid rgba(232, 196, 106, .55); color: #e9e2d6; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.sim-quiz-q { margin: 0 0 10px; font-size: .95rem; line-height: 1.45; }
.sim-quiz-q strong { display: block; color: var(--gold); margin-bottom: 3px; }
.sim-quiz-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sim-quiz-row[hidden] { display: none; }
.sim-quiz-row input { flex: 1 1 160px; min-width: 0; font: .95rem var(--sans); padding: 9px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: #191612; color: #e9e2d6; }
.sim-quiz-r { margin: 8px 0 0; font-weight: 600; color: var(--gold); }
.sim-quiz-r:empty { display: none; }
@media (max-width: 600px) { .sim-quiz { padding: 10px 12px; } .sim-quiz-q { font-size: .85rem; } }
.sim-play.ortho .sim-bells { grid-template-columns: auto repeat(8, minmax(0, 1fr)); }
/* Kellokokoonpanot soittopöydän kellorivin alla */
.sim-cfg { margin: 10px 0 2px; }
.sim-cfg .sim-comp-name { flex: 1 1 140px; }
.sim-cfg .sim-btn { padding: 8px 14px; font-size: .85rem; }
/* Matikkapähkinöiden pisteet kohtauksen vasemmassa yläkulmassa */
.sim-score { position: absolute; left: 12px; top: 12px; z-index: 3; padding: 5px 12px; border-radius: 999px; background: rgba(22, 19, 15, .78); border: 1px solid rgba(232, 196, 106, .5); color: var(--gold); font: 700 .9rem var(--sans); pointer-events: auto; }
/* Kuva-arvoitukset: 3 × 3 -ruudukko ja vaihtoehdot A–F */
.sim-fig { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin: 0 0 10px; }
.sim-fig[hidden] { display: none; }
.sim-fig-grid { display: grid; grid-template-columns: repeat(3, 64px); gap: 3px; padding: 3px; background: rgba(232, 196, 106, .35); border-radius: 8px; }
.sim-fig-cell { width: 64px; height: 64px; background: #1d1913; border-radius: 4px; display: grid; place-items: center; }
.sim-fig-q { color: var(--gold); font: 700 1.8rem var(--sans); }
.sim-fig-opts { display: grid; grid-template-columns: repeat(3, auto); gap: 6px; }
.sim-fig-opt { position: relative; padding: 2px; border-radius: 6px; border: 1px solid rgba(255,255,255,.3); background: #1d1913; cursor: pointer; line-height: 0; }
.sim-fig-opt:hover:not(:disabled) { border-color: var(--gold); }
.sim-fig-opt span { position: absolute; left: 4px; top: 3px; font: 700 .7rem/1 var(--sans); color: var(--gold); }
.sim-fig-opt.no { opacity: .35; }
.sim-fig-opt.ok { border-color: #7fc77a; box-shadow: 0 0 0 2px #7fc77a; }
.sim-fig-opt:disabled { cursor: default; }
.sim-quiz-row.pic input, .sim-quiz-row.pic [type="submit"] { display: none; }
@media (max-width: 600px) { .sim-fig-grid { grid-template-columns: repeat(3, 48px); } .sim-fig-cell { width: 48px; height: 48px; } .sim-fig-cell svg { width: 46px; height: 46px; } .sim-fig-opt svg { width: 40px; height: 40px; } }
/* Sanalliset monivalinnat */
.sim-mc { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
.sim-mc-opt { line-height: 1.3; padding: 8px 10px; text-align: left; color: #e9e2d6; font: .9rem var(--sans); }
.sim-mc-opt b { color: var(--gold); margin-right: 4px; }
@media (max-width: 600px) { .sim-mc { grid-template-columns: 1fr; } .sim-mc-opt { padding: 6px 8px; font-size: .82rem; } }
/* Suorituskykymittari */
.sim-perf { position: absolute; right: 12px; top: 12px; z-index: 3; padding: 3px 9px 3px 20px; border-radius: 999px; background: rgba(22,19,15,.72); color: #e9e2d6; font: 600 .72rem var(--sans); pointer-events: auto; cursor: help; }
.sim-perf:empty { display: none; }
.sim-perf::before { content: ""; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #7fc77a; }
.sim-perf[data-load="mid"]::before { background: #e8c46a; }
.sim-perf[data-load="high"]::before { background: #e0634f; }

/* Pelikone (T): Kellopeli suurena pystykaistaleena ruudun keskellä */
.sim-arcade { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; background: rgba(4, 3, 10, .74); }
.sim-arcade[hidden] { display: none; }
.sim-arcade-cab { display: flex; flex-direction: column; height: 94vh; height: 94dvh; aspect-ratio: 1 / 2; max-width: 94vw; padding: 10px 12px 12px; box-sizing: border-box; border-radius: 16px 16px 8px 8px; background: linear-gradient(#1c1030, #0c0716 60%, #120a20); border: 2px solid #3a1f5c; box-shadow: 0 0 0 4px #0b0612, 0 0 30px rgba(255, 95, 210, .35), inset 0 0 18px rgba(95, 243, 255, .12); }
.sim-arcade-top { position: relative; flex: none; display: flex; align-items: center; justify-content: center; height: 48px; margin-bottom: 8px; border-radius: 8px; background: linear-gradient(90deg, #ff5fd2, #ffe45f, #5ff3ff); box-shadow: 0 0 16px rgba(255, 228, 95, .45); }
.sim-arcade-marquee { max-width: calc(100% - 104px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 900 clamp(16px, 3vh, 28px)/1.2 "Courier New", ui-monospace, monospace; letter-spacing: .1em; color: #12061f; text-shadow: 0 0 6px rgba(255, 255, 255, .8); }
.sim-arcade-x { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 2px solid #12061f; background: #12061f; color: #fff; font: 700 16px/1 var(--sans, sans-serif); cursor: pointer; }
.sim-arcade-x:hover, .sim-arcade-x:focus-visible { background: #fff; color: #12061f; }
.sim-arcade-screen { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: #000; border-radius: 10px; border: 6px solid #05030a; box-shadow: inset 0 0 22px rgba(0, 0, 0, .9); overflow: hidden; }
.sim-arcade-screen canvas { width: 100%; height: 100%; object-fit: contain; image-rendering: pixelated; display: block; }
.sim-arcade-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(rgba(0, 0, 0, .2) 0 1px, transparent 1px 3px); box-shadow: inset 0 0 40px rgba(95, 243, 255, .14); }
.sim-arcade-pad { flex: none; display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.sim-arcade-pad button { flex: 1; max-width: 60px; height: 46px; padding: 0; border-radius: 12px; border: 2px solid #5ff3ff; background: #14092a; color: #5ff3ff; font: 700 20px/1 sans-serif; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.sim-arcade-pad button:active { background: #5ff3ff; color: #14092a; }
/* Pelivalikko-painike ja pelin 2 (Kirkkopeli) puinen ikkuna */
.sim-arcade-menu { position: absolute; left: 7px; top: 50%; transform: translateY(-50%); height: 34px; padding: 0 9px; border-radius: 17px; border: 2px solid #12061f; background: #12061f; color: #fff; font: 700 13px/1 "Courier New", ui-monospace, monospace; cursor: pointer; }
.sim-arcade-menu:hover, .sim-arcade-menu:focus-visible { background: #fff; color: #12061f; }
.sim-arcade[data-peli="2"] .sim-arcade-cab { background: repeating-linear-gradient(92deg, rgba(0,0,0,.08) 0 3px, transparent 3px 11px), linear-gradient(#6e4826, #4a2e16 60%, #3a2412); border: 3px solid #d4a94a; box-shadow: 0 0 0 4px #2a170a, 0 10px 40px rgba(0,0,0,.7), inset 0 0 22px rgba(0,0,0,.45); border-radius: 46px 46px 8px 8px; }
.sim-arcade[data-peli="2"] .sim-arcade-top { background: linear-gradient(#5a3a1e, #3a2412); border: 2px solid #d4a94a; box-shadow: inset 0 0 10px rgba(0,0,0,.5); border-radius: 36px 36px 6px 6px; }
.sim-arcade[data-peli="2"] .sim-arcade-marquee { font-family: Georgia, "Times New Roman", serif; color: #f0cf72; text-shadow: 0 2px 0 #1a0e05; letter-spacing: .08em; }
.sim-arcade[data-peli="2"] .sim-arcade-x, .sim-arcade[data-peli="2"] .sim-arcade-menu { background: #2a170a; border-color: #d4a94a; color: #f0cf72; }
.sim-arcade[data-peli="2"] .sim-arcade-screen { border: 8px solid #2a170a; box-shadow: inset 0 0 0 2px #d4a94a, inset 0 0 22px rgba(0,0,0,.9); }
.sim-arcade[data-peli="2"] .sim-arcade-screen::after { background: none; box-shadow: inset 0 0 30px rgba(0,0,0,.5); }
.sim-arcade[data-peli="2"] .sim-arcade-pad button { border-radius: 50%; max-width: 50px; height: 50px; border-color: #d4a94a; color: #f0cf72; background: radial-gradient(circle at 35% 30%, #8a5a2e, #4a2e16 70%); box-shadow: 0 3px 0 #1a0e05; }
.sim-arcade[data-peli="2"] .sim-arcade-pad button:active { transform: translateY(2px); box-shadow: 0 1px 0 #1a0e05; background: #d4a94a; color: #2a170a; }
/* Peli 3 (Kellojahti): 4:3-kuva, ikkuna leveänä */
.sim-arcade[data-peli="3"] .sim-arcade-cab { aspect-ratio: auto; height: auto; width: min(94vw, calc((94vh - 140px) * 4 / 3 + 28px)); width: min(94vw, calc((94dvh - 140px) * 4 / 3 + 28px)); }
.sim-arcade[data-peli="3"] .sim-arcade-screen { flex: none; aspect-ratio: 4 / 3; }
.sim-arcade[data-peli="3"] .sim-arcade-top { background: linear-gradient(90deg, #5aa8e8, #ffe45f, #4caf50); }
/* Kuvanauhan muunnelmat (urut.html): pystykuvat, neljä saraketta, osion lopussa */
.photo-band.tall img { aspect-ratio: 3 / 4; }
.photo-band.band-end { margin: 48px 0 0; }
.photo-band.four { grid-template-columns: repeat(4, 1fr); margin-bottom: 40px; }
.section-dark .photo-band figcaption { color: #bfb5a5; }
@media (max-width: 900px) { .photo-band.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .photo-band.tall img { aspect-ratio: 4 / 5; } }
@media (min-width: 721px) { #positiivit .portrait img { height: 100%; } } /* kuva täyttää tekstin korkuisen kehyksen */
/* Yhdeksän osiokorttia (Kuossimo omana korttinaan): tasan 3 + 3 + 3 */
@media (min-width: 901px) { .doors:has(> .door:nth-child(9)) > .door:nth-child(7) { grid-column: span 2; } }
