/* Homepage hero: the indigo stage. One real product, one lead, one line. */
.site-header { position: fixed; top: 0; left: 0; right: 0; background: transparent; transition: background-color .3s ease, border-color .3s ease; }
.site-header.is-scrolled { background: var(--ground); }
.site-header:not(.is-scrolled) .brand img { content: url("logos/bry3d-wordmark-on-side.svg"); }
.site-header:not(.is-scrolled) .nav-links > li > a,
.site-header:not(.is-scrolled) .nav-dropdown-toggle { color: var(--side-ink-muted); }
.site-header:not(.is-scrolled) .nav-links > li > a:hover,
.site-header:not(.is-scrolled) .nav-dropdown-toggle:hover { background: var(--side-wash); color: var(--side-ink); }
.site-header:not(.is-scrolled) .nav-login { background: rgba(38, 53, 126, 0.35); color: var(--side-ink); border-color: var(--side-label); }
.site-header:not(.is-scrolled) .nav-login:hover { background: var(--side-wash); }
.site-header:not(.is-scrolled) .nav-burger { color: var(--side-ink); }
.site-header:not(.is-scrolled) :focus-visible { outline-color: var(--side-ink); }

.stage {
    position: relative; overflow: hidden;
    background: var(--side); color: var(--side-ink-muted);
    min-height: max(700px, 100svh);
    display: grid;
    grid-template-columns: 36% 8% 56%;
    grid-template-rows: minmax(0, 1fr) auto;
}
/* drawing grid as the stage's texture: dash-dot lines like the plan grid */
.stage-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(166, 174, 214, 0.09) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(166, 174, 214, 0.09) 1px, transparent 1px);
    background-size: 96px 96px;
    background-position: -1px -1px;
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 46%, transparent 62%);
    mask-image: linear-gradient(90deg, #000 0, #000 46%, transparent 62%);
}
.stage-text { position: relative; z-index: 2; grid-column: 1 / 3; grid-row: 1; align-self: center; padding: calc(var(--header-h) + 56px) 48px 48px max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); }
.stage-title { font-size: clamp(40px, min(5.2vw, 8.2vh), 80px); font-weight: 600; line-height: 1.02; letter-spacing: -0.038em; color: var(--side-ink); text-wrap: balance; }
.stage-title span { display: block; }
.stage-title span + span { color: var(--side-label); }
.stage-lead { margin-top: 28px; max-width: 44ch; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--side-ink-muted); }
.stage .actions { margin-top: 36px; }
.stage :focus-visible { outline-color: var(--side-ink); }

.stage-shot { position: relative; z-index: 0; grid-column: 2 / 4; grid-row: 1 / 3; margin: 0; background: var(--side); }
.stage-shot { overflow: hidden; margin-left: -2px; }
/* transition pieces: a shade under the floating header, a soft left edge into the indigo, and a fade into the indigo at the bottom */
.stage-shot::before, .stage-shot::after { content: ""; position: absolute; z-index: 2; pointer-events: none; }
.stage-shot::before { inset: 0; background:
    linear-gradient(180deg, rgba(38, 53, 126, 0.55) 0, rgba(38, 53, 126, 0) 150px),
    linear-gradient(90deg,
        var(--side) 0,
        rgba(38, 53, 126, 0.97) 40px,
        rgba(38, 53, 126, 0.88) 80px,
        rgba(38, 53, 126, 0.72) 120px,
        rgba(38, 53, 126, 0.52) 160px,
        rgba(38, 53, 126, 0.32) 200px,
        rgba(38, 53, 126, 0.16) 240px,
        rgba(38, 53, 126, 0.05) 280px,
        rgba(38, 53, 126, 0) 320px); }
.stage-shot::after { left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(180deg, rgba(38, 53, 126, 0) 0, rgba(38, 53, 126, 0.55) 55%, var(--side) 100%); }
.stage-shot img {
    position: absolute; top: 0; bottom: 0; left: 3px; right: 0; width: calc(100% - 3px); height: 100%;
    object-fit: cover; object-position: 35% 60%;
    opacity: 0; filter: blur(6px);
    transition: opacity 1.8s cubic-bezier(.4, 0, .2, 1), filter 1.6s cubic-bezier(.4, 0, .2, 1);
}
.stage-shot img.is-in { opacity: 1; filter: none; }
.stage-shot figcaption { position: absolute; right: 20px; top: calc(var(--header-h) + 16px); z-index: 3; display: flex; align-items: center; gap: 8px; }
.stage-shot figcaption > span { padding: 5px 9px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.stage-pause { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); color: var(--ink); cursor: pointer; }
.stage-pause svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stage-pause .i-play { display: none; fill: currentColor; }
.stage-pause[aria-pressed="true"] .i-pause { display: none; }
.stage-pause[aria-pressed="true"] .i-play { display: block; }

/* the one lead: where the configuration lands */
.lead-card {
    position: absolute; z-index: 4;
    right: 24px; bottom: 150px;
    width: 272px; background: var(--surface); color: var(--ink);
    border: 1px solid var(--border); border-radius: 8px;
    box-shadow: 0 24px 48px -24px rgba(10, 16, 48, 0.55);
}
.lc-head { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: var(--side); color: var(--side-ink); }
.lc-head b { font-size: 13.5px; font-weight: 600; }
.lc-src { margin-left: auto; font-size: 12px; color: var(--side-ink-muted); }
.lc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-on-dark); box-shadow: 0 0 0 3px rgba(143, 160, 247, 0.25); }
.lc-body { display: grid; gap: 2px; padding: 14px 14px 12px; }
.lc-name { font-size: 15px; font-weight: 600; }
.lc-prod { font-size: 13px; color: var(--muted); }
.lc-choices { margin-top: 6px; padding: 6px 8px; border-radius: 4px; font-size: 13.5px; font-weight: 500; color: var(--ink); background: transparent; }
.lc-body, .lc-foot b { transition: opacity .35s ease, transform .35s ease; }
.lead-card.is-swapping .lc-choices, .lead-card.is-swapping .lc-foot b { opacity: 0; transform: translateY(4px); }
.lc-choices { transition: opacity .35s ease, transform .35s ease; }
.lc-choices.is-new, .lc-foot b.is-new { animation: lcwash 1.6s var(--ease-out); }
@keyframes lcwash { from { background-color: var(--plan-select); } to { background-color: transparent; } }
.lc-foot { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px; border-top: 1px solid var(--hairline); background: var(--ground); font-size: 12.5px; color: var(--muted); }
.lc-foot b { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); padding: 0 4px; border-radius: 4px; }
.lead-card > .lc-head { border-radius: 8px 8px 0 0; }
.lead-card > .lc-foot { border-radius: 0 0 8px 8px; }

/* the line */
.stage-line { position: relative; z-index: 2; grid-column: 1 / 3; grid-row: 2; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 48px 48px max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); border-top: 1px solid var(--side-label); }
.stage-line li { position: relative; }
.stage-line li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--side-ink); }
.stage-line a { display: grid; gap: 4px; padding: 14px 12px 0 0; text-decoration: none; }
.stage-line i { font: 500 11px/1.2 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--side-label); }
.stage-line b { font-size: 14px; font-weight: 600; color: var(--side-ink); }
.stage-line a:hover b { text-decoration: underline; text-underline-offset: 3px; }

.stage { padding-bottom: 64px; }
.fit { margin-top: 0; padding-top: 0; }
.fit .fit-grid { align-items: start; }
.fit .fit-card { position: relative; z-index: 3; margin-top: -64px; box-shadow: 0 24px 48px -28px rgba(10, 16, 48, 0.45); }
.fit .fit-text { padding-top: 56px; }

@media (max-width: 1100px) {
    .stage-text { padding-right: 48px; }
    .stage-line { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; border-top: 0; }
    .stage-line li { border-top: 1px solid var(--side-label); }
}
@media (max-width: 960px) {
    .stage { padding-bottom: 0; }
    .fit .fit-card { margin-top: 0; }
    .fit .fit-text { padding-top: 48px; }
    .fit { padding-top: 0; }
}
@media (max-width: 860px) {
    .stage-shot { margin-left: 0; }
    .stage-shot::before { background: linear-gradient(180deg, var(--side) 0, rgba(38, 53, 126, 0) 90px); }
    .stage-shot::after { height: 40%; }
    .stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; min-height: 0; }
    .stage-text { padding: calc(var(--header-h) + 36px) var(--gutter) 32px; }
    .stage-text { grid-column: 1; }
    .stage-shot { grid-column: 1; grid-row: 2; aspect-ratio: 1 / 1; }
    .stage-shot img { object-position: 32% 80%; }
    .stage-shot figcaption { top: 14px; right: 14px; }
    .lead-card { position: relative; grid-row: 3; left: auto; right: auto; bottom: auto; top: auto; transform: none; margin: -40px var(--gutter) 40px; width: auto; max-width: 340px; }
        .stage-line { grid-row: 4; grid-column: 1; margin: 16px var(--gutter) 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .stage-grid { -webkit-mask-image: linear-gradient(#000 0, #000 30%, transparent 45%); mask-image: linear-gradient(#000 0, #000 30%, transparent 45%); }
}
@media (prefers-reduced-motion: reduce) {
    .stage-shot img, .stage-shot img.is-in { filter: none; transition: none; }
}
