/* Custom Variables */
:root {
    --accent: #E63946;
    --canvas: #F7F7F8;
    --surface: #FFFFFF;
}

/* Layout and Reset */
* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    color: #1A1A1A;
    background-color: var(--canvas);
    overflow-x: hidden;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

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

a {
    text-decoration: none;
    color: inherit;
}

/* Flow-like typography styles */
h1,
h2,
h3 {
    letter-spacing: -0.03em;
}

/* Extracted Inline Styles */
.nav-link-bold {
    font-weight: 600;
}

.relative-pos {
    position: relative;
}

.btn-share-trigger {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.teaser-container {
    max-width: 72rem;
    margin: 0 auto;
}

.img-h-auto {
    max-height: auto;
}

.abstract-title {
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    max-width: 60rem;
}

.text-align-left {
    text-align: left;
}

.study-overview-container {
    max-width: 56rem;
    margin: 0 auto 4rem auto;
}

.study-overview-text {
    font-size: 1.125rem;
    color: #4b5563;
    line-height: 1.6;
}

.future-works-pt {
    padding-top: 2rem;
}

.discussion-grid-fluid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.flex-1 {
    flex: 1;
}

.team-member-role {
    color: #4b5563;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.team-member-socials {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.citation-toggle-group {
    display: inline-flex;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    padding: 0.25rem;
    margin-bottom: 2rem;
}

.citation-toggle-btn-active {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: #111827;
    color: #ffffff;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.citation-toggle-btn-inactive {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    background-color: transparent;
    color: #6b7280;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.display-none {
    display: none;
}

.apa-code-text {
    white-space: pre-wrap;
    font-family: sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

/* Initial Hide for GSAP */
.fade-up,
.blur-up,
.scale-up {
    opacity: 0;
    visibility: hidden;
}

/* Shared Grid Layout */
.container {
    max-width: 80rem;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 6rem;
    max-width: 62rem;
    text-wrap: balance;
    letter-spacing: -0.03em;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 4.5rem;
        margin-bottom: 8rem;
    }
}

/* Header */
.independent-logo-wrapper {
    position: fixed;
    top: 0.8rem;
    left: 2rem;
    z-index: 2;
    pointer-events: none;
    display: flex;
    align-items: center;
    height: calc(100% - 3rem);
    max-height: 80px;
}

.independent-logo {
    pointer-events: auto;
}

.site-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 2;
    mix-blend-mode: difference;
    padding-bottom: 1rem;
    pointer-events: none;
}

.header-container {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    pointer-events: auto;
}

.header-logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.header-logo span {
    opacity: 0.8;
}

.site-nav {
    display: none;
    gap: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    justify-content: flex-end;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .site-nav {
        display: flex;
    }
}

.nav-link {
    transition: opacity 0.2s;
}

.nav-link:hover {
    opacity: 1;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 2rem 0;
    z-index: 1;
}

@media (min-width: 640px) {
    .hero {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.pause-hero-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 10;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 2px solid rgba(230, 57, 70, 0.4);
    background: rgba(230, 57, 70, 0.1);
    border-radius: 50%;
    color: currentColor;
    font-size: 1.25rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.pause-hero-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.pause-hero-btn:active {
    transform: scale(0.95);
}

.pause-hero-btn:hover {
    background: rgba(230, 57, 70, 0.2);
    color: var(--text-1);
}

.hero-content {
    position: relative;
    max-width: 64rem;
}

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

.section-tag {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-title {
    font-size: 3.75rem;
    line-height: 1;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-wrap: balance;
    letter-spacing: -0.03em;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 6rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 8rem;
    }
}

.hero-desc {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 42rem;
    line-height: 1.625;
    margin-bottom: 2rem;
    font-weight: 300;
}

@media (min-width: 768px) {
    .hero-desc {
        font-size: 1.5rem;
        line-height: 1.5;
    }
}

.hero-authors {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .hero-authors {
        gap: 2rem;
    }
}

.author-link.group {
    display: block;
}

.author-name {
    font-size: 1rem;
    font-weight: 500;
    color: #111827;
    transition: color 0.2s;
}

.author-link.group:hover .author-name {
    color: var(--accent);
}

.author-org {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    font-family: 'JetBrains Mono', monospace;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: black;
    color: white;
    padding: 1rem 2rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: scale(1.02);
}

.btn-link {
    color: #6b7280;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: color 0.3s;
}

.btn-link:hover {
    color: black;
}

/* Gaze Cursor */
#gaze-cursor {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(230, 57, 70, 0.4);
    background: rgba(230, 57, 70, 0.1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(2px);
}

@keyframes rotate {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Grid Background */
.bg-grid {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

/* Subtitle Reader Helpers */
.simulated-subtitle {
    position: absolute;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.25rem 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    max-width: 80%;
}

.simulated-word {
    height: 0.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 9999px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.opacity-0 {
    opacity: 0;
}

/* Share Popover */
.share-wrapper {
    position: relative;
    display: inline-block;
}

.share-popover {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: var(--canvas);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    display: flex;
    gap: 0.75rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

/* Paper Figure Theme */
.paper-figure {
    background-color: white;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    padding: 1.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    margin-top: 2rem;
}

.paper-figure-header {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px dashed #d1d5db;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
}

.paper-figure-caption {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #4b5563;
    margin-top: 1.5rem;
    border-top: 1px dashed #d1d5db;
    padding-top: 1rem;
    line-height: 1.6;
}

.mt-6 {
    margin-top: 1.5rem;
}

.share-popover.up {
    top: auto;
    bottom: calc(100% + 0.5rem);
    transform: translateX(-50%) translateY(10px);
}

.share-popover.up::before {
    top: auto;
    bottom: -6px;
    border-top: none;
    border-left: none;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #e5e7eb;
}

.share-popover.up.active {
    transform: translateX(-50%) translateY(0);
}


/* Teaser Image */
.teaser-section {
    padding: 0 1rem 8rem;
}

@media (min-width: 768px) {
    .teaser-section {
        padding: 0 3rem 8rem;
    }
}

.teaser-container {
    width: 100%;
    border-radius: 2rem;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    }

.teaser-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 70vh;
}

.teaser-text-wrap {
    max-width: 60rem;
    margin: 3rem auto 0;
    text-align: center;
}

.teaser-text {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.625;
    text-wrap: balance;
}

@media (min-width: 768px) {
    .teaser-text {
        font-size: 1.25rem;
    }
}

/* Video Presentation */
.video-presentation-section {
    max-width: 1000px;
    margin: 0 auto 4rem auto;
    padding: 0 2rem;
}

.video-presentation-details {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-presentation-summary {
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    user-select: none;
    list-style: none;
}

.video-presentation-summary i {
    transition: transform 0.4s ease;
}

.video-presentation-details.open .video-presentation-summary i {
    color: #E63946;
}

.video-presentation-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease-out;
    opacity: 0;
}

.video-presentation-wrapper-inner {
    overflow: hidden;
}

.video-presentation-details.open .video-presentation-wrapper {
    grid-template-rows: 1fr;
    opacity: 1;
}

.video-presentation-container {
    margin-top: 1.5rem;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
}

.video-presentation-icon {
    font-size: 4rem;
    color: #4a90e2;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.video-presentation-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Video Styling */
.video-wrapper {
    background-color: #EAEAEA;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    border-radius: 8px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
    position: relative;
}

.video-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 2;
    cursor: pointer;
    transition: height 0.2s ease;
    backdrop-filter: blur(2px);
}

.video-wrapper:hover .video-progress-container {
    height: 8px;
}

.video-wrapper::before {
    content: "<Video Error> Signal Lost \\ Awaiting Gaze";
    white-space: pre-wrap;
    text-align: center;
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    color: #A0A0A0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
    letter-spacing: -0.02em;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0,0,0,0.02) 10px, rgba(0,0,0,0.02) 20px);
}

.video-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0%;
    background-color: var(--accent, var(--accent));
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    will-change: width;
}

.unmute-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: rgba(17, 24, 39, 0.9);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.unmute-btn:hover {
    background-color: rgba(0, 0, 0, 1);
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.2);
}

.unmute-btn.is-unmuted {
    background-color: #f3f4f6;
    color: #111827;
    border-color: transparent;
}

/* Interventions */
.interventions {
    position: relative;
    background-color: black;
    color: white;
    border-radius: 3rem 3rem 0 0;
    padding: 8rem 2rem;
}

@media (min-width: 640px) {
    .interventions {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (min-width: 768px) {
    .interventions {
        padding-top: 12rem;
        padding-bottom: 12rem;
    }
}

.interventions-list {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

@media (min-width: 768px) {
    .interventions-list {
        gap: 12rem;
    }
}

.intervention-row {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .intervention-row {
        flex-direction: row;
        gap: 6rem;
    }

    .col-half {
        width: 50%;
    }

    .order-video {
        order: 1;
    }

    .order-text {
        order: 2;
    }

    .order-text2 {
        order: 1;
    }

    .order-video2 {
        order: 2;
    }
}

.order-video,
.order-video2 {
    order: 2;
    width: 100%;
}

.order-text,
.order-text2 {
    order: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.intervention-number {
    font-family: 'JetBrains Mono', monospace;
    color: #6b7280;
    font-size: 0.875rem;
}

.intervention-title {
    font-size: 2.25rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .intervention-title {
        font-size: 3rem;
    }
}

.intervention-desc {
    color: #9ca3af;
    font-size: 1.125rem;
    line-height: 1.625;
}

/* Findings */
.findings {
    padding: 8rem 2rem;
    background-color: var(--surface);
    position: relative;
    border-radius: 3rem 3rem 0 0;
    margin-top: -2rem;
}

@media (min-width: 640px) {
    .findings {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (min-width: 768px) {
    .findings {
        padding-top: 12rem;
        padding-bottom: 12rem;
    }
}

.findings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .findings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6rem;
    }

    .finding-card.mt-lg {
        margin-top: 8rem;
    }
}

.finding-card {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.finding-title {
    font-size: 1.875rem;
    font-weight: 500;
}

.finding-desc {
    color: #6b7280;
    font-size: 1.125rem;
    line-height: 1.625;
}

.finding-img {
    width: 100%;
}

/* Discussion */
.discussion {
    padding: 8rem 2rem;
    background-color: white;
    position: relative;
}

@media (min-width: 640px) {
    .discussion {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (min-width: 768px) {
    .discussion {
        padding-top: 12rem;
        padding-bottom: 12rem;
    }
}

.discussion-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 4rem;
}

@media (min-width: 768px) {
    .discussion-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
}

.discussion-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.discussion-title {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.discussion-text {
    color: #6b7280;
    line-height: 1.625;
}

/* Team */
.team {
    padding: 8rem 2rem;
    background-color: white;
    position: relative;
    border-top: 1px solid #f3f4f6;
}

@media (min-width: 640px) {
    .team {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 640px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.team-member {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.team-avatar {
    width: 8rem;
    height: 8rem;
    border-radius: 9999px;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    overflow: hidden;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.team-avatar.relative {
    position: relative;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    position: relative;
}

.avatar-initials {
    position: absolute;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 500;
    color: #111827;
    margin: 0;
}

.team-org {
    color: #6b7280;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.team-link {
    color: var(--accent);
    font-size: 1.5rem;
    margin-top: 0.5rem;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.team-link:hover {
    color: #111827;
    transform: translateY(-2px);
}

/* Citation */
.citation {
    padding: 6rem 2rem;
    background-color: var(--canvas);
    border-top: 1px solid #e5e7eb;
    position: relative;
}

@media (min-width: 640px) {
    .citation {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

.citation-container {
    max-width: 56rem;
    margin: 0 auto;
}

.citation-title {
    font-size: 1.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    margin-top: 0;
}

.citation-box {
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    position: relative;
}

.copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.copy-tag {
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    /* pill shape */
    padding: 0.375rem 1rem;
    background-color: white;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.copy-tag:hover {
    background-color: #111827;
    border-color: #111827;
    color: white;
    transform: translateY(-1px);
}

.copy-tag:active {
    transform: translateY(0);
}

.bibtex-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
    color: #374151;
    overflow-x: auto;
    white-space: pre-wrap;
    margin: 0;
    padding-right: 5rem;
    /* space to prevent overlap with copy button */
}

/* Little triangle pointing up */
.share-popover::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--canvas);
    border-top: 1px solid #e5e7eb;
    border-left: 1px solid #e5e7eb;
}

.share-popover.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background-color: #f3f4f6;
    color: #4b5563;
    font-size: 1.125rem;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.social-circle:hover.facebook {
    background-color: #1877F2;
    color: white;
    transform: scale(1.1);
}

.social-circle:hover.x {
    background-color: #000000;
    color: white;
    transform: scale(1.1);
}

.social-circle:hover.reddit {
    background-color: #FF4500;
    color: white;
    transform: scale(1.1);
}

.social-circle:hover.linkedin {
    background-color: #0A66C2;
    color: white;
    transform: scale(1.1);
}

.social-circle:hover.tumblr {
    background-color: #36465D;
    color: white;
    transform: scale(1.1);
}

/* Footer */
.footer-main {
    background-color: #030712;
    color: #f9fafb;
    padding: 6rem 2rem;
    border-top: 1px solid #1f2937;
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.footer-top-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-brand {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.footer-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
    line-height: 1.1;
    max-width: 26ch;
    color: #f9fafb;
}

.footer-divider {
    height: 1px;
    background-color: #1f2937;
    width: 100%;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-end;
}

.footer-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #9ca3af;
}

.margin-0 {
    margin: 0;
}

.footer-link-light {
    color: #f9fafb;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links {
    display: flex;
    gap: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

.footer-link-gray {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-link-gray:hover {
    color: #f9fafb;
}

.footer-btn-gray {
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0;
}

.footer-btn-gray:hover {
    color: #f9fafb;
}