/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/inter-7.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/inter-13.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/inter-10.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/inter-11.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/inter-9.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/inter-8.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;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/inter-12.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/inter-4.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/inter-0.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/inter-5.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/inter-2.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/inter-6.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/inter-3.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;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/fonts/inter-1.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-4.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-0.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-5.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-2.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-6.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-3.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;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/inter-1.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-4.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-0.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-5.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-2.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-6.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-3.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;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/inter-1.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;
}
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/inter-4.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/inter-0.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/inter-5.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/inter-2.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/inter-6.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/inter-3.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;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/inter-1.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{
    --bg:#F0F0F0;
    --fg:#1a1a1a;
    --muted:#646464;
    --soft:#3a3a3a;
    --accent:#805d3f;
    --line:rgba(0,0,0,.10);
    --maxw:720px;
  }
  *,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
  html{font-size:17px;-webkit-text-size-adjust:100%;scroll-behavior:smooth}
  body{
    background:var(--bg);
    color:var(--fg);
    font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    font-weight:400;
    line-height:1.6;
    letter-spacing:-.01em;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
    overflow-x:hidden;
  }
  ::selection{background:var(--accent);color:#fff}
  a{color:inherit;text-decoration:none}

  .wrap{max-width:var(--maxw);margin:0 auto;padding:0 28px}

  /* ---------- top bar ---------- */
  .topbar{
    position:absolute;top:0;left:0;right:0;
    display:flex;align-items:center;justify-content:space-between;
    padding:22px 28px;max-width:var(--maxw);margin:0 auto;
  }
  .mono{
    width:38px;height:38px;border-radius:11px;background:var(--accent);
    color:#fff;font-weight:700;font-size:15px;letter-spacing:0;
    display:grid;place-items:center;
  }
  .langtoggle{display:flex;gap:2px;font-size:13px;font-weight:500}
  .langtoggle button{
    background:none;border:0;cursor:pointer;color:var(--muted);
    font-family:inherit;font-size:13px;font-weight:500;padding:6px 9px;
    border-radius:8px;letter-spacing:.02em;transition:color .2s,background .2s;
  }
  .langtoggle button:hover{color:var(--fg)}
  .langtoggle button.active{color:#fff;background:var(--accent)}

  /* ---------- hero ---------- */
  .hero{padding:21vh 0 8vh}
  .hero h1{
    font-weight:700;line-height:1.03;letter-spacing:-.035em;
    font-size:clamp(2.9rem,11vw,5.1rem);
  }
  .hero .tagline{
    font-weight:300;color:var(--soft);
    font-size:clamp(1.08rem,2.6vw,1.4rem);
    line-height:1.5;max-width:31em;margin-top:1.5rem;
  }
  .contacts{display:flex;flex-wrap:wrap;gap:10px 26px;margin-top:2rem;font-size:.98rem}
  .contacts a{
    font-weight:500;display:inline-flex;align-items:center;gap:7px;
    border-bottom:1px solid var(--line);padding-bottom:2px;transition:color .2s,border-color .2s;
  }
  .contacts a:hover{color:var(--accent);border-color:var(--accent)}
  .contacts svg{width:16px;height:16px;flex:0 0 auto;opacity:.7}

  /* ---------- sections ---------- */
  section{padding:0 0 3.4rem}
  .label{
    font-size:.74rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;
    color:var(--accent);margin-bottom:2.2rem;
    display:flex;align-items:center;gap:12px;
  }
  .label::after{content:"";flex:1;height:1px;background:var(--line)}

  .job{padding:0 0 2.9rem}
  .job + .job{border-top:1px solid var(--line);padding-top:2.5rem}
  .job h2{
    font-weight:700;letter-spacing:-.025em;line-height:1.2;
    font-size:clamp(1.28rem,3.4vw,1.62rem);
  }
  .meta{
    margin-top:.55rem;font-size:.92rem;color:var(--muted);
    display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 12px;
  }
  .meta .org{color:var(--soft);font-weight:600}
  .meta .org a{border-bottom:1px solid transparent;transition:color .2s,border-color .2s}
  .meta .org a:hover{color:var(--accent);border-color:var(--accent)}
  .meta .role{color:var(--muted)}
  .meta .dot{color:var(--line)}
  ul.bullets{list-style:none;margin-top:1.25rem;display:flex;flex-direction:column;gap:.85rem}
  ul.bullets li{
    position:relative;padding-left:1.3rem;color:var(--soft);
    font-size:1.02rem;line-height:1.58;
  }
  ul.bullets li::before{
    content:"";position:absolute;left:0;top:.62em;
    width:6px;height:6px;border-radius:50%;background:var(--accent);
  }
  ul.bullets b{font-weight:700;color:var(--fg)}
  ul.bullets a{color:var(--accent);border-bottom:1px solid rgba(161,124,90,.45);transition:border-color .2s}
  ul.bullets a:hover{border-color:var(--accent)}

  /* screenshots gallery */
  .shots{
    display:flex;gap:14px;margin-top:1.7rem;overflow-x:auto;
    padding:4px 0 10px;-webkit-overflow-scrolling:touch;
    justify-content:flex-start;overscroll-behavior-x:contain;
  }
  .shots::-webkit-scrollbar{height:6px}
  .shots::-webkit-scrollbar-thumb{background:rgba(0,0,0,.14);border-radius:99px}
  .shots img{
    height:clamp(300px,46vw,396px);width:auto;flex:0 0 auto;
    border-radius:22px;border:1px solid var(--line);background:#fff;
    box-shadow:0 12px 34px rgba(0,0,0,.12);
  }
  /* логотип MadFox — прозрачный, без «карточки»: ни фона, ни рамки, ни тени */
  .shots img[src*="madfox-logo"]{
    height:clamp(220px,36vw,280px);padding:0;
    background:transparent;border:0;border-radius:0;box-shadow:none;
  }
  /* per-job links */
  .joblinks{display:flex;flex-wrap:wrap;gap:8px 22px;margin-top:1.4rem;font-size:.9rem;font-weight:500}
  .joblinks a{
    display:inline-flex;align-items:center;gap:6px;color:var(--accent);
    border-bottom:1px solid transparent;padding-bottom:2px;transition:border-color .2s;
  }
  .joblinks a:hover{border-color:var(--accent)}
  .joblinks svg{width:13px;height:13px}

  /* compact earlier roles */
  .mini{padding:1.4rem 0;border-top:1px solid var(--line)}
  .mini h3{font-weight:700;font-size:1.06rem;letter-spacing:-.02em}
  .mini .meta{margin-top:.3rem}
  .mini p{margin-top:.7rem;color:var(--soft);font-size:.98rem;line-height:1.55}
  .mini p b{font-weight:700;color:var(--fg)}

  /* about */
  .about dl{display:grid;grid-template-columns:auto 1fr;gap:1.1rem 1.8rem;font-size:.98rem}
  .about dt{font-weight:600;color:var(--muted);white-space:nowrap}
  .about dd{color:var(--soft)}
  .tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:1.8rem}
  .tags span{
    font-size:.82rem;font-weight:500;color:var(--soft);
    border:1px solid var(--line);border-radius:999px;padding:6px 14px;
  }

  /* footer / cta */
  .cta{padding:4.5rem 0 6rem;border-top:1px solid var(--line);margin-top:1.5rem}
  .cta h2{font-weight:700;letter-spacing:-.03em;font-size:clamp(1.8rem,6vw,2.8rem)}
  .cta .contacts{margin-top:1.8rem}
  .foot{font-size:.82rem;color:var(--muted);padding:0 0 3rem}

  /* reveal animation */
  .reveal{opacity:0;transform:translateY(18px);transition:opacity .7s ease,transform .7s ease}
  .reveal.in{opacity:1;transform:none}
  @media (prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none;transition:none}}

  @media (max-width:540px){
    html{font-size:16px}
    .wrap{padding:0 22px}
    .topbar{padding:18px 22px}
    .hero{padding:19vh 0 7vh}
  }

/* Keep all content readable when JavaScript or intersection observation is unavailable. */
.reveal{opacity:1;transform:none}
.cta .tagline{margin-top:1rem}
:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
