
/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
input, textarea, select { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ===== Type ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-ink);
  letter-spacing: 0;
  line-height: 1.08;
  font-weight: 400;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto; /* last resort for a word that still does not fit: a proper syllable hyphen, not a bare cut */
  min-width: 0;
}
h1 { font-size: var(--text-display); }
h1.display-s { font-size: var(--text-display-s); }
h2 { font-size: var(--text-3xl); letter-spacing: -0.02em; }
h3 { font-size: var(--text-xl); letter-spacing: -0.015em; }
h4 { font-size: var(--text-md); letter-spacing: -0.01em; }
p { max-width: var(--measure); color: var(--color-ink-2); }
p.lede { font-size: var(--text-md); color: var(--color-ink-2); max-width: 52ch; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); display: inline-block; }

/* ===== Layout ===== */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.container-wide { max-width: var(--container-wide); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.section { padding-block: var(--space-2xl); }
.section--tight { padding-block: var(--space-xl); }
.on-dark { background: var(--color-charcoal); color: var(--color-charcoal-ink); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--color-charcoal-ink); }
.on-dark p { color: var(--color-charcoal-ink-2); }
.on-dark .eyebrow { color: var(--color-accent-2); }
.on-dark .eyebrow::before { background: var(--color-accent-2); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-sm);
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
  min-height: 44px;
}
.btn svg { width: 1em; height: 1em; flex: none; }
.btn--primary { background: var(--color-charcoal); color: var(--color-charcoal-ink); border: 1px solid var(--color-charcoal); }
.btn--primary:hover { background: var(--color-charcoal-2); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--accent { background: var(--color-accent); color: var(--color-accent-ink); border: 1px solid var(--color-accent); }
.btn--accent:hover { background: var(--color-accent-2); transform: translateY(-1px); }
.btn--outline { background: transparent; color: var(--color-ink); border: 1px solid var(--color-rule); }
.btn--outline:hover { border-color: var(--color-ink); }
.on-dark .btn--outline, .hero .btn--outline { color: var(--color-charcoal-ink); border-color: var(--color-charcoal-rule); }
.on-dark .btn--outline:hover, .hero .btn--outline:hover { border-color: var(--color-charcoal-ink-2); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn--loading { position: relative; color: transparent !important; }
.btn--loading::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent; color: var(--color-charcoal-ink);
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 600; font-size: var(--text-sm);
  border-bottom: 1px solid var(--color-rule);
  padding-bottom: 2px;
  transition: border-color var(--dur-base) var(--ease-out), gap var(--dur-base) var(--ease-out);
}
.link-arrow:hover { border-color: var(--color-accent); gap: 0.6em; }
.link-arrow svg { width: 1em; height: 1em; }

/* ===== Nav — flush top bar (studied DNA: Tyrsight reference) ===== */
.nav-wrap {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in oklab, var(--color-charcoal) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-charcoal-rule);
}
.nav {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.9rem clamp(1.25rem, 4vw, 2.5rem);
}
.nav__brand { display: flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-weight: 700; font-size: var(--text-md); color: var(--color-charcoal-ink); letter-spacing: -0.02em; }
.nav__mark { width: 26px; height: 26px; flex: none; }
.nav__links { display: flex; align-items: center; gap: var(--space-sm); }
.nav__item { position: relative; }
.nav__link {
  font-size: var(--text-sm); font-weight: 500; color: var(--color-charcoal-ink-2);
  padding: 0.5rem 0.15rem; display: inline-flex; align-items: center; gap: 0.3em;
  transition: color var(--dur-base) var(--ease-out);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--color-charcoal-ink); }
.nav__link svg { width: 0.75em; height: 0.75em; transition: transform var(--dur-base) var(--ease-out); }
.nav__item:hover .nav__link svg { transform: rotate(180deg); }
.nav__drop {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px);
  min-width: 15rem; padding: 0.5rem; border-radius: var(--radius-md);
  background: var(--color-charcoal-2); box-shadow: 0 20px 40px -20px oklch(10% 0 0 / 0.6), 0 0 0 1px var(--color-charcoal-rule);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 10px); }
/* invisible bridge so the pointer can cross the gap between link and dropdown */
.nav__drop::before { content: ""; position: absolute; left: 0; right: 0; top: -1rem; height: 1rem; }
.nav__item .nav__drop { transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s linear 0.25s; }
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop { transition-delay: 0s; }
.nav__drop a { display: block; padding: 0.6rem 0.75rem; border-radius: var(--radius-sm); font-size: var(--text-sm); color: var(--color-charcoal-ink-2); }
.nav__drop a:hover { background: var(--color-charcoal-3); color: var(--color-charcoal-ink); }
.nav__cta {
  flex: none; border-radius: var(--radius-sm); background: var(--color-charcoal-ink); color: var(--color-charcoal);
  text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--text-xs); padding: 0.75rem 1.4rem;
}
.nav__cta:hover { background: var(--color-accent-2); color: var(--color-accent-ink); }
.nav__toggle { display: none; }
/* explicit icon size: without it iOS Safari collapses the SVG to 0x0 and the burger is invisible (but still tappable) */
.nav__toggle svg { width: 34px; height: 34px; flex: none; display: block; stroke-width: 2; }

@media (max-width: 60rem) {
  .nav__links { display: none; }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    flex: none; width: 48px; height: 48px; border-radius: 50%; color: var(--color-charcoal-ink);
  }
  .nav__brand { flex: none; }
  .nav__cta { display: none; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0;
    background: var(--color-charcoal-2); border-radius: var(--radius-lg);
    padding: 0.5rem; box-shadow: 0 20px 40px -20px oklch(10% 0 0 / 0.6);
    /* the header is sticky: never let the opened menu be taller than the screen — scroll inside it instead */
    max-height: calc(100vh - 6.25rem); max-height: calc(100svh - 6.25rem);
    overflow-y: auto; overscroll-behavior: contain;
  }
  .nav.is-open .nav__link { padding: 0.9rem 0.9rem; width: 100%; }
  .nav.is-open .nav__drop { position: static; transform: none; opacity: 1; visibility: visible; pointer-events: auto; box-shadow: none; background: transparent; margin-left: 0.75rem; display: none; }
  .nav.is-open .nav__item.is-open .nav__drop { display: block; }
  /* the "Küsi pakkumist" button lives at the bottom of the opened menu, not in the (narrow) header row */
  .nav.is-open .nav__cta-item { display: block; padding: 0.75rem 0.5rem 0.5rem; }
  .nav.is-open .nav__cta-item .btn { width: 100%; justify-content: center; text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--text-xs); }
}
.nav__cta-item { display: none; }

/* ===== Hero (Bento top tile) ===== */
.hero {
  background: var(--color-charcoal);
  color: var(--color-charcoal-ink);
  padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4rem);
  position: relative;
  overflow: clip;
}
.hero--photo {
  background-image:
    linear-gradient(180deg, color-mix(in oklab, var(--color-charcoal) 78%, transparent) 0%, var(--color-charcoal) 92%),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
}

/* ===== Media frame (product/about/blog cover images) ===== */
.media-frame {
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}
.media-frame img, .media-frame video { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.media-frame figcaption { padding: var(--space-sm) var(--space-md); font-size: var(--text-xs); color: var(--color-muted); border-top: 1px solid var(--color-rule); }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--space-xl); align-items: stretch; }
.hero__eyebrow { color: var(--color-accent-2); margin-bottom: var(--space-md); }
.hero h1 { color: var(--color-charcoal-ink); max-width: 16ch; }
.hero__lede { color: var(--color-charcoal-ink-2); font-size: var(--text-md); max-width: 42ch; margin-top: var(--space-md); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.hero__panel {
  border: 1px solid var(--color-charcoal-rule);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  background: var(--color-charcoal-2);
  display: flex; flex-direction: column; gap: var(--space-md);
}
.hero__stat { display: flex; flex-direction: column; gap: 0.2rem; }
.hero__stat b { font-family: var(--font-mono); font-size: var(--text-2xl); color: var(--color-accent-2); letter-spacing: -0.02em; }
.hero__stat span { font-size: var(--text-xs); color: var(--color-charcoal-ink-2); text-transform: uppercase; letter-spacing: 0.08em; }
.hero__license { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-charcoal-ink-2); border-top: 1px solid var(--color-charcoal-rule); padding-top: var(--space-sm); line-height: 1.7; }

@media (max-width: 60rem) {
  .hero__grid { grid-template-columns: 1fr; }
}

.pretitle { font-size: var(--text-sm); color: var(--color-charcoal-ink-2); max-width: 30ch; margin-bottom: var(--space-lg); line-height: 1.6; }

/* ===== Hero card — big headline + framed building photo with drawn-out hotspot annotations ===== */
.hero--card { padding-block: clamp(3rem, 7vh, 5rem) clamp(3rem, 6vh, 4.5rem); }
.hero__wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr); grid-template-rows: auto auto; column-gap: var(--space-lg); row-gap: var(--space-lg); align-items: start; }
.hero__wrap > .headline { grid-column: 1 / -1; font-size: clamp(2.6rem, 6.4vw, 6.25rem); line-height: 0.96; }
.hero__side { grid-column: 1; grid-row: 2; }
.hero__side .pretitle { margin-bottom: var(--space-md); }
.hero__side .hero__lede { font-size: var(--text-base); margin-top: 0; max-width: 30ch; }
.hero__side .hero__actions { margin-top: var(--space-md); }
.hero__stage {
  grid-column: 2; grid-row: 2; position: relative; overflow: hidden; aspect-ratio: 2688 / 1520;
  border: 1px solid var(--color-charcoal-rule); border-radius: var(--radius-lg);
  background: var(--color-charcoal-2); box-shadow: 0 30px 70px -30px oklch(5% 0 0 / 0.7);
}
.hero__scene { position: absolute; inset: 0; }
.hero__scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; overflow: visible; pointer-events: none; }
.hotspot__line { fill: none; stroke: var(--color-accent-2); stroke-width: 1.5; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hotspot__dot { position: absolute; z-index: 3; width: 14px; height: 14px; translate: -50% -50%; }
.hotspot__dot i { position: absolute; inset: 0; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--color-accent) 35%, transparent); }
.hotspot__dot::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1px solid var(--color-accent-2);
  animation: hotspot-pulse 2.4s var(--ease-out) infinite;
}
@keyframes hotspot-pulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.2); opacity: 0; } }
.hotspot__label { position: absolute; z-index: 4; display: block; white-space: nowrap; }
.hotspot__labelin {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.8rem; border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-charcoal-ink);
  background: color-mix(in oklab, var(--color-charcoal) 78%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid color-mix(in oklab, var(--color-accent) 65%, transparent);
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.hotspot__label b { color: var(--color-accent-2); font-weight: 500; }
.hotspot__label:hover .hotspot__labelin { background: var(--color-accent); color: var(--color-accent-ink); }
.hotspot__label:hover b { color: var(--color-accent-ink); }
.hotspot__label--l { translate: -100% -50%; }
.hotspot__label--r { translate: 0 -50%; }
.hero__chips { display: none; list-style: none; margin: 0; gap: var(--space-2xs); flex-wrap: wrap; }
.hero__chips a { display: inline-flex; gap: 0.4rem; padding: 0.5rem 0.8rem; border: 1px solid var(--color-charcoal-rule); border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-charcoal-ink); }
.hero__chips b { color: var(--color-accent-2); font-weight: 500; }
@media (max-width: 60rem) {
  .hero--card { min-height: calc(100svh - 4.3rem); display: flex; flex-direction: column; justify-content: center; }
  .hero--card > .container { width: 100%; }
  .hero__wrap { grid-template-columns: minmax(0, 1fr); }
  .hero__side, .hero__stage { grid-column: 1; }
  .hero__side { grid-row: auto; }
  .hero__stage { grid-row: auto; }
  .hotspot__dot { width: 10px; height: 10px; }
  .hotspot__dot i { box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-accent) 35%, transparent); }
  .hotspot__labelin { font-size: 0.625rem; padding: 0.3rem 0.45rem; letter-spacing: 0.03em; gap: 0.35em; }
  .hero__chips { display: none; }
}

/* ===== Headline — two-tone uppercase display (studied DNA: Tyrsight reference) ===== */
.headline {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0;
  font-size: clamp(2rem, 3.2vw + 1rem, 3.25rem);
  overflow-wrap: break-word;
  word-break: normal;
  min-width: 0;
}
.headline--hero { font-size: var(--text-display); }
.headline .line { display: block; }
.headline .line--bright { color: var(--color-ink); }
.headline .line--muted { color: var(--color-muted); }
.on-dark .headline .line--bright, .hero .headline .line--bright, .cta-band .headline .line--bright { color: var(--color-charcoal-ink); }
.on-dark .headline .line--muted, .hero .headline .line--muted, .cta-band .headline .line--muted { color: var(--color-charcoal-ink-2); }
.cta-band h1, .cta-band h2, .cta-band h3, .cta-band h4 { color: var(--color-charcoal-ink); }

/* ===== Ghost word — oversized outline text behind a content row ===== */
.ghost-wrap { position: relative; }
.ghost-word {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-46%);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(5rem, 17vw, 13rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--color-rule); text-stroke: 1px var(--color-rule);
  white-space: nowrap; pointer-events: none; user-select: none; z-index: 0;
}
.on-dark .ghost-word { -webkit-text-stroke-color: var(--color-charcoal-rule); text-stroke-color: var(--color-charcoal-rule); }
.ghost-wrap > *:not(.ghost-word) { position: relative; z-index: 1; }

/* ===== Photo row — tall borderless photos overlapping a ghost word ===== */
.photo-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2xs); }
.photo-row img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
@media (max-width: 48rem) { .photo-row { grid-template-columns: minmax(0,1fr); } .photo-row img { aspect-ratio: 4/3; } }

/* ===== Split head — heading left, supporting paragraph right (studied DNA) ===== */
.split-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: end; }
.split-head p { max-width: 40ch; }
@media (max-width: 55rem) { .split-head { grid-template-columns: 1fr; } }

/* ===== Index list — typographic product/service list (no icon cards) ===== */
.index-list { border-top: 1px solid var(--color-rule); }
.index-list__item {
  display: flex; align-items: flex-start; gap: var(--space-lg);
  padding: var(--space-lg) 0; border-bottom: 1px solid var(--color-rule);
  transition: gap var(--dur-base) var(--ease-out);
}
.index-list__item:hover { gap: var(--space-xl); }
.index-list__item .num { font-family: var(--font-mono); color: var(--color-accent); font-size: var(--text-sm); flex: none; padding-top: 0.5em; }
.index-list__thumb {
  display: none; flex: none; width: 3.25rem; height: 3.25rem; object-fit: cover;
  border-radius: var(--radius-sm);
}
.index-list__item h3 {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem); letter-spacing: 0; flex: 1; min-width: 0;
  overflow-wrap: break-word; word-break: normal; hyphens: auto;
  transition: color var(--dur-base) var(--ease-out);
}
.index-list__item:hover h3 { color: var(--color-accent); }
.index-list__item p { flex: none; width: 26ch; font-size: var(--text-sm); display: none; }
.index-list__item .arrow { flex: none; width: 22px; height: 22px; color: var(--color-accent); margin-top: 0.6em; transition: transform var(--dur-base) var(--ease-out); }
.index-list__item:hover .arrow { transform: translateX(6px); }
@media (min-width: 60rem) { .index-list__item p { display: block; } }
@media (max-width: 40rem) {
  .index-list__item { gap: var(--space-md); }
  .index-list__item h3 { font-size: 1.375rem; }
}
@media (hover: none), (pointer: coarse) {
  .index-list__thumb { display: block; }
}

/* ===== Hover modal — cursor-following image preview on index-list rows ===== */
.hover-modal {
  position: fixed; top: 0; left: 0; width: 15rem; height: 19rem;
  margin-top: -9.5rem; margin-left: -7.5rem;
  border-radius: var(--radius-md); overflow: hidden;
  pointer-events: none; z-index: 500;
  opacity: 0; transform: scale(0.4);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  background: var(--color-charcoal);
  box-shadow: 0 30px 60px -20px oklch(10% 0 0 / 0.45);
}
.hover-modal.is-active { opacity: 1; transform: scale(1); }
.hover-modal__track {
  display: flex; flex-direction: column;
  width: 100%; height: 100%;
  transition: transform var(--dur-slow) var(--ease-in-out);
  will-change: transform;
}
.hover-modal__frame { width: 100%; height: 19rem; flex: none; }
.hover-modal__frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hover-modal__label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--color-charcoal) 35%, transparent);
  color: var(--color-charcoal-ink); font-family: var(--font-mono);
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em;
}
@media (hover: none), (pointer: coarse) { .hover-modal { display: none !important; } }

/* ===== Numbered grid — asymmetric 1/2/3 credibility blocks ===== */
.numbered-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: var(--color-rule); border: 1px solid var(--color-rule);
}
.numbered-grid > * { background: var(--color-paper); padding: var(--space-xl); display: flex; flex-direction: column; gap: var(--space-sm); min-height: 18rem; }
.numbered-grid__num { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-accent); }
.numbered-grid__media { padding: 0 !important; }
.numbered-grid__media img { width: 100%; height: 100%; object-fit: cover; min-height: 18rem; }
.numbered-grid__block--dark { background: var(--color-charcoal); color: var(--color-charcoal-ink); }
.numbered-grid__block--dark h3 { color: var(--color-charcoal-ink); }
.numbered-grid__block--dark p { color: var(--color-charcoal-ink-2); }
.numbered-grid__block--dark .numbered-grid__num { color: var(--color-accent-2); }
.numbered-grid__block--accent { background: var(--color-accent); color: var(--color-accent-ink); }
.numbered-grid__block--accent h3 { color: var(--color-accent-ink); }
.numbered-grid__block--accent p { color: color-mix(in oklab, var(--color-accent-ink) 75%, transparent); }
.numbered-grid__block--accent .numbered-grid__num { color: var(--color-accent-ink); }
.numbered-grid__block h3 { font-size: var(--text-lg); }
@media (max-width: 60rem) {
  .numbered-grid { grid-template-columns: minmax(0, 1fr); }
  .numbered-grid > * { min-height: 0; }
  .numbered-grid__media img { min-height: 14rem; }
}

/* ===== Photo collage — asymmetric mosaic ===== */
.collage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 6.5rem; gap: 2px; grid-auto-flow: dense; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage__item--big { grid-column: span 2; grid-row: span 2; }
.collage__item--wide { grid-column: span 2; grid-row: span 1; }
@media (max-width: 48rem) {
  .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 5rem; }
  .collage__item--big { grid-column: span 2; grid-row: span 2; }
  .collage__item--wide { grid-column: span 2; grid-row: span 1; }
}

.caption-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.caption-row h4 { font-size: var(--text-base); margin-bottom: var(--space-2xs); }
.caption-row p { font-size: var(--text-sm); }
@media (max-width: 48rem) { .caption-row { grid-template-columns: minmax(0,1fr); } }

/* ===== CTA band — full-bleed dark photo with overlay headline ===== */
.cta-band {
  position: relative; overflow: clip; border-radius: var(--radius-lg);
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 3.5rem);
  background-image: linear-gradient(180deg, color-mix(in oklab, var(--color-charcoal) 55%, transparent), var(--color-charcoal) 96%), var(--cta-bg);
  background-size: cover; background-position: center;
  color: var(--color-charcoal-ink);
}
.cta-band .headline { max-width: 20ch; }
.cta-band p.lede { color: var(--color-charcoal-ink-2); margin-top: var(--space-md); max-width: 46ch; }
.cta-band .hero__actions { margin-top: var(--space-lg); }

/* ===== Section head — S2 Hanging ===== */
.section-head { max-width: 40rem; margin-bottom: var(--space-xl); }
.section-head h2 { margin-top: var(--space-sm); }
.section-head p { margin-top: var(--space-sm); }
.section-head--wide { max-width: 56rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--split { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-lg); max-width: none; }
.section-head--split .section-head__copy { max-width: 40rem; }
@media (max-width: 48rem) { .section-head--split { flex-direction: column; align-items: flex-start; } }

/* ===== Bento grid (home) ===== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.bento__tile {
  grid-column: span 2;
  border: 1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  background: var(--color-paper);
  display: flex; flex-direction: column; gap: var(--space-sm);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  min-width: 0;
}
.bento__tile:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.bento__tile--wide { grid-column: span 4; }
.bento__tile--tall { grid-row: span 2; }
.bento__tile--dark { background: var(--color-charcoal); border-color: var(--color-charcoal); color: var(--color-charcoal-ink); }
.bento__tile--dark h3 { color: var(--color-charcoal-ink); }
.bento__tile--dark p { color: var(--color-charcoal-ink-2); }
.bento__icon { width: 44px; height: 44px; color: var(--color-accent); flex: none; }
.bento__tile h3 { margin-top: auto; }
.bento__tile .link-arrow { margin-top: var(--space-2xs); }

@media (max-width: 60rem) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento__tile { grid-column: span 2 !important; grid-row: auto !important; }
}
@media (max-width: 40rem) {
  .bento { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Step sequence (F4) ===== */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: var(--space-md); counter-reset: step; }
.step { border-top: 2px solid var(--color-rule); padding-top: var(--space-md); position: relative; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-accent);
  display: block; margin-bottom: var(--space-sm);
}
.step h3 { font-size: var(--text-lg); margin-bottom: var(--space-2xs); }
@media (max-width: 60rem) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 40rem) { .steps { grid-template-columns: minmax(0,1fr); } }

.steps--vertical { display: flex; flex-direction: column; gap: 0; counter-reset: step; }
.steps--vertical .step {
  border-top: none; border-left: 2px solid var(--color-rule);
  padding: 0 0 var(--space-xl) var(--space-lg);
  margin-left: 0.6rem;
}
.steps--vertical .step:last-child { padding-bottom: 0; }
.steps--vertical .step::before {
  position: absolute; left: -0.68rem; top: -0.15rem;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--color-paper); border: 2px solid var(--color-accent); color: var(--color-accent);
  display: flex; align-items: center; justify-content: center; margin: 0;
  font-size: 0.65rem;
}

/* ===== Tabular spec sheet (F3) ===== */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: var(--space-sm) var(--space-sm) var(--space-sm) 0; border-bottom: 1px solid var(--color-rule); vertical-align: top; }
.spec-table th { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-muted); font-weight: 500; }
.spec-table td { font-size: var(--text-sm); color: var(--color-ink-2); }
.spec-table td:first-child, .spec-table th:first-child { color: var(--color-ink); font-weight: 600; width: 32%; }
@media (max-width: 40rem) {
  .spec-table thead { display: none; }
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table td { display: block; width: 100%; }
  .spec-table tr { border-bottom: 1px solid var(--color-rule); padding-block: var(--space-sm); }
  .spec-table td { border-bottom: none; padding: 0.2rem 0; }
  .spec-table td:first-child { padding-top: 0; }
}

/* ===== Cards ===== */
.card { border: 1px solid var(--color-rule); border-radius: var(--radius-lg); padding: var(--space-lg); background: var(--color-paper); display: flex; flex-direction: column; gap: var(--space-sm); min-width: 0; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--space-md); }
@media (max-width: 60rem) { .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 40rem) { .card-grid { grid-template-columns: minmax(0,1fr); } }
.card-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 48rem) { .card-grid--2 { grid-template-columns: minmax(0,1fr); } }
.card img { border-radius: var(--radius-md); aspect-ratio: 16/9; object-fit: cover; }
.card__meta { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ===== Reference / client list ===== */
.ref-list { display: block; border-top: 1px solid var(--color-rule); }
.ref-list__item { position: relative; display: grid; grid-template-columns: 3.5rem minmax(0,1fr) auto; align-items: center; gap: var(--space-sm); padding: var(--space-md) var(--space-sm); border-bottom: 1px solid var(--color-rule); overflow: hidden; isolation: isolate; transition: color var(--dur-base) var(--ease-out), padding var(--dur-base) var(--ease-out); }
.ref-list__item::before { content: ""; position: absolute; inset: 0; background: var(--color-charcoal); transform: scaleY(0); transform-origin: bottom; transition: transform .45s cubic-bezier(.2,.7,.2,1); z-index: -1; }
.ref-list__item i { font-style: normal; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); }
.ref-list__item h4 { font-size: var(--text-md); font-weight: 400; margin-bottom: 0.2rem; overflow-wrap: break-word; }
.ref-list__item span { font-size: var(--text-sm); color: var(--color-muted); }
.ref-list__item > svg { width: 1.25rem; height: 1.25rem; opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s; }
@media (hover: hover) and (pointer: fine) {
  .ref-list__item:hover { padding-left: var(--space-md); }
  .ref-list__item:hover::before { transform: scaleY(1); transform-origin: top; }
  .ref-list__item:hover h4 { color: var(--color-charcoal-ink); }
  .ref-list__item:hover span, .ref-list__item:hover i { color: var(--color-charcoal-ink-2); }
  .ref-list__item:hover > svg { opacity: 1; transform: none; color: var(--color-accent-2); }
}
.ref-preview { position: fixed; left: 0; top: 0; width: 15rem; aspect-ratio: 4/3; margin: -3.75rem 0 0 1.5rem; border-radius: var(--radius-md); overflow: hidden; pointer-events: none; z-index: 60; opacity: 0; transform: scale(.92); transition: opacity .25s, transform .25s; box-shadow: 0 24px 48px -20px oklch(10% 0 0 / .6); }
.ref-preview.is-active { opacity: 1; transform: none; }
.ref-preview img { width: 100%; height: 100%; object-fit: cover; }

.logo-wall { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--color-rule); border-radius: var(--radius-lg); overflow: hidden; }
.logo-wall a, .logo-wall__item { flex: 1 1 0; min-width: 12rem; padding: var(--space-lg); display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--color-rule); font-family: var(--font-display); font-weight: 700; font-size: var(--text-md); color: var(--color-ink-2); text-align: center; transition: color var(--dur-base) var(--ease-out); }
.logo-wall a:last-child, .logo-wall__item:last-child { border-right: none; }
.logo-wall a:hover { color: var(--color-ink); }
@media (max-width: 40rem) { .logo-wall { flex-direction: column; } .logo-wall a, .logo-wall__item { border-right: none; border-bottom: 1px solid var(--color-rule); } .logo-wall a:last-child, .logo-wall__item:last-child { border-bottom: none; } }

/* ===== Stat strip (T4) ===== */
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--space-md); }
.stat-strip__item b { font-family: var(--font-mono); font-size: var(--text-2xl); display: block; letter-spacing: -0.02em; }
.stat-strip__item span { font-size: var(--text-sm); color: var(--color-muted); }
@media (max-width: 48rem) { .stat-strip { grid-template-columns: minmax(0,1fr); gap: var(--space-lg); } }

/* ===== CTA strip (C1) ===== */
.cta-strip {
  background: var(--color-charcoal); color: var(--color-charcoal-ink);
  border-radius: var(--radius-lg); padding: var(--space-xl);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap;
}
.cta-strip h2 { color: var(--color-charcoal-ink); max-width: 24ch; }
.cta-strip p { color: var(--color-charcoal-ink-2); }
@media (max-width: 48rem) { .cta-strip { flex-direction: column; align-items: flex-start; } }

/* ===== Breadcrumb ===== */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4em; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-lg); }
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb span[aria-hidden] { opacity: 0.5; }

/* ===== Page hero (interior pages, smaller than home hero) ===== */
.page-hero { background: var(--color-charcoal); color: var(--color-charcoal-ink); padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-hero .breadcrumb { color: var(--color-charcoal-ink-2); }
.page-hero h1 { color: var(--color-charcoal-ink); max-width: 24ch; text-transform: uppercase; letter-spacing: -0.015em; }
.page-hero p.lede { color: var(--color-charcoal-ink-2); margin-top: var(--space-sm); }

/* ===== Contact layout ===== */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-xl); align-items: start; }
@media (max-width: 60rem) { .contact-grid { grid-template-columns: minmax(0,1fr); } }

/* ===== Forms ===== */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-sm) var(--space-md); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--text-sm); font-weight: 600; }
.field input, .field select, .field textarea {
  border: 1px solid var(--color-rule); border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem; background: var(--color-paper); color: var(--color-ink);
  transition: border-color var(--dur-base) var(--ease-out);
  min-height: 44px;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--color-ink-2); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--color-accent); }
.field .hint { font-size: var(--text-xs); color: var(--color-muted); }
.field .error-text { font-size: var(--text-xs); color: var(--color-error); display: none; }
.field.is-error input, .field.is-error textarea, .field.is-error select { border-color: var(--color-error); }
.field.is-error .error-text { display: block; }
@media (max-width: 40rem) { .form-grid { grid-template-columns: minmax(0,1fr); } }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-slot { min-height: 0; margin-top: var(--space-md); }
.turnstile-slot:not(:empty) { min-height: 65px; }
.form-status { padding: var(--space-md); border-radius: var(--radius-md); font-size: var(--text-sm); display: none; margin-top: var(--space-sm); }
.form-status.is-success { display: block; background: color-mix(in oklab, var(--color-success) 12%, var(--color-paper)); color: var(--color-success); }
.form-status.is-error { display: block; background: color-mix(in oklab, var(--color-error) 10%, var(--color-paper)); color: var(--color-error); }

/* ===== Accordion (FAQ / infokeskus) ===== */
.accordion { border-top: 1px solid var(--color-rule); }
.accordion__item { border-bottom: 1px solid var(--color-rule); }
.accordion__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
  padding: var(--space-md) 0; text-align: left; font-family: var(--font-display); font-weight: 400; font-size: var(--text-md);
}
.accordion__trigger svg { flex: none; width: 20px; height: 20px; transition: transform var(--dur-base) var(--ease-out); color: var(--color-accent); }
.accordion__item.is-open .accordion__trigger svg { transform: rotate(45deg); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height var(--dur-slow) var(--ease-in-out); }
.accordion__panel-inner { padding-bottom: var(--space-md); }

/* ===== Footer — Ft1 Mast-headed ===== */
.footer { background: var(--color-charcoal); color: var(--color-charcoal-ink-2); padding-block: var(--space-2xl) var(--space-lg); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-lg); padding-bottom: var(--space-xl); border-bottom: 1px solid var(--color-charcoal-rule); }
.footer__brand { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__wordmark { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); color: var(--color-charcoal-ink); }
.footer__wordmark svg { width: 30px; height: 30px; }
.footer__tagline { max-width: 30ch; color: var(--color-charcoal-ink-2); font-size: var(--text-sm); }
.footer__col h4 { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-charcoal-ink-2); font-weight: 500; margin-bottom: var(--space-sm); }
.footer__col a, .footer__col address { display: block; font-size: var(--text-sm); color: var(--color-charcoal-ink); padding-block: 0.35rem; font-style: normal; }
.footer__col a:hover { color: var(--color-accent-2); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); padding-top: var(--space-lg); flex-wrap: wrap; font-size: var(--text-xs); color: var(--color-charcoal-ink-2); }
.footer__legal { display: flex; gap: var(--space-md); flex-wrap: wrap; }
@media (max-width: 60rem) {
  .footer__top { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 40rem) {
  .footer__top { grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-lg) var(--space-md); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col:last-child {
    grid-column: 1 / -1;
    display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: var(--space-md);
  }
  .footer__col:last-child h4 { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ===== Icons ===== */
.icon-sm { width: 1.2em; height: 1.2em; flex: none; color: var(--color-accent); }
.contact-line { display: flex; gap: 0.6em; align-items: center; }

section[id] { scroll-margin-top: 4.5rem; }

/* ===== Utilities ===== */
.stack { display: flex; flex-direction: column; gap: var(--space-md); }
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 1rem; z-index: 1000; background: var(--color-accent); color: var(--color-accent-ink); padding: 0.75rem 1.25rem; border-radius: var(--radius-sm); transition: top var(--dur-base) var(--ease-out); }
.skip-link:focus { top: 1rem; }

/* Cookie banner */
.cookie-bar {
  position: fixed; bottom: var(--space-sm); left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 1rem), 64rem); z-index: 200;
  background: var(--color-charcoal); color: var(--color-charcoal-ink);
  border-radius: var(--radius-lg); padding: var(--space-md) var(--space-lg);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap;
  box-shadow: 0 20px 50px -20px oklch(10% 0 0 / 0.5);
}
.cookie-bar p { color: var(--color-charcoal-ink-2); font-size: var(--text-sm); margin: 0; max-width: 52ch; }
.cookie-bar[hidden] { display: none; }
.cookie-bar__title { font-family: var(--font-display); text-transform: uppercase; color: var(--color-charcoal-ink) !important; font-size: var(--text-md) !important; margin-bottom: .25rem !important; }
.cookie-bar__text a { color: var(--color-charcoal-ink); text-decoration: underline; text-underline-offset: 3px; }
.cookie-bar__text a:hover { color: var(--color-accent-2); }
.cookie-bar__actions { display: flex; gap: var(--space-xs); flex: none; flex-wrap: wrap; }
@media (max-width: 40rem) {
  .cookie-bar { padding: var(--space-md); }
  .cookie-bar__actions { width: 100%; }
  .cookie-bar__actions .btn { flex: 1 1 0; padding-inline: .5rem; }
}


/* ---- Scroll reveal ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.numbered-grid__media video { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 18rem; }
@media (max-width: 60rem) { .numbered-grid__media video { min-height: 14rem; } }

/* ---- Wide banner (replaces tall photo row) ---- */
.banner { position: relative; overflow: hidden; border-radius: var(--radius-md); aspect-ratio: 21 / 9; min-height: 22rem; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, oklch(12% 0.01 48 / .88) 0%, oklch(12% 0.01 48 / .35) 60%, transparent 100%); }
.banner__copy { position: absolute; z-index: 1; left: var(--space-xl); bottom: var(--space-xl); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); }
@media (max-width: 48rem) { .banner { aspect-ratio: auto; min-height: 26rem; } .banner__copy { left: var(--space-md); bottom: var(--space-md); right: var(--space-md); } }

/* ---- Product "why" cards ---- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1px; background: var(--color-charcoal-rule); border: 1px solid var(--color-charcoal-rule); border-radius: var(--radius-md); overflow: hidden; }
.why { position: relative; background: var(--color-charcoal); padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); min-width: 0; transition: background var(--dur-base) var(--ease-out); }
.why::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--color-accent); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.why:hover { background: var(--color-charcoal-2); }
.why:hover::after { transform: scaleX(1); }
.why__n { font-family: var(--font-mono); font-size: var(--text-3xl, 3rem); line-height: 1; color: var(--color-accent-2); letter-spacing: -0.02em; margin-bottom: var(--space-md); }
.why h3 { font-size: var(--text-lg); overflow-wrap: break-word; }

/* ---- Blog / card fix ---- */
.card img { width: 100%; height: auto; }

/* ---- Partner logos ---- */
.logo-wall img { height: 2.75rem; width: auto; max-width: 80%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.logo-wall a:hover img { filter: none; opacity: 1; }

.nav__logo { height: 2.1rem; width: auto; display: block; }
.footer__wordmark img { height: 2.6rem; width: auto; display: block; }

/* Small orange eyebrow labels hidden site-wide */
.eyebrow { display: none !important; }

/* ---- Big display numerals ---- */
.steps:not(.steps--vertical) .step::before,
.numbered-grid__num,
.index-list__item .num,
.ref-list__item i {
  font-family: var(--font-display); font-style: normal; line-height: 1; letter-spacing: 0;
}
.steps:not(.steps--vertical) .step::before { font-size: clamp(3rem, 5vw, 4.5rem); margin-bottom: var(--space-md); }
.numbered-grid__num { display: block; font-size: clamp(3.5rem, 6vw, 5.5rem); margin-bottom: var(--space-md); }
.index-list__item .num { font-size: clamp(1.5rem, 2.6vw, 2.25rem); padding-top: 0.1em; min-width: 3.2rem; }
.ref-list__item { grid-template-columns: 5rem minmax(0,1fr) auto; }
.ref-list__item i { font-size: clamp(1.75rem, 3vw, 2.5rem); color: var(--color-accent); }
@media (hover: hover) and (pointer: fine) { .ref-list__item:hover i { color: var(--color-accent-2); } }

/* ---- Section/card titles: uppercase Sarpanch (mixed-case Sarpanch is hard to read) ---- */
h2, h3 { text-transform: uppercase; letter-spacing: 0.01em; }
.card h3, .steps--vertical h3, .accordion h3 { text-transform: none; letter-spacing: 0; }
.card h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.01em; }

/* ---- Collage: wide closing image spans the full row ---- */
.collage__item--wide { grid-column: span 4; }
@media (max-width: 48rem) { .collage__item--wide { grid-column: span 2; } }

/* ---- Hero: buttons side by side ---- */
.hero__side .hero__actions { flex-wrap: nowrap; gap: 0.5rem; }
.hero__side .hero__actions .btn { padding: 0.8rem 0.95rem; }
@media (max-width: 60rem) { .hero__side .hero__actions { flex-wrap: wrap; } }

/* ---- Hero: slow drifting orange glow ---- */
.hero--card::before, .hero--card::after {
  content: ""; position: absolute; pointer-events: none; z-index: 0; border-radius: 50%; filter: blur(70px); will-change: transform;
}
.hero--card::before {
  width: 46rem; height: 34rem; left: -12rem; top: -8rem;
  background: radial-gradient(closest-side, oklch(62% 0.14 48 / .42), transparent 72%);
  animation: glow-a 18s ease-in-out infinite alternate;
}
.hero--card::after {
  width: 40rem; height: 30rem; right: -10rem; bottom: -10rem;
  background: radial-gradient(closest-side, oklch(58% 0.15 40 / .34), transparent 72%);
  animation: glow-b 22s ease-in-out infinite alternate;
}
.hero--card > .container { position: relative; z-index: 1; }
@keyframes glow-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(28vw, 12rem) scale(1.25); } }
@keyframes glow-b { from { transform: translate(0, 0) scale(1.1); } to { transform: translate(-30vw, -9rem) scale(.9); } }
@media (prefers-reduced-motion: reduce) { .hero--card::before, .hero--card::after { animation: none; } }

/* ---- Dark-surface text fixes ---- */
.cookie-bar .btn--outline { color: var(--color-charcoal-ink); border-color: var(--color-charcoal-rule); }
.cookie-bar .btn--outline:hover { border-color: var(--color-charcoal-ink-2); }
.cta-strip p, .cta-strip h2 { color: inherit; }
.cta-strip h2 { color: var(--color-charcoal-ink); }
.cta-strip p { color: var(--color-charcoal-ink-2); }

/* ---- Product tiles (2x2 "see also" on product pages) ---- */
.product-tiles { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-md); }
.product-tile { display: flex; flex-direction: column; border: 1px solid var(--color-rule); border-radius: var(--radius-md); overflow: hidden; background: var(--color-paper); min-width: 0; transition: border-color var(--dur-base) var(--ease-out); }
.product-tile__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.product-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.product-tile__body { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; column-gap: var(--space-sm); row-gap: var(--space-2xs); padding: var(--space-md); }
.product-tile__body .num { grid-row: 1 / 3; font-family: var(--font-display); color: var(--color-accent); font-size: var(--text-xl); line-height: 1; padding-top: .1em; }
.product-tile__body h3 { font-size: var(--text-lg); overflow-wrap: break-word; hyphens: auto; }
.product-tile__body p { grid-column: 2; font-size: var(--text-sm); color: var(--color-muted); }
.product-tile__body .arrow { grid-column: 3; grid-row: 1; color: var(--color-accent); transition: transform .3s; }
.product-tile__body .arrow svg { width: 1.25rem; height: 1.25rem; }
@media (hover: hover) and (pointer: fine) {
  .product-tile:hover { border-color: var(--color-accent); }
  .product-tile:hover .product-tile__img img { transform: scale(1.05); }
  .product-tile:hover .arrow { transform: translateX(4px); }
}
@media (max-width: 40rem) { .product-tiles { grid-template-columns: minmax(0,1fr); } }

.step[data-mark]::before { content: attr(data-mark); }

/* ---- Caption row titles in caps ---- */
.caption-row h4 { text-transform: uppercase; letter-spacing: 0.04em; font-size: var(--text-md); margin-bottom: var(--space-2xs); }

/* ---- Subpage hero: quieter version of the homepage orange glow ---- */
.page-hero { position: relative; overflow: clip; }
.page-hero::before, .page-hero::after { content: ""; position: absolute; pointer-events: none; z-index: 0; border-radius: 50%; filter: blur(70px); will-change: transform; }
.page-hero::before { width: 36rem; height: 22rem; left: -10rem; top: -9rem; background: radial-gradient(closest-side, oklch(62% 0.14 48 / .30), transparent 72%); animation: glow-a 20s ease-in-out infinite alternate; }
.page-hero::after { width: 32rem; height: 20rem; right: -8rem; bottom: -10rem; background: radial-gradient(closest-side, oklch(58% 0.15 40 / .22), transparent 72%); animation: glow-b 24s ease-in-out infinite alternate; }
.page-hero > .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .page-hero::before, .page-hero::after { animation: none; } }

/* ---- Responsive hardening ---- */
.cta-strip > div { min-width: 0; max-width: 100%; }
.cta-strip h2, .cta-strip p { overflow-wrap: anywhere; hyphens: auto; }
.ref-list__item > div { min-width: 0; }
.ref-list__item span, .index-list__item p, .step p, .why p { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 40rem) {
  .ref-list__item { grid-template-columns: 2.75rem minmax(0,1fr); padding-inline: 0; }
  .ref-list__item > svg { display: none; }
  .ref-list__item i { font-size: 1.5rem; }
  .ref-list__item span { font-size: var(--text-xs); }
  .cta-strip { padding: var(--space-lg) var(--space-md); }
}
.numbered-grid > * { min-width: 0; }
@media (max-width: 30rem) { .numbered-grid > * { padding: var(--space-lg); } }
.banner { width: 100%; max-width: 100%; }
@media (max-width: 64rem) { .banner { aspect-ratio: auto; min-height: 24rem; } }

/* ---- Nav logo chip — light backing so the true-colour (red/black) logo reads on the dark nav ---- */
.nav__logo-chip {
  display: inline-flex; align-items: center;
  min-height: 44px;
  background: var(--color-paper);
  border-radius: var(--radius-sm);
  padding: 0.4rem 1rem;
  transition: background var(--dur-base) var(--ease-out);
}
.nav__logo-chip .nav__logo { height: 2rem; }

/* ---- Cookie consent: equal-weight Keeldu / Nõustu, settings panel ---- */
.btn--light { background: var(--color-paper); color: var(--color-ink); border: 1px solid var(--color-paper); }
.btn--light:hover { background: var(--color-paper-3); }

.cookie-panel { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 1rem; }
.cookie-panel[hidden] { display: none; }
.cookie-panel__backdrop { position: absolute; inset: 0; background: oklch(10% 0.01 48 / .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.cookie-panel__box {
  position: relative; width: min(30rem, 100%); max-height: calc(100svh - 2rem); overflow-y: auto;
  background: var(--color-charcoal); color: var(--color-charcoal-ink); border: 1px solid var(--color-charcoal-rule);
  border-radius: var(--radius-md); padding: var(--space-lg); box-shadow: 0 30px 70px -20px oklch(5% 0 0 / .7);
}
.cookie-panel__box:focus { outline: none; }
.cookie-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: var(--space-md); }
.cookie-panel__head h2 { color: var(--color-charcoal-ink); font-size: var(--text-xl); margin: 0; }
.cookie-panel__x {
  width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.75rem; line-height: 1; cursor: pointer;
  background: none; border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--color-charcoal-ink-2);
}
.cookie-panel__x:hover { color: var(--color-charcoal-ink); border-color: var(--color-charcoal-rule); }
.cookie-row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) 0; border-top: 1px solid var(--color-charcoal-rule); }
.cookie-row__text p { margin: 0; font-size: var(--text-sm); color: var(--color-charcoal-ink-2); }
.cookie-row__text .cookie-row__label { color: var(--color-charcoal-ink); font-weight: 600; font-size: var(--text-base); margin-bottom: .25rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cookie-badge { font-size: .72rem; font-weight: 600; padding: .12rem .5rem; border-radius: 999px; border: 1px solid var(--color-charcoal-rule); color: var(--color-charcoal-ink-2); }
.cookie-badge--on { border-color: transparent; background: color-mix(in oklab, var(--color-success) 28%, transparent); color: oklch(88% 0.12 150); }

.cookie-switch { position: relative; flex: none; display: inline-block; width: 3rem; height: 1.75rem; margin-top: .15rem; cursor: pointer; }
.cookie-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cookie-switch__ui { position: absolute; inset: 0; border-radius: 999px; background: var(--color-charcoal-3); border: 1px solid var(--color-charcoal-rule); transition: background .2s; pointer-events: none; }
.cookie-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--color-charcoal-ink); transition: transform .2s; }
.cookie-switch input:checked + .cookie-switch__ui { background: var(--color-accent); border-color: var(--color-accent); }
.cookie-switch input:checked + .cookie-switch__ui::after { transform: translateX(1.2rem); background: var(--color-accent-ink); }
.cookie-switch input:disabled { cursor: not-allowed; }
.cookie-switch input:disabled + .cookie-switch__ui { opacity: .55; }
.cookie-switch input:focus-visible + .cookie-switch__ui { outline: 3px solid var(--color-focus, #5b9dff); outline-offset: 2px; }
.cookie-panel__foot { display: flex; gap: var(--space-xs); justify-content: flex-end; padding-top: var(--space-md); border-top: 1px solid var(--color-charcoal-rule); }
@media (max-width: 36rem) {
  .cookie-panel { place-items: end center; padding: 0; }
  .cookie-panel__box { border-radius: var(--radius-md) var(--radius-md) 0 0; max-height: 92svh; padding: var(--space-md); }
  .cookie-panel__foot .btn { flex: 1 1 0; }
}
@media (prefers-reduced-motion: reduce) { .cookie-switch__ui, .cookie-switch__ui::after { transition: none; } }

/* ---- Footer re-open link + privacy policy page ---- */
.footer__legal-btn, .legal__link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.footer__legal-btn:hover { color: var(--color-accent-2); }
.legal { max-width: var(--measure, 46rem); }
.legal section { margin-top: var(--space-xl); scroll-margin-top: 5rem; }
.legal section:first-of-type { margin-top: var(--space-lg); }
.legal h2 { font-size: var(--text-xl); margin-bottom: var(--space-sm); }
.legal__h3 { font-size: var(--text-md); margin: var(--space-md) 0 var(--space-2xs); }
.legal p, .legal li { color: var(--color-ink-2); }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: var(--space-sm); }
.legal ul { padding-left: 1.25rem; margin: var(--space-xs) 0 0; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal__link-btn { color: var(--color-accent); font-weight: 600; }
.legal__toc { background: #fff; border: 1px solid var(--color-rule); border-radius: var(--radius-md); padding: var(--space-md) var(--space-lg); }
.legal__toc-title { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--color-muted); margin: 0 0 var(--space-xs); }
.legal__toc ol { margin: 0; padding-left: 1.25rem; display: grid; gap: .25rem; }
.legal__table { margin-top: var(--space-md); }
.legal__table td, .legal__table th { vertical-align: top; }
@media (max-width: 40rem) { .legal__table thead { display: none; } .legal__table tr { display: block; padding: .75rem 0; border-bottom: 1px solid var(--color-rule); } .legal__table td { display: block; padding: .1rem 0; width: auto !important; } }

/* ---- Contact form: privacy consent checkbox ---- */
.field--check { gap: .35rem; margin-top: var(--space-md); }
.check { display: flex; align-items: flex-start; gap: .65rem; font-weight: 500; font-size: var(--text-sm); cursor: pointer; line-height: 1.45; }
.check input { flex: none; width: 1.25rem; height: 1.25rem; min-height: 0; margin: .1rem 0 0; padding: 0; accent-color: var(--color-accent); cursor: pointer; }
.check a { text-decoration: underline; text-underline-offset: 3px; color: var(--color-accent); font-weight: 600; }
.field--check.is-error .check { color: var(--color-error); }
.cookie-bar__actions .btn, .cookie-panel__foot .btn { justify-content: center; }

/* ---- Touch targets (phones, tablets, touch screens): bigger tap areas, same look ---- */
@media (max-width: 60rem), (pointer: coarse) {
  .nav__brand { min-height: 44px; }
  .footer__col a, .footer__col address { padding-block: 0.6rem; }
  .footer__legal { gap: 0 var(--space-md); }
  .footer__legal a, .footer__legal-btn { display: inline-flex; align-items: center; min-height: 44px; }
  .link-arrow, .breadcrumb a, .legal__link-btn, a.contact-line { position: relative; }
  .link-arrow::after, .breadcrumb a::after, .legal__link-btn::after, a.contact-line::after { content: ""; position: absolute; inset: -10px -4px; }
  .hotspot__label::after { content: ""; position: absolute; inset: -9px -5px; }
  .check { padding-block: 0.45rem; }
}
@media (max-width: 60rem), (pointer: coarse) {
  a.contact-line { min-height: 44px; }
  a.contact-line::after { display: none; }
  .check { min-height: 44px; align-items: center; padding-block: 0.25rem; }
}

/* ---- Cookie bar on short screens (phone held sideways): one compact row instead of half the screen ---- */
@media (max-height: 520px) {
  .cookie-bar { padding: 0.6rem 0.9rem; bottom: 0.4rem; gap: 0.5rem 1rem; }
  .cookie-bar__text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.6rem; }
  .cookie-bar__title { margin: 0 !important; font-size: var(--text-base) !important; }
  .cookie-bar__actions .btn { min-height: 40px; padding: 0.35rem 0.9rem; }
  .cookie-panel__box { padding: var(--space-sm) var(--space-md); }
  .cookie-panel__head { margin-bottom: var(--space-xs); }
  .cookie-row { padding: var(--space-xs) 0; }
}

/* ---- Footer credit: "Lehe tegi ZAIS" (logo is black, shown white on the dark footer) ---- */
.footer__credit { display: flex; align-items: center; gap: 0.6rem; margin: var(--space-xs) 0 0; font-size: var(--text-xs); color: var(--color-charcoal-ink-2); }
.footer__credit a { display: inline-flex; align-items: center; min-height: 32px; opacity: 0.85; transition: opacity var(--dur-base) var(--ease-out); }
.footer__credit a:hover { opacity: 1; }
.footer__credit img { height: 1rem; width: auto; display: block; filter: brightness(0) invert(1); }
@media (max-width: 60rem), (pointer: coarse) { .footer__credit a { min-height: 44px; } }

/* ---- Manuals page: empty state until the first manual is added ---- */
.manuals-empty { max-width: 40rem; gap: var(--space-xs); }
.manuals-empty h2 { font-size: var(--text-xl); }
.manuals-empty p { color: var(--color-ink-2); }
.manuals-empty a { color: var(--color-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 60rem), (pointer: coarse) {
  .manuals-empty a { position: relative; }
  .manuals-empty a::after { content: ""; position: absolute; inset: -10px -4px; }
}
