/* zver1o7. One neon tube through a dark wall. The fox sign at the top is where it starts; its tail
   is the line that runs down the page, under every heading, and ends at the Telegram contact.
   The wall is cold and neutral so the orange reads as light, never as paint */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/unbounded-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geologica-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geologica-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geologica-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Registered so they can be eased: how much tube light falls on a piece of type, and a tube's switch */
@property --heat {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

@property --on {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

:root {
  /* A cold, neutral night wall */
  --wall: #0a0b0d;
  --wall-2: #121317;
  --ink: #ecedf0;
  --ink-2: #a5a8b0;
  --ink-3: #6f737c;
  --hair: rgb(255 255 255 / 0.07);

  /* The tube: unlit glass, lit body, its brighter middle, the white-hot core, the light it throws */
  --glass: #23262c;
  --glass-hi: #3d414a;
  --neon: #ff6413;
  --neon-2: #ff9447;
  --core: #fff3e8;
  --halo: #ff5508;
  --warm: 255 118 48;

  --display: "Unbounded", "Geologica", system-ui, sans-serif;
  --text: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  --pad: clamp(38px, 8.4vw, 120px);
  --max: 1200px;

  /* The sign's resting size in the hero; the drawing is 360 by 500 */
  --fh: clamp(520px, calc(100svh - 108px), 800px);
  --fw: calc(var(--fh) * 0.72);

  color-scheme: dark;
}

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

/* The root clips sideways so the body's own clip applies to the body (and the tube and its light
   inside it) instead of being handed to the viewport, where a phone could still pan */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--wall);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

body {
  position: relative;
  margin: 0;
  min-height: 100svh;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

/* One language at a time: every text exists in both, the root says which one shows */
:root[data-lang="ru"] [lang="en"]:not(html),
:root[data-lang="en"] [lang="ru"]:not(html) {
  display: none !important;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: rgb(255 100 19 / 0.85);
  color: #0a0b0d;
}

:focus-visible {
  outline: 2px solid var(--core);
  outline-offset: 4px;
  border-radius: 8px;
}

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

.nowrap {
  white-space: nowrap;
}

.skip {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--wall);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms var(--ease);
}

.skip:focus-visible {
  transform: none;
}

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}

/* Plaster: a fine neutral grain over the whole wall, and the corners falling off into the dark */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgb(0 0 0 / 0.45) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .8  0 0 0 0 .82  0 0 0 0 .86  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------
   Header: the language switch, and the slot the sign flies into
   ------------------------------------------------------------------ */

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  pointer-events: none;
  --shade: 0;
  --docked: 0;
}

.top::before {
  content: "";
  position: absolute;
  inset: 0 0 -40px 0;
  background: linear-gradient(to bottom, rgb(10 11 13) 0%, rgb(10 11 13) 56%, rgb(10 11 13 / 0) 100%);
  opacity: var(--shade);
}

.top-row {
  position: relative;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-row > * {
  pointer-events: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 52px;
  margin-left: -6px;
  padding: 0 10px 0 6px;
  border-radius: 12px;
  text-decoration: none;
  visibility: hidden;
}

.top.is-docked .brand {
  visibility: visible;
}

.brand-dock {
  position: relative;
  width: 32px;
  height: 44px;
  flex: none;
}

.brand-word {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: var(--docked);
  transform: translate3d(calc((1 - var(--docked)) * -10px), 0, 0);
}

.lang {
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 700ms var(--ease);
}

.lang.in,
.calm .lang,
.no-intro .lang {
  opacity: 1;
}

.lang button {
  position: relative;
  min-width: 44px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color 200ms var(--ease);
}

.lang button::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: var(--neon);
  box-shadow: 0 0 3px rgb(255 85 8 / 0.55);
  opacity: 0;
  transform: scaleX(0.3);
  transition: opacity 240ms var(--ease), transform 300ms var(--ease);
}

.lang button:hover {
  color: var(--ink);
}

.lang button[aria-pressed="true"] {
  color: var(--ink);
}

.lang button[aria-pressed="true"]::after {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------------
   The sign. app.js stacks copies of the drawing: wide light on the
   wall, unlit glass with its highlight, the lit tube, its brighter
   middle, the white-hot core, and black paint on the tube ends
   ------------------------------------------------------------------ */

.sign {
  --power: 1;
  --eye: 1;
  --tail: 0;
  --glass-in: 1;
  --w: 5;
}

.fox {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 45;
  width: var(--fw);
  height: var(--fh);
  margin: 0;
  transform-origin: 0 0;
  pointer-events: none;
  --power: 1;
  --eye: 1;
  --tail: 0;
  --glass-in: 1;
  --w: 5;
}

.js .fox {
  position: fixed;
  visibility: hidden;
}

.js .fox.is-ready {
  visibility: visible;
}

/* The light the sign throws on the wall: a fixed layer cut at the screen edge, under the type */
.fox-glow {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.fox-pool {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  background: radial-gradient(closest-side, rgb(255 80 0 / 0.085), rgb(255 80 0 / 0.03) 42%, rgb(255 80 0 / 0.008) 72%, rgb(255 80 0 / 0) 100%);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.sign svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.sign path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Without the script: one plain lit drawing */
.fox-src path {
  stroke: var(--neon);
  stroke-width: 6;
}

.fox-src [data-part="belly"],
.fox-src [data-part="tail-b"],
.fox-src [data-part="eye-closed"] {
  display: none;
}

.fox-hit {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 2%;
  bottom: 2%;
  border-radius: 40%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.fox.is-rest .fox-hit {
  pointer-events: auto;
}

.sign .plane-wall {
  opacity: var(--power);
}

.sign .l-g1 {
  opacity: 0.055;
}

.sign .l-g2 {
  opacity: 0.11;
}

.sign .l-g3 {
  opacity: calc(0.26 * var(--power));
}

.sign .l-g1 path {
  stroke: var(--halo);
  stroke-width: calc(var(--w) * 7px);
}

.sign .l-g2 path {
  stroke: var(--halo);
  stroke-width: calc(var(--w) * 3.6px);
}

.sign .l-g3 path {
  stroke: var(--halo);
  stroke-width: calc(var(--w) * 1.9px);
}

.sign .l-glass {
  opacity: var(--glass-in);
}

.sign .l-glass path {
  stroke: var(--glass);
  stroke-width: calc(var(--w) * 1px);
}

.sign .l-hi {
  opacity: var(--glass-in);
  transform: translate(calc(var(--w) * -0.22px), calc(var(--w) * -0.26px));
}

.sign .l-hi path {
  stroke: var(--glass-hi);
  stroke-width: calc(var(--w) * 0.2px);
}

.sign .l-body,
.sign .l-inner,
.sign .l-core {
  opacity: var(--power);
}

.sign .l-body path {
  stroke: var(--neon);
  stroke-width: calc(var(--w) * 1px);
}

.sign .l-inner path {
  stroke: var(--neon-2);
  stroke-width: calc(var(--w) * 0.48px);
}

.sign .l-core path {
  stroke: var(--core);
  stroke-width: calc(var(--w) * 0.2px);
}

.sign .l-front path {
  stroke: var(--core);
  stroke-width: calc(var(--w) * 0.75px);
}

.sign .l-paint path {
  stroke: #0d0e11;
  stroke-width: calc(var(--w) * 1.14px);
}

/* The eyes are their own tubes on their own switch, so they can light after the body */
.sign .lit [data-part="eye-open"],
.sign .lit [data-part="eye-closed"] {
  opacity: var(--eye);
}

/* The long tail belongs to the page tube while the sign rests; the sign carries its own curled
   tail once it lifts off */
.sign [data-part="tail-a"],
.sign [data-part="tail-b"] {
  opacity: var(--tail);
}

.sign [data-part="belly"] {
  opacity: calc(1 - var(--tail));
}

/* Two-frame animation, the way old signs move: one set of tubes off, the other on */
.sign [data-part="eye-closed"],
.sign [data-part="tail-b"],
.sign.is-blink [data-part="eye-open"],
.sign.is-swish [data-part="tail-a"] {
  display: none;
}

.sign.is-blink [data-part="eye-closed"],
.sign.is-swish [data-part="tail-b"] {
  display: inline;
}

/* ------------------------------------------------------------------
   The page tube: two planes. The light it throws sits on the wall
   under the type; the glass stands off the wall above it
   ------------------------------------------------------------------ */

.tube {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  pointer-events: none;
  --power: 1;
  --glass-in: 1;
}

.tube-wall {
  z-index: 1;
}

.tube-glass {
  z-index: 3;
}

.tube path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tube .lit {
  opacity: var(--power);
}

.tube .t-g1 {
  stroke: var(--halo);
  stroke-width: calc(var(--tw) * 7px);
  opacity: 0.05;
}

.tube .t-g2 {
  stroke: var(--halo);
  stroke-width: calc(var(--tw) * 3.6px);
  opacity: 0.1;
}

.tube .t-g3 {
  stroke: var(--halo);
  stroke-width: calc(var(--tw) * 1.9px);
  opacity: 0.25;
}

.tube .t-glass {
  stroke: var(--glass);
  stroke-width: calc(var(--tw) * 1px);
  opacity: var(--glass-in);
}

.tube .t-hi {
  stroke: var(--glass-hi);
  stroke-width: calc(var(--tw) * 0.2px);
  transform: translate(calc(var(--tw) * -0.22px), calc(var(--tw) * -0.26px));
  opacity: var(--glass-in);
}

.tube .t-body {
  stroke: var(--neon);
  stroke-width: calc(var(--tw) * 1px);
}

.tube .t-inner {
  stroke: var(--neon-2);
  stroke-width: calc(var(--tw) * 0.48px);
}

.tube .t-core {
  stroke: var(--core);
  stroke-width: calc(var(--tw) * 0.2px);
}

.tube .t-f1 {
  stroke: #ffd9bd;
  stroke-width: calc(var(--tw) * 0.55px);
}

.tube .t-f2 {
  stroke: #fff6ee;
  stroke-width: calc(var(--tw) * 0.75px);
}

.tube .t-pulse {
  stroke: #fffaf5;
  stroke-width: calc(var(--tw) * 0.8px);
}

.tube .t-paint {
  stroke: #0d0e11;
  stroke-width: calc(var(--tw) * 1.16px);
}

.tube .t-clip {
  stroke: #15161a;
  stroke-width: 2.5px;
}

.tube .t-clip-hi {
  stroke: #4a4e57;
  stroke-width: 1px;
}

.tube .t-cap {
  fill: #17181c;
  stroke: #3a3d45;
  stroke-width: 1.2px;
}

/* The gas front: a white-hot point that leads the light down the tube, and the warm pool it
   throws on the wall around it */
.spark,
.spark-light {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  will-change: transform;
}

.spark {
  z-index: 4;
  width: 0;
  height: 0;
}

.spark::before,
.spark::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.spark::before {
  width: 64px;
  height: 64px;
  background: radial-gradient(closest-side, rgb(255 120 40 / 0.55), rgb(255 85 8 / 0.18) 45%, rgb(255 85 8 / 0) 100%);
}

.spark::after {
  width: 12px;
  height: 12px;
  animation: ember 1.7s ease-in-out infinite alternate;
  background: radial-gradient(closest-side, #fff 0%, #fff3e8 45%, rgb(255 180 120 / 0) 100%);
}

.spark-light {
  z-index: 1;
  width: 0;
  height: 0;
}

.spark-light::before {
  content: "";
  position: absolute;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgb(255 85 8 / 0.12), rgb(255 85 8 / 0.045) 45%, rgb(255 85 8 / 0) 100%);
}

/* ------------------------------------------------------------------
   Type that catches the tube's light. The script tells each word
   where the lit stretch of tube is (--la to --lb, in the heading's
   own pixels); the bottom of the letters warms up there
   ------------------------------------------------------------------ */

.catch {
  --la: 0px;
  --lb: 0px;
}

.price.catch {
  --la: -4000px;
  --lb: 4000px;
}

.catch .wi {
  background-image:
    linear-gradient(to bottom, var(--ink) 0%, var(--ink) 50%, rgb(236 237 240 / 0.55) 82%, rgb(236 237 240 / 0.2) 100%),
    linear-gradient(to right, rgb(var(--warm) / 0) calc(var(--la) - 140px), rgb(var(--warm) / var(--heat)) var(--la), rgb(var(--warm) / var(--heat)) var(--lb), rgb(var(--warm) / 0) calc(var(--lb) + 140px)),
    linear-gradient(var(--ink), var(--ink));
  background-size: var(--bw, 100%) var(--bh, 100%);
  background-position: var(--bx, 0px) var(--by, 0px);
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------------
   Words rise out of clipped lines
   ------------------------------------------------------------------ */

.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0.14em 0.05em 0.22em;
  margin: -0.14em -0.05em -0.22em;
}

.wi {
  display: inline-block;
}

.js:not(.calm) .wi {
  transform: translate3d(0, 115%, 0);
  transition: transform 950ms var(--ease) var(--d, 0ms);
}

.js:not(.calm) .in .wi,
.js:not(.calm) .w.in .wi {
  transform: none;
}

.open .w {
  overflow: visible;
}

.js:not(.calm) .snap .wi {
  transition: none;
}

/* ------------------------------------------------------------------
   Hero: the sign rests on the left, its tail rises and runs under
   the name, then turns down the page
   ------------------------------------------------------------------ */

main {
  position: relative;
  z-index: 2;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: 84px;
  padding-bottom: 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: var(--fw) minmax(0, 1fr);
  column-gap: clamp(24px, 3.4vw, 52px);
  align-items: start;
}

.hero-rest {
  width: var(--fw);
  height: var(--fh);
  margin-left: calc(var(--fw) * -0.05);
}

.hero-copy {
  container-type: inline-size;
  padding-top: calc(var(--fh) * 0.1);
}

.name {
  font-family: var(--display);
  font-weight: 700;
  font-size: min(22.5cqw, 176px);
  line-height: 0.8;
  letter-spacing: -0.045em;
  margin-left: -0.05em;
  white-space: nowrap;
}

.name .w {
  padding: 0.1em 0.02em 0.06em;
  margin: -0.1em -0.02em -0.06em;
}

.claim {
  margin-top: 58px;
  max-width: 15em;
  font-family: var(--text);
  font-weight: 500;
  font-size: clamp(27px, 2.75vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.lead {
  margin-top: 22px;
  max-width: 31em;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 28px;
  text-wrap: pretty;
}

.actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
}

.note {
  margin-top: 28px;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-3);
}

.note a {
  color: var(--ink-2);
}

/* A button that is a bent tube: unlit glass at rest, it catches and stays lit */
.btn-tube {
  position: relative;
  height: 58px;
  padding: 0 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 0 0 2px var(--glass), inset 0 0 0 2.6px rgb(255 255 255 / 0.04);
  --on: 0;
  transition: transform 160ms var(--ease);
}

.btn-tube::before,
.btn-tube::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

/* The lit tube and its light on the wall */
.btn-tube::before {
  box-shadow:
    inset 0 0 0 2px var(--neon),
    0 0 0 1px rgb(255 100 19 / 0.55),
    0 0 18px 2px rgb(255 85 8 / 0.42),
    inset 0 0 16px rgb(255 85 8 / 0.28);
  opacity: var(--on);
}

/* The white-hot middle of the tube */
.btn-tube::after {
  inset: 0.5px;
  box-shadow: inset 0 0 0 1px rgb(255 238 222 / 0.9);
  opacity: calc(var(--on) * 0.85);
}

.btn-tube.is-lit {
  --on: 0.9;
  animation: catch 620ms steps(1, end) both;
}

.btn-tube:hover,
.btn-tube:focus-visible {
  --on: 1;
  color: #fff;
}

.btn-tube:hover::before,
.btn-tube:focus-visible::before {
  box-shadow:
    inset 0 0 0 2px var(--neon),
    0 0 0 1px rgb(255 100 19 / 0.7),
    0 0 26px 4px rgb(255 85 8 / 0.5),
    inset 0 0 22px rgb(255 85 8 / 0.36);
}

.btn-tube:not(.is-lit):hover {
  animation: catch 520ms steps(1, end) both;
}

.btn-tube:active {
  transform: scale(0.97);
}

/* A tube catching: on, off, half, off, on, a dip, then steady */
@keyframes catch {
  0% { --on: 0.9; }
  9% { --on: 0; }
  17% { --on: 0.6; }
  24% { --on: 0; }
  46% { --on: 1; }
  56% { --on: 0.35; }
  64%, 100% { --on: 0.9; }
}

/* Quiet links: a thin unlit tube for an underline that lights on hover */
.quiet,
.note a,
.terms-note a {
  position: relative;
  text-decoration: none;
  --on: 0;
}

.quiet {
  padding: 8px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.quiet::after,
.note a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--glass-hi);
}

.note a::after {
  bottom: -2px;
  height: 1px;
}

.js:not(.calm) .note:not(.in) a::after {
  opacity: 0;
}

.quiet::before,
.note a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3.5px;
  height: 2px;
  border-radius: 2px;
  z-index: 1;
  background: var(--neon);
  box-shadow: 0 0 0 0.5px #ffd2b0 inset, 0 0 8px 1px rgb(255 85 8 / 0.75);
  opacity: var(--on);
}

.note a::before {
  bottom: -2.5px;
}

.quiet:hover,
.quiet:focus-visible,
.note a:hover,
.note a:focus-visible {
  --on: 1;
  color: #fff;
  animation: catch 520ms steps(1, end) both;
}

/* ------------------------------------------------------------------
   Sections: a huge heading, the tube crossing under it
   ------------------------------------------------------------------ */

.sec {
  position: relative;
  padding-top: clamp(112px, 9vw, 136px);
}

.title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(46px, 8.4vw, 128px);
  line-height: 1;
  letter-spacing: -0.045em;
  margin-left: -0.04em;
}

.title-end {
  text-align: right;
  margin-left: 0;
  margin-right: -0.02em;
}

.title .w {
  padding: 0.12em 0.04em 0.24em;
  margin: -0.12em -0.04em -0.24em;
}

/* What I do: four rows, big title on the left, the words on the right */
.areas {
  margin-top: clamp(72px, 7vw, 104px);
  display: grid;
  row-gap: clamp(48px, 5vw, 72px);
}

.area {
  display: grid;
  grid-template-columns: 72px minmax(0, 5fr) minmax(0, 6fr);
  column-gap: clamp(20px, 2.6vw, 40px);
  align-items: start;
}

.num {
  font-family: var(--display);
  font-size: 15px;
  line-height: 40px;
  font-weight: 500;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  transition: color 500ms var(--ease), text-shadow 500ms var(--ease);
}

.num.lit {
  color: #ffe2cc;
  text-shadow: 0 0 10px rgb(255 85 8 / 0.75), 0 0 2px rgb(255 140 70 / 0.8);
}

.area h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(25px, 2.45vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  padding-top: 2px;
}

.area-text p {
  max-width: 34em;
  font-size: 18px;
  line-height: 30px;
  color: var(--ink-2);
  text-wrap: pretty;
}

.area-text .tags {
  margin-top: 14px;
  font-size: 15px;
  line-height: 25px;
  color: var(--ink-3);
}

/* Stack: label and a long plain line of names */
.stack {
  margin-top: clamp(64px, 6.5vw, 96px);
  display: grid;
  row-gap: 30px;
  max-width: 1040px;
  margin-left: auto;
}

.stack .row {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  column-gap: 32px;
  align-items: baseline;
}

.stack dt {
  font-size: 15px;
  color: var(--ink-3);
  transition: color 500ms var(--ease), text-shadow 500ms var(--ease);
}

.stack dt.lit {
  color: #ffd9bf;
  text-shadow: 0 0 10px rgb(255 85 8 / 0.6);
}

.stack dd {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(20px, 2.15vw, 31px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* How I work: three formats side by side, prices on one line the tube runs under */
.terms {
  margin-top: clamp(72px, 7vw, 104px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: clamp(28px, 3.4vw, 56px);
}

.term {
  display: grid;
  grid-template-rows: auto 1fr auto;
  row-gap: 12px;
}

.term h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.term p {
  color: var(--ink-2);
}

.term .price {
  padding-top: 26px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  --heat: 0;
  transition: --heat 700ms var(--ease);
}

.term .price.lit {
  --heat: 1;
}

.terms-note {
  margin-top: clamp(88px, 8vw, 120px);
  max-width: 34em;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 30px;
}

/* Contact: the tube ends at Telegram */
.links {
  margin-top: clamp(72px, 7vw, 100px);
  display: grid;
  row-gap: 8px;
}

.link {
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr) 24px;
  align-items: baseline;
  column-gap: 24px;
  width: 100%;
  padding: 14px 0;
  text-align: left;
  text-decoration: none;
  --on: 0;
}

.link-name {
  font-size: 15px;
  color: var(--ink-3);
}

.link-value {
  font-family: var(--display);
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
  transition: color 240ms var(--ease), text-shadow 240ms var(--ease);
}

.link-tg {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 6px;
  padding-bottom: 36px;
}

.link-tg .link-value {
  font-size: clamp(44px, 7.4vw, 112px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.link .i {
  align-self: center;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--ink-3);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 200ms var(--ease), transform 260ms var(--ease);
}

/* Lit like a tube: hot core, orange light around it */
.link:hover .link-value,
.link:focus-visible .link-value,
.link-tg.is-live .link-value {
  color: #fff6ee;
  text-shadow: 0 0 1px #ffd9bd, 0 0 0.12em rgb(255 100 19 / 0.95), 0 0 0.42em rgb(255 85 8 / 0.5);
}

.link:hover .link-value,
.link:focus-visible .link-value {
  animation: buzz 480ms steps(1, end) both;
}

.link-tg.is-live .link-value {
  animation: buzz 700ms steps(1, end) both;
}

@keyframes buzz {
  0% { opacity: 1; }
  8% { opacity: 0.45; }
  15% { opacity: 1; }
  26% { opacity: 0.7; }
  34%, 100% { opacity: 1; }
}

.link:hover .i,
.link:focus-visible .i {
  stroke: #ffb27e;
  transform: translate(2px, -2px);
}

.link[data-copy]:hover .i,
.link[data-copy]:focus-visible .i {
  transform: none;
}

.foot {
  position: relative;
  z-index: 2;
  padding: clamp(96px, 10vw, 160px) 0 calc(44px + env(safe-area-inset-bottom, 0px));
  font-size: 14px;
  color: var(--ink-3);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--wall-2);
  box-shadow: inset 0 0 0 1px var(--hair), 0 16px 40px -16px rgb(0 0 0 / 0.8);
  color: var(--ink);
  font-size: 15px;
  line-height: 20px;
  transform: translateX(-50%);
  transition: opacity 200ms var(--ease);
}

.toast[hidden] {
  display: none;
}

.toast.is-out {
  opacity: 0;
}

.elsewhere {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--ink-2);
}

/* ------------------------------------------------------------------
   Narrow screens: the sign above the name, everything in one column,
   the tube in both margins
   ------------------------------------------------------------------ */

@media (max-width: 820px) {
  :root {
    --pad: 38px;
    --fh: clamp(300px, 45svh, 430px);
  }

  body {
    font-size: 16px;
  }

  .top-row {
    height: 60px;
  }

  .brand {
    gap: 10px;
  }

  .brand-dock {
    width: 26px;
    height: 36px;
  }

  .hero {
    padding-top: 58px;
    min-height: 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-rest {
    justify-self: center;
    margin-left: 0;
  }

  .hero-copy {
    padding-top: 6px;
  }

  .name {
    font-size: min(20.5cqw, 104px);
  }

  .claim {
    margin-top: 44px;
    font-size: clamp(24px, 6.6vw, 30px);
  }

  .lead {
    margin-top: 16px;
    font-size: 16px;
    line-height: 26px;
  }

  .actions {
    margin-top: 26px;
    gap: 10px 24px;
  }

  .btn-tube {
    height: 54px;
    padding: 0 24px;
    font-size: 15px;
  }

  .sec {
    padding-top: 120px;
  }

  .title-end {
    text-align: left;
  }

  .areas {
    margin-top: 60px;
    row-gap: 44px;
  }

  .area {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 10px;
  }

  .num {
    line-height: 20px;
  }

  .area-text p {
    font-size: 16px;
    line-height: 26px;
  }

  .stack {
    margin-top: 56px;
    row-gap: 26px;
  }

  .stack .row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
  }

  .terms {
    margin-top: 60px;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 44px;
  }

  .term .price {
    padding-top: 6px;
  }

  .terms-note {
    margin-top: 56px;
    font-size: 16px;
    line-height: 26px;
  }

  .links {
    margin-top: 60px;
  }

  .link {
    grid-template-columns: minmax(0, 1fr) 22px;
    row-gap: 2px;
  }

  .link .link-name {
    grid-column: 1 / -1;
  }

  .link-tg {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 24px;
  }
}

/* ------------------------------------------------------------------
   Reduced motion: the sign is lit and stays put, the tube is lit end
   to end, nothing travels
   ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  .btn-tube.is-lit,
  .btn-tube:hover,
  .quiet:hover,
  .note a:hover,
  .link:hover .link-value,
  .link-tg.is-live .link-value {
    animation: none;
  }
}

/* The buttons arrive as one row */
.js:not(.calm) .actions {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 700ms var(--ease), transform 900ms var(--ease);
}

.js:not(.calm) .actions.in {
  opacity: 1;
  transform: none;
}

/* Without the script the sign simply hangs where it rests */
html:not(.js) .fox {
  left: calc(max(var(--pad), (100% - var(--max)) / 2) - var(--fw) * 0.05);
  top: 84px;
}

@media (max-width: 820px) {
  html:not(.js) .fox {
    left: calc(50% - var(--fw) / 2);
    top: 58px;
  }
}

/* The small lit copy in the header, for visitors who asked for less motion */
.fox-mini {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  --tail: 1;
}

.fox-mini svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.fox-mini .l-paint,
.fox-mini .l-front {
  display: none;
}

/* The waiting gas front breathes a little */
@keyframes ember {
  from { opacity: 0.65; }
  to { opacity: 1; }
}

/* ------------------------------------------------------------------
   The mark the flying sign hands over to: the fox's head, which still
   reads at 40px. It catches with a stutter when the sign docks
   ------------------------------------------------------------------ */

.brand-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  pointer-events: none;
}

@media (max-width: 820px) {
  .brand-mark {
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
  }
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.brand-mark path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark .m-glass path { stroke: var(--glass-hi); stroke-width: 22; }
.brand-mark .m-halo path { stroke: var(--halo); stroke-width: 96; }
.brand-mark .m-glow path { stroke: var(--halo); stroke-width: 48; }
.brand-mark .m-tube path { stroke: var(--neon); stroke-width: 24; }
.brand-mark .m-core path { stroke: var(--core); stroke-width: 8; }

.brand-mark .m-shut,
.brand-mark.is-blink .m-open {
  display: none;
}

.brand-mark.is-blink .m-shut {
  display: inline;
}

.brand-mark .m-halo,
.brand-mark .m-glow,
.brand-mark .m-tube,
.brand-mark .m-core {
  opacity: 0;
}

.top.is-docked .brand-mark .m-halo { opacity: 0.16; }
.top.is-docked .brand-mark .m-glow { opacity: 0.4; }
.top.is-docked .brand-mark .m-tube,
.top.is-docked .brand-mark .m-core { opacity: 1; }

.top.is-docked .brand-mark .m-halo,
.top.is-docked .brand-mark .m-glow,
.top.is-docked .brand-mark .m-tube,
.top.is-docked .brand-mark .m-core {
  animation: mark-catch 560ms steps(1, end) both;
}

@keyframes mark-catch {
  0% { visibility: hidden; }
  14% { visibility: visible; }
  26% { visibility: hidden; }
  40% { visibility: visible; }
  52% { visibility: hidden; }
  70% { visibility: visible; }
  100% { visibility: visible; }
}

@media (prefers-reduced-motion: reduce) {
  .top.is-docked .brand-mark .m-halo,
  .top.is-docked .brand-mark .m-glow,
  .top.is-docked .brand-mark .m-tube,
  .top.is-docked .brand-mark .m-core {
    animation: none;
  }
}

/* No scrollbar: the tube itself shows how far down the page you are */
html {
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* White glass for the fox's white fur (the chest), warm white instead of orange in every layer */
.sign .l-g1 [data-tone="white"],
.sign .l-g2 [data-tone="white"],
.sign .l-g3 [data-tone="white"] {
  stroke: #ffc7a8;
}

.sign .l-body [data-tone="white"] {
  stroke: #ffe6d6;
}

.sign .l-inner [data-tone="white"] {
  stroke: #fff4ec;
}

.sign .l-core [data-tone="white"] {
  stroke: #ffffff;
}

.fox-src [data-tone="white"] {
  stroke: #ffe6d6;
}

/* No black caps on the fox's tube ends: at this size they read as dashes, not electrodes */
.sign .l-paint {
  display: none;
}
