/* The three silk chapters: each holds still while it is read, beside one small example of the product
   (the search screen, the emailed shortlist, a reply), drawn in soft neumorphic relief on the paper.
   Scroll plays each example (chapter-scenes.js); without script they simply stand complete. */
.homepage .page .chapter:not(.close) { display: block; align-content: normal; height: 165vh; height: 165svh; min-height: 0; padding: 0; }
.homepage .chapter-inner { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; grid-auto-flow: column; align-items: center; justify-content: center; column-gap: clamp(56px,7vw,124px); padding: 0 var(--edge-x) 25vh; text-align: left; }
.homepage .chapter:not(.close) .words { max-width: 470px; margin: 0; text-align: left; }
.homepage .chapter:not(.close) .chapter-index { margin: 0 0 18px; color: #0b5a39; font-weight: 600; }
.homepage .chapter:not(.close) .words > p:not(.chapter-index):not(.fit-proof) { margin: 0; color: #3d4a43; }
.homepage .chapter:not(.close) .words > p.capability-note { margin-top: 14px; font-size: 14px; color: #46544c; }
.homepage .demo { margin: 0; width: min(420px,33vw); }

/* Relief on the paper: light from the upper left, a warm shadow to the lower right. */
.homepage .neu-panel { position: relative; padding: 24px 24px 22px; border-radius: 30px; color: #1f3a30; text-align: left; pointer-events: none; user-select: none;
  background: linear-gradient(150deg,#faf7ef 0%,#f4efe4 100%);
  box-shadow: -16px -16px 36px rgba(255,255,255,.95),18px 22px 44px rgba(150,133,101,.27),inset 1px 1px 0 rgba(255,255,255,.85),inset -1px -1px 0 rgba(150,133,101,.07); }
.homepage .neu-title { margin: 0 0 15px; font-size: 19px; line-height: 1.2; letter-spacing: -.01em; color: #1f3a30; }
.homepage .neu-title em { color: #0d6642; }
.homepage .neu-well { padding: 13px 16px 14px; border-radius: 18px; background: #f2ecdf; box-shadow: inset 6px 6px 12px rgba(150,133,101,.24),inset -6px -6px 12px rgba(255,255,255,.92); }
.homepage .neu-well small,.homepage .neu-label { display: block; margin: 0 0 6px; color: #4a5a51; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.homepage .neu-typed { position: relative; margin: 0; min-height: 4.5em; color: #22342b; font-size: 14px; line-height: 1.5; }
.homepage .neu-typed .typed-off { opacity: 0; }
.homepage .typed-caret { display: inline-block; width: 1px; height: 1.05em; margin: 0 -1px -.18em 0; background: #0d6642; opacity: var(--caret-o,1); }
.homepage .neu-button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; color: #2f4a3b; font-size: 12px; background: #f6f1e6; box-shadow: -5px -5px 11px rgba(255,255,255,.96),5px 6px 12px rgba(150,133,101,.25); }
.homepage .neu-button svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.homepage .neu-upload { margin-top: 12px; }
.homepage .neu-label { margin: 17px 0 2px; }
.homepage .neu-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 9px; }
.homepage .neu-key { width: 70px; color: #46544c; font-size: 12px; }
.homepage .neu-tag { --pop: 1; padding: 7px 12px; border-radius: 999px; color: #0b5a39; font-size: 12px; background: #f7f3ea; box-shadow: -3px -3px 7px rgba(255,255,255,.96),3px 4px 8px rgba(150,133,101,.23); opacity: var(--pop); transform: translateY(calc((1 - var(--pop)) * 4px)) scale(calc(.9 + .1 * var(--pop))); }
.homepage .neu-go { --press: 0; display: flex; width: max-content; margin: 20px 0 0 auto; padding: 12px 20px; color: #0b5a39; font-size: 13px; font-weight: 500;
  box-shadow: calc(-5px * (1 - var(--press))) calc(-5px * (1 - var(--press))) 11px rgba(255,255,255,calc(.96 * (1 - var(--press)))),
    calc(5px * (1 - var(--press))) calc(6px * (1 - var(--press))) 12px rgba(150,133,101,calc(.25 * (1 - var(--press)))),
    inset calc(4px * var(--press)) calc(4px * var(--press)) 9px rgba(150,133,101,calc(.28 * var(--press))),
    inset calc(-4px * var(--press)) calc(-4px * var(--press)) 9px rgba(255,255,255,calc(.9 * var(--press))); }
.homepage .neu-go b { font-weight: 400; transform: translateX(calc(var(--press) * 3px)); }

/* The shortlist as it arrives: the message, and its spreadsheet opened a little. */
.homepage .sheet-card { padding: 20px 20px 18px; }
.homepage .sheet-head { display: flex; align-items: center; gap: 12px; }
.homepage .sheet-from { display: grid; flex: none; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #f6f1e6; box-shadow: -4px -4px 9px rgba(255,255,255,.96),4px 5px 10px rgba(150,133,101,.24); }
.homepage .sheet-from svg { width: 17px; height: 17px; fill: #2e8b57; }
.homepage .sheet-subject { display: grid; gap: 3px; }
.homepage .sheet-subject strong { color: #1f3a30; font-size: 14px; font-weight: 500; }
.homepage .sheet-subject small { color: #46544c; font-size: 12px; }
.homepage .sheet-file { margin-top: 16px; padding: 12px 12px 12px; border-radius: 18px; background: #f2ecdf; box-shadow: inset 6px 6px 12px rgba(150,133,101,.22),inset -6px -6px 12px rgba(255,255,255,.92); }
.homepage .sheet-grid { overflow: hidden; border-radius: 10px; background: #fbf9f3; box-shadow: 0 1px 0 rgba(255,255,255,.9),0 4px 12px rgba(150,133,101,.12); }
.homepage .sheet-row { --row: 1; display: grid; white-space: nowrap; grid-template-columns: 26px 1fr 38px 96px; align-items: center; margin: 0; padding: 0 10px; height: 30px; color: #22342b; font-size: 12px; border-top: 1px solid rgba(20,92,58,.08); opacity: var(--row); }
.homepage .sheet-row span:nth-child(3) { color: #0b5a39; font-variant-numeric: tabular-nums; }
.homepage .sheet-row span:nth-child(4) { color: #2f4a3b; }
.homepage .sheet-row span:first-child { color: #6b7a71; font-variant-numeric: tabular-nums; }
.homepage .sheet-cols { height: 28px; border-top: 0; color: #f4f8f3; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: linear-gradient(90deg,#1c6a46,#2e8b57); }
.homepage .sheet-cols span,.homepage .sheet-cols span:first-child,.homepage .sheet-cols span:nth-child(3),.homepage .sheet-cols span:nth-child(4) { color: #f4f8f3; }
.homepage .sheet-ghost i { display: block; height: 7px; border-radius: 4px; background: rgba(46,74,59,.13); }
.homepage .sheet-ghost span:nth-child(2) i { width: 72%; }
.homepage .sheet-ghost span:nth-child(4) i { width: 64%; }
.homepage .sheet-name { display: flex; align-items: center; gap: 11px; margin: 12px 4px 2px; color: #0b5a39; }
.homepage .sheet-name svg { flex: none; width: 24px; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linejoin: round; }
.homepage .sheet-name span { display: grid; gap: 3px; color: #1f3a30; font-size: 14px; }
.homepage .sheet-name small { color: #46544c; font-size: 11px; }

/* A reply, and the next round coming back. */
.homepage .reply-thread { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; pointer-events: none; user-select: none; }
.homepage .bubble { position: relative; border-radius: 24px; background: linear-gradient(150deg,#faf7ef,#f4efe4); box-shadow: -12px -12px 28px rgba(255,255,255,.95),14px 16px 34px rgba(150,133,101,.25),inset 1px 1px 0 rgba(255,255,255,.85); }
.homepage .bubble-you { --bubble: 1; justify-self: end; width: 88%; padding: 16px 18px 14px; border-bottom-right-radius: 8px; opacity: var(--bubble); }
.homepage .bubble-you small { display: block; margin-bottom: 7px; color: #4a5a51; font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.homepage .reply-text { margin: 0; min-height: 3em; color: #1f3a30; font-size: 17px; line-height: 1.5; font-style: italic; }
.homepage .reply-text .typed-off { opacity: 0; }
.homepage .reply-sent { --sent: 1; position: absolute; right: 16px; bottom: -22px; color: #0b5a39; font-size: 11px; letter-spacing: .04em; opacity: var(--sent); }
.homepage .reply-sent::before { content: "✓ "; }
.homepage .bubble-ren { --arrive: 1; display: flex; align-items: flex-start; gap: 12px; width: 92%; margin-top: 10px; padding: 16px 18px 16px 16px; border-bottom-left-radius: 8px; opacity: var(--arrive); transform: translateY(calc((1 - var(--arrive)) * 14px)); }
.homepage .bubble-body { display: grid; min-width: 0; gap: 4px; }
.homepage .bubble-body strong { color: #1f3a30; font-size: 14px; font-weight: 500; }
.homepage .bubble-body small { color: #46544c; font-size: 12px; }
.homepage .mini-file { display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; margin-top: 9px; padding: 8px 12px; border-radius: 12px; color: #0b5a39; font-size: 12px; background: #f2ecdf; box-shadow: inset 4px 4px 8px rgba(150,133,101,.2),inset -4px -4px 8px rgba(255,255,255,.9); }
.homepage .mini-file svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linejoin: round; }

@media (max-height:780px) and (min-width:901px) {
  .homepage .chapter-inner { padding-bottom: 27vh; }
  .homepage .neu-panel { padding: 18px 20px 17px; }
  .homepage .neu-title { margin-bottom: 11px; font-size: 17px; }
  .homepage .neu-upload,.homepage .neu-where { display: none; }
  .homepage .neu-label { margin-top: 12px; }
  .homepage .neu-go { margin-top: 14px; }
  .homepage .sheet-row { height: 26px; }
  .homepage .reply-text { font-size: 15px; }
}
@media (max-width:900px) {
  .homepage .chapter-inner { grid-auto-flow: row; align-content: start; justify-items: center; row-gap: 20px; padding: 10vh 20px 30vh; text-align: center; }
  .homepage .chapter:not(.close) .words { max-width: 390px; text-align: center; }
  .homepage #field .chapter-inner .words { order: -1; }
  .homepage .demo { width: min(340px,88vw); }
  .homepage .neu-panel { padding: 16px 16px 15px; border-radius: 24px; box-shadow: -10px -10px 24px rgba(255,255,255,.95),12px 14px 28px rgba(150,133,101,.26),inset 1px 1px 0 rgba(255,255,255,.85); }
  .homepage .neu-title,.homepage .neu-upload,.homepage .neu-label,.homepage .neu-where,.homepage .chapter:not(.close) .words > p.capability-note { display: none; }
  .homepage .neu-typed { min-height: 4.5em; font-size: 12px; }
  .homepage .neu-tags { margin-top: 10px; }
  .homepage .neu-tag,.homepage .neu-key,.homepage .neu-button { font-size: 11px; }
  .homepage .neu-go { margin-top: 12px; padding: 10px 16px; font-size: 12px; }
  .homepage .sheet-card { padding: 14px 14px 12px; }
  .homepage .sheet-row { grid-template-columns: 22px 1fr 32px 84px; height: 25px; font-size: 11px; }
  .homepage .sheet-row.sheet-ghost:last-child { display: none; }
  .homepage .reply-thread { gap: 12px; text-align: left; }
  .homepage .reply-text { font-size: 14px; }
  .homepage .bubble-body strong { font-size: 13px; }
}
@media (max-width:900px) and (max-height:740px) {
  .homepage .chapter-inner { padding-top: 8vh; row-gap: 14px; }
  .homepage .chapter:not(.close) .words .capability-note,.homepage .search-demo .neu-tags,.homepage .neu-well small { display: none; }
  .homepage .neu-typed { min-height: 0; }
  .homepage .neu-go { margin-top: 10px; }
  .homepage .sheet-row.sheet-ghost { display: none; }
  .homepage .bubble-ren .mini-file { display: none; }
}
@media (max-width:380px) {
  .homepage .sheet-row { grid-template-columns: 18px minmax(0,1fr) 26px 72px; padding: 0 8px; font-size: 10.5px; }
  .homepage .sheet-row span { overflow: hidden; text-overflow: ellipsis; }
  .homepage .mini-file { gap: 6px; padding: 7px 9px; font-size: 10.5px; }
  .homepage .bubble-ren { gap: 9px; padding: 14px 12px 14px 12px; }
  .homepage .bubble-ren .sheet-from { width: 32px; height: 32px; }
}
/* The product is the focus (Carlos, 2026-09-24): larger panels and words, balanced in the frame above the
   silk, which lies lower and slimmer beneath them (hero.js SILK). */
@media (min-width:901px) {
  .homepage .chapter-inner { column-gap: clamp(64px,7.5vw,140px); padding-bottom: 21vh; }
  .homepage .demo { width: min(440px,31vw); zoom: 1.24; }
  .homepage .chapter:not(.close) .words { max-width: 540px; }
  .homepage .chapter:not(.close) h2 { font-size: clamp(46px,4.6vw,70px); }
  .homepage .chapter:not(.close) .words > p:not(.chapter-index):not(.fit-proof) { font-size: 18.5px; line-height: 1.56; }
  .homepage .chapter:not(.close) .words > p.capability-note { font-size: 15px; }
  .homepage .chapter:not(.close) .chapter-index { margin-bottom: 22px; font-size: 12px; }
}
@media (min-width:901px) and (max-height:780px) {
  .homepage .demo { zoom: 1.06; }
  .homepage .chapter-inner { padding-bottom: 23vh; }
  .homepage .chapter:not(.close) h2 { font-size: clamp(40px,4vw,58px); }
}
/* Accurate matches, in minutes (Carlos, 2026-10-05): the first piece on the silk after the orb opens into it,
   a statement standing on its own above the cloth. The roman face only (no faux italic); the second line in jade. */
.homepage #speed .words { max-width: 860px; text-align: center; }
.homepage #speed h2 { margin: 0; color: #1f3a30; font-size: clamp(56px,6.4vw,98px); font-weight: 360; line-height: 1; letter-spacing: -.035em; font-variation-settings: "opsz" 72; }
.homepage #speed h2 span { color: #0d6642; }
.homepage #speed .words > p.capability-note { display: block; max-width: 30em; margin: 30px auto 0; color: #3d4a43; font-size: 19px; line-height: 1.5; text-wrap: balance; }
.homepage #speed .words .fit-proof { justify-content: center; margin-top: 30px; text-align: left; }
@media (max-width:900px) {
  .homepage #speed .chapter-inner { align-content: center; padding-top: 6vh; }
  .homepage #speed h2 { font-size: clamp(40px,11.4vw,54px); }
  .homepage #speed .words > p.capability-note { max-width: 340px; margin-top: 18px; font-size: 15px; }
  .homepage #speed .words .fit-proof { margin-top: 20px; }
}

/* The panels' two soft shadows are drawn as blurred shapes behind them, not as box-shadows: the same Gaussians
   (a box-shadow's blur radius is twice the deviation filter: blur() takes), but blurred by the graphics card.
   As box-shadows this large and soft they took a quarter of a second to draw the first time a chapter appeared
   (measured 2026-09-25), a stall in the middle of the reader's scroll. The panel is opaque, so what lies under
   it is hidden either way; the order matches the box-shadow list (the light one on top). */
.homepage .search-demo,.homepage .sheet-demo { position: relative; isolation: isolate; }
.homepage .search-demo > .neu-panel,.homepage .sheet-demo > .neu-panel { box-shadow: inset 1px 1px 0 rgba(255,255,255,.85),inset -1px -1px 0 rgba(150,133,101,.07); }
.homepage .search-demo::before,.homepage .sheet-demo::before,.homepage .search-demo::after,.homepage .sheet-demo::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 30px; pointer-events: none; }
.homepage .search-demo::before,.homepage .sheet-demo::before { background: rgba(150,133,101,.27); transform: translate(18px,22px); filter: blur(22px); }
.homepage .search-demo::after,.homepage .sheet-demo::after { background: rgba(255,255,255,.95); transform: translate(-16px,-16px); filter: blur(18px); }
@media (max-width:900px) {
  .homepage .search-demo > .neu-panel,.homepage .sheet-demo > .neu-panel { box-shadow: inset 1px 1px 0 rgba(255,255,255,.85); }
  .homepage .search-demo::before,.homepage .sheet-demo::before,.homepage .search-demo::after,.homepage .sheet-demo::after { border-radius: 24px; }
  .homepage .search-demo::before,.homepage .sheet-demo::before { background: rgba(150,133,101,.26); transform: translate(12px,14px); filter: blur(14px); }
  .homepage .search-demo::after,.homepage .sheet-demo::after { transform: translate(-10px,-10px); filter: blur(12px); }
}
html.no-gl .homepage .chapter:not(.close)::after { content: none; }
html.no-gl .homepage .chapter-inner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 3vh; height: 36vh; pointer-events: none; z-index: -1;
  background: url("assets/silk-band.jpg") center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom,transparent,#000 16%,#000 84%,transparent); mask-image: linear-gradient(to bottom,transparent,#000 16%,#000 84%,transparent); }

/* chapter-scenes.js warmPanels: every panel, the close and the capsule glass drawn once, all but invisibly, while the page loads. */
.panel-warm { position: fixed; inset: 0; z-index: 50; opacity: .008; pointer-events: none; overflow: hidden; }
.panel-warm .page { position: absolute; inset: 0; }
.panel-warm .page > .chapter { position: absolute !important; inset: 0; height: 100% !important; min-height: 0 !important; }
.panel-warm .chapter-inner, .panel-warm .close-inner, .panel-warm .chapter > * { position: absolute !important; inset: 0; top: 0 !important; opacity: 1 !important; transform: none !important; }
