/* ---- base ---- */
html{color-scheme:light}
body{margin:0}
img{max-width:100%}
[hidden]{display:none!important}

/* BAFO contact page, same look as the home page: full-width bar, one family throughout (Archivo: wide and
   bold for titles, normal width for text), a hero with the page title on the left and the contact form on
   the right, three bordered cards with each person's portrait standing on the bottom edge, the address beside a line map of the streets around the office,
   then the black footer with the giant wordmark. Light page. Everything up to the bar and the footer
   rules are copied from the home page. */
:root{
  --ink:#0F1115;--text:#2E333B;--grey:#6F7785;--mute:#9BA2AE;--line:#E4E7EC;--mist:#F4F6F9;--white:#FFFFFF;--blue:#094DFF;--blue-d:#0A3FD1;--pale:#E8EEFF;
  /* type: text is Archivo at normal width. Sizes: lead 17-19, body 17, small 15-16, captions 14-15, labels 15 medium */
  --sans:'Archivo',-apple-system,BlinkMacSystemFont,'Helvetica Neue',Helvetica,Arial,sans-serif;
  --wrap:1200px;--gut:clamp(20px,3.4vw,40px);--nav:64px;--r:20px;--top:env(safe-area-inset-top,0px);
  /* every title uses --hd (Archivo, set wide); -w weight, -ls tracking, -k size factor, -st width */
  --hd:var(--sans);--hd-w:600;--hd-ls:-.035em;--hd-k:.92;--hd-st:116%;
  /* this page only: the hairline round the cards and the map, and the colour of a form error */
  --edge:#DCE1E8;--bad:#B3261E;
}
*{box-sizing:border-box}
html{scroll-padding-top:calc(var(--nav) + var(--top) + 16px)}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;background:var(--white);color:var(--ink);font-family:var(--sans);font-stretch:100%;font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img,video,canvas{display:block;max-width:100%}
a{color:inherit}
h1,h2,h3,h4,p,dl,dd,ul,ol,figure{margin:0}
ul,ol{padding:0;list-style:none}
:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:6px}
.w{max-width:var(--wrap);margin-inline:auto;padding-left:max(var(--gut),env(safe-area-inset-left,0px));padding-right:max(var(--gut),env(safe-area-inset-right,0px));box-sizing:content-box}
h1,h2,h3,h4{font-family:var(--hd);font-weight:var(--hd-w);font-stretch:var(--hd-st);letter-spacing:var(--hd-ls);text-wrap:balance}
h2,.h2{font-family:var(--hd);font-weight:var(--hd-w);font-stretch:var(--hd-st);font-size:calc(clamp(28px,3.1vw,40px) * var(--hd-k));line-height:1.14;letter-spacing:var(--hd-ls);text-wrap:balance}
.eyebrow{font-size:15px;line-height:1.3;font-weight:500;color:var(--grey);margin-bottom:10px}
.lede{color:var(--grey);max-width:34em}
.btn{display:inline-flex;align-items:center;justify-content:center;height:44px;padding:0 28px;border-radius:999px;border:1px solid transparent;background:var(--blue);color:#fff;font:600 15px/1 var(--sans);text-decoration:none;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.btn:hover{background:var(--blue-d)}
.btn.dark{background:var(--ink)}
.btn.dark:hover{background:#2A2E36}
.btn.light{background:#fff;color:var(--ink)}
.btn.light:hover{background:#EEF2FF}
.btn.line{background:none;color:var(--ink);border-color:var(--ink)}
.btn.line:hover{background:var(--ink);color:#fff}
.btn.sm{height:38px;padding:0 20px;font-size:14px}
.tlink{display:inline-flex;align-items:center;min-height:44px;font-size:16px;text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.tlink:hover{text-decoration-thickness:2px}

/* ---- bar ---- */
.hdr{position:sticky;top:0;z-index:30;padding-top:var(--top);background:rgba(255,255,255,.9);backdrop-filter:saturate(180%) blur(18px);-webkit-backdrop-filter:saturate(180%) blur(18px);border-bottom:1px solid var(--line)}
.hdr-in{display:flex;align-items:center;min-height:var(--nav);gap:16px}
.logo{display:flex;align-items:center;min-height:44px}
.logo img{height:22px;width:auto}
.menu{display:flex;align-items:center;gap:clamp(18px,2.4vw,32px);margin-left:clamp(20px,3.4vw,48px);font-size:15px;font-weight:500}
.menu a{text-decoration:none;color:var(--ink);min-height:44px;display:inline-flex;align-items:center}
.menu a:hover{color:var(--grey)}
.hdr-r{margin-left:auto;display:flex;align-items:center;gap:8px}
.burger{display:none;width:44px;height:44px;margin-right:-10px;padding:0;border:0;background:none;color:var(--ink);cursor:pointer;align-items:center;justify-content:center}
.hdr.open .i-menu,.hdr:not(.open) .i-close{display:none}
@media (max-width:859px){
  .burger{display:flex}
  .menu{display:none;position:absolute;left:0;right:0;top:100%;margin:0;flex-direction:column;align-items:stretch;gap:0;padding:6px max(var(--gut),env(safe-area-inset-right,0px)) 18px max(var(--gut),env(safe-area-inset-left,0px));background:#fff;border-bottom:1px solid var(--line);font-size:18px}
  .menu a{padding:12px 0;border-top:1px solid var(--line)}
  .menu a:first-child{border-top:0}
  .hdr.open .menu{display:flex}
}

/* current page in the bar */
.menu a[aria-current="page"]{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:7px}
.menu a[aria-current="page"]:hover{color:var(--ink)}

[hidden]{display:none!important}
.grey{color:var(--grey)}
.acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px}

/* ---- hero: page title and lead on the left, the contact form in a card on the right ---- */
.hero{background:var(--mist);padding:clamp(40px,5vw,72px) 0 clamp(44px,5.4vw,80px)}
.hero-in{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:clamp(28px,5vw,80px);align-items:center}
.hero h1{font-size:clamp(31px,4.7vw,66px);line-height:1.03;letter-spacing:-.045em}
.hero .lede{margin-top:clamp(14px,1.6vw,22px);max-width:26em;font-size:clamp(17px,1.35vw,19px);line-height:1.5}
.fcard{padding:clamp(22px,2.8vw,40px);border:1px solid var(--edge);border-radius:var(--r);background:#fff}
.fcard h2{font-size:calc(clamp(24px,2.3vw,30px) * var(--hd-k));line-height:1.12;outline:none}
.f-body{display:grid;gap:16px}
.f-body h2{margin-bottom:4px}
.frow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.fld{display:flex;flex-direction:column;gap:6px;min-width:0}
.fld label{font-size:15px;line-height:1.3;font-weight:500;color:var(--grey)}
.fld input,.fld textarea{display:block;width:100%;min-height:52px;margin:0;padding:13px 16px;border:1px solid transparent;border-radius:12px;background:var(--mist);color:var(--ink);font:inherit;line-height:1.4;-webkit-appearance:none;appearance:none;transition:border-color .2s,background .2s,box-shadow .2s}
.fld textarea{min-height:124px;resize:vertical}
.fld input:hover,.fld textarea:hover{border-color:var(--edge)}
.fld input:focus,.fld textarea:focus{outline:none;border-color:var(--blue);background:#fff;box-shadow:0 0 0 3px rgba(9,77,255,.16)}
.fld [aria-invalid="true"]{border-color:var(--bad);background:#fff}
.f-msg{font-size:14px;line-height:1.35;color:var(--bad)}
.f-end{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;margin-top:4px}
.f-end .btn,.f-done .btn{height:48px;font-size:16px}
.f-end .btn{min-width:148px}
.f-note{font-size:15px;line-height:1.4;color:var(--grey)}
.f-done{display:grid;gap:14px}
.f-done p{color:var(--text)}
.f-done .f-note{color:var(--grey)}
.f-done .acts{margin-top:6px}
.f-done button.tlink{padding:0;border:0;background:none;color:inherit;font:inherit;font-size:16px;cursor:pointer}
.f-done textarea{width:100%;min-height:150px;padding:13px 16px;border:1px solid var(--edge);border-radius:12px;background:var(--mist);color:var(--ink);font:inherit;font-size:16px;line-height:1.45;resize:vertical}
.sel{user-select:all;-webkit-user-select:all;font-weight:500;color:var(--ink)}
@media (max-width:859px){.hero-in{grid-template-columns:minmax(0,1fr)}}
@media (max-width:519px){.frow{grid-template-columns:minmax(0,1fr)}}

/* ---- people: three bordered cards, text above, the portrait standing on the bottom edge ---- */
.team{padding:clamp(48px,6vw,88px) 0 clamp(56px,7vw,104px)}
.people{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2.2vw,32px);margin-top:clamp(24px,3vw,40px)}
.person{display:flex;flex-direction:column;overflow:hidden;isolation:isolate;border:1px solid var(--edge);border-radius:var(--r);background:linear-gradient(180deg,#FFFFFF 0,#F6F8FB 44%,#E8EDF4 100%);text-align:center}
.p-text{display:flex;flex-direction:column;align-items:center;padding:clamp(26px,2.8vw,40px) clamp(18px,2vw,28px) clamp(10px,1.2vw,18px)}
.person .eyebrow{margin-bottom:6px}
.person h3{font-size:calc(clamp(24px,2.3vw,30px) * var(--hd-k));line-height:1.12}
.what{margin-top:12px;max-width:24em;font-size:16px;line-height:1.5;color:var(--text)}
.p-acts{display:flex;flex-direction:column;align-items:center;gap:2px;margin-top:clamp(18px,2vw,24px)}
.p-acts .btn{height:48px;font-size:16px;white-space:nowrap}
.p-acts .tlink{overflow-wrap:anywhere}
.p-photo{width:100%;height:auto;aspect-ratio:1 / .9;object-fit:cover;object-position:50% 0;margin-top:auto;mix-blend-mode:multiply}
@media (max-width:999px){.people{grid-template-columns:minmax(0,1fr)}}
@media (min-width:600px) and (max-width:999px){
  .person{flex-direction:row;text-align:left}
  .p-text{flex:1 1 0;min-width:0;align-items:flex-start;justify-content:center;padding:28px 8px 28px clamp(24px,4vw,36px)}
  .p-acts{align-items:flex-start}
  .p-photo{flex:0 0 clamp(220px,38vw,320px);width:clamp(220px,38vw,320px);height:auto;aspect-ratio:1;margin-top:0;align-self:flex-end}
}

/* ---- address: text beside a line map of the streets around the office ---- */
.where{padding:clamp(8px,2vw,32px) 0 clamp(64px,8vw,120px)}
.where-in{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:clamp(28px,5vw,80px);align-items:center}
.where h2 span{display:block}
.where .acts{margin-top:clamp(20px,2.2vw,28px)}
.co{margin-top:clamp(28px,3.4vw,44px);padding-top:clamp(20px,2.4vw,28px);border-top:1px solid var(--line)}
.co .eyebrow{margin-bottom:6px}
.co p:not(.eyebrow){font-size:16px;line-height:1.5;color:var(--text)}
.map{position:relative;overflow:hidden;border:1px solid var(--edge);border-radius:var(--r);background:var(--mist);aspect-ratio:7 / 6}
.map-a{display:block;width:100%;height:100%}
.map img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.map-a:hover img{transform:scale(1.015)}
.st{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%) rotate(var(--a));font-size:14px;line-height:1;font-weight:500;color:var(--grey);white-space:nowrap;pointer-events:none;text-shadow:0 0 4px var(--mist),0 0 4px var(--mist),0 0 4px var(--mist)}
.pin{position:absolute;left:47%;top:50%;pointer-events:none}
.pin i{position:absolute;left:-9px;top:-9px;width:18px;height:18px;border-radius:50%;background:var(--blue);box-shadow:0 0 0 4px #fff,0 0 0 13px rgba(9,77,255,.14)}
.pin b{position:absolute;left:0;bottom:24px;transform:translateX(-50%);padding:8px 14px;border-radius:999px;border:1px solid var(--edge);background:#fff;box-shadow:0 6px 18px rgba(15,17,21,.08);font-size:15px;line-height:1.2;font-weight:600;white-space:nowrap}
.osm{position:absolute;right:8px;bottom:8px;padding:3px 9px;border-radius:999px;background:rgba(255,255,255,.88);font-size:14px;line-height:1.4;color:var(--grey);text-decoration:none}
.osm:hover{color:var(--ink);text-decoration:underline}
@media (max-width:859px){.where-in{grid-template-columns:minmax(0,1fr)}}
@media (max-width:599px){.st-far{display:none}}

/* ---- footer: black, contact, pages and company links, giant wordmark (rules as on the home page) ---- */
.ftr{background:#0B0C0E;color:#fff;overflow:hidden;font-size:15px;line-height:1.55}
.ftr a{color:#fff;text-decoration:none}
.ftr a:hover{text-decoration:underline;text-underline-offset:3px}
.ftr-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.34fr) minmax(0,.34fr);gap:36px clamp(24px,4vw,56px);padding:clamp(44px,5vw,72px) 0 clamp(28px,3vw,44px)}
.ftr h4{margin:0 0 12px;font-size:14px;letter-spacing:-.01em;color:rgba(255,255,255,.6)}
.ftr .big a,.ftr .big span{display:block;font-size:clamp(19px,1.7vw,24px);line-height:1.3;letter-spacing:-.02em}
.ftr .big .gap{margin-top:12px}
.ftr .col a{display:block;padding:3px 0}
.legal{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 28px;padding:16px 0 0;border-top:1px solid rgba(255,255,255,.16);color:rgba(255,255,255,.66);font-size:14px}
.legal nav{display:flex;flex-wrap:wrap;gap:4px 22px}
.wm{display:block;width:100%;aspect-ratio:480/113;margin:clamp(28px,4vw,56px) 0 calc(-1 * clamp(18px,3.4vw,48px));background:#fff;opacity:.4;-webkit-mask:url(assets/wordmark.svg) center/contain no-repeat;mask:url(assets/wordmark.svg) center/contain no-repeat}
@media (max-width:719px){.ftr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ftr .big{grid-column:1 / -1}}
@media (prefers-reduced-motion:reduce){.btn,.map img,.fld input,.fld textarea{transition:none}.map-a:hover img{transform:none}}

/* ---- entrance: the first screen eases in on load, the rest as it scrolls into view. Only with script and
   only when motion is welcome; without either, everything is simply there. `.rv` is put on by the script and
   taken off again once an element has arrived, so it never fights an element's own hover or state styles ---- */
@media (prefers-reduced-motion:no-preference){
  @keyframes rise{from{opacity:0;transform:translate3d(0,34px,0)}to{opacity:1;transform:none}}
  @keyframes drop{from{opacity:0;transform:translate3d(0,-12px,0)}to{opacity:1;transform:none}}
  .js .hdr{animation:drop .9s cubic-bezier(.16,1,.3,1) both}
  .js .hero .eyebrow{animation:rise 1.1s cubic-bezier(.16,1,.3,1) .1s both}
  .js .hero h1{animation:rise 1.2s cubic-bezier(.16,1,.3,1) .2s both}
  .js .hero .lede{animation:rise 1.2s cubic-bezier(.16,1,.3,1) .34s both}
  /* the form card comes a beat later; the animation is on the card, so its own states (errors, the
     "Viesti on valmis" panel) change inside it without replaying anything */
  .js .fcard{animation:rise 1.2s cubic-bezier(.16,1,.3,1) .46s both}
  /* the waiting state has no transition of its own, so an element is never seen fading out first */
  .rv{opacity:0;transform:translate3d(0,30px,0);will-change:opacity,transform}
  .rv.rv-s{transform:translate3d(0,24px,0) scale(.97)}
  .rv.in{opacity:1;transform:none;transition:opacity .9s cubic-bezier(.2,.6,.2,1),transform 1.15s cubic-bezier(.16,1,.3,1);transition-delay:calc(var(--i,0) * 85ms)}
  /* for an element whose own opacity is not 1: it only slides */
  .rv-t{transform:translate3d(0,40px,0);will-change:transform}
  .rv-t.in{transform:none;transition:transform 1.3s cubic-bezier(.16,1,.3,1)}
}

/* ---- wide screens: the column and the type grow in three steps, as on the home page (1680, 1920, 2400).
   The first lines of each step are the home page's own; the rest scales this page's parts to match. ---- */
@media (min-width:1680px){
  :root{--wrap:1320px;--hd-k:1}
  body{font-size:18px}
  .eyebrow{font-size:16px}
  .hero h1{font-size:74px}
  .hero .lede{font-size:20px}
  .fld label,.f-note{font-size:16px}
  .f-msg{font-size:15px}
  .what,.co p:not(.eyebrow){font-size:17px}
  .st,.osm{font-size:15px}
  .pin b{font-size:16px}
}
@media (min-width:1920px){
  :root{--wrap:1440px;--hd-k:1.06}
  .hero h1{font-size:82px}
  .hero .lede{font-size:21px}
  .hero{padding:80px 0 88px}
  .fcard{padding:44px}
  .p-text{padding:44px 32px 20px}
  .people{gap:36px}
  .what,.co p:not(.eyebrow){font-size:18px}
  .p-acts .btn,.f-end .btn,.f-done .btn{height:50px;font-size:17px}
}
@media (min-width:2400px){
  :root{--wrap:1680px;--hd-k:1.22;--nav:76px}
  body{font-size:20px}
  .eyebrow{font-size:18px}
  .logo img{height:27px}
  .menu{font-size:17px}
  .btn{height:52px;padding:0 34px;font-size:17px}
  .btn.sm{height:44px;padding:0 24px;font-size:16px}
  .tlink{font-size:18px}
  .hero h1{font-size:98px}
  .hero .lede{font-size:24px}
  .hero{padding:96px 0 104px}
  .hero-in{gap:112px}
  .fcard{padding:52px}
  .f-body{gap:20px}
  .frow{gap:20px}
  .fld{gap:8px}
  .fld label,.f-note{font-size:18px}
  .f-msg{font-size:16px}
  .fld input,.fld textarea{min-height:60px;padding:16px 20px;border-radius:14px}
  .fld textarea{min-height:150px}
  .f-done button.tlink,.f-done textarea{font-size:18px}
  .p-acts .btn,.f-end .btn,.f-done .btn{height:56px;padding:0 36px;font-size:18px}
  .team{padding:112px 0 128px}
  .people{gap:40px;margin-top:48px}
  .p-text{padding:52px 40px 24px}
  .person .eyebrow,.co .eyebrow{margin-bottom:8px}
  .what{margin-top:14px}
  .what,.co p:not(.eyebrow){font-size:20px}
  .where{padding:40px 0 144px}
  .where-in{gap:112px}
  .st,.osm{font-size:17px}
  .pin i{left:-11px;top:-11px;width:22px;height:22px;box-shadow:0 0 0 5px #fff,0 0 0 16px rgba(9,77,255,.14)}
  .pin b{bottom:30px;padding:10px 18px;font-size:18px}
  .ftr{font-size:17px}
  .ftr h4,.legal{font-size:16px}
  .ftr .big a,.ftr .big span{font-size:28px}
}


/* ---- page changes: the bar stays, the old page lifts away, the new one rises in (see nav.js) ---- */
@view-transition{navigation:auto}
.hdr{view-transition-name:hdr}
@media (prefers-reduced-motion:no-preference){
  @keyframes pg-out{to{opacity:0;transform:translate3d(0,-12px,0)}}
  @keyframes pg-in{from{opacity:0;transform:translate3d(0,26px,0)}}
  ::view-transition-old(root){animation:pg-out .26s cubic-bezier(.4,0,1,1) both}
  ::view-transition-new(root){animation:pg-in .6s cubic-bezier(.16,1,.3,1) both}
  /* reached from another page of the site: the bar is already there and does not drop in again */
  .nav .hdr{animation:none}
  /* browsers without page transitions of their own: nav.js lifts the old page away, the new one rises in as a whole */
  .leaving body > :not(.hdr){opacity:0;transform:translate3d(0,-12px,0);transition:opacity .2s cubic-bezier(.4,0,1,1),transform .2s cubic-bezier(.4,0,1,1)}
  .nav.no-vt body > :not(.hdr){animation:pg-in .6s cubic-bezier(.16,1,.3,1)}
}
@media (prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}
