/* Victoria Bandorina — portfolio. One sheet, one ink, one cobalt. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-vietnamese.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;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("fonts/archivo-latin.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;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/golos-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --paper: #ffffff;
  --paper-2: #f6f7f8;
  --grid: #eef0f2;
  --ink: #14171c;
  --ink-2: #464d58;
  --ink-3: #646b77;
  --rule: #e4e6ea;
  --rule-2: #c9cdd3;
  --cobalt: #2f55e0;
  --cobalt-ink: #2443b8;
  --cobalt-soft: #edf1fd;
  --night: #14171c;
  --night-ink: #f3f4f6;
  --night-ink-2: #b6bcc6;
  --night-rule: #343a44;
  --cobalt-night: #9db1ff;

  --font: "Archivo", "Golos Text", "Helvetica Neue", Arial, sans-serif;
  --wide: 112;
  --gutter: clamp(16px, 4vw, 48px);
  --spine: 0px;
  --max: 1360px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem);
  --step-4: clamp(2.25rem, 1.3rem + 3.2vw, 4rem);
  --step-5: clamp(2rem, 0.85rem + 2.2vw, 2.875rem);
}

@media (min-width: 1100px) {
  :root { --spine: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  scrollbar-color: var(--rule-2) var(--paper);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  font-variant-numeric: tabular-nums;
  caret-color: var(--cobalt);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--cobalt); color: #fff; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--rule-2); border: 3px solid var(--paper); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

img { display: block; max-width: 100%; height: auto; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--rule-2);
  transition: text-decoration-color 160ms ease, color 160ms ease;
}
a:hover { text-decoration-color: var(--cobalt); color: var(--cobalt-ink); }

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ───────── Layout ───────── */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.block { position: relative; }
.block > .wrap {
  position: relative;
  padding-top: clamp(64px, 7vw, 112px);
  padding-bottom: clamp(48px, 5vw, 72px);
  padding-left: calc(var(--gutter) + var(--spine));
}

/* The spine: one continuous line down the drawing, a node per section. */
@media (min-width: 1100px) {
  .block > .wrap::before {
    content: "";
    position: absolute;
    left: calc(var(--gutter) + 20px);
    top: 0; bottom: 0;
    width: 1px;
    background: var(--rule);
  }
}

.mark {
  display: none;
}
@media (min-width: 1100px) {
  .mark {
    display: block;
    position: absolute;
    left: calc(var(--gutter) + 15px);
    width: 11px; height: 11px;
    border: 1px solid var(--ink);
    background: var(--paper);
    transform: translateY(0.55em);
    transition: background-color 300ms var(--ease-out), border-color 300ms var(--ease-out), transform 300ms var(--ease-out);
  }
  .block.is-visited .mark { background: var(--ink); }
  .block.is-current .mark {
    background: var(--cobalt); border-color: var(--cobalt);
    transform: translateY(0.55em) rotate(45deg);
  }
}

.section-head {
  position: relative;
  display: grid;
  gap: 20px;
  margin-bottom: clamp(40px, 5vw, 72px);
  max-width: 62rem;
}
.section-head h2 {
  font-size: var(--step-4);
  font-variation-settings: "wdth" var(--wide);
}
.section-head p {
  font-size: var(--step-1);
  color: var(--ink-2);
  max-width: 44rem;
}

/* Annotation label: the drawing's own lettering, used for fields, never above headings */
.label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-variation-settings: "wdth" 104;
  line-height: 1.3;
}

/* ───────── Buttons ───────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  font-variation-settings: "wdth" 106;
  letter-spacing: 0.005em;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { background: var(--ink); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn--primary:hover { background: var(--cobalt-ink); border-color: var(--cobalt-ink); color: #fff; }
.btn--quiet { border-color: transparent; padding-inline: 8px; }
.btn--quiet:hover { background: transparent; color: var(--cobalt-ink); border-color: transparent; text-decoration: underline; text-underline-offset: 0.22em; }

/* ───────── Header ───────── */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--rule);
}
@supports (backdrop-filter: blur(8px)) {
  .top { background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(1.4) blur(10px); }
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  line-height: 1.15;
}
.brand__node {
  width: 12px; height: 12px; flex: none;
  background: var(--cobalt);
  transform: rotate(45deg);
}
.brand strong {
  display: block;
  font-weight: 650;
  font-variation-settings: "wdth" 110;
  font-size: 1rem;
}
.brand span { display: block; font-size: 0.8125rem; color: var(--ink-3); }
.brand:hover { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__links { display: flex; gap: 2px; }
.nav__links a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 12px;
  font-size: 0.9375rem; font-weight: 500; white-space: nowrap;
  text-decoration: none; color: var(--ink-2);
  position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px;
  height: 1px; background: var(--cobalt);
  transform: scaleX(0); transform-origin: left;
  transition: transform 260ms var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a[aria-current="true"]::after { transform: scaleX(1); }
.nav__links a[aria-current="true"] { color: var(--ink); }
.nav__cta { display: flex; gap: 8px; margin-left: 12px; }
.nav__cta .btn { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; }
.icon-btn { width: 44px; padding: 0 !important; }

.menu-btn {
  display: none;
  align-items: center; gap: 10px;
  min-height: 44px; padding: 0 14px;
  font: inherit; font-weight: 600; font-size: 0.9375rem;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink);
  cursor: pointer;
}
.menu-btn svg { width: 16px; height: 16px; }

@media (max-width: 1199px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px;
  }
  .nav.is-open { display: flex; }
  .nav__links { flex-direction: column; }
  .nav__links a { min-height: 52px; font-size: 1.0625rem; border-bottom: 1px solid var(--rule); padding: 0; }
  .nav__links a::after { display: none; }
  .nav__cta { margin: 16px 0 0; }
  .nav__cta .btn { flex: 1; min-height: 52px; }
  .icon-btn { width: auto; flex: 0 0 52px !important; }
}

/* ───────── Hero ───────── */

.hero > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  padding-top: clamp(24px, 2.2vw, 32px);
  padding-bottom: clamp(28px, 3vw, 40px);
}
@media (min-width: 1000px) { .hero > .wrap { padding-bottom: 24px; } }
@media (min-width: 1000px) {
  .hero > .wrap {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(40px, 5vw, 88px);
    align-items: start;
  }
}
.hero__id { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.hero__id h1 {
  font-size: var(--step-2);
  font-variation-settings: "wdth" 118;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.hero__id p { font-size: var(--step-1); color: var(--ink-2); }
.hero__statement {
  font-size: var(--step-5);
  font-variation-settings: "wdth" 108;
  font-weight: 560;
  line-height: 1.06;
  letter-spacing: -0.028em;
  text-wrap: balance;
  max-width: 24ch;
}
.hero__support {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  max-width: 40rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.hero__actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ───────── Figures ───────── */

.fig figcaption {
  display: flex; gap: 12px; align-items: baseline;
  padding-top: 12px;
  font-size: 0.875rem;
  color: var(--ink-3);
  line-height: 1.45;
}
.fig figcaption b {
  font-weight: 600; color: var(--ink); white-space: nowrap;
  font-variation-settings: "wdth" 106;
}

.fig { margin: 0; }
.fig img { width: 100%; object-fit: cover; background: var(--paper-2); }

/* ───────── What I bring ───────── */

.parts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  border-top: 1px solid var(--rule);
}
.parts li {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1rem;
  line-height: 1.4;
}

/* Stage flow: Business need → My role → What I did → Scale → Result */

.did {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  column-gap: 32px;
}
.did li {
  position: relative;
  padding: 7px 0 7px 18px;
  border-bottom: 1px solid var(--rule);
  line-height: 1.4;
}
.did li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 1px; background: var(--ink-3); }

/* ───────── Architecture ───────── */

.arch-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
}
@media (min-width: 1000px) {
  .arch-wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 6vw, 96px); }
}
.arch {
  position: relative;
  padding: 0 56px 0 0;
  margin: 0;
}
.arch__stages { display: grid; gap: 0; }
.arch__stage {
  position: relative;
  padding-bottom: 34px;
}
.arch__stage:last-child { padding-bottom: 0; }
.arch__stage::after {
  content: "";
  position: absolute;
  left: 28px; bottom: 0;
  width: 1px; height: 34px;
  background: var(--ink);
  transform-origin: top;
}
.arch__stage:last-child::after { display: none; }
.arch__box {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 56px;
  padding: 12px 18px 12px 22px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-weight: 600;
  font-size: var(--step-1);
  font-variation-settings: "wdth" 106;
  line-height: 1.25;
}
.arch__box::before {
  content: ""; width: 9px; height: 9px; flex: none; background: var(--ink);
}
.arch__stage--start .arch__box::before { background: var(--cobalt); transform: rotate(45deg); }
.arch__arrow {
  position: absolute; left: 24px; bottom: -1px; width: 9px; height: 6px; color: var(--ink); z-index: 1;
}

/* the feedback loop: from the last stage back to the first */
.arch__loop {
  position: absolute;
  right: 0; top: 28px; bottom: 28px;
  width: 40px;
  border: 1px dashed var(--cobalt);
  border-left: 0;
}
.arch__loop svg {
  position: absolute; left: -6px; top: -5px; width: 9px; height: 9px; color: var(--cobalt);
}
.arch__loop span {
  position: absolute; right: 0; top: 50%;
  transform: translate(50%, -50%) rotate(90deg);
  white-space: nowrap;
  background: var(--paper);
  padding: 4px 10px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cobalt-ink);
}

.js .arch .arch__stage::after { transform: scaleY(0); transition: transform 420ms var(--ease-out); transition-delay: calc(var(--i) * 130ms); }
.js .arch .arch__arrow { opacity: 0; transition: opacity 200ms ease; transition-delay: calc(var(--i) * 130ms + 300ms); }
.js .arch .arch__loop { clip-path: inset(100% 0 0 0); transition: clip-path 900ms var(--ease-out) 1000ms; }
.js .arch.is-drawn .arch__stage::after { transform: scaleY(1); }
.js .arch.is-drawn .arch__arrow { opacity: 1; }
.js .arch.is-drawn .arch__loop { clip-path: inset(0 0 0 0); }

/* ───────── Contact: the title block ───────── */

.contact > .wrap { padding-bottom: clamp(32px, 4vw, 56px); }
.contact h2 {
  font-size: clamp(3rem, 1.6rem + 6vw, 6rem);
  font-variation-settings: "wdth" 118;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.titleblock {
  margin-top: clamp(48px, 6vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid var(--ink);
}
@media (min-width: 700px) { .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .titleblock { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.titleblock > div {
  display: grid; gap: 6px; align-content: start;
  padding: 16px 18px 18px;
  border-bottom: 1px solid var(--ink);
}
@media (min-width: 700px) {
  .titleblock > div:nth-child(odd) { border-right: 1px solid var(--ink); }
}
@media (min-width: 1100px) {
  .titleblock > div { border-right: 1px solid var(--ink); }
  .titleblock > div:nth-child(4n) { border-right: 0; }
  .titleblock > div:nth-last-child(-n+4) { border-bottom: 0; }
}
@media (min-width: 700px) and (max-width: 1099px) {
  .titleblock > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 699px) {
  .titleblock > div:last-child { border-bottom: 0; }
}
.titleblock a, .titleblock p {
  font-size: var(--step-1);
  font-weight: 600;
  font-variation-settings: "wdth" 104;
  text-decoration: none;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.titleblock a:hover { color: var(--cobalt-ink); text-decoration: underline; }
.titleblock .tb-name p { font-size: var(--step-2); font-variation-settings: "wdth" 114; }
.titleblock small { font-size: 0.9375rem; color: var(--ink-3); font-weight: 400; }
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 20px;
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* ───────── Card page ───────── */

.card-page {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--paper-2);
  display: grid;
  place-items: start center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
}
@media (min-width: 600px) { .card-page { place-items: center; padding: 48px 24px; } }
.vcard {
  width: 100%;
  max-width: 460px;
  background: var(--paper);
  border: 1px solid var(--ink);
}
.vcard__head {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 18px;
  align-items: end;
  padding: 18px;
  border-bottom: 1px solid var(--ink);
}
.vcard__head img { width: 104px; height: 104px; object-fit: cover; }
.vcard__head h1 { font-size: 1.625rem; font-variation-settings: "wdth" 114; line-height: 1.05; }
.vcard__head p { margin-top: 8px; color: var(--ink-2); font-size: 1rem; line-height: 1.35; }
.vcard__head p span { display: block; color: var(--ink-3); font-size: 0.9375rem; }
.vcard__save { padding: 18px; display: grid; gap: 10px; border-bottom: 1px solid var(--ink); }
.vcard__save .btn { width: 100%; min-height: 56px; font-size: 1.0625rem; }
.vcard__rows li { border-bottom: 1px solid var(--rule); }
.vcard__rows a {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 18px;
  text-decoration: none;
  transition: background-color 160ms ease;
}
.vcard__rows a:hover { background: var(--cobalt-soft); color: var(--ink); }
.vcard__rows svg { width: 20px; height: 20px; color: var(--ink); }
.vcard__rows .go { width: 16px; height: 16px; color: var(--ink-3); }
.vcard__rows b { display: block; font-weight: 600; font-size: 1.0625rem; line-height: 1.25; overflow-wrap: anywhere; }
.vcard__rows small { display: block; font-size: 0.875rem; color: var(--ink-3); }
.vcard__qr {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--ink);
}
.vcard__qr img { width: 132px; height: 132px; image-rendering: pixelated; }
.vcard__qr p { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.45; }
.vcard__qr p b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.vcard__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 14px 18px;
  font-size: 0.875rem; color: var(--ink-3);
}
.vcard__foot a { font-weight: 600; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; transition-delay: 0ms !important; animation: none !important; }
}

@media print {
  .top,
.hero__actions,
}

/* ───────── Distilled: target + values ───────── */

.hero__support { font-size: 1.125rem; color: var(--ink-2); max-width: 36rem; }

.values { border-top: 1px solid var(--ink); }
.value {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px 40px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 900px) {
  .value { grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 5fr); align-items: baseline; }
}
.value h3 { font-size: var(--step-2); font-variation-settings: "wdth" 108; }

.figpair { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 24px; }
@media (min-width: 900px) { .figpair { grid-template-columns: 1fr 1fr; } }
.figpair .fig img { aspect-ratio: 16 / 10; }

/* ───────── v3: language switch, hero photo, impact rows, solutions ───────── */

.langs { display: flex; gap: 2px; margin-left: auto; margin-right: 8px; }
.langs a, .tb-langs a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; padding: 0 6px;
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink-3); text-decoration: none;
  border: 1px solid transparent;
}
.langs a:hover, .tb-langs a:hover { color: var(--ink); border-color: var(--rule-2); }
.langs a[aria-current="true"], .tb-langs a[aria-current="true"] { color: var(--ink); border-color: var(--ink); }
.tb-langs { display: flex; gap: 6px; }
.tb-langs a { min-height: 36px; font-size: 0.9375rem; }
@media (min-width: 1200px) { .langs { order: 3; margin: 0 0 0 12px; } .nav { order: 2; margin-left: auto; } }
@media (max-width: 520px) { .brand span span { display: none; } .langs a { min-width: 36px; } }
@media (max-width: 420px) { .langs { margin-right: 4px; } .menu-btn { gap: 8px; padding: 0 10px; } }
@media (max-width: 399px) {
  .menu-btn { width: 44px; justify-content: center; padding: 0; }
  .menu-btn__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

.hero__photo { margin: 0; align-self: start; }
.hero__photo img { aspect-ratio: 4 / 5; max-height: 640px; object-position: 50% 20%; }
@media (max-width: 999px) { .hero__photo img { aspect-ratio: 4 / 3; max-height: none; object-position: 50% 25%; } }

/* ───────── v4 (spec 2026-10-07): intro, What I Do, How I Work, Selected Work, Work With Me ───────── */

@media (min-width: 900px) {
  .value { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr) !important; align-items: start; }
}
.value__body { display: grid; gap: 14px; }
.value__body .parts { border-top: 0; }

.principle-box {
  align-self: start;
  display: grid; gap: 12px;
  padding: 24px 24px 26px;
  border: 1px solid var(--ink);
  border-left: 1px solid var(--cobalt);
  background: var(--paper);
}
.principle-box h3 { font-size: var(--step-2); font-variation-settings: "wdth" 110; }
.principle-box p { font-size: var(--step-1); line-height: 1.45; }

.works { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.work {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 56px;
  padding: clamp(32px, 4vw, 48px) 0; border-bottom: 1px solid var(--rule);
}
@media (min-width: 1000px) { .work { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
.work__text { display: grid; gap: 22px; align-content: start; }
.work__text h3 { font-size: var(--step-3); font-variation-settings: "wdth" 108; max-width: 30ch; }
.work__part { display: grid; gap: 8px; }
.work__part > p { max-width: 44rem; }
.work__img { margin: 0; }
@media (min-width: 1000px) { .work__img { position: sticky; top: 96px; } }
.work__img img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 0; background: var(--paper-2);
}
@media (max-width: 999px) { .work__img { order: -1; } }
.dots { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: var(--step-1); font-weight: 600; font-variation-settings: "wdth" 106; line-height: 1.35; }
.dots span:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--ink-3); font-weight: 400; }
.work__note { color: var(--ink-2); max-width: 44rem; }

.wwm { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
@media (min-width: 900px) { .wwm { grid-template-columns: 1fr 1fr; } }
.wwm__part { display: grid; gap: 12px; align-content: start; padding: 24px; border: 1px solid var(--ink); }
.wwm__part h3 { font-size: var(--step-2); font-variation-settings: "wdth" 108; }
.wwm__what { font-size: var(--step-1); font-weight: 600; line-height: 1.4; }
.wwm__cap { color: var(--ink-3); }

.tb-small { font-size: 1rem !important; font-weight: 500 !important; }

/* ───────── v5: case galleries, Illusion Lab pictures, in-house emphasis ───────── */

.lab-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.lab-pics img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--paper); }

@media (min-width: 900px) { .wwm { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.wwm__part--main { border-color: var(--cobalt); background: var(--cobalt-soft); }
.wwm__part--main h3 { font-size: var(--step-3); }
.wwm__flag {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cobalt-ink);
}
.wwm__flag::before { content: ""; width: 8px; height: 8px; background: var(--cobalt); transform: rotate(45deg); }
.wwm__terms { display: flex; flex-wrap: wrap; gap: 8px; }
.wwm__terms li {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  background: var(--paper); border: 1px solid var(--ink);
  font-weight: 600; font-size: 1rem;
}

/* ───────── v6: cases as separate, compact cards ───────── */

.works { border-top: 0; gap: clamp(20px, 2.5vw, 32px); }
.work {
  gap: 24px 48px;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--ink);
  background: var(--paper);
}
@media (min-width: 1000px) {
  .work { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .work:nth-child(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .work:nth-child(even) .work__img { order: -1; }
  .work__img { position: static; }
}
.work__text { gap: 16px; }
.work__text h3 {
  font-size: var(--step-2);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.work__part { gap: 6px; }
.work__part > p { font-size: 1rem; }
.work .did {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  column-gap: 28px;
}
.work .did li {
  padding: 3px 0 3px 16px;
  border-bottom: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.work .did li::before { top: 0.95em; width: 7px; }
.work__result {
  margin-top: 4px;
  padding: 14px 16px;
  background: var(--paper-2);
}
.work .dots { font-size: 1.0625rem; }
.work__note { font-size: 0.9375rem; }

/* ───────── v7: cases carousel, no frames; IT slides uncropped ───────── */

.carousel__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(24px, 3vw, 40px);
}
.carousel__tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: -1px; }
.carousel__tabs::-webkit-scrollbar { display: none; }
.carousel__tab {
  flex: none;
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px;
  font-weight: 600; font-size: 0.9375rem; font-variation-settings: "wdth" 104;
  color: var(--ink-3); text-decoration: none;
  border-bottom: 2px solid transparent;
}
.carousel__tab:hover { color: var(--ink); }
.carousel__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--cobalt); }
.carousel__nav { display: flex; align-items: center; gap: 8px; margin-left: auto; padding-bottom: 8px; }
.carousel__count { font-size: 0.9375rem; color: var(--ink-3); margin-right: 6px; }
.carousel__count b { color: var(--ink); font-weight: 600; }
.carousel__btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
}
.carousel__btn svg { width: 18px; height: 18px; }
.carousel__btn[data-prev] svg { transform: rotate(180deg); }
.carousel__btn:hover { background: var(--ink); color: #fff; }
.carousel__btn:disabled { opacity: 0.3; cursor: default; background: var(--paper); color: var(--ink); }

.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  gap: 48px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
  align-items: start;
  border-top: 0;
}
.carousel__track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .carousel__track { scroll-behavior: auto; } }

.carousel__track > .work {
  scroll-snap-align: start;
  border: 0; padding: 0; background: none;
}
@media (min-width: 1000px) {
  .carousel__track > .work,
  .carousel__track > .work:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .carousel__track > .work:nth-child(even) .work__img { order: 0; }
}
.carousel__track .work__text h3 { font-size: var(--step-3); border-bottom: 0; padding-bottom: 0; }

/* ───────── v9: balanced layout — intro portrait, methods beside the scheme, case mosaics ───────── */

.how-side { display: grid; gap: 32px; align-content: start; }

.custom-band {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 56px; align-items: center;
  padding: clamp(20px, 3vw, 36px);
  background: var(--paper-2);
}
@media (min-width: 900px) { .custom-band { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.custom-band__text { display: grid; gap: 12px; align-content: start; }
.custom-band__text h3 { font-size: var(--step-3); font-variation-settings: "wdth" 108; }
.custom-band .lab-pics { margin-top: 0; gap: 12px; }

.mosaic { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; grid-auto-flow: dense; align-content: start; }
.mosaic__cell { position: relative; overflow: hidden; background: var(--paper-2); }
.mosaic__cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.mosaic__cell--wide { grid-column: span 2; }
.mosaic__cell--tall { grid-row: span 2; }
@media (min-width: 1000px) {
  .carousel__track > .work { align-items: start; }
}

@media (min-width: 1000px) {
  .carousel__track > .work,
  .carousel__track > .work:nth-child(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px 48px; }
}

/* v10: balanced intro — photo and text share one height; text fills the column */

/* v11: intro text only; portrait moves to contact */

.contact__head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 56px; align-items: end; }
@media (min-width: 900px) { .contact__head { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }

/* the decorative spine and section markers are leftovers: remove */
.block > .wrap::before { display: none !important; }
.mark { display: none !important; }
:root { --spine: 0px !important; }

/* one vertical rhythm for every section */
.block > .wrap {
  padding-top: clamp(56px, 6vw, 96px) !important;
  padding-bottom: 0 !important;
  padding-left: var(--gutter) !important;
}
main > .block:last-child > .wrap { padding-bottom: clamp(32px, 4vw, 48px) !important; }
.hero > .wrap { padding-top: clamp(28px, 3vw, 44px) !important; }
.section-head { margin-bottom: clamp(28px, 3vw, 40px) !important; gap: 14px; }

/* intro: no framing rules, just text in two columns */

/* lists: no per-item rules (they broke off at uneven lengths) */
.parts { border-top: 0 !important; }
.parts li { border-bottom: 0 !important; padding: 5px 16px 5px 0 !important; }
.value { padding: 22px 0 !important; }
.values { border-top: 1px solid var(--rule) !important; }
.value:last-child { border-bottom: 0 !important; }
.value__body { gap: 10px !important; }

/* photos after What I Bring sit closer to the list */
.figpair { margin-top: 24px !important; }

/* custom formats band: same gap as the rest */
.custom-band { margin-top: clamp(40px, 4vw, 56px) !important; }

/* carousel: tab bar is the only rule */
.carousel__bar { margin-bottom: 28px !important; }
.work .did li { padding: 2px 0 2px 16px !important; }

/* contact: tighter heading block */
.contact h2 { font-size: var(--step-4) !important; letter-spacing: -0.03em; }
.titleblock { margin-top: clamp(28px, 3vw, 40px) !important; }
.contact__head { align-items: start; }

/* v13: What I Bring — readable list: two newspaper columns, bullets, even rhythm */
@media (min-width: 900px) {
  .value { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr) !important; gap: 0 48px !important; }
}
.value h3 { font-size: var(--step-2); line-height: 1.2; }
.value__body .parts {
  display: block !important;
  columns: 2; column-gap: 40px;
}
@media (max-width: 699px) { .value__body .parts { columns: 1; } }
.value__body .parts li {
  break-inside: avoid;
  position: relative;
  padding: 0 0 10px 18px !important;
  font-size: 1rem; line-height: 1.45; color: var(--ink);
}
.value__body .parts li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; background: var(--ink-3); transform: rotate(45deg);
}

/* v14: press clipping in the CX case */
.mosaic__cell--press { display: block; border: 1px solid var(--rule-2); background: #fff; }
.mosaic__cell--press img { object-fit: cover; }
.mosaic__cell--press:hover { border-color: var(--cobalt); }
.work__press { display: inline-block; margin-top: 10px; font-size: 0.9375rem; font-weight: 600; color: var(--cobalt-ink); text-decoration: underline; text-underline-offset: 0.2em; }
.work__press:hover { color: var(--ink); }

/* ───────── v15 (brief 2026-10-09): hero facts, 8-stage process, case roles, facilitation ───────── */

/* hero: one line of key facts under the subheadline */
.hero__facts {
  margin-top: 18px;
  display: flex; flex-wrap: wrap; gap: 2px 0;
  max-width: 40rem;
  font-size: 0.9375rem; font-weight: 600; letter-spacing: 0.01em; line-height: 1.6;
  font-variation-settings: "wdth" 104;
  color: var(--ink);
}
.hero__facts span:not(:last-child)::after { content: "·"; margin: 0 10px; color: var(--ink-3); font-weight: 400; }

/* process: the intro sits beside the scheme, next to the right-sized principle */
.how-side { gap: 28px; }
.how-side__intro { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); }

/* cases: role line under the title */
.work__role {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  margin-top: -4px;
  font-size: 1rem; font-weight: 600; line-height: 1.4; color: var(--ink);
}

/* a case without photos: from → to, then the new capability profile */
.shift {
  display: grid; align-content: start;
  padding: clamp(20px, 2.5vw, 28px);
  background: var(--paper-2);
}
.shift__box {
  display: grid; gap: 6px;
  padding: 16px 20px 18px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-size: var(--step-2); font-weight: 600; font-variation-settings: "wdth" 106; line-height: 1.2;
}
.shift__box--from { position: relative; margin-bottom: 48px; border-style: dashed; color: var(--ink-2); }
.shift__box--from::after {
  content: ""; position: absolute; left: 28px; top: calc(100% + 1px);
  width: 1px; height: 47px; background: var(--ink);
}
.shift__arrow { display: block; position: relative; z-index: 1; width: 9px; height: 6px; margin: -6px 0 0 24px; color: var(--ink); }
.shift__box--to { border-color: var(--cobalt); background: var(--cobalt); color: #fff; }
.shift__box--to .label { color: #fff; opacity: 0.85; }
.shift__caps { display: grid; gap: 12px; margin-top: 32px; }
.shift__caps ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.shift__caps li {
  display: flex; align-items: center;
  min-height: 52px; padding: 8px 12px;
  background: var(--paper); border: 1px solid var(--cobalt);
  font-size: 1rem; font-weight: 600; line-height: 1.25;
}

/* Facilitation & Custom Learning Formats */
.facil { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 32px; }
@media (min-width: 700px) { .facil { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.facil__item { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 2px solid var(--ink); }
.facil__item h3 { font-size: var(--step-2); font-variation-settings: "wdth" 108; line-height: 1.2; }
.facil__item p { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 34rem; }
.custom-band.lab-band { margin-top: clamp(32px, 4vw, 48px) !important; }
.lab-band .custom-band__text { gap: 14px; }
.custom-band__text > p.lab-band__desc { font-size: var(--step-1); line-height: 1.5; color: var(--ink); }
.custom-band__text > p.lab-band__adapt { font-size: 1rem; line-height: 1.5; color: var(--ink-2); }

/* hero: the shorter statement sits centred against the portrait, no hole under the buttons */
@media (min-width: 1000px) { .hero > .wrap { align-items: center; } }

/* process: side column centred against the eight-stage scheme */
@media (min-width: 1000px) { .how-side { align-self: center; } }

/* feedback-loop label: the reveal clip must not crop the rotated label that sits on the line */
.js .arch .arch__loop { clip-path: inset(100% -40px 0 -12px); }
.js .arch.is-drawn .arch__loop { clip-path: inset(0 -40px 0 -12px); }

/* case without photos: the panel runs the full height of the case text */
@media (min-width: 1000px) { .carousel__track > .work > .shift { align-self: start; align-content: start; } }

/* v16: one opening block — the intro section is merged into the hero; residence/work permit under the actions */
.hero__loc { display: flex; align-items: flex-start; gap: 8px; margin-top: 20px; font-size: 1rem; line-height: 1.45; color: var(--ink-2); }
.hero__loc svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--cobalt); }

/* v17: full role title in the hero, emphasised */
.hero__id .hero__role { font-weight: 600; color: var(--cobalt-ink); font-variation-settings: "wdth" 106; }

/* v18: classic “&” — Archivo’s ampersand is the stylised “Et”; only U+0026 comes from the system sans */
@font-face { font-family: "Amp"; src: local("Helvetica Neue"), local("HelveticaNeue"), local("Arial"), local("ArialMT"), local("Roboto"), local("Roboto-Regular"); font-weight: 100 549; unicode-range: U+0026; }
@font-face { font-family: "Amp"; src: local("Helvetica Neue Bold"), local("HelveticaNeue-Bold"), local("Arial Bold"), local("Arial-BoldMT"), local("Roboto Bold"), local("Roboto-Bold"); font-weight: 550 900; unicode-range: U+0026; }
:root { --font: "Amp", "Archivo", "Golos Text", "Helvetica Neue", Arial, sans-serif; }

/* v18: cases read as a set of cards — numbered card tabs, next-case button, employer in the role line */
.carousel__bar { border-bottom: 0; align-items: center; }
.carousel__tabs {
  flex: 1 1 560px;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px;
  margin: 0; overflow: visible;
}
.carousel__tab {
  display: grid; align-content: start; gap: 4px;
  min-height: 76px; padding: 12px 14px 14px;
  border: 1px solid var(--rule-2); border-top-width: 3px;
  background: var(--paper); color: var(--ink-2);
  font-size: 0.9375rem; line-height: 1.3; white-space: normal;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.carousel__tab:hover { border-color: var(--ink); color: var(--ink); }
.carousel__tab[aria-selected="true"] { border-color: var(--cobalt); background: var(--cobalt-soft); color: var(--ink); }
.carousel__no { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: var(--ink-3); }
.carousel__tab[aria-selected="true"] .carousel__no { color: var(--cobalt-ink); }
.carousel__nav { padding-bottom: 0; }
@media (max-width: 899px) {
  .carousel__tabs {
    display: flex; flex-basis: 100%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter);
  }
  .carousel__tab { flex: 0 0 min(62%, 240px); scroll-snap-align: start; }
}

.work__org { font-weight: 500; color: var(--ink-2); }
.work__org::before { content: "·"; margin-right: 8px; color: var(--ink-3); }
.work__next { justify-self: start; margin-top: 4px; }
@media (max-width: 599px) { .work__org { flex-basis: 100%; } .work__org::before { display: none; } }

/* ───────── v19 (spec 2026-10-13): first-screen peek, business challenges, compact How I Work ───────── */

/* hero: the portrait leaves room for the next section to show; location sits under the portrait */
@media (min-width: 1000px) {
  .hero__photo img { max-height: min(600px, calc(100svh - 300px)); min-height: 380px; }
  .hero__statement { max-width: 26ch; }
}
@media (min-width: 1000px) and (max-height: 820px) {
  .hero > .wrap { padding-top: 24px !important; }
  .hero__statement { font-size: clamp(2rem, 1rem + 1.6vw, 2.5rem); }
  .hero__support { margin-top: 14px; }
  .hero__facts { margin-top: 12px; }
  .toc { margin-top: 18px; padding-top: 14px; }
  .hero__photo img { max-height: calc(100svh - 300px); min-height: 0; }
}
.block.ch-block > .wrap { padding-top: clamp(28px, 3vw, 40px) !important; }

/* hero: on-page contents, so the visitor sees there is more below */
.toc { display: grid; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--rule); }
.toc__links { display: flex; flex-wrap: wrap; gap: 8px; }
.toc__links a {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px;
  border: 1px solid var(--rule-2);
  font-size: 0.9375rem; font-weight: 600; color: var(--ink); text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}
.toc__links a::after { content: "↓"; color: var(--cobalt); font-weight: 500; }
.toc__links a:hover { border-color: var(--cobalt); color: var(--cobalt-ink); }

/* Business challenges: six problems in a 3 × 2 grid */
.ch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 32px; }
@media (min-width: 700px) { .ch { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ch { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ch__item {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px;
  padding: 20px 0 28px;
  border-top: 2px solid var(--ink);
}
.ch__no { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; color: var(--cobalt); }
.ch__item h3 { font-size: var(--step-1); font-weight: 650; font-variation-settings: "wdth" 106; line-height: 1.3; }
.ch__item p { font-size: 1rem; line-height: 1.5; color: var(--ink-2); }
.ch__cases { display: grid; justify-items: start; gap: 4px; margin-top: 4px; }
.ch__case {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.9375rem; font-weight: 600; color: var(--cobalt-ink); text-decoration: none;
}
.ch__case svg { width: 16px; height: 16px; flex: none; transition: transform 180ms var(--ease-out); }
.ch__case:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.ch__case:hover svg { transform: translateX(3px); }

/* How I Work: six steps, compact, the right-sized principle beside them */
#how-i-work .arch { padding-right: 0; }
#how-i-work .arch__stage { padding-bottom: 14px; }
#how-i-work .arch__stage::after { height: 14px; }
#how-i-work .arch__box { min-height: 46px; padding: 8px 16px 8px 20px; font-size: 1.0625rem; }
#how-i-work .arch-wrap { align-items: center; }
@media (min-width: 1000px) {
  #how-i-work .arch-wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 5vw, 72px); }
}
@media (max-width: 999px) { #how-i-work .arch-wrap { gap: 32px; } }


/* six navigation items: on 1200–1359px the links tighten and Email becomes an icon button */
@media (min-width: 1200px) and (max-width: 1359px) {
  .nav__links a { padding: 0 9px; }
  .nav__links a::after { left: 9px; right: 9px; }
  .nav__cta .btn:not(.icon-btn) { width: 44px; padding: 0; }
  .nav__btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* cases: the track follows the open case's height (set in site.js) */
.js .carousel__track { overflow-y: hidden; transition: height 320ms var(--ease-out); }
@media (prefers-reduced-motion: reduce) { .js .carousel__track { transition: none; } }

/* facilitation: each format with its photo; the photos line up at the bottom of the two columns */
.facil__item { grid-template-rows: auto 1fr auto; }
.facil__item .fig { margin: 8px 0 0; }
.facil__item .fig img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

/* operations reskilling: the employee profile infographic, the new capability profile, the programme cards */
.shift__profile { display: block; cursor: zoom-in; }
.shift__profile img { display: block; width: 100%; height: auto; background: #fff; transition: opacity 160ms ease; }
.shift__profile:hover img { opacity: 0.9; }
.shift .shift__caps { margin-top: 28px; }
.shift__pic { display: block; margin-top: 24px; cursor: zoom-in; }
.shift__pic img { display: block; width: 100%; height: auto; transition: opacity 160ms ease; }
.shift__pic:hover img { opacity: 0.9; }

/* on-page buttons: no label above, the counts say what is below */
.toc { padding-top: 20px; }

/* mobile header: contact icons beside the menu button (on desktop they live in the nav) */
.top__contact { display: none; gap: 6px; margin-right: 8px; }
.top__contact .icon-btn { flex: 0 0 44px !important; width: 44px; min-height: 44px; }
.menu-btn { flex: none; }
@media (max-width: 1199px) { .top__contact { display: flex; } }
@media (max-width: 560px) {
  .top .wrap { gap: 0; }
  .top__contact { gap: 2px; margin-right: 4px; }
  .top__contact .icon-btn { flex-basis: 38px !important; width: 38px; min-height: 40px; }
  .brand { min-width: 0; flex: 0 1 auto; }
  .langs { gap: 0; margin-right: 4px; }
  .langs a { min-width: 30px; min-height: 36px; padding: 0 2px; font-size: 0.8125rem; }
  .menu-btn { width: 44px; justify-content: center; padding: 0; }
  .menu-btn__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 359px) { .brand > span:not(.brand__node) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* hero portrait: a tall 2:3 crop (the people beside Viktoriia stay out of frame); on desktop the height drives the width */
@media (min-width: 1000px) {
  .hero__photo { justify-self: end; width: fit-content; }
  .hero__photo img,
  .hero__photo img[class] {
    aspect-ratio: 2 / 3; width: auto; max-width: 100%; min-height: 0;
    height: min(620px, calc(100svh - 250px)); max-height: none;
    object-position: 50% 30%;
  }
}
@media (max-width: 999px) { .hero__photo img { aspect-ratio: 4 / 5; object-position: 50% 15%; } }

/* How I Work: both columns end on the same line — the steps grow to the column height, the principle box fills the rest */
@media (min-width: 1000px) {
  #how-i-work .arch-wrap { align-items: stretch; }
  #how-i-work .how-side { align-self: stretch; display: flex; flex-direction: column; gap: 24px; }
  #how-i-work .how-side__intro { margin-top: -0.3em; }
  #how-i-work .principle-box { flex: 1; align-content: start; }
  #how-i-work .arch { display: flex; }
  #how-i-work .arch__stages { flex: 1; display: flex; flex-direction: column; }
  #how-i-work .arch__stage { flex: 1 1 0; display: flex; flex-direction: column; }
  #how-i-work .arch__stage:last-child { padding-bottom: 0; }
  #how-i-work .arch__box { flex: 1; }
}

/* cases: the picture column ends exactly where the case text ends.
   The mosaic takes no height of its own (contain: size), so the text sets the row height;
   the mosaic rows then grow or shrink to fill it and the photos crop (object-fit: cover), never stretch. */
@media (min-width: 1000px) {
  .carousel__track > .work { align-items: stretch !important; }
  .carousel__track > .work > .work__text { display: flex; flex-direction: column; gap: 22px; }
  .carousel__track > .work > .work__text > .work__next { margin-top: auto; align-self: flex-start; }
  .carousel__track > .work > .mosaic {
    position: static; align-self: stretch; contain: size;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: var(--rows); align-content: stretch;
  }
  .carousel__track > .work > .mosaic > .mosaic__cell { aspect-ratio: auto !important; min-height: 0; min-width: 0; }
  .carousel__track > .work > .shift { align-self: stretch; align-content: space-between; }
}

/* work with me: the last line of both cards sits on the same baseline */
.wwm__part { display: flex; flex-direction: column; gap: 12px; }
.wwm__part > .wwm__flag { align-self: flex-start; }
.wwm__part > .wwm__terms { align-self: flex-start; }
.wwm__part > .wwm__cap { margin-top: auto; }

/* hero: AI & learning tech tools, named, right under the key facts */
.hero__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; max-width: 44rem; }
.hero__tools-l { font-size: 0.9375rem; font-weight: 600; color: var(--cobalt-ink); font-variation-settings: "wdth" 104; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: 4px 10px;
  border: 1px solid var(--rule-2); background: var(--paper);
  font-size: 0.875rem; font-weight: 500; line-height: 1.35; color: var(--ink);
}
@media (min-width: 1000px) and (max-height: 820px) { .hero__tools { margin-top: 10px; } }
/* hero: the portrait column is only as wide as the photo, the text takes the rest — tools and buttons stay on one line */
@media (min-width: 1000px) {
  .hero > .wrap { grid-template-columns: minmax(0, 1fr) auto !important; }
  .hero__tools { max-width: none; }
  .hero__support { max-width: 42rem; }
}
@media (min-width: 1000px) { .hero__tools .tags { gap: 5px; } .hero__tools .tags li { padding: 3px 8px; font-size: 0.8125rem; } }

/* mosaic: slides, screenshots and posters with text are shown whole, never cropped */
.mosaic__cell--fit { background: #fff; border: 1px solid var(--rule); }
.mosaic__cell--fit img { object-fit: contain !important; object-position: 50% 50% !important; }

/* case results: an optional small heading over a group of figures */
.work__sublabel { font-size: 0.875rem; font-weight: 600; color: var(--cobalt-ink); margin-top: 6px; }
.work__sublabel:first-of-type { margin-top: 0; }
