/* News index (the Posts page). Loaded only there. */

/* ── Hero ── */
.news-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-height: clamp(23rem, 40vw, 32rem);
    margin-top: calc(-1 * var(--nav-height));
    padding: calc(var(--nav-height) + clamp(3rem, 5vw, 5rem)) var(--page-gutter) clamp(3rem, 5vw, 5rem);
    overflow: hidden;
    background: #edf4fc;
    border-bottom: 1px solid var(--line);
}
.news-hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    z-index: -2;
    width: auto;
    height: 100%;
    max-width: none;
}
/* White fade so the copy reads over the photo's left edge. */
.news-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.82) 33%, rgba(255, 255, 255, 0) 62%);
}

.news-hero h1 {
    max-width: 40rem;
    color: var(--text-muted);
    font-size: clamp(2.3rem, 3vw, 3.6rem);
    line-height: 1.08;
    text-wrap: balance;
}
.news-hero-intro {
    max-width: 32rem;
    margin-top: 1.75rem;
    color: var(--text);
    font-size: clamp(1rem, 1.2vw, 1.18rem);
    line-height: 1.9;
}

/* ── Index ── */
.news-index { padding: clamp(4.5rem, 7vw, 7rem) var(--page-gutter) clamp(6rem, 9vw, 9rem); }
.news-index h2 {
    max-width: 40rem;
    color: rgba(37, 42, 76, 0.65);
    font-size: clamp(2.3rem, 3vw, 3.6rem);
    line-height: 1.15;
}
.news-index-links {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    margin-top: clamp(2.5rem, 4vw, 4rem);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.news-index-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    min-height: 13rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.68);
    transition: background 200ms ease, color 200ms ease;
}
.news-index-link:nth-child(even) { background: rgba(237, 233, 255, 0.5); }
.news-index-link:hover,
.news-index-link:focus-visible {
    background: var(--lavender);
    color: var(--violet-deep);
    outline: 2px solid var(--violet);
    outline-offset: -2px;
}
.news-index-number {
    color: var(--teal);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}
.news-index-title {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 2.2vw, 2.4rem);
    line-height: 1.15;
}
.news-index-label {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

/* ── Sections ── */
.news-section {
    padding: clamp(5rem, 8vw, 8rem) var(--page-gutter);
    scroll-margin-top: var(--nav-height);
    border-top: 1px solid var(--line);
    background: var(--white);
}
/* Company News sits on the lavender tint, as in the handoff. */
#company-news { background: rgba(237, 233, 255, 0.32); }

.news-section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(22rem, 1fr);
    gap: clamp(3rem, 7vw, 8rem);
    align-items: end;
    margin-bottom: clamp(2.5rem, 4vw, 4rem);
}
.news-section-head h2 {
    color: var(--text-muted);
    font-size: clamp(2.4rem, 4vw, 4.5rem);
    line-height: 1.08;
}
.news-section-head p {
    max-width: 42rem;
    color: var(--text);
    font-size: clamp(1rem, 1.2vw, 1.16rem);
    line-height: 1.85;
}

/* ── Press cards ── */
.press-grid {
    scroll-margin-top: calc(var(--nav-height) + 1rem);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.press-card {
    display: flex;
    flex-direction: column;
    min-height: 19rem;
    padding: clamp(1.6rem, 3vw, 2.6rem);
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--white);
    transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.press-card:hover,
.press-card:focus-visible {
    background: var(--lavender);
    outline: none;
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(37, 42, 76, 0.1);
}
.press-date,
.company-kicker {
    color: var(--violet);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}
.press-card h3 {
    margin-top: 1.35rem;
    color: var(--text-strong);
    font-size: clamp(1.45rem, 2vw, 2rem);
    line-height: 1.18;
}
.press-card p {
    margin-top: 1rem;
    color: rgba(37, 42, 76, 0.66);
    font-size: 0.92rem;
    line-height: 1.75;
}
.press-link {
    margin-top: auto;
    padding-top: 1.5rem;
    color: var(--violet-deep);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.press-empty { color: var(--text-quiet); }

.pagination {
    margin-top: 2.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}
.pagination .current { color: var(--violet-deep); }

/* ── Company feature ── */
.company-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(24rem, 1.25fr);
    gap: clamp(3rem, 7vw, 8rem);
    padding: clamp(2rem, 5vw, 5rem);
    border: 1px solid rgba(172, 129, 242, 0.24);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(237, 233, 255, 0.78));
}
.company-feature h3 {
    margin-top: 1.25rem;
    color: rgba(37, 42, 76, 0.76);
    font-size: clamp(2rem, 3.2vw, 3.8rem);
    line-height: 1.1;
}

.video-trigger {
    position: relative;
    display: block;
    width: 100%;
    margin-top: clamp(1.5rem, 2.5vw, 2.25rem);
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: var(--navy);
    box-shadow: 0 20px 45px rgba(37, 42, 76, 0.18);
    cursor: pointer;
}
.video-trigger img {
    width: 100%;
    aspect-ratio: 720 / 404;
    object-fit: cover;
    transition: transform 300ms ease, opacity 300ms ease;
}
.video-trigger::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(25, 29, 58, 0.28));
    pointer-events: none;
}
.video-trigger:hover img { transform: scale(1.02); opacity: 0.94; }
.video-trigger:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.video-play {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: clamp(3.75rem, 5vw, 5rem);
    height: clamp(3.75rem, 5vw, 5rem);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    background: rgba(37, 42, 76, 0.88);
    color: var(--white);
    transform: translate(-50%, -50%);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
    transition: background 200ms ease, transform 200ms ease;
}
.video-play svg { width: 34%; height: 34%; margin-left: 7%; fill: currentColor; }
.video-trigger:hover .video-play { background: var(--violet); transform: translate(-50%, -50%) scale(1.06); }

.company-copy > p {
    color: var(--text);
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.85;
}
.company-copy ul {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}
.company-copy li {
    padding: 1rem 1.15rem;
    border-left: 3px solid var(--teal);
    background: rgba(255, 255, 255, 0.62);
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.65;
}
.company-copy strong { font-weight: 600; }

/* ── Video modal ── */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(19, 22, 43, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 220ms ease;
}
/* display:grid above would otherwise beat the UA's [hidden] rule and leave an
   invisible full-screen layer eating every hover and click on the page. */
.video-modal[hidden] { display: none; }
.video-modal.is-open { opacity: 1; }
.video-modal-dialog {
    position: relative;
    width: min(54vw, 68rem);
}
.video-modal-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: #11152b;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}
.video-modal-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.video-modal-close {
    position: absolute;
    z-index: 1;
    top: -1rem;
    right: -1rem;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
.video-modal-close:hover { background: var(--lavender); }
.video-modal-close:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* ── Responsive ── */
@media (max-width: 1200px) {
    .news-section-head,
    .company-feature { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 768px) {
    .news-hero-bg { opacity: 0.35; }
    .news-index-links { grid-auto-flow: row; grid-auto-columns: auto; }
    .press-grid { grid-template-columns: 1fr; }
    .video-modal-dialog { width: min(92vw, 42rem); }
}
@media (prefers-reduced-motion: reduce) {
    .press-card, .video-trigger img, .video-play, .video-modal { transition: none; }
}
