/* trichkov.com — personal page
   Palette follows dtvsol.com/css/modern.css so the two sites read as one family. */

:root {
  --bg: #0a0e1a;
  --surface: #131826;
  --surface-2: #1a2236;
  --border: #2a3450;
  --primary: #00d4ff;
  --accent: #ff6b35;
    --text: #e8ecf3;
  --muted: #8892a8;
  --faint: #5b657d;

  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: clamp(20px, 5vw, 96px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: #fff; }
::selection { background: var(--primary); color: var(--bg); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; background: var(--primary); color: var(--bg);
  border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 16px; }

/* ---------- top bar (sits over the hero only) ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px var(--gutter);
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
}
.top__brand { color: #fff; font-weight: 500; }
.top__brand span { color: rgba(255,255,255,.45); }
.top__nav { display: flex; gap: 28px; }
.top__nav a { color: rgba(255,255,255,.75); }
.top__nav a:hover { color: #fff; }

/* ---------- language switcher: three cats\' eyes in the dark ----------
   Each language has its own cat in the hero. Its eyes are the switch: the
   awake pair is the page you are reading, the other two doze half-shut
   and open when you hover. Colours are sampled from the three photos. ---------- */
.lang {
  position: absolute; z-index: 6; left: 50%; top: 5px;
  transform: translateX(-50%);
  display: flex; gap: 6px;
}
.lang__cat {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 112px; min-height: 44px; padding: 4px 6px;
  color: var(--faint); font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none;
}
.lang__eyes { display: block; overflow: visible; }
/* dozing: upper lids down, dim */
.lang__cat .lang__eyes { opacity: .7; }
.lang__cat .eye__doze { opacity: .94; }
.lang__cat .eye__spark { opacity: 0; }
/* awake */
.lang__cat.is-active .lang__eyes,
.lang__cat:hover .lang__eyes,
.lang__cat:focus-visible .lang__eyes {
  opacity: 1;
  filter: drop-shadow(0 0 4px var(--eye)) drop-shadow(0 0 14px color-mix(in srgb, var(--eye) 60%, transparent));
}
.lang__cat.is-active .eye__doze, .lang__cat:hover .eye__doze, .lang__cat:focus-visible .eye__doze { opacity: 0; }
.lang__cat.is-active .eye__spark, .lang__cat:hover .eye__spark, .lang__cat:focus-visible .eye__spark { opacity: 1; }
.lang__cat.is-active { color: #fff; }
.lang__cat:hover, .lang__cat:focus-visible { color: var(--text); }
.lang__cat:focus-visible { outline: 1px solid var(--primary); outline-offset: 4px; border-radius: 6px; }
@media (max-width: 860px) {
  .top__nav { gap: 18px; }
  .lang { top: 5px; gap: 0; }
  .lang__cat { min-width: 100px; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--bg);
}
.hero__media { position: absolute; inset: 0; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 40%;
  background-size: cover; background-position: 50% 40%;
  display: block;
}
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(10, 14, 26, .94) 0%, rgba(10, 14, 26, .5) 28%, rgba(10, 14, 26, 0) 55%),
    linear-gradient(to bottom, rgba(10, 14, 26, .45) 0%, rgba(10, 14, 26, 0) 18%);
}

.hero__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.hero__copy, .hero__roles { position: absolute; }
.hero__copy { left: var(--gutter); bottom: clamp(56px, 9vh, 120px); }
.hero__name {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(56px, 8.4vw, 148px);
  line-height: .92;
  letter-spacing: -.035em;
  font-variation-settings: 'opsz' 96;
  color: #fff;
}
.hero__name > span { display: block; }
.hero__alt {
  margin: 18px 0 0 4px;
  font-family: var(--mono); font-size: 14px; letter-spacing: .08em;
  color: var(--muted);
}

.hero__roles { right: var(--gutter); bottom: clamp(56px, 9vh, 120px); text-align: right; }
.hero__rolelist { display: flex; flex-direction: column; align-items: flex-end; }
.hero__role, .hero__field { margin: 0; }
.hero__role {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(18px, 1.7vw, 26px); line-height: 1.35;
  letter-spacing: -.01em; color: #fff;
}
.hero__field {
  margin-top: 14px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary);
}

@media (max-width: 860px) {
  .hero__text { display: flex; flex-direction: column; gap: 22px; padding: 0 var(--gutter) 48px; }
  .hero__copy, .hero__roles { position: static; text-align: left; }
  .hero__rolelist { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 14px; }
  .hero__role { font-size: 16px; }
  .hero__role::after { content: ' ·'; color: var(--faint); }
  .hero__role:last-child::after { content: none; }
  .hero__alt { margin-top: 10px; }
  .hero__field { margin-top: 8px; font-size: 12px; }
  .hero__scrim {
    background:
      linear-gradient(to top, rgba(10, 14, 26, .98) 0%, rgba(10, 14, 26, .82) 30%, rgba(10, 14, 26, .1) 58%, rgba(10, 14, 26, 0) 75%),
      linear-gradient(to bottom, rgba(10, 14, 26, .5) 0%, rgba(10, 14, 26, 0) 18%);
  }
  .hero__name { font-size: clamp(52px, 15vw, 92px); }
}
@media (max-width: 860px) and (min-aspect-ratio: 1/1) {
  .hero__text { padding-bottom: 28px; gap: 12px; }
}

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vh, 160px) var(--gutter); }
.section__head { margin-bottom: clamp(36px, 5vh, 64px); }
.eyebrow {
  display: block; margin-bottom: 18px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--primary);
}
.section__title {
  margin: 0;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -.025em;
  font-variation-settings: 'opsz' 72;
  color: #fff;
  text-wrap: balance;
}

/* ---------- about ---------- */
.about__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.about__lead {
  margin: 0;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(26px, 3vw, 44px); line-height: 1.18; letter-spacing: -.02em;
  font-variation-settings: 'opsz' 60;
  color: #fff;
  text-wrap: pretty;
}
.about__side p { margin: 0 0 28px; color: var(--muted); text-wrap: pretty; }
.about__side a { border-bottom: 1px solid rgba(0, 212, 255, .35); }
.facts { margin: 0; display: flex; flex-direction: column; }
.facts__row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--border);
}
.facts__row:last-child { border-bottom: 1px solid var(--border); }
.facts dt { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 0; color: var(--text); text-align: right; }
@media (max-width: 860px) { .about__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- services ---------- */
.services { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service {
  padding: 32px 28px 28px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.service__num {
  display: block; margin-bottom: 40px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--primary);
}
.service__title {
  margin: 0 0 14px;
  font-family: var(--display); font-weight: 600;
  font-size: 24px; line-height: 1.15; letter-spacing: -.02em; color: #fff;
}
.service p { margin: 0; color: var(--muted); font-size: 16px; text-wrap: pretty; }
.service__stack {
  margin-top: 24px !important;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--faint) !important;
}
@media (max-width: 960px) { .services__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- work ---------- */
.work__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  min-height: 280px; padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}
.card:hover { border-color: rgba(0, 212, 255, .4); color: var(--text); background: var(--surface-2); }
.card__kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 28px;
}
.card__title {
  margin: 0 0 12px;
  font-family: var(--display); font-weight: 600;
  font-size: 24px; line-height: 1.15; letter-spacing: -.02em; color: #fff;
}
.card__text { margin: 0 0 auto; color: var(--muted); font-size: 15.5px; text-wrap: pretty; }
.card__meta {
  display: flex; align-items: center; gap: 6px;
  margin-top: 28px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--faint);
}
a.card .card__meta { color: var(--primary); }
.card__arrow { width: 16px; height: 16px; }
@media (max-width: 1100px) { .work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .work__grid { grid-template-columns: minmax(0, 1fr); } .card { min-height: 0; } }

/* ---------- contact ---------- */
.contact { border-top: 1px solid var(--border); }
.contact__title {
  margin: 0 0 40px;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(32px, 5vw, 76px); line-height: 1.02; letter-spacing: -.03em;
  font-variation-settings: 'opsz' 96;
  color: #fff;
  text-wrap: balance;
}
.contact__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  border-radius: 999px;
  font-family: var(--mono); font-size: 14px; letter-spacing: .04em;
  border: 1px solid transparent;
}
.btn--primary { background: var(--primary); color: var(--bg); font-weight: 500; }
.btn--primary:hover { background: #fff; color: var(--bg); }

/* ---------- footer ---------- */
.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding: 28px var(--gutter) 36px;
  border-top: 1px solid var(--border);
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--faint);
}
.foot__top { color: var(--muted); }
.foot__top:hover { color: #fff; }
