.hero .hero-shade{background:linear-gradient(90deg,#101917f7,#101917dc 45%,#10191778),linear-gradient(0deg,#101917de,transparent 60%)}
.material-study{position:absolute;right:4%;top:19%;width:46%;height:58%;color:#f7f7ef;z-index:1}
.material-study canvas,.material-samples{display:block;width:100%;height:100%;background:linear-gradient(90deg,#aaa596 0 33.33%,#e5e2d8 33.33% 66.66%,#6ca784 66.66%);box-shadow:0 18px 48px -20px #060a08aa}
/* Lightweight material assembly. The finished surfaces also serve as the still view. */
.material-samples {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  overflow:hidden;
}
.material-study .material-samples {display:grid}
.material-sample {
  position:relative;
  overflow:hidden;
  background-color:#c6bba5;
  isolation:isolate;
}
.material-sample::after {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(125deg,#fff9db38,transparent 54%,#382f2624);
  box-shadow:inset 1px 0 #30392e35;
}
.sample-rough {background-image:url(assets/korn-rough.webp)}
.sample-white {
  background-color:#ebe8dd;
  background-image:linear-gradient(169deg,transparent 25%,#aba69317 25.5%,transparent 26%),url(assets/korn-white.webp);
  background-size:100% 30%,auto;
}
.material-pass {
  position:absolute;
  inset:0;
  background:#979285 url(assets/korn-base.webp);
  transform:translateY(-118%);
}
.material-pass i {
  position:absolute;
  left:8%;
  bottom:0;
  width:84%;
  height:0;
  padding-top:29%;
  border-radius:4% / 9%;
  background:linear-gradient(170deg,#e5d7b4,#c8ba97 60%,#a59a7a);
  border-bottom:2px solid #83775f;
  box-shadow:1px 5px 7px #29241c55;
  transform:translateY(44%) rotate(-9deg);
}
.sample-white .material-pass i {
  background:linear-gradient(155deg,#f4f4e9,#c3ccc5 30%,#929e9a 67%,#edf0e7);
  border-color:#67726c;
  transform:translateY(44%) rotate(-5deg);
}
.material-pass i::before {
  content:"";
  position:absolute;
  inset:26% 24% 41%;
  border-radius:40% 38% 29% 32%;
  background:linear-gradient(#ddaf80,#b18559 50%,#785333);
  box-shadow:0 3px 0 #645a4b,1px 5px 3px #4d44353d;
}
.sample-boards {
  display:grid;
  grid-template-rows:repeat(3,1fr);
  background:linear-gradient(to right,transparent 13%,#96a398 13%,#64746c 16%,transparent 16%,transparent 84%,#96a398 84%,#64746c 87%,transparent 87%),#35413b;
}
.sample-boards i {
  background-color:#6ca784;
  background-image:radial-gradient(circle at 14% 50%,#516950 1px,transparent 1.8px),radial-gradient(circle at 86% 50%,#516950 1px,transparent 1.8px),url(assets/korn-board.webp);
  background-size:100% 33.333%,100% 33.333%,auto;
  border-block:1px solid;
  border-color:#bbd2ba transparent #4b6855;
}
.material-study figcaption{display:grid;grid-template-columns:repeat(3,1fr);padding-top:10px;font-size:13px;letter-spacing:.06em}
.material-replay{position:absolute;bottom:12px;right:12px;background:#17201de6;color:#fff;border:1px solid #ffffff55;padding:7px 12px;border-radius:2px;font-size:12px}
.material-replay[hidden]{display:none}
.hero-copy{pointer-events:none;margin-left:0;width:52%;padding-left:5%;padding-right:0}
.hero-copy a{pointer-events:auto}.hero-bottom{display:block}.hero-bottom .button{margin-top:24px}
@media(max-width:900px){
 .hero{height:auto;min-height:100svh;max-height:none;padding-bottom:88px;display:flex;flex-direction:column}
 .hero-copy{order:0;width:100%;padding:122px 7% 25px}.hero-copy h1{font-size:clamp(65px,10vw,88px);margin-top:20px}
 .hero-bottom{margin-top:22px}.hero-bottom .button{margin-top:18px}
 .material-study{position:relative;order:1;top:auto;right:auto;margin:0 7% 24px;width:86%;height:clamp(220px,42vw,320px)}
 .hero-caption{bottom:16px}.material-study figcaption{font-size:12px;padding-top:5px}
}
@media(prefers-reduced-motion:reduce){.material-replay{display:none}}

/* A single continuous float pass on the wall behind the introduction. */
.intro { position: relative; isolation: isolate; overflow: hidden; }
.abrieb {
  position: absolute;
  z-index: -1;
  inset: 0 8% 0 35%;
  pointer-events: none;
  contain: layout paint;
}
.abrieb-layer {
  position: absolute;
  inset: 0;
  background: url(assets/kalkabrieb.webp) center / 100% 100% no-repeat;
  opacity: .82;
}
.reibbrett {
  display: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 32%;
  height: clamp(17px, 2.6vw, 38px);
  border-radius: 12% 7% 8% 6% / 20%;
  background: linear-gradient(174deg,#e3d3ad 0%,#b7a482 41%,#a18f6c 89%,#81755d 90%);
  border: 1px solid #a4977c;
  box-shadow: 0 2px 0 #948673, 1px 4px 1px #6e614956, 3px 8px 9px #5b504235;
  transform-origin: 50% 55%;
}
.reibbrett span {
  position: absolute; inset: -10% 25% 49%;
  border: 1px solid #866c50; border-radius: 40% 36% 30% 32% / 55%;
  background: repeating-linear-gradient(4deg,transparent 0 3px,#a97c4e38 4px 5px),linear-gradient(#dfba87,#b98e5e 53%,#856342);
  box-shadow: 0 3px 0 #665c4c, 2px 6px 4px #56473670;
}
.abrieb-active .reibbrett { display: block; }
@media(max-width:700px){
  .abrieb { inset: 0 -4% 0 24%; }
  .abrieb-layer { opacity: .68; }
}
@media(prefers-reduced-motion:reduce){
  .abrieb-active .reibbrett{display:none}
  .abrieb-layer{clip-path:none!important}
}
.material-replay {min-height:44px}
@media(max-width:380px){
  .hero-copy h1 {font-size:clamp(52px,16.8vw,64px)}
  .material-study figcaption {letter-spacing:0}
}
