/* GRAVITI — shared layout, components, and native block styling. */
:root {
    --red: #ea333d;
    --ink: #262728;
    --muted: #585858;
    --paper: #fff;
    --ease: cubic-bezier(.165, .85, .45, 1);
    --content: 854px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--muted); background: var(--paper); font: 400 16px/1.8 'Noto Sans JP', sans-serif; }
body::before {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
    background: repeating-linear-gradient(90deg, transparent 0, transparent calc(20% - 1px), rgba(0,0,0,.06) calc(20% - 1px), rgba(0,0,0,.06) 20%);
    width: min(1424px, 100%); margin-inline: auto;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }
button, input, textarea, select { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, h4, h5, h6 { color: var(--red); font-weight: 600; line-height: 1.4; }
p { margin: 0 0 1.5em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 5px; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 20px; background: white; color: var(--ink); padding: 10px 20px; z-index: 1000; }
.skip-link:focus { top: 10px; }
.studio-header { position: fixed; inset: 0 0 auto; padding: 30px 50px; display: flex; align-items: center; justify-content: space-between; z-index: 100; transition: padding .7s var(--ease), background .7s var(--ease); }
.studio-header.is-scrolled { padding-block: 20px; background: white; }
.studio-brand img { width: 150px; height: auto; }
.studio-nav { display: flex; gap: 40px; }
.studio-nav a { position: relative; overflow: hidden; line-height: 2.5; color: var(--ink); font-weight: 600; }
.studio-nav a span { display: block; position: relative; transform: translateY(0); transition: transform .7s var(--ease); }
.studio-nav a span::before { content: attr(data-label); position: absolute; left: 0; top: 100%; color: inherit; }
.studio-nav a:hover span, .studio-nav a:focus-visible span { transform: translateY(-100%); }
.studio-nav [aria-current] { color: var(--red); }
.studio-home .studio-nav a { color: white; }
.studio-home .studio-nav [aria-current] { color: white; }
.menu-toggle { display: none; width: 30px; height: 22px; padding: 0; color: var(--ink); border: 0; background: none; position: relative; }
.menu-toggle::before, .menu-toggle::after, .menu-toggle span { content: ''; position: absolute; height: 2px; width: 100%; left: 0; background: currentColor; transition: transform .3s, opacity .3s; }
.menu-toggle::before { top: 0; }
.menu-toggle span { top: 10px; }
.menu-toggle::after { bottom: 0; }
.menu-toggle[aria-expanded=true]::before { transform: translateY(10px) rotate(45deg); }
.menu-toggle[aria-expanded=true]::after { transform: translateY(-10px) rotate(-45deg); }
.menu-toggle[aria-expanded=true] span { opacity: 0; }
.studio-footer { position: fixed; left: 50px; bottom: 50px; z-index: 50; pointer-events: none; }
.studio-footer small { font-size: 14px; }
.studio-home .studio-footer { color: white; }
.home-stage, .page-intro { min-height: 100vh; min-height: 100dvh; position: relative; display: grid; place-items: center; }
.home-stage { overflow: hidden; background: #cdd4dd; }
.home-stage::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.1); pointer-events: none; }
.home-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-message { position: relative; z-index: 1; margin: -8vw 0 0; text-align: center; font-size: 7vw; line-height: 9vw; font-weight: 600; color: white; min-height: 18vw; }
.home-message span, .home-message strong { display: block; }
.home-message strong { color: var(--red); font-weight: 600; }
.page-intro h1 { margin: 0; color: var(--red); font-family: Poppins, sans-serif; font-size: 90px; line-height: 1.2; font-weight: 600; }
.breadcrumb { font-family: Poppins, 'Noto Sans JP', sans-serif; font-size: 20px; }
.page-intro .breadcrumb { animation: backdrop-in .01s linear 1s both; position: absolute; bottom: 50px; width: min(var(--content), calc(100% - 60px)); margin-inline: auto; }
/* ABOUT: typographic introduction and a clear, three-part editorial layout. */
.editorial-page { --editorial-width: 1060px; }
body:has(.editorial-page) .studio-footer { position: static; padding: 24px 50px 35px; border-top: 1px solid #eee; }
.editorial-intro, .about-section, .about-contact { width: min(var(--editorial-width), calc(100% - 100px)); margin-inline: auto; }
.editorial-intro { padding: 160px 0 80px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 70px; }
.editorial-eyebrow { margin: 0; font: 500 12px/1.6 Poppins, sans-serif; letter-spacing: .13em; color: var(--muted); }
.editorial-intro > .editorial-eyebrow { grid-column: 1 / -1; }
.editorial-intro h1 { margin: 0; font: 600 clamp(70px, 9vw, 128px)/1 Poppins, sans-serif; letter-spacing: -.05em; }
.editorial-intro h1 span { display: block; margin-top: 22px; font: 400 14px/1.8 'Noto Sans JP', sans-serif; letter-spacing: .08em; color: var(--muted); }
.editorial-lead { margin: 0; font-size: clamp(26px, 3vw, 40px); font-weight: 600; line-height: 1.65; letter-spacing: .02em; color: var(--ink); }
.editorial-lead em { color: var(--red); font-style: normal; }
.about-index { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; }
.about-index a { display: flex; justify-content: space-between; border-bottom: 1px solid #d8d8d8; padding: 16px 0; font-size: 13px; }
.about-index span { color: var(--red); font-family: Poppins, sans-serif; }
.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; padding: 95px 0; border-top: 1px solid #d8d8d8; }
.about-section h2 { margin: 25px 0 0; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.7; letter-spacing: .025em; scroll-margin-top: 130px; }
.about-copy { font-size: 15px; line-height: 2.2; }
.about-copy p { margin-bottom: 28px; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy h3 { margin: 0 0 18px; font-size: 19px; color: var(--ink); }
.about-copy h3:not(:first-child) { margin-top: 48px; }
.about-disciplines { padding: 20px 0 0; margin: 40px 0 0; list-style: none; border-top: 1px solid #ddd; font: 500 14px/2.4 Poppins, sans-serif; color: var(--ink); }
.about-studio-name { margin: 40px 0 0; font: 500 23px/1.4 Poppins, sans-serif; letter-spacing: -.02em; color: var(--ink); }
.profile-list { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-content: start; width: 100%; margin: 0; font-size: 14px; line-height: 1.9; text-align: left; }
.profile-list dt, .profile-list dd { margin: 0; padding: 20px 0; border-bottom: 1px solid #ddd; }
.profile-list dt { color: var(--muted); font-size: 12px; }
.profile-list dd { color: var(--ink); overflow-wrap: anywhere; }
.profile-list ul { margin: 0; padding: 0; list-style: none; }
.about-contact { padding: 70px 0 130px; border-top: 1px solid #d8d8d8; text-align: center; }
.about-contact h2 { margin: 24px 0 32px; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.7; }
.about-contact .studio-button { min-width: 250px; display: inline-flex; justify-content: space-between; }
.works-panel, .contact-panel { max-width: var(--content); margin: 0 auto; padding: 100px 0 150px; }
.work-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; margin-bottom: 60px; }
.work-filters a { font-size: 14px; }
.work-filters [aria-current] { color: var(--red); }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 100px; }
.work-card { min-width: 0; text-align: center; animation: card-in .6s var(--ease) both; }
.work-thumbnail { border-radius: 12px; width: 100%; padding: 0; border: 0; cursor: pointer; display: block; overflow: hidden; position: relative; aspect-ratio: 10/7; background: #f4f4f4; }
.work-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .7s var(--ease); }
.work-thumbnail::after { content: '+'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 36px; color: var(--ink); opacity: 0; transform: translateY(-15px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.work-thumbnail:hover img, .work-thumbnail:focus-visible img { transform: scale(1.04); opacity: .6; }
.work-thumbnail:hover::after, .work-thumbnail:focus-visible::after { opacity: 1; transform: translateY(0); }
.work-card h3 { font-size: 1rem; color: var(--ink); margin: 20px 0 5px; }
.work-card p { font-size: 13px; margin: 0; }
.work-pagination { display: flex; gap: 24px; justify-content: center; margin-top: 70px; }
.work-pagination .current { color: var(--red); }
.contact-panel h2 { margin-top: 0; font-size: 34px; }
.contact-panel > p { font-size: 14px; }
.contact-panel label { display: block; font-size: 14px; }
.contact-panel input:not([type=submit]):not([type=checkbox]), .contact-panel textarea, .post-comments textarea, .post-comments input:not([type=submit]) { width: 100%; padding: 14px 0; background: transparent; border: 0; border-bottom: 1px solid #ddd; color: var(--ink); border-radius: 0; }
.contact-panel textarea { resize: vertical; min-height: 160px; }
.studio-button, .contact-panel input[type=submit], .form-submit input { display: inline-block; border: 1px solid #ddd; background: white; padding: 14px 28px; color: var(--ink); font-size: 14px; line-height: 1.5; transition: color .4s, background .4s, border-color .4s; cursor: pointer; }
.studio-button:hover, .contact-panel input[type=submit]:hover { color: white; background: var(--red); border-color: var(--red); }

.editorial-description { grid-column: 1 / -1; margin: 12px 0 0; font-size: 14px; line-height: 2; }
.contact-page .contact-panel { max-width: none; width: min(var(--editorial-width), calc(100% - 100px)); padding: 45px 0 100px; border-top: 1px solid #d8d8d8; }
.contact-page .editorial-intro { grid-template-columns: 1.1fr .9fr; }
.contact-page .editorial-intro h1 { grid-column: 1 / -1; }
.contact-page .editorial-lead { font-size: clamp(26px, 2.7vw, 36px); margin-top: 24px; }
.contact-page .editorial-description { grid-column: 2; grid-row: 3; align-self: center; margin-top: 24px; }
.contact-page .contact-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; padding-top: 70px; }
.contact-guide h2 { margin: 22px 0; font-size: 30px; line-height: 1.7; }
.contact-guide > p:not(.editorial-eyebrow) { font-size: 14px; line-height: 2.1; }
.contact-guide .contact-phone-label { margin: 48px 0 8px; font-size: 12px; }
.contact-phone { display: inline-flex; gap: 30px; align-items: center; font: 500 24px/1.6 Poppins, sans-serif; }
.contact-phone span { color: var(--red); font-size: 18px; }
.contact-form { min-width: 0; }
.contact-form form > p { margin: 0 0 30px; }
.contact-form input:not([type=submit]):not([type=checkbox]), .contact-form textarea, .contact-form select { padding: 12px 14px; border: 1px solid #ddd; background: rgba(250,250,250,.85); margin-top: 10px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--red); }
.contact-form .wpcf7-list-item { margin-left: 0; }
.contact-form input[type=submit] { width: 100%; padding: 18px 24px; color: white; background: var(--red); border-color: var(--red); }
.project-dialog { border: 0; padding: 0 0 40px; width: min(720px, calc(100% - 40px)); max-height: calc(100dvh - 60px); color: var(--muted); text-align: center; }
.project-dialog[open] { animation: dialog-in .3s ease both; }
.project-dialog::backdrop { background: rgba(0,0,0,.72); animation: backdrop-in .3s ease; }
.dialog-close { position: sticky; top: 0; float: right; z-index: 2; width: 44px; height: 44px; margin-bottom: -44px; font-size: 30px; color: white; background: rgba(0,0,0,.6); border: 0; }
.dialog-image { width: 100%; height: auto; max-height: 65dvh; object-fit: contain; background: #f7f7f7; }
.dialog-category { margin: 24px 30px 5px; font-size: 13px; }
.project-dialog h2 { color: var(--ink); font-size: 24px; margin: 0 30px 24px; }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 24px; }
.gallery-controls button { padding: 8px 16px; border: 1px solid #ddd; background: white; }
.work-card h3 button { border: 0; padding: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.project-detail, .post-detail, .post-list { max-width: var(--content); margin: 0 auto; padding: 160px 0 150px; }
.project-detail h1, .post-detail h1, .post-list h1 { font-size: clamp(28px, 4vw, 48px); }
.project-detail > .breadcrumb { font-size: 14px; margin-bottom: 40px; }
.project-category, .post-meta { font-size: 13px; }
.project-image { margin-bottom: 40px; }
.project-image img { margin: 0 auto; }
.block-content { margin-bottom: 50px; overflow-wrap: anywhere; }
.block-content h2 { margin: 2.5em 0 1em; font-size: 28px; }
.block-content h3 { font-size: 22px; }
.block-content a:not(.wp-block-button__link) { text-decoration: underline; text-underline-offset: .2em; }
.block-content img { height: auto; }
.block-content .alignwide { max-width: 1200px; width: min(1200px, calc(100vw - 60px)); margin-left: 50%; transform: translateX(-50%); }
.block-content .alignfull { max-width: 100vw; width: 100vw; margin-left: calc(50% - 50vw); }
.block-content .wp-block-button__link { border-radius: 0; background: var(--red); }
.block-content blockquote { border-left: 2px solid var(--red); padding-left: 24px; margin-left: 0; }
.block-content table { border-collapse: collapse; width: 100%; }
.block-content td, .block-content th { border: 1px solid #ddd; padding: 12px; }
.block-content iframe, .block-content video { max-width: 100%; }
.post-list article { margin: 50px 0; border-bottom: 1px solid #eee; padding-bottom: 30px; }
.post-list h2 { font-size: 24px; }
.post-comments { margin-top: 60px; }
.editor-styles-wrapper { color: var(--muted); font-family: 'Noto Sans JP', sans-serif; }
/* One decorative element replaces the old loader's nested column wrappers. */
/* Five flat decorative columns reproduce the original alternating shutters. */
.page-curtain { position: fixed; top: 0; bottom: 0; left: 50%; width: 1424px; transform: translateX(-50%); pointer-events: none; z-index: 999; display: flex; }
.page-curtain i { position: relative; width: 20%; height: 100%; }
.motion-ready::before { display: none; }
.page-curtain i::before { content: ''; position: absolute; left: 0; top: 0; width: 1px; height: 100%; background: rgba(0,0,0,.045); transform-origin: top; transform: scaleY(0); transition: transform .65s var(--ease); }
.studio-home .page-curtain i::before { background: rgba(255,255,255,.07); }
.page-curtain i:first-child::before { display: none; }
.page-curtain.is-open i::before { transform: scaleY(1); }
.page-curtain.is-leaving i::before { opacity: 0; }
.page-curtain i:nth-child(1)::before { transition-delay: .6s; }
.page-curtain i:nth-child(2)::before { transition-delay: .7s; }
.page-curtain i:nth-child(3)::before { transition-delay: .4s; }
.page-curtain i:nth-child(4)::before { transition-delay: .5s; }
.page-curtain i:nth-child(5)::before { transition-delay: .8s; }
.page-curtain i::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #e5e5e5; transform-origin: top; transform: scaleY(1); transition: transform .65s var(--ease); }
.page-curtain i:nth-child(even)::after { top: auto; bottom: 0; transform-origin: bottom; }
.page-curtain i:first-child::after { left: auto; right: 0; width: 1000%; }
.page-curtain i:last-child::after { width: 1000%; }
.page-curtain i:nth-child(1)::after { transition-delay: .3s; }
.page-curtain i:nth-child(2)::after { transition-delay: .45s; }
.page-curtain i:nth-child(3)::after { transition-delay: 0s; }
.page-curtain i:nth-child(4)::after { transition-delay: .15s; }
.page-curtain i:nth-child(5)::after { transition-delay: .6s; }
.page-curtain.is-open i::after { transform: scaleY(0); }
.page-curtain.is-ready { z-index: 11; }
.pointer-orbit { position: fixed; left: 0; top: 0; width: 0; height: 0; pointer-events: none; z-index: 1100; transition: transform .7s cubic-bezier(.02,1.2,.8,1); }
.pointer-orbit::before { content: ''; position: absolute; left: 0; top: 0; width: 26px; height: 26px; transform: translate(-50%,-50%); background: var(--red); opacity: .4; border-radius: 50%; transition: width .5s ease-in-out, height .5s ease-in-out, opacity .5s ease-in-out; }
.pointer-orbit.is-over::before { width: 86px; height: 86px; opacity: .1; }
.pointer-orbit.is-hidden { opacity: 0; }
.work-thumbnail, .studio-button { position: relative; isolation: isolate; overflow: hidden; }
.work-thumbnail::before, .studio-button::before { content: ''; position: absolute; left: var(--hover-x,50%); top: var(--hover-y,50%); width: var(--hover-size,100%); height: var(--hover-size,100%); background: var(--red); border-radius: 50%; transform: translate(-50%,-50%) scale(0); transition: transform 2s var(--ease); pointer-events: none; z-index: -1; }
.work-thumbnail::before { z-index: 1; background: rgba(234, 51, 61, .28); }
.work-thumbnail.is-hovered::before, .studio-button.is-hovered::before { transform: translate(-50%,-50%) scale(3); }
.work-thumbnail::after { z-index: 2; color: #101010; font-size: 24px; }
.work-thumbnail:hover::after { transition-delay: .35s; }
.work-thumbnail:hover img, .work-thumbnail:focus-visible img { transform: none; opacity: 1; }
.studio-button { height: 44px; padding: 0 30px; line-height: 40px; border: 2px solid var(--red); color: var(--red); background: transparent; font-size: 16px; transition: color 1s var(--ease); }
.studio-button:hover { color: #101010; background: transparent; }
.project-dialog[open] { animation: backdrop-in .15s ease-out both; }
.project-dialog::backdrop { background: rgba(0,0,0,.8); animation: backdrop-in .15s ease-out; }
.project-dialog.is-closing { animation: dialog-out .15s ease-out both; }
.project-dialog.is-closing::backdrop { animation: dialog-out .15s ease-out both; }
@keyframes dialog-out { to { opacity: 0; } }
.admin-bar .studio-header { top: 32px; }
@media (max-width: 1199px) { .page-curtain i { width: 33.333333%; } .page-curtain i:nth-child(n+4) { display: none; } .page-curtain i:nth-child(3)::after { width: 1000%; } .pointer-orbit { display: none; } }
@media (min-width: 768px) and (max-width: 1199px) {
    .menu-toggle { display: block; }
    .studio-home .menu-toggle { color: white; }
    .studio-nav { display: none; position: absolute; top: 110px; left: 0; right: 0; flex-direction: column; align-items: center; gap: 18px; font-size: 24px; }
    .nav-open { overflow: hidden; }
    .nav-open .studio-header { height: 100dvh; align-items: flex-start; background: white; }
    .nav-open .studio-nav { display: flex; animation: backdrop-in .35s var(--ease); }
    .nav-open .studio-nav a, .nav-open .menu-toggle { color: var(--ink); }
    .nav-open .studio-nav [aria-current] { color: var(--red); }
}
@media (max-width: 720px) { .page-curtain i { width: 50%; } .page-curtain i:nth-child(n+3) { display: none; } .page-curtain i:nth-child(2)::after { width: 1000%; } }
@media (pointer: coarse), (prefers-reduced-motion: reduce) { .pointer-orbit { display: none; } }
@keyframes bread-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes card-in { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 1024px) {
    .studio-header { padding: 30px; }
    .studio-nav { gap: 25px; }
    .works-panel, .contact-panel, .project-detail, .post-detail, .post-list { margin-inline: 30px; }
    .studio-footer { left: 30px; bottom: 30px; }
}
@media (max-width: 767px) {
    body::before { width: 1px; left: 50%; right: auto; background: rgba(0,0,0,.08); }
    .studio-header { padding: 30px; min-height: 96px; }
    .studio-header.is-scrolled { padding-block: 20px; }
    .menu-toggle { display: block; }
    .studio-home .menu-toggle { color: white; }
    .studio-nav { display: none; position: absolute; top: 110px; left: 0; right: 0; flex-direction: column; align-items: center; gap: 18px; font-size: 24px; }
    .nav-open { overflow: hidden; }
    .nav-open .studio-header { height: 100dvh; align-items: flex-start; background: white; }
    .nav-open .studio-nav { display: flex; animation: backdrop-in .35s var(--ease); }
    .nav-open .studio-nav a, .nav-open .menu-toggle { color: var(--ink); }
    .nav-open .studio-nav [aria-current] { color: var(--red); }
    .page-intro h1 { font-size: 38px; }
    .page-intro .breadcrumb { display: none; }
    .editorial-intro, .about-section, .about-contact { width: calc(100% - 60px); }
    .editorial-intro { padding: 140px 0 55px; grid-template-columns: 1fr; gap: 28px; }
    .editorial-intro h1 { font-size: clamp(76px, 19vw, 120px); }
    .editorial-intro h1 span { margin-top: 14px; font-size: 12px; }
    .editorial-lead { margin-top: 15px; font-size: 28px; }
    .about-index { grid-template-columns: 1fr; gap: 0; margin-top: 12px; }
    .about-section { grid-template-columns: 1fr; gap: 36px; padding: 60px 0; }
    .about-section h2 { margin-top: 18px; font-size: 27px; scroll-margin-top: 105px; }
    .about-copy { font-size: 14px; line-height: 2.1; }
    .about-copy h3 { font-size: 18px; }
    .about-studio-name { margin-top: 24px; font-size: 20px; }
    .profile-list { grid-template-columns: 75px minmax(0, 1fr); font-size: 13px; }
    .profile-list dt, .profile-list dd { padding: 17px 0; }
    .about-contact { padding: 60px 0 70px; }

    body:has(.editorial-page) .studio-footer { padding: 25px 30px; }
    .contact-page .contact-panel { width: calc(100% - 60px); padding: 35px 0 65px; }
    .editorial-description { font-size: 13px; margin: 0; }
    .editorial-description br { display: none; }
    .contact-page .editorial-intro { grid-template-columns: 1fr; }
    .contact-page .editorial-intro h1 { font-size: clamp(52px, 13.8vw, 90px); }
    .contact-page .editorial-lead { font-size: 26px; margin-top: 12px; }
    .contact-page .editorial-description { grid-column: 1; grid-row: auto; margin: 0; }
    .contact-page .contact-panel { grid-template-columns: 1fr; gap: 45px; padding-top: 45px; }
    .contact-guide h2 { font-size: 26px; }
    .contact-guide .contact-phone-label { margin-top: 30px; }
    .contact-form { border-top: 1px solid #ddd; padding-top: 40px; }
    .works-panel, .contact-panel { padding-top: 60px; padding-bottom: 70px; }
    .work-grid { grid-template-columns: 1fr; gap: 50px; }
    .work-filters { margin-bottom: 35px; }
    .studio-footer { position: static; padding: 25px 30px; }
    .studio-home .studio-footer { display: none; }
    .project-detail, .post-detail, .post-list { padding-top: 120px; padding-bottom: 50px; }
    .admin-bar .studio-header { top: 46px; }
    .project-dialog h2 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .page-curtain { display: none; }
}

.page-intro .breadcrumb { animation: bread-in 1s steps(15) 1s both; }
.works-panel[aria-busy=true] .work-grid { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .page-intro .breadcrumb { animation: none; } }

.page-curtain::before { content: ''; position: absolute; left: 50%; width: 1px; height: 100%; background: rgba(0,0,0,.25); z-index: 2; animation: page-loading 1s ease-in-out infinite; transition: opacity .4s; }
.page-curtain.is-open::before { opacity: 0; }
.page-curtain.is-ready::before, .page-curtain.is-leaving::before { display: none; }
@keyframes page-loading { 0% { height: 0; top: 0; bottom: auto; } 50%,51% { height: 100%; top: 0; bottom: auto; } 52% { height: 100%; top: auto; bottom: 0; } 100% { height: 0; top: auto; bottom: 0; } }

/* The ABOUT call to action keeps white text throughout its pointer-following fill. */
.about-contact .studio-button:is(:hover, :focus-visible, .is-hovered), .about-contact .studio-button:is(:hover, :focus-visible, .is-hovered) span { color: white; }

/* Project previews: keep the image readable and make the next action clear. */
.studio-button:is(:hover, :focus-visible, .is-hovered) { color: white; }
.studio-button:focus-visible { background: var(--red); }
.project-dialog { border-radius: 16px; width: min(960px, calc(100% - 64px)); max-height: calc(100dvh - 64px); padding: 24px; text-align: left; overflow: auto; box-shadow: 0 20px 80px #0004; }
.project-dialog::backdrop { background: rgba(20,20,20,.72); }
.dialog-image { border-radius: 8px; max-height: 60dvh; object-fit: contain; background: #f5f5f5; }
.dialog-close { position: absolute; top: 34px; right: 34px; float: none; margin: 0; width: 42px; height: 42px; border-radius: 50%; background: white; color: var(--ink); box-shadow: 0 2px 12px #0002; font-size: 28px; line-height: 1; }
.dialog-close:hover, .dialog-close:focus-visible { color: white; background: var(--red); }
.dialog-details { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 4px 4px; }
.dialog-details header { min-width: 0; }
.dialog-details .dialog-category { margin: 0 0 8px; font: 500 11px/1.5 Poppins, sans-serif; letter-spacing: .08em; }
.dialog-details h2 { margin: 0; font-size: 18px; line-height: 1.5; overflow-wrap: anywhere; }
.dialog-project { border-radius: 8px; flex-shrink: 0; display: inline-flex; align-items: center; gap: 24px; font: 600 16px/1.5 Poppins, sans-serif; height: 48px; padding: 0 20px; border-width: 1px; }
.project-dialog .gallery-controls { justify-content: flex-start; margin: 24px 4px 0; gap: 18px; font-size: 12px; }
.project-dialog .gallery-controls button { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
@media (max-width: 767px) {
    .project-dialog { width: calc(100% - 28px); max-height: calc(100dvh - 40px); padding: 14px; }
    .dialog-image { max-height: 55dvh; }
    .dialog-close { top: 22px; right: 22px; width: 36px; height: 36px; font-size: 25px; }
    .dialog-details { flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 20px; }
    .dialog-details h2 { font-size: 16px; }
    .dialog-project { width: 100%; justify-content: space-between; }
}

/* WORKS keeps the layout shared with ABOUT; thumbnail motion remains the original. */
.works-page .works-panel { max-width: none; width: min(var(--editorial-width), calc(100% - 100px)); padding: 45px 0 100px; border-top: 1px solid #d8d8d8; }
.works-list-heading { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
.works-list-heading h2 { margin: 0; font: 500 14px/1.6 Poppins, sans-serif; letter-spacing: .1em; color: var(--ink); }
.works-list-heading p { margin: 0; font-size: 12px; }
.works-page .work-filters { justify-content: flex-start; gap: 12px 28px; padding-bottom: 24px; border-bottom: 1px solid #ddd; margin-bottom: 45px; }
.works-page .work-filters a { padding: 5px 0; }
.works-page .work-filters [aria-current] { border-bottom: 1px solid var(--red); }
.works-page .work-grid { gap: 65px 48px; }
.works-page .work-card { position: relative; z-index: 12; text-align: left; }
.works-page .work-card h3 { margin-top: 18px; font-size: 15px; }
.works-page .work-card p { font-size: 12px; letter-spacing: 1px; }
.works-page .work-pagination a, .works-page .work-pagination span { min-width: 36px; padding: 5px 0; text-align: center; }
.works-page .work-pagination .current { border-bottom: 1px solid var(--red); }
@media (max-width: 767px) {
    .works-page .works-panel { width: calc(100% - 60px); padding: 35px 0 65px; }
    .works-page .work-grid { gap: 42px; }
    .works-page .work-filters { gap: 8px 22px; margin-bottom: 30px; }
    .works-page .work-filters a { font-size: 12px; }
    .works-page .work-card h3 { font-size: 15px; }
}

/* HOME: the original film with quiet, left-aligned two-line typography. */
.home-stage::after { background: linear-gradient(90deg, rgba(12,16,22,.55), transparent 85%), linear-gradient(0deg, rgba(12,16,22,.5), transparent 75%); }
.home-message { position: absolute; left: 7vw; bottom: 23vh; z-index: 2; margin: 0; text-align: left; font-size: clamp(48px, 7vw, 112px); line-height: 1.45; min-height: 2.9em; letter-spacing: -.025em; }
.home-message span, .home-message strong { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .7s var(--ease); }
.home-message.has-message span, .home-message.has-message strong { opacity: 1; transform: none; }
.home-message.has-message strong { transition-delay: .12s; }
.home-kicker { position: absolute; left: 7vw; bottom: calc(23vh + clamp(48px, 7vw, 112px) * 2.9 + 24px); z-index: 2; margin: 0; color: white; font: 500 11px/1.5 Poppins, sans-serif; letter-spacing: .15em; }
.home-actions { position: absolute; right: 7vw; bottom: 70px; z-index: 2; display: flex; gap: 40px; }
.home-actions a { color: white; font: 500 15px/1.8 Poppins, sans-serif; border-bottom: 1px solid #ffffff70; padding: 10px 0; display: flex; gap: 30px; }
.home-actions a span { transition: transform .3s var(--ease); }
.home-actions a:hover span, .home-actions a:focus-visible span { transform: translate(3px,-3px); }
@media (max-width: 767px) {
    .home-message { left: 30px; bottom: 25vh; font-size: clamp(30px, calc((100vw - 60px) / 8), 60px); }
    .home-kicker { left: 30px; bottom: calc(25vh + clamp(30px, calc((100vw - 60px) / 8), 60px) * 2.9 + 22px); font-size: 10px; }
    .home-actions { left: 30px; right: 30px; bottom: 45px; gap: 32px; }
    .home-actions a { flex: 1; justify-content: space-between; font-size: 14px; }
}

/* HOME uses one menu pattern across desktop and mobile. */
.studio-home .menu-toggle { display: block; color: white; }
.studio-home .studio-nav { display: none; }
.studio-home.nav-open { overflow: hidden; }
.studio-home.nav-open .studio-header { height: 100dvh; align-items: flex-start; background: #191d22; }
.studio-home.nav-open .studio-nav { display: flex; position: absolute; top: 140px; left: 0; right: 0; flex-direction: column; align-items: center; gap: 18px; font-size: 32px; animation: backdrop-in .35s var(--ease); }
.studio-home.nav-open .studio-nav a, .studio-home.nav-open .menu-toggle { color: white; }
.studio-home.nav-open .studio-nav [aria-current] { color: var(--red); }
@media (max-width: 767px) {
    .studio-home.nav-open .studio-nav { top: 110px; font-size: 24px; }
}

.dialog-close { background: var(--red); color: white; outline: 2px solid var(--red); outline-offset: 4px; box-shadow: 0 0 0 4px white; }
.dialog-close:hover, .dialog-close:focus-visible { background: #cb2430; color: white; outline-color: var(--red); }

/* WEB screenshots retain their full height inside a fixed, top-aligned viewport. */
.work-thumbnail.is-web-preview img { height: auto; min-height: 100%; object-position: top; transition: transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
    .work-thumbnail.is-web-preview.is-hovered img { transform: translateY(calc(-1 * var(--preview-travel, 0px))); transition: transform var(--preview-duration, 8s) linear; }
}
.dialog-preview { overflow: hidden; border-radius: 8px; }
.project-dialog.is-web-preview .dialog-preview { height: 60dvh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.project-dialog.is-web-preview .dialog-image { display: block; height: auto; max-height: none; border-radius: 0; }
.dialog-preview:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
@media (max-width: 767px) {
    .project-dialog.is-web-preview .dialog-preview { height: 55dvh; }
}

/* The next batch is appended in place; the link also works without JavaScript. */
.works-page .work-pagination .works-load-more { position: relative; z-index: 12; background: #fff; border-radius: 8px; padding: 0 30px; min-width: 220px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; font: 600 16px/1.5 Poppins, sans-serif; height: 52px; }
.works-page .works-load-more span { padding: 0; min-width: 0; }
.works-load-more[aria-disabled="true"] { opacity: .5; cursor: progress; }

/* Center the words, leaving Japanese punctuation outside the line width. */
.contact-title-line { display: inline-block; position: relative; }
.hanging-punctuation { position: absolute; left: 100%; top: 0; white-space: nowrap; }

/* Keep both film captions in stable line boxes, including the blank intervals. */
.home-message { height: 2.9em; width: calc(100% - 14vw); }
.home-message span, .home-message strong { height: 1.45em; white-space: nowrap; }
@media (max-width: 767px) { .home-message { width: calc(100% - 60px); } }

/* Continue the decorative grid across the viewport at the existing spacing. */
:root { --studio-grid-gap: calc(1424px / 5); }
body::before, .page-curtain::after {
    background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.045) 0 1px, transparent 1px var(--studio-grid-gap));
    background-size: var(--studio-grid-gap) 100%;
    background-position: center top;
}
body::before { width: 100%; margin: 0; left: 0; right: 0; }
.page-curtain::after {
    content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw;
    transform: translateX(-50%); pointer-events: none; opacity: 0; transition: opacity .3s;
}
.page-curtain.is-ready::after { opacity: 1; }
.page-curtain.is-ready i::before { visibility: hidden; }
.page-curtain.is-leaving::after { opacity: 0; }
.studio-home::before, .studio-home .page-curtain::after {
    background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 1px, transparent 1px var(--studio-grid-gap));
}
@media (max-width: 1199px) { :root { --studio-grid-gap: calc(1424px / 3); } }
@media (max-width: 720px) {
    :root { --studio-grid-gap: 712px; }
    body::before, .page-curtain::after {
        background-image: repeating-linear-gradient(90deg, transparent 0 calc(356px - .5px), rgba(0,0,0,.045) calc(356px - .5px) calc(356px + .5px), transparent calc(356px + .5px) 712px);
    }
    .studio-home::before, .studio-home .page-curtain::after {
        background-image: repeating-linear-gradient(90deg, transparent 0 calc(356px - .5px), rgba(255,255,255,.07) calc(356px - .5px) calc(356px + .5px), transparent calc(356px + .5px) 712px);
    }
}
/* Extend the two WORKS dividers without changing the content width. */
.works-page .works-panel, .works-page .work-filters { position: relative; }
.works-page .works-panel { border-top-color: transparent; }
.works-page .work-filters { border-bottom-color: transparent; }
.works-page .works-panel::before, .works-page .work-filters::after {
    content: ''; position: absolute; left: 50%; width: 100vw; height: 1px;
    transform: translateX(-50%); background: #f3f3f3; pointer-events: none;
}
.works-page .works-panel::before { top: -1px; }
.works-page .work-filters::after { bottom: -1px; }

/* Quiet, full-width editorial section dividers. */
.about-section, .about-contact, .contact-page .contact-panel { position: relative; border-top-color: transparent; }
.about-section::before, .about-contact::before, .contact-page .contact-panel::before {
    content: ''; position: absolute; left: 50%; top: -1px; width: 100vw; height: 1px;
    transform: translateX(-50%); background: #f3f3f3; pointer-events: none;
}
.about-index a, .profile-list dt, .profile-list dd { border-bottom-color: #f3f3f3; }
.about-disciplines, .contact-form { border-top-color: #f3f3f3; }
