/* HOME content only; common header is in service-header.css. */
.home-page main { padding-top:var(--nav-height); }
.home-page .hero { min-height:0; margin-top:0; padding:12px 24px 48px; justify-content:flex-start; }
.home-page .hero-content { max-width:1020px; }
.home-page .hero-logo-container { --logo-size:min(220px,55vw); --brush-top:calc(var(--logo-size)*.70); position:relative; width:var(--logo-size); height:var(--logo-size); margin:0 auto 8px; isolation:isolate; }
.home-page .hero-logo { width:100%; max-width:none; height:auto; }
.hero-j4-black { position:absolute; inset:0; width:100%; height:100%; clip-path:inset(0 0 20% 0); z-index:2; pointer-events:none; }
.hero-brush { display:block; position:absolute; top:var(--brush-top); left:0; width:100%; aspect-ratio:2924/837; z-index:1; -webkit-mask:url('../assets/images/home/web/fudehome-mask.png') center/contain no-repeat; mask:url('../assets/images/home/web/fudehome-mask.png') center/contain no-repeat; clip-path:inset(0); pointer-events:none; }
.hero-brush-ink { position:absolute; inset:0; background:linear-gradient(to right,#006400 0%,#2e8b57 50%,#6495ed 100%); opacity:.75; }
.hero-atelier-white { position:absolute; top:calc(-1*var(--brush-top)); left:0; width:100%; height:auto; max-width:none; opacity:1; }
.home-page .artist-location { letter-spacing:.12em; font-size:.78rem; margin-bottom:12px; }
.home-page .hero-subtitle { font:500 clamp(1.05rem,1.8vw,1.5rem)/1.6 var(--font-serif); margin:0 auto 20px; max-width:1000px; }
.hero-biography { max-width:820px; margin:0 auto; }
.hero-biography p { font-size:clamp(.95rem,1.15vw,1.03rem); line-height:1.8; margin-bottom:12px; }
.home-page .hero-scroll { bottom:0; }
.home-page .atelier-intro { padding:48px 0 24px; }
.line-heading { position:relative; display:table; font:400 clamp(2rem,3.7vw,3.2rem)/1.25 var(--font-serif); margin:0 auto 28px; padding-bottom:12px; }
.line-heading::after { content:''; position:absolute; left:0; right:0; bottom:0; height:clamp(10px,1.3vw,18px); background:#B5DEB9; -webkit-mask:url('../assets/branding/fudeline/fudeline-mask.png') center/100% 100% no-repeat; mask:url('../assets/branding/fudeline/fudeline-mask.png') center/100% 100% no-repeat; clip-path:inset(0); }
.brush-ready .line-heading::after,.brush-ready .hero-brush { clip-path:inset(0 100% 0 0); }
.brush-ready .line-heading.is-drawn::after,.brush-ready .hero-brush.is-drawn { clip-path:inset(0); transition:clip-path 1000ms cubic-bezier(.2,.65,.3,1); }
.home-page .atelier-intro .line-heading { margin-left:0; }
.home-page .what-i-create { padding-top:48px; padding-bottom:60px; }
.home-services-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:40px 28px; }
.home-service { grid-column:span 2; min-width:0; display:flex; flex-direction:column; border-top:1px solid var(--color-light-gray); padding-top:14px; }
.home-service:nth-child(4) { grid-column:2/span 2; }
.home-service:nth-child(5) { grid-column:4/span 2; }
.service-number { font-size:.78rem; letter-spacing:.08em; margin-bottom:8px; }
.home-service .service-title { font:400 clamp(23px,2vw,31px)/1.3 var(--font-serif); min-height:2.6em; margin:0 0 16px; text-wrap:balance; overflow-wrap:normal; }
.media-carousel { min-width:0; position:relative; }
.media-stage { width:100%; aspect-ratio:3/4; position:relative; background:var(--color-ivory); overflow:hidden; touch-action:pan-y; }
.media-slide { position:absolute; inset:0; opacity:0; visibility:hidden; pointer-events:none; transition:opacity 500ms ease,visibility 500ms; }
.media-slide.is-active { opacity:1; visibility:visible; pointer-events:auto; }
.media-slide img { width:100%; height:100%; display:block; object-fit:contain; }
/* Intrinsic video dimensions, with both axes bounded by the unchanged card frame. */
.media-slide video { position:absolute; inset:0; margin:auto; width:auto; height:100%; max-width:100%; max-height:100%; display:block; object-fit:contain; transform:none; }
.carousel-controls { display:flex; gap:10px; align-items:center; min-height:48px; }
.carousel-controls button { color:var(--color-charcoal); font:.74rem var(--font-sans); background:none; border:0; cursor:pointer; min-height:44px; min-width:38px; padding:8px 2px; }
.carousel-controls .carousel-toggle { margin-left:auto; text-align:right; }
.carousel-count { font-size:.75rem; white-space:nowrap; }
.service-description { font-size:1rem; line-height:1.8; margin:12px 0 20px; }
.service-explore { margin-top:auto; align-self:flex-start; font-size:.85rem; border-bottom:1px solid; padding-bottom:6px; }
.home-page .selected-projects { padding:60px 0; }
.home-page .projects-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:24px; align-items:start; }
.home-page .project-card { min-width:0; }
.home-page .project-image-container { aspect-ratio:5/6; display:flex; align-items:center; justify-content:center; overflow:hidden; background:var(--color-ivory); }
.home-page .project-image { width:auto; max-width:100%; height:100%; display:block; object-fit:contain; object-position:center; }
.home-page .project-saryou .media-slide .project-image { width:100%; height:100%; object-fit:contain; object-position:center; }
.home-page .project-title { min-height:2.6em; margin-bottom:8px; font-size:clamp(20px,1.8vw,28px); line-height:1.3; text-wrap:balance; }
.home-page .project-medium { font-size:.8rem; line-height:1.6; }
.home-page .about .container-narrow { max-width:1000px; }
.home-page .about-content { grid-template-columns:160px minmax(0,1fr); align-items:start; gap:48px; }
.home-page .about-image-container { max-width:160px; background:transparent; }
.home-page .about-text p { font-size:.97rem; line-height:1.85; margin-bottom:20px; }
.home-page .contact .line-heading { margin-left:auto; margin-right:auto; }
.home-page:lang(ja) { word-break:normal; }
.home-page:lang(ja) .hero-subtitle { font-family:var(--font-sans); font-size:clamp(.95rem,1.6vw,1.2rem); }
.home-page:lang(ja) .line-heading { font-family:var(--font-sans); font-size:clamp(1.8rem,3.3vw,2.8rem); line-height:1.4; }
.home-page:lang(ja) .service-title { font-family:var(--font-sans); font-size:clamp(18px,1.65vw,24px); line-height:1.5; min-height:3em; line-break:strict; }
@media(max-width:1100px) {
 .home-services-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .home-service,.home-service:nth-child(4),.home-service:nth-child(5) { grid-column:auto; }
 .home-page .projects-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:600px) {
 .home-page .hero { padding:8px 20px 38px; }
 .home-page .hero-logo-container { --logo-size:180px; }
 .home-page .hero-subtitle { margin-bottom:16px; }
 .hero-biography { text-align:left; }
 .home-services-grid { grid-template-columns:minmax(0,1fr); gap:32px; }
 .home-service .service-title,.home-page:lang(ja) .service-title { min-height:0; margin-bottom:14px; }
 .home-page .projects-grid { grid-template-columns:minmax(0,1fr); }
 .home-page .project-title { min-height:0; }
 .home-page .about-content { grid-template-columns:minmax(0,1fr); gap:24px; }
 .home-page .about-image-container { width:140px; margin:0 auto; }
 .home-page .container,.home-page .container-narrow { padding-left:20px; padding-right:20px; }
 .home-page .contact-intro { line-height:1.9; }
}
@media(prefers-reduced-motion:reduce) {
 .brush-ready .line-heading::after,.brush-ready .hero-brush,.brush-ready .line-heading.is-drawn::after,.brush-ready .hero-brush.is-drawn { clip-path:inset(0); transition:none; }
 .media-slide { transition:none; }
}
/* 03 is the height reference; each artwork retains its own ratio and width. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.representative-gallery { --gallery-height: 520px; --gallery-gap: 0px; padding: 1rem 0 2.5rem; }
.gallery-viewport { width: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.gallery-track { display: flex; width: max-content; }
.gallery-set { display: flex; flex: none; align-items: center; gap: 0; padding: 0; }
.gallery-item { flex: none; height: var(--gallery-height); aspect-ratio: var(--art-ratio); margin: 0; padding: 0; border: 0; }
.gallery-item img { display: block; height: 100%; width: 100%; object-fit: contain; cursor: zoom-in; }
.gallery-clone { display: none; }
.gallery-ready .gallery-viewport { overflow-x: auto; touch-action: pan-x pan-y; cursor: grab; }
.gallery-ready .gallery-track { animation: gallery-drift var(--gallery-duration) linear infinite; will-change: transform; }
.gallery-ready .gallery-clone { display: flex; }
.gallery-paused .gallery-track { animation-play-state: paused; }
.gallery-static .gallery-viewport, .gallery-browsing .gallery-viewport { overflow-x: auto; touch-action: pan-x pan-y; }
.gallery-static .gallery-track, .gallery-browsing .gallery-track { animation: none; transform: none; }
.gallery-static .gallery-clone, .gallery-browsing .gallery-clone { display: none; }
.gallery-controls { display: flex; justify-content: flex-end; max-width: 1400px; margin: 1rem auto 0; padding: 0 2rem; }
.gallery-toggle { background: none; border: 0; color: var(--color-mid-gray); font: .75rem var(--font-sans); padding: 8px 0; min-height: 44px; cursor: pointer; }
@keyframes gallery-drift { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--gallery-cycle))); } }

@media(max-width:768px) { .representative-gallery { --gallery-height:320px; } .gallery-controls { padding:0 20px; } }
@media(prefers-reduced-motion:reduce) { .gallery-ready .gallery-viewport { overflow-x:auto; touch-action:pan-x pan-y; } .gallery-ready .gallery-track { animation:none !important; transform:none !important; } .gallery-clone { display:none !important; } }

/* Saryou: the supplied three photos remain in their numbered order. */
.home-page :is(.project-saryou,.project-shimazu) .media-stage{aspect-ratio:5/6}
.home-page :is(.project-saryou,.project-shimazu) .carousel-controls{gap:5px}
.home-page :is(.project-saryou,.project-shimazu) .carousel-controls button{min-width:28px;font-size:11px}
.home-page :is(.project-saryou,.project-shimazu) .project-info{margin-top:0}
