/* Khung Ánh Sáng — layout nghiêng / bento / timeline (responsive) */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --ink: #1a1614;
    --ink-soft: #3d3835;
    --paper: #f6f1ea;
    --paper-deep: #ebe3d7;
    --accent: #c45c3e;
    --accent-soft: #e8a090;
    --line: rgba(26, 22, 20, 0.12);
    --shadow: 0 24px 60px rgba(26, 22, 20, 0.12);
    --radius: 14px;
    --font-sans: "Be Vietnam Pro", system-ui, sans-serif;
    --font-serif: "Cormorant Garamond", Georgia, serif;
}

html {
    scroll-behavior: smooth;
}

[id] {
    scroll-margin-top: 88px;
}

body {
    font-family: var(--font-sans);
    color: var(--ink-soft);
    background: var(--paper);
    line-height: 1.65;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 8px;
    z-index: 9999;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: 8px;
}

.skip-link:focus {
    left: 16px;
}

/* Header */
.top-bar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 900;
    background: rgba(246, 241, 234, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}

.top-bar__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.brand__mark {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent-soft), var(--accent));
    box-shadow: 0 0 0 4px rgba(196, 92, 62, 0.2);
}

.brand__text {
    font-size: 1.05rem;
}

.nav-drawer__toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--paper);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}

.nav-drawer__icon {
    width: 18px;
    height: 2px;
    background: var(--ink);
    position: relative;
}

.nav-drawer__icon::before,
.nav-drawer__icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--ink);
}

.nav-drawer__icon::before {
    top: -6px;
}

.nav-drawer__icon::after {
    top: 6px;
}

.nav-drawer__list {
    display: flex;
    gap: 28px;
    list-style: none;
    align-items: center;
}

.nav-drawer a {
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s, color 0.2s;
}

.nav-drawer a:hover,
.nav-drawer a:focus-visible {
    color: var(--accent);
    border-bottom-color: var(--accent-soft);
}

/* Hero — split chéo */
.hero-slant {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    padding-top: 72px;
}

.hero-slant__panel {
    position: relative;
}

.hero-slant__panel--text {
    padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(145deg, var(--paper) 0%, #efe6dc 100%);
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);
}

.hero-slant__eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero-slant__title {
    font-family: var(--font-serif);
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.12;
    margin-bottom: 1.25rem;
}

.hero-slant__title em {
    font-style: italic;
    color: var(--accent);
}

.hero-slant__lead {
    max-width: 38ch;
    font-size: 1.02rem;
    color: var(--ink-soft);
    margin-bottom: 1.75rem;
}

.hero-slant__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn--solid {
    background: var(--ink);
    color: var(--paper);
}

.btn--solid:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.hero-slant__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    max-width: 420px;
    font-size: 0.88rem;
}

.hero-slant__meta dt {
    color: var(--ink-soft);
    opacity: 0.85;
}

.hero-slant__meta dd {
    font-weight: 600;
    color: var(--ink);
}

.hero-slant__panel--visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: radial-gradient(circle at 80% 20%, #f0e4d8, var(--paper-deep));
}

.hero-slant__frame {
    position: relative;
    width: min(92%, 520px);
    aspect-ratio: 3 / 4;
    border-radius: 42% 58% 62% 38% / 48% 42% 58% 52%;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: rotate(-3deg);
}

.hero-slant__img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-slant__ribbon {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(26, 22, 20, 0.85);
    color: var(--paper);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
}

.hero-slant__ribbon-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-soft);
}

/* Marquee */
.stripe-marquee {
    border-block: 1px solid var(--line);
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
}

.stripe-marquee__track {
    display: flex;
    width: max-content;
    gap: 4rem;
    padding: 14px 0;
    animation: marquee 32s linear infinite;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Zigzag */
.zigzag {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 6rem) 24px;
}

.zigzag__heading {
    margin-bottom: 3rem;
}

.section-kicker {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
    max-width: 18ch;
}

.section-title__accent {
    color: var(--accent);
}

.zigzag__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.zigzag__row--reverse .zigzag__copy {
    order: 2;
}

.zigzag__row--reverse .zigzag__visual {
    order: 1;
}

.zigzag__h {
    font-size: 1.35rem;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.zigzag__copy p {
    max-width: 46ch;
}

.zigzag__visual {
    display: flex;
    justify-content: center;
}

.zigzag__visual--tilt {
    transform: translateY(8px);
}

.zigzag__visual--tilt-alt {
    transform: translateY(-8px);
}

.polaroid {
    width: 100%;
    max-width: 360px;
    padding: 14px 14px 42px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(26, 22, 20, 0.15);
    transform: rotate(4deg);
}

.polaroid--sm {
    max-width: 300px;
    transform: rotate(-5deg);
}

.polaroid__inner {
    width: 100%;
    aspect-ratio: 4 / 5;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
}

/* Bento gallery */
.bento-gallery {
    padding: clamp(3rem, 8vw, 6rem) 24px;
    background: linear-gradient(180deg, var(--paper-deep), var(--paper));
}

.bento-gallery__intro {
    max-width: 720px;
    margin: 0 auto 2rem;
    text-align: center;
}

.bento-gallery__note {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.filter-chip {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.6);
    padding: 10px 18px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.filter-chip:hover {
    border-color: var(--accent-soft);
}

.filter-chip.is-active {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    max-width: 1180px;
    margin: 0 auto;
}

.bento-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: 0 12px 30px rgba(26, 22, 20, 0.08);
    cursor: pointer;
    min-height: 140px;
}

.bento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.bento-card:hover img {
    transform: scale(1.04);
}

.bento-card__cap {
    position: absolute;
    inset: auto 0 0;
    padding: 14px 16px;
    background: linear-gradient(180deg, transparent, rgba(26, 22, 20, 0.78));
    color: var(--paper);
}

.bento-card__cap h3 {
    font-size: 1rem;
    font-weight: 600;
}

.bento-card__cap p {
    font-size: 0.82rem;
    opacity: 0.9;
}

/* Lưới hai cột ổn định; biến thể chiều cao để giữ nhịp thị giác */
.bento-card--wide,
.bento-card--tall,
.bento-card--mid,
.bento-card--sm {
    grid-column: span 6;
}

.bento-card--wide {
    min-height: 280px;
}

.bento-card--tall {
    min-height: 300px;
}

.bento-card--mid {
    min-height: 250px;
}

.bento-card--sm {
    min-height: 220px;
}

/* Timeline */
.timeline-rail {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(3rem, 8vw, 5rem) 0;
    align-items: stretch;
    border-top: 1px solid var(--line);
}

.timeline-rail__inner {
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.timeline-rail__list {
    list-style: none;
    margin-top: 2rem;
    border-left: 2px solid var(--line);
    padding-left: 1.5rem;
}

.timeline-rail__list li {
    position: relative;
    padding-bottom: 1.75rem;
}

.timeline-rail__list li:last-child {
    padding-bottom: 0;
}

.timeline-rail__step {
    position: absolute;
    left: -1.55rem;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
}

.timeline-rail__list h3 {
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 0.35rem;
}

.timeline-rail__visual {
    min-height: 360px;
    background-size: cover;
    background-position: center;
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
}

/* FAQ */
.faq-panel {
    padding: clamp(3rem, 8vw, 5rem) 24px;
}

.faq-panel__inner {
    max-width: 720px;
    margin: 0 auto;
}

.faq-list details {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.65);
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--ink);
}

.faq-list details p {
    margin-top: 10px;
    font-size: 0.95rem;
}

/* Footer */
.site-footer {
    background: var(--ink);
    color: rgba(246, 241, 234, 0.85);
    padding: 3rem 24px 2rem;
}

.site-footer__grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.site-footer__brand {
    font-weight: 700;
    color: var(--paper);
    margin-bottom: 0.5rem;
}

.site-footer__label {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 0.35rem;
}

.site-footer__text {
    font-size: 0.92rem;
    line-height: 1.6;
}

.site-footer__legal {
    max-width: 1100px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(246, 241, 234, 0.12);
    font-size: 0.82rem;
    opacity: 0.75;
    text-align: center;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(14, 12, 11, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox.is-open {
    display: flex;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

.lightbox__body {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    max-width: 960px;
    width: 100%;
    align-items: center;
}

.lightbox__img-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    max-height: 72vh;
}

.lightbox__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lightbox__caption {
    color: var(--paper);
}

.lightbox__caption h3 {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.lightbox__fineprint {
    margin-top: 1rem;
    font-size: 0.82rem;
    opacity: 0.75;
}

/* Responsive */
@media (max-width: 960px) {
    .hero-slant {
        grid-template-columns: 1fr;
    }

    .hero-slant__panel--text {
        clip-path: none;
        padding-bottom: 2rem;
    }

    .hero-slant__panel--visual {
        padding-bottom: 3rem;
    }

    .zigzag__row,
    .zigzag__row--reverse {
        grid-template-columns: 1fr;
    }

    .zigzag__row--reverse .zigzag__copy,
    .zigzag__row--reverse .zigzag__visual {
        order: unset;
    }

    .timeline-rail {
        grid-template-columns: 1fr;
    }

    .timeline-rail__visual {
        min-height: 220px;
        clip-path: none;
    }

    .bento-card--wide,
    .bento-card--tall,
    .bento-card--mid,
    .bento-card--sm {
        grid-column: span 12;
        grid-row: auto;
        min-height: 220px;
    }

    .lightbox__body {
        grid-template-columns: 1fr;
        max-height: 90vh;
        overflow-y: auto;
    }
}

@media (max-width: 720px) {
    .nav-drawer__toggle {
        display: inline-flex;
    }

    .nav-drawer {
        position: fixed;
        inset: 60px 16px auto;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 16px;
        display: none;
    }

    .nav-drawer.is-open {
        display: block;
    }

    .nav-drawer__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .hero-slant__meta {
        grid-template-columns: 1fr;
    }

    .stripe-marquee__track {
        animation-duration: 48s;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .stripe-marquee__track {
        animation: none;
    }

    .bento-card:hover img {
        transform: none;
    }
}
