/* =========================================================================
   VARATEK — Rakennusyhtiö  ·  Design System
   Positioning: a Finnish CONSTRUCTION company first, products second.
   Palette: deep navy + graphite + white (monochrome, corporate-construction).
   Type: Archivo (display + body) · JetBrains Mono (technical labels/specs).
   ========================================================================= */

:root {
  /* ---- Color ---- */
  --navy:        #15293E;   /* primary deep navy */
  --navy-deep:   #0E1B29;   /* darkest navy */
  --navy-2:      #213D59;
  --ink:         #0F151B;   /* near-black graphite */
  --ink-soft:    #57626E;   /* muted body / secondary */
  --paper:       #F3F5F8;   /* cool light background */
  --paper-2:     #E7ECF1;   /* deeper section fill */
  --line:        #D3DBE3;   /* hairline on light */
  --line-strong: #B9C4CF;
  --line-dark:   rgba(255,255,255,.14);
  --white:       #FFFFFF;
  --off:         #FAFBFC;
  --steel:       #7E92A6;   /* muted steel — captions on dark */

  /* legacy aliases (so any leftover reference resolves to the navy system) */
  --slate: var(--navy); --slate-2: var(--navy-2); --sand: var(--paper-2);
  --clay: var(--navy); --clay-deep: var(--navy-deep); --clay-soft: #AFC0D1;

  /* ---- Type ---- */
  --display: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body:    "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* ---- Rhythm ---- */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 68px);
  --sp: clamp(74px, 10vw, 156px);
  --r: 4px;
  --r-lg: 6px;

  --shadow: 0 1px 0 rgba(15,21,27,.04);
  --shadow-lg: 0 26px 60px -34px rgba(15,27,41,.5);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.62;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
::selection { background: var(--navy); color: #fff; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sp); }

.eyebrow {
  font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .18em;
  text-transform: uppercase; color: var(--navy);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--navy); display: inline-block; }
.eyebrow.on-dark { color: #B7C6D6; }
.eyebrow.on-dark::before { background: var(--steel); }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; color: var(--ink); }
.display { font-size: clamp(2.7rem, 7vw, 5.4rem); line-height: .98; letter-spacing: -.035em; font-weight: 800; }
.h2 { font-size: clamp(1.95rem, 4.2vw, 3.3rem); letter-spacing: -.028em; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); letter-spacing: -.018em; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.28rem); color: var(--ink-soft); line-height: 1.55; font-weight: 400; }
.muted { color: var(--ink-soft); }

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; border-radius: var(--r); font-weight: 600; font-size: .95rem;
  letter-spacing: .01em; transition: background .28s var(--ease), color .28s, border-color .28s, transform .28s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--ink); }
.btn--primary:hover svg { transform: translateX(4px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--navy); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn--ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost.on-dark:hover { border-color: #fff; background: #fff; color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--ink); color: #fff; }
.btn--lg { padding: 18px 32px; font-size: 1.01rem; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono);
  font-size: .8rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--navy);
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.text-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* =========================================================================
   Header — flush bar, hides on scroll down
   ========================================================================= */
.topbar { display: none; }
/* Floating oval (pill) nav — hides on scroll down, shows on scroll up */
.site-head {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center; padding-inline: 14px; pointer-events: none;
  transition: transform .6s var(--ease), opacity .55s var(--ease);
}
.site-head.nav-hidden { transform: translateY(-12px); opacity: 0; }
.site-head.nav-hidden .wrap { pointer-events: none; }
.site-head .wrap {
  pointer-events: auto; width: min(1100px, 100%);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 18px;
  padding: 8px 8px 8px 22px;
  background: color-mix(in srgb, var(--white) 82%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.7); backdrop-filter: blur(20px) saturate(1.7);
  border: 1px solid rgba(18,30,45,.10); border-radius: 100px;
  box-shadow: 0 16px 44px -18px rgba(15,27,41,.45), inset 0 1px 0 rgba(255,255,255,.55);
  transition: background .3s, box-shadow .3s;
}
.site-head.scrolled .wrap { background: color-mix(in srgb, var(--white) 93%, transparent); box-shadow: 0 18px 52px -18px rgba(15,27,41,.52), inset 0 1px 0 rgba(255,255,255,.6); }
.nav { display: flex; align-items: center; justify-content: center; min-width: 0; }
.nav-links { display: flex; gap: 30px; }
/* smaller logo inside the floating nav only (footer logo unchanged) */
.site-head .logo { gap: 9px; justify-self: start; }
.site-head .logo-mark { width: 36px; height: auto; }
.site-head .logo-text .word { font-size: 1.16rem; letter-spacing: .12em; }
.site-head .logo-text .sub { font-size: .54rem; letter-spacing: .18em; }
.site-head .head-cta { justify-self: end; }
/* language toggle */
.lang { display: inline-flex; align-items: center; gap: 2px; background: rgba(18,40,62,.07); border: 1px solid rgba(18,40,62,.09); border-radius: 100px; padding: 3px; }
.lang button { font-family: var(--mono); font-size: .66rem; font-weight: 600; letter-spacing: .05em; padding: 5px 9px; border-radius: 100px; color: var(--ink-soft); transition: .2s var(--ease); }
.lang button:hover { color: var(--ink); }
.lang button.active { background: var(--navy); color: #fff; box-shadow: 0 2px 8px -3px rgba(21,41,62,.6); }
.nav-links a {
  font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-soft); position: relative; padding-block: 4px; transition: color .25s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--navy); transition: width .35s var(--ease); }
.nav-links a:hover::after { width: 100%; }
.head-cta { display: flex; align-items: center; gap: 10px; }
.head-cta .btn { padding: 11px 18px; font-size: .85rem; }

/* Logo — line house mark + wordmark + RAKENNUSYHTIÖ */
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.logo-mark { width: 46px; height: auto; flex: none; color: var(--navy); transform: translateY(-3px); }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .word { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 700; letter-spacing: .13em; font-size: 1.5rem; line-height: .92; color: var(--ink); }
.logo-text .sub { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; letter-spacing: .2em; font-size: .66rem; text-transform: uppercase; color: var(--ink-soft); margin-top: 1px; margin-left: 4px; }
/* legacy single-word logo support */
.logo .word b { color: var(--navy); }

/* Burger */
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s var(--ease); transform-origin: center; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   Hero — full-bleed real construction photo, dark
   ========================================================================= */
.hero {
  position: relative; min-height: clamp(680px, 96vh, 960px); display: flex; align-items: center;
  overflow: hidden; background: var(--navy-deep); text-align: center;
}
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,18,28,.58) 0%, rgba(10,18,28,.34) 45%, rgba(10,18,28,.7) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: clamp(170px, 22vw, 260px); padding-bottom: clamp(70px, 9vw, 120px); }
.hero-copy { max-width: 800px; margin-inline: auto; color: #fff; }
.hero h1 { color: #fff; margin: 0; }
.hero h1 em { font-style: normal; color: #fff; }
.hero .lead { margin: 24px auto 0; max-width: 600px; color: rgba(255,255,255,.88); }
.hero-cta { display: flex; gap: 12px; margin-top: 38px; flex-wrap: wrap; justify-content: center; }

/* trust strip under hero */
.hero-trust { background: var(--ink); color: #fff; }
.hero-trust ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-trust li {
  display: flex; align-items: center; gap: 12px; padding: 22px clamp(16px, 2.5vw, 34px);
  font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.82);
  border-left: 1px solid rgba(255,255,255,.1);
}
.hero-trust li:first-child { border-left: none; }
.hero-trust li svg { width: 20px; height: 20px; color: var(--steel); flex: none; }
.hero-trust li b { color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }

/* =========================================================================
   Section heading block
   ========================================================================= */
.sec-head { max-width: 760px; margin-bottom: clamp(38px, 5vw, 60px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head h2 { margin-top: 18px; }
.sec-head p { margin-top: 20px; }

/* =========================================================================
   About (Tietoa)
   ========================================================================= */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.about-figure { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-figure figcaption { position: absolute; left: 16px; bottom: 14px; color: #fff; font-family: var(--mono); font-size: .72rem; letter-spacing: .03em; text-transform: uppercase; z-index: 2; }
.about-figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(10,18,28,.6)); }
.about-copy p { margin-top: 18px; color: var(--ink-soft); }
.about-stats { display: flex; flex-wrap: wrap; gap: 20px 40px; margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.about-stats .st .n { font-family: var(--display); font-weight: 800; font-size: 2.3rem; line-height: 1; color: var(--navy); letter-spacing: -.02em; }
.about-stats .st .l { font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }

/* =========================================================================
   Services (Palvelut)
   ========================================================================= */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: var(--paper); padding: 24px 26px; display: flex; gap: 16px; align-items: flex-start; transition: background .3s; }
.service:hover { background: var(--navy); }
.service .s-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--r); transition: .35s var(--ease); }
.service .s-ic svg { width: 22px; height: 22px; color: var(--navy); transition: .35s; }
.service:hover .s-ic { border-color: rgba(255,255,255,.32); }
.service:hover .s-ic svg { color: #fff; }
.service h3 { font-size: 1.12rem; font-weight: 700; transition: color .3s; }
.service:hover h3 { color: #fff; }
.service p { margin-top: 6px; font-size: .9rem; color: var(--ink-soft); line-height: 1.5; transition: color .3s; }
.service:hover p { color: rgba(255,255,255,.78); }
.services-note { margin-top: 24px; font-family: var(--mono); font-size: .76rem; letter-spacing: .02em; color: var(--ink-soft); }

/* =========================================================================
   Testimonials carousel
   ========================================================================= */
.reviews { display: flex; align-items: center; gap: 18px; max-width: 1000px; margin-inline: auto; }
.rev-viewport { overflow: hidden; flex: 1; }
.rev-track { display: flex; transition: transform .5s var(--ease); }
.rev-slide { flex: 0 0 100%; min-width: 0; padding: clamp(30px, 3.6vw, 52px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); }
.rev-slide blockquote { position: relative; font-size: clamp(1.12rem, 1.9vw, 1.5rem); font-weight: 500; line-height: 1.5; letter-spacing: -.012em; color: var(--ink); padding-top: 30px; }
.rev-slide blockquote::before { content: "\201C"; position: absolute; left: -4px; top: 4px; font-family: Georgia, "Times New Roman", serif; font-size: 3.4rem; line-height: 1; color: var(--line-strong); }
.rev-slide blockquote::after { content: "\201D"; font-family: Georgia, "Times New Roman", serif; font-size: 2.1rem; line-height: 0; vertical-align: -.5em; margin-left: 3px; color: var(--line-strong); }
.rev-slide figcaption { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.rev-av { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: .82rem; letter-spacing: .03em; flex: none; }
.rev-id { display: flex; flex-direction: column; }
.rev-id b { font-weight: 700; font-size: 1.02rem; }
.rev-city { font-family: var(--mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.rev-arrow { width: 46px; height: 46px; flex: none; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: var(--navy); background: var(--white); transition: .25s var(--ease); }
.rev-arrow:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.rev-arrow svg { width: 20px; height: 20px; }
.rev-dots { display: flex; justify-content: center; gap: 9px; margin-top: 30px; }
.rev-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); transition: .25s var(--ease); }
.rev-dot.active { background: var(--navy); transform: scale(1.3); }

/* =========================================================================
   Works (Työmme) — horizontal swipeable carousel
   ========================================================================= */
.works-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(28px, 4vw, 44px); }
.works-head .lead { margin-top: 16px; max-width: 620px; }
.works-ctrl { display: flex; gap: 10px; flex: none; }
.works-carousel {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding-inline: var(--gutter); padding-block: 4px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.works-carousel::-webkit-scrollbar { display: none; }
.work-slide {
  flex: 0 0 clamp(280px, 40vw, 460px); scroll-snap-align: start; position: relative;
  aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-strong);
}
.work-slide img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.work-slide:hover img { transform: scale(1.04); }
.work-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 48%, rgba(10,18,28,.74)); }
.work-slide figcaption { position: absolute; left: 16px; bottom: 14px; right: 14px; z-index: 2; color: #fff; font-family: var(--mono); font-size: .74rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1.4; }
.work-slide img { cursor: zoom-in; }

/* Lightbox for the works gallery */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(8,14,20,.92); display: none; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .3s var(--ease); }
.lightbox.show { display: flex; opacity: 1; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: 6px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.lb-close { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.9rem; line-height: 1; color: #fff; background: rgba(255,255,255,.12); border-radius: 50%; transition: background .2s; }
.lb-close:hover { background: rgba(255,255,255,.24); }

/* =========================================================================
   "Why us" strengths grid
   ========================================================================= */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pillar { background: var(--paper); padding: clamp(26px, 2.6vw, 38px); transition: background .3s; }
.pillar:hover { background: var(--white); }
.pillar .pic { width: 48px; height: 48px; border-radius: var(--r); background: var(--paper-2); display: grid; place-items: center; margin-bottom: 22px; transition: .35s var(--ease); }
.pillar .pic svg { width: 24px; height: 24px; color: var(--navy); transition: .35s var(--ease); }
.pillar:hover .pic { background: var(--navy); }
.pillar:hover .pic svg { color: #fff; }
.pillar h3 { font-size: 1.28rem; font-weight: 700; }
.pillar p { margin-top: 12px; font-size: .96rem; color: var(--ink-soft); line-height: 1.55; }

/* =========================================================================
   Dark band (generic)
   ========================================================================= */
.band-dark { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .muted { color: rgba(255,255,255,.66); }
.band-dark::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 58px 58px;
}
.band-dark .wrap { position: relative; z-index: 1; }

/* =========================================================================
   Process steps
   ========================================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px 0; counter-reset: step; }
.step { padding: 30px 28px 30px 0; position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--display); font-weight: 800; font-size: 1.1rem; color: var(--navy); display: block; margin-bottom: 18px;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 18px; width: 100%; letter-spacing: -.01em;
}
.step h3 { font-size: 1.18rem; font-weight: 700; }
.step p { margin-top: 10px; font-size: .94rem; color: var(--ink-soft); }
.step .when { display: inline-block; margin-top: 14px; font-family: var(--mono); font-size: .68rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); border: 1px solid var(--line-strong); padding: 4px 10px; }

/* =========================================================================
   Products (Tuotteet) — secondary section, dark cards
   ========================================================================= */
.lines { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.line-card {
  background: var(--navy); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: .4s var(--ease);
}
.line-card.primary { background: var(--navy-2); border-color: rgba(255,255,255,.18); }
.line-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.32); }
.lc-media { aspect-ratio: 3/2; overflow: hidden; background: var(--navy-deep); }
.lc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--ease); }
.line-card:hover .lc-media img { transform: scale(1.05); }
.lc-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.line-card .lc-tag { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); font-weight: 500; }
.line-card h3 { font-size: 1.5rem; font-weight: 700; color: #fff; }
.line-card p { font-size: .95rem; color: rgba(255,255,255,.8); flex: 1; line-height: 1.5; }
.lc-fact { margin-top: 2px; font-family: var(--display); font-weight: 700; font-size: 1rem; color: #fff; line-height: 1.3; }
.swatches { display: flex; align-items: center; gap: 9px; }
.swatches .sw { width: 30px; height: 30px; border-radius: var(--r); background-size: cover; background-position: center; border: 1px solid rgba(255,255,255,.28); }
.swatches .sw-label { font-family: var(--mono); font-size: .66rem; letter-spacing: .02em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.line-card .lc-link { margin-top: auto; padding-top: 6px; font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.line-card .lc-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.line-card:hover .lc-link svg { transform: translateX(4px); }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band { background: var(--navy); color: #fff; border-radius: var(--r-lg); padding: clamp(40px, 5vw, 72px); position: relative; overflow: hidden; text-align: center; }
.cta-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.cta-band .wrap-in { position: relative; z-index: 1; max-width: 680px; margin-inline: auto; }
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: 18px; color: rgba(255,255,255,.86); font-size: 1.08rem; }
.cta-band .btn { margin-top: 32px; }
.cta-band .micro { margin-top: 18px; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* =========================================================================
   Contact (Yhteys)
   ========================================================================= */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(36px, 5vw, 72px); }
.contact-people { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cp { background: var(--paper); padding: 24px 26px; }
.cp .role { font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.cp .name { font-family: var(--display); font-weight: 700; font-size: 1.18rem; margin-top: 6px; }
.cp a { display: block; margin-top: 8px; color: var(--navy); font-weight: 600; font-size: .96rem; }
.contact-meta { margin-top: 26px; font-size: .96rem; color: var(--ink-soft); line-height: 1.7; }
.contact-meta b { color: var(--ink); }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 5vw, 84px); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; text-align: left; font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.faq-q .pm { flex: none; width: 24px; height: 24px; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: .3s var(--ease); position: relative; }
.faq-q .pm::before, .faq-q .pm::after { content:""; position:absolute; background: var(--ink); transition: .3s var(--ease); }
.faq-q .pm::before { width: 11px; height: 1.8px; }
.faq-q .pm::after { width: 1.8px; height: 11px; }
.faq-item.open .faq-q .pm { background: var(--navy); border-color: var(--navy); }
.faq-item.open .faq-q .pm::before, .faq-item.open .faq-q .pm::after { background: #fff; }
.faq-item.open .faq-q .pm::after { transform: scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 0 26px; color: var(--ink-soft); max-width: 62ch; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.7); padding-top: clamp(60px, 7vw, 96px); }
.footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .logo { color: #fff; }
.footer .logo-mark { color: #fff; }
.footer .logo-text .word { color: #fff; }
.footer .logo-text .sub { color: rgba(255,255,255,.55); }
.footer .logo .word b { color: #fff; }
.foot-about { max-width: 330px; font-size: .92rem; line-height: 1.6; margin-top: 22px; }
.foot-col h4 { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 20px; font-weight: 500; }
.foot-col ul { display: flex; flex-direction: column; gap: 11px; font-size: .94rem; }
.foot-contact b { color: #fff; font-weight: 600; }
.foot-contact .person { margin-bottom: 14px; font-size: .92rem; line-height: 1.5; }
.foot-bottom { margin-top: clamp(50px, 6vw, 84px); border-top: 1px solid var(--line-dark); padding-block: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: .72rem; letter-spacing: .02em; color: rgba(255,255,255,.5); }

/* =========================================================================
   Floating contact button (FAB) — appears on scroll, opens the quote popup
   ========================================================================= */
.fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 21px; border-radius: 100px;
  background: var(--navy); color: #fff; font-weight: 600; font-size: .92rem; letter-spacing: .01em;
  transform: translateY(150%); opacity: 0; pointer-events: none;
  transition: transform .4s var(--ease), opacity .35s var(--ease), background .25s;
}
.fab.show { transform: none; opacity: 1; pointer-events: auto; }
.fab:hover { background: var(--ink); transform: translateY(-2px); }
.fab svg { width: 19px; height: 19px; }
@media (max-width: 560px) { .fab { right: 14px; bottom: 14px; padding: 12px 17px; font-size: .86rem; } }

/* =========================================================================
   Quiz modal
   ========================================================================= */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(10,16,22,.6); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 20px; opacity: 0; transition: opacity .3s; }
.modal-overlay.show { display: flex; opacity: 1; }
.modal {
  background: var(--paper); border-radius: var(--r-lg); width: 100%; max-width: 600px; max-height: 92vh; overflow: hidden;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); transition: transform .35s var(--ease); display: flex; flex-direction: column;
}
.modal-overlay.show .modal { transform: none; }
.modal-head { padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.modal-head .mh-title { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; }
.modal-head .mh-step { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--ink-soft); }
.modal-close { width: 36px; height: 36px; border-radius: var(--r); display: grid; place-items: center; transition: background .25s; }
.modal-close:hover { background: var(--paper-2); }
.modal-close svg { width: 18px; height: 18px; }
.progress { height: 3px; background: var(--paper-2); }
.progress-bar { height: 100%; background: var(--navy); width: 16.6%; transition: width .4s var(--ease); }
.modal-body { padding: 32px 26px; overflow-y: auto; }
.q-step { display: none; animation: fade .4s var(--ease); }
.q-step.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.q-step h3 { font-size: 1.5rem; font-weight: 800; }
.q-step .q-hint { color: var(--ink-soft); margin-top: 9px; font-size: .94rem; }
.opts { display: grid; gap: 10px; margin-top: 26px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt {
  border: 1px solid var(--line-strong); border-radius: var(--r); padding: 16px 18px; text-align: left; font-weight: 500; font-size: .98rem;
  transition: .25s var(--ease); display: flex; align-items: center; gap: 13px; background: var(--white);
}
.opt:hover { border-color: var(--ink); }
.opt.sel { border-color: var(--navy); background: #E8EEF4; }
.opt .ck { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; display: grid; place-items: center; transition: .25s; }
.opt.sel .ck { background: var(--navy); border-color: var(--navy); }
.opt.sel .ck::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.modal-foot { padding: 20px 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 500; margin-bottom: 8px; color: var(--ink-soft); }
.field input { width: 100%; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--white); font: inherit; transition: border-color .25s; }
.field input:focus { outline: none; border-color: var(--navy); }
.consent { display: flex; gap: 10px; font-size: .82rem; color: var(--ink-soft); margin-top: 8px; align-items: flex-start; }
.consent input { margin-top: 3px; }
.q-done { text-align: center; padding: 20px 0; }
.q-done .check { width: 64px; height: 64px; border-radius: 50%; background: #E8EEF4; display: grid; place-items: center; margin: 0 auto 22px; }
.q-done .check svg { width: 32px; height: 32px; color: var(--navy); }

/* =========================================================================
   Cookie banner
   ========================================================================= */
.cookie {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 180; max-width: 540px; margin-inline: auto;
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 24px 26px; transform: translateY(160%); transition: transform .5s var(--ease);
}
.cookie.show { transform: none; }
.cookie h4 { font-family: var(--display); font-weight: 800; font-size: 1.24rem; margin-bottom: 8px; }
.cookie p { font-size: .9rem; color: var(--ink-soft); line-height: 1.5; }
.cookie p a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.cookie-btns { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.cookie-btns .btn { flex: 1; min-width: 150px; padding: 13px 20px; font-size: .9rem; }
@media (max-width: 560px) { .cookie { left: 12px; right: 12px; bottom: 12px; padding: 20px; } .cookie-btns .btn { flex-basis: 100%; } }

/* =========================================================================
   Legal / prose page
   ========================================================================= */
.legal-hero { padding-top: clamp(112px, 14vw, 146px); padding-bottom: clamp(26px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.legal-hero .eyebrow { margin-bottom: 18px; }
.legal-hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.04; letter-spacing: -.025em; }
.legal-hero .upd { margin-top: 16px; font-family: var(--mono); font-size: .76rem; letter-spacing: .02em; color: var(--ink-soft); }
.legal { max-width: 760px; margin-inline: auto; padding-block: clamp(40px, 6vw, 72px); }
.legal h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.35rem, 2.6vw, 1.9rem); margin: 46px 0 14px; letter-spacing: -.02em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin: 24px 0 8px; font-weight: 700; }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.7; }
.legal p { margin-bottom: 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; list-style: disc; }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--navy); text-decoration: underline; }
.legal strong { color: var(--ink); }
.legal .note { background: var(--paper-2); border-left: 3px solid var(--navy); padding: 16px 20px; border-radius: var(--r); font-size: .9rem; margin: 18px 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-size: .94rem; }
.legal th, .legal td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); }
.legal th { color: var(--ink); font-weight: 700; width: 40%; padding-right: 18px; }

/* =========================================================================
   Scroll reveal
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; } .reveal.d4 { transition-delay: .28s; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1080px) {
  .about, .faq-wrap, .contact { grid-template-columns: 1fr; }
  .about-figure { aspect-ratio: 16/9; max-height: 420px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .lines { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 880px) {
  .hero-trust ul { grid-template-columns: repeat(2, 1fr); }
  .hero-trust li:nth-child(3) { border-left: none; }
  .hero-trust li { border-top: 1px solid rgba(255,255,255,.1); }
  .hero-trust li:nth-child(1), .hero-trust li:nth-child(2) { border-top: none; }
}
@media (max-width: 760px) {
  :root { --sp: clamp(48px, 11vw, 74px); }
  body { font-size: 16px; }
  .head-cta .btn { display: none; }
  .burger { display: flex; }
  /* drop backdrop-filter on mobile: it would make the fixed drawer relative to the pill */
  .site-head .wrap { padding-block: 12px; -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(250,251,253,.92); }
  .site-head.scrolled .wrap { background: rgba(250,251,253,.97); }
  /* dropdown panel sliding down from the navbar */
  .nav-links {
    display: flex; position: fixed; top: 70px; left: 14px; right: 14px;
    flex-direction: column; gap: 6px; align-items: stretch; margin: 0; padding: 10px;
    background: #fff; border: 1px solid var(--line); border-radius: 22px;
    box-shadow: 0 26px 56px -26px rgba(15,27,41,.42);
    transform: translateY(-14px) scale(.985); transform-origin: top center; opacity: 0; pointer-events: none;
    transition: transform .34s var(--ease), opacity .26s var(--ease);
    z-index: 95;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--body); font-size: 1.02rem; font-weight: 600; letter-spacing: 0; text-transform: none;
    color: var(--ink); padding: 15px 18px; border-radius: 13px; background: var(--paper);
    transition: background .2s var(--ease), color .2s, transform .32s var(--ease), opacity .3s var(--ease);
    transform: translateY(9px); opacity: 0;
  }
  .nav-links a:hover, .nav-links a:active { background: var(--navy); color: #fff; }
  .nav-links a::after {
    content: "\203A"; position: static; width: auto; height: auto; background: none;
    font-family: var(--body); font-size: 1.25rem; line-height: 1; color: var(--ink-soft); opacity: .55;
    transition: transform .2s var(--ease), color .2s, opacity .2s;
  }
  .nav-links a:hover::after, .nav-links a:active::after { color: #fff; opacity: 1; transform: translateX(3px); }
  .nav-links.open a { transform: none; opacity: 1; }
  .nav-links.open li:nth-child(1) a { transition-delay: .05s; }
  .nav-links.open li:nth-child(2) a { transition-delay: .09s; }
  .nav-links.open li:nth-child(3) a { transition-delay: .13s; }
  .nav-links.open li:nth-child(4) a { transition-delay: .17s; }
  .nav-links.open li:nth-child(5) a { transition-delay: .21s; }
  .services, .steps, .lines, .pillars, .contact-people { grid-template-columns: 1fr; }
  .lines { gap: 14px; }
  .reviews { gap: 0; }
  .rev-arrow { display: none; }
  .rev-slide { padding: 26px 22px; }
  .rev-slide blockquote { font-size: 1.08rem; padding-top: 26px; }
  .works { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .work.w-big, .work.w-wide, .work.w-half { grid-column: span 2; }
  .work.w-big { grid-row: span 1; }
  .work.w-tall { grid-row: span 1; }
  .sec-head { margin-bottom: 30px; }
  .hero { min-height: 580px; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); }
  .hero-cta { flex-direction: column; align-items: stretch; margin-top: 30px; }
  .hero-cta .btn { width: 100%; }
  .step { padding: 22px 0; }
  .lc-media { aspect-ratio: 16/10; }
  .lc-body { padding: 20px 20px 22px; }
  .service { padding: 26px 22px; }
  .pillar { padding: 26px 22px; }
  .about-stats .st .n { font-size: 2rem; }
  .legal th { width: 100%; display: block; padding-bottom: 2px; }
  .legal td { display: block; padding-top: 4px; padding-bottom: 14px; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
  .cta-band { padding: 34px 22px; }
  .works { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .work.w-big, .work.w-wide, .work.w-half { grid-column: span 1; }
}
@media (max-width: 430px) {
  .foot-grid { grid-template-columns: 1fr; }
  .hero-trust ul { grid-template-columns: 1fr; }
  .hero-trust li { border-left: none; }
  .display { font-size: clamp(2.3rem, 13vw, 3rem); }
  .btn { padding: 15px 20px; font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
