/* =============================================================================
   LINE ABAYA COUTURE — Salla custom CSS  (theme: Raed — Twig 1.382 + new generation)
   -----------------------------------------------------------------------------
   Paste into: المتجر وقنوات البيع ← تصميم المتجر ← تخصيص النسخة ← تخصيص متقدم ← CSS
   Requires Salla Pro/Special plan + a connected custom domain (Salla help centre).

   Every selector below was checked on 2026-12-02 against:
     • the live storefront markup of salla.sa/n-lineabaya (header, home, footer), and
     • Raed's own stylesheet  cdn.assets.salla.network/themes/1247874246/1.382.0/app.css
       and Twig sources (github.com/SallaApp/theme-raed) for product cards,
       product page, cart and the home blocks not yet used on the store.
   Sections marked [SOURCE-VERIFIED] could not be seen live yet (no products on
   the store) — re-check them once products exist.

   Nothing here hides or disables Salla commerce features. Remove the whole
   file to return to stock Raed instantly.
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;1,300&family=Jost:wght@400;500&family=Markazi+Text:wght@400;500&display=swap");

/* ---------- A. Tokens ---------- */
:root {
  --line-burgundy: #5A0F1E;
  --line-ivory: #EEEAE3;
  --line-gold: #C9A76A;
  --line-black: #1A1A1A;
  --line-neutral-100: #E7E1D7;
  --line-neutral-200: #D9D0C2;
  --line-ink-muted: #5B524A;
  --line-hair: rgb(26 26 26 / 0.12);
  --line-display: "Markazi Text", "IBM Plex Sans Arabic", serif;
  --line-label: "Jost", "IBM Plex Sans Arabic", sans-serif;
  --line-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --line-silk: cubic-bezier(0.22, 1, 0.36, 1);
  --line-film: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- B. Page ---------- */
body, body .app-inner { background-color: var(--line-ivory); color: var(--line-black); -webkit-font-smoothing: antialiased; }
body ::selection { background: var(--line-burgundy); color: var(--line-ivory); }
body :where(a, button, input, select, textarea):focus-visible { outline: 1.5px solid var(--line-burgundy); outline-offset: 3px; }
body .bg-white:not(.s-product-card-entry *):not(.s-modal *) { background-color: var(--line-ivory); }

/* ---------- C. Header (live-verified) ---------- */
.store-header .top-navbar { background: var(--line-ivory); border-bottom: 1px solid var(--line-hair); }
.store-header .header-search input,
.store-header .header-search .s-search-input { background: transparent !important; border: 0 !important; border-bottom: 1px solid var(--line-hair) !important; border-radius: 0 !important; }
#mainnav.main-nav-container { background: var(--line-ivory) !important; box-shadow: none !important; border-bottom: 1px solid transparent; transition: border-color .32s var(--line-ease); }
#mainnav .inner { background: var(--line-ivory) !important; }
/* new-generation Raed header ("نسخة مطوّرة") — live-verified 2026-12-02 on preview.salla.design */
.site-header__topnav { background: var(--line-ivory) !important; border-bottom: 1px solid var(--line-hair); }
.site-header__bar { background: var(--line-ivory); border-bottom: 1px solid transparent; transition: border-color .32s var(--line-ease); }
body.line-scrolled .site-header__bar { border-bottom-color: var(--line-hair); }
.site-header .header-action, .site-header__burger { color: var(--line-black); }
body.line-scrolled #mainnav, #mainnav.fixed-pinned { border-bottom-color: var(--line-hair); }
/* the approved logo: upload the exact ivory crop (see install guide) so its plate disappears on ivory */
#mainnav .navbar-brand img { max-height: 58px; width: auto; }
@media (max-width: 1023px) { #mainnav .navbar-brand img { max-height: 46px; } }
#mainnav .mburger i, .store-header .header-btn__icon { color: var(--line-black) !important; }
.s-cart-summary-count { background: var(--line-burgundy) !important; color: var(--line-ivory) !important; }
/* desktop menu links: quiet text + burgundy underline */
.main-menu > li > a { position: relative; font-weight: 500; }
.main-menu > li > a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 6px; height: 1px; background: var(--line-burgundy); transform: scaleX(0); transform-origin: right; transition: transform .32s var(--line-ease); }
html[dir="ltr"] .main-menu > li > a::after { transform-origin: left; }
@media (hover: hover) { .main-menu > li > a:hover::after { transform: scaleX(1); } }

/* reading-progress hairline (added by line-salla.js on the home page) */
.line-progress { position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: var(--line-burgundy); transform: scaleX(var(--line-read, 0)); transform-origin: right; pointer-events: none; z-index: 5; }
html[dir="ltr"] .line-progress { transform-origin: left; }

/* ---------- D. Section rhythm & titles ---------- */
#main-content > .s-block, #main-content > section.s-block { margin-top: clamp(3.5rem, 2rem + 6vw, 8rem); }
.s-block__title h2, .s-block__title .title, .s-block__title > div > h2 {
  font-family: var(--line-display) !important;
  font-weight: 500 !important;
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 3rem) !important;
  line-height: 1.2 !important;
  color: var(--line-black) !important;
}
.s-block__title { border: 0 !important; margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem) !important; }
.s-block__title a { font-size: .86rem; font-weight: 500; text-decoration: underline; text-underline-offset: 6px; color: var(--line-black) !important; }

/* ---------- E. Hero slider — "enhanced slider" block [SOURCE-VERIFIED] ---------- */
.s-block--hero-slider .swiper-slide { min-height: min(86svh, 820px) !important; background: var(--line-black); overflow: hidden; }
.s-block--hero-slider .swiper-slide img,
.s-block--hero-slider .swiper-slide .lazy__bg { transform: scale(1.08); transition: transform 9s linear; }
.s-block--hero-slider .swiper-slide-active img,
.s-block--hero-slider .swiper-slide-active .lazy__bg { transform: scale(1); }
.s-block--hero-slider .swiper-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(20 16 12 / .62), rgb(20 16 12 / .08) 55%); pointer-events: none; }
.s-block--hero-slider .home-slider__content { z-index: 2; align-items: flex-end !important; padding-bottom: clamp(2.5rem, 2rem + 4vw, 5rem) !important; }
.s-block--hero-slider .home-slider__content h2,
.s-block--hero-slider .home-slider__content .font-bold { font-family: var(--line-display) !important; font-weight: 500 !important; font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.4rem) !important; line-height: 1.2 !important; }
.s-block--hero-slider .description { font-size: 1.02rem; opacity: .86; }
.s-block--hero-slider .swiper-pagination-bullet { width: 36px !important; height: 1px !important; border-radius: 0 !important; background: rgb(238 234 227 / .4) !important; opacity: 1 !important; }
.s-block--hero-slider .swiper-pagination-bullet-active { background: var(--line-ivory) !important; }

/* ---------- F. Banners / square photos / fixed banner / full banner [SOURCE-VERIFIED] ---------- */
.s-block--banners .banner-entry,
.s-block--banners .lazy__bg,
.banner--fixed { border-radius: 2px !important; overflow: hidden; }
.s-block--banners .banner-entry img,
.s-block--banners .lazy__bg,
.banner--fixed img { transition: transform 1.6s var(--line-silk); }
@media (hover: hover) {
  .s-block--banners a:hover img, .s-block--banners a:hover .lazy__bg, .banner--fixed:hover img { transform: scale(1.035); }
}
.s-block--banners .banner__title, .s-block--banners .text-with-border { font-family: var(--line-display) !important; font-weight: 500 !important; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem) !important; border: 0 !important; }
.s-block--banners .banner__description { font-size: .86rem; opacity: .8; }
.s-block--full-banner .full-banner-entry { min-height: min(88svh, 760px); }
.s-block--full-banner .text-2xl { font-family: var(--line-display) !important; font-weight: 500 !important; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem) !important; line-height: 1.25 !important; }
.s-block--full-banner a.border { border-radius: 2px !important; border-color: rgb(238 234 227 / .6) !important; font-weight: 500 !important; transition: background-color .32s var(--line-ease), color .32s var(--line-ease); }
@media (hover: hover) { .s-block--full-banner a.border:hover { background: var(--line-ivory); color: var(--line-black) !important; } }

/* ---------- G. Product cards [SOURCE-VERIFIED] ---------- */
.s-product-card-entry { background: transparent !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; }
.s-product-card-image { aspect-ratio: 3 / 4; border-radius: 2px !important; overflow: hidden; background: var(--line-neutral-100); }
.s-product-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--line-silk); }
@media (hover: hover) { .s-product-card-entry:hover .s-product-card-image img { transform: scale(1.04); } }
.s-product-card-content { padding-inline: 0 !important; }
.s-product-card-content-title, .s-product-card-content-title a { font-family: var(--line-display) !important; font-weight: 500 !important; font-size: 1.22rem !important; line-height: 1.35 !important; color: var(--line-black) !important; }
.s-product-card-content-subtitle { color: var(--line-ink-muted) !important; font-size: .82rem; }
.s-product-card-price, .s-product-card-sale-price h4 { color: var(--line-black) !important; font-weight: 500 !important; }
.s-product-card-sale-price span { color: var(--line-ink-muted) !important; }
.s-product-card-wishlist-btn { background: rgb(238 234 227 / .92) !important; box-shadow: none !important; }
.s-product-card-out-badge { background: var(--line-black) !important; color: var(--line-ivory) !important; border-radius: 999px !important; }
.s-product-card-promotion-title { background: var(--line-burgundy) !important; color: var(--line-ivory) !important; border-radius: 999px !important; }

/* ---------- H. Buttons (live + source) ---------- */
.btn--primary, .s-button-primary.s-button-solid, .btn--add-to-cart, .s-button-btn.s-button-primary {
  background-color: var(--line-black) !important;
  border-color: var(--line-black) !important;
  color: var(--line-ivory) !important;
  border-radius: 2px !important;
  font-weight: 500 !important;
  transition: background-color .32s var(--line-ease), transform .14s var(--line-ease) !important;
}
@media (hover: hover) { .btn--primary:hover, .s-button-primary.s-button-solid:hover, .btn--add-to-cart:hover, .s-button-btn.s-button-primary:hover { background-color: var(--line-burgundy) !important; border-color: var(--line-burgundy) !important; } }
.btn--primary:active, .s-button-primary:active, .btn--add-to-cart:active { transform: scale(.98); }
.btn--outline, .btn--outline-primary, .s-button-gray-outline { border-radius: 2px !important; border-color: rgb(26 26 26 / .35) !important; color: var(--line-black) !important; }

/* ---------- I. Features block (live-verified) ---------- */
:is(.s-block--features, .s-block--store-features) .s-block--features__item {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-top: 1px solid var(--line-hair) !important;
  border-radius: 0 !important;
  padding-top: 2rem !important;
}
:is(.s-block--features, .s-block--store-features) .feature-icon { background: transparent !important; color: var(--line-burgundy) !important; border: 1px solid rgb(90 15 30 / .25); width: 56px !important; height: 56px !important; }
:is(.s-block--features, .s-block--store-features) .feature-icon i { color: var(--line-burgundy) !important; font-size: 1.4rem !important; }
:is(.s-block--features, .s-block--store-features) h2, :is(.s-block--features, .s-block--store-features) h3, :is(.s-block--features, .s-block--store-features) .font-bold { font-family: var(--line-display) !important; font-weight: 500 !important; font-size: 1.28rem !important; }
:is(.s-block--features, .s-block--store-features) p { color: var(--line-ink-muted) !important; }

/* ---------- J. Product page [SOURCE-VERIFIED] ---------- */
.container--breadcrumbs .breadcrumbs { font-size: .8rem; color: var(--line-ink-muted); }
.product-single .details-slider, .product-single .details-slider img, .product-single .swiper-slide img { border-radius: 2px !important; }
.product-single .details-slider { background: var(--line-neutral-100); }
.product-single .main-content h1 { font-family: var(--line-display) !important; font-weight: 500 !important; font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.7rem) !important; line-height: 1.2 !important; }
.product-single .main-content .text-primary { color: var(--line-black) !important; }
.s-product-options .s-product-options-option-label, .s-product-options legend { font-weight: 500; }
.s-product-options input[type="radio"]:checked + label,
.s-product-options .s-product-options-thumbnails-wrapper input:checked + label { border-color: var(--line-black) !important; box-shadow: 0 0 0 1px var(--line-black) !important; }
.s-quantity-input, .s-quantity-input-input { border-radius: 2px !important; border-color: var(--line-hair) !important; }
.btn--wishlist, .btn--share { background: transparent !important; border: 1px solid var(--line-hair) !important; }
.sticky-product-bar { background: rgb(238 234 227 / .97) !important; border-top: 1px solid var(--line-hair); box-shadow: none !important; }

/* ---------- K. Cart [SOURCE-VERIFIED] ---------- */
.cart-item { background: transparent !important; border-radius: 0 !important; border-bottom: 1px solid var(--line-hair); box-shadow: none !important; }
.cart-item img { border-radius: 2px !important; }
.cart-submit-wrap { background: var(--line-ivory) !important; }

/* ---------- L. Footer (live-verified) ---------- */
.store-footer, .store-footer__inner { background: var(--line-black) !important; color: rgb(238 234 227 / .86) !important; }
.store-footer h3, .store-footer .font-bold { font-family: var(--line-label); font-weight: 500 !important; letter-spacing: .02em; color: rgb(238 234 227 / .6) !important; font-size: .86rem !important; }
.store-footer a { color: rgb(238 234 227 / .86) !important; transition: color .2s var(--line-ease); }
@media (hover: hover) { .store-footer a:hover { color: var(--line-ivory) !important; text-decoration: underline; text-underline-offset: 5px; } }
.store-footer .copyright-text { color: rgb(238 234 227 / .5) !important; }
.store-footer > div:last-child { background: #141414 !important; border-top: 1px solid rgb(238 234 227 / .08); }

/* ---------- M. LINE editorial section (injected by line-salla.js when images are set) ---------- */
.line-details { margin-top: clamp(4rem, 3rem + 6vw, 9rem); }
.line-details__head { display: grid; justify-items: center; text-align: center; gap: .9rem; margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); }
.line-details__act { display: inline-flex; align-items: center; gap: .75rem; color: var(--line-ink-muted); font-size: .78rem; }
.line-details__act::before { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .6; }
.line-details__title { font-family: var(--line-display); font-weight: 500; font-size: clamp(2.3rem, 1.6rem + 3vw, 4.2rem); line-height: 1.2; color: var(--line-black); }
.line-details__copy { max-width: 42ch; color: var(--line-ink-muted); font-size: 1.08rem; line-height: 1.9; }
.line-details__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, .5rem + 1.6vw, 2.25rem); row-gap: 3rem; align-items: start; }
.line-dtl { margin: 0; display: grid; gap: .7rem; }
.line-dtl__media { position: relative; overflow: hidden; background: var(--line-neutral-100); }
.line-dtl__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; will-change: transform; }
.line-dtl--a { grid-column: 1 / span 5; grid-row: 1 / span 2; } .line-dtl--a .line-dtl__media { aspect-ratio: 3 / 4.2; }
.line-dtl--b { grid-column: 7 / span 6; grid-row: 1; margin-top: 14%; } .line-dtl--b .line-dtl__media { aspect-ratio: 16 / 10; }
.line-dtl--c { grid-column: 7 / span 3; grid-row: 2; } .line-dtl--d { grid-column: 10 / span 3; grid-row: 2; margin-top: 30%; }
.line-dtl--c .line-dtl__media, .line-dtl--d .line-dtl__media { aspect-ratio: 3 / 4; }
.line-dtl figcaption { display: flex; gap: .75rem; align-items: baseline; font-size: .88rem; }
.line-dtl figcaption span { font-family: var(--line-label); font-size: .64rem; letter-spacing: .22em; color: var(--line-ink-muted); }
@media (max-width: 899px) {
  .line-details__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 1.5rem; column-gap: .75rem; }
  .line-dtl--a, .line-dtl--b { grid-column: 1 / span 6; grid-row: auto; margin-top: 0; }
  .line-dtl--c { grid-column: 1 / span 3; grid-row: auto; } .line-dtl--d { grid-column: 4 / span 3; grid-row: auto; margin-top: 18%; }
}

/* ---------- N. Motion (classes set by line-salla.js; no JS → nothing hidden) ---------- */
.line-js .line-reveal { opacity: 0; transform: translateY(22px); transition: opacity 1.1s var(--line-silk), transform 1.1s var(--line-silk); transition-delay: var(--line-delay, 0ms); }
.line-js .line-reveal.is-in { opacity: 1; transform: none; }
.line-js .line-shutter { clip-path: inset(12% 0 0 0); transition: clip-path 1.4s var(--line-film); transition-delay: var(--line-delay, 0ms); }
.line-js .line-shutter.is-in { clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  .line-js .line-reveal, .line-js .line-shutter { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  .s-block--hero-slider .swiper-slide img, .s-block--hero-slider .swiper-slide .lazy__bg, .line-dtl__media img { transform: none !important; transition: none !important; }
}

/* ---------- O. Prototype layout on new-generation Raed (live-verified 2026-12-02) ---------- */
/* header: menu | centred logo | actions, as in the prototype */
.site-header__bar-inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important; align-items: center; min-height: 88px; }
.site-header__nav-toggle, .site-header__mainmenu { grid-column: 1; grid-row: 1; justify-self: start; min-width: 0; }
.site-header__brand { grid-column: 2; grid-row: 1; justify-self: center; }
.site-header__actions { grid-column: 3; grid-row: 1; justify-self: end; }
.site-header__brand img { height: 64px !important; width: auto !important; max-width: none !important; }
@media (max-width: 1023px) { .site-header__bar-inner { min-height: 68px; } .site-header__brand img { height: 50px !important; } }
.site-header__topnav { font-size: .8rem; }

/* chapter label: 02 —— التفاصيل */
.line-act { display: inline-flex; align-items: center; gap: .9rem; margin: 0 0 1.4rem; font-size: .8rem; color: var(--line-ink-muted); }
.line-act__num { font-family: var(--line-label); font-size: .72rem; letter-spacing: .2em; }
.line-act__rule { width: 44px; height: 1px; background: currentColor; opacity: .6; }
.line-details__head .line-act { margin: 0; }

/* text link with an underline, as in the prototype */
.line-link { display: inline-flex; align-items: center; gap: .6rem; padding-bottom: .55rem; border-bottom: 1px solid currentColor; font-size: .95rem; font-weight: 500; color: var(--line-black); text-decoration: none; }
.line-link svg { width: 14px; height: 14px; transition: transform .32s var(--line-ease); }
@media (hover: hover) { .line-stage .line-link:hover svg { transform: translateY(3px); } .line-story .line-link:hover svg { transform: translateX(-3px); } }
html[dir="ltr"] .line-story .line-link svg { transform: scaleX(-1); }

/* 01 opening stage (first quotes block) */
#main-content > .line-stage, #main-content > section.s-block--bundle-quotes:first-of-type { min-height: min(74svh, 720px); margin-top: 0 !important; display: grid; align-content: center; justify-items: center; text-align: center; padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.line-stage__more { display: grid; justify-items: center; gap: 2.2rem; margin-top: 1.4rem; }
.line-stage__lede { max-width: 30ch; margin: 0; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.9; color: var(--line-ink-muted); }

/* 03 story (later quotes blocks): charcoal chapter inside a thin frame */
#main-content > .line-story, #main-content > section.s-block--bundle-quotes ~ section.s-block--bundle-quotes { position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: center; text-align: center; margin-inline: clamp(0px, 2vw, 30px); padding: clamp(6rem, 4rem + 8vw, 11rem) 1.25rem; background: var(--line-black); color: var(--line-ivory); }
#main-content > .line-story::before, #main-content > section.s-block--bundle-quotes ~ section.s-block--bundle-quotes::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 50% 0%, rgb(238 234 227 / .06), transparent 62%); }
.line-story .line-act { color: rgb(238 234 227 / .7); }
.line-story .line-link { margin-top: 2.4rem; color: var(--line-ivory); }

/* footer: the logo artwork is a woven label, so it sits as a small ivory label */
.store-footer__brand img { height: 64px !important; width: auto !important; aspect-ratio: 586 / 499; object-fit: contain; padding: 6px; background: var(--line-ivory); border-radius: 2px; }

/* keep the stage/story pieces in order even if React redraws a block */
.line-stage__more { order: 2; }
.line-story > .line-act { order: -1; }
.line-story > .line-link { order: 2; }
/* the logo intro is drawn by line-salla.js from a <style> in <head> (pseudo-elements only) */
/* pinned header (new-gen Raed adds .is-scrolled and paints it white): keep it ivory so the
   logo file's own ivory ground blends in, and settle it to a slimmer bar */
.site-header__bar.is-scrolled { background: var(--line-ivory) !important; box-shadow: 0 1px 0 var(--line-hair) !important; }
.site-header__bar.is-scrolled .site-header__bar-inner { min-height: 72px; }
.site-header__bar.is-scrolled .site-header__brand img { height: 52px !important; }
@media (max-width: 1023px) {
  .site-header__bar.is-scrolled .site-header__bar-inner { min-height: 60px; }
  .site-header__bar.is-scrolled .site-header__brand img { height: 44px !important; }
}
/* the reading-progress line sits under the bar; the outer wrapper anchors it while the bar is unpinned */
.site-header__bar-outer { position: relative; }

/* ---------- P. Prototype motion (v5) — CSS animations + classes set after hydration ---------- */
@keyframes line-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes line-cue { 0% { background-position: 0 -56px, 0 0; } 60%, 100% { background-position: 0 56px, 0 0; } }
@keyframes line-satin {
  0%   { background-position: 0% 0%, 100% 100%, 0 0; }
  100% { background-position: 100% 70%, 0% 30%, 0 0; }
}
@keyframes line-kenburns { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes line-bar { to { transform: scaleX(1); } }
@keyframes line-show { to { opacity: 1; } }

/* until hydration finishes, the home content waits unseen (a failsafe shows it after 3s if JS never runs) */
@media (prefers-reduced-motion: no-preference) {
  html:not(.line-js) body.index #main-content { opacity: 0; animation: line-show 0s 3s forwards; }
}

/* 01 opening: full first screen, lede + link rise after the title; scroll drifts it away */
#main-content > .line-stage, #main-content > section.s-block--bundle-quotes:first-of-type { position: relative; min-height: min(calc(100svh - 150px), 900px); }
.line-js .line-stage { translate: 0 calc(var(--line-out, 0) * 70px); opacity: calc(1 - var(--line-out, 0) * .55); }
.line-js .line-stage__lede { animation: line-rise 1.2s var(--line-silk) calc(var(--line-open, 0ms) + 600ms) both; }
.line-js .line-stage__foot { animation: line-rise 1.2s var(--line-silk) calc(var(--line-open, 0ms) + 760ms) both; }
.line-stage__foot { display: flex; align-items: center; gap: 2.5rem; }
/* scroll cue: a thin line with a burgundy stroke travelling down it */
.line-stage::after { content: ""; position: absolute; left: 50%; bottom: clamp(.75rem, 3vh, 2rem); width: 1px; height: 56px; background: linear-gradient(var(--line-burgundy), var(--line-burgundy)) no-repeat 0 -56px / 1px 56px, linear-gradient(rgb(26 26 26 / .14), rgb(26 26 26 / .14)); }
.line-js .line-stage::after { animation: line-rise 1s var(--line-silk) calc(var(--line-open, 0ms) + 1100ms) both, line-cue 2.4s var(--line-film) calc(var(--line-open, 0ms) + 2100ms) infinite; }
.line-stage--media::after { display: none; }

/* chapter labels: the short rule draws in as the label arrives */
.line-js .line-act.line-reveal .line-act__rule { transform: scaleX(0); transform-origin: right; transition: transform 1.2s var(--line-silk) calc(var(--line-delay, 0ms) + 250ms); }
html[dir="ltr"].line-js .line-act.line-reveal .line-act__rule { transform-origin: left; }
.line-js .line-act.line-reveal.is-in .line-act__rule { transform: scaleX(1); }

/* 02 details: the link glides here; leave room for the pinned header */
.line-details { scroll-margin-top: 96px; }

/* 03 story: unveils from a centred window, with a slow satin sheen (decorative, not a product photo) */
.line-js .line-unveil { clip-path: inset(10% 8% 10% 8%); transition: clip-path 1.6s var(--line-film); }
.line-js .line-unveil.is-in { clip-path: inset(0 0 0 0); }
#main-content > .line-story::before {
  background:
    radial-gradient(38% 55% at 50% 50%, rgb(238 234 227 / .085), transparent 70%),
    radial-gradient(45% 60% at 50% 50%, rgb(90 15 30 / .32), transparent 72%),
    radial-gradient(120% 80% at 50% 0%, rgb(238 234 227 / .06), transparent 62%);
  background-size: 220% 220%, 200% 200%, 100% 100%;
  animation: line-satin 22s var(--line-film) infinite alternate;
}
.line-story > .line-link { order: 2; }
/* optional story photo (LINE_CONFIG.story.image) */
.line-story__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.line-story__media img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; transform: translate3d(0, var(--line-py, 0px), 0); }
#main-content > .line-story--media::before { background: radial-gradient(85% 75% at 50% 55%, rgb(20 16 12 / .6), rgb(20 16 12 / .3) 70%, rgb(20 16 12 / .42)); animation: none; }

/* optional opening photos (LINE_CONFIG.stage.images): the prototype's two-column stage */
.line-stage__frame { position: relative; margin: 0; aspect-ratio: 4 / 5; width: min(100%, 560px); max-height: calc(100svh - 190px); overflow: hidden; background: var(--line-neutral-100); }
.line-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s var(--line-film); }
.line-slide.is-active { opacity: 1; }
.line-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.line-slide.is-active img { animation: line-kenburns 9s linear both; }
.line-js .line-stage__frame { animation: line-rise 1.4s var(--line-silk) calc(var(--line-open, 0ms) + 200ms) both; }
.line-bars { display: flex; gap: .5rem; }
.line-bars span { position: relative; width: 40px; height: 1px; background: rgb(26 26 26 / .18); overflow: hidden; }
.line-bars span::after { content: ""; position: absolute; inset: 0; background: var(--line-black); transform: scaleX(0); transform-origin: right; }
html[dir="ltr"] .line-bars span::after { transform-origin: left; }
.line-bars span.is-done::after { transform: scaleX(1); }
.line-bars span.is-active::after { animation: line-bar var(--line-slide, 6000ms) linear forwards; }
@media (min-width: 900px) {
  #main-content > .line-stage--media { grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); column-gap: clamp(2rem, 1rem + 5vw, 7rem); justify-items: start; align-items: center; text-align: start; padding-inline: clamp(1.25rem, 4vw, 4rem); max-width: 1440px; margin-inline: auto; }
  .line-stage--media > :not(.line-stage__frame) { grid-column: 1; }
  .line-stage--media > .line-stage__frame { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
  .line-stage--media .line-stage__more { justify-items: start; }
}
@media (max-width: 899px) {
  .line-stage--media > .line-stage__frame { order: 3; margin-top: 2.5rem; width: 100%; aspect-ratio: 4 / 5; }
}

@media (prefers-reduced-motion: reduce) {
  .line-js .line-unveil { clip-path: none !important; transition: none !important; }
  .line-stage { translate: none !important; opacity: 1 !important; }
  .line-stage::after, #main-content > .line-story::before, .line-slide.is-active img { animation: none !important; }
  .line-story__media img { transform: none !important; }
  .line-js .line-act .line-act__rule { transform: none !important; }
}

/* ---------- Q. Draft image tag (theme preview only; see LINE_CONFIG.draft in line-salla.js) ---------- */
.line-ref { position: absolute; inset-inline-start: .6rem; bottom: .6rem; z-index: 2; max-width: calc(100% - 1.2rem); padding: .28rem .55rem; font-size: .68rem; line-height: 1.4; color: var(--line-ivory); background: rgb(26 26 26 / .62); border-radius: 2px; pointer-events: none; }
.line-story__media .line-ref { bottom: 1rem; inset-inline-start: 1rem; }