/* ---------- Fonts (self-hosted, OFL — see fonts/LICENSE-OFL.txt) ---------- */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-standard-normal.woff2') format('woff2-variations'), url('../fonts/archivo-latin-standard-normal.woff2') format('woff2');
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-ext-standard-normal.woff2') format('woff2-variations'), url('../fonts/archivo-latin-ext-standard-normal.woff2') format('woff2');
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../fonts/jetbrains-mono-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Noto Sans Armenian'; src: url('../fonts/noto-sans-armenian-armenian-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17; }
@font-face { font-family: 'Noto Sans Armenian'; src: url('../fonts/noto-sans-armenian-armenian-900-normal.woff2') format('woff2'); font-weight: 900; font-display: swap; unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17; }

/* ---------- Tokens ---------- */
:root {
  --ink: #121212;
  --paper: #F3E3D8;
  --ground: #E4AE96;
  --clay: #D99B81;
  --stone: #C9C3B8;
  --line: 3px solid var(--ink);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --hy: 'Noto Sans Armenian', 'Archivo', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.modal-open { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--mono);
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; margin: 0; }
p { margin: 0; }
.b { font-weight: 700; }
.small { font-size: 12px; text-transform: uppercase; }
.small-13 { font-size: 13px; }
.small-14 { font-size: 14px; }
.up { text-transform: uppercase; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--paper); font-weight: 700; }
.skip:focus { top: 8px; }

/* ---------- Top bar ---------- */
.tr-bar {
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr;
  border-bottom: var(--line);
  font-size: 12px; text-transform: uppercase; letter-spacing: .04em;
}
.tr-bar > * { padding: 12px 20px; border-right: var(--line); white-space: nowrap; }
.tr-bar > :last-child { border-right: 0; }
.tr-bar time { font-variant-numeric: tabular-nums; }
.tr-bar nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
.tr-bar nav a, .foot-links a { font-weight: 700; text-decoration: none; }
.tr-bar nav a:hover, .foot-links a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 24px 20px 28px; border-bottom: var(--line); }
.tr-glyphs { position: absolute; top: 72px; right: 20px; bottom: 28px; left: 64%; pointer-events: none; }
@media (max-width: 1100px) { .tr-glyphs { display: none; } }
.tr-float { position: absolute; font-weight: 700; opacity: .32; white-space: nowrap; animation: float 6s ease-in-out infinite; transition: opacity .4s ease, filter .4s ease; }
.tr-float.out { opacity: 0; filter: blur(4px); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(4deg); } }


.greet { position: relative; margin-top: 40px; font-family: var(--display); font-stretch: 115%; text-transform: uppercase; font-weight: 900; font-size: clamp(28px, 4vw, 56px); line-height: 1; }
.tr-glitch {
  position: relative; margin-top: 6px;
  font-stretch: 125%; font-size: clamp(88px, 22vw, 250px); line-height: .82; letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}
.tr-glitch:hover { animation: glitch .35s steps(2) 2; }
@keyframes glitch {
  0% { text-shadow: 4px 0 var(--clay), -4px 0 var(--paper); transform: translateX(0); }
  50% { text-shadow: -5px 0 var(--clay), 5px 0 var(--paper); transform: translateX(3px); }
  100% { text-shadow: none; transform: none; }
}

/* ---------- Two peaks ---------- */
.tr-split { display: grid; grid-template-columns: 3fr 2fr; border-bottom: var(--line); }
.tr-split > * { padding: 28px 20px; }
.split-left { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; border-right: var(--line); }
.tr-split h2 { font-stretch: 115%; font-size: clamp(30px, 3.2vw, 56px); line-height: .95; }
@media (min-width: 1000px) { .tr-split h2 .h-line { white-space: nowrap; } }
.split-body { display: flex; flex-direction: column; justify-content: flex-start; gap: 24px; }
.split-body p { font-size: 15px; line-height: 1.6; }
.split-body .split-lead { font-family: var(--display); font-weight: 900; font-stretch: 110%; font-size: clamp(26px, 3vw, 46px); line-height: 1; text-transform: uppercase; }
.split-body p:not(.split-lead) { max-width: 62ch; }
.peaks { position: relative; margin: 0 -20px -28px auto; width: 100%; max-width: 520px; } /* sits in the bottom-right corner, on the borders */
.peaks svg { display: block; width: 100%; height: auto; }
.peak { position: absolute; display: flex; flex-direction: column; gap: 3px; font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: 14px; line-height: 1.1; text-transform: uppercase; }
.peak-1 { left: 0; top: 0; width: 28%; }
.peak-2 { right: 16px; top: 0; width: 28%; text-align: right; }
@media (max-width: 560px) {
  .peaks figcaption { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
  .peak { position: static; width: auto; }
  .peaks { margin: 0; }
}

/* ---------- Languages ---------- */
.langs-sec { border-bottom: var(--line); }
.lang-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.lang-card { display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; border-right: var(--line); transition: background .2s, color .2s; }
.lang-card:last-child { border-right: 0; }
.lang-card:hover { background: var(--ink); color: var(--paper); }
.lang-hi { font-family: var(--hy); font-weight: 900; font-size: clamp(28px, 3vw, 44px); line-height: 1; margin-bottom: 10px; }
.lang-name { font-weight: 700; font-size: 15px; }
.meter { display: flex; gap: 4px; margin-top: 4px; }
.meter i { width: 18px; height: 10px; border: 2px solid currentColor; }
.meter i.on { background: currentColor; }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); color: var(--paper); overflow: hidden; border-bottom: var(--line); }
.tr-marq {
  display: flex; width: max-content; padding: 14px 0;
  font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 30px;
  text-transform: uppercase; white-space: nowrap;
  animation: marq 110s linear infinite;
}
.tr-marq span { padding-right: 0; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- Route header ---------- */

/* ---------- Climb ---------- */
.tr-climb { display: grid; grid-template-columns: minmax(320px, 42%) 1fr; border-bottom: var(--line); }
.tr-stick {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: grid; grid-template-rows: auto 1fr auto;
  border-right: var(--line); background: var(--ground);
}
.tr-stick-txt { padding: 28px 20px 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.tr-stick-big {
  font-family: var(--display); font-weight: 900; font-stretch: 125%;
  font-size: clamp(64px, 8vw, 132px); line-height: .85; letter-spacing: -0.03em; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  margin-bottom: .2em; /* room for the comma's descender */
}
.tr-stick-big .unit { font-size: .32em; letter-spacing: 0; }
.status { font-size: 13px; text-transform: uppercase; }
.sub { font-size: 13px; min-height: 20px; }
.tr-mtn { padding: 16px 20px 20px; display: flex; align-items: flex-end; min-height: 0; }
.tr-mtn svg { width: 100%; height: 100%; display: block; }
#clip, #clip-line { transition: y .25s ease-out, y1 .25s ease-out, y2 .25s ease-out, height .25s ease-out; }
.stick-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: var(--line); }

.camps { padding: 0 clamp(16px, 3vw, 40px) 160px; min-width: 0; }
.noscript { padding: 56px 0; font-size: 15px; }
.tr-blk { padding-top: 56px; }

.tr-card {
  border: var(--line); background: var(--paper); box-shadow: 10px 10px 0 var(--ink);
  opacity: .3; transform: translateY(32px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.2, .8, .2, 1);
}
.tr-card.reached { transform: none; }            /* passed camps stay in place but fade back */
.tr-card.current, .tr-card:hover, .tr-card:focus-within { opacity: 1; }
.tr-card.locked { border-style: dashed; box-shadow: none; }
.card-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.card-side { padding: 8px 16px; border-bottom: var(--line); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.card-body { padding: 22px 16px; display: flex; flex-direction: column; gap: 12px; }
.card-body h3 { font-stretch: 115%; font-size: clamp(28px, 3vw, 44px); line-height: .95; }
.card-body p { font-size: 15px; line-height: 1.6; }
.card-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.card-thumbs span { aspect-ratio: 4 / 3; border: 2px solid var(--ink); display: flex; align-items: flex-end; padding: 6px; font-size: 10px; font-weight: 700; }
.card-btn {
  width: 100%; min-height: 54px; border: 0; border-top: var(--line);
  background: transparent; color: var(--ink);
  font: 700 13px var(--mono); text-transform: uppercase; cursor: pointer;
}
.locked .card-body { padding: 24px 16px; }
.pitch { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(24px, 3vw, 40px); line-height: .95; text-transform: uppercase; }
.pitch-note { margin-top: 10px; max-width: 46ch; }
.pitch-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pitch-btn { font: 700 12px var(--mono); text-transform: uppercase; text-decoration: none; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); padding: 8px 12px; }
.pitch-btn:hover, .pitch-btn:focus-visible { background: var(--ink); color: var(--paper); }

/* Striped placeholder */
.tr-ph { background-color: var(--paper); background-image: repeating-linear-gradient(135deg, rgba(18,18,18,.10) 0 2px, transparent 2px 10px); }
.tr-card.tr-ph { background-color: transparent; }

/* Hover invert for buttons/links */
.tr-open { transition: background .15s, color .15s; }
.tr-open:hover, .tr-open:focus-visible { background: var(--ink); color: var(--paper); }

/* ---------- Contact ---------- */
.tr-mail {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px;
  padding: 44px 20px; background: var(--ink); color: var(--paper); text-decoration: none;
}
.mail-big { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(44px, 9vw, 140px); line-height: .85; text-transform: uppercase; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.tr-mail:hover .mail-big { transform: translateX(12px); }
.mail-addr { font-size: 16px; overflow-wrap: anywhere; }
.tr-links { display: grid; grid-template-columns: 1fr 1fr; border-bottom: var(--line); }
.link-cell { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; padding: 28px 20px; text-decoration: none; overflow: hidden; min-width: 0; }
.link-cell:first-child { border-right: var(--line); }
.link-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.link-big { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(36px, 5vw, 72px); line-height: .9; text-transform: uppercase; }
.commits { display: grid; grid-template-columns: repeat(30, 10px); grid-auto-rows: 10px; gap: 3px; }
.tr-px { animation: px 2.6s steps(2) infinite; }
@keyframes px { 50% { opacity: .25; } }
.link-cell:hover .commits span { outline: 1px solid var(--paper); }

/* ---------- Footer ---------- */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding: 22px 20px; }
.alphabet { font-family: var(--hy); font-weight: 900; font-size: 16px; letter-spacing: .1em; text-transform: none; overflow-wrap: anywhere; }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; }

/* ---------- Dialog ---------- */
.tr-dialog {
  width: min(1180px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 64px);
  margin: 32px auto; padding: 0; overflow: auto;
  border: var(--line); background: var(--paper); color: var(--ink);
  box-shadow: 14px 14px 0 var(--ink);
}
.tr-dialog[open] { animation: rise .35s cubic-bezier(.2, .8, .2, 1); }
.tr-dialog::backdrop { background: rgba(18, 18, 18, .72); }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
.dlg-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-left: 20px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.dlg-close { min-width: 56px; min-height: 48px; border: 0; border-left: 3px solid var(--paper); background: var(--ink); color: var(--paper); font: 700 14px var(--mono); cursor: pointer; padding: 0 14px; }
.dlg-close:hover { background: var(--paper); color: var(--ink); }
.dlg-title { padding: 24px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.dlg-title h2 { font-stretch: 125%; font-size: clamp(34px, 6vw, 84px); line-height: .88; }

.tr-gal { display: grid; grid-template-columns: 1fr 220px; border-top: var(--line); }
.gal-stage { position: relative; aspect-ratio: 16 / 10; min-width: 0; overflow: hidden; border-right: var(--line); }
.gal-slide { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; }
.gal-slide.on { display: flex; }
.gal-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--stone); }
.card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top left; display: block; border: 2px solid var(--ink); background: var(--paper); }
.gal-label { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: 28px; text-transform: uppercase; background: var(--paper); border: var(--line); padding: 6px 12px; }
.gal-hint { font-size: 12px; text-transform: uppercase; background: var(--paper); padding: 2px 8px; }
.gal-ctrl { position: absolute; left: 0; bottom: 0; display: flex; z-index: 1; }
.gal-ctrl .tr-btn { width: 52px; height: 52px; border: var(--line); border-bottom: 0; background: var(--paper); color: var(--ink); font-size: 18px; font-weight: 700; cursor: pointer; }
.gal-ctrl .tr-btn:first-child { border-left: 0; }
#gal-label { display: flex; align-items: center; padding: 0 14px; height: 52px; border-top: var(--line); background: var(--paper); font-size: 13px; font-weight: 700; }
.tr-thumbs { display: flex; flex-direction: column; height: 0; min-height: 100%; overflow-y: auto; }
.tr-thumb { flex: 1; min-height: 64px; border: 0; border-bottom: var(--line); background: var(--paper); color: var(--ink); font: 700 12px var(--mono); text-transform: uppercase; text-align: left; padding: 12px; cursor: pointer; }
.tr-thumb:last-child { border-bottom: 0; }
.tr-thumb.on { background: var(--ink); color: var(--paper); }
.tr-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.tr-btn:disabled { opacity: .35; cursor: not-allowed; }

.tr-story { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 24px 20px; border-top: var(--line); }
.tr-story > div { display: flex; flex-direction: column; gap: 8px; }
.tr-story .label { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.tr-story p { font-size: 15px; line-height: 1.6; }
.dlg-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 20px; border-top: var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12px; border: 2px solid var(--ink); padding: 3px 8px; }
.grow { flex: 1; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: var(--line); font-weight: 700; font-size: 13px; text-decoration: none; text-transform: uppercase; }
.pill[hidden] { display: none; }
.dlg-nav { display: flex; border-top: var(--line); }
.dlg-nav .tr-btn { flex: 1; min-height: 60px; border: 0; background: var(--paper); color: var(--ink); font: 700 13px var(--mono); text-transform: uppercase; cursor: pointer; }
.dlg-nav .tr-btn:first-child { border-right: var(--line); }
.dlg-nav .tr-btn.next { background: var(--ground); }

.tr-wipe { animation: wipe .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .lang-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lang-card:nth-child(3) { border-right: 0; }
  .lang-card:nth-child(-n+3) { border-bottom: var(--line); }
  .tr-bar { grid-template-columns: 1fr 1fr; }
  .tr-bar > * { border-right: 0; border-bottom: var(--line); white-space: normal; min-width: 0; padding: 10px 14px; }
  .tr-bar > :first-child { grid-column: 1 / -1; }
  .tr-bar > :nth-child(2) { border-right: var(--line); }
  .tr-bar nav { grid-column: 1 / -1; justify-content: flex-start; border-bottom: 0; }
}

@media (max-width: 760px) {
  .tr-split, .tr-links { grid-template-columns: 1fr; }
  .split-left { border-right: 0; border-bottom: var(--line); }
  .lang-grid { grid-template-columns: 1fr 1fr; }
  .lang-card { border-bottom: var(--line); }
  .lang-card:nth-child(3) { border-right: var(--line); }
  .lang-card:nth-child(2n) { border-right: 0; }
  .lang-card:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .link-cell:first-child { border-right: 0; border-bottom: var(--line); }
  .commits { grid-template-columns: repeat(auto-fill, 10px); }

  /* Climb: compact sticky altimeter on top, cards below */
  .tr-climb { grid-template-columns: 1fr; }
  .tr-stick {
    height: auto; z-index: 5;
    grid-template-columns: 1fr 120px; grid-template-rows: auto;
    border-right: 0; border-bottom: var(--line);
  }
  .tr-stick-hide { display: none; }
  .tr-stick-txt { padding: 12px 16px; gap: 4px; justify-content: center; }
  .tr-stick-big { font-size: 44px; }
  .tr-mtn { padding: 8px 12px 8px 0; height: 90px; }
  .tr-blk { padding-top: 40px; }
  .tr-card { box-shadow: 6px 6px 0 var(--ink); }

  .tr-dialog { width: 100vw; max-height: 100dvh; margin: 0; box-shadow: none; border-left: 0; border-right: 0; }
  .tr-gal { grid-template-columns: 1fr; }
  .gal-stage { border-right: 0; }
  .tr-thumbs { flex-direction: row; border-top: var(--line); height: auto; min-height: 0; overflow-x: auto; overflow-y: hidden; }
  .tr-thumb { flex: 1 0 auto; }
  .tr-thumb { border-bottom: 0; border-right: var(--line); }
  .tr-thumb:last-child { border-right: 0; }
  .tr-story { grid-template-columns: 1fr; }
}


/* ---------- Motion (js/fx.js; only active with .fx on <html>) ---------- */
.fx-lock, .fx-lock body { overflow: hidden; }
.fx-intro { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; background: var(--ink); color: var(--paper); clip-path: inset(0 0 0 0); transition: clip-path .8s cubic-bezier(.7, 0, .2, 1); }
.fx-intro.out { clip-path: inset(0 0 100% 0); }
.fx-intro svg { width: min(78vw, 760px); height: auto; overflow: visible; }
.fx-col { fill: var(--clay); stroke: var(--clay); stroke-width: .08; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); animation: fx-grow .75s cubic-bezier(.2, .9, .2, 1.15) forwards; }
.fx-snow { fill: var(--paper); opacity: 0; transform-box: fill-box; transform-origin: 50% 100%; animation: fx-pop .3s steps(3) forwards; }
@keyframes fx-grow { to { transform: scaleY(1); } }
@keyframes fx-pop { 0% { opacity: 0; transform: translateY(-3px); } 100% { opacity: 1; transform: none; } }
.fx-meta { display: flex; flex-direction: column; align-items: center; gap: 8px; font: 700 13px var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.fx-alt { font-family: var(--display); font-weight: 900; font-stretch: 125%; font-size: clamp(40px, 7vw, 96px); line-height: .9; font-variant-numeric: tabular-nums; }
.fx-skip { position: absolute; bottom: 20px; right: 20px; font: 700 11px var(--mono); text-transform: uppercase; opacity: .5; }

.fx .ltrs { display: inline-block; }
.fx .ltr { display: inline-block; }
.fx:not(.fx-go) .ltr { opacity: 0; }
.fx-go .ltr { animation: fx-drop .7s cubic-bezier(.2, 1.4, .4, 1) backwards; }
@keyframes fx-drop { from { opacity: 0; transform: translateY(-70%) rotate(-6deg); } }
.fx:not(.fx-go) .greet { clip-path: inset(0 100% 0 0); }
.fx-go .greet { animation: fx-type .7s steps(16) backwards; }
@keyframes fx-type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.tr-glitch.glitch-once { animation: glitch .3s steps(2) 3; }

.fx .fx-rv { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.fx .fx-rv.fx-in { opacity: 1; transform: none; }
.fx .peaks.fx-rv { transform: none; }
.fx .peaks svg { clip-path: inset(100% 0 0 0); }
.fx .peaks.fx-in svg { animation: fx-rise 1s steps(13) forwards; }
.fx .peaks svg path + path { opacity: 0; }
.fx .peaks.fx-in svg path + path { animation: fx-pop .3s steps(3) 1s forwards; }
.fx .peaks .peak { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.fx .peaks.fx-in .peak-1 { opacity: 1; transform: none; transition-delay: 1.1s; }
.fx .peaks.fx-in .peak-2 { opacity: 1; transform: none; transition-delay: 1.35s; }
@keyframes fx-rise { to { clip-path: inset(0 0 0 0); } }
.fx .lang-card .meter i.on { background: transparent; transition: background .15s steps(1); }
.fx .lang-card.fx-in .meter i.on { background: currentColor; }
.fx .lang-card.fx-in .meter i:nth-child(1) { transition-delay: .35s; }
.fx .lang-card.fx-in .meter i:nth-child(2) { transition-delay: .45s; }
.fx .lang-card.fx-in .meter i:nth-child(3) { transition-delay: .55s; }
.fx .lang-card.fx-in .meter i:nth-child(4) { transition-delay: .65s; }
.fx .lang-card.fx-in .meter i:nth-child(5) { transition-delay: .75s; }
.lang-hi.wave { display: inline-block; animation: fx-wave .6s ease; transform-origin: 30% 80%; }
@keyframes fx-wave { 25% { transform: rotate(-8deg); } 50% { transform: rotate(6deg); } 75% { transform: rotate(-3deg); } }

.peaks { overflow: visible; }
.peaks svg.fx-click { cursor: pointer; }
.peaks svg.wiggle { animation: fx-wiggle .5s steps(4); }
@keyframes fx-wiggle { 25% { transform: translateX(-3px); } 50% { transform: translateX(3px); } 75% { transform: translateX(-2px); } }
.fx-flake { position: absolute; top: -10px; background: var(--paper); border: 1px solid var(--ink); pointer-events: none; animation: fx-fall linear forwards; z-index: 2; }
.fx-sky { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.fx-sky .fx-flake { top: -12px; }
@keyframes fx-fall { to { transform: translateY(var(--fall, 260px)) translateX(14px); opacity: .2; } }
.fx-sky .fx-flake { --fall: 105vh; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
