/* ============================================================
   SPHERE MAGAZINE - Editorial Design System
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #ffffff;
    --off-white: #f8f7f5;
    --light-gray: #e8e6e3;
    --mid-gray: #a09e9a;
    --dark-gray: #4a4845;
    --charcoal: #2a2826;
    --black: #111111;
    --accent: #c8a96e;
    --accent-dark: #b89455;
    --error: #c44536;
    --success: #3a7d44;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;

    --nav-height: 72px;
    --section-pad: clamp(60px, 8vw, 120px);
    --grid-gap: 20px;
    --radius: 4px;
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--white);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

::selection {
    background: var(--accent);
    color: var(--white);
}

/* --- Language Toggle --- */
.lang-toggle {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1001;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: 6px 14px;
    border-radius: 100px;
    border: 1px solid var(--light-gray);
    transition: var(--transition);
}

.lang-toggle.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.lang-btn {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--mid-gray);
    padding: 4px 6px;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-btn.active {
    color: var(--black);
}

.lang-btn:hover {
    color: var(--black);
}

.lang-divider {
    font-size: 11px;
    color: var(--light-gray);
    font-weight: 300;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
}

.nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    transition: var(--transition-slow);
}

.nav.scrolled::before {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 clamp(24px, 4vw, 60px);
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--white);
    transition: color var(--transition);
}

.nav.scrolled .nav-logo {
    color: var(--black);
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-link {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition);
    position: relative;
}

.nav.scrolled .nav-link {
    color: var(--dark-gray);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width var(--transition);
}

.nav-link:hover {
    color: var(--white);
}

.nav.scrolled .nav-link:hover {
    color: var(--black);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 28px;
    padding: 4px 0;
}

.nav-menu-btn span {
    display: block;
    height: 1.5px;
    background: var(--white);
    transition: var(--transition);
    transform-origin: center;
}

.nav.scrolled .nav-menu-btn span {
    background: var(--black);
}

.nav-menu-btn.active span:first-child {
    transform: translateY(3.75px) rotate(45deg);
}

.nav-menu-btn.active span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
}

/* --- Mobile Menu --- */
.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-slow);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 500;
    color: var(--black);
    letter-spacing: 0.02em;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease, color var(--transition);
}

.mobile-menu.active .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-link:nth-child(6) { transition-delay: 0.35s; }

.mobile-link:hover {
    color: var(--accent);
}

/* --- Hero --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 1200px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.12); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(0, 0, 0, 0.05) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: clamp(40px, 6vw, 80px) clamp(24px, 4vw, 60px);
    max-width: 900px;
}

.hero-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    position: relative;
    padding-left: 32px;
}

.hero-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 1px;
    background: var(--accent);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.08;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-meta {
    margin-bottom: 32px;
}

.hero-category {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    padding: 16px 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    transition: var(--transition);
}

.hero-cta:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    right: clamp(24px, 4vw, 60px);
    z-index: 2;
}

.hero-scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { top: -100%; }
    50% { top: 0; }
    100% { top: 100%; }
}

/* --- Section Headers --- */
.section {
    padding: var(--section-pad) clamp(24px, 4vw, 60px);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 48px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--black);
    white-space: nowrap;
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--light-gray);
}

/* --- Masonry Grid --- */
.masonry-grid {
    columns: 3;
    column-gap: var(--grid-gap);
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: var(--grid-gap);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--radius);
}

.masonry-item:hover .masonry-img {
    transform: scale(1.04);
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

.masonry-img-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.masonry-img {
    width: 100%;
    display: block;
    transition: transform var(--transition-slow);
}

.masonry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.75) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    opacity: 0.7;
    transition: opacity var(--transition);
    display: flex;
    align-items: flex-end;
    padding: clamp(16px, 3vw, 28px);
}

.masonry-title {
    font-family: var(--font-display);
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.masonry-category {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    padding: 5px 12px;
    border-radius: 2px;
    opacity: 0;
    transform: translateY(-4px);
    transition: var(--transition);
}

.masonry-item:hover .masonry-category {
    opacity: 1;
    transform: translateY(0);
}

/* Varied heights for masonry effect */
.masonry-item:nth-child(3n+1) .masonry-img { aspect-ratio: 3/4; object-fit: cover; }
.masonry-item:nth-child(3n+2) .masonry-img { aspect-ratio: 4/5; object-fit: cover; }
.masonry-item:nth-child(3n+3) .masonry-img { aspect-ratio: 1/1; object-fit: cover; }
.masonry-item:nth-child(5n+1) .masonry-img { aspect-ratio: 2/3; object-fit: cover; }

/* --- Video Feature --- */
.video-feature {
    background: var(--black);
    padding: var(--section-pad) clamp(24px, 4vw, 60px);
}

.video-feature-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.video-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    position: relative;
    padding-left: 32px;
}

.video-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 1px;
    background: var(--accent);
}

.video-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.video-desc {
    font-size: 15px;
    color: var(--mid-gray);
    line-height: 1.7;
    max-width: 380px;
}

.video-container {
    position: relative;
}

.video-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--charcoal);
    border-radius: var(--radius);
    overflow: hidden;
}

.video-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.video-wrapper:hover .video-thumb {
    opacity: 0.5;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.video-play-btn svg {
    width: 20px;
    height: 20px;
    margin-left: 3px;
}

.video-play-btn:hover {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
    transform: translate(-50%, -50%) scale(1.08);
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* --- Newsletter --- */
.newsletter {
    padding: var(--section-pad) clamp(24px, 4vw, 60px);
    background: var(--off-white);
}

.newsletter-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: var(--black);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.newsletter-desc {
    font-size: 15px;
    color: var(--dark-gray);
    line-height: 1.7;
    margin-bottom: 36px;
}

.newsletter-form {
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-input-wrap {
    display: flex;
    border: 1px solid var(--light-gray);
    border-radius: 0;
    overflow: hidden;
    background: var(--white);
    transition: border-color var(--transition);
}

.newsletter-input-wrap:focus-within {
    border-color: var(--black);
}

.newsletter-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 14px;
    color: var(--black);
    background: transparent;
}

.newsletter-input::placeholder {
    color: var(--mid-gray);
}

.newsletter-submit {
    padding: 16px 28px;
    background: var(--black);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background var(--transition);
    white-space: nowrap;
}

.newsletter-submit:hover {
    background: var(--charcoal);
}

.newsletter-status {
    margin-top: 12px;
    font-size: 13px;
    min-height: 20px;
}

.newsletter-status.success { color: var(--success); }
.newsletter-status.error { color: var(--error); }

/* --- Contact --- */
.contact-section {
    padding: var(--section-pad) clamp(24px, 4vw, 60px);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 100px);
    max-width: 1100px;
    margin: 0 auto;
}

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: var(--black);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.contact-desc {
    font-size: 15px;
    color: var(--dark-gray);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-details p {
    font-size: 14px;
    color: var(--mid-gray);
    margin-bottom: 8px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-input {
    padding: 14px 0;
    font-size: 14px;
    color: var(--black);
    border-bottom: 1px solid var(--light-gray);
    transition: border-color var(--transition);
    background: transparent;
}

.contact-input:focus {
    border-color: var(--black);
}

.contact-input::placeholder {
    color: var(--mid-gray);
}

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

.contact-submit {
    align-self: flex-start;
    padding: 14px 32px;
    background: var(--black);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 8px;
    transition: background var(--transition);
}

.contact-submit:hover {
    background: var(--charcoal);
}

.contact-status {
    font-size: 13px;
    min-height: 20px;
}

.contact-status.success { color: var(--success); }
.contact-status.error { color: var(--error); }

/* --- Footer --- */
.footer {
    background: var(--black);
    padding: clamp(60px, 8vw, 100px) clamp(24px, 4vw, 60px) 40px;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--white);
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--mid-gray);
}

.footer-links-group {
    display: flex;
    gap: clamp(40px, 6vw, 80px);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 8px;
}

.footer-col a {
    font-size: 14px;
    color: var(--mid-gray);
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 12px;
    color: var(--mid-gray);
}

.footer-social {
    display: flex;
    gap: 16px;
    align-items: center;
}

.social-link {
    width: 20px;
    height: 20px;
    color: var(--mid-gray);
    transition: color var(--transition);
}

.social-link:hover {
    color: var(--white);
}

.social-link svg {
    width: 100%;
    height: 100%;
}

.admin-link {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.15);
    transition: color var(--transition);
    margin-left: 8px;
}

.admin-link:hover {
    color: var(--mid-gray);
}

.admin-link svg {
    width: 100%;
    height: 100%;
}

/* --- Post Modal (Centered Overlay) --- */
.post-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.post-modal.active {
    opacity: 1;
    pointer-events: all;
}

.post-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
}

.post-modal-content {
    position: relative;
    z-index: 1;
    width: min(780px, 92vw);
    max-height: 90vh;
    background: var(--white);
    border-radius: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: transform var(--transition-slow), opacity var(--transition);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.post-modal.active .post-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.post-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    transition: background var(--transition), transform var(--transition);
}

.post-modal-close:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: rotate(90deg);
}

.post-modal-close svg {
    width: 20px;
    height: 20px;
}

.post-modal-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.post-modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-modal-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%);
}

.post-modal-title {
    position: absolute;
    bottom: 28px;
    left: 36px;
    right: 36px;
    font-family: var(--font-display);
    font-size: clamp(22px, 3.5vw, 34px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.post-modal-body {
    padding: 36px 36px 52px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--charcoal);
}

.post-modal-body h1,
.post-modal-body h2,
.post-modal-body h3 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--black);
    margin: 32px 0 16px;
    letter-spacing: -0.01em;
}

.post-modal-body h1 { font-size: 28px; }
.post-modal-body h2 { font-size: 22px; }
.post-modal-body h3 { font-size: 18px; }

.post-modal-body p {
    margin-bottom: 20px;
}

.post-modal-body img {
    width: 100%;
    border-radius: var(--radius);
    margin: 24px 0;
}

.post-modal-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    font-style: italic;
    color: var(--dark-gray);
    background: var(--off-white);
}

.post-modal-body a {
    color: var(--accent-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.post-modal-body ul, .post-modal-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.post-modal-body li {
    margin-bottom: 8px;
}

.post-modal-body code {
    background: var(--off-white);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 14px;
}

.post-modal-body pre {
    background: var(--charcoal);
    color: var(--light-gray);
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 24px 0;
}

.post-modal-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .masonry-grid {
        columns: 2;
    }

    .video-feature-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .video-text {
        text-align: center;
    }

    .video-desc {
        max-width: 100%;
        margin: 0 auto;
    }

    .contact-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }

    .nav-links {
        display: none;
    }

    .nav-menu-btn {
        display: flex;
    }

    .lang-toggle {
        top: 16px;
        right: 60px;
    }

    .masonry-grid {
        columns: 1;
    }

    .hero {
        min-height: 500px;
    }

    .hero-title {
        font-size: clamp(28px, 8vw, 44px);
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links-group {
        flex-wrap: wrap;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .post-modal-content {
        width: 96vw;
        max-height: 94vh;
        border-radius: 6px;
    }

    .post-modal-title {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .post-modal-body {
        padding: 24px 20px 40px;
    }

    .newsletter-input-wrap {
        flex-direction: column;
    }

    .newsletter-submit {
        width: 100%;
        text-align: center;
    }
}

/* --- Loading Animation --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.masonry-item {
    animation: fadeInUp 0.6s ease both;
}

.masonry-item:nth-child(1) { animation-delay: 0.05s; }
.masonry-item:nth-child(2) { animation-delay: 0.1s; }
.masonry-item:nth-child(3) { animation-delay: 0.15s; }
.masonry-item:nth-child(4) { animation-delay: 0.2s; }
.masonry-item:nth-child(5) { animation-delay: 0.25s; }
.masonry-item:nth-child(6) { animation-delay: 0.3s; }
.masonry-item:nth-child(7) { animation-delay: 0.35s; }
.masonry-item:nth-child(8) { animation-delay: 0.4s; }
.masonry-item:nth-child(9) { animation-delay: 0.45s; }
.masonry-item:nth-child(10) { animation-delay: 0.5s; }
.masonry-item:nth-child(11) { animation-delay: 0.55s; }
.masonry-item:nth-child(12) { animation-delay: 0.6s; }

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--light-gray);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mid-gray);
}

/* --- Utility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
