/* RUBRO, the elegant layer: paper grain, the 3D codex hero (html.gl), dark bands, the marquee, the wax seal and
   finer surfaces. rubro.css alone is the plain vellum page, the fallback when WebGL2 is missing. */
:root { --night: #110c08; --night-2: #1b140e; --night-line: #3a2f25; --vellum-d: #efe5d0; --gild: #c9a253; }
body::after { content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .3; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .33 0 0 0 0 .2 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.h2 { font-size: clamp(40px, 5.4vw, 76px); letter-spacing: -.028em; }
.sec { padding-top: clamp(80px, 11vw, 150px); }
.sec__bar { text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; }
.sec__bar b { letter-spacing: .16em; }
.sec__num { text-transform: none; letter-spacing: 0; font-size: 26px; }

/* ---------- the 3D hero ---------- */
.hero__gl, .codex-chip, .hero__scroll { display: none; }
.gl .hero { width: 100%; max-width: none; min-height: calc(100svh - 106px); padding: 0; margin: 0; display: block; background: var(--night); color: var(--vellum-d); overflow: hidden; }
.gl .hero__lens, .gl .hero .folio { display: none; }
.gl .hero__gl { display: block; position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; z-index: 0; opacity: 0; transition: opacity 1.4s ease; }
.gl.ready .hero__gl { opacity: 1; }
.gl .hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(17,12,8,.94) 0%, rgba(17,12,8,.7) 30%, rgba(17,12,8,0) 54%), linear-gradient(0deg, rgba(17,12,8,.85), rgba(17,12,8,0) 22%), radial-gradient(120% 90% at 60% 40%, transparent 55%, rgba(0,0,0,.55)); }
.gl .hero__copy { position: relative; z-index: 2; width: min(1320px, 100% - 2 * var(--gut)); margin-inline: auto; padding: clamp(56px, 11vh, 130px) 0 110px; }
.gl .hero__copy > * { max-width: 600px; animation: rise 1.1s cubic-bezier(.2,.7,.2,1) both; }
.gl .hero__copy > :nth-child(2) { animation-delay: .12s; } .gl .hero__copy > :nth-child(3) { animation-delay: .24s; }
.gl .hero__copy > :nth-child(4) { animation-delay: .36s; } .gl .hero__copy > :nth-child(5) { animation-delay: .48s; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); filter: blur(6px); } }
.gl.no-motion .hero__copy > * { animation: none; }
.gl .hero .kicker { background: rgba(255,240,215,.05); border-color: rgba(233,223,203,.18); color: #d8ccb4; backdrop-filter: blur(6px); }
.gl .hero .kicker i { color: #8b7d68; }
.gl .hero__title { color: #f6eedd; font-size: clamp(54px, 7.4vw, 118px); text-shadow: 0 2px 30px rgba(0,0,0,.4); }
.gl .hero__title em { color: #e2483a; background: linear-gradient(100deg, #f0634f, #c42a1d 60%, #e39a4b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-right: .08em; text-shadow: none; }
.gl .hero__sub { color: #cfc2aa; background: none; }
.gl .hero__note { color: #8b7d68; }
.gl .hero .btn--line { color: #efe5d0; border-color: rgba(233,223,203,.28); background: rgba(255,245,225,.04); backdrop-filter: blur(6px); }
.gl .hero .btn--line:hover { border-color: #efe5d0; background: rgba(255,245,225,.1); }
.gl .hero .btn--rubric { box-shadow: 0 10px 30px -10px rgba(226,72,58,.7); }
.gl .codex-chip { display: flex; position: absolute; z-index: 2; right: var(--gut); bottom: 28px; align-items: center; gap: 12px; margin: 0; padding: 9px 16px; border: 1px solid rgba(233,223,203,.16); border-radius: 99px; background: rgba(17,12,8,.55); backdrop-filter: blur(10px); font-size: 11.5px; color: #a89a83; }
.gl .codex-chip b { color: #f6eedd; font-weight: 500; }
.gl .codex-chip a { color: #f3b5a8; text-decoration: none; }
.gl .hero__scroll { display: flex; position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); flex-direction: column; align-items: center; gap: 10px; margin: 0; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: #8b7d68; }
.gl .hero__scroll i { width: 1px; height: 38px; background: linear-gradient(#8b7d68, transparent); animation: drip 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.gl .castrip { background: #0b0805; border-bottom: 1px solid #231a12; }
.gl .nav { background: rgba(17,12,8,.94); border-bottom-color: rgba(233,223,203,.1); }
.gl .nav .logo { color: #f6eedd; }
.gl .nav__links a { color: #cfc2aa; } .gl .nav__links a:hover, .gl .nav__links a.on { color: #fff; }
.gl .nav__x svg { fill: #efe5d0; } .gl .burger { border-color: rgba(233,223,203,.25); } .gl .burger svg { stroke: #efe5d0; }
.gl .nav .btn--ink { background: #efe5d0; color: var(--night); border-color: #efe5d0; }
.gl .nav .btn--ink:hover { background: var(--rubric); border-color: var(--rubric); color: #fff; }
.gl .menu { background: var(--night-2); color: #efe5d0; border-color: var(--night-line); } .gl .menu a { border-color: var(--night-line); }

/* ---------- marquee of what it reads ---------- */
.reads { overflow: hidden; width: 100%; padding: 20px 0; gap: 0; background: var(--paper); border-color: var(--line-2); }
.reads__k { padding: 0 28px 0 var(--gut); position: relative; z-index: 1; background: var(--paper); box-shadow: 18px 0 18px var(--paper); }
.reads__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.reads__track .reads__list { flex-wrap: nowrap; padding-right: 22px; white-space: nowrap; font-size: 21px; }
.reads:hover .reads__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.no-motion .reads__track { animation: none; }

/* ---------- dark bands ---------- */
.sec--dark { position: relative; isolation: isolate; color: var(--vellum-d); padding-bottom: clamp(80px, 11vw, 150px); margin-top: clamp(80px, 11vw, 150px); }
.sec--dark::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%);
  background: radial-gradient(900px 500px at 80% 0%, rgba(180,35,26,.16), transparent 60%), radial-gradient(800px 600px at 0% 100%, rgba(201,162,83,.08), transparent 60%), var(--night); }
.sec--dark .sec__bar { color: #8b7d68; } .sec--dark .sec__bar b { color: #efe5d0; } .sec--dark .sec__bar i { background: var(--night-line); }
.sec--dark .h2 { color: #f6eedd; } .sec--dark .h2 em { color: #e8574a; }
.sec--dark .lead { color: #bfb39c; }
.sec--dark .readers { box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); border-color: transparent; }
.sec--dark .notice { background: rgba(255,245,225,.04); border-color: var(--night-line); } .sec--dark .notice p { color: #cfc2aa; }
.sec--dark .panel { box-shadow: 0 30px 70px -30px rgba(0,0,0,.7); border-color: transparent; }
.sec--dark .market { background: var(--night-2); color: #efe5d0; border: 1px solid var(--night-line); box-shadow: none; }
.sec--dark .market header, .sec--dark .market__grid dt, .sec--dark .market__msg, .sec--dark .market__upd { color: #8b7d68; }

/* ---------- the wax seal ---------- */
.sealrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; align-items: center; margin-bottom: 34px; }
.sealrow .sec__head { margin: 0; } .sealrow .lead { margin-top: 22px; }
.seal { position: relative; height: 360px; display: grid; place-items: center; }
.seal::before { content: ""; position: absolute; inset: 12% 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(226,72,58,.32), transparent); filter: blur(20px); }
.seal canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.seal__flat { position: relative; width: 180px; height: 180px; border-radius: 40px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.gl .seal canvas { display: block; } .gl .seal.is-on .seal__flat { display: none; }
.seal__cap { position: absolute; bottom: 0; margin: 0; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: #8b7d68; }

/* ---------- finer surfaces ---------- */
.why { border: 0; background: transparent; gap: 18px; }
.why article { position: relative; border: 1px solid var(--line-2); background: var(--paper); box-shadow: 0 1px 0 #fff inset, 0 24px 50px -38px rgba(61,40,15,.5); transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; }
.why article:last-child { border-right: 1px solid var(--line-2); }
.why article:hover { transform: translateY(-6px); box-shadow: 0 1px 0 #fff inset, 0 40px 70px -40px rgba(61,40,15,.6); }
.why article::after { content: ""; position: absolute; left: 28px; right: 28px; bottom: 0; height: 2px; background: var(--rubric); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.why article:hover::after { transform: scaleX(1); }
.why__n { font-size: 56px; }
.steps { position: relative; border-top: 0; padding-top: 34px; }
.steps::before { content: ""; position: absolute; left: 0; right: 16px; top: 13px; height: 1px; background: linear-gradient(90deg, var(--rubric), var(--line-2) 60%); }
.steps li { position: relative; }
.steps li::before { content: ""; position: absolute; top: -27px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--vellum); border: 2px solid var(--rubric); }
.reader { box-shadow: 0 30px 60px -36px rgba(0,0,0,.7); }
.sheet, .folio { box-shadow: 0 1px 0 #fff inset, 0 40px 80px -50px rgba(61,40,15,.6); }
.promises article { transition: background .3s; } .promises article:hover { background: linear-gradient(180deg, transparent, var(--rubric-soft)); }
.btn, .btn--sm { border-radius: 99px; }
.reveal { transform: translateY(22px); filter: blur(4px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1), filter .9s; }
.reveal.in, .no-motion .reveal { filter: none; }
.foot__word { color: transparent; -webkit-text-stroke: 1px #4a3d30; }

@media (max-width: 960px) {
  .gl .hero { min-height: 0; }
  .gl .hero__copy { padding: 52vh 0 96px; }
  .gl .hero::before { background: linear-gradient(0deg, rgba(17,12,8,.98) 40%, rgba(17,12,8,.6) 56%, rgba(17,12,8,0) 72%), radial-gradient(120% 90% at 50% 30%, transparent 55%, rgba(0,0,0,.5)); }
  .gl .codex-chip { left: var(--gut); right: auto; bottom: 24px; } .gl .hero__scroll { display: none; }
  .sealrow { grid-template-columns: 1fr; } .seal { height: 300px; }
}
@media (max-width: 820px) { .why { gap: 12px; } .steps::before, .steps li::before { display: none; } .steps { padding-top: 0; } }
@media (max-width: 560px) {
  .gl .hero__copy { padding-top: 44vh; } .gl .hero__title { font-size: 52px; }
  .gl .codex-chip { font-size: 10.5px; flex-wrap: wrap; gap: 4px 10px; border-radius: 14px; right: var(--gut); }
}
@media (prefers-reduced-motion: reduce) { .reads__track { animation: none; } .gl .hero__copy > * { animation: none; } }
