/* Hallmark · genre: atmospheric · macrostructure: Portfolio Grid with spatial showcase
 * WING WEB v2 · luminous midnight / ice / electric blue · real-work gallery, not fake UI
 * User direction: advanced, expressive, desire-led; replaces the quiet v1 world.
 * Pre-emit self-critique (subjective, not a test score): P4 H4 E4 S4 R4 V4.
 */
@font-face { font-family: "WING Display"; src: url("fonts/wing-display-900.woff2") format("woff2"); font-style: normal; font-weight: 900; font-display: swap; }
.home { background: var(--color-night); --font-display: "WING Display", "Yu Gothic", "Hiragino Sans", "Meiryo", sans-serif; }
.home .hdr { border-color: var(--color-clear-rule); background: var(--color-night); color: var(--color-surface); }
.home .hdr .logo { color: var(--color-surface); }
.home .hdr .logo b { font-size: 1.45rem; letter-spacing: -.035em; }
.home .hdr .logo small { color: var(--color-stage-muted); font-family: var(--font-body); font-size: .56rem; letter-spacing: .17em; }
.home .hdr .btn--main { background: var(--color-ice); border-color: var(--color-ice); color: var(--color-night); border-radius: 99px; }
.home .hdr .burger, .home .menu { background: var(--color-night); color: var(--color-surface); border-color: var(--color-clear-rule); }
.home .menu a { border-color: var(--color-clear-rule); }
.home .desktop-nav a { font-size: .8rem; }
.home .ww-hero { position: relative; isolation: isolate; overflow: clip; background: var(--color-night); color: var(--color-surface); padding: 0 !important; }
.hero-art { position: absolute; inset: -8% -9% -8% 8%; z-index: -3; pointer-events: none; opacity: .82; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--color-night) 0%, transparent 58%), linear-gradient(0deg, var(--color-night) 0%, transparent 24%); }
.hero-current { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .6; }
.hero-wordmark { position: absolute; left: 3%; bottom: -.1em; z-index: -2; font-family: var(--font-display); font-size: 18vw; font-weight: 900; line-height: 1; letter-spacing: -.04em; white-space: nowrap; color: var(--color-clear-soft); user-select: none; }
.home .hero-grid { position: relative; min-height: min(790px, calc(100svh - 145px)); grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr); gap: 1rem; padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.home .hero-copy { position: relative; z-index: 3; padding-bottom: 1rem; }
.home .hero-kicker { margin: 0 0 1rem; color: var(--color-stage-muted); font-family: var(--font-utility); font-size: .7rem; font-weight: 700; line-height: 1.7; letter-spacing: .08em; }
.home .hero-copy h1 { max-width: none; font-size: clamp(2.7rem, 4.9vw, 5.4rem); line-height: 1.35; letter-spacing: -.04em; }
.hero-line { display: block; white-space: nowrap; }
.hero-line--accent { color: var(--color-ice); }
.home .hero-lede { max-width: 30rem; margin-top: 1.75rem; color: var(--color-stage-muted); font-size: clamp(.9rem, 1.12vw, 1.05rem); line-height: 1.95; }
.home .hero-actions { margin-top: 2rem; gap: 1.3rem; }
.home .hero-actions .btn { min-height: 3.8rem; border: 0; border-radius: 99px; padding: 1.1rem 1.5rem; background: var(--color-ice); color: var(--color-night); font-size: .92rem; }
.hero-actions svg, .scroll-cue svg, .motion-toggle svg, .stage-layout svg, .stage-hint svg, .screen-open svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.home .hero-actions .text-link { color: var(--color-surface); font-size: .86rem; gap: .5rem; }
.home .hero-price { margin-top: 1.5rem; font-size: .73rem; line-height: 1.9; color: var(--color-stage-muted); }
.home .hero-price small { font-size: .68rem; }
.project-experience { position: relative; min-width: 0; align-self: center; padding-top: .75rem; z-index: 2; }
.stage-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: relative; z-index: 4; }
.stage-head p { margin: 0; font-size: .75rem; color: var(--color-stage-muted); letter-spacing: .03em; }
.stage-layout { display: inline-flex; gap: .5rem; align-items: center; border: 1px solid var(--color-clear-rule); padding: .55rem .8rem; min-height: 2.75rem; border-radius: 99px; background: var(--color-clear-soft); color: var(--color-surface); font-size: .7rem; white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s; }
.stage-layout[aria-pressed="true"] { background: var(--color-ice); color: var(--color-night); }
.project-stage { position: relative; height: clamp(320px, 34vw, 505px); margin: -1.5rem -2.8rem -1.5rem -1rem; perspective: 1400px; perspective-origin: 50% 45%; touch-action: pan-y; }
.stage-orbit { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg)); }
.stage-screen { position: absolute; display: block; width: 84%; top: 27%; left: 8%; aspect-ratio: 960 / 476; border-radius: 8px; overflow: clip; box-shadow: var(--shadow-stage); background: var(--color-surface); transform-style: preserve-3d; backface-visibility: hidden; transition: transform 950ms var(--ease-out), opacity 800ms var(--ease-out), filter 800ms var(--ease-out); -webkit-user-drag: none; }
.stage-screen img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; }
.stage-screen.is-front { z-index: 3; transform: translate3d(0, 8px, 95px) rotateY(-15deg) rotateX(6deg) rotateZ(-5deg); opacity: 1; }
.stage-screen.is-right { z-index: 1; transform: translate3d(calc(11% + var(--scroll-fan, 0px)), calc(-45% - var(--scroll-fan, 0px)), -160px) rotateY(-20deg) rotateX(5deg) rotateZ(9deg) scale(.9); filter: brightness(.78); opacity: .88; pointer-events: none; }
.stage-screen.is-left { z-index: 2; transform: translate3d(calc(-9% - var(--scroll-fan, 0px)), calc(55% + var(--scroll-fan, 0px)), -180px) rotateY(-12deg) rotateX(5deg) rotateZ(5deg) scale(.83); filter: brightness(.73); opacity: .88; pointer-events: none; }
.screen-open { display: flex; align-items: center; gap: .6rem; position: absolute; right: 1rem; bottom: 1rem; padding: .6rem .85rem; background: var(--color-night); color: var(--color-surface); border-radius: 99px; font-size: .66rem; opacity: 0; transform: translateY(.4rem); transition: opacity .2s, transform .2s; }
.stage-screen.is-front:hover .screen-open, .stage-screen:focus-visible .screen-open { opacity: 1; transform: none; }
.stage-floor { position: absolute; left: 10%; right: -10%; top: 61%; height: 36%; border: 1px solid var(--color-clear-rule); border-radius: 50%; transform: rotateX(69deg); opacity: .55; }
.stage-floor::before, .stage-floor::after { content: ""; position: absolute; inset: -18%; border: 1px solid var(--color-clear-rule); border-radius: 50%; }
.stage-floor::after { inset: -36%; opacity: .5; }
.stage-hint { position: absolute; bottom: 6%; right: 6%; display: flex; align-items: center; gap: .5rem; color: var(--color-stage-muted); font-size: .65rem; pointer-events: none; }
.stage-caption { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; position: relative; z-index: 4; }
.stage-caption h2 { font-size: 1.5rem; font-weight: 700; margin-top: .45rem; }
.stage-kind { color: var(--color-stage-muted); font-size: .7rem; }
.stage-arrows { display: flex; gap: .5rem; }
.stage-arrows .icon-btn { border-color: var(--color-clear-rule); background: var(--color-clear-soft); color: var(--color-surface); }
.stage-selectors { display: flex; gap: 1.25rem; margin-top: 1.15rem; border-top: 1px solid var(--color-clear-rule); }
.stage-selectors button { flex: 1; min-height: 3rem; padding: .75rem 0; position: relative; border: 0; border-top: 2px solid transparent; margin-top: -1px; background: transparent; color: var(--color-stage-muted); font-family: var(--font-body); font-size: .67rem; font-weight: 700; white-space: nowrap; cursor: pointer; transition: color .2s, border-color .2s; }
.stage-selectors button.is-selected { color: var(--color-surface); border-top-color: var(--color-ice); }
.project-experience.is-spread .stage-screen { top: 27%; width: 59%; pointer-events: auto; filter: none; opacity: 1; }
.project-experience.is-spread .stage-screen:nth-of-type(1) { transform: translate3d(-22%, -32%, -80px) rotateZ(-9deg); }
.project-experience.is-spread .stage-screen:nth-of-type(2) { transform: translate3d(65%, -10%, -60px) rotateZ(8deg); }
.project-experience.is-spread .stage-screen:nth-of-type(3) { transform: translate3d(20%, 67%, 0) rotateZ(-3deg); }
.hero-bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 5.25rem; border-top: 1px solid var(--color-clear-rule); z-index: 4; }
.hero-bottom > p { margin: 0; font-size: .65rem; letter-spacing: .18em; color: var(--color-stage-muted); }
.scroll-cue { display: inline-flex; align-items: center; gap: .9rem; color: var(--color-surface); font-size: .7rem; text-decoration: none; }
.scroll-cue svg { animation: scroll-hint 1.8s var(--ease-in-out) infinite; }
.hero-bottom .motion-toggle { min-height: 2.75rem; display: inline-flex; align-items: center; gap: .45rem; padding-inline: .5rem; color: var(--color-stage-muted); border: 0; background: transparent; }
.motion-toggle svg { width: .95rem; height: .95rem; }
.home.is-ready .hero-copy { animation: none; }
.home.is-ready .hero-line { animation: type-arrive 900ms var(--ease-out) both; }
.home.is-ready .hero-line:nth-child(2) { animation-delay: 100ms; }
.home.is-ready .hero-line:nth-child(3) { animation-delay: 200ms; }
.home.is-ready .project-experience { animation: stage-arrive 1300ms var(--ease-out) both; }
.experience.is-paused .scroll-cue svg { animation-play-state: paused; }
.home ::selection { background: var(--color-ice); color: var(--color-night); }
.home .field input, .home .field textarea { caret-color: var(--color-electric); }
@keyframes type-arrive { from { clip-path: inset(0 0 100% 0); transform: translateY(18px); } to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes stage-arrive { from { transform: translate3d(5%, 2%, 0); filter: blur(4px); } to { transform: none; filter: blur(0); } }
@keyframes scroll-hint { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
@media (hover:hover) {
  .home .hdr .btn--main:hover, .home .hero-actions .btn:hover { background: var(--color-peach); color: var(--color-night); }
  .stage-layout:hover, .stage-arrows .icon-btn:hover { background: var(--color-ice); color: var(--color-night); }
  .stage-selectors button:hover { color: var(--color-ice); }
}
@media (min-width:1600px) { .home .hero-grid { min-height: 780px; } }
@media (max-width:1100px) and (min-width:961px) {
  .home .hero-copy h1 { font-size: 4.75vw; }
  .home .hero-actions { gap: .6rem; }
  .home .hero-actions .btn { font-size: .8rem; padding-inline: 1.1rem; }
  .home .hero-actions .text-link { font-size: .74rem; }
  .project-stage { margin-right: -1rem; }
}
@media (max-width:960px) {
  .home .hero-grid { min-height: 0; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-top: 3rem; padding-bottom: 2rem; }
  .home .hero-copy { max-width: 46rem; padding-bottom: 0; }
  .home .hero-copy h1 { font-size: clamp(2.6rem, 7.2vw, 4.5rem); line-height: 1.22; }
  .hero-line { display: inline; white-space: normal; }
  .hero-line:last-child { display: block; }
  .home .hero-lede { max-width: 100%; margin-top: 1.4rem; }
  .home .hero-actions { margin-top: 1.4rem; }
  .hero-art { inset: 17% -22% -5% -25%; opacity: .8; }
  .hero-art::after { background: linear-gradient(180deg, var(--color-night), transparent 30%, transparent 82%, var(--color-night)); }
  .project-experience { width: min(100%, 620px); justify-self: center; padding-top: 2rem; }
  .project-stage { height: 410px; margin-top: -1rem; margin-bottom: -1.2rem; margin-inline: -1rem; }
  .stage-head { padding-inline: .25rem; }
  .stage-screen { width: 78%; left: 11%; }
  .hero-wordmark { font-size: 19vw; bottom: 4rem; }
  .hero-bottom > p { display: none; }
}
@media (max-width:600px) {
  .home .hero-grid { padding-top: 2.2rem; gap: 1.2rem; }
  .home .hero-copy { display: contents; }
  .home .hero-kicker { order: -1; margin: 0; font-size: .63rem; letter-spacing: .04em; }
  .home .hero-copy h1 { order: 0; font-size: clamp(2.05rem, 8vw, 3rem); line-height: 1.27; }
  .hero-line { display: block; white-space: nowrap; }
  .home .hero-lede { order: 2; font-size: .82rem; line-height: 1.85; margin: .4rem 0 0; }
  .home .hero-actions { order: 3; flex-direction: row; flex-wrap: nowrap; gap: 1rem; align-items: center; margin: 0; }
  .home .hero-actions .btn { min-height: 3.2rem; font-size: .75rem; padding: .85rem 1.05rem; gap: .5rem; width: auto; }
  .home .hero-actions .text-link { font-size: .72rem; width: auto; }
  .hero-actions svg { width: 1rem; height: 1rem; }
  .home .hero-price { order: 4; font-size: .65rem; margin: 0; }
  .home .hero-price small { font-size: .59rem; }
  .home .hero-price span { display: inline; }
  .project-experience { order: 1; padding-top: 0; }
  .stage-head p { font-size: .63rem; }
  .stage-layout { font-size: .62rem; min-height: 2.4rem; padding: .4rem .6rem; }
  .stage-layout svg { width: .9rem; height: .9rem; }
  .project-stage { height: clamp(260px, 80vw, 390px); margin-inline: -.4rem; margin-top: -1.5rem; margin-bottom: -1.2rem; }
  .stage-screen { top: 29%; width: 86%; left: 7%; border-radius: 5px; }
  .stage-screen.is-front { transform: translate3d(0, 3px, 42px) rotateY(-13deg) rotateX(6deg) rotateZ(-5deg); }
  .stage-screen.is-right { transform: translate3d(8%, -50%, -130px) rotateY(-15deg) rotateZ(9deg) scale(.88); }
  .stage-screen.is-left { transform: translate3d(-7%, 58%, -120px) rotateY(-10deg) rotateZ(5deg) scale(.82); }
  .stage-hint { right: 2%; bottom: 5%; font-size: .56rem; }
  .stage-caption h2 { font-size: 1.15rem; }
  .stage-kind { font-size: .62rem; }
  .stage-arrows .icon-btn { width: 2.65rem; height: 2.65rem; }
  .stage-selectors { gap: .6rem; margin-top: .8rem; }
  .stage-selectors button { font-size: .59rem; }
  .hero-bottom { min-height: 4.2rem; gap: .5rem; }
  .scroll-cue, .hero-bottom .motion-toggle { font-size: .61rem; }
  .scroll-cue { gap: .5rem; }
  .scroll-cue svg { width: 1rem; }
  .hero-art { inset: 10% -38% 5% -32%; }
  .hero-current { opacity: .3; }
}
@media (max-width:360px) {
  .home .hero-actions { gap: .4rem; flex-wrap: wrap; }
  .home .hero-actions .btn { font-size: .75rem; padding-inline: .8rem; }
  .home .hero-actions .text-link { font-size: .75rem; }
  .stage-caption { gap: .5rem; }
}
.home .hdr .logo small, .home .logo--footer small { font-size: .7rem; letter-spacing: .08em; }
.home .hero-price, .home .hero-price small, .stage-head p, .stage-layout, .stage-kind,
.stage-selectors button, .screen-open, .hero-bottom .motion-toggle, .scroll-cue { font-size: .75rem; }
.hero-bottom > p { font-size: .7rem; letter-spacing: .08em; }
.home .req { font-size: .7rem; }
.stage-hint { display: none; }
.home .header-cta { display: inline-flex; }
.home .field input, .home .field select, .home .field textarea { border-color: var(--color-field-border); }
@media (max-width:416px) {
  .home .hdr__in { gap: .5rem; }
  .home .hdr .logo b { font-size: 1.2rem; }
  .home .hdr .logo small { font-size: .7rem; letter-spacing: .02em; }
  .home .header-cta { padding-inline: .7rem; font-size: .75rem; }
  .home .burger { margin-left: 0; }
}
@media (prefers-reduced-motion:reduce) {
  .home.is-ready .hero-line, .home.is-ready .project-experience, .scroll-cue svg { animation: none; }
  .stage-orbit { transform: none !important; }
  .hero-art { transform: none !important; }
  .stage-screen { transition: opacity .15s ease; }
}
