/* Probita — homepage. Tokens from the Probita design system (probita-colors.css). */
:root {
  --pb-flame: #FF4500;          /* mark, CTA, campaign surface */
  --pb-flame-hover: #EB3F00;
  --pb-flame-dark: #C23400;     /* text & links on light */
  --pb-flame-light: #FF6A2B;    /* text & links on dark */
  --pb-charcoal: #212121;       /* text, dark ground */
  --pb-charcoal-surface: #2A2A2A;
  --pb-paper: #F4EFE1;          /* paper text on dark */
  --pb-paper-bg: #F9F6EE;       /* light section ground */
  --pb-wood: #3B2F21;           /* secondary text, meta */
  --pb-paper-old: #F0EAD6;      /* secondary surface */
  --pb-white: #FFFFFF;
  --pb-lilac: #C9C6DA;          /* secondary text on dark */
  --pb-line-dark: rgba(244, 239, 225, .2);
  --pb-line-light: rgba(59, 47, 33, .15);
  --pb-line-light-strong: rgba(59, 47, 33, .2);

  --pb-font-wordmark: 'Instrument Sans', system-ui, sans-serif;
  --pb-font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --pb-font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pb-font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 5vw, 56px);
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; padding: 0; background: var(--pb-charcoal); }
body {
  min-width: 320px;
  color: var(--pb-paper);
  font-family: var(--pb-font-body);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
p { margin: 0; }
em { font-style: italic; }

a { color: var(--pb-flame-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--pb-flame); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex="-1"]:focus-visible {
  outline: 2px solid var(--pb-flame-dark);
  outline-offset: 2px;
}
/* Dark surfaces need the lighter flame for a 3:1 focus ring; the white form panel inside them keeps the dark one. */
.theme-dark :focus-visible, .theme-wood :focus-visible, .video-dialog :focus-visible { outline-color: var(--pb-flame-light); }
.theme-dark .panel :focus-visible { outline-color: var(--pb-flame-dark); }
input::placeholder, textarea::placeholder { color: rgba(59, 47, 33, .55); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Layout primitives ---------- */
.wrap { position: relative; max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 112px); }

.theme-dark { background: var(--pb-charcoal); color: var(--pb-paper); }
.theme-paper { background: var(--pb-paper-bg); color: var(--pb-charcoal); }
.theme-wood { background: var(--pb-wood); color: var(--pb-paper); position: relative; overflow: hidden; }

.glow { position: absolute; border-radius: 50%; background: var(--pb-flame); filter: blur(90px); pointer-events: none; }
.glow--hero { right: -200px; bottom: -260px; width: 680px; height: 680px; opacity: .42; }
.glow--exp { right: -160px; top: -220px; width: 520px; height: 520px; opacity: .3; }

.sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 760px; }
.sec-head__main { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.sec-head--split { max-width: none; gap: 40px; }
.sec-aside { width: 100%; max-width: 480px; }
@media (min-width: 1000px) {
  .sec-head--split {
    display: grid; grid-template-columns: minmax(0, 62ch) minmax(0, 1fr);
    align-items: center; gap: clamp(40px, 6vw, 96px);
  }
  .sec-head--split .sec-aside { justify-self: end; }
}

/* Large decorative illustration (Kuhu aeg kaob) */
.big-ill { display: block; width: 100%; height: auto; overflow: visible; }
/* Filled duotone style — deliberately different from the thin line icons on the cards */
.big-ill .bi-halo { fill: var(--pb-paper-old); }
.big-ill .bi-shadow { fill: var(--pb-line-light-strong); }
.big-ill .bi-card { fill: var(--pb-white); stroke: var(--pb-wood); stroke-width: 2.5; }
.big-ill .bi-line { fill: none; stroke: var(--pb-wood); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.big-ill .bi-flow { fill: none; stroke: var(--pb-flame); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 0.5 8; }
.big-ill .bi-dot, .big-ill .bi-person { fill: var(--pb-flame); }
@media (max-width: 639.98px) { .sec-aside--ill { display: none; } }

/* Timeline (Kuidas me töötame) */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.timeline__item { position: relative; padding: 0 0 22px 32px; display: flex; flex-direction: column; gap: 2px; }
.timeline__item::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--pb-paper-bg); border: 2px solid var(--pb-wood);
}
.timeline__item:first-child::before { background: var(--pb-flame); border-color: var(--pb-flame); }
.timeline__item:not(:last-child)::after {
  content: ""; position: absolute; left: 7px; top: 21px; bottom: 0; width: 2px; background: var(--pb-line-light-strong);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__name { font-family: var(--pb-font-heading); font-weight: 600; font-size: 20px; line-height: 1.3; color: var(--pb-charcoal); }
.timeline__dur { font-weight: 500; font-size: 14px; line-height: 1.5; color: var(--pb-wood); font-variant-numeric: tabular-nums; }

/* Dictionary card (Meist) */
.lexicon {
  background: var(--pb-white); border: 1px solid var(--pb-line-light); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 6px;
}
.lexicon p { margin: 0; }
.lexicon__word { font-family: var(--pb-font-heading); font-style: italic; font-weight: 400; font-size: clamp(40px, 4.4vw, 56px); line-height: 1; color: var(--pb-charcoal); }
.lexicon__meta { margin-top: 8px !important; font-size: 13px; line-height: 1.5; color: var(--pb-wood); }
.lexicon__def { margin-top: 10px !important; font-family: var(--pb-font-heading); font-weight: 600; font-size: 22px; line-height: 1.3; color: var(--pb-charcoal); }
.lexicon__note { margin-top: 14px !important; padding-top: 14px; border-top: 1px solid var(--pb-line-light); font-size: 15px; line-height: 1.6; color: var(--pb-wood); }
.sec-head__text { max-width: 62ch; font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.sec-eyebrow {
  margin: 0; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--pb-font-body); font-weight: 600; font-size: 12px; line-height: 1.4;
  letter-spacing: .08em; text-transform: uppercase; color: var(--pb-wood);
}
.sec-eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--pb-flame); flex: none; }
.theme-dark .sec-eyebrow, .theme-wood .sec-eyebrow { color: var(--pb-lilac); }
.theme-paper .sec-head__text { color: var(--pb-wood); }
.theme-dark .sec-head__text { color: var(--pb-lilac); }

/* ---------- Type ---------- */
.h2 {
  margin: 0;
  font-family: var(--pb-font-heading); font-weight: 600;
  font-size: clamp(32px, 3.6vw, 44px); line-height: 1.08; letter-spacing: -0.01em;
}
.h4 { margin: 0 0 6px; font-weight: 600; font-size: 16px; line-height: 1.4; letter-spacing: -0.01em; }
.balance { text-wrap: balance; }
.mono { font-family: var(--pb-font-mono); font-size: 13px; line-height: 1.6; }
.eyebrow { font-weight: 600; font-size: 12px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--pb-flame-dark); }
.num { font-weight: 500; font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.dot { color: var(--pb-flame); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  font-family: var(--pb-font-body); font-weight: 600; font-size: 14px; line-height: 1.5;
  color: var(--pb-charcoal); background: var(--pb-flame);
  padding: 12px 22px; border: 0; border-radius: 999px;
  text-decoration: none; cursor: pointer; min-height: 44px;
}
.btn:hover { background: var(--pb-flame-hover); color: var(--pb-charcoal); }
.btn--lg { font-size: 17px; padding: 17px 32px; min-height: 56px; }
.btn:disabled { opacity: .6; cursor: progress; }
.link-flame { color: var(--pb-flame-light); }
.link-plain { color: var(--pb-paper); text-decoration: none; font-variant-numeric: tabular-nums; }
.link-plain:hover { color: var(--pb-flame); }
.link-strong { font-weight: 600; font-size: 16px; line-height: 1.5; color: var(--pb-charcoal); text-underline-offset: 4px; }
.link-strong:hover { color: var(--pb-flame-dark); }

/* ---------- Header & navigation ---------- */
.hero { position: relative; overflow: hidden; }
.site-header {
  padding-block: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--pb-paper); }
.brand:hover { color: var(--pb-paper); }
.brand svg { display: block; flex: none; }
.brand__word { font-family: var(--pb-font-wordmark); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; line-height: 1; }
.brand--small { gap: 6px; }
.brand--small .brand__word { font-size: 20px; }

.nav-desktop { display: flex; align-items: center; gap: 28px; }
.nav-desktop a:not(.btn) { font-weight: 500; font-size: 13px; color: var(--pb-lilac); text-decoration: none; }
.nav-desktop a:not(.btn):hover { color: var(--pb-flame); }
.nav-desktop .nav-desktop__phone { color: var(--pb-paper); font-variant-numeric: tabular-nums; }
.nav-desktop .btn { line-height: 1; min-height: 0; }
.nav-desktop__sep { width: 1px; height: 18px; background: var(--pb-line-dark); }

.menu-toggle {
  width: 44px; height: 44px; border-radius: 999px;
  border: 1px solid var(--pb-line-dark); background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.menu-toggle__bar { display: block; width: 16px; height: 1.5px; background: var(--pb-paper); }

.nav-mobile {
  position: relative;
  margin: 0 20px; padding: 4px 0 24px;
  border-top: 1px solid var(--pb-line-dark);
  display: flex; flex-direction: column;
}
.nav-mobile a:not(.btn) {
  font-weight: 500; font-size: 16px; color: var(--pb-paper); text-decoration: none;
  padding: 14px 0; border-bottom: 1px solid var(--pb-line-dark);
}
.nav-mobile a:not(.btn):hover { color: var(--pb-flame); }
.nav-mobile .nav-mobile__phone { border-bottom: 0; padding-bottom: 20px; font-variant-numeric: tabular-nums; }
.nav-mobile .btn { align-self: flex-start; }

/* Wide: desktop nav only. Narrow: the list is a disclosure, collapsed from first paint so nothing shifts when
   main.js runs. Without JS, noscript.css (loaded after this file) shows the list and hides the toggle. */
@media (min-width: 1100px) {
  .nav-mobile, .menu-toggle { display: none !important; }
}
@media (max-width: 1099.98px) {
  .nav-desktop { display: none; }
  .nav-mobile:not(.is-open) { display: none; }
}

/* ---------- Hero ---------- */
.hero__body {
  padding-top: clamp(40px, 7vw, 96px);
  padding-bottom: clamp(64px, 8vw, 112px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
  align-items: center;
  gap: 48px clamp(40px, 5vw, 72px);
}
.hero__title {
  margin: 0; max-width: 620px;
  font-family: var(--pb-font-heading); font-weight: 600;
  font-size: clamp(36px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -0.015em;
  color: var(--pb-paper); text-wrap: balance;
}
.hero__title em { font-weight: 400; }
.hero__lead { margin-top: 24px; max-width: 560px; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.6; color: var(--pb-lilac); text-wrap: pretty; }
.hero__cta { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.hero__note { font-size: 13px; line-height: 1.5; color: var(--pb-lilac); }
/* Hero video: cover link → lightbox */
.hero-video { display: flex; flex-direction: column; gap: 12px; width: 100%; text-decoration: none; color: var(--pb-paper); }
.hero-video__media {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--pb-line-dark); background: var(--pb-charcoal-surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.hero-video picture, .hero-video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-video img { transition: transform .4s ease, filter .4s ease; }
.hero-video:hover img { transform: scale(1.02); filter: brightness(.85); }
.hero-video__icon {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 68px; border-radius: 50%; background: var(--pb-flame); color: var(--pb-charcoal);
  display: flex; align-items: center; justify-content: center; padding-left: 4px;
  box-shadow: 0 0 0 8px rgba(255, 69, 0, .22), 0 10px 30px rgba(0, 0, 0, .4); transition: transform .2s ease, box-shadow .2s ease;
}
.hero-video:hover .hero-video__icon { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 0 0 12px rgba(255, 69, 0, .25), 0 10px 30px rgba(0, 0, 0, .4); }
.hero-video__caption { font-weight: 600; font-size: 14px; line-height: 1.5; color: var(--pb-paper); }
.hero-video__time { font-weight: 500; color: var(--pb-lilac); font-variant-numeric: tabular-nums; }
.hero-video:hover .hero-video__caption { color: var(--pb-flame-light); }
.hero-video:focus-visible { outline: 2px solid var(--pb-flame-light); outline-offset: 6px; border-radius: var(--radius); }
@media (prefers-reduced-motion: reduce) { .hero-video img, .hero-video__icon { transition: none; } .hero-video:hover img { transform: none; } }

.video-dialog:not([open]) { display: none; }
.video-dialog {
  width: min(1200px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: var(--radius); background: var(--pb-charcoal); color: var(--pb-paper);
  overflow: auto;
}
.video-dialog::backdrop { background: rgba(10, 10, 10, .82); }
html:has(.video-dialog[open]) { overflow: hidden; }
.video-dialog__panel { position: relative; }
.video-dialog__video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-dialog__close {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(33, 33, 33, .8); color: var(--pb-paper); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.video-dialog__close:hover { background: var(--pb-flame); color: var(--pb-charcoal); }
.video-dialog__close:focus-visible { outline: 2px solid var(--pb-flame-light); outline-offset: 2px; }
.video-rotate {
  position: absolute; inset: 0; z-index: 2; aspect-ratio: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  padding: 24px; text-align: center; background: var(--pb-charcoal); color: var(--pb-paper);
}
.video-rotate[hidden] { display: none; }
.video-dialog__panel:has(.video-rotate:not([hidden])) { min-height: 380px; }
.video-rotate__phone { color: var(--pb-flame); animation: pb-rotate 1.5s ease-in-out infinite; }
@keyframes pb-rotate { 0%, 20% { transform: rotate(0deg); } 55%, 80% { transform: rotate(-90deg); } 100% { transform: rotate(0deg); } }
.video-rotate__text { margin: 0; max-width: 28ch; font-weight: 600; font-size: 16px; line-height: 1.5; }
.video-rotate__bar { width: 160px; height: 4px; border-radius: 2px; background: var(--pb-line-dark); overflow: hidden; }
.video-rotate__bar span { display: block; height: 100%; width: 100%; background: var(--pb-flame); transform-origin: left; transform: scaleX(0); }
.video-rotate.is-counting .video-rotate__bar span { animation: pb-count 3s linear forwards; }
@keyframes pb-count { to { transform: scaleX(1); } }
.video-rotate.is-ready .video-rotate__bar { display: none; }
@media (prefers-reduced-motion: reduce) {
  .video-rotate__phone { animation: none; transform: rotate(-90deg); }
  .video-rotate.is-counting .video-rotate__bar span { animation: none; transform: scaleX(1); }
}
.video-dialog__desc { padding: 14px 20px 18px; font-size: 14px; line-height: 1.6; color: var(--pb-lilac); }
.video-dialog__desc summary { cursor: pointer; font-weight: 600; color: var(--pb-paper); }
.video-dialog__desc ol { margin: 10px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Kuhu aeg kaob ---------- */
.cards {
  margin-top: clamp(40px, 5vw, 56px);
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--pb-white); border: 1px solid var(--pb-line-light); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 12px;
}
.card__ill {
  width: 132px; height: 56px; margin-bottom: 8px;
  fill: none; stroke: var(--pb-wood); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.card__ill .acc { stroke: var(--pb-flame); stroke-width: 2; }
.card__title { margin: 0; font-family: var(--pb-font-heading); font-weight: 600; font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.card p { font-size: 16px; line-height: 1.65; color: var(--pb-wood); max-width: 52ch; }
mark.hl {
  color: var(--pb-charcoal); font-weight: 500;
  background: linear-gradient(104deg, transparent 0.3em, rgba(255, 69, 0, .14) 0.4em, rgba(255, 69, 0, .2) 95%, transparent 100%) 0 75% / 100% 1.1em no-repeat;
  padding: 0 .12em; margin: 0 -.12em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* ---------- Mida me teeme (flow) ---------- */
.flow {
  list-style: none; margin: clamp(40px, 5vw, 56px) 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 12px;
}
@media (min-width: 1100px) { .flow { grid-template-columns: repeat(4, 1fr); } }
.flow__step { background: var(--pb-charcoal-surface); color: var(--pb-paper); border-radius: var(--radius); padding: 24px; }
.flow__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flow__step .mono { color: var(--pb-lilac); }
.flow__arrow { font-size: 16px; line-height: 1; color: var(--pb-flame-light); }
.flow__arrow::before { content: "↓"; }
@media (min-width: 1100px) { .flow__arrow::before { content: "→"; } }
.flow__label { margin: 28px 0 8px; font-family: var(--pb-font-heading); font-weight: 600; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
.flow__step p { font-size: 14px; line-height: 1.6; color: var(--pb-lilac); }
.flow__step--key { background: var(--pb-flame); color: var(--pb-charcoal); }
.flow__step--key .mono, .flow__step--key .flow__arrow { color: var(--pb-charcoal); }
.flow__step--key .flow__label { font-size: 24px; }
.flow__step--key p { color: var(--pb-charcoal); font-weight: 500; }
.flow__note {
  margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--pb-line-dark);
  max-width: 72ch; font-size: 16px; line-height: 1.65; color: var(--pb-paper);
}

/* ---------- Kuidas me töötame (steps) ---------- */
.steps { list-style: none; margin: clamp(24px, 3vw, 40px) 0 0; padding: 0; display: flex; flex-direction: column; }
.steps__head { display: none; }
.step {
  border-top: 1px solid var(--pb-line-light-strong);
  padding-block: clamp(24px, 3vw, 36px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px;
}
.steps__head, .step { column-gap: clamp(24px, 3.5vw, 56px); }
@media (min-width: 1000px) {
  .steps__head, .step { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1.3fr); }
  .steps__head {
    display: grid; margin-top: clamp(40px, 5vw, 64px); padding-bottom: 12px;
    font-weight: 600; font-size: 12px; line-height: 1.4; letter-spacing: .08em; text-transform: uppercase; color: var(--pb-wood);
  }
  .steps { margin-top: 0; }
  .step__label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
  }
}
.step__meta { display: flex; flex-direction: column; gap: 6px; }
.step__meta .mono { color: var(--pb-wood); }
.step__title { margin: 0; font-family: var(--pb-font-heading); font-weight: 600; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.01em; }
.step__q { font-family: var(--pb-font-heading); font-style: italic; font-weight: 400; font-size: 20px; line-height: 1.4; color: var(--pb-wood); }
.step__dur { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.step__dur .eyebrow { color: var(--pb-wood); }
.step__cell p { font-size: 15px; line-height: 1.65; color: var(--pb-wood); }
.step__cell strong { font-weight: 600; color: var(--pb-charcoal); }
.steps__end { border-top: 1px solid var(--pb-line-light-strong); padding-top: 28px; }

/* ---------- Meie kogemus ---------- */
.exp { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.exp__label { font-size: 12px; }
.quote {
  max-width: 44ch; margin: 0 auto;
  font-family: var(--pb-font-heading); font-style: italic; font-weight: 400;
  font-size: clamp(24px, 3vw, 34px); line-height: 1.4; color: var(--pb-paper); text-wrap: balance;
}

/* ---------- Meist ---------- */
.about { display: flex; flex-direction: column; gap: 16px; max-width: 62ch; }
.about p { font-size: 16px; line-height: 1.65; color: var(--pb-wood); text-wrap: pretty; }
.about .lead { font-size: 19px; line-height: 1.55; }
.people {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px;
}
@media (min-width: 1100px) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.person {
  background: var(--pb-white); border: 1px solid var(--pb-line-light); border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 28px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px;
  align-items: start;
}
@media (min-width: 640px) { .person { grid-template-columns: 180px minmax(0, 1fr); gap: 28px; } }
.person__photo {
  width: 140px; aspect-ratio: 4 / 5; border-radius: 8px; align-self: start; overflow: hidden;
  background: var(--pb-paper-old);
}
@media (min-width: 640px) { .person__photo { width: 100%; } }
.person__photo picture, .contact-card__photo picture { display: block; width: 100%; height: 100%; }
.person__photo img, .contact-card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.person__body { display: flex; flex-direction: column; gap: 14px; min-width: 0; overflow-wrap: break-word; hyphens: auto; }
.person__name { margin: 0; font-family: var(--pb-font-heading); font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
.person__role { margin-top: 6px; hyphens: manual; -webkit-hyphens: manual; }
.person__exp { hyphens: manual; -webkit-hyphens: manual; font-weight: 600; font-size: 15px; line-height: 1.4; letter-spacing: -0.01em; padding-bottom: 14px; border-bottom: 1px solid var(--pb-line-light); }
.person p { font-size: 15px; line-height: 1.65; color: var(--pb-wood); }
.person__actions { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.person__actions a { font-weight: 500; font-size: 14px; line-height: 1.5; }

/* ---------- Kontakt ---------- */
.contact {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 48px clamp(40px, 6vw, 96px); align-items: start;
}
.contact__lead { margin-top: 24px; max-width: 440px; font-size: 18px; line-height: 1.6; color: var(--pb-lilac); }
.contact .h2 { margin-top: 18px; }
.contact-card {
  margin-top: 36px; padding: 18px 20px; border: 1px solid var(--pb-line-dark); border-radius: var(--radius);
  background: var(--pb-charcoal-surface); display: flex; align-items: flex-start; gap: 20px; max-width: 440px;
}
.contact-card__photo { width: 120px; height: auto; aspect-ratio: 4 / 5; border-radius: 8px; flex: none; overflow: hidden; background: var(--pb-wood); }
@media (max-width: 419.98px) { .contact-card { flex-direction: column; } }
.contact-card__info { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.5; min-width: 0; overflow-wrap: anywhere; }
.contact-card__name { font-weight: 600; font-size: 16px; color: var(--pb-paper); }
.contact-card__role { color: var(--pb-lilac); }
.contact-card__info a { display: flex; align-items: center; min-height: 24px; } /* WCAG 2.5.8 target size */
.contact__links {
  margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--pb-line-dark);
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font-size: 16px; line-height: 1.5;
}
.contact__links .link-plain { font-weight: 500; }

.panel { background: var(--pb-white); color: var(--pb-charcoal); border-radius: 16px; padding: clamp(24px, 4vw, 40px); }
.panel--sent { display: flex; flex-direction: column; gap: 12px; }
.panel--sent svg { display: block; flex: none; }
.panel__title { margin: 8px 0 0; font-family: var(--pb-font-heading); font-weight: 600; font-size: 22px; line-height: 1.25; }
.panel--sent p { font-size: 15px; line-height: 1.65; color: var(--pb-wood); }

.form { display: flex; flex-direction: column; gap: 20px; }
.form__title { margin: 0; font-family: var(--pb-font-heading); font-weight: 600; font-size: 24px; line-height: 1.25; letter-spacing: -0.01em; }
.field__hint { font-weight: 400; font-size: 13px; color: var(--pb-wood); }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-weight: 500; font-size: 14px; line-height: 1.5; }
.field input, .field textarea {
  font-family: var(--pb-font-body); font-size: 16px; color: var(--pb-charcoal); background: var(--pb-white);
  border: 1px solid var(--pb-line-light-strong); border-radius: 8px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.field textarea { line-height: 1.6; resize: vertical; }
.form__error { font-size: 13px; line-height: 1.5; color: var(--pb-flame-dark); font-weight: 500; }
.form__turnstile { min-height: 65px; }
.form__fail { background: var(--pb-paper); border-radius: 8px; padding: 14px 16px; font-size: 14px; line-height: 1.6; color: var(--pb-charcoal); }
.form__submit { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.form__privacy { font-size: 12px; line-height: 1.5; color: var(--pb-wood); }

/* ---------- Footer ---------- */
.footer__inner { padding: 40px 0 32px; border-top: 1px solid var(--pb-line-dark); }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 24px 48px; }
.footer__brand { display: flex; flex-direction: column; gap: 12px; max-width: 380px; }
.footer__brand p { font-size: 13px; line-height: 1.6; color: var(--pb-lilac); }
.footer__contact { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.5; }
.footer__bottom {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--pb-line-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
  font-size: 12px; line-height: 1.5; color: var(--pb-lilac);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__legal a { color: var(--pb-lilac); }
.footer__legal a:hover { color: var(--pb-flame); }

/* ---------- Privaatsusteade ---------- */
.legal__back { font-weight: 500; font-size: 14px; color: var(--pb-lilac); text-decoration: none; }
.legal__back:hover { color: var(--pb-flame); }
.legal__body { margin-top: 40px; max-width: 68ch; }
.legal__body h2 {
  margin: 40px 0 12px; font-family: var(--pb-font-heading); font-weight: 600;
  font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; color: var(--pb-charcoal);
}
.legal__body h2:first-child { margin-top: 0; }
.legal__body p, .legal__body li { font-size: 16px; line-height: 1.65; color: var(--pb-wood); }
.legal__body p + p, .legal__body ul + p { margin-top: 12px; }
.legal__body ul { margin: 12px 0 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 8px; }
.legal__body strong { color: var(--pb-charcoal); font-weight: 600; }
.legal__updated { margin-top: 40px !important; font-size: 13px !important; }
