/* NOZAKI.COM Material Study — deliberately self-contained. */
.matter-hero { min-width: 0; }
.matter-stage {
  position: relative; isolation: isolate; min-height: min(670px, 76vw);
  overflow: hidden; border: 1px solid color-mix(in srgb,var(--color-border) 65%,transparent);
  border-radius: clamp(22px, 3.3vw, 42px);
  background: #e2e3e5; color: #1c2228;
}
.matter-static, .matter-canvas, .matter-grain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.matter-static {
  overflow: hidden;
  background: radial-gradient(ellipse at 77% 37%,#fcfcfc 0%,#e2e4e6 38%,#bfc2c7 100%);
}
.matter-carbon {
  position: absolute; width: min(55%,610px); aspect-ratio: 1.16;
  right: 6%; top: 15%; transform: rotate(-19deg) skew(-9deg,2deg);
  border-radius: 44% 57% 43% 50% / 39% 42% 58% 53%;
  background: repeating-linear-gradient(23deg,transparent 0 2px,#e6edf510 3px 4px,transparent 5px 7px),
              radial-gradient(ellipse at 27% 19%,#849199 0%,#353f48 34%,#111d24 69%,#0b0f13 100%);
  box-shadow: 30px 46px 48px #17202d48, inset -20px -28px 40px #05090bb5, inset 13px 15px 30px #dae5f232;
  filter: contrast(1.06);
}
.matter-glass {
  position: absolute; width: min(49%,570px); aspect-ratio: 1.36; top: 18%; right: 4%;
  transform: rotate(-15deg);
  border-radius: 45% 40% 58% 46% / 48% 50% 41% 56%;
  border: 2px solid #f8fbffb9;
  background: linear-gradient(145deg,#ffffffe0,#8ba1b21a 24%,#647b9b20 51%,#ffffff49 82%,#f4f8ff80);
  box-shadow: inset 9px 12px 13px #ffffffb3,inset -12px -11px 20px #59708252,0 18px 35px #35445634;
  backdrop-filter: blur(1.5px);
}
.matter-glint { position: absolute; right: 9%; top: 13%; width: 42%; height: 36%; border-radius: 50%; border-top: 1px solid #ffffffc9; transform: rotate(11deg); filter: blur(.2px); }
.matter-canvas { display: block; z-index: 0; opacity: 0; transition: opacity .3s ease; }
.matter-canvas[data-ready] { opacity: 1; }
.matter-grain {
  z-index: 1; opacity: .24;
  background: repeating-linear-gradient(0deg,#00000007 0px,#ffffff00 1px,#ffffff00 3px);
}
.matter-copy {
  position: relative; z-index: 2; max-width: min(52%,650px);
  display: flex; flex-direction: column; align-items: flex-start;
  gap: clamp(18px,3vw,34px); padding: clamp(38px,6.2vw,95px);
  padding-right: 10px; pointer-events: none;
}
.matter-copy > * { pointer-events: auto; }
.matter-eyebrow, .matter-bottom, .matter-after {
  font-family: var(--font-mono,monospace); font-size: .67rem;
  font-weight: 600; letter-spacing: .11em; line-height: 1.7;
}
.matter-copy h1 {
  margin: 0; white-space: pre-line;
  font-family: var(--font-display,serif); font-size: clamp(2.5rem,5.5vw,5.85rem);
  font-weight: 400; line-height: 1.09; letter-spacing: -.052em;
  text-wrap: balance; overflow-wrap: anywhere;
}
.matter-subcopy {
  max-width: 44ch; white-space: pre-line; margin: 0;
  font-size: clamp(.89rem,1.2vw,1rem); line-height: 1.95; color: #34404a;
}
.matter-links { display: flex; gap: 9px; flex-wrap: wrap; }
.matter-link {
  min-height: 44px; display: inline-flex; align-items: center; padding: 11px 16px;
  border: 1px solid #697781; border-radius: 100px; color: #202a32;
  background: #ffffffe0; text-decoration: none; font-size: .8rem; font-weight: 700;
  transition: transform .2s ease, background .2s ease;
}
.matter-link:hover { color: #121b23; background: #fff; transform: translateY(-2px); }
.matter-link--primary { background: #1b252c; color: #fff; border-color: #1b252c; }
.matter-link--primary:hover { color: #fff; background: #344853; }
.matter-bottom {
  position: absolute; z-index: 2; left: clamp(28px,6vw,95px); right: clamp(28px,6vw,95px);
  bottom: 19px; display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.matter-motion {
  min-height: 44px; padding: 7px 14px; background: #ffffffbc; color: #15222e;
  border: 1px solid #aab5be; border-radius: 40px;
  font: inherit; cursor: pointer;
}
.matter-motion:hover { background: #fff; }
.matter-motion:focus-visible, .matter-link:focus-visible { outline: 3px solid #2864af; outline-offset: 3px; }
.matter-after { display: flex; justify-content: space-between; gap: 1rem; padding: 14px 8px; color: var(--color-muted); }
@media (max-width: 900px) {
  .matter-stage { min-height: 660px; }
  .matter-copy { max-width: 75%; padding: 50px 38px; }
  .matter-carbon { width: 64%; right: -11%; top: 28%; }
  .matter-glass { width: 62%; right: -12%; top: 31%; }
  .matter-copy h1 { font-size: clamp(2.7rem,7vw,4.3rem); }
}
@media (max-width: 600px) {
  .matter-stage { min-height: 690px; border-radius: 25px; }
  .matter-copy { max-width: 100%; gap: 18px; padding: 35px 23px; }
  .matter-copy h1 { max-width: 9.5em; font-size: clamp(2.45rem,10vw,3.8rem); }
  .matter-subcopy { max-width: 26ch; font-size: .86rem; }
  .matter-carbon { width: 85%; top: 49%; right: -12%; }
  .matter-glass { width: 84%; top: 51%; right: -8%; }
  .matter-bottom { left: 20px; right: 18px; bottom: 14px; font-size: .58rem; }
  .matter-after { font-size: .53rem; padding: 10px 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .matter-canvas, .matter-link { transition: none !important; animation: none !important; }
}
