/* «Как свет становится рельефом» — страница прототипа фотометрического стерео. */
.method-hero{display:grid;grid-template-columns:1.15fr 1fr;column-gap:6vw;align-items:end;padding-top:25px;padding-bottom:clamp(36px,4vw,60px)}
.method-hero .hero-meta{grid-column:1/-1;display:flex;justify-content:space-between;gap:20px;align-items:center;font-size:11px;color:var(--muted);padding-bottom:clamp(34px,4.5vw,70px)}
.method-hero .hero-meta a{display:flex;align-items:center;gap:10px;min-height:32px}
.method-hero .hero-meta .icon{width:15px;height:15px}
.method-hero h1{font-size:clamp(52px,7vw,96px);font-weight:380;line-height:1.02;letter-spacing:-.04em;max-width:11ch}
.method-lead{display:grid;gap:22px;padding-bottom:10px}
.method-lead p:first-child{font-family:var(--display);font-size:clamp(21px,1.9vw,30px);font-weight:380;line-height:1.3;letter-spacing:-.02em;max-width:34ch}
.method-note{font-size:14px;line-height:1.7;color:var(--muted);max-width:40ch}

.method-page main h2{font-size:clamp(34px,3.7vw,62px)}
.frames{padding-bottom:clamp(70px,8vw,130px)}
.frames-stage{position:relative;aspect-ratio:1080/400;border-radius:4px;overflow:hidden;background:var(--deep);cursor:ew-resize;touch-action:pan-y;user-select:none;-webkit-user-select:none}
.frames-images,.frames-images img{position:absolute;inset:0;width:100%;height:100%}
.frames-images img{object-fit:cover;opacity:0}
.frames-images img.is-base{opacity:1}
.frames-readout{position:absolute;left:18px;bottom:18px;display:flex;gap:14px;align-items:center;padding:9px 14px;border-radius:4px;background:rgba(37,42,34,.9);font-size:12px;line-height:1.2;color:var(--paper);font-variant-numeric:tabular-nums;pointer-events:none}
.frames-readout span+span{color:var(--sage-hi)}
.frames-bottom{display:grid;grid-template-columns:1fr 1fr;gap:6vw;align-items:start;margin-top:clamp(30px,3.5vw,50px)}
.frames-copy p{margin-top:18px;color:var(--muted);font-size:15px;line-height:1.7;max-width:46ch}
.frames-range{display:grid;gap:12px;margin-top:30px;max-width:420px;font-size:12px;color:var(--muted)}
.frames-range input{appearance:none;-webkit-appearance:none;width:100%;height:44px;background:transparent;margin:0;cursor:pointer}
.frames-range input::-webkit-slider-runnable-track{height:2px;background:linear-gradient(90deg,var(--sage-hi) var(--fill,50%),rgba(235,228,216,.22) var(--fill,50%))}
.frames-range input::-moz-range-track{height:2px;background:rgba(235,228,216,.22)}
.frames-range input::-moz-range-progress{height:2px;background:var(--sage-hi)}
.frames-range input::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;margin-top:-8px;border-radius:50%;background:var(--paper);border:4px solid var(--stand);box-shadow:0 0 0 1px var(--sage-hi)}
.frames-range input::-moz-range-thumb{width:12px;height:12px;border-radius:50%;background:var(--paper);border:4px solid var(--stand);box-shadow:0 0 0 1px var(--sage-hi)}
.frames-range input:focus-visible{outline:2px solid var(--sage-hi);outline-offset:4px}
.light-arc svg{width:100%;height:auto;overflow:visible}
.arc-guide{fill:none;stroke:rgba(235,228,216,.18);stroke-width:1;stroke-dasharray:2 5}
.arc-board{stroke:var(--paper);stroke-width:5;stroke-linecap:round}
.arc-ray{stroke:var(--sage-hi);stroke-width:1;stroke-dasharray:3 4;transition:all .25s var(--ease)}
.arc-dot{fill:var(--stand);stroke:#85927a;stroke-width:1;transition:r .3s var(--ease),fill .3s}
.arc-dot.is-active{fill:var(--sage-hi);stroke:var(--sage-hi)}
.light-arc figcaption{margin-top:16px;font-size:13px;line-height:1.7;color:var(--muted);max-width:48ch}

.pixel{padding-block:clamp(70px,8vw,130px);border-top:1px solid var(--line)}
.pixel-intro{display:grid;grid-template-columns:1fr 1fr;gap:6vw;align-items:end}
.pixel-intro p{color:var(--muted);font-size:15px;line-height:1.7;max-width:48ch}
.pixel-layout{display:grid;grid-template-columns:1.4fr 1fr;gap:clamp(28px,4vw,64px);align-items:center;margin-top:clamp(36px,4vw,60px)}
.pixel-probe{position:relative;border-radius:4px;overflow:hidden;cursor:crosshair;touch-action:pan-y}
.pixel-probe img{width:100%;height:auto;aspect-ratio:1080/400}
.pixel-probe:focus-visible{outline:2px solid var(--sage-hi);outline-offset:6px}
.probe-cross{position:absolute;left:0;top:0;width:46px;height:46px;margin:-23px 0 0 -23px;border:1.5px solid var(--sage-hi);border-radius:50%;box-shadow:0 0 0 1px rgba(20,24,18,.55),0 0 0 999px rgba(30,34,27,.38);pointer-events:none;transition:transform .12s linear}
.probe-cross::before,.probe-cross::after{content:"";position:absolute;background:var(--sage-hi);box-shadow:0 0 0 1px rgba(20,24,18,.4)}
.probe-cross::before{left:50%;top:-10px;bottom:-10px;width:1px}
.probe-cross::after{top:50%;left:-10px;right:-10px;height:1px}
.pixel-chart{width:100%;height:auto;overflow:visible}
.pixel-grid line{stroke:rgba(235,228,216,.14);stroke-width:1}
.pixel-chart text{font-size:11px;fill:var(--muted)}
.pixel-bar{fill:#6f8063;transition:height .2s var(--ease),y .2s var(--ease)}
.pixel-bar.is-light{fill:var(--sage-hi)}
.pixel-fit{fill:none;stroke:var(--paper);stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}
.pixel-facts{display:grid;grid-template-columns:120px 1fr;gap:24px;align-items:center;margin-top:24px}
.pixel-compass svg{width:120px;height:120px}
.pixel-compass circle,.pixel-compass line{fill:none;stroke:rgba(235,228,216,.2);stroke-width:1}
.pixel-compass .compass-arrow{stroke:var(--sage-hi);stroke-width:2;stroke-linecap:round}
.pixel-compass .compass-tip{fill:var(--sage-hi);stroke:none}
.pixel-facts dl{display:grid;gap:10px;margin:0}
.pixel-facts dl div{display:flex;justify-content:space-between;gap:16px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.pixel-facts dt{font-size:12px;color:var(--muted)}
.pixel-facts dd{margin:0;font-family:var(--display);font-size:18px;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.pixel-legend{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-top:20px;font-size:12px;color:var(--muted)}
.legend-bar{width:10px;height:12px;background:var(--sage-hi);display:inline-block;margin-left:0}
.legend-line{width:18px;height:2px;background:var(--paper);display:inline-block;margin-left:12px}

.layers{padding-block:clamp(70px,8vw,130px);border-top:1px solid var(--line)}
.layers-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:clamp(30px,3.5vw,50px)}
.layer-tabs{display:flex;gap:4px;padding:3px;border:1px solid var(--line);border-radius:4px}
.layer-tabs button{min-height:44px;padding:10px 16px;border-radius:2px;background:transparent;color:var(--muted);font-size:12px;transition:color .2s,background-color .2s}
.layer-tabs button:hover{color:var(--paper);background:rgba(235,228,216,.06)}
.layer-tabs button[aria-selected=true]{background:var(--paper);color:var(--ink)}
.layer-view{position:relative;aspect-ratio:1080/400;border-radius:4px;overflow:hidden;background:var(--deep)}
.layer-view img{position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity .7s var(--ease),filter .7s var(--ease);filter:blur(6px)}
.layer-view img.is-active{opacity:1;filter:none}
.layer-caption{margin-top:18px;font-size:13px;line-height:1.7;color:var(--muted);max-width:60ch}

.live{padding-block:clamp(70px,8vw,130px);border-top:1px solid var(--line)}
.live-head{display:grid;grid-template-columns:1fr 1fr;gap:6vw;align-items:end;margin-bottom:clamp(30px,3.5vw,50px)}
.live-head p{color:var(--muted);font-size:15px;line-height:1.7;max-width:48ch}
.light-table-trial{height:auto;aspect-ratio:1080/400}

.capture{display:grid;grid-template-columns:1fr 1fr;gap:6vw;align-items:center;padding-block:clamp(70px,8vw,130px);border-top:1px solid var(--line)}
.capture-copy>p{margin-top:18px;color:var(--muted);font-size:15px;line-height:1.7;max-width:46ch}
.capture-list{list-style:none;margin:36px 0 0;padding:0;display:grid}
.capture-list li{display:grid;gap:6px;padding:18px 0;border-top:1px solid var(--line)}
.capture-list li:last-child{border-bottom:1px solid var(--line)}
.capture-list b{font-family:var(--display);font-weight:430;font-size:19px;letter-spacing:-.02em}
.capture-list span{font-size:13px;line-height:1.7;color:var(--muted);max-width:52ch}
.capture-rig svg{width:100%;height:auto}
.rig-ring{fill:none;stroke:rgba(235,228,216,.18);stroke-width:1}
.rig-sample{fill:var(--paper)}
.rig-sphere{fill:#d9d3c7;stroke:var(--stand);stroke-width:2}
.rig-axis{stroke:rgba(235,228,216,.3);stroke-dasharray:3 5}
.rig-camera{fill:var(--deep);stroke:var(--paper);stroke-width:1.2}
.rig-light{fill:var(--sage-hi)}
.rig-light-glow{fill:var(--sage-hi);opacity:.16}
.capture-rig text{font-size:11px;fill:var(--muted)}
.capture-rig figcaption{margin-top:14px;font-size:13px;color:var(--muted);line-height:1.7}

.method-page .contact{border-top:1px solid var(--line);padding-top:clamp(60px,7vw,110px)}

@media(max-width:1100px){
  .pixel-layout{grid-template-columns:1fr}
}
@media(max-width:760px){
  .method-hero .hero-meta>span{max-width:160px;text-align:right;line-height:1.5}
  .method-hero,.frames-bottom,.pixel-intro,.live-head,.capture{grid-template-columns:1fr;gap:26px}
  .method-lead{padding-bottom:0}
  .frames-stage,.layer-view{aspect-ratio:auto;height:300px;margin-inline:calc(var(--gutter) * -1);border-radius:0}
  .frames-readout{left:var(--gutter)}
  .layers-head{flex-direction:column;align-items:flex-start}
  .layer-tabs{width:100%}
  .layer-tabs button{flex:1;padding-inline:6px}
  .light-table-trial{aspect-ratio:auto;height:320px}
  .pixel-facts{grid-template-columns:96px 1fr;gap:18px}
  .pixel-compass svg{width:96px;height:96px}
  .capture-rig{order:-1}
}
@media(prefers-reduced-motion:reduce){
  .layer-view img,.arc-ray,.arc-dot,.pixel-bar,.probe-cross{transition:none}
}
