/* =============================================
   ITER IGNIS – Hugo Theme Stylesheet
   Lampworking learning journey — editorial layout
   ============================================= */

/* ----- CSS Variables / Design Tokens ----- */
:root {
    --bg-primary: #110e0c;
    --bg-secondary: #1a1510;
    --bg-card: #1e1914;
    --bg-card-hover: #252019;
    --accent: #e8713a;
    --accent-warm: #f4a341;
    --accent-dim: rgba(232, 113, 58, 0.12);
    --accent-glow: rgba(232, 113, 58, 0.25);
    --ember: #d4451a;
    --text: #ddd5cb;
    --text-muted: #8a7e72;
    --text-heading: #f5efe8;
    --border: rgba(255, 240, 220, 0.08);
    --font-heading: 'Cinzel', serif;
    --font-body: 'Raleway', sans-serif;
    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --radius: 6px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 17px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--accent-warm);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 400;
    line-height: 1.2;
}

/* ----- Container ----- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.content-container {
    max-width: 800px;
}

.journal-container {
    max-width: 800px;
}

/* ----- Section ----- */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-header .divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--ember), var(--accent), var(--accent-warm));
    margin: 0 auto 20px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ----- Scroll Animations ----- */
.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.js-enabled .fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-enabled .fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    transition: background-color 0.4s ease, padding 0.4s ease,
        backdrop-filter 0.4s ease;
}

.navbar.scrolled {
    background-color: rgba(17, 14, 12, 0.95);
    backdrop-filter: blur(12px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-heading);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
    font-weight: 500;
}

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

.nav-links a:hover {
    color: var(--text-heading);
}

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

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("../images/hero.png");
    background-size: cover;
    background-position: center;
    filter: brightness(0.45) saturate(1.2);
    transform: scale(1.05);
    transition: transform 10s ease;
}

.hero:hover .hero-bg {
    transform: scale(1.0);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(17, 14, 12, 0.1) 0%,
            rgba(17, 14, 12, 0.25) 40%,
            rgba(17, 14, 12, 0.6) 70%,
            var(--bg-primary) 100%);
}

/* Ember particles */
.hero-embers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.ember {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 8px 2px var(--accent-glow);
    animation: emberRise linear infinite;
}

.ember:nth-child(1) {
    left: 10%;
    animation-duration: 6s;
    animation-delay: 0s;
}

.ember:nth-child(2) {
    left: 25%;
    animation-duration: 8s;
    animation-delay: 1s;
    width: 3px;
    height: 3px;
}

.ember:nth-child(3) {
    left: 40%;
    animation-duration: 7s;
    animation-delay: 2s;
}

.ember:nth-child(4) {
    left: 55%;
    animation-duration: 9s;
    animation-delay: 0.5s;
    width: 2px;
    height: 2px;
}

.ember:nth-child(5) {
    left: 70%;
    animation-duration: 6.5s;
    animation-delay: 3s;
}

.ember:nth-child(6) {
    left: 80%;
    animation-duration: 7.5s;
    animation-delay: 1.5s;
    width: 3px;
    height: 3px;
}

.ember:nth-child(7) {
    left: 35%;
    animation-duration: 8.5s;
    animation-delay: 4s;
    width: 2px;
    height: 2px;
}

.ember:nth-child(8) {
    left: 65%;
    animation-duration: 7s;
    animation-delay: 2.5s;
}

@keyframes emberRise {
    0% {
        bottom: -10px;
        opacity: 0;
        transform: translateX(0);
    }

    10% {
        opacity: 0.9;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        bottom: 100%;
        opacity: 0;
        transform: translateX(40px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 16px;
    animation: heroFadeIn 1.2s ease forwards;
    opacity: 0;
}

.hero-content h1 span {
    color: var(--accent);
    text-shadow: 0 0 40px var(--accent-glow);
}

.hero-content .tagline {
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    color: var(--text-muted);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 40px;
    animation: heroFadeIn 1.2s ease 0.3s forwards;
    opacity: 0;
    font-weight: 300;
}

.btn-cta {
    display: inline-block;
    padding: 16px 48px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 0.88rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    animation: heroFadeIn 1.2s ease 0.6s forwards;
    opacity: 0;
    font-weight: 500;
    border-radius: var(--radius);
}

.btn-cta:hover {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 0 30px var(--accent-dim);
}

.btn-outline {
    border-color: var(--border);
    color: var(--text-muted);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
}

.btn-yt {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-yt:hover {
    background: var(--accent-warm);
    box-shadow: 0 0 30px var(--accent-glow);
}

.yt-icon {
    fill: currentColor;
    flex-shrink: 0;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   MISSION SECTION
   ============================================= */
.mission {
    background: var(--bg-secondary);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.mission-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px 32px;
    border-radius: var(--radius);
    transition: border-color var(--transition), transform var(--transition);
}

.mission-block:hover {
    border-color: rgba(232, 113, 58, 0.2);
    transform: translateY(-2px);
}

.mission-icon {
    width: 44px;
    height: 44px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.mission-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--accent);
}

.mission-block h3 {
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.mission-block p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* =============================================
   JOURNAL CARDS
   ============================================= */
.journal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.journal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition),
        box-shadow var(--transition);
}

.journal-card:hover {
    border-color: rgba(232, 113, 58, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.journal-card-image {
    overflow: hidden;
    max-height: 240px;
}

.journal-card-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.journal-card:hover .journal-card-image img {
    transform: scale(1.04);
}

.journal-card-body {
    padding: 24px 28px 28px;
}

.journal-date {
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
}

.journal-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
    margin-bottom: 12px;
}

.tag {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(255, 240, 220, 0.05);
    padding: 3px 10px;
    border-radius: 3px;
    border: 1px solid var(--border);
}

.journal-card-body h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.journal-card-body h3 a {
    color: var(--text-heading);
    transition: color var(--transition);
}

.journal-card-body h3 a:hover {
    color: var(--accent);
}

.journal-card-body>p {
    color: var(--text-muted);
    font-size: 1.0rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.read-more {
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    transition: color var(--transition);
}

.read-more:hover {
    color: var(--accent-warm);
}

/* =============================================
   JOURNAL POST (single entry)
   ============================================= */
.journal-post {
    padding-top: 120px;
}

.journal-post-header {
    margin-bottom: 32px;
}

.journal-post-header h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin-top: 12px;
    margin-bottom: 16px;
}

.journal-post-summary {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.8;
    font-style: italic;
}

.journal-post-hero {
    margin-bottom: 32px;
    border-radius: var(--radius);
    overflow: hidden;
}

.journal-post-hero img {
    width: 100%;
    border-radius: var(--radius);
}

.journal-post-video {
    margin-bottom: 32px;
}

.journal-post-content {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.9;
}

.journal-post-content h2 {
    font-size: 1.65rem;
    margin-top: 40px;
    margin-bottom: 16px;
}

.journal-post-content h3 {
    font-size: 1.3rem;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--accent-warm);
}

.journal-post-content p {
    margin-bottom: 16px;
}

.journal-post-content ul,
.journal-post-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.journal-post-content li {
    margin-bottom: 6px;
    color: var(--text-muted);
}

.journal-post-content strong {
    color: var(--text-heading);
    font-weight: 600;
}

.journal-post-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 20px;
    margin: 20px 0;
    background: var(--accent-dim);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text);
    font-style: italic;
}

/* =============================================
   YOUTUBE CTA SECTION
   ============================================= */
.youtube-cta {
    background: var(--bg-secondary);
}

.yt-cta-block {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.yt-cta-block h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 16px;
}

.yt-cta-block p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

.yt-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================
   GALLERY
   ============================================= */
.gallery {
    background: var(--bg-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: var(--radius);
    animation: galleryFadeIn 0.5s ease both;
}

.gallery-item:nth-child(1) {
    grid-row: span 2;
}

.gallery-item:nth-child(4) {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item .overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 14, 12, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

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

.overlay-content {
    text-align: center;
}

.overlay-icon {
    width: 48px;
    height: 48px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transform: scale(0.8);
    transition: transform var(--transition);
}

.gallery-item:hover .overlay-icon {
    transform: scale(1);
}

.overlay-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
}

.gallery-cta {
    text-align: center;
    margin-top: 40px;
}

@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   PAGE HERO
   ============================================= */
.page-hero {
    padding: 130px 0 36px;
    text-align: center;
    background: var(--bg-secondary);
}

.page-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--ember), var(--accent), var(--accent-warm));
}

/* =============================================
   GALLERY PAGE – Mosaic
   ============================================= */
.gallery-page .gallery-grid {
    display: block;
    column-count: 2;
    column-gap: 12px;
}

.gallery-page .gallery-item:nth-child(1),
.gallery-page .gallery-item:nth-child(4) {
    grid-row: span 1;
}

.gallery-page .gallery-item {
    break-inside: avoid;
    margin-bottom: 12px;
    display: inline-block;
    width: 100%;
}

.gallery-page .gallery-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* =============================================
   STANDALONE PAGES (About, Resources)
   ============================================= */
.standalone-content {
    padding-top: 40px;
}

.standalone-hero-image {
    margin-bottom: 40px;
    border-radius: var(--radius);
    overflow: hidden;
}

.standalone-hero-image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
}

/* Prose: rich text content */
.prose {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.9;
}

.prose h2 {
    font-size: 1.65rem;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.prose h3 {
    font-size: 1.3rem;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--accent-warm);
}

.prose p {
    margin-bottom: 16px;
    color: var(--text-muted);
}

.prose strong {
    color: var(--text-heading);
    font-weight: 600;
}

.prose ul,
.prose ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.prose li {
    margin-bottom: 6px;
    color: var(--text-muted);
}

.prose a {
    color: var(--accent);
    border-bottom: 1px solid var(--accent-dim);
    transition: border-color var(--transition);
}

.prose a:hover {
    border-color: var(--accent);
}

.prose hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

.prose blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 20px;
    margin: 20px 0;
    background: var(--accent-dim);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1.0rem;
}

.prose th {
    text-align: left;
    padding: 12px 16px;
    background: var(--bg-card);
    color: var(--text-heading);
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--accent);
}

.prose td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.prose tr:hover td {
    background: var(--bg-card);
}


/* =============================================
   MILESTONES SECTION
   ============================================= */
.milestones-section {
    padding-top: 48px;
    padding-bottom: 80px;
}

/* =============================================
   TIMELINE V2 – Premium vertical scrollable
   ============================================= */
.timeline-v2 {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0 40px;
}

/* Central vertical line */
.timeline-v2-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        var(--accent) 8%,
        var(--accent-warm) 50%,
        rgba(232, 113, 58, 0.15) 92%,
        transparent 100%
    );
    transform: translateX(-50%);
}

/* Each timeline item */
.timeline-v2-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 48px;
    width: 50%;
}

.timeline-v2-item:last-child {
    margin-bottom: 0;
}

/* Left items: right-aligned cards */
.timeline-v2-item--left {
    justify-content: flex-end;
    padding-right: 40px;
    align-self: flex-start;
}

/* Right items: left-aligned cards */
.timeline-v2-item--right {
    justify-content: flex-start;
    padding-left: 40px;
    margin-left: 50%;
}

/* Dot on the central line */
.timeline-v2-dot {
    position: absolute;
    top: 20px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent);
    z-index: 2;
    box-shadow: 0 0 0 5px rgba(232, 113, 58, 0.1),
                0 0 20px rgba(232, 113, 58, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-v2-item:hover .timeline-v2-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px rgba(232, 113, 58, 0.2),
                0 0 30px rgba(232, 113, 58, 0.3);
}

.timeline-v2-item--left .timeline-v2-dot {
    right: -8px;
}

.timeline-v2-item--right .timeline-v2-dot {
    left: -8px;
}

/* Ping animation on the dot */
.timeline-v2-dot-ping {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0;
    animation: dotPing 3s ease-out infinite;
}

@keyframes dotPing {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    70%, 100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Card */
.timeline-v2-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

.timeline-v2-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25),
                0 0 0 1px rgba(232, 113, 58, 0.15);
    border-color: rgba(232, 113, 58, 0.2);
}

/* Thumbnail with click-to-expand */
.timeline-v2-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
}

.timeline-v2-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.4s ease;
}

.timeline-v2-thumb:hover img {
    transform: scale(1.08);
    filter: brightness(0.7);
}

.timeline-v2-thumb-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: rgba(17, 14, 12, 0.3);
}

.timeline-v2-thumb:hover .timeline-v2-thumb-overlay {
    opacity: 1;
}

.timeline-v2-thumb-overlay svg {
    width: 32px;
    height: 32px;
    color: var(--text-heading);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

/* Card content */
.timeline-v2-content {
    padding: 20px 22px 22px;
}

.timeline-v2-date {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.timeline-v2-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--text-heading);
    margin: 0 0 8px;
    line-height: 1.4;
    letter-spacing: 0.02em;
}

.timeline-v2-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.timeline-v2-desc a {
    color: var(--accent);
    border-bottom: 1px solid rgba(232, 113, 58, 0.3);
    transition: border-color 0.3s ease;
}

.timeline-v2-desc a:hover {
    border-color: var(--accent);
}

/* Mobile: single column timeline */
@media (max-width: 767px) {
    .timeline-v2-line {
        left: 16px;
        transform: none;
    }

    .timeline-v2-item,
    .timeline-v2-item--left,
    .timeline-v2-item--right {
        width: 100%;
        margin-left: 0;
        padding-left: 44px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .timeline-v2-item--left .timeline-v2-dot,
    .timeline-v2-item--right .timeline-v2-dot {
        left: 8px;
        right: auto;
    }
}

/* =============================================
   PIECE DETAIL / BACK LINK
   ============================================= */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.92rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 32px;
    transition: color var(--transition);
}

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

.piece-detail {
    padding-top: 120px;
}

.piece-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}

.piece-image img {
    width: 100%;
    border-radius: var(--radius);
}

.piece-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 16px;
}

.accent-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-warm));
    margin-bottom: 20px;
}

.piece-summary {
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.piece-content {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.piece-content p {
    margin-bottom: 12px;
}

.piece-date {
    color: var(--text-muted);
    font-size: 0.88rem;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
}

.piece-nav {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.piece-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.92rem;
    transition: color var(--transition);
}

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

.piece-nav-link.next {
    margin-left: auto;
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

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

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition);
}

.lightbox-close:hover {
    border-color: var(--accent);
}

.lightbox-close svg {
    width: 18px;
    height: 18px;
    stroke: var(--text);
    fill: none;
    stroke-width: 2;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition), background var(--transition);
}

.lightbox-nav:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.lightbox-nav svg {
    width: 18px;
    height: 18px;
    stroke: var(--text);
    fill: none;
    stroke-width: 2;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* =============================================
   CONTACT (kept for about page inline)
   ============================================= */
.contact {
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.contact-info h3 {
    font-size: 0.95rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-weight: 600;
}

.contact-info h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 24px;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 1.05rem;
    transition: color var(--transition);
}

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

.contact-link svg {
    width: 18px;
    height: 18px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(232, 113, 58, 0.08);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.btn-submit {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-body);
    font-size: 0.88rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: transparent;
    cursor: pointer;
    transition: all var(--transition);
    align-self: flex-start;
    font-weight: 500;
    border-radius: var(--radius);
}

.btn-submit:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 36px 0;
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-heading);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-logo span {
    color: var(--accent);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition), background var(--transition);
}

.social-icon:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.social-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--text-muted);
    transition: fill var(--transition);
}

.social-icon:hover svg {
    fill: var(--accent);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* =============================================
   LANGUAGE SWITCHER
   ============================================= */
.lang-switch {
    list-style: none;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all var(--transition);
    text-decoration: none;
}

.lang-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-dim);
}

.lang-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Mobile: nav-right container for lang + hamburger */
.nav-right-mobile {
    display: none;
    align-items: center;
    gap: 12px;
}

.lang-toggle-mobile {
    color: var(--text-muted);
    font-size: 0.82rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 600;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all var(--transition);
    text-decoration: none;
}

.lang-toggle-mobile:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* =============================================
   RESPONSIVE – TABLET (≥ 768px)
   ============================================= */
@media (min-width: 768px) {

    .mission-grid {
        grid-template-columns: 1fr 1fr;
    }

    .journal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .gallery-page .gallery-grid {
        column-count: 3;
        column-gap: 14px;
    }

    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .piece-grid {
        grid-template-columns: 3fr 2fr;
    }

    .footer .container {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* =============================================
   RESPONSIVE – DESKTOP (≥ 1024px)
   ============================================= */
@media (min-width: 1024px) {
    .section {
        padding: 100px 0;
    }

    .journal-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .gallery-page .gallery-grid {
        column-count: 3;
        column-gap: 16px;
    }
}

/* =============================================
   RESPONSIVE – MOBILE NAV (< 768px)
   ============================================= */
@media (max-width: 767px) {
    .nav-toggle {
        display: flex;
    }

    .nav-right-mobile {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        height: 100vh;
        background: rgba(17, 14, 12, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 36px 36px;
        gap: 24px;
        transition: right 0.4s ease;
        border-left: 1px solid var(--border);
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    /* Hide desktop lang switch in mobile drawer */
    .lang-switch {
        display: none;
    }
}