/* What the homepage and the three industry pages share: the stage (a framed window in
   which the product plays, in one of two dresses) and the arrivals. It sits on top of the
   Layer concept's own styles (../css/layer.css and ../css/home.css give the tokens, the
   type, the buttons, the header, the closing and the footer). The pages' own layout is in
   industry-page.css; the homepage loads this file only.

   One accent, Manthle red (--accent), used for what is live: the current caption,
   a small mark. Everything else is black, white and the greys of layer.css. */

:root{--ind-line:rgb(11 11 11/.1);--ind-soft:#f5f5f4;--ind-ease:cubic-bezier(.16,.84,.24,1)}
body{background:var(--white)}
/* The navigation pill is white here: no cream anywhere on these pages. */
.site-header[data-ink=light]{--tone-nav:rgb(255 255 255/.92)}

/* Arrivals */
html.ind-motion [data-rise]{opacity:0;transform:translate3d(0,22px,0)}
html.ind-motion [data-rise].is-in{opacity:1;transform:none;transition:opacity .8s var(--ind-ease),transform 1s var(--ind-ease);transition-delay:calc(var(--i,0) * 90ms)}

/* ---------- The stage: the responsive poster reserves the live product's space ---------- */
.ui-stage { display:flex; flex-direction:column; gap:12px; min-width:0; margin:0; }
.ui-window,.stage-screen { min-width:0; }
.ui-view { position:relative; width:100%; overflow:hidden; background:#f7f7f6; }
.ui-view picture,.ui-view .ui-poster { display:block; width:100%; height:auto; }
.ui-frame { position:absolute; top:0; left:0; border:0; transform-origin:0 0; pointer-events:none; opacity:0; transition:opacity .38s ease-in-out,transform var(--camera-duration,0ms) cubic-bezier(.45,0,.25,1); }
.ui-stage.is-live .ui-frame { opacity:1; }
.ui-stage.is-rewinding .ui-frame { opacity:0; }
.stage-context,.stage-identity { display:flex; align-items:center; min-width:0; gap:10px; }
.stage-identity { flex:1; }
.stage-context strong { font-weight:500; }
.stage-context button { display:grid; place-items:center; flex:none; font:inherit; cursor:pointer; }
.stage-context button[hidden] { display:none; }
.stage-context button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.ui-captions { display:grid; grid-template-columns:minmax(0,1fr); min-width:0; margin:0; padding:0; list-style:none; }
.ui-captions > li { grid-area:1/1; visibility:hidden; margin:0; text-wrap:pretty; }
.ui-captions > li[aria-current] { visibility:visible; }
.ui-note { font-size:12px; line-height:1.4; color:var(--grey-600); }
[data-tone=dark] .ui-note { color:var(--grey-400); }

/* Titled windows carry the narration below the product. */
[data-stage-dress=titled] .stage-screen { overflow:hidden; border-radius:12px; background:var(--white); box-shadow:0 0 0 1px var(--ind-line),0 9px 24px rgb(0 0 0/.08); }
[data-tone=dark] [data-stage-dress=titled] .stage-screen { box-shadow:0 0 0 1px rgb(255 255 255/.22),0 14px 44px rgb(0 0 0/.32); }
[data-stage-dress=titled] .stage-context { justify-content:space-between; padding:11px 15px; background:var(--raven); color:var(--white); }
[data-stage-dress=titled] .stage-identity { align-items:flex-start; flex-direction:column; gap:2px; }
[data-stage-dress=titled] .stage-identity strong { font-size:15px; line-height:1.2; letter-spacing:-.016em; }
[data-stage-dress=titled] .stage-owner { color:var(--grey-400); font-size:12px; line-height:1.3; }
[data-stage-dress=titled] button { padding:6px 12px; border:1px solid rgb(255 255 255/.45); border-radius:100px; background:transparent; color:inherit; font-size:12px; line-height:1.2; }
[data-stage-dress=titled] button:hover { background:rgb(255 255 255/.12); }
[data-stage-dress=titled] .ui-captions > li { padding:13px 0 0 19px; font-size:clamp(15px,1.15vw,17px); line-height:1.4; letter-spacing:-.008em; }
[data-stage-dress=titled] .ui-captions > li::before { content:""; position:absolute; width:6px; height:6px; margin:.54em 0 0 -18px; border-radius:50%; background:var(--accent); }

/* Attached windows enclose the work area and its narration in one light frame. */
[data-stage-dress=attached] .ui-window { overflow:hidden; border:var(--stage-border,0); border-radius:12px; background:var(--white); color:var(--raven); box-shadow:var(--stage-elevation,0 0 0 1px var(--ind-line),0 7px 22px rgb(0 0 0/.07)); }
[data-tone=dark] [data-stage-dress=attached] .ui-window { box-shadow:var(--stage-elevation,0 12px 38px rgb(0 0 0/.26),0 0 0 1px rgb(255 255 255/.12)); }
[data-stage-dress=attached] .stage-context { min-height:var(--stage-header-height,43px); padding:var(--stage-header-pad,6px 16px); border-bottom:1px solid var(--ind-line); font:500 var(--stage-header-font,13px)/1.25 var(--font-sans); }
[data-stage-dress=attached] .stage-identity::before { content:""; width:7px; height:7px; flex:none; border-radius:50%; background:var(--accent); }
[data-stage-dress=attached] .stage-owner { flex:1; color:var(--grey-700); text-align:right; font-weight:400; }
[data-stage-dress=attached] button { width:min(31px,calc(var(--stage-header-height,43px) - 6px)); aspect-ratio:1; padding:0; border:1px solid var(--ind-line); border-radius:50%; background:var(--white); color:var(--raven); }
[data-stage-dress=attached] button:hover { background:var(--grey-100); }
[data-stage-dress=attached] button span { display:none; }
[data-stage-dress=attached] button::before { content:""; width:8px; height:10px; border-inline:2px solid currentColor; }
[data-stage-dress=attached][data-held] button::before { width:0; height:0; margin-left:2px; border:5px solid transparent; border-left:8px solid currentColor; border-right:0; }
[data-stage-dress=attached] .ui-captions { padding:var(--stage-caption-pad,12px 18px); border-top:1px solid var(--ind-line); }
[data-stage-dress=attached] .ui-captions > li { align-self:var(--stage-caption-align,center); padding-left:12px; border-left:2px solid var(--accent); color:var(--raven); font:450 15px/var(--stage-caption-leading,1.4) var(--font-sans); letter-spacing:-.012em; }
@media (max-width:719px) {
  [data-stage-dress=titled] .ui-captions > li { padding-top:10px; }
  [data-stage-dress=attached] .stage-context { min-height:var(--stage-header-height,37px); padding:var(--stage-header-pad,4px 12px); font-size:var(--stage-header-font,12px); }
  [data-stage-dress=attached] .stage-context,[data-stage-dress=attached] .stage-identity { gap:7px; }
  [data-stage-dress=attached] .ui-captions { padding:var(--stage-caption-pad,10px 12px); }
  [data-stage-dress=attached] .ui-captions > li { font-size:14px; }
}
html:not(.js) .ui-captions { row-gap:8px; }
html:not(.js) .ui-captions > li { grid-area:auto; visibility:visible; }
@media (prefers-reduced-motion:reduce) {
  .ui-frame,.stage-context button { display:none; }
}
