:root {
    --ink: #07111a;
    --ink-2: #102033;
    --panel: rgba(16, 32, 51, 0.88);
    --cyan: #3de2ff;
    --magenta: #ff4fd8;
    --lime: #c6ff4a;
    --ember: #ff8a1e;
    --ember-2: #ffc56a;
    --paper: #eef6fb;
    --muted: #9eb0c3;
    --text: #e7f2f8;
    --line: rgba(61, 226, 255, 0.28);
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    --font: "Figtree", "Segoe UI", sans-serif;
    --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--font);
    background:
        radial-gradient(900px 420px at 8% -10%, rgba(255, 138, 30, 0.18), transparent 60%),
        radial-gradient(800px 480px at 100% 0%, rgba(61, 226, 255, 0.16), transparent 55%),
        radial-gradient(700px 500px at 80% 100%, rgba(255, 79, 216, 0.12), transparent 50%),
        var(--ink);
}
img { max-width: 100%; height: auto; }
a { color: var(--cyan); }
button, input { font: inherit; }
.skip {
    position: absolute;
    left: 12px;
    top: -40px;
    background: var(--ember);
    color: #1a0d04;
    padding: 8px 12px;
    z-index: 5;
}
.skip:focus { top: 8px; }

.lane-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 17, 26, 0.78);
    position: sticky;
    top: 0;
    z-index: 4;
    backdrop-filter: blur(10px);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--paper);
    min-width: 0;
}
.brand img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    flex: 0 0 auto;
    background: #f7f4ee;
    border-radius: 18px;
    padding: 4px;
    box-shadow: 0 0 0 2px rgba(255, 197, 106, 0.7);
}
.brand-copy { min-width: 0; }
.brand-copy small {
    display: block;
    color: var(--ember-2);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 700;
}
.brand-copy strong {
    display: block;
    font-family: var(--display);
    font-size: 1.15rem;
    line-height: 1.15;
    font-weight: 700;
}
.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--paper);
    border-radius: 999px;
    padding: 8px 14px;
}
.lane-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-self: center;
}
.menu-toggle { justify-self: end; }
.lane-menu a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--paper);
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
}
.lane-menu a .ico { width: 18px; height: 18px; }
.lane-menu a.is-shop {
    background: linear-gradient(180deg, #ffc56a, #ff7a12);
    color: #1a0d04;
    font-weight: 800;
    padding: 11px 18px;
    box-shadow: 0 0 0 2px rgba(255, 197, 106, 0.35), 0 10px 24px rgba(255, 122, 18, 0.35);
}
.lane-menu a[aria-current="page"]:not(.is-shop) {
    color: var(--cyan);
    border-color: var(--cyan);
    background: #102033;
}

main { padding: 28px 22px 48px; max-width: 1120px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 560; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; margin: 0 0 12px; }
h2 { font-size: 1.7rem; margin: 0 0 10px; }
p { line-height: 1.65; color: #d5e4ee; }
.lede { font-size: 1.08rem; max-width: 62ch; }

.first-board {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}
.play-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.play-row a {
    display: inline-flex;
    background: #fff;
    border-radius: 10px;
    padding: 4px;
    line-height: 0;
}
.play-row img { height: 52px; width: auto; display: block; }
.shot-fan { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shot-fan img, .frame img, .folio img, .reach-photo img {
    width: 100%;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.shot-fan img { height: 220px; }
.shot-fan img:first-child { height: 280px; grid-row: span 2; }

.path-beats, .node-row, .folio-grid, .promise-steps {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}
.path-beats, .node-row { grid-template-columns: repeat(4, 1fr); }
.home-wide {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
    align-items: center;
    margin-top: 36px;
}
.home-wide img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid var(--line);
}
.home-steps { margin-top: 36px; }
.step-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.step-row article, .home-duo article {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
}
.step-row img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
}
.step-row h3, .home-duo h2 { margin-top: 10px; }
.home-gallery { margin-top: 28px; }
.home-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 28px;
}
.duo-mark {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 14px;
    background: #0c1826;
}
.home-duo a { font-weight: 700; }
.beat, .node, .folio-card, .promise-steps article, .reach-card, .order-sheet, .status-pass {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
}
.beat .ico, .node .ico, .folio-card .ico, .promise-steps .ico, .reach-line .ico {
    width: 28px;
    height: 28px;
    color: var(--ember-2);
}
.beat h2, .node h2, .folio-card h2 { font-size: 1.15rem; }
.cross-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cross-links a, .text-btn {
    text-decoration: none;
    color: var(--ink);
    background: var(--paper);
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
}
.cross-links a.ember, .confirm-btn {
    background: linear-gradient(180deg, #ffc56a, #ff7a12);
}

.studio-folio { display: grid; gap: 22px; }
.folio-intro {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 18px;
    align-items: center;
}
.folio-intro img { width: 140px; height: 140px; object-fit: cover; border-radius: 22px; }
.folio-grid { grid-template-columns: 1.1fr 0.9fr; }
.folio-copy ul { margin: 0; padding-left: 18px; }
.folio-copy li { margin: 8px 0; }
.pair { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: center; }
.pair img { width: 240px; height: 140px; object-fit: cover; border-radius: 16px; }
.culture {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    align-items: center;
}
.culture img { width: 180px; height: 220px; object-fit: cover; border-radius: 16px; }

.path-page { display: grid; gap: 22px; }
.film {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.film img { height: 180px; width: 100%; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }
.online-note {
    border-left: 3px solid var(--lime);
    padding: 8px 12px;
    color: var(--lime);
}

.reach-layout {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 22px;
    align-items: start;
}
.reach-photo img {
    width: 168px;
    height: 168px;
    object-fit: contain;
    background: #f7f4ee;
    padding: 8px;
    box-shadow: 0 0 0 2px rgba(255, 197, 106, 0.7);
}
.reach-line {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 14px;
}
.reach-line a { color: var(--paper); }

.market { display: grid; gap: 18px; }
.coin-intro { max-width: 78ch; }
.coin-rail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: stretch;
}
.coin-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-height: 168px;
    margin: 0;
    text-align: left;
    font: inherit;
    color: var(--paper);
    background: #12263a;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 12px;
    cursor: pointer;
    overflow: visible;
    height: auto;
}
.coin-tile img { width: 72px; height: 72px; object-fit: contain; }
.coin-tile strong, .coin-tile em { display: block; }
.coin-tile strong { margin-top: 8px; line-height: 1.3; white-space: normal; }
.coin-tile em { color: var(--ember-2); font-style: normal; font-weight: 800; margin-top: auto; padding-top: 8px; }
.coin-tile.is-on {
    border-color: var(--ember);
    box-shadow: 0 0 0 2px rgba(255, 138, 30, 0.45);
}
.rail-empty { grid-column: 1 / -1; }
.order-sheet { display: grid; gap: 12px; }
.sheet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 6px; font-weight: 700; }
input[type="text"], input[type="email"] {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #0c1826;
    color: var(--paper);
    padding: 12px;
}
input[aria-invalid="true"] { border-color: #ff6b6b; }
input[readonly] {
    background: #182838;
    color: var(--paper);
    cursor: default;
}
.pay-row, .currency-switch { display: flex; flex-wrap: wrap; gap: 8px; }
fieldset.pay-row { border: 0; margin: 0; padding: 0; }
.pay-row legend { flex: 1 0 100%; font-weight: 700; padding: 0; }
.pay-row label, .currency-switch button, .pay-show {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    background: #0c1826;
    color: var(--paper);
    font-weight: 700;
}
.pay-show { color: var(--muted); }
.currency-switch button.is-on, .pay-row input:checked + span {
    background: var(--cyan);
    color: #06202a;
}
.pay-row input { position: absolute; opacity: 0; }
.pay-row label { position: relative; }
.agree {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-weight: 500;
}
.order-summary { margin: 0; color: var(--ember-2); font-weight: 700; }
.confirm-btn {
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
    cursor: pointer;
    color: #1a0d04;
}
.confirm-btn:disabled { opacity: 0.6; cursor: wait; }
.order-notes {
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid rgba(255, 107, 107, 0.45);
    border-radius: 12px;
    padding: 8px 12px;
}
.order-notes ul { margin: 0; padding-left: 18px; }
.promise { margin-top: 8px; }
.promise-steps { grid-template-columns: repeat(4, 1fr); }
.promise-steps p, .status-pass p { margin: 8px 0 0; }

.status-pass { max-width: 720px; margin: 0 auto; }
.status-pass.ok { border-color: var(--lime); }
.status-pass.bad { border-color: #ff6b6b; }
.pass-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px dashed var(--line);
    padding-bottom: 10px;
}
.detail-list { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 16px 0; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; }
.seal {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-size: 1.6rem;
    margin-bottom: 8px;
}
.seal.ok { background: var(--lime); color: #10220a; }
.seal.bad { background: #ff6b6b; color: #2a0909; }

.lane-foot {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 22px;
    border-top: 1px solid var(--line);
    background: #050b12;
}
.lane-foot a { color: var(--paper); text-decoration: none; }
.foot-links, .foot-legal { display: grid; gap: 6px; }
.foot-brand p, .foot-reach p { margin: 6px 0; color: var(--muted); }

@media (max-width: 900px) {
    .lane-bar { grid-template-columns: 1fr auto; }
    .brand { grid-column: 1; grid-row: 1; }
    .menu-toggle { display: inline-flex; grid-column: 2; grid-row: 1; }
    .lane-menu { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
    .lane-menu {
        grid-column: 1 / -1;
        display: flex;
        justify-content: flex-start;
    }
    .lane-menu a:not(.is-shop) { display: none; }
    .lane-menu.is-open a:not(.is-shop) { display: inline-flex; }
    .lane-menu a {
        width: auto;
        min-height: 0;
        flex-direction: row;
        justify-content: flex-start;
    }
    .lane-menu.is-open a:not(.is-shop) { background: #102033; }
    .lane-menu a.is-shop {
        display: inline-flex;
        margin-left: auto;
        background: linear-gradient(180deg, #ffc56a, #ff7a12);
        color: #1a0d04;
    }
    .first-board, .folio-grid, .pair, .culture, .reach-layout, .sheet-grid, .path-beats, .node-row, .promise-steps, .film, .lane-foot, .home-wide, .step-row, .home-duo {
        grid-template-columns: 1fr;
    }
    .folio-intro { grid-template-columns: 96px 1fr; }
    .shot-fan img, .shot-fan img:first-child, .film img { height: 180px; grid-row: auto; }
    .coin-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
