/* audiences.css: landing v2, step 4 «Каждой стороне своя версия» (scene audiences.js), 20.10.2026.
   Desktop: copy column on the left (on the left edge of the section text), drawing on the right. Phone: heading and
   switches on top, drawing in the middle, copy at the bottom above the strip of the sticky button. Still mode (no
   GSAP, reduce motion): the drawing is one frame and the four texts stand as a list.
   Type per the design review: the heading takes the h2 size of every section heading, the side's name the display
   serif, body text 16/17 px, switch labels 12 px at least. */
.au-scene { background: var(--paper); --au-bot: 24px; }
@media (max-width: 899px) { .au-scene { --au-bot: 84px; } }
/* phones: the sticky button hides while a scene fills the screen, so the text may go down to the bottom edge */
@media (max-width: 760px) { .au-scene { --au-bot: 18px; } }
.au-draw { position: absolute; inset: 0; }
.au-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.au-svg text { font-kerning: none; }
/* stroke widths of drawings placed on a plane by a matrix: --u = 1 / scale keeps them in stage units */
.au-svg .uw06 { stroke-width: calc(var(--u, 1) * .6px); } .au-svg .uw09 { stroke-width: calc(var(--u, 1) * .9px); }
.au-svg .uw10 { stroke-width: calc(var(--u, 1) * 1px); } .au-svg .uw12 { stroke-width: calc(var(--u, 1) * 1.2px); }
.au-svg .uw14 { stroke-width: calc(var(--u, 1) * 1.4px); } .au-svg .uw22 { stroke-width: calc(var(--u, 1) * 2.2px); }
.au-svg .uw24 { stroke-width: calc(var(--u, 1) * 2.4px); }

.au-ui { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.au-col { position: absolute; left: max(var(--gutter), (100% - var(--wrap)) / 2); top: calc(var(--header) + 36px); bottom: calc(var(--au-bot) + 12px); width: clamp(300px, 31vw, 440px); display: flex; flex-direction: column; pointer-events: auto; }
.au-h { font: 800 var(--fs-h2, clamp(1.5rem, 1.05rem + 2.1vw, 2.75rem))/1.08 var(--sans); letter-spacing: -.018em; color: var(--ink); text-wrap: balance; }
:lang(ka) .au-h, :lang(th) .au-h { line-height: 1.25; letter-spacing: 0; }

.au-ind { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 18px; margin: 24px 0 30px; }
/* switches: the box is 44 px tall (padding, the margins of the row give the height back), the hit area is at least
   44 px wide (::before); the switch looks the same. Press feedback on :active, hover only for a mouse */
.au-ind-b { position: relative; appearance: none; -webkit-appearance: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; background: none; border: 0; border-radius: 0; margin: 0; min-height: 44px; padding: 10px 0 8px; cursor: pointer; text-align: left; font: 600 12px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--soft); transition: color .2s; }
.au-ind-b::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: max(100%, 44px); transform: translateX(-50%); }
.au-ind-b.is-on { color: var(--blue); }
@media (hover: hover) and (pointer: fine) {
  .au-ind-b:not(.is-on):hover { color: var(--ink); }
  .au-ind-b:not(.is-on):hover .au-ind-bar { background: rgba(38, 41, 47, .26); }
}
.au-ind .au-ind-b:active { color: var(--blue); transition: none; }
.au-ind .au-ind-b:active .au-ind-n { transform: translateY(1px); transition: none; }
.au-ind .au-ind-b:active .au-ind-bar { background: rgba(30, 79, 216, .32); transition: none; }
.au-ind-b:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.au-ind-n { display: block; white-space: nowrap; transition: transform .12s ease-out; }
.au-ind-bar { display: block; position: relative; overflow: hidden; height: 3px; margin-top: 9px; background: rgba(38, 41, 47, .14); transition: background .2s; }
.au-ind-bar::after { content: ''; position: absolute; inset: 0; background: var(--blue); transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }

.au-blocks { display: grid; }
.au-b { grid-area: 1 / 1; }
.au-name { margin: 0 0 12px; font: 600 var(--fs-display, clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem))/1.05 var(--serif); color: var(--ink); }
.au-p { font-size: 1.0625rem; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.au-list { list-style: none; margin: 14px 0 0; padding: 0; font-size: 1rem; line-height: 1.45; color: var(--ink); }
.au-list li { position: relative; padding-left: 22px; margin-top: 7px; }
.au-list li::before { content: ''; position: absolute; left: 3px; top: .52em; width: 6px; height: 6px; border: 1.5px solid var(--blue); background: var(--sheet); transform: rotate(45deg); }

@media (max-width: 760px) {
  .au-col { left: 0; right: 0; width: auto; top: calc(var(--header) + 10px); bottom: var(--au-bot); padding: 0 var(--gutter); }
  .au-h { line-height: 1.1; }
  .au-ind { justify-content: space-between; gap: 6px; margin: 2px 0 -8px; }
  .au-ind-b { padding: 12px 0 10px; font-size: 12px; letter-spacing: .02em; }
  .au-ind-bar { margin-top: 6px; }
  .au-blocks { margin-top: auto; }
  /* larger text in a column, it takes the room under the drawing (owner, 20.10: «сложно читать на мобильном») */
  .au-name { margin-bottom: 6px; }
  .au-p { font-size: 1rem; line-height: 1.45; }
  .au-list { margin-top: 8px; font-size: 1rem; line-height: 1.35; }
  .au-list li { display: block; padding-left: 20px; margin: 5px 0 0; }
  .au-list li::before { left: 3px; top: .45em; width: 6px; height: 6px; }
}

/* still: one frame of the drawing, the four texts as a list */
.au-scene.au-still { height: auto; overflow: visible; }
.au-still .scene-stage { position: relative; inset: auto; display: grid; grid-template-columns: minmax(300px, 440px) minmax(0, 1fr); gap: 48px; align-items: start; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: calc(var(--header) + 40px) var(--gutter) 72px; }
.au-still .au-draw { position: sticky; top: calc(var(--header) + 16px); grid-column: 2; grid-row: 1; height: min(78vh, 760px); }
.au-still .au-ui { position: static; grid-column: 1; grid-row: 1; pointer-events: auto; }
.au-still .au-col { position: static; width: auto; }
.au-still .au-blocks { display: block; margin-top: 0; }
.au-still .au-b + .au-b { margin-top: 40px; }
@media (max-width: 760px) {
  .au-still .scene-stage { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: calc(var(--header) + 24px); padding-bottom: 96px; }
  .au-still .au-ui, .au-still .au-col { display: contents; }
  .au-still .au-h { order: 1; }
  .au-still .au-ind { order: 2; margin-bottom: 0; }
  .au-still .au-draw { order: 3; position: relative; top: auto; grid-column: auto; grid-row: auto; height: 64vh; }
  .au-still .au-blocks { order: 4; margin-top: 16px; }
  .au-still .au-b + .au-b { margin-top: 28px; }
  .au-still .au-list li { display: block; margin-top: 3px; }
}

/* a long script on a short screen (audiences.js measures the column): it closes up, then the heading steps down */
.au-col.is-tight .au-ind { margin: 14px 0 16px; }
.au-col.is-tight .au-name { margin-bottom: 8px; font-size: min(var(--fs-display, 2.75rem), 2.25rem); }
.au-col.is-tight .au-list { margin-top: 10px; }
.au-col.is-tight .au-list li { margin-top: 3px; }
.au-col.is-tighter .au-h { font-size: min(var(--fs-h2, 2.75rem), 2.125rem); }
.au-col.is-tighter .au-p { font-size: 1rem; }

/* narrow desktops and short screens: tighter column */
@media (min-width: 761px) and (max-width: 1180px) {
  .au-ind { gap: 12px; }
  .au-ind-b { letter-spacing: .04em; }
}
@media (min-width: 761px) and (max-height: 780px) {
  .au-col { top: calc(var(--header) + 22px); }
  .au-ind { margin: 16px 0 18px; }
  .au-name { margin-bottom: 10px; }
  .au-list li { margin-top: 5px; }
}
