/* ---------- Fonts: Inter Display Medium (self-hosted, SIL OFL) ---------- */
@font-face{font-family:"Inter Display";src:url(/assets/fonts/inter-display-500-cyrillic-ext.woff2) format("woff2");font-display:swap;font-style:normal;font-weight:500;unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Inter Display";src:url(/assets/fonts/inter-display-500-cyrillic.woff2) format("woff2");font-display:swap;font-style:normal;font-weight:500;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Inter Display";src:url(/assets/fonts/inter-display-500-greek-ext.woff2) format("woff2");font-display:swap;font-style:normal;font-weight:500;unicode-range:U+1F00-1FFF}
@font-face{font-family:"Inter Display";src:url(/assets/fonts/inter-display-500-greek.woff2) format("woff2");font-display:swap;font-style:normal;font-weight:500;unicode-range:U+0370-03FF}
@font-face{font-family:"Inter Display";src:url(/assets/fonts/inter-display-500-latin-ext.woff2) format("woff2");font-display:swap;font-style:normal;font-weight:500;unicode-range:U+0100-024F,U+0259,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Inter Display";src:url(/assets/fonts/inter-display-500-latin.woff2) format("woff2");font-display:swap;font-style:normal;font-weight:500;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Inter Display";src:url(/assets/fonts/inter-display-500-vietnamese.woff2) format("woff2");font-display:swap;font-style:normal;font-weight:500;unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+1EA0-1EF9,U+20AB}
/* Metric-matched fallback to avoid layout shift while the font loads */
@font-face{font-family:"Inter Display Placeholder";src:local("Arial");ascent-override:98.56%;descent-override:24.54%;line-gap-override:0%;size-adjust:98.29%}

/* ---------- Base ---------- */
:root{
  --text: #999999;
  --text-hover: rgba(153,153,153,.56);
  --bg: #ffffff;
  --vh: 1vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:var(--bg);font-size:12px;font-family:sans-serif}
p{margin:0}

/* ---------- Layout ---------- */
.page{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  min-height:100vh;
  background:var(--bg);
  overflow:hidden;
}

.header{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:120px;
  width:100%;
  height:100vh;
  height:calc(var(--vh) * 100);
  padding:40px;
}

.info{
  position:relative;
  display:flex;
  flex:1 0 0px;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:40px;
  width:1px;
  overflow:hidden;
}

.col{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:4px;
}
.col--name{flex:none;width:min-content;gap:3px;overflow:visible}

.info__rest{
  position:relative;
  display:flex;
  flex:1 0 0px;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:1px;
  overflow:hidden;
}
.col--contact{flex:1 0 0px;width:1px;overflow:hidden}
.col--social{flex:none;width:min-content;overflow:hidden}

/* ---------- Typography ---------- */
.text{
  position:relative;
  z-index:1;
  white-space:pre;
  font-family:"Inter Display","Inter Display Placeholder",sans-serif;
  font-size:12px;
  font-weight:500;
  letter-spacing:.03em;
  line-height:1.2;
  color:var(--text);
}
.text--features{
  font-feature-settings:"blwf" on,"cv09" on,"cv03" on,"cv04" on,"cv11" on;
}

.link{
  color:var(--text);
  text-decoration:none;
  font:inherit;
  transition:color .4s cubic-bezier(.44,0,.56,1) 0s;
}
.link:hover{
  color:var(--text-hover);
  text-decoration:underline;
}

/* ---------- Slideshow ---------- */
.slideshow-wrap{
  position:absolute;
  left:calc(50% - 300px);
  top:calc(48.875% - 207px);
  width:600px;
  height:414px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  overflow:hidden;
}
.slideshow{
  position:relative;
  z-index:-1;
  flex:none;
  width:100%;
  height:413px;
  overflow:hidden;
  user-select:none;
  -webkit-user-select:none;
}
.slide{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  visibility:hidden;
  -webkit-user-drag:none;
}
.slide.is-active{visibility:visible}

/* ---------- Tablet: 810–1439px (same layout as desktop) ---------- */

/* ---------- Phone: <= 809px ---------- */
@media (max-width: 809px){
  .page{justify-content:flex-start}

  .header{
    flex-direction:column;
    justify-content:space-between;
    gap:0;
    padding:24px;
  }

  .info{
    flex:none;
    flex-direction:column;
    justify-content:center;
    gap:24px;
    width:100%;
    order:1;
  }
  .col--name{width:100%}

  .info__rest{
    flex:none;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:24px;
    width:100%;
  }
  .col--contact{flex:none;width:min-content}

  .slideshow-wrap{
    position:relative;
    left:auto;
    top:auto;
    order:0;
    flex:1 0 0px;
    flex-direction:row;
    width:100%;
    height:1px;
  }
  .slideshow{
    flex:1 0 0px;
    width:1px;
    height:auto;
    aspect-ratio:1.4527845036319613 / 1;
  }
}
