/* ==========================================================================
   LandScout — Design System
   Premium editorial palette: forest-ink green, warm stone/cream, brass accent.
   Built to frame photography and video.
   ========================================================================== */

:root {
  /* Core palette */
  --ink:        #14231B;   /* near-black forest — dark sections, headings */
  --forest:     #1F3A2C;   /* deep green */
  --forest-2:   #2C4E3A;   /* mid green */
  --sage:       #8FA37E;   /* soft secondary accent */
  --brass:      #B08A4F;   /* premium accent — CTAs, hairlines, highlights */
  --brass-dark: #96733D;

  --paper:      #F7F4ED;   /* warm off-white — page background */
  --paper-2:    #EFEADD;   /* slightly deeper cream — alt sections */
  --paper-3:    #E7E1D2;   /* card edges / placeholders */
  --white:      #FFFFFF;

  --stone:      #6B6357;   /* muted body text on light */
  --stone-2:    #928A7B;   /* lighter muted text */
  --line:       #DDD6C7;   /* hairline dividers on light */
  --line-dark:  rgba(255,255,255,0.14);

  --text:       #23281F;   /* primary body text on light */
  --text-invert:#F3EFE6;   /* body text on dark */

  /* Typography */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --radius-lg: 10px;
  --nav-h: 76px;

  --shadow-sm: 0 2px 8px rgba(20,35,27,0.06);
  --shadow-md: 0 16px 40px rgba(20,35,27,0.10);
  --shadow-lg: 0 30px 80px rgba(20,35,27,0.16);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }
.display { font-size: clamp(2.6rem, 6vw, 5.2rem); font-optical-sizing: auto; }
h2.section-title { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.serif-italic { font-style: italic; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--brass);
  display: inline-block;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--stone); line-height: 1.65; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 640px; }
.measure-sm { max-width: 520px; }

.bg-paper-2 { background: var(--paper-2); }
.bg-ink { background: var(--ink); color: var(--text-invert); }
.bg-forest { background: var(--forest); color: var(--text-invert); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-ink h4,
.bg-forest h1, .bg-forest h2, .bg-forest h3, .bg-forest h4 { color: var(--white); }
.bg-ink .lead, .bg-forest .lead { color: rgba(243,239,230,0.78); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px;
  font-family: var(--sans); font-size: 0.92rem; font-weight: 600; letter-spacing: 0.01em;
  border-radius: 999px;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary { background: var(--brass); color: #1c1608; }
.btn--primary:hover { background: var(--brass-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(176,138,79,0.32); }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--forest); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); transform: translateY(-2px); }
.btn--ghost-light { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28); }
.btn--ghost-light:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7); transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.textlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.92rem; color: var(--forest); transition: gap .25s var(--ease); }
.textlink svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.textlink:hover { gap: 12px; color: var(--brass-dark); }
.bg-ink .textlink, .bg-forest .textlink { color: var(--brass); }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.solid,
.site-header.menu-open { background: rgba(247,244,237,0.94); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.4rem; letter-spacing: -0.02em; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand b { font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > ul { display: flex; align-items: center; gap: 2px; }
.nav-item > a, .nav-item > button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 15px; border-radius: 999px;
  font-size: 0.92rem; font-weight: 500; color: var(--ink);
  transition: background .2s, color .2s;
}
.nav-item > a:hover, .nav-item > button:hover { background: rgba(31,58,44,0.07); }
.nav-item .caret { width: 12px; height: 12px; transition: transform .3s var(--ease); opacity: .6; }
.nav-item.open .caret { transform: rotate(180deg); }

/* Mega menu */
.has-mega { position: static; }
.mega {
  position: absolute; left: 0; right: 0; top: var(--nav-h);
  background: rgba(247,244,237,0.98); backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  padding-block: 36px;
}
.nav-item.open .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 28px; }
.mega-grid.cols-2 { grid-template-columns: 1.1fr 1fr; }
.mega-link { display: block; padding: 14px 16px; border-radius: var(--radius-lg); transition: background .2s; }
.mega-link:hover { background: var(--white); box-shadow: var(--shadow-sm); }
.mega-link .ml-icon { color: var(--forest-2); margin-bottom: 8px; }
.mega-link .ml-icon svg { width: 22px; height: 22px; }
.mega-link h4 { font-family: var(--sans); font-size: 0.98rem; font-weight: 600; color: var(--ink); margin-bottom: 3px; letter-spacing: 0; }
.mega-link p { font-size: 0.82rem; color: var(--stone); line-height: 1.45; }
.mega-aside { background: var(--forest); color: var(--text-invert); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.mega-aside h4 { color: #fff; font-family: var(--serif); font-size: 1.4rem; margin-bottom: 10px; }
.mega-aside p { font-size: 0.86rem; color: rgba(243,239,230,0.8); margin-bottom: 18px; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.lang-toggle button { padding: 6px 12px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--stone); transition: background .2s, color .2s; }
.lang-toggle button.active { background: var(--ink); color: var(--paper); }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px var(--line); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; padding-top: var(--nav-h); overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,35,27,0.55) 0%, rgba(20,35,27,0.30) 40%, rgba(20,35,27,0.82) 100%); }
.hero__media img, .hero__media video { width: 100%; height: 100%; object-fit: cover; }
.hero__inner { position: relative; z-index: 1; width: 100%; padding-block: clamp(48px, 8vw, 104px); color: #fff; }
.hero h1 { color: #fff; max-width: 16ch; margin-bottom: 22px; }
.hero .lead { color: rgba(255,255,255,0.9); max-width: 54ch; margin-bottom: 30px; }
.hero .btn-row { margin-bottom: 34px; }
.hero__proof { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.18); }
.hero__proof span.label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.65); }
.hero__proof .logos { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.hero__proof .logos b { font-family: var(--serif); font-size: 1.05rem; color: rgba(255,255,255,0.92); font-weight: 500; }

/* video play affordance for placeholder */
.play-badge { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(20px, 4vw, 40px); display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 0.8rem; letter-spacing: 0.05em; }
.play-badge .disc { width: 46px; height: 46px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5); display: grid; place-items: center; }
.play-badge .disc svg { width: 16px; height: 16px; }

/* ==========================================================================
   Media placeholder (for photos/video not yet supplied)
   ========================================================================== */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(31,58,44,0.06), rgba(176,138,79,0.06)),
    var(--paper-3);
  border: 1px solid var(--line);
  display: grid; place-items: center; text-align: center;
  color: var(--stone-2);
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(31,58,44,0.10) 1px, transparent 1px);
  background-size: 18px 18px; opacity: .5;
}
.ph__inner { position: relative; padding: 22px; max-width: 84%; }
.ph__inner svg { width: 30px; height: 30px; color: var(--sage); margin: 0 auto 10px; }
.ph__label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--brass-dark); margin-bottom: 4px; }
.ph__desc { font-size: 0.82rem; color: var(--stone); line-height: 1.45; }
.ph.dark { background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(176,138,79,0.10)), var(--forest); border-color: var(--line-dark); }
.ph.dark .ph__desc { color: rgba(243,239,230,0.75); }
.ph.dark::before { background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px); }

.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3  { aspect-ratio: 4 / 3; }
.ratio-1-1  { aspect-ratio: 1 / 1; }
.ratio-3-4  { aspect-ratio: 3 / 4; }
.ratio-21-9 { aspect-ratio: 21 / 9; }

.figure { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); background: var(--white); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure--framed { padding: 10px; background: var(--white); box-shadow: var(--shadow-lg); }
.figure--framed img { border-radius: 6px; }

/* ==========================================================================
   Logo wall (trusted by)
   ========================================================================== */
.logowall { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 40px; }
.logowall .logo {
  font-family: var(--serif); font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--forest);
  opacity: 0.72; letter-spacing: -0.01em; transition: opacity .3s; white-space: nowrap;
}
.logowall .logo span { font-family: var(--sans); font-size: 0.62em; letter-spacing: 0.06em; color: var(--stone-2); }
.logowall .logo:hover { opacity: 1; }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--wide-media { grid-template-columns: 0.9fr 1.1fr; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__media { aspect-ratio: 16 / 10; }
.card__body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3 { font-family: var(--serif); font-size: 1.35rem; }
.card__body p { color: var(--stone); font-size: 0.95rem; }
.card__body .textlink { margin-top: auto; padding-top: 6px; }
.pill { align-self: flex-start; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass-dark); background: rgba(176,138,79,0.12); padding: 5px 11px; border-radius: 999px; }

/* Industry cards (use-case list) */
.usecases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.usecase { display: flex; align-items: center; gap: 18px; padding: 24px 8px; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease); }
.usecase:hover { padding-left: 18px; }
.usecase .uc-ico { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(31,58,44,0.08); color: var(--forest-2); }
.usecase .uc-ico svg { width: 22px; height: 22px; }
.usecase h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 600; letter-spacing: 0; margin-bottom: 2px; }
.usecase p { font-size: 0.85rem; color: var(--stone); }
.usecase .arrow { margin-left: auto; color: var(--brass); opacity: 0; transform: translateX(-6px); transition: .3s var(--ease); }
.usecase:hover .arrow { opacity: 1; transform: translateX(0); }

/* Feature bullets */
.feature-list { display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .fi { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(176,138,79,0.15); color: var(--brass-dark); margin-top: 2px; }
.feature-list .fi svg { width: 14px; height: 14px; }
.feature-list b { display: block; font-weight: 600; color: var(--ink); }
.feature-list span.t { color: var(--stone); font-size: 0.95rem; }

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.stat .num { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--brass); line-height: 1; }
.stat .lbl { margin-top: 8px; font-size: 0.92rem; color: var(--stone); }
.bg-ink .stat .lbl, .bg-forest .stat .lbl { color: rgba(243,239,230,0.7); }

/* ==========================================================================
   Process / step timeline (Services)
   ========================================================================== */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: minmax(150px, 190px) 1fr minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__phase { display: flex; flex-direction: column; gap: 6px; }
.step__num { font-family: var(--serif); font-size: 2.4rem; color: var(--brass); line-height: 1; }
.step__time { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-2); font-weight: 600; }
.step__content h3 { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 12px; }
.step__content p { color: var(--stone); max-width: 46ch; }
.step__media { align-self: stretch; }
.step__media .ph, .step__media .figure { height: 100%; min-height: 190px; }

/* ==========================================================================
   Timeline (About / origin)
   ========================================================================== */
.timeline { position: relative; display: grid; gap: 0; padding-left: 4px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brass), var(--sage)); opacity: .5; }
.tl-item { position: relative; padding: 0 0 40px 40px; }
.tl-item::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--brass); }
.tl-item:last-child { padding-bottom: 0; }
.tl-date { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--brass-dark); }
.tl-item h3 { font-family: var(--serif); font-size: 1.4rem; margin: 6px 0 8px; }
.tl-item p { color: var(--stone); font-size: 0.96rem; max-width: 52ch; }
.bg-ink .tl-item::before, .bg-forest .tl-item::before { background: var(--forest); }
.bg-ink .tl-item p, .bg-forest .tl-item p { color: rgba(243,239,230,0.75); }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; }
.quote .mark { font-family: var(--serif); font-size: 3.4rem; line-height: 0.6; color: var(--brass); height: 24px; }
.quote p { font-size: 1.02rem; color: var(--text); line-height: 1.6; flex: 1; }
.quote .who { display: flex; align-items: center; gap: 12px; }
.quote .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1.05rem; flex: none; }
.quote .who b { display: block; font-size: 0.92rem; color: var(--ink); }
.quote .who span { font-size: 0.82rem; color: var(--stone); }

/* ==========================================================================
   Contact band (recurring "have questions?")
   ========================================================================== */
.contact-band { position: relative; overflow: hidden; }
.contact-band .split { align-items: center; }
.contact-band .ph, .contact-band .figure { min-height: 320px; height: 100%; }
.contact-band h2 { color: #fff; }

/* Team */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.member .member__photo { aspect-ratio: 4 / 5; margin-bottom: 18px; }
.member h3 { font-family: var(--serif); font-size: 1.5rem; }
.member .role { color: var(--brass-dark); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.02em; }
.member p { color: var(--stone); font-size: 0.95rem; margin-top: 10px; }

/* ==========================================================================
   Sub-page hero (interior pages)
   ========================================================================== */
.subhero { padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 96px)); padding-bottom: clamp(40px, 6vw, 72px); }
.breadcrumb { font-size: 0.8rem; color: var(--stone-2); margin-bottom: 20px; display: flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: var(--ink); }
.subhero h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 18ch; margin-bottom: 18px; }
.subhero .lead { max-width: 60ch; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--text-invert); padding-block: clamp(56px, 7vw, 88px) 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.footer-about p { color: rgba(243,239,230,0.62); font-size: 0.92rem; max-width: 34ch; }
.footer-col h5 { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; font-weight: 700; }
.footer-col ul { display: grid; gap: 11px; }
.footer-col a, .footer-col span.fi { color: rgba(243,239,230,0.72); font-size: 0.92rem; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.footer-bottom p, .footer-bottom a { font-size: 0.82rem; color: rgba(243,239,230,0.5); }
.footer-bottom .fnav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-clients { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; opacity: .7; }
.footer-clients b { font-family: var(--serif); font-size: 0.95rem; font-weight: 500; }

/* ==========================================================================
   Modal (contact)
   ========================================================================== */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(20,35,27,0.55); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { background: var(--paper); border-radius: var(--radius-lg); max-width: 520px; width: 100%; padding: 40px; box-shadow: var(--shadow-lg); transform: translateY(12px) scale(.98); transition: transform .35s var(--ease); max-height: 90vh; overflow-y: auto; }
.modal-overlay.open .modal { transform: none; }
.modal .eyebrow { margin-bottom: 12px; }
.modal h3 { font-size: 1.8rem; margin-bottom: 8px; }
.modal p.sub { color: var(--stone); margin-bottom: 22px; font-size: 0.95rem; }
.modal-close { position: absolute; top: 20px; right: 22px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--white); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select { padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); font: inherit; font-size: 0.95rem; color: var(--text); }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176,138,79,0.15); }
.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success.show { display: block; }
.form-success .tick { width: 60px; height: 60px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; margin: 0 auto 16px; }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }

/* ==========================================================================
   Language visibility
   ========================================================================== */
[data-en] { display: none; }
html[lang="en"] [data-en] { display: revert; }
html[lang="en"] [data-et] { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  :root { --nav-h: 66px; }
  .nav { position: fixed; inset: var(--nav-h) 0 0; background: var(--paper); flex-direction: column; align-items: stretch; padding: 20px var(--gutter) 40px; gap: 0; transform: translateX(100%); transition: transform .4s var(--ease); overflow-y: auto; z-index: 90; }
  body.nav-open .nav { transform: none; }
  /* On mobile the header must NOT use backdrop-filter: it creates a containing block for the
     fixed .nav overlay (a header descendant), collapsing the menu's height to one item once
     the page is scrolled. Use a solid opaque background instead so the overlay stays full-height. */
  .site-header.solid, .site-header.menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-item > a, .nav-item > button { width: 100%; justify-content: space-between; padding: 16px 4px; border-radius: 0; font-size: 1.05rem; }
  .mega { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; background: transparent; padding: 0 0 16px; display: none; }
  .nav-item.open .mega { display: block; }
  .mega-grid, .mega-grid.cols-2 { grid-template-columns: 1fr; gap: 2px; }
  .mega-aside { display: none; }
  .mega-link { padding: 12px; }
  .nav-toggle { display: flex; margin-left: auto; }
  .header-actions .lang-toggle { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .split { grid-template-columns: 1fr; }
  .split .split__media { order: -1; }
  .contact-band .figure, .contact-band .ph { min-height: 0; height: auto; }
  .step { grid-template-columns: 1fr; gap: 20px; }
  .step__phase { flex-direction: row; align-items: baseline; gap: 14px; }
  .usecases { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; text-align: center; }
  .hero { min-height: 88vh; }
  .btn-row .btn { flex: 1 1 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .modal { padding: 28px 22px; }
  /* On phones the header row overflows (logo + ET/EN + CTA + menu button),
     which pushed the menu button off-screen. Hide the header CTA here so the
     menu button always fits; Kontakt remains reachable inside the menu. */
  .header-actions .btn { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   V3 ENHANCEMENTS (CWES) — media fit, hero video, accessibility, contrast
   ========================================================================== */

/* AA-contrast overrides for body text + accent on light backgrounds */
:root { --brass-dark: #8A6B37; --stone: #5C554A; }

/* --- Media fit: fix the height:100% distortion (give every figure a box) --- */
.figure { background: var(--paper-2); }
.figure:not([class*="ratio-"]):not(.member__photo) { aspect-ratio: 3 / 2; }
.figure img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* UI screenshots must show in full — never crop them */
.figure--contain { background: var(--paper-2); }
.figure--contain img { object-fit: contain; }
.figure--contain.figure--framed { padding: 14px; }
.card__media img { object-position: center; }

/* --- Hero video + poster layering --- */
.hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__video  { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0; transition: opacity .9s var(--ease); }
.hero__video.is-playing { opacity: 1; }
.hero__media::after { z-index: 1; }   /* gradient above media, below text */

/* --- Accessibility --- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 8px; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 4px; }
:where(a,button,input,textarea,select):focus:not(:focus-visible) { outline: none; }

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__video { display: none; }
}

/* --- V4: photo thumbnails in the Solutions mega-menu (Vado-style) --- */
.mega-link { display: flex; gap: 12px; align-items: center; }
.mega-link .ml-thumb { flex: none; width: 76px; height: 57px; border-radius: 8px; overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-sm); }
.mega-link .ml-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mega-link .ml-text { min-width: 0; }
.mega-link .ml-text h4 { margin-bottom: 3px; }

/* --- V4: compact feature list (lighter Why section) --- */
.feature-list--compact { gap: 12px; }
.feature-list--compact li { align-items: center; }
.feature-list--compact .fi { margin-top: 0; }
.feature-list--compact .t b { margin: 0; }

/* --- V6: full-photo mega-menu cards (Vado-style, text over image) --- */
.mega-grid { gap: 12px 16px; }
.mega-link { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 118px; padding: 16px 18px; border-radius: 12px; overflow: hidden; color: #fff; }
.mega-link .ml-thumb { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; box-shadow: none; z-index: 0; transition: transform .5s var(--ease); }
.mega-link .ml-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mega-link::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,35,27,0.10) 0%, rgba(20,35,27,0.52) 52%, rgba(20,35,27,0.88) 100%); }
.mega-link .ml-text { position: relative; z-index: 2; }
.mega-link .ml-text h4 { color: #fff; margin-bottom: 3px; }
.mega-link .ml-text p { color: rgba(255,255,255,0.86); }
.mega-link:hover { background: none; box-shadow: var(--shadow-md); }
.mega-link:hover .ml-thumb { transform: scale(1.06); }
@media (max-width: 960px) { .mega-link { min-height: 92px; } }

/* --- V7: full-width Solutions grid (aside removed); restore Products mega-links --- */
.mega-grid--solutions { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mega-link--photo { min-height: 150px; }
.mega-link:not(.mega-link--photo) { display: block; min-height: 0; color: inherit; padding: 14px 16px; }
.mega-link:not(.mega-link--photo)::after { content: none; }
.mega-link:not(.mega-link--photo):hover { background: var(--white); box-shadow: var(--shadow-sm); transform: none; }
.mega-link:not(.mega-link--photo) .ml-icon { color: var(--forest-2); margin-bottom: 8px; }
.mega-link:not(.mega-link--photo) h4 { color: var(--ink); }
.mega-link:not(.mega-link--photo) p { color: var(--stone); }
/* Trust quote */
.trust-quote { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.15rem); color: var(--forest); max-width: 24ch; margin-inline: auto; line-height: 1.22; }
@media (max-width: 960px) { .mega-grid--solutions { grid-template-columns: 1fr; } }

/* --- V8: who-it's-for sector cards (match Solutions imagery) --- */
.sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sector-card { position: relative; aspect-ratio: 4/3; border-radius: 14px; overflow: hidden; display: flex; align-items: flex-end; }
.sector-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.sector-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,35,27,.12) 0%, rgba(20,35,27,.5) 55%, rgba(20,35,27,.88) 100%); }
.sector-card__label { position: relative; z-index: 1; padding: 20px 22px; }
.sector-card__label h3 { color: #fff; font-family: var(--sans); font-weight: 600; font-size: 1.1rem; }
.sector-card:hover .sector-card__img { transform: scale(1.06); }
@media (max-width: 900px) { .sector-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .sector-grid { grid-template-columns: 1fr; } }
/* --- V8: alternating timeline rows --- */
.tl-row--rev .split__media { order: 2; }
@media (max-width: 960px) { .tl-row--rev .split__media { order: -1; } }
/* --- V8: industry index cards keep a consistent media ratio --- */
.industry-card .card__media { aspect-ratio: 4/3; }

/* --- V8: testimonials as the focal point (Proof section only) --- */
.quotes { gap: clamp(20px,2.5vw,30px); }
.quote { padding: clamp(28px,3vw,40px); gap: 20px; box-shadow: var(--shadow-sm); border-color: rgba(221,214,199,0.9); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.quote:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.quote .mark { font-size: 3.4rem; }
.quote p { font-size: 1.08rem; line-height: 1.72; }
.quote .who b { font-size: 1rem; }

/* --- V8: two-workflow cards — symmetric, product screenshots equal size --- */
.card--workflow .card__media { aspect-ratio: 4/3; background: var(--paper-2); }
.card--workflow .card__media img { object-position: center; }
.card--workflow .card__body { gap: 12px; padding: clamp(24px,3vw,34px); }
.card--workflow .card__body .eyebrow { margin-bottom: 2px; }

/* --- V8: workflow cards — optical balance (equal-height, CTA pinned to bottom) --- */
.card--workflow .card__body { min-height: 0; }
.card--workflow .card__body p:not(.eyebrow) { margin-bottom: 4px; }
.card--workflow .card__body .textlink { margin-top: auto; padding-top: 6px; }

/* Workflow-card media: transparent, clipped. Seamless image fill is handled
   by the site-wide rule at the end of this file (V10). */
.card--workflow .card__media { background: transparent; overflow: hidden; }

/* --- V9: About intro — single-column editorial lede (meist.html) --- */
.about-intro { padding-top: clamp(48px,7vw,104px); padding-bottom: clamp(64px,9vw,132px); }
.about-intro__head { margin-top: clamp(24px,4vw,44px); }
.about-intro__title { max-width: 20ch; margin: 14px 0 0; font-size: clamp(2.3rem,4.6vw,3.85rem); line-height: 1.04; letter-spacing: -.015em; }
.about-intro__lede { margin-top: clamp(34px,4.5vw,60px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,68px); max-width: 880px; }
.about-intro__lede p { margin: 0; font-size: clamp(1.06rem,1.3vw,1.24rem); line-height: 1.66; color: var(--stone); max-width: 40ch; }
.about-intro__lede p:first-child { position: relative; }
.about-intro__lede p:first-child::before { content: ""; position: absolute; left: 0; top: -22px; width: 46px; height: 2px; background: var(--brass); }
@media (max-width: 720px) {
  .about-intro__lede { grid-template-columns: 1fr; gap: 20px; max-width: 60ch; }
  .about-intro__lede p { max-width: none; }
  .about-intro__lede p:first-child::before { top: -18px; }
}

/* ============ V9 — "Meie tee" editorial timeline ============ */
.timeline2 { position: relative; max-width: 1080px; margin: clamp(48px,7vw,80px) auto 0; }

/* central spine — reveals by scaling down from the top */
.timeline2__line { position: absolute; left: 50%; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, transparent 0, rgba(216,190,142,.55) 6%, rgba(216,190,142,.55) 94%, transparent 100%);
  transform: translateX(-50%); }
.timeline2__line.reveal { transform: translateX(-50%) scaleY(0); transform-origin: top center;
  opacity: 1; transition: transform 1.2s var(--ease); }
.timeline2__line.reveal.in { transform: translateX(-50%) scaleY(1); }

.tl2-row { position: relative; display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px,6vw,88px); align-items: center; padding-block: clamp(26px,3.5vw,46px); }
.tl2-row--rev .tl2-media { order: 2; }
.tl2-row--rev .tl2-text  { order: 1; }

/* milestone dot on the spine — pops in just after the row fades up */
.tl2-dot { position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; border-radius: 50%;
  background: var(--brass); box-shadow: 0 0 0 5px var(--ink), 0 0 0 6px rgba(216,190,142,.30);
  z-index: 2; opacity: 0; transform: translate(-50%,-50%) scale(.4);
  transition: opacity .5s var(--ease) .15s, transform .5s var(--ease) .15s; }
.reveal.in .tl2-dot { opacity: 1; transform: translate(-50%,-50%) scale(1); }

/* consistent clipped image geometry — identical chamfer on every timeline image */
.tl2-media { aspect-ratio: 4 / 3; overflow: hidden; background: #0d1712;
  clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px); }
.tl2-media img { display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease); }
.tl2-row:hover .tl2-media img { transform: scale(1.035); }

.tl2-eyebrow { display: flex; gap: 6px; font-family: var(--sans); font-weight: 600;
  font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: #D9BE8E; }
.tl2-h { font-family: var(--serif); color: #fff; font-size: clamp(1.35rem,2vw,1.72rem);
  line-height: 1.15; letter-spacing: -.01em; margin: 14px 0 12px; }
.tl2-p { color: rgba(247,244,237,.76); font-size: clamp(1rem,1.15vw,1.1rem);
  line-height: 1.62; max-width: 46ch; }

@media (max-width: 760px) {
  .timeline2__line { left: 20px; }
  .timeline2__line.reveal, .timeline2__line.reveal.in { transform: translateX(-50%) scaleY(var(--sy,1)); }
  .timeline2__line.reveal { --sy: 0; } .timeline2__line.reveal.in { --sy: 1; }
  .tl2-row { grid-template-columns: 1fr; gap: 16px; padding-left: 46px; padding-block: clamp(22px,6vw,34px); }
  .tl2-row--rev .tl2-media, .tl2-row--rev .tl2-text { order: 0; }
  .tl2-dot { left: 20px; top: 8px; transform: translate(-50%,0) scale(.4); }
  .reveal.in .tl2-dot { transform: translate(-50%,0) scale(1); }
  .tl2-p { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .timeline2__line.reveal, .timeline2__line.reveal.in { transform: translateX(-50%) !important; transition: none !important; }
  .tl2-dot { opacity: 1 !important; transform: translate(-50%,-50%) scale(1) !important; transition: none !important; }
  .tl2-media img { transition: none !important; }
}

/* ============ V9 — Services (Teenused) editorial hero ============ */
.svc-hero { padding-top: clamp(28px,4vw,52px); padding-bottom: clamp(56px,8vw,104px); overflow: hidden; }
.svc-hero__grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(36px,6vw,88px);
  align-items: center; margin-top: clamp(20px,3vw,40px); }
.svc-hero__title { color: #fff; margin: 16px 0 0; max-width: 15ch;
  font-size: clamp(2.35rem,4.4vw,3.7rem); line-height: 1.05; letter-spacing: -.015em; }
.svc-hero__lead { margin-top: clamp(20px,2.4vw,30px); max-width: 46ch;
  color: rgba(243,239,230,.82); }

/* two equally-weighted ways to begin */
.svc-hero__paths { margin-top: clamp(28px,3.5vw,44px); display: grid; gap: 12px; max-width: 460px; }
.svc-path { display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  border: 1px solid rgba(243,239,230,.22); border-radius: var(--radius-lg);
  background: rgba(247,244,237,.03); color: #fff; text-decoration: none;
  transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.svc-path:hover { background: rgba(247,244,237,.08); border-color: rgba(216,190,142,.6); transform: translateX(3px); }
.svc-path__k { font-family: var(--serif); font-size: 1.15rem; color: var(--brass); line-height: 1;
  min-width: 26px; }
.svc-path__t { flex: 1; font-family: var(--sans); font-weight: 600; font-size: 1.02rem; letter-spacing: .01em; }
.svc-path svg { width: 20px; height: 20px; color: rgba(243,239,230,.5); transition: color .3s var(--ease), transform .3s var(--ease); }
.svc-path:hover svg { color: var(--brass); transform: translateX(3px); }

/* large clipped photograph — consistent chamfer language, scaled up */
.svc-hero__media { aspect-ratio: 4 / 5; overflow: hidden; background: #14231B;
  clip-path: polygon(52px 0, 100% 0, 100% calc(100% - 52px), calc(100% - 52px) 100%, 0 100%, 0 52px);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.55); }
.svc-hero__media img { display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease); }
.svc-hero__media:hover img { transform: scale(1.04); }

@media (max-width: 900px) {
  .svc-hero__grid { grid-template-columns: 1fr; gap: clamp(28px,6vw,44px); }
  .svc-hero__media { aspect-ratio: 3 / 2; clip-path: polygon(38px 0, 100% 0, 100% calc(100% - 38px), calc(100% - 38px) 100%, 0 100%, 0 38px); }
  .svc-hero__title { max-width: 18ch; }
  .svc-hero__paths { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .svc-hero__media img, .svc-path, .svc-path svg { transition: none !important; }
}

/* ============ V9 — chamfer photo treatment (LandScout design-system utility) ============ */
/* Same clip geometry as the About timeline images; reuse for editorial photography. */
.figure--chamfer { box-shadow: none; border-radius: 0;
  clip-path: polygon(30px 0, 100% 0, 100% calc(100% - 30px), calc(100% - 30px) 100%, 0 100%, 0 30px); }
.figure--chamfer img { border-radius: 0; }
@media (max-width: 640px) {
  .figure--chamfer { clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px); }
}

/* ============ V9 — Valdkonnad (Sectors) editorial landing ============ */
.sectors-intro { padding-top: clamp(28px,4vw,52px); padding-bottom: clamp(52px,7vw,96px); }
.sectors-intro__head { margin-top: clamp(24px,4vw,44px); }
.sectors-intro__title { margin: 14px 0 0; max-width: 24ch;
  font-size: clamp(2.5rem,5.2vw,4.1rem); line-height: 1.03; letter-spacing: -.02em; }
.sectors-intro__lead { margin-top: clamp(22px,2.6vw,32px); max-width: 58ch; color: var(--stone); }
.sectors-intro__tabs { margin-top: clamp(36px,4.6vw,60px); display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) { .sectors-intro__title br { display: none; } }

/* ============ V9 — "Mida sa saad" report band refinement (index.html) ============ */
.report-band__title { max-width: 17ch; margin: 16px 0 20px; line-height: 1.06; letter-spacing: -.015em; }
.report-band__lead { max-width: 46ch; margin-bottom: 28px; }
.report-band__cap { margin-top: 16px; display: flex; justify-content: center;
  font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(243,239,230,.5); }
@media (max-width: 760px) { .report-band__title { max-width: 22ch; } .report-band__cap { justify-content: flex-start; } }

/* ============ V9 — standardised top-of-hero spacing (reference: Meist) ============
   One rhythm for every primary page: space below nav → breadcrumb → eyebrow.
   Header-safe (includes --nav-h) so it never underlaps the fixed header on mobile. */
:root { --hero-top: calc(var(--nav-h) + clamp(24px, 3vw, 28px)); }
.subhero, .about-intro, .sectors-intro, .svc-hero { padding-top: var(--hero-top); }
/* consistent breadcrumb → eyebrow gap; neutralise per-hero head offsets so it is single-source */
.subhero .breadcrumb, .about-intro .breadcrumb { margin-bottom: clamp(28px, 4vw, 44px); }
.about-intro__head, .sectors-intro__head, .svc-hero__grid { margin-top: 0; }

/* ============ V9 — Valdkonnad sector tabs: raised, clearly-clickable chips ============
   Borrow the primary button's solidity + elevation so they read as buttons, not labels. */
.sectors-intro__tabs .btn--ghost {
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(20,35,27,.05), 0 4px 12px rgba(20,35,27,.05);
}
.sectors-intro__tabs .btn--ghost:hover,
.sectors-intro__tabs .btn--ghost:focus-visible {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(20,35,27,.05), 0 10px 22px rgba(20,35,27,.12);
}

/* ============ V9 — pricing cards (tooted.html) ============ */
.card--plan { height: 100%; }
.card--plan .plan__name { font-size: clamp(1.45rem,1.9vw,1.8rem); line-height: 1.12; letter-spacing: -.01em; }
.card--plan .plan__desc { color: var(--stone); font-size: .96rem; line-height: 1.6; }
.pcard__foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.price { margin-bottom: 18px; }
.price__from { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--stone-2); margin-bottom: 5px; }
.price__amount { font-family: var(--serif); font-size: clamp(2rem,2.7vw,2.55rem); line-height: 1.02; letter-spacing: -.01em; color: var(--ink); }
.price__unit { font-family: var(--sans); font-size: .9rem; font-weight: 500; letter-spacing: .01em; color: var(--stone-2); white-space: nowrap; }
.price__note { min-height: 1.25rem; margin: 9px 0 14px; font-size: .82rem; line-height: 1.5; color: var(--stone-2); }

/* ============ V9 — data layers page (andmekihid.html) ============ */
.data-cat { padding: clamp(24px,2vw,30px); gap: 6px; }
.data-cat__title { font-family: var(--serif); font-size: 1.24rem; line-height: 1.15; letter-spacing: -.01em; margin-bottom: 4px; }
.data-list { display: block; }
.data-list li { display: flex; gap: 11px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .92rem; line-height: 1.4; color: var(--stone); }
.data-list li:last-child { border-bottom: none; padding-bottom: 0; }
.data-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); margin-top: 7px; flex: none; }

/* ============ V9 — footer legal buttons + legal/company modals ============ */
.footer-bottom .foot-legal { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--sans); font-size: .82rem; color: rgba(243,239,230,.5); transition: color .2s; }
.footer-bottom .foot-legal:hover, .footer-bottom .foot-legal:focus-visible { color: #fff; }
.foot-provider { margin-top: 3px; font-size: .8rem; color: rgba(243,239,230,.4); }

.modal--legal { max-width: 560px; }
.modal--legal h3 { font-size: 1.55rem; margin-bottom: 6px; }
.modal__lead { color: var(--stone); margin: 0 0 6px; font-size: .96rem; line-height: 1.62; }
.modal__h { font-family: var(--sans); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-dark); margin: 22px 0 9px; }
.modal__list { display: grid; gap: 7px; margin: 0; }
.modal__list li { display: flex; gap: 10px; font-size: .95rem; color: var(--stone); line-height: 1.5; }
.modal__list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brass); margin-top: 8px; flex: none; }
.modal__p { font-size: .95rem; color: var(--stone); line-height: 1.62; margin: 4px 0 0; }
.modal__rows { display: grid; gap: 13px; margin-top: 4px; }
.modal__row .k { display: block; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--stone-2); margin-bottom: 2px; }
.modal__row .v { font-size: 1rem; color: var(--ink); }
.modal__contact { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--stone); line-height: 1.65; }
.modal__contact b { color: var(--ink); font-weight: 600; }

/* ============ V9 — Tooted mega: 3 products + resources column ============ */
.mega-tooted { display: grid; grid-template-columns: 3fr 1.1fr; gap: clamp(28px,4vw,56px); align-items: start; }
.mega-tooted__products { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px 28px; }
.mega-tooted__res { border-left: 1px solid var(--line); padding-left: clamp(24px,3vw,40px); }
.mega-reslabel { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-dark); margin-bottom: 14px; }
.mega-reslink { display: block; padding: 9px 0; color: var(--ink); font-weight: 600; font-size: .95rem; transition: color .2s; }
.mega-reslink small { display: block; margin-top: 2px; font-size: .82rem; font-weight: 400; color: var(--stone-2); }
.mega-reslink:hover { color: var(--brass-dark); }
@media (max-width: 960px) {
  .mega-tooted { grid-template-columns: 1fr; gap: 8px; }
  .mega-tooted__products { grid-template-columns: 1fr; gap: 2px; }
  .mega-tooted__res { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 12px; margin-top: 6px; }
}

/* ============ V9 — Tooted product cards with imagery ============ */
.mega-tooted__products { gap: 16px; }
.mega-pcard { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 210px; padding: 18px; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; color: #fff; }
.mega-pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s var(--ease); }
.mega-pcard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,35,27,.2) 0%, rgba(20,35,27,.55) 52%, rgba(20,35,27,.9) 100%); }
.mega-pcard:hover .mega-pcard__img { transform: scale(1.05); }
.mega-pcard h4 { color: #fff; font-size: 1.12rem; margin-bottom: 5px; }
.mega-pcard p { color: rgba(255,255,255,.82); font-size: .85rem; line-height: 1.45; min-height: 2.5em; }
.mega-pcard .pill--photo { position: absolute; top: 14px; left: 14px; background: rgba(247,244,237,.16); color: #fff; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
@media (max-width: 960px) { .mega-pcard { min-height: 150px; } }

/* ============================================================
   V10 — Site-wide seamless image fill (final image-QA rule)
   Every "cover" image fills its rounded, clipped container edge-to-edge.
   The image overscans its box by 1px on every side and is clipped by the
   container's overflow:hidden, so no subpixel white sliver can appear on
   any edge and clipping stays perfectly symmetric.
   `max-width: none` is REQUIRED: it overrides the global img{max-width:100%}
   (see top of file), which would otherwise clamp the horizontal overscan
   and re-expose a 1px right-edge gap.
   Intentionally excluded (their spacing is a design choice, not a defect):
     • .figure--contain  — UI screenshots shown whole (letterboxed on paper)
     • .figure--framed   — screenshots deliberately inset in a white frame
   Absolute inset:0 media (.sector-card__img, .mega-pcard__img, hero
   poster/video) already pin to all four edges and are seamless as-is.
   ============================================================ */
.card__media { overflow: hidden; }
.card__media img,
.figure:not(.figure--contain):not(.figure--framed) img,
.tl2-media img,
.svc-hero__media img {
  display: block;
  max-width: none;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  margin: -1px;
  object-fit: cover;
  object-position: center;
}

/* ============================================================
   PDF report lightbox — opens the sample report in a size-constrained
   modal so the browser's PDF viewer renders it at a comfortable,
   whole-page zoom (instead of the over-zoomed full-window default).
   ============================================================ */
.modal--pdf {
  max-width: min(760px, 94vw);
  width: 100%;
  height: 92vh;
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal--pdf .modal-close { top: 10px; right: 12px; z-index: 3; }
.modal--pdf .pdf-frame { flex: 1 1 auto; width: 100%; height: 100%; border: 0; background: var(--paper-2); }
.modal--pdf .pdf-modal__foot { flex: none; padding: 12px 18px; text-align: center; border-top: 1px solid var(--line); }
.modal--pdf .pdf-modal__foot .textlink { justify-content: center; }

/* Image lightbox — click a services-step screenshot to enlarge it */
.step__media img.is-zoomable { cursor: zoom-in; }
.modal--img {
  max-width: 94vw; width: auto; height: auto; max-height: 92vh;
  padding: 0; background: transparent; box-shadow: none; overflow: visible; position: relative;
}
.modal--img .lightbox-img {
  max-width: 94vw; max-height: 88vh; width: auto; height: auto;
  border-radius: 12px; box-shadow: var(--shadow-lg); display: block;
}
.modal--img .modal-close { top: 8px; right: 8px; }

/* Methodology column: sticky beside the list on desktop; static once columns
   stack on mobile (otherwise it stays pinned and overlaps the list). */
.meth-sticky { position: sticky; top: 110px; }
@media (max-width: 960px) { .meth-sticky { position: static; top: auto; } }

/* Mobile header: match the ET/EN toggle height to the menu button so they read
   as one tidy, aligned control group beside the logo. */
@media (max-width: 960px) {
  .header-actions { gap: 10px; }
  .lang-toggle { height: 42px; }
  .lang-toggle button { padding: 0 15px; height: 100%; display: inline-flex; align-items: center; }
}

/* Product sample-report: show the FULL portrait title page, height-matched to the
   text column (top/bottom aligned) on desktop; full-width, uncropped on mobile.
   On desktop the cover is absolutely positioned so its tall natural size fills the
   text's height without inflating the row. */
.report-cover { position: relative; }
.report-cover > a { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.report-cover .figure.figure--framed { height: 100%; width: auto; max-width: 100%; aspect-ratio: auto; padding: 12px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.report-cover .figure.figure--framed img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; }
@media (max-width: 960px) {
  .report-cover > a { position: static; display: block; }
  .report-cover .figure.figure--framed { height: auto; width: 100%; }
  .report-cover .figure.figure--framed img { height: auto; width: 100%; }
}
