/* ==========================================================================
   RAKENNUS-LOKKA — style.css (v2)
   Design-tokenit: hiilenmusta #121416 / samppanjakulta #c5a880 /
   sand #f8f9fa / parchment #efe9de
   Fontit: Playfair Display (otsikot, weight 500) + Inter (leipäteksti)
   Rakenne mallinnettu Arcova-referenssin mukaan (layout-patternit),
   kaikki sisältö ja luvut Rakennus-Lokan omia.
   ========================================================================== */

/* ---------- 1. RESET & BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  /* Colors */
  --color-charcoal: #121416;
  --color-charcoal-soft: #1b1e21;
  --color-gold: #c5a880;
  --color-gold-bright: #d8bd96;
  --color-sand: #f8f9fa;
  --color-parchment: #efe9de;
  --color-white: #ffffff;
  --color-ink: #121416;
  --color-ink-muted: #5c5f63;
  --color-line: rgba(18, 20, 22, 0.12);
  --color-line-on-dark: rgba(245, 243, 238, 0.14);
  --color-text-on-dark: #f5f3ee;
  --color-text-on-dark-muted: rgba(245, 243, 238, 0.72);

  /* Type */
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-section: clamp(64px, 8vw, 112px);
  --space-gap: clamp(48px, 6vw, 64px);
  --container-width: 1280px;
  --container-pad: clamp(20px, 5vw, 64px);

  /* Radius / shadow */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 28px;
  --shadow-float: 0 24px 60px -20px rgba(18, 20, 22, 0.45);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 320ms var(--ease);

  /* Z-index scale */
  --z-cookie: 9999;
  --z-nav: 1000;
  --z-dropdown: 100;
  --z-hero-content: 2;
  --z-hero-media: 1;
}

html {
  scroll-behavior: smooth;
}

@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;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-sand);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 2. TYPE SCALE ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 14px;
}

.h1,
h1 {
  font-size: clamp(2.4rem, 4.4vw, 4rem);
}

.h2,
h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
}

.h3,
h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
}

.lede {
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  color: var(--color-ink-muted);
  max-width: 46ch;
}

/* ---------- 3. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: transform var(--transition), background-color var(--transition),
    color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-charcoal);
}

@media (hover: hover) {
  .btn--primary:hover {
    background: var(--color-gold-bright);
    transform: translateY(-2px);
  }
  .btn--outline:hover {
    background: var(--color-gold);
    color: var(--color-charcoal);
    transform: translateY(-2px);
  }
  .btn--outline-dark:hover {
    background: var(--color-charcoal);
    color: var(--color-text-on-dark);
    transform: translateY(-2px);
  }
}

.btn--outline {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-line);
}

.btn--outline-on-dark {
  background: transparent;
  color: var(--color-text-on-dark);
  border-color: var(--color-line-on-dark);
}

.btn--call {
  background: var(--color-charcoal);
  color: var(--color-text-on-dark);
}

@media (hover: hover) {
  .btn--call:hover {
    background: var(--color-charcoal-soft);
    transform: translateY(-2px);
  }
}

/* ---------- 4. HEADER / NAV ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-nav);
  padding: 22px 0;
  background: transparent;
  transition: padding var(--transition), box-shadow var(--transition);
}

/* IMPORTANT: backdrop-filter is applied on a ::before layer, never directly
   on .site-header. Applying it directly would make .site-header a new
   containing block for any position:fixed descendant (the mobile .nav
   overlay), breaking full-viewport positioning once the header is scrolled.
   The ::before pseudo-element is not an ancestor of .nav, so it is safe. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(18, 20, 22, 0.82);
  opacity: 0;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: opacity var(--transition);
}

/* JS toggles this class after scrollY > threshold */
.site-header.is-scrolled {
  padding: 14px 0;
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.5);
}

.site-header.is-scrolled::before {
  opacity: 1;
}

/* Pages without a dark hero behind the header (inner content pages) */
.site-header.is-static {
  position: sticky;
}

.site-header.is-static::before {
  opacity: 1;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  color: var(--color-text-on-dark);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 40px);
}

.nav__link {
  position: relative;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-on-dark-muted);
  padding-bottom: 6px;
  transition: color var(--transition);
}

@media (hover: hover) {
  .nav__link:hover {
    color: var(--color-text-on-dark);
  }
}

.nav__link.is-active {
  color: var(--color-text-on-dark);
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--color-gold);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  padding: 0;
  position: relative;
  z-index: var(--z-nav);
}

.nav-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1px;
  background: var(--color-text-on-dark);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle span:nth-child(1) {
  top: 15px;
}
.nav-toggle span:nth-child(2) {
  top: 20px;
}
.nav-toggle span:nth-child(3) {
  top: 25px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 92vh, 880px);
  display: flex;
  align-items: center;
  color: var(--color-text-on-dark);
  overflow: visible;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: var(--z-hero-media);
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(18, 20, 22, 0.94) 0%,
    rgba(18, 20, 22, 0.72) 32%,
    rgba(18, 20, 22, 0.28) 58%,
    rgba(18, 20, 22, 0.55) 100%
  );
}

.hero__content {
  position: relative;
  z-index: var(--z-hero-content);
  padding-left: clamp(28px, 3vw, 40px);
  max-width: 640px;
}

.hero__decorator {
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 84px;
  width: 1px;
  background: var(--color-line-on-dark);
}

.hero__decorator::before,
.hero__decorator::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-gold);
  transform: translateX(-50%);
}

.hero__decorator::before {
  top: -3px;
}

.hero__decorator::after {
  bottom: -3px;
}

.hero__title {
  margin-bottom: 20px;
  color: var(--color-gold);
}

.hero__title em {
  font-style: normal;
  color: inherit;
}

.hero__subtitle {
  color: var(--color-text-on-dark-muted);
  max-width: 42ch;
  margin-bottom: 32px;
  font-size: 1.02rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Inner-page hero: shorter, no trust bar */
.page-hero {
  position: relative;
  min-height: clamp(340px, 46vh, 460px);
  display: flex;
  align-items: flex-end;
  color: var(--color-text-on-dark);
  overflow: hidden;
  padding-top: 120px;
}

.page-hero__media {
  position: absolute;
  inset: 0;
}

.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 20, 22, 0.55) 0%,
    rgba(18, 20, 22, 0.92) 100%
  );
}

.page-hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: 56px;
  max-width: 760px;
}

/* Illustrated hero variant — used when no suitable photograph is available.
   A large compass-rose + floor-plan sketch in gold, echoing the compass icon
   used in the "Yksilöllinen" service card, so the motif reads as intentional
   brand language rather than a missing-image placeholder. */
.page-hero--illustrated {
  background-color: var(--color-charcoal);
}

.page-hero--illustrated::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    /* faint blueprint dot-grid */
    radial-gradient(rgba(197, 168, 128, 0.16) 1px, transparent 1px),
    /* compass rose, right side */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 620'%3E%3Cg fill='none' stroke='%23c5a880' stroke-width='1' opacity='0.4'%3E%3Ccircle cx='680' cy='300' r='170'/%3E%3Ccircle cx='680' cy='300' r='120'/%3E%3Cline x1='680' y1='90' x2='680' y2='510'/%3E%3Cline x1='470' y1='300' x2='890' y2='300'/%3E%3Cline x1='560' y1='170' x2='800' y2='430'/%3E%3Cline x1='800' y1='170' x2='560' y2='430'/%3E%3Cpath d='M680 100 l10 22 h-20 z' fill='%23c5a880' stroke='none' opacity='0.6'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat, no-repeat;
  background-size: 22px 22px, min(760px, 90%) auto;
  background-position: 0 0, right center;
  opacity: 0.9;
}

.page-hero--illustrated .page-hero__content {
  position: relative;
  z-index: 2;
}

.page-hero__subtitle {
  color: var(--color-text-on-dark-muted);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  max-width: 46ch;
  margin-top: 14px;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--color-text-on-dark-muted);
  margin-top: 14px;
}

.breadcrumbs a {
  color: var(--color-text-on-dark-muted);
  transition: color var(--transition);
}

@media (hover: hover) {
  .breadcrumbs a:hover {
    color: var(--color-gold);
  }
}

/* ---------- 6. TRUST BAR (floats over hero bottom edge) ---------- */
.trust-bar {
  position: absolute;
  left: var(--container-pad);
  right: var(--container-pad);
  top: 100%;
  transform: translateY(-84px);
  z-index: 3;
  max-width: var(--container-width);
  margin-inline: auto;
  background: rgba(18, 20, 22, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-line-on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 32px) clamp(24px, 4vw, 48px);
}

.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
}

.trust-bar__item {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px clamp(12px, 2vw, 28px);
  border-left: 1px solid var(--color-line-on-dark);
  min-width: 180px;
}

.trust-bar__item:first-child {
  border-left: none;
  padding-left: 0;
}

.trust-bar__item svg {
  width: 30px;
  height: 30px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.trust-bar__value {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: var(--color-text-on-dark);
  line-height: 1.1;
}

.trust-bar__label {
  font-size: 0.78rem;
  color: var(--color-text-on-dark-muted);
}

/* ---------- 7. SPLIT SECTION PATTERN (label ~25% / content ~75%) ---------- */
.split-section {
  padding: var(--space-section) 0;
}

.split-section--dark {
  background: var(--color-charcoal);
  color: var(--color-text-on-dark);
}

.split-section--parchment {
  background: var(--color-parchment);
}

.split-section__inner {
  display: grid;
  grid-template-columns: minmax(220px, 25%) 1fr;
  gap: var(--space-gap);
  align-items: start;
}

/* Grid items default to min-width:auto, which lets a long unbroken word
   (common in Finnish compounds) expand the track beyond its share and
   overlap the sibling column. min-width:0 plus hyphenation fixes this
   regardless of which font is actually loaded.
   IMPORTANT: this is scoped ONLY to narrow-column contexts (the 25% label
   column and similar). It must never apply globally to h1/h2/h3 — a wide
   element like the hero title has plenty of room and never overflows, so
   forcing hyphenation there only produces ugly mid-word breaks
   ("ra-kentaja") with no benefit. */
.split-section__label,
.split-section__inner > * {
  min-width: 0;
}

.split-section__label .h2,
.section__head .h2,
.cta-band__text .h2,
.site-footer__cta .h2 {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.split-section__label .h2 {
  margin-bottom: 20px;
}

.split-section--dark .lede {
  color: var(--color-text-on-dark-muted);
}

/* ---------- 8. FEATURED PROJECTS (asymmetric 3-col grid) ---------- */
.featured__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 20px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 260px;
  background: var(--color-charcoal);
}

.project-card--tall {
  grid-row: span 2;
  min-height: 100%;
}

.featured__stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}

@media (hover: hover) {
  .project-card:hover img {
    transform: scale(1.05);
  }
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(18, 20, 22, 0) 45%,
    rgba(18, 20, 22, 0.86) 100%
  );
}

.project-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-text-on-dark);
}

.project-card__title {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.project-card__place {
  font-size: 0.8rem;
  color: var(--color-text-on-dark-muted);
}

.project-card__arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-line-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--transition), transform var(--transition);
}

.project-card__arrow svg {
  width: 14px;
  height: 14px;
}

@media (hover: hover) {
  .project-card:hover .project-card__arrow {
    background: var(--color-gold);
    transform: translateX(2px);
  }
}

/* ---------- 9. SERVICES (equal-width thin-border cards) ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.services__grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

.services__grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

/* Trust/certification badge (e.g. Luotettava Kumppani) inside a CTA block */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 10px 16px 10px 10px;
  background: rgba(245, 243, 238, 0.06);
  border: 1px solid var(--color-line-on-dark);
  border-radius: var(--radius-sm);
}

.trust-badge img {
  height: 40px;
  width: auto;
  border-radius: 4px;
  flex-shrink: 0;
}

.trust-badge span {
  font-size: 0.78rem;
  color: var(--color-text-on-dark-muted);
  line-height: 1.4;
  max-width: 20ch;
}

.service-card {
  border: 1px solid var(--color-line-on-dark);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

@media (hover: hover) {
  .service-card:hover {
    border-color: var(--color-gold);
    transform: translateY(-4px);
  }
}

.service-card__icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 20px;
  color: var(--color-gold);
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.service-card__text {
  font-size: 0.88rem;
  color: var(--color-text-on-dark-muted);
}

/* ---------- 10. PROCESS (numbered circles + thin dotted connector) ---------- */
.process__list {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.process__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 0;
  position: relative;
}

.process__connector {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 21px;
  width: clamp(16px, 4vw, 56px);
  border-top: 1px dotted rgba(18, 20, 22, 0.28);
}

.process__circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.process__title {
  font-size: 1rem;
  margin-bottom: 8px;
}

.process__text {
  font-size: 0.85rem;
  color: var(--color-ink-muted);
  max-width: 22ch;
}

/* ---------- 11. GENERIC CONTENT SECTIONS (inner pages) ---------- */
.section {
  padding: var(--space-section) 0;
}

.section--sand {
  background: var(--color-sand);
}

.section--parchment {
  background: var(--color-parchment);
}

.section--dark {
  background: var(--color-charcoal);
  color: var(--color-text-on-dark);
}

.section--dark .lede,
.section--dark p {
  color: var(--color-text-on-dark-muted);
}

.section__head {
  max-width: 760px;
  margin-bottom: var(--space-gap);
}

.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-gap);
  align-items: center;
}

.content-split__text .h2 {
  margin-bottom: 24px;
}

.content-split__media {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.content-split__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
}

.spec-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.spec-list__item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-line);
}

.spec-list__icon {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 3px;
}

/* FAQ / accordion */
.faq {
  max-width: 820px;
}

.faq-item {
  border-bottom: 1px solid var(--color-line);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-ink);
}

.faq-item__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-gold);
  transition: transform var(--transition);
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition);
}

.faq-item__answer p {
  padding-bottom: 22px;
  color: var(--color-ink-muted);
  max-width: 65ch;
}

/* CTA band */
.cta-band {
  background: var(--color-charcoal);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: var(--space-section);
}

.cta-band__text .lede {
  color: var(--color-text-on-dark-muted);
}

/* ---------- 12. FOOTER (3-column) ---------- */
.site-footer {
  background-color: var(--color-charcoal);
  /* Faint architectural line-sketch, bottom-right corner — echoes the
     compass/blueprint motif used in the service icons. Uses background-image
     (not a pseudo-element) so it always paints behind the footer's own
     content, regardless of stacking order. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 320'%3E%3Cg fill='none' stroke='%23c5a880' stroke-width='1' opacity='0.16'%3E%3Cpath d='M20 280 L20 160 L110 100 L200 160 L200 280 Z'/%3E%3Cpath d='M60 280 L60 190 L110 160 L160 190 L160 280'/%3E%3Crect x='90' y='215' width='36' height='65'/%3E%3Cpath d='M185 280 L185 120 L265 68 L345 120 L345 280 Z'/%3E%3Cline x1='265' y1='68' x2='265' y2='280'/%3E%3Crect x='300' y='185' width='32' height='42'/%3E%3Crect x='300' y='150' width='32' height='24'/%3E%3Cline x1='0' y1='300' x2='420' y2='300'/%3E%3Cline x1='10' y1='306' x2='10' y2='294'/%3E%3Cline x1='410' y1='306' x2='410' y2='294'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: min(460px, 60vw) auto;
  color: var(--color-text-on-dark);
  padding: var(--space-section) 0 28px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-gap);
  padding-bottom: 48px;
}

.site-footer__cta .h2 {
  margin-bottom: 24px;
}

.site-footer__contact {
  display: grid;
  gap: 18px;
  align-content: start;
}

.footer-contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-line-on-dark);
}

.footer-contact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.footer-contact-row svg {
  width: 18px;
  height: 18px;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.site-footer__brand {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.site-footer__brand .logo {
  color: var(--color-text-on-dark);
}

.site-footer__brand p {
  color: var(--color-text-on-dark-muted);
  font-size: 0.9rem;
  max-width: 32ch;
}

.site-footer__bottom {
  border-top: 1px solid var(--color-line-on-dark);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--color-text-on-dark-muted);
}

.site-footer__bottom a {
  transition: color var(--transition);
}

@media (hover: hover) {
  .site-footer__bottom a:hover {
    color: var(--color-gold);
  }
}

.site-footer__legal {
  display: flex;
  gap: 20px;
}

.footer-credit {
  color: var(--color-text-on-dark-muted);
}

/* ---------- 13. FORMS ---------- */
.form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.field input,
.field textarea,
.field select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-ink);
  transition: border-color var(--transition);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--color-gold);
}

.field--checkbox {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-ink-muted);
}

.field--checkbox input {
  margin-top: 3px;
}

.field--checkbox a {
  color: var(--color-ink);
  text-decoration: underline;
}

/* Structured multiple-choice question groups (project type, features, stage) */
.choice-group {
  border: none;
  padding: 0;
  margin: 0;
}

.choice-group legend {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0;
}

.choice-group__options {
  display: grid;
  gap: 10px;
}

.choice-option {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-ink);
  cursor: pointer;
}

.choice-option input {
  accent-color: var(--color-gold);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.honeypot-field {
  display: none;
}

/* ---------- 14. COOKIE NOTICE (info only, no accept/reject) ---------- */
.cookie-notice {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-cookie);
  max-width: 480px;
  margin-inline: auto;
  background: rgba(18, 20, 22, 0.94);
  color: var(--color-text-on-dark);
  border: 1px solid var(--color-line-on-dark);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-float);
  transform: translateY(0);
  transition: transform var(--transition), opacity var(--transition);
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice p {
  font-size: 0.82rem;
  color: var(--color-text-on-dark-muted);
  flex: 1;
}

.cookie-notice__close {
  background: transparent;
  border: 1px solid var(--color-line-on-dark);
  color: var(--color-text-on-dark);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  line-height: 1;
}

/* ---------- 15. MAP / CONTACT CARD ---------- */
.contact-card {
  background: var(--color-charcoal);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 40px);
  display: grid;
  gap: 20px;
}

.contact-card__row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-line-on-dark);
}

.contact-card__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-card__row svg {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
  aspect-ratio: 4 / 3;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Stylised service-area illustration (SAB model — no precise address/pin) */
.service-area {
  margin-top: 20px;
  background: var(--color-charcoal);
  border-radius: var(--radius-md);
  padding: 20px;
}

.service-area svg {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.service-area__caption {
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--color-text-on-dark-muted);
  text-align: center;
}

/* ---------- 16. IMAGE / CLS PLACEHOLDER ---------- */
.img-placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--color-parchment), #e2d9c6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-ink-muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
}

/* ---------- 17. RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-section__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .featured__grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-card--tall:first-child {
    grid-column: span 2;
    grid-row: auto;
    min-height: 320px;
  }

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .hero-trustbar-spacer {
    display: none;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-nav) - 1);
    background: rgba(18, 20, 22, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transform: translateX(100%);
    transition: transform var(--transition);
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 0.95rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-header__actions .btn--outline-on-dark {
    display: none;
  }

  .hero__decorator {
    display: none;
  }

  .hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: 108px;
    padding-bottom: 32px;
  }

  .hero__content {
    padding-left: 0;
  }

  .page-hero {
    align-items: flex-start;
    padding-top: 24px;
  }

  .page-hero__content {
    padding-top: 8px;
    padding-bottom: 0;
  }

  .trust-bar {
    position: static;
    margin-top: 32px;
    left: auto;
    right: auto;
    transform: none;
  }

  .trust-bar__inner {
    flex-direction: column;
  }

  .trust-bar__item {
    border-left: none;
    border-top: 1px solid var(--color-line-on-dark);
    padding: 14px 0;
    width: 100%;
  }

  .trust-bar__item:first-child {
    border-top: none;
    padding-top: 0;
  }

  .featured__grid {
    grid-template-columns: 1fr;
  }

  .project-card--tall,
  .project-card--tall:first-child {
    grid-column: auto;
    grid-row: auto;
    min-height: 280px;
  }

  .featured__stack {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .process__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .process__connector {
    display: none;
  }

  .process__step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
  }

  .process__circle {
    margin-bottom: 0;
  }

  .process__title {
    width: 132px;
    flex-shrink: 0;
  }

  .process__text {
    max-width: none;
  }

  .content-split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__brand {
    grid-column: auto;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-notice {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }
}

/* ---------- 18. PRELOADER (verho-avautuminen) ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
}

.preloader__panel {
  flex: 1;
  background: var(--color-charcoal);
  position: relative;
  transition: transform 900ms cubic-bezier(0.76, 0, 0.24, 1);
}

.preloader__panel--left {
  box-shadow: 40px 0 60px -10px rgba(0, 0, 0, 0.55);
}

.preloader__panel--right {
  box-shadow: -40px 0 60px -10px rgba(0, 0, 0, 0.55);
}

.preloader.wipe .preloader__panel--left {
  transform: translateX(-100%);
}

.preloader.wipe .preloader__panel--right {
  transform: translateX(100%);
}

.preloader.done {
  display: none;
}

.preloader__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.preloader.wipe .preloader__center {
  opacity: 0;
  transition: opacity 300ms ease;
}

.preloader__logo {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--color-text-on-dark);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: preloaderLogoIn 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 150ms;
}

@keyframes preloaderLogoIn {
  0% { opacity: 0; letter-spacing: 0.02em; filter: blur(6px); }
  100% { opacity: 1; letter-spacing: 0.32em; filter: blur(0); }
}

.preloader__line {
  margin-top: 18px;
  height: 1px;
  width: 0;
  background: var(--color-gold);
  animation: preloaderLineIn 700ms ease-out forwards;
  animation-delay: 950ms;
}

@keyframes preloaderLineIn {
  to { width: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  .preloader { display: none; }
}

/* Hero content fades/rises in as the preloader wipes away */
[data-hero-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

[data-hero-reveal].reveal {
  animation: heroRevealIn 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 200ms;
}

[data-hero-reveal].reveal-instant {
  opacity: 1;
  transform: none;
  animation: none;
}

@keyframes heroRevealIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  [data-hero-reveal] {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ---------- 19. ANNOUNCEMENT BAR (esim. uusi palvelualue) ---------- */
/* Continues the hero's dark tone seamlessly past the floating trust-bar's
   overlap zone, so no page-background colour shows through as a gap. */
.hero-trustbar-spacer {
  height: 96px;
  background: var(--color-charcoal);
}

.announcement-bar {
  background: var(--color-parchment);
  border-bottom: 1px solid var(--color-line);
  padding: 18px 0;
  position: relative;
  z-index: 1;
}

.announcement-bar__inner {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.announcement-bar__inner .eyebrow {
  margin-bottom: 0;
}

.announcement-bar__inner p {
  font-size: 0.95rem;
  color: var(--color-ink);
}

@media (max-width: 768px) {
  .announcement-bar__inner {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}
