/* Proposal B — "the deck".
   Every page is one screen, exactly the frame of the coming-soon page: the
   tilted slab behind, the mark and the statement in the middle, the b9SolutionS
   byline pinned bottom right. Moving between pages feels like advancing a
   slide. A slide is authored to fit one screen, so the copy has to earn its
   place — but when it does not fit, the page scrolls. Clipping loses the end of
   a slide with nothing on screen to say so, which is worse than a scrollbar. */

:root{
  --paper:#080D14;
  --ink:#E6ECF5;
  --ink-2:#B9C6D8;
  --muted:#8E9DB2;
  --accent:#6BA5F7;
  --rule:rgba(110,165,247,.22);
  /* The info surfaces are light: dark ink on near-white, floating on the dark
     ground. Only the statement on the left stays light-on-dark. */
  --card:#F2F6FB;
  --card-ink:#0B1220;
  --card-ink-2:#33415A;
  --card-muted:#5A6A80;
  --card-edge:rgba(11,18,32,.14);
  --card-rule:rgba(11,18,32,.10);
  --sans:"IBM Plex Sans","Segoe UI",system-ui,-apple-system,"Helvetica Neue",Arial,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--sans);
  -webkit-font-smoothing:antialiased;
}

/* ── the slab, unchanged from the page you liked ─────────── */
.backdrop{position:fixed;inset:0;overflow:hidden;z-index:0}
.backdrop img{
  position:absolute;top:50%;left:50%;
  width:125vmax;height:auto;max-width:none;
  transform:translate(-50%,-50%) rotate(-30deg);
  opacity:.78;
  filter:saturate(.98) contrast(.97);
  box-shadow:0 40px 120px rgba(0,0,0,.6);
  user-select:none;pointer-events:none;
}
.backdrop::after{
  content:"";position:absolute;inset:0;
  /* The light card carries its own contrast now, so the slab only needs
     darkening where the white statement sits: the left edge and the two
     corners with the mark and the byline. Everywhere else it shows through. */
  background:
    radial-gradient(66% 88% at 0% 46%, rgba(8,13,20,.90) 0%, rgba(8,13,20,.58) 30%, rgba(8,13,20,.14) 62%, rgba(8,13,20,0) 84%),
    radial-gradient(46% 42% at 100% 100%, rgba(8,13,20,.72) 0%, rgba(8,13,20,.34) 40%, rgba(8,13,20,0) 80%),
    /* Two narrow bands, so the nav and the bottom rail keep their contrast
       without dimming the picture in the middle. */
    linear-gradient(to bottom, rgba(8,13,20,.84) 0%, rgba(8,13,20,.34) 7%, rgba(8,13,20,0) 15%),
    linear-gradient(to top,    rgba(8,13,20,.82) 0%, rgba(8,13,20,.30) 6%, rgba(8,13,20,0) 14%),
    linear-gradient(to bottom, rgba(8,13,20,.20), rgba(8,13,20,.20));
}

/* ── the frame ───────────────────────────────────────────── */
main{
  position:relative;z-index:1;min-height:100vh;
  display:flex;flex-direction:column;justify-content:space-between;
  padding:clamp(1.4rem,4.4vh,3.2rem) clamp(1.5rem,5.5vw,5rem);
  text-shadow:0 2px 28px rgba(8,13,20,.85);
}

.top{display:flex;align-items:baseline;gap:clamp(1rem,3vw,2.4rem);flex-wrap:wrap}
.top nav a,.top .mark{text-shadow:0 1px 14px rgba(8,13,20,.95),0 0 3px rgba(8,13,20,.8)}
.top .mark{font-weight:600;font-size:1.05rem;letter-spacing:-.02em;color:var(--ink);text-decoration:none}
.top nav{margin-left:auto;display:flex;gap:clamp(.9rem,2.4vw,1.9rem);flex-wrap:wrap}
.top nav a{font-size:.92rem;color:var(--ink-2);text-decoration:none;padding-bottom:2px;
  border-bottom:1px solid transparent}
.top nav a:hover{color:var(--ink)}
.top nav a[aria-current]{color:var(--accent);border-bottom-color:var(--accent)}

/* ── the middle: the only thing that changes page to page ── */
.slide{
  flex:1;display:grid;align-content:center;
  grid-template-columns:1fr;gap:clamp(1.6rem,4vw,3.4rem);
  padding:clamp(1.4rem,4vh,3rem) 0;
}
@media (min-width:900px){
  .slide.split{grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-items:center}
}

.kicker{
  margin:0 0 clamp(.7rem,1.8vh,1.2rem);
  font-family:var(--mono);font-size:clamp(.68rem,1.3vw,.78rem);
  letter-spacing:.18em;text-transform:uppercase;color:var(--accent);
}
h1{
  margin:0;font-weight:600;letter-spacing:-.035em;line-height:1.02;
  font-size:clamp(2.1rem,6.4vw,4.6rem);max-width:15ch;
}
h1.big{font-size:clamp(2.6rem,9.5vw,6.5rem);max-width:none}
.lede{
  margin:clamp(1rem,2.6vh,1.8rem) 0 0;max-width:46ch;
  font-size:clamp(.98rem,1.6vw,1.2rem);line-height:1.5;color:var(--ink-2);
}
.lede strong{color:var(--ink);font-weight:500}
/* The launch window, in the same voice the coming-soon page used. */
.launch{
  margin:clamp(.9rem,2.2vh,1.5rem) 0 0;
  font-size:clamp(.82rem,1.5vw,1rem);font-weight:400;
  letter-spacing:.16em;text-transform:uppercase;color:var(--accent);
}

.rule{
  width:clamp(2.5rem,6vw,4.5rem);height:1px;margin:clamp(1.1rem,2.6vh,1.9rem) 0 0;
  background:linear-gradient(to right, rgba(110,165,247,.65), rgba(110,165,247,0));
}

/* the right-hand panel: the only place detail is allowed */
.panel{
  margin:0;list-style:none;
  padding:.4rem 1.5rem;
  background:var(--card);
  color:var(--card-ink);
  border:1px solid var(--card-edge);
  border-radius:12px;
  box-shadow:0 28px 64px -30px rgba(0,0,0,.95);
  text-shadow:none;
}
.panel li{padding:.9rem 0;border-bottom:1px solid var(--card-rule)}
.panel li:last-child{border-bottom:0}
.panel b{display:block;font-size:.95rem;font-weight:600;margin-bottom:.15rem;color:var(--card-ink)}
.panel span{display:block;font-size:.88rem;color:var(--card-muted);line-height:1.45}
.panel a{color:#1B5FD9;text-decoration:none;font-weight:500}
.panel a:hover{text-decoration:underline}
.panel li .n{font-family:var(--mono);font-size:.7rem;color:#1B5FD9;
  letter-spacing:.06em;margin-right:.7rem}

pre{
  margin:0;padding:1.3rem 1.5rem;overflow:auto;max-height:56vh;
  background:var(--card);color:var(--card-ink);
  border:1px solid var(--card-edge);border-radius:12px;
  box-shadow:0 28px 64px -30px rgba(0,0,0,.95);
  font-family:var(--mono);font-size:clamp(.68rem,1.05vw,.8rem);line-height:1.7;
  text-shadow:none;
}
pre .k{color:#1B5FD9;font-weight:500}
pre .s{color:#1D7A4A}
pre .c{color:#7A8798;font-style:italic}

.cta{
  display:inline-block;margin:clamp(1.2rem,3vh,2rem) 0 0;padding:.8rem 1.4rem;
  border:1px solid var(--accent);border-radius:6px;
  color:var(--accent);text-decoration:none;font-weight:500;font-size:.96rem;
}
.cta:hover{background:var(--accent);color:#08101C}

/* ── the bottom rail ─────────────────────────────────────── */
.bottom{display:flex;align-items:baseline;gap:1.2rem;flex-wrap:wrap}
.pager{font-family:var(--mono);font-size:.75rem;letter-spacing:.1em;color:var(--ink-2);
  text-shadow:0 1px 14px rgba(8,13,20,.95)}
.pager a{color:var(--accent);text-decoration:none}
.pager a:hover{text-decoration:underline}
.pager .sep{color:var(--rule);margin:0 .5rem}
.legal{
  margin:0;font-size:.72rem;line-height:1.4;color:var(--muted);
  max-width:52ch;text-shadow:0 1px 14px rgba(8,13,20,.95);
}
.by{
  margin:0 0 0 auto;text-align:right;color:var(--ink-2);
  font-size:clamp(.9rem,1.5vw,1.1rem);letter-spacing:.02em;
}
.by a{color:var(--ink);text-decoration:none;font-weight:500;
  border-bottom:1px solid rgba(110,165,247,.5);padding-bottom:1px}
.by a:hover{color:var(--accent);border-bottom-color:var(--accent)}

a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}



/* ── paging: click the edges to move between pages ───────── */
/* ── a card whose head is the background image itself ────── */
.card{
  background:var(--card);color:var(--card-ink);
  border:1px solid var(--card-edge);border-radius:12px;
  box-shadow:0 28px 64px -30px rgba(0,0,0,.95);
  overflow:hidden;text-shadow:none;
}
.card-shot{
  height:clamp(6.5rem,17vh,10.5rem);overflow:hidden;background:#0B1220;
  border-bottom:1px solid var(--card-rule);
}
.card-shot img{
  display:block;width:100%;height:100%;object-fit:cover;object-position:46% 34%;
  transform:none;opacity:1;filter:none;
}
/* A dark strip of code as the head of a light card. */
.card-code{
  background:#0B1220;color:#DCE6F5;
  border-bottom:1px solid var(--card-rule);
  padding:1rem 1.3rem;overflow:auto;
  font-family:var(--mono);font-size:clamp(.62rem,.92vw,.72rem);line-height:1.6;
  white-space:pre;
}
.card-code .k{color:#8AB6FF}
.card-code .s{color:#9BD4A4}
.card-code .c{color:#7C8DA6}
.card-code .arrow{color:#E39167}

/* A drawing of what the code above it declares, on the light card body. */
.card-figure{
  margin:0;padding:1.1rem 1.3rem 1.2rem;
  border-bottom:1px solid var(--card-rule);
}
.card-figure figcaption{
  margin:0 0 .9rem;font-family:var(--mono);font-size:.64rem;
  letter-spacing:.14em;text-transform:uppercase;color:var(--card-muted);
}
.card-figure svg{display:block;width:100%;height:auto}
.card-figure .fig-t{font-family:var(--sans);font-size:10px;font-weight:500;fill:#fff}
.card-figure .fig-n{font-family:var(--sans);font-size:13px;fill:#fff;opacity:.92}
.card-figure .fig-e{font-family:var(--mono);font-size:9px;fill:var(--card-muted);
  letter-spacing:.04em}

/* The published site itself, running inside the card. */
.card-embed{
  position:relative;height:clamp(8.5rem,22vh,13rem);overflow:hidden;background:#fff;
  border-bottom:1px solid var(--card-rule);
}
.card-embed iframe{
  position:absolute;top:0;left:0;width:200%;height:200%;
  transform:scale(.5);transform-origin:0 0;border:0;
}
.card-embed iframe{z-index:1}
.card-embed .cover{position:absolute;inset:0;z-index:2}
/* Shown only when the frame cannot load, which is what happens if these
   pages are opened straight off the disk instead of over http. */
.card-embed .fallback{
  position:absolute;inset:0;z-index:0;display:flex;align-items:center;
  justify-content:center;text-align:center;padding:1.2rem;background:#fff;
  font-size:.78rem;line-height:1.5;color:var(--card-muted);
}

.card .panel{
  background:none;border:0;border-radius:0;box-shadow:none;padding:.2rem 1.5rem .5rem;
}

.pagenav{
  position:fixed;top:50%;transform:translateY(-50%);z-index:4;
  display:flex;align-items:center;gap:.6rem;
  padding:.85rem 1rem;
  background:var(--card);
  border:1px solid var(--card-edge);
  color:var(--card-ink);text-decoration:none;text-shadow:none;
  box-shadow:0 20px 44px -24px rgba(0,0,0,.95);
}
.pagenav.prev{left:0;border-left:0;border-radius:0 12px 12px 0}
.pagenav.next{right:0;border-right:0;border-radius:12px 0 0 12px;flex-direction:row-reverse}
.pagenav .chev{font-size:1.5rem;line-height:1;color:#1B5FD9}
.pagenav .lbl{
  max-width:0;overflow:hidden;white-space:nowrap;
  font-size:.92rem;color:var(--card-ink-2);
  transition:max-width .22s ease, opacity .22s ease;opacity:0;
}
.pagenav:hover,.pagenav:focus-visible{background:#FFFFFF}
.pagenav:hover .lbl,.pagenav:focus-visible .lbl{max-width:14rem;opacity:1}

/* No hover on a touch screen, so show the label and put the arrows where a
   thumb can reach them. */
@media (hover:none),(max-width:760px){
  .pagenav{top:auto;bottom:0;transform:none;padding:.7rem .9rem}
  .pagenav.prev{border-radius:0 12px 0 0}
  .pagenav.next{border-radius:12px 0 0 0}
  .pagenav .lbl{max-width:9rem;opacity:1}
}
