/* The wordmark on the Index wears the look of the site in focus (js/logo.js). Every look ("face") is a copy of
   ZANS SULOJEVS in that site's own type and colours, stacked over the plain one, which stays in the flow so the
   header never changes size. Only the face being shown is visible; js/logo.js moves between them. */
.logo-word.has-faces { position: relative; display: inline-block; }
.lf { display: inline-flex; align-items: center; white-space: nowrap; }
.lf .w, .lf .ch { display: inline-block; transform-origin: 0 50%; }
.has-faces .lf:not(.lf-base) { position: absolute; left: 0; top: 50%; translate: 0 -50%; }
.has-faces .lf:not(.is-shown) { visibility: hidden; opacity: 0; }
.lf-base .w + .w { margin-left: .24em; }

/* Lumi: Jost, lowercase, the j's dot a warm light, as on its site */
.lf-lumi { font: 400 1.08em/1 'Jost', 'Futura', sans-serif; letter-spacing: .02em; }
.lf-lumi .w + .w { margin-left: .26em; }
/* the j's colour is its background clipped to the letter, and a background only reaches the box's edge, so the box
   reaches below the line for the j's tail (zan saw it cut off) */
.lf-lumi .j { position: relative; display: inline-block; padding-bottom: .32em; margin-bottom: -.32em; background: linear-gradient(180deg, #ffa957 .38em, var(--ink) .92em); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lf-lumi .j i { position: absolute; left: 58%; top: .13em; width: .16em; height: .16em; border-radius: 50%; translate: -50% 0; background: #ffa957; box-shadow: 0 0 .22em .05em #ffa957, 0 .35em .5em -.1em #ffa957; }
.lf-light { position: absolute; left: 50%; top: 50%; z-index: 2; height: 2.6em; translate: -50% -50%; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, #fff4e0 0%, rgb(255 205 140 / .9) 22%, rgb(255 169 87 / .45) 52%, rgb(255 169 87 / 0) 100%); }

/* Kinetic: Staatliches on a torn black strip (no dot, zan) */
.lf-kinetic { z-index: 2; }
.lf-kinetic .slip { display: block; padding: .2em .36em .08em; background: #1d1a16; color: #f1e8d4; font: 400 .92em/1 'Staatliches', 'Arial Narrow', sans-serif; letter-spacing: .04em; rotate: -2.5deg;
  clip-path: polygon(0 4%, 22% 0, 61% 3%, 100% 0, 98% 52%, 100% 100%, 64% 96%, 30% 100%, 2% 97%, 0 48%); }
.lf-kinetic .w + .w { margin-left: .26em; }
/* coming from Tenon the strip eats the rest of its name: pieces drawn behind its letters stand in for its background,
   so its jaws can open past it (js/logo.js) */
.lf-kinetic .slip { position: relative; z-index: 0; }
.lf-kinetic.is-eating .slip { background: none; clip-path: none; }
.lf-eat { position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none; }
.lf-eat span { position: absolute; left: 0; top: 0; }
.lf-eat .ink { background: #1d1a16; }
.lf-eat .lump { border-radius: 50%; }
.lf-eat .tooth { background: #f1e8d4; }
.lf-eat .eye { border-radius: 50%; background: #f1e8d4; }
.lf-eat .pupil { border-radius: 50%; }

/* Type/Shift: ZANS/SULOJEVS, a light narrow word, the green slash, a heavy wide word */
.lf-type-shift { font: 400 .82em/1 'Encode Sans', 'Inter', sans-serif; letter-spacing: -.01em; }
.lf-type-shift .a { font-variation-settings: "wdth" 75, "wght" 380; }
.lf-type-shift .s { color: #c6ff34; margin: 0 .04em; font-variation-settings: "wdth" 100, "wght" 600; }
.lf-type-shift .b { font-variation-settings: "wdth" 125, "wght" 900; }

/* Tenon: Cormorant capitals spaced wide, the way the atelier engraves its name */
.lf-tenon { font: 600 .8em/1 'Cormorant', Garamond, serif; letter-spacing: .34em; }
.lf-tenon .w + .w { margin-left: .2em; }

/* Halfmetre: Karla bold over its ruler, as Halfmetre's own logo (zan, 2026-10-24), red under Zans and dark under Sulojevs */
.lf-halfmetre { flex-direction: column; align-items: flex-start; gap: .16em; font: 700 .9em/1 'Karla', system-ui, sans-serif; letter-spacing: -.01em; }
.lf-halfmetre .row { display: flex; gap: .3em; }
.lf-halfmetre .w { display: block; }
.lf-halfmetre .t { display: inline-block; transform-origin: 0 50%; }
.lf-halfmetre svg { display: block; width: 100%; height: .3em; overflow: visible; }
.lf-halfmetre .half { fill: #e5573c; }

/* Sonar: its own capitals, lit in the colour of the kit playing, with the soft glow its titles have */
.lf-sonar { font: 800 1em/1 var(--display); letter-spacing: .07em; color: var(--accent);
  text-shadow: 0 0 .05em color-mix(in srgb, var(--accent) 60%, transparent), 0 0 .3em color-mix(in srgb, var(--accent) 42%, transparent); }
.lf-sonar .w + .w { margin-left: .2em; }
.lf-sonar.is-pinging .ch { animation: lf-lit .42s ease-out both; animation-delay: calc(var(--i) * 38ms + 120ms); }
@keyframes lf-lit { from { color: var(--ink); text-shadow: none; } }
.lf-ping { position: absolute; left: 50%; top: 50%; z-index: 2; width: 1.4em; height: 1.4em; margin: -.7em 0 0 -.7em; border-radius: 50%; border: 2px solid var(--accent); pointer-events: none; opacity: 0; }

@media (prefers-reduced-motion: reduce) { .lf-sonar.is-pinging .ch { animation: none; } }
