:root { --ink: #252f34; --muted: #657079; --paper: #f6f7f3; --blue: #315fd5; --line: #d9dedc; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
.home { color: var(--ink); background: var(--paper); letter-spacing: .025em; }
.home a { color: inherit; }
.home :focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
.home .wrapper { position: relative; padding-top: 84px; }
.home .container { max-width: 1440px; padding-left: 64px; padding-right: 64px; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 20; padding: 14px; background: white; }
.skip-link:focus { top: 15px; }
.ambient-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient-scene canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1s; }
.ambient-scene.is-ready canvas { opacity: 1; }
.ambient-fallback { position: absolute; inset: 0; }
.ambient-fallback i { position: absolute; width: clamp(52px, 12vw, 150px); aspect-ratio: 1; background: #eee8d8; box-shadow: 20px 25px 25px #00000012; transform: rotate(-25deg); }
.ambient-fallback i:nth-child(1) { left: 15%; top: 60%; }
.ambient-fallback i:nth-child(2) { right: 20%; top: 20%; background: #efcd14; border-radius: 25%; }
.ambient-fallback i:nth-child(3) { right: 12%; top: 62%; background: #ec4540; border-radius: 50%; }
.ambient-fallback i:nth-child(4) { left: 18%; top: 22%; background: #7cbea5; border-radius: 50%; }
.is-ready .ambient-fallback { visibility: hidden; }
.home .header { z-index: 10; background: #f6f7f3e8; backdrop-filter: blur(18px); box-shadow: none; border-bottom: 1px solid var(--line); }
.home .header .container { min-height: 84px; padding-top: 18px; padding-bottom: 18px; }
.home .header-logo { font-size: 18px; font-weight: 400; letter-spacing: 0; }
.home .header-logo a { color: #111; }
.home .gnav-list { align-items: center; gap: 26px; }
.home .gnav-item:not(:last-child) { margin: 0; }
.home .gnav-item a { font-size: 10px; letter-spacing: .09em; }
.home .gnav-item a:after { height: 1px; background: var(--blue); }
.home .mv { height: calc(100svh - 84px); min-height: 600px; position: relative; justify-content: center; text-align: center; }
.home .mv-container { padding: 0 0 10px; position: relative; z-index: 1; }
.eyebrow { font-family: "Montserrat", sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .16em; line-height: 1.8; color: var(--muted); }
.home .mv-title { font-family: "Helvetica Neue", Arial, sans-serif; color: #111; font-size: clamp(42px, 5vw, 68px); font-weight: 400; line-height: 1.2; letter-spacing: -.025em; margin: 0 0 24px; }
.home .mv-text { color: #4c575f; font-size: 14px; line-height: 1.9; }
.home .mv-text .sp-only { display: none; }
.hero-bottom { position: absolute; left: 64px; right: 64px; bottom: 30px; display: flex; justify-content: space-between; align-items: center; font-size: 9px; letter-spacing: .16em; color: var(--muted); }
.home .section { padding: 90px 0; background: #f6f7f3e8; }
.home .works { border-top: 1px solid var(--line); background: #f6f7f3db; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 42px; }
.home .title { font-size: 44px; line-height: 1.1; text-align: left; letter-spacing: -.055em; margin: 12px 0 42px; color: var(--ink); }
.section-heading .title { margin-bottom: 0; }
.work-count { display: inline-block; font-size: 12px; letter-spacing: 0; color: var(--muted); vertical-align: top; margin: 5px 0 0 12px; font-weight: 400; }
.section-note { color: var(--muted); font-size: 12px; line-height: 1.9; }
.home .works-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 24px; margin: 0; counter-reset: work; }
.home .works-item { width: auto; margin: 0; min-width: 0; position: relative; counter-increment: work; opacity: 1; transition: transform .35s ease; }
.home .works-img { aspect-ratio: 4 / 3; width: 100%; display: flex; align-items: center; justify-content: center; padding: 18px; background: #e9edeb; border: 1px solid #e0e5e1; position: relative; transition: background .35s, border-color .35s, box-shadow .35s; }
/* Contain preserves the complete original image, including portrait works. */
.home .works-img img { display: block; width: 100%; height: 100%; object-fit: contain; border: 0; }
.home .works-name { font-size: 12px; line-height: 1.8; margin: 16px 26px 0 0; }
.home .works-info { font-size: 9px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; margin-top: 5px; }
.home .works-item::after { content: "↗"; position: absolute; right: 2px; bottom: 22px; color: #687c8a; transition: transform .25s, color .25s; }
.home .works-item:focus-visible .works-img { border-color: var(--blue); }
@media (hover: hover) {
  .home .works-item:hover { transform: translateY(-6px); }
  .home .works-item:hover .works-img { background: #e0e8ed; border-color: #b3c2d3; box-shadow: 0 14px 26px -20px #35577780; }
  .home .works-item:hover::after { transform: translate(2px, -2px); color: var(--blue); }
}
.garden-invitation { display: flex; justify-content: center; padding-top: 12px; padding-bottom: 72px; background: #f6f7f3e8; }
.garden-entrance { display: block; padding: 12px; transition: transform .3s; }
.garden-entrance:hover { transform: translateY(-5px) rotate(-4deg); }
.garden-card-art { width: 88px; }
.garden-card-art svg { width: 100%; display: block; }
.home .skill { border-top: 1px solid var(--line); }
.home .skill-list { gap: 40px 64px; margin: 0; }
.home .skill-item { width: calc(50% - 32px); padding-top: 24px; border-top: 1px solid var(--line); margin: 0; }
.home .skill-name { font-size: 15px; letter-spacing: -.02em; }
.home .skill-text, .home .profile-body p { font-size: 13px; color: #5d686f; line-height: 2; }
.home .skill-img { width: 44px; margin-right: 24px; }
.home .about { border-top: 1px solid var(--line); }
.home .profile { max-width: none; }
.home .profile-img { max-width: 140px; margin-right: 50px; }
.home .profile-body { max-width: 690px; }
.home .contact { border-top: 1px solid var(--line); text-align: left; }
.home .contact .lead { font-size: 13px; color: var(--muted); }
.home .contact-list { display: flex; flex-wrap: wrap; gap: 24px; }
.home .contact-item { margin: 0; padding-bottom: 8px; border-bottom: 1px solid #98a8b6; font-size: 12px; }
.home .contact-item:hover { color: var(--blue); }
.home .page-top { display: block; background: #ebeeea; color: var(--muted); padding: 24px; font-size: 9px; letter-spacing: .13em; border-top: 1px solid var(--line); }
.home .page-top span { margin-left: 12px; }
.home .footer { padding: 25px 64px; background: var(--paper); }
.home .copyright { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
@media (max-width: 1000px) {
  .home .container { padding-left: 36px; padding-right: 36px; }
  .hero-bottom { left: 36px; right: 36px; }
  .home .works-list { gap: 32px 18px; }
  .home .works-img { padding: 12px; }
}
@media (max-width: 767px) {
  html { scroll-padding-top: 112px; }
  .home .wrapper { padding-top: 98px; }
  .home .container { padding-left: 22px; padding-right: 22px; }
  .home .header .container { min-height: 98px; flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 12px; }
  .home .header-logo { width: 100%; font-size: 18px; }
  .home .gnav { width: 100%; }
  .home .gnav-list { gap: 10px; justify-content: space-between; }
  .home .gnav-item a { font-size: 9px; }
  .home .mv { min-height: 580px; height: calc(100svh - 98px); align-items: center; }
  .home .mv-container { padding: 0 0 60px; }
  .home .mv-title { font-size: 42px; margin: 0 0 22px; }
  .home .mv-text { font-size: 12px; }
  .hero-bottom { left: 22px; right: 22px; bottom: 20px; font-size: 8px; }
  .home .section { padding: 58px 0; }
  .home .title { font-size: 34px; margin-bottom: 28px; }
  .section-heading { margin-bottom: 28px; }
  .section-heading .title { margin-bottom: 0; }
  .section-note { font-size: 10px; }
  .eyebrow { font-size: 8px; }
  .home .works-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
  .home .works-img { padding: 9px; }
  .home .works-name { font-size: 11px; margin-top: 11px; margin-right: 14px; }
  .home .works-info { font-size: 8px; }
  .home .works-item::after { font-size: 11px; }
  .garden-invitation { padding-top: 0; padding-bottom: 56px; }
  .home .skill-item { width: 100%; margin-bottom: 26px; }
  .home .skill-item:last-child { margin-bottom: 0; }
  .home .profile-img { margin: 0 0 25px; width: 96px; }
  .home .footer { padding: 22px; }
  .home .copyright { gap: 16px; font-size: 8px; }
}
@media (max-width: 380px) { .section-note { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; }
}
