/* Shoplijn (shoplijn.html): a full-bleed light section; the canvas
   is transparent, so the shirts hang on the page itself. */
.line-hero {
    --ink: #0b0f0c; --muted: #4f584e; --gutter: max(5.5vw, calc((100vw - 1280px) / 2));
    position: relative; overflow: hidden; isolation: isolate;
    height: calc(100svh - clamp(64px, 5.85vw, 84px)); min-height: 560px; max-height: 1000px;
    color: var(--ink);
    background:
        radial-gradient(55% 45% at 50% 38%, #ffffff 0%, #ffffff00 70%),
        radial-gradient(38% 30% at 78% 88%, #30ff0b26, #30ff0b00 70%),
        radial-gradient(30% 26% at 12% 12%, #30ff0b14, #30ff0b00 70%),
        linear-gradient(#f7f8f6, #e6e9e5);
}
.line-hero canvas { position: absolute; inset: 0; z-index: 1; display: block; width: 100%; height: 100%; touch-action: pan-y; }
.line-hero canvas.is-pointing { cursor: pointer; }
.line-hero.is-focused canvas.is-pointing { cursor: grab; }
.line-hero canvas.is-grabbing { cursor: grabbing; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* A drop ticker along the top. */
.line-ticker { position: absolute; z-index: 3; top: 0; left: 0; right: 0; overflow: hidden; height: 34px; background: var(--ink); color: #f4f5f4; pointer-events: none; }
.line-ticker div { display: flex; width: max-content; height: 100%; align-items: center; animation: line-ticker 38s linear infinite; }
.line-ticker span { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font: 700 11px/1 Arial, Helvetica, sans-serif; letter-spacing: .22em; white-space: nowrap; }
.line-ticker span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--studio-green); }
@keyframes line-ticker { to { transform: translateX(-50%); } }

/* The name of the garment in the middle, huge, drifting at half speed. */
.line-words { position: absolute; z-index: 0; inset: 0; pointer-events: none; overflow: hidden; }
.line-word { position: absolute; left: 0; top: 34%; font: 900 clamp(110px, 20vw, 340px)/1 "Arial Black", Arial, Helvetica, sans-serif; letter-spacing: -.05em; white-space: nowrap; translate: -50% 0; color: color-mix(in srgb, var(--c) 9%, transparent); -webkit-text-stroke: 2px color-mix(in srgb, var(--c) 32%, #c9d0c8); opacity: 0; will-change: transform, opacity; }

/* The cursor over a garment: a green bubble. */
.line-cursor { position: fixed; z-index: 60; left: 0; top: 0; width: 86px; height: 86px; margin: -43px 0 0 -43px; border-radius: 50%; background: var(--studio-green); box-shadow: 0 12px 34px #30ff0b59; pointer-events: none; scale: 0; transition: scale .28s cubic-bezier(.3, 1.4, .5, 1); }
.line-cursor::after { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink); font: 700 13px Arial, Helvetica, sans-serif; letter-spacing: .02em; }
.line-cursor.is-on { scale: 1; }
.line-hero canvas.has-bubble { cursor: none; }

/* Price tags that hang under each shirt. */
.line-tags { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.line-tag { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border: 0; border-radius: 999px; background: #fffffff2; box-shadow: 0 8px 24px #0b0f0c1f, 0 1px 0 #0b0f0c0d; color: var(--ink); font: 13px/1 Arial, Helvetica, sans-serif; white-space: nowrap; pointer-events: auto; cursor: pointer; transition: opacity .35s, background .2s, box-shadow .2s, scale .2s; }
.line-tag::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 16px; background: #0b0f0c33; }
.line-tag b { font-weight: 700; }
.line-tag span:last-child { color: var(--muted); }
.line-tag .swatch { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px #0b0f0c26; }
.line-tag:hover, .line-tag.is-hover, .line-tag:focus-visible { background: var(--studio-green); box-shadow: 0 10px 30px #30ff0b59; scale: 1.06; }
.line-tag:hover span:last-child, .line-tag.is-hover span:last-child { color: var(--ink); }
.line-tag:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.line-tag.is-centre { scale: 1.1; box-shadow: 0 12px 30px #0b0f0c2e, 0 0 0 2px var(--studio-green); }
.line-tag.is-centre .swatch { animation: tag-pulse 1.6s ease-in-out infinite; }
@keyframes tag-pulse { 50% { box-shadow: inset 0 0 0 1px #0b0f0c26, 0 0 0 5px #30ff0b40; } }
.line-tag.is-off, .line-hero.is-focused .line-tag { opacity: 0; pointer-events: none; }

/* Headline, bottom left. */
.line-intro { position: absolute; z-index: 2; left: var(--gutter); bottom: 7%; max-width: min(780px, 62%); pointer-events: none; transition: opacity .45s, translate .45s; }
/* The headline arrives with the line. */
.line-hero:not(.has-arrived) .line-intro > * { opacity: 0; translate: 0 24px; }
.line-intro > * { transition: opacity .7s, translate .8s cubic-bezier(.2, .8, .2, 1); }
.line-intro > :nth-child(2) { transition-delay: .12s; }
.line-intro > :nth-child(3) { transition-delay: .24s; }
.line-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 12px !important; font-size: 12px; font-weight: 700; letter-spacing: .24em; color: var(--muted); }
.line-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--studio-green); box-shadow: 0 0 0 4px #30ff0b33; }
.line-intro h1 { margin: 0; white-space: nowrap; font-size: clamp(40px, 5.4vw, 84px); line-height: .95; letter-spacing: -.035em; color: var(--ink); }
.line-intro h1 span { color: var(--studio-green); -webkit-text-stroke: 1px #1c9e04; }
.line-intro > p:last-child { margin-top: 14px; max-width: 440px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.line-hero.is-focused .line-intro { opacity: 0; translate: 0 16px; }

/* Bag, pause and speed. */
.line-back { position: absolute; z-index: 3; top: 54px; left: var(--gutter); display: inline-flex; align-items: center; padding: 10px 16px; border: 1px solid #0b0f0c26; border-radius: 999px; background: #ffffffcc; color: var(--ink) !important; font-size: 14px; transition: background .2s, border-color .2s; }
.line-back:hover { background: var(--studio-green); border-color: var(--studio-green); }
.line-back:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.line-hero.is-focused .line-back { opacity: 0; pointer-events: none; }
.line-bag { position: absolute; z-index: 3; top: 54px; right: var(--gutter); display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #f4f5f4; font-size: 14px; }
.line-bag svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.line-bag b { min-width: 1ch; color: var(--studio-green); }
.line-bag.is-bumped { animation: line-bump .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes line-bump { 40% { scale: 1.18; } }
.line-controls { position: absolute; z-index: 3; right: var(--gutter); bottom: 7%; display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px; background: var(--ink); box-shadow: 0 12px 30px #0b0f0c33; transition: opacity .3s; }
.line-pause { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #ffffff1a; color: #f4f5f4; cursor: pointer; transition: background .2s, color .2s; }
.line-pause:hover { background: var(--studio-green); color: var(--ink); }
.line-speed { display: flex; gap: 2px; }
.line-speed button { min-width: 44px; height: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: none; color: #c9d0c8; font: 700 14px Arial, Helvetica, sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.line-speed button:hover { color: #fff; }
.line-speed button[aria-pressed="true"] { background: var(--studio-green); color: var(--ink); }
.line-speed button:focus-visible, .line-pause:focus-visible { outline: 2px solid var(--studio-green); outline-offset: 2px; }
.line-pause svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.line-pause .icon-play { fill: currentColor; stroke-width: 1.5; }
.line-pause[aria-pressed="true"] .icon-pause, .line-pause[aria-pressed="false"] .icon-play { display: none; }
.line-hero.is-focused .line-controls { opacity: 0; pointer-events: none; }
.line-card button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Product card next to the zoomed shirt. */
.line-card { position: absolute; z-index: 4; top: 50%; right: var(--gutter); width: min(380px, 40vw); padding: 30px 28px 22px; border-radius: 20px; background: #fffffff5; box-shadow: 0 30px 80px #0b0f0c2e, 0 2px 0 #0b0f0c0a; color: var(--ink); translate: 30px -50%; opacity: 0; transition: translate .5s cubic-bezier(.2, .8, .2, 1), opacity .35s; }
.line-card.is-open { translate: 0 -50%; opacity: 1; }
.line-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #0b0f0c0d; color: var(--ink); cursor: pointer; }
.line-close:hover { background: #0b0f0c1f; }
.line-close svg, .line-nav svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.line-card-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.line-card .swatch { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px #0b0f0c26; }
.line-card h2 { margin: 8px 0 0; font-size: clamp(28px, 2.6vw, 38px); line-height: 1; letter-spacing: -.03em; }
.line-price { margin-top: 10px !important; font-size: 22px; font-weight: 700; }
.line-card-copy { margin-top: 12px !important; font-size: 14px; line-height: 1.5; color: var(--muted); }
.line-card-tip { display: block; margin-top: 6px; font-size: 12px; color: #6e776d; }
.line-sizes { display: flex; gap: 8px; margin-top: 20px; }
.line-sizes button { flex: 1; height: 44px; border: 1px solid #0b0f0c26; border-radius: 10px; background: #fff; color: var(--ink); font: 700 14px Arial, Helvetica, sans-serif; cursor: pointer; transition: background .15s, border-color .15s; }
.line-sizes button:hover { border-color: var(--ink); }
.line-sizes button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.line-add { position: relative; display: grid; place-items: center; width: 100%; height: 56px; margin-top: 14px; border: 0; border-radius: 999px; background: var(--studio-green); color: var(--ink); font: 700 16px Arial, Helvetica, sans-serif; cursor: pointer; transition: box-shadow .2s, scale .15s; }
.line-add:hover { box-shadow: 0 12px 30px #30ff0b66; }
.line-add:active { scale: .97; }
.line-add > span { grid-area: 1 / 1; transition: opacity .2s, translate .25s; }
.line-add .add-done { opacity: 0; translate: 0 8px; }
.line-add.is-added .add-label { animation: add-out 1.6s both; }
.line-add.is-added .add-done { animation: add-in 1.6s both; }
@keyframes add-out { 0% { opacity: 1; translate: 0 0; } 12%, 80% { opacity: 0; translate: 0 -8px; } 100% { opacity: 1; translate: 0 0; } }
@keyframes add-in { 0% { opacity: 0; translate: 0 8px; } 12%, 80% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 8px; } }
/* A burst of little green dots. */
.line-add i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--studio-green); box-shadow: 0 0 0 2px #fff; opacity: 0; pointer-events: none; }
.line-add.is-added i { animation: add-burst .7s cubic-bezier(.2, .7, .3, 1) both; }
.line-add i:nth-of-type(1) { --x: -120px; --y: -46px; }
.line-add i:nth-of-type(2) { --x: -60px; --y: -70px; }
.line-add i:nth-of-type(3) { --x: 0px; --y: -82px; }
.line-add i:nth-of-type(4) { --x: 62px; --y: -66px; }
.line-add i:nth-of-type(5) { --x: 122px; --y: -42px; }
.line-add i:nth-of-type(6) { --x: 30px; --y: -100px; background: var(--ink); }
@keyframes add-burst { 0% { opacity: 1; transform: translate(0, 0) scale(.4); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(1); } }
.line-demo { margin-top: 10px !important; font-size: 12px; text-align: center; color: #6e776d; }
.line-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #0b0f0c14; font-size: 13px; color: var(--muted); }
.line-nav button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #0b0f0c26; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: background .15s; }
.line-nav button:hover { background: var(--studio-green); border-color: var(--studio-green); }

.line-status { position: absolute; z-index: 3; left: 0; right: 0; top: 45%; text-align: center; font-size: 15px; color: var(--muted); }

@media (max-width: 700px) {
    .line-hero { --gutter: 16px; height: calc(100svh - 64px); min-height: 580px; }
    .line-ticker { height: 28px; }
    .line-ticker span { gap: 16px; padding-right: 16px; font-size: 10px; }
    .line-intro { bottom: 76px; right: 16px; max-width: none; }
    .line-eyebrow { margin-bottom: 8px !important; font-size: 10px; letter-spacing: .2em; }
    .line-intro h1 { font-size: clamp(34px, 10vw, 44px); }
    .line-intro > p:last-child { margin-top: 8px; font-size: 14px; }
    .line-intro-more { display: none; }
    .line-word { font-size: 28vw; }
    .line-controls { padding: 4px; gap: 4px; }
    .line-pause { width: 36px; height: 36px; }
    .line-speed button { min-width: 38px; height: 36px; font-size: 13px; }
    .line-controls { bottom: 20px; }
    .line-bag { top: 40px; padding: 8px 13px; }
    .line-back { top: 40px; padding: 8px 13px; font-size: 13px; }
    .line-word { top: 30%; }
    .line-tag { gap: 6px; padding: 7px 11px 7px 8px; font-size: 11px; }
    .line-tag .swatch { width: 12px; height: 12px; }
    .line-demo { margin-top: 8px !important; font-size: 11px; }
    .line-card { top: auto; bottom: 12px; left: 12px; right: 12px; width: auto; padding: 22px 20px 16px; translate: 0 30px; }
    .line-card.is-open { translate: 0 0; }
    .line-card-copy { display: none; }
    .line-card h2 { font-size: 28px; }
    .line-price { margin-top: 6px !important; font-size: 19px; }
    .line-sizes { margin-top: 14px; }
    .line-add { height: 52px; }
    .line-nav { margin-top: 12px; padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .line-ticker div { animation: none; }
    .line-hero:not(.has-arrived) .line-intro > * { opacity: 1; translate: none; }
    .line-card, .line-intro { transition: none; }
}
