
:root {
    --ink: #f3ecf9;
    --burgundy: #c9a6e8;
    --burgundy-dark: #e0c9f3;
    --gold: #cfc3dc;
    --cream: #f3ebe4;
    --blush: #12081a;
    --btn-bg: #2a1538;
    --btn-text: #f3ecf9;
    --panel: rgba(18, 8, 26, 0.82);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100vh;
    background-color: var(--blush);
    position: relative;
}

/* The banner covers the whole page and stays put while content scrolls over it. */
body::before {
    content: "";
    position: fixed;
    inset: 52px 0 0 0; /* starts right under the slim bar so the logo is not cut */
    background-image:
        linear-gradient(to bottom, rgba(18, 8, 26, 0.1) 0%, rgba(18, 8, 26, 0.3) 100%),
        url('images/seviath-banner.jpg');
    background-size: 100% 100%, cover;
    background-position: center, center;
    background-repeat: no-repeat;
    background-color: #12081a;
    z-index: -1;
}

a { color: var(--burgundy); }

/* slim top bar with the navigation inside */
.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 6vw;
    background: var(--panel);
    border-bottom: 2px solid var(--burgundy);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.nav a {
    color: var(--burgundy-dark);
    text-decoration: none;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid var(--burgundy);
    transition: background 0.15s ease, color 0.15s ease;
}
.nav a:hover { background: var(--burgundy); color: #12081a; }
.nav a[aria-current="page"] { background: var(--burgundy); color: #12081a; }

/* content blocks float over the banner as cream panels */
.hero, .section {
    max-width: 1100px;
    margin: 28px auto 0;
    padding: 32px;
    border-radius: 16px;
    background: var(--panel);
    border: 1px solid rgba(201, 166, 232, 0.4);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hero { text-align: center; }
/* leave the banner's logo visible above the first panel on big screens */
main > .hero:first-child { margin-top: 14vh; }

.hero-name {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    font-size: clamp(40px, 7vw, 88px);
    margin: 0;
    letter-spacing: -0.01em;
    color: var(--burgundy);
}

.hero-tagline {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 500;
    font-size: clamp(18px, 2.4vw, 26px);
    margin: 14px auto 0;
    max-width: 40ch;
    color: var(--ink);
}

.section-title {
    font-family: 'Fraunces', serif;
    font-weight: 600;
    font-size: clamp(24px, 3vw, 34px);
    margin: 0 0 24px;
    color: var(--burgundy-dark);
}

.btn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.proj-btn {
    background: var(--btn-bg);
    color: var(--btn-text);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    text-decoration: none;
    padding: 22px 18px;
    border-radius: 10px;
    border: 1px solid var(--burgundy);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
    overflow-wrap: anywhere;
}

.proj-btn:hover {
    background: var(--burgundy);
    color: #12081a;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

.download-btn { font-size: 18px; }
button.proj-btn { cursor: pointer; font-family: inherit; }
.notice { border: 1px solid var(--burgundy); border-radius: 10px; padding: 14px 18px; margin: 0 0 24px; background: rgba(201, 166, 232, 0.08); }
.c-section { border: 1px solid rgba(201, 166, 232, 0.4); border-radius: 12px; padding: 14px 18px; margin: 0 0 14px; }
.c-title { font-family: 'Fraunces', serif; font-size: 20px; margin: 0 0 4px; color: var(--burgundy-dark); }
.c-intro { margin: 0 0 12px; opacity: .8; }
.c-options { margin-top: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 18px; margin-top: 14px; }
.opt { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.opt input { margin-top: 4px; accent-color: var(--burgundy); }
.f-row { margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.f-row label { font-weight: 600; }
.f-row input, .f-row textarea, .f-row select { background: rgba(0, 0, 0, 0.45); color: var(--ink); border: 1px solid rgba(201, 166, 232, 0.4); border-radius: 8px; padding: 10px 12px; font: inherit; }
.f-row input:focus, .f-row textarea:focus, .f-row select:focus { outline: 2px solid var(--burgundy); }
.form-error { color: #ff8a8a; margin: 4px 0 12px; }
.form-ok { color: var(--burgundy-dark); font-weight: 600; margin: 12px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.agree { margin: 6px 0 4px; }
.h-captcha { margin: 14px 0; }
.cv-email { background: none; border: 1px solid var(--burgundy); color: var(--burgundy); border-radius: 8px; padding: 6px 14px; font: inherit; font-weight: 600; cursor: pointer; }
.cv-email:hover { background: var(--burgundy); color: #12081a; }

/* a card lives inside a section panel, so it adds no second box */
.about-logo { float: right; width: 180px; height: 180px; margin: 0 0 12px 18px; border-radius: 18px; }
@media (max-width: 560px) { .about-logo { width: 120px; height: 120px; margin-left: 12px; } }
.card {
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.6;
}
.card .section-title { margin-bottom: 12px; }
.card-sub {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    margin: 28px 0 12px;
    color: var(--burgundy-dark);
}
.tag-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-list li {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(201, 166, 232, 0.12);
    border: 1px solid rgba(201, 166, 232, 0.4);
    color: var(--burgundy-dark);
}
code { background: rgba(201, 166, 232, 0.12); padding: 1px 6px; border-radius: 4px; }
.tool-card { margin-top: 8px; }
.gallery-title { font-family: 'Fraunces', serif; font-size: 22px; margin: 32px 0 14px; color: var(--burgundy-dark); }
.gallery-sub { font-family: 'Space Grotesk', sans-serif; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin: 18px 0 8px; color: var(--burgundy); opacity: .8; }
.section-intro { margin: -12px 0 20px; line-height: 1.5; }
.feature-list { padding-left: 20px; margin: 0; }
.feature-list li { margin-bottom: 6px; }
.cv-item { padding: 0 0 18px; margin: 0 0 18px; border-bottom: 1px solid rgba(201, 166, 232, 0.2); }
.cv-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.cv-meta { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--burgundy); margin: 0 0 4px; }
.cv-title { font-family: 'Fraunces', serif; font-size: 19px; margin: 0 0 2px; color: var(--burgundy-dark); }
.cv-org { font-weight: 600; margin: 0 0 8px; opacity: .8; }
.cv-skills-h { font-weight: 700; margin: 4px 0 6px; }
.cv-skills { columns: 2 280px; column-gap: 28px; margin: 0 0 8px; padding-left: 20px; }
.cv-skills li { margin-bottom: 4px; break-inside: avoid; }
.cv-level { font-style: italic; opacity: .75; margin: 6px 0 0; }
.cv-open { display: inline-block; margin-top: 8px; font-weight: 600; }
.cv-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.cv-facts span { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--burgundy); }

.video-frame { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 12px 0; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 12px; }
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 18px 0 8px; }
.listing { display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid rgba(201, 166, 232, 0.35); border-radius: 12px; background: rgba(18, 8, 26, 0.55); }
.listing-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: #12081a; }
.listing-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.listing-title { margin: 6px 0 0; font-size: 1rem; }
.listing-desc, .listing-license { margin: 0; font-size: 0.85rem; opacity: .85; }
.listing-license { opacity: .65; font-size: 0.78rem; }
.listing-price { margin: 4px 0; font-weight: 700; color: #c9a6e8; }
.listing-btn { margin-top: auto; text-align: center; }
.card-by { margin: 0 0 12px; font-size: 0.9rem; opacity: .75; letter-spacing: .02em; }
.footer {
    max-width: 1100px;
    margin: 28px auto 28px;
    padding: 14px;
    border-radius: 12px;
    background: var(--panel);
    text-align: center;
    color: var(--ink);
    font-size: 14px;
}

.empty-note {
    opacity: 0.7;
    font-size: 14px;
    font-style: italic;
}

@media (max-width: 760px) {
    body::before { inset: 0; }
    main > .hero:first-child { margin-top: 16px; }
    .hero, .section { margin: 16px 12px 0; padding: 22px; }
    .footer { margin: 16px 12px 16px; }
}
