@charset "UTF-8";
:root{
  --ink:#261e19; --orange:#df6007; --paper:#fbf8f1; --frame:#92734d;
  --scene-w:max(100vw,150svh); --scene-h:max(66.6667vw,100svh);
  --scene-y:0px;  --scene-filter:saturate(.69) contrast(.95);
  --season-position:100% 0%; --scene-image:url('./assets/seasons.webp');
  --scene-size:200% 200%; --overlay:transparent; --foreground-light:1;
  color-scheme:light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:24px}
body{margin:0;color:var(--ink);background:#96a99c;font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif JP",serif;line-height:1.85}
a{color:inherit;text-decoration:none}
button,select{font-family:inherit;color:inherit}
button{cursor:pointer}
button,a,select{-webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible,select:focus-visible{outline:2px solid var(--orange);outline-offset:5px}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.skip{position:fixed;top:-80px;left:16px;background:var(--paper);padding:12px 20px;z-index:100}
.skip:focus{top:10px}
.world{position:fixed;inset:0;overflow:hidden;z-index:0;background:#96a99c;pointer-events:none}
.scene-plane{position:absolute;left:50%;top:50%;width:var(--scene-w);height:var(--scene-h);background-image:var(--scene-image);background-size:var(--scene-size);background-position:var(--season-position);background-repeat:no-repeat;filter:var(--scene-filter);transform:translate(-50%,calc(-50% + var(--scene-y)));transition:filter 1.4s}
body[data-season="summer"]{--scene-image:url('./assets/scenery.webp');--scene-size:100% 100%;--season-position:50% 50%}
body[data-season="spring"]{--season-position:0% 0%;--scene-filter:saturate(.65) contrast(.96)}
body[data-season="autumn"]{--season-position:0% 100%;--scene-filter:saturate(.62) contrast(.95)}
body[data-season="winter"]{--season-position:100% 100%;--scene-filter:saturate(.52) contrast(.96)}
.light{position:absolute;inset:0;background:var(--overlay);mix-blend-mode:multiply;transition:background 1.4s}
.sky{position:absolute;inset:0}
.orb{position:absolute;top:7%;right:18%;width:46px;height:46px;border-radius:50%;background:radial-gradient(circle,#fff8dfbb,transparent 72%);box-shadow:0 0 65px 30px #fff3cc1c;transition:opacity 1.4s}
.stars{position:absolute;inset:0;opacity:0;transition:opacity 1.4s;background-image:radial-gradient(1px 1px at 50% 5%,#fff9 90%,transparent),radial-gradient(1px 1px at 65% 10%,#fff9 90%,transparent),radial-gradient(1px 1px at 81% 6%,#fff8 90%,transparent),radial-gradient(1.5px 1.5px at 91% 15%,#fff9 90%,transparent),radial-gradient(1px 1px at 76% 18%,#fff7 90%,transparent),radial-gradient(1px 1px at 40% 11%,#fff7 90%,transparent)}
body[data-time="morning"]{--overlay:#f5e1bd35;--foreground-light:1.02}
body[data-time="evening"]{--overlay:#a886685a;--foreground-light:.84}
body[data-time="evening"] .orb{top:12%;right:10%;background:#f1d9b8a0;box-shadow:0 0 55px 25px #edd5b31c;width:32px;height:32px}
body[data-time="night"]{--overlay:#142539dc;--foreground-light:.3}
body[data-time="night"] .orb{width:26px;height:26px;background:#f3f2de;box-shadow:0 0 30px #fff3}
body[data-time="night"] .stars{opacity:.8}
body:not([data-weather="sunny"]) .orb{opacity:0}
body[data-weather="cloudy"] .light,body[data-weather="rain"] .light,body[data-weather="snow"] .light{background:linear-gradient(#6d7c8a63,#a5afa824),var(--overlay)}
.composition{position:relative;padding-bottom:70px;isolation:isolate}
.frame{position:relative;z-index:2;border:1px solid var(--frame);outline:1px solid #b59970;outline-offset:-7px;background-color:var(--paper);box-shadow:0 2px 0 #fff9 inset,0 8px 28px #29271f1a;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%239b8c73' opacity='.04' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}
.frame:focus{outline:none}
.frame:focus-visible{outline:2px solid var(--orange);outline-offset:3px}
.frame-corner{position:absolute;width:35px;height:35px;color:var(--frame);z-index:4;pointer-events:none}
.tl{top:3px;left:3px}
.tr{top:3px;right:3px;transform:rotate(90deg)}
.bl{bottom:3px;left:3px;transform:rotate(-90deg)}
.br{bottom:3px;right:3px;transform:rotate(180deg)}
.ornament-definitions{position:absolute}
.mountain-wash{position:absolute;left:10px;right:10px;bottom:9px;height:90px;opacity:.48;background-image:url('./assets/scenery.webp');background-size:100% auto;background-position:80% 69%;mask-image:linear-gradient(transparent 0%,transparent 20%,#0008 65%,#000 100%);pointer-events:none;z-index:0;filter:saturate(.35)}
.branch-overlay{position:absolute;z-index:4;pointer-events:none;top:78px;right:-82px;width:260px;max-width:34vw;height:auto;opacity:.66;filter:saturate(.55) brightness(1.04) drop-shadow(-14px 26px 12px #585a3726)}
.branch-shadow{position:absolute;right:0;top:75px;width:280px;height:260px;pointer-events:none;opacity:.07;background:url('./assets/branch.webp') no-repeat center/contain;filter:brightness(0) blur(4px);transform:translate(-14px,42px) rotate(-9deg);z-index:1}
body[data-season="autumn"] .branch-overlay{filter:sepia(.5) saturate(.65);opacity:.45}
body[data-season="winter"] .branch-overlay,body[data-season="winter"] .branch-shadow{opacity:0}
.site-header{position:relative;z-index:3;display:grid;grid-template-columns:37% 1fr;align-items:center;min-height:78px}
.brand{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-right:26px;white-space:nowrap}
.wordmark-image{display:block;width:190px;max-width:100%;height:auto;mix-blend-mode:multiply}
.brand-sub{display:flex;align-items:center;justify-content:center;gap:9px;font-size:11px;letter-spacing:1.1px;line-height:1.4;margin-top:-1px}
.brand-sub i{display:block;width:25px;height:1px;background:#897563}
nav{display:flex;justify-content:space-between;align-items:center;gap:19px;min-height:68px;border-left:1px solid #8b7963;padding-left:39px}
nav a{position:relative;font-size:14px;letter-spacing:1px;line-height:1.5;padding:10px 0;white-space:nowrap}
nav a:after{content:"";position:absolute;bottom:1px;left:0;right:0;height:3px;background:var(--orange);transform:scaleX(0);transform-origin:left;transition:transform .2s}
nav a.active:after,nav a:hover:after{transform:scaleX(1)}
.page-panel{position:relative;z-index:2}
.hero{padding-top:32px}
h1{font-weight:400;font-size:44px;line-height:1.45;letter-spacing:.075em;margin:0 0 18px;white-space:nowrap}
.intro{font-size:15px;line-height:1.95;letter-spacing:.045em;margin:0 -10px 0 26px}
.hero-actions{display:grid;grid-template-columns:1fr 1.1fr;gap:28px;margin:27px 0 0 35px;position:relative;z-index:5}
.button{display:flex;justify-content:center;align-items:center;gap:17px;border:1px solid #775e4c;border-radius:9px;padding:11px 17px;font-size:16px;line-height:1.6;white-space:nowrap;min-height:49px;transition:background .2s}
.button span{font-family:serif;font-size:24px;font-weight:400;line-height:1}
.button.primary{color:white;background:var(--orange);border-color:var(--orange)}
.button.primary:hover{background:#c25405}
.button.secondary{background:#fbf8f133}
.button.secondary:hover{background:#eee7da}
footer{position:absolute;bottom:20px;right:27px;color:#fff9;font:9px Arial,sans-serif;letter-spacing:1px;text-shadow:0 1px 8px #0007;z-index:6}
.detail{padding-top:31px;min-height:360px}
.detail h1{font-size:40px;white-space:normal}
.detail p{font-size:14px;line-height:2}
.section-label{font-size:10px!important;letter-spacing:2px;color:#8b735b;margin:0 0 14px}
.back-link{display:inline-block;font-size:12px;border-bottom:1px solid #b49a7a;padding-bottom:3px;margin-top:14px}
.services{margin:15px 0 0}
.services>div{display:grid;grid-template-columns:100px 1fr;gap:10px;border-top:1px solid #c8b79e70;padding:12px 0}
.services dt{font-size:15px}
.services dd{margin:0;font-size:12px;line-height:1.9}
canvas{position:fixed;inset:0;width:100%;height:100%;pointer-events:none}
#sky-atmosphere{position:absolute}
#atmosphere{z-index:8}
.preview-toggle{position:fixed;top:18px;right:22px;z-index:30;display:flex;align-items:center;gap:9px;border:1px solid #c5b79f66;border-radius:30px;background:#fcf9f2e8;backdrop-filter:blur(8px);padding:8px 13px;font-size:10px;box-shadow:0 2px 13px #00000008}
.sun-icon{font-size:18px;line-height:1}
.toggle-sign{font:16px Arial;margin-left:6px}
.preview{position:fixed;top:66px;right:22px;width:370px;max-width:calc(100vw - 28px);background:#fcf9f2f5;border:1px solid #bdab8a;padding:24px;box-shadow:0 10px 40px #201b1726;backdrop-filter:blur(14px);z-index:35}
.preview-head{display:flex;justify-content:space-between;align-items:start;margin-bottom:22px}
.preview-head small{font:8px Arial;letter-spacing:1.7px;color:var(--orange)}
.preview h2{font-size:17px;font-weight:400;margin:6px 0 0}
.preview-head button{border:0;background:none;font-size:24px;color:#8a7e6b;min-width:28px}
.controls{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.controls label{font-size:10px;display:flex;flex-direction:column;gap:6px}
.controls select{width:100%;background:transparent;border:1px solid #bda78a99;border-radius:3px;padding:9px 3px;font-size:11px}
.preview-foot {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 20px;
}
.preview-foot button {
  min-height: 44px;
  padding: 6px 4px;
  border: 1px solid #9b866b;
  border-radius: 6px;
  background: #fffaf1;
  color: #49382a;
  box-shadow: 0 1px 2px #261e1914;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.preview-foot button:is([aria-pressed="true"], [aria-expanded="false"]) {
  background: #ede0cb;
}
@media (hover: hover) {
  .preview-foot button:hover { background: #f1e4cf; }
}
.preview-foot button:focus-visible { outline-offset: 2px; }
.preview-foot button:active { background: #e5d3b7; }
.preview-note{font-size:9px;line-height:1.8;color:#86786b;border-top:1px solid #bda78a55;margin:18px 0 0;padding-top:12px}
.scenery-status{position:fixed;right:22px;bottom:18px;z-index:25;display:flex;align-items:center;gap:8px;padding:6px 12px;background:#fcf9f2dd;backdrop-filter:blur(8px);border-radius:20px;font-size:9px;color:#746651}
.status-dot{width:4px;height:4px;background:#ab9573;border-radius:50%}

.sound-controls{display:flex;align-items:center;gap:13px;margin-top:17px;border-top:1px solid #bda78a55;padding-top:15px}
.sound-controls button{background:none;border:1px solid #bda78a99;border-radius:4px;font-size:11px;padding:7px 11px;min-height:36px}
#sound-status{font-size:9px;color:#86786b}

.vega{position:absolute;left:73%;top:8.5%;width:4px;height:4px;border-radius:50%;opacity:0;background:#f4faff;box-shadow:0 0 5px 2px #d9edff,0 0 19px 7px #6eb8ff66;transition:opacity 1.4s}
.vega:before,.vega:after{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:linear-gradient(transparent,#d2eaffb3,transparent)}
.vega:before{width:1px;height:25px}
.vega:after{width:28px;height:1px;background:linear-gradient(90deg,transparent,#d2eaffaa,transparent)}
.celestial-caption{position:absolute;left:15px;top:10px;font-size:9px;letter-spacing:1px;white-space:nowrap;color:#e8f2faad}
body[data-season="summer"][data-time="night"][data-weather="sunny"] .vega{opacity:1}
body[data-season="summer"][data-time="night"] .orb{opacity:0}
body[data-time="night"] .orb{background:transparent url('./assets/moon.webp') center/contain no-repeat;box-shadow:0 0 20px #f0f1df12;width:32px;height:32px}
body[data-season="autumn"][data-time="night"] .orb{width:86px;height:86px;top:5.5%;right:14%;filter:sepia(.18);box-shadow:none}
body[data-weather="cloudy"] .vega,body[data-weather="rain"] .vega,body[data-weather="snow"] .vega,body[data-weather="thunderstorm"] .vega{opacity:0}
body[data-weather="thunderstorm"] .light{background:linear-gradient(#304458b3,#59667076),var(--overlay)}
.lightning{position:absolute;inset:0;opacity:0;pointer-events:none;background:radial-gradient(ellipse at 77% 5%,#edf1ff,transparent 70%);mix-blend-mode:screen;z-index:3}

/* World Space: viewport camera and environment only. */
body{background:#96a99c}
body[data-season]{--scene-size:100% 100%;--season-position:50% 50%}
body[data-season="spring"]{--scene-image:url('./assets/spring-background.webp');--garden-image:url('./assets/garden.webp')}
body[data-season="summer"]{--scene-image:url('./assets/spring-background.webp');--garden-image:url('./assets/summer-garden.webp')}
body[data-season="autumn"]{--scene-image:url('./assets/autumn-background.webp');--garden-image:url('./assets/autumn-garden.webp')}
body[data-season="winter"]{--scene-image:url('./assets/winter-background.webp');--garden-image:url('./assets/winter-garden.webp')}
.garden{background-image:var(--garden-image);background-size:100% 100%;filter:var(--scene-filter)}
.world .garden,.garden-front{left:auto;right:0;top:calc(50% + 60px);width:calc(var(--scene-w)*1.3);height:calc(var(--scene-h)*1.3);transform:translateY(calc(-50% + var(--scene-y)))}
.mountain-wash{background-image:var(--scene-image);background-size:360% auto;background-position:59% 52%;opacity:.38}
.branch-overlay,.branch-shadow{display:none}
/* Local micro-motion affects the animal only, not the desk or coffee. */
.cat-breath{clip-path:polygon(32% 35%,68% 35%,68% 65%,42% 69%,32% 60%);animation:cat-breath 6.7s ease-in-out infinite;transform-origin:40% 78%}
.cat-ear{clip-path:polygon(42% 0,64% 0,65% 20%,42% 20%);transform-origin:53% 20%}
.cat-tail{clip-path:polygon(20% 66%,61% 66%,65% 84%,20% 84%);transform-origin:30% 76%}
@keyframes cat-breath{0%,100%{transform:scaleY(1)}50%{transform:scaleY(1.004)}}
:root{--mobile-light:1;--mobile-weather-light:1}
body[data-time="morning"]{--mobile-light:1.02}
body[data-time="evening"]{--mobile-light:.8}
body[data-time="night"]{--mobile-light:.22}
body[data-weather="thunderstorm"]{--mobile-weather-light:.65}
body[data-weather="rain"],body[data-weather="cloudy"]{--mobile-weather-light:.85}
.controls select,.preview-foot button,.sound-controls button{min-height:44px}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{transition:none!important;animation:none!important}.lightning{display:none!important}}

.weather-mode{display:grid;gap:5px;margin:14px 0 8px}.weather-mode select{font:inherit;padding:8px;border:1px solid #8c7d70;background:#fffcf6;color:#493d33;border-radius:6px}#weather-status{font-size:12px;line-height:1.6;margin:8px 0 14px;overflow-wrap:anywhere}.controls select:disabled{opacity:.55}.world .landscape,.room-overlay,.still-life,.window-scene-backplane{transition:filter 1.4s ease-in-out}.preview{max-height:calc(100dvh - 100px);overflow-y:auto}
