/* Karm Traxx — label sections (post-intro). Same language as the wordmark:
   heavy black type, the curved incision cut, mono catalogue metadata. */
.lb { position: relative; z-index: 20; background: var(--paper); color: var(--ink); padding: clamp(96px,16vh,180px) var(--edge); border-top: 1px solid #1c2126; }
.lb-tag { display: flex; justify-content: space-between; gap: 20px; margin-bottom: clamp(40px,7vh,80px); font: 500 10px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.lb-tag b { color: var(--ink); font-weight: 500; }

/* Incision: the same curved cut that runs through "karm" */
.cut { position: relative; display: inline-block; }
.cut::after { content: ''; position: absolute; left: -2%; right: -2%; top: 61%; height: .045em; min-height: 3px; background: var(--paper);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 710 20' preserveAspectRatio='none'%3E%3Cpath d='M0 12c115-6 177-5 266 0 106 6 177-9 255-9 72 0 124 5 189 1v6c-65 4-117-1-189-1-78 0-149 15-255 9-89-5-151-6-266 0z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 710 20' preserveAspectRatio='none'%3E%3Cpath d='M0 12c115-6 177-5 266 0 106 6 177-9 255-9 72 0 124 5 189 1v6c-65 4-117-1-189-1-78 0-149 15-255 9-89-5-151-6-266 0z'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  height: .09em; transform: scaleX(0); transform-origin: left; transition: transform 1.1s cubic-bezier(.7,0,.2,1) .15s; }
.in .cut::after { transform: scaleX(1); }

.lb-display { margin: 0; font-family: 'Archivo', system-ui, sans-serif; font-weight: 800; font-stretch: 112%; font-size: clamp(54px,11.5vw,210px); line-height: .86; letter-spacing: -.055em; text-transform: lowercase; }
.lb-display span { display: block; overflow: hidden; }
.lb-display span > i { display: block; font-style: normal; transform: translateY(105%); transition: transform 1s cubic-bezier(.2,.7,.1,1); }
.in .lb-display span > i { transform: none; }
.in .lb-display span:nth-child(2) > i { transition-delay: .08s; }
.in .lb-display span:nth-child(3) > i { transition-delay: .16s; }
.lb-display .thin { font-weight: 300; color: var(--muted); }

.lb-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 20px; margin-top: clamp(48px,9vh,110px); }
.lb-copy { grid-column: 7 / span 5; margin: 0; font-size: clamp(17px,1.5vw,22px); line-height: 1.45; letter-spacing: -.01em; }
.lb-facts { grid-column: 1 / span 5; display: grid; grid-template-columns: auto 1fr; gap: 10px 28px; margin: 0; font: 400 11px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .08em; text-transform: uppercase; }
.lb-facts dt { color: var(--muted); }
.lb-facts dd { margin: 0; }

/* Demos */
.demo-cta { display: inline-flex; align-items: center; gap: 22px; margin-top: 44px; padding: 20px 28px; border: 1px solid var(--ink); color: var(--ink); text-decoration: none; font: 500 11px/1 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .16em; text-transform: uppercase; transition: background .3s, color .3s; }
.demo-cta:hover, .demo-cta:focus-visible { background: var(--ink); color: var(--paper); }
.demo-rules { grid-column: 7 / span 6; margin: 0; padding: 0; list-style: none; counter-reset: r; }
.demo-rules li { counter-increment: r; display: grid; grid-template-columns: 52px 1fr; padding: 18px 0; border-top: 1px solid #262d34; font-size: clamp(15px,1.3vw,19px); line-height: 1.4; }
.demo-rules li::before { content: '0' counter(r); font: 400 10px/2 ui-monospace,SFMono-Regular,Menlo,monospace; color: var(--muted); }

/* Footer wordmark, full bleed */
.channels-mark { display: block; width: 100%; margin-top: clamp(70px,14vh,160px); line-height: 0; }
.channels-mark img { width: 100%; filter: invert(.9); opacity: .92; }

@media (max-width:760px) {
  .lb-copy, .lb-facts, .demo-rules { grid-column: 1 / -1; }
  .lb-grid { row-gap: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-display span > i, .cut::after { transition: none; transform: none; }
}

.lb-mark { display: block; width: min(78vw, 860px); margin: 0; line-height: 0; }
.lb-mark img { width: 100%; filter: invert(.9); }

/* Logo hero: after the intro the wordmark stays; on scroll it lifts into the rail. */
.hero-mark { position: absolute; z-index: 3; left: 50%; top: 50%; width: min(72vw, 920px, 120vh); margin: 0; line-height: 0; pointer-events: none;
  transform: translate(-50%,-50%); transform-origin: 50% 50%; }
.hero-mark img { width: 100%; filter: invert(.92); }
.js:not(.intro-logo-arrived):not(.intro-done) .hero-mark { opacity: 0; }
.js:not(.intro-reveal):not(.intro-done) .hero-sub { opacity: 0; }
.hero-sub { transition: opacity .8s; }

.hero-sub { position: absolute; z-index: 3; left: 0; right: 0; bottom: 18%; text-align: center; font: 500 10px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); opacity: calc(1 - var(--hero-lift, 0) * 2); pointer-events: none; }
@media (max-width:600px) { .hero-mark { width: 84vw; } }
.site-rail .rail-logo { opacity: var(--hero-lift, 0) !important; transition: none; }

/* Intro, faster: XX (0–.85s) → letters (.7–1.3s) → space opens (1.65s+) */
.prelude-identity { transition-duration: .5s !important; }
.intro-x-one, .intro-x-two { animation-duration: .85s !important; }
#intro-karm-k { animation-delay: .70s !important; } #intro-karm-a { animation-delay: .76s !important; }
#intro-karm-r { animation-delay: .82s !important; } #intro-karm-m { animation-delay: .88s !important; }
#intro-kt-t { animation-delay: .80s !important; } #intro-kt-r-small { animation-delay: .86s !important; }
#intro-kt-a-small { animation-delay: .92s !important; } #intro-underline { animation-delay: 1.0s !important; }
.intro-letter { animation-duration: .42s !important; }
/* Immersive space: the field arrives from depth after the wordmark is complete */
.ambient-field { transition: opacity 1.4s cubic-bezier(.2,.7,.1,1), transform 2.2s cubic-bezier(.16,.84,.2,1), filter 1.6s; transform-origin: 50% 48%; }
.js:not(.intro-field):not(.intro-done) .ambient-field { opacity: 0; transform: scale(1.6); filter: blur(6px); }
.prelude-count { display: none; }

/* One logo object: the intro wordmark stays on as the hero after the intro. */
.intro-done .prelude { opacity: 1 !important; visibility: visible !important; z-index: 15; background: transparent !important; }
.intro-done .prelude-loading, .intro-done .prelude-actions { display: none !important; }
.intro-logo-arrived .prelude-identity, .intro-done .prelude-identity { opacity: 1; }
.motion-still .prelude { display: block !important; }
@media (prefers-reduced-motion:reduce) { .js .prelude { display: block !important; } }
.lb-facts a { color: inherit; text-decoration: none; border-bottom: 1px solid #4c555c; }
.site-rail { transition: background .3s; } .rail-solid .site-rail { background: linear-gradient(var(--paper) 62%, rgba(8,10,13,0)); }
.intro-fast .intro-letter, .intro-fast .intro-x, .intro-done .intro-letter, .intro-done .intro-x { animation: none !important; opacity: 1 !important; transform: none !important; }
.site-rail .rail-links { margin-left: auto; }
