/* Material study: three photographs/fields, evening light, one typographic rhythm.
   Only the three landing heroes opt in; page moods and everything below still work. */
body[data-material]{
 --material-base:#0a1419;--material-mid:#111f24;--material-ink:#f0eadc;
 --material-secondary:#d5d4ca;--material-type:"Helvetica Neue",Helvetica,Arial,sans-serif;
 --material-line:rgba(221,228,220,.28);
}
body[data-material=slate] .landing main{
 --slate-image:url("/works-slate.jpg");
 padding-inline:clamp(1rem,3.6vw,3.75rem);
 isolation:isolate;background:var(--material-base);
}
body[data-material=slate] .landing main::before{
 content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;
 background:
  linear-gradient(0deg,#0a1419 7%,rgba(10,20,25,.93) 20%,rgba(10,20,25,.16) 45%,transparent 75%),
  linear-gradient(90deg,#0a1419 6%,rgba(10,20,25,.94) 25%,rgba(10,20,25,.24) 59%,transparent 79%),
  var(--slate-image) right 61% / min(75%,65rem) auto no-repeat;
}
body[data-material=slate] .landing .field{
 inset:0 0 auto auto;width:86%;height:76%;opacity:.04;
 mix-blend-mode:screen;
 -webkit-mask-image:linear-gradient(0deg,transparent 0%,#000 35%,#000 80%,transparent 100%);
 mask-image:linear-gradient(0deg,transparent 0%,#000 35%,#000 80%,transparent 100%);
 transition:opacity .45s ease;
}
body[data-material=slate] .landing .field:is(:hover,:focus-visible,:active),
body[data-material=slate] .landing:has(.practice-slider:is(:active,:focus-visible)) .field{opacity:.145}
body[data-material=slate] .landing .statement{
 position:absolute;top:auto;left:clamp(1rem,3.6vw,3.75rem);bottom:clamp(11.35rem,26%,14rem);
}
body[data-material=slate] .landing .statement::before,
body[data-material=slate] .landing .premise::before{background:none}
body[data-material=slate] .landing .headline{
 display:flex;align-items:baseline;gap:.18em;flex-wrap:wrap;width:max-content;max-width:100%;
 color:var(--material-ink);font:300 clamp(3.1rem,7.4vw,8.1rem)/.96 var(--material-type);letter-spacing:-.075em;
 text-shadow:0 2px 16px #090f17;
}
body[data-material=slate] .landing .headline .headline-line,
body[data-material=slate] .landing .headline .headline-ink{color:inherit}
body[data-material=slate] .landing .premise{margin-top:1.05rem}
body[data-material=slate] .landing :is(.premise,.axis,.mode,.door-scope){color:var(--material-secondary)}
body[data-material=slate] .landing .premise .premise-firm{color:var(--material-ink)}
body[data-material=slate] .landing nav#practices{background:none;border-color:var(--material-line)}
body[data-material=slate] .landing .door{opacity:1}
body[data-material=slate] .landing .door-name{color:var(--material-ink);font:400 clamp(1.85rem,3.5vw,3.8rem)/1.05 var(--material-type);letter-spacing:-.065em}
body[data-material=slate] .landing .door .practice-mark{opacity:.65}
body[data-material=slate] .landing .mode.active,
body[data-material=slate] .landing .explore-selected{color:var(--material-ink)}
body[data-material=slate] .landing .axis{padding-bottom:.4rem}
body[data-material=slate] .landing :is(.practice-slider,.premise button,.explore-selected,.door):focus-visible{
 outline:2px solid var(--material-ink);outline-offset:3px;
}

body[data-material]:is(.dignity,.integrity) .pair-hero{
 --pair-accent:#bcd4cb;
 background:var(--material-base);color:var(--material-ink);
}
body[data-material].integrity .pair-hero{--pair-accent:#d6ba9c;--strong-ink:#f1c49d}
body[data-material]:is(.dignity,.integrity) .pair-hero .pair-copy{max-width:min(52rem,78%)}
body[data-material]:is(.dignity,.integrity) .pair-hero .pair-copy h1{
 margin:.76rem 0 1.08rem;color:var(--material-ink);
 font:300 clamp(3rem,5.6vw,5.75rem)/.98 var(--material-type);letter-spacing:-.067em;
 text-shadow:0 2px 18px #0a1419;
}
body[data-material]:is(.dignity,.integrity) .pair-hero .pair-copy h1 em{color:inherit}
body[data-material]:is(.dignity,.integrity) .pair-hero .pair-copy p{
 max-width:36ch;color:var(--material-secondary);font-size:clamp(1rem,1.4vw,1.15rem);
}
body[data-material]:is(.dignity,.integrity) .pair-hero [data-stone-label]{color:var(--pair-accent)}
body[data-material]:is(.dignity,.integrity) .pair-hero .pair-link{color:var(--material-ink)}
body[data-material]:is(.dignity,.integrity) .pair-hero .pair-copy :is(a,button):focus-visible{outline-color:var(--material-ink)}
body[data-material]:is(.dignity,.integrity) .pair-hero::after{
 background:linear-gradient(90deg,#0a1419 0%,rgba(10,20,25,.94) 20%,rgba(10,20,25,.73) 44%,rgba(10,20,25,.18) 79%,rgba(10,20,25,.11) 100%);
}
body[data-material=dignity] .pair-hero .coast{filter:saturate(.43) brightness(.77) contrast(.95)}
body[data-material=dignity] .pair-hero .coast img{object-position:55% 55%}
body[data-material=integrity] .pair-hero .evidence{
 color:#cdb596;background:#172326;
 background-image:var(--integrity-plate,linear-gradient(116deg,#1d3033,#111d22 63%,#2a322f));
 background-position:right center;background-size:cover;
}
body[data-material=integrity] .pair-hero .evidence svg{opacity:.54}
body[data-material=integrity] .pair-hero .evidence:is(:hover,:focus-visible) svg{opacity:.71}

@media(max-width:47.5rem){
 body[data-material=slate] .landing main{--slate-image:url("/works-slate-mobile.jpg")}
 body[data-material=slate] .landing main::before{
  background:
   linear-gradient(0deg,#0a1419 10%,rgba(10,20,25,.95) 31%,rgba(10,20,25,.22) 64%,rgba(10,20,25,0) 82%),
   linear-gradient(90deg,rgba(10,20,25,.64) 0%,rgba(10,20,25,.10) 78%),
   var(--slate-image) center top / 100% auto no-repeat;
 }
 body[data-material=slate] .landing .field{width:110%;height:70%;right:-10%}
 body[data-material=slate] .landing .statement{right:.8rem;bottom:clamp(14.4rem,32vw,15.45rem)}
 body[data-material=slate] .landing .premise{margin-top:.7rem}
 body[data-material=slate] .landing nav#practices{grid-template-columns:1fr auto 1fr;gap:.35rem}
 body[data-material=slate] .landing nav#practices .door{display:flex;align-items:flex-start;padding:.83rem 0;min-width:0;border-top:0}
 body[data-material=slate] .landing nav#practices .door .identity{align-items:flex-start;gap:.22rem}
 body[data-material=slate] .landing nav#practices .door .practice-mark{display:none}
 body[data-material=slate] .landing nav#practices .door .door-scope{font-size:.72rem}
 body[data-material=slate] .landing nav#practices .explore-selected{margin:0;font-size:.73rem}
 body[data-material]:is(.dignity,.integrity) .pair-hero{
  align-items:flex-end;min-height:clamp(28rem,115vw,40rem);
  padding:1.25rem clamp(.85rem,5vw,2.1rem) 1.5rem;
 }
 body[data-material]:is(.dignity,.integrity) .pair-hero .pair-copy{max-width:100%}
 body[data-material]:is(.dignity,.integrity) .pair-hero .pair-copy h1{font-size:clamp(2.15rem,8.4vw,4.15rem)}
 body[data-material]:is(.dignity,.integrity) .pair-hero::after{
  background:linear-gradient(0deg,#0a1419 1%,rgba(10,20,25,.94) 18%,rgba(10,20,25,.77) 46%,rgba(10,20,25,.28) 74%,rgba(10,20,25,.08) 100%);
 }
 body[data-material=integrity] .pair-hero .evidence svg{bottom:auto;top:-1%;right:-15%;opacity:.58}
}
@media(prefers-reduced-motion:reduce){
 body[data-material=slate] .landing .field{transition:none}
}

body[data-material=integrity] .pair-hero .evidence{
 --integrity-plate:url("/works-metal.jpg");
 background-position:65% center;
}
body[data-material=integrity] .pair-hero .evidence svg{mix-blend-mode:screen}
body[data-material]:is(.dignity,.integrity) .pair-footer .works-return{
 font:400 1.12rem/1.25 var(--material-type);letter-spacing:-.045em;
}
@media(max-width:47.5rem){
 body[data-material=integrity] .pair-hero .evidence{
  --integrity-plate:url("/works-metal-mobile.jpg");background-position:50% 38%;
 }
}

/* The photo carries the first impression; color returns only when type is played. */
body[data-material=slate] .landing .headline:not([data-pressing]):not([data-gripping]):not([data-ink-grain]):not(.submerging) :is(.headline-line,.headline-ink,.grip-letter){
 color:#f5eee0;-webkit-text-fill-color:currentColor;
}
/* The Work mood begins in deep slate. Other moods and the reading surfaces keep their own colors. */
:root[data-palette=coast] body[data-material=slate] > .shared-header,
:root[data-palette=coast] body[data-material=slate] > .landing{
 color-scheme:dark;--brand-bg:#0b151a;--brand-fg:#f0eadf;--brand-muted:#d2d2c9;
 --brand-line:#637073;--brand-dignity:#a8c6ba;--brand-integrity:#d5b596;--brand-glint:#ebd8bd;
 background-color:var(--brand-bg);
}
:root[data-palette=coast] body[data-material=slate] > .shared-header{background-color:rgba(11,21,26,.94)}

/* Atmosphere is quiet and independent of the responsive artwork and hit targets. */
body[data-material=slate] .landing main::after,
body[data-material]:is(.dignity,.integrity) .pair-hero > .pair-art::after{
 content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
 background:radial-gradient(ellipse 55% 12% at 61% 54%,rgba(148,174,165,.15),transparent 76%);
 opacity:.62;
}
body[data-material=slate] .landing main::after{
 background:radial-gradient(ellipse 55% 11% at 69% 43%,rgba(148,174,165,.18),transparent 76%),
 radial-gradient(ellipse 29% 9% at 47% 60%,rgba(162,177,159,.09),transparent 79%);
}
body[data-material=integrity] .pair-hero > .pair-art::after{
 background:linear-gradient(138deg,transparent 37%,rgba(223,202,164,.13) 50%,transparent 63%);
 mix-blend-mode:screen;
}
body[data-motion=on][data-material=slate] .landing main::after,
body[data-motion=on][data-material=dignity] .pair-hero > .pair-art::after{
 animation:weather-breath 14s ease-in-out infinite alternate;
}
body[data-motion=on][data-material=integrity] .pair-hero > .pair-art::after{
 animation:seam-mark 19s ease-in-out infinite;
}
@keyframes weather-breath{
 from{opacity:.35;transform:translate3d(-1.5%,.4%,0)}
 to{opacity:.76;transform:translate3d(1.6%,-.85%,0)}
}
@keyframes seam-mark{
 0%,100%{opacity:.33;transform:translate3d(-2%,0,0)}
 46%,59%{opacity:.61;transform:translate3d(2.5%,0,0)}
}
@media(prefers-reduced-motion:reduce){
 body[data-material=slate] .landing main::after,
 body[data-material]:is(.dignity,.integrity) .pair-hero > .pair-art::after{
  animation:none!important;transform:none;opacity:.54;
 }
}

/* One transient survey mark per hero. It is outside the accessibility and pointer trees. */
body[data-material] .instrument-trace{
 position:absolute;inset:0;width:100%;height:100%;pointer-events:none;
 z-index:0;display:none;color:#d0e9d7;overflow:hidden;
}
body[data-material=dignity] .instrument-trace{color:#cbe4d9}
body[data-material=integrity] .instrument-trace{color:#f2d6ae}
body[data-motion=on][data-material] .instrument-trace[data-visible]{display:block}
.instrument-trace g{animation:instrument-linger 1.65s both ease}
.instrument-trace path{fill:none;stroke:currentColor;stroke-width:.85;vector-effect:non-scaling-stroke}
.instrument-trace .trace-line{stroke-dasharray:1;stroke-dashoffset:1;animation:instrument-draw .67s cubic-bezier(.18,.52,.23,1) forwards}
.instrument-trace .trace-ticks,.instrument-trace text{animation:instrument-marks 1.5s both ease}
.instrument-trace text{fill:currentColor;text-anchor:end;font:9px ui-monospace,monospace;letter-spacing:.07em}
@keyframes instrument-draw{to{stroke-dashoffset:0}}
@keyframes instrument-linger{0%,100%{opacity:0}22%,63%{opacity:.65}}
@keyframes instrument-marks{0%,24%,100%{opacity:0}45%,68%{opacity:.85}}
@media(prefers-reduced-motion:reduce){body[data-material] .instrument-trace{display:none!important}}

/* The rock and water are the instrument. Keep the inherited mark renderer out of the field. */
body[data-material=slate] .landing .field,
body[data-material=slate] .landing .field:is(:hover,:focus-visible,:active),
body[data-material=slate] .landing:has(.practice-slider:is(:active,:focus-visible)) .field{
 inset:0;width:100%;height:100%;opacity:1;mix-blend-mode:normal;
 transition:none;mask-image:none;-webkit-mask-image:none;
}
body[data-material=slate] .field .legacy-field{display:none}
body[data-material=slate] .field .cave-survey{
 mask-image:linear-gradient(90deg,transparent 23%,rgba(0,0,0,.63) 42%,#000 61%);
 -webkit-mask-image:linear-gradient(90deg,transparent 23%,rgba(0,0,0,.63) 42%,#000 61%);
}
body[data-material=slate] .landing #practices .explore-selected{
 --practice-cue:#b5cbd0;position:relative;isolation:isolate;color:var(--practice-cue);
 border-bottom:0;letter-spacing:.025em;font-family:ui-monospace,monospace;font-weight:400;
 transition:color 240ms ease;
}
body[data-material=slate] #practices[data-active-practice="dignity"] .explore-selected{
 --practice-cue:#b5d1c5;
}
body[data-material=slate] #practices[data-active-practice="integrity"] .explore-selected{
 --practice-cue:#e4c5aa;
}
body[data-material=slate] #practices[data-active-practice="dignity"] .dignity .door-name,
body[data-material=slate] #practices[data-active-practice="integrity"] .integrity .door-name{
 color:var(--practice-cue,var(--material-ink));text-shadow:0 1px 14px rgba(223,236,235,.22);
}
body[data-material=slate] #practices .explore-selected .explore-label{display:inline-block;text-decoration:none}
body[data-material=slate] #practices .practice-whisper{
 position:absolute;z-index:5;pointer-events:none;white-space:nowrap;user-select:none;
 font:400 .82rem/1.1 ui-monospace,monospace;letter-spacing:.025em;
 color:#c5ddd1;text-shadow:.06em 0 #9bc8d16b,-.06em 0 #dcc0a64a,0 0 .65rem #a8d4e466;
}
body[data-material=slate] #practices .practice-whisper.integrity{color:#e4c5aa}
@media(prefers-reduced-motion:reduce){body[data-material=slate] #practices .practice-whisper{display:none!important}}
body[data-material=slate][data-motion=off] #practices .practice-whisper{display:none!important}
@media(max-width:47.5rem){
 body[data-material=slate] #practices:is([data-active-practice=dignity],[data-active-practice=integrity]) .explore-selected{translate:0 0}
 body[data-material=slate] .field .cave-survey{mask-image:linear-gradient(90deg,transparent 16%,#000 66%);-webkit-mask-image:linear-gradient(90deg,transparent 16%,#000 66%)}
}
@media(prefers-reduced-motion:reduce){body[data-material=slate] .landing #practices .explore-selected{transition:none}}
body[data-material=slate][data-motion=off] .landing #practices .explore-selected{transition:none}

/* A wide invisible hit stroke makes the fine cave line easy to grab, without trapping scroll elsewhere. */
body[data-material=slate] .field .survey-grip{
 position:absolute;inset:0;width:100%;height:100%;overflow:hidden;pointer-events:none;touch-action:none;
}
body[data-material=slate] .survey-grip .survey-target{
 fill:none;stroke:transparent;stroke-width:30;cursor:grab;pointer-events:stroke;touch-action:none;
}
body[data-material=slate] .pool-button[data-survey-dragging],body[data-material=slate] .pool-button[data-survey-dragging] .survey-target{cursor:grabbing}
