/* ==========================================================================
   Screens: the frame richdemoors.com and George's site use (Rich, 2026-10-22).
   Every section is one screen on a desktop window, each over its own
   photograph, the menus drop down, and the closing panel sits in the footer.
   Loaded after app.css so it wins without !important wherever it can.
   ========================================================================== */

:root { --hh: 66px; }
html { scroll-padding-top: var(--hh); }

/* ---------- Header: always there, one height, menus that drop down ------- */
.site-header,
.site-header.is-stuck { background: rgba(7, 15, 24, .9); }
.site-header.is-hidden { transform: none !important; }
.header-inner,
.site-header.is-stuck .header-inner { padding: 10px 28px; max-width: 1440px; }
.site-header.is-stuck .brand-lockup img.mark { width: 34px; }

.nav-desktop { gap: 2px; }
.nav-desktop .navgroup { position: relative; }
.nav-desktop a.navlink { padding: 10px 11px; white-space: nowrap; }
.nav-desktop a.navlink::after { left: 11px; right: auto; max-width: calc(100% - 22px); }
.nav-desktop a.has-menu::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg); margin-right: 8px; opacity: .65;
}
.navmenu {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 120;
  min-width: 260px; padding: 10px;
  background: rgba(7, 15, 24, .97);
  border: 1px solid rgba(212, 160, 23, .3); border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .55);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s linear .18s;
}
.navmenu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.navgroup:hover .navmenu,
.navgroup:focus-within .navmenu,
.navgroup.is-open .navmenu {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s;
}
.navmenu a {
  display: block; padding: 10px 16px; border-radius: 999px;
  color: var(--text-soft); font-size: 14.5px; font-weight: 500; line-height: 1.3; white-space: nowrap;
}
.navmenu a:hover, .navmenu a:focus-visible { background: rgba(212, 160, 23, .14); color: var(--text); }
.navmenu a small { display: block; font-size: 12px; color: var(--text-dim); font-weight: 400; margin-top: 2px; }
.nav-desktop a.navlink.signin { color: var(--text-soft); }
.nav-desktop .nav-cta { margin-left: 10px; }
.nav-mobile a.sub {
  padding: 10px 0 10px 18px; font-size: 13px; font-weight: 500;
  text-transform: none; letter-spacing: .02em; color: var(--text-soft);
}

/* ---------- The photograph behind a section ------------------------------ */
main > section, .site-footer { position: relative; isolation: isolate; }
.scr-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--navy-deep); }
.scr-bg i {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity .7s var(--ease);
}
.scr-bg i.is-in { opacity: 1; }
.scr-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 15, 24, .9) 0%, rgba(7, 15, 24, .74) 48%, rgba(7, 15, 24, .6) 100%),
    linear-gradient(0deg, rgba(7, 15, 24, .75) 0%, rgba(7, 15, 24, 0) 45%);
}
.scr-bg.is-center::after {
  background:
    radial-gradient(ellipse at center, rgba(7, 15, 24, .82) 0%, rgba(7, 15, 24, .7) 55%, rgba(7, 15, 24, .6) 100%),
    linear-gradient(0deg, rgba(7, 15, 24, .7) 0%, rgba(7, 15, 24, 0) 45%);
}
.scr-credit {
  position: absolute; right: 16px; bottom: 8px; z-index: 2; margin: 0;
  font-size: 10.5px; line-height: 1.3; color: rgba(231, 236, 243, .5); text-align: right;
  max-width: 60%;
}
.scr-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.scr-credit a:hover { color: var(--text); }

/* The cream bands were too bright to read on (Rich, 2026-10-09): every band
   is dark now, over its own photograph. */
main > section.band-navy, main > section.band-deep,
main > section.feature-block, main > section.final-cta { background: var(--navy-deep); }

/* Cards over a photograph are a little more solid so words stay readable. */
main > section .card, main > section .bento > *, main > section .grid-3 > *,
main > section .grid-2 > *, main > section .faq-item, main > section details {
  background-color: rgba(10, 21, 34, .8);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
main > section .faq-item { padding-left: 26px; padding-right: 26px; }
main > section .grid-2 > .reveal:not(.card) { padding: clamp(22px, 3vw, 38px); }

/* ---------- One screen per section on a desktop window ------------------- */
@media (min-width: 861px) and (orientation: landscape) {
  main > section {
    min-height: calc(100vh - var(--hh));
    min-height: calc(100svh - var(--hh));
    display: flex; flex-direction: column; justify-content: center;
    padding-top: clamp(30px, 6vh, 72px); padding-bottom: clamp(30px, 6vh, 72px);
  }
  main > section > .wrap, main > section > .story-stage { width: 100%; }
  main > section.hero { padding-top: 0; padding-bottom: 0; }
  main > section.is-long { justify-content: flex-start; }

  /* The footer and the closing panel together are the last screen. */
  .site-footer.has-cta {
    min-height: calc(100vh - var(--hh));
    min-height: calc(100svh - var(--hh));
    display: flex; flex-direction: column; justify-content: space-between;
    padding-top: clamp(36px, 7vh, 84px);
  }
}

/* ---------- The closing panel, inside the footer ------------------------- */
.site-footer { background: var(--navy-deep); }
.foot-cta { padding: 8px 0 34px; }
.foot-cta .wrap {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; align-items: center;
  text-align: left;
}
.foot-cta .shield { display: none; }
.foot-cta h2 { margin: 0; max-width: 18ch; }
.foot-cta .rule.center { margin-left: 0; margin-right: auto; }
.foot-cta .lead.center { margin-left: 0; text-align: left; }
.foot-cta .btn-row.center { justify-content: flex-start; }
.foot-card {
  background: rgba(10, 21, 34, .78); border: 1px solid rgba(212, 160, 23, .28); border-radius: 22px;
  padding: 28px 30px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
}
.foot-card .eyebrow { margin-bottom: 10px; }
.foot-card h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; margin: 0 0 12px; color: var(--text); }
.foot-card p { color: var(--text-soft); margin: 0 0 14px; font-size: 15.5px; line-height: 1.6; }
.foot-card ul { list-style: none; margin: 0 0 18px; padding: 0; }
.foot-card li { position: relative; padding: 7px 0 7px 22px; color: var(--text); font-size: 15px; line-height: 1.45; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.foot-card li:last-child { border-bottom: 0; }
.foot-card li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.foot-card a.mail { color: var(--gold-bright); font-weight: 600; }
.site-footer .footer-grid, .site-footer .footer-legal, .site-footer .footer-bottom, .site-footer .footer-promise { position: relative; }

/* ---------- The Tuesday story as one screen with four stops -------------- */
@media (min-width: 861px) and (orientation: landscape) {
  html.fx .story--tabs .story-head { padding: 0 24px 22px; }
  html.fx .story--tabs .story-head .lead, html.fx .story--tabs .story-head p { margin-bottom: 0; }
  html.fx .story--tabs .story-stage { min-height: 0; padding: 0; overflow: visible; }
  html.fx .story--tabs .story-stage::before { display: none; }
  html.fx .story--tabs .story-scroll { display: none; }
  html.fx .story--tabs .story-tick { cursor: pointer; }
  html.fx .story--tabs .story-tick:hover { opacity: .75; }
  html.fx .story--tabs .story-tick.is-on { opacity: 1; }
  html.fx .story--tabs .story-screen,
  html.fx .story--tabs .story-cap {
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s linear .45s;
  }
  html.fx .story--tabs .story-screen.is-on,
  html.fx .story--tabs .story-cap.is-on {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s;
  }
}

/* ---------- Phones and narrow windows ------------------------------------ */
@media (max-width: 860px), (orientation: portrait) {
  .foot-cta .wrap { grid-template-columns: 1fr; gap: 28px; }
  .scr-credit { position: static; max-width: none; padding: 10px 16px 0; text-align: left; }
}

.scr-credit.top { top: 10px; bottom: auto; }

/* ---------- Home page pieces that had to fit one screen ------------------ */
main > section > .ticker { position: absolute; top: 0; left: 0; right: 0; width: 100%; }
.founder-card .quote-block p { color: var(--ink); }
.founder-card .quote-attr { color: var(--gold-deep); }
@media (min-width: 861px) and (orientation: landscape) {
  .bento { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .bento > *, .bento > .b-wide, .bento > .b-hero { grid-column: span 1; }
  html.fx .story--tabs .story-inner { grid-template-columns: 250px minmax(0, 1fr); gap: 44px; max-width: 1240px; }
  html.fx .story--tabs .story-screens { max-width: 900px; }
  .site-footer.has-cta .footer-grid { gap: 28px 40px; }
  .site-footer.has-cta .footer-brand img { width: 180px; height: auto; }
  .site-footer.has-cta .footer-promise { margin: 14px 0 8px; }
}

/* The gold headline was cut into words for its entrance, and the gradient
   does not carry into the pieces, so it showed nothing at all. */
.grad-gold .w-mask, .grad-gold .w-in { -webkit-text-fill-color: var(--gold-bright); color: var(--gold-bright); }

@media (min-width: 861px) and (orientation: landscape) {
  main > section.hero { min-height: calc(100vh - var(--hh)); min-height: calc(100svh - var(--hh)); }
  html.fx .story--tabs .story-inner { grid-template-columns: 300px minmax(0, 1fr); }
  html.fx .story--tabs .story-caps { display: none; }
  html.fx .story--tabs .story-tick .story-cap {
    display: none; opacity: 1; visibility: visible; transform: none;
    margin-top: 10px; font-size: 14.5px; line-height: 1.6; max-width: none;
  }
  html.fx .story--tabs .story-tick.is-on .story-cap { display: block; }
  html.fx .story--tabs .story-tick .story-cap b { display: none; }
  html.fx .story--tabs .story-screens { max-width: 980px; }
}

/* ---------- Features: words beside the picture, one screen each ---------- */
@media (min-width: 861px) and (orientation: landscape) {
  main > section.feature-block {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    grid-template-areas: "head shot" "body shot";
    column-gap: 56px; row-gap: 20px; align-content: center; align-items: start;
    padding-left: max(32px, calc((100vw - 1340px) / 2)); padding-right: max(32px, calc((100vw - 1340px) / 2));
  }
  main > section.feature-block + .feature-block { border-top: 0; }
  main > section#email, main > section#pipeline, main > section#content {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    grid-template-areas: "shot head" "shot body";
  }
  main > section#website { grid-template-columns: 1fr 1fr; grid-template-areas: "head head" "body body"; }
  .feature-block > .head-flourish { grid-area: head; margin: 0; }
  .feature-block > .head-flourish .lead { margin-top: 12px; }
  .feature-block > .feature-shot { grid-area: shot; align-self: center; margin: 0; }
  .feature-block > .feature-grid { grid-area: body; grid-template-columns: 1fr; gap: 14px; margin: 0; }
  main > section#website > .feature-grid { grid-template-columns: 1.3fr 1fr; gap: 40px; }
  .feature-block .feature-aside { order: 0 !important; }
  .feature-block .feature-body p { margin-bottom: 10px; }
}

@media (min-width: 861px) and (orientation: landscape) {
  main > section.section, main > section.section-lg, main > section.section-sm, main > section.hero-page, main > section.feature-block {
    padding-top: clamp(30px, 6vh, 72px); padding-bottom: clamp(30px, 6vh, 72px);
  }
  main > section.hero-page { padding-top: clamp(40px, 8vh, 96px); }
  #steps > .wrap {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-areas: "head shot" "flow shot"; gap: 26px 56px; align-items: center;
  }
  #steps .head-flourish { grid-area: head; text-align: left; margin: 0; }
  #steps .head-flourish .rule.center { margin-left: 0; }
  #steps .flow-steps { grid-area: flow; grid-template-columns: 1fr 1fr; gap: 22px 26px; margin: 0; }
  #steps .flow-steps::before, #steps .flow-steps::after { display: none; }
  #steps .wrap > .reveal.d2 { grid-area: shot; margin: 0; }
}

@media (min-width: 861px) and (orientation: landscape) { main > section.is-plain { min-height: 0; } }
@media (min-width: 861px) and (orientation: landscape) {
  html.fx .story--tabs .story-inner { max-width: calc(1240px / var(--z, 1)); }
  html.fx .story--tabs .story-screens { max-width: calc(980px / var(--z, 1)); }
}

/* The full menu needs about 1180px; below that the menu button takes over. */
@media (min-width: 901px) and (max-width: 1199px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
}

/* The product tour is already at its smallest size; tighter padding keeps it on one screen. */
@media (min-width: 861px) and (orientation: landscape) {
  main > section#tour { padding-top: clamp(14px, 3vh, 40px); padding-bottom: clamp(14px, 3vh, 40px); }
  main > section#tour .tour-grid { grid-template-columns: .8fr 1.2fr; gap: 32px; }
}

/* Short, narrow desktop windows keep the two-column one-screen layouts. */
@media (min-width: 861px) and (max-width: 1080px) and (orientation: landscape) {
  .hero-split { grid-template-columns: 1fr 1fr; gap: 32px; }
  .story-screens { display: grid; }
  .story-caps { display: grid; }
  .story-screen, .story-cap { margin-bottom: 0; }
  .story-rail { display: block; }
  .story-rail::before { display: block; }
  .story-tick { padding: 0 0 30px 34px; opacity: .34; }
  .story-tick.is-on { opacity: 1; }
  .story-tick:last-child { padding-bottom: 0; }
}

@media (min-width: 861px) and (max-width: 900px) and (orientation: landscape) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
