﻿:root {
  --ink: #07101b;
  --muted: #526071;
  --line: #dbe3ee;
  --soft: #f4f7fb;
  --panel: #ffffff;
  --dark: #080f18;
  --accent: #6246ff;
  --accent-2: #16a3ff;
  --shadow: 0 24px 70px rgba(7, 16, 27, .13);
  --shadow-soft: 0 16px 45px rgba(7, 16, 27, .09);
}

.product-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-overview-grid figure,
.valamu-panel figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
}

.product-overview-grid img {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: cover;
  background: #eef2f7;
}

.product-overview-grid figcaption,
.valamu-panel figcaption {
  padding: 12px 14px;
  font-weight: 800;
  color: #26364d;
}

.valamu-collection {
  display: grid;
  gap: 28px;
}

.valamu-block {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.valamu-block h3 {
  margin: 0 0 18px;
  font-size: clamp(1.65rem, 3vw, 2.4rem);
}

.valamu-stage-grid {
  display: grid;
  grid-template-columns: minmax(240px, .85fr) minmax(0, 1.12fr) minmax(0, 1.2fr);
  gap: 16px;
  align-items: start;
}

.valamu-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.valamu-panel h4 {
  margin: 0;
  padding: 14px 16px;
  color: #111827;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.valamu-product-panel img {
  width: 100%;
  height: 340px;
  display: block;
  object-fit: cover;
  background: #eef2f7;
}

.valamu-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.valamu-image-grid img {
  width: 100%;
  height: 148px;
  display: block;
  object-fit: contain;
  background: #d1d5db;
}

@media (max-width: 1100px) {
  .product-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .valamu-stage-grid {
    grid-template-columns: 1fr;
  }

  .valamu-product-panel img {
    height: 280px;
  }
}

@media (max-width: 640px) {
  .product-overview-grid,
  .valamu-image-grid {
    grid-template-columns: 1fr;
  }

  .product-overview-grid img,
  .valamu-product-panel img,
  .valamu-image-grid img {
    height: 220px;
  }

  .valamu-block {
    padding: 16px;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

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

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

.top-note {
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  text-align: center;
  padding: 13px 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1460px, calc(100% - 48px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  width: 172px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 800;
}

.nav-links a[aria-current="page"] {
  color: var(--accent);
}

.quote-btn,
.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 7px;
  padding: 0 23px;
  font-weight: 900;
  border: 1px solid transparent;
  max-width: 100%;
  text-align: center;
}

.quote-btn {
  color: #fff;
  background: var(--dark);
}

.primary-btn {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 18px 38px rgba(98, 70, 255, .24);
}

.ghost-btn {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.shell {
  width: min(1460px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 610px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #fff 0%, #fff 36%, rgba(255,255,255,.76) 48%, rgba(255,255,255,.08) 66%, rgba(255,255,255,0) 100%);
}

.hero .shell {
  position: relative;
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(360px, 510px) 1fr;
  align-items: center;
  gap: 52px;
}

.hero-media {
  position: absolute;
  inset: 24px 0 24px 44%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #d9e0e8;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  animation: heroFade 24s infinite;
}

.hero-media img:nth-child(2) { animation-delay: 6s; }
.hero-media img:nth-child(3) { animation-delay: 12s; }
.hero-media img:nth-child(4) { animation-delay: 18s; }

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, #fff 0%, rgba(255,255,255,.96) 14%, rgba(255,255,255,.62) 30%, rgba(255,255,255,.16) 48%, rgba(255,255,255,0) 66%),
    linear-gradient(0deg, rgba(7,16,27,.16), rgba(7,16,27,0) 42%);
  pointer-events: none;
}

@keyframes heroFade {
  0%, 23% { opacity: 1; transform: scale(1); }
  28%, 95% { opacity: 0; transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 70px 0;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .15em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(46px, 5vw, 82px);
  line-height: .98;
  letter-spacing: 0;
}

.hero-copy > p {
  color: #243244;
  font-size: 19px;
  line-height: 1.65;
  max-width: 610px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.quick-fact {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: center;
}

.quick-fact .icon,
.mini-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: #f0edff;
  font-weight: 900;
}

.quick-fact strong {
  display: block;
  font-size: 14px;
}

.quick-fact span {
  color: var(--muted);
  font-size: 12px;
}

.metric-strip {
  background: var(--dark);
  color: #fff;
}

.metric-grid {
  width: min(1460px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric-grid.five-metrics {
  grid-template-columns: repeat(5, 1fr);
}

.metric-grid.six-metrics {
  grid-template-columns: repeat(6, 1fr);
}

.metric {
  min-height: 92px;
  padding: 22px 28px;
  border-left: 1px solid rgba(255,255,255,.18);
}

.metric:last-child {
  border-right: 1px solid rgba(255,255,255,.18);
}

.metric small {
  display: block;
  color: #91a8ff;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
}

.metric span {
  font-size: 14px;
}

.section {
  padding: 78px 0;
}

.saesaare-context-gallery {
  padding: 28px 0 44px;
}

.section.soft {
  background: var(--soft);
}

.section-head {
  max-width: 850px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-head h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
}

.section-head p,
.lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.project-card,
.info-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 42px rgba(7,16,27,.06);
}

.service-card {
  display: grid;
  grid-template-columns: 1fr 180px;
  min-height: 210px;
}

.service-card .copy {
  padding: 28px;
}

.service-card h3,
.project-card h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.13;
}

.service-card p,
.project-card p,
.info-card p,
.detail-list li {
  color: var(--muted);
  line-height: 1.55;
}

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

.arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 900;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project-card img {
  width: 100%;
  height: 310px;
  object-fit: cover;
}

.project-card .copy {
  padding: 28px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 0;
}

.tag {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  color: #344055;
  background: #fff;
}

a.tag {
  text-decoration: none;
}

a.tag:hover,
a.tag:focus-visible {
  border-color: rgba(98, 70, 255, .32);
  color: var(--accent);
}

a.tag:focus-visible {
  outline-offset: 4px;
}

.tag .glossary-term {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-weight: inherit;
}

.tag .glossary-term:focus-visible {
  outline-offset: 4px;
}

.project-hero {
  padding: 42px 0 0;
  background: linear-gradient(90deg, #090f18 0%, #182231 38%, #edf2f8 100%);
  color: #fff;
}

.kuivati-hero-spacing {
  padding-top: 78px;
}

.project-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 800;
}

.project-breadcrumb a {
  color: #fff;
}

.project-breadcrumb a:hover {
  color: #d8d1ff;
}

.project-hero-grid {
  display: grid;
  grid-template-columns: minmax(350px, 390px) minmax(500px, 1fr) minmax(320px, 360px);
  gap: 28px;
  align-items: center;
  padding-bottom: 28px;
}

.laevarakised-hero .project-hero-grid {
  grid-template-columns: minmax(350px, 390px) minmax(500px, 1fr) minmax(400px, 440px);
}

.laevarakised-hero .resource-row {
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 12px;
}

.laevarakised-hero .resource-row img {
  width: 170px;
  height: 126px;
}

.lift-report-hero {
  padding-top: 34px;
}

.lift-report-hero .project-hero-grid {
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding-bottom: 22px;
}

.lift-report-page .project-title h1 {
  font-size: clamp(34px, 2.75vw, 50px);
  line-height: 1.06;
}

.lift-hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 10px;
  height: clamp(360px, 35vw, 455px);
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #0b121d;
  box-shadow: var(--shadow);
}

.lift-hero-collage figure {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #111a25;
}

.lift-hero-collage img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.lift-hero-collage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7,16,27,.24), rgba(7,16,27,.02) 48%, rgba(7,16,27,.16));
}

.lift-report-page .hero-summary-cards {
  padding-bottom: 18px;
}

.compact-project-page .section {
  padding: 48px 0;
}

.compact-project-page .component-block {
  padding: 48px 0;
}

.compact-project-page .component-block.compact-component {
  padding: 44px 0;
}

.lift-report-page .split {
  gap: 26px;
  align-items: center;
}

.lift-report-page .split .saesaare-dual-image img {
  height: 245px;
  object-fit: cover;
}

.lift-report-page .related-section,
.lift-report-page .related-knowledge-section,
.lift-report-page .project-cta-section {
  padding-top: 42px;
  padding-bottom: 42px;
}

.project-title h1 {
  color: #fff;
  font-size: clamp(38px, 3.4vw, 58px);
}

.long-title-hero .project-title h1 {
  font-size: clamp(31px, 2.25vw, 42px);
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
}

.project-title,
.hero-photo,
.side-materials {
  min-width: 0;
}

.project-title p {
  color: rgba(255,255,255,.88);
  line-height: 1.55;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 9px 14px;
  margin-bottom: 18px;
  background: #fff;
  color: var(--accent);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}

.hero-badges .pill {
  margin-bottom: 0;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #101820;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.hero-gallery-link {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(205, 214, 227, .88);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(7, 16, 27, .18);
}

.hero-gallery-link:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.hero-media-links {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.hero-media-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(205, 214, 227, .88);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(7, 16, 27, .18);
}

.hero-media-links a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.contain-hero .hero-photo img {
  object-fit: contain;
  background: #07101b;
}

.contain-hero .hero-photo::after {
  background: linear-gradient(90deg, rgba(7,16,27,.28), rgba(7,16,27,.04) 54%, rgba(7,16,27,.12));
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7,16,27,.62), rgba(7,16,27,.10) 50%, rgba(7,16,27,.18));
  pointer-events: none;
}

.hero-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 26px;
}

.hero-summary-cards article,
.hero-summary-cards .summary-card {
  padding: 19px 20px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(7, 16, 27, .16);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.hero-summary-cards .summary-card:hover {
  transform: translateY(-2px);
  border-color: rgba(98, 70, 255, .28);
  box-shadow: 0 20px 42px rgba(7, 16, 27, .20);
}

.hero-summary-cards span {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-summary-cards span::before {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: rgba(98, 70, 255, .10);
}

.hero-summary-cards p {
  margin: 0;
  color: #344055;
  line-height: 1.55;
}

.side-materials {
  display: grid;
  gap: 10px;
}

.kuivati-hero-spacing .side-materials {
  align-self: center;
}

.side-materials h3 {
  margin: 0;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.resource-row {
  display: grid;
  grid-template-columns: 1fr 132px;
  gap: 10px;
  align-items: stretch;
}

.resource-row .resource-copy {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  color: var(--ink);
}

.resource-row img {
  width: 132px;
  height: 92px;
  object-fit: cover;
  border-radius: 8px;
}

.saesaare-page .side-materials .resource-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  height: 132px;
  min-height: 132px;
  max-height: 132px;
}

.saesaare-page .side-materials .resource-row img {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 132px;
  align-self: stretch;
}

.saesaare-page .side-materials .resource-row .resource-copy {
  min-height: 0;
  height: 100%;
  max-height: 132px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.saesaare-page .side-materials .resource-row .resource-copy strong {
  line-height: 1.15;
}

.saesaare-page .side-materials .resource-row .resource-copy p {
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.15;
}

.saesaare-feature-gallery {
  display: grid;
  grid-template-columns: minmax(360px, .48fr) minmax(0, .52fr);
  gap: 32px;
  align-items: stretch;
}

.saesaare-feature-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  min-height: 520px;
}

.saesaare-feature-copy {
  min-width: 0;
}

.saesaare-feature-media {
  min-width: 0;
}

.saesaare-feature-stage {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #07101b;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.saesaare-feature-stage img {
  display: block;
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: opacity .28s ease;
}

.saesaare-feature-stage img.is-fading {
  opacity: .14;
}

.saesaare-feature-stage figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,.90);
  color: var(--ink);
  font-weight: 850;
}

.saesaare-feature-stage figcaption span {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .08em;
}

.saesaare-feature-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.saesaare-feature-thumbs button {
  display: grid;
  gap: 7px;
  padding: 7px;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: #243149;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(9,18,32,.08);
}

.saesaare-feature-thumbs button.is-active {
  border-color: var(--accent);
}

.saesaare-feature-thumbs img {
  width: 100%;
  height: 86px;
  object-fit: cover;
  border-radius: 6px;
}

.saesaare-feature-thumbs span {
  font-size: 12px;
  line-height: 1.25;
}

.saesaare-dual-image {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.saesaare-dual-image figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.split .saesaare-dual-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}

.saesaare-dual-image figcaption {
  padding: 12px 14px;
  color: #344055;
  font-weight: 850;
}

.saesaare-lightbox-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lightbox .saesaare-lightbox-controls button {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: rgba(7,16,27,.72);
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  pointer-events: auto;
  transform: translateY(-50%);
}

.lightbox .saesaare-lightbox-controls [data-saesaare-lightbox-prev] {
  left: 28px;
}

.lightbox .saesaare-lightbox-controls [data-saesaare-lightbox-next] {
  right: 28px;
}

@media (max-width: 1100px) {
  .saesaare-feature-gallery {
    grid-template-columns: 1fr;
  }

  .saesaare-feature-left {
    min-height: auto;
  }

  .saesaare-feature-stage img {
    height: 380px;
  }

  .saesaare-page .side-materials .resource-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .saesaare-page .side-materials .resource-row img {
    width: 100%;
    min-height: 0;
    max-height: 132px;
  }
}

@media (max-width: 640px) {
  .saesaare-page .side-materials .resource-row {
    grid-template-columns: 1fr;
  }

  .saesaare-page .side-materials .resource-row img {
    height: 170px;
    min-height: 170px;
  }

  .saesaare-page .side-materials .resource-row .resource-copy {
    min-height: 0;
  }

  .saesaare-feature-thumbs,
  .saesaare-dual-image {
    grid-template-columns: 1fr;
  }

  .saesaare-feature-stage img,
  .split .saesaare-dual-image img {
    height: 260px;
  }

  .saesaare-feature-stage figcaption {
    align-items: flex-start;
    flex-direction: column;
  }

  .lightbox .saesaare-lightbox-controls button {
    width: 42px;
    height: 42px;
  }

  .lightbox .saesaare-lightbox-controls [data-saesaare-lightbox-prev] {
    left: 14px;
  }

  .lightbox .saesaare-lightbox-controls [data-saesaare-lightbox-next] {
    right: 14px;
  }
}

.mini-num {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  margin-bottom: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: #f0edff;
  color: var(--accent);
  font-weight: 950;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.info-card {
  padding: 30px;
}

.info-card h2,
.info-card h3 {
  font-size: 28px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.gallery img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.gallery figcaption {
  padding: 13px 15px;
  color: #344055;
  font-weight: 850;
}

.gallery.featured-order figure:first-child {
  grid-column: span 2;
}

.gallery.featured-order figure:first-child img {
  height: 320px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}

.image-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.inline-report-note {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.inline-report-note h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.15;
}

.report-fade-gallery {
  cursor: zoom-in;
}

.report-fade-stage {
  position: relative;
  overflow: hidden;
  height: clamp(300px, 29vw, 420px);
  background: #eef3f8;
}

.report-fade-stage .report-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  opacity: 0;
  animation: reportFade 10s ease-in-out infinite;
}

.report-fade-stage .slide-one {
  opacity: 1;
}

.report-fade-stage .slide-two {
  animation-delay: 5s;
}

.report-fade-gallery figcaption {
  padding: 14px 16px 16px;
  color: #263449;
  font-size: 14px;
  font-weight: 850;
}

.dual-fade-gallery {
  cursor: zoom-in;
}

.dual-fade-stage {
  position: relative;
  overflow: hidden;
  height: clamp(330px, 32vw, 470px);
  background: #eef3f8;
}

.dual-fade-stage .dual-fade-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
  animation: reportFade 10s ease-in-out infinite;
}

.dual-fade-stage .slide-two {
  animation-delay: 5s;
}

.a1-compact-page .section {
  padding: 52px 0;
}

.a1-compact-page .metric {
  min-height: 74px;
  padding: 15px 20px;
}

.a1-compact-page .metric small {
  margin-bottom: 5px;
}

.a1-compact-page .metric strong {
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.15;
}

.a1-compact-page .metric span {
  margin-top: 4px;
}

.a1-compact-page .side-materials .resource-row {
  grid-template-columns: 1fr;
}

.a1-compact-page #kirjeldus .detail-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.a1-compact-page #kirjeldus .info-card,
.a1-compact-page #tulemus .info-card {
  padding: 24px;
}

.a1-work-block {
  padding-top: 48px;
  padding-bottom: 48px;
}

.a1-work-block .compact-work-panel {
  grid-template-columns: minmax(340px, .85fr) minmax(0, 1.15fr);
  align-items: center;
}

.a1-work-block .solid-model-copy {
  padding: 26px;
}

.a1-work-block .solid-model-images img {
  height: 250px;
}

.a1-compact-page .related-section,
.a1-compact-page .related-knowledge-section,
.a1-compact-page .project-cta-section {
  padding-top: 44px;
  padding-bottom: 44px;
}

.a1-compact-page .project-nav-section {
  padding-bottom: 14px;
}

.a1-compact-page .section-head {
  margin-bottom: 24px;
}

@media (max-width: 980px) {
  .a1-compact-page #kirjeldus .detail-grid,
  .a1-work-block .compact-work-panel {
    grid-template-columns: 1fr;
  }

  .a1-work-block .solid-model-images img {
    height: 260px;
  }
}

@media (max-width: 640px) {
  .a1-compact-page .section {
    padding: 38px 0;
  }

  .a1-compact-page .metric {
    min-height: 0;
    padding: 14px 16px;
  }
}

@keyframes reportFade {
  0%, 42% {
    opacity: 1;
  }

  50%, 92% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.laevarakised-execution {
  padding: 46px 0;
}

.laevarakised-execution-grid {
  grid-template-columns: minmax(0, .95fr) minmax(460px, 1.05fr);
  align-items: start;
}

.laevarakised-execution .execution-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.laevarakised-execution .client-benefit {
  margin-top: 10px;
  padding: 24px;
}

.laevarakised-execution .client-benefit h2 {
  font-size: 26px;
}

.highlighted-benefit {
  position: relative;
  overflow: hidden;
  border-color: rgba(98, 70, 255, .26);
  background:
    linear-gradient(135deg, rgba(98, 70, 255, .09), rgba(255, 255, 255, .92) 42%, rgba(14, 21, 32, .045));
}

.highlighted-benefit::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--accent);
}

.benefit-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.benefit-checklist li {
  position: relative;
  padding-left: 28px;
  color: #172132;
  font-weight: 850;
}

.benefit-checklist li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  line-height: 1;
}

.project-nav-section {
  padding: 0 0 24px;
  background: #fff;
}

.project-nav-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 8px;
}

.project-nav-row a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  color: #1d293a;
  background: #fff;
  font-weight: 900;
}

.project-nav-row a:hover {
  border-color: rgba(98, 70, 255, .28);
  color: var(--accent);
}

.inline-section-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 15px;
  color: var(--accent);
  background: #fff;
  font-weight: 900;
}

.inline-section-link:hover {
  border-color: rgba(98, 70, 255, .35);
}

.laevarakised-execution .execution-media img {
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.related-section,
.related-knowledge-section {
  border-top: 1px solid rgba(205, 214, 227, .72);
}

.related-work-grid {
  align-items: stretch;
}

.related-kb-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-cta-section {
  padding-top: 62px;
  padding-bottom: 62px;
}

.project-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(98, 70, 255, .20);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.project-cta h2 {
  max-width: 820px;
  margin-bottom: 12px;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.06;
}

.project-cta p {
  max-width: 850px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.cta-tags {
  margin-top: 18px;
}

@media (max-width: 1100px) {
  .laevarakised-hero .project-hero-grid {
    grid-template-columns: 1fr;
  }

  .laevarakised-hero .resource-row {
    grid-template-columns: 1fr;
  }

  .laevarakised-hero .resource-row img {
    width: 100%;
    height: 190px;
  }

  .laevarakised-execution-grid {
    grid-template-columns: 1fr;
  }

  .laevarakised-execution .execution-media img {
    min-height: 360px;
  }

  .related-kb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid.five-metrics,
  .metric-grid.six-metrics,
  .hero-summary-cards {
    grid-template-columns: 1fr;
  }

  .project-cta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .laevarakised-execution {
    padding: 34px 0;
  }

  .laevarakised-execution .execution-media img {
    min-height: 260px;
  }

  .project-breadcrumb {
    font-size: 12px;
  }

  .benefit-checklist,
  .related-kb-grid {
    grid-template-columns: 1fr;
  }

  .project-cta {
    padding: 24px;
  }

  .project-nav-row {
    flex-direction: column;
  }
}

.split.prep-split {
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  align-items: start;
}

.split.prep-split > img {
  max-width: 380px;
  justify-self: center;
}

.pressure-prep-layout {
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 34px;
  align-items: stretch;
}

.pressure-prep-media {
  display: grid;
  grid-template-rows: 320px auto;
  gap: 10px;
  align-self: stretch;
}

.pressure-prep-media > img {
  width: 100%;
  max-width: 380px;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
  object-position: center top;
  justify-self: start;
}

.pressure-prep-content {
  display: grid;
  gap: 12px;
  align-content: start;
}

.pressure-prep-block {
  display: grid;
  gap: 22px;
}

.prep-consumable-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 2px;
}

.prep-consumable-card {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(220px, .86fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.prep-consumable-card h3 {
  margin-bottom: 12px;
  font-size: 25px;
  line-height: 1.12;
}

.prep-consumable-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.58;
}

.prep-consumable-card img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f7f9;
  box-shadow: none;
}

.spray-note {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.spray-note.spray-note-compact {
  max-width: none;
  margin-top: 0;
  padding: 14px 16px;
  font-size: 14px;
  box-shadow: none;
}

.pressure-prep-media .spray-note.spray-note-compact {
  width: 100%;
  max-width: 380px;
}

.spray-note.spray-note-compact p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.55;
}

.spray-note strong {
  display: block;
  margin-bottom: 8px;
}

.spray-note a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.scan-stage-section {
  padding-top: 42px;
  padding-bottom: 42px;
}

.scan-stage-section .split {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: 34px;
  align-items: center;
}

.scan-stage-section .split img {
  max-width: 520px;
  justify-self: start;
}

.a1-scan-stage {
  padding: 34px 0;
}

.a1-scan-stage .shell {
  width: min(1120px, calc(100% - 56px));
}

.a1-scan-stage .split {
  grid-template-columns: minmax(360px, 470px) minmax(420px, 560px);
  gap: 34px;
}

.a1-scan-stage .stage-copy {
  max-width: 560px;
  justify-self: end;
}

.a1-scan-stage .stage-copy h2 {
  margin-bottom: 18px;
}

.a1-scan-stage .stage-copy .lead {
  margin-bottom: 18px;
}

.a1-scan-stage .stage-photo {
  max-width: 560px;
  justify-self: start;
}

.matriits-hero .hero-photo img {
  object-position: center;
}

.matriits-hero-notes {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
  width: min(280px, calc(100% - 36px));
  z-index: 2;
}

.matriits-hero-notes span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 8px;
  background: rgba(255,255,255,.9);
  color: #07101b;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(7,16,27,.22);
  backdrop-filter: blur(10px);
}

.matriits-hero-notes strong {
  color: #5a42ff;
  letter-spacing: .04em;
}

.matriits-object-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
}

.matriits-object-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.matriits-object-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.matriits-object-gallery figure,
.matriits-consumables figure,
.image-overlay-card,
.mesh-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}

.matriits-object-gallery img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.matriits-consumables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.consumable-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(300px, 1.1fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.consumable-card h3 {
  margin-bottom: 12px;
  font-size: 25px;
}

.consumable-card p {
  color: var(--muted);
  line-height: 1.6;
}

.consumable-card img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #f6f7f9;
}

.matriits-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.image-overlay-card {
  position: relative;
  min-height: 360px;
  color: #fff;
}

.image-overlay-card img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  filter: saturate(.95) contrast(1.02);
}

.image-overlay-card.left-focus img {
  object-position: 35% 50%;
}

.image-overlay-card.right-focus img {
  object-position: 65% 50%;
}

.image-overlay-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,16,27,0) 28%, rgba(7,16,27,.78) 100%);
}

.image-overlay-card figcaption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 1;
}

.image-overlay-card figcaption span {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.05;
  font-weight: 900;
}

.image-overlay-card figcaption p {
  max-width: 720px;
  margin: 0;
  line-height: 1.55;
}

.matriits-mesh-intro {
  display: grid;
  grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-bottom: 28px;
}

.matriits-mesh-intro h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 4vw, 56px);
}

.matriits-mesh-intro p {
  color: var(--muted);
  line-height: 1.65;
}

.matriits-mesh-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.mesh-card {
  position: relative;
  min-height: 300px;
  color: #fff;
  background: #3d424a;
}

.mesh-card img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  opacity: .92;
}

.mesh-card.large img {
  min-height: 350px;
}

.mesh-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,8,14,0) 35%, rgba(4,8,14,.74) 100%);
}

.mesh-card figcaption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  z-index: 1;
}

.mesh-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
  line-height: 1.1;
}

.mesh-card span {
  display: block;
  color: rgba(255,255,255,.88);
  line-height: 1.45;
}

.solid-model-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.25fr);
  gap: 28px;
  align-items: stretch;
}

.solid-model-copy {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.solid-model-copy .lead {
  margin-bottom: 18px;
}

.solid-steps {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.solid-steps span {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f3f6fb;
  color: #263348;
  font-weight: 800;
}

.solid-model-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.solid-model-images figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  cursor: zoom-in;
}

.solid-model-images img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  background: #f4f5f7;
}

.solid-model-images figcaption {
  padding: 14px 16px 16px;
  color: #162034;
  font-weight: 900;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  padding-left: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-box {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.site-footer {
  padding: 52px 0 24px;
  color: #dfe7f2;
  background: var(--dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-grid.knowledge-footer-grid {
  grid-template-columns: 1.25fr .9fr 1.15fr 1fr .85fr;
}

.site-footer img {
  width: 160px;
  filter: invert(1) grayscale(1) brightness(2);
}

.site-footer a,
.site-footer p {
  color: #dfe7f2;
}

.footer-list {
  display: grid;
  gap: 9px;
}

.copyright {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: #aeb8c6;
  font-size: 13px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(5, 10, 18, .86);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(1180px, 94vw);
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0,0,0,.35);
}

.lightbox button {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: #fff;
  font-size: 24px;
  cursor: pointer;
}

.lightbox-gallery-controls[hidden],
.lightbox-gallery-thumbs[hidden] {
  display: none;
}

.lightbox-gallery-controls {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lightbox .lightbox-gallery-controls button {
  top: 50%;
  right: auto;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.26);
  color: #fff;
  background: rgba(7, 13, 24, .72);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}

.lightbox .lightbox-gallery-controls button:hover {
  background: rgba(7, 13, 24, .92);
}

.lightbox .lightbox-gallery-controls [data-lightbox-gallery-prev] {
  left: 24px;
}

.lightbox .lightbox-gallery-controls [data-lightbox-gallery-next] {
  right: 24px;
}

.lightbox-gallery-thumbs {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 8px;
  max-width: min(900px, 88vw);
  padding: 8px;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
  transform: translateX(-50%);
}

.lightbox .lightbox-gallery-thumbs button {
  position: static;
  flex: 0 0 auto;
  width: 62px;
  height: 46px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  transform: none;
}

.lightbox .lightbox-gallery-thumbs button.active {
  border-color: var(--accent);
}

.lightbox .lightbox-gallery-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 7px;
  box-shadow: none;
}

@media (max-width: 760px) {
  .lightbox {
    padding: 18px;
  }

  .lightbox img {
    max-height: 76vh;
  }

  .lightbox .lightbox-gallery-controls button {
    width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .lightbox .lightbox-gallery-controls [data-lightbox-gallery-prev] {
    left: 10px;
  }

  .lightbox .lightbox-gallery-controls [data-lightbox-gallery-next] {
    right: 10px;
  }

  .lightbox-gallery-thumbs {
    bottom: 10px;
    max-width: calc(100vw - 28px);
    border-radius: 14px;
  }

  .lightbox .lightbox-gallery-thumbs button {
    width: 52px;
    height: 40px;
  }
}

.work-listing {
  min-height: 70vh;
}

.work-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin: -10px 0 32px;
}

.work-tools span,
.work-tools a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.work-tools span {
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  position: relative;
  display: grid;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(7, 16, 27, .08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.work-card:hover {
  transform: translateY(-3px);
  border-color: rgba(98, 70, 255, .32);
  box-shadow: 0 24px 62px rgba(7, 16, 27, .14);
}

.work-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dce3ed;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.work-card:hover .work-thumb img {
  transform: scale(1.035);
}

.work-card-static {
  cursor: default;
}

.work-card-static:hover {
  transform: none;
}

.work-thumb-contain {
  background: #eef3f8;
}

.work-thumb-contain img {
  object-fit: contain;
  padding: 8px;
}

.work-card:hover .work-thumb-contain img {
  transform: none;
}

.work-thumb-carousel img {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: workThumbFade 9s infinite;
}

.work-thumb-carousel img:nth-of-type(2) {
  animation-delay: 3s;
}

.work-thumb-carousel img:nth-of-type(3) {
  animation-delay: 6s;
}

.work-card:hover .work-thumb-carousel img {
  transform: none;
}

@keyframes workThumbFade {
  0%,
  30% {
    opacity: 1;
  }

  36%,
  94% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

.work-count {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(7, 16, 27, .84);
  border: 1px solid rgba(255, 255, 255, .42);
  font-size: 13px;
  font-weight: 950;
}

.work-copy {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
}

.work-copy .eyebrow {
  margin: 0;
  font-size: 11px;
}

.work-copy h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.14;
}

.work-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.generic-project-hero .project-title h1 {
  font-size: clamp(38px, 4vw, 62px);
}

.lift-report-page .lift-report-hero .project-title h1 {
  font-size: clamp(34px, 2.75vw, 50px);
  line-height: 1.06;
}

section.long-title-hero.generic-project-hero .project-title h1 {
  font-size: clamp(31px, 2.25vw, 42px);
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
}

.generic-project-hero .hero-photo img {
  min-height: 440px;
  object-fit: cover;
}

.kajak-layout {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
  gap: 30px;
  align-items: start;
}

.kajak-layout.reverse {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
}

.kajak-layout.reverse .kajak-copy {
  order: 2;
}

.kajak-copy .lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.kajak-note {
  margin-top: 20px;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: #f4f7fb;
  padding: 16px 18px;
  color: #263348;
  line-height: 1.65;
}

.kajak-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kajak-gallery img {
  height: 260px;
}

.kajak-gallery.solid img {
  object-fit: contain;
  background: #cfd1d4;
}

.kajak-gallery.scan img {
  object-fit: cover;
  background: #36393f;
}

.kajak-full-gallery img {
  object-fit: contain;
  background: #cfd1d4;
}

.kajak-full-gallery figure:nth-child(1) img,
.kajak-full-gallery figure:nth-child(2) img,
.kajak-full-gallery figure:nth-child(6) img,
.kajak-full-gallery figure:nth-child(7) img {
  object-fit: cover;
  background: #36393f;
}

.case-hero .hero-photo img {
  object-fit: cover;
}

.case-hero.contain-main .hero-photo img {
  object-fit: contain;
  background: #0b111a;
}

.source-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 900;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.video-card,
.story-card,
.caption-card,
.media-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(7, 16, 27, .08);
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #0b111a;
}

.youtube-video-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0b111a;
  color: #fff;
  text-decoration: none;
}

.youtube-video-link img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: .84;
  transition: transform .35s ease, opacity .35s ease;
}

.youtube-video-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 16, 27, .08), rgba(7, 16, 27, .56)),
    linear-gradient(90deg, rgba(7, 16, 27, .38), rgba(7, 16, 27, 0));
  pointer-events: none;
}

.youtube-video-link:hover img {
  transform: scale(1.025);
  opacity: 1;
}

.youtube-play {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent);
  box-shadow: 0 20px 42px rgba(99, 69, 255, .38);
  font-size: 22px;
  line-height: 1;
  padding-left: 3px;
}

.youtube-open {
  position: absolute;
  right: 18px;
  bottom: 22px;
  z-index: 2;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(7, 16, 27, .18);
}

.video-card .video-copy,
.story-card .story-copy,
.caption-card figcaption,
.media-card .media-copy {
  padding: 20px;
}

.video-copy h3,
.story-copy h3,
.media-copy h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.video-copy p,
.story-copy p,
.media-copy p,
.caption-card p {
  color: var(--muted);
  line-height: 1.62;
}

.project-stage {
  display: grid;
  grid-template-columns: minmax(320px, .8fr) minmax(0, 1.2fr);
  gap: 30px;
  align-items: center;
}

.project-stage.reverse {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
}

.project-stage > img,
.project-stage figure img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.project-stage figure {
  margin: 0;
}

.project-stage figcaption {
  padding: 14px 4px 0;
  color: #344055;
  font-weight: 850;
}

.stage-copy .lead,
.project-narrative .lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.step-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.step-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.step-card .mini-num {
  margin: 0;
}

.caption-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.caption-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.caption-card {
  margin: 0;
}

.caption-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: #eef2f7;
}

.caption-card.contain img {
  object-fit: contain;
}

.caption-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.process-strip .info-card {
  min-height: 100%;
}

.wide-callout {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.wide-callout p {
  color: var(--muted);
  line-height: 1.7;
}

.single-media-row {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 24px;
  align-items: center;
}

.single-media-row img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.compact-head {
  margin-bottom: 22px;
}

.glossary-term {
  display: inline;
  margin: 0;
  padding: 0 2px 1px;
  border: 0;
  border-bottom: 1px dotted rgba(98, 70, 255, .75);
  color: inherit;
  background: rgba(98, 70, 255, .08);
  border-radius: 4px;
  font: inherit;
  cursor: help;
}

.glossary-term:focus-visible {
  outline: 2px solid rgba(98, 70, 255, .45);
  outline-offset: 2px;
}

.glossary-popover {
  position: absolute;
  z-index: 130;
  display: none;
  padding: 18px;
  border: 1px solid rgba(98, 70, 255, .22);
  border-radius: 8px;
  color: #182235;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 24px 70px rgba(7, 16, 27, .22);
}

.glossary-popover.open {
  display: block;
}

.glossary-popover h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.glossary-popover p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.glossary-popover a {
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.kb-hero {
  padding: 80px 0 48px;
  background: linear-gradient(120deg, #fff 0%, #f4f7fb 74%, #eef2f7 100%);
  border-bottom: 1px solid var(--line);
}

.kb-hero h1 {
  max-width: 920px;
  margin-bottom: 18px;
  font-size: clamp(42px, 4.5vw, 70px);
}

.kb-hero p {
  max-width: 760px;
  color: #243244;
  font-size: 18px;
  line-height: 1.65;
}

.kb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.kb-card {
  display: block;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.kb-card h2,
.kb-card h3 {
  margin-bottom: 10px;
  font-size: 25px;
}

.kb-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.62;
}

.kb-article {
  max-width: 980px;
}

.kb-article .info-card {
  margin-bottom: 18px;
}

.component-block {
  padding: 64px 0;
}

.component-block.tight {
  padding: 44px 0;
}

.kuivati-summary-grid {
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.kuivati-focus-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.kuivati-focus-list span {
  display: flex;
  min-height: 62px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 850;
  box-shadow: var(--shadow-soft);
}

.process-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  align-items: center;
  margin-top: 20px;
}

.process-flow span {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(98, 70, 255, .24);
  border-radius: 999px;
  padding: 0 16px;
  color: #1d293a;
  background: #fff;
  font-weight: 900;
  box-shadow: 0 10px 25px rgba(7, 16, 27, .06);
}

.process-flow span:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -31px;
  top: 50%;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(98, 70, 255, .75), rgba(98, 70, 255, .22));
  transform: translateY(-50%);
}

.process-flow span:not(:last-child)::before {
  content: "";
  position: absolute;
  right: -31px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  transform: translateY(-50%) rotate(45deg);
}

.compact-flow {
  max-width: 100%;
}

.kuivati-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.kuivati-process .info-card {
  padding: 22px;
}

.kuivati-process .mini-num {
  margin-bottom: 12px;
}

.kuivati-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kuivati-gallery figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.kuivati-gallery figure:first-child img {
  height: 492px;
}

/* Veduri ratta projekt */
.veduri-ratas-page .project-hero {
  padding: 34px 0 42px;
}

.veduri-ratas-page .project-hero-grid {
  grid-template-columns: minmax(340px, 430px) minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

.veduri-ratas-page .project-title h1 {
  font-size: clamp(34px, 3.2vw, 52px);
  line-height: 1.02;
}

.veduri-ratas-page .project-title p {
  max-width: 58ch;
}

.veduri-ratas-page .hero-photo {
  min-height: 0;
}

.veduri-ratas-page .hero-photo img {
  width: 100%;
  height: clamp(320px, 34vw, 460px);
  min-height: 0;
  object-fit: cover;
}

.veduri-ratas-page .section {
  padding: 54px 0;
}

.veduri-ratas-page .info-card {
  min-height: 0;
}

.veduri-object-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.veduri-object-images {
  display: grid;
  grid-template-columns: minmax(320px, .96fr) minmax(360px, 1fr);
  gap: 18px;
}

.veduri-wide-stack {
  display: grid;
  gap: 18px;
}

.veduri-object-images figure,
.veduri-spray-card figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.veduri-object-images img {
  display: block;
  width: 100%;
  object-fit: cover;
}

.veduri-wide-stack img {
  height: 220px;
}

.veduri-portrait-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.veduri-portrait-grid img {
  height: 178px;
  object-fit: cover;
}

.veduri-object-images figcaption,
.veduri-spray-card figcaption {
  padding: 11px 13px;
  color: #27344a;
  font-weight: 850;
  font-size: 14px;
}

.veduri-scan-split,
.veduri-solid-split,
.veduri-tolerance-split {
  align-items: center;
}

.veduri-scan-split .image-card img {
  height: 360px;
  object-fit: cover;
}

.veduri-spray-card {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(220px, 320px);
  gap: 26px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.veduri-spray-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.veduri-solid-gallery,
.veduri-tolerance-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.veduri-solid-gallery img,
.veduri-tolerance-gallery img {
  height: 260px;
  object-fit: contain;
  background: #eef2f6;
}

.veduri-full-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.veduri-full-gallery img {
  height: 210px;
}

.veduri-full-gallery figure:nth-child(1),
.veduri-full-gallery figure:nth-child(2),
.veduri-full-gallery figure:nth-child(3) {
  grid-column: span 2;
}

.veduri-full-gallery figure:nth-child(1) img,
.veduri-full-gallery figure:nth-child(2) img,
.veduri-full-gallery figure:nth-child(3) img {
  height: 280px;
}

.veduri-full-gallery figure:nth-child(n+11) img {
  object-fit: contain;
  background: #eef2f6;
}

@media (max-width: 1100px) {
  .veduri-ratas-page .project-hero-grid,
  .veduri-object-layout,
  .veduri-object-images,
  .veduri-spray-card {
    grid-template-columns: 1fr;
  }

  .veduri-portrait-grid,
  .veduri-full-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .veduri-ratas-page .project-hero {
    padding-top: 26px;
  }

  .veduri-ratas-page .hero-photo img {
    height: 280px;
  }

  .veduri-portrait-grid,
  .veduri-solid-gallery,
  .veduri-tolerance-gallery,
  .veduri-full-gallery {
    grid-template-columns: 1fr;
  }

  .veduri-full-gallery figure,
  .veduri-full-gallery figure:nth-child(1),
  .veduri-full-gallery figure:nth-child(2),
  .veduri-full-gallery figure:nth-child(3) {
    grid-column: auto;
  }
}

@media (max-width: 1100px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 16px;
  }

  .hero .shell,
  .project-hero-grid,
  .split,
  .a1-scan-stage .split,
  .split.prep-split,
  .contact-grid,
  .detail-grid,
  .video-grid,
  .project-stage,
  .project-stage.reverse,
  .caption-grid,
  .caption-grid.two,
  .process-strip,
  .single-media-row,
  .solid-model-panel,
  .matriits-object-grid,
  .matriits-consumables,
  .prep-consumable-grid,
  .prep-consumable-card,
  .consumable-card,
  .matriits-duo,
  .matriits-mesh-intro,
  .kajak-layout,
  .kajak-layout.reverse,
  .kuivati-summary-grid,
  .kuivati-process,
  .kb-grid {
    grid-template-columns: 1fr;
  }

  .split.prep-split > img {
    max-width: 520px;
    width: 100%;
  }

  .pressure-prep-media {
    grid-template-rows: auto auto;
  }

  .pressure-prep-media > img,
  .pressure-prep-media .spray-note.spray-note-compact {
    max-width: 520px;
    width: 100%;
  }

  .pressure-prep-media > img {
    height: 300px;
    min-height: 300px;
    max-height: 300px;
  }

  .prep-consumable-card img {
    height: 230px;
  }

  .a1-scan-stage {
    padding: 34px 0;
  }

  .a1-scan-stage .shell {
    width: calc(100% - 28px);
  }

  .a1-scan-stage .stage-copy,
  .a1-scan-stage .stage-photo {
    max-width: 100%;
    justify-self: stretch;
  }

  .kajak-layout.reverse .kajak-copy {
    order: 0;
  }

  .lift-report-hero .project-hero-grid {
    grid-template-columns: 1fr;
  }

  .lift-hero-collage {
    height: 420px;
  }

  .footer-grid.knowledge-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .caption-card img {
    height: 240px;
  }

  .image-card img {
    min-height: 300px;
  }

  .hero-media {
    position: relative;
    inset: auto;
    min-height: 360px;
    margin-bottom: 26px;
  }

  .hero .shell {
    padding-top: 34px;
  }

  .service-grid,
  .gallery,
  .project-grid,
  .work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .kajak-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .solid-model-images {
    grid-template-columns: 1fr;
  }

  .matriits-object-gallery,
  .matriits-mesh-grid {
    grid-template-columns: 1fr;
  }

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

  .matriits-object-gallery img,
  .consumable-card img,
  .image-overlay-card img,
  .mesh-card img,
  .mesh-card.large img {
    min-height: 0;
    height: 260px;
  }

  .project-hero {
    padding-top: 28px;
  }

  .kuivati-hero-spacing {
    padding-top: 56px;
  }
}

@media (max-width: 720px) {
  .shell,
  .nav,
  .metric-grid {
    width: calc(100% - 28px);
    max-width: 1460px;
  }

  h1 {
    font-size: 43px;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  .actions a {
    width: 100%;
  }

  .hero-gallery-link {
    left: 14px;
    right: 14px;
    justify-content: center;
  }

  .hero-media-links {
    left: 14px;
    right: 14px;
    justify-content: center;
  }

  .hero-media-links a {
    justify-content: center;
    flex: 1 1 220px;
  }

  .lift-hero-collage {
    grid-template-columns: 1fr 1fr;
    height: 340px;
    gap: 8px;
    border-radius: 0;
  }

  .lift-report-page .split .saesaare-dual-image img {
    height: 220px;
  }

  .youtube-play {
    left: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .youtube-open {
    right: 12px;
    bottom: 16px;
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  .project-hero .shell.project-hero-grid {
    width: 100%;
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .top-note {
    overflow-wrap: anywhere;
  }

  .quick-facts,
  .metric-grid,
  .service-grid,
  .project-grid,
  .work-grid,
  .gallery,
  .kuivati-gallery,
  .kuivati-focus-list,
  .detail-list,
  .video-grid,
  .caption-grid,
  .caption-grid.two,
  .process-strip,
  .matriits-object-gallery,
  .matriits-mesh-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid.knowledge-footer-grid {
    grid-template-columns: 1fr;
  }

  .process-flow span:not(:last-child)::after,
  .process-flow span:not(:last-child)::before {
    display: none;
  }

  .project-stage,
  .project-stage.reverse,
  .single-media-row {
    grid-template-columns: 1fr;
  }

  .step-card {
    grid-template-columns: 1fr;
  }

  .caption-card img {
    height: 220px;
  }

  .image-card img {
    min-height: 230px;
  }

  .matriits-object-gallery img,
  .consumable-card img,
  .image-overlay-card img,
  .mesh-card img,
  .mesh-card.large img {
    height: 220px;
  }

  .gallery.featured-order figure:first-child {
    grid-column: span 1;
  }

  .kuivati-gallery figure:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }

  .kuivati-gallery figure:first-child img {
    height: 230px;
  }

  .kajak-gallery {
    grid-template-columns: 1fr;
  }

  .service-card {
    grid-template-columns: 1fr;
  }

  .service-card img {
    height: 220px;
  }

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

  .resource-row img {
    width: 100%;
    height: 170px;
  }
}

/* Mööblivabriku projekt: üks toode, üks scan-pilt ja üks SOLID-pilt kõrvuti. */
.moobli-project-page .shell {
  width: min(1580px, calc(100% - 64px));
}

.moobli-project-page .project-title h1 {
  font-size: clamp(34px, 2.85vw, 50px);
  line-height: 1.06;
}

.moobli-hero .project-hero-grid {
  grid-template-columns: minmax(330px, .82fr) minmax(560px, 1fr);
  align-items: center;
  gap: 34px;
}

.moobli-hero .hero-photo {
  display: grid;
  min-height: 0;
  gap: 12px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.moobli-hero .hero-photo::after {
  display: none;
}

.moobli-hero .hero-image-card {
  position: relative;
  min-height: 500px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #101820;
  box-shadow: var(--shadow);
}

.moobli-hero .hero-image-card img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  cursor: zoom-in;
}

.moobli-hero .hero-tag-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.moobli-hero .hero-tag-stack .tag {
  justify-content: center;
  min-width: 0;
  text-align: center;
}

.moobli-hero .side-materials {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.moobli-hero .side-materials h3,
.moobli-hero .side-materials > p {
  grid-column: 1 / -1;
}

.moobli-hero .side-materials .resource-row {
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 10px;
}

.moobli-hero .side-materials .resource-row img {
  width: 96px;
  height: 80px;
}

.valamu-intro {
  margin: -8px 0 18px;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}

.moobli-project-page .valamu-stage-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.moobli-project-page .valamu-panel {
  display: flex;
  min-height: 520px;
  flex-direction: column;
}

.moobli-project-page .valamu-panel h4 {
  flex: 0 0 auto;
}

.moobli-project-page .valamu-product-panel figure,
.moobli-project-page .image-switcher {
  display: grid;
  flex: 1;
  grid-template-rows: auto auto;
  align-content: start;
  min-height: 0;
}

.moobli-project-page .image-switcher {
  gap: 10px;
  padding: 12px;
}

.moobli-project-page .valamu-product-panel img,
.moobli-project-page .switcher-main img {
  width: 100%;
  height: 360px;
  display: block;
  object-fit: contain;
  background: #d1d5db;
}

.moobli-project-page .switcher-main {
  margin: 0;
  align-self: start;
  position: relative;
  cursor: zoom-in;
}

.moobli-project-page .switcher-main figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
}

.moobli-project-page .switcher-main img {
  transition: opacity .18s ease;
}

.moobli-project-page .switcher-main.is-fading img {
  opacity: .28;
}

.moobli-project-page .switcher-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(58px, 72px));
  gap: 8px;
  align-self: start;
  align-items: start;
}

.moobli-project-page .switcher-thumbs.six-thumbs {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.moobli-project-page .switcher-thumbs button {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #eef2f7;
  cursor: pointer;
}

.moobli-project-page .switcher-thumbs button.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(98, 70, 255, .14);
}

.moobli-project-page .switcher-thumbs img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 1100px) {
  .moobli-hero .project-hero-grid,
  .moobli-project-page .valamu-stage-grid {
    grid-template-columns: 1fr;
  }

  .moobli-hero .side-materials {
    grid-column: auto;
  }

  .moobli-hero .hero-image-card,
  .moobli-hero .hero-image-card img {
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  .moobli-hero .hero-tag-stack,
  .moobli-hero .side-materials {
    grid-template-columns: 1fr;
  }

  .moobli-hero .hero-image-card,
  .moobli-hero .hero-image-card img {
    min-height: 300px;
  }

  .moobli-project-page .valamu-panel {
    min-height: 0;
  }

  .moobli-project-page .valamu-product-panel img,
  .moobli-project-page .switcher-main img {
    height: 240px;
  }

  .moobli-project-page .switcher-thumbs.six-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Hero Storyboard: projektidele, kus üks hero pilt ei räägi kogu töövoogu. */
.pellet-storyboard-hero .project-hero-grid {
  grid-template-columns: minmax(330px, .86fr) minmax(640px, 1.38fr);
  gap: 42px;
  align-items: center;
}

.pellet-storyboard-hero .project-title h1 {
  font-size: clamp(34px, 3.35vw, 56px);
  line-height: 1.04;
}

.hero-storyboard-wrap {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.hero-storyboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: clamp(420px, 34vw, 500px);
}

.storyboard-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: #101820;
  box-shadow: 0 18px 42px rgba(0,0,0,.24);
  cursor: zoom-in;
}

.storyboard-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storyboard-card figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,.92);
  color: #07101b;
  box-shadow: 0 10px 26px rgba(0,0,0,.16);
}

.storyboard-card figcaption span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.storyboard-card figcaption strong {
  font-size: 13px;
  line-height: 1.15;
}

.hero-storyboard.hero-storyboard-slider {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #101820;
  box-shadow: 0 18px 42px rgba(0,0,0,.24);
}

.storyboard-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: #101820;
  opacity: 0;
  animation: storyboardSliderFade 9s ease-in-out infinite;
  cursor: zoom-in;
}

.storyboard-slide:nth-child(1) {
  animation-delay: 0s;
}

.storyboard-slide:nth-child(2) {
  animation-delay: 3s;
}

.storyboard-slide:nth-child(3) {
  animation-delay: 6s;
}

.storyboard-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storyboard-slide figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 6px;
  background: rgba(255,255,255,.92);
  color: #07101b;
  box-shadow: 0 10px 26px rgba(0,0,0,.16);
}

.storyboard-slide figcaption span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.storyboard-slide figcaption strong {
  font-size: 14px;
  line-height: 1.15;
}

@keyframes storyboardSliderFade {
  0%,
  28% {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
  }
  36%,
  92% {
    opacity: 0;
    z-index: 1;
    transform: scale(1.012);
  }
  100% {
    opacity: 1;
    z-index: 2;
    transform: scale(1);
  }
}

.hero-storyboard-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero-storyboard-tags .tag {
  justify-content: center;
  width: 100%;
  margin: 0;
  text-align: center;
}

.pellet-storyboard-hero .storyboard-gallery-link {
  position: static;
  justify-self: end;
  transform: none;
}

.pellet-storyboard-hero .storyboard-gallery-link:hover {
  transform: translateY(-1px);
}

@media (max-width: 1100px) {
  .pellet-storyboard-hero .project-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-storyboard {
    height: auto;
  }

  .hero-storyboard.hero-storyboard-slider {
    height: clamp(320px, 56vw, 440px);
  }

  .storyboard-card {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .hero-storyboard {
    grid-template-columns: 1fr;
  }

  .hero-storyboard.hero-storyboard-slider {
    height: 300px;
  }

  .hero-storyboard-tags {
    grid-template-columns: 1fr;
  }

  .pellet-storyboard-hero .storyboard-gallery-link {
    justify-self: stretch;
    justify-content: center;
  }
}

/* Skulptuuri projekt: storyboard ja kompaktsed sisugrupid. */
.skulptuur-storyboard-hero .project-hero-grid {
  grid-template-columns: minmax(320px, .86fr) minmax(620px, 1.26fr);
  gap: 42px;
  align-items: center;
}

.skulptuur-storyboard-hero .project-title h1 {
  font-size: clamp(32px, 3.1vw, 52px);
  line-height: 1.04;
}

.skulptuur-storyboard-hero .project-title p {
  max-width: 650px;
}

.skulptuur-storyboard-hero .hero-storyboard {
  height: clamp(430px, 34vw, 500px);
}

.skulptuur-source-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.skulptuur-source-gallery img {
  height: clamp(280px, 28vw, 400px);
}

.skulptuur-mini-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: start;
}

.skulptuur-mini-gallery img {
  height: 190px;
}

.skulptuur-benefits {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skulptuur-gallery-groups {
  display: grid;
  gap: 28px;
}

.gallery-group h3 {
  margin: 0 0 14px;
  font-size: 22px;
}

@media (max-width: 1100px) {
  .skulptuur-storyboard-hero .project-hero-grid {
    grid-template-columns: 1fr;
  }

  .skulptuur-storyboard-hero .hero-storyboard {
    height: auto;
  }
}

@media (max-width: 760px) {
  .skulptuur-source-gallery,
  .skulptuur-mini-gallery,
  .skulptuur-benefits {
    grid-template-columns: 1fr;
  }
}

/* Project pages where the right side-materials panel was removed: keep hero balanced. */
.hero-no-aside .project-hero-grid {
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 34px;
}

.hero-no-aside .hero-photo {
  min-height: 430px;
}

.hero-no-aside .hero-photo img {
  min-height: 430px;
}

@media (max-width: 980px) {
  .hero-no-aside .project-hero-grid {
    grid-template-columns: 1fr;
  }
}
.laevarakised-steps {
  padding-top: 46px;
  padding-bottom: 42px;
  background: #f4f7fb;
}

.process-cards.four-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-card {
  overflow: hidden;
  border: 1px solid #dce4ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 46px rgba(7, 16, 27, .08);
}

.process-card img {
  width: 100%;
  height: 165px;
  object-fit: cover;
  display: block;
}

.process-card span,
.process-card h3,
.process-card p {
  margin-left: 16px;
  margin-right: 16px;
}

.process-card span {
  display: inline-flex;
  margin-top: 15px;
  color: var(--accent);
  font-weight: 950;
  letter-spacing: .08em;
}

.process-card h3 {
  margin-top: 6px;
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.2;
}

.process-card p {
  margin-top: 0;
  margin-bottom: 18px;
  color: #344055;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .process-cards.four-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .process-cards.four-cards {
    grid-template-columns: 1fr;
  }
}

/* Compact portfolio hero for smaller projects where content should start quickly. */
.compact-portfolio-hero.project-hero {
  padding: 30px 0 34px;
}

.compact-portfolio-hero .project-breadcrumb {
  margin-bottom: 18px;
}

.compact-portfolio-hero .project-hero-grid {
  align-items: center;
  gap: 32px;
}

.compact-portfolio-hero .project-title h1 {
  font-size: clamp(32px, 3.2vw, 48px);
  line-height: 1.05;
}

.compact-portfolio-hero .project-title p {
  margin-bottom: 16px;
  line-height: 1.52;
}

.compact-portfolio-hero .tag-row {
  margin-top: 16px;
  gap: 8px;
}

.compact-portfolio-hero .actions {
  margin-top: 18px;
}

.compact-portfolio-hero .hero-photo {
  height: clamp(280px, 31vw, 420px);
  min-height: 0;
  max-height: 420px;
}

.compact-portfolio-hero .hero-photo img {
  height: 100%;
  min-height: 0;
  max-height: 420px;
  object-fit: cover;
}

@media (max-width: 980px) {
  .compact-portfolio-hero.project-hero {
    padding: 24px 0 28px;
  }

  .compact-portfolio-hero .hero-photo {
    height: clamp(260px, 54vw, 320px);
    max-height: 320px;
  }

  .compact-portfolio-hero .hero-photo img {
    max-height: 320px;
  }
}

/* Project-specific hero balancing for compact technical project pages. */
.fuel-tank-compact-hero .project-hero-grid,
.mootoridetaili-compact-hero .project-hero-grid {
  grid-template-columns: minmax(300px, .88fr) minmax(520px, 1.12fr);
  gap: 30px;
}

.fuel-tank-compact-hero .project-title h1,
.mootoridetaili-compact-hero .project-title h1 {
  font-size: clamp(30px, 2.8vw, 46px);
}

.fuel-tank-compact-hero .project-title p,
.mootoridetaili-compact-hero .project-title p {
  max-width: 560px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.mootoridetaili-compact-hero.project-hero {
  padding: 34px 0 32px;
}

.mootoridetaili-compact-hero .hero-photo {
  height: clamp(340px, 34vw, 520px);
  min-height: 0;
  max-height: 520px;
}

.mootoridetaili-compact-hero .hero-photo img {
  height: 100%;
  min-height: 0;
  max-height: 520px;
  object-fit: cover;
}

@media (max-width: 980px) {
  .fuel-tank-compact-hero .project-hero-grid,
  .mootoridetaili-compact-hero .project-hero-grid {
    grid-template-columns: 1fr;
  }

  .mootoridetaili-compact-hero .hero-photo {
    height: clamp(260px, 54vw, 340px);
    max-height: 340px;
  }

  .mootoridetaili-compact-hero .hero-photo img {
    max-height: 340px;
  }
}

/* Tehtud tööde leht: Variant 17 näidislehe sarnane projektilist. */
.variant17-work-list {
  background: #fff;
}

.variant17-work-list .section-head {
  max-width: 820px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.variant17-work-list .work-tools {
  justify-content: center;
  margin-bottom: 28px;
}

.variant17-work-list .work-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1460px;
  margin: 0 auto;
}

.variant17-work-list .work-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  color: var(--ink);
  text-decoration: none;
  box-shadow: none;
}

.variant17-work-list .work-card::after {
  content: "Ava töö →";
  position: absolute;
  left: 18px;
  right: auto;
  bottom: 17px;
  font-weight: 800;
  color: var(--ink);
  font-size: 14px;
}

.variant17-work-list .work-card-static::after {
  content: none;
}

.variant17-work-list .work-thumb {
  height: 255px;
  min-height: 0;
  aspect-ratio: auto;
  flex: 0 0 auto;
}

.variant17-work-list .work-count {
  display: none;
}

.variant17-work-list .work-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 224px;
  padding: 18px 18px 50px;
  gap: 10px;
}

.variant17-work-list .work-copy::before {
  content: "Tehtud töö";
  width: max-content;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.variant17-work-list .work-copy h3 {
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.18;
}

.variant17-work-list .work-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.variant17-work-list .tag-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 4px;
}

.variant17-work-list .tag {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #30415a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-transform: none;
}

.variant17-work-list .tag::before {
  content: "";
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #08a7c8;
}

@media (max-width: 1120px) {
  .variant17-work-list .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .variant17-work-list .tag-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .variant17-work-list .work-card {
    grid-template-columns: 1fr;
  }

  .variant17-work-list .work-thumb {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .variant17-work-list .work-copy {
    min-height: 0;
  }

  .variant17-work-list .tag-row {
    grid-template-columns: 1fr;
  }
}

/* L-39 lennuki esipaneeli projekt */
.l39-project-page .l39-hero {
  padding: 46px 0 56px;
}

.l39-project-page .l39-hero-grid {
  grid-template-columns: minmax(330px, .82fr) minmax(560px, 1.18fr);
  gap: 42px;
  align-items: center;
}

.l39-project-page .l39-hero .project-title h1 {
  font-size: clamp(34px, 3.2vw, 54px);
  line-height: 1.05;
}

.l39-project-page .l39-hero .project-title p {
  max-width: 620px;
}

.l39-hero-tags {
  max-width: 660px;
}

.l39-storyboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.l39-storyboard figure {
  position: relative;
  min-height: 205px;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #0b111a;
  box-shadow: 0 20px 52px rgba(5, 11, 20, .22);
  cursor: zoom-in;
}

.l39-storyboard img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 205px;
  max-height: 245px;
  object-fit: cover;
  transition: transform .35s ease;
}

.l39-storyboard figure:hover img {
  transform: scale(1.03);
}

.l39-storyboard figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #09111d;
  font-weight: 800;
}

.l39-storyboard figcaption span {
  color: var(--accent);
  letter-spacing: .08em;
}

.l39-detail-grid {
  align-items: stretch;
}

.l39-work-block,
.l39-two-stage,
.l39-prototype-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
}

.l39-flow-list {
  margin: 0 0 22px;
  padding-left: 22px;
  color: #344055;
  line-height: 1.65;
}

.l39-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.l39-media-grid figure,
.l39-inline-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid #d9e2ee;
  border-radius: 10px;
  background: #fff;
  cursor: zoom-in;
}

.l39-media-grid img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.l39-media-grid figcaption,
.l39-inline-figure figcaption {
  padding: 11px 13px;
  color: #263449;
  font-weight: 800;
}

.l39-inline-figure {
  margin-top: 18px;
}

.l39-inline-figure img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.l39-prototype-grid .l39-media-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.l39-prototype-grid .l39-media-grid img {
  height: 210px;
}

.l39-print-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.l39-extra-services {
  margin-top: 18px;
}

.l39-gallery {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.l39-gallery img {
  height: 210px;
  object-fit: cover;
}

@media (max-width: 1180px) {
  .l39-project-page .l39-hero-grid,
  .l39-work-block,
  .l39-two-stage,
  .l39-prototype-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .l39-storyboard,
  .l39-media-grid,
  .l39-print-tech-grid,
  .l39-gallery {
    grid-template-columns: 1fr;
  }

  .l39-storyboard img {
    max-height: none;
  }

  .l39-prototype-grid .l39-media-grid {
    grid-template-columns: 1fr;
  }
}

/* L-39 parandused: eraldi pildigrupi karussellid ja selgemad captionid */
.l39-project-page .l39-hero {
  padding: 34px 0 44px;
}

.l39-project-page .l39-hero-grid {
  grid-template-columns: minmax(320px, .78fr) minmax(620px, 1.22fr);
  gap: 34px;
}

.l39-project-page .project-title h1 {
  font-size: clamp(31px, 3vw, 50px);
}

.l39-project-page .project-title p {
  margin-bottom: 18px;
}

.l39-project-page .actions {
  margin-top: 20px;
}

.l39-storyboard {
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: clamp(430px, 33vw, 500px);
}

.l39-storyboard-card,
.l39-carousel-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  min-width: 0;
}

.l39-carousel {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid #d8e4ee;
  border-radius: 10px;
  background: #0c121a;
}

.l39-carousel figure {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #0c121a;
  opacity: 0;
  pointer-events: none;
  transition: opacity .85s ease, transform .85s ease;
}

.l39-carousel figure.is-active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
}

.l39-carousel img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  object-fit: cover;
}

.l39-story-carousel {
  min-height: 0;
}

.l39-large-carousel {
  min-height: 340px;
}

.l39-inline-carousel {
  min-height: 315px;
}

.l39-compact-carousel {
  min-height: 245px;
}

.l39-caption-card {
  display: block;
  padding: 10px 12px 10px 14px;
  border-left: 3px solid #16a06d;
  border-radius: 8px;
  background: #edf9f3;
  color: #0d1b25;
  font-size: 13px;
  line-height: 1.25;
}

.l39-caption-card span {
  display: inline-block;
  margin-right: 8px;
  color: #0b7e55;
  font-weight: 900;
  letter-spacing: .08em;
}

.l39-caption-card strong {
  font-weight: 900;
}

.l39-card-carousel-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.l39-work-block {
  grid-template-columns: minmax(300px, .72fr) minmax(620px, 1.28fr);
  align-items: center;
}

.l39-work-copy {
  align-self: center;
}

.l39-work-carousels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.l39-video-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.l39-video-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #0b111a;
  box-shadow: 0 22px 50px rgba(5, 11, 20, .2);
  aspect-ratio: 16 / 9;
}

.l39-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.l39-prototype-grid {
  grid-template-columns: minmax(300px, .78fr) minmax(560px, 1.22fr);
  align-items: center;
}

.l39-prototype-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.l39-prototype-strip figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  margin: 0;
  cursor: zoom-in;
}

.l39-prototype-strip img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border: 1px solid #d8e4ee;
  border-radius: 10px;
  background: #fff;
}

.l39-print-tech-grid .info-card h3 {
  font-size: clamp(20px, 1.5vw, 25px);
  line-height: 1.15;
}

@media (max-width: 1180px) {
  .l39-project-page .l39-hero-grid,
  .l39-work-block,
  .l39-prototype-grid {
    grid-template-columns: 1fr;
  }

  .l39-storyboard {
    height: auto;
  }

  .l39-story-carousel {
    min-height: 260px;
  }
}

@media (max-width: 800px) {
  .l39-card-carousel-row,
  .l39-work-carousels,
  .l39-prototype-strip {
    grid-template-columns: 1fr;
  }

  .l39-large-carousel,
  .l39-inline-carousel,
  .l39-compact-carousel {
    min-height: 280px;
  }

.l39-prototype-strip img {
  height: 240px;
}
}

/* 3D erilahendused */
.special-solutions-page .section {
  padding-top: 70px;
  padding-bottom: 70px;
}

.special-hero {
  padding: 48px 0;
  background: linear-gradient(110deg, #f7f9fc 0%, #fff 42%, #eef3f8 100%);
  border-bottom: 1px solid var(--line);
}

.special-hero-grid {
  display: grid;
  grid-template-columns: minmax(300px, .7fr) minmax(0, 1.3fr);
  gap: 34px;
  align-items: center;
}

.special-hero-copy {
  max-width: 620px;
}

.special-hero-copy h1 {
  max-width: 610px;
  margin: 10px 0 12px;
  font-size: clamp(30px, 3.1vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

.special-hero-copy > p:not(.eyebrow) {
  max-width: 590px;
  margin: 0;
  color: #344256;
  font-size: 17px;
  line-height: 1.48;
}

.solution-hero-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.solution-hero-card {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 22px 54px rgba(16, 24, 40, .09);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.solution-hero-card:hover,
.solution-hero-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(99, 69, 255, .45);
  box-shadow: 0 28px 68px rgba(16, 24, 40, .15);
}

.solution-hero-card img {
  width: 100%;
  height: 165px;
  display: block;
  object-fit: cover;
}

.solution-hero-card span {
  width: max-content;
  margin: 18px 18px 6px;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: .08em;
}

.solution-hero-card h2 {
  margin: 0 18px 8px;
  font-size: 23px;
  line-height: 1.12;
}

.solution-hero-card p {
  margin: 0 18px 20px;
  color: #4d5d72;
  line-height: 1.55;
}

.solution-video-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .75fr);
  gap: 32px;
  align-items: start;
  overflow: visible;
  margin: 0 0 30px;
}

.solution-video-block.reverse {
  grid-template-columns: minmax(360px, .75fr) minmax(0, 1fr);
}

.solution-video-block.reverse .solution-video-frame {
  order: 2;
}

.solution-video-block.compact-video {
  margin-top: 24px;
}

.solution-video-frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #111827;
  box-shadow: 0 26px 60px rgba(16, 24, 40, .12);
  aspect-ratio: 16 / 9;
  min-width: 0;
}

.solution-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
  display: block;
}

.solution-text-card {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(16, 24, 40, .07);
}

.solution-text-card h2 {
  margin: 6px 0 14px;
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.14;
}

.solution-text-card p {
  margin: 0 0 10px;
  color: #334256;
  line-height: 1.52;
}

.solution-check-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.solution-check-list li {
  position: relative;
  padding-left: 22px;
  color: #304055;
  line-height: 1.36;
}

.solution-check-list li::before {
  content: "";
  position: absolute;
  top: .62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.solution-image-card-grid,
.virtual-tour-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.solution-image-card,
.virtual-tour-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(16, 24, 40, .08);
}

.solution-image-card img,
.virtual-tour-card img {
  width: 100%;
  height: 290px;
  display: block;
  object-fit: cover;
  background: #eef3f8;
}

.solution-image-card > div,
.virtual-tour-card > div {
  padding: 24px;
}

.solution-image-card h3,
.virtual-tour-card h3 {
  margin: 0 0 12px;
  font-size: 27px;
  line-height: 1.16;
}

.virtual-tour-card.highlighted {
  border-color: rgba(98, 70, 255, .32);
}

.solution-highlight {
  display: grid;
  gap: 4px;
  margin: 16px 0;
  padding: 14px 16px;
  border-left: 4px solid #19b87a;
  border-radius: 7px;
  background: #ecfbf4;
  color: #173629;
}

.premium-gallery {
  margin-top: 38px;
}

.section-head.compact {
  margin-bottom: 16px;
  text-align: left;
}

.premium-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.premium-gallery-grid img {
  width: 100%;
  height: 190px;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef3f8;
}

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.usecase-grid article {
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(16, 24, 40, .05);
}

.usecase-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.usecase-grid p {
  margin: 0;
  color: #526276;
  line-height: 1.48;
}

.usecase-groups {
  display: grid;
  gap: 22px;
}

.usecase-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 22px;
  box-shadow: 0 16px 38px rgba(16, 24, 40, .06);
}

.usecase-group-head {
  display: grid;
  gap: 8px;
  max-width: 860px;
  margin-bottom: 18px;
}

.usecase-group-head h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 30px);
}

.usecase-group-head p {
  margin: 0;
  color: #536277;
  line-height: 1.5;
}

.service-pill,
.usecase-card-grid article span {
  width: fit-content;
  border-radius: 999px;
  background: #f1efff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.service-pill {
  padding: 8px 11px;
}

.usecase-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.usecase-card-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 138px;
  border: 1px solid #dde5ef;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fbfcff);
  padding: 16px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.usecase-card-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(92, 70, 255, .45);
  box-shadow: 0 16px 34px rgba(16, 24, 40, .11);
}

.usecase-card-grid article span {
  padding: 7px 9px;
}

.usecase-card-grid h4 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.usecase-card-grid p {
  margin: 0;
  color: #526276;
  font-size: 14px;
  line-height: 1.42;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.service-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 28px;
}

.service-shortcut-card {
  display: grid;
  gap: 10px;
  min-height: 178px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.service-shortcut-card:hover {
  transform: translateY(-3px);
  border-color: rgba(92, 70, 255, .45);
  box-shadow: 0 18px 42px rgba(16, 24, 40, .12);
}

.service-shortcut-card span {
  width: fit-content;
  border-radius: 999px;
  background: #f1efff;
  color: var(--accent);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.service-shortcut-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.service-shortcut-card p {
  margin: 0;
  color: #526276;
  line-height: 1.48;
}

@media (max-width: 1180px) {
  .special-hero-grid {
    grid-template-columns: 1fr;
  }

  .solution-hero-cards,
  .usecase-grid,
  .usecase-card-grid,
  .service-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-video-grid,
  .about-facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form-layout,
  .about-hero-grid,
  .about-video-grid {
    grid-template-columns: 1fr;
  }

  .about-mess-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form-copy {
    position: static;
  }
}

@media (max-width: 900px) {
  .special-solutions-page .solution-video-block,
  .special-solutions-page .solution-video-block.reverse {
    grid-template-columns: 1fr;
  }

  .solution-video-block.reverse .solution-video-frame,
  .solution-video-block.reverse .solution-text-card {
    order: initial;
  }

  .special-solutions-page .solution-video-frame {
    aspect-ratio: 16 / 9;
  }

  .service-video-pair,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field-wide {
    grid-column: auto;
  }

  .about-portrait img {
    height: 340px;
  }
}

@media (max-width: 760px) {
  .special-solutions-page .section,
  .special-hero {
    padding-top: 44px;
    padding-bottom: 44px;
  }

  .solution-hero-cards,
  .solution-image-card-grid,
  .virtual-tour-grid,
  .premium-gallery-grid,
  .usecase-grid,
  .usecase-card-grid,
  .service-shortcuts {
    grid-template-columns: 1fr;
  }

  .solution-hero-card {
    min-height: 0;
  }

  .about-mess-gallery {
    grid-template-columns: 1fr;
  }

  .solution-image-card img,
  .virtual-tour-card img,
  .premium-gallery-grid img {
    height: 220px;
  }
}
/* Homepage refresh */
.home-page .home-hero {
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(112deg, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, .94) 35%, rgba(240, 245, 250, .9) 100%);
  padding: 54px 0 42px;
}

.home-hero-grid {
  align-items: center;
  display: grid;
  gap: 38px;
  grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr);
}

.home-hero-copy h1 {
  color: var(--ink);
  font-size: clamp(42px, 4.6vw, 68px);
  letter-spacing: 0;
  line-height: 1.02;
  margin: 12px 0 16px;
  max-width: 760px;
}

.home-hero-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.58;
  margin: 0 0 24px;
  max-width: 660px;
}

.home-hero-facts {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  max-width: 720px;
}

.home-hero-facts div {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .06);
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 82px;
  padding: 16px;
}

.home-hero-facts strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.15;
}

.home-hero-facts span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.home-hero-visual {
  aspect-ratio: 16 / 9;
  background: #0b111b;
  border-radius: 8px;
  box-shadow: 0 28px 72px rgba(15, 23, 42, .18);
  color: inherit;
  display: block;
  min-height: 390px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.home-hero-visual::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .38) 25%, rgba(255, 255, 255, 0) 48%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.home-hero-visual img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 1;
  position: absolute;
  transform: scale(1);
  transition: opacity .62s ease, transform .9s ease;
  width: 100%;
}

.home-hero-visual.is-fading img {
  opacity: .24;
  transform: scale(1.018);
}

.home-hero-caption {
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 8px;
  bottom: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
  color: var(--ink);
  max-width: 390px;
  padding: 14px 16px;
  position: absolute;
  transition: opacity .45s ease, transform .45s ease;
  right: 18px;
  z-index: 3;
}

.home-hero-visual.is-fading .home-hero-caption {
  opacity: .42;
  transform: translateY(4px);
}

.home-hero-caption span,
.home-trust-points span,
.service-number {
  color: var(--accent);
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-hero-caption strong {
  display: block;
  font-size: 15px;
  line-height: 1.3;
  margin-top: 4px;
}

@keyframes homeHeroFade {
  0%, 30% { opacity: 1; transform: scale(1); }
  34%, 96% { opacity: 0; transform: scale(1.025); }
  100% { opacity: 1; transform: scale(1); }
}

.home-metrics {
  background: #0b111b;
}

.home-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-metric-grid > div {
  border-left: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  min-height: 104px;
  padding: 24px 28px;
}

.home-metric-grid > div:last-child {
  border-right: 1px solid rgba(255, 255, 255, .16);
}

.home-metric-grid small {
  color: #9fb3ff;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.home-metric-grid strong {
  display: block;
  font-size: 25px;
  line-height: 1.1;
  margin-top: 8px;
}

.home-metric-grid span {
  color: rgba(255, 255, 255, .82);
  display: block;
  font-size: 14px;
  margin-top: 4px;
}

.home-service-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 430px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.home-service-card:hover {
  border-color: rgba(89, 65, 255, .32);
  box-shadow: 0 24px 54px rgba(15, 23, 42, .12);
  transform: translateY(-4px);
}

.home-service-card img {
  aspect-ratio: 16 / 9;
  height: 184px;
  object-fit: cover;
  width: 100%;
}

.home-service-card .copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.home-service-card h3 {
  color: var(--ink);
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 8px 0 10px;
}

.home-service-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 16px;
}

.home-service-card ul {
  color: var(--ink);
  display: grid;
  gap: 7px;
  list-style: none;
  margin: auto 0 0;
  padding: 0;
}

.home-service-card li {
  align-items: center;
  display: flex;
  font-size: 13px;
  gap: 8px;
}

.home-service-card li::before {
  background: #10b7d6;
  border-radius: 999px;
  content: "";
  height: 5px;
  width: 5px;
}

.home-service-card-featured ul {
  padding-right: 210px;
}

.home-service-highlight {
  background: rgba(16, 185, 129, .12);
  border: 1px solid rgba(16, 185, 129, .26);
  border-left: 4px solid #10b981;
  border-radius: 8px;
  bottom: 12px;
  color: #075f45;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.18;
  max-width: 228px;
  padding: 10px 12px;
  position: absolute;
  right: 12px;
  text-align: right;
}

.home-trust {
  background: #f4f7fb;
}

.home-trust-grid {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
}

.home-trust-copy h2,
.home-video-section h2 {
  max-width: 760px;
}

.home-trust-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.64;
  margin: 0;
}

.home-trust-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.home-trust-points span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
}

.home-trust-media {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.35fr .9fr;
  grid-template-rows: repeat(2, minmax(150px, 190px));
}

.home-trust-media figure {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  overflow: hidden;
  position: relative;
}

.home-fade-media {
  opacity: 1;
  transition: opacity .95s ease, transform .95s ease;
}

.home-fade-media.is-changing {
  opacity: .22;
  transform: translateY(3px);
}

.home-trust-media .large {
  grid-row: span 2;
}

.home-trust-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.home-trust-media figcaption {
  background: rgba(255, 255, 255, .9);
  border-radius: 999px;
  bottom: 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  left: 12px;
  padding: 8px 11px;
  position: absolute;
}

.home-estonia-feature {
  align-items: center;
  background: #0b111b;
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 340px;
  margin-top: 34px;
  overflow: hidden;
  padding: 28px;
}

.home-estonia-feature h3 {
  color: #fff;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 8px 0 12px;
}

.home-estonia-feature p {
  color: rgba(255, 255, 255, .84);
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 780px;
}

.home-estonia-feature img {
  border-radius: 8px;
  height: 240px;
  object-fit: cover;
  width: 100%;
}

.home-experience-feature {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 58px rgba(15, 23, 42, .08);
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  margin-top: 28px;
  padding: 28px;
}

.home-experience-copy h2 {
  color: var(--ink);
  font-size: clamp(30px, 3.1vw, 46px);
  letter-spacing: 0;
  line-height: 1.06;
  margin: 8px 0 14px;
}

.home-experience-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.62;
  margin: 0 0 20px;
}

.home-work-rotator {
  display: grid;
  gap: 12px;
  grid-template-columns: 1.35fr .9fr;
  grid-template-rows: repeat(2, minmax(150px, 190px));
}

.home-work-main,
.home-work-mini {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  transition: border-color .22s ease, box-shadow .22s ease;
}

.home-work-main {
  grid-row: span 2;
}

.home-work-main.home-fade-media {
  transition: opacity .95s ease, transform .95s ease, border-color .22s ease, box-shadow .22s ease;
}

.home-work-main:hover,
.home-work-mini:hover {
  border-color: rgba(89, 65, 255, .32);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .12);
}

.home-work-main img,
.home-work-mini img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.home-work-main img {
  min-height: 392px;
}

.home-work-side {
  display: grid;
  gap: 12px;
  grid-row: span 2;
  grid-template-rows: 1fr 1fr;
}

.home-work-mini {
  min-height: 0;
}

.home-work-main span,
.home-work-mini span {
  background: rgba(255, 255, 255, .92);
  border-radius: 999px;
  bottom: 12px;
  color: var(--ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 8px 11px;
  position: absolute;
}

.ghost-btn.light {
  background: #fff;
  color: var(--ink);
}

.home-video-section .section-head p {
  max-width: 760px;
}

.home-service-video-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-service-video-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, .07);
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: 18px;
}

.home-service-video-card-wide {
  grid-column: 1 / -1;
}

.home-service-video-copy {
  max-width: 760px;
}

.home-service-video-copy .service-number {
  color: var(--accent);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.home-service-video-card h3 {
  color: var(--ink);
  font-size: 22px;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.home-service-video-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

.home-service-video-pair {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-service-video-pair strong {
  color: var(--ink);
  display: block;
  font-size: 14px;
  line-height: 1.35;
  margin-top: 9px;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #111827;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

button.primary-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.service-video-section .section-head {
  max-width: 820px;
}

.service-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-video-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .06);
}

.service-video-card h3,
.service-video-card p {
  margin: 0;
}

.service-video-card p {
  color: #526276;
  line-height: 1.55;
}

.service-video-number {
  width: fit-content;
  border-radius: 999px;
  background: #f1efff;
  color: var(--accent);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 950;
}

.service-video-card-wide {
  grid-column: 1 / -1;
}

.service-video-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-video-pair strong {
  display: block;
  margin-top: 9px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.35;
}

.contact-hero .lead {
  max-width: 680px;
}

.contact-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.contact-highlights span,
.form-note {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 8px 12px;
  color: #162034;
  font-size: 13px;
  font-weight: 900;
}

.contact-form-layout {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  gap: 28px;
  align-items: start;
}

.contact-form-copy {
  position: sticky;
  top: 110px;
}

.form-note {
  display: inline-block;
  border-radius: 8px;
  background: #f8fafc;
  line-height: 1.55;
}

.quote-form {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(16, 24, 40, .08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

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

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field span {
  color: #162034;
  font-weight: 900;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #d8e0ea;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  font: inherit;
}

.form-field textarea {
  resize: vertical;
}

.file-field small {
  color: #64748b;
  line-height: 1.45;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .75fr);
  gap: 38px;
  align-items: center;
}

.about-hero h1 {
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: .98;
}

.about-portrait {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(16, 24, 40, .12);
}

.about-portrait img {
  display: block;
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.about-portrait figcaption {
  padding: 14px 16px;
  color: #162034;
  font-weight: 900;
}

.about-founder {
  display: inline-grid;
  gap: 4px;
  margin-top: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.about-founder span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-founder strong {
  color: var(--ink);
  font-size: 24px;
}

.about-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.about-fact-card {
  display: grid;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .06);
}

.about-fact-card strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.about-fact-card span {
  color: #526276;
  line-height: 1.45;
}

.about-video-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 20px;
  align-items: start;
}

.about-video-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .06);
}

.about-video-card h3,
.about-video-card p {
  margin: 0;
}

.about-short-frame {
  max-width: 360px;
  aspect-ratio: 9 / 16;
  justify-self: center;
}

.about-mess-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.about-mess-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .06);
}

.about-mess-gallery [data-open-image] {
  cursor: zoom-in;
}

.about-mess-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .45s ease;
}

.about-mess-gallery [data-open-image]:hover img {
  transform: scale(1.025);
}

.about-mess-gallery figcaption {
  padding: 12px 14px;
  color: #26364d;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.home-popup[aria-hidden="true"] {
  display: none;
}

.home-popup {
  background: rgba(9, 15, 24, .48);
  display: grid;
  inset: 0;
  padding: 22px;
  place-items: center;
  position: fixed;
  z-index: 100;
}

.home-popup-panel {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  max-height: min(760px, calc(100vh - 44px));
  max-width: 960px;
  overflow: hidden;
  position: relative;
  width: min(960px, 100%);
}

.home-popup-close {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 28px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 42px;
  z-index: 3;
}

.home-popup-media {
  background: #eef3f8;
  clip-path: polygon(0 0, 92% 0, 100% 100%, 0 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}

.home-popup-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.home-popup-media img + img {
  filter: saturate(.94);
}

.home-popup-copy {
  align-self: center;
  padding: 48px 42px 42px 20px;
}

.home-popup-copy h2 {
  color: var(--ink);
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 8px 0 14px;
}

.home-popup-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.58;
  margin: 0 0 22px;
}

.home-popup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 1080px) {
  .home-hero-grid,
  .home-trust-grid,
  .home-estonia-feature,
  .home-experience-feature {
    grid-template-columns: 1fr;
  }

  .home-hero-visual {
    min-height: 340px;
  }

  .home-service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-estonia-feature img {
    height: 300px;
  }
}

@media (max-width: 760px) {
  .home-page .home-hero {
    padding: 34px 0 28px;
  }

  .home-hero-copy h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .home-hero-facts,
  .home-metric-grid,
  .home-service-grid,
  .home-work-rotator,
  .home-service-video-grid,
  .home-service-video-pair,
  .home-popup-panel {
    grid-template-columns: 1fr;
  }

  .home-hero-visual {
    min-height: 260px;
  }

  .home-hero-caption {
    left: 12px;
    right: 12px;
  }

  .home-metric-grid > div {
    border-right: 1px solid rgba(255, 255, 255, .16);
    min-height: auto;
    padding: 18px 20px;
  }

  .home-trust-media {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .home-trust-media .large {
    grid-row: auto;
  }

  .home-trust-media figure {
    min-height: 220px;
  }

  .home-estonia-feature {
    padding: 22px;
  }

  .home-experience-feature {
    padding: 22px;
  }

  .home-work-rotator {
    grid-template-rows: none;
  }

  .home-work-main,
  .home-work-side {
    grid-row: auto;
  }

  .home-work-main img {
    min-height: 260px;
  }

  .home-work-mini {
    min-height: 180px;
  }

  .home-service-highlight {
    bottom: 10px;
    max-width: 190px;
    right: 10px;
  }

  .home-service-card-featured ul {
    padding-right: 0;
    padding-bottom: 72px;
  }

  .home-service-card-featured ul {
    padding-right: 0;
  }

  .home-popup-media {
    clip-path: none;
    min-height: 230px;
  }

  .home-popup-copy {
    padding: 26px 22px 24px;
  }
}

/* Production desktop nav hover: compact solution-style active surface. */
@media (min-width: 901px) {
  .site-header .nav > a:not(.quote-btn),
  .site-header .nav-links > a:not(.quote-btn),
  .site-header .main-nav > a:not(.quote-btn),
  .site-header nav a:not(.quote-btn):not(.btn):not(.cta) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 7px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    padding-inline: 13px;
    transition: color .22s ease;
  }

  .site-header .nav > a:not(.quote-btn)::before,
  .site-header .nav-links > a:not(.quote-btn)::before,
  .site-header .main-nav > a:not(.quote-btn)::before,
  .site-header nav a:not(.quote-btn):not(.btn):not(.cta)::before {
    content: "";
    position: absolute;
    inset: 4px 0;
    z-index: -1;
    border: 1px solid rgba(85, 67, 255, .18);
    border-radius: 7px;
    background: linear-gradient(90deg, rgba(85, 67, 255, .15), rgba(85, 67, 255, .045));
    opacity: 0;
    transform: translateX(-8px) scaleX(.16);
    transform-origin: left center;
    transition: transform .34s cubic-bezier(.22, .61, .36, 1), opacity .24s ease, border-color .24s ease;
  }

  .site-header .nav > a:not(.quote-btn)::after,
  .site-header .nav-links > a:not(.quote-btn)::after,
  .site-header .main-nav > a:not(.quote-btn)::after,
  .site-header nav a:not(.quote-btn):not(.btn):not(.cta)::after {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: #5543ff;
    opacity: 0;
    transform: scaleY(.25);
    transform-origin: center;
    transition: transform .28s ease, opacity .2s ease;
  }

  .site-header .nav > a:not(.quote-btn):hover,
  .site-header .nav > a:not(.quote-btn):focus-visible,
  .site-header .nav > a:not(.quote-btn)[aria-current="page"],
  .site-header .nav-links > a:not(.quote-btn):hover,
  .site-header .nav-links > a:not(.quote-btn):focus-visible,
  .site-header .nav-links > a:not(.quote-btn)[aria-current="page"],
  .site-header .main-nav > a:not(.quote-btn):hover,
  .site-header .main-nav > a:not(.quote-btn):focus-visible,
  .site-header .main-nav > a:not(.quote-btn)[aria-current="page"],
  .site-header nav a:not(.quote-btn):not(.btn):not(.cta):hover,
  .site-header nav a:not(.quote-btn):not(.btn):not(.cta):focus-visible,
  .site-header nav a:not(.quote-btn):not(.btn):not(.cta)[aria-current="page"] {
    color: #1f18c9;
  }

  .site-header .nav > a:not(.quote-btn):hover::before,
  .site-header .nav > a:not(.quote-btn):focus-visible::before,
  .site-header .nav > a:not(.quote-btn)[aria-current="page"]::before,
  .site-header .nav-links > a:not(.quote-btn):hover::before,
  .site-header .nav-links > a:not(.quote-btn):focus-visible::before,
  .site-header .nav-links > a:not(.quote-btn)[aria-current="page"]::before,
  .site-header .main-nav > a:not(.quote-btn):hover::before,
  .site-header .main-nav > a:not(.quote-btn):focus-visible::before,
  .site-header .main-nav > a:not(.quote-btn)[aria-current="page"]::before,
  .site-header nav a:not(.quote-btn):not(.btn):not(.cta):hover::before,
  .site-header nav a:not(.quote-btn):not(.btn):not(.cta):focus-visible::before,
  .site-header nav a:not(.quote-btn):not(.btn):not(.cta)[aria-current="page"]::before {
    opacity: 1;
    transform: translateX(0) scaleX(1);
  }

  .site-header .nav > a:not(.quote-btn):hover::after,
  .site-header .nav > a:not(.quote-btn):focus-visible::after,
  .site-header .nav > a:not(.quote-btn)[aria-current="page"]::after,
  .site-header .nav-links > a:not(.quote-btn):hover::after,
  .site-header .nav-links > a:not(.quote-btn):focus-visible::after,
  .site-header .nav-links > a:not(.quote-btn)[aria-current="page"]::after,
  .site-header .main-nav > a:not(.quote-btn):hover::after,
  .site-header .main-nav > a:not(.quote-btn):focus-visible::after,
  .site-header .main-nav > a:not(.quote-btn)[aria-current="page"]::after,
  .site-header nav a:not(.quote-btn):not(.btn):not(.cta):hover::after,
  .site-header nav a:not(.quote-btn):not(.btn):not(.cta):focus-visible::after,
  .site-header nav a:not(.quote-btn):not(.btn):not(.cta)[aria-current="page"]::after {
    opacity: 1;
    transform: scaleY(1);
  }
}
