.navbar {
    position: relative;
    grid-template-columns: 1fr auto;
    gap: 0.8rem 1rem;
    padding: 0.8rem 1rem 1rem;
}

.logo-wordmark {
    font-size: 1.25rem;
}

.site-logo {
    width: 48px;
    height: 48px;
}

.navbar nav {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-wrap: wrap;
    gap: 0.75rem 1.15rem;
}

.navbar nav a {
    font-size: 1rem;
}

.lang-switcher {
    grid-column: 2;
    grid-row: 1;
}

.hero {
    min-height: 510px;
    padding: 4.5rem 1.25rem;
}

.hero-background-logo {
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0.75rem;
}

.hero h1 {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
}

.hero-content > p:not(.eyebrow),
.page-hero-content > p:not(.eyebrow) {
    font-size: 1.08rem;
}

.hero-actions {
    flex-direction: column;
    gap: 1rem;
}

.btn-primary {
    width: 100%;
    max-width: 320px;
}

.intro-strip {
    padding: 1.8rem 1rem 0.6rem;
}

.intro-strip::before,
.intro-strip::after {
    display: none;
}

.programs,
.content-section {
    width: min(100% - 2rem, 1200px);
    padding: 3.3rem 0;
}

.section-heading {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2.35rem;
}

.grid,
.principles-grid {
    grid-template-columns: 1fr;
}

.card {
    min-height: 440px;
    padding: 2rem 1.5rem;
}

.card h3 {
    min-height: 0;
}

.guild-callout {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    width: calc(100% - 2rem);
    margin-bottom: 4rem;
    padding: 2rem 1.5rem;
}

.callout-button {
    width: 100%;
    max-width: 320px;
}

.guild-callout h2 {
    font-size: 1.9rem;
}

.page-hero {
    grid-template-columns: 1fr;
    min-height: 420px;
    padding: 4rem 1.25rem;
}

.page-hero h1 {
    font-size: clamp(3rem, 14vw, 4.6rem);
}

.hero-mark {
    position: absolute;
    right: -62px;
    bottom: -62px;
    width: 190px;
    height: 190px;
    font-size: 7rem;
    opacity: 0.55;
}

.feature-panel {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2rem 1.4rem;
}

.feature-emblem {
    grid-row: 1;
    max-width: 210px;
}

.feature-copy h2 {
    font-size: 2.6rem;
}

.mini-card {
    min-height: auto;
}

.tool-row {
    grid-template-columns: 58px 1fr;
    gap: 1rem;
    min-height: 180px;
    padding: 1.5rem 0.5rem;
}

.tool-row:hover {
    padding-left: 0.5rem;
}

.tool-symbol {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
}

.tool-row h3 {
    font-size: 1.5rem;
}

.tool-meta {
    flex-wrap: wrap;
}

.tool-note {
    grid-template-columns: 1fr;
    width: calc(100% - 2rem);
    margin-bottom: 4rem;
    padding: 1.5rem;
}

.tutorials-section {
    width: calc(100% - 2rem);
    padding: 3rem 0 4rem;
}

.tutorials-layout {
    grid-template-columns: 1fr;
}

.lesson-panel {
    position: static;
}

.video-controls {
    position: relative;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    gap: 0.55rem;
    padding: 0.8rem;
    overflow: visible;
}

.volume-popover {
    position: absolute;
    z-index: 12;
    right: calc(0.8rem + 19px + 0.55rem);
    bottom: calc(100% - 0.15rem);
    display: flex;
    width: 62px;
    min-height: 172px;
    padding: 0.8rem 0.65rem 0.7rem;
    flex-direction: column;
    gap: 0.55rem;
    justify-content: center;
    border: 1px solid rgba(203, 160, 116, 0.38);
    border-radius: 5px;
    visibility: hidden;
    opacity: 0;
    background:
        linear-gradient(180deg, rgba(48, 27, 23, 0.98), rgba(12, 9, 9, 0.98)),
        var(--bg-panel);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5), 0 0 26px rgba(114, 24, 23, 0.16);
    pointer-events: none;
    transform: translateY(0.75rem) scale(0.94);
    transform-origin: right bottom;
    backdrop-filter: blur(12px);
    transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s cubic-bezier(0.2, 0.75, 0.25, 1);
}

.volume-popover::after {
    position: absolute;
    right: 18px;
    bottom: -6px;
    width: 10px;
    height: 10px;
    border-right: 1px solid rgba(203, 160, 116, 0.38);
    border-bottom: 1px solid rgba(203, 160, 116, 0.38);
    content: '';
    background: #120d0c;
    transform: rotate(45deg);
}

.volume-popover .volume-range {
    width: 22px;
    height: 112px;
    margin: 0;
    writing-mode: vertical-lr;
    direction: rtl;
}

.volume-popover .volume-value {
    display: block;
    min-width: 38px;
    text-align: center;
}

.video-controls.volume-flyout-open .volume-popover {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.video-time {
    min-width: 76px;
    font-size: 0.88rem;
}

.now-playing {
    padding: 1rem;
}

.video-empty {
    padding: 1.2rem;
}

.video-empty-mark,
.video-overlay-play {
    width: 64px;
    height: 64px;
}

.video-empty h2 {
    font-size: 1.45rem;
}

.video-empty p {
    font-size: 0.95rem;
}

.guild-footer {
    padding: 1.5rem 1rem;
}

@media (max-width: 420px) {
    .logo-wordmark {
        display: none;
    }

    .navbar nav {
        justify-content: flex-start;
    }

    .card {
        min-height: 420px;
    }
}
