/* ytadvisors.com 3D page headers (design system v3.3, #1705). Load after v4.css and dark-v1.css.
   Every page header matches the homepage header (Yomi 2026-12-04: "compact the height of the header so it's the same size as the home page's header"):
   - the same height: 834px including the 64px nav, so 770px here;
   - text top-aligned on the left, 40px under the nav;
   - the scene in the same box as the homepage device, 607 x 498 on the right, 89px into the header;
   - the act tabs under the box, the caption inside the box's lower-left corner;
   - the blue 40px grid over the whole header, the grey lower half rising in the arch. */
.d3 .hero.hero3d { position: relative; overflow: hidden; min-height: 770px; display: flex !important; flex-direction: column; justify-content: flex-start;
  padding-top: 33px !important; padding-bottom: 150px !important; background-image: none !important; }
.d3 .hero.hero3d::after { z-index: 2; }
.d3 .hero.hero3d::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(rgba(89,180,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(89,180,255,.06) 1px, transparent 1px);
  background-size: 40px 40px; background-position: center top; }
.d3 .hero.hero3d > .hl, .d3 .hero.hero3d > .hr { position: relative; z-index: 2; }
.d3 .hero.hero3d h1 { max-width: min(540px, 46vw); }
.d3 .hero.hero3d .lede { max-width: min(500px, 44vw); }

/* the scene box: where the homepage device sits */
.d3 .hero.hero3d > .stage3d { position: absolute !important; z-index: 1; top: 83px; right: calc(max(24px, 50% - 600px) + 24px); left: auto; bottom: auto;
  width: min(620px, 47vw); height: 509px; max-width: none !important; margin: 0 !important; padding: 0 !important; }
.stage3d .cv { position: absolute; inset: 0; }
.stage3d canvas { display: block; width: 100%; height: 100%; }
.stage3d .lbls { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.stage3d .lb { position: absolute; left: 0; top: 0; text-align: center; white-space: nowrap; font: 600 12px/1.3 Inter, system-ui, sans-serif; color: #eef4fb;
  text-shadow: 0 1px 6px #070b12, 0 0 2px #070b12; transition: opacity .35s; will-change: transform; }
.stage3d .lb small { display: block; font: 500 11px/1.3 "JetBrains Mono", ui-monospace, Menlo, monospace; color: #8ea3bd; }
.stage3d .lb small:empty { display: none; }
.stage3d .lb.side { text-align: left; } .stage3d .lb .st { font: 500 11px "JetBrains Mono", ui-monospace, Menlo, monospace; white-space: pre; }
.stage3d .lb.ok .st, .stage3d .lb.ok small { color: #4fd08f; } .stage3d .lb.warn .st, .stage3d .lb.warn small { color: #f2c063; }

/* act tabs under the box, caption in the box's lower-left corner, sample tag under the box on the right (as the homepage's render note) */
.stage3d .acts3d { position: absolute; z-index: 3; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); display: flex; gap: 8px; }
.stage3d .acts3d button { font: 500 12px "JetBrains Mono", ui-monospace, Menlo, monospace; color: #8ea3bd; background: rgba(13,21,34,.8); border: 1px solid #1b2a3d;
  border-radius: 999px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.stage3d .acts3d button.on { color: #eef4fb; border-color: rgba(89,180,255,.7); box-shadow: 0 0 12px rgba(89,180,255,.25); }
.stage3d .acts3d button:focus-visible { outline: 3px solid #59b4ff; outline-offset: 2px; }
.stage3d .cap3d { position: absolute; z-index: 3; left: 0; bottom: 0; width: min(290px, 60%);
  background: rgba(10,17,28,.9); border: 1px solid #1b2a3d; border-radius: 12px; padding: 10px 12px; }
.stage3d .cap3d .k { font: 500 11px "JetBrains Mono", ui-monospace, Menlo, monospace; letter-spacing: .08em; color: #59b4ff; }
.stage3d .cap3d b { display: block; color: #eef4fb; font-size: 14.5px; margin: 3px 0; }
.stage3d .cap3d p { margin: 0; color: #c4d3e6; font-size: 13px; line-height: 1.4; }
.stage3d .tag3d { position: absolute; z-index: 3; right: 0; top: 100%; margin-top: 52px; font: 500 11px "JetBrains Mono", ui-monospace, Menlo, monospace;
  letter-spacing: .08em; color: #8ea3bd; white-space: nowrap; }
.stage3d.no3d { display: none; }

@media (max-width: 900px) {
  .d3 .hero.hero3d { min-height: 0; padding-bottom: 72px !important; }
  .d3 .hero.hero3d h1, .d3 .hero.hero3d .lede { max-width: none; }
  .d3 .hero.hero3d > .stage3d { position: relative !important; top: auto; right: auto; width: auto; height: auto; order: 9; margin-top: 16px !important;
    display: flex; flex-direction: column; gap: 10px; }
  .stage3d .cv { position: relative; height: 384px; }
  .d3 .hero.hero3d.compact > .stage3d .cv { height: 240px; }
  .stage3d .acts3d { position: static; transform: none; justify-content: center; flex-wrap: wrap; }
  .stage3d .cap3d { position: static; width: auto; }
  .stage3d .tag3d { position: static; margin: 0; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .stage3d .lb { transition: none; } }

/* honest status line under the lede (phillip-claude 91164) */
.hero .status-note { margin: 0 0 4px; font: 500 12px/1.5 "JetBrains Mono", ui-monospace, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; color: #f2c063; }
