:root {
  --black: #000;
  --white: #fff;
  --grey: #999;
  --mute: #8a8a8a;
  --gut: 24px;
  --font: 'Russo One', system-ui, sans-serif;
  --display: 'Exo 2', 'IBM Plex Sans', system-ui, sans-serif;
  --cs: 360px; /* cube size, set from JS */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (hover: hover) { html { scroll-behavior: smooth; } }
body {
  font-synthesis: none;
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-weight: 500;
  text-transform: uppercase;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-transform: inherit; }
h1, h2, h3, p, ol { margin: 0; padding: 0; font-weight: inherit; }
img { display: block; }

/* Highlight bars: black slab with white text, white slab with black text */
.hl, .hl-w { box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 0 4px; }
.hl { background: var(--black); color: var(--white); }
.hl-w { background: none; color: inherit; padding: 0; }
.grey .hl-w { color: var(--black); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--grey);
  display: flex; align-items: center;
  transition: transform 0.95s cubic-bezier(0.77, 0, 0.18, 1);
  touch-action: none; /* iOS ignores overflow:hidden on body: no scrolling under the loader */
}
/* curtains: the loader is split in two halves; the top one leaves up, the bottom one down */
.preloader.half-top { clip-path: inset(0 0 50% 0); }
.preloader.half-bot { clip-path: inset(50% 0 0 0); }
.preloader.half-top.done { transform: translateY(-51%); }
.preloader.half-bot.done { transform: translateY(51%); }
.pre-line { position: relative; width: 100%; height: clamp(56px, 6.3vw, 96px); }
.pre-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: var(--black); }
.pre-pct { position: absolute; right: 16px; bottom: calc(100% + 6px); font-size: 14px; font-weight: 400; color: var(--white); }
.pre-title {
  position: relative; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(40px, 5.6vw, 84px); font-weight: 400; line-height: 1; letter-spacing: -0.01em;
  color: var(--white);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 18px var(--gut) 0;
  pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-logo { position: absolute; left: var(--gut); top: 12px; width: 32px; height: 32px; border-radius: 7px; overflow: hidden; }
.nav-logo img { width: 100%; height: 100%; }
.nav-links { display: flex; gap: 0; }
.nav-links a, .lang-btn {
  font-size: 16px; font-weight: 600; line-height: 1.2;
  padding: 0 6px;
  transition: background-color 0.35s, color 0.35s;
}
.theme-dark .nav-links a, .theme-dark .lang-btn { background: var(--grey); color: var(--black); }
.theme-grey .nav-links a, .theme-grey .lang-btn { background: var(--black); color: var(--white); }
.nav-links a:hover, .lang-btn:hover { background: var(--white) !important; color: var(--black) !important; }
.nav-right { position: absolute; right: var(--gut); top: 12px; display: flex; align-items: center; gap: 14px; }
.lang { position: relative; }
/* Discuss-a-project button: a thin frame in the text colour, no fill behind the text */
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px;
  border: 1px solid currentColor; font-size: 14px; font-weight: 600; line-height: 1; white-space: nowrap;
  color: var(--white); transition: color 0.35s, border-color 0.35s;
}
.theme-grey .nav-cta { color: var(--black); }
.nav-cta:hover span { text-decoration: underline; text-underline-offset: 4px; }
.nav-cta svg { flex: none; }
/* narrow screens: the button keeps only the Telegram icon (the label stays for screen readers) */
@media (max-width: 1100px) {
  .nav-cta { width: 32px; padding: 0; justify-content: center; }
  .nav-cta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 4px);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-menu button { font-size: 14px; font-weight: 600; padding: 2px 8px; background: var(--white); color: var(--black); text-align: left; }
.lang-menu button:hover, .lang-menu button.on { background: var(--black); color: var(--white); }

/* ---------- Floating CTA ---------- */
.fab {
  position: fixed; right: var(--gut); bottom: var(--gut); z-index: 50;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--black); color: var(--white);
  font-size: 14px; font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}
.fab:hover { background: var(--white); color: var(--black); }

/* ---------- Drum ---------- */
.stage { position: fixed; left: 0; right: 0; top: 0; height: var(--vhh, 100vh); z-index: 20; pointer-events: none; }
.drum-pos {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--cs) * 0.8); height: calc(var(--cs) * 1.5);
  margin: calc(var(--cs) * -0.75) 0 0 calc(var(--cs) * -0.4);
  will-change: transform;
  pointer-events: auto; cursor: grab; touch-action: pan-y;
  user-select: none; -webkit-user-select: none;
}
.drum-pos.grabbing { cursor: grabbing; }
/* one full-screen canvas for the rack and the flying cards; it ignores the mouse,
   .drum-pos (the size of the rack) is the handle for spinning it */
.rack-cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }

.card {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 7% 7%;
  background: var(--bg); color: var(--fg);
  font-size: calc(var(--cs) * 0.022); line-height: 1.25;
}
.card-top, .card-bot { display: flex; justify-content: space-between; gap: 6px; }
.card-bot span:last-child { text-align: right; }
.card-big { font-size: calc(var(--cs) * 0.19); font-weight: 500; line-height: 0.8; letter-spacing: -0.04em; text-align: center; }
.card-name { font-size: calc(var(--cs) * 0.034); text-align: center; margin-top: 8%; }

.counter {
  position: fixed; left: 0; top: 0; z-index: 21;
  display: flex; align-items: flex-start;
  font-size: calc(var(--cs) * 0.36); font-weight: 500; line-height: 1; letter-spacing: -0.02em;
  color: var(--white);
  mix-blend-mode: difference;
  pointer-events: none; opacity: 0;
  will-change: transform, opacity;
}
.counter-roll { display: block; height: 1em; overflow: hidden; }
.counter-col { display: flex; flex-direction: column; will-change: transform; }
.counter-col span { height: 1em; }

/* ---------- Sections ---------- */
.s { position: relative; min-height: 100vh; overflow: clip; }
.dark { background: var(--black); color: var(--white); }
.grey { background: var(--grey); color: var(--white); }


/* rows: LABEL ———— VALUE */
.row, .label-row { display: flex; align-items: flex-end; gap: 0; font-size: 12px; font-weight: 600; line-height: 1.2; }
.row i, .label-row i { flex: 1; height: 1px; margin: 0 0 3px; background: currentColor; min-width: 24px; }
.row b, .label-row b { font-weight: 400; padding: 0 0 0 6px; white-space: nowrap; }
.grey .label-row b, .grey .row b { color: var(--black); }
.row a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.label-row i { background: var(--black); }

/* HERO */
.hero { display: block; min-height: var(--vhh, 100vh); }
.glitch { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.hero-name {
  position: absolute; left: 0; right: 0; top: 42%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--display); font-weight: 800; font-style: italic;
  font-size: clamp(76px, 12.85vw, 250px); line-height: 0.5; letter-spacing: -0.005em;
  pointer-events: none;
}
.hero-name span { display: block; height: 0.56em; }
.hero-name .l1 { color: var(--grey); transform: translateX(-2%); }
.hero-name .l2 { color: var(--white); padding-top: 0.08em; position: relative; z-index: 1; }
.info { position: absolute; width: min(340px, calc(100% - 2 * var(--gut))); display: grid; gap: 10px; }
.info-left { left: var(--gut); top: 68%; }
.info-right { right: var(--gut); top: 68%; }
.hero .row b { max-width: 70%; overflow: hidden; text-overflow: ellipsis; }

/* PROCESS */
.process-block {
  position: absolute; left: var(--gut); top: 50%; transform: translateY(-50%);
  width: min(584px, 41vw);
}
.label-row { margin-bottom: 8px; }
.bar-sm { font-size: 18px; line-height: 1.2; margin-bottom: 8px; }
.bar-sm .hl { display: block; padding: 0 4px; }
.para { font-size: 14px; line-height: 1.45; font-weight: 500; text-transform: none; margin-bottom: 8px; }
.steps { list-style: none; border-top: 1px solid var(--black); }
.steps li {
  display: grid; grid-template-columns: 34px minmax(0, 0.9fr) minmax(0, 1.3fr); align-items: baseline;
  padding: 9px 0; border-bottom: 1px solid var(--black);
  font-size: 16px; line-height: 1.2;
  transition: background-color 0.3s, color 0.3s;
}
.steps li > span { transition: transform 0.3s; }
.steps .k { padding-left: 8px; }
.steps .d { font-size: 12px; text-transform: none; color: rgba(255, 255, 255, 0.85); }
.steps li:hover { background: var(--black); }
.steps li:hover > span { transform: translateX(6px); }
.process-big {
  position: absolute; left: 55%; top: 67%; width: min(560px, 39vw);
  font-size: clamp(28px, 3.2vw, 56px); font-weight: 400; line-height: 1.2;
}
.process-big .hl { display: block; padding: 0 6px; }

/* WHY / SERVICES */
.why-head { position: absolute; left: var(--gut); right: var(--gut); top: 13%; }
.bar-lg { font-size: clamp(28px, 3.2vw, 56px); font-weight: 400; line-height: 1.2; margin-bottom: 8px; }
.why-head { right: auto; width: min(58vw, 820px); }
.why-head .bar-lg { width: 100%; }
.why-head .bar-lg .hl { display: block; }
.why-head .para { max-width: 100%; }
.svc { position: absolute; left: var(--gut); right: var(--gut); top: 47%; border-top: 1px solid var(--black); }
.svc-row {
  display: grid;
  grid-template-columns: 4.5% 15.5% 13% 1fr 9% 13% 9%;
  align-items: center;
  min-height: 46px; padding: 0 0 0 0;
  border-bottom: 1px solid var(--black);
  font-size: 15px; line-height: 1.3; text-transform: none;
  transition: background-color 0.3s, color 0.3s;
}
.svc-row span:first-child { padding-left: 4px; }
.svc-row:not(.svc-head):hover { background: var(--black); }
.svc-head { min-height: 30px; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--black); }

/* PROJECTS */
.projects { display: flex; align-items: center; justify-content: center; }
.projects-title { font-size: 16.3vw; font-weight: 400; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; }

/* CASES */
.case { display: flex; align-items: center; justify-content: center; }
.case-bar {
  position: absolute; left: var(--gut); right: var(--gut); top: 0;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 56px 0 8px; border-bottom: 1px solid var(--white);
  font-size: 16px; line-height: 1.2;
}
.case-name { font-weight: 400; line-height: 1; letter-spacing: -0.02em; white-space: nowrap; text-align: center; }
.case-info { position: absolute; left: var(--gut); bottom: var(--gut); width: min(380px, calc(100% - 2 * var(--gut) - 190px)); display: grid; gap: 10px; }
.case-info .row b { white-space: normal; max-width: 75%; }
.case-desc { font-size: 12px; line-height: 1.4; text-transform: none; color: var(--mute); max-width: 340px; margin-bottom: 4px; }

/* TEAM */
.team { padding: 110px var(--gut) 90px; }
.team-head { max-width: 900px; }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 34px; }
.member-photo { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--black); margin-bottom: 10px; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.member:hover .member-photo img { transform: scale(1.04); }
.member-name { font-size: clamp(20px, 1.8vw, 30px); font-weight: 400; line-height: 1.2; margin-bottom: 4px; }
.member-role { font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.member .tp .hl-w { display: inline; }
.member.reveal { transform: translateY(30px); }
.member.reveal.in { transform: none; }
.member:nth-child(2) { transition-delay: 0.08s; }
.member:nth-child(3) { transition-delay: 0.16s; }
.member:nth-child(4) { transition-delay: 0.24s; }
.lead { font-size: 16px; line-height: 1.25; margin: 2px 0 14px; }
.lead .hl-w { display: inline; }
.tp { font-size: 13px; line-height: 1.45; text-transform: none; margin-bottom: 6px; max-width: 640px; }
.more { display: block; margin-top: 16px; text-align: right; font-size: 16px; font-weight: 600; color: var(--black); }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* MARQUEE */
.marquee { min-height: 0; height: calc(var(--vhh, 100vh) * 3); margin-top: calc(var(--vhh, 100vh) * -2); z-index: 0; }
/* the marquee waits pinned under the process block while its doors open */
.mq-stick { position: sticky; top: 0; height: var(--vhh, 100vh); overflow: hidden; background: var(--grey); }
.mq { position: absolute; left: 0; right: 0; bottom: 0; top: 30%; display: flex; flex-direction: column; justify-content: flex-end; }
.mq-row { overflow: hidden; white-space: nowrap; }
.mq-track { display: inline-flex; will-change: transform; }
.mq-track span { display: inline-block; background: var(--black); color: var(--white); padding: 0 0.04em; }
.mq-track em { display: inline-block; width: 0.18em; align-self: stretch; background: var(--grey); font-style: normal; }
.mq-row.big { font-size: clamp(56px, 9.45vw, 180px); line-height: 1; }
.mq-row.small { font-size: clamp(28px, 4.5vw, 86px); line-height: 1; }

/* FOOTER */
.footer { display: flex; align-items: center; justify-content: center; }
.ft { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 22px; padding: 120px 0 110px; }
.ft-group { display: flex; flex-direction: column; align-items: stretch; }
.ft-h { text-align: center; font-size: 12px; margin-bottom: 8px; }
.ft-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  margin: 0 var(--gut);
  font-size: 13px; line-height: 1.5;
  transition: background-color 0.25s, color 0.25s;
}
.ft-row span { text-align: right; color: var(--mute); }
.ft-row b { font-weight: 500; }
.ft-row:hover { background: var(--white); color: var(--black); }
.ft-row:hover span { color: var(--black); }
.ft-copy { text-align: center; font-size: 11px; color: var(--mute); margin-top: 18px; }

/* CASES BOOK — a lookbook floating in the dark, pages turn with scroll */
.book-sec { min-height: 0; overflow: visible; background: var(--black); }
.book-stick { position: sticky; top: 0; height: var(--vhh, 100vh); overflow: hidden; background: var(--black); }
.book-scene { position: absolute; inset: 0; perspective: 1700px; perspective-origin: 50% 28%; }
.book-tilt {
  position: absolute; left: 50%; top: 45%;
  width: calc(var(--pw) * 2); height: var(--ph);
  transform-style: preserve-3d;
  transform: translate(-50%, -50%) rotateX(46deg);
}
.book-shadow {
  position: absolute; left: -3%; right: -3%; top: -5%; bottom: -9%;
  background: radial-gradient(ellipse at 50% 55%, rgba(61, 139, 255, 0.22), rgba(61, 139, 255, 0.06) 45%, transparent 70%);
  transform: translateZ(-40px); filter: blur(18px);
}
.book { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.leaf { position: absolute; left: 50%; top: 0; width: var(--pw); height: var(--ph); transform-origin: 0 50%; transform-style: preserve-3d; }
.seg { position: absolute; left: 0; top: 0; width: calc(var(--sw) + 0.7px); height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; }
.seg .seg { left: var(--sw); }
.sf, .sb { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.sb { transform: rotateY(180deg); }
.sc { position: absolute; top: 0; left: calc(var(--j) * var(--sw) * -1); width: var(--pw); height: var(--ph); }
.pg { position: absolute; inset: 0; overflow: hidden; background: #eeeeee; color: var(--black); display: block; }
.pg-link { cursor: pointer; }
.pg-link img { transition: filter 0.3s; }
.pg-link:hover img { filter: brightness(1.08); }
.pg-link:hover .folio { text-decoration: underline; text-underline-offset: 3px; }
.pg img { width: 100%; height: 100%; object-fit: cover; }
.pg::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.sf .pg::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.32), transparent 7%); }
.sb .pg::after { background: linear-gradient(270deg, rgba(0, 0, 0, 0.32), transparent 7%); }
.folio { position: absolute; bottom: 4%; color: var(--white); text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 12px rgba(0, 0, 0, 0.7); font-size: calc(var(--pw) * 0.017); font-weight: 600; letter-spacing: 0.02em; }
.folio-l { left: 4%; }
.folio-r { right: 4%; }
/* cover: generated line artwork on grey, one word on it */
.pg-cover { background: #9a9a9a; }
.pg-cover img { position: absolute; inset: 0; }
.pg-cover-t {
  position: absolute; left: 7%; bottom: 8%;
  font-family: var(--display); font-weight: 800; font-style: italic;
  font-size: calc(var(--pw) * 0.17); line-height: 0.9; color: var(--black); text-transform: uppercase;
  /* a soft outline in the cover grey keeps the word clear of the lines underneath */
  -webkit-text-stroke: calc(var(--pw) * 0.012) #9a9a9a; paint-order: stroke fill;
}
/* page block under the leaves */
.stack { position: absolute; top: 0; width: var(--pw); height: var(--ph); transform-style: preserve-3d; transform: translateZ(0); }
.stack-r { left: 50%; }
.stack-l { left: 0; opacity: 0; }
.stack i { position: absolute; display: block; --th: calc(var(--pw) * 0.03); }
.stack .edge-b { left: 0; right: 0; bottom: 0; height: var(--th); transform-origin: 50% 100%; transform: rotateX(-90deg); background: repeating-linear-gradient(0deg, #f2f2f2 0 1px, #bdbdbd 1px 2px); }
.stack .edge-s { top: 0; bottom: 0; width: var(--th); background: repeating-linear-gradient(90deg, #f2f2f2 0 1px, #bdbdbd 1px 2px); }
.stack-r .edge-s { right: 0; transform-origin: 100% 50%; transform: rotateY(90deg); }
.stack-l .edge-s { left: 0; transform-origin: 0 50%; transform: rotateY(-90deg); }
.pg-blank { background: #e9e9e9; }
.book-head { position: absolute; left: var(--gut); top: 64px; z-index: 3; width: min(560px, calc(100% - 2 * var(--gut))); }
.book-head .label-row i { background: var(--white); }
.book-cap {
  position: absolute; left: var(--gut); right: var(--gut); bottom: 76px; z-index: 3;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.cap-main { max-width: 600px; display: grid; gap: 6px; justify-items: start; }
.book-cap.in .cap-main { animation: cap-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes cap-in { from { opacity: 0; transform: translateY(12px); } }
.cap-n { font-size: 12px; font-weight: 600; color: #8a8a8a; }
.cap-t { font-size: clamp(26px, 2.6vw, 44px); font-weight: 400; line-height: 1.05; }
.cap-s { font-size: 12px; color: #b5b5b5; }
.cap-s:empty, .cap-d:empty { display: none; }
.cap-d { margin: 0; font-size: 13px; line-height: 1.45; text-transform: none; color: #b5b5b5; }
.cap-l { font-size: 12px; font-weight: 600; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.cap-l:hover { color: #8a8a8a; }
.cap-nav { display: flex; gap: 6px; }
.cap-nav button { font-size: 14px; font-weight: 600; padding: 6px 12px; background: var(--grey); color: var(--black); transition: background-color 0.25s, color 0.25s; }
.cap-nav button:hover { background: var(--white); }
.cap-nav button:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

/* reveal on enter */
.reveal { opacity: 0; transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.process-block.reveal { transform: translateY(calc(-50% + 30px)); }
.why-head.reveal, .svc.reveal, .process-big.reveal, .team-head.reveal { transform: translateY(30px); }
.reveal.in { opacity: 1; }
.process-block.reveal.in { transform: translateY(-50%); }
.why-head.reveal.in, .svc.reveal.in, .process-big.reveal.in, .team-head.reveal.in { transform: none; }

/* hero entrance after the preloader */
.hero-name span, .hero .info { transition: opacity 1s ease 0.15s, transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s; }
.is-loading .hero-name span { opacity: 0; transform: translateY(40%); }
.is-loading .hero .info { opacity: 0; transform: translateY(20px); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .svc-row { grid-template-columns: 6% 22% 22% 1fr 0 0 16%; }
  .svc-row > :nth-child(5), .svc-row > :nth-child(6) { display: none; }
}

/* ---------- Phone ---------- */
@media (max-width: 809px) {
  :root { --gut: 16px; }
  .nav { justify-content: center; padding-top: 16px; }
  .nav-logo { display: none; }
  .nav-links a, .lang-btn { font-size: 14px; padding: 0 4px; }
  .nav-right { top: 11px; gap: 8px; }
  .nav-cta { width: 28px; height: 28px; }
  .nav-links { margin-right: 76px; }
  .nav-links a[href="#home"] { display: none; } /* room for the language and the Telegram button */
  .fab { font-size: 13px; padding: 9px 12px; }

  .hero-name { top: 40%; font-size: 20.5vw; }
  .info-right { top: 70px; right: var(--gut); }
  .info-left { top: auto; bottom: 74px; }
  .hero .info { gap: 8px; }

  .process-block { position: relative; left: auto; top: auto; transform: none; width: auto; margin: 0 var(--gut); padding-top: 130px; }
  .process-block.reveal { transform: translateY(30px); }
  .process-block.reveal.in { transform: none; }
  .process-big { left: var(--gut); right: var(--gut); top: 64px; width: auto; font-size: 30px; }
  .steps li { grid-template-columns: 26px 1fr; row-gap: 2px; font-size: 14px; }
  .steps .d { grid-column: 2; }
  .process { padding-bottom: 46vh; }

  .why-head { width: auto; }
  .why-head { position: relative; top: auto; left: auto; right: auto; margin: 0 var(--gut); padding-top: 64px; }
  .svc { position: relative; top: auto; left: auto; right: auto; margin: 14px var(--gut) 0; }
  .svc-row { grid-template-columns: 30px 1fr auto; min-height: 42px; font-size: 14px; gap: 8px; }
  .svc-row > :nth-child(3), .svc-row > :nth-child(4), .svc-row > :nth-child(5), .svc-row > :nth-child(6) { display: none; }
  .svc-row > :last-child { padding-right: 4px; color: rgba(255, 255, 255, 0.8); }
  .why { padding-bottom: 50vh; }

  .projects-title { font-size: 22vw; transform: translateY(-24vh); }

  .case-bar { font-size: 13px; padding-top: 52px; }
  .case { align-items: flex-start; }
  .case-name { margin-top: 23vh; }
  .case-info { width: auto; right: var(--gut); bottom: 70px; gap: 7px; }
  .case-info .row b { white-space: nowrap; }
  .case-desc { display: none; }

  .team { padding: 70px var(--gut) 90px; }
  .team .bar-lg { font-size: 28px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; margin-top: 22px; }
  .member-name { font-size: 17px; }
  .member .tp { font-size: 12px; }
  .lead { font-size: 14px; }

  .mq { top: 42%; }
  .ft-row { font-size: 12px; }
  .book-tilt { top: 44%; }
  .book-head { top: 58px; }
  .book-cap { bottom: 70px; flex-direction: column; align-items: stretch; gap: 12px; }
  .cap-t { font-size: 24px; }
  .cap-d { font-size: 12px; }
  .cap-nav { justify-content: flex-start; margin-right: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-name span, .hero .info { transition: none; }
}

/* Display face (Exo 2) for every heading-level element */
.pre-title, .bar-lg, .bar-sm, .process-big, .projects-title, .case-name, .card-big, .card-name,
.member-name, .cap-t, .mq-row.big, .lead {
  font-family: var(--display); font-weight: 800;
}
.bar-sm, .card-name, .lead { font-weight: 700; }
.case-name, .projects-title { letter-spacing: -0.01em; }



/* No boxes behind text anywhere: headings, nav, marquee, buttons and hovers
   are plain text; contrast comes from text colour per section instead. */
.hl, .hl-w { background: none !important; padding: 0 !important; color: inherit; }
.grey .hl, .grey .hl-w { color: var(--black); }
.dark .hl, .dark .hl-w { color: var(--white); }
.theme-dark .nav-links a, .theme-dark .lang-btn { background: none; color: var(--white); }
.theme-grey .nav-links a, .theme-grey .lang-btn { background: none; color: var(--black); }
.nav-links a, .lang-btn { padding: 0 8px; }
.nav-links a:hover, .lang-btn:hover { background: none !important; color: inherit !important; text-decoration: underline; text-underline-offset: 4px; }
.lang-menu { gap: 4px; }
.lang-menu button, .lang-menu button:hover, .lang-menu button.on { background: none; padding: 2px 8px; color: inherit; }
.lang-menu button.on, .lang-menu button:hover { text-decoration: underline; text-underline-offset: 4px; }
.fab, .fab:hover { background: none; color: var(--white); padding: 6px 0; transition: color 0.35s; }
.theme-grey .fab { color: var(--black); }
.fab:hover span { text-decoration: underline; text-underline-offset: 4px; }
.steps li:hover, .svc-row:not(.svc-head):hover, .ft-row:hover { background: none; }
.svc-row:not(.svc-head):hover > span:nth-child(2), .ft-row:hover b { text-decoration: underline; text-underline-offset: 4px; }
.ft-row:hover span { color: var(--mute); }
.steps li:hover > span { transform: translateX(6px); }
.mq-track span { background: none; color: var(--black); padding: 0 0.12em; }
.mq-track em { background: none; width: 0.4em; }
.cap-nav button, .cap-nav button:hover { background: none; color: var(--white); padding: 6px 4px; }
.cap-nav button:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-links a { white-space: nowrap; }
@media (max-width: 809px) {
  .nav-links a, .lang-btn { font-size: 12px; padding: 0 4px; }
}
@media (max-width: 380px) {
  .nav-links a { font-size: 11px; padding: 0 3px; }
}

/* SERVICES — pinned block: giant name behind the drum, details bottom-left */
.svc-pin { min-height: 0; overflow: visible; }
.svc-stick { position: sticky; top: 0; height: var(--vhh, 100vh); overflow: hidden; display: flex; align-items: flex-start; justify-content: center; }
.svc-name { margin-top: calc(var(--vhh, 100vh) * 0.13); }
.svc-name { position: relative; text-align: center; }
.svc-info.in { animation: cap-in 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.svc-info .row b { white-space: normal; text-align: right; }
@media (max-width: 809px) {
  .svc-name { margin-top: calc(var(--vhh, 100vh) * 0.15); }
}

/* block cursor while the hero name types out */
.type-cur {
  display: inline-block; width: 0.42em; height: 0.46em; margin-left: 0.04em;
  background: currentColor; vertical-align: top; transform: skewX(-8deg);
  animation: cur-blink 0.9s steps(1) infinite;
}
@keyframes cur-blink { 50% { opacity: 0; } }
.is-loading .hero-name span { transform: none; }

/* hero name: Orbitron, the wide sci-fi face; straight, not italic */
.hero-name { font-family: 'Orbitron', var(--display); font-weight: 900; font-style: normal; letter-spacing: 0.03em; font-size: clamp(56px, 10.4vw, 200px); }
@media (max-width: 809px) { .hero-name { font-size: 15.5vw; } }


/* hyperspace stars behind the services block */
.warp { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.svc-stick > :not(.warp) { position: relative; z-index: 1; }
.svc-stick > .case-bar, .svc-stick > .case-info { position: absolute; }
/* cyber face for the services headings (Tektur has Cyrillic) */
.svc-name, .svc-pin .case-bar { font-family: 'Tektur', var(--display); font-weight: 800; font-style: normal; letter-spacing: 0.01em; }

/* service name swap: slide out up, wipe in from the left */
.svc-name { white-space: nowrap; }
.svc-name.name-out { transition: transform 0.22s ease-in, opacity 0.22s ease-in; transform: translateY(-18%); opacity: 0; }
.svc-name.name-in { animation: name-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
@keyframes name-in {
  from { clip-path: inset(0 100% 0 0); transform: translateY(12%); }
  to { clip-path: inset(0 0 0 0); transform: none; }
}

/* PROCESS — pinned four-quadrant terminal on black */
.proc-pin { min-height: 0; overflow: visible; }
.proc-stick { position: sticky; top: 0; height: var(--vhh, 100vh); overflow: hidden; background: var(--black); }
.cybergrid { position: absolute; inset: 0; width: 100%; height: 100%; }
.pq { position: absolute; inset: 0; opacity: 0; }
.pq .q { position: absolute; width: 50%; height: 50%; padding: 76px var(--gut) 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; }
.pq .q.tl { left: 0; top: 0; } .pq .q.tr { right: 0; top: 0; }
.pq .q.bl { left: 0; bottom: 0; padding-top: 24px; } .pq .q.br { right: 0; bottom: 0; padding-top: 24px; }
.pq .lab { display: flex; justify-content: space-between; font: 500 12px/1 'JetBrains Mono', monospace; text-transform: uppercase; color: #9a9a9a; }
.pq-ttl { font: 800 clamp(48px, 7vw, 120px)/0.9 'Tektur', var(--display); text-transform: uppercase; margin: 6px 0 0; }
.pq-svc { font: 800 clamp(20px, 2.4vw, 38px)/1.1 'Tektur', var(--display); text-transform: uppercase; }
.pq-term { margin: 0; font: 500 clamp(13px, 1.25vw, 19px)/1.6 'JetBrains Mono', monospace; text-transform: none; white-space: pre-wrap; color: var(--white); }
.pt-ok, .pt-dur { color: #7a7a7a; }
.pt-cur { display: inline-block; width: 0.6em; height: 1em; margin-left: 0.4em; vertical-align: -0.15em; background: var(--white); animation: cur-blink 0.9s steps(1) infinite; }
.pq-about { margin: 0; font: 500 clamp(14px, 1.3vw, 20px)/1.55 'JetBrains Mono', monospace; text-transform: none; color: #d0d0d0; max-width: 40ch; }
.pq-cta { margin-top: auto; align-self: flex-end; font: 800 16px 'Tektur', var(--display); text-transform: uppercase; text-decoration: underline; text-underline-offset: 5px; margin-bottom: 52px; }
.pq-cta:hover { color: #9a9a9a; }
@media (max-width: 809px) {
  /* phones: title on top, terminal at the bottom (clear of the floating button),
     the rack fills the band between them (main.js measures it) */
  .pq .q.tl { width: 100%; height: auto; padding-top: 64px; padding-bottom: 0; }
  .pq .q.tr { display: none; }
  .pq .q.bl { width: 100%; height: auto; top: auto; padding-top: 0; padding-bottom: 62px; }
  .pq .q.br { display: none; }
  .pq-ttl { font-size: 40px; }
  .pq-svc { font-size: 20px; min-height: 2.2em; }
  /* two steps at a time, like a terminal scrolling: always the same height */
  .pq-term { font-size: 13px; height: calc(4 * 1.6em); overflow: hidden; }
}

/* process doors: the block sits above the pinned marquee; quadrants carry their own black */
.proc-pin { z-index: 1; }
.proc-stick.opening { background: transparent; }
.proc-stick.opening .cybergrid { opacity: 0; }
.pq .q { background: var(--black); will-change: transform; }
.pq .q.tl { box-shadow: inset -1px -1px 0 rgba(255, 255, 255, 0.35); }
.pq .q.tr { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.35); }
.pq .q.bl { box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.35); }
.pq-seam { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(#fff, #fff) 50% 0 / 2px 100% no-repeat, linear-gradient(#fff, #fff) 0 50% / 100% 2px no-repeat; }
@media (max-width: 809px) {
  .pq .q.tl, .pq .q.bl { box-shadow: none; }
}
.proc-pin.dark { background: transparent; }

/* marquee fills the whole screen: rows spread evenly from top to bottom */
.mq { top: 0; bottom: 0; justify-content: space-evenly; padding-top: 56px; }
@media (max-width: 809px) { .mq { top: 0; } }

/* team: pixel reveal canvas over each photo */
.px-reveal { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
.member.reveal, .member.reveal.in { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.seo-static { font: 400 14px/1.5 var(--font); text-transform: none; }

/* phones: the process doors are four clipped copies of the whole block */
.pq-piece { position: absolute; width: 50%; height: 50%; z-index: 2; overflow: hidden; will-change: transform; visibility: hidden; contain: layout paint; }
.pq-piece.tl { left: 0; top: 0; } .pq-piece.tr { left: 50%; top: 0; }
.pq-piece.bl { left: 0; top: 50%; } .pq-piece.br { left: 50%; top: 50%; }
.pq-piece .pq { opacity: 1; background: var(--black); inset: auto; width: 200%; height: 200%; }
.pq-piece.tl .pq { left: 0; top: 0; } .pq-piece.tr .pq { left: -100%; top: 0; }
.pq-piece.bl .pq { left: 0; top: -100%; } .pq-piece.br .pq { left: -100%; top: -100%; }
/* big outlined case number, phones only, fills the space above the book */
.book-num { display: none; }
@media (max-width: 809px) {
  .hero-name { top: 50%; }
  .book-num { display: block; position: absolute; left: 0; right: 0; top: 12%; z-index: 1; text-align: center;
    font: 900 42vw/1 'Orbitron', var(--display); color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35); pointer-events: none; }
  .book-tilt { top: 50%; }
  /* the pages turn under the finger: sideways drags belong to the book */
  .book-stick { touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
  .book img { pointer-events: none; }
}
@media (max-width: 809px) { .hero-name { letter-spacing: 0; } .hero-name .l1 { transform: none; } .hero-name span { text-align: center; } }
.hero-name span.l1, .hero-name span.l2 { position: relative; }
.type-cur { position: absolute; left: 100%; top: 0.03em; margin-left: 0.06em; }

/* touch screens: a tap leaves :hover stuck on the last thing pressed
   (underlined «Next», a highlighted menu item), so hover looks are mouse-only */
@media (hover: none) {
  .nav-links a:hover, .lang-btn:hover, .lang-menu button:hover:not(.on), .cap-nav button:hover,
  .fab:hover span, .nav-cta:hover span, .ft-row:hover b, .more:hover,
  .svc-row:not(.svc-head):hover > span:nth-child(2), .row a:hover b, .pg-link:hover .folio { text-decoration: none; }
  .cap-l:hover, .pq-cta:hover { color: inherit; }
  .member:hover .member-photo img { transform: none; }
  .pg-link:hover img { filter: none; }
}

/* phones: bigger touch areas without moving anything on screen
   (padding grows the hit box, the negative margin keeps the layout) */
@media (max-width: 809px) {
  .nav-links a, .lang-btn { padding-top: 14px; padding-bottom: 14px; margin: -14px 0; }
  .lang-btn { padding-left: 10px; padding-right: 10px; margin: -14px -6px; }
  .nav-cta { position: relative; }
  .nav-cta::after { content: ""; position: absolute; inset: -8px; }
  .lang-menu { top: calc(100% + 2px); }
  .lang-menu button { padding: 8px 10px; }
  .fab { bottom: 6px; padding: 16px 0 !important; }
  .cap-nav button { padding: 12px 8px !important; margin: -6px -4px; }
  .cap-l { display: inline-block; padding: 10px 0 2px; margin-top: -8px; }
  .cap-l[hidden] { display: none; }
  .more { padding: 12px 0; margin-top: 4px; }
  .ft-row { padding: 6px 0; }
  .row a { display: inline-block; padding: 10px 0; margin: -10px 0; }
}

/* iPhone: pinned blocks are as tall as the screen with Safari's toolbar shown;
   when the toolbar folds the screen grows, so the process block carries its
   black a little further down (no grey edge of the marquee peeking under it) */
.proc-stick { box-shadow: 0 180px 0 0 var(--black); }
.proc-stick.opening { box-shadow: none; }

/* phones: a hint under the book that it turns sideways — page dots (cover + one per
   case, the open spread lit) and a line with arrows that sway left and right */
.book-hint { display: none; }
@media (max-width: 809px) {
  .book-hint { display: flex; position: absolute; left: 0; right: 0; z-index: 3; flex-direction: column; align-items: center; gap: 7px; pointer-events: none; }
  .book-dots { display: flex; gap: 7px; }
  .book-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); transition: background-color 0.3s, transform 0.3s; }
  .book-dots i.on { background: var(--white); transform: scale(1.25); }
  .bh-t { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.06em; color: #a6a6a6; }
  .bh-t i { font-style: normal; display: inline-block; }
  .bh-l { animation: bh-l 1.6s ease-in-out infinite; }
  .bh-r { animation: bh-r 1.6s ease-in-out infinite; }
}
@keyframes bh-l { 50% { transform: translateX(-4px); } }
@keyframes bh-r { 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .bh-l, .bh-r { animation: none; } }
