@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --paper: #0d0d0d;
  --ink: #f4f3ee;
  --muted: #a3a29c;
  --accent: #ff5a36;
  --on-accent: #0d0d0d;
  --frame: #1a1a1a;
  --gutter: clamp(16px, 3vw, 40px);
  --max: 1360px;
  --down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M8 2v11M3 8.5l5 5 5-5'/%3E%3C/svg%3E");
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M3 13 13 3M5 3h8v8'/%3E%3C/svg%3E");
  color-scheme: dark;
}

:root[data-theme="light"] {
  --paper: #f4f3ee;
  --ink: #0d0d0d;
  --muted: #5f5e59;
  --accent: #ff3b14;
  --frame: #0d0d0d;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.status :focus-visible {
  outline-color: var(--on-accent);
}


h1,
h2,
h3,
p,
ul {
  margin: 0;
}

p,
li {
  text-wrap: pretty;
}

ul {
  padding: 0;
  list-style: none;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: inline-flex;
  text-decoration: none;
}

.brand:hover {
  color: inherit;
}

.logo {
  display: block;
  height: 30px;
  width: auto;
}

.logo-word {
  fill: currentColor;
}

.logo-caret {
  fill: var(--accent);
}

.logo-cover {
  fill: var(--paper);
  transform: scaleX(0);
  transform-origin: 186px 0;
}

html.motion .brand:not(.typed) .logo-cover {
  transform: scaleX(1);
}

html.motion .brand:not(.typed) .logo-caret {
  transform: translateX(-186px);
}

.brand:hover .logo-caret,
.brand:focus-visible .logo-caret {
  animation: blink 1s steps(1) infinite;
}

html.motion .brand.typing .logo-cover,
html.motion .brand:hover .logo-cover,
html.motion .brand:focus-visible .logo-cover {
  animation: logo-type-cover 0.5s steps(4) both;
}

html.motion .brand.typing .logo-caret {
  animation: logo-type-caret 0.5s steps(4) both;
}

html.motion .brand:hover .logo-caret,
html.motion .brand:focus-visible .logo-caret {
  animation: logo-type-caret 0.5s steps(4) both, blink 1s steps(1) 0.5s infinite;
}

html.motion .brand.typing .logo-cover,
html.motion .brand.typing .logo-caret {
  animation-delay: 0.25s;
}

@keyframes logo-type-cover {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

@keyframes logo-type-caret {
  from {
    transform: translateX(-186px);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
  font-size: 0.9375rem;
  font-weight: 500;
}

.nav a {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
}

.nav-links a,
.lang-switch a {
  padding-bottom: 2px;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat;
  transition: background-size 0.25s ease;
}

.nav-links a:hover,
.lang-switch a:hover {
  color: var(--ink);
  background-size: 100% 3px;
}

.lang-switch {
  display: flex;
  gap: 14px;
  font-weight: 700;
}

.lang-switch a:not(.is-current) {
  color: var(--muted);
}

.lang-switch .is-current::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  background: var(--accent);
}

.theme-toggle {
  display: inline-flex;
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle svg {
  width: 22px;
  height: 22px;
  transition: transform 0.5s cubic-bezier(0.6, 0, 0.2, 1);
}

.theme-toggle[aria-pressed="true"] svg {
  transform: rotate(180deg);
}

.theme-toggle:hover {
  color: var(--accent);
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-new(root) {
  z-index: 2;
}

.hero {
  padding: clamp(32px, 6vw, 72px) 0 0;
}

.hero h1 {
  font-size: clamp(3.4rem, 13vw, 12rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.hero h1 > span {
  display: block;
}

.hero h1 .ch {
  transition: font-stretch 0.9s ease, font-weight 0.9s ease, color 0.9s ease;
}

.hero h1 .ch:hover {
  font-stretch: 100%;
  color: var(--accent);
  transition-duration: 0.12s;
}

.hero h1 > span:last-child::after {
  content: "";
  display: inline-block;
  width: 0.24em;
  height: 0.68em;
  margin-left: 0.07em;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
  row-gap: 24px;
}

.hero-grid {
  margin-top: clamp(32px, 5vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}

.hero-text {
  grid-column: 1 / 9;
  font-size: clamp(1.35rem, 2.5vw, 2.1rem);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.status {
  grid-column: 9 / 13;
  align-self: start;
  padding: 18px 20px 20px;
  background: var(--accent);
  color: var(--on-accent);
}

.status strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status a:hover {
  color: var(--on-accent);
  text-decoration-thickness: 3px;
}

.cv-btn {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-top: 18px;
  padding-left: 16px;
  overflow: hidden;
  border: 2px solid var(--on-accent);
  background: var(--on-accent);
  color: #f4f3ee;
  text-decoration: none;
  transition: color 0.35s cubic-bezier(0.7, 0, 0.2, 1);
}

.cv-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #f4f3ee;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.7, 0, 0.2, 1);
}

.cv-label {
  align-self: center;
  padding: 14px 0;
  font-size: 1.25rem;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.cv-meta {
  align-self: center;
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
  opacity: 0.6;
}

.cv-arrow {
  position: relative;
  flex: none;
  overflow: hidden;
  width: 52px;
}

.cv-arrow-track {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
  height: 200%;
  transition: transform 0.35s cubic-bezier(0.7, 0, 0.2, 1);
}

.cv-arrow svg {
  width: 26px;
  height: 26px;
  place-self: center;
  fill: currentColor;
}

.cv-btn:hover,
.cv-btn:focus-visible {
  color: var(--on-accent);
}

.cv-btn:hover::before,
.cv-btn:focus-visible::before {
  transform: scaleX(1);
}

.cv-btn:hover .cv-arrow-track,
.cv-btn:focus-visible .cv-arrow-track {
  transform: translateY(-50%);
}

.figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--ink);
}

.figures li {
  padding: 20px var(--gutter) 0 0;
}

.figures li + li {
  padding-left: var(--gutter);
  border-left: 1px solid var(--ink);
}

.figures strong {
  display: block;
  font-size: clamp(2.25rem, 6vw, 5rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.figures span {
  display: block;
  margin-top: 8px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.section {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  padding-top: 24px;
  border-top: 2px solid var(--ink);
}

.section-label {
  z-index: 2;
  grid-column: 1 / 4;
  position: static;
  align-self: start;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  font-stretch: 85%;
  letter-spacing: -0.01em;
}

.section-label span {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--accent);
}

.section-body {
  grid-column: 4 / 13;
}

.side {
  position: absolute;
  inset: 0;
  grid-column: 1 / 4;
  grid-row: 1;
  padding-top: 56px;
  overflow: clip;
  pointer-events: none;
  container-type: inline-size;
}

.side-sticky {
  position: sticky;
  top: 24px;
  height: min(calc(100vh - 48px), 100%);
  padding-right: 36px;
}

.side-sticky::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 16px;
  background-image:
    repeating-linear-gradient(to bottom, var(--ink) 0 2px, transparent 2px 50px),
    repeating-linear-gradient(to bottom, var(--ink) 0 1px, transparent 1px 10px);
  background-size: 16px 100%, 8px 100%;
  background-position: right top;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(transparent, #000 10%, #000 90%, transparent);
}

.side-num {
  display: block;
  font-size: 56cqw;
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  background-image: linear-gradient(to top, var(--accent) calc(var(--p, 0) * 100%), transparent 0);
  -webkit-background-clip: text;
  background-clip: text;
}

.side-caret {
  position: absolute;
  right: 0;
  top: calc(var(--p, 0) * (100% - 8px));
  width: 32px;
  height: 8px;
  background: var(--accent);
}

.project + .project {
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--ink);
}

.project-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}

.project h3 {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.9375rem;
  color: var(--muted);
}

.shot {
  margin: 24px 0 0;
  background: var(--frame);
  border: 1px solid var(--ink);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
}

a.shot:hover {
  border-color: var(--accent);
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

a.shot {
  display: block;
}

.project-grid {
  margin-top: 24px;
}

.lead {
  grid-column: 1 / 6;
  font-size: 1.25rem;
  line-height: 1.35;
  font-weight: 500;
}

.points {
  grid-column: 6 / 13;
}

.points li {
  padding: 10px 0;
  border-top: 1px solid var(--ink);
}

.points li:first-child {
  padding-top: 0;
  border-top: 0;
}

.tags {
  position: relative;
  grid-column: 1 / -1;
  font-size: 0.9375rem;
  color: var(--muted);
}

.slashed {
  display: flex;
  flex-wrap: wrap;
}

.row-body {
  position: relative;
}

.tech {
  cursor: pointer;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.roll {
  display: inline-flex;
  overflow: hidden;
  line-height: 1.2;
}

.roll .c {
  position: relative;
  display: inline-block;
  white-space: pre;
  transition: transform 0.3s cubic-bezier(0.7, 0, 0.2, 1);
  transition-delay: calc(var(--i) * 12ms);
}

.roll .c::after {
  content: attr(data-c);
  position: absolute;
  top: 100%;
  left: 0;
  color: var(--accent);
}

.tech:hover .c {
  transform: translateY(-100%);
}

.tile {
  position: absolute;
  top: -20px;
  right: 0;
  bottom: -20px;
  display: grid;
  align-content: space-between;
  justify-items: start;
  width: 132px;
  padding: 12px;
  background: var(--accent);
  color: var(--on-accent);
  clip-path: inset(100% 0 0 0);
  pointer-events: none;
  transition: clip-path 0.3s cubic-bezier(0.7, 0, 0.2, 1);
}

.tile svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.tile svg.flag {
  width: 56px;
  height: 37px;
}

.tile b {
  font-size: 0.75rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tech:hover .tile {
  clip-path: inset(0);
}

.tags .tile {
  display: flex;
  align-items: center;
  gap: 8px;
  top: 0;
  bottom: 0;
  width: auto;
  padding: 0 12px;
}

.tags .tile svg {
  width: 18px;
  height: 18px;
}

.tags .tile strong {
  font-size: 1.125rem;
}

.slashed.row-title {
  padding-right: 136px;
}

.slashed li {
  transition: opacity 0.25s;
}

.slashed:has(.tech:hover) li:not(:has(.tech:hover)) {
  opacity: 0.22;
}

.slashed li:not(:last-child)::after {
  content: "/";
  margin: 0 0.6em;
  color: var(--accent);
}

.out::after,
.contact-link::after {
  content: "";
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  margin-left: 0.35em;
  background: currentColor;
  mask: var(--arrow) center / contain no-repeat;
  -webkit-mask: var(--arrow) center / contain no-repeat;
}

.link {
  grid-column: 1 / -1;
  font-weight: 600;
}

.rows > li {
  display: grid;
  grid-template-columns: 11rem 1fr;
  column-gap: var(--gutter);
  row-gap: 4px;
  padding: 20px 0;
  border-top: 1px solid var(--ink);
}

.rows > li:first-child {
  padding-top: 0;
  border-top: 0;
}

.row-key {
  font-size: 0.9375rem;
  font-weight: 600;
}

.row-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-stretch: 85%;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.row-body > * + * {
  margin-top: 8px;
}

.row-body .note {
  padding-right: 136px;
  color: var(--muted);
}

.demos {
  margin-top: 12px;
}

.demos summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.demos summary::-webkit-details-marker {
  display: none;
}

.demos summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid currentColor;
  font-weight: 700;
  line-height: 1;
}

.demos[open] summary::before {
  content: "−";
}

.demos summary:hover {
  color: var(--accent);
}

.demos ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px var(--gutter);
  margin-top: 12px;
}

.demos li {
  padding: 10px 0;
  border-top: 1px solid var(--ink);
}

.demos strong {
  display: block;
}

.demos span {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
}

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 10px 0;
  overflow: hidden;
  background-color: #0d0d0d;
  background-image:
    linear-gradient(rgba(244, 243, 238, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 243, 238, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  border: 1px solid var(--ink);
  color: #f4f3ee;
}

.player:fullscreen {
  aspect-ratio: auto;
  border: 0;
}

.player-frame {
  position: absolute;
  inset: -72px 0;
}

.player-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.player::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(transparent 35%, rgba(13, 13, 13, 0.9));
  pointer-events: none;
  transition: opacity 0.4s;
}

.player-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #f4f3ee;
  stroke-width: 3;
  stroke-linejoin: miter;
  stroke-linecap: square;
  transition: opacity 0.4s;
}

.player-poster .poster-ac,
.player-poster .poster-node {
  fill: #0d0d0d;
  transition: fill 0.25s;
}

.player-poster .poster-ac {
  stroke: var(--accent);
}

.player-poster .poster-acline {
  stroke: var(--accent);
}

.player-poster .poster-lt {
  fill: #f4f3ee;
  stroke: none;
}

.player-poster .poster-dim {
  opacity: 0.45;
}

.player-poster .poster-tx {
  fill: var(--accent);
  stroke: none;
  font-family: inherit;
  font-weight: 800;
  font-stretch: 75%;
  transition: fill 0.25s;
}

.player-poster.soft {
  stroke-linejoin: round;
  stroke-linecap: round;
}

.player-poster .poster-ring {
  opacity: 0;
  vector-effect: non-scaling-stroke;
  stroke: var(--accent);
  transform-origin: 160px 72px;
}

.player-poster .poster-found {
  stroke: #f4f3ee;
  opacity: 0.45;
  transition: stroke 0.3s 0.2s, opacity 0.3s 0.2s;
}

.player-poster .pad,
.player-poster .badge,
.player-poster .lens,
.player-poster .letter,
.player-poster .ribbon,
.player-poster .bid {
  transition: transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.3s;
}

.player-poster .pad {
  transform-origin: 140px 84px;
}

.player-poster .badge {
  transform-origin: 224px 44px;
}

.player-poster .gavel {
  transform-origin: 112px 104px;
}

.player-poster .bid-new {
  opacity: 0;
}

.player-poster .links {
  transition: stroke 0.3s, opacity 0.3s;
}

.player:hover .p-games .pad,
.player:focus-within .p-games .pad {
  transform: rotate(-7deg) translateY(2px);
}

.player:hover .p-games .badge,
.player:focus-within .p-games .badge {
  transform: scale(1.14) rotate(8deg);
}

.player:hover .p-search .lens,
.player:focus-within .p-search .lens {
  transform: translateX(88px);
}

.player:hover .p-search .poster-found,
.player:focus-within .p-search .poster-found {
  stroke: var(--accent);
  opacity: 1;
}

.player:hover .p-mail .letter,
.player:focus-within .p-mail .letter {
  transform: translateY(-14px);
}

.player:hover .p-commerce .bid-old,
.player:focus-within .p-commerce .bid-old {
  opacity: 0;
}

.player:hover .p-commerce .bid-mid,
.player:focus-within .p-commerce .bid-mid {
  transform: translateY(42px);
  opacity: 0.45;
}

.player:hover .p-commerce .bid-mid .poster-ac,
.player:focus-within .p-commerce .bid-mid .poster-ac {
  fill: #0d0d0d;
}

.player:hover .p-commerce .bid-mid .poster-tx,
.player:focus-within .p-commerce .bid-mid .poster-tx {
  fill: var(--accent);
}

.player:hover .p-commerce .bid-new,
.player:focus-within .p-commerce .bid-new {
  opacity: 1;
}

.player:hover .p-network .links,
.player:focus-within .p-network .links {
  stroke: var(--accent);
  opacity: 0.9;
}

html.motion .player:hover .p-wiki .write,
html.motion .player:focus-within .p-wiki .write {
  stroke-dasharray: 1;
  animation: poster-write 0.9s ease-out both;
}

html.motion .player:hover .p-commerce .gavel,
html.motion .player:focus-within .p-commerce .gavel {
  animation: poster-knock 1.2s ease-in-out infinite;
}

html.motion .player:hover .p-network .poster-ring,
html.motion .player:focus-within .p-network .poster-ring {
  animation: poster-ripple 1.4s ease-out infinite;
}

@keyframes poster-write {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes poster-knock {
  0%,
  100% {
    transform: rotate(0);
  }
  35% {
    transform: rotate(-16deg);
  }
  50% {
    transform: rotate(5deg);
  }
  62% {
    transform: rotate(-2deg);
  }
}

@keyframes poster-ripple {
  from {
    opacity: 0.9;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(2.6);
  }
}

.player:hover .poster-ac,
.player:focus-within .poster-ac {
  fill: var(--accent);
}

.player:hover .poster-tx,
.player:focus-within .poster-tx {
  fill: #0d0d0d;
}

.player .player-title {
  display: block;
  color: #f4f3ee;
  position: absolute;
  bottom: 14px;
  left: 16px;
  right: 96px;
  z-index: 1;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 0.3s;
}

.player-big {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 64px;
  height: 64px;
  border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 1.5v7L8.5 5z' fill='%230d0d0d'/%3E%3C/svg%3E") center / 50% no-repeat, var(--accent);
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.3s;
}

.player-big:hover {
  background-color: #f4f3ee;
}

.player-big.is-loading {
  animation: blink 0.8s steps(1) infinite;
}

.player.is-started::before,
.player.is-started .player-title,
.player.is-started .player-poster,
.player.is-started .player-big {
  opacity: 0;
  pointer-events: none;
}

.player-shield {
  position: absolute;
  inset: 0 0 48px;
  z-index: 1;
  display: none;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.player.is-started .player-shield {
  display: block;
}

.player-bar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 48px;
  background: #0d0d0d;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.player.is-started .player-bar {
  opacity: 1;
  pointer-events: auto;
}

.player.is-playing:not(:hover):not(:focus-within) .player-bar {
  opacity: 0;
}

.player-bar button {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}

.player-bar button:hover {
  color: var(--accent);
}

.player-bar .player-toggle {
  width: 48px;
  background: var(--accent);
  color: #0d0d0d;
}

.player-bar .player-toggle:hover {
  background: #f4f3ee;
  color: #0d0d0d;
}

.player-bar svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.player-track {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  height: 48px;
  margin: 0 16px;
  cursor: pointer;
  touch-action: none;
}

.player-track::before,
.player-track i {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 4px;
  background: #3a3a38;
  transition: height 0.15s;
}

.player-track i {
  background: var(--accent);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
}

.player-track::after {
  content: "";
  position: absolute;
  left: calc(var(--p, 0) * (100% - 8px));
  width: 8px;
  height: 20px;
  background: var(--accent);
}

.player-track:hover::before,
.player-track:hover i,
.player-track:focus-visible::before,
.player-track:focus-visible i {
  height: 8px;
}

.player .player-time {
  color: #f4f3ee;
  min-width: 5.5em;
  padding-right: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: right;
}

.contact-intro {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.contact-list {
  margin-top: 32px;
}

.contact-list li {
  border-top: 1px solid var(--ink);
}

.contact-list li:last-child {
  border-bottom: 1px solid var(--ink);
}

.contact-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 12px;
  overflow: hidden;
  text-decoration: none;
}

.contact-link[download]::after {
  -webkit-mask-image: var(--down);
  mask-image: var(--down);
}

.contact-link > svg {
  flex: none;
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.contact-label {
  font-size: 1rem;
  font-weight: 600;
}

.contact-link strong {
  flex: 1 1 auto;
  min-width: 0;
  font-size: clamp(1.5rem, 4.5vw, 3.25rem);
  font-weight: 700;
  font-stretch: 75%;
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
  text-align: right;
}

.marquee {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-size: clamp(1.75rem, 5.5vw, 3.75rem);
  font-weight: 800;
  font-stretch: 75%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 7s linear infinite paused;
}

.contact-list li:nth-child(even) .marquee-track {
  animation-direction: reverse;
}

.marquee-group {
  display: flex;
  flex: none;
  align-items: center;
}

.marquee-group > span {
  white-space: nowrap;
}

.marquee-group svg {
  flex: none;
  width: 0.7em;
  height: 0.7em;
  margin: 0 0.6em;
  fill: currentColor;
}

.contact-link:hover .marquee,
.contact-link:focus-visible .marquee {
  clip-path: inset(0);
}

.contact-link:hover .marquee-track,
.contact-link:focus-visible .marquee-track {
  animation-play-state: running;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(64px, 9vw, 120px);
  padding: 20px 0 32px;
  border-top: 2px solid var(--ink);
  font-size: 0.9375rem;
}

.legal {
  max-width: 62ch;
}

.legal p + p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.to-top {
  display: grid;
  flex: none;
  place-items: start center;
  overflow: hidden;
  width: 56px;
  height: 56px;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 0 no-repeat;
  transition: background-size 0.35s cubic-bezier(0.7, 0, 0.2, 1), color 0.35s;
}

.to-top-track {
  display: grid;
  transition: transform 0.35s cubic-bezier(0.7, 0, 0.2, 1);
}

.to-top svg {
  width: 30px;
  height: 30px;
  margin: 11px;
  fill: currentColor;
}

.to-top:hover,
.to-top:focus-visible {
  background-size: 100% 100%;
  color: var(--on-accent);
}

.to-top:hover .to-top-track,
.to-top:focus-visible .to-top-track {
  transform: translateY(-50%);
}

.lost {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 70vh;
  padding: 48px 0;
}

.lost h1 {
  font-size: clamp(7rem, 30vw, 24rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.lost h1 .ch {
  display: inline-block;
  transition: font-stretch 0.9s ease, font-weight 0.9s ease;
}

.lost h1 .ch:hover {
  font-stretch: 100%;
  transition-duration: 0.12s;
}

.lost h1::after {
  content: "";
  display: inline-block;
  width: 0.12em;
  height: 0.68em;
  margin-left: 0.06em;
  background: var(--ink);
  animation: blink 1.1s steps(1) infinite;
}

.lost p {
  margin-top: 24px;
  font-size: 1.25rem;
  font-weight: 500;
}

html.motion .lost h1 .ch {
  animation: rise-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(0.15s + var(--i, 0) * 0.12s);
}

html.motion .lost h1::after {
  animation: lost-caret-in 0.01s linear 0.9s both, blink 1.1s steps(1) 0.9s infinite;
}

html.motion .lost p {
  animation: rise-in 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: 0.7s;
}

html.motion .lost p + p {
  animation-delay: 0.85s;
}

@keyframes lost-caret-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1100px) {
  .tile {
    display: none;
  }

  .row-body .note,
  .slashed.row-title {
    padding-right: 0;
  }
}

@media (max-width: 860px) {
  .side {
    display: none;
  }

  .hero-text,
  .status,
  .section-label,
  .section-body,
  .lead,
  .points {
    grid-column: 1 / -1;
  }

  .section-label {
    position: static;
  }

  .rows > li {
    grid-template-columns: 1fr;
  }

  .demos ul {
    grid-template-columns: 1fr;
  }

  .meta {
    align-items: flex-start;
  }

  .figures li {
    padding-right: 12px;
  }

  .figures li + li {
    padding-left: 12px;
  }
}

@media (max-width: 520px) {
  .nav-links {
    display: none;
  }

  .nav {
    gap: 14px;
  }

  .figures {
    grid-template-columns: 1fr;
  }

  .figures li,
  .figures li + li {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 14px 0;
    border-left: 0;
    border-bottom: 1px solid var(--ink);
  }

  .figures strong {
    flex: 0 0 9.5rem;
    font-size: 2.25rem;
  }

  .figures span {
    margin-top: 0;
  }

  .contact-link {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  .contact-link strong {
    flex: 1 0 100%;
    text-align: left;
  }

  .contact-link::after {
    display: none;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
    transform: translateY(40%);
  }
  to {
    opacity: 1;
    clip-path: inset(0);
    transform: none;
  }
}

html.motion .hero h1 > span {
  animation: rise-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

html.motion .hero h1 > span + span {
  animation-delay: 0.12s;
}

html.motion .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

html.motion .reveal.is-in {
  opacity: 1;
  transform: none;
}

html.motion .status.reveal,
html.motion .shot.reveal {
  position: relative;
  opacity: 1;
  transform: none;
  transition: none;
}

html.motion .status.reveal::after,
html.motion .shot.reveal::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--paper);
  transform-origin: 100% 50%;
  transition: transform 1s cubic-bezier(0.7, 0, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

html.motion .status.reveal.is-in::after,
html.motion .shot.reveal.is-in::after {
  transform: scaleX(0);
}

html.motion .draw {
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / 0 2px no-repeat;
  border-top-color: transparent;
  transition: background-size 1.1s cubic-bezier(0.7, 0, 0.2, 1);
}

html.motion .draw.is-in {
  background-size: 100% 2px;
}

html.motion .reveal .slashed li {
  opacity: 0;
  transform: translateY(10px);
}

html.motion .reveal.is-in .slashed li {
  opacity: 1;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 0.03s + 0.1s);
}

@supports (animation-timeline: scroll()) {
  body::after {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 50;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: 0 50%;
    animation: progress linear both;
    animation-timeline: scroll(root);
  }
}

@keyframes progress {
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .logo-caret,
  .logo-cover,
  .theme-toggle svg,
  .nav-links a,
  .lang-switch a,
  .contact-link,
  .marquee-track,
  .hero h1 > span:last-child::after,
  .lost h1::after,
  .player-big,
  .cv-btn,
  .cv-btn::before,
  .cv-arrow-track {
    animation: none;
    transition: none;
  }

  body::after {
    display: none;
  }
}
