@font-face {
    font-family: "Figtree";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("fonts/figtree.woff2") format("woff2");
}
@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 560;
    font-display: swap;
    src: url("fonts/fraunces.woff2") format("woff2");
}
@font-face {
    font-family: "Courier Prime";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/courier-400.woff2") format("woff2");
}
@font-face {
    font-family: "Courier Prime";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/courier-700.woff2") format("woff2");
}
:root {
    --ink: #241a4a;
    --ink-soft: #4d4574;
    --paper: #f5f3ff;
    --paper-2: #ffffff;
    --card: #ffffff;
    --line: #e3def6;
    --amber: #6d4dff;
    --amber-2: #8d74ff;
    --ember: #5336e8;
    --side: #2a2160;
    --side-text: #f6f3ff;
    --muted: #746c96;
    --ok: #2f8a62;
    --shadow: 0 24px 60px rgba(80, 50, 180, .14);
    --font: "Figtree", "Segoe UI", sans-serif;
    --serif: "Fraunces", "Times New Roman", serif;
    --mono: "Courier Prime", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
}
body.landing { background: #fff; color: var(--ink); }
a { color: inherit; }
img { max-width: 100%; height: auto; }

#loadbar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 3000;
    background: linear-gradient(90deg, #b7a6ff, #6d4dff);
    box-shadow: 0 0 12px rgba(109, 77, 255, .55);
    pointer-events: none;
    opacity: 0;
}
#loadbar.run { width: 72%; opacity: 1; transition: width .45s ease; }
#loadbar.done { width: 100%; opacity: 0; transition: width .2s ease, opacity .35s ease .15s; }

.btn-amber, .btn-ink, .btn-ghost {
    border-radius: 999px;
    padding: .7rem 1.15rem;
    font-weight: 600;
    letter-spacing: -.01em;
}
.btn-amber { background: var(--amber); color: #fff; border: 0; }
.btn-amber:hover { background: var(--ember); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; border: 0; }
.btn-ink:hover { background: #3a2d78; color: #fff; }
.btn-ghost { background: transparent; color: var(--side-text); border: 1px solid rgba(246, 243, 255, .28); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: white; }
.btn-line { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1.15rem; font-weight: 600; }
.btn-line:hover { border-color: #c9bef0; color: var(--ink); }
.btn .spin { width: 1rem; height: 1rem; border-width: .15em; }

.brand {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: .65rem;
    width: auto;
    color: inherit;
    font-weight: 700;
    letter-spacing: -.03em;
    text-decoration: none;
    background: transparent;
}
.brand img { width: 36px; height: 36px; display: block; }
.brand span { letter-spacing: -.04em; font-size: 1.15rem; }

.kicker {
    letter-spacing: .18em;
    text-transform: uppercase;
    font-size: .72rem;
    color: var(--amber);
    font-weight: 700;
}
.band h2, .page-head h1, .auth-card h1, .hero h1 {
    font-family: var(--serif);
    font-weight: 560;
    letter-spacing: -.03em;
}
.module, .step, .panel-card, .auth-card, .stat, .bento article {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
}
.muted, .module span, .step span { color: var(--muted); }

.land-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 5vw;
    background: rgba(255,255,255,.86);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(227, 222, 246, .8);
}
.land-nav nav { display: flex; gap: .55rem; align-items: center; }
.land-nav a.quiet { text-decoration: none; color: var(--ink-soft); font-weight: 600; padding: .4rem .5rem; }
.hero {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3.5rem;
    align-items: center;
    padding: 3.2rem 5vw 4rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(520px 320px at 88% 8%, rgba(141, 116, 255, .35), transparent 70%),
        radial-gradient(420px 280px at 8% 80%, rgba(196, 181, 255, .45), transparent 70%),
        #fff;
}
.domain-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 999px;
    padding: .28rem .7rem;
    background: #efeaff;
    color: #5336e8;
    font-weight: 700;
    font-size: .82rem;
}
.domain-pill i { width: 7px; height: 7px; border-radius: 50%; background: #6d4dff; display: block; }
.hero h1 {
    font-size: clamp(3.3rem, 6.4vw, 5.8rem);
    line-height: .94;
    margin: .9rem 0 .8rem;
    color: var(--ink);
}
.hero h1 em { font-style: italic; color: #6d4dff; }
.lede { font-size: 1.14rem; max-width: 36rem; color: var(--ink-soft); }
.hero-actions { display: flex; gap: .7rem; margin-top: 1.5rem; flex-wrap: wrap; }
.stage {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 1rem;
}
.stage-top { display: flex; gap: .35rem; margin-bottom: .8rem; }
.stage-top span { width: 9px; height: 9px; border-radius: 50%; background: #ddd4ff; }
.stage-top span:first-child { background: #6d4dff; }
.script-float {
    background: linear-gradient(180deg, #fbfaff, #fff);
    border-radius: 18px;
    padding: 1.3rem 1.2rem 1.1rem;
    font-family: var(--mono);
    color: var(--ink);
}
.slug { font-weight: 700; letter-spacing: .04em; margin-bottom: .8rem; color: #5336e8; }
.script-float p { margin: 0 0 .65rem; }
.cue { text-align: center; font-weight: 700; margin-top: .8rem; }
.dialogue { text-align: center; max-width: 16rem; margin: .15rem auto 0; }
.band { padding: 4.5rem 5vw; background: #fff; }
.band.soft { background: var(--paper); }
.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1rem; margin-top: 1.4rem; }
.bento .tall { grid-row: span 2; background: linear-gradient(180deg, #6d4dff, #8d74ff); color: #fff; border: 0; }
.bento .tall span { color: rgba(255,255,255,.82); }
.bento article, .step { padding: 1.25rem; }
.bento b, .step b { display: block; font-size: 1.2rem; margin: .35rem 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.2rem; }
.num { font-family: var(--serif); font-style: italic; color: #6d4dff; font-size: 1.6rem; }
.cta {
    margin: 0 5vw 3rem;
    padding: 2.4rem 2rem;
    border-radius: 28px;
    background: linear-gradient(120deg, #6d4dff, #9a84ff 55%, #c4b5ff);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.cta h2 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); margin: 0; letter-spacing: -.03em; }
.cta .btn-ink { background: #fff; color: #2a2160; }
.site-foot {
    background:
        radial-gradient(640px 280px at 12% 0%, rgba(141, 116, 255, .35), transparent 70%),
        #22184a;
    color: #f6f3ff;
    padding: 3.4rem 5vw 0;
    overflow: hidden;
}
.foot-grid {
    display: grid;
    grid-template-columns: 1.45fr .7fr .7fr 1fr;
    gap: 2rem 1.5rem;
    align-items: start;
}
.site-foot .brand span { color: #fff; }
.foot-lede { color: #d9d0ff; max-width: 22rem; margin: .85rem 0 1rem; }
.foot-label {
    letter-spacing: .16em;
    text-transform: uppercase;
    font-size: .72rem;
    font-weight: 700;
    color: #c4b5ff;
    margin: 0 0 .7rem;
}
.site-foot .foot-grid a:not(.brand):not(.btn) {
    display: block;
    color: #f6f3ff;
    text-decoration: none;
    font-weight: 600;
    padding: .22rem 0;
}
.site-foot .foot-grid a:not(.brand):not(.btn):hover { color: #fff; }
.foot-start .btn { margin-top: .2rem; }
.foot-mark {
    margin: .85rem 0 0;
    padding: .08em 0 .2em;
    font-family: var(--serif);
    font-weight: 560;
    font-size: clamp(4.2rem, 12vw, 8.4rem);
    line-height: 1;
    letter-spacing: -.055em;
    text-align: center;
    color: rgba(255, 255, 255, .07);
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .38);
    user-select: none;
}
.foot-bar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2.4rem;
    padding: 1.1rem 0 .2rem;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #c8bde8;
    font-size: .92rem;
}
.kicker.light { color: #efeaff; }
.hero-visual { position: relative; }
.hero-visual > img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 28px;
    display: block;
}
.script-float.float-card {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    margin: 0;
    box-shadow: var(--shadow);
}
.facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .8rem;
    padding: 0 5vw 1rem;
    background: #fff;
}
.facts article, .roles article {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1rem 1.05rem;
}
.facts b, .roles b { display: block; margin-bottom: .2rem; }
.facts span, .roles span { color: var(--muted); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.6rem; align-items: center; }
.shot, .wide-shot { width: 100%; object-fit: cover; border-radius: 28px; display: block; }
.shot { height: 520px; }
.wide-shot { height: 380px; margin: 1.2rem 0; }
.reasons { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .75rem; }
.reasons li { padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.reasons b { display: block; }
.reasons span { color: var(--muted); }
.gallery { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 240px 240px; gap: .8rem; margin-top: 1.3rem; }
.gallery figure { margin: 0; position: relative; border-radius: 24px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .g-tall { grid-row: span 2; }
.gallery figcaption {
    position: absolute;
    left: 1rem;
    bottom: .9rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 8px 24px rgba(20, 10, 40, .45);
}
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.faq { margin-top: 1.2rem; max-width: 46rem; }
.faq details { border: 1px solid var(--line); border-radius: 16px; margin-bottom: .55rem; background: #fff; }
.faq summary { font-weight: 700; color: var(--ink); cursor: pointer; padding: .9rem 1rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0; padding: 0 1rem 1rem; color: var(--ink-soft); }
.faq details[open] summary { background: #efeaff; color: #2a2160; }
.lang-switch { display: inline-flex; gap: .45rem; align-items: center; }
.lang-switch a { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; opacity: .45; }
.lang-switch a.on { opacity: 1; }
.panel-top .lang-switch { margin-left: auto; }
.auth-story .lang-switch { margin-top: 1rem; }
.auth-story .lang-switch a { color: #fff; }
.auth-story .kicker { color: #d9d0ff; }
.auth-story .muted { color: #ddd6f5; }

/* Auth */
.auth-screen {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--side);
}
.auth-story {
    padding: 2rem 3rem;
    color: var(--side-text);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.auth-story h2 {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 4vw, 4.2rem);
    line-height: .95;
    letter-spacing: -.04em;
    font-weight: 560;
}
.auth-pane {
    background: var(--paper);
    display: grid;
    place-items: center;
    padding: 2rem 1.2rem;
}
.auth-card { width: min(440px, 100%); padding: 1.5rem; box-shadow: var(--shadow); }
.auth-card .form-control, .panel-card .form-control, .panel-card .form-select, .auth-card .form-select {
    border-radius: 12px;
    border-color: var(--line);
    background: var(--paper-2);
    padding: .7rem .85rem;
}
.auth-links { display: flex; gap: .8rem; margin-top: .8rem; font-size: .92rem; }
.auth-links a { color: var(--ink-soft); }

/* Panel */
.panel-frame { min-height: 100vh; display: flex; background:
    radial-gradient(900px 420px at 100% -10%, rgba(109,77,255,.16), transparent 50%),
    var(--paper);
}
.panel-side {
    width: 272px;
    background: var(--side);
    color: var(--side-text);
    border-right: 0;
}
.side-inner { display: flex; flex-direction: column; min-height: 100%; padding: 1.1rem .9rem 1rem; }
.side-label {
    margin: 1.15rem .55rem .35rem;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #c8bde8;
}
.ico { width: 1.15rem; height: 1.15rem; flex: none; display: inline-block; vertical-align: -0.18em; }
.btn .ico { margin-right: .35rem; }
.side-note { margin: .85rem .55rem 0; color: #d9d0ff; font-size: .88rem; }
.side-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .65rem;
    text-decoration: none;
    color: #efeaff;
    border-radius: 12px;
    padding: .62rem .7rem;
    margin-bottom: .15rem;
}
.side-link .pill { margin-left: auto; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
.btn-ghost .ico { margin: 0; }
.side-link:hover { background: rgba(255,255,255,.05); color: white; }
.side-link.active { background: rgba(255,255,255,.14); color: #fff; }
.side-foot { margin-top: auto; padding-top: 1rem; }
.who { display: flex; gap: .7rem; align-items: center; margin-bottom: .7rem; }
.avatar {
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    background: #efeaff; color: #5336e8; font-weight: 700;
}
.who small { display: block; color: #c8bde8; }
.who div { font-size: .92rem; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel-main { flex: 1; min-width: 0; }
.panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1.4rem;
}
.panel-body { padding: .2rem 1.4rem 2.4rem; max-width: 1120px; }
.top-guide { color: var(--muted); font-weight: 600; }
.page-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.page-head h1, .proj-bar h1 { font-size: clamp(1.8rem, 3vw, 2.35rem); margin: .15rem 0 0; font-family: var(--serif); font-weight: 560; letter-spacing: -.03em; }
.ptabs { display: flex; gap: .35rem; overflow: auto; margin: .2rem 0 1rem; padding-bottom: .2rem; }
.ptabs a { text-decoration: none; color: var(--ink-soft); font-weight: 600; padding: .4rem .75rem; border-radius: 999px; white-space: nowrap; }
.ptabs a.on, .ptabs a:hover { background: #efeaff; color: #5336e8; }
.stats a.stat { text-decoration: none; color: inherit; }
.hint { color: var(--muted); margin: .35rem 0 0; max-width: 40rem; }
.guide {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .7rem;
    padding: 0;
    margin: 0 0 1rem;
}
.guide li {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: .85rem .9rem;
}
.guide .ico { width: 1.35rem; height: 1.35rem; color: #6d4dff; margin-top: .1rem; }
.guide b { display: block; }
.guide span { color: var(--ink-soft); }
.guide-tight { margin-bottom: .9rem; }
.empty {
    display: grid;
    justify-items: start;
    gap: .35rem;
    background: #fff;
    border: 1px dashed #c9bef0;
    border-radius: 18px;
    padding: 1.4rem 1.2rem;
    color: var(--ink-soft);
}
.empty .ico { width: 1.6rem; height: 1.6rem; color: #6d4dff; }
.empty b { color: var(--ink); }
.empty-slim { border: 0; padding: .4rem 0 0; background: transparent; }
.note { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: .55rem; }
.note .ico { color: #6d4dff; margin-top: .15rem; }
.note small, .stat small, .list-copy small { display: block; color: var(--muted); font-weight: 500; }
.note-new { border-color: #c9bef0; background: #fbfaff; }
.panel-card { padding: 1.1rem; box-shadow: 0 10px 30px rgba(28,20,10,.05); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1rem; }
.stat { padding: 1rem 1.05rem; }
.stat .ico { color: #6d4dff; margin-bottom: .35rem; }
.stat b { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 560; line-height: 1; }
.list-project {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    text-decoration: none;
    margin-bottom: .55rem;
}
.list-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #efeaff;
    color: #5336e8;
}
.list-copy { flex: 1; min-width: 0; }
.list-copy strong, .list-copy small { display: block; }
.list-project .ico { color: #8d74ff; }
.list-project:hover { border-color: #c9bef0; }
.pill {
    border-radius: 999px;
    padding: .15rem .55rem;
    background: #efeaff;
    color: #5336e8;
    font-size: .78rem;
}
.alert { border: 0; border-radius: 14px; }
.table { --bs-table-bg: transparent; }

.studio {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 1rem;
    align-items: start;
}
.script-sheet {
    background: var(--card);
    border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1.4rem 1.3rem 1.1rem;
}
.script-meta { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: .6rem; margin-bottom: .4rem; }
.script-sheet .form-control, .script-sheet .form-select {
    font-family: var(--mono);
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
}
.script-sheet .form-control:focus, .script-sheet .form-select:focus {
    border-color: var(--amber);
    box-shadow: none;
    background: transparent;
}
.block-row { margin-bottom: .35rem; }
#save-state { color: var(--ok); font-size: .85rem; }
.rail .panel-card + .panel-card { margin-top: .75rem; }
.rail-help { color: var(--muted); font-size: .9rem; margin: .45rem 0 0; }
.credit-line { display: flex; align-items: center; gap: .45rem; margin-top: .8rem; }
.credit-line .ico { color: #6d4dff; }
.kicker .ico { width: .95rem; height: .95rem; margin-right: .2rem; vertical-align: -0.12em; }
.form-label .ico { width: 1rem; height: 1rem; margin-right: .2rem; color: #6d4dff; }
.job-live { border-left: 3px solid var(--amber); }

@media (min-width: 992px) {
    .panel-side.offcanvas-lg {
        position: sticky;
        top: 0;
        height: 100vh;
        transform: none !important;
        visibility: visible !important;
        background: #2a2160 !important;
        color: #f6f3ff !important;
    }
}
@media (max-width: 991px) {
    .hero, .bento, .steps, .auth-screen, .studio, .stats, .script-meta, .cta, .facts, .split, .roles, .gallery, .foot-grid, .guide { grid-template-columns: 1fr; }
    .gallery { grid-template-rows: none; }
    .gallery .g-tall { grid-row: auto; min-height: 360px; }
    .shot, .wide-shot, .hero-visual > img { height: 280px; }
    .bento .tall { grid-row: auto; }
    .cta { display: grid; margin-left: 1.1rem; margin-right: 1.1rem; }
    .auth-story { display: none; }
    .hero { min-height: auto; padding-top: 1rem; }
    .land-nav { flex-wrap: wrap; gap: .6rem; }
    .btn-amber, .btn-ink, .btn-ghost { padding: .55rem .9rem; }
    .panel-side { width: min(320px, 88vw); }
    .land-nav, .band, .site-foot, .hero, .facts { padding-left: 1.1rem; padding-right: 1.1rem; }
}
