.social-icon-link svg {
    vertical-align: middle;
    display: inline-block;
}
.social-icon-link[aria-label="LinkedIn"] svg {
    width: 22px;
    height: 22px;
    vertical-align: middle;
    display: inline-block;
}
/* --- LinkedIn icon size adjustment (desktop) --- */
.social-icon-link[aria-label="LinkedIn"] svg {
    width: 22px;
    height: 22px;
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/poppins/Poppins-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('assets/poppins/Poppins-Medium.ttf') format('truetype');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/poppins/Poppins-SemiBold.ttf') format('truetype');
}
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/poppins/Poppins-Bold.ttf') format('truetype');
}

@keyframes slow-hue-rotate {
  from {
    filter: hue-rotate(0deg);
  }
  to {
    filter: hue-rotate(360deg);
  }
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a1a;
    overflow: hidden; 
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #5cb6c4;
    color: #1a1a1a;
    padding: 8px 12px;
    z-index: 10000;
    text-decoration: none;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

body.pane-is-open {
    overflow: hidden;
}

#preloader {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.7s ease-out;
    opacity: 1;
    background-color: transparent;
}

.preloader-word {
    position: absolute;
    opacity: 0;
    font-size: 2.25rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: #f2f2f2;
    z-index: 210;
}

.preloader-word:nth-child(1) {
    animation: fade-word 0.9s ease-in-out forwards;
}
.preloader-word:nth-child(2) {
    animation: fade-word 0.9s ease-in-out 0.85s forwards;
}
.preloader-word:nth-child(3) {
    animation: fade-word-final 1.2s ease-in-out 1.7s forwards;
}

@keyframes fade-word {
    0% { opacity: 0; }
    15% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes fade-word-final {
    0% { opacity: 0; }
    15% { opacity: 1; }
    60% { opacity: 1; }
    100% { opacity: 0; transition-timing-function: ease-out; }
}

#skip-intro {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 220;
    background-color: rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    text-transform: lowercase;
    cursor: pointer;
    opacity: 0;
    transition: background-color 0.2s, color 0.2s;
    animation: fade-in-skip 0.9s ease forwards;
}

#skip-intro:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #f2f2f2;
}

@keyframes fade-in-skip {
    to {
        opacity: 1;
    }
}

body.is-loaded #preloader {
    opacity: 0;
    pointer-events: none;
}

#background-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    z-index: 1;
}

#main-content-area {
    position: relative;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    opacity: 0;
    transition: opacity 1s ease-in;
}

body.is-loaded #main-content-area {
    opacity: 1;
}

#center-logo-container {
    position: absolute;
    width: 270px;
    height: 270px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    cursor: pointer;
    opacity: 0;
    transition: transform 0.3s ease, filter 0.3s ease;
}
    #center-logo-container img {
        width: 100%;
        height: 100%;
        transition: filter 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

body.is-loaded #center-logo-container {
     animation: logo-fade-in-grow 4s ease-in-out 0.5s forwards; 
}

@keyframes logo-fade-in-grow {
    from {
        transform: translate(-50%, -50%) scale(0.25);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

#center-logo-container img {
    width: 100%;
    height: 100%;
    transition: filter 0.3s ease;
}

#center-logo-container.is-pressed {
    transform: translate(-50%, -50%) scale(0.92) !important;
    transition-duration: 0.1s;
}

.mobile-logo {
    display: none;
}

/* Brand contact link colour (including visited state) */
.contact-link,
.contact-link:visited {
    color: #5cb6c4;
}

#center-logo-container:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

.planet-3d-container {
    position: absolute;
    width: 120px;
    height: 120px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
    transform: scale(0.01);
}

.is-loaded .planet-3d-container {
    animation: grow-in 20s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes grow-in {
    to {
        transform: scale(1);
    }
}

.planet-3d-container canvas {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50%;
    filter: drop-shadow(0 0 8px #6db8c4);
    transition: filter 0.4s ease, opacity 1s ease, transform 1s ease;
    opacity: 0;
    transform: scale(0.9);
    position: relative;
    z-index: 2;
}

.planet-3d-container.loaded canvas {
    opacity: 1;
    transform: scale(1);
}

 .planet-3d-container:hover, .planet-3d-container:focus {
    transform: scale(1.15);
    outline: none;
 }

 .planet-3d-container:hover canvas, .planet-3d-container:focus canvas {
    filter: drop-shadow(0 0 25px #6db8c4);
 }

.planet-label {
    position: absolute;
    color: #f2f2f2;
    font-size: 0.9rem;
    text-transform: lowercase;
    text-shadow: 0 0 5px black;
    font-weight: 500;
    width: 150px;
    top: 50%;
    transition: transform 0.3s ease;
    white-space: nowrap;
    opacity: 0;
}

.is-loaded .planet-label {
    animation: fade-in-text 4s ease forwards;
}

@keyframes fade-in-text {
    to {
        opacity: 1;
    }
}

.planet-left .planet-label {
    text-align: right;
    right: calc(100% + 40px);
    transform: translateY(-50%);
}

.planet-right .planet-label {
    text-align: left;
    left: calc(100% + 40px);
    transform: translateY(-50%);
}

.planet-3d-container:hover .planet-label, .planet-3d-container:focus .planet-label {
     transform: translateY(-50%) scale(1.1);
}

.label-connector {
    position: absolute;
    height: 1.5px;
    background-color: rgba(242, 242, 242, 0.3);
    top: 50%;
    opacity: 0.7;
    z-index: 1;
    width: 0;
    transition: opacity 0.4s ease;
}

.is-loaded .label-connector {
    animation: grow-line 2s cubic-bezier(0.25, 1, 0.5, 1) 4s forwards;
}

@keyframes grow-line {
    to {
        width: 30px;
    }
}

.planet-left .label-connector {
    right: 100%;
}

.planet-right .label-connector {
    left: 100%;
}

.label-effect-glow {
    animation: neon-glow-pulse 1.5s ease-in-out infinite;
}
@keyframes neon-glow-pulse {
    0%, 100% { text-shadow: 0 0 5px #000, 0 0 5px #5cb6c4; }
    50% { text-shadow: 0 0 5px #000, 0 0 15px #5cb6c4, 0 0 20px #5cb6c4; }
}

#svg-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
}

.is-loaded #svg-lines {
    animation: fade-in-dots 10s ease forwards;
}

@keyframes fade-in-dots {
    to { opacity: 1; }
}

#blur-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background-color: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#blur-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.dot {
    fill: rgba(242, 242, 242, 0.7);
    animation: twinkle 5s ease-in-out infinite;
    transition: fill 0.1s ease-in-out, r 0.1s ease-in-out, opacity 0.1s ease-in-out;
}

.dot.lit-up {
    r: 2.5;
    opacity: 1;
    animation: none;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

#explore-hint {
    position: absolute;
    color: #f2f2f2;
    font-size: 1.2rem;
    opacity: 0;
    z-index: 50;
    pointer-events: none;
    text-shadow: 0 0 10px #6db8c4;
}

.dust-particle {
    position: absolute;
    background-color: rgba(242, 242, 242, 0.7);
    border-radius: 50%;
    pointer-events: none;
    z-index: 49;
    animation: fadeOutAndShrink 1.5s forwards;
}

@keyframes fadeOutAndShrink {
    to { transform: scale(0); opacity: 0; }
}

.content-pane {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    background-color: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    color: #f2f2f2;
    z-index: 100;
    opacity: 0;
    pointer-events: none; 
    transition: opacity 0.4s ease, transform 0.4s ease;
    padding: 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.content-pane.visible {
    opacity: 1;
    pointer-events: auto; 
    transform: translate(-50%, -50%) scale(1);
}

.close-btn {
    position: sticky;
    top: -1rem;
    right: -1rem;
    margin-left: auto;
    background: none;
    border: none;
    color: #5cb6c4;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 101;
    display: block; /* Ensure it's always a block element */
    width: fit-content; /* Make it only as wide as its content */
}

.close-btn:hover {
    color: #7ac4d1;
}

.form-input, .form-textarea {
    width: 100%;
    background-color: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #f2f2f2;
    margin-bottom: 1rem;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    line-height: 1.5;
}
.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #6db8c4;
    box-shadow: 0 0 0 2px rgba(109, 184, 196, 0.7);
}
.submit-btn {
    background-color: #5cb6c4;
    color: #1a1a1a;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
    margin: 0 1rem;
    width: calc(100% - 2rem);
    max-width: 300px;
    display: block;
}
.submit-btn:hover {
    background-color: #7ac4d1;
}
.submit-btn:disabled {
     background-color: #4a7c85;
     cursor: not-allowed;
}

.about-cta-link {
    display: block;
    width: auto;
    min-width: 150px;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border: 2px solid #5cb6c4;
    color: #5cb6c4;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    margin: 0 0.5rem;
}
.about-cta-link:hover {
    background-color: #5cb6c4;
    color: #1a1a1a;
}
.spark-cta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}
.spark-cta-link {
    color: #5cb6c4;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: underline;
}
.spark-cta-link:hover {
    color: #7ac4d1;
}

#spark-result .spark-heading {
    font-weight: 700;
    color: #82c9d4;
    text-transform: uppercase;
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}

.contact-link {
    color: #5cb6c4;
    cursor: pointer;
    transition: color 0.2s ease;
    text-decoration: underline;
}
.contact-link:hover {
    color: #7ac4d1;
}

.footer-link {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-link:hover {
    color: #f2f2f2;
}

.faq-accordion-item {
    border-bottom: 1px solid rgba(92, 182, 196, 0.1);
    margin-bottom: 1rem;
}

.faq-question-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question-btn:hover {
    color: rgb(92, 182, 196);
}

.faq-icon {
    color: rgb(92, 182, 196);
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-icon.open {
    transform: rotate(45deg);
}

.faq-answer-panel {
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1rem;
}

.faq-answer-panel > div {
    padding: 0 0 1.5rem 0;
    color: rgba(255, 255, 255, 0.8);
}

.faq-answer-panel ul {
    list-style-type: none;
    padding-left: 1.2rem;
    margin: 1rem 0;
}

.faq-answer-panel li {
    margin-bottom: 0.75rem;
    position: relative;
}

.faq-answer-panel li::before {
    content: "•";
    color: rgb(92, 182, 196);
    position: absolute;
    left: -1.2rem;
}

.pane-creator-credit {
    text-align: center;
    color: #9E9E9E;
    font-size: 0.7rem;
    margin-top: auto;
    padding-top: 3rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-transform: lowercase;
    opacity: 0.9;
    width: 100%;
}

#page-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 50;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.8), transparent);
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: baseline; /* Changed to baseline alignment */
    box-sizing: border-box;
}
.footer-left-content, .footer-right-content, .footer-left-content {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.72rem;
    color: #a0a0a0;
    padding-right: 1rem;
    white-space: nowrap;
    line-height: 1;  /* Ensure consistent text alignment */
}
.footer-separator {
    color: #555;
}
.footer-right-content {
    text-transform: lowercase;
}

.content-pane h2 {
    text-transform: lowercase;
}

.team-title {
    color: #82c9d4; 
    font-weight: 500;
    text-transform: lowercase;
}

.headshot-container {
    cursor: pointer;
}

.team-headshot {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
    animation: slow-hue-rotate 20s linear infinite;
}

/* Add new team layout styles */
#team-pane .team-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 768px) {
    #team-pane .team-grid {
        flex-direction: row;
        justify-content: space-between;
    }
    
    #team-pane .team-member {
        width: 48%;  /* slightly less than 50% to account for gap */
    }
}

.is-glitching {
    animation: glitch-effect 1.2s infinite steps(1, end);
}
@keyframes glitch-effect {
    0% { filter: none; }
    5% { filter: hue-rotate(45deg) brightness(1.2) saturate(1.5); }
    10% { filter: none; }
    20% { filter: hue-rotate(-20deg) brightness(0.8); }
    25% { filter: none; }
    40% { filter: hue-rotate(180deg) brightness(1.1) saturate(0.8); }
    45% { filter: none; }
    60% { filter: hue-rotate(90deg) brightness(1.3); }
    65% { filter: none; }
    80% { filter: hue-rotate(-90deg) brightness(0.9); }
    85% { filter: none; }
    100% { filter: none; }
}

/* --- Journal Pane Styles --- */

#journal-pane {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    overflow: hidden;
    max-width: min(900px, 95vw) !important; /* Reduced width */
    width: 95vw;
    max-height: 95vh;
    height: 95vh;
    margin: 0 auto; /* Center the panel */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.journal-filter-container {
    flex-shrink: 0;
}

.journal-filter-container {
    position: relative;
    margin-bottom: 0.5rem;
}

.journal-filter { position: relative; width: 100%; }
.journal-filter-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(92, 182, 196, 0.35);
    background-color: rgba(0, 0, 0, 0.6);
    color: #f8f8f8;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.journal-filter-trigger:hover {
    background-color: rgba(0, 0, 0, 0.72);
    border-color: rgba(122, 196, 209, 0.5);
}
.journal-filter-trigger:focus-visible {
    outline: none;
    border-color: #7ac4d1;
    box-shadow: 0 0 0 2px rgba(92, 182, 196, 0.35);
}
.journal-filter-trigger-label { flex: 1 1 auto; text-align: left; }
.journal-filter-trigger-icon {
    flex: 0 0 auto;
    color: rgba(200, 237, 244, 0.9);
    transition: transform 0.2s ease;
}
.journal-filter.is-open .journal-filter-trigger-icon { transform: rotate(180deg); }
.journal-filter-options {
    position: absolute;
    top: calc(100% + 0.4rem);
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    border-radius: 0.6rem;
    border: 1px solid rgba(92, 182, 196, 0.4);
    background: rgba(6, 12, 14, 0.95);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    max-height: 240px;
    overflow-y: auto;
    z-index: 50;
}
.journal-filter-options[hidden],
.journal-filter-options[aria-hidden="true"] {
    display: none !important;
}
.journal-filter-options::-webkit-scrollbar { width: 6px; }
.journal-filter-options::-webkit-scrollbar-thumb {
    background: rgba(92, 182, 196, 0.4);
    border-radius: 999px;
}
.journal-filter-option {
    padding: 0.5rem 1rem;
    color: #f2f2f2;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.journal-filter-option:hover,
.journal-filter-option:focus-visible {
    outline: none;
    background-color: rgba(92, 182, 196, 0.18);
}
.journal-filter-option.active {
    background-color: rgba(92, 182, 196, 0.28);
    color: #0c181b;
}

.journal-content-wrapper {
    flex-grow: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: calc(100% - 50px); /* Slightly reduced to account for filter */
    padding: 0 0.5rem; /* Add slight padding to contain content */
}

.journal-share {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.journal-share-label {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.65);
}
.journal-share-buttons {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.journal-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(92, 182, 196, 0.35);
    color: #f2f2f2;
    background: rgba(92, 182, 196, 0.12);
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0.08em;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.journal-share-btn:hover,
.journal-share-btn:focus-visible {
    outline: none;
    border-color: rgba(122, 196, 209, 0.7);
    background: rgba(92, 182, 196, 0.22);
    color: #ffffff;
}

/* Featured post badge styles shared across the journal */
.journal-featured-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(92, 182, 196, 0.5);
    background: rgba(92, 182, 196, 0.18);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    font-weight: 600;
    color: #f2f2f2;
}
.journal-featured-pill::before {
    content: '\2726';
    font-size: 0.85em;
    line-height: 1;
}
.journal-featured-pill--primary {
    margin-bottom: 0.9rem;
    background: linear-gradient(120deg, rgba(92, 182, 196, 0.35), rgba(92, 182, 196, 0.15));
    border-color: rgba(92, 182, 196, 0.65);
    color: #f2f2f2;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.2);
}
.journal-featured-pill--overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 18, 22, 0.75);
    border-color: rgba(92, 182, 196, 0.7);
    color: #f2f2f2;
    z-index: 3;
}

/* --- Journal Date Badge Styling --- */
.journal-date-badge {
    color: #a0a0a0;
}

#journal-featured-post {
    flex: 1 1 65%;
    overflow-y: auto;
    overflow-x: hidden; /* prevent horizontal scroll from wide content */
    min-height: 0;
    padding-right: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative; /* for progress/hint overlay */
}

.featured-post-image {
    width: 100%;
    max-height: 40vh; /* Limit height relative to viewport */
    object-fit: cover;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(92, 182, 196, 0.2);
    transition: transform 0.3s ease;
}

.featured-post-image:hover {
    transform: scale(1.02);
}

.featured-post-category {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #5cb6c4;
    text-transform: lowercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.8rem;
    background: rgba(92, 182, 196, 0.1);
    border-radius: 2rem;
    margin-bottom: 0.75rem;
}

.featured-post-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0.25rem 0 1rem 0;
    line-height: 1.3;
    color: #ffffff;
}

.featured-post-body {
    font-size: 1rem;
    line-height: 1.7;
    color: #e0e0e0;
}

/* Option B helpers: intro first, then image, then rest */
.featured-intro {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #e8e8e8;
    margin-bottom: 1rem;
}

/* Reading progress bar */
.reading-progress {
    position: sticky;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, rgba(92,182,196,0.9), rgba(92,182,196,0.6));
    box-shadow: 0 0 12px rgba(92, 182, 196, 0.35);
    opacity: 0;
    transition: transform 0.15s linear, opacity 0.3s ease;
    z-index: 5;
}
.reading-progress.active { opacity: 1; }

/* Scroll hint */
.scroll-hint {
    position: sticky;
    bottom: 0.5rem;
    left: 0;
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    pointer-events: none;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.scroll-hint.hidden {
    opacity: 0;
    transform: translateY(6px);
}
.scroll-hint svg { color: #7ac4d1; }

/* Ensure any images inside the post body never overflow */
#journal-featured-post .featured-post-body img {
    max-width: 100%;
    height: auto;
}

.journal-archive-container {
    position: relative;
    height: 200px;
    margin-top: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.archive-scroll-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0 -1.5rem; /* Extend beyond panel padding */
    padding: 0 1.5rem; /* Match panel padding */
}

.archive-nav-btn {
    position: absolute;
    z-index: 10;
    width: 40px;
    height: 40px;
    top: calc(50% - 20px);
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid #5cb6c4;
    color: #5cb6c4;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
    pointer-events: auto;
}

.archive-nav-btn.prev {
    left: 0;
}

.archive-nav-btn.next {
    right: 0;
}

.archive-nav-btn svg {
    width: 24px;
    height: 24px;
}

.archive-nav-btn:hover {
    background: rgba(26, 26, 26, 0.9);
    border-color: #7ac4d1;
    color: #7ac4d1;
    opacity: 1;
}

.archive-nav-btn.prev {
    left: 0.5rem;
}

.archive-nav-btn.next {
    right: 0.5rem;
}

/* Hide buttons when scrolling is not possible */
.archive-nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Keep arrows visible but indicate non-interactive state */
.archive-nav-btn.disabled {
    opacity: 0.35;
    cursor: default;
    box-shadow: none;
}

.archive-title {
    text-transform: lowercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #a0a0a0;
}

#journal-archive-scroll {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    height: 100%;
    width: 100%;
    scroll-behavior: smooth;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

#journal-archive-scroll.dragging {
    cursor: grabbing;
    user-select: none;
}

.archive-scroll-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 3rem;
}

.archive-nav-btn {
    position: absolute;
    z-index: 10;
    width: 40px;
    height: 40px;
    top: calc(50% - 20px); /* Center vertically relative to thumbnails */
    border-radius: 50%;
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #5cb6c4;  /* Use site's cyan color by default */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.archive-nav-btn svg {
    width: 24px;
    height: 24px;
}

.archive-nav-btn:hover {
    background: rgba(26, 26, 26, 0.9);
    border-color: #5cb6c4;
    color: #7ac4d1;  /* Lighter cyan on hover */
    opacity: 1;
    box-shadow: 0 0 15px rgba(92, 182, 196, 0.3);
}

.archive-nav-btn.prev {
    left: 0.5rem;
}

.archive-nav-btn.next {
    right: 0.5rem;
}

/* Hide buttons when scrolling is not possible */
.archive-nav-btn.hidden {
    opacity: 0;
    pointer-events: none;
}

#journal-archive-scroll::-webkit-scrollbar {
    display: none;  /* Chrome, Safari, Opera */
}

/* Add subtle fade effect to indicate scrollable content */
.journal-archive-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, rgba(20, 20, 20, 0.95));
    pointer-events: none;
}

.archive-post-item {
    cursor: pointer;
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(92, 182, 196, 0.2);
    transition: all 0.3s ease;
    flex: 0 0 280px;
    height: 158px;    /* Maintain 16:9 aspect ratio */
    scroll-snap-align: start;
    background: rgba(0, 0, 0, 0.3);
}
.archive-post-item:hover {
    border-color: #5cb6c4;
    transform: translateY(-2px) scale(1.02);
    background: rgba(92, 182, 196, 0.1);
}
.archive-post-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.archive-post-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 20%, rgba(0,0,0,0.7) 50%, transparent);
    padding: 0.75rem 0.75rem 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    z-index: 1;
}

/* Journal date badge */
.journal-card { position: relative; }
.journal-date-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 2px 10px;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0.08em;
    color: #e8faff;
    background: rgba(0, 18, 22, 0.55);
    border: 1px solid rgba(92, 182, 196, 0.45);
    border-radius: 999px;
    backdrop-filter: blur(6px);
    pointer-events: none;
    user-select: none;
    z-index: 2;
}
.journal-card:hover .journal-date-badge { border-color: rgba(92, 182, 196, 0.8); }

/* Featured badge positioning slightly inset due to padding */
.featured-post-wrapper { position: relative; }
.featured-post-wrapper .journal-date-badge {
    left: 14px;
    bottom: 14px;
}
.hidden { display: none !important; }

 @media (min-width: 768px) {
    #team-pane {
        max-width: 840px;
    }
 }

@media (min-width: 1025px) {
    #planet-faq, #planet-legal, .nav-meteor, .mobile-logo, #wordmark-logo {
        display: none !important;
    }
}


/* ---- Consolidated from panel-styles.css (removed) ---- */
/* Panel Base Styles */
.content-pane {
    max-width: min(1000px, 95vw);
    width: 95vw;
    max-height: 95vh;
    height: 95vh;
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2.5rem;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
}

/* Single Scrollbar Per Panel */
.content-pane {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(92, 182, 196, 0.3) transparent;
}

.content-pane::-webkit-scrollbar { width: 6px; }
.content-pane::-webkit-scrollbar-track { background: transparent; }
.content-pane::-webkit-scrollbar-thumb { background-color: rgba(92, 182, 196, 0.3); border-radius: 3px; }
.content-pane::-webkit-scrollbar-thumb:hover { background-color: rgba(92, 182, 196, 0.5); }

/* Contact Form Styles */
#contact-form { width: 100%; max-width: 100%; margin: 2rem 0; }
#contact-form-fields { display: flex; flex-direction: column; gap: 1.5rem; }
.form-input, .form-textarea {
    width: 100%; padding: 0.75rem 1rem; background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(92, 182, 196, 0.3); border-radius: 0.5rem; color: #f2f2f2;
    font-size: 0.9rem; transition: all 0.3s ease;
}
.form-input:focus, .form-textarea:focus {
    outline: none; border-color: #5cb6c4; box-shadow: 0 0 0 2px rgba(92, 182, 196, 0.2); background: rgba(92, 182, 196, 0.1);
}
.form-textarea { min-height: 120px; resize: vertical; }

/* Contact Links */
.contact-info { text-align: center; margin-bottom: 2rem; color: #a0a0a0; }
.contact-link { color: #5cb6c4; text-decoration: none; transition: color 0.3s ease; }
.contact-link:hover { color: #7ac4d1; }

/* Ensure visited state matches brand cyan */
.contact-link, .contact-link:visited { color: #5cb6c4; }

/* About Panel Styles */
.about-buttons-container { display: flex; gap: 1.25rem; justify-content: center; margin: 2rem auto; padding: 0 1rem; max-width: 500px; }
.about-cta-link { flex: 1; display: inline-block; padding: 0.75rem 1.5rem; background: rgba(92, 182, 196, 0.1); border: 1px solid rgba(92, 182, 196, 0.3); border-radius: 0.5rem; color: #5cb6c4; text-align: center; text-decoration: none; font-size: 0.9rem; letter-spacing: 0.5px; transition: all 0.3s ease; white-space: nowrap; }
.about-cta-link:hover { background: rgba(92, 182, 196, 0.2); border-color: #5cb6c4; transform: translateY(-2px); }

/* Spark Panel Styles */
.spark-container { max-width: 800px; margin: 0 auto; padding: 0 1rem; }
#spark-prompt { width: 100%; margin: 1rem 0; min-height: 120px; }
.spark-button-container { display: flex; justify-content: center; margin: 1.5rem 0; }
#spark-btn { min-width: 180px; }
#spark-result { margin: 1.5rem 0; padding: 1.5rem; background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(92, 182, 196, 0.2); border-radius: 0.75rem; }

/* Panel-specific width overrides */
#journal-pane { max-width: min(1200px, 95vw); }
#about-pane { max-width: min(600px, 95vw); }
#contact-pane { max-width: min(600px, 95vw); max-height: min(800px, 90vh); padding: 2rem; }

/* Journal post content helpers */
.journal-post-content hr { border: none; border-top: 1px solid rgba(255, 255, 255, 0.15); margin: 2rem 0; }
.journal-post-content ul { list-style: none; padding-left: 0; margin: 1rem 0; }
.journal-post-content li { margin-bottom: 0.6rem; color: #ddd; }
.journal-post-content .inline-figure { margin: 1.25rem 0; text-align: center; }
.journal-post-content .inline-figure img { max-width: 100%; height: auto; border-radius: 6px; }
.journal-post-content .inline-figure figcaption { font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); margin-top: 0.5rem; }
.journal-post-content .muted { color: rgba(255, 255, 255, 0.7); }
.journal-post-content .winner-gallery { margin: 2rem 0; }
.journal-post-content .arts-council-logo-footer { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center; }
.journal-post-content .arts-council-logo-footer img { width: 100%; max-width: 100%; height: auto; display: block; margin: 0 auto; background: transparent; }

/* FAQ-specific overrides */
.faq-question-btn { font-family: 'Poppins', sans-serif; font-size: 1.125rem; line-height: 1.2; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.faq-icon { width: 1.25rem; height: 1.25rem; min-width: 1.25rem; min-height: 1.25rem; display: inline-block; vertical-align: middle; flex-shrink: 0; margin-left: 0.75rem; transition: transform 0.28s cubic-bezier(0.4,0,0.2,1); transform-origin: center; -webkit-transform-origin: center; transform-box: fill-box; -webkit-transform-box: fill-box; }
.faq-icon.open { transform: rotate(45deg); }
.faq-answer-panel { font-family: 'Poppins', sans-serif; font-size: 1rem; color: rgba(255,255,255,0.9); }

/* FAQ Search Styles */
.faq-search-container { position: relative; display: block; }
.faq-search-input { width: 100%; }
.faq-search-input::placeholder { color: rgba(242,242,242,0.6); }
.faq-item-hidden { overflow: hidden; max-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; border-color: transparent !important; opacity: 0; transition: max-height 0.25s ease, opacity 0.25s ease; }
.faq-item-visible { opacity: 1; transition: opacity 0.2s ease; }
.faq-highlight { background: rgba(92, 182, 196, 0.2); border-radius: 0.25rem; padding: 0 0.15rem; }

#spark-pane { max-width: min(600px, 95vw); }
#demo-pane { max-width: min(600px, 95vw); }

/* Submit Button Styles */
.submit-btn { background: rgba(92, 182, 196, 0.1); color: #5cb6c4; border: 1px solid rgba(92, 182, 196, 0.3); padding: 0.75rem 2rem; border-radius: 0.5rem; font-size: 0.9rem; letter-spacing: 0.5px; cursor: pointer; transition: all 0.3s ease; }
.submit-btn:hover { background: rgba(92, 182, 196, 0.2); border-color: #5cb6c4; transform: translateY(-1px); }

/* Newsletter Checkbox Styles */
.newsletter-opt-in { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0; }
.newsletter-opt-in input[type="checkbox"] { width: 1.125rem; height: 1.125rem; border: 1px solid rgba(92, 182, 196, 0.3); border-radius: 0.25rem; background: rgba(0, 0, 0, 0.3); cursor: pointer; }
.newsletter-opt-in label { font-size: 0.85rem; color: #a0a0a0; cursor: pointer; }

/* --- Journal Mobile Layout Redesign --- */
/* --- Journal Post Image Gallery --- */
.image-scroll-gallery {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem 1rem 0.25rem;
    margin: 1.5rem 0;
    /* Improves scrolling on touch devices */
    -webkit-overflow-scrolling: touch;
    /* Adds a snapping effect to the images */
    scroll-snap-type: x mandatory;
}

.image-scroll-gallery img {
    height: 200px; /* Sets a consistent height for all images */
    width: auto;
    border-radius: 0.5rem;
    scroll-snap-align: start; /* Snaps the start of each image */
}

/* Custom scrollbar for a subtle look */
.image-scroll-gallery::-webkit-scrollbar { height: 6px; }
.image-scroll-gallery::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); border-radius: 3px; }
.image-scroll-gallery::-webkit-scrollbar-thumb { background: rgba(92, 182, 196, 0.4); border-radius: 3px; }
.image-scroll-gallery::-webkit-scrollbar-thumb:hover { background: rgba(92, 182, 196, 0.6); }

/* --- Journal Desktop Layout Overhaul --- */
@media (min-width: 1025px) {
    /* Make the whole panel scroll vertically, not just the post area */
    #journal-pane {
        display: block;
        overflow-y: auto;
    }

    /* Make the main wrapper a vertical stack */
    .journal-content-wrapper {
        flex-direction: column;
        height: auto;
        padding: 0;
    }

    /* Allow the featured post to be full-width and grow naturally */
    #journal-featured-post {
        flex-basis: auto;
        overflow-y: visible; /* Disable internal scrolling */
        padding: 1.5rem; /* Restore padding for a framed look */
        margin-bottom: 2.5rem; /* Space before the archive */
    }

    /* Reposition the archive to the bottom of the panel */
    .journal-archive-container {
        flex-basis: auto;
        border-left: none; /* Remove the old vertical divider */
        border-top: 1px solid rgba(255, 255, 255, 0.2); /* Add a top divider */
        padding: 1.5rem 0 0 0;
        height: auto;
    }

    /* Restore horizontal scrolling for the archive */
    #journal-archive-scroll {
        flex-direction: row;
        overflow-y: hidden;
        overflow-x: auto;
        padding-right: 0;
    }

    /* Restore the desktop archive item dimensions */
    .archive-post-item {
        width: auto; /* Let the flex-basis control the size */
        aspect-ratio: auto; /* Use fixed height/width instead */
        flex: 0 0 280px;
        height: 158px;
    }
}

/* --- Social icon links --- */
.social-icon-link {
    color: #5cb6c4; /* Peakflow cyan */
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-icon-link:hover {
    color: #7ac4d1; /* Lighter cyan on hover */
    transform: scale(1.1);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    /* Add specific overrides if needed, e.g., stop particle JS */
}