/* The product gallery borrows three functional gestures from the source boards:
   the call waveform, the scoped approval sheet and the boundary comparison. */
.studio-heading {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: 3rem;
  padding-block-end: clamp(1.8rem, 5vw, 4rem);
}
.studio-heading h2, .product-page-intro h1 {
  max-inline-size: 15ch; font-size: clamp(2.75rem, 5.5vw, 6rem);
  line-height: 1.02; font-weight: 450; letter-spacing: -.06em;
}
.studio-heading > p, .product-page-intro > p:not(.eyebrow), .study-story > p:not(.eyebrow) {
  font-size: clamp(1.05rem,1.4vw,1.26rem); line-height: 1.62; color: var(--muted);
}
.studio-heading > p { max-inline-size: 42ch; margin: 0; }
.studio-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(.8rem,1.8vw,1.5rem); }
.studio-card {
  min-width: 0; background: #191918; color: #f7f3eb;
  border: 1px solid #3f3d36; border-radius: .25rem; overflow: hidden;
}
.studio-card > a {
  display: grid; grid-template-rows: auto 1fr; height: 100%; color: inherit;
  text-decoration: none; transition: background .25s ease;
}
.studio-card > a:hover { background: #201f1b; }
.studio-card > a:focus-visible { outline: 2px solid #ffd4aa; outline-offset: -3px; }
.studio-card-copy { padding: clamp(1.1rem,2.2vw,2rem); display: flex; flex-direction: column; }
.studio-domain, .art-label, .study-chrome span { font-size: .875rem; line-height: 1.45; }
.studio-domain { margin: 0 0 .6rem; color: #dcb48f; }
.studio-card h3 { font-size: clamp(1.85rem,3.15vw,3.15rem); line-height: 1.1; font-weight: 450; letter-spacing: -.05em; margin: 0; }
.studio-card h3 + p { color: #c9c5bb; line-height: 1.6; margin: .85rem 0 1.5rem; }
.studio-explore { margin-block-start: auto; width: fit-content; padding: .3rem 0;
  border-block-end: 1px solid #b68f6c; color: #fff5e7; font-size: .95rem; }
.studio-art { position: relative; aspect-ratio: 1.58; overflow: hidden; isolation: isolate; display: grid; place-items: center; border-block-end: 1px solid #4a4842; }
.studio-art::before { content: ""; position:absolute; inset:0; pointer-events:none; opacity: .18;
  background: repeating-linear-gradient(0deg,transparent 0 6px,#00000038 6px 7px); }
.studio-art-voice { color: #ffc297;
  background: radial-gradient(150% 145% at 10% -10%,#804b33 0%,#51392d 42%,#211c1a 85%); }
.voice-instrument { position: relative; width: 83%; padding-block: .7rem; }
.art-label { display: block; font-weight: 500; letter-spacing: .02em; }
.voice-quote { display: block; text-align: start; font-size: clamp(1.12rem,1.8vw,1.9rem); font-weight: 450; margin-block: .45rem .1rem; color: #fff5e9; }
.voice-wave { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2px; height: clamp(48px,6vw,86px); width: 100%; }
.voice-wave::before { content:""; position:absolute; top:50%; left:0; right:0; border-block-start:1px solid #ea9e706b; }
.voice-wave i { height: var(--bar); flex: 1; min-width: 1px; max-width: 5px; border-radius: 1.5px;
  background: linear-gradient(90deg,#936850,#fad3ac 45%,#b88160); transform-origin:center; }
.studio-art-gate { background: radial-gradient(ellipse at 55% -20%,#52524b,#2c302d 46%,#161d1b 85%); }
.scope-sheet { --paper: #dbc9aa; width: 68%; max-width: 265px; padding: clamp(.7rem,1.6vw,1.5rem);
  position: relative; border-radius: 4px; color: #3c392f; background: linear-gradient(125deg,#f7ead5,#c2ab88);
  transform: perspective(660px) rotateX(14deg) rotateZ(-6deg);
  box-shadow: 2px 3px 0 #7c7363,5px 7px 0 #454741,8px 10px 0 #73766b,14px 24px 32px #0006;
}
.scope-notch { position:absolute; top: 15%; inset-inline-end: 8%; width: 14%; height: 4px; border-radius: 6px; background:#51483b; box-shadow:0 1px 0 #fff7; }
.scope-sheet .art-label { font-size: .8rem; }
.scope-sheet strong { display: block; margin-block: .6rem; font-size: clamp(1.3rem,2.5vw,2rem); letter-spacing: -.04em; }
.scope-rule { display:block; height:1px; background:#685e4b65; margin-block: .6rem .4rem; }
.scope-signature { display:inline-block; font-size: .8rem; line-height:1.35; font-weight:500; }
.studio-art-mizan { color:#c8dfd9; background: radial-gradient(150% 140% at 100% 0%,#36514c,#243b38 48%,#172321 90%); }
.mizan-instrument { position:relative; width: 79%; padding-block:.6rem; }
.mizan-operators { display:grid; grid-template-columns:1fr 1px 1fr; align-items:center; margin-block:.65rem; border-block:1px solid #d3eee333; }
.mizan-operators i { display:grid; place-items:center; color:#e6f1e9; font:400 clamp(2.5rem,5.4vw,4.4rem)/1.1 ui-monospace,monospace; font-style:normal; height:1.1em; }
.mizan-operators i:last-child { color:#a4c9bd; }
.mizan-operators span { width:1px; height:76%; background:#d3eee34d; }
.mizan-baseline { font-size:.8rem; }
.studio-heading > div, .study-story { position:relative; }
.studio-heading > div::after, .study-story::after {
  content:""; display:block; margin-block-start:1.1rem; width:clamp(42px,5vw,78px); height:2px;
  background:linear-gradient(to right,#bd8459,#e8c096);
  transform-origin: left; transition: transform .85s cubic-bezier(.18,.75,.3,1);
}
[dir=rtl] :is(.studio-heading > div,.study-story)::after { transform-origin:right; }
html[data-motion=running] .instrument-observed:not(.in-view):is(.studio-heading,.study-story)::after,
html[data-motion=running] .studio-heading.instrument-observed:not(.in-view) > div::after { transform: scaleX(.16); }
@keyframes voice-rise { 0%,100%{transform:scaleY(.68)} 50%{transform:scaleY(1)} }
@keyframes sheet-arrive { from {transform:perspective(660px) rotateX(22deg) rotateZ(-10deg) translateY(9px)} }
@keyframes compare-arrive { from { transform:translateY(.16em); opacity:.48 } }
@media (prefers-reduced-motion:no-preference) {
  html[data-motion=running] [data-instrument].in-view .voice-wave i { animation:voice-rise 1.32s var(--phase) ease-in-out 2; }
  html[data-motion=running] [data-instrument].in-view .scope-sheet { animation:sheet-arrive 1s cubic-bezier(.16,.75,.32,1) both; }
  html[data-motion=running] [data-instrument].in-view .mizan-operators i:last-child { animation:compare-arrive .7s .12s ease both; }
}
.product-page-intro { padding-block:clamp(3rem,8vw,7rem) clamp(2.4rem,5vw,4rem); }
.product-page-intro > p:not(.eyebrow) { max-width: 55ch; margin-block:1.25rem; }
.study-index { display:flex; flex-wrap:wrap; gap:.5rem; margin-block-start:1.55rem; }
.study-index a { display:inline-flex; align-items:center; min-height:44px; padding:.5rem 1rem; color:#fff3e4; border:1px solid #6a6054; border-radius:3px; text-decoration:none; }
.study-index a:hover { border-color:#cfaa87; }
.study-row { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); align-items:center;
  gap:clamp(2rem,7vw,6.5rem); padding-block:clamp(2.7rem,6.5vw,6.7rem); border-block-start:1px solid #3c3b34; scroll-margin-block-start:5rem; }
.study-story h2 { font-size:clamp(3.1rem,5.9vw,6.2rem); line-height:1; font-weight:450; letter-spacing:-.06em; margin:.35rem 0 1.2rem; }
.study-story h3 { font-size:clamp(1.38rem,2.3vw,2rem); line-height:1.2; font-weight:480; letter-spacing:-.035em; margin-block-end:.7rem; }
.study-story > p { max-width:42ch; }
.study-workspace { min-width:0; border:1px solid #4e4940; border-radius:6px; background:#1b1b18; overflow:hidden; box-shadow:0 17px 36px #0002; }
.study-chrome { display:flex; justify-content:space-between; align-items:baseline; gap:1rem; padding:.85rem clamp(1rem,2.5vw,2rem); background:#25241f; border-block-end:1px solid #4f493d; }
.study-chrome strong { font-weight:550; }
.study-chrome span { color:#d1cabd; text-align:end; }
.study-visual,.study-chooser { padding:clamp(1.1rem,2.7vw,2.2rem); }
.study-visual { position:relative; color:#fff4e7; overflow:hidden; }
.voice-sample { background:radial-gradient(110% 160% at 8% 0%,#674331,#31251f 75%); }
.voice-sample .art-label { color:#f2c6a6; }
.voice-sample blockquote { text-align:start; font-size:clamp(1.4rem,2.45vw,2.2rem); line-height:1.63; margin: .55rem 0; }
.voice-foot { display:flex; flex-wrap:wrap; justify-content:space-between; gap:.35rem 1rem; padding-top:.65rem; border-top:1px solid #ab826a6b; font-size:.875rem; color:#f1d4bf; }
.gate-sample { color:#2b2f2a; background:linear-gradient(132deg,#eae1ca,#c8bb9c); }
.gate-spec { display:grid; margin: .7rem 0 0; }
.gate-spec > div { display:flex; gap:.8rem; justify-content:space-between; border-block-start:1px solid #6f6b5660; padding:.58rem 0; }
.gate-spec dd { font-weight:550; margin:0; text-align:end; }
.mizan-sample { background:radial-gradient(160% 160% at 90% 0%,#334c46,#253a34 70%); }
.sample-clocks { display:grid; grid-template-columns:1fr 1fr; border-block:1px solid #a7c5b84d; margin-block:.85rem; padding-block:.8rem; }
.sample-clocks > div { display:flex; flex-direction:column; gap:.3rem; }
.sample-clocks > div + div { border-inline-start:1px solid #b6caba59; padding-inline-start:1.25rem; }
.sample-clocks span,.mizan-sample > p { color:#d4e4d7; font-size:.875rem; margin:0; }
.sample-clocks strong { display:block; align-self:start; font-size:clamp(2rem,3.8vw,3.6rem); font-family:ui-monospace,monospace; font-weight:400; line-height:1.1; letter-spacing:-.07em; }
.study-chooser { display:block; min-width:0; position:relative; border:0; margin:0; padding-block-start:.85rem; }
.study-chooser legend { padding:1.1rem 0 0; color:#eee7d9; font-size:.95rem; font-weight:500; }
.study-choice { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.study-options { display:flex; gap:.45rem; flex-wrap:wrap; }
.study-options label { display:inline-flex; align-items:center; justify-content:center; min-height:44px; border:1px solid #857764; border-radius:3px; padding:.4rem .86rem; font-size:.93rem; color:#e5ded1; cursor:pointer; text-align:center; }
.study-choice[value="0"]:checked ~ .study-options label:nth-child(1),
.study-choice[value="1"]:checked ~ .study-options label:nth-child(2) { color:#222018; background:#efd0a8; border-color:#efd0a8; }
.study-choice[value="0"]:focus-visible ~ .study-options label:nth-child(1),
.study-choice[value="1"]:focus-visible ~ .study-options label:nth-child(2) { outline:2px solid #fff7df; outline-offset:3px; }
.study-results { border-block-start:1px solid #474339; margin-block-start:1.25rem; padding-block-start:1.18rem; }
.study-result { display:none; }
.study-choice[value="0"]:checked ~ .study-results [data-outcome="0"],
.study-choice[value="1"]:checked ~ .study-results [data-outcome="1"] { display:block; }
.study-result h3 { color:#fff3df; font-size:clamp(1.22rem,1.8vw,1.6rem); line-height:1.3; font-weight:500; margin:0; }
.study-result p { font-size:1rem; color:#cec6b9; line-height:1.55; margin:.5rem 0 0; }
.study-result .result-annotation { color:#e8c79f; margin-top:.85rem; font-size:.875rem; }
.study-contact { border-block-start:1px solid #3c3b34; padding-block:clamp(2rem,5vw,5rem); display:flex; justify-content:space-between; align-items:center; gap:1rem; flex-wrap:wrap; }
.study-contact p { margin:0; font-size:clamp(1.5rem,3vw,2.7rem); }
[dir=rtl] :is(.studio-heading h2,.studio-card h3,.product-page-intro h1,.study-story h2,.study-story h3) { letter-spacing:0; line-height:1.25; }
@media (max-width:840px) {
  .studio-grid { gap:.72rem; }
  .studio-art { aspect-ratio:1.4; }
  .studio-heading { grid-template-columns:1fr .9fr; gap:1.3rem; }
  .study-row { gap:1.5rem; grid-template-columns:.8fr 1.2fr; }
}
@media (max-width:660px) {
  .studio-grid, .studio-heading, .study-row { grid-template-columns:1fr; }
  .studio-heading { gap:.72rem; }
  .studio-grid { gap:1.1rem; }
  .studio-art { aspect-ratio:1.98; }
  .studio-card-copy { padding:1.25rem; }
  .voice-instrument,.mizan-instrument { max-width:315px; }
  .studio-art .voice-wave { height:58px; }
  .scope-sheet { width:52%; min-width:159px; padding:.72rem 1rem; }
  .study-row { align-items:start; gap:1.3rem; }
  .study-chrome { align-items:center; }
}
@media (prefers-reduced-motion:reduce) {
  .studio-heading > div::after, .study-story::after { transition:none; transform:none; }
}
