:root {
    --ink: #172033;
    --muted: #5f6d7d;
    --paper: #f7f3ec;
    --surface: #ffffff;
    --line: rgba(23, 32, 51, 0.13);
    --gold: #d99a2b;
    --gold-dark: #9f6419;
    --teal: #1d8a8f;
    --blue: #214f8f;
    --night: #10172a;
    --shadow: 0 24px 70px rgba(21, 31, 48, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
    padding: 12px clamp(18px, 4vw, 64px);
    background: rgba(247, 243, 236, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
    color: var(--night);
    font-weight: 800;
    font-size: 1.08rem;
    text-decoration: none;
}

.brand img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(23, 32, 51, 0.16);
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 18px;
    color: #243149;
    font-size: 0.95rem;
    font-weight: 700;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.main-nav a {
    padding: 8px 0;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    color: var(--gold-dark);
    border-bottom-color: var(--gold);
}

.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(23, 32, 51, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
}

.language-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #425069;
    font-size: 0.78rem;
    font-weight: 850;
    text-decoration: none;
}

.language-switch a:hover,
.language-switch a.active {
    color: #fffaf0;
    background: var(--gold-dark);
}

.hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: calc(100vh - 78px);
    overflow: hidden;
    background: var(--night);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 13, 27, 0.88) 0%, rgba(8, 13, 27, 0.58) 42%, rgba(8, 13, 27, 0.12) 100%),
        linear-gradient(0deg, rgba(8, 13, 27, 0.76) 0%, rgba(8, 13, 27, 0.12) 36%, rgba(8, 13, 27, 0.24) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(820px, calc(100% - 36px));
    padding: clamp(44px, 6vw, 82px) 0 clamp(42px, 6vw, 76px);
    margin-left: clamp(18px, 5vw, 74px);
    color: #fffaf0;
}

.eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.2rem, 4.65vw, 4.45rem);
    line-height: 1.02;
    letter-spacing: 0;
    text-wrap: balance;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

.hero-copy {
    max-width: 680px;
    margin: 20px 0 0;
    color: rgba(255, 250, 240, 0.9);
    font-size: clamp(1.02rem, 1.7vw, 1.28rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.btn-primary {
    color: #1f1604;
    background: linear-gradient(135deg, #ffd76b, var(--gold));
}

.btn-secondary {
    color: #fffaf0;
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.36);
    backdrop-filter: blur(8px);
}

.not-found-section {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 78px);
    padding: clamp(54px, 8vw, 96px) 18px;
    background:
        linear-gradient(135deg, rgba(16, 23, 42, 0.9), rgba(33, 79, 143, 0.66)),
        url("../../images/banner3.png") center / cover no-repeat;
}

.not-found-card {
    width: min(760px, 100%);
    padding: clamp(32px, 6vw, 58px);
    border: 1px solid rgba(255, 250, 240, 0.2);
    border-radius: 8px;
    color: #fffaf0;
    text-align: center;
    background: rgba(16, 23, 42, 0.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.not-found-logo {
    width: clamp(96px, 18vw, 148px);
    height: clamp(96px, 18vw, 148px);
    margin: 0 auto 22px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32);
}

.not-found-card h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.9rem);
    line-height: 1.04;
    letter-spacing: 0;
    text-wrap: balance;
}

.not-found-card > p:not(.section-kicker) {
    max-width: 620px;
    margin: 18px auto 0;
    color: rgba(255, 250, 240, 0.86);
    font-size: 1.04rem;
}

.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

.not-found-actions .btn {
    gap: 10px;
}

.intro-section,
.features-section,
.gallery-section,
.audience-section,
.blog-section {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.intro-section {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: center;
    padding: clamp(64px, 9vw, 112px) 0 48px;
}

.intro-copy h2,
.section-heading h2 {
    margin: 0;
    color: var(--night);
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.04;
    letter-spacing: 0;
    text-wrap: balance;
}

.intro-copy p:not(.section-kicker),
.section-heading p:not(.section-kicker),
.feature-card p,
.audience-card p,
.blog-card p {
    color: var(--muted);
}

.intro-copy p:not(.section-kicker) {
    max-width: 620px;
    margin: 22px 0 0;
    font-size: 1.12rem;
}

.media-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    background: var(--night);
    box-shadow: var(--shadow);
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.features-section {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    padding: 26px 0 78px;
}

.feature-card {
    min-height: 278px;
    padding: 30px 24px;
    border: 1px solid rgba(217, 154, 43, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.64)),
        linear-gradient(135deg, rgba(217, 154, 43, 0.12), rgba(29, 138, 143, 0.08));
    box-shadow: 0 14px 34px rgba(23, 32, 51, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.025);
    border-color: rgba(217, 154, 43, 0.42);
    box-shadow: 0 24px 54px rgba(23, 32, 51, 0.16);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 22px;
    color: rgba(159, 100, 25, 0.72);
    background: rgba(217, 154, 43, 0.13);
    border: 1px solid rgba(159, 100, 25, 0.16);
    border-radius: 50%;
}

.feature-icon i {
    font-size: 2.15rem;
    line-height: 1;
}

.feature-card h3,
.audience-card h3,
.blog-card h3 {
    margin: 0;
    color: var(--night);
    font-size: 1.2rem;
    line-height: 1.25;
}

.feature-card h3 {
    text-align: center;
}

.feature-card p {
    margin: 13px 0 0;
    text-align: center;
}

.gallery-section,
.audience-section,
.blog-section {
    padding: 76px 0;
}

.gallery-section {
    border-top: 1px solid var(--line);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.section-heading.centered {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading p:not(.section-kicker) {
    margin: 18px 0 0;
    font-size: 1.08rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.gallery-item {
    min-width: 0;
}

.gallery-preview {
    position: relative;
    display: grid;
    align-items: end;
    width: 100%;
    min-height: 270px;
    overflow: hidden;
    padding: 0;
    color: #fffaf0;
    font: inherit;
    text-align: left;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    background: var(--night);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.gallery-preview:hover,
.gallery-preview:focus-visible {
    transform: translateY(-6px);
    border-color: rgba(217, 154, 43, 0.72);
    box-shadow: 0 30px 64px rgba(23, 32, 51, 0.22);
}

.gallery-preview:focus-visible {
    outline: 3px solid rgba(217, 154, 43, 0.48);
    outline-offset: 4px;
}

.gallery-preview::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(16, 23, 42, 0.04) 34%, rgba(16, 23, 42, 0.86) 100%);
}

.gallery-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.gallery-preview:hover img,
.gallery-preview:focus-visible img {
    transform: scale(1.04);
}

.gallery-preview span,
.gallery-preview strong {
    position: relative;
    z-index: 2;
    margin-right: 22px;
    margin-left: 22px;
}

.gallery-preview span {
    align-self: end;
    margin-top: auto;
    color: rgba(255, 250, 240, 0.74);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.gallery-preview strong {
    display: block;
    margin-bottom: 22px;
    margin-top: 6px;
    font-size: 1.24rem;
    line-height: 1.18;
}

.screenshot-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #fffaf0;
}

.screenshot-modal .modal-header {
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-bottom-color: rgba(23, 32, 51, 0.12);
}

.screenshot-modal .modal-title {
    margin: 0;
    color: var(--night);
    font-size: 1.08rem;
    font-weight: 850;
    line-height: 1.25;
}

.screenshot-modal .modal-body {
    padding: 0;
    background: var(--night);
}

.screenshot-modal .modal-body img {
    width: 100%;
    max-height: calc(100vh - 160px);
    object-fit: contain;
    background: var(--night);
}

.audience-section {
    width: 100%;
    background:
        linear-gradient(rgba(247, 243, 236, 0.88), rgba(247, 243, 236, 0.92)),
        url("../../images/banner3.png") center / cover;
}

.audience-section > * {
    width: min(1180px, calc(100% - 36px));
    margin-right: auto;
    margin-left: auto;
}

.audience-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.audience-card,
.blog-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 16px 42px rgba(23, 32, 51, 0.1);
}

.audience-card {
    position: relative;
    overflow: hidden;
    padding-top: 34px;
}

.audience-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--teal), var(--blue));
}

.audience-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    margin: 0 auto 24px;
    color: rgba(16, 23, 42, 0.76);
    border: 1px solid rgba(217, 154, 43, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(217, 154, 43, 0.18), rgba(29, 138, 143, 0.12)),
        rgba(255, 255, 255, 0.72);
}

.audience-icon i {
    font-size: 3.55rem;
    line-height: 1;
}

.audience-card h3 {
    text-align: center;
}

.audience-card p,
.blog-card p {
    margin: 12px 0 0;
}

.blog-card time {
    display: block;
    margin-bottom: 14px;
    color: var(--gold-dark);
    font-size: 0.82rem;
    font-weight: 850;
    text-transform: uppercase;
}

.text-link {
    display: inline-flex;
    width: max-content;
    margin-top: 22px;
    color: var(--blue);
    font-weight: 850;
    text-decoration-color: rgba(33, 79, 143, 0.35);
    text-underline-offset: 5px;
}

.blog-page-section {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(62px, 8vw, 104px) 0;
}

.blog-card h2 {
    margin: 0;
    color: var(--night);
    font-size: 1.2rem;
    line-height: 1.25;
}

.blog-detail {
    max-width: 820px;
    margin: 0 auto;
}

.blog-detail time {
    display: block;
    margin: 28px 0 12px;
    color: var(--gold-dark);
    font-size: 0.84rem;
    font-weight: 850;
    text-transform: uppercase;
}

.blog-detail h1 {
    margin: 0 0 28px;
    color: var(--night);
    font-size: clamp(2.05rem, 4vw, 3.5rem);
    line-height: 1.05;
}

.markdown-content {
    color: #2d394e;
    font-size: 1.08rem;
    line-height: 1.78;
}

.markdown-content h2,
.markdown-content h3,
.markdown-content h4 {
    margin: 34px 0 12px;
    color: var(--night);
    line-height: 1.2;
}

.markdown-content p,
.markdown-content ul {
    margin: 0 0 20px;
}

.markdown-content li + li {
    margin-top: 8px;
}

.markdown-content a {
    color: var(--blue);
    font-weight: 800;
    text-decoration-color: rgba(33, 79, 143, 0.35);
    text-underline-offset: 5px;
}

.markdown-content code {
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(23, 32, 51, 0.08);
    color: var(--night);
    font-size: 0.94em;
}

.empty-state {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.08rem;
}

.blog-hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 440px;
    overflow: hidden;
    background: var(--night);
}

.blog-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.blog-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 13, 27, 0.86) 0%, rgba(8, 13, 27, 0.58) 48%, rgba(8, 13, 27, 0.18) 100%),
        linear-gradient(0deg, rgba(8, 13, 27, 0.66) 0%, rgba(8, 13, 27, 0.1) 58%);
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    width: min(820px, calc(100% - 36px));
    margin-left: clamp(18px, 5vw, 74px);
    padding: clamp(58px, 8vw, 94px) 0 clamp(48px, 7vw, 78px);
    color: #fffaf0;
}

.blog-hero-content h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.05rem, 4vw, 3.8rem);
    line-height: 1.04;
    text-wrap: balance;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

.blog-hero-content p:not(.eyebrow) {
    max-width: 660px;
    margin: 18px 0 0;
    color: rgba(255, 250, 240, 0.88);
    font-size: clamp(1.02rem, 1.7vw, 1.22rem);
}

.download-hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 500px;
    overflow: hidden;
    background: var(--night);
}

.download-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.download-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 13, 27, 0.88) 0%, rgba(8, 13, 27, 0.56) 48%, rgba(8, 13, 27, 0.12) 100%),
        linear-gradient(0deg, rgba(8, 13, 27, 0.7) 0%, rgba(8, 13, 27, 0.1) 58%);
}

.download-hero-content {
    position: relative;
    z-index: 1;
    width: min(820px, calc(100% - 36px));
    margin-left: clamp(18px, 5vw, 74px);
    padding: clamp(64px, 8vw, 104px) 0 clamp(54px, 7vw, 86px);
    color: #fffaf0;
}

.download-hero-content h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.1rem, 4.2vw, 4rem);
    line-height: 1.04;
    text-wrap: balance;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

.download-hero-content p:not(.eyebrow) {
    max-width: 680px;
    margin: 18px 0 0;
    color: rgba(255, 250, 240, 0.88);
    font-size: clamp(1.02rem, 1.7vw, 1.22rem);
}

.shop-hero,
.docs-hero,
.license-hero,
.privacy-hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 440px;
    overflow: hidden;
    background: var(--night);
}

.shop-hero-bg,
.docs-hero-bg,
.license-hero-bg,
.privacy-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.shop-hero-overlay,
.docs-hero-overlay,
.license-hero-overlay,
.privacy-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 13, 27, 0.86) 0%, rgba(8, 13, 27, 0.58) 48%, rgba(8, 13, 27, 0.18) 100%),
        linear-gradient(0deg, rgba(8, 13, 27, 0.66) 0%, rgba(8, 13, 27, 0.1) 58%);
}

.shop-hero-content,
.docs-hero-content,
.license-hero-content,
.privacy-hero-content {
    position: relative;
    z-index: 1;
    width: min(820px, calc(100% - 36px));
    margin-left: clamp(18px, 5vw, 74px);
    padding: clamp(58px, 8vw, 94px) 0 clamp(48px, 7vw, 78px);
    color: #fffaf0;
}

.shop-hero-content h1,
.docs-hero-content h1,
.license-hero-content h1,
.privacy-hero-content h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.05rem, 4vw, 3.8rem);
    line-height: 1.04;
    text-wrap: balance;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

.shop-hero-content p:not(.eyebrow),
.docs-hero-content p:not(.eyebrow),
.license-hero-content p:not(.eyebrow),
.privacy-hero-content p:not(.eyebrow) {
    max-width: 660px;
    margin: 18px 0 0;
    color: rgba(255, 250, 240, 0.88);
    font-size: clamp(1.02rem, 1.7vw, 1.22rem);
}

.privacy-updated {
    width: max-content;
    max-width: 100%;
    margin-top: 20px;
    padding: 8px 12px;
    color: #1f1604;
    border-radius: 8px;
    background: rgba(255, 215, 107, 0.9);
    font-size: 0.9rem;
    font-weight: 850;
}

.shop-section {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(62px, 8vw, 104px) 0;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.shop-card {
    padding: 34px 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 42px rgba(23, 32, 51, 0.1);
    text-align: center;
}

.shop-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    margin: 0 auto 24px;
    color: rgba(16, 23, 42, 0.76);
    border: 1px solid rgba(217, 154, 43, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(217, 154, 43, 0.18), rgba(29, 138, 143, 0.12)),
        rgba(255, 255, 255, 0.72);
}

.shop-icon i {
    font-size: 3.55rem;
    line-height: 1;
}

.shop-card h3 {
    margin: 0;
    color: var(--night);
    font-size: 1.24rem;
    line-height: 1.25;
}

.shop-card p {
    margin: 12px 0 0;
    color: var(--muted);
}

.archive-section-list {
    display: grid;
    gap: 34px;
}

.archive-upload-callout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 34px;
    padding: 28px;
    border-radius: 8px;
    background: var(--night);
    box-shadow: var(--shadow);
}

.archive-upload-callout h2 {
    margin: 0;
    color: #fffaf0;
    font-size: clamp(1.55rem, 2.8vw, 2.45rem);
    line-height: 1.14;
}

.archive-upload-callout p {
    max-width: 720px;
    margin: 10px 0 0;
    color: rgba(255, 250, 240, 0.82);
}

.archive-upload-callout .btn {
    gap: 10px;
    min-width: 240px;
}

.archive-upload-message {
    margin: 0 0 28px;
    padding: 16px 18px;
    border-radius: 8px;
    font-weight: 750;
}

.archive-upload-message.success {
    color: #14532d;
    border: 1px solid rgba(34, 136, 72, 0.28);
    background: rgba(222, 247, 232, 0.92);
}

.archive-upload-message.error {
    color: #7a1e1e;
    border: 1px solid rgba(180, 49, 49, 0.28);
    background: rgba(255, 232, 232, 0.9);
}

.archive-upload-message ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.archive-anchor-nav {
    position: sticky;
    top: 92px;
    z-index: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(247, 243, 236, 0.92);
    box-shadow: 0 12px 32px rgba(23, 32, 51, 0.08);
    backdrop-filter: blur(14px);
}

.archive-anchor-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    color: var(--night);
    border: 1px solid rgba(217, 154, 43, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    font-weight: 850;
    text-decoration: none;
}

.archive-anchor-nav a:hover,
.archive-anchor-nav a:focus-visible {
    color: #1f1604;
    background: linear-gradient(135deg, #ffd76b, var(--gold));
}

.archive-category {
    overflow: hidden;
    scroll-margin-top: 168px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 42px rgba(23, 32, 51, 0.1);
}

.archive-category-hero {
    display: grid;
    grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
    gap: clamp(24px, 4vw, 42px);
    align-items: center;
    padding: clamp(22px, 4vw, 36px);
    background:
        linear-gradient(135deg, rgba(217, 154, 43, 0.12), rgba(29, 138, 143, 0.08)),
        rgba(255, 255, 255, 0.72);
}

.archive-category-hero img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid rgba(217, 154, 43, 0.26);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(23, 32, 51, 0.14);
}

.archive-category-hero h2 {
    margin: 0;
    color: var(--night);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    line-height: 1.06;
    text-wrap: balance;
}

.archive-category-hero p:not(.section-kicker) {
    max-width: 680px;
    margin: 14px 0 0;
    color: #2d394e;
    font-size: 1.08rem;
}

.archive-empty {
    margin: 0;
    padding: 28px clamp(22px, 4vw, 36px) 34px;
    color: var(--muted);
    font-weight: 750;
}

.archive-item-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 28px clamp(22px, 4vw, 36px) clamp(22px, 4vw, 36px);
}

.archive-item-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 22px;
    border: 1px solid rgba(23, 32, 51, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
}

.archive-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.archive-item-header h3 {
    margin: 0;
    color: var(--night);
    font-size: 1.22rem;
    line-height: 1.22;
}

.archive-item-header span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 30px;
    padding: 4px 9px;
    color: #1f1604;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd76b, var(--gold));
    font-size: 0.76rem;
    font-weight: 900;
}

.archive-item-card p {
    flex: 1;
    margin: 12px 0 18px;
    color: var(--muted);
}

.archive-item-meta {
    display: grid;
    gap: 4px;
    margin-bottom: 18px;
    color: #465569;
    font-size: 0.9rem;
}

.archive-item-meta span,
.archive-item-meta time {
    display: block;
}

.archive-item-card .btn {
    gap: 10px;
    width: max-content;
}

.archive-upload-modal {
    border: 0;
    border-radius: 8px;
    background: var(--paper);
}

.archive-upload-modal .modal-header,
.archive-upload-modal .modal-footer {
    border-color: rgba(23, 32, 51, 0.12);
}

.archive-upload-modal .modal-title {
    margin: 0;
    color: var(--night);
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.12;
}

.archive-upload-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.archive-upload-form-grid label {
    display: grid;
    gap: 7px;
    color: var(--night);
    font-weight: 800;
}

.archive-upload-form-grid label.wide {
    grid-column: 1 / -1;
}

.archive-upload-form-grid input,
.archive-upload-form-grid select,
.archive-upload-form-grid textarea {
    width: 100%;
    border: 1px solid rgba(23, 32, 51, 0.16);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.archive-upload-form-grid input:focus,
.archive-upload-form-grid select:focus,
.archive-upload-form-grid textarea:focus {
    outline: 3px solid rgba(217, 154, 43, 0.26);
    border-color: rgba(217, 154, 43, 0.64);
}

.archive-upload-privacy {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(23, 32, 51, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
}

.archive-upload-privacy p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.5;
}

.archive-upload-privacy a {
    color: var(--gold-dark);
    font-weight: 800;
}

.archive-upload-privacy label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0;
    color: var(--night);
    font-weight: 800;
    line-height: 1.45;
}

.archive-upload-privacy input {
    margin-top: 4px;
}

.archive-upload-modal .modal-footer .btn {
    gap: 10px;
}

.manuals-section {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(62px, 8vw, 104px) 0;
}

.manuals-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.manual-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 42px rgba(23, 32, 51, 0.1);
}

.manual-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin-bottom: 18px;
    color: rgba(16, 23, 42, 0.76);
    border: 1px solid rgba(217, 154, 43, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(217, 154, 43, 0.18), rgba(29, 138, 143, 0.12)),
        rgba(255, 255, 255, 0.72);
}

.manual-icon i {
    font-size: 2.75rem;
    line-height: 1;
}

.manual-format {
    width: max-content;
    margin-bottom: 14px;
    padding: 6px 10px;
    color: var(--gold-dark);
    border: 1px solid rgba(217, 154, 43, 0.24);
    border-radius: 999px;
    background: rgba(217, 154, 43, 0.12);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.manual-card h3 {
    margin: 0;
    color: var(--night);
    font-size: 1.24rem;
    line-height: 1.25;
}

.manual-card p {
    flex: 1;
    margin: 12px 0 24px;
    color: var(--muted);
}

.manual-card .btn {
    gap: 10px;
    width: 100%;
}

.license-section {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(62px, 8vw, 104px) 0;
}

.license-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.license-card {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 42px rgba(23, 32, 51, 0.1);
}

.license-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin-bottom: 18px;
    color: rgba(16, 23, 42, 0.76);
    border: 1px solid rgba(217, 154, 43, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(217, 154, 43, 0.18), rgba(29, 138, 143, 0.12)),
        rgba(255, 255, 255, 0.72);
}

.license-icon i {
    font-size: 2.65rem;
    line-height: 1;
}

.license-card h3 {
    margin: 0;
    color: var(--night);
    font-size: 1.18rem;
    line-height: 1.25;
}

.license-card p {
    margin: 12px 0 0;
    color: var(--muted);
}

.license-download {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    margin-top: 24px;
    padding: 34px;
    border-radius: 8px;
    background: var(--night);
    box-shadow: var(--shadow);
}

.license-download h2 {
    margin: 0;
    color: #fffaf0;
    font-size: clamp(1.55rem, 2.6vw, 2.35rem);
    line-height: 1.18;
}

.license-download p {
    max-width: 720px;
    margin: 12px 0 0;
    color: rgba(255, 250, 240, 0.82);
}

.license-download .btn {
    gap: 10px;
    min-width: 260px;
}

.privacy-section {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(62px, 8vw, 104px) 0;
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.privacy-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 42px rgba(23, 32, 51, 0.08);
}

.privacy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    color: rgba(16, 23, 42, 0.76);
    border: 1px solid rgba(217, 154, 43, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(217, 154, 43, 0.18), rgba(29, 138, 143, 0.12)),
        rgba(255, 255, 255, 0.72);
}

.privacy-icon i {
    font-size: 2.15rem;
    line-height: 1;
}

.privacy-card h3 {
    margin: 0;
    color: var(--night);
    font-size: 1.12rem;
    line-height: 1.25;
}

.privacy-card p {
    margin: 8px 0 0;
    color: #2d394e;
}

.privacy-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    margin-top: 24px;
    padding: 34px;
    border-radius: 8px;
    background: var(--night);
    box-shadow: var(--shadow);
}

.privacy-contact h2 {
    margin: 0;
    color: #fffaf0;
    font-size: clamp(1.55rem, 2.6vw, 2.35rem);
    line-height: 1.18;
}

.privacy-contact p {
    max-width: 760px;
    margin: 12px 0 0;
    color: rgba(255, 250, 240, 0.82);
}

.privacy-contact .btn {
    gap: 10px;
    min-width: 230px;
}

.privacy-note {
    font-size: 0.94rem;
}

.features-hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 500px;
    overflow: hidden;
    background: var(--night);
}

.features-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.features-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 13, 27, 0.88) 0%, rgba(8, 13, 27, 0.58) 48%, rgba(8, 13, 27, 0.18) 100%),
        linear-gradient(0deg, rgba(8, 13, 27, 0.68) 0%, rgba(8, 13, 27, 0.12) 58%);
}

.features-hero-content {
    position: relative;
    z-index: 1;
    width: min(840px, calc(100% - 36px));
    margin-left: clamp(18px, 5vw, 74px);
    padding: clamp(64px, 8vw, 104px) 0 clamp(54px, 7vw, 86px);
    color: #fffaf0;
}

.features-hero-content h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.1rem, 4.2vw, 4rem);
    line-height: 1.04;
    text-wrap: balance;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

.features-hero-content p:not(.eyebrow) {
    max-width: 700px;
    margin: 18px 0 0;
    color: rgba(255, 250, 240, 0.88);
    font-size: clamp(1.02rem, 1.7vw, 1.22rem);
}

.feature-tabs-section,
.feature-story-section,
.feature-summary-section {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.feature-tabs-section {
    padding: 42px 0 0;
}

.feature-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 34px;
}

.feature-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 13px 20px;
    color: var(--night);
    border: 1px solid rgba(217, 154, 43, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 10px 28px rgba(23, 32, 51, 0.08);
    font: inherit;
    font-weight: 850;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.feature-tab:hover,
.feature-tab:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(23, 32, 51, 0.12);
}

.feature-tab.active {
    color: #1f1604;
    background: linear-gradient(135deg, #ffd76b, var(--gold));
}

.feature-tab i {
    font-size: 1.2rem;
}

.feature-story-section {
    padding: 0 0 68px;
}

.feature-story-player {
    position: relative;
    overflow: hidden;
    width: min(960px, 100%);
    margin: 0 auto;
    border: 1px solid rgba(217, 154, 43, 0.34);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 215, 107, 0.2), rgba(29, 138, 143, 0.12)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 243, 236, 0.92));
    box-shadow: 0 24px 70px rgba(21, 31, 48, 0.14);
}

.feature-story-frame {
    position: relative;
    min-height: clamp(300px, 43vw, 520px);
    overflow: hidden;
}

.feature-story-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1.15s ease;
}

.feature-story-slide.active {
    opacity: 1;
    z-index: 2;
}

.feature-story-image-slide {
    display: grid;
    place-items: center;
    padding: clamp(14px, 2.4vw, 28px);
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 215, 107, 0.2), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(235, 244, 242, 0.9));
}

.feature-story-image-slide img {
    width: 100%;
    height: 100%;
    max-height: calc(clamp(300px, 43vw, 520px) - clamp(28px, 4.8vw, 56px));
    object-fit: contain;
    transform: scale(1);
    border-radius: 8px;
    box-shadow: 0 16px 46px rgba(23, 32, 51, 0.16);
}

.feature-story-image-slide.active img {
    animation: featureKenBurns 3.35s ease-out both;
}

.feature-story-text-slide {
    display: grid;
    place-items: center;
    padding: clamp(28px, 6vw, 72px);
    background:
        linear-gradient(rgba(247, 243, 236, 0.88), rgba(247, 243, 236, 0.92)),
        url("../../images/banner3.png") center / cover;
}

.feature-story-text-slide p {
    max-width: 760px;
    margin: 0;
    color: var(--night);
    font-size: clamp(2rem, 5.4vw, 4.55rem);
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-shadow: 0 2px 0 rgba(255, 250, 240, 0.74);
    text-wrap: balance;
}

.feature-story-text-slide span {
    display: block;
}

.feature-story-text-slide span + span {
    margin-top: 0.22em;
}

.feature-story-text-slide.final {
    background:
        linear-gradient(135deg, rgba(16, 23, 42, 0.96), rgba(33, 79, 143, 0.92)),
        url("../../images/banner3.png") center / cover;
}

.feature-story-text-slide.final p {
    color: #ffd76b;
    text-shadow: 0 4px 22px rgba(0, 0, 0, 0.46);
}

.feature-story-text-slide.final span:last-child {
    color: #fffaf0;
    font-size: 1.08em;
}

.feature-story-vignette {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 50%, transparent 58%, rgba(16, 23, 42, 0.1) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.52);
}

.feature-summary-section {
    padding: 0 0 78px;
}

.teacher-feature-list {
    display: grid;
    gap: 24px;
}

.teacher-feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: clamp(24px, 4vw, 46px);
    align-items: center;
    padding: clamp(20px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 42px rgba(23, 32, 51, 0.1);
}

.teacher-feature-row-wide {
    grid-template-columns: 1fr;
    background:
        linear-gradient(135deg, rgba(217, 154, 43, 0.1), rgba(29, 138, 143, 0.08)),
        rgba(255, 255, 255, 0.88);
}

.teacher-feature-row-wide .teacher-feature-copy {
    width: 100%;
    max-width: none;
}

.teacher-feature-row-wide .teacher-feature-copy h3,
.teacher-feature-row-wide .teacher-feature-copy p {
    max-width: none;
}

.teacher-feature-shot {
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(23, 32, 51, 0.13);
    border-radius: 8px;
    background: var(--night);
    box-shadow: 0 14px 34px rgba(23, 32, 51, 0.14);
}

.teacher-feature-shot img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center top;
}

.teacher-feature-copy {
    display: grid;
    align-content: center;
}

.teacher-feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin-bottom: 20px;
    color: rgba(16, 23, 42, 0.76);
    border: 1px solid rgba(217, 154, 43, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(217, 154, 43, 0.18), rgba(29, 138, 143, 0.12)),
        rgba(255, 255, 255, 0.72);
}

.teacher-feature-icon i {
    font-size: 2.75rem;
    line-height: 1;
}

.teacher-feature-copy h3 {
    max-width: 560px;
    margin: 0;
    color: var(--night);
    font-size: clamp(1.6rem, 2.6vw, 2.35rem);
    line-height: 1.08;
    text-wrap: balance;
}

.teacher-feature-copy p {
    max-width: 640px;
    margin: 16px 0 0;
    color: #2d394e;
    font-size: 1.08rem;
    line-height: 1.75;
}

.student-feature-placeholder {
    display: grid;
    place-items: center;
    max-width: 820px;
    min-height: 340px;
    margin: 0 auto 78px;
    padding: 42px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 42px rgba(23, 32, 51, 0.1);
}

.student-feature-placeholder span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    margin-bottom: 22px;
    color: rgba(16, 23, 42, 0.76);
    border: 1px solid rgba(217, 154, 43, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(217, 154, 43, 0.18), rgba(29, 138, 143, 0.12)),
        rgba(255, 255, 255, 0.72);
}

.student-feature-placeholder i {
    font-size: 3.55rem;
    line-height: 1;
}

.student-feature-placeholder h2 {
    margin: 0;
    color: var(--night);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.1;
}

.student-feature-placeholder p {
    max-width: 620px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.feature-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-summary-card {
    padding: 34px 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 42px rgba(23, 32, 51, 0.1);
    text-align: center;
}

.feature-summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin: 0 auto 22px;
    color: rgba(16, 23, 42, 0.76);
    border: 1px solid rgba(217, 154, 43, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(217, 154, 43, 0.18), rgba(29, 138, 143, 0.12)),
        rgba(255, 255, 255, 0.72);
}

.feature-summary-icon i {
    font-size: 3rem;
    line-height: 1;
}

.feature-summary-card h3 {
    margin: 0;
    color: var(--night);
    font-size: 1.22rem;
    line-height: 1.25;
}

.feature-summary-card p {
    margin: 12px 0 0;
    color: var(--muted);
}

.project-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
    gap: clamp(30px, 6vw, 78px);
    align-items: center;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(62px, 8vw, 108px) 0 clamp(48px, 7vw, 86px);
}

.project-hero-copy h1 {
    max-width: 820px;
    margin: 0;
    color: var(--night);
    font-size: clamp(2.1rem, 4.35vw, 4.15rem);
    line-height: 1.04;
    text-wrap: balance;
}

.project-hero-copy p:not(.eyebrow) {
    max-width: 720px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: clamp(1.04rem, 1.7vw, 1.24rem);
}

.project-portrait {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(217, 154, 43, 0.3);
    border-radius: 8px;
    background: var(--night);
    box-shadow: var(--shadow);
}

.project-portrait::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 58%, rgba(16, 23, 42, 0.26));
}

.project-portrait img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.project-story-section,
.project-values-section {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.project-story-section {
    padding: 36px 0 72px;
}

.project-story {
    max-width: 100%;
    margin: 0 auto;
    padding: clamp(30px, 5vw, 58px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 16px 42px rgba(23, 32, 51, 0.1);
}

.project-story h2 {
    margin: 0 0 22px;
    color: var(--night);
    font-size: clamp(1.9rem, 3.3vw, 3rem);
    line-height: 1.08;
}

.project-story p:not(.section-kicker) {
    margin: 0 0 18px;
    color: #2d394e;
    font-size: 1.06rem;
    line-height: 1.78;
}

.project-story blockquote {
    margin: 32px 0 0;
    padding: 24px 26px;
    color: var(--night);
    border-left: 5px solid var(--gold);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(217, 154, 43, 0.14), rgba(29, 138, 143, 0.08)),
        rgba(247, 243, 236, 0.82);
    font-size: clamp(1.18rem, 2vw, 1.45rem);
    font-weight: 800;
    line-height: 1.45;
}

.project-values-section {
    padding: 0 0 78px;
}

.project-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.project-value-card {
    padding: 34px 30px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 42px rgba(23, 32, 51, 0.1);
}

.project-value-card span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    margin: 0 auto 22px;
    color: rgba(16, 23, 42, 0.76);
    border: 1px solid rgba(217, 154, 43, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(217, 154, 43, 0.18), rgba(29, 138, 143, 0.12)),
        rgba(255, 255, 255, 0.72);
}

.project-value-card i {
    font-size: 3rem;
    line-height: 1;
}

.project-value-card h3 {
    margin: 0;
    color: var(--night);
    font-size: 1.22rem;
}

.project-value-card p {
    margin: 12px 0 0;
    color: var(--muted);
}

.contact-hero {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 440px;
    overflow: hidden;
    background: var(--night);
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 13, 27, 0.86) 0%, rgba(8, 13, 27, 0.58) 48%, rgba(8, 13, 27, 0.18) 100%),
        linear-gradient(0deg, rgba(8, 13, 27, 0.66) 0%, rgba(8, 13, 27, 0.1) 58%);
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    width: min(820px, calc(100% - 36px));
    margin-left: clamp(18px, 5vw, 74px);
    padding: clamp(58px, 8vw, 94px) 0 clamp(48px, 7vw, 78px);
    color: #fffaf0;
}

.contact-hero-content h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(2.05rem, 4vw, 3.8rem);
    line-height: 1.04;
    text-wrap: balance;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
}

.contact-hero-content p:not(.eyebrow) {
    max-width: 660px;
    margin: 18px 0 0;
    color: rgba(255, 250, 240, 0.88);
    font-size: clamp(1.02rem, 1.7vw, 1.22rem);
}

.contact-section {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: clamp(62px, 8vw, 104px) 0;
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 16px 42px rgba(23, 32, 51, 0.1);
}

.contact-copy h2 {
    margin: 0;
    color: var(--night);
    font-size: clamp(1.9rem, 3.2vw, 3rem);
    line-height: 1.08;
}

.contact-copy p:not(.section-kicker) {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 7px;
    margin: 0;
    color: var(--night);
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(23, 32, 51, 0.16);
    border-radius: 8px;
    padding: 13px 14px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 3px solid rgba(217, 154, 43, 0.26);
    border-color: rgba(217, 154, 43, 0.64);
}

.contact-form .btn {
    gap: 10px;
    width: max-content;
}

.form-privacy-note {
    max-width: 620px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.form-privacy-note a {
    color: var(--gold-dark);
    font-weight: 800;
}

.form-alert {
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 800;
}

.form-alert.success {
    color: #0f4c3a;
    background: rgba(29, 138, 143, 0.14);
    border: 1px solid rgba(29, 138, 143, 0.28);
}

.form-alert.error {
    color: #7a2b1d;
    background: rgba(217, 154, 43, 0.14);
    border: 1px solid rgba(159, 100, 25, 0.28);
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@keyframes featureKenBurns {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.045);
    }
}

.download-section,
.install-section,
.class-setup-section,
.github-section {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.download-section {
    padding: clamp(62px, 8vw, 104px) 0 64px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.download-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 46px rgba(23, 32, 51, 0.12);
}

.download-image-link {
    display: block;
    overflow: hidden;
    background: var(--night);
}

.download-image-link img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.download-image-link:hover img,
.download-image-link:focus-visible img {
    transform: scale(1.04);
}

.download-card-body {
    padding: 26px;
}

.download-badge {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 10px;
    color: var(--gold-dark);
    border: 1px solid rgba(217, 154, 43, 0.24);
    border-radius: 999px;
    background: rgba(217, 154, 43, 0.12);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
}

.download-card h3,
.github-section h2 {
    margin: 0;
    color: var(--night);
    line-height: 1.18;
}

.download-card h3 {
    font-size: 1.28rem;
}

.download-card p,
.github-section p {
    color: var(--muted);
}

.download-card p {
    min-height: 150px;
    margin: 12px 0 22px;
}

.download-card .btn,
.github-section .btn {
    gap: 10px;
    width: 100%;
}

.github-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 34px;
    border-radius: 8px;
    background: var(--night);
    box-shadow: var(--shadow);
}

.github-section h2 {
    color: #fffaf0;
    font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.github-section p {
    max-width: 720px;
    margin: 12px 0 0;
    color: rgba(255, 250, 240, 0.82);
}

.github-section .btn {
    min-width: 260px;
}

.install-section,
.class-setup-section {
    padding: 76px 0;
}

.class-setup-section {
    padding-top: 0;
}

.install-steps,
.class-setup-steps {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.install-steps li,
.class-setup-steps li {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
}

.install-steps span,
.class-setup-steps span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    color: #1f1604;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffd76b, var(--gold));
    font-weight: 900;
}

.install-steps p,
.class-setup-steps p {
    margin: 7px 0 0;
    color: #2d394e;
    font-size: 1.04rem;
}

.install-steps h3,
.class-setup-steps h3 {
    margin: 0;
    color: var(--night);
    font-size: 1.12rem;
    line-height: 1.25;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 28px;
    align-items: center;
    padding: 34px clamp(18px, 5vw, 70px);
    color: rgba(255, 250, 240, 0.82);
    background: var(--night);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
}

.footer-brand p {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 18px;
    font-weight: 750;
}

.footer-links a {
    color: rgba(255, 250, 240, 0.9);
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffd76b;
}

.admin-login-body,
.admin-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 18%, rgba(217, 154, 43, 0.16), transparent 28%),
        linear-gradient(135deg, #f7f3ec 0%, #e9eef1 100%);
}

.admin-login-body {
    display: grid;
    place-items: center;
    padding: 28px;
}

.admin-login-panel {
    width: min(100%, 430px);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.admin-login-panel img {
    width: 72px;
    height: 72px;
    margin-bottom: 18px;
    border-radius: 8px;
    object-fit: cover;
}

.admin-kicker {
    margin: 0 0 8px;
    color: var(--gold-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-login-panel h1,
.admin-topbar h1 {
    margin: 0;
    color: var(--night);
    line-height: 1.1;
}

.admin-login-panel h1 {
    font-size: clamp(1.85rem, 5vw, 2.5rem);
}

.admin-login-copy {
    margin: 14px 0 24px;
    color: var(--muted);
}

.admin-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    color: #7a1e1e;
    border: 1px solid rgba(180, 49, 49, 0.28);
    border-radius: 8px;
    background: rgba(255, 232, 232, 0.9);
    font-weight: 700;
}

.admin-login-form {
    display: grid;
    gap: 10px;
}

.admin-login-form label {
    color: var(--night);
    font-weight: 800;
}

.admin-login-form input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid rgba(23, 32, 51, 0.18);
    border-radius: 8px;
    background: #fff;
}

.admin-login-form .btn {
    gap: 10px;
    width: 100%;
    margin-top: 10px;
}

.admin-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 22px;
    color: rgba(255, 250, 240, 0.9);
    background: var(--night);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: #fffaf0;
    font-size: 1.1rem;
    font-weight: 900;
    text-decoration: none;
}

.admin-brand img {
    width: 46px;
    height: 46px;
    border-radius: 8px;
    object-fit: cover;
}

.admin-nav {
    display: grid;
    gap: 8px;
}

.admin-nav a,
.admin-logout,
.admin-site-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.admin-nav a,
.admin-logout {
    padding: 12px 14px;
    color: rgba(255, 250, 240, 0.82);
    border-radius: 8px;
}

.admin-nav a:hover,
.admin-nav a[aria-current="page"],
.admin-logout:hover {
    color: #fffaf0;
    background: rgba(255, 255, 255, 0.1);
}

.admin-logout {
    margin-top: auto;
}

.admin-main {
    padding: clamp(22px, 4vw, 48px);
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.admin-topbar h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.admin-site-link {
    min-width: max-content;
    padding: 10px 14px;
    color: var(--night);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.76);
    font-weight: 800;
}

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.admin-section-card,
.admin-placeholder {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 42px rgba(23, 32, 51, 0.1);
}

.admin-section-card {
    display: flex;
    flex-direction: column;
    min-height: 310px;
    padding: 30px;
    color: var(--ink);
    text-decoration: none;
}

.admin-section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 52px rgba(23, 32, 51, 0.14);
}

.admin-section-icon,
.admin-placeholder span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    color: rgba(16, 23, 42, 0.76);
    border: 1px solid rgba(217, 154, 43, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(217, 154, 43, 0.18), rgba(29, 138, 143, 0.12)),
        rgba(255, 255, 255, 0.72);
}

.admin-section-icon {
    margin-bottom: 22px;
}

.admin-section-icon i,
.admin-placeholder span i {
    font-size: 2.8rem;
    line-height: 1;
}

.admin-section-card h2,
.admin-placeholder h2 {
    margin: 0;
    color: var(--night);
    font-size: 1.35rem;
    line-height: 1.2;
}

.admin-section-card p,
.admin-placeholder p {
    color: var(--muted);
}

.admin-section-card p {
    flex: 1;
    margin: 12px 0 22px;
}

.admin-section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-dark);
    font-weight: 900;
}

.admin-placeholder {
    display: grid;
    place-items: center;
    min-height: 420px;
    padding: 42px;
    text-align: center;
}

.admin-placeholder span {
    margin-bottom: 22px;
}

.admin-placeholder p {
    max-width: 560px;
    margin: 12px 0 0;
}

.admin-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.38fr);
    gap: 22px;
    align-items: start;
}

.admin-panel {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 42px rgba(23, 32, 51, 0.1);
}

.admin-panel-heading {
    margin-bottom: 22px;
}

.admin-panel-heading h2 {
    margin: 0;
    color: var(--night);
    font-size: clamp(1.45rem, 2.4vw, 2.1rem);
    line-height: 1.16;
}

.admin-panel-heading p:not(.admin-kicker) {
    margin: 10px 0 0;
    color: var(--muted);
}

.admin-alert.success {
    color: #14532d;
    border-color: rgba(34, 136, 72, 0.28);
    background: rgba(222, 247, 232, 0.92);
}

.admin-blog-form {
    display: grid;
    gap: 16px;
}

.admin-blog-form label {
    display: grid;
    gap: 7px;
    color: var(--night);
    font-weight: 800;
}

.admin-blog-form input,
.admin-blog-form select,
.admin-blog-form textarea {
    width: 100%;
    border: 1px solid rgba(23, 32, 51, 0.16);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.admin-blog-form textarea {
    min-height: 420px;
    resize: vertical;
    font-family: Consolas, "Liberation Mono", monospace;
    line-height: 1.55;
}

.admin-blog-form input:focus,
.admin-blog-form select:focus,
.admin-blog-form textarea:focus {
    outline: 3px solid rgba(217, 154, 43, 0.26);
    border-color: rgba(217, 154, 43, 0.64);
}

.admin-blog-form .btn {
    gap: 10px;
    width: max-content;
}

.admin-empty {
    margin: 0;
    color: var(--muted);
}

.admin-post-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-post-list li {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid rgba(23, 32, 51, 0.1);
    border-radius: 8px;
    background: rgba(247, 243, 236, 0.72);
}

.admin-post-list li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    color: #1f1604;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffd76b, var(--gold));
    font-size: 0.78rem;
    font-weight: 900;
}

.admin-post-list strong {
    display: block;
    color: var(--night);
    line-height: 1.25;
}

.admin-post-list time {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.86rem;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.admin-stat-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 42px rgba(23, 32, 51, 0.1);
}

.admin-stat-card span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    color: rgba(16, 23, 42, 0.78);
    border: 1px solid rgba(217, 154, 43, 0.24);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(217, 154, 43, 0.18), rgba(29, 138, 143, 0.12)),
        rgba(255, 255, 255, 0.72);
}

.admin-stat-card i {
    font-size: 1.75rem;
}

.admin-stat-card p {
    margin: 0;
    color: var(--muted);
    font-weight: 800;
}

.admin-stat-card strong {
    display: block;
    margin-top: 2px;
    color: var(--night);
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    line-height: 1;
}

.admin-download-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

.admin-bar-list {
    display: grid;
    gap: 18px;
}

.admin-chart-box {
    position: relative;
    height: 260px;
    margin-bottom: 24px;
    padding: 12px;
    border: 1px solid rgba(23, 32, 51, 0.08);
    border-radius: 8px;
    background: rgba(247, 243, 236, 0.52);
}

.admin-chart-box.compact {
    height: 280px;
}

.admin-chart-box.wide {
    height: 320px;
}

.admin-chart-box canvas {
    width: 100% !important;
    height: 100% !important;
}

.admin-bar-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
    color: var(--night);
    font-weight: 850;
}

.admin-bar-label strong {
    color: var(--gold-dark);
}

.admin-bar-track {
    height: 13px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(23, 32, 51, 0.09);
}

.admin-bar-track span {
    display: block;
    height: 100%;
    min-width: 8px;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold), var(--teal));
}

.admin-day-chart {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(42px, 1fr);
    gap: 12px;
    align-items: end;
    min-height: 250px;
    overflow-x: auto;
    padding: 10px 4px 0;
}

.admin-day-column {
    display: grid;
    grid-template-rows: 1fr auto auto;
    gap: 7px;
    align-items: end;
    min-width: 42px;
    height: 240px;
    text-align: center;
}

.admin-day-bar {
    width: 100%;
    min-height: 8px;
    border-radius: 8px 8px 2px 2px;
    background: linear-gradient(180deg, #ffd76b, var(--gold-dark));
    box-shadow: 0 8px 20px rgba(217, 154, 43, 0.2);
}

.admin-day-column strong {
    color: var(--night);
    font-size: 0.92rem;
    line-height: 1;
}

.admin-day-column span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.admin-table th,
.admin-table td {
    padding: 13px 12px;
    border-bottom: 1px solid rgba(23, 32, 51, 0.1);
    text-align: left;
    vertical-align: top;
}

.admin-table th {
    color: var(--night);
    background: rgba(247, 243, 236, 0.88);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.admin-table td {
    color: #2d394e;
    font-size: 0.94rem;
}

.approval-list {
    display: grid;
    gap: 18px;
}

.approval-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.35fr);
    gap: 22px;
    padding: 22px;
    border: 1px solid rgba(23, 32, 51, 0.12);
    border-radius: 8px;
    background: rgba(247, 243, 236, 0.72);
}

.approval-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.approval-card-heading h3 {
    margin: 0;
    color: var(--night);
    font-size: 1.35rem;
    line-height: 1.2;
}

.approval-card-heading span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 30px;
    padding: 4px 9px;
    color: #1f1604;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd76b, var(--gold));
    font-size: 0.76rem;
    font-weight: 900;
}

.approval-card-main p {
    margin: 12px 0 18px;
    color: #2d394e;
}

.approval-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.approval-meta dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.approval-meta dd {
    margin: 3px 0 0;
    color: var(--night);
    overflow-wrap: anywhere;
}

.approval-file-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--gold-dark);
    font-weight: 900;
    text-decoration: none;
}

.approval-actions {
    display: grid;
    gap: 16px;
    align-content: start;
}

.approval-actions .btn {
    gap: 10px;
    width: 100%;
}

.approval-reject-form {
    display: grid;
    gap: 12px;
}

.approval-reject-form label {
    display: grid;
    gap: 7px;
    color: var(--night);
    font-weight: 800;
}

.approval-reject-form textarea {
    width: 100%;
    resize: vertical;
    border: 1px solid rgba(23, 32, 51, 0.16);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.approval-reject-form textarea:focus {
    outline: 3px solid rgba(217, 154, 43, 0.26);
    border-color: rgba(217, 154, 43, 0.64);
}

@media (max-width: 980px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .header-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        min-height: 760px;
    }

    .hero-content {
        padding-top: 92px;
    }

    .intro-section {
        grid-template-columns: 1fr;
    }

    .features-section,
    .gallery-grid,
    .download-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .audience-grid,
    .blog-grid,
    .shop-grid,
    .manuals-grid,
    .license-grid,
    .privacy-grid,
    .feature-summary-grid,
    .project-values-grid,
    .license-download,
    .privacy-contact,
    .github-section,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .project-hero {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        grid-template-columns: 1fr;
    }

    .project-portrait {
        max-width: 520px;
        margin-right: auto;
        margin-left: auto;
    }

    .github-section .btn {
        width: max-content;
        min-width: 0;
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: relative;
        min-height: 0;
    }

    .admin-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-logout {
        margin-top: 12px;
    }

    .admin-card-grid {
        grid-template-columns: 1fr;
    }

    .admin-content-grid {
        grid-template-columns: 1fr;
    }

    .admin-stats-grid,
    .admin-download-grid,
    .approval-card,
    .approval-meta {
        grid-template-columns: 1fr;
    }

    .archive-category-hero,
    .archive-upload-callout,
    .archive-item-grid {
        grid-template-columns: 1fr;
    }

    .teacher-feature-row {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .site-header {
        position: relative;
        min-height: 0;
        padding: 10px 16px;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .main-nav {
        gap: 4px 14px;
        font-size: 0.9rem;
    }

    .language-switch a {
        min-width: 32px;
        min-height: 28px;
    }

    .hero {
        min-height: 640px;
    }

    .blog-hero {
        min-height: 390px;
    }

    .shop-hero,
    .docs-hero,
    .license-hero,
    .privacy-hero {
        min-height: 390px;
    }

    .download-hero {
        min-height: 420px;
    }

    .contact-hero {
        min-height: 390px;
    }

    .features-hero {
        min-height: 420px;
    }

    .hero-bg {
        object-position: 56% center;
    }

    .blog-hero-bg {
        object-position: 58% center;
    }

    .shop-hero-bg,
    .docs-hero-bg,
    .license-hero-bg,
    .privacy-hero-bg {
        object-position: 58% center;
    }

    .download-hero-bg {
        object-position: 58% center;
    }

    .contact-hero-bg {
        object-position: 58% center;
    }

    .features-hero-bg {
        object-position: 58% center;
    }

    .hero-content {
        width: calc(100% - 32px);
        padding-top: 34px;
        padding-bottom: 34px;
        margin-left: 16px;
    }

    .blog-hero-content {
        width: calc(100% - 32px);
        margin-left: 16px;
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .shop-hero-content,
    .docs-hero-content,
    .license-hero-content,
    .privacy-hero-content {
        width: calc(100% - 32px);
        margin-left: 16px;
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .download-hero-content {
        width: calc(100% - 32px);
        margin-left: 16px;
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .contact-hero-content {
        width: calc(100% - 32px);
        margin-left: 16px;
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .features-hero-content {
        width: calc(100% - 32px);
        margin-left: 16px;
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .hero h1 {
        font-size: clamp(1.82rem, 9vw, 2.55rem);
        line-height: 1.06;
    }

    .blog-hero-content h1 {
        font-size: clamp(1.82rem, 9vw, 2.55rem);
        line-height: 1.06;
    }

    .shop-hero-content h1,
    .docs-hero-content h1,
    .license-hero-content h1,
    .privacy-hero-content h1 {
        font-size: clamp(1.82rem, 9vw, 2.55rem);
        line-height: 1.06;
    }

    .download-hero-content h1 {
        font-size: clamp(1.82rem, 9vw, 2.55rem);
        line-height: 1.06;
    }

    .contact-hero-content h1 {
        font-size: clamp(1.82rem, 9vw, 2.55rem);
        line-height: 1.06;
    }

    .features-hero-content h1 {
        font-size: clamp(1.82rem, 9vw, 2.55rem);
        line-height: 1.06;
    }

    .hero-copy {
        margin-top: 16px;
        font-size: 0.98rem;
        line-height: 1.48;
    }

    .blog-hero-content p:not(.eyebrow) {
        font-size: 0.98rem;
        line-height: 1.48;
    }

    .shop-hero-content p:not(.eyebrow),
    .docs-hero-content p:not(.eyebrow),
    .license-hero-content p:not(.eyebrow),
    .privacy-hero-content p:not(.eyebrow) {
        font-size: 0.98rem;
        line-height: 1.48;
    }

    .download-hero-content p:not(.eyebrow) {
        font-size: 0.98rem;
        line-height: 1.48;
    }

    .contact-hero-content p:not(.eyebrow) {
        font-size: 0.98rem;
        line-height: 1.48;
    }

    .features-hero-content p:not(.eyebrow) {
        font-size: 0.98rem;
        line-height: 1.48;
    }

    .hero-actions {
        gap: 10px;
        margin-top: 20px;
    }

    .btn {
        width: 100%;
    }

    .intro-section,
    .features-section,
    .gallery-section,
    .blog-section {
        width: min(100% - 28px, 1180px);
    }

    .intro-section {
        padding-top: 54px;
    }

    .features-section,
    .gallery-grid,
    .download-grid {
        grid-template-columns: 1fr;
    }

    .features-section {
        padding-bottom: 46px;
    }

    .feature-card {
        min-height: 0;
    }

    .gallery-section,
    .audience-section,
    .blog-section,
    .download-section,
    .install-section,
    .class-setup-section,
    .shop-section,
    .manuals-section,
    .license-section,
    .privacy-section,
    .feature-tabs-section,
    .feature-story-section,
    .feature-summary-section,
    .project-hero,
    .project-story-section,
    .project-values-section,
    .contact-section {
        padding: 54px 0;
    }

    .contact-panel {
        padding: 24px;
    }

    .contact-form .btn {
        width: 100%;
    }

    .admin-login-body {
        padding: 14px;
    }

    .admin-login-panel,
    .admin-main {
        padding: 22px;
    }

    .admin-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-site-link {
        width: 100%;
        justify-content: center;
    }

    .admin-nav {
        grid-template-columns: 1fr;
    }

    .admin-section-card,
    .admin-placeholder,
    .admin-panel {
        padding: 24px;
    }

    .admin-stat-card {
        grid-template-columns: 54px minmax(0, 1fr);
        padding: 18px;
    }

    .admin-stat-card span {
        width: 54px;
        height: 54px;
    }

    .admin-blog-form .btn {
        width: 100%;
    }

    .feature-tabs {
        align-items: stretch;
        flex-direction: column;
    }

    .feature-tab {
        width: 100%;
    }

    .student-feature-placeholder {
        min-height: 280px;
        margin-bottom: 0;
        padding: 30px 22px;
    }

    .teacher-feature-row {
        padding: 18px;
    }

    .teacher-feature-icon {
        width: 76px;
        height: 76px;
        margin-bottom: 16px;
    }

    .teacher-feature-icon i {
        font-size: 2.25rem;
    }

    .teacher-feature-copy p {
        font-size: 1rem;
        line-height: 1.62;
    }

    .feature-story-frame {
        min-height: 300px;
    }

    .feature-story-text-slide p {
        font-size: clamp(1.7rem, 11vw, 3.25rem);
    }

    .download-card p {
        min-height: 0;
    }

    .archive-category-hero,
    .archive-item-card {
        padding: 18px;
    }

    .archive-empty {
        padding: 0 18px 24px;
    }

    .archive-item-grid {
        padding: 20px 18px 18px;
    }

    .archive-item-card .btn {
        width: 100%;
    }

    .archive-upload-callout {
        padding: 22px;
    }

    .archive-upload-callout .btn {
        width: 100%;
        min-width: 0;
    }

    .archive-upload-form-grid {
        grid-template-columns: 1fr;
    }

    .archive-upload-modal .modal-footer .btn {
        width: 100%;
    }

    .github-section {
        width: min(100% - 28px, 1180px);
        padding: 26px;
    }

    .github-section .btn {
        width: 100%;
    }

    .license-download {
        padding: 26px;
    }

    .privacy-card {
        grid-template-columns: 1fr;
    }

    .privacy-contact {
        padding: 26px;
    }

    .license-download .btn {
        width: 100%;
        min-width: 0;
    }

    .privacy-contact .btn {
        width: 100%;
        min-width: 0;
    }

    .install-steps li,
    .class-setup-steps li {
        grid-template-columns: 1fr;
    }

    .gallery-preview {
        min-height: 230px;
    }

    .footer-brand {
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .feature-story-slide,
    .feature-story-slide img {
        transition: none;
        animation: none;
    }
}
