/* =========================================================
   PS Laser Oy — design system
   Vaalea teollinen ilme + yhtenäinen syaani-korostus
   ========================================================= */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+2020, U+2113;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #F7F2EC;
  --bg-raised: #FFFDFB;
  --surface: #FFFDFB;
  --surface-2: #F0E8DE;
  --border: rgba(30, 20, 12, 0.13);
  --border-strong: rgba(30, 20, 12, 0.24);
  --text: #1A1410;
  --text-dim: #4E463F;
  --text-mute: #7A7169;
  --accent: #C1683A;
  --accent-bright: #E8935E;
  --accent-2: #A855F7;
  --spectrum: linear-gradient(90deg, #22D3EE 0%, #A855F7 45%, #F0466E 75%, #F59E0B 100%);

  --font-head: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace;

  --container: 1280px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --gutter: clamp(20px, 5vw, 64px);

  --shadow-lg: 0 24px 50px -20px rgba(16,21,28,0.18);
  --shadow-sm: 0 8px 22px -12px rgba(16,21,28,0.14);

  --ease: cubic-bezier(.16,.84,.44,1);
  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
svg[stroke-width] { stroke: currentColor; width: 1em; height: 1em; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
p { color: var(--text-dim); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 1000;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ---------- Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(56px, 9vw, 128px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 80px); }
.section-head {
  max-width: 680px;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::before { display: none; }
h2.h-lg { font-size: clamp(28px, 4vw, 42px); }
h3.h-md { font-size: clamp(20px, 2.4vw, 26px); }
.lede { font-size: clamp(16px, 1.6vw, 18.5px); color: var(--text-dim); max-width: 60ch; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger.is-visible > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { box-shadow: 0 14px 28px -12px rgba(16,21,28,.3); }
.btn-ghost {
  background: rgba(14,20,28,0.04);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(14,20,28,0.07); border-color: rgba(14,20,28,.28); }
.btn-spectrum {
  position: relative;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.btn-spectrum:hover { box-shadow: 0 16px 30px -14px rgba(14,124,147,.5); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding-block: 18px;
  background: rgba(246,247,249,0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background .3s var(--ease), padding .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,0.92);
  box-shadow: var(--shadow-sm);
  padding-block: 12px;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand-sub { font-size: 10.5px; color: var(--text-mute); letter-spacing: .04em; }
@media (max-width: 560px) { .brand-sub { display: none; } }

.nav-desktop { display: none; }
@media (min-width: 900px) { .nav-desktop { display: flex; align-items: center; gap: 4px; } }
.nav-desktop a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 9px 14px;
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-desktop a:hover { color: var(--text); background: rgba(14,20,28,0.05); }
.nav-desktop a[aria-current="page"] { color: var(--text); background: rgba(14,20,28,0.07); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn-ghost { display: none; }
@media (min-width: 900px) { .header-actions .btn-ghost { display: inline-flex; } }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: rgba(14,20,28,0.04);
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 18px; height: 18px; }

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(255,255,255,0.99);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  padding: 20px var(--gutter) 40px;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.nav-mobile.is-open { opacity: 1; transform: none; pointer-events: auto; }
.nav-mobile-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.nav-mobile-close { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-strong); display: inline-flex; align-items: center; justify-content: center; }
.nav-mobile-close svg { width: 18px; height: 18px; }
.nav-mobile ul { display: flex; flex-direction: column; gap: 4px; }
.nav-mobile a {
  display: block;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 600;
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.nav-mobile-footer { margin-top: auto; padding-top: 32px; display: flex; flex-direction: column; gap: 14px; }
.nav-mobile-footer a { color: var(--text-dim); font-size: 15px; }
.nav-mobile-footer .btn { align-self: flex-start; }
body.nav-locked { overflow: hidden; }

/* ---------- Hero (dark photo band — scoped colors) ---------- */
.hero {
  --text: #F2F4F7;
  --text-dim: #D3D8DF;
  --text-mute: #A3ACB8;
  --border-strong: rgba(255,255,255,0.22);
  --accent: var(--accent-bright);
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-top: 140px;
  padding-bottom: clamp(48px, 8vw, 96px);
  overflow: hidden;
  isolation: isolate;
  color: var(--text);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-media::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,14,20,.48) 0%, rgba(10,14,20,.38) 32%, rgba(10,14,20,.66) 78%, rgba(10,14,20,.76) 100%),
    linear-gradient(100deg, rgba(10,14,20,.68) 0%, rgba(10,14,20,.1) 55%);
}
.hero-content { max-width: 760px; }
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255,255,255,.1);
  border: 1px solid var(--border-strong);
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.hero h1 {
  font-size: clamp(34px, 6vw, 62px);
  margin-bottom: 22px;
  text-wrap: balance;
  color: var(--text);
}
.hero h1 .grad {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lede { font-size: clamp(16.5px, 2vw, 19.5px); color: var(--text-dim); max-width: 56ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-actions .btn-ghost { background: rgba(255,255,255,.1); color: var(--text); border-color: var(--border-strong); }
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,.16); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px 40px; }
.hero-meta-item { display: flex; flex-direction: column; gap: 2px; }
.hero-meta-num { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--text); }
.hero-meta-label { font-size: 12.5px; color: var(--text-mute); }
.hero-scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 36px;
  display: none;
  align-items: center;
  gap: 10px;
  color: var(--text-mute);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: .08em;
}
@media (min-width: 900px) { .hero-scroll { display: inline-flex; } }
.hero-scroll-line { width: 1px; height: 34px; background: linear-gradient(180deg, var(--text-mute), transparent); }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding-top: 150px;
  padding-bottom: clamp(40px, 7vw, 72px);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(30px, 5vw, 48px); max-width: 760px; }
.page-hero .lede { margin-top: 18px; }
.page-hero-media {
  margin-top: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 21/8;
}
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .page-hero-media { aspect-ratio: 4/3; } }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(14,20,28,0.045);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  position: relative;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--accent); }
.card h3 { font-size: 18.5px; margin-bottom: 10px; }
.card p { font-size: 14.5px; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; font-size: 13.5px; font-weight: 600; color: var(--text);
}
.card-link svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.card:hover .card-link svg { transform: translateX(3px); }

/* Service cards number badge */
.svc-card { position: relative; }
.svc-card .idx {
  position: absolute; top: 24px; right: 26px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-mute);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-item {
  padding: 32px var(--gutter);
  border-left: 1px solid var(--border);
  text-align: center;
}
.stats-item:first-child { border-left: none; }
.stats-num { font-family: var(--font-head); font-size: clamp(24px, 3vw, 38px); font-weight: 700; }
.stats-num .grad { background: var(--accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-label { font-size: 13px; color: var(--text-mute); margin-top: 6px; }
@media (max-width: 820px) { .stats { grid-template-columns: repeat(2, 1fr); } .stats-item:nth-child(2n+1) { border-left: none; } .stats-item:nth-child(n+3) { border-top: 1px solid var(--border); } }

/* ---------- Materials chips ---------- */
.chip-cloud { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: border-color .2s, color .2s, background .2s;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.chip .sw { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; background: var(--accent); }

/* ---------- Spectrum feature (Cajo) — dark accent panel ---------- */
.feature-spectrum {
  --text: #F2F4F7;
  --text-dim: #D3D8DF;
  --accent: var(--accent-bright);
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  padding: clamp(32px, 6vw, 64px);
  background: radial-gradient(120% 140% at 0% 0%, #17131C 0%, #101013 45%, #0C0D10 100%);
  color: var(--text);
}
.feature-spectrum::before {
  content: '';
  position: absolute; inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
}
.feature-spectrum::after {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  right: -180px; top: -220px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  opacity: .18;
  filter: blur(90px);
  border-radius: 50%;
  pointer-events: none;
}
.feature-spectrum-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; position: relative; }
@media (max-width: 900px) { .feature-spectrum-grid { grid-template-columns: 1fr; } }
.feature-spectrum h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 18px; color: var(--text); }
.feature-spectrum .lede { margin-bottom: 26px; color: var(--text-dim); }
.feature-list { display: flex; flex-direction: column; gap: 16px; }
.feature-list li { display: flex; gap: 14px; font-size: 15px; color: var(--text-dim); }
.feature-list .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
  background: var(--accent);
  width: 24px; height: 24px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-weight: 700;
}
.feature-spectrum .feature-list .num { background: var(--accent); color: #06222A; }
.spectrum-visual {
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
  background: #0B0C0E;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spectrum-visual .bars { display: flex; align-items: flex-end; gap: 8px; height: 55%; }
.spectrum-visual .bar { width: 14px; border-radius: 5px 5px 0 0; background: var(--accent); animation: barPulse 2.6s var(--ease) infinite; }
.spectrum-visual .bar:nth-child(1){height:35%;animation-delay:0s;}
.spectrum-visual .bar:nth-child(2){height:65%;animation-delay:.15s;}
.spectrum-visual .bar:nth-child(3){height:45%;animation-delay:.3s;}
.spectrum-visual .bar:nth-child(4){height:85%;animation-delay:.45s;}
.spectrum-visual .bar:nth-child(5){height:55%;animation-delay:.6s;}
.spectrum-visual .bar:nth-child(6){height:70%;animation-delay:.75s;}
.spectrum-visual .bar:nth-child(7){height:40%;animation-delay:.9s;}
@keyframes barPulse { 0%,100%{ transform: scaleY(1); opacity:.85;} 50%{ transform: scaleY(1.12); opacity:1;} }
@media (prefers-reduced-motion: reduce) { .spectrum-visual .bar { animation: none; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery.gallery-teaser { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6,7,8,.82) 100%);
  opacity: 0;
  transition: opacity .3s;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item .cap {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  font-size: 13px; font-weight: 600; color: #F2F4F7;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.gallery-item:hover .cap { opacity: 1; transform: none; }
@media (max-width: 980px) { .gallery, .gallery.gallery-teaser { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery, .gallery.gallery-teaser { grid-template-columns: 1fr 1fr; gap: 10px; } }

.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: all .2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.filter-btn.is-active { color: #fff; background: var(--text); border-color: var(--text); }

/* Lightbox — self-contained dark modal regardless of site theme */
.lightbox {
  --text-dim: #C7CCD4;
  position: fixed; inset: 0; z-index: 500;
  background: rgba(5,6,7,.97);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 84vh; border-radius: var(--radius-sm); object-fit: contain; box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6); }
.lightbox-cap { position: absolute; left: 0; right: 0; bottom: 28px; text-align: center; font-size: 14px; color: var(--text-dim); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,.08);
  color: #F2F4F7;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .lightbox-prev, .lightbox-next { width: 40px; height: 40px; } }

/* ---------- Reference logos ---------- */
.ref-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.ref-cell {
  background: #fff;
  padding: 22px 24px;
  display: flex; align-items: center; justify-content: center;
  min-height: 108px;
}
.ref-cell img {
  max-width: 100%;
  max-height: 46px;
  width: auto;
  transition: transform .3s var(--ease);
}
.ref-cell:hover img { transform: scale(1.05); }
.ref-cell span { font-family: var(--font-head); font-weight: 700; font-size: 17px; text-align: center; letter-spacing: -.01em; color: #0A0B0D; }
@media (max-width: 900px) { .ref-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }

.ref-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .ref-cards { grid-template-columns: 1fr; } }
.ref-card { padding: 30px; }
.ref-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ref-card-name { font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.ref-card-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-mute); border: 1px solid var(--border); padding: 5px 10px; border-radius: 999px;
}
.ref-card p { font-size: 14.5px; }

/* highlight callout */
.callout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 36px);
  background: linear-gradient(120deg, rgba(14,124,147,.08), rgba(14,124,147,.02));
}
.callout img { border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; }
.callout-body .eyebrow { margin-bottom: 10px; }
.callout-body h3 { font-size: 21px; margin-bottom: 10px; }
.callout-body p { font-size: 14.5px; }
@media (max-width: 700px) { .callout { grid-template-columns: 1fr; } .callout img { aspect-ratio: 16/9; width: 100%; } }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.process-step { background: var(--bg-raised); padding: 30px 26px; position: relative; }
.process-step .num { font-family: var(--font-mono); font-size: 13px; color: var(--text-mute); margin-bottom: 22px; display: block; }
.process-step h3 { font-size: 17px; margin-bottom: 8px; }
.process-step p { font-size: 13.5px; }
.process-step::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--accent); opacity: 0; transition: opacity .3s;
}
.process-step:hover::before { opacity: 1; }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 16.5px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border-strong); position: relative; flex-shrink: 0; }
.faq-item .plus::before, .faq-item .plus::after { content: ''; position: absolute; background: var(--text-dim); transition: transform .25s var(--ease); }
.faq-item .plus::before { left: 7px; right: 7px; top: 12px; height: 1.5px; }
.faq-item .plus::after { top: 7px; bottom: 7px; left: 12px; width: 1.5px; }
.faq-item[open] .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-item p { padding: 0 34px 24px 4px; font-size: 14.5px; }

/* ---------- Contact block ---------- */
.contact-card { display: flex; flex-direction: column; gap: 22px; }
.contact-line { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s; height: 100%; }
.contact-line:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.contact-line .ic { width: 44px; height: 44px; border-radius: 12px; background: rgba(14,20,28,0.045); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-line .ic svg { width: 20px; height: 20px; stroke: var(--accent); }
.contact-line .txt { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.contact-line .lbl { display: block; font-size: 12px; color: var(--text-mute); }
.contact-line .val { display: block; font-family: var(--font-head); font-weight: 600; font-size: 16.5px; line-height: 1.3; }

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-raised);
  box-shadow: var(--shadow-sm);
}
.cta-band::before {
  content: '';
  position: absolute; left: 50%; top: -60%;
  width: 900px; height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--accent), transparent 70%);
  opacity: .08; filter: blur(120px);
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(24px, 3.6vw, 38px); margin-bottom: 14px; }
.cta-band .lede { margin-inline: auto; margin-bottom: 30px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 56px 32px; background: var(--bg-raised); }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; max-width: 32ch; }
.footer-col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 16px; font-weight: 600; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14.5px; color: var(--text-dim); transition: color .2s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-mute); }
.footer-bottom-links { display: flex; gap: 18px; }

/* ---------- Materials table (palvelut) ---------- */
.mat-table { width: 100%; border-collapse: collapse; }
.mat-table th, .mat-table td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.mat-table th { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-mute); font-weight: 600; }
.mat-table td:first-child { font-weight: 600; font-family: var(--font-head); }
.mat-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.mat-table-wrap .mat-table { min-width: 640px; }
.mat-table-wrap th:first-child, .mat-table-wrap td:first-child { padding-left: 22px; }

/* ---------- Values / timeline (yritys) ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--border-strong); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -34px; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg); }
.timeline-year { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-bottom: 6px; display: block; }
.timeline-item h3 { font-size: 18.5px; margin-bottom: 8px; }
.timeline-item p { font-size: 14.5px; max-width: 62ch; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .value-grid { grid-template-columns: 1fr; } }

/* ---------- Breadcrumb-ish back link ---------- */
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-mute); margin-bottom: 20px; }
.back-link svg { width: 14px; height: 14px; }
.back-link:hover { color: var(--text); }

/* utility */
.mt-lg { margin-top: clamp(32px, 5vw, 56px); }
.text-center { text-align: center; }
.hide-sm { display: block; }
@media (max-width: 620px) { .hide-sm { display: none; } }

/* =========================================================
   2026 visual direction — industrial glow
   A darker, more tactile layer over the existing component system.
   The content and routes stay the same; the composition does the
   visual work through contrast, light and editorial spacing.
   ========================================================= */
:root {
  --bg: #0D1013;
  --bg-raised: #14181C;
  --surface: #171C21;
  --surface-2: #20272E;
  --border: rgba(255,255,255,0.12);
  --border-strong: rgba(255,255,255,0.25);
  --text: #F4F0E8;
  --text-dim: #C6C5BF;
  --text-mute: #8B9299;
  --accent: #FF8A3D;
  --accent-bright: #FFB15A;
  --accent-2: #79DDE2;
  --spectrum: linear-gradient(105deg, #FF7A38 0%, #FFB74D 100%);
  --shadow-lg: 0 30px 80px -28px rgba(0,0,0,0.72);
  --shadow-sm: 0 14px 32px -18px rgba(0,0,0,0.62);
}

body { background: var(--bg); color: var(--text); }
p { color: var(--text-dim); }

/* Header: a quiet control bar against the dark canvas. */
.site-header {
  background: rgba(13,16,19,0.76);
  border-bottom-color: rgba(255,255,255,0.10);
}
.site-header.is-scrolled {
  background: rgba(13,16,19,0.94);
  box-shadow: 0 12px 40px -22px rgba(0,0,0,0.8);
}
.brand-name { color: var(--text); }
.brand-sub { color: var(--text-mute); }
.nav-desktop a { color: var(--text-dim); }
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] { color: var(--text); background: rgba(255,255,255,0.09); }
.btn-ghost {
  background: rgba(255,255,255,0.055);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: rgba(255,255,255,0.11); border-color: rgba(255,255,255,0.38); }
.btn-spectrum { color: #17110D; }
.nav-toggle,
.nav-mobile-close { background: rgba(255,255,255,0.06); border-color: var(--border-strong); }
.nav-mobile { background: rgba(13,16,19,0.985); }
.nav-mobile a { color: var(--text); border-bottom-color: var(--border); }
.nav-mobile-footer a { color: var(--text-dim); }

/* Hero: the workshop image becomes a lit object instead of a flat backdrop. */
.hero {
  min-height: min(920px, 100svh);
  align-items: center;
  padding-top: 132px;
  padding-bottom: clamp(54px, 7vw, 86px);
  background:
    radial-gradient(circle at 22% 68%, rgba(255,138,61,0.11), transparent 30%),
    #0D1013;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}
.hero::after {
  content: '';
  position: absolute;
  width: min(36vw, 520px);
  height: min(36vw, 520px);
  right: 8%;
  bottom: 10%;
  z-index: -1;
  pointer-events: none;
  border: 1px solid rgba(255,177,90,0.26);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(255,177,90,0.025), 0 0 100px rgba(255,138,61,0.14);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-content { max-width: 650px; padding-block: 24px; }
.hero-media {
  left: auto;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(58vw, 900px);
  border-left: 1px solid rgba(255,255,255,0.16);
  clip-path: polygon(11% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-media img {
  object-position: center;
  filter: saturate(0.88) contrast(1.12) brightness(0.78);
  transform: scale(1.04);
}
.hero-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 47%, rgba(255,177,90,0.7) 47.15%, transparent 47.35%),
    linear-gradient(90deg, transparent 0 72%, rgba(121,221,226,0.38) 72.15%, transparent 72.35%);
  mix-blend-mode: screen;
  opacity: 0.65;
}
.hero-media::after {
  background:
    linear-gradient(90deg, #0D1013 0%, rgba(13,16,19,0.92) 9%, rgba(13,16,19,0.32) 42%, rgba(13,16,19,0.10) 100%),
    linear-gradient(180deg, rgba(13,16,19,0.22), rgba(13,16,19,0.58));
}
.hero-kicker {
  background: rgba(255,255,255,0.065);
  border-color: rgba(255,255,255,0.24);
  box-shadow: 0 0 0 1px rgba(255,138,61,0.08) inset;
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 0.99;
  letter-spacing: -0.055em;
  margin-bottom: 26px;
}
.hero h1 .grad {
  background: linear-gradient(105deg, #FF8A3D 0%, #FFD06B 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-lede { max-width: 52ch; }
.hero-actions { margin-bottom: 36px; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.22);
  padding-top: 20px;
}
.hero-meta-item {
  padding-right: 16px;
  margin-right: 16px;
  border-right: 1px solid rgba(255,255,255,0.13);
}
.hero-meta-item:last-child { border-right: 0; margin-right: 0; }
.hero-meta-num { color: var(--text); }
.hero-scroll { color: #AAB1B8; }

/* Subpage opening: oversized type and a faint registration-grid motif. */
.page-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 8%, rgba(255,138,61,0.13), transparent 24%),
    linear-gradient(180deg, #111519 0%, #0D1013 100%);
  border-bottom-color: var(--border);
}
.page-hero::before {
  content: 'PS / LASER';
  position: absolute;
  right: clamp(20px, 8vw, 120px);
  top: 118px;
  color: rgba(255,255,255,0.045);
  font-family: var(--font-head);
  font-size: clamp(60px, 12vw, 170px);
  font-weight: 700;
  letter-spacing: -0.08em;
  white-space: nowrap;
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(40px, 6vw, 76px); letter-spacing: -0.055em; max-width: 900px; }
.page-hero .lede { max-width: 62ch; color: var(--text-dim); }
.page-hero-media { border-color: rgba(255,255,255,0.18); box-shadow: 0 24px 70px -34px rgba(0,0,0,0.8); }

/* Content surfaces: more depth, fewer generic white cards. */
.card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.018));
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 72%);
  opacity: 0.7;
}
.card:hover { border-color: rgba(255,177,90,0.46); box-shadow: var(--shadow-lg); transform: translateY(-6px); }
.card-icon { background: rgba(255,138,61,0.10); border-color: rgba(255,177,90,0.22); }
.card-icon svg { stroke: var(--accent-bright); }
.card-link { color: var(--text); }
.stats {
  background: linear-gradient(105deg, rgba(255,138,61,0.08), rgba(255,255,255,0.025));
  border-color: var(--border);
  overflow: hidden;
}
.stats-item { border-left-color: var(--border); }
.stats-num .grad { background: linear-gradient(105deg, #FF8A3D, #FFD06B); -webkit-background-clip: text; background-clip: text; }
.chip { background: rgba(255,255,255,0.035); border-color: var(--border); color: var(--text-dim); }
.chip:hover { color: var(--text); border-color: rgba(255,177,90,0.44); background: rgba(255,138,61,0.08); }
.chip .sw { background: var(--accent); box-shadow: 0 0 12px rgba(255,138,61,0.6); }
.filter-btn.is-active { color: #17110D; background: var(--accent); border-color: var(--accent); }

/* Editorial image rhythm on the homepage. */
@media (min-width: 981px) {
  .gallery.gallery-teaser { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 158px; }
  .gallery.gallery-teaser .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .gallery.gallery-teaser .gallery-item:nth-child(2) { grid-row: span 2; }
  .gallery.gallery-teaser .gallery-item:nth-child(6) { grid-column: span 2; }
}
.gallery-item { border-color: rgba(255,255,255,0.14); box-shadow: var(--shadow-sm); }
.gallery-item::after { opacity: 0.2; }
.gallery-item:hover::after { opacity: 1; }
.gallery-item .cap { text-shadow: 0 2px 14px rgba(0,0,0,0.7); }

.ref-grid { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.16); }
.ref-cell { background: #EFE9DE; }
.callout {
  border-color: rgba(255,177,90,0.28);
  background: linear-gradient(120deg, rgba(255,138,61,0.14), rgba(255,255,255,0.035));
}
.process { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.14); }
.process-step { background: var(--surface); }
.process-step::before { opacity: 0.45; background: linear-gradient(90deg, var(--accent), transparent); }
.faq-item { border-bottom-color: var(--border); }
.faq-item .plus { border-color: var(--border-strong); }
.contact-line { background: linear-gradient(145deg, rgba(255,255,255,0.065), rgba(255,255,255,0.018)); border-color: var(--border); }
.contact-line .ic { background: rgba(255,138,61,0.10); }
.contact-line .ic svg { stroke: var(--accent-bright); }
.cta-band {
  border-color: rgba(255,177,90,0.25);
  background: radial-gradient(circle at 50% 0%, rgba(255,138,61,0.18), transparent 55%), #15181C;
  box-shadow: var(--shadow-lg);
}
.cta-band::before { background: radial-gradient(circle, var(--accent), transparent 70%); opacity: 0.12; }
.site-footer { background: #090B0D; border-top-color: rgba(255,255,255,0.10); }
.footer-bottom { border-top-color: rgba(255,255,255,0.12); }

@media (max-width: 900px) {
  .hero {
    min-height: 860px;
    align-items: flex-end;
    padding-top: clamp(300px, 36vh, 360px);
    padding-bottom: 52px;
  }
  .hero-media {
    left: 0;
    right: 0;
    width: 100%;
    height: 58%;
    bottom: auto;
    border-left: 0;
    clip-path: none;
  }
  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(13,16,19,0.04) 0%, rgba(13,16,19,0.18) 42%, rgba(13,16,19,0.94) 100%),
      linear-gradient(90deg, rgba(13,16,19,0.36), transparent 70%);
  }
  .hero-media::before { opacity: 0.45; }
  .hero-content { max-width: none; padding-block: 0; }
  .hero h1 { font-size: clamp(40px, 10.5vw, 64px); }
  .hero-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .hero-meta-item:nth-child(2) { border-right: 0; margin-right: 0; }
  .hero-meta-item:nth-child(3), .hero-meta-item:nth-child(4) { padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.13); }
  .hero-meta-item:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.13); }
}

@media (max-width: 520px) {
  .page-hero::before { top: 120px; right: -12px; font-size: 62px; }
  .hero h1 { letter-spacing: -0.045em; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-meta-num { font-size: 23px; }
  .hero-meta-label { font-size: 11.5px; }
}
