/* Fonts are served from this site: no request to Google (GDPR). */
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/montserrat-cyrillic-wght-normal.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/montserrat-latin-wght-normal.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;
}

/* Tape design system tokens (the same as storytelling.pavlopoliakov.com) */
:root {
  --cream: #faf8f1;
  --white: #ffffff;
  --ink: #121212;
  --body: #2b2f36;
  --muted: #59606c;
  --line: #dde2ea;
  --tape: #ffd400;
  --tape-deep: #f6c700;
  --tape-tint: #fff3b0;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--cream); color: var(--body);
  font: 500 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
::selection { background: var(--tape); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.tape {
  background: linear-gradient(135deg, var(--tape) 0, var(--tape) 72%, var(--tape-deep) 100%);
  color: var(--ink); padding: .1em .34em; font-weight: 900; text-transform: uppercase; letter-spacing: .02em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone; box-shadow: 5px 5px 0 rgba(0,0,0,.12);
}

/* language switch */
.top { display: flex; justify-content: flex-end; padding-top: 20px; }
.lang { display: flex; gap: 8px; }
.lang a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 44px; padding: 0 14px;
  border: 2px solid var(--ink); border-radius: 10px; background: var(--white); color: var(--ink);
  font-weight: 800; font-size: 14px; letter-spacing: .06em; text-decoration: none;
}
.lang a:hover { background: var(--tape-tint); }
.lang a[aria-current] { background: var(--tape); box-shadow: 3px 3px 0 var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-block: clamp(24px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.hero h1 { margin: 0 0 22px; font-size: clamp(34px, 6vw, 64px); line-height: 1.45; font-weight: 900; }
.role { margin: 0 0 14px; font-size: clamp(18px, 1.8vw, 21px); font-weight: 800; color: var(--ink); }
.lead { margin: 0 0 22px; max-width: 34em; font-size: clamp(17px, 1.5vw, 19px); }
.facts { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 8px; }
.facts li { position: relative; padding-left: 26px; }
.facts li::before { content: ''; position: absolute; left: 0; top: .5em; width: 14px; height: 10px; background: var(--tape); box-shadow: 2px 2px 0 var(--ink); transform: rotate(-6deg); }
.facts strong { color: var(--ink); font-weight: 800; }

.social { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.social a {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px;
  background: var(--white); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px;
  font-weight: 800; font-size: 15px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease;
}
.social a:hover { background: var(--tape-tint); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.social a:active { transform: none; box-shadow: none; }
.social svg { width: 20px; height: 20px; flex: none; }

/* The photo is taped to the page. It starts as an 8-bit game sprite; hover (or a tap) loads it in three steps to the real photo. */
.photo { position: relative; justify-self: center; width: min(100%, 400px); margin: 0; }
.photo__print {
  position: relative; display: block; width: 100%; padding: 12px 12px 14px; margin: 0; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); border-radius: 0; box-shadow: 0 18px 40px -18px rgba(18,18,18,.35);
  transform: rotate(2deg); transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.photo__frame { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--line); }
.photo__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.px { image-rendering: pixelated; transition: opacity 0s linear; }
/* back to pixels: the fine step comes back first, the coarse one last */
.px--3 { transition-delay: 0s; }
.px--2 { transition-delay: .12s; }
.px--1 { transition-delay: .24s; }
.photo.is-sharp .px { opacity: 0; }
.photo.is-sharp .px--1 { transition-delay: 0s; }
.photo.is-sharp .px--2 { transition-delay: .12s; }
.photo.is-sharp .px--3 { transition-delay: .24s; }
.photo.is-sharp .photo__print { transform: rotate(.5deg); }
@media (hover: hover) {
  .photo:hover .px { opacity: 0; }
  .photo:hover .px--1 { transition-delay: 0s; }
  .photo:hover .px--2 { transition-delay: .12s; }
  .photo:hover .px--3 { transition-delay: .24s; }
  .photo:hover .photo__print { transform: rotate(.5deg); }
}
.photo__hint { margin: 16px 0 0; text-align: center; font: 600 12px/1.4 ui-monospace, 'SFMono-Regular', Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.photo__hint--touch { display: none; }
@media (hover: none) {
  .photo__hint--mouse { display: none; }
  .photo__hint--touch { display: inline; }
}

/* two strips of tape over the top corners, square to the corner, stuck down when the page opens */
.strip {
  position: absolute; top: -10px; width: 120px; height: 34px; z-index: 2; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,212,0,.9) 0, rgba(255,212,0,.9) 70%, rgba(246,199,0,.94) 100%);
  /* torn ends of real tape */
  clip-path: polygon(0 10%, 4% 0, 96% 0, 100% 14%, 96% 30%, 100% 48%, 96% 66%, 100% 84%, 96% 100%, 4% 100%, 0 86%, 4% 68%, 0 50%, 4% 32%);
  transform: rotate(var(--r));
  animation: stick .5s cubic-bezier(.25,1.35,.45,1) both;
}
.strip--l { left: -48px; --r: -45deg; animation-delay: .3s; }
.strip--r { right: -48px; --r: 45deg; animation-delay: .5s; }
@keyframes stick {
  from { opacity: 0; transform: rotate(var(--r)) translateY(-14px) scale(1.15); }
  to { opacity: 1; transform: rotate(var(--r)) translateY(0) scale(1); }
}

/* education */
.edu { padding-block: clamp(48px, 7vw, 88px); background: var(--white); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.edu__logo { width: min(100%, 380px); margin: 0 0 14px; }
.edu__lead { margin: 0 0 32px; max-width: 36em; }
.course {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: end;
  padding: clamp(22px, 3.5vw, 36px); background: var(--cream); border: 2px solid var(--ink); border-radius: 20px;
}
.course h3 { margin: 0 0 10px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; font-weight: 900; color: var(--ink); }
.course p { margin: 0 0 14px; max-width: 34em; }
.course__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.course__meta li { padding: 4px 12px; background: var(--white); border: 1.5px solid var(--ink); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 0 26px;
  background: var(--tape); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 4px 4px 0 var(--ink);
  font: 800 14px/1.2 var(--sans); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--tape-deep); transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }

footer { margin-top: auto; padding-block: 28px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 8px; }
  .photo { order: -1; width: min(74%, 320px); margin-top: 44px; }
  .strip { width: 92px; height: 28px; top: -6px; }
  .strip--l { left: -36px; }
  .strip--r { right: -36px; }
  .course { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .course .btn { justify-self: start; }
}
@media (max-width: 420px) {
  .social li { flex: 1 1 40%; }
  .social a { width: 100%; justify-content: center; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .strip { animation: none; }
  .photo__print, .social a, .btn, .px { transition: none; }
}
