/* =========================================================
   SJ Custom Lab — Theme CSS
   ========================================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #0a0b0d;
  --ink-2: #101216;
  --ink-3: #171a1f;
  --paper: #ededec;
  --paper-mute: #8a8d92;
  --paper-dim: #5c5f64;

  --gold-light: #f4d98a;
  --gold-mid: #d4a437;
  --gold-deep: #8b6914;
  --gold-glow: rgba(212, 164, 55, 0.5);

  --gold-grad: linear-gradient(135deg, #f4d98a 0%, #d4a437 50%, #8b6914 100%);
  --gold-grad-bright: linear-gradient(135deg, #fde6a6 0%, #e6b94a 50%, #a07d1f 100%);
  --gold-grad-horizontal: linear-gradient(90deg, #f4d98a 0%, #d4a437 100%);

  --rule: rgba(237, 237, 236, 0.08);
  --rule-2: rgba(237, 237, 236, 0.18);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Geist', -apple-system, sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  cursor: none;
  letter-spacing: -0.005em;
}

::selection { background: var(--gold-mid); color: var(--ink); }

img { max-width: 100%; display: block; }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Italic text + gradient clip fix */
.section-h em,
.feature-text h2 em,
.gallery-head h2 em,
.contact-info h2 em,
.intro-text p.lede em,
.service h3 em,
.pullquote-text em,
.hero h1 .gold-text em,
.hero h1 .gold-text,
.page-h em,
.price-block h3 em,
.cta-block h2 em,
.prose-aside h3 em,
.pricing-head h2 em,
.form-wrap h3 em,
.not-found-h em {
  display: inline-block;
  padding-right: 0.12em;
  margin-right: -0.04em;
}

/* CURSOR */
.cursor-dot {
  position: fixed;
  width: 5px; height: 5px;
  background: var(--gold-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2147483647; /* aina päällimmäisenä — myös modaalin (999999) yllä */
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px var(--gold-glow);
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(212, 164, 55, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2147483646;
  transform: translate(-50%, -50%);
  transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
}
.cursor-ring.hover {
  width: 70px; height: 70px;
  border-color: var(--gold-light);
  background: rgba(212, 164, 55, 0.08);
}

/* LOADER */
.loader {
  position: fixed; inset: 0;
  background: var(--ink);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2.5rem;
}
.loader-logo {
  width: 140px;
  height: 80px;
  /* PNG-logo CSS mask -tekniikalla, täytetty kultaisella gradientilla */
  -webkit-mask: url('../images/logo-sj.png') center/contain no-repeat;
  mask: url('../images/logo-sj.png') center/contain no-repeat;
  background: var(--gold-grad);
  filter: drop-shadow(0 0 18px var(--gold-glow));
  opacity: 0;
  transform: scale(0.92);
  animation: loaderLogoIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes loaderLogoIn { to { opacity: 1; transform: scale(1); } }
.loader-bar {
  width: 160px;
  height: 1px;
  background: var(--rule);
  position: relative;
  overflow: hidden;
}
.loader-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-grad-horizontal);
  transform: translateX(-100%);
  animation: loadFill 1.6s ease 0.2s forwards;
}
@keyframes loadFill { to { transform: translateX(0); } }
.loader.done {
  animation: loaderOut 0.8s ease 0.3s forwards;
}
@keyframes loaderOut { to { opacity: 0; visibility: hidden; } }

/* NAV */
nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 5vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}
nav.top.scrolled {
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(20px);
  padding: 0.85rem 5vw;
  border-bottom: 1px solid var(--rule);
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
}
.nav-logo-mark {
  width: 42px;
  height: 24px;
  background: url('../images/logo-sj.png') center/contain no-repeat;
  filter: brightness(0) invert(1);
}
.nav-logo-text {
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
  line-height: 1;
}
.nav-logo-text small {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-mute);
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-family: 'Geist Mono', monospace;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  color: var(--paper);
  text-decoration: none;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  position: relative;
  cursor: none;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold-grad-horizontal);
  transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active {
  background: var(--gold-grad-horizontal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-cta {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold-grad);
  padding: 0.85rem 1.5rem;
  border: none;
  cursor: none;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  display: inline-block;
  font-weight: 600;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 164, 55, 0.35);
  filter: brightness(1.08);
}
/* HAMBURGER */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 201;
  padding: 0;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--paper);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
  transform-origin: center;
}
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* MOBILE NAV OVERLAY */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(6rem + env(safe-area-inset-top)) 8vw calc(4rem + env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.35s;
}
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav-links a {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(36px, 10vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--paper);
  text-decoration: none;
  line-height: 1.15;
  border-bottom: 1px solid var(--rule);
  padding: 0.5rem 0;
  transition: color 0.25s ease;
}
.mobile-nav-links a:first-child { border-top: 1px solid var(--rule); }
.mobile-nav-links a:hover,
.mobile-nav-links a:active {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mobile-nav-cta {
  display: inline-block;
  align-self: flex-start;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold-grad);
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: 600;
}
.mobile-nav-contact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.mobile-nav-contact a {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--paper-mute);
  text-decoration: none;
  transition: color 0.25s ease;
}
.mobile-nav-contact a:hover { color: var(--gold-light); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  nav.top {
    position: relative;
    padding: 1rem 5vw;
    background: rgba(10, 11, 13, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--rule);
  }
  nav.top.scrolled { padding: 1rem 5vw; }
  .nav-burger { display: flex; }
}

/* SECTION HELPERS */
section { position: relative; z-index: 2; background: var(--ink); }
.section-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-weight: 500;
}
.section-tag .num { color: var(--paper-mute); }
.section-tag .text {
  background: var(--gold-grad-horizontal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}
.section-tag .dash {
  width: 30px; height: 1px;
  background: var(--rule-2);
}
.section-h {
  font-family: 'Clash Display', sans-serif;
  font-weight: 500;
  font-size: clamp(42px, 5.8vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: 4rem;
}
.section-h em {
  font-style: italic;
  font-weight: 600;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* BUTTONS */
.btn-primary {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold-grad);
  border: none;
  padding: 1.1rem 2.5rem;
  cursor: none;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-grad-bright);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(212, 164, 55, 0.4);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary svg { width: 14px; height: 14px; transition: transform 0.3s ease; }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--rule-2);
  padding: 1.1rem 2.5rem;
  cursor: none;
  text-decoration: none;
  transition: border-color 0.3s ease, color 0.3s ease;
  font-weight: 500;
}
.btn-ghost:hover {
  border-color: var(--gold-mid);
  color: var(--gold-light);
}

/* PAGE HERO (alasivut) */
.page-hero {
  position: relative;
  padding: 14rem 5vw 8rem;
  background: var(--ink);
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,11,13,0.5) 0%, var(--ink) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
}
.page-hero .breadcrumb {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-bottom: 2rem;
}
.page-hero .breadcrumb a {
  color: var(--paper-mute);
  text-decoration: none;
  transition: color 0.3s ease;
}
.page-hero .breadcrumb a:hover { color: var(--gold-light); }
.page-hero .breadcrumb .sep { margin: 0 0.5rem; opacity: 0.5; }
.page-hero .breadcrumb .current {
  background: var(--gold-grad-horizontal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}
.page-h {
  font-family: 'Clash Display', sans-serif;
  font-weight: 500;
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 2rem;
  max-width: 1200px;
}
.page-h em {
  font-style: italic;
  font-weight: 600;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--paper);
  max-width: 720px;
  font-weight: 400;
}

/* CONTENT PROSE */
.prose {
  max-width: 1400px;
  margin: 0 auto;
  padding: 8rem 5vw;
}
.prose-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .prose-grid { grid-template-columns: 1fr; gap: 2rem; }
  .prose { padding: 4rem 5vw; }
}
.prose-aside h3 {
  font-family: 'Clash Display', sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  position: sticky;
  top: 6rem;
}
.prose-aside h3 em {
  font-style: italic;
  font-weight: 600;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.prose-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--paper);
  margin-bottom: 1.5rem;
}
.prose-body p strong {
  color: var(--gold-light);
  font-weight: 500;
}
.prose-body h4 {
  font-family: 'Clash Display', sans-serif;
  font-weight: 500;
  font-size: 24px;
  margin-top: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}
.prose-body ul.feature-list {
  list-style: none;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}
.prose-body ul.feature-list li {
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule-2);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--paper);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 164, 55, 0.03);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.prose-body ul.feature-list li:hover {
  border-color: var(--gold-mid);
  background: rgba(212, 164, 55, 0.06);
}
.prose-body ul.feature-list li::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--gold-grad);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Prose dark variant */
.prose--dark {
  background: var(--ink-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* PRICE TABLES */
.pricing {
  padding: 8rem 5vw;
  background: var(--ink-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.pricing-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.pricing-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 4rem;
  flex-wrap: wrap;
  gap: 2rem;
}
.pricing-head h2 {
  font-family: 'Clash Display', sans-serif;
  font-weight: 500;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.pricing-head h2 em {
  font-style: italic;
  font-weight: 600;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.price-block { margin-bottom: 3rem; }
.price-block h3 {
  font-family: 'Geist Mono', monospace;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-bottom: 1.5rem;
}
.price-block h3 em {
  font-style: italic;
  font-weight: 600;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.price-list {
  list-style: none;
  border-top: 1px solid var(--rule);
}
.price-list li {
  border-bottom: 1px solid var(--rule);
  padding: 0;
}
.price-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
  position: relative;
  transition: padding 0.3s ease, background 0.3s ease;
}
.price-row:hover {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  background: linear-gradient(90deg, rgba(212, 164, 55, 0.06) 0%, transparent 100%);
}
.price-row:focus-visible {
  outline: none;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  background: linear-gradient(90deg, rgba(212, 164, 55, 0.08) 0%, transparent 100%);
  box-shadow: inset 2px 0 0 var(--gold-mid);
}
.price-row-arrow {
  position: absolute;
  right: -1.5rem;
  opacity: 0;
  color: var(--gold-mid);
  transition: opacity 0.3s ease, right 0.3s ease;
  display: flex;
  align-items: center;
}
.price-row:hover .price-row-arrow,
.price-row:focus-visible .price-row-arrow {
  opacity: 1;
  right: 0.4rem;
}
.price-list .name {
  font-family: 'Geist', sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--paper);
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}
.price-row:hover .name,
.price-row:focus-visible .name { color: var(--gold-light); }
.price-list .price {
  font-family: 'Clash Display', sans-serif;
  font-size: 26px;
  font-weight: 500;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.price-list .price.muted {
  background: none;
  -webkit-text-fill-color: var(--paper-mute);
  color: var(--paper-mute);
  font-size: 18px;
  font-style: italic;
}
.price-disclaimer {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-top: 2rem;
  padding: 1.25rem;
  border: 1px dashed var(--rule-2);
  display: inline-block;
}

/* CTA BLOCK */
.cta-block {
  padding: 8rem 5vw;
  text-align: center;
  background: var(--ink);
  position: relative;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(212,164,55,0.08) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-block h2 {
  position: relative;
  font-family: 'Clash Display', sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.cta-block h2 em {
  font-style: italic;
  font-weight: 600;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-block p {
  position: relative;
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper-mute);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-block .cta-buttons {
  position: relative;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* FOOTER */
footer {
  background: var(--ink-2);
  border-top: 1px solid var(--rule);
  padding: 4rem 5vw 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto 3rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.25rem;
}
.footer-logo-mark {
  width: 60px;
  height: 34px;
  background: url('../images/logo-sj.png') center/contain no-repeat;
  filter: brightness(0) invert(1);
}
.footer-brand {
  font-family: 'Clash Display', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.footer-brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-mute);
  font-weight: 400;
  margin-top: 4px;
  font-family: 'Geist Mono', monospace;
}
.footer-tag {
  font-size: 13px;
  color: var(--paper-mute);
  line-height: 1.7;
  max-width: 380px;
}
footer h4 {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  background: var(--gold-grad-horizontal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
footer ul { list-style: none; }
footer ul li { margin-bottom: 0.75rem; }
footer ul a {
  color: var(--paper-mute);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}
footer ul a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid var(--rule);
  padding-top: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.social-links {
  display: flex;
  gap: 1rem;
}
.social-links a {
  color: var(--paper-mute);
  transition: color 0.3s ease;
  display: inline-flex;
}
.social-links a:hover { color: var(--gold-light); }

/* CONTACT FORM */
.contact-section {
  padding: 10rem 5vw 8rem;
  position: relative;
  background: var(--ink);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}
.contact-info h2 {
  font-family: 'Clash Display', sans-serif;
  font-weight: 500;
  font-size: clamp(42px, 5.8vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}
.contact-info h2 em {
  font-style: italic;
  font-weight: 600;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact-info .desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--paper-mute);
  margin-bottom: 3rem;
  max-width: 450px;
}
.contact-list {
  list-style: none;
  border-top: 1px solid var(--rule);
}
.contact-list li {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.contact-list .label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-mute);
  min-width: 100px;
}
.contact-list .val {
  color: var(--paper);
  font-size: 16px;
  text-decoration: none;
  transition: color 0.3s ease;
}
.contact-list .val:hover {
  background: var(--gold-grad-horizontal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.form-wrap {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold-grad-horizontal);
  opacity: 0.6;
}
.form-wrap h3 {
  font-family: 'Clash Display', sans-serif;
  font-weight: 500;
  font-size: 34px;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.form-wrap h3 em {
  font-style: italic;
  font-weight: 600;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.form-wrap .form-sub {
  font-size: 13px;
  color: var(--paper-mute);
  margin-bottom: 2rem;
}
.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-row input, .form-row textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-2);
  padding: 0.85rem 0;
  color: var(--paper);
  font-family: 'Geist', sans-serif;
  font-size: 15px;
  cursor: none;
  transition: border-color 0.3s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-bottom-color: var(--gold-mid);
}
.form-row textarea {
  resize: vertical;
  min-height: 100px;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geist', sans-serif;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--paper);
  cursor: none;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--rule-2);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
  font-weight: 400;
}
.checkbox-grid label:hover { border-color: var(--gold-mid); }
.checkbox-grid input { display: none; }
.checkbox-grid label:has(input:checked) {
  background: rgba(212, 164, 55, 0.1);
  border-color: var(--gold-mid);
  color: var(--gold-light);
}
.form-submit {
  width: 100%;
  margin-top: 1rem;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold-grad);
  border: none;
  padding: 1.2rem;
  cursor: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-grad-bright);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.form-submit > * { position: relative; z-index: 1; }
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(212, 164, 55, 0.4);
}
.form-submit:hover::before { opacity: 1; }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 5vw;
  overflow: hidden;
}
.hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-image img {
  width: 100%; height: 120%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.78;
  transform: scale(1.05);
  will-change: transform;
}
.hero-bg-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,11,13,0.35) 0%, rgba(10,11,13,0.55) 60%, var(--ink) 100%),
    radial-gradient(ellipse at 80% 40%, transparent 0%, rgba(10,11,13,0.4) 80%);
}
.hero-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,164,55,0.14) 0%, transparent 70%);
  top: 30%;
  right: -200px;
  z-index: 1;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  padding-top: 6vh;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.75rem;
  opacity: 0;
}
.eyebrow .line {
  width: 40px; height: 1px;
  background: var(--gold-grad-horizontal);
}
.hero h1 {
  font-family: 'Clash Display', sans-serif;
  font-weight: 500;
  font-size: clamp(58px, 9.8vw, 172px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 2rem;
}
.hero h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.05em;
}
.hero h1 .word {
  display: inline-block;
  transform: translateY(110%);
}
.hero h1 .gold-text {
  font-style: italic;
  font-weight: 600;
  position: relative;
}
.hero-meta {
  display: flex;
  gap: 4rem;
  margin-top: 3.5rem;
  align-items: flex-end;
  flex-wrap: wrap;
}
.hero-tagline {
  max-width: 420px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--paper-mute);
  opacity: 0;
  transform: translateY(20px);
  font-weight: 400;
}
.hero-tagline strong { color: var(--paper); font-weight: 500; }
.hero-cta {
  display: flex;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
}
.scroll-cue {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 3;
  opacity: 0;
}
.scroll-cue span {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.scroll-cue .line {
  width: 1px;
  height: 50px;
  background: var(--rule-2);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--gold-grad);
  animation: scrollDrip 2s ease infinite;
}
@keyframes scrollDrip {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* MARQUEE */
.marquee-wrap {
  padding: 3rem 0;
  overflow: hidden;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--ink-2);
  position: relative;
  z-index: 2;
}
.marquee {
  display: flex;
  gap: 4rem;
  white-space: nowrap;
  animation: scrollMarquee 30s linear infinite;
  will-change: transform;
}
.marquee-wrap {
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.marquee-wrap:active { cursor: grabbing; }
.marquee span,
.marquee a {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(42px, 6.5vw, 96px);
  font-weight: 500;
  line-height: 1;
  color: var(--paper);
  flex-shrink: 0;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: opacity 0.25s ease;
}
.marquee a:hover { opacity: 0.65; }
.marquee span.outline,
.marquee a.outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--paper-mute);
  font-style: italic;
  font-weight: 400;
  /* Italic + outline: anna lisätilaa, ettei viimeinen glyfin oikea reuna leikkaudu */
  display: inline-block;
  padding-right: 0.14em;
  margin-right: -0.04em;
}
.marquee span.accent,
.marquee a.accent {
  background: var(--gold-grad-horizontal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
  font-weight: 600;
  /* Italic + gradient text-clip: glyfin oikea reuna jää muuten gradientin ulkopuolelle.
     Padding-right antaa tilaa, margin-right kompensoi layoutin. */
  display: inline-block;
  padding-right: 0.14em;
  margin-right: -0.04em;
}
.marquee .sep {
  font-family: 'Geist Mono', monospace;
  font-size: 24px;
  color: var(--paper-mute);
  align-self: center;
}
@keyframes scrollMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* INTRO */
.intro {
  padding: 8rem 5vw 6rem;
  max-width: 1400px;
  margin: 0 auto;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: end;
}
.intro-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--paper);
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.intro-text p.lede {
  font-size: 22px;
  line-height: 1.45;
  color: var(--paper);
  font-weight: 400;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}
.intro-text p.lede em {
  font-family: 'Clash Display', sans-serif;
  font-style: italic;
  font-weight: 600;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@media (max-width: 900px) {
  .intro-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* SERVICES */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service {
  position: relative;
  background: var(--ink);
  padding: 4rem 3rem;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: none;
}
.service::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--svc-img);
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  transition: opacity 0.6s ease, transform 0.7s ease;
  transform: scale(1.05);
  z-index: 0;
}
.service:hover::before { opacity: 0.6; transform: scale(1); }
.service::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,11,13,0.55) 0%, rgba(10,11,13,0.85) 100%);
  z-index: 1;
  opacity: 1;
  transition: opacity 0.5s ease, background 0.5s ease;
}
.service:hover::after {
  background: linear-gradient(180deg, rgba(10,11,13,0.3) 0%, rgba(10,11,13,0.75) 100%);
}
.service > * { position: relative; z-index: 2; }
.service-num {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--paper-mute);
  margin-bottom: 1.5rem;
}
.service-num .accent {
  background: var(--gold-grad-horizontal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}
.service h3 {
  font-family: 'Clash Display', sans-serif;
  font-weight: 500;
  font-size: 44px;
  line-height: 1.05;
  margin-bottom: 1rem;
  transition: transform 0.4s ease;
  letter-spacing: -0.02em;
}
.service:hover h3 { transform: translateX(8px); }
.service h3 em {
  font-style: italic;
  font-weight: 600;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.service p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper-mute);
  max-width: 400px;
  margin-bottom: 2rem;
}
.service-link {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 4px;
  transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
  font-weight: 500;
}
.service-link:hover {
  color: var(--gold-light);
  border-color: var(--gold-mid);
  gap: 14px;
}

/* FEATURE / FILOSOFIA */
.feature {
  padding: 0;
  position: relative;
  background: var(--ink-2);
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 90vh;
  align-items: center;
}
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; }
}
.feature-img-wrap {
  position: relative;
  overflow: hidden;
  height: 90vh;
  min-height: 600px;
}
.feature-img-wrap img {
  width: 100%; height: 110%;
  object-fit: cover;
  will-change: transform;
}
.feature-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10,11,13,0.4) 0%, transparent 50%);
  pointer-events: none;
}
.feature-text {
  padding: 5rem 5vw;
  max-width: 620px;
}
.feature-text .section-tag { margin-bottom: 1.5rem; }
.feature-text h2 {
  font-family: 'Clash Display', sans-serif;
  font-weight: 500;
  font-size: clamp(38px, 4.8vw, 68px);
  line-height: 1.05;
  margin-bottom: 2rem;
  letter-spacing: -0.025em;
}
.feature-text h2 em {
  font-style: italic;
  font-weight: 600;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.feature-text p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--paper-mute);
  margin-bottom: 1.5rem;
}
.feature-text p strong { color: var(--paper); font-weight: 500; }

/* STATS */
.stats {
  padding: 8rem 5vw;
  background: var(--ink-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.stat {
  padding: 2rem;
  border-left: 1px solid var(--rule);
}
.stat:first-child { border-left: none; }
@media (max-width: 768px) {
  .stat:nth-child(odd) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
.stat-num {
  font-family: 'Clash Display', sans-serif;
  font-weight: 500;
  font-size: clamp(56px, 8vw, 100px);
  line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}
.stat-num .unit {
  font-size: 0.4em;
  vertical-align: top;
  margin-top: 0.5em;
  display: inline-block;
  color: var(--paper-mute);
  -webkit-text-fill-color: var(--paper-mute);
  margin-left: 4px;
}
.stat-label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-mute);
  line-height: 1.5;
}

/* GALLERY */
.gallery {
  padding: 10rem 5vw;
  background: var(--ink);
}
.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 5rem;
  flex-wrap: wrap;
  gap: 2rem;
}
.gallery-head h2 {
  font-family: 'Clash Display', sans-serif;
  font-weight: 500;
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 700px;
}
.gallery-head h2 em {
  font-style: italic;
  font-weight: 600;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gallery-head .desc {
  max-width: 320px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper-mute);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  grid-auto-flow: dense;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: none;
  transform-style: preserve-3d;
  will-change: transform;
  background: var(--ink-2);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,11,13,0.88) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-caption {
  position: absolute;
  bottom: 1.5rem; left: 1.5rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }
.gallery-caption .label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: var(--gold-grad-horizontal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}
.gallery-caption .title {
  font-family: 'Clash Display', sans-serif;
  font-size: 22px;
  color: var(--paper);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.g-tall    { grid-column: span 4; aspect-ratio: 3 / 4.2; }
.g-wide    { grid-column: span 8; aspect-ratio: 16 / 9; }
.g-med     { grid-column: span 6; aspect-ratio: 4 / 3; }
.g-small   { grid-column: span 4; aspect-ratio: 1 / 1; }
.g-feature { grid-column: span 12; aspect-ratio: 21 / 9; }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .g-tall, .g-wide, .g-med, .g-small, .g-feature {
    grid-column: span 2; aspect-ratio: 4/3;
  }
}

/* PULLQUOTE */
.pullquote {
  padding: 12rem 5vw;
  text-align: center;
  position: relative;
  background: var(--ink);
}
.pullquote::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(212,164,55,0.09) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.pullquote-text {
  font-family: 'Clash Display', sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(38px, 5.2vw, 80px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.pullquote-text .mark {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}
.pullquote-text em {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}
.pullquote-attr {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-mute);
  margin-top: 3rem;
}

/* CONTACT (etusivu) */
.contact {
  padding: 10rem 5vw 8rem;
  position: relative;
  background: var(--ink);
}

/* GALLERY PAGE */
.gallery-page {
  padding: 5rem 5vw 10rem;
  background: var(--ink);
  max-width: 1600px;
  margin: 0 auto;
}
.gallery-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--rule-2);
  color: var(--paper-mute);
  padding: 0.75rem 1.25rem;
  cursor: none;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.filter-btn:hover {
  border-color: var(--gold-mid);
  color: var(--paper);
}
.filter-btn.active {
  background: var(--gold-grad);
  border-color: transparent;
  color: var(--ink);
}
.filter-btn .filter-count {
  font-size: 9px;
  opacity: 0.7;
  background: rgba(0,0,0,0.15);
  border-radius: 99px;
  padding: 2px 6px;
  line-height: 1.4;
}
.filter-btn.active .filter-count { background: rgba(0,0,0,0.2); }
/* Justified gallery — galleria-sivun rivit täyttävät reunasta reunaan, kuvasuhteen mukaan */
.gallery-grid--justified {
  display: flex;
  flex-wrap: wrap;
  gap: var(--justified-gap, 12px);
  grid-template-columns: none;
  font-size: 0; /* poista inline-block välit jos joku selain tarvitsee */
}
.gallery-grid--justified .gallery-item {
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  text-decoration: none;
  /* width + height tulee JS:ltä; aspect-ratio inline-style toimii fallbackina ennen JS:ää */
  margin: 0;
}
.gallery-grid--justified .gallery-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}
.gallery-item--hidden {
  display: none !important;
}
.gallery-item {
  display: block;
  text-decoration: none;
}
.page-hero--gallery { padding-bottom: 6rem; }
.gallery-empty {
  text-align: center;
  padding: 6rem 0;
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

/* GLightbox skin */
.glightbox-clean .gslide-description { background: var(--ink-2); }
.glightbox-clean .gdesc-inner .gslide-title {
  font-family: 'Clash Display', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--paper);
}
.glightbox-clean .gdesc-inner .gslide-desc {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.glightbox-clean .gnext, .glightbox-clean .gprev { background: var(--ink-2); border: 1px solid var(--rule-2); }
.glightbox-clean .gnext svg path, .glightbox-clean .gprev svg path { fill: var(--paper); }

/* YHTEYSTIEDOT-SIVU */
.contact-social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.contact-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  background: #25d366;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  transition: filter 0.3s ease, transform 0.3s ease;
}
.contact-wa:hover { filter: brightness(1.1); transform: translateY(-2px); }
.contact-some {
  display: flex;
  gap: 1rem;
}
.contact-some a {
  color: var(--paper-mute);
  transition: color 0.3s ease;
  display: inline-flex;
}
.contact-some a:hover { color: var(--gold-light); }

/* Lomakkeen onnistumisviesti */
.form-success {
  background: var(--ink-2);
  border: 1px solid var(--rule);
  border-top: 2px solid #25d366;
  padding: 3rem;
  text-align: center;
}
.form-success-icon {
  color: #25d366;
  margin-bottom: 1.5rem;
}
.form-success h3 {
  font-family: 'Clash Display', sans-serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.form-success p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--paper-mute);
  max-width: 380px;
  margin: 0 auto;
}
.form-error-msg {
  background: rgba(220, 50, 50, 0.08);
  border: 1px solid rgba(220, 50, 50, 0.3);
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 14px;
  color: #ff6b6b;
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.05em;
}

/* KARTTA */
.map-section {
  background: var(--ink-2);
  border-top: 1px solid var(--rule);
}
.map-header {
  padding: 6rem 5vw 0;
  max-width: 1400px;
  margin: 0 auto;
}
.map-embed { margin-top: 3rem; }
.map-embed iframe { filter: grayscale(1) invert(0.85) contrast(0.9); }

/* Admin-bar — siirrä fixed nav alas */
.admin-bar nav.top { top: 32px; }
@media (max-width: 782px) { .admin-bar nav.top { top: 46px; } }

/* 404 */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 5vw;
  background: var(--ink);
  position: relative;
}
.not-found::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(212,164,55,0.06) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.not-found-inner {
  text-align: center;
  position: relative;
  max-width: 680px;
}
.not-found-num {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(120px, 20vw, 240px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.06em;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.18;
  margin-bottom: -0.15em;
}
.not-found-h {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 1.5rem 0 1rem;
}
.not-found-h em {
  font-style: italic;
  font-weight: 600;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.not-found-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--paper-mute);
  margin-bottom: 2.5rem;
}
.not-found-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.not-found-nav { border-top: 1px solid var(--rule); padding-top: 2rem; }
.not-found-nav-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--paper-mute);
  display: block;
  margin-bottom: 1rem;
}
.not-found-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; justify-content: center; }
.not-found-nav a {
  color: var(--paper-mute);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}
.not-found-nav a:hover { color: var(--gold-light); }

/* Generic page */
.generic-page {
  padding: 6rem 5vw 10rem;
}
.generic-page-inner {
  max-width: 860px;
  margin: 0 auto;
}

/* Success notice (etusivu) */
.sent-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  background: var(--ink-2);
  border: 1px solid rgba(37, 211, 102, 0.4);
  border-left: 3px solid #25d366;
  padding: 1.25rem 1.5rem;
  max-width: 360px;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  animation: slideInNotice 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes slideInNotice {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sent-notice svg { color: #25d366; flex-shrink: 0; margin-top: 2px; }
.sent-notice p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--paper-mute); }
.sent-notice strong { color: var(--paper); display: block; margin-bottom: 2px; font-size: 15px; }
.sent-notice-close {
  background: none; border: none; color: var(--paper-mute); cursor: pointer;
  font-size: 18px; line-height: 1; padding: 0; margin-left: auto; flex-shrink: 0;
}

/* NOISE OVERLAY */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 9996;
  mix-blend-mode: overlay;
}

/* =========================================================
   RESPONSIVE — 768px
   ========================================================= */
@media (max-width: 768px) {
  body { cursor: auto; overflow-x: hidden; }
  .cursor-dot, .cursor-ring { display: none; }
  * { cursor: auto !important; }

  /* Estä elementin ylivuoto */
  .hero-glow { display: none; }
  .marquee-wrap { overflow: hidden; }
  .marquee { width: max-content; }

  /* Page hero */
  .page-hero { padding: 9rem 5vw 5rem; }
  .page-h { font-size: clamp(32px, 9vw, 52px); }
  .breadcrumb { font-size: 11px; }

  /* Hero (front page) */
  .hero { padding: 8rem 5vw 6rem; min-height: auto; }
  .hero h1 { font-size: clamp(38px, 11vw, 72px); }
  .hero-meta { gap: 1.5rem; flex-wrap: wrap; }
  .hero-cta { flex-direction: column; width: 100%; gap: 0.75rem; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
  .hero-scroll-cue { display: none; }

  /* Marquee */
  .marquee { padding: 2rem 0; }
  .marquee-item { font-size: 13px; }

  /* Intro */
  .intro { padding: 5rem 5vw; flex-direction: column; gap: 2rem; }
  .intro-label { font-size: 10px; }
  .intro-text p.lede { font-size: clamp(22px, 6vw, 32px); }

  /* Services */
  .services { padding: 5rem 5vw; }
  .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .service { min-height: 280px; }

  /* Feature / filosofia */
  .feature { flex-direction: column; }
  .feature-image { width: 100%; height: 55vw; min-height: 220px; }
  .feature-text { padding: 3rem 5vw; width: 100%; }
  .feature-text h2 { font-size: clamp(28px, 7vw, 42px); }

  /* Stats */
  .stats { padding: 5rem 5vw; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .stat-number { font-size: clamp(36px, 10vw, 56px); }

  /* Gallery preview */
  .gallery { padding: 5rem 5vw; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .g-wide, .g-feature { grid-column: span 2; }
  .g-tall { grid-row: span 1; }

  /* Pullquote */
  .pullquote { padding: 5rem 5vw; }
  .pullquote-text { font-size: clamp(22px, 6vw, 36px); }

  /* Contact (front page form section) */
  .contact { padding: 5rem 5vw; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-info h2 { font-size: clamp(26px, 7vw, 40px); }

  /* Sivuun upotettu lomake — kompaktimpi mobiilissa */
  .form-wrap { padding: 1.75rem 1.5rem; }
  .form-wrap h3 { font-size: clamp(24px, 6.5vw, 32px); }
  .form-wrap .form-sub { margin-bottom: 1.25rem; }
  .form-row { margin-bottom: 1rem; }
  .form-row textarea { min-height: 80px; }
  .checkbox-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .checkbox-grid label { padding: 0.55rem 0.7rem; font-size: 12.5px; }
  .form-submit { padding: 1rem; font-size: 10.5px; }

  /* Pricing */
  .pricing { padding: 5rem 5vw; }
  .pricing-head { margin-bottom: 2.5rem; }
  .price-blocks { grid-template-columns: 1fr; gap: 2rem; }
  .price-row { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .price-list .price { text-align: left; }
  .price-row-arrow { position: static; opacity: 0.6; right: auto; }

  /* CTA block */
  .cta-block { padding: 5rem 5vw; }
  .cta-block h2 { font-size: clamp(26px, 7vw, 42px); }
  .cta-buttons { flex-direction: column; gap: 0.75rem; }
  .cta-buttons .btn-primary,
  .cta-buttons .btn-ghost { width: 100%; justify-content: center; }

  /* Prose (single-palvelu) */
  .prose { padding: 5rem 5vw; }
  .prose-inner { flex-direction: column; gap: 2rem; }
  .prose-aside { width: 100%; border-left: none; border-top: 1px solid var(--rule-2); padding-left: 0; padding-top: 1.5rem; }
  .prose-body { width: 100%; }

  /* Gallery page */
  .gallery-page { padding: 3rem 5vw 6rem; }
  .gallery-filters { gap: 0.5rem; flex-wrap: wrap; }
  .filter-btn { font-size: 10px; padding: 0.6rem 1rem; }
  /* .gallery-grid--justified responsiivisuus hoidetaan JS:ssä (target-rivin korkeus) */

  /* Contact page */
  .contact-section { padding: 5rem 5vw; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-social-links { gap: 1rem; }
  .map-section { padding: 0; }
  .map-section iframe { height: 240px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-brand { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 1rem; text-align: left; }

  /* Sent notice */
  .sent-notice { bottom: 1rem; right: 1rem; left: 1rem; max-width: none; }

  /* 404 */
  .not-found-links { flex-direction: column; }
  .not-found-links .btn-primary,
  .not-found-links .btn-ghost { width: 100%; justify-content: center; }
}

/* =========================================================
   RESPONSIVE — 480px (small phones)
   ========================================================= */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .g-wide, .g-feature, .g-tall, .g-med, .g-small { grid-column: span 1; grid-row: span 1; }
  /* Justified: pieni rivin korkeus mobiilissa tulee JS:ltä */
  .mobile-nav-links a { font-size: clamp(28px, 9vw, 44px); }
}
