/* ==========================================================================
   e&k — main stylesheet, design v2 (2026-11-24)
   Source: _ARENDUS/juhendid/DESIGN-ervetkiolein.md — values copied 1:1, mobile values are fixed px.
   Design v1 is kept in the theme "ek-v1" and in git tag disain-v1.
   1. Fonts  2. Tokens & base  3. Components  4. Header & menu  5. Front page
   6. Cards  7. Portfolio  8. Entry page  9. Footer  10. Motion
   ========================================================================== */

/* 1. Fonts (self-hosted) -------------------------------------------------- */
@font-face{font-family:Montserrat;font-style:normal;font-weight:300;font-display:swap;src:url(../fonts/montserrat-latin-300.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}
@font-face{font-family:Montserrat;font-style:normal;font-weight:300;font-display:swap;src:url(../fonts/montserrat-latin-ext-300.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:Montserrat;font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/montserrat-latin-400.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}
@font-face{font-family:Montserrat;font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/montserrat-latin-ext-400.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:Montserrat;font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/montserrat-latin-500.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}
@font-face{font-family:Montserrat;font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/montserrat-latin-ext-500.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:Montserrat;font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/montserrat-latin-600.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}
@font-face{font-family:Montserrat;font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/montserrat-latin-ext-600.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:Montserrat;font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/montserrat-latin-700.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}
@font-face{font-family:Montserrat;font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/montserrat-latin-ext-700.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:"JetBrains Mono";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/jetbrains-mono-latin-400.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}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/jetbrains-mono-latin-ext-400.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:"JetBrains Mono";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/jetbrains-mono-latin-500.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}
@font-face{font-family:"JetBrains Mono";font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/jetbrains-mono-latin-ext-500.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}

/* 2. Tokens & base ---------------------------------------------------------- */
:root{
  --bg:#F4F3F1;--bg-alt:#EBEAE7;--ink:#222222;--ink-2:#4A4A52;--ink-3:#55555C;--ink-4:#8A8A92;
  --coral:#E94B5B;--coral-dk:#C42F41;--coral-dk2:#B02A3B;--coral-lt:#FF9AA4;--coral-on-dark:#F27482;
  --white:#FFFFFF;--ad:#E6E3DE;--line:#D6D3CE;--rail:#C9C5C0;--rail-alt:#B9B4AD;--dash:#A8A39C;
  --ft-text:#C9C9D0;--ft-mute:#A9A9B2;--ft-mute2:#8A8A94;--ft-line:#2E2E34;
  --f-sans:Montserrat,"Helvetica Neue",Arial,sans-serif;
  --f-mono:"JetBrains Mono",ui-monospace,Menlo,monospace;
  --max:1320px;--pad-l:clamp(72px,6.67vw,96px);--pad-r:clamp(16px,1.67vw,24px);--sec-y:clamp(96px,10vw,140px);
  --r-card:20px;--r-tag:6px;--r-pill:999px;
  --ease:cubic-bezier(.16,1,.3,1);
}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{overflow-x:clip;scroll-padding-top:84px;-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;background:var(--bg);color:var(--ink);font:400 16px/1.5 var(--f-sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
img,video,svg{max-width:100%}
img{height:auto}
a{color:inherit}
h1,h2,h3,p,ul,ol,figure,blockquote,dl,dd{margin:0}
h1,h2,h3{font-weight:inherit}
button{font:inherit;color:inherit}
:focus-visible{outline:2px solid var(--coral);outline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:12px;top:-60px;z-index:100;padding:12px 16px;background:var(--ink);color:#FFFFFF;font:600 13px/1 var(--f-sans);text-decoration:none}
.skip-link:focus{top:12px}
.site{position:relative}
.acc,.c{color:var(--coral)}
@media (max-width:700px){.dk{display:none!important}}
@media (min-width:701px){.mb{display:none!important}}

/* 3. Components ---------------------------------------------------------------- */
/* Wordmark */
.logo{display:inline-block;font-family:var(--f-sans);font-weight:300;letter-spacing:-.04em;line-height:1;white-space:nowrap;color:var(--ink);text-decoration:none}
.logo b{font-weight:700}
.idot{display:inline-block;vertical-align:baseline;width:.16em;height:.16em;margin:0 .031em 0 -.191em;background:#E94B5B;transform:translateY(-.61em) rotate(45deg);animation:idhop 4.2s cubic-bezier(.3,.7,.4,1) infinite;visibility:hidden}
.idot2{animation-delay:.18s}
.fonts-ready .idot{visibility:visible}
@keyframes idhop{0%,55%{transform:translateY(-.61em) rotate(45deg)}66%{transform:translateY(-.98em) rotate(225deg)}76%{transform:translateY(-.61em) rotate(405deg)}82%{transform:translateY(-.71em) rotate(405deg)}88%,100%{transform:translateY(-.61em) rotate(405deg)}}

/* Thin link + coral arrow */
.cta2{display:inline-block;line-height:44px;white-space:nowrap;min-height:44px;padding:0;border:0;background:none;cursor:pointer;font-family:var(--f-sans);font-weight:500;font-size:14px;color:#222222;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px;transition:color .2s}
.cta2:hover{color:#C42F41}
.cta2.big{font-size:18px;text-underline-offset:7px}
@media (max-width:700px){.cta2,.cta2.big{font-size:17px;text-underline-offset:6px}}
/* Arrow ↗ of text links: no idle animation, no outline; on hover it slides 3px up-right and stays. The underline stays under the text only (.cta2 is inline-block). */
.ar{display:inline-flex;overflow:visible;width:1em;height:1.15em;align-items:center;justify-content:center;color:#E94B5B;font-weight:600;text-decoration:none}
.cta2 .ar{margin-left:6px;vertical-align:-.12em}
.ar span{display:inline-block;transition:transform .7s cubic-bezier(.22,1,.36,1)}
.cta2:hover .ar span,.cta2:focus-visible .ar span,.kg-more:hover .ar span{transform:translate(3px,-3px)}
@media (prefers-reduced-motion:reduce){.ar span{transition:none}.cta2:hover .ar span,.kg-more:hover .ar span{transform:none}}
/* ↓ arrows move down instead of diagonally */

/* Eyebrow pill */
.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:7px 14px 7px 12px;border-radius:999px;background:#FFFFFF;font-size:14px;line-height:1.3;font-weight:500;color:#222222;margin-bottom:20px}
.eyebrow span{width:7px;height:7px;border-radius:50%;background:#222222}

/* Side rail (> 900 px) */
.side{position:absolute;left:clamp(20px,2.5vw,36px);top:var(--sec-y);bottom:var(--sec-y);display:flex;flex-direction:column;align-items:center;gap:20px;pointer-events:none}
.side span{writing-mode:vertical-rl;transform:rotate(180deg);font:400 12px/1 var(--f-mono);letter-spacing:.08em;color:#4A4A52;white-space:nowrap}
.side i{position:relative;flex:1;width:1px;background:#C9C5C0;overflow:hidden}
.alt .side i{background:#B9B4AD}
.side i::after{content:"";position:absolute;inset:0;background:#E94B5B;transform:scaleY(0);transform-origin:top}
@supports (animation-timeline: view()){.side i::after{animation:railfill linear both;animation-timeline:view();animation-range:cover 25% cover 75%}}
@keyframes railfill{to{transform:scaleY(1)}}
@media (max-width:900px){.side{display:none}}

/* Section frame */
.sec{position:relative;background:var(--bg)}
.sec.alt{background:var(--bg-alt)}
.sec-in{position:relative;max-width:1320px;margin:0 auto;padding:clamp(96px,10vw,140px) 24px clamp(96px,10vw,140px) 96px}
@media (max-width:900px){.sec-in{padding-left:24px}}
@media (max-width:700px){.sec-in{padding:64px 20px 72px}}
.sec-hd{margin-bottom:clamp(40px,4.4vw,64px)}
.sec-hd.row{display:flex;justify-content:space-between;align-items:flex-end;gap:24px 40px}
.sec-ft{display:flex;justify-content:center;margin-top:clamp(28px,3vw,44px)}
.h2{font-weight:300;font-size:clamp(40px,4.6vw,68px);line-height:1.04;letter-spacing:-.035em}
.w760{max-width:760px}
@media (max-width:700px){
  .eyebrow{margin-bottom:18px}
  .sec-hd{margin-bottom:36px}
  .sec-hd.row{display:block}
  .h2{font-size:36px;line-height:1.08}
  .sec-ft{margin-top:24px}
}

/* 4. Header & menu ---------------------------------------------------------------- */
.hd{position:sticky;top:0;z-index:30;height:84px;background:rgba(244,243,241,.92);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);transition:background .4s}
.hd-in{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:100%;max-width:1320px;margin:0 auto;padding:0 var(--pad-r) 0 var(--pad-l)}
.hd .logo{justify-self:start;font-size:clamp(22px,2.1vw,30px);transition:color .4s}
.nv{display:flex;gap:clamp(18px,2.5vw,36px)}
.nv a{position:relative;display:inline-flex;align-items:center;min-height:44px;font-weight:500;font-size:clamp(13px,1vw,14px);letter-spacing:.01em;color:#222222;text-decoration:none}
.nv a::after{content:"";position:absolute;left:0;right:0;bottom:9px;height:1.5px;background:#E94B5B;transform:scaleX(0);transform-origin:right;transition:transform .35s cubic-bezier(.2,.9,.2,1)}
.nv a:hover::after,.nv a:focus-visible::after,.nv a[aria-current]::after{transform:scaleX(1);transform-origin:left}
.hd-r{justify-self:end;display:flex;align-items:center;gap:clamp(16px,2vw,28px)}
.lang{display:flex;align-items:center;gap:6px;font:400 12px/1 var(--f-mono);color:var(--ink-4)}
.lang a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink-4);text-decoration:none}
.lang a:hover,.lang a.on{color:var(--ink)}
.burger{display:none;position:relative;width:44px;height:44px;margin-right:-4px;padding:0;border:0;background:none;cursor:pointer;overflow:hidden}
.burger i{position:absolute;right:4px;height:1.6px;border-radius:2px;background:#222222;transition:transform .55s cubic-bezier(.7,0,.2,1),width .55s cubic-bezier(.7,0,.2,1),opacity .55s cubic-bezier(.7,0,.2,1),background .4s}
.burger i:nth-child(1){top:15px;width:24px}
.burger i:nth-child(2){top:21px;width:24px}
.burger i:nth-child(3){top:27px;width:14px}
.burger:hover i:nth-child(3){width:24px}
.burger:hover i:nth-child(2){transform:translateX(-4px)}
.mm-open .burger i{background:#FFFFFF}
.mm-open .burger i:nth-child(1){transform:translateY(6px) rotate(45deg)}
.mm-open .burger i:nth-child(2){transform:translateX(36px);opacity:0}
.mm-open .burger i:nth-child(3){width:24px;transform:translateY(-6px) rotate(-45deg)}
.mm-open .hd{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
.mm-open .hd .logo{color:#FFFFFF}
.mm-open .hd .hd-cta{visibility:hidden}

.mm{position:fixed;inset:0;z-index:29;display:flex;flex-direction:column;justify-content:space-between;gap:32px;padding:110px 20px 28px;overflow-y:auto;background:#222222;color:#FFFFFF;clip-path:inset(0 0 100% 0);visibility:hidden;transition:clip-path .7s cubic-bezier(.7,0,.2,1),visibility 0s linear .7s}
.mm-open .mm{clip-path:inset(0);visibility:visible;transition:clip-path .7s cubic-bezier(.7,0,.2,1),visibility 0s}
.mm-nav{display:flex;flex-direction:column;gap:6px}
.mm-l{display:flex;align-items:baseline;gap:14px;min-height:60px;font-weight:300;font-size:44px;line-height:1.1;letter-spacing:-.03em;color:#FFFFFF;text-decoration:none;opacity:0;transform:translateY(18px);transition:opacity .5s var(--ease),transform .7s var(--ease),color .2s}
.mm-l span{font:400 12px/1 var(--f-mono);letter-spacing:.06em;color:#E94B5B}
.mm-l:hover{color:#FF9AA4}
.mm-open .mm-l{opacity:1;transform:none;transition-delay:calc(.12s + var(--i) * .06s),calc(.12s + var(--i) * .06s),0s}
.mm-foot{border-top:1px solid #2E2E34;padding-top:22px;opacity:0;transform:translateY(18px);transition:opacity .5s var(--ease),transform .7s var(--ease)}
.mm-open .mm-foot{opacity:1;transform:none;transition-delay:.44s}
.mm-hello{display:inline-block;padding-bottom:4px;border-bottom:1.5px solid #E94B5B;font-weight:400;font-size:22px;color:#FFFFFF;text-decoration:none}
.mm-hello span{color:#E94B5B}
.mm-row{display:flex;align-items:center;justify-content:space-between;margin-top:18px}
.mm .lang{font-size:13px;color:#8A8A94}
.mm .lang a{color:#8A8A94}
.mm .lang a.on,.mm .lang a:hover{color:#FFFFFF}
.soc{display:flex;gap:8px}
.soc a{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;color:#A9A9B2;transition:color .2s,background .2s}
.soc a:hover{color:#FFFFFF;background:#2A2A30}
@media (min-width:901px){.mm{display:none}}
@media (max-width:900px){
  .nv,.hd .lang{display:none}
  .hd-in{grid-template-columns:1fr auto;padding-left:24px}
  .burger{display:block}
}
@media (max-width:700px){
  html{scroll-padding-top:64px}
  .hd{height:64px}
  .hd-in{padding:0 20px}
  .hd .logo{font-size:24px}
}
@media (max-width:480px){.hd-cta{display:none!important}}

/* 5. Front page ---------------------------------------------------------------- */
/* Hero */
.hero{background:var(--bg)}
.hero-in{position:relative;display:grid;grid-template-columns:.85fr 1.15fr;align-items:end;max-width:1320px;margin:0 auto;padding:0 var(--pad-r) 0 var(--pad-l)}
.hero .side{top:60px;bottom:52px}
.hero-l{display:flex;flex-direction:column;gap:min(32px,2.22vw);align-self:stretch;padding:min(96px,6.67vw) 0 min(40px,2.78vw)}
.hn{display:flex;flex-wrap:nowrap;gap:clamp(28px,3.4vw,48px);list-style:none;padding:0}
.hn li{display:flex;flex-direction:column;gap:min(8px,.56vw)}
.hn-n{font-weight:300;font-size:min(44px,3.06vw);line-height:1;letter-spacing:-.04em;white-space:nowrap}
.hn-n sup{position:relative;top:.15em;vertical-align:top;font-size:.45em;font-weight:400;color:#C42F41;line-height:1}
.hn-n small{font-size:.55em}
.hn-l{font:400 clamp(10px,.83vw,12px)/1.25 var(--f-mono);letter-spacing:.06em;color:var(--ink-2);white-space:nowrap}
.hero-sp{flex:1 1 40px}
.hero-sp2{flex:.7 1 24px}
.hero-h{font-weight:300;font-size:min(240px,16.67vw);line-height:.82;letter-spacing:-.055em;margin-left:-.04em}
.hero-sub{font-weight:300;font-size:min(30px,2.08vw);line-height:1.3;letter-spacing:-.01em;max-width:min(560px,38.9vw)}
.neg{position:relative;display:inline-block;font-weight:600}
.neg::after{content:"";position:absolute;top:0;bottom:0;left:0;width:34%;background:#FFFFFF;mix-blend-mode:difference;pointer-events:none;animation:ekneg 2.4s ease-in-out infinite alternate}
@keyframes ekneg{0%{left:0;transform:translateX(0)}100%{left:100%;transform:translateX(-100%)}}
.go{display:inline-flex;align-items:center;gap:12px;align-self:flex-start;min-height:44px;font:400 clamp(11px,.9vw,13px)/1 var(--f-mono);letter-spacing:.04em;color:var(--ink);text-decoration:none}
.go i{position:relative;width:1.5px;height:min(40px,2.78vw);min-height:24px;background:#C9C5C0;overflow:hidden}
.go i::after{content:"";position:absolute;left:0;right:0;top:0;height:40%;background:#E94B5B;animation:golin 2s var(--ease) infinite}
.go b{display:inline-block;font-weight:400;color:#E94B5B;animation:gohop 2s ease-in-out infinite}
@keyframes golin{0%{transform:translateY(-100%)}100%{transform:translateY(250%)}}
@keyframes gohop{0%,100%{transform:translateY(0)}50%{transform:translateY(5px)}}
.hero-ph{justify-self:end;align-self:end;width:100%;max-width:820px;aspect-ratio:1141/1188}
.hero-ph img{display:block;width:100%;height:100%;object-fit:contain;object-position:bottom right}
@media (max-width:700px){
  .hero-in{display:flex;flex-direction:column;align-items:stretch;gap:22px;min-height:716px;padding:28px 20px 0}
  .hero-l{display:contents}
  .hero-sp,.hero-sp2{display:none}
  .hn{justify-content:space-between;gap:12px}
  .hn li{gap:6px}
  .hn-n{font-size:26px}
  .hn-l{font-size:10px;letter-spacing:.04em}
  .hero-h{font-size:31vw;margin-top:14px}
  .hero-sub{font-size:20px;max-width:none}
  .hero-ph{margin-top:auto;margin-right:-20px;width:calc(100% + 20px);max-width:none}
  .go{position:absolute;left:20px;bottom:calc(26vw + 20px);z-index:2;font-size:12px} /* shoulder height: clear of the Safari toolbar */
  .go i{height:32px}
}

/* Services */
.svc{display:grid;grid-template-columns:1fr 1fr;gap:48px 64px}
.svc-hd{position:sticky;top:120px;align-self:start}
.steps{list-style:none;padding:0}
.step{position:relative;display:grid;grid-template-columns:48px 1fr;gap:28px;padding-bottom:52px}
.step:last-child{padding-bottom:0}
.step:not(:last-child)::before{content:"";position:absolute;left:23px;top:56px;bottom:8px;width:1.5px;background:repeating-linear-gradient(to bottom,#A8A39C 0 5px,transparent 5px 10px)} /* gradient, not a 1.5px dashed border: iOS Safari drew only one dash */
.step-n{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:#222222;color:#FFFFFF;font-weight:400;font-size:19px;line-height:1;transition:background .5s}
.step:hover .step-n{background:#E94B5B}
.step-b{padding-top:9px}
.step h3{font-weight:400;font-size:24px;line-height:1.2;letter-spacing:-.015em;margin-bottom:12px}
.step p{font-size:15px;line-height:1.55;color:var(--ink-2);max-width:440px}
.price{display:inline-block;margin-top:16px;font:500 12px/1 var(--f-mono);letter-spacing:.04em;color:#B02A3B}
@media (max-width:900px){.hero-in{padding-left:24px}.svc{grid-template-columns:1fr;gap:40px}.svc-hd{position:static}}
@media (max-width:700px){
  .step{grid-template-columns:40px 1fr;gap:18px;padding-bottom:40px}
  .step:not(:last-child)::before{left:19px;top:48px}
  .step-n{width:40px;height:40px;font-size:16px}
  .step-b{padding-top:6px}
  .step h3{font-size:21px}
}

/* "+N" card */
.kg-more{display:flex;flex-direction:column;gap:56px;break-inside:avoid;margin:0 0 20px;padding:24px 22px 22px;border-radius:20px;background:#222222;color:#FFFFFF;text-decoration:none;transition:transform .6s var(--ease),box-shadow .6s ease}
.kg-more:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(34,34,34,.10)}
.kg-more-n{font-weight:300;font-size:80px;line-height:.9;letter-spacing:-.05em}
.kg-more-n sup{font-size:.4em;color:#E94B5B;vertical-align:top;position:relative;top:.12em;line-height:1}
.kg-more-t{font-size:15px;line-height:1.5;color:#C9C9D0;max-width:300px}
.kg-more-a{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-weight:500;font-size:15px}
.kg-more-a u{text-decoration-thickness:1px;text-underline-offset:5px}
@media (max-width:700px){.kg-more{gap:40px;margin-bottom:16px}.kg-more-n{font-size:72px}}

/* Clients: full-width dark section (kliendid-tume juhend 2026-11-24) */
.kc{position:relative;background:#222222;color:#FFFFFF;overflow:hidden;isolation:isolate}
.kc-grid{position:absolute;inset:0;z-index:-1;background-image:linear-gradient(#2E2E34 1px,transparent 1px),linear-gradient(90deg,#2E2E34 1px,transparent 1px);background-size:72px 72px;background-position:-1px -1px;-webkit-mask-image:radial-gradient(120% 90% at 100% 0%,#000 0%,rgba(0,0,0,.5) 30%,transparent 62%);mask-image:radial-gradient(120% 90% at 100% 0%,#000 0%,rgba(0,0,0,.5) 30%,transparent 62%)}
.kc-box{position:relative;max-width:1320px;margin:0 auto}
.kc-side{position:absolute;left:clamp(20px,2.5vw,36px);top:clamp(88px,9vw,128px);bottom:clamp(88px,9vw,128px);display:flex;flex-direction:column;align-items:center;gap:20px}
.kc-side span{writing-mode:vertical-rl;transform:rotate(180deg);font:400 12px/1 var(--f-mono);letter-spacing:.08em;color:#A9A9B2}
.kc-side i{position:relative;flex:1;width:1px;background:#3A3A40;overflow:hidden}
.kc-side i::after{content:"";position:absolute;inset:0;background:#E94B5B;transform:scaleY(0);transform-origin:top}
@supports (animation-timeline: view()){.kc-side i::after{animation:railfill linear both;animation-timeline:view();animation-range:cover 25% cover 75%}}
@keyframes railfill{to{transform:scaleY(1)}}
.kc-in{max-width:1320px;margin:0 auto;padding:clamp(88px,9vw,128px) clamp(16px,1.67vw,24px) 0 clamp(72px,6.67vw,96px);display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:40px 64px}
.kc-t{max-width:420px;display:flex;flex-direction:column;align-items:flex-start;gap:16px}
.kc-e{display:inline-flex;align-items:center;gap:8px;font:400 12px/1 var(--f-mono);letter-spacing:.1em;color:#A9A9B2}
.kc-e i{width:6px;height:6px;border-radius:50%;background:#E94B5B}
.kc-h{margin:0;font-weight:300;font-size:clamp(32px,3.4vw,48px);line-height:1.1;letter-spacing:-.03em;color:#FFFFFF}
.kc-h .c,.kc-h span{color:#FF9AA4}
.kc-n{display:flex;flex-direction:column;align-items:flex-end;gap:18px;text-align:right}
.kc-big{font-weight:300;font-size:clamp(110px,12vw,180px);line-height:.8;letter-spacing:-.06em}
.kc-big sup{font-size:.36em;vertical-align:top;position:relative;top:.16em;margin-right:4px;color:#E94B5B;font-weight:400}
.kc-lb{font:400 13px/1.6 var(--f-mono);letter-spacing:.06em;color:#A9A9B2}
.kc-lb b{font-weight:400;color:#FFFFFF}
.lgs{max-width:1320px;margin:0 auto;padding:clamp(56px,6vw,88px) clamp(16px,1.67vw,24px) clamp(88px,9vw,128px) clamp(72px,6.67vw,96px);list-style:none;display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:clamp(28px,3vw,40px) clamp(24px,2.6vw,36px);align-items:center}
.lt{display:flex;align-items:center;justify-content:center;height:40px}
.lt img{display:block;width:auto;height:var(--h,24px);max-width:100%;max-height:100%;object-fit:contain;filter:invert(1);opacity:.38;transition:opacity .6s ease}
.lt:hover img{opacity:.9}
@media (max-width:1100px){.lgs{grid-template-columns:repeat(6,minmax(0,1fr))}}
@media (max-width:900px){.kc-side{display:none}}
@media (max-width:760px){
  .kc-grid{background-size:56px 56px}
  .kc-in{padding:64px 20px 0;flex-direction:column;align-items:stretch;gap:28px}
  .kc-t{max-width:none}
  .kc-h{font-size:32px}
  .kc-n{align-self:flex-end}
  .kc-big{font-size:104px}
  .lgs{padding:40px 20px 72px;grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 20px}
  .lt{height:32px}
  .lt img{height:calc(var(--h,24px) * .81)}
}
@media (prefers-reduced-motion:reduce){.lt img{transition:none}.kc-side i::after{animation:none}}

/* Collaboration */
.co{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.co-c{border-radius:20px;padding:clamp(28px,3.4vw,48px);background:#FFFFFF;transition:transform .6s var(--ease),box-shadow .6s ease}
.co-c.ongoing{background:#E6E3DE}
.co-c:hover{transform:translateY(-3px)}
.co-b{font:500 12px/1 var(--f-mono);letter-spacing:.08em;color:#C42F41;margin-bottom:16px}
.co-h{font-weight:400;font-size:clamp(28px,2.6vw,36px);line-height:1.15;letter-spacing:-.02em;margin-bottom:24px}
.co-p{font-size:16px;line-height:1.5;color:var(--ink-2);margin-bottom:20px}
.co-l{list-style:none;padding:0}
.co-l li{display:flex;gap:12px;font-size:16px;line-height:1.5;margin-bottom:10px}
.co-l li span{font-family:var(--f-mono);color:#E94B5B;flex:none}
.tl-w{margin-top:36px}
.tl-k{font:500 12px/1 var(--f-mono);letter-spacing:.08em;color:var(--ink-2);margin-bottom:20px}
.tl{position:relative;display:grid;grid-template-columns:repeat(var(--n),1fr);gap:12px;list-style:none;padding:0;--p:0px}
.tl::before,.tl::after{content:"";position:absolute;top:7px;left:7px;height:2px}
.tl::before{right:calc(100% / var(--n) - 7px);background:var(--line)}
.tl::after{width:var(--p);background:#E94B5B;transition:width .9s var(--ease)}
.tl.is-reset::after{transition:none}
.tl li{position:relative;padding-top:30px;font-size:14px;line-height:1.35}
.tl-d{position:absolute;top:0;left:0;z-index:1;width:15px;height:15px;border-radius:50%;background:#FFFFFF;border:2px solid #E94B5B;transition:background .4s}
.tl li.on .tl-d{background:#E94B5B}
.co-f{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px;margin-top:32px;font-size:15px;color:#4A4A52}
.ringed{position:relative;display:inline-flex;padding:0 6px}
.ring{position:absolute;left:-30px;right:-30px;top:-16px;bottom:-16px;width:calc(100% + 60px);max-width:none;height:calc(100% + 32px);overflow:visible;pointer-events:none}
.ring path{fill:none;stroke:#E94B5B;stroke-width:2.2;stroke-linecap:round;vector-effect:non-scaling-stroke;stroke-dasharray:100;stroke-dashoffset:100;animation:ringdraw 7s var(--ease) infinite}
@keyframes ringdraw{0%{stroke-dashoffset:100;opacity:1}22%{stroke-dashoffset:0;opacity:1}78%{stroke-dashoffset:0;opacity:1}90%,100%{stroke-dashoffset:0;opacity:0}}
@media (max-width:900px){.co{grid-template-columns:1fr}}
@media (max-width:700px){.co-c{padding:28px}.co-h{font-size:28px}}
@media (max-width:560px){
  .tl{grid-template-columns:1fr 1fr;row-gap:20px}
  .tl::before,.tl::after{display:none}
}

/* 6. Cards ------------------------------------------------------------------------ */
.kg{columns:3 280px;column-gap:20px}
.kg.is-js{columns:auto;display:flex;gap:20px;align-items:flex-start;overflow-anchor:none}
.kg [hidden]{display:none!important} /* .kg-c is display:flex, which would beat the [hidden] attribute */
.pf .sec-ft{overflow-anchor:none}
.kg-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column}
.kg-x{break-inside:avoid}
.kg-c{display:flex;flex-direction:column;break-inside:avoid;margin:0 0 20px;overflow:hidden;border-radius:20px;background:#FFFFFF;color:#222222;text-decoration:none;box-shadow:0 0 0 0 rgba(34,34,34,0);transition:box-shadow .7s ease}
.kg-c:hover{color:#222222;box-shadow:0 14px 34px rgba(34,34,34,.07)}
.kg-c.ad{background:#E6E3DE}
.kg-c.sm{background:#E1E5E8}
.kg-c.pj{background:#222222;color:#FFFFFF}
.kg-t{display:flex;flex-direction:column;gap:14px;padding:22px 22px 24px}
.kg-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.kg-tags{display:flex;flex-wrap:wrap;gap:6px}
.kg-tag{padding:5px 9px;border:1px solid currentColor;border-radius:6px;font:500 10px/1 var(--f-mono);letter-spacing:.06em;text-transform:uppercase}
.kg-cnt{padding:5px 8px;border-radius:6px;background:rgba(34,34,34,.08);font:500 10px/1 var(--f-mono);letter-spacing:.06em}
.kg-c.pj .kg-cnt{background:rgba(255,255,255,.14)}
.kg-new{padding:6px 9px;border-radius:6px;background:#E94B5B;color:#FFFFFF;font:500 10px/1 var(--f-mono);letter-spacing:.06em;text-transform:uppercase}
/* „Vaata ↗“ link in the text part (the card itself is not a link) */
.kg-lk{display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:-12px -6px -12px 0;padding:0 6px;color:#222222;font:500 14px/1 var(--f-sans);white-space:nowrap;text-decoration:none;transition:color .4s ease}
.kg-lk u{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:5px;text-decoration-color:currentColor;transition:text-decoration-color .4s ease}
.kg-lk i{font-style:normal;font-weight:600;color:#E94B5B;transition:transform .6s cubic-bezier(.16,1,.3,1)}
.kg-lk:hover{color:#C42F41}
.kg-lk:hover u{text-decoration-color:#E94B5B}
.kg-c:hover .kg-lk i,.kg-lk:focus-visible i{transform:translate(2px,-2px)}
.kg-c.pj .kg-lk{color:#FFFFFF}
.kg-c.pj .kg-lk:hover{color:#FF9AA4}
.kg-ti{font-weight:500;font-size:22px;line-height:1.18;letter-spacing:-.02em}
.kg-m{display:flex;align-items:center;gap:10px;min-width:0}
.kg-d{flex-shrink:0;font:400 12px/1 var(--f-mono);color:#C42F41}
.kg-c.pj .kg-d{color:#F27482}
.kg-s{flex-shrink:0;width:5px;height:5px;background:#E94B5B;transform:rotate(45deg)}
.kg-cl{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;font-size:11px;letter-spacing:.09em;text-transform:uppercase}
.kg-sub{margin-top:-2px;padding-top:14px;border-top:1px solid rgba(34,34,34,.1);font-weight:400;font-size:17px;line-height:1.55;letter-spacing:-.005em;color:#2A2A30}
.kg-c.pj .kg-sub{color:#D9D9DE;border-top-color:rgba(255,255,255,.14)}
.kg-res{display:flex;flex-wrap:wrap;gap:4px 12px;font:500 12px/1.5 var(--f-mono);letter-spacing:.02em;color:#3A3A40}
.kg-c.pj .kg-res{color:#D9D9DE}
/* Image: on hover it slides up as if lying on top of the text part. No negative bottom margin: the bottom of a post
   screenshot (reactions) must stay visible (Ervet, 2026-11-24). */
.kg-i{position:relative;z-index:1;display:block;overflow:hidden;border-radius:20px 20px 0 0;isolation:isolate;cursor:pointer;transition:transform .8s cubic-bezier(.16,1,.3,1)}
.kg-i img,.kg-i video{display:block;width:100%;height:auto}
.kg-c:hover .kg-i,.kg-c:focus-within .kg-i{transform:translateY(-12px)}
/* While the image slides up, the card's bottom edge is clipped by the same 12px: no strip under the image,
   the page background shows there (Ervet, 2026-11-24). Cards without an image are not clipped. */
.kg-c:has(.kg-i){clip-path:inset(0 0 0 0 round 20px);transition:box-shadow .7s ease,clip-path .8s cubic-bezier(.16,1,.3,1)}
.kg-c:has(.kg-i):hover,.kg-c:has(.kg-i):focus-within{clip-path:inset(0 0 12px 0 round 20px)}
.kg-i:focus-visible{outline:2px solid #E94B5B;outline-offset:-2px}
@media (max-width:900px){.kg{columns:2 260px}}
@media (max-width:700px){.kg{columns:1}.kg.is-js{gap:16px}.kg-c{margin-bottom:16px}.kg-t{gap:12px;padding:20px 20px 22px}.kg-ti{font-size:20px;line-height:1.2}.kg-lk{font-size:15px}}
@media (hover:none){.kg-c:hover .kg-i,.kg-c:focus-within .kg-i{transform:none}.kg-c:has(.kg-i):hover,.kg-c:has(.kg-i):focus-within{clip-path:inset(0 0 0 0 round 20px)}}

/* 7. Portfolio -------------------------------------------------------------------- */
.pf{position:relative;display:flex;flex-direction:column;gap:clamp(36px,4vw,56px);max-width:1320px;margin:0 auto;padding:clamp(72px,8vw,112px) var(--pad-r) clamp(96px,10vw,140px) var(--pad-l)}
.pf .side{top:clamp(72px,8vw,112px);bottom:clamp(96px,10vw,140px)}
.pf .sec-ft{margin-top:0}
.pf-hd .eyebrow{margin-bottom:20px}
.pf-h{font-weight:300;font-size:clamp(64px,9vw,140px);line-height:.9;letter-spacing:-.05em;margin-bottom:24px}
.lead{font-size:17px;line-height:1.6;color:var(--ink-2);max-width:560px}
.chips{display:flex;flex-wrap:wrap;gap:8px;border-top:1px solid #D6D3CE;padding-top:24px}
.chip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid #D6D3CE;border-radius:999px;background:transparent;font-weight:500;font-size:14px;color:var(--ink);cursor:pointer;transition:border-color .2s,background .2s,color .2s}
.chip span{font:400 11px/1 var(--f-mono);color:#8A8A92}
.chip:hover{border-color:#222222}
.chip[aria-pressed=true]{background:#222222;border-color:#222222;color:#FFFFFF}
.chip[aria-pressed=true] span{color:#E94B5B}
.cta-s{background:var(--bg-alt)}
.cta-in{display:flex;justify-content:space-between;align-items:flex-end;gap:32px;max-width:1320px;margin:0 auto;padding:clamp(88px,9vw,128px) 24px clamp(88px,9vw,128px) 96px}
.cta-h{max-width:720px}
.cta-p{font-size:17px;line-height:1.6;color:var(--ink-2);max-width:520px;margin-top:16px}
@media (max-width:900px){.pf{padding-left:24px}.cta-in{padding-left:24px}}
@media (max-width:700px){
  .pf{gap:28px;padding:36px 20px 64px}
  .pf-hd .eyebrow{margin-bottom:18px}
  .pf-h{font-size:64px;margin-bottom:18px}
  .lead{font-size:16px}
  .chips{flex-wrap:nowrap;overflow-x:auto;margin:0 -20px;padding:20px 20px 4px;scrollbar-width:none}
  .chips::-webkit-scrollbar{display:none}
  .chip{flex:0 0 auto;white-space:nowrap}
  .cta-in{flex-direction:column;align-items:flex-start;gap:20px;padding:64px 20px 72px}
  .cta-h{font-size:38px;line-height:1.06}
  .cta-p{font-size:16px}
}

/* 8. Entry page ------------------------------------------------------------------- */
.en{position:relative;display:flex;flex-direction:column;gap:clamp(32px,3.5vw,48px);max-width:1320px;margin:0 auto;padding:clamp(48px,5vw,72px) var(--pad-r) clamp(64px,6vw,88px) var(--pad-l)}
.en-hd{display:flex;flex-direction:column;gap:20px;align-items:flex-start}
.back{display:inline-flex;align-items:center;min-height:44px;margin:-8px 0 -4px;font:400 13px/1 var(--f-mono);color:#4A4A52;text-decoration:none}
.back:hover{color:var(--coral-dk)}
.en-m{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.en-m .kg-tag{color:var(--ink)}
.en-d{font:400 12px/1 var(--f-mono);color:#C42F41}
.en-h{font-weight:300;font-size:clamp(40px,5vw,76px);line-height:1.04;letter-spacing:-.035em;max-width:980px}
.en-g{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(32px,4vw,72px);align-items:start}
.en-media{min-width:0}
.en-img{border-radius:20px;overflow:hidden}
.en-img img,.en-img video{display:block;width:100%;height:auto}
.lb-link{display:block;cursor:zoom-in}
.en-a{position:sticky;top:120px;display:flex;flex-direction:column;gap:32px}
.en-b{padding-bottom:32px;border-bottom:1px solid #D6D3CE}
.en-b:last-child{padding-bottom:0;border-bottom:0}
.en-k{display:block;font:500 12px/1 var(--f-mono);letter-spacing:.1em;color:#C42F41;margin-bottom:20px}
.did{list-style:none;padding:0;display:flex;flex-direction:column;gap:14px}
.did li{display:flex;gap:12px;font-size:17px;line-height:1.5}
.did svg{flex:none;margin-top:.3em}
.res{display:flex;flex-wrap:wrap;gap:24px 56px}
.rn{display:block;font-weight:300;font-size:64px;line-height:.9;letter-spacing:-.05em}
.rl{display:block;margin-top:10px;font:400 12px/1.3 var(--f-mono);letter-spacing:.04em;color:#4A4A52;max-width:200px}
.en-p{font-size:16px;line-height:1.6;color:var(--ink-2)}
.en-cta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 16px}
.en-cta>span{font-size:17px;color:#4A4A52}
.en-sh{display:flex;align-items:center;justify-content:space-between;gap:16px}
.en-sh .en-k{font-weight:400;letter-spacing:.06em;color:var(--ink-2);margin:0}
.sh{display:flex;gap:8px}
.sh a,.sh button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;border:1px solid #D6D3CE;background:transparent;color:var(--ink);cursor:pointer;transition:background .2s,color .2s}
.sh a:hover,.sh button:hover{background:#E7E5E1}
.sh .is-done{color:var(--coral-dk);border-color:var(--coral)}
.rel{display:flex;align-items:center;gap:14px;text-decoration:none}
.rel-i{flex:none;width:96px;border-radius:10px;overflow:hidden}
.rel-i img{display:block;width:100%;height:auto}
.rel-t{font-weight:500;font-size:16px;line-height:1.35}
.rel:hover .rel-t{color:var(--coral-dk)}
.facts{display:flex;flex-direction:column;gap:16px}
.facts dt{font:400 12px/1 var(--f-mono);letter-spacing:.08em;color:var(--ink-2);margin-bottom:4px}
.facts dd{font-size:16px}
.facts .cta2{min-height:0;line-height:inherit}
.mute{color:var(--ink-4)}
.en-q p{font-weight:300;font-size:20px;line-height:1.45;letter-spacing:-.01em}
.en-q footer{margin-top:12px;font:400 12px/1.3 var(--f-mono);color:var(--ink-2)}
/* Gallery */
.gl{outline:none}
.gl:focus-visible{outline:2px solid var(--coral);outline-offset:4px;border-radius:20px}
.gl-main{position:relative;overflow:hidden;border-radius:20px;background:#EBEAE7}
/* Slides are switched with [hidden]: never let the browser use a slide as its scroll anchor, or the page jumps by the gallery height */
.gl,.gl *{overflow-anchor:none}
.gl-s img,.gl-s video{display:block;width:100%;height:auto}
/* One height for all slides: frame = first slide's ratio, the rest shown whole inside (contain) */
.gl-main.is-fixed{aspect-ratio:var(--gl-ar)}
.gl-main.is-fixed .gl-s{height:100%}
.gl-main.is-fixed .gl-s>a,.gl-main.is-fixed .gl-s>.ba-w{display:block;height:100%}
.gl-main.is-fixed .gl-s img,.gl-main.is-fixed .gl-s video{width:100%;height:100%;object-fit:contain}
.gl-main.is-fixed .gl-s>.ba-w{aspect-ratio:auto}
.gl-s.show{animation:glin .7s var(--ease)}
@keyframes glin{from{opacity:.35;transform:scale(1.015)}to{opacity:1;transform:none}}
.gl-nav{position:absolute;left:0;right:0;bottom:0;z-index:2;display:flex;align-items:flex-end;justify-content:space-between;padding:56px 18px 18px 22px;background:linear-gradient(to top,rgba(34,34,34,.5),rgba(34,34,34,0));pointer-events:none}
.gl-main.is-video .gl-nav{top:0;bottom:auto;align-items:flex-start;padding:18px 18px 56px 22px;background:linear-gradient(to bottom,rgba(34,34,34,.5),rgba(34,34,34,0))}
.gl-n{font:400 13px/1 var(--f-mono);letter-spacing:.06em;color:#FFFFFF;padding-bottom:14px}
.gl-main.is-video .gl-n{padding:14px 0 0}
.gl-b{display:flex;gap:8px;pointer-events:auto}
.gl-b button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:var(--ink);font-size:18px;line-height:1;cursor:pointer;transition:background .2s,color .2s}
.gl-b button:hover{background:#FFFFFF;color:#C42F41}
.gl-b button:disabled{opacity:.45;cursor:default}
.gl-th{display:grid;grid-template-columns:repeat(var(--c),1fr);gap:10px;margin-top:10px}
.th{position:relative;padding:0 0 6px;border:0;background:none;cursor:pointer;opacity:.5;transition:opacity .3s}
.th:hover{opacity:.8}
.th.on{opacity:1}
.th img,.th-ph{display:block;width:100%;aspect-ratio:1;object-fit:cover;object-position:top;border-radius:10px}
.th-ph{display:flex;align-items:center;justify-content:center;background:var(--ink);color:#FFFFFF}
.th::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:#E94B5B;transform:scaleX(0);transform-origin:left;transition:transform .6s var(--ease)}
.th.on::after{transform:scaleX(1)}
/* Before / after slider inside the gallery */
.ba-w{aspect-ratio:var(--ar,1.5)}
.ba{position:relative;height:100%;overflow:hidden;--pos:50%}
.ba img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.ba .ba-after{clip-path:inset(0 calc(100% - var(--pos)) 0 0)}
.ba-line{position:absolute;top:0;bottom:0;left:var(--pos);width:2px;margin-left:-1px;background:#FFFFFF;pointer-events:none}
.ba-tag{position:absolute;top:16px;padding:6px 9px;border-radius:6px;background:#FFFFFF;font:500 10px/1 var(--f-mono);letter-spacing:.06em;pointer-events:none}
.ba-tag.before{right:16px}
.ba-tag.after{left:16px;background:#E94B5B;color:#FFFFFF}
.ba-handle{position:absolute;top:50%;left:var(--pos);width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;background:#FFFFFF;color:var(--ink);display:flex;align-items:center;justify-content:center;font:500 13px/1 var(--f-mono);pointer-events:none}
.ba input[type=range]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:ew-resize;margin:0}
.ba:has(input:focus-visible){outline:2px solid var(--coral);outline-offset:-4px}
.latest .lt-h{font-size:clamp(36px,4vw,56px);line-height:1.05;letter-spacing:-.03em}
@media (max-width:900px){.en{padding-left:24px}.en-g{grid-template-columns:1fr}.en-a{position:static}}
@media (max-width:700px){
  .en{gap:28px;padding:28px 20px 64px}
  .en-hd{gap:18px}
  .en-h{font-size:38px;line-height:1.06}
  .en-a{gap:28px;padding-top:8px}
  .en-b{padding-bottom:28px}
  .did{gap:12px}
  .did li{font-size:16px}
  .res{gap:40px}
  .rn{font-size:56px}
  .is-gal .res.many{gap:22px}
  .is-gal .res.many .rn{font-size:40px}
  .en-cta{flex-direction:column;align-items:flex-start}
  .en-cta>span{font-size:16px}
  .gl-th{gap:8px;margin-top:8px}
  .gl-nav{padding:48px 14px 14px 18px}
  .gl-main.is-video .gl-nav{padding:14px 14px 48px 18px}
  .latest .lt-h{font-size:38px}
}

/* Generic page */
.gp{max-width:1320px;margin:0 auto;padding:clamp(48px,5vw,72px) var(--pad-r) clamp(96px,10vw,140px) var(--pad-l);display:flex;flex-direction:column;gap:28px;align-items:flex-start}
.gp-a{display:flex;flex-wrap:wrap;gap:8px 32px}
.prose{max-width:720px;font-size:17px;line-height:1.65;color:var(--ink-2)}
.prose>*+*{margin-top:1em}
.prose h2,.prose h3{color:var(--ink);font-weight:500;margin-top:1.6em}
@media (max-width:900px){.gp{padding-left:24px}}
@media (max-width:700px){.gp{padding:28px 20px 64px}}

/* Lightbox */
.lb{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:56px 72px;background:rgba(34,34,34,.94)}
.lb[hidden]{display:none}
.lb img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.lb button{position:absolute;display:flex;align-items:center;justify-content:center;width:48px;height:48px;border:0;background:none;color:#FFFFFF;font:400 28px/1 var(--f-mono);cursor:pointer}
.lb-close{top:8px;right:12px}
.lb-prev{left:12px;top:50%;margin-top:-24px}
.lb-next{right:12px;top:50%;margin-top:-24px}
.lb-count{position:absolute;bottom:16px;left:0;right:0;text-align:center;font-family:var(--f-mono);font-size:12px;color:rgba(255,255,255,.7)}
@media (max-width:700px){.lb{padding:56px 12px}}

/* 9. Footer ------------------------------------------------------------------------ */
.ft{position:relative;z-index:25;background:#222222;color:var(--ft-text)}
.ft-in{display:flex;flex-direction:column;gap:clamp(48px,6vw,88px);max-width:1320px;margin:0 auto;padding:clamp(72px,8vw,112px) var(--pad-r) clamp(24px,3vw,36px) var(--pad-l)}
.ft-top{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:36px 64px}
.ft-l{flex:1 1 420px;display:flex;flex-direction:column;gap:16px}
.ft-k{font:400 13px/1 var(--f-mono);letter-spacing:.1em;color:#A9A9B2}
.ft-h{font-weight:300;font-size:clamp(36px,4.6vw,60px);line-height:1.05;letter-spacing:-.025em;color:#FFFFFF}
.ft-p{font-size:17px;line-height:1.6;color:#C9C9D0;max-width:460px}
.ft-r{display:flex;flex-direction:column;align-items:flex-start;gap:18px}
.ft-mail{display:inline-block;padding-bottom:6px;border-bottom:1.5px solid #E94B5B;font-weight:300;font-size:clamp(21px,2.4vw,32px);line-height:1.2;color:#FFFFFF;text-decoration:none;transition:color .2s}
.ft-mail span{color:#E94B5B}
.ft-mail:hover{color:#FF9AA4}
.ft-r .soc{margin-left:-10px}
.ft-b{display:flex;flex-direction:column;gap:18px}
.ft-c{padding-top:18px;border-top:1px solid #2E2E34;font:400 12px/1.4 var(--f-mono);color:#8A8A94}
.ft .ft-logo{align-self:flex-start;font-size:min(14.2vw,196px);line-height:.9;color:#FFFFFF}
@media (max-width:900px){.ft-in{padding-left:24px}}
@media (max-width:700px){
  .ft-in{gap:44px;padding:64px 24px 24px}
  .ft-top{flex-direction:column;align-items:flex-start;gap:44px}
  .ft-l{flex:none;gap:14px}
  .ft-k{font-size:12px}
  .ft-h{font-size:40px}
  .ft-p{font-size:16px}
  .ft-r{gap:14px}
  .ft-mail{font-size:21px}
  .ft-b{gap:16px}
  .ft-c{font-size:11px;padding-top:16px}
  .ft .ft-logo{font-size:60px}
}

/* 10. Motion -------------------------------------------------------------------------- */
[data-reveal]{opacity:0;transform:translateY(24px)}
[data-reveal].is-in{opacity:1;transform:none;transition:opacity .9s var(--ease) var(--rd,0s),transform 1.1s var(--ease) var(--rd,0s)}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
  .idot{transform:translateY(-.61em) rotate(45deg)}
  .neg::after{display:none}
  .kg-c:hover,.co-c:hover,.kg-more:hover{transform:none}
  .kg-c,.kg-i,.kg-lk,.kg-lk i{transition:none}
  .kg-c:hover .kg-i,.kg-c:focus-within .kg-i,.kg-c:hover .kg-lk i{transform:none}
  .kg-c:has(.kg-i):hover,.kg-c:has(.kg-i):focus-within{clip-path:inset(0 0 0 0 round 20px)}
  .ring path{stroke-dashoffset:0}
  .tl li .tl-d{background:#E94B5B}
  .tl::after{width:calc(100% - 100% / var(--n))}
  [data-reveal]{opacity:1;transform:none}
}

/* Entry: previous / next work bar (before "Viimased tööd") */
.se-pn{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);margin-top:clamp(8px,1.5vw,24px);border-top:1px solid #D6D3CE;border-bottom:1px solid #D6D3CE}
.se-pn-a{display:flex;align-items:center;gap:20px;padding:28px 32px 28px 0;color:#222222;text-decoration:none}
.se-pn-a.nx{grid-column:2;justify-content:flex-end;padding:28px 0 28px 32px;border-left:1px solid #D6D3CE;text-align:right}
.se-pn-a:hover{color:#222222}
.se-pn-i{flex:0 0 auto;display:block;width:88px;height:88px;border-radius:12px;object-fit:cover}
.se-pn-t{display:flex;flex-direction:column;gap:10px;min-width:0}
.se-k{display:block;font:500 12px/1 var(--f-mono);letter-spacing:.1em;color:#C42F41}
.se-pn-h{font-weight:400;font-size:clamp(18px,1.6vw,22px);line-height:1.25;letter-spacing:-.015em;transition:color .4s ease}
.se-pn-a:hover .se-pn-h,.se-pn-a:focus-visible .se-pn-h{color:#C42F41}
.nx .kg-m{justify-content:flex-end}
.se-pn-ar{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border:1px solid #CFCBC5;border-radius:50%;color:#E94B5B;font-size:18px;font-weight:600;transition:border-color .5s ease,background .5s ease,transform .7s cubic-bezier(.16,1,.3,1)}
.se-pn-a:hover .se-pn-ar{border-color:#222222;background:#222222}
.se-pn-a:not(.nx):hover .se-pn-ar{transform:translateX(-3px)}
.se-pn-a.nx:hover .se-pn-ar{transform:translateX(3px)}
@media (max-width:900px){
  .se-pn{grid-template-columns:1fr}
  .se-pn-a{padding:22px 0}
  .se-pn-a.nx{grid-column:auto;padding:22px 0;border-left:0}
  .se-pn-a+.se-pn-a.nx{border-top:1px solid #D6D3CE}
  .se-pn-i{width:64px;height:64px}
  .se-pn-ar{width:44px;height:44px}
  .se-pn-h{font-size:17px}
}
/* Phone: EELMINE = arrow, text, image; JÄRGMINE = image, text, arrow */
@media (max-width:700px){.se-pn-a:not(.nx) .se-pn-i{order:1}.se-pn-a:not(.nx) .se-pn-t{flex:1}.se-pn-a.nx .se-pn-i{order:-1}.se-pn-a.nx .se-pn-t{flex:1}}
@media (prefers-reduced-motion:reduce){.se-pn-ar,.se-pn-h{transition:none}.se-pn-a:hover .se-pn-ar{transform:none}}

/* Portfolio: red "record" dot on the eyebrow */
.eyebrow span.rec{width:8px;height:8px;background:#E94B5B;animation:tlpulse 2s ease-in-out infinite}
@keyframes tlpulse{0%,100%{box-shadow:0 0 0 0 rgba(233,75,91,.45)}50%{box-shadow:0 0 0 7px rgba(233,75,91,0)}}
@media (prefers-reduced-motion:reduce){.eyebrow span.rec{animation:none}}

/* Portfolio: "Näita varasemaid" = plain underlined text link + coral remaining count (no arrow: it loads more, not a new page) */
.pf-load{display:inline-flex;align-items:baseline;gap:10px;min-height:44px;padding:10px 4px;border:0;background:none;color:#222222;font:500 18px/1 var(--f-sans);cursor:pointer;transition:color .3s ease}
.pf-load u{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:7px}
.pf-load .pf-fc{font:400 12px/1 var(--f-mono);color:#C42F41}
.pf-load:hover,.pf-load:focus-visible{color:#C42F41}
@media (max-width:700px){.pf-load{font-size:17px}.pf-load u{text-underline-offset:6px}}

/* Cookie consent banner (inc/tracking.php, 2026-11-24): both choices equally visible */
.cc{position:fixed;left:clamp(12px,2vw,24px);bottom:clamp(12px,2vw,24px);z-index:200;max-width:400px;padding:20px 20px 18px;border-radius:16px;background:#222222;color:#FFFFFF;box-shadow:0 18px 48px rgba(0,0,0,.28)}
.cc[hidden]{display:none}
.cc-t{margin:0 0 16px;font-size:15px;line-height:1.5;color:#E6E3DE}
.cc-b{display:flex;gap:10px;flex-wrap:wrap}
.cc-b button{flex:1 1 140px;min-height:44px;padding:0 16px;border-radius:999px;font:500 15px/1 var(--f-sans);cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.cc-yes{border:1px solid #FFFFFF;background:#FFFFFF;color:#222222}
.cc-yes:hover,.cc-yes:focus-visible{background:#FF9AA4;border-color:#FF9AA4}
.cc-no{border:1px solid rgba(255,255,255,.55);background:transparent;color:#FFFFFF}
.cc-no:hover,.cc-no:focus-visible{border-color:#FFFFFF}
.cc button:focus-visible{outline:2px solid #FF9AA4;outline-offset:2px}
@media (max-width:480px){.cc{left:12px;right:12px;max-width:none}}
.ft-c{position:relative;z-index:2} /* the big wordmark below overlaps this line; keep "Küpsiste seaded" clickable */
.ft-cc{padding:0;border:0;background:none;color:inherit;font:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.ft-cc:hover,.ft-cc:focus-visible{color:#FFFFFF}
.cc-t a{color:#FFFFFF;text-decoration:underline;text-underline-offset:3px}

/* ↗ must not turn into an emoji on iOS (markup also has U+FE0E after the arrow) */
.ar,.ar span,.kg-lk i,.kg-more-a .ar{font-variant-emoji:text;font-family:var(--f-sans)}
