:root {
  color-scheme: dark;
  --bg: #000000;
  --card: #1d1d1d;
  --card-2: #262626;
  --card-3: #2e2e2e;
  --ink: #f8f8ff;
  --muted: #a6a6ae;
  --track: #999999;
  --lav: #f7f5ff;
  --on-light: #0b0b0c;
  --accent: #3d6bff;
  --live: #3ddc84;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --pill: 999px;
  --wrap: 1280px;
  --gutter: clamp(16px, 3vw, 32px);
  --section: clamp(88px, 10vw, 140px);

  --fs-name: clamp(56px, 8.4vw, 128px);
  --fs-hello: clamp(36px, 4.6vw, 72px);
  --fs-h2: clamp(34px, 4vw, 56px);
  --fs-h3: clamp(20px, 1.6vw, 24px);
  --fs-lead: clamp(18px, 1.4vw, 21px);
  --fs-body: 17px;
  --fs-small: 14px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Urbanist", system-ui, sans-serif; font-size: var(--fs-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; }
picture { width: 100%; height: 100%; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { text-wrap: balance; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--on-light); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: var(--pill); background: var(--ink); color: var(--on-light); font-weight: 700; }
.skip:focus { top: 16px; }

/* Buttons and pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--pill);
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: transform 300ms var(--spring), background-color 200ms ease, color 200ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn--light { background: var(--ink); color: var(--on-light); }
.btn--light:hover { background: #ffffff; }
.btn--dark { background: var(--card); color: var(--ink); }
.btn--dark:hover { background: var(--card-3); }
.card .btn--dark, .pv .btn--dark { background: var(--card-3); }
.card .btn--dark:hover, .pv .btn--dark:hover { background: #3a3a3a; }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

.pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 0; border-radius: var(--pill); background: var(--card); color: var(--ink);
  font-weight: 600; font-size: 15px; cursor: pointer; touch-action: manipulation;
  transition: background-color 200ms ease, color 200ms ease, transform 300ms var(--spring);
}
.pill:hover { background: var(--card-3); }
.pill:active { transform: scale(0.96); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--on-light); }
.pill__count { min-width: 26px; padding: 1px 8px; border-radius: var(--pill); background: var(--card-3); font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.pill[aria-pressed="true"] .pill__count { background: #e3e3ec; }
.pill--static { min-height: 30px; padding: 0 14px; font-size: 13px; cursor: default; }
.pill--static:hover { background: var(--card); }
.pill--light, .pill--light:hover { background: var(--ink); color: var(--on-light); }

.card { background: var(--card); border-radius: var(--r-lg); padding: clamp(22px, 2.4vw, 32px); }
.round { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--card-3); }
.round--link { transition: background-color 200ms ease, color 200ms ease, transform 300ms var(--spring); }
.round--link:hover { background: var(--ink); color: var(--on-light); transform: translateY(-3px); }

/* Scroll progress */
.progress { position: fixed; inset: 0 0 auto; z-index: 60; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* Navigation */
.nav {
  position: sticky; top: 12px; z-index: 50;
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px;
  width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin: 12px auto 0; padding: 8px 8px 8px 10px;
  border-radius: var(--pill); background: rgba(29, 29, 29, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  transition: transform 400ms var(--ease);
}
.nav.is-hidden { transform: translateY(calc(-100% - 20px)); }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.nav__brand img { width: 40px; height: 40px; object-fit: contain; transition: transform 400ms var(--spring); }
.nav__brand:hover img { transform: rotate(-12deg) scale(1.08); }
.nav__end { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; padding: 4px; border-radius: var(--pill); background: var(--bg); }
.lang a { min-width: 40px; padding: 7px 10px; border-radius: var(--pill); text-align: center; text-decoration: none; font-weight: 700; font-size: 13px; color: var(--muted); }
.lang a[aria-current="page"] { background: var(--ink); color: var(--on-light); }
.lang a:not([aria-current]):hover { color: var(--ink); }

/* Layout */
.hero, .section, .footer { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-top: var(--section); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 16px 40px; margin-bottom: 36px; }
.section__head h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.section__head p { justify-self: end; max-width: 44ch; color: var(--muted); font-size: var(--fs-lead); }

/* Filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.grid__empty { padding: 40px; border-radius: var(--r-lg); background: var(--card); color: var(--muted); text-align: center; }

/* Showcases */
.showcases { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.sc { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--card); }
.sc[hidden] { display: none; }
.sc--wide { grid-column: 1 / -1; }
.sc__top { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: clamp(24px, 4vw, 56px); padding: clamp(22px, 3.4vw, 48px); }
.sc__info { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.sc__info--below { padding: 20px 12px 12px; }
.sc__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sc__chips li { padding: 6px 12px; border-radius: var(--pill); background: var(--card-3); font-weight: 600; font-size: 13px; }
.sc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.sc__year { padding: 3px 10px; border-radius: var(--pill); background: var(--ink); color: var(--on-light); font-weight: 700; font-size: 13px; }
.sc__title { font-size: clamp(30px, 3vw, 42px); font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.sc__title--xl { font-size: clamp(46px, 5.6vw, 88px); letter-spacing: -0.035em; line-height: 0.92; }
.sc__summary { max-width: 46ch; color: var(--muted); font-size: var(--fs-lead); }
.sc__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.sc__stats { display: flex; flex-wrap: wrap; gap: 10px; }
.sc__stats li { display: grid; padding: 12px 18px; border-radius: 18px; background: var(--card-2); }
.sc__stats strong { font-size: 34px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.sc__stats span { margin-top: 4px; color: var(--muted); font-size: 13px; }

/* Web: devices with the real site */
.devices { position: relative; padding: 0 9% 10% 0; }
.browser { overflow: hidden; border-radius: 16px; background: #0d0d0d; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
.browser__bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #2a2a2a; }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.browser__dots i:nth-child(2) { background: #febc2e; }
.browser__dots i:nth-child(3) { background: #28c840; }
.browser__url { flex: 1; max-width: 340px; margin-inline: auto; padding: 4px 12px; border-radius: var(--pill); background: #1a1a1a; color: var(--muted); font-size: 13px; text-align: center; }
.browser__screen, .phone__screen { position: relative; overflow: hidden; }
.browser__screen { aspect-ratio: 16 / 10; }
.browser__screen picture, .phone__screen picture { height: auto; }
.browser__screen img, .phone__screen img { width: 100%; height: auto; transform: translate3d(0, var(--shift, 0px), 0); will-change: transform; }
.phone { position: absolute; right: 0; bottom: 0; width: 26%; aspect-ratio: 9 / 19; padding: 7px; border-radius: 30px; background: #0d0d0d; box-shadow: 0 0 0 2px #333, 0 30px 60px -20px rgba(0, 0, 0, 0.9); }
.phone__screen { height: 100%; border-radius: 23px; }

.sc--reverse .sc__top { grid-template-columns: 7fr 5fr; }
.sc--reverse .sc__info { order: 2; }
.sc--reverse .devices { order: 1; padding: 0 0 10% 9%; }
.sc--reverse .phone { right: auto; left: 0; }
.strip--stories .strip__list { height: clamp(300px, 34vw, 500px); }
.strip--stories .strip__item img { object-position: left top; filter: none; }
.strip--stories .strip__item:hover, .strip--stories .strip__item:focus-visible { flex-grow: 2.2; }
.strip { padding: 0 clamp(22px, 3.4vw, 48px) clamp(22px, 3.4vw, 48px); }
.strip__label { margin-bottom: 14px; color: var(--muted); font-weight: 600; }
.strip__list { display: flex; gap: 10px; height: clamp(220px, 26vw, 380px); }
.strip__item { position: relative; flex: 1; min-width: 0; overflow: hidden; border-radius: 20px; background: var(--card-2); cursor: zoom-in; transition: flex-grow 700ms var(--ease); }
.strip__item:hover, .strip__item:focus-visible { flex-grow: 3.2; }
.strip__item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35); transition: filter 500ms ease, transform 900ms var(--ease); }
.strip__item:hover img, .strip__item:focus-visible img { filter: none; transform: scale(1.03); }
.strip__cap { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 6px 12px; border-radius: var(--pill); background: rgba(0, 0, 0, 0.75); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(8px); transition: opacity 300ms ease, transform 400ms var(--ease); }
.strip__item:hover .strip__cap, .strip__item:focus-visible .strip__cap { opacity: 1; transform: none; }

/* Instagram viewer */
.ig { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: clamp(24px, 4vw, 64px); padding: 0 clamp(22px, 3.4vw, 48px) clamp(22px, 3.4vw, 48px); }
.ig__player { position: relative; display: grid; place-items: center; padding: 12px 8px 28px; }
.ig__phone {
  position: relative; width: clamp(250px, 22vw, 300px); padding: 9px; border-radius: 48px;
  background: linear-gradient(150deg, #4a4a50 0%, #1c1c1f 22%, #121214 60%, #3a3a3f 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), inset 0 0 0 3px #0a0a0b, 0 24px 48px -18px rgba(0, 0, 0, 0.55), 0 8px 18px -10px rgba(0, 0, 0, 0.4);
  animation: phone-float 7s ease-in-out infinite;
}
.ig__phone::before, .ig__phone::after { content: ""; position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #2c2c30, #55555b); }
.ig__phone::before { left: -3px; top: 22%; height: 9%; box-shadow: 0 calc(var(--h, 1) * 64px) 0 #3a3a3f; }
.ig__phone::after { right: -3px; top: 28%; height: 14%; }
@keyframes phone-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
.ig__screen { position: relative; display: grid; grid-template-rows: 40px auto 54px; overflow: hidden; border-radius: 40px; background: #000; }
.ig__status { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 6px 22px 0 26px; color: #ffffff; font-size: 13px; font-weight: 700; letter-spacing: 0.01em; }
.ig__island { position: absolute; left: 50%; top: 9px; width: 78px; height: 23px; border-radius: var(--pill); background: #000; box-shadow: inset 0 0 0 1px #1a1a1a; transform: translateX(-50%); }
.ig__sys { display: inline-flex; align-items: center; gap: 5px; fill: currentColor; }
.ig__story { position: relative; aspect-ratio: 9 / 16; margin: 0 4px; overflow: hidden; border-radius: 16px; background: #111; }
.ig__slides, .ig__slide { position: absolute; inset: 0; margin: 0; }
.ig__slide[hidden] { display: none; }
.ig__slide img { width: 100%; height: 100%; object-fit: cover; }
.ig__slide--contain { background: #000; }
.ig__slide--contain img { object-fit: contain; }
.ig__slides::after { content: ""; position: absolute; inset: 0 0 auto; z-index: 1; height: 90px; background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0)); pointer-events: none; }
.ig__slide:not([hidden]) { animation: ig-in 450ms var(--ease); }
@keyframes ig-in { from { opacity: 0.3; transform: scale(1.03); } }
.ig__bars { position: absolute; z-index: 3; top: 8px; left: 8px; right: 8px; display: flex; gap: 3px; }
.ig__bar { flex: 1; height: 2.5px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, 0.38); }
.ig__bar i { display: block; height: 100%; background: #ffffff; transform: scaleX(var(--p, 0)); transform-origin: left; }
.ig__head { position: absolute; z-index: 3; top: 18px; left: 10px; right: 6px; display: flex; align-items: center; gap: 7px; color: #ffffff; font-size: 12.5px; font-weight: 700; }
.ig__avatar { width: 28px; height: 28px; flex: none; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.9); }
.ig__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ig__group { color: rgba(255, 255, 255, 0.75); font-weight: 500; font-size: 12px; }
.ig__pause { width: 32px; height: 32px; margin-left: auto; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #ffffff; cursor: pointer; transition: background-color 200ms ease; }
.ig__pause:hover { background: rgba(255, 255, 255, 0.18); }
.ig__icon-play, .ig__pause[aria-pressed="true"] .ig__icon-pause { display: none; }
.ig__pause[aria-pressed="true"] .ig__icon-play { display: block; }
.ig__tap { position: absolute; z-index: 2; top: 52px; bottom: 0; width: 38%; border: 0; background: transparent; cursor: pointer; }
.ig__tap--prev { left: 0; cursor: w-resize; }
.ig__tap--next { right: 0; width: 62%; cursor: e-resize; }
.ig__tap:focus-visible { outline-offset: -4px; }
.ig__reply { display: flex; align-items: center; gap: 14px; padding: 0 16px 6px 12px; color: #ffffff; }
.ig__input { flex: 1; padding: 8px 14px; border-radius: var(--pill); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45); color: rgba(255, 255, 255, 0.8); font-size: 12.5px; white-space: nowrap; overflow: hidden; }
.ig__reply .ic { width: 22px; height: 22px; }
.ig__side { display: grid; gap: 14px; align-content: center; min-width: 0; }
.ig__profile { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 8px; }
.ig__ring { width: 88px; height: 88px; flex: none; padding: 3px; border-radius: 50%; background: conic-gradient(from 200deg, #f8f8ff, #9a9aa2, #f8f8ff); }
.ig__ring img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--card); object-fit: cover; }
.ig__who { margin-right: auto; }
.ig__name { font-size: 22px; font-weight: 800; }
.ig__bio { color: var(--muted); font-size: 15px; }
.ig__label { color: var(--muted); font-weight: 700; font-size: 14px; }
.ig__highlights { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 10px; }
.ig__hl { display: grid; justify-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.ig__hl-ring { width: 76px; height: 76px; padding: 3px; overflow: hidden; border-radius: 50%; background: var(--card-3); transition: background-color 250ms ease, transform 400ms var(--spring); }
.ig__hl-ring img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--card); object-fit: cover; object-position: top; }
.ig__hl-ring--icon img { object-position: center; transform: scale(1.06); }
.ig__hl-label { font-weight: 600; font-size: 14px; }
.ig__hl:hover .ig__hl-ring { transform: scale(1.06); }
.ig__hl[aria-pressed="true"] .ig__hl-ring { background: var(--ink); }
.ig__hl[aria-pressed="true"] .ig__hl-label { font-weight: 800; }
.ig__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 520px; }
.ig__post { display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; }
.ig__post img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.ig__post:hover img { transform: scale(1.06); }

/* YouTube series */
.series { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: clamp(24px, 3.4vw, 48px); padding: 0 clamp(22px, 3.4vw, 48px) clamp(22px, 3.4vw, 48px); }
.series__player { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9); }
.series__side { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.series__side .ig__label { display: inline-flex; align-items: center; gap: 8px; }
.series__title { font-size: clamp(28px, 2.6vw, 38px); font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.series__text { color: var(--muted); max-width: 40ch; }
.series__list { display: grid; gap: 8px; width: 100%; margin: 6px 0 8px; padding: 0; list-style: none; }
.series__ep { display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px; border: 0; border-radius: 18px; background: var(--card-2); color: var(--ink); text-align: left; cursor: pointer; transition: background-color 200ms ease; }
.series__ep:hover { background: var(--card-3); }
.series__ep[aria-pressed="true"] { background: var(--ink); color: var(--on-light); }
.series__thumb { position: relative; width: 112px; flex: none; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; }
.series__thumb img { width: 100%; height: 100%; object-fit: cover; }
.series__mini { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, 0.35); color: #ffffff; opacity: 0; transition: opacity 200ms ease; }
.series__ep:hover .series__mini, .series__ep:focus-visible .series__mini { opacity: 1; }
.series__meta { display: grid; gap: 2px; min-width: 0; }
.series__ep-title { font-weight: 800; }
.series__date { font-size: 14px; opacity: 0.7; }

/* Doc: a light card in the project's own colours */
.sc--doc { --doc-ink: #1d2433; background: #e9e8e4; color: var(--doc-ink); }
.sc--doc .sc__chips li { background: rgba(29, 36, 51, 0.08); }
.sc--doc .sc__meta, .sc--doc .sc__summary { color: #4b5160; }
.sc--doc .sc__year { background: var(--doc-ink); color: #ffffff; }
.sc__title--serif { font-family: "Source Serif 4", Georgia, serif; font-weight: 400; letter-spacing: -0.02em; }
.sc--doc .btn--dark { background: var(--doc-ink); color: #ffffff; }
.sc--doc .btn--dark:hover { background: #2c3650; }
.btn--ghost-dark { background: transparent; color: var(--doc-ink); box-shadow: inset 0 0 0 2px var(--doc-ink); }
.btn--ghost-dark:hover { background: var(--doc-ink); color: #ffffff; }
.sc--doc :focus-visible { outline-color: var(--doc-ink); }
.doc-player { min-width: 0; }
.player { position: relative; overflow: hidden; border-radius: 22px; background: #000; aspect-ratio: 16 / 9; }
.sc--doc .player { aspect-ratio: 2 / 1; box-shadow: 0 30px 60px -30px rgba(29, 36, 51, 0.6); }
.player img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.78); transition: transform 1000ms var(--ease), filter 400ms ease; }
.player:hover img { transform: scale(1.04); filter: brightness(0.62); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #ffffff; font-weight: 700; text-decoration: none; text-align: center; padding: 16px; }
.player__icon { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--on-light); font-size: 26px; transition: transform 500ms var(--spring); }
.player__icon .ic { margin-left: 4px; }
.player__play:hover .player__icon, .player__play:focus-visible .player__icon { transform: scale(1.12); }
.doc-quote { margin: 0; padding: 8px clamp(22px, 3.4vw, 48px) 36px; text-align: center; }
.doc-quote p { max-width: 22ch; margin-inline: auto; font-family: "Source Serif 4", Georgia, serif; font-style: italic; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.15; }
.doc-quote__wave { width: 112px; height: auto; margin: 20px auto 0; color: #b4532f; overflow: visible; }
.doc-reel { overflow: hidden; padding-bottom: clamp(22px, 3.4vw, 40px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.doc-reel__track { display: flex; gap: 10px; width: max-content; animation: slide 60s linear infinite; }
.doc-reel:hover .doc-reel__track { animation-play-state: paused; }
.doc-reel__item { display: block; width: clamp(150px, 15vw, 220px); aspect-ratio: 3 / 4; overflow: hidden; border-radius: 16px; }
.doc-reel__item img { width: 100%; height: 100%; object-fit: cover; }

/* Brand: construction, colours, mascot, applications */
.sc--brand, .sc--book, .sc--video, .sc--card { padding: 14px; }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; padding: 4px; border-radius: 24px; background: var(--bg); }
.tab { min-height: 38px; padding: 0 16px; border: 0; border-radius: var(--pill); background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; cursor: pointer; touch-action: manipulation; transition: background-color 200ms ease, color 200ms ease; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--on-light); }
.stage { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: 22px; background: var(--card-2); }
.stage--light { background: #f8f8ff; color: #161616; }
.stage--dark { background: #161616; color: #f8f8ff; }
.panel { position: absolute; inset: 0; display: grid; place-items: center; }
.panel[hidden] { display: none; }
.panel:not([hidden]) { animation: panel-in 500ms var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }
.panel__cover { width: 100%; height: 100%; }
.panel__cover img { width: 100%; height: 100%; object-fit: cover; }
.construct { width: 74%; height: auto; overflow: visible; }
.construct__guides > * { stroke-width: 1.4; vector-effect: non-scaling-stroke; opacity: 0.5; }
.construct__guides .dash { opacity: 0.85; }
.js .construct__guides > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .construct__logo { opacity: 0; transform: scale(0.94); transform-origin: center; transform-box: fill-box; }
.is-drawn .construct__guides > * { stroke-dashoffset: 0; transition: stroke-dashoffset 900ms var(--ease); transition-delay: calc(var(--d) * 45ms); }
.is-drawn .construct__logo { opacity: 1; transform: none; transition: opacity 700ms ease 1000ms, transform 900ms var(--spring) 1000ms; }
.replay { position: absolute; right: 14px; bottom: 14px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(128, 128, 128, 0.18); color: inherit; cursor: pointer; transition: transform 500ms var(--spring), background-color 200ms ease; }
.replay:hover { transform: rotate(-200deg); background: rgba(128, 128, 128, 0.32); }
.swatches { position: absolute; inset: 0; display: flex; flex-direction: column; }
.swatches li { display: flex; flex: 1; }
.swatches li:first-child { flex: 2.2; }
.swatch {
  flex: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 14px 18px;
  border: 0; background: var(--c); color: #161616; font-weight: 800; cursor: copy; text-align: left; transition: flex-grow 500ms var(--ease);
}
.swatches li { transition: flex-grow 500ms var(--ease); }
.swatches li:hover { flex-grow: 2.6; }
.swatch--dark { color: #f8f8ff; }
.swatch__name { font-size: clamp(16px, 1.6vw, 22px); letter-spacing: 0.02em; text-transform: uppercase; }
.swatch__hex { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; opacity: 0.8; }
.panel--mascot img { width: 78%; height: auto; margin: auto; animation: bob 5s ease-in-out infinite; }
.panel--mascot picture { display: grid; place-items: center; }
.feed { position: absolute; inset: 0; overflow: hidden; padding: 0 12px; }
.feed__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-bottom: 8px; animation: feed 36s linear infinite; }
.feed:hover .feed__track { animation-play-state: paused; }
.feed__item { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 10px; }
.feed__item img { width: 100%; height: 100%; object-fit: cover; }
@keyframes feed { to { transform: translateY(-50%); } }
.applied { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; padding: 12px; }
.applied__item { overflow: hidden; border-radius: 12px; background: #222; }
.applied__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 800ms var(--ease); }
.applied__item:hover img { transform: scale(1.06); }
.applied__item--contain { display: grid; place-items: center; padding: 10px; background: #f8f8ff; }
.applied__item--contain img { height: auto; object-fit: contain; }

.stage--video { aspect-ratio: auto; background: none; }

/* Book */
.stage--book { display: grid; place-items: center; background: #2a2a2a; }
.book { position: relative; width: 34%; aspect-ratio: 1168 / 1646; }
.book__cover { position: absolute; inset: 0; z-index: 2; overflow: hidden; border-radius: 4px 8px 8px 4px; box-shadow: -6px 0 0 #d8d6d2, 0 30px 50px -10px rgba(0, 0, 0, 0.75); transform: rotate(-3deg); transition: transform 700ms var(--spring); }
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book__photo { position: absolute; z-index: 1; width: 150%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 10px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.8); transition: transform 900ms var(--spring); }
.book__photo img { width: 100%; height: 100%; object-fit: cover; }
.book__photo:nth-child(1) { left: -25%; top: 6%; transform: translateX(-30%) rotate(-9deg); }
.book__photo:nth-child(2) { left: -25%; top: 52%; transform: translateX(30%) rotate(7deg); }
.sc--book:hover .book__photo:nth-child(1) { transform: translateX(-52%) translateY(-6%) rotate(-12deg); }
.sc--book:hover .book__photo:nth-child(2) { transform: translateX(52%) translateY(6%) rotate(10deg); }
.sc--book:hover .book__cover { transform: rotate(0deg) scale(1.04); }
.rise-ready .stage--book:not(.is-in) .book__photo { transform: none; }

/* Card for new projects */
.stage--cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.stage--cover:hover img { transform: scale(1.05); }

/* ============ v4: immersive ============ */
.chip { display: inline-flex; align-items: center; gap: 12px; padding: 6px 18px 6px 6px; border-radius: var(--pill); background: var(--card); font-weight: 600; font-size: 15px; }
.chip__icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--card-3); }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.nav { grid-template-columns: auto 1fr; }
.nav__end { justify-self: end; }

/* Intro */
.intro { position: relative; }
.intro__stage { position: relative; height: 100svh; min-height: 620px; overflow: hidden; }
.motion .intro { height: 170svh; }
.motion .intro__stage { position: sticky; top: 0; }
.intro__hello { position: absolute; z-index: 3; left: var(--gutter); top: max(96px, 14svh); }
.intro__name { position: absolute; inset: 0; z-index: 1; display: grid; align-content: center; gap: 0; margin: 0; font-size: clamp(72px, min(17.5vw, 30svh), 300px); font-weight: 900; line-height: 0.82; letter-spacing: -0.055em; }
.intro__line { display: block; overflow: hidden; padding: 0 var(--gutter) 0.16em; margin-bottom: -0.16em; }
.intro__line span { display: block; }
.intro__line--b { text-align: right; }
.js .intro__line span { animation: line-up 1100ms var(--ease) both; }
.js .intro__line--b span { animation-delay: 140ms; }
.intro__avatar { position: absolute; z-index: 2; left: 55%; top: 50%; width: clamp(150px, min(19vw, 36svh), 380px); translate: -50% -50%; rotate: -6deg; }
.intro__avatar img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55)); }
.js .intro__avatar { animation: avatar-in 1100ms var(--spring) 350ms both; }
.js .intro__avatar img { animation: bob 4s ease-in-out 1.5s infinite; }
@keyframes avatar-in { from { opacity: 0; scale: 0.6; rotate: 8deg; } }
.intro__lead { position: absolute; z-index: 3; right: var(--gutter); bottom: max(32px, 8svh); max-width: 34ch; color: var(--muted); font-size: var(--fs-lead); }
.intro__scroll { position: absolute; z-index: 3; left: var(--gutter); bottom: max(32px, 8svh); display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; text-decoration: none; }
.intro__scroll:hover { color: var(--ink); }
.intro__mouse { width: 24px; height: 38px; border-radius: 12px; box-shadow: inset 0 0 0 2px currentColor; display: grid; justify-items: center; padding-top: 7px; }
.intro__mouse i { width: 3px; height: 8px; border-radius: 2px; background: currentColor; animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }

/* Manifesto */
.manifesto__stage { display: grid; place-items: center; min-height: 100svh; padding: var(--section) var(--gutter); }
.motion .manifesto { height: 210svh; }
.motion .manifesto__stage { position: sticky; top: 0; height: 100svh; padding-block: 0; }
.manifesto__text { display: grid; gap: 0.3em; max-width: 17em; font-size: clamp(30px, 4.4vw, 72px); font-weight: 800; line-height: 1.04; letter-spacing: -0.025em; }
.manifesto__line { text-wrap: balance; }
.manifesto__text .word { opacity: var(--o, 1); transition: opacity 120ms linear; }

/* Work */
.work__head { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: var(--section) 0 clamp(24px, 4vw, 56px); }
.work__kicker { color: var(--muted); font-weight: 600; }
.work__title { display: flex; align-items: flex-start; gap: 12px; font-size: clamp(56px, 10vw, 168px); font-weight: 900; line-height: 0.9; letter-spacing: -0.045em; }
.work__count { margin-top: 0.4em; padding: 6px 14px; border-radius: var(--pill); background: var(--ink); color: var(--on-light); font-size: 18px; letter-spacing: 0; line-height: 1.2; }
.project { position: relative; }
.scene__stage { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.motion .scene { height: 180svh; }
.motion .scene__stage { position: sticky; top: 0; }
.scene__frame { position: absolute; inset: 0; overflow: hidden; background: var(--card); clip-path: inset(0 round 0); will-change: clip-path; }
.motion .scene__frame { clip-path: inset(17% 21% round 32px); }
.scene__frame picture, .scene__frame img { width: 100%; height: 100%; }
.scene__frame img { object-fit: cover; object-position: var(--cover-pos, 50% 50%); transform-origin: center; will-change: transform; }
.scene__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.78)); opacity: var(--shade, 1); }
.scene__text { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: max(96px, 11svh); display: grid; gap: 14px; justify-items: start; }
.scene__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.scene__meta .pill--static:not(.pill--light) { background: rgba(29, 29, 29, 0.85); }
.scene__title { font-size: clamp(56px, 11vw, 200px); font-weight: 900; line-height: 0.86; letter-spacing: -0.05em; }
.project__body { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: clamp(24px, 3vw, 40px) 0 var(--section); }
.project__body > .sc--half { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-areas: "stage info"; align-items: center; gap: 0 clamp(20px, 3vw, 40px); }
.project__body > .sc--half:has(.tabs) { grid-template-areas: "tabs info" "stage info"; }
.project__body > .sc--half > .tabs { grid-area: tabs; justify-self: start; }
.project__body > .sc--half > .stage { grid-area: stage; }
.project__body > .sc--half > .sc__info--below { grid-area: info; padding: 12px; }
.project .section { width: 100%; }

/* About */
.about { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding-top: var(--section); }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.about__intro { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 40px; margin-bottom: 20px; }
.about__title { font-size: clamp(48px, 7vw, 112px); font-weight: 900; line-height: 0.9; letter-spacing: -0.04em; }
.about__text { grid-column: 1; max-width: 38ch; color: var(--muted); font-size: var(--fs-lead); }
.hobbies { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 22px; }
.hobbies li { display: grid; justify-items: center; gap: 10px; font-weight: 600; }
.hobbies__icon { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--on-light); font-size: 30px; transition: transform 500ms var(--spring); }
.hobbies li:hover .hobbies__icon { transform: rotate(-10deg) scale(1.08); }
.about__col { display: grid; gap: 20px; }
.about__sub { margin-bottom: 22px; font-size: var(--fs-h3); font-weight: 800; }
.tools { display: grid; gap: 14px; }
.tools__item { display: flex; align-items: center; gap: 14px; }
.tools__tile { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--bg); font-weight: 800; }
.tools__item strong { display: block; }
.tools__use { color: var(--muted); font-size: 15px; }
.tools__langs { display: flex; gap: 6px; margin-top: 22px; }
.tools__langs .pill--static { background: var(--card-3); }

/* Dock + index */
.dock { position: fixed; z-index: 55; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); }
.dock__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 7px 0 18px; border: 0; border-radius: var(--pill); background: rgba(29, 29, 29, 0.86); color: var(--ink); font-weight: 700; cursor: pointer; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform 300ms var(--spring); }
.dock__btn:hover { transform: translateY(-2px); }
.dock__now { padding: 8px 14px; border-radius: var(--pill); background: var(--ink); color: var(--on-light); font-size: 14px; white-space: nowrap; }
.dock__now:empty { display: none; }
.dock__btn:has(.dock__now:empty) { padding-right: 20px; }
.index { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bg, #000); color: var(--ink); overscroll-behavior: contain; }
.index::backdrop { background: transparent; }
.index[open] { animation: fade-in 300ms ease; }
.index__inner { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); min-height: 100%; margin: 0 auto; padding: clamp(24px, 5vh, 56px) 0 100px; display: flex; flex-direction: column; gap: 18px; }
.index__head { display: flex; align-items: center; justify-content: space-between; }
.index__label { color: var(--muted); font-weight: 700; }
.index__list { display: grid; }
.index__item { display: grid; grid-template-columns: 3ch 1fr auto; align-items: baseline; gap: 20px; padding: 10px 0; text-decoration: none; transition: opacity 250ms ease; }
.index__num { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.index__name { font-size: clamp(30px, min(5.4vw, 7.4vh), 84px); font-weight: 900; line-height: 1; letter-spacing: -0.035em; transition: transform 400ms var(--ease); }
.index__disc { color: var(--muted); text-align: right; }
.index__list:hover .index__item:not(:hover) { opacity: 0.3; }
.index__item:hover .index__name, .index__item:focus-visible .index__name { transform: translateX(14px); }
.index__more { display: flex; flex-wrap: wrap; gap: 8px; }
.index__more .pill { text-decoration: none; }
.index[open] .index__item { animation: index-in 600ms var(--ease) both; }
.index[open] li:nth-child(2) .index__item { animation-delay: 40ms; }
.index[open] li:nth-child(3) .index__item { animation-delay: 80ms; }
.index[open] li:nth-child(4) .index__item { animation-delay: 120ms; }
.index[open] li:nth-child(5) .index__item { animation-delay: 160ms; }
.index[open] li:nth-child(6) .index__item { animation-delay: 200ms; }
.index[open] li:nth-child(7) .index__item { animation-delay: 240ms; }
@keyframes index-in { from { opacity: 0; transform: translateY(24px); } }
html:has(dialog.index[open]) { overflow: hidden; }
.footer { padding-bottom: 96px; }

@media (max-width: 900px) {
  .project__body > .sc--half, .project__body > .sc--half:has(.tabs) { grid-template-columns: 1fr; grid-template-areas: "tabs" "stage" "info"; }
  .project__body > .sc--half:not(:has(.tabs)) { grid-template-areas: "stage" "info"; }
  .about__grid, .about__intro { grid-template-columns: 1fr; }
  .hobbies { grid-column: 1; grid-row: auto; }
  .index__item { grid-template-columns: 3ch 1fr; }
  .index__disc { grid-column: 2; text-align: left; }
}
@media (max-width: 640px) {
  .intro__name { font-size: 24vw; align-content: start; padding-top: 150px; }
  .intro__lead { left: var(--gutter); right: var(--gutter); bottom: 92px; }
  .intro__avatar { left: 50%; top: auto; bottom: 200px; width: min(46vw, 26svh); translate: -50% 0; }
  .intro__hello { top: 92px; }
  .intro__scroll { display: none; }
  .motion .scene__frame { clip-path: inset(14% 6% round 24px); }
  .dock__btn > span:first-of-type { display: none; }
}

/* Quick view: a full-screen case sheet, info pinned beside a wall of work */
.pv {
  width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0;
  padding: 0; border: 0; background: var(--bg); color: var(--ink); overflow: auto; overscroll-behavior: contain;
}
.pv::backdrop { background: var(--bg); }
.pv[open] { animation: pv-in 500ms var(--ease); }
@keyframes pv-in { from { opacity: 0; transform: translateY(32px); } }
@keyframes fade-in { from { opacity: 0; } }
.pv__close { position: sticky; z-index: 3; top: 16px; float: right; margin: 16px 16px 0 0; width: 52px; height: 52px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--card-3); color: var(--ink); cursor: pointer; transition: background-color 200ms ease, color 200ms ease, transform 300ms var(--spring); }
.pv__close:hover { background: var(--ink); color: var(--on-light); transform: rotate(90deg); }
.pv__inner { clear: both; width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin: 0 auto; padding: 8px 0 clamp(48px, 8vh, 96px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); align-items: start; gap: 32px clamp(32px, 4vw, 64px); }
.pv__info { position: sticky; top: var(--pv-pin, 24px); display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pv__cats { display: flex; flex-wrap: wrap; gap: 6px; }
.pv__cats .pill--static:not(.pill--light) { background: var(--card-3); }
.pv__title { font-size: clamp(44px, 5.4vw, 88px); font-weight: 900; line-height: 0.92; letter-spacing: -0.04em; }
.pv__summary { font-size: var(--fs-lead); font-weight: 600; line-height: 1.4; }
.pv__facts { display: grid; gap: 10px; padding: 16px 18px; border-radius: 18px; background: var(--card); }
.pv__facts > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; }
.pv__facts dt { color: var(--muted); font-size: 15px; }
.prose { display: grid; gap: 0.9em; color: #d9d9e0; }
.prose p { margin: 0; }
.pv__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pv__media { columns: 2; column-gap: 14px; min-width: 0; }
.pv__media > :first-child { column-span: all; margin-bottom: 14px; }
.pv__media--single { columns: 1; }
.pv__video { margin-bottom: 14px; }
.pv__shot { break-inside: avoid; margin: 0 0 14px; }
.pv__shot img { display: block; width: 100%; height: auto; border-radius: 18px; }
.pv__media > .pv__shot:first-child img { width: auto; max-width: 100%; max-height: 84svh; margin-inline: auto; }
.pv__shot figcaption { padding: 10px 4px 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.pv[open] .pv__shot, .pv[open] .pv__video { animation: shot-in 700ms var(--ease) both; }
.pv[open] .pv__media > :nth-child(2) { animation-delay: 80ms; }
.pv[open] .pv__media > :nth-child(3) { animation-delay: 140ms; }
.pv[open] .pv__media > :nth-child(n + 4) { animation-delay: 200ms; }
@keyframes shot-in { from { opacity: 0; transform: translateY(28px); } }
html:has(dialog.pv[open]) { overflow: hidden; }
html:not(.js) .pv { display: block; position: static; margin: 24px 0 0; width: auto; max-height: none; }

/* Experience */
.path { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.timeline { display: grid; gap: 26px; }
.timeline__item { display: grid; justify-items: start; gap: 6px; padding-left: 18px; border-left: 3px solid var(--ink); }
.timeline__item h4 { margin-top: 6px; font-size: 20px; font-weight: 800; line-height: 1.2; }
.timeline__place { color: var(--muted); font-size: 15px; }
.timeline__text { margin-top: 4px; color: #d9d9e0; }

.chip__icon .sigla { width: 16px; height: auto; }


/* CV */
.cv { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(24px, 5vw, 72px); padding: clamp(28px, 4vw, 56px); border-radius: var(--r-xl); overflow: hidden; }
.cv__text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.cv__text h2 { font-size: var(--fs-h2); font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.cv__text > p { max-width: 44ch; color: var(--muted); font-size: var(--fs-lead); }
.cv__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.cv__meta li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--pill); background: var(--card-3); font-weight: 600; font-size: 14px; }
.cv__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.cv .btn--dark { background: var(--card-3); }
.cv__preview { justify-self: center; width: min(100%, 300px); perspective: 900px; text-decoration: none; }
.cv__sheet { display: block; overflow: hidden; aspect-ratio: 1737 / 3105; border-radius: 14px; background: #000; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px #2e2e2e; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(2deg); transition: transform 500ms var(--ease); }
.cv__preview:hover .cv__sheet, .cv__preview:focus-visible .cv__sheet { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) rotate(0deg) scale(1.03); }
.cv__sheet img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-xl); }
.contact__main { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.contact__avatar { width: 112px; height: auto; transform: rotate(-6deg); transition: transform 500ms var(--spring); }
.contact__avatar:hover { transform: rotate(6deg) scale(1.06); }
.contact__main h2 { font-size: var(--fs-h2); font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.contact__main > p { max-width: 46ch; color: var(--muted); font-size: var(--fs-lead); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.contact__actions .is-copied { background: var(--live); color: var(--on-light); }
.contact__list { display: grid; align-content: center; gap: 18px; }
.contact__list > li { display: flex; align-items: center; gap: 14px; overflow-wrap: anywhere; }
.contact__list a { text-decoration: none; font-weight: 600; }
.contact__list a:hover { text-decoration: underline; }
.contact__label { display: block; color: var(--muted); font-size: 13px; }
.contact__social { flex-direction: column; align-items: flex-start !important; gap: 10px !important; margin-top: 6px; }
.contact__icons { display: flex; gap: 10px; }

/* Footer */
.footer { display: flex; justify-content: space-between; gap: 16px; padding-block: 48px 40px; color: var(--muted); font-size: var(--fs-small); }
.footer a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Entrances */
.rise-ready [data-rise] { opacity: 0; transform: translateY(28px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.rise-ready [data-rise].is-in { opacity: 1; transform: none; }
.rise-ready .service[data-rise].is-in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

@media (max-width: 900px) {
  .showcases { grid-template-columns: 1fr; }
  .sc__top, .sc--reverse .sc__top, .ig, .series { grid-template-columns: 1fr; }
  .ig__player { justify-self: stretch; }
  .ig__phone { width: min(70vw, 290px); }
  .sc--reverse .sc__info { order: 0; }
  .sc--reverse .devices { padding: 0 9% 10% 0; }
  .sc--reverse .phone { left: auto; right: 0; }
  .strip--stories .strip__list { height: 420px; }
  .strip--stories .strip__item { flex: 0 0 44%; }
  .strip__list { overflow-x: auto; scroll-snap-type: x mandatory; height: 300px; }
  .strip__item { flex: 0 0 62%; scroll-snap-align: start; }
  .strip__item:hover, .strip__item:focus-visible { flex-grow: 0; }
  .strip__cap { opacity: 1; transform: none; }
  .nav { grid-template-columns: auto 1fr; }
  .nav__end { justify-self: end; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; }
  .hero__visual { width: min(100%, 420px); margin-top: 24px; }
  .section__head, .skills, .path, .contact, .cv, .pv__inner { grid-template-columns: 1fr; }
  .pv__info { position: static; }
  .section__head p { justify-self: start; }
}

@media (max-width: 640px) {
  .pv__media { columns: 1; }
  .pv__close { margin: 12px 12px 0 0; }
  .nav__brand span { display: none; }
  .services { grid-template-columns: 1fr; }
  .tabs { display: flex; }
  .tab { flex: 1 1 auto; padding: 0 12px; }
  .stat { min-width: 0; flex: 1 1 30%; padding: 12px 14px; }
  .stat strong { font-size: 32px; }
  .float--place { left: -6px; }
  .float--status { right: -6px; }
  .float--avatar { right: -6px; width: 96px; }
  .langs { grid-template-columns: 1fr 1fr; }
}

@media (hover: none) {
  .service { transform: none !important; }
}

/* Phone layout */
@media (max-width: 640px) {
  .intro__stage { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 96px var(--gutter) 104px; min-height: 0; }
  .intro__hello, .intro__name, .intro__avatar, .intro__lead { position: static; inset: auto; }
  .intro__name { display: block; padding: 0; font-size: 25vw; }
  .intro__line { padding-inline: 0; }
  .intro__avatar { align-self: center; width: min(44vw, 24svh); translate: none; }
  .intro__lead { max-width: none; font-size: 17px; }
  .motion .intro { height: 140svh; }
  .motion .manifesto { height: 170svh; }
  .motion .scene { height: 135svh; }
  .scene__title { font-size: clamp(40px, 12vw, 64px); text-wrap: balance; }
  .scene__meta { flex-wrap: nowrap; }
  .scene__meta .pill--light { display: none; }
  .scene__meta .pill { font-size: 12px; white-space: nowrap; }
  .tabs { display: flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; min-height: 44px; }
  .sc__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .sc__stats li { padding: 12px; }
  .sc__stats strong { font-size: 28px; }
  .sc__stats span { font-size: 12px; }
  .ig__pause { flex: none; width: 44px; height: 44px; }
  .index__item { row-gap: 2px; padding: 8px 0; }
  .lang a { padding-block: 11px; }
  .contact__list a, .footer a { min-height: 44px; display: inline-flex; align-items: center; }
  .dock { transition: transform 400ms var(--ease), opacity 250ms ease; }
  .dock.is-away { transform: translate(-50%, 160%); opacity: 0; pointer-events: none; }
  .pv__inner { gap: 20px; }
  .pv__media { display: contents; }
  .pv__media > * { order: 1; margin: 0; }
  .pv__media > :first-child { order: -1; }
  .pv__media > .pv__shot:first-child img { max-height: 62svh; }
}
.pv__title:focus, .index__label:focus { outline: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .marquee__track { animation: none; }
  .ig__phone { animation: none; }
  .rise-ready [data-rise] { transform: none; }
  .service, .hero__photo, .float { transform: none !important; translate: none !important; }
  .feed__track, .doc-reel__track { animation: none; }
  .browser__screen img, .phone__screen img { transform: none; }
}

/* 404 */
.notfound { display: grid; justify-items: start; align-content: center; gap: 18px; min-height: 100svh; padding: 120px var(--gutter); }
.notfound__code { font-size: clamp(120px, 28vw, 380px); font-weight: 900; line-height: 0.8; letter-spacing: -0.055em; color: #1d1d1d; }
.notfound__title { font-size: var(--fs-h3); font-weight: 800; }
.notfound__text { max-width: 36ch; color: var(--muted); font-size: var(--fs-lead); }
