: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%; 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: 28px; 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: 820px) {
  .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); }
}

/* 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; }
}
