/*
  OctaVia secondary-screen art study. The Home screen, site chrome, product
  captures, original CSS/JS, content, and control markup are deliberately out
  of scope. All decoration is pointer-free and local to a secondary screen.
*/
#screen-problem,#screen-platform,#screen-advantage,#screen-people,#screen-film,#screen-leadership,#screen-partner { isolation:isolate; }
#screen-problem::before,#screen-problem::after,#screen-platform::before,#screen-platform::after,#screen-partner::before,#screen-partner::after {
  content:""; position:absolute; inset:0; pointer-events:none;
}
#screen-problem::before,#screen-platform::before,#screen-partner::before {z-index:-2;background-position:center;background-size:cover}
#screen-problem::after,#screen-platform::after,#screen-partner::after { z-index:-1; }

/* Problem: a room before the team arrives; the evidence sits in a protected field. */
#screen-problem {background:#0c1e30;color:#f7fbff;color-scheme:dark;}
#screen-problem[aria-hidden="false"]::before {background-image:url('assets/art/problem-room.webp');background-position:68% 42%;filter:saturate(.67);opacity:.88}
#screen-problem::after {
  background:linear-gradient(90deg,#081827 0%,rgba(8,24,39,.88) 36%,rgba(8,24,39,.48) 74%,rgba(8,24,39,.52) 100%),
             linear-gradient(0deg,#081827 0%,rgba(8,24,39,.89) 23%,rgba(8,24,39,.08) 78%);
}
#screen-problem .problem-head p {color:#e2edf3;text-shadow:0 1px 12px #07141f;}
#screen-problem .clock {padding:clamp(17px,2.35vw,31px);border:1px solid #759ba849;border-radius:17px;background:linear-gradient(120deg,#142d3eeb,#0b2231eb);box-shadow:0 20px 45px -30px #000b;}
#screen-problem .clock figcaption {color:#c5d9e2;}
#screen-problem .clock ol::before {background:linear-gradient(90deg,#6ba5aa 0%,#6ba5aa 48%,#e79180 100%);}
#screen-problem .clock li::before {background:#213a4a;border-color:#9ad5d4;}
#screen-problem .clock li.is-incision::before {background:#f29685;border-color:#f29685;}
#screen-problem .clock time {color:#b8e7e0;}
#screen-problem .clock .stat,#screen-problem .minute b {color:#f7fbff;}
#screen-problem .clock .is-incision .stat {color:#ffac99;}
#screen-problem .clock p,#screen-problem .minute span,#screen-problem .source-note {color:#c8d9e2;}
#screen-problem .clock a,#screen-problem .problem-foot a {color:#9fe4db;}
#screen-problem .problem-foot {border-top-color:#9db6c24d;}

/* Platform: the actual workspace footage stays bright above a dark instrument bay. */
#screen-platform {background:#0a1a2a;}
#screen-platform[aria-hidden="false"]::before {background-image:url('assets/art/platform-prep.webp');background-position:75% 45%;opacity:.75;filter:saturate(.82)}
#screen-platform::after {background:linear-gradient(90deg,#0a1929 4%,#0a1929dc 42%,#0a192947 100%),linear-gradient(0deg,#091827 4%,#09182700 75%);}
#screen-platform .platform-visual {
  position:relative;background:linear-gradient(165deg,#162f43f7,#0b1c2aef);border-color:#8ebac15c;
  box-shadow:0 36px 76px -37px #010b15ed,inset 0 1px 0 #d6efff19;
}
#screen-platform .platform-visual::before {content:"";position:absolute;inset:-1px 16% auto 16%;height:1px;background:linear-gradient(90deg,transparent,#89cddd,transparent);pointer-events:none;}
#screen-platform .workflow-film {box-shadow:0 0 0 1px #9ccbdb25,0 15px 30px -24px #000;}
#screen-platform .feature-selector {border-top-color:#a1bbc752;}
#screen-platform .feature-selector>button {padding-inline:9px;border-bottom-color:#a1bbc743;}
#screen-platform .feature-selector .is-selected {background:linear-gradient(90deg,#40697457,#2147570a 95%);}
#screen-platform .feature-selector>button:not(.is-selected):hover {background:#20465d6a;}
#screen-platform .feature-selector .is-selected::before {left:0;top:11px;bottom:11px;width:2px;}
#screen-platform .feature-selector .is-selected::after {border-color:#6fabae;background:#31545d6b;color:#c0e7e7;}
#screen-platform .feature-selector button:focus-visible {z-index:1;outline-offset:-2px;}
#screen-platform .estimate-teaser {background:#2c585d36;border-color:#81c2bb4f;}

/* Value: a near-quiet proof space; the calculator receives the brightest frame. */
#screen-value {background:#0b1928;}
#screen-value .value-backdrop::before {filter:saturate(.65);}
#screen-value .value-shade {background:linear-gradient(90deg,#0a1a2a 0%,#0a1a2aee 43%,#0a1a2a70 78%,#0a1a2aa6),linear-gradient(0deg,#091a2a 0%,#091a2a00 62%);}
#screen-value .value-facts li {border-color:#a8c3cf51;}
#screen-value .value-facts span,#screen-value .value-source {color:#c4d5df;}
#screen-value .value-card {background:linear-gradient(135deg,#163549f5,#0d2434fa);border-color:#9bd3d283;box-shadow:0 25px 65px -29px #000,inset 0 1px 0 #cde9ef32;}
#screen-value .value-result {position:relative;border-top-color:#aacfd752;}
#screen-value .value-basis>div {background:#47677855;}
#screen-value .value-card input[type=number] {border-color:#92b7ca66;}
#screen-value .value-bar>span {background:linear-gradient(90deg,#50bfb3,#99d7cb);}

/* Why: a printed comparison sheet, not photography behind a comparison. */
#screen-advantage {
  background:radial-gradient(ellipse at 90% 8%,#d3e3e6 0%,transparent 37%),linear-gradient(145deg,#fbfdfd 7%,#edf5f5 57%,#e2edef);
}
#screen-advantage::before {
  content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;opacity:.52;
  background:repeating-linear-gradient(90deg,transparent 0 42px,#819fa328 43px 44px),repeating-linear-gradient(0deg,transparent 0 42px,#819fa326 43px 44px);
  mask-image:radial-gradient(ellipse at 96% 12%,#000 0%,transparent 57%);
}
#screen-advantage .compare {
  padding:clamp(13px,1.8vw,23px);background:#ffffffd6;border:1px solid #b4cbd1;border-radius:16px;box-shadow:0 20px 45px -29px #5477827a;
}
#screen-advantage .compare-row>*:nth-child(3) {box-shadow:inset 2px 0 #39a794;}
#screen-advantage .moat {border:1px solid #36576b;background:linear-gradient(145deg,#15374b,#091f31);box-shadow:0 22px 45px -25px #071a2b8f;}
#screen-advantage .moat dd {color:#bdd0dc;}

/* Solutions: product gallery, anchored by the unchanged authentic screen capture. */
#screen-people {
  background:radial-gradient(ellipse at 78% 54%,#1d4359 0%,#0d263a 42%,transparent 71%),linear-gradient(116deg,#081929 6%,#0d2435);
}
#screen-people::before {content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;background:repeating-linear-gradient(119deg,transparent 0 7vw,#85cce410 7.1vw 7.18vw,transparent 7.3vw 15vw);mask-image:linear-gradient(90deg,transparent 32%,#000 100%);}
#screen-people .people-visual {border-color:#94cad46b;background:linear-gradient(155deg,#25465bdb,#0b2133f7);box-shadow:0 32px 78px -36px #020915eb,inset 0 1px 0 #d1f2ff26;}
#screen-people .people-caption {color:#c1d6df;}
#screen-people .role-tabs {border:1px solid #82b2c754;background:#203f5275;}
#screen-people .role-tabs>button[aria-selected=true] {background:linear-gradient(145deg,#f8ffff,#d9edf0);color:#102c38;box-shadow:0 5px 15px #020f2373;}
#screen-people #role-description {color:#bdd2dc;}
#screen-people #role-points li {border-color:#a0bdc741;}

/* Robotics: the existing cart corridor recedes into a protected route line. */
#screen-robotics {background:#0a1828;}
#screen-robotics .robotics-backdrop::before {inset:0 0 13% 15%;filter:saturate(.8);}
#screen-robotics .robotics-shade {
  background:linear-gradient(90deg,#091b2c 2%,#0b1d2de8 31%,#0b1d2d43 83%,#0b1d2d25),
             linear-gradient(0deg,#091a2b 13%,#091a2bdb 27%,#091a2b00 71%);
}
#screen-robotics .robotics-loop {
  padding:clamp(13px,1.9vw,24px);border:1px solid #84bdc253;border-radius:16px;
  background:linear-gradient(145deg,#142f41f5,#0a2434eb);box-shadow:0 20px 52px -30px #020913;
}
#screen-robotics .robotics-loop li::before {background:#183746;}
#screen-robotics .robotics-loop p {color:#bdd1dc;}
#screen-robotics .robotics-foot {border-color:#91b1c44a;}

/* Film: a screening room, not a second image competing with the player. */
#screen-film {background:radial-gradient(72% 80% at 71% 47%,#13273a 0%,#07111b 52%,#050b13 100%);}
#screen-film .film-intro>p {color:#bccdd8;}
#screen-film .film-intro .film-context {color:#acc2cf;}
#screen-film .feature-film-wrap video {border-color:#8dafc65f;box-shadow:0 20px 80px -36px #000,0 0 0 5px #081523;}
#screen-film .film-chapters button {border-radius:0 0 5px 5px;}
#screen-film .film-chapters button:hover,#screen-film .film-chapters button[aria-current=true] {background:linear-gradient(180deg,#213d503b,#213d5000);}
#screen-film .film-chapters button::before {background:#7fa8bf60;}

/* Team: daylight editorial treatment; no artificial people or altered photos. */
#screen-leadership {
  background:radial-gradient(ellipse at 76% 21%,#e6eff0 8%,#f5f8f7 47%,transparent 72%),linear-gradient(136deg,#f8fbfa,#ddebed);
}
#screen-leadership .leader {padding:clamp(12px,1.4vw,20px);background:#ffffffab;border:1px solid #bfd1d5;border-radius:18px;box-shadow:0 18px 43px -29px #33546a85;}
#screen-leadership .leader-portrait {width:min(100%,330px,calc(100dvh - 437px));box-shadow:0 20px 30px -24px #132b3caa;border-radius:12px;}
#screen-leadership .leader-bio {border-color:#cbdadf;}

/* Careers: the existing workbench, warmed and framed behind the reading area. */
#screen-join {background:#112533;}
#screen-join .join-backdrop::before {background-position:72% 53%;filter:saturate(.8);}
#screen-join .join-shade {background:linear-gradient(90deg,#0a1a29 0%,#0a1a29de 40%,#0a1a2938 100%),linear-gradient(0deg,#142734d9 0%,transparent 55%);}
#screen-join .join-values {width:max-content;max-width:100%;color:#dbe9ec;padding-block:8px;border-block:1px solid #91bfce4d;}
#screen-join .interest-card {border:1px solid #c9dadc;box-shadow:0 24px 64px -21px #000b;}

/* Partner: warmer observation room behind the invitation; the real form stays paper. */
#screen-partner {background:#15242b;color:#eff8f8;color-scheme:dark;}
#screen-partner[aria-hidden="false"]::before {background-image:url('assets/art/partner-room.webp');background-position:36% 48%;filter:saturate(.75);opacity:.92}
#screen-partner::after {background:linear-gradient(90deg,#0e202bd6 0%,#0e202bb9 41%,#14252c72 88%),linear-gradient(0deg,#10232e 2%,#14273438 75%);}
#screen-partner .partner-copy .body-copy,#screen-partner .partner-steps span,#screen-partner .partner-note {color:#d2e1e7;}
#screen-partner .partner-steps li {border-color:#b1c8cd59;}
#screen-partner .partner-steps li::before {background:#edfaf5;color:#183d40;}
#screen-partner .partner-card {border-color:#d0e0df;box-shadow:0 20px 70px -24px #000d;}

@media (min-width:801px) and (max-height:765px) {
  #screen-problem .clock,#screen-robotics .robotics-loop {padding:14px 18px;}
  #screen-advantage .compare {padding:12px 16px;}
  #screen-leadership .leader {padding:12px;}
  #screen-leadership .leader-portrait {margin-bottom:12px;}
}

@media (max-width:800px) {
  #screen-problem::before,#screen-platform::before,#screen-partner::before,#screen-problem::after,#screen-platform::after,#screen-partner::after {bottom:auto;height:410px;}
  #screen-problem::before {background-position:70% 44%;}
  #screen-problem::after {background:linear-gradient(90deg,#0c1e30dc,#0c1e3078),linear-gradient(0deg,#0c1e30 0%,#0c1e3044 66%);}
  #screen-problem .clock {padding:17px 14px;margin-top:22px;}
  #screen-problem .clock ol::before {background:linear-gradient(180deg,#6ba5aa,#6ba5aa 55%,#e79180);}
  #screen-problem .clock .stat {font-size:40px;}
  #screen-platform::before {background-position:65% 52%;}
  #screen-platform::after {background:linear-gradient(90deg,#0a1a2ace,#0a1a2a8a),linear-gradient(0deg,#0a1a2a 0%,#0a1a2a10 75%);}
  #screen-platform .platform-copy,#screen-platform .platform-visual {position:relative;}
  #screen-value .value-shade {background:linear-gradient(0deg,#0b1928 0%,#0b1928ac 100%);}
  #screen-advantage .compare {padding:3px 13px 13px;}
  #screen-advantage .compare-row>*:nth-child(3) {padding-left:9px;}
  #screen-people .role-tabs>button {min-height:42px;font-size:13px;}
  #screen-people .people-visual {padding:10px;}
  #screen-robotics .robotics-backdrop::before {inset:0;background-position:70% 54%;}
  #screen-robotics .robotics-shade {background:linear-gradient(0deg,#0a1828 0%,#0a1828e3 29%,#0a182878 100%);}
  #screen-robotics .robotics-loop {margin-top:23px;padding:16px 15px 0;}
  #screen-film .feature-film-wrap video {box-shadow:0 13px 50px -34px #000,0 0 0 2px #081523;}
  #screen-leadership .leader {padding:11px;grid-template-columns:86px minmax(0,1fr);gap:0 10px;}
  #screen-leadership .leader-portrait {width:86px;max-width:100%;margin:0;}
  #screen-join .join-shade {background:linear-gradient(0deg,#112533 0%,#112533e3 28%,#0b1a2b86 100%),linear-gradient(90deg,#0a1a2bb5,#0a1a2b3e);}
  #screen-partner::before {background-position:48% 55%;}
  #screen-partner::after {background:linear-gradient(0deg,#15242b 0%,#15242bba 52%,#15242b89 100%),linear-gradient(90deg,#15242bd6,#15242b56);}
}
@media (max-width:390px) {
  #screen-people .role-tabs>button {flex:0 0 auto;padding-inline:7px;}
}
@media (prefers-contrast:more) {
  #screen-problem .clock,#screen-platform .platform-visual,#screen-value .value-card,#screen-robotics .robotics-loop {background:#0e2636;border-color:#b4d9e1;}
  #screen-advantage .compare,#screen-leadership .leader {background:white;}
}
@media (forced-colors:active) {
  #screen-problem::before,#screen-platform::before,#screen-advantage::before,#screen-people::before,#screen-partner::before {display:none;}
}

/* A dark observation window around (not on) the real Solutions capture. */
#screen-people::before {
  background:
    linear-gradient(90deg,#0a1e2f 3%,#0a1e2fb2 42%,#0a1e2f24 85%),
    repeating-linear-gradient(119deg,transparent 0 7vw,#85cce410 7.1vw 7.18vw,transparent 7.3vw 15vw),
    var(--octavia-solutions-art, none) 76% 47%/cover no-repeat;
  opacity:.72;mask-image:linear-gradient(90deg,transparent 24%,#000 92%);
}
#screen-people[aria-hidden="false"] {--octavia-solutions-art:url('assets/art/solutions-glass.webp');}
/* A separate logistics runway distinguishes the vision from the Value corridor. */
.media-warm #screen-robotics[aria-hidden="false"] .robotics-backdrop::before {
  background-image:url('assets/art/robotics-runway.webp'),url('assets/media/robotics-corridor.webp?v=1');
}
@media(max-width:800px) {
  #screen-people::before {bottom:auto;height:460px;mask-image:linear-gradient(0deg,transparent 0%,#000 85%);opacity:.5;}
  #screen-people::before {background-position:center,center,63% 48%;}
  .media-warm #screen-robotics[aria-hidden="false"] .robotics-backdrop::before {background-image:url('assets/art/robotics-runway.webp'),url('assets/media/robotics-corridor-960.webp?v=1');}
}

/* Founder cards on desktop. Both cards are the same height and their rows line up.
   Default: photo beside the name with the bio underneath, which fits short and narrow windows. */
@media (min-width:801px) {
  #screen-leadership {padding-block:20px;}
  #screen-leadership .leader-list {grid-template-rows:repeat(2,auto);row-gap:0;align-items:stretch;}
  #screen-leadership .leader {display:grid;grid-row:span 2;grid-template-rows:subgrid;grid-template-columns:clamp(72px,7vw,96px) minmax(0,1fr);column-gap:14px;row-gap:0;align-content:start;}
  #screen-leadership .leader-portrait {grid-column:1;grid-row:1;width:100%;min-width:0;margin:0;align-self:center;}
  #screen-leadership .leader-head {grid-column:2;grid-row:1;align-self:center;}
  #screen-leadership .leader h3 {font-size:20px;}
  #screen-leadership .leader-bio {grid-column:1/-1;grid-row:2;max-width:none;font-size:14px;line-height:1.42;}
}
/* Small landscape tablets: give the cards more of the row so the bios take fewer lines. */
@media (min-width:960px) and (max-width:1100px) {
  #screen-leadership {grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr);}
}
/* Roomy windows: photo on top. The cards are a fixed width so the bios always wrap the same way,
   and the photo is sized from the window height so both bios stay above the footer:
   --lead-chrome is the header, footer and screen padding; --lead-text is everything in a card
   except the photo, plus one spare line. Re-measure --lead-text if a bio changes length. */
@media (min-width:1320px) and (min-height:760px) {
  #screen-leadership {grid-template-columns:minmax(0,1fr) auto;--lead-chrome:172px;--lead-text:416px;}
  #screen-leadership .leader-list {grid-template-columns:repeat(2,360px);grid-template-rows:repeat(3,auto);}
  #screen-leadership .leader {grid-row:span 3;grid-template-columns:minmax(0,1fr);padding:20px;}
  #screen-leadership .leader-portrait {width:min(100%,calc(100dvh / var(--z) - var(--lead-chrome) - var(--lead-text)));margin:0 0 20px;align-self:start;}
  #screen-leadership .leader-head {grid-column:1;grid-row:2;align-self:start;}
  #screen-leadership .leader h3 {font-size:clamp(20px,1.6vw,26px);}
  #screen-leadership .leader-bio {grid-column:1;grid-row:3;}
}
@media (min-width:1320px) and (min-height:760px) and (max-height:900px) {
  #screen-leadership {--lead-chrome:160px;}
}
@media (min-width:1320px) and (min-height:930px) {
  #screen-leadership {--lead-text:458px;}
  #screen-leadership .leader-bio {font-size:15px;line-height:1.45;}
}
