:root {
    --bg-dark: #070709;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    --accent-glow: #8b5cf6;
    --accent-teal: #2dd4bf;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.gradient-text {
    color: #c9a84c;
}

/* Nav */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 7, 9, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: 1px;
}

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

.nav-links {
    display: flex;
    align-items: center;
}

.navbar .nav-links ul,
.navbar .nav-menu,
.navbar .menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar .nav-links li,
.navbar .nav-menu li,
.navbar .menu li {
    margin: 0;
    position: relative;
    list-style: none;
}

.navbar .nav-links a,
.navbar .nav-menu a,
.navbar .menu a {
    color: var(--text-muted);
    text-decoration: none !important;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.7rem 0;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    position: relative;
}

.navbar .nav-links a:hover,
.navbar .nav-links .current-menu-item > a,
.navbar .nav-links .current_page_item > a,
.navbar .nav-links .current-menu-ancestor > a,
.navbar .nav-links a.active,
.navbar .menu a:hover,
.navbar .menu .current-menu-item > a,
.navbar .menu .current_page_item > a,
.navbar .menu .current-menu-ancestor > a {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255,255,255,0.18);
}

.navbar .nav-links a::after,
.navbar .menu a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.15rem;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #2dd4bf 25%, #2dd4bf 75%, transparent 100%);
    transform: scaleX(0.2);
    transform-origin: center;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar .nav-links li:hover > a::after,
.navbar .nav-links .current-menu-item > a::after,
.navbar .nav-links .current_page_item > a::after,
.navbar .nav-links .current-menu-ancestor > a::after,
.navbar .menu li:hover > a::after,
.navbar .menu .current-menu-item > a::after,
.navbar .menu .current_page_item > a::after,
.navbar .menu .current-menu-ancestor > a::after {
    transform: scaleX(1);
    opacity: 1;
}

.navbar .nav-links li:hover > a,
.navbar .menu li:hover > a {
    color: #f2e2a9;
    transform: translateY(-1px);
}

.nav-menu-fallback .page_item_has_children > a::before,
.nav-menu .menu-item-has-children > a::before {
    content: '';
}

/* Inner Page Header */
.page-header {
    padding: 9rem 2rem 3rem;
    text-align: center;
    position: relative;
}

.page-header .hero-title {
    margin-bottom: 1rem;
}

.page-header .hero-subtitle {
    max-width: 620px;
    margin: 0 auto;
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 12rem 2rem 4rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background: url('../images/hero_bg_1774986411390.png') no-repeat center center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(7, 7, 9, 0.55) 0%, rgba(7, 7, 9, 0.88) 60%, var(--bg-dark) 100%);
    z-index: 0;
}

@media (max-width: 768px) {
    .hero::before {
        background: linear-gradient(180deg, rgba(7, 7, 9, 0.72) 0%, rgba(7, 7, 9, 0.92) 55%, var(--bg-dark) 100%);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 0;
    color: #c9a84c;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: #c9a84c;
    color: #0a0a0a;
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

.btn-primary:hover {
    background: #dbbe6a;
    box-shadow: 0 6px 25px rgba(201, 168, 76, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-main);
    border: 2px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Background Glows */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
}

.orb-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: var(--accent-glow);
}

.orb-2 {
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent-teal);
    opacity: 0.3;
}

/* Sections */
.section {
    padding: 3rem 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

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

/* Grid & Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 4px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 40px rgba(201, 168, 76, 0.18);
    border-color: rgba(201, 168, 76, 0.35);
}

.card-image {
    height: 240px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

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

.placeholder-glow {
    color: rgba(255,255,255,0.2);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.link-arrow {
    color: #c9a84c;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.link-arrow:hover {
    color: #dbbe6a;
}

/* Stat Bar */
.stat-bar {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.stat-bar p {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #c9a84c;
    text-transform: uppercase;
}

/* Page Headers (for subpages) */
.page-header {
    padding: 10rem 2rem 4rem;
    text-align: center;
    position: relative;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
    background: rgba(0,0,0,0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand h2 .accent {
    color: var(--accent-teal);
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links-col {
    display: flex;
    gap: 2rem;
}

.footer-links-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links-col a:hover {
    color: var(--text-main);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Subpage styles */
.log-card {
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--accent-teal);
    padding-left: 1.5rem;
    border-radius: 0 4px 4px 0;
}

.log-card:last-child {
    margin-bottom: 0;
}

.log-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--accent-teal);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    text-transform: uppercase;
    flex-wrap: wrap;
}

.log-meta span {
    background: rgba(45, 212, 191, 0.1);
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
}

.resource-card {
    text-align: center;
}

.resource-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-glow);
}

.avatar {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    margin: 0 auto 2.5rem;
    border: 3px solid rgba(201, 168, 76, 0.35);
    box-shadow: 0 0 50px rgba(201, 168, 76, 0.2), 0 20px 50px rgba(0,0,0,0.5);
    object-fit: cover;
    object-position: center top;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-size: 1.1rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.85;
}

.about-content .btn {
    display: inline-flex;
    margin-top: 0.5rem;
}

.instruments-section {
    padding-top: 0;
}

.instrument-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 2.1rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(201, 168, 76, 0.1);
    border-radius: 16px;
    justify-content: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
        rgba(8, 10, 14, 0.55);
}

.instrument-section-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: 999px;
    color: rgba(226, 232, 240, 0.88);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.instrument-section-nav-link:hover {
    border-color: rgba(201, 168, 76, 0.32);
    color: #fff1bf;
    background: rgba(255, 255, 255, 0.03);
}

.instrument-group {
    scroll-margin-top: 6.5rem;
}

.instrument-group + .instrument-group {
    margin-top: 3.25rem;
}

.instrument-group-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.45rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(201, 168, 76, 0.14);
}

.instrument-group-header h2 {
    font-size: clamp(1.42rem, 1.9vw, 1.95rem);
    line-height: 1.02;
}

.instrument-group-count {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.instrument-group-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.instrument-group-top-link {
    color: #f0d58c;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
}

.instrument-group-top-link:hover {
    color: #fff1bf;
}

.instruments-intro {
    max-width: 780px;
    margin: 0 auto 3.5rem;
    padding: 1.75rem 2rem;
    border: 1px solid rgba(201, 168, 76, 0.14);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
        rgba(8, 10, 14, 0.72);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    color: var(--text-muted);
    font-size: 1.05rem;
}

.instruments-intro p + p {
    margin-top: 1rem;
}

.instruments-header {
    overflow: hidden;
    padding-bottom: 3rem;
}

.instruments-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top center, rgba(201, 168, 76, 0.2), transparent 38%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(7, 7, 9, 0));
    pointer-events: none;
}

.instruments-header > * {
    position: relative;
    z-index: 1;
}

.instruments-header .hero-title {
    margin-bottom: 1rem;
}

.instruments-header .hero-subtitle {
    margin: 0 auto 1.5rem;
}

.instruments-header-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.1rem;
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 999px;
    background: rgba(10, 12, 17, 0.72);
    color: #e7d19b;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.instruments-header-meta::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4d27b, #c9a84c);
    box-shadow: 0 0 12px rgba(201, 168, 76, 0.45);
}

.instrument-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 260px));
    gap: 1.25rem;
    justify-content: start;
    align-items: start;
}

.instrument-card {
    min-height: 100%;
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
        linear-gradient(180deg, rgba(9, 11, 16, 0.95), rgba(9, 11, 16, 0.78));
    border-radius: 26px;
    border: 1px solid rgba(201, 168, 76, 0.16);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
}

.instrument-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(201, 168, 76, 0), rgba(201, 168, 76, 0.24));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.instrument-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 64px rgba(0, 0, 0, 0.4), 0 16px 30px rgba(201, 168, 76, 0.1);
    border-color: rgba(201, 168, 76, 0.3);
}

.instrument-card-image {
    height: 320px;
    background:
        linear-gradient(180deg, rgba(201, 168, 76, 0.18), rgba(7, 7, 9, 0.16) 45%, rgba(7, 7, 9, 0.88)),
        linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.01));
}

.instrument-card-image img {
    width: var(--instrument-card-width, 100%);
    max-width: none;
    height: 100%;
    position: absolute;
    inset: 0 auto 0 var(--instrument-card-offset-x, 0);
    object-fit: cover;
    object-position: center var(--instrument-card-object-position-y, 6%);
    transform-origin: center center;
}

.instrument-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(7, 7, 9, 0) 52%, rgba(7, 7, 9, 0.18) 78%, rgba(7, 7, 9, 0.34) 100%),
        linear-gradient(180deg, rgba(7, 7, 9, 0) 48%, rgba(7, 7, 9, 0.88) 100%);
    pointer-events: none;
}

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

.instrument-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.45);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 80% 60% at 50% 45%, rgba(201, 168, 76, 0.13), transparent 70%),
        linear-gradient(160deg, rgba(201, 168, 76, 0.08) 0%, rgba(7, 7, 9, 0.3) 100%);
}

.instrument-placeholder span {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 168, 76, 0.32);
    border-radius: 50%;
    color: #e9d49a;
    font-size: 2rem;
    background: rgba(9, 11, 16, 0.4);
    box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.03);
}

.instrument-flag {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    background: rgba(12, 14, 19, 0.8);
    color: #f0d58c;
    padding: 0.5rem 0.9rem;
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.instrument-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.15rem 1.1rem 1.05rem;
}

.instrument-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.instrument-card-top > div {
    flex: 1;
    min-width: 0;
}

.instrument-kicker {
    margin-bottom: 0.22rem;
    color: #c9a84c;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.instrument-card-top h2 {
    font-size: clamp(1.1rem, 1.3vw, 1.38rem);
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.instrument-year {
    border: 1px solid rgba(201, 168, 76, 0.26);
    border-radius: 999px;
    padding: 0.3rem 0.52rem;
    color: #f0d58c;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.03);
}

.instruments-empty-state {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    border-radius: 24px;
}

.instrument-link {
    margin-top: auto;
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: transparent;
    color: #f0d58c;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
}

.instrument-link::after {
    content: '>';
    opacity: 0.8;
}

.instrument-link:hover {
    color: #fff1bf;
}

.single-instrument {
    padding-top: 7rem;
    position: relative;
    overflow-x: clip;
    isolation: isolate;
}

.single-instrument::before {
    content: '';
    position: absolute;
    inset: -3rem -4rem auto;
    height: 42rem;
    background:
        radial-gradient(78rem 34rem at 12% 30%, rgba(201, 168, 76, 0.11), transparent 64%),
        radial-gradient(74rem 32rem at 88% 26%, rgba(45, 212, 191, 0.08), transparent 62%),
        radial-gradient(44rem 18rem at 50% 20%, rgba(255, 255, 255, 0.012), transparent 72%),
        linear-gradient(180deg, rgba(7, 7, 9, 0.16) 0%, rgba(7, 7, 9, 0.1) 20%, rgba(7, 7, 9, 0) 100%);
    opacity: 0.78;
    filter: blur(24px);
    pointer-events: none;
    z-index: 0;
}

.single-instrument::after {
    content: none;
}

.single-instrument-hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 1.8rem;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1.08fr);
    gap: 1.6rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.single-instrument-hero-no-image {
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
}

.single-instrument-hero-media,
.single-instrument-hero-content {
    min-height: 100%;
}

.single-instrument-hero-media {
    position: relative;
    overflow: hidden;
    max-width: 640px;
    width: 100%;
    justify-self: end;
    padding: 0.9rem;
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(201, 168, 76, 0.12), rgba(7, 7, 9, 0.32) 52%, rgba(7, 7, 9, 0.92)),
        rgba(255, 255, 255, 0.03);
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.single-instrument-hero-media::before {
    content: '';
    position: absolute;
    inset: 0.9rem 0.9rem auto;
    height: 30%;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(180deg, rgba(7, 7, 9, 0.42), rgba(7, 7, 9, 0.12) 65%, rgba(7, 7, 9, 0));
    pointer-events: none;
    z-index: 1;
}

.single-instrument-hero-media::after {
    content: '';
    position: absolute;
    inset: auto 0.9rem 0.9rem;
    height: 42%;
    border-radius: 0 0 22px 22px;
    background: linear-gradient(180deg, rgba(7, 7, 9, 0), rgba(7, 7, 9, 0.86));
    pointer-events: none;
    z-index: 1;
}

.single-instrument-hero-media img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    border-radius: 22px;
    object-fit: contain;
    object-position: center top;
    filter: brightness(0.89) saturate(0.92);
    display: block;
}

.single-instrument-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    min-height: 440px;
    color: rgba(255, 255, 255, 0.62);
    font-family: var(--font-heading);
    background:
        radial-gradient(circle at 50% 30%, rgba(201, 168, 76, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
}

.single-instrument-hero-no-image .single-instrument-placeholder {
    min-height: 360px;
}

.single-instrument-placeholder span {
    width: 112px;
    height: 112px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(201, 168, 76, 0.24);
    border-radius: 50%;
    color: #f0d58c;
    font-size: 3rem;
    line-height: 1;
}

.single-instrument-placeholder p {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.single-instrument-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 2.9rem;
    border: 1px solid transparent;
    border-radius: 30px;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
}

.single-instrument-hero .hero-title {
    margin-bottom: 1rem;
    font-size: clamp(2.55rem, 4.1vw, 3.95rem);
    line-height: 1.02;
}

.single-instrument-hero .hero-subtitle {
    margin-bottom: 2.1rem;
    max-width: 31rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.single-instrument-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0;
    padding-bottom: 1.8rem;
}

.single-instrument-badges span {
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(201, 168, 76, 0.18);
    border-radius: 999px;
    color: #f3e3b3;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.single-instrument-description {
    position: relative;
    margin-top: 0.2rem;
    padding-top: 1.6rem;
    max-width: 33rem;
    color: rgba(226, 232, 240, 0.82);
    font-size: 1.04rem;
    line-height: 1.9;
}

.single-instrument-description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: min(100%, 27rem);
    height: 1px;
    background: linear-gradient(90deg, rgba(201, 168, 76, 0.48), rgba(255, 255, 255, 0.12) 55%, rgba(255, 255, 255, 0));
}

.single-instrument-description p + p {
    margin-top: 1rem;
}

.single-instrument-actions {
    margin-top: 2.4rem;
}

.single-instrument-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    gap: 4rem 3rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.single-instrument-main,
.single-instrument-sidebar {
    display: contents;
}

.single-instrument-story-notes {
    order: 1;
    grid-column: 1 / -1;
}

.single-instrument-panel-construction {
    order: 3;
}

.single-instrument-panel-overview {
    order: 2;
}

.single-instrument-panel-electronics {
    order: 4;
}

.single-instrument-panel-ownership {
    order: 5;
}

.single-instrument-panel-details {
    order: 6;
    grid-column: 1 / -1;
}

.single-instrument-panel h2,
.single-instrument-story h2 {
    position: relative;
    margin-bottom: 1.7rem;
    padding-bottom: 0.8rem;
    font-size: 1.6rem;
}

.single-instrument-panel h2::after,
.single-instrument-story h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(100%, 4.75rem);
    height: 1px;
    background: linear-gradient(90deg, rgba(201, 168, 76, 0.65), rgba(255, 255, 255, 0));
}

.single-instrument-specs {
    display: grid;
    gap: 1rem;
}

.single-instrument-specs-full {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 1.6rem;
}

.single-instrument-panel,
.single-instrument-story {
    padding-top: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.single-instrument-panel .card-content,
.single-instrument-story .card-content {
    padding: 0;
}

.single-instrument-layout .card:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.single-instrument-overview {
    display: grid;
    gap: 1rem;
}

.single-instrument-overview-item {
    grid-template-columns: minmax(132px, 0.72fr) minmax(0, 1.28fr);
    gap: 1.35rem;
}

.single-instrument-overview-item dt {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.single-instrument-overview-item dd {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

.single-instrument-spec-row {
    display: grid;
    grid-template-columns: minmax(132px, 0.72fr) minmax(0, 1.28fr);
    gap: 1.35rem;
    padding-top: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.single-instrument-main .single-instrument-spec-row {
    grid-template-columns: minmax(132px, 0.72fr) minmax(0, 1.28fr);
    gap: 1.35rem;
}

.single-instrument-sidebar .single-instrument-spec-row {
    grid-template-columns: minmax(132px, 0.72fr) minmax(0, 1.28fr);
    gap: 1.35rem;
}

.single-instrument-spec-row:first-child {
    padding-top: 0;
    border-top: 0;
}

.single-instrument-spec-row dt {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.single-instrument-spec-row dd {
    color: var(--text-main);
    line-height: 1.55;
}

.single-instrument-content {
    color: var(--text-muted);
    line-height: 1.78;
}

.single-instrument-content p + p {
    margin-top: 1rem;
}

/* Hamburger button */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 40px;
    height: 40px;
}

.nav-hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Homepage featured grid helpers */
.homepage-instrument-grid {
    /* Exactly 4 columns at ≥ 1200px; wraps gracefully to 2 and 1 on smaller viewports */
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .homepage-instrument-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

@media (max-width: 640px) {
    .instrument-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.homepage-collection-cta {
    text-align: center;
    margin-top: 3rem;
}

.homepage-empty-collection {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

/* Stat bar */
.stat-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 2rem 4rem;
    text-align: center;
}

.stat-bar p {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(201, 168, 76, 0.22);
    border-radius: 0;
    background: linear-gradient(90deg, rgba(201, 168, 76, 0.04), rgba(201, 168, 76, 0.07), rgba(201, 168, 76, 0.04));
    color: #c9a84c;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(7, 7, 9, 0.97);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border-glass);
        padding: 1rem 1.5rem 1.5rem;
        z-index: 99;
        flex-direction: column;
    }
    .nav-links.nav-open {
        display: flex;
    }
    .nav-links .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    .nav-links .nav-menu li {
        border-bottom: 1px solid var(--border-glass);
    }
    .nav-links .nav-menu li:last-child {
        border-bottom: none;
    }
    .nav-links .nav-menu a {
        display: block;
        padding: 0.9rem 0;
        font-size: 1rem;
        width: 100%;
    }
    .nav-hamburger {
        display: flex;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .instrument-card-top {
        flex-direction: column;
    }
    .instrument-section-nav {
        padding: 0.8rem;
    }
    .instrument-group-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .instrument-group-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.45rem;
    }
    .single-instrument-overview {
        gap: 1rem;
    }
    .single-instrument-specs-full {
        grid-template-columns: 1fr;
    }
    .single-instrument-hero,
    .single-instrument-layout {
        grid-template-columns: 1fr;
    }
    .single-instrument {
        padding-top: 6rem;
    }
    .single-instrument-hero {
        padding: 1.5rem;
    }
    .single-instrument-hero-no-image {
        grid-template-columns: 1fr;
    }
    .single-instrument-hero-content {
        padding: 2rem;
    }
    .single-instrument-hero-media img,
    .single-instrument-placeholder {
        min-height: 360px;
    }
    .single-instrument-spec-row {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }
}
