/* Explain: Styling for various UI components, including video cards. */
/* ---------- Brand ---------- */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--primary-color);
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
}

/* ---------- Navigation ---------- */
.nav-link {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
    color: var(--text-color);
    background: var(--surface-2-color);
}

/* ---------- Buttons ---------- */
.btn-accent,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    padding: 0.8rem 1.35rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
}

.btn-accent {
    background: var(--primary-color);
    color: #fff;
}

.btn-accent:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-ghost {
    background: #ffffff;
    color: var(--text-color);
    border-color: var(--border-color);
}

.btn-ghost:hover {
    background: var(--surface-2-color);
    border-color: #c9c9c9;
    transform: translateY(-2px);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--text-color);
    opacity: 0.5;
}

.eyebrow--plain::before {
    display: none;
}

/* ---------- Pillar card ---------- */
.pillar-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.6rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    transition: transform 0.25s, border-color 0.25s;
}

.pillar-card:hover {
    border-color: var(--text-color);
    transform: translateY(-3px);
}

.pillar-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2-color);
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.55rem;
}

.pillar-card__name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.12rem;
}

.pillar-card__blurb {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* ---------- Prose ---------- */
.prose-frame {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1rem;
}

.prose-frame p {
    margin-top: 1rem;
}

.prose-frame a {
    color: var(--text-color);
    text-decoration: underline;
}

/* ---------- Timeline ---------- */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}

.timeline__item {
    position: relative;
    padding: 0 0 1.75rem 1.75rem;
    border-left: 1px solid var(--border-color);
}

.timeline__item:last-child {
    padding-bottom: 0;
}

.timeline__item::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 4px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: var(--text-color);
}

.timeline__year {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.timeline__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.12rem;
    margin-top: 0.25rem;
}

.timeline__text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 0.35rem;
}

/* ---------- Forms ---------- */
.input {
    width: 100%;
    padding: 0.85rem 1.05rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-color);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
}

.input::placeholder {
    color: #a5a5a5;
}

.input:focus {
    outline: none;
    border-color: var(--text-color);
    background: #ffffff;
}

.textarea {
    min-height: 148px;
    resize: vertical;
}

.form-grid {
    display: grid;
    gap: 1.1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-field label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-status {
    font-size: 0.88rem;
    margin: 0;
}

.form-status.is-ok {
    color: #111111;
}

.form-status.is-err {
    color: #b3261e;
}

/* ---------- Footer links ---------- */
.footer-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text-color);
}

/* ---------- Video cards ---------- */
.video-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    overflow: hidden;
    transition: transform 0.25s, border-color 0.25s;
}

.video-card:hover {
    border-color: var(--text-color);
    transform: translateY(-3px);
}

.video-card__frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-card__player {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    filter: grayscale(1);
}

.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    padding-left: 5px;
    border: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    color: #111111;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.video-card__play:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.video-card.is-playing .video-card__play {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.video-card__body {
    padding: 1.1rem 1.25rem 1.3rem;
}

.video-card__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.08rem;
    line-height: 1.35;
}

.video-card__title a {
    transition: color 0.2s;
}

.video-card__title a:hover {
    color: var(--text-muted);
}

.video-card__meta {
    margin-top: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---------- Hero circle & quote ---------- */
.hero-video {
    position: relative;
    width: 100%;
    max-width: 640px;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--text-color);
    border-radius: 50%;
    overflow: hidden;
    background: #000000;
}

.hero-video iframe,
.hero-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    object-fit: cover;
}

.hero-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    padding-left: 5px;
    border: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    color: #111111;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
    box-shadow: var(--shadow-card);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.hero-play:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.hero-video.is-playing .hero-play {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.hero-quote {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.hero-quote__author {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
}

/* ---------- Nag overlay (intentionally persistent) ---------- */
.nag-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(0, 0, 0, 0.55);
}

.nag-overlay.is-open {
    display: flex;
}

.nag-box {
    width: 100%;
    max-width: 28rem;
    padding: 2rem;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--text-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.nag-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nag-question {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 0.75rem 0 1.5rem;
    color: var(--text-color);
}

.nag-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

/* ---------- Chapters ---------- */
.chapter-block {
    position: relative;
}

.chapter-num {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    color: var(--text-muted);
}

.chapter-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.55rem;
    letter-spacing: -0.02em;
    margin-top: 0.3rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--border-color);
}

/* ---------- Social links ---------- */
.social-link {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text-color);
    font-size: 1.05rem;
    transition: transform 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* ---------- Player frame (single video) ---------- */
.player-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.player-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: grayscale(1);
}

/* ---------- Mini cards (related column) ---------- */
.mini-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.55rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    transition: background 0.2s, border-color 0.2s;
}

.mini-card:hover {
    background: var(--surface-color);
    border-color: var(--border-color);
}

.mini-card__thumb {
    position: relative;
    flex-shrink: 0;
    width: 128px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #000000;
}

.mini-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.35);
}

.mini-card__title {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.35;
}

.mini-card__meta {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

