:root {
    --bg-dark: #1f1f1f;
    --bg-light: #ffffff;
    --bg-off: #fafafa;
    --accent: #d8743a;
    --bitcoin: #f7931a;
    --bg-dark-orange: #241005;
    --text-dark: #222222;
    --text-muted: #54595f;
    --text-on-dark: #ffffff;
    --border: #ececec;
    --font-heading: "Gentium Book Plus", Georgia, serif;
    --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --header-h: 4.5rem;
    --parallax-pos: center;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation: none !important; transition: none !important; }
}

/* Scroll reveal (see assets/animate.js) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--bg-dark-orange);
    line-height: 1.65;
    overflow-x: hidden;
    max-width: 100%;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

a { color: inherit; }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.75rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    background: #c1622c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(216, 116, 58, 0.35);
}

.btn:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-on-dark);
    color: var(--text-on-dark);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    box-shadow: none;
}

/* Header */
.site-header {
    background: transparent;
    color: var(--text-on-dark);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-on-dark);
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 2px 10px rgba(0, 0, 0, 0.6);
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-on-dark);
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    padding-bottom: 0.2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 2px 10px rgba(0, 0, 0, 0.6);
    transition: color 0.2s ease;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active { color: var(--accent); }

.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }

@media (max-width: 600px) {
    .site-header .container {
        flex-wrap: nowrap;
        gap: 0.6rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-left: 0.75rem;
    }
    .logo {
        flex-shrink: 0;
        font-size: 1rem;
    }
    .main-nav {
        flex-shrink: 0;
    }
    .main-nav ul {
        flex-wrap: nowrap;
        gap: 0.85rem;
    }
    .main-nav a {
        letter-spacing: 0;
        white-space: nowrap;
    }
}

/* Hero */
.hero {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    background-size: cover;
    background-position: var(--parallax-pos, center);
    position: relative;
    overflow: hidden;
}

.hero:not(.hero-compact) {
    min-height: 100vh;
    margin-top: calc(-1 * var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: var(--parallax-pos, center);
    filter: brightness(1.2);
    transform-origin: 50% 100%;
    animation: hero-zoom 16s ease-in-out infinite alternate;
    z-index: 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.42);
    z-index: 1;
}

.hero-gradient-orange::before {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.42) 0%, rgba(216, 116, 58, 0.4) 100%);
}

.hero .container { z-index: 2; }

@keyframes hero-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.hero .container {
    position: relative;
    padding: 5.5rem 1.5rem;
    text-align: center;
    max-width: 780px;
}

.hero.hero-compact .container { padding: 3.75rem 1.5rem; }

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    color: var(--bitcoin);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.hero p.lead {
    font-size: 1.1rem;
    color: #e8e8e8;
    margin-bottom: 1.75rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Sections */
.section {
    padding: 4.5rem 0;
    background: var(--bg-light);
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.section-off { background: var(--bg-off); }

.section-photo {
    position: relative;
    background-size: cover;
    background-position: var(--parallax-pos, center);
    color: var(--text-on-dark);
    overflow: hidden;
}

.section-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, 0.68);
}

.section-photo .container {
    position: relative;
    z-index: 1;
}

.section-photo p { color: #e8e8e8; }

.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.section-title h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.section-title p { color: var(--text-muted); }

.section-dark .section-title p { color: #c9c9c9; }

/* Image + text split */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 760px) {
    .split { grid-template-columns: 1fr; }
}

.split img {
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.split img:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

/* Auto-cycling image slideshow (crossfade, pure CSS) */
.slideshow {
    position: relative;
    min-height: 360px;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--accent);
    box-shadow: 0 24px 60px rgba(216, 116, 58, 0.35);
}

img.framed-orange {
    width: 100%;
    border: 1px solid var(--accent);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(216, 116, 58, 0.35);
}

/* Applied dynamically by animate.js only — safe default (fully visible) if JS never runs */
.reveal-right {
    opacity: 0;
    transform: translateX(70px);
    transition: opacity 2.5s ease, transform 2.5s ease;
}

.reveal-right.in-view {
    opacity: 1;
    transform: translateX(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-70px);
    transition: opacity 2.5s ease, transform 2.5s ease;
}

.reveal-left.in-view {
    opacity: 1;
    transform: translateX(0);
}

/* Language toast — slides in from the right, stays ~5s, then leaves */
.lang-toast {
    position: fixed;
    top: calc(var(--header-h) + 0.75rem);
    right: 1.25rem;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--bg-dark);
    border: 1px solid var(--accent);
    border-radius: 50px;
    padding: 0.65rem 1.2rem;
    box-shadow: 0 12px 30px rgba(216, 116, 58, 0.4);
    text-decoration: none;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    animation: lang-toast 6.5s ease-in-out forwards;
}

.lang-toast:hover {
    opacity: 1 !important;
    box-shadow: 0 16px 36px rgba(216, 116, 58, 0.55);
}

@keyframes lang-toast {
    0% { transform: translateX(120%); opacity: 0; }
    8% { transform: translateX(0); opacity: 0.55; }
    85% { transform: translateX(0); opacity: 0.55; }
    100% { transform: translateX(120%); opacity: 0; }
}

.slideshow-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: var(--parallax-pos, center);
    opacity: 0;
    animation: slideshow-fade 15s ease-in-out infinite;
}

.slideshow-slide:nth-child(1) { animation-delay: 0s; }
.slideshow-slide:nth-child(2) { animation-delay: 5s; }
.slideshow-slide:nth-child(3) { animation-delay: 10s; }

@keyframes slideshow-fade {
    0% { opacity: 0; }
    4% { opacity: 1; }
    28% { opacity: 1; }
    36% { opacity: 0; }
    100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .slideshow-slide { animation: none; opacity: 0; }
    .slideshow-slide:first-child { opacity: 1; }
}

/* Cards / grid */
.grid {
    display: grid;
    gap: 1.75rem;
    grid-template-columns: repeat(3, 1fr);
}

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

@media (max-width: 600px) {
    .grid { grid-template-columns: 1fr; }
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.75rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

.section-dark .card {
    background: #2a2a2a;
    border-color: #3a3a3a;
}

.section-dark .card:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.card h3 {
    font-size: 1.05rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.card p { color: var(--text-muted); margin: 0; font-size: 0.95rem; }

.section-dark .card p { color: #bdbdbd; }

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

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

/* Photo cards (background-image links, e.g. the three "Bitcoin for ..." cards) */
.photo-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 460px;
    border-radius: 40px;
    overflow: hidden;
    background-color: var(--bg-dark);
    text-decoration: none;
    color: #fff;
    border: none;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Photo layer — tinted orange, separate from the text so the copy stays crisp */
.photo-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: var(--bg-image);
    background-size: cover;
    background-position: var(--parallax-pos, center);
    filter: sepia(0.65) saturate(2.6) hue-rotate(-12deg) brightness(0.92);
    transform: scale(1.02);
    transition: filter 0.4s ease, transform 0.4s ease;
}

/* Orange diagonal gradient — matches btchick.se's card overlay */
.photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(216,116,58,0.8) 100%);
    transition: background 0.4s ease;
}

.photo-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.55);
}

.photo-card:hover::before {
    filter: sepia(0.8) saturate(3.2) hue-rotate(-12deg) brightness(1);
    transform: scale(1.06);
}

.photo-card:hover::after {
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(216,116,58,0.5) 100%);
}

.photo-card-top {
    position: relative;
    z-index: 2;
    padding: 2.25rem 2.25rem 0;
}

.photo-card-body {
    position: relative;
    z-index: 2;
    margin-top: 50px;
    padding: 0 2.25rem 2.25rem;
}

.photo-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin: 0;
}

.photo-card-body p {
    color: #f1e4da;
    font-size: 0.92rem;
    margin: 0 0 1rem;
}

.photo-card-body .icon-list li {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Icon list */
.icon-list { list-style: none; margin: 0; padding: 0; }

.icon-list li {
    padding-left: 1.75rem;
    position: relative;
    margin-bottom: 0.85rem;
}

.suisse-note {
    margin-top: 2.5rem;
}

.suisse-note a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: #cfcfcf;
    transition: color 0.2s ease;
}

.suisse-note a:hover { color: var(--accent); }

.suisse-note img {
    height: 22px;
    width: auto;
    flex-shrink: 0;
}

.suisse-note em {
    font-style: italic;
    font-size: 0.9rem;
}

.icon-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--bitcoin);
    font-weight: 700;
}

/* Stats / counters */
.stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
    margin: 2rem 0;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    color: var(--bitcoin);
    line-height: 1;
}

.stat-title {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.section-dark .stat-title { color: #c9c9c9; }

/* Quote */
blockquote.quote {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.5;
    border: none;
    padding: 0;
}

blockquote.quote footer {
    margin-top: 1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bitcoin);
}

/* Compact section variant (used for the "featured in" press strip) */
.section-compact {
    padding: 2.5rem 0 1rem;
}

.section-compact .section-title {
    margin-bottom: 0.5rem;
}

/* Press logos — horizontally scrolling marquee, linked to /appearances/ */
.press-marquee {
    display: block;
    overflow: hidden;
    text-decoration: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.press-marquee-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    width: max-content;
    margin: 0 auto;
    animation: press-scroll 45s linear infinite;
}

.press-marquee:hover .press-marquee-track,
.press-marquee:focus-within .press-marquee-track {
    animation-play-state: paused;
}

.press-logo {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.press-logo img {
    height: 300px;
    width: auto;
    display: block;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.press-logo:hover img {
    opacity: 1;
}

.press-logo:hover {
    transform: scale(1.15);
    position: relative;
    z-index: 2;
}

@keyframes press-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .press-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
    .press-marquee-track { width: auto; }
    .press-marquee-track .press-logo-dup { display: none; }
}

/* FAQ */
.faq details {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    color: var(--accent);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.faq details[open] summary::after { content: "\2212"; }

.faq p { margin-top: 0.75rem; color: var(--text-muted); }

/* Media list (appearances page) */
.media-list h3 {
    font-size: 1.1rem;
    margin-top: 2.5rem;
    color: var(--accent);
}

.media-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
}

.media-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.media-list li .date {
    color: var(--text-muted);
    margin-right: 0.6rem;
}

.media-list li a {
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.media-list li a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.media-list li a::after {
    content: "\2197";
    display: inline-block;
    margin-left: 0.3rem;
    font-size: 0.85em;
    color: var(--accent);
}

/* Footer */
.site-footer {
    background: var(--bg-dark);
    color: #cfcfcf;
    padding: 4rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 760px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

.footer-grid h4 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.9rem;
}

.footer-grid a {
    color: #cfcfcf;
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-grid a:hover { color: var(--accent); }

.social-icons { display: flex; gap: 1rem; }

.social-icons a {
    width: 36px;
    height: 36px;
    border: 1px solid #444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

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

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #888;
}
