:root {
    --paper: #f4f1eb;
    --ink: #151515;
    --muted: #6e6b66;
    --line: rgba(21, 21, 21, 0.18);
    --red: #df6b1b;
    --white: #fff;
    --header-height: 76px;
    --content-width: 1600px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: "Inter", "Noto Sans JP", sans-serif;
    -webkit-font-smoothing: antialiased;
}

main {
    position: relative;
    z-index: 2;
}

.site-header {
    z-index: 100;
}

.genre-bar {
    z-index: 90;
}

.jp-display,
.jp-heading {
    font-family: "Noto Sans JP", sans-serif;
    font-feature-settings: "palt";
}

.jp-display {
    font-weight: 900;
}

.jp-heading {
    font-weight: 800;
}

button,
a {
    color: inherit;
    font: inherit;
}

button {
    border: 0;
}

a {
    text-decoration: none;
}

.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: var(--header-height);
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(22px, 4vw, 64px);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    background: rgba(244, 241, 235, 0.2);
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled,
body.works-visible .site-header {
    color: var(--ink);
    border-color: var(--line);
    background: rgba(244, 241, 235, 0.2);
}

.brand {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.brand-mark {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.78rem;
}

.main-nav {
    position: relative;
    z-index: 4;
    display: flex;
    height: 100%;
    align-items: center;
    gap: clamp(22px, 4vw, 56px);
}

.nav-link {
    position: relative;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
    background: none;
    cursor: pointer;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    isolation: isolate;
}

.nav-link.active {
    border-color: currentColor;
}

.works-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-icon {
    position: relative;
    width: 11px;
    height: 11px;
}

.toggle-icon::before,
.toggle-icon::after {
    position: absolute;
    top: 5px;
    left: 0;
    width: 11px;
    height: 1px;
    background: currentColor;
    content: "";
    transition: transform 0.3s ease;
}

.toggle-icon::after {
    transform: rotate(90deg);
}

.works-toggle[aria-expanded="true"] .toggle-icon::after {
    transform: rotate(0);
}

.genre-bar {
    position: fixed;
    z-index: 90;
    top: var(--header-height);
    left: 0;
    width: 100%;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: rgba(244, 241, 235, 0.18);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(-100% - var(--header-height)));
    transition:
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.2s ease,
        visibility 0s linear 0.42s;
}

.genre-bar.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    transition:
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.2s ease,
        visibility 0s;
}

.genre-bar-inner {
    position: relative;
    z-index: 4;
    display: flex;
    max-width: var(--content-width);
    min-height: 94px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: auto;
    padding: 18px clamp(22px, 4vw, 64px);
}

.fluid-glass-bar {
    isolation: isolate;
}

.fluid-glass-layer {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    pointer-events: none;
}

.fluid-glass-layer {
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.38) 0%,
            rgba(255, 255, 255, 0.12) 48%,
            rgba(244, 241, 235, 0.08) 100%
        );
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        inset 0 -1px 0 rgba(72, 65, 58, 0.1),
        0 8px 28px rgba(57, 48, 39, 0.06);
    backdrop-filter: blur(12px) saturate(1.06);
    -webkit-backdrop-filter: blur(12px) saturate(1.06);
}

.fluid-glass-layer::before,
.fluid-glass-layer::after {
    position: absolute;
    inset: 0;
    content: "";
}

.fluid-glass-layer::before {
    background: linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.22) 42%, transparent 64%);
    mix-blend-mode: screen;
    opacity: 0.5;
}

.fluid-glass-layer::after {
    inset: 3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.12);
}

.site-header .fluid-glass-layer {
    border-radius: 0 0 18px 18px;
}

.genre-bar .fluid-glass-layer {
    border-radius: 0 0 24px 24px;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .fluid-glass-layer {
        background: rgba(244, 241, 235, 0.88);
    }
}

.genre-caption,
.eyebrow,
.detail-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.genre-caption {
    color: var(--muted);
    white-space: nowrap;
}

.genre-options {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 42px);
}

.genre-button {
    position: relative;
    padding: 10px 0;
    background: none;
    cursor: pointer;
    font-size: clamp(0.76rem, 1vw, 0.92rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    isolation: isolate;
}

.genre-button {
    transition: color 0.3s ease, opacity 0.3s ease;
}

.genre-button:hover {
    color: #d96010;
}

.genre-button::after {
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--red);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.char,
.title-char {
    display: inline-block;
    white-space: pre;
}

@keyframes glitchRGB {
    0% { opacity: 0; text-shadow: 2px 0 0 #e23636, -2px 0 0 #2563eb; }
    20% { opacity: 1; text-shadow: -2px 0 0 #e23636, 2px 0 0 #2563eb; }
    40% { text-shadow: 2px 0 0 #e23636, -2px 0 0 #2563eb; }
    60% { text-shadow: -2px 0 0 #e23636, 2px 0 0 #2563eb; }
    80% { text-shadow: 1px 0 0 #e23636, -1px 0 0 #2563eb; }
    100% { opacity: 1; text-shadow: 0 0 0 transparent; }
}

.genre-button:hover::after,
.genre-button.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.hero {
    position: relative;
    display: flex;
    min-height: 100svh;
    align-items: flex-end;
    overflow: hidden;
    padding: 120px clamp(22px, 7vw, 110px) 10vh;
    color: var(--white);
    background: #111;
}

.hero-video,
.hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-video {
    object-fit: cover;
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08) 72%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.45), transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, 980px);
    margin-bottom: clamp(54px, 9vh, 110px);
}

.eyebrow {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.62);
}

.eyebrow.dark {
    color: var(--red);
}

.hero h1 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(2.35rem, 4.25vw, 5rem);
    letter-spacing: -0.055em;
    line-height: 1.14;
}

.hero-line {
    display: block;
}

.hero h1 .hero-accent {
    color: rgba(255, 255, 255, 0.53);
}

.hero-lead {
    max-width: 560px;
    margin: 40px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(0.9rem, 1.3vw, 1.08rem);
    line-height: 2;
}

.scroll-guide {
    position: absolute;
    z-index: 2;
    right: clamp(22px, 5vw, 78px);
    bottom: 9vh;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
}

.scroll-guide i {
    width: 44px;
    height: 1px;
    background: currentColor;
}

.story-section,
.disciplines,
.workflow-section,
.home-footer {
    max-width: var(--content-width);
    margin: auto;
    padding: clamp(100px, 13vw, 200px) clamp(22px, 6vw, 90px);
}

.workflow-section {
    max-width: var(--content-width);
    margin: auto;
    padding: 0 clamp(22px, 6vw, 90px) clamp(110px, 14vw, 210px);
}

.workflow-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    margin: 70px 0 0;
    padding: 0;
    list-style: none;
}

.workflow-list li {
    position: relative;
    min-width: 0;
    padding: 0 clamp(14px, 2vw, 28px);
    text-align: center;
}

.workflow-list li:not(:last-child)::after {
    position: absolute;
    top: 31px;
    right: -11px;
    width: 22px;
    height: 9px;
    border-top: 1px solid var(--muted);
    content: "";
}

.workflow-list li:not(:last-child)::before {
    position: absolute;
    z-index: 1;
    top: 27px;
    right: -11px;
    width: 8px;
    height: 8px;
    border-top: 1px solid var(--muted);
    border-right: 1px solid var(--muted);
    content: "";
    transform: rotate(45deg);
}

.workflow-icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin: 0 auto 22px;
    border: 1px solid var(--line);
    border-radius: 50%;
}

.workflow-icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.3;
}

.workflow-list span {
    color: var(--red);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.workflow-list h3 {
    margin: 9px 0 10px;
    font-size: clamp(0.85rem, 1.2vw, 1.05rem);
    font-weight: 600;
}

.workflow-list p {
    margin: 0;
    color: var(--muted);
    font-size: 0.73rem;
    line-height: 1.7;
}

.story-section {
    position: relative;
    display: grid;
    grid-template-columns: 0.12fr minmax(500px, 1.05fr) minmax(420px, 1fr);
    gap: clamp(28px, 4vw, 68px);
}

.section-number {
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 700;
}

.story-heading h2,
.section-heading-row h2 {
    margin: 0;
    font-size: clamp(2rem, 3.45vw, 3.85rem);
    letter-spacing: -0.045em;
    line-height: 1.42;
    line-break: strict;
    word-break: normal;
}

.story-heading h2 span {
    display: block;
    white-space: nowrap;
}

.story-copy {
    padding-top: 40px;
}

.story-copy p {
    margin: 0 0 1.5em;
    color: #3f3d39;
    font-size: clamp(0.95rem, 1.25vw, 1.08rem);
    line-height: 2.15;
    line-break: strict;
    overflow-wrap: normal;
    word-break: normal;
}

.story-copy strong {
    color: var(--ink);
    font-weight: 700;
    text-decoration-color: rgba(223, 107, 27, 0.56);
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    white-space: nowrap;
}

@media (max-width: 1180px) and (min-width: 721px) {
    .story-section {
        grid-template-columns: 0.1fr minmax(390px, 0.95fr) minmax(360px, 1fr);
        gap: 32px;
    }

    .story-heading h2 {
        font-size: clamp(2rem, 3.6vw, 3rem);
    }
}

.story-copy p:last-child strong {
    color: var(--red);
}

.statement-section {
    display: grid;
    min-height: 76vh;
    place-content: center;
    padding: 100px 22px;
    color: #eef1f1;
    text-align: center;
    background:
        radial-gradient(circle at 50% 35%, rgba(106, 129, 139, 0.12), transparent 42%),
        #182126;
}

.statement-kicker {
    color: #91a5ad;
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.statement-section blockquote {
    margin: 45px 0 48px;
    font-size: clamp(2.5rem, 5.2vw, 5.7rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.25;
}

.statement-section blockquote span {
    color: #aebfc5;
    font-weight: 700;
}

.statement-section > p:last-child {
    max-width: 620px;
    margin: auto;
    color: rgba(230, 236, 237, 0.68);
    font-size: 0.94rem;
    line-height: 2.1;
}

.section-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 44px;
    border-bottom: 1px solid var(--line);
}

.section-heading-row > p {
    max-width: 350px;
    color: var(--muted);
    line-height: 1.8;
}

.discipline-list article {
    display: grid;
    grid-template-columns: 70px minmax(290px, 0.85fr) minmax(420px, 1.15fr);
    gap: clamp(28px, 4vw, 70px);
    padding: 56px 0;
    border-bottom: 1px solid var(--line);
}

.discipline-list span {
    color: var(--red);
    font-size: 0.72rem;
    font-weight: 700;
}

.discipline-title h3 {
    margin: 0;
    font-size: clamp(1.4rem, 2vw, 2.25rem);
    letter-spacing: -0.035em;
    line-height: 1.35;
}

.discipline-title small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.discipline-detail p {
    max-width: 500px;
    margin: 0;
    color: var(--muted);
    line-height: 1.9;
}

.discipline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.discipline-link {
    position: relative;
    margin-top: 20px;
    padding: 0 0 4px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    isolation: isolate;
}

.discipline-link:hover {
    border-color: var(--red);
    color: var(--red);
}

.works-teaser {
    display: flex;
    min-height: 66vh;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 80px clamp(22px, 7vw, 110px);
    color: var(--white);
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.2)),
        url("%23all/%23movie/%23SHOW%20REEL/2021-2026%20SHOWREEL.jpg") center / cover;
}

.bits-lab {
    --lab-pointer-x: 50%;
    --lab-pointer-y: 50%;
    position: relative;
    min-height: 1050px;
    overflow: hidden;
    color: #292723;
    background:
        radial-gradient(circle at 50% 110%, rgba(236, 112, 20, 0.12), transparent 42%),
        #f7f5f0;
    isolation: isolate;
}

.bits-lab::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background:
        radial-gradient(520px circle at 72% 18%, rgba(236, 112, 20, 0.07), transparent 68%),
        linear-gradient(rgba(42, 39, 35, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(42, 39, 35, 0.055) 1px, transparent 1px);
    background-size: auto, 64px 64px, 64px 64px;
    content: "";
}

.bits-aurora {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bits-aurora {
    top: -30%;
    left: -15%;
    width: 130%;
    height: 72%;
    background:
        radial-gradient(ellipse at 18% 48%, rgba(255, 255, 255, 0.92), transparent 38%),
        radial-gradient(ellipse at 48% 22%, rgba(224, 220, 213, 0.82), transparent 36%),
        radial-gradient(ellipse at 78% 54%, rgba(236, 112, 20, 0.24), transparent 38%);
    filter: blur(58px) saturate(1.05);
    opacity: 0.9;
    transform: rotate(-7deg) scale(1.05);
    animation: bitsAurora 18s ease-in-out infinite alternate;
}

.bits-lab-inner {
    position: relative;
    z-index: 6;
    max-width: var(--content-width);
    margin: auto;
    padding: clamp(100px, 10vw, 170px) clamp(22px, 5vw, 80px);
}

.bits-lab-heading {
    max-width: 1120px;
    margin-bottom: 72px;
}

.bits-lab-heading .eyebrow {
    color: #dc6817;
}

.bits-split-title {
    display: flex;
    flex-wrap: wrap;
    margin: 18px 0 22px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: clamp(3.2rem, 8vw, 9.5rem);
    font-weight: 900;
    letter-spacing: -0.085em;
    line-height: 0.96;
}

.bits-split-title span {
    display: inline-block;
    opacity: 0;
    filter: blur(8px);
    transform: translateY(24px);
}

.bits-active .bits-split-title span {
    animation: bitsSplitIn 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--char-index) * 35ms);
}

.bits-decrypt {
    max-width: 720px;
    min-height: 2em;
    color: rgba(42, 39, 35, 0.68);
    font-family: "Noto Sans JP", monospace;
    font-size: clamp(0.9rem, 1.25vw, 1.08rem);
    letter-spacing: 0.04em;
    line-height: 1.9;
}

.bits-marquee {
    overflow: hidden;
    margin: 0 calc(clamp(22px, 5vw, 80px) * -1) 64px;
    border-top: 1px solid rgba(42, 39, 35, 0.16);
    border-bottom: 1px solid rgba(42, 39, 35, 0.16);
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(14px);
}

.bits-marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 26px;
    padding: 16px 0;
    animation: bitsMarquee 42s linear infinite;
}

.bits-marquee span {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.bits-marquee i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #e66f1d;
    box-shadow: 0 0 12px rgba(230, 111, 29, 0.48);
}

.bits-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    perspective: 1200px;
}

.bits-card {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --pointer-x: 50%;
    --pointer-y: 50%;
    position: relative;
    min-height: 350px;
    overflow: hidden;
    padding: 30px;
    border: 1px solid rgba(42, 39, 35, 0.15);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(239, 236, 230, 0.72));
    box-shadow: 0 24px 60px rgba(57, 48, 39, 0.11);
    transform: translateY(0);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
    backdrop-filter: blur(18px);
}

.bits-card:hover {
    border-color: rgba(230, 111, 29, 0.62);
    box-shadow: 0 28px 64px rgba(57, 48, 39, 0.14);
    transform: translateY(-4px);
}

.bits-card > * {
    position: relative;
    z-index: 3;
}

.bits-card-number {
    display: block;
    margin-bottom: 150px;
    color: rgba(42, 39, 35, 0.44);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
}

.bits-card h3 {
    margin: 0 0 12px;
    font-size: clamp(1.35rem, 2vw, 2rem);
}

.bits-card p {
    margin: 0 0 22px;
    color: rgba(42, 39, 35, 0.66);
    line-height: 1.8;
}

.bits-card small {
    color: #d96010;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.bits-orb {
    position: absolute;
    top: 34px;
    right: 35px;
    width: 145px;
    height: 145px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 30%, #fff 0 4%, #ffd7ba 13%, #ed7a29 42%, #d5d0c8 72%);
    box-shadow: 0 0 42px rgba(230, 111, 29, 0.28), inset -18px -16px 30px rgba(72, 55, 41, 0.16);
    animation: bitsOrb 9s ease-in-out infinite;
}

.bits-electric {
    padding: 31px;
}

.bits-electric::before {
    position: absolute;
    z-index: 0;
    inset: -2px;
    padding: 2px;
    border-radius: inherit;
    background: conic-gradient(from var(--electric-angle), transparent 0 15%, #e66f1d 22%, #ffb16f 28%, transparent 35% 65%, #d65308 74%, transparent 82%);
    content: "";
    animation: bitsElectric 2.8s linear infinite;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
}

.bits-grid-field {
    position: absolute;
    z-index: 0;
    inset: 0;
    background-image: radial-gradient(circle, rgba(218, 99, 19, 0.48) 1px, transparent 1.5px);
    background-size: 19px 19px;
    mask-image: radial-gradient(circle at var(--pointer-x) var(--pointer-y), #000, transparent 60%);
    -webkit-mask-image: radial-gradient(circle at var(--pointer-x) var(--pointer-y), #000, transparent 60%);
    opacity: 0.5;
}

.bits-pixel-card::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(230, 111, 29, 0.24), transparent 48%);
    content: "";
}

.bits-pixels {
    position: absolute;
    z-index: 2;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(78, 73, 67, 0.52) 48%, transparent 48%) 0 0 / 18px 18px,
        linear-gradient(rgba(78, 73, 67, 0.52) 48%, transparent 48%) 0 0 / 18px 18px;
    opacity: 0.66;
    transition: opacity 0.7s steps(8), transform 0.7s steps(8);
}

.bits-pixel-card:hover .bits-pixels {
    opacity: 0.08;
    transform: scale(1.08);
}

.bits-interaction-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 76px;
    padding: 36px 0;
}

.bits-magnet-button {
    display: grid;
    width: 190px;
    height: 190px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(42, 39, 35, 0.48);
    border-radius: 50%;
    color: #292723;
    background: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    transition: color 0.35s ease, border-color 0.35s ease, background 0.35s ease, transform 0.35s ease;
    backdrop-filter: blur(14px);
}

.bits-magnet-button:hover {
    color: #fff;
    border-color: #e66f1d;
    background: #e66f1d;
    transform: translateY(-3px);
}

.bits-magnet-button span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    transition: transform 0.25s ease-out;
}

.bits-gradient-copy {
    text-align: right;
}

.bits-gradient-copy span {
    display: block;
    margin-bottom: 12px;
    color: rgba(42, 39, 35, 0.52);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
}

.bits-gradient-copy strong {
    color: transparent;
    background: linear-gradient(90deg, #292723, #e66f1d, #8b8379, #292723);
    background-size: 240% auto;
    background-clip: text;
    -webkit-background-clip: text;
    font-family: "Noto Sans JP", sans-serif;
    font-size: clamp(2.5rem, 6vw, 7rem);
    letter-spacing: -0.08em;
    animation: bitsGradient 5s linear infinite;
}

.bits-list-panel {
    display: grid;
    grid-template-columns: minmax(160px, 0.35fr) 1fr;
    gap: 50px;
    margin-top: 30px;
    padding-top: 48px;
    border-top: 1px solid rgba(42, 39, 35, 0.16);
}

.bits-list button {
    display: grid;
    width: 100%;
    grid-template-columns: 48px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 22px 14px;
    border-bottom: 1px solid rgba(42, 39, 35, 0.13);
    color: #292723;
    background: transparent;
    cursor: pointer;
    text-align: left;
    transition: padding 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.bits-list button:hover {
    padding-right: 24px;
    padding-left: 24px;
    color: #d96010;
    background: rgba(230, 111, 29, 0.07);
}

.bits-list button span {
    color: rgba(42, 39, 35, 0.42);
    font-size: 0.7rem;
}

.bits-list button i {
    font-style: normal;
    transition: transform 0.3s ease;
}

.bits-list button:hover i {
    transform: translateX(6px);
}

.bits-crosshair {
    position: absolute;
    z-index: 9;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 1px solid rgba(230, 111, 29, 0.74);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease, opacity 0.2s ease;
}

.bits-crosshair::before,
.bits-crosshair::after {
    position: absolute;
    top: 50%;
    left: 50%;
    background: rgba(230, 111, 29, 0.82);
    content: "";
    transform: translate(-50%, -50%);
}

.bits-crosshair::before {
    width: 38px;
    height: 1px;
}

.bits-crosshair::after {
    width: 1px;
    height: 38px;
}

.bits-pointer-inside .bits-crosshair {
    opacity: 0.75;
}

.bits-click-spark {
    position: absolute;
    z-index: 12;
    width: 2px;
    height: 2px;
    pointer-events: none;
    animation: bitsSparkLife 0.65s ease-out forwards;
}

.bits-click-spark i {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 26px;
    border-radius: 4px;
    background: linear-gradient(#fff, #e66f1d, transparent);
    transform-origin: 50% 0;
}

.bits-click-spark i:nth-child(1) { transform: rotate(0deg); }
.bits-click-spark i:nth-child(2) { transform: rotate(45deg); }
.bits-click-spark i:nth-child(3) { transform: rotate(90deg); }
.bits-click-spark i:nth-child(4) { transform: rotate(135deg); }
.bits-click-spark i:nth-child(5) { transform: rotate(180deg); }
.bits-click-spark i:nth-child(6) { transform: rotate(225deg); }
.bits-click-spark i:nth-child(7) { transform: rotate(270deg); }
.bits-click-spark i:nth-child(8) { transform: rotate(315deg); }

@property --electric-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

@keyframes bitsAurora {
    from { transform: translate3d(-2%, -2%, 0) rotate(-8deg) scale(1.02); }
    to { transform: translate3d(5%, 7%, 0) rotate(5deg) scale(1.16); }
}

@keyframes bitsNoise {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-2%, 3%); }
    50% { transform: translate(3%, -2%); }
    75% { transform: translate(2%, 2%); }
    100% { transform: translate(-3%, -3%); }
}

@keyframes bitsSplitIn {
    to { opacity: 1; filter: blur(0); transform: translateY(0) rotate(0); }
}

@keyframes bitsMarquee {
    to { transform: translateX(-50%); }
}

@keyframes bitsOrb {
    0%, 100% { transform: translateY(0) scale(1); filter: hue-rotate(0); }
    50% { transform: translateY(12px) scale(0.94); filter: hue-rotate(28deg); }
}

@keyframes bitsElectric {
    to { --electric-angle: 360deg; }
}

@keyframes bitsGradient {
    to { background-position: 240% center; }
}

@keyframes bitsSparkLife {
    0% { opacity: 1; transform: scale(0.2); }
    55% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.4); }
}

@media (max-width: 900px) {
    .bits-card-grid {
        grid-template-columns: 1fr;
    }

    .bits-card {
        min-height: 310px;
    }

    .bits-interaction-row,
    .bits-list-panel {
        align-items: flex-start;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .bits-gradient-copy {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bits-aurora,
    .bits-noise,
    .bits-marquee-track,
    .bits-gradient-copy strong,
    .bits-orb,
    .bits-electric::before {
        animation: none;
    }

    .bits-split-title span {
        opacity: 1;
        filter: none;
        transform: none;
    }

    .bits-crosshair,
    .bits-lab-canvas {
        display: none;
    }
}

.works-teaser h2 {
    margin: 0;
    font-size: clamp(2.8rem, 5.5vw, 6.5rem);
    letter-spacing: -0.055em;
    line-height: 1.14;
}

.outline-button {
    position: relative;
    display: flex;
    min-width: 240px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--white);
    background: transparent;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    transition: color 0.25s, background 0.25s;
    isolation: isolate;
}

.outline-button:hover {
    color: var(--ink);
    background: var(--white);
}

.contact-mail {
    display: inline-block;
    margin-top: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--line);
    font-size: clamp(1.15rem, 2.2vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.035em;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 110px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.footer-bottom small,
.social-small {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.social-small {
    display: flex;
    gap: 24px;
}

.social-small a:hover {
    color: var(--red);
}

.reveal {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.reveal .section-number,
.reveal .eyebrow,
.reveal h2,
.reveal .story-copy > p,
.reveal .section-heading-row > p,
.reveal .discipline-list article,
.reveal .workflow-list li,
.reveal .outline-button,
.reveal .contact-mail,
.reveal .footer-bottom {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.75s ease,
        transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible .section-number,
.reveal.visible .eyebrow,
.reveal.visible h2,
.reveal.visible .story-copy > p,
.reveal.visible .section-heading-row > p,
.reveal.visible .discipline-list article,
.reveal.visible .workflow-list li,
.reveal.visible .outline-button,
.reveal.visible .contact-mail,
.reveal.visible .footer-bottom {
    opacity: 1;
    transform: none;
}

.reveal.visible .story-copy > p:nth-child(1),
.reveal.visible .discipline-list article:nth-child(1),
.reveal.visible .workflow-list li:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal.visible .story-copy > p:nth-child(2),
.reveal.visible .discipline-list article:nth-child(2),
.reveal.visible .workflow-list li:nth-child(2) {
    transition-delay: 0.18s;
}

.reveal.visible .story-copy > p:nth-child(3),
.reveal.visible .discipline-list article:nth-child(3),
.reveal.visible .workflow-list li:nth-child(3) {
    transition-delay: 0.26s;
}

.reveal.visible .story-copy > p:nth-child(4) {
    transition-delay: 0.34s;
}

.reveal.visible .workflow-list li:nth-child(4) {
    transition-delay: 0.34s;
}

.reveal.visible .workflow-list li:nth-child(5) {
    transition-delay: 0.42s;
}

.works-page {
    min-height: 100vh;
    padding: calc(var(--header-height) + 184px) clamp(22px, 4vw, 64px) 100px;
}

.works-heading {
    max-width: var(--content-width);
    margin: 0 auto 70px;
}

.works-heading > div {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
}

.works-heading h1 {
    margin: 0 0 -0.08em;
    font-size: clamp(4rem, 11vw, 11rem);
    font-weight: 500;
    letter-spacing: -0.08em;
}

.works-heading h1.works-title-enter {
    animation: worksTitleEnter 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.works-heading div p {
    padding-bottom: 22px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.work-grid {
    display: grid;
    max-width: var(--content-width);
    grid-template-columns: repeat(4, 1fr);
    gap: 54px 18px;
    margin: auto;
}

.work-grid[data-filter="movie"],
.work-grid[data-filter="game"] {
    display: block;
}

.movie-genre-section + .movie-genre-section {
    margin-top: clamp(80px, 10vw, 150px);
}

.movie-genre-section {
    animation: workGroupEnter 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--group-index, 0) * 90ms + 80ms);
}

.movie-genre-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 34px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.movie-genre-heading span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.movie-genre-heading h2 {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-size: clamp(1.3rem, 2.3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.035em;
}

.movie-genre-heading > p {
    margin: 0;
    color: var(--muted);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.11em;
}

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

.work-card {
    min-width: 0;
    animation: workCardEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--work-delay, 90ms);
}

.work-card-button {
    width: 100%;
    padding: 0;
    color: inherit;
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.work-image-frame {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #ddd8d0;
}

.work-grid[data-filter="movie"] .work-image-frame {
    aspect-ratio: 16 / 9;
}

.work-grid[data-filter="music"] .work-image-frame {
    aspect-ratio: 1 / 1;
}

.work-grid[data-filter="game"] .work-image-frame,
.work-grid[data-filter="3DCG"] .work-image-frame,
.work-grid[data-filter="all"] .work-image-frame {
    aspect-ratio: 4 / 3;
}

.work-grid[data-filter="character"] .work-image-frame {
    aspect-ratio: 3 / 4;
}

.work-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.018);
    transition:
        opacity 0.5s ease,
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.45s ease;
}

.work-image-frame img.thumbnail-loaded {
    opacity: 1;
    transform: scale(1);
}

.work-open-mark {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: var(--ink);
    background: var(--white);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
}

.work-card-button:hover img.thumbnail-loaded {
    filter: saturate(1.03);
    transform: scale(1.022);
}

@keyframes worksTitleEnter {
    from {
        opacity: 0;
        filter: blur(7px);
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        filter: blur(0);
        transform: none;
    }
}

@keyframes workGroupEnter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes workCardEnter {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.work-card-button:hover .work-open-mark {
    opacity: 1;
    transform: none;
}

.work-info {
    padding: 17px 2px 0;
}

.work-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 9px;
    color: var(--muted);
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.work-meta-row span:first-child {
    color: var(--red);
}

.work-title {
    min-height: 2.7em;
    margin: 0;
    overflow: hidden;
    font-size: clamp(0.95rem, 1.25vw, 1.18rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.work-view {
    display: inline-block;
    margin-top: 16px;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--line);
    font-size: 0.59rem;
    font-weight: 700;
    letter-spacing: 0.13em;
}

.work-dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--paper);
}

.work-dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
}

.work-dialog[open]::backdrop {
    animation: dialog-backdrop-in 0.38s ease both;
}

@keyframes dialog-backdrop-in {
    from {
        background: rgba(0, 0, 0, 0);
    }

    to {
        background: rgba(0, 0, 0, 0.72);
    }
}

@keyframes mediaZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.975);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes detailFadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }

    100% {
        opacity: 1;
        transform: none;
    }
}

@keyframes speedDash {
    0% {
        opacity: 0;
        filter: blur(5px);
        transform: translateY(12px);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.work-dialog.opening .primary-media-item,
.work-dialog.opening .audio-player {
    animation: mediaZoomIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.work-dialog.opening .dialog-category,
.work-dialog.opening .detail-box,
.work-dialog.opening .dialog-sections,
.work-dialog.opening .next-work {
    animation: detailFadeIn 0.32s ease-out both;
}

.work-dialog.opening .title-char {
    animation: speedDash 0.46s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.work-dialog.opening .detail-box,
.work-dialog.opening .dialog-sections,
.work-dialog.opening .next-work {
    animation-delay: 0.12s;
}

.dialog-close {
    position: fixed;
    z-index: 3;
    top: 20px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    background: rgba(244, 241, 235, 0.92);
    cursor: pointer;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.dialog-close span {
    font-size: 1.2rem;
    font-weight: 400;
}

.dialog-layout {
    display: grid;
    min-height: 100%;
    align-items: start;
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
}

.dialog-media {
    min-height: 100vh;
    padding: clamp(70px, 8vw, 120px) clamp(28px, 5vw, 80px);
    background: #171717;
}

.project-media-stack {
    display: flex;
    width: 100%;
    max-width: 920px;
    flex-direction: column;
    gap: clamp(38px, 5vw, 70px);
    margin: 0 auto;
}

.primary-media {
    display: grid;
    gap: 28px;
}

.primary-media-item {
    display: grid;
    gap: 14px;
}

.media-kicker {
    margin: 0;
    color: #c8c8c8;
    font-size: 0.61rem;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.dialog-media img,
.dialog-media video,
.dialog-media iframe {
    display: block;
    width: 100%;
    max-height: 78vh;
    border: 0;
    object-fit: contain;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.dialog-media iframe {
    aspect-ratio: 4 / 3;
    background: #000;
}

.zoomable-image {
    cursor: zoom-in;
}

.zoomable-image:focus-visible {
    outline-color: #b9d2d8;
}

.project-main-image {
    margin-top: 0;
}

.music-media-stack {
    max-width: 600px;
}

.music-media-stack .primary-media {
    gap: 16px;
}

.music-media-stack .primary-media-item {
    gap: 10px;
}

.dialog-media .music-media-stack .project-main-image {
    width: min(100%, 460px);
    max-height: 50vh;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    object-fit: cover;
}

.music-media-stack .audio-player {
    margin-top: 0;
}

.process-gallery {
    padding: clamp(20px, 2.5vw, 32px);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.process-gallery-header {
    display: grid;
    grid-template-columns: minmax(180px, 0.75fr) minmax(220px, 1fr);
    gap: 28px;
    align-items: end;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.process-gallery-header h3 {
    margin: 8px 0 0;
    color: #fff;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 600;
}

.process-gallery-header > p {
    max-width: 38em;
    margin: 0;
    color: #aaa;
    font-size: 0.75rem;
    line-height: 1.8;
}

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

.process-image-grid figure {
    min-width: 0;
    margin: 0;
}

.process-image-grid img {
    height: auto;
    max-height: 42vh;
    background: #111;
    box-shadow: none;
}

.process-image-grid figcaption {
    margin-top: 9px;
    color: #8d8d8d;
    font-size: 0.56rem;
    letter-spacing: 0.12em;
}

.reaction-gallery {
    padding: clamp(20px, 2.5vw, 32px);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.reaction-gallery-header {
    display: grid;
    grid-template-columns: minmax(180px, 0.75fr) minmax(220px, 1fr);
    gap: 28px;
    align-items: end;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.reaction-gallery-header h3 {
    margin: 8px 0 0;
    color: #fff;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 600;
}

.reaction-gallery-header > p {
    margin: 0;
    color: #aaa;
    font-size: 0.75rem;
    line-height: 1.8;
}

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

.dialog-media .reaction-video-grid iframe {
    aspect-ratio: 16 / 9;
    max-height: none;
    box-shadow: none;
}

.reaction-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}

.reaction-post-grid a {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.reaction-post-grid a:hover {
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--white);
}

.reaction-post-grid strong {
    flex: none;
    font-size: 0.55rem;
}

.audio-project {
    width: min(100%, 620px);
}

.dialog-media .audio-project > img {
    width: min(100%, 560px);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    object-fit: cover;
}

.audio-player {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--white);
}

.audio-player p {
    margin: 0 0 12px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.audio-player audio {
    display: none;
}

.audio-controls {
    position: relative;
    display: grid;
    grid-template-columns: 44px auto minmax(100px, 1fr) auto minmax(96px, 0.28fr);
    gap: 12px;
    align-items: center;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: #f3f3f1;
    color: #171717;
}

.audio-controls::after {
    position: absolute;
    inset: -1px;
    border: 1px solid transparent;
    content: "";
    pointer-events: none;
}

.audio-play-toggle {
    position: relative;
    display: grid;
    width: 44px;
    height: 46px;
    place-items: center;
    border-right: 1px solid #b9b9b5;
    color: #171717;
    background: #e8e8e5;
    cursor: pointer;
}

.audio-play-toggle:hover {
    color: #fff;
    background: var(--red);
}

.audio-play-icon {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 9px solid currentColor;
}

.audio-player.is-playing .audio-play-icon {
    width: 9px;
    height: 12px;
    border: 0;
    border-right: 3px solid currentColor;
    border-left: 3px solid currentColor;
}

.audio-current-time,
.audio-duration {
    font-size: 0.66rem;
    font-variant-numeric: tabular-nums;
}

.audio-progress,
.audio-volume {
    height: 18px;
    margin: 0;
    accent-color: var(--red);
    cursor: pointer;
}

.audio-progress {
    width: 100%;
}

.audio-player.is-playing.is-scrubbing .audio-controls {
    animation: audioFrameVibration 0.11s linear infinite;
}

.audio-player.is-playing.is-scrubbing .audio-controls::after {
    border-color: rgba(223, 107, 27, 0.58);
    box-shadow:
        2px 1px 0 rgba(223, 107, 27, 0.2),
        -2px -1px 0 rgba(255, 255, 255, 0.18);
}

.audio-volume-wrap {
    display: grid;
    grid-template-columns: auto minmax(50px, 1fr);
    gap: 8px;
    align-items: center;
    padding-right: 14px;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.audio-progress,
.audio-volume {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
}

.audio-progress::-webkit-slider-runnable-track,
.audio-volume::-webkit-slider-runnable-track {
    height: 3px;
    border-radius: 0;
    background: #777773;
}

.audio-progress::-webkit-slider-thumb,
.audio-volume::-webkit-slider-thumb {
    width: 9px;
    height: 15px;
    margin-top: -6px;
    border: 0;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    background: var(--red);
}

.audio-player.is-playing.is-scrubbing .audio-progress::-webkit-slider-thumb {
    width: 12px;
    background: #f18435;
}

.audio-progress::-moz-range-track,
.audio-volume::-moz-range-track {
    height: 3px;
    border-radius: 0;
    background: #777773;
}

.audio-progress::-moz-range-thumb,
.audio-volume::-moz-range-thumb {
    width: 9px;
    height: 15px;
    border: 0;
    border-radius: 0;
    background: var(--red);
}

.audio-player.is-playing.is-scrubbing .audio-progress::-moz-range-thumb {
    width: 12px;
    background: #f18435;
}

@keyframes audioFrameVibration {
    0% { transform: translate3d(0, 0, 0) rotate(0); }
    20% { transform: translate3d(-1px, 0.45px, 0) rotate(-0.07deg); }
    40% { transform: translate3d(0.9px, -0.4px, 0) rotate(0.06deg); }
    60% { transform: translate3d(-0.7px, -0.35px, 0) rotate(-0.05deg); }
    80% { transform: translate3d(0.85px, 0.4px, 0) rotate(0.07deg); }
    100% { transform: translate3d(0, 0, 0) rotate(0); }
}

@media (max-width: 620px) {
    .audio-controls {
        grid-template-columns: 44px auto 1fr auto;
        gap: 9px;
        padding-right: 10px;
    }

    .audio-volume-wrap {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .audio-player.is-playing.is-scrubbing .audio-controls {
        animation: none;
    }
}

.dialog-copy {
    display: flex;
    min-height: 100vh;
    align-self: start;
    flex-direction: column;
    justify-content: flex-start;
    padding: clamp(86px, 8vw, 120px) clamp(30px, 6vw, 90px) 90px;
}

.dialog-category {
    margin: 0 0 18px;
    color: var(--red);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.dialog-copy h2 {
    margin: -0.12em 0 48px;
    padding: 0.12em 0 0.2em;
    overflow: visible;
    font-size: clamp(2.4rem, 4.5vw, 5rem);
    font-weight: 500;
    letter-spacing: -0.065em;
    line-height: 1.12;
}

.dialog-copy h2 .title-char {
    padding-bottom: 0.04em;
}

.detail-box {
    margin-bottom: 16px;
    padding: 24px;
    border: 1px solid var(--line);
}

.detail-box dl {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px 18px;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.7;
}

.detail-box dt {
    color: var(--muted);
}

.detail-box dd {
    margin: 0;
    font-weight: 600;
    white-space: pre-line;
}

.description-box p:last-child {
    white-space: pre-line;
    margin: 17px 0 0;
    color: #494641;
    font-size: 0.9rem;
    line-height: 2;
}

.dialog-sections {
    display: grid;
    gap: 16px;
}

.source-section h3 {
    margin: 24px 0 10px;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
}

.source-section p {
    margin: 9px 0 0;
    color: #494641;
    font-size: 0.86rem;
    line-height: 1.9;
    white-space: pre-line;
}

.image-viewer {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    color: var(--white);
    background: rgba(10, 13, 15, 0.96);
}

.image-viewer::backdrop {
    background: rgba(0, 0, 0, 0.88);
}

.image-viewer-controls {
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(10, 13, 15, 0.82);
    backdrop-filter: blur(14px);
}

.image-viewer-controls > span {
    overflow: hidden;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-viewer-controls div {
    display: flex;
    gap: 7px;
}

.image-viewer-controls button {
    min-width: 42px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: var(--white);
    background: transparent;
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: 700;
}

.image-viewer-stage {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 90px 30px 30px;
    overflow: hidden;
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.image-viewer-stage.dragging {
    cursor: grabbing;
}

.image-viewer-stage img {
    display: block;
    max-width: min(90vw, 1600px);
    max-height: calc(100vh - 120px);
    object-fit: contain;
    transform-origin: center;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
    backface-visibility: hidden;
    contain: layout paint;
}

.image-viewer[open] .image-viewer-stage {
    animation: viewerImageIn 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes viewerImageIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.image-viewer-stage.dragging img {
    will-change: transform;
}

.detail-label {
    margin: 0;
    color: var(--muted);
}

.next-work {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding: 25px 0 8px;
    border-top: 1px solid var(--ink);
    text-align: left;
    background: transparent;
    cursor: pointer;
}

.next-work span {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.next-work strong {
    max-width: 65%;
    font-size: 1rem;
}

.ai-chat-button {
    position: fixed;
    z-index: 70;
    right: 28px;
    bottom: 28px;
    display: grid;
    width: 78px;
    height: 78px;
    place-content: center;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: #171717;
    box-shadow: 0 14px 38px rgba(21, 21, 21, 0.22);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.ai-chat-button:hover {
    background: #2a2a2a;
    box-shadow: 0 18px 44px rgba(21, 21, 21, 0.28);
    transform: translateY(-3px);
}

.ai-chat-button span {
    font-size: 1.05rem;
    font-weight: 800;
}

.ai-chat-button small {
    font-size: 0.48rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.ai-chat-panel {
    position: fixed;
    z-index: 120;
    right: 28px;
    bottom: 104px;
    width: min(390px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(244, 241, 235, 0.98);
    box-shadow: 0 24px 70px rgba(21, 21, 21, 0.2);
    backdrop-filter: blur(18px);
}

.ai-chat-panel[hidden] {
    display: none;
}

.ai-chat-panel > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.ai-chat-panel header div {
    display: grid;
    gap: 3px;
}

.ai-chat-panel header strong {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
}

.ai-chat-panel header small {
    color: var(--muted);
    font-size: 0.52rem;
    letter-spacing: 0.12em;
}

.ai-chat-panel header button {
    padding: 3px 8px;
    background: transparent;
    cursor: pointer;
    font-size: 1.4rem;
}

.ai-chat-messages {
    display: flex;
    height: 330px;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding: 18px;
}

.ai-message,
.user-message {
    max-width: 88%;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    font-size: 0.78rem;
    line-height: 1.75;
    white-space: pre-wrap;
}

.ai-message {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.48);
}

.user-message {
    align-self: flex-end;
    color: #eef1f1;
    background: #26343a;
}

.ai-chat-form {
    display: grid;
    grid-template-columns: 1fr auto;
    border-top: 1px solid var(--line);
}

.ai-chat-form input {
    min-width: 0;
    padding: 15px 16px;
    border: 0;
    outline: 0;
    background: transparent;
}

.ai-chat-form button {
    padding: 0 17px;
    border-left: 1px solid var(--line);
    background: transparent;
    cursor: pointer;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 4px;
}

@media (max-width: 1050px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .dialog-media {
        min-height: auto;
        padding-top: 90px;
    }

    .dialog-media .music-media-stack .project-main-image {
        width: min(100%, 420px);
        max-height: min(48vh, 420px);
    }

    .dialog-copy {
        min-height: 0;
        padding-top: 70px;
    }

    .workflow-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 50px 0;
    }

    .workflow-list li:nth-child(3)::after,
    .workflow-list li:nth-child(3)::before {
        display: none;
    }
}

@media (min-width: 1600px) {
    .site-header {
        padding-inline: max(64px, calc((100vw - 1760px) / 2));
    }

    .hero {
        padding-right: max(110px, calc((100vw - 1760px) / 2));
        padding-left: max(110px, calc((100vw - 1760px) / 2));
    }

    .hero h1 {
        font-size: clamp(4rem, 4.2vw, 5.3rem);
    }

    .hero-lead {
        max-width: 760px;
        font-size: 1.08rem;
    }

    .story-copy {
        max-width: 640px;
    }

    .work-grid {
        gap: 68px 24px;
    }
}

@media (max-width: 720px) {
    :root {
        --header-height: 64px;
    }

    .genre-bar-inner {
        display: block;
        min-height: auto;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .genre-caption {
        display: block;
        margin-bottom: 8px;
    }

    .genre-options {
        overflow-x: auto;
        gap: 25px;
        padding-bottom: 4px;
    }

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

    .story-heading h2 span {
        white-space: normal;
    }

    .section-number {
        margin-bottom: -15px;
    }

    .story-copy {
        padding-top: 0;
    }

    .section-heading-row,
    .works-teaser,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .discipline-list article {
        grid-template-columns: 45px 1fr;
        gap: 18px;
    }

    .discipline-title,
    .discipline-detail {
        grid-column: 2;
    }

    .discipline-detail p {
        margin-top: 16px;
    }

    .desktop-break {
        display: none;
    }

    .workflow-list {
        display: block;
        margin-top: 50px;
    }

    .workflow-list li {
        display: grid;
        grid-template-columns: 70px 1fr;
        grid-template-rows: auto auto auto;
        gap: 0 18px;
        min-height: 138px;
        padding: 0;
        text-align: left;
    }

    .workflow-list li:not(:last-child)::after {
        top: 70px;
        right: auto;
        bottom: 8px;
        left: 31px;
        width: 1px;
        height: 48px;
        border: 0;
        background: var(--muted);
    }

    .workflow-list li:not(:last-child)::before {
        top: 107px;
        right: auto;
        left: 27px;
        transform: rotate(135deg);
    }

    .workflow-icon {
        grid-row: 1 / 4;
        margin: 0;
    }

    .workflow-list span {
        align-self: end;
    }

    .workflow-list h3 {
        margin: 5px 0 4px;
    }

    .workflow-list p {
        max-width: 300px;
    }

    .works-teaser {
        justify-content: center;
    }

    .footer-bottom {
        gap: 28px;
        margin-top: 70px;
    }

    .work-grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .movie-genre-section + .movie-genre-section {
        margin-top: 80px;
    }

    .movie-genre-heading {
        align-items: flex-start;
    }

    .movie-genre-grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .work-title {
        min-height: 0;
    }

    .dialog-media {
        padding: 88px 16px 36px;
    }

    .process-gallery {
        padding: 18px;
    }

    .process-gallery-header {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .process-image-grid {
        grid-template-columns: 1fr;
    }

    .reaction-gallery-header {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .reaction-video-grid,
    .reaction-post-grid {
        grid-template-columns: 1fr;
    }

    .dialog-copy {
        padding: 50px 22px 70px;
    }

    .dialog-copy h2 {
        margin-top: -0.08em;
        margin-bottom: 32px;
        padding-bottom: 0.18em;
        line-height: 1.14;
    }

    .detail-box {
        padding: 20px;
    }

    .detail-box dl {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .detail-box dd {
        margin-bottom: 10px;
    }

    .ai-chat-button {
        right: 16px;
        bottom: 16px;
    }

    .ai-chat-panel {
        right: 16px;
        bottom: 90px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .reveal * {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
    }

    .work-dialog.opening .primary-media-item,
    .work-dialog.opening .audio-player,
    .work-dialog.opening .dialog-copy > *,
    .work-dialog[open]::backdrop {
        filter: none !important;
        animation: none !important;
    }
}
