/* Haldusettevõte OÜ — site styles
   Palette and shapes follow the reference: white surfaces, near-black ink,
   a warm peach accent, pill controls, large rounded and chamfered cards. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0f131c;
  --ink-2: #1c2231;
  --paper: #ffffff;
  --mist: #f5f5f7;
  --line: #e3e4ea;
  --muted: #5f6675;
  --accent: #f27d52;
  --accent-ink: #b5451e;
  --r-lg: 28px;
  --r-md: 20px;
  --pill: 999px;
  --gutter: clamp(16px, 3.2vw, 44px);
  --max: 1360px;
  --nav-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --chamfer: 30px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
html.no-motion { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
html.is-locked, html.is-modal { overflow: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img, video, svg { display: block; max-width: 100%; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.container { width: min(var(--max), calc(100% - (2 * var(--gutter)))); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 200; left: 16px; top: -80px; padding: 12px 18px; border-radius: var(--pill); background: var(--ink); color: #fff; transition: top .3s; }
.skip:focus { top: 16px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Shared pieces ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.h2 { font-size: clamp(2.3rem, 5.6vw, 4.9rem); font-weight: 400; letter-spacing: -.038em; line-height: 1.02; margin-top: 14px; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.15rem); max-width: 46ch; }
.sec { padding: clamp(72px, 10vw, 150px) 0; }
.sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 56px); }
.note { font-size: .85rem; color: var(--muted); margin-top: 18px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 24px; border-radius: var(--pill); border: 1px solid transparent; font-size: .95rem; font-weight: 500; line-height: 1; white-space: nowrap; transition: transform .45s var(--ease), background-color .3s, color .3s, border-color .3s; }
.btn .i { transition: transform .45s var(--ease); }
.btn:hover .i { transform: translateX(4px); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--accent-ink); }
.btn--line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--line:hover { border-color: var(--ink); }
.btn--glass { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn--glass:hover { background: rgba(255, 255, 255, .26); }
.btn--ghost { border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }

.tag { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--pill); font-size: .78rem; font-weight: 500; line-height: 1; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

.media { position: relative; overflow: hidden; background-color: var(--ink); background-size: cover; background-position: center; }
.media > video, .media > .kb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media > video { opacity: 0; transition: opacity .6s ease; }
.media > video.is-ready { opacity: 1; }
.media > video.is-looping { opacity: 0; }
.kb { background-size: cover; background-position: center; animation: kb 20s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-1.5%, 1%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Scroll reveals are armed by JS only after the first scroll, so content is never hidden without it. */
.js:not(.no-motion) .is-armed { opacity: 0; transform: translateY(34px); }
.js:not(.no-motion) .is-armed.is-in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }

/* ---------- Progress, cursor, motion toggle ---------- */
.progress { position: fixed; z-index: 90; left: 0; top: 0; width: 100%; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.cursor { position: fixed; z-index: 95; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--accent); color: var(--ink); pointer-events: none; opacity: 0; display: grid; place-items: center; font-size: .72rem; font-weight: 500; letter-spacing: .02em; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), opacity .3s, background-color .3s; }
.cursor span { opacity: 0; transition: opacity .2s; }
.cursor.is-on { opacity: 1; }
.cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgba(242, 125, 82, .32); }
.cursor.is-label { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: var(--accent); }
.cursor.is-label span { opacity: 1; }
.is-modal .cursor, .no-motion .cursor { display: none; }

.motion { position: fixed; z-index: 70; right: 16px; bottom: 16px; display: none; align-items: center; padding: 9px 16px 9px 10px; border-radius: var(--pill); font-size: .8rem; font-weight: 500; color: #fff; background: rgba(15, 19, 28, .8); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background-color .3s; }
.js .motion { display: inline-flex; }
.motion:hover { background: var(--ink); }
.motion:focus-visible { outline-color: var(--accent); }
.motion__icon { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .16); display: grid; place-items: center; }
.motion > span:last-child { max-width: 130px; margin-left: 8px; overflow: hidden; white-space: nowrap; transition: max-width .45s var(--ease), margin .45s var(--ease); }
.motion.is-compact:not(:hover):not(:focus-visible) { padding-right: 10px; }
.motion.is-compact:not(:hover):not(:focus-visible) > span:last-child { max-width: 0; margin-left: 0; }
.motion .i--play, .motion[data-paused="true"] .i--pause { display: none; }
.motion[data-paused="true"] .i--play { display: block; }

/* ---------- Navigation ---------- */
.nav { position: fixed; z-index: 60; top: 22px; left: calc(10px + var(--gutter)); right: calc(10px + var(--gutter)); display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #fff; transition: transform .6s var(--ease), color .3s; }
.nav.is-hidden { transform: translateY(-170%); }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: var(--pill); border: 1px solid transparent; font-size: 1.05rem; font-weight: 500; letter-spacing: -.02em; transition: background-color .3s, border-color .3s; }
.brand__mark { width: 30px; height: 30px; color: var(--accent); }
.nav__links { display: flex; gap: 2px; padding: 5px; border-radius: var(--pill); background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); transition: background-color .3s, border-color .3s; }
.nav__links a { padding: 10px 16px; border-radius: var(--pill); font-size: .9rem; line-height: 1; transition: background-color .3s, color .3s; }
.nav__links a:hover, .nav__links a.is-current { background: rgba(255, 255, 255, .24); }
.nav__right { display: flex; align-items: center; gap: 8px; }
.nav__burger { display: none; flex-direction: column; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .26); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nav__burger span { display: block; width: 18px; height: 1.6px; background: currentColor; transition: transform .4s var(--ease); }
.nav__burger span + span { margin-top: 6px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.8px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.8px) rotate(-45deg); }

.nav.is-solid:not(.is-menu) { color: var(--ink); }
.nav.is-solid:not(.is-menu) .brand,
.nav.is-solid:not(.is-menu) .nav__links,
.nav.is-solid:not(.is-menu) .nav__burger { background: rgba(255, 255, 255, .86); border-color: var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.nav.is-solid:not(.is-menu) .nav__links a:hover,
.nav.is-solid:not(.is-menu) .nav__links a.is-current { background: var(--ink); color: #fff; }
.nav.is-solid:not(.is-menu) .btn--glass { background: var(--ink); border-color: var(--ink); color: #fff; }

.menu { position: fixed; z-index: 55; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 110px var(--gutter) 40px; background: var(--ink); color: #fff; visibility: hidden; clip-path: circle(0 at calc(100% - 50px) 46px); transition: clip-path .7s var(--ease-io), visibility 0s .7s; }
.menu.is-open { visibility: visible; clip-path: circle(150% at calc(100% - 50px) 46px); transition-delay: 0s; }
.menu ul { display: grid; gap: 6px; }
.menu li a { display: block; font-size: clamp(2.2rem, 10vw, 3.4rem); letter-spacing: -.035em; line-height: 1.12; }
.menu li a:hover { color: var(--accent); }
.menu__meta { color: rgba(255, 255, 255, .7); font-size: .95rem; }
.menu__meta a { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; max-height: 1200px; padding: 10px; }
.hero__frame { position: relative; height: 100%; border-radius: var(--r-lg); overflow: hidden; background: var(--ink); color: #fff; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; will-change: transform; }
.hero__media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; z-index: 1; transition: opacity 1.4s ease 1.4s; }
.hero__video.is-active { z-index: 2; transition-delay: 0s; }
.hero__video.is-active.is-ready { opacity: 1; }
.hero__scrim { position: absolute; inset: 0; z-index: 3; background: linear-gradient(180deg, rgba(15, 19, 28, .62) 0%, rgba(15, 19, 28, .34) 42%, rgba(15, 19, 28, .72) 100%); }
.hero__inner { position: relative; z-index: 4; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: calc(var(--nav-h) + 14px) var(--gutter) 104px; will-change: transform, opacity; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.hero__eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero__title { font-size: clamp(2.5rem, min(7vw, 10.5vh), 6.5rem); font-weight: 400; letter-spacing: -.04em; line-height: .98; max-width: 14ch; margin: 20px 0 22px; text-shadow: 0 2px 30px rgba(15, 19, 28, .35); }
.hero__sub { max-width: 54ch; font-size: clamp(1rem, 1.35vw, 1.2rem); color: rgba(255, 255, 255, .9); text-shadow: 0 1px 18px rgba(15, 19, 28, .5); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.hero__bottom { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px; padding: 22px var(--gutter); font-size: .8rem; color: rgba(255, 255, 255, .86); }
.hero__bottom > :last-child { text-align: right; padding-bottom: 46px; }
.hero__place span { display: block; }
.hero__place span + span { color: rgba(255, 255, 255, .66); }
.scrollcue { display: grid; justify-items: center; gap: 8px; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; }
.scrollcue i { position: relative; display: block; width: 1px; height: 44px; overflow: hidden; background: rgba(255, 255, 255, .3); }
.scrollcue i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 50%; background: #fff; animation: cue 1.9s var(--ease-io) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(200%); } }

.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.w__i { display: inline-block; }
.js .hero .w__i { animation: rise 1.15s var(--ease) both; animation-delay: calc(.3s + (var(--i) * 80ms)); }
.js .hero [data-intro] { animation: fadeUp 1s var(--ease) both; animation-delay: var(--d, 1s); }
.js .hero__media { animation: heroIn 2.4s var(--ease) both; }
@keyframes rise { from { transform: translateY(112%) rotate(5deg); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: blur(0); } }
@keyframes heroIn { from { transform: scale(1.16); filter: blur(16px); } to { transform: scale(1); filter: blur(0); } }

/* ---------- Statement with floating cards ---------- */
.statement { position: relative; padding: clamp(90px, 15vw, 230px) 0; overflow: hidden; overflow: clip; }
.statement__inner { position: relative; z-index: 1; text-align: center; }
.statement__text { font-size: clamp(1.55rem, 3.25vw, 3.1rem); font-weight: 400; line-height: 1.17; letter-spacing: -.028em; max-width: min(820px, 52vw); margin: 20px auto 38px; }
.statement__text.is-scrub .sw { color: #c2c5ce; transition: color .35s; }
.statement__text.is-scrub .sw.is-lit { color: var(--ink); }
.statement__floats { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.float { position: absolute; width: clamp(170px, 15vw, 236px); aspect-ratio: 3 / 4; pointer-events: auto; text-align: left; color: #fff; background: var(--ink) center / cover no-repeat; clip-path: polygon(0 0, calc(100% - var(--chamfer)) 0, 100% var(--chamfer), 100% 100%, var(--chamfer) 100%, 0 calc(100% - var(--chamfer))); will-change: transform; }
.float::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 19, 28, .18) 0%, rgba(15, 19, 28, .82) 100%); transition: background-color .4s; }
.float:hover::after { background-color: rgba(242, 125, 82, .28); }
.float:focus-visible { outline: 3px solid #fff; outline-offset: -8px; }
.float > * { position: absolute; z-index: 1; }
.float .tag { left: 14px; top: 14px; }
.float__title { left: 18px; right: 18px; bottom: 50px; font-size: clamp(1.5rem, 2.2vw, 2rem); letter-spacing: -.03em; line-height: 1; }
.float__link { left: calc(var(--chamfer) + 4px); bottom: 18px; display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; }
.float--1 { left: 3vw; top: 9%; }
.float--2 { right: 3vw; top: 4%; }
.float--3 { left: 6vw; bottom: 5%; }
.float--4 { right: 5vw; bottom: 9%; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: clamp(14px, 2vw, 26px) 0; }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: clamp(22px, 3vw, 44px); padding-right: clamp(22px, 3vw, 44px); font-size: clamp(2rem, 5.2vw, 4.6rem); letter-spacing: -.035em; line-height: 1.1; white-space: nowrap; }
.marquee__group i { width: .26em; height: .26em; border-radius: 50%; background: var(--accent); flex: none; }
.marquee__group li:nth-child(4n + 3) { color: var(--muted); }

/* ---------- Services ---------- */
.services__tools { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.services__count { font-size: .95rem; color: var(--muted); }
.services__count b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.filters { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 26px; background: var(--mist); }
.chip { padding: 11px 18px; border-radius: var(--pill); font-size: .9rem; line-height: 1; transition: background-color .3s, color .3s; }
.chip:hover { background: #e6e7ec; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.card { position: relative; min-width: 0; min-height: clamp(340px, 36vw, 540px); border-radius: var(--r-lg); overflow: hidden; color: #fff; background: var(--ink); isolation: isolate; transition: opacity .35s ease, transform .6s var(--ease); }
.card.is-out { opacity: 0; transform: scale(.96); }
.card__media { position: absolute; inset: 0; transition: transform 1.4s var(--ease); }
.card:hover .card__media, .card:focus-within .card__media { transform: scale(1.06); }
.card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15, 19, 28, .38) 0%, rgba(15, 19, 28, .06) 36%, rgba(15, 19, 28, .84) 100%); pointer-events: none; }
.card__top { position: absolute; z-index: 2; left: 20px; right: 20px; top: 20px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.card__arrow { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); transition: transform .5s var(--ease), background-color .3s; }
.card:hover .card__arrow, .card:focus-within .card__arrow { transform: rotate(-45deg) scale(1.08); background: var(--accent); }
.card__body { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 24px; pointer-events: none; }
.card__n { font-size: .85rem; font-weight: 500; letter-spacing: .08em; color: rgba(255, 255, 255, .8); }
.card__title { font-size: clamp(1.6rem, 2.8vw, 2.5rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.05; margin-top: 8px; }
.card__desc { max-width: 44ch; color: rgba(255, 255, 255, .9); font-size: .98rem; margin-top: 12px; }
.card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .88rem; font-weight: 500; }
.card__hit { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; border-radius: inherit; }
.card__hit:focus-visible { outline: 3px solid #fff; outline-offset: -8px; }
@media (hover: hover) and (pointer: fine) {
  .card__desc, .card__more { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .6s var(--ease); }
  .card__reveal { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
  .card__reveal > div { overflow: hidden; }
  .card:hover .card__reveal, .card:focus-within .card__reveal { grid-template-rows: 1fr; }
  .card:hover .card__desc, .card:hover .card__more, .card:focus-within .card__desc, .card:focus-within .card__more { opacity: 1; transform: none; }
}

/* ---------- Service modal ---------- */
.modal { width: calc(100% - 20px); max-width: 1240px; height: min(760px, calc(100vh - 20px)); height: min(760px, calc(100dvh - 20px)); max-height: none; margin: auto; padding: 0; border: 0; border-radius: var(--r-lg); background: #fff; color: var(--ink); overflow: hidden; }
.modal::backdrop { background: rgba(15, 19, 28, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); animation: modalIn .65s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }
.modal__media { position: relative; min-height: 0; background: var(--ink) center / cover no-repeat; }
.modal__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 19, 28, .1), rgba(15, 19, 28, .7)); }
.modal__num { position: absolute; z-index: 1; left: 28px; bottom: 20px; color: #fff; font-size: clamp(4rem, 10vw, 9rem); letter-spacing: -.06em; line-height: 1; }
.modal__media .tag { position: absolute; z-index: 1; left: 24px; top: 24px; }
.modal__main { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; min-height: 0; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 44px) 12px; }
.modal__title { font-size: clamp(1.8rem, 3.6vw, 3.2rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.04; margin-top: 10px; }
.modal__close { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); transition: background-color .3s, color .3s, transform .5s var(--ease); }
.modal__close:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }
.modal__viewport { overflow: hidden; min-height: 0; }
.modal__track { display: flex; height: 100%; transition: transform .75s var(--ease-io); }
.no-motion .modal__track { transition: none; }
.panel { flex: 0 0 100%; min-width: 0; overflow-y: auto; padding: 10px clamp(20px, 3vw, 44px) 28px; }
.panel h3 { font-size: .8rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 18px; }
.panel p { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.45; letter-spacing: -.01em; max-width: 46ch; }
.panel p + p { margin-top: 16px; color: var(--muted); font-size: 1rem; }
.panel ul, .panel ol { display: grid; gap: 0; max-width: 620px; }
.panel li { display: grid; grid-template-columns: 34px 1fr; align-items: start; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
.panel li .i { margin-top: 4px; color: var(--accent-ink); }
.panel li b { font-weight: 500; font-size: .85rem; color: var(--accent-ink); padding-top: 2px; font-variant-numeric: tabular-nums; }
.panel .btn { margin-top: 26px; }
.modal__tabs { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 0 12px 12px; padding: 6px 6px 12px; border-radius: 20px; background: var(--ink); color: #fff; }
.modal__tabs button { padding: 13px 8px; border-radius: 14px; font-size: .85rem; color: rgba(255, 255, 255, .62); transition: color .3s, background-color .3s; }
.modal__tabs button:hover { color: #fff; }
.modal__tabs button[aria-selected="true"] { color: #fff; background: rgba(255, 255, 255, .1); }
.modal__tabs button:focus-visible { outline-color: var(--accent); outline-offset: -2px; }
.modal__tabs button b { font-weight: 400; color: var(--accent); margin-right: 6px; }
.modal__progress { position: absolute; left: 16px; right: 16px; bottom: 6px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.modal__progress span { display: block; width: 25%; height: 100%; background: var(--accent); transition: width .75s var(--ease-io); }

/* ---------- Process ---------- */
.process__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 90px); }
.process__media { position: sticky; top: min(12vh, 120px); align-self: start; height: min(76vh, 760px); border-radius: var(--r-lg); overflow: hidden; background: var(--ink); }
.slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); transition: opacity .9s var(--ease), transform 1.5s var(--ease); }
.slide.is-active { opacity: 1; transform: none; }
.process__count { position: absolute; z-index: 2; left: 20px; bottom: 20px; font-variant-numeric: tabular-nums; }
.process__cap { position: absolute; z-index: 2; right: 20px; bottom: 20px; }
.steps { position: relative; padding-left: clamp(22px, 3vw, 44px); }
.steps::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); }
.steps::after { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(var(--fill, 0)); }
.step { min-height: min(68vh, 640px); display: flex; flex-direction: column; justify-content: center; transition: opacity .5s; }
.steps.is-live .step { opacity: .34; }
.steps.is-live .step.is-active { opacity: 1; }
.step__n { font-size: .85rem; font-weight: 500; letter-spacing: .09em; color: var(--accent-ink); }
.step h3 { font-size: clamp(1.8rem, 3.6vw, 3.2rem); font-weight: 400; letter-spacing: -.035em; line-height: 1.04; margin: 14px 0 18px; }
.step p { color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.12rem); max-width: 44ch; }

/* ---------- Tallinn horizontal strip ---------- */
.hs { position: relative; margin: 0 10px; border-radius: var(--r-lg); background: var(--mist); }
.hs__sticky { padding: clamp(56px, 8vw, 110px) 0; }
.hs.is-pinned .hs__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 6px) 0 26px; overflow: hidden; }
.hs__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; margin-bottom: clamp(20px, 3vw, 36px); }
.hs.is-pinned .h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); }
.hs__viewport { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 0 var(--gutter); }
.hs__viewport::-webkit-scrollbar { display: none; }
.hs.is-pinned .hs__viewport { overflow: hidden; }
.hs__track { display: flex; gap: clamp(12px, 1.6vw, 22px); width: max-content; will-change: transform; }
.hs__card { position: relative; flex: none; width: min(80vw, 820px); height: min(54vh, 520px); min-height: 300px; border-radius: var(--r-lg); overflow: hidden; color: #fff; scroll-snap-align: center; }
.hs__card--text { width: min(80vw, 440px); display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(22px, 2.6vw, 34px); background: var(--ink); }
.hs__card--accent { background: var(--accent); color: var(--ink); clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%); border-radius: var(--r-lg) 0 var(--r-lg) var(--r-lg); }
.hs__big { font-size: clamp(2.6rem, 5vw, 4.4rem); letter-spacing: -.045em; line-height: .98; }
.hs__small { font-size: .95rem; color: rgba(255, 255, 255, .74); max-width: 30ch; }
.hs__card--accent .hs__small { color: rgba(15, 19, 28, .82); }
.hs__card--accent .btn { align-self: flex-start; }
.hs__cap { position: absolute; z-index: 2; left: 20px; bottom: 20px; }
.hs__card.media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15, 19, 28, 0) 55%, rgba(15, 19, 28, .5) 100%); pointer-events: none; }
.hs__bar { height: 2px; margin: clamp(20px, 3vw, 30px) var(--gutter) 0; border-radius: 2px; background: #d9dae1; overflow: hidden; }
.hs__bar span { display: block; height: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* ---------- Company ---------- */
.company { position: relative; margin: clamp(40px, 6vw, 90px) 10px 0; padding: clamp(72px, 10vw, 140px) 0; border-radius: var(--r-lg); background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.company::before { content: ""; position: absolute; z-index: -1; width: 70vw; height: 70vw; right: -20vw; top: -30vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 125, 82, .34), rgba(242, 125, 82, 0)); animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-22vw, 18vw) scale(1.25); } }
.company .eyebrow { color: var(--accent); }
.company .lead { color: rgba(255, 255, 255, .72); }
.company :focus-visible { outline-color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 48px); padding: clamp(28px, 4vw, 52px) 0; border-block: 1px solid rgba(255, 255, 255, .16); }
.stat__n { display: block; font-size: clamp(2.8rem, 8vw, 7.2rem); letter-spacing: -.055em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__l { display: block; margin-top: 12px; color: rgba(255, 255, 255, .72); font-size: .95rem; max-width: 26ch; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 80px); margin-top: clamp(20px, 3vw, 40px); }
.facts > div { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.facts dt { color: rgba(255, 255, 255, .62); font-size: .9rem; }
.facts dd { font-size: 1rem; overflow-wrap: anywhere; }
.facts a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, .4); }
.facts a:hover { text-decoration-color: var(--accent); }
.company__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.company__foot p { color: rgba(255, 255, 255, .62); font-size: .88rem; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(24px, 6vw, 110px); align-items: start; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: clamp(1.1rem, 1.8vw, 1.45rem); letter-spacing: -.018em; line-height: 1.25; cursor: pointer; list-style: none; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__icon { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: transform .55s var(--ease), background-color .3s, color .3s, border-color .3s; }
.faq__list summary:hover .faq__icon { border-color: var(--ink); }
.faq__list details[open] .faq__icon { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: #fff; }
.faq__a { padding: 0 62px 26px 0; color: var(--muted); max-width: 64ch; }
.faq__list details[open] .faq__a { animation: fadeUp .5s var(--ease); }
.faq__a a, .contact a.inline, .legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.contact__mail a { font-size: clamp(1.15rem, 2vw, 1.6rem); letter-spacing: -.02em; overflow-wrap: anywhere; }
.copy { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--pill); background: var(--mist); font-size: .82rem; transition: background-color .3s, color .3s; }
.copy:hover { background: var(--ink); color: #fff; }
.contact__media { margin-top: clamp(28px, 4vw, 48px); aspect-ratio: 16 / 10; border-radius: var(--r-lg); }
.contact__media .tag { position: absolute; z-index: 2; left: 18px; bottom: 18px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: clamp(20px, 3vw, 40px); border-radius: var(--r-lg); background: var(--mist); }
.field--wide { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 8px; font-size: .85rem; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; padding: 16px 18px; border-radius: 14px; border: 1px solid transparent; background: #fff; font: inherit; color: var(--ink); transition: border-color .25s, box-shadow .25s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(15, 19, 28, .1); }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form__foot p { flex: 1 1 240px; font-size: .85rem; color: var(--muted); }
.form__status { grid-column: 1 / -1; padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: .92rem; }

/* ---------- Footer ---------- */
.footer { margin: clamp(40px, 6vw, 90px) 10px 10px; padding: clamp(44px, 6vw, 84px) 0 26px; border-radius: var(--r-lg); background: var(--mist); overflow: hidden; }
.footer__grid { display: grid; grid-template-columns: 1.35fr .8fr .9fr 1.25fr; gap: 36px clamp(20px, 3vw, 48px); }
.footer__brand p { margin-top: 16px; color: var(--muted); max-width: 34ch; }
.footer .brand { padding-left: 0; color: var(--ink); }
.footer h2 { margin-bottom: 16px; font-size: .78rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.footer ul { display: grid; gap: 10px; }
.footer__grid a, .footer__grid .linklike { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .45s var(--ease); padding-bottom: 2px; text-align: left; }
.footer__grid a:hover, .footer__grid .linklike:hover { background-size: 100% 1px; }
.footer address { line-height: 1.6; }
.footer address a { display: inline-block; margin-top: 10px; }
.map { position: relative; margin-top: clamp(32px, 4vw, 52px); aspect-ratio: 21 / 8; min-height: 240px; border-radius: var(--r-md); overflow: hidden; background-color: #e7e8ed; background-image: linear-gradient(rgba(15, 19, 28, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(15, 19, 28, .06) 1px, transparent 1px), linear-gradient(115deg, transparent 46%, rgba(255, 255, 255, .9) 46%, rgba(255, 255, 255, .9) 49%, transparent 49%), linear-gradient(25deg, transparent 60%, rgba(255, 255, 255, .9) 60%, rgba(255, 255, 255, .9) 62.5%, transparent 62.5%); background-size: 46px 46px, 46px 46px, 100% 100%, 100% 100%; }
.map__ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 20px; text-align: center; }
.map__pin { position: relative; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
.map__pin::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.3); opacity: 0; } }
.map__ph p { font-size: .85rem; color: var(--muted); max-width: 46ch; }
.map__ph strong { font-weight: 500; font-size: 1.05rem; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map.is-loaded .map__ph { display: none; }
.footer__word { margin: clamp(30px, 5vw, 60px) 0 14px; font-size: clamp(3rem, 12.6vw, 13.5rem); font-weight: 500; letter-spacing: -.06em; line-height: .92; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(15, 19, 28, .26); will-change: transform; user-select: none; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 64px 0 0; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }

/* ---------- Consent banner ---------- */
.consent { position: fixed; z-index: 80; left: 16px; bottom: 16px; width: min(440px, calc(100% - 32px)); padding: 22px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px -24px rgba(15, 19, 28, .4); opacity: 0; visibility: hidden; transform: translateY(24px); transition: transform .6s var(--ease), opacity .4s, visibility 0s .6s; }
.consent.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.consent h2 { font-size: 1.1rem; font-weight: 500; letter-spacing: -.01em; }
.consent p { margin-top: 8px; font-size: .9rem; color: var(--muted); }
.consent p a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.consent__actions .btn { padding: 14px 12px; font-size: .88rem; white-space: normal; text-align: center; line-height: 1.2; }

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--nav-h) + clamp(56px, 8vw, 110px)) 0 clamp(40px, 6vw, 80px); }
.legal__wrap { width: min(860px, calc(100% - (2 * var(--gutter)))); margin-inline: auto; }
.legal h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 400; letter-spacing: -.04em; line-height: 1; margin: 16px 0 18px; }
.legal__meta { color: var(--muted); }
.legal__toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 10px; }
.legal__toc a { padding: 10px 16px; border-radius: var(--pill); background: var(--mist); font-size: .88rem; text-decoration: none; transition: background-color .3s, color .3s; }
.legal__toc a:hover { background: var(--ink); color: #fff; }
.legal section { padding: 34px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 110px; }
.legal h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 400; letter-spacing: -.025em; margin-bottom: 14px; }
.legal p, .legal li { color: #3d4452; max-width: 70ch; }
.legal p + p, .legal p + ul, .legal ul + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; }
.legal__table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .95rem; }
.legal__table th, .legal__table td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.legal__table th { font-weight: 500; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legal__table code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--mist); padding: 2px 6px; border-radius: 6px; }
.legal__box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 18px 20px; border-radius: var(--r-md); background: var(--mist); }
.legal__box strong { font-weight: 500; }

section[id] { scroll-margin-top: 90px; }
.hs[id], .hero[id] { scroll-margin-top: 0; }

/* ---------- Motion off ---------- */
.no-motion .hero .w__i, .no-motion .hero [data-intro], .no-motion .hero__media, .no-motion .kb, .no-motion .company::before, .no-motion .scrollcue i::after, .no-motion .map__pin::before, .no-motion .modal[open] { animation: none; }
@media (prefers-reduced-motion: reduce) {
  html:not(.js) *, html:not(.js) *::before, html:not(.js) *::after { animation: none !important; transition: none !important; }
}

@media print {
  .is-armed { opacity: 1 !important; transform: none !important; }
  .nav, .menu, .motion, .consent, .cursor, .progress { display: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .statement__text { max-width: min(780px, 100%); }
  .statement__floats { position: relative; inset: auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 56px; padding: 0 var(--gutter); pointer-events: auto; }
  .float { position: relative; inset: auto; width: auto; aspect-ratio: 4 / 5; transform: none !important; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 999px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav .btn--glass { display: none; }
  .process__grid { display: block; }
  .process__media { top: 10px; height: min(34vh, 320px); z-index: 3; box-shadow: 0 0 0 14px #fff; margin-bottom: 8px; }
  .step { min-height: min(54vh, 460px); }
  .faq, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .modal[open] { grid-template-columns: minmax(0, 1fr); grid-template-rows: 150px minmax(0, 1fr); }
  .modal__num { font-size: 4rem; left: 20px; bottom: 10px; }
  .modal__media .tag { left: auto; right: 16px; top: 16px; }
}
@media (max-width: 719px) {
  .hero__bottom { grid-template-columns: 1fr; padding-bottom: 66px; }
  .hero__bottom > :last-child, .hero__bottom .scrollcue { display: none; }
  .hero__inner { padding-bottom: 124px; }
  .statement__text { max-width: none; }
  .statement__floats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: 400px; }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .faq__a { padding-right: 0; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom { padding: 20px 0 56px; }
  .map { aspect-ratio: auto; min-height: 300px; }
  .modal__tabs button { font-size: .74rem; padding: 12px 2px; }
  .modal__tabs button b { display: block; margin: 0 0 3px; }
  .consent { bottom: 68px; padding: 16px; }
  .consent p { font-size: .85rem; }
  .hs__card { height: 60vh; max-height: 460px; }
}
