/* Echoes home-depth: layered iOS-style depth hero. Geist only. Transforms + opacity only for motion. */
html[data-theme=light]{--bg:#F1EDE6;--bgrgb:241,237,230;--fg:#14120F;--fgrgb:20,18,15}
html[data-theme=dark]{--bg:#0E0D0C;--bgrgb:14,13,12;--fg:#F1EDE6;--fgrgb:241,237,230}
html{background:var(--bg);overflow-x:clip;overscroll-behavior-y:auto}
body{overflow-x:clip}
:root{--pad:clamp(20px,4.2vw,88px);--bar:56px;--sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px);--theme-dur:1000ms;--theme-ease:var(--v-ease)}
@media (max-width:760px){:root{--bar:52px}}

/* ---- Header: slim frosted bar, flat tint, hairline. No glow, no shadows. ---- */
.hd-bar{position:fixed;top:0;left:0;right:0;z-index:50;height:calc(var(--bar) + var(--sat));padding:var(--sat) max(var(--pad),env(safe-area-inset-right)) 0 max(var(--pad),env(safe-area-inset-left));
  display:flex;align-items:center;justify-content:space-between;
  background:rgba(var(--bgrgb),.66);-webkit-backdrop-filter:blur(18px) saturate(1.5);backdrop-filter:blur(18px) saturate(1.5);
  border-bottom:1px solid rgba(var(--fgrgb),.1);color:var(--fg);
  transition:background-color var(--theme-dur) var(--theme-ease),border-color var(--theme-dur) var(--theme-ease),color var(--theme-dur) var(--theme-ease)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.hd-bar{background:rgba(var(--bgrgb),.92)}}
.hd-bar .brand{color:var(--fg);font-weight:600;font-size:18px;letter-spacing:-.015em;gap:9px;min-height:44px;text-shadow:none}
.hd-bar .brand svg{height:24px;filter:none}
.hd-bar .nl{color:var(--fg);opacity:.78;font-size:15.5px;font-weight:500;min-height:44px;padding:0 12px;text-shadow:none;transition:opacity var(--v-d2) var(--v-ease)}@media (hover:hover) and (pointer:fine){
.hd-bar .nl:hover{opacity:1}}
.hd-bar .tt{color:var(--fg);opacity:.86;width:44px;height:44px;margin-right:-10px;text-shadow:none;filter:none}@media (hover:hover) and (pointer:fine){
.hd-bar .tt:hover{background:rgba(var(--fgrgb),.07);opacity:1}}
.hd-bar .tt svg{width:19px;height:19px}

/* ---- Hero ---- */
.d-hero{position:relative;height:100svh;min-height:560px;overflow:hidden;background:var(--bg);isolation:isolate;
  transition:background-color var(--theme-dur) var(--theme-ease)}
.hd-art{position:absolute;inset:0;overflow:hidden;contain:strict;z-index:0}
.scene{position:absolute;inset:0;opacity:0;transition:opacity var(--theme-dur) var(--theme-ease);pointer-events:none}
html[data-theme=light] .scene[data-scene=light],html[data-theme=dark] .scene[data-scene=dark]{opacity:1}
.stage{position:absolute;left:0;top:0;transform-origin:50% 60%;will-change:transform}
/* default placement before JS measures (centred cover with a 20px margin for motion) */
.scene[data-scene=light] .stage{width:max(calc(100vw + 40px),calc((100svh + 40px)*2.06));aspect-ratio:6472/3142;left:50%;bottom:-20px;top:auto;translate:-50% 0}
.scene[data-scene=dark] .stage{width:max(calc(100vw + 40px),calc((100svh + 40px)*1.6313));aspect-ratio:3124/1915;left:50%;top:50%;translate:-50% -50%}
@media (max-width:760px),(max-aspect-ratio:4/5){
  .scene[data-scene=light] .stage{width:max(calc(100vw + 40px),calc((100svh + 40px)*.6337));aspect-ratio:1991/3142}
  .scene[data-scene=dark] .stage{width:max(calc(100vw + 40px),calc((100svh + 40px)*.4656));aspect-ratio:1050/2255}}
.d-hero .scene .stage.placed{translate:none;bottom:auto;aspect-ratio:auto}
.lw{position:absolute;will-change:transform}
.lw img,.lw picture{display:block;width:100%;height:100%}
.lw.base{inset:0}
.lw.base img{object-fit:cover}
.ly{position:absolute;inset:0;will-change:transform;backface-visibility:hidden}
.ly img{width:100%;height:100%;user-select:none;-webkit-user-drag:none}
/* layers sit invisibly until decoded, then swap with the identical flat painting */
.lw.layer{opacity:0}
.scene.has-layers .lw.layer{opacity:1}
.scene.has-layers .lw.base{opacity:0;transition:opacity 0s .05s var(--v-ease)}
.lw.front{z-index:2}

/* ---- Copy (type values match painting-full) ---- */
.d-copy{position:absolute;left:var(--pad);right:auto;bottom:clamp(28px,7vh,92px);width:min(40vw,680px);z-index:3}
.d-copy h1{font-size:clamp(40px,6.1vw,160px);max-width:11ch;font-weight:650;letter-spacing:-.045em;line-height:1;color:var(--fg)}
.d-copy .sub{margin:clamp(16px,2.6vh,30px) 0 clamp(20px,3.2vh,36px);font-size:clamp(17px,1.4vw,26px);font-weight:500;line-height:1.4;letter-spacing:0;max-width:30ch;color:var(--fg)}
/* the glow the owner kept (painting-full values) */
.d-copy::before,.d-copy::after{content:"";position:absolute;pointer-events:none;z-index:-1;transition:opacity var(--theme-dur) var(--theme-ease)}
.d-copy::before{inset:-20% -30% -24% -22%;filter:blur(56px);
  background:radial-gradient(ellipse 52% 64% at 42% 44%,rgba(241,237,230,.83) 0,rgba(232,224,210,.76) 40%,rgba(232,224,210,.3) 64%,transparent 80%),radial-gradient(ellipse 92% 40% at 38% 76%,rgba(241,237,230,.88) 0,rgba(232,224,210,.8) 46%,rgba(232,224,210,.32) 70%,transparent 82%)}
.d-copy::after{inset:-22% -36% -22% -36%;filter:blur(64px);opacity:0;
  background:radial-gradient(ellipse 56% 62% at 36% 48%,rgba(14,13,12,.9) 0,rgba(14,13,12,.78) 44%,rgba(14,13,12,.32) 66%,transparent 80%)}
html[data-theme=dark] .d-copy::before{opacity:0}
html[data-theme=dark] .d-copy::after{opacity:1}
html[data-theme=light] .d-copy h1{text-shadow:0 0 8px rgba(241,237,230,.7),0 0 18px rgba(241,237,230,.54)}
html[data-theme=light] .d-copy .sub{text-shadow:0 0 13px rgba(241,237,230,.76),0 0 24px rgba(241,237,230,.44)}
html[data-theme=dark] .d-copy h1{text-shadow:0 0 20px rgba(14,13,12,.6)}
html[data-theme=dark] .d-copy .sub{text-shadow:0 0 14px rgba(14,13,12,.7)}
.start{max-width:480px}
html[data-theme=light] .start{background:#FAF8F3;border-color:rgba(20,18,15,.16)}
html[data-theme=dark] .start{background:rgba(14,13,12,.55);border-color:rgba(241,237,230,.2);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.go{min-width:48px;transition:opacity var(--v-d2) var(--v-ease),background-color var(--theme-dur) var(--theme-ease),color var(--theme-dur) var(--theme-ease)}
html[data-theme=light] .go{background:#14120F;color:#F1EDE6}
html[data-theme=dark] .go{background:#F1EDE6;color:#14120F}
.start input{color:var(--fg)}

@media (max-width:760px),(max-aspect-ratio:4/5){
  .d-hero{min-height:600px}
  .d-copy{width:auto;left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right));bottom:calc(20px + var(--sab))}
  .d-copy h1{font-size:clamp(38px,10.4vw,64px);max-width:10ch;letter-spacing:-.045em}
  .d-copy .sub{font-size:16.5px;margin:12px 0 18px}
  .d-copy::before{inset:-14% -16% -16% -14%;filter:blur(54px);
    background:radial-gradient(ellipse 72% 68% at 43% 50%,rgba(241,237,230,.88) 0,rgba(232,224,210,.8) 42%,rgba(232,224,210,.34) 66%,transparent 82%),radial-gradient(ellipse 90% 36% at 40% 78%,rgba(241,237,230,.86) 0,rgba(232,224,210,.74) 50%,transparent 80%)}
  .d-copy::after{inset:-16% -18% -16% -18%;filter:blur(56px);
    background:radial-gradient(ellipse 70% 62% at 40% 52%,rgba(14,13,12,.84) 0,rgba(14,13,12,.7) 44%,rgba(14,13,12,.28) 68%,transparent 82%)}
  html[data-theme=light] .d-copy h1{text-shadow:0 0 8px rgba(241,237,230,.7),0 0 16px rgba(241,237,230,.54)}
  html[data-theme=light] .d-copy .sub{text-shadow:0 0 13px rgba(241,237,230,.8),0 0 24px rgba(241,237,230,.46)}
  .start{max-width:none;border-radius:14px}
  .start input{height:54px;font-size:17px;padding:0 16px}
  .go{padding:0 22px;font-size:16.5px}}

/* ---- Entrance (transform/opacity; a short blur focus-pull on desktop only) ---- */
.d-copy>*{transition:opacity .9s var(--v-ease),transform 1.1s var(--v-ease),color var(--theme-dur) var(--theme-ease),text-shadow var(--theme-dur) var(--theme-ease),border-color var(--v-d2) var(--v-ease),background-color var(--theme-dur) var(--theme-ease)}
html.hd-pre .d-copy>*{opacity:0;transform:translate3d(0,14px,0)}
.d-copy .sub{transition-delay:.1s,.1s,0s,0s,0s,0s}.d-copy .start{transition-delay:.2s,.2s,0s,0s,0s,0s}

/* ---- Lower list: native scroll, no snap, no indent shifts, no blobs ---- */
.es-lower{padding-top:clamp(48px,7vw,96px);padding-bottom:calc(clamp(40px,6vw,88px) + var(--sab))}
.es-ic .sd{display:none}
.es-card{grid-template-columns:40px minmax(0,1fr);column-gap:16px;padding:14px 0;align-items:center}
.es-card .es-ic{width:40px;height:40px;opacity:.88;transform:none!important}
.es-card .es-t,.es-card.is-focus .es-t,.es-card:active .es-t{transform:none!important}
@media (hover:hover) and (pointer:fine){
  .es-grid.has-focus .es-card{opacity:.5}
  .es-grid.has-focus .es-card.is-focus{opacity:1}
  .es-card.is-focus .es-ic{opacity:1}}
@media (hover:none),(pointer:coarse){
  .es-grid.has-focus .es-card,.es-grid .es-card{opacity:1!important}
  .es-card:active{opacity:.6!important;transition-duration:var(--v-d1)}}
@media (max-width:760px){
  .es-lower{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
  .es-lower-h{display:block;margin-bottom:12px}
  .es-lower-h h2{font-size:32px}
  .es-lower-h p{font-size:16px;margin-top:10px}
  .es-all{margin-top:8px;min-height:44px}
  .es-grid{gap:0}
  .es-card{padding:12px 0;min-height:64px;border-top:1px solid rgba(var(--fgrgb),.08)}
  .es-card .es-t b{font-size:20px;line-height:1.2}
  .es-card .es-t span{font-size:14px;margin-top:3px}}

@media (prefers-reduced-motion:reduce){
  :root{--theme-dur:200ms}
  .d-copy>*{transition:opacity var(--v-d2) var(--v-ease)!important;transform:none!important}
  html.hd-pre .d-copy>*{opacity:0;transform:none}
  .lw.layer .ly{transition:none}}

/* entrance focus pull (desktop): foreground starts soft, background sharp, then everything resolves */
.lw.layer .ly{transition:filter 1.4s var(--v-ease)}
.scene.focus-pull .lw.layer .ly{filter:blur(calc(max(var(--d),0) * 5px));transition:none}

/* reading scale for the lower list */
@media (min-width:761px){
  .es-lower-h h2{font-size:clamp(34px,3.4vw,52px)}
  .es-lower-h p{font-size:17.5px;line-height:1.5;max-width:50ch;opacity:.66}
  .es-card .es-t span{font-size:14.5px}
}

/* Reduced motion: base.css removes every transition with !important; bring back gentle 200ms fades (never snaps). */
@media (prefers-reduced-motion:reduce){
  html .scene{transition:opacity var(--v-d2) var(--v-ease)!important}
  html .d-copy>*{transition:opacity var(--v-d2) var(--v-ease)!important}
  html .d-hero,html .hd-bar,html .d-copy h1,html .d-copy .sub,html .start,html .go,html .d-copy::before,html .d-copy::after,html body{transition:background-color var(--v-d2) var(--v-ease),color var(--v-d2) var(--v-ease),opacity var(--v-d2) var(--v-ease),border-color var(--v-d2) var(--v-ease)!important}
  html .es-card{transition:opacity var(--v-d1) var(--v-ease)!important}
}

/* front stage (figure above the headline) */
.hd-front{position:absolute;inset:0;z-index:4;pointer-events:none;overflow:hidden;contain:strict}
.hd-front .lw.layer{opacity:0}
.hd-front .scene.has-layers .lw.layer{opacity:1}
@media (hover:hover) and (pointer:fine){
 .nl:hover,.tt:hover,.go:hover,.es-all:hover{opacity:.72}
 .es-all:hover i{transform:translateX(2px)}
 .hd-bar .nl:hover{opacity:.72}
}
