/* The ribbon is an original pre-rendered sculpture; only its composited layers move. */
.sculpture{--scene:0;--pointer-x:0;--pointer-y:0;position:relative;isolation:isolate;overflow:hidden;contain:paint}
.hero-art .sculpture{overflow:hidden;contain:paint;margin-inline:-25px}
.scene-atmosphere{position:absolute;inset:0;background:radial-gradient(ellipse at 51% 46%,#c8a45016,transparent 61%);transform:translateY(calc(var(--scene)*-35px))}
.scene-grid{position:absolute;inset:4% 8%;background-image:linear-gradient(#c7ab6914 1px,transparent 1px),linear-gradient(90deg,#c7ab6914 1px,transparent 1px);background-size:38px 38px;transform:perspective(800px) rotateX(38deg) rotateZ(-25deg) translateY(calc(var(--scene)*45px));mask-image:radial-gradient(ellipse,#0006,transparent 70%)}
.ribbon-frame{position:absolute;inset:0;display:grid;place-items:center;transform:translate3d(calc(var(--pointer-x)*10px),calc(var(--scene)*-75px + var(--pointer-y)*10px),0) rotate(calc(var(--scene)*24deg));transform-origin:50% 50%}
.ribbon-object{width:112%;max-width:none;height:112%;object-fit:contain;filter:drop-shadow(12px 28px 24px #0007);transform:rotate(-5deg) scale(calc(1 - var(--scene)*.07));pointer-events:none;user-select:none}
.scene-line{position:absolute;inset:22% 12%;border:1px solid #cfb5782b;transform:rotate(calc(-24deg + var(--scene)*-15deg));border-radius:42% 0 42% 0;z-index:-1}
.scene-line-two{inset:13% 22%;border-color:#cfb5781c;transform:rotate(calc(24deg + var(--scene)*20deg));border-radius:0 42% 0 42%}
.scene-coordinate{position:absolute;display:flex;align-items:center;gap:10px;color:#d6c395;font:600 7px/1.4 Inter,sans-serif;letter-spacing:.18em;transform:translate3d(0,calc(var(--scene)*30px),0)}
.scene-coordinate i{width:22px;height:22px;position:relative}.scene-coordinate i:before,.scene-coordinate i:after{content:'';position:absolute;background:var(--gold)}.scene-coordinate i:before{height:1px;width:22px;top:10px}.scene-coordinate i:after{height:22px;width:1px;left:10px}
.coordinate-one{top:14%;left:11%}.coordinate-two{right:7%;bottom:14%;transform:translate3d(0,calc(var(--scene)*-45px),0)}
.scene-index{position:absolute;right:10%;top:11%;font:400 8px/1 Inter,sans-serif;color:#ae9b71;letter-spacing:.16em}
.scene-caption{position:absolute;left:10%;bottom:10%;font:400 7px/1 Inter,sans-serif;color:#8e8571;letter-spacing:.19em}
.sculpture-fold .ribbon-object{transform:rotate(12deg) scale(.95)}
.sculpture-weave .ribbon-object{transform:rotate(-12deg) scale(1.04)}
.area-card .sculpture{background:radial-gradient(ellipse at center,#181910,#10110e)}
.area-card .ribbon-frame{inset:-16% 4%;transform:translate3d(0,calc(var(--scene)*-32px),0) rotate(calc(var(--scene)*18deg))}
.area-card .scene-coordinate{display:none}.area-card .scene-caption{font-size:6px;bottom:8%;left:7%}.area-card .scene-index{font-size:6px;top:9%;right:7%}
.area-card .scene-grid{background-size:30px 30px}
.category-hero .ribbon-frame{inset:-10%}
.art-caption{margin-top:8px}.hero-art{perspective:1000px}
/* Scroll progress is mapped to each scene, independently of page length. */
.principle-strip{overflow:hidden;display:block;padding:0}
.principle-track{--strip-x:0px;display:flex;align-items:center;justify-content:space-between;gap:34px;white-space:nowrap;padding:25px 24px;transform:translate3d(var(--strip-x),0,0)}
.principle-track span:nth-child(even){color:var(--gold);font-size:16px}
.principle-track span{flex-shrink:0}
.motion-ready .reveal-item{opacity:0;translate:0 48px;transition:opacity .8s ease,translate 1.05s cubic-bezier(.16,1,.3,1);transition-delay:var(--reveal-delay,0ms)}
.motion-ready .reveal-item.is-visible{opacity:1;translate:0 0}
.motion-ready .reveal-item:focus-within,.motion-ready a.reveal-item:focus{opacity:1;translate:0 0;transition:none}
.motion-ready .section-heading .reveal-item{translate:0 35px}
.motion-ready .section-heading .reveal-item.is-visible{translate:0 0}
.motion-ready .area-card{transition:opacity .8s ease,translate 1.1s cubic-bezier(.16,1,.3,1),border-color .3s,transform .3s;transition-delay:var(--reveal-delay,0ms),var(--reveal-delay,0ms),0ms,0ms}
.motion-ready .recommendation{transition:opacity .85s ease,translate 1.15s cubic-bezier(.16,1,.3,1)}
.teaser-watermark{transform:translate3d(0,var(--parallax-y,0px),0);color:#cfb5780c}
.motion-ready .hero-copy{transform:translate3d(0,var(--hero-y,0px),0);opacity:var(--hero-opacity,1)}
.motion-ready .home-hero .hero-art{transform:translate3d(0,var(--hero-art-y,0px),0)}
.motion-ready .ribbon-frame,.motion-ready .hero-copy,.motion-ready .scene-line{will-change:transform}
/* A little more room for the signature artwork and larger, readable labels. */
.home-hero{min-height:720px;grid-template-columns:1.1fr 1fr}
.home-hero h1{margin-right:-60px}.hero-art .sculpture{height:550px}
.hero-proof{font-size:9px}.art-caption{font-size:9px}.scene-coordinate{font-size:8px}
@media(max-width:1100px){.home-hero{min-height:650px}.hero-art .sculpture{height:480px}.home-hero h1{font-size:66px}.art-caption{font-size:7px}}
@media(max-width:800px){.home-hero{grid-template-columns:1fr}.home-hero h1{margin-right:0}.hero-art{margin-top:10px}.hero-art .sculpture{height:400px;margin-inline:0}.hero-copy{transform:none!important;opacity:1!important}.principle-track{gap:26px;justify-content:flex-start;width:max-content;padding-inline:0;font-size:9px}.area-card .ribbon-frame{inset:-6%}.ribbon-frame{transform:translate3d(0,calc(var(--scene)*-38px),0) rotate(calc(var(--scene)*16deg))}.coordinate-two{right:9%}.motion-ready .reveal-item{translate:0 30px}.motion-ready .reveal-item.is-visible{translate:0 0}}
@media(max-width:480px){.home-hero{padding-top:45px;gap:0}.home-hero h1{font-size:clamp(48px,14vw,62px);line-height:1.02}.hero-art .sculpture{height:340px}.hero-art{margin-top:0}.ribbon-frame{inset:-3%}.area-card .ribbon-frame{inset:-18% 3%}.scene-coordinate{font-size:7px}.scene-caption{font-size:6px}.scene-index{font-size:7px}.art-caption{font-size:6px}.hero-proof{font-size:7px}}
@media(prefers-reduced-motion:reduce){
  .ribbon-frame,.ribbon-object,.scene-atmosphere,.scene-grid,.scene-line,.scene-coordinate,.principle-track,.hero-copy,.hero-art,.teaser-watermark{transform:none!important}
  .motion-ready .reveal-item{opacity:1!important;translate:none!important;transition:none!important}
  .hero-copy{opacity:1!important}
}
@media print{.reveal-item{opacity:1!important;translate:none!important;transform:none!important}.hero-copy{opacity:1!important;transform:none!important}}

/* Keep the route from the introduction to the directory visible at small sizes. */
@media screen {
  .home-hero .hero-lead { font-size: 1rem; line-height: 1.65; max-width: 36ch; }
  .home-hero .text-link { min-height: 44px; padding-block: 10px; color: var(--gold2); }
  .tools-hub .page-intro { padding-block: clamp(2rem, 5vw, 5rem) 2rem; }
  .tools-hub .page-intro .lead { max-width: 48ch; }
  .tool-card p { font-size: .94rem; line-height: 1.65; }
  .tool-card-link { font-size: .82rem; }
  #tools-empty { border-block: 1px solid var(--line); padding: 2rem 0; }
  #tools-empty h3 { font-size: 2rem; margin: 0; }
  #tools-empty p { margin: .5rem 0 1.25rem; }
  .filters button[aria-pressed="true"] { background: var(--gold2); color: #171710; }
  :where(.drop-panel, .footer-main, .footer-bottom) a:focus-visible { outline-offset: 3px; }
}
@media screen and (max-width: 800px) {
  .tool-search input, .tool input:not([type="checkbox"]):not([type="radio"]), .tool select, .tool textarea { font-size: 16px; }
  .home-hero { min-height: auto; }
  .home-hero .hero-actions { margin-top: 1.25rem; }
}
@media screen and (max-width: 480px) {
  .home-hero { padding-block: 2rem 1.5rem; }
  .home-hero h1 { font-size: clamp(2.55rem, 11.9vw, 3.6rem); margin-block: 1.1rem; }
  .hero-art .sculpture { height: clamp(235px, 65vw, 305px); }
  .menu-toggle:not([hidden]) { min-height: 44px; }
  .filters button { font-size: .76rem; }
  .footer-main nav a, .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; font-size: .78rem; }
}
/* The native file picker has a wide intrinsic size on narrow screens. */
.tool input[type="file"] { min-width: 0; max-width: 100%; }
