/* =====================================================================
   ARTEZO — News list + News detail
   (list banner + pagination come from brands.css: .bhero, .pager; related cards reuse the homepage .card)
   ===================================================================== */

/* ---------- LIST ---------- */
.nlist { position: relative; padding: 8rem 4rem; background: #fff; }
.nlist__title { font-weight: 200; font-size: 6.4rem; line-height: 1.06; color: var(--c-muted); }
.nlist__title .line { height: 6.8rem; }
.nlist__title .line__in { transition: transform var(--dur-intro) var(--ease-intro); }
.nlist__items { margin-top: 6rem; overflow: hidden; transition: opacity var(--dur-intro) var(--ease-intro); }

.ncard {
    --from: 0rem;
    position: relative;
    display: flex; justify-content: space-between; align-items: flex-start;
    height: 23.4rem; padding: 4rem 0; background: #fff; box-shadow: inset 0 -1px 0 var(--c-line);
    transition: transform var(--dur-intro) var(--ease-intro), opacity var(--dur-intro) var(--ease-intro);
}
.ncard[hidden] { display: none; }
.ncard__link { position: absolute; inset: 0; z-index: 2; }
.ncard__media { position: relative; flex: none; width: 27.35rem; height: 15.4rem; overflow: hidden; }
.ncard__img {
    position: absolute; left: -13.8rem; top: -7.9rem; width: 47rem; height: 31.1rem;
    background-size: cover; background-position: center;
    transition: transform var(--dur-slow) var(--ease-slow);
}
.ncard__head { flex: none; display: flex; flex-direction: column; gap: 2.4rem; width: 34.5rem; }
.ncard__title { font-size: 2.4rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--c-ink); transition: color var(--dur-slow) var(--ease-slow); }
.ncard__info { display: flex; gap: 2.4rem; font-weight: 400; font-size: 1.6rem; line-height: 1.1; color: var(--c-muted); }
.ncard__side { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2.4rem; width: 30rem; }
.ncard__excerpt { width: 30.1rem; font-size: 1.6rem; line-height: 1.4; color: var(--c-muted); }
.ncard__btn { opacity: 0; transition: opacity var(--dur-slow) var(--ease-slow); }

/* Figma: hover = photo zooms (470x311 -> 528x349 about its centre), title turns blue, "Read More" fades in already rolled */
@media (hover: hover) {
    .ncard:hover .ncard__img { transform: scale(1.12340); }
    .ncard:hover .ncard__title { color: var(--c-primary); }
    .ncard:hover .ncard__btn { opacity: 1; }
    .ncard:hover .btn__label--in { transform: none; }
    .ncard:hover .btn__label--out { transform: translateY(var(--roll)); }
    .ncard:hover .btn__arrow--out { transform: translate(var(--mv), calc(var(--mv) * -1)); }
    .ncard:hover .btn__arrow--in { transform: none; }
}
.ncard__link:focus-visible { outline: 1px solid var(--c-primary); outline-offset: 0.4rem; }

/* pagination: left aligned on desktop */
.pager--news { justify-content: flex-start; }

/* intro (Figma "Start" -> "Default", 1.5s): title rises, cards slide in from the left with increasing offsets */
.ncard[data-n="0"] { --from: -10rem; } .ncard[data-n="1"] { --from: -19rem; } .ncard[data-n="2"] { --from: -28rem; }
.ncard[data-n="3"] { --from: -38rem; } .ncard[data-n="4"] { --from: -48rem; } .ncard[data-n="5"] { --from: -58rem; }
.js .nlist:not(.is-in) .nlist__title .line__in { transform: translateY(7rem); }
.js .nlist:not(.is-in) .ncard, .nlist .ncard.is-enter { transform: translateX(var(--from)); opacity: 0; transition: none; }
.nlist .ncard.is-leave { transform: translateX(-6rem); opacity: 0; transition: transform 0.35s var(--ease-intro), opacity 0.35s ease; }

/* ---------- DETAIL: HERO ---------- */
.nhero { position: relative; height: 120.7rem; background: #fff; }
.nhero__head { position: absolute; left: 4rem; top: 17rem; width: 113rem; }
.crumbs { display: flex; gap: 0.4rem; font-size: 1.6rem; line-height: 1.4; color: var(--c-light); white-space: nowrap; }
.crumbs__link { color: var(--c-ink); transition: color var(--dur-slow) var(--ease-slow); }
.crumbs__link:hover, .crumbs__link:focus-visible { color: var(--c-primary); }
.crumbs__sep { letter-spacing: -0.02em; }
.crumbs__cur { width: 23.8rem; overflow: hidden; text-overflow: ellipsis; }
.nhero__title { margin-top: 2.4rem; font-weight: 200; font-size: 6.4rem; line-height: 1.06; color: var(--c-ink); }
.nhero__title .line { height: 7rem; }
.nhero__title .line__in { padding-top: 0.1rem; transition: transform var(--dur-intro) var(--ease-intro), opacity var(--dur-intro) var(--ease-intro); }
.nhero__media { position: absolute; left: 0; top: 48.7rem; width: 100%; height: 72rem; overflow: hidden; transition: opacity var(--dur-intro) var(--ease-intro); }
.nhero__img {
    position: absolute; left: 0; top: -2.8rem; width: 100%; height: 95.3rem;
    background-size: cover; background-position: center;
    transition: transform var(--dur-intro) var(--ease-intro);
}
.js .nhero:not(.is-in) .nhero__title .line__in { transform: translateY(7.4rem); }
.js .nhero:not(.is-in) .nhero__img { transform: scale(1.19028); }   /* 1714x1135 -> 1440x953 */

/* ---------- DETAIL: ARTICLE ---------- */
.nbody { position: relative; padding: 13.9rem 0 7.3rem 38.5rem; background: #fff; color: var(--c-ink-2); }
.nbody__content { display: flex; flex-direction: column; gap: 4rem; width: 92rem; }
.nbody__lead { font-size: 3.6rem; line-height: 1.3; }
.nbody__p { font-size: 2rem; line-height: 1.3; letter-spacing: -0.01em; }
.nbody__fig { position: relative; width: 91.9rem; height: 51.7rem; margin: 0; overflow: hidden; }
.nbody__img { position: absolute; left: -2.4rem; top: -5.7rem; width: 95.4rem; height: 63.1rem; background-size: cover; background-position: center; }
.nbody__notes { font-size: 1.6rem; line-height: 1.4; }
.nbody__notes p { display: inline; }

.nbody__info { position: absolute; left: 4rem; top: 3.8rem; bottom: 0; pointer-events: none; }
/* Figma "Information": sticky (top 0), 448px tall, content centred, travels the whole article section */
.nbody__info-in { position: sticky; top: 0; display: flex; flex-direction: column; justify-content: center; gap: 3.2rem; height: 44.8rem; pointer-events: auto; }
.ninfo { display: flex; flex-direction: column; gap: 0.8rem; }
.ninfo__label { font-size: 1.6rem; line-height: 1.4; color: var(--c-light); }
.ninfo__value { font-size: 2rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--c-ink-2); }
.share { display: flex; }
.share__btn {
    position: relative; display: block; width: 3.2rem; height: 3.2rem; padding: 0; border: 0; background: none;
    color: var(--c-ink); cursor: pointer; transition: color var(--dur-slow) var(--ease-slow);
}
.share__btn svg { position: absolute; left: 0; top: 0; width: 3.2rem; height: 3.2rem; }
.share__btn:hover, .share__btn:focus-visible, .share__btn.is-copied { color: var(--c-primary); }
.share__tip {
    position: absolute; left: 0; top: 100%; margin-top: 0.6rem; white-space: nowrap;
    font-size: 1.4rem; line-height: 1.4; color: var(--c-primary);
    opacity: 0; transform: translateY(-0.4rem); pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.share__btn.is-copied .share__tip { opacity: 1; transform: none; }

/* ---------- DETAIL: RELATED (homepage cards) ---------- */
.related { position: relative; padding: 6.2rem 4rem; background: #fff; overflow: hidden; }
.related__title { font-size: 3.6rem; line-height: 1.3; color: var(--c-ink); }
.related__title .line { height: 4.7rem; }
.related__title .line__in { transition: transform var(--dur-intro) var(--ease-intro), opacity var(--dur-intro) var(--ease-intro); }
.related__grid { display: flex; gap: 7.9rem; margin-top: 5.2rem; transition: opacity var(--dur-intro) var(--ease-intro); }
.related .card:nth-child(1) { --from: 3rem; } .related .card:nth-child(2) { --from: 6rem; } .related .card:nth-child(3) { --from: 9rem; }
.js .related:not(.is-in) .related__title .line__in { transform: translateY(6.5rem); }
.js .related:not(.is-in) .card { transform: translateY(var(--from)); opacity: 0; }


/* =====================================================================
   TABLET (700–1199)
   ===================================================================== */
@media (max-width: 1199.98px) {
    /* list */
    .nlist { padding: 4rem 3.8rem 4rem 4rem; }
    .nlist__title { margin-left: 0.1rem; font-size: 4.8rem; line-height: 1.1; }
    .nlist__title .line { height: 5.3rem; }
    .nlist__items { margin-top: 4rem; }
    .ncard { height: 17.533rem; padding: 2rem 0; }
    .ncard__media { width: 23.3rem; height: 13.1rem; }
    .ncard__img { left: -15.8rem; top: -9rem; width: 47rem; height: 31.1rem; }
    .ncard__head { gap: 1.6rem; width: 29.6rem; }
    .ncard__title { font-size: 2rem; line-height: 1.35; letter-spacing: 0; }
    .ncard__info { font-size: 1.4rem; line-height: 1.1; }
    .ncard__side { width: 30rem; }
    .ncard__excerpt { width: 24.8rem; font-size: 1.4rem; line-height: 1.45; }
    .ncard__btn { display: none; }
    .ncard:active .ncard__img { transform: scale(1.11064); }   /* Figma ON_PRESS: 470x311 -> 522x345 */

    .pager--news { justify-content: center; gap: 3.2rem; height: 2.7rem; margin-top: 4.9rem; }
    .pager--news .icon-btn { width: 2.2rem; height: 2.2rem; }
    .pager--news .pager__nums { font-size: 2rem; line-height: 1.35; letter-spacing: 0; }

    .ncard[data-n="0"] { --from: -21rem; } .ncard[data-n="1"] { --from: -30.7rem; } .ncard[data-n="2"] { --from: -37.7rem; }
    .ncard[data-n="3"] { --from: -43.5rem; } .ncard[data-n="4"] { --from: -47.8rem; } .ncard[data-n="5"] { --from: -52.4rem; }
    .js .nlist:not(.is-in) .nlist__title .line__in { transform: translateY(5rem); }
    .js .nlist:not(.is-in) .nlist__items { opacity: 0; }
    .js .nlist:not(.is-in) .ncard { opacity: 1; }
    .js .nlist:not(.is-in) .pager--news { transform: translateY(-0.9rem); opacity: 0; }
    .pager--news { transition: transform var(--dur-intro) var(--ease-intro), opacity var(--dur-intro) var(--ease-intro); }

    /* hero */
    .nhero { height: 84rem; }
    .nhero__head { left: 4rem; top: 12rem; width: 70.9rem; transition: opacity var(--dur-intro) var(--ease-intro); }
    .nhero__title { margin-top: 2.8rem; font-size: 4.8rem; line-height: 1.1; }
    .nhero__title .line { height: 5.3rem; }
    .nhero__title .line + .line { margin-top: 1.1rem; }
    .nhero__title .line__in { padding-top: 0; }
    .nhero__media { top: 39.2rem; height: 44.8rem; }
    .nhero__img { left: -21.2rem; top: -7.5rem; width: 144.8rem; height: 52.3rem; }
    .js .nhero:not(.is-in) .nhero__title { opacity: 0; }
    .js .nhero:not(.is-in) .nhero__title .line__in { transform: translateY(6rem); }
    .js .nhero:not(.is-in) .nhero__media { opacity: 0; }
    .js .nhero:not(.is-in) .nhero__img { transform: scale(1.35497); }   /* 1962x709 -> 1448x523 */
    .nhero__title { transition: opacity var(--dur-intro) var(--ease-intro); }

    /* article */
    .nbody { min-height: 129.3rem; padding: 4rem 0 6.4rem 28.1rem; }
    .nbody__content { gap: 2.4rem; width: 62.3rem; }
    .nbody__lead { width: 60.5rem; font-size: 2.8rem; line-height: 1.25; }
    .nbody__p { font-size: 1.6rem; line-height: 1.45; letter-spacing: 0; }
    .nbody__p--1 { width: 59rem; }
    .nbody__fig { width: 62.3rem; height: 35.04rem; }
    .nbody__img { left: -17.2rem; top: -14.2rem; width: 95.6rem; height: 63.3rem; }
    .nbody__notes { font-size: 1.4rem; line-height: 1.45; }
    .nbody__notes p { display: block; }
    .nbody__notes p + p { margin-top: 1.45em; }

    .nbody__info { left: 4rem; top: 4rem; }
    .nbody__info-in { top: 9.2rem; justify-content: flex-start; height: auto; } /* sticks 4rem below the 5.2rem navbar */
    .ninfo--cat, .ninfo--date { height: 5.5rem; }
    .ninfo__label { font-size: 1.4rem; line-height: 1.45; }
    .ninfo__value { font-size: 1.6rem; line-height: 1.45; letter-spacing: 0; }

    /* related */
    .related { padding: 8.55rem 4rem; }
    .related__title { font-size: 2.8rem; line-height: 1.25; }
    .related__title .line { height: 3.5rem; }
    .related__title .line__in { padding-top: 0.1rem; }
    .related__grid { gap: 2rem; margin-top: 5.2rem; }
    .related .card { gap: 1.6rem; }
    .related .card:nth-child(1) { --from: 5.95rem; } .related .card:nth-child(2) { --from: 8.95rem; } .related .card:nth-child(3) { --from: 11.95rem; }
    .js .related:not(.is-in) .related__title { opacity: 0; }
    .js .related:not(.is-in) .related__title .line__in { transform: translateY(4rem); }
    .js .related:not(.is-in) .related__grid { opacity: 0; }
    .js .related:not(.is-in) .card { opacity: 1; }
    .related__title { transition: opacity var(--dur-intro) var(--ease-intro); }
}


/* =====================================================================
   MOBILE (<700)
   ===================================================================== */
@media (max-width: 699.98px) {
    /* list */
    .nlist { padding: 6.4rem 2rem; }
    .nlist__title { margin-left: 0; font-size: 3.6rem; line-height: 1.17; }
    .nlist__title .line { height: 4.2rem; }
    .nlist__items { margin-top: 6.4rem; }
    .ncard { flex-direction: column; gap: 1.6rem; height: auto; padding: 0; box-shadow: none; }
    .ncard:not([hidden]) ~ .ncard:not([hidden]) { margin-top: 3.6rem; padding-top: 3.5rem; border-top: 1px solid var(--c-line); }
    .ncard__media { width: 37.4rem; height: 21rem; }
    .ncard__img { left: -5.3rem; top: -5.4rem; width: 48rem; height: 31.7rem; }
    .ncard__head { width: 100%; gap: 1.6rem; }
    .ncard__title {
        height: 5rem; overflow: hidden; font-size: 1.8rem; line-height: 1.38;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    }
    .ncard__info { font-weight: 300; font-size: 1.4rem; line-height: 1.4; }
    .ncard__side { display: none; }
    .ncard:active .ncard__img { transform: none; }

    .pager--news { gap: 4rem; height: 2rem; margin-top: 6.4rem; }
    .pager--news .icon-btn { width: 2rem; height: 2rem; }
    .pager--news .pager__nums { font-size: 1.6rem; line-height: 1.2; letter-spacing: -0.02em; }
    .pager--news.is-single { display: flex; visibility: hidden; }

    .ncard[data-n="0"] { --from: -6.4rem; } .ncard[data-n="1"] { --from: -11.7rem; } .ncard[data-n="2"] { --from: -19.2rem; }
    .ncard[data-n="3"] { --from: -25.9rem; } .ncard[data-n="4"] { --from: -25.9rem; } .ncard[data-n="5"] { --from: -25.9rem; }
    .js .nlist:not(.is-in) .nlist__title .line__in { transform: translateY(3.5rem); }
    .js .nlist:not(.is-in) .pager--news { transform: none; opacity: 1; }

    /* hero */
    .nhero { height: 49.7rem; }
    .nhero__head { left: 2rem; top: 15.2rem; width: 37.4rem; }
    .crumbs { font-size: 1.4rem; line-height: 1.4; transition: opacity var(--dur-intro) var(--ease-intro); }
    .crumbs__sep { letter-spacing: 0; }
    .crumbs__cur { flex: 1; width: auto; min-width: 0; }
    .nhero__title { margin-top: 0.9rem; font-weight: 300; font-size: 2.4rem; line-height: 1.3; }
    .nhero__title .line { height: 3.1rem; }
    .nhero__title .line + .line { margin-top: -0.2rem; }
    .nhero__media { top: 28.8rem; height: 20.7rem; }
    .nhero__img { left: -3.94rem; top: -3.42rem; width: 49.28rem; height: 32.62rem; }
    .js .nhero:not(.is-in) .nhero__title { opacity: 1; }
    .js .nhero:not(.is-in) .crumbs { opacity: 0; }
    .js .nhero:not(.is-in) .nhero__title .line__in { transform: translateY(2.7rem); opacity: 0; }
    .js .nhero:not(.is-in) .nhero__media { opacity: 1; }
    .js .nhero:not(.is-in) .nhero__img { transform: scale(1.25812); }   /* 620x410 -> 492.8x326.2 */

    /* article: content first, then category / date, then share */
    .nbody { display: flex; flex-direction: column; gap: 2.4rem; min-height: 0; padding: 2.4rem 2rem; }
    .nbody__content { gap: 3.2rem; width: 37.4rem; }
    .nbody__lead { width: 37.4rem; font-size: 2.4rem; line-height: 1.3; }
    .nbody__p { font-size: 1.6rem; line-height: 1.48; }
    .nbody__p--1 { width: 35.4rem; } .nbody__p--2 { width: 36.4rem; }
    .nbody__fig { width: 37.2rem; height: 20.9rem; }
    .nbody__img { left: -0.95rem; top: -2.31rem; width: 38.58rem; height: 25.54rem; }
    .nbody__notes { font-size: 1.4rem; line-height: 1.4; }
    .nbody__notes p { display: inline; }
    .nbody__notes p + p { margin-top: 0; }

    .nbody__info { position: static; pointer-events: auto; }
    .nbody__info-in { position: static; display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: 3.2rem; row-gap: 2.4rem; height: auto; }
    .ninfo { gap: 0.6rem; }
    .ninfo--cat, .ninfo--date { height: auto; }
    .ninfo--share { grid-column: 1 / -1; }
    .ninfo__label { font-size: 1.4rem; line-height: 1.4; }
    .ninfo__value { font-size: 1.6rem; line-height: 1.48; }
    .share { gap: 0.8rem; }
    .share__btn { width: 2.4rem; height: 2.4rem; overflow: visible; }
    .share__btn svg { left: -0.4rem; top: -0.4rem; }

    /* related (homepage mobile cards, different photo crop) */
    .related { padding: 4rem 2rem; }
    .related__title { font-size: 3.6rem; line-height: 1.3; }
    .related__title .line { height: 4.7rem; }
    .related__title .line__in { padding-top: 0; }
    .related__grid { flex-direction: column; gap: 3.2rem; margin-top: 3.2rem; }
    .related .card { flex-direction: row; width: 37.4rem; height: 11.2rem; gap: 1.6rem; }
    .related .card__img { left: -3.3rem; top: -2.6rem; width: 24.6rem; height: 16.3rem; }
    .related .card:nth-child(1) { --from: -5rem; } .related .card:nth-child(2) { --from: -4rem; } .related .card:nth-child(3) { --from: -3rem; }
    .js .related:not(.is-in) .related__title .line__in { transform: translateY(5rem); opacity: 0; }
    .js .related:not(.is-in) .related__title { opacity: 1; }
    .js .related:not(.is-in) .card { transform: translateX(var(--from)); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .ncard, .ncard__img, .nhero__img, .nhero__title .line__in, .related .card { transition: none !important; }
}
