/* Rhode Island Intelligence · graphite + gold, particle stage behind glass cards */

:root {
  --bg: #0B0C0F;
  --graphite: #14161B;
  --fg: #DEE2E6;
  --fg-2: rgba(222, 226, 230, 0.72);
  --fg-3: rgba(222, 226, 230, 0.48);
  --gold: #C9A43A;
  --gold-deep: #B8912A;
  --gold-1: #EAD394;
  --gold-3: #96761A;
  --champagne: #E9D9A6;
  --line: rgba(255, 255, 255, 0.12);
  --line-2: rgba(255, 255, 255, 0.16);
  --glass: rgba(0, 0, 0, 0.58);
  --gold-grad: linear-gradient(135deg, #EAD394 0%, #C9A43A 50%, #96761A 100%);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --glow-white: 0 0 18px rgba(255, 255, 255, 0.28), 0 0 42px rgba(255, 255, 255, 0.10);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page: min(1040px, 100% - 48px);
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: #3a3d46 transparent;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--fg); }
body { font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
h1, h2, h3, p, ul, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: #000; }
.mono { font-family: var(--mono); font-size: 12px; line-height: 16px; letter-spacing: 0.02em; text-transform: uppercase; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--gold); color: #000; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- stage ---------- */
.stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--bg); }
.stage canvas { display: block; width: 100%; height: 100%; }
body.no-webgl .stage { background: radial-gradient(60% 50% at 60% 40%, rgba(201,164,58,.18), transparent 70%), var(--bg); }
.topfade { position: fixed; top: 0; left: 0; right: 0; height: min(24vh, 180px); z-index: 21; pointer-events: none;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(11,12,15,.48) 32%, rgba(11,12,15,.08) 68%, transparent 100%); }
@media (min-width: 1024px) { .topfade { height: min(42vh, 360px); background: linear-gradient(to bottom, var(--bg) 0%, rgba(11,12,15,.65) 38%, rgba(11,12,15,.12) 72%, transparent 100%); } }

/* ---------- loading ---------- */
.loading { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-items: center; transition: opacity .7s var(--ease), visibility .7s; }
.loading.is-dismissed { opacity: 0; visibility: hidden; }
.loading__mark { width: 72px; height: 72px; }
.lp { transform-origin: center; transform-box: fill-box; animation: lp 1.6s ease-in-out infinite; opacity: .35; }
.lp2 { animation-delay: .18s } .lp3 { animation-delay: .36s }
@keyframes lp { 0%, 100% { opacity: .35; transform: scale(.92); } 40% { opacity: 1; transform: scale(1); } }

/* ---------- scroll logo ---------- */
.slogo { position: fixed; top: 0; left: 24px; z-index: 25; pointer-events: none; }
.slogo__ghost, .slogo__main { position: absolute; top: 0; left: 0; display: block; white-space: nowrap; will-change: transform, opacity; transform-origin: 0 0; }
.slogo__w { display: block; font-family: var(--sans); font-size: 100px; line-height: 1; font-weight: 500; letter-spacing: -0.035em; color: var(--fg); }
.slogo__w b { font-weight: 700; color: var(--gold); }
.slogo__ghost { mix-blend-mode: screen; opacity: 0; }
.slogo__ghost .slogo__w, .slogo__ghost .slogo__w b { color: currentColor; }
.g1 { color: #EAD394 } .g2 { color: #C9A43A } .g3 { color: #96761A } .g4 { color: #E9D9A6 }
.slogo__main { pointer-events: auto; color: var(--fg); }
.slogo__main .slogo__w { color: #fff; text-shadow: 0 0 24px rgba(255,255,255,.18); }
body.logo-docked .slogo__main .slogo__w { text-shadow: none; }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; height: 68px; z-index: 30; display: flex; align-items: center; justify-content: flex-end; padding: 0 24px; pointer-events: none; }
.nav > * { pointer-events: auto; }
.hint { position: absolute; left: 24px; top: 26px; color: var(--fg-3); margin: 0; transition: opacity .4s; }
.hint kbd { font: inherit; }
body.logo-docked .hint { opacity: 0; }
.chips { display: none; gap: 8px; }
@media (min-width: 1024px) { .chips { display: flex; } }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 4px; background: rgba(255,255,255,.08); color: var(--fg); transition: background .2s, color .2s; }
.chip span { color: var(--fg-3); }
.chip:hover { background: rgba(255,255,255,.14); color: #fff; }
.chip--gold { background: rgba(201,164,58,.16); color: var(--gold-1); }
.chip--gold span { color: rgba(234,211,148,.6); }
.chip--gold:hover { background: rgba(201,164,58,.3); color: #fff; }
.burger { width: 40px; height: 40px; position: relative; display: grid; place-items: center; }
.burger span { position: absolute; width: 18px; height: 1.5px; background: #fff; transition: transform .4s var(--ease); }
.burger span:first-child { transform: translateY(-3.5px); } .burger span:last-child { transform: translateY(3.5px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); } .burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
@media (min-width: 1024px) { .burger { display: none; } }
.mobile { position: fixed; inset: 0; z-index: 28; background: rgba(11,12,15,.86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 120px 24px 40px; }
.mobile nav { display: flex; flex-direction: column; gap: 4px; }
.mobile a { font-size: clamp(1.75rem, 7vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; padding: 8px 0; color: #fff; }
.mobile__gold { color: var(--gold) !important; }
.mobile__phone { font-size: 13px !important; font-weight: 400 !important; color: var(--fg-3) !important; margin-top: 24px; }

/* ---------- rail ---------- */
.rail { display: none; position: fixed; bottom: 24px; left: 24px; z-index: 30; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); background: rgba(11,12,15,.6); border-radius: 24px; padding: 24px; }
@media (min-width: 1280px) { .rail { display: block; } }
.rail__track { position: absolute; top: 24px; left: 24px; bottom: 24px; width: 11px; border-radius: 24px; background: rgba(0,0,0,.35); }
.rail__bar { position: absolute; top: 0; left: 0; width: 11px; min-height: 11px; border-radius: 24px; background: var(--gold); box-shadow: 0 0 2px var(--gold), 0 0 10px var(--gold); transition: height 120ms ease-out; }
.rail__list { position: relative; display: flex; flex-direction: column; gap: 8px; }
.rail__list li { display: flex; align-items: center; gap: 16px; padding-left: 27px; min-height: 16px; position: relative; }
.rail__list li::before { content: ""; position: absolute; left: 3.5px; top: 6px; width: 4px; height: 4px; border-radius: 50%; background: var(--fg); }
.rail__list li.is-passed::before { background: transparent; }
.rail__list a { color: rgba(255,255,255,.5); transition: color .15s; }
.rail__list a:hover { color: var(--gold-1); }
.rail__list li.is-active a { color: #fff; font-weight: 700; }

/* ---------- sections ---------- */
main { position: relative; z-index: 10; }
.sec { width: var(--page); min-height: 112vh; margin: 0 auto; padding: 128px 0; display: grid; align-items: center; align-content: center; }
@media (min-width: 1024px) { .sec { padding: 160px 0; } }
.sec__grid { width: 100%; display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 1024px) { .sec__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.card--left { grid-column: 1 / -1; }
.card--right { grid-column: 1 / -1; justify-self: end; }
.card--center { grid-column: 1 / -1; justify-self: center; }
.card--full { grid-column: 1 / -1; }
@media (min-width: 1024px) {
  .card--left { grid-column: 1 / span 6; }
  .card--left.card--wide { grid-column: 1 / span 9; }
  .card--right { grid-column: 7 / -1; }
  .card--right.card--wide { grid-column: 4 / -1; }
  .card--center.card--wide { grid-column: 2 / span 10; justify-self: stretch; }
  .card--full { grid-column: 1 / -1; justify-self: stretch; }
}

/* hero */
.sec--hero { min-height: 100vh; padding-top: clamp(200px, 26vw, 330px); align-content: start; }
@media (min-width: 1024px) { .sec--hero { align-content: center; padding-top: 200px; padding-bottom: 96px; } }
.hero { max-width: 760px; margin: 0 auto; text-align: center; }
.eyebrow { color: var(--gold-1); margin-bottom: 22px; opacity: .9; }
.hero__h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: #fff; text-shadow: var(--glow-white); text-wrap: balance; }
.hero__h1 em { font-style: normal; color: var(--gold); text-shadow: 0 0 22px rgba(201,164,58,.45), 0 0 60px rgba(201,164,58,.2); }
.hero__p { margin: 28px auto 0; max-width: 560px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--fg); text-shadow: 0 0 12px rgba(0,0,0,.8); text-wrap: pretty; }
.hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__proof { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero__proof li { display: flex; flex-direction: column; gap: 3px; max-width: 220px; text-align: left; }
.hero__proof strong { font-size: 15px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
.hero__proof span { color: var(--fg-3); }
.hero > * { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
body.ready .hero > * { opacity: 1; transform: none; }
body.ready .hero > :nth-child(2) { transition-delay: .08s } body.ready .hero > :nth-child(3) { transition-delay: .18s } body.ready .hero > :nth-child(4) { transition-delay: .28s } body.ready .hero > :nth-child(5) { transition-delay: .4s }
@media (min-width: 1024px) { .hero { margin: 0; max-width: 800px; text-align: left; } .hero__p { margin-left: 0; } .hero__actions { justify-content: flex-start; } .hero__proof { justify-content: flex-start; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 500; font-size: 15px; line-height: 1; transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .2s, color .2s; white-space: nowrap; }
.btn--gold { background: var(--gold-grad); color: #14161B; box-shadow: 0 0 0 1px rgba(234,211,148,.25), 0 10px 40px -10px rgba(201,164,58,.55); }
.btn--gold:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(234,211,148,.4), 0 16px 48px -10px rgba(201,164,58,.7); }
.btn--chip { padding: 9px 12px; border-radius: 4px; background: rgba(255,255,255,.08); color: var(--fg); }
.btn--chip:hover { background: rgba(255,255,255,.14); color: #fff; }
.btn--full { width: 100%; padding-block: 16px; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* glass card */
.card { width: 100%; max-width: 640px; padding: 32px 24px; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 24px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: rgba(0,0,0,.64); contain: paint;
  opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 1s var(--ease); }
.card.is-in { opacity: 1; transform: none; filter: none; }
.card--wide { max-width: none; }
@media (min-width: 1024px) { .card { padding: 48px; background: var(--glass); } }
.card h2 { font-size: clamp(32px, 3.6vw, 50px); font-weight: 700; line-height: 1.04; letter-spacing: -0.02em; color: #fff; text-shadow: var(--glow-white); text-wrap: balance; }
.card > p { margin-top: 28px; font-size: 18px; line-height: 1.55; color: var(--fg); text-wrap: pretty; }
.card .small { font-size: 15px; color: var(--fg-2); }
.card .honest { margin-top: 24px; padding: 16px 18px; border-left: 2px solid var(--gold); background: rgba(201,164,58,.06); border-radius: 0 12px 12px 0; font-size: 15px; color: var(--fg); }
.cells__cta .btn--gold { padding: 12px 20px; }
.ways { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0 -24px -32px; border-top: 1px solid var(--line-2); background: rgba(201,164,58,.05); }
@media (min-width: 640px) { .ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ways { margin: 0 -48px -48px; } }
.ways > div { padding: 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 1024px) { .ways > div { padding: 28px 48px 32px; } }
.ways > div:last-child { border-right: 0; }
.ways p { font-size: 15.5px; line-height: 1.55; color: var(--fg); text-wrap: pretty; }
.cells + .ways { margin-top: 32px; }
@media (min-width: 1024px) { .cells + .ways { margin-top: 48px; } }
.ways__cta { justify-content: center; }
.ways__cta .btn { align-self: flex-start; padding: 12px 20px; }
.ways__cta p { font-weight: 600; color: #fff; }
.foot__sources { width: 100%; font-size: 11px; color: var(--fg-3); text-transform: none; letter-spacing: 0; line-height: 1.6; }
.foot__sources a { text-decoration: underline; text-decoration-color: rgba(255,255,255,.2); text-underline-offset: 2px; }
.quote { margin: 32px 0; font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: #fff; text-wrap: balance; }
.quote span { color: var(--gold-1); }

/* cells (grid inside the card, bleeding to its edges) */
.cells { display: grid; grid-template-columns: 1fr; gap: 0; margin: 24px -24px -32px; border-top: 1px solid var(--line-2); }
@media (min-width: 640px) { .cells--2, .cells--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cells { margin: 32px -48px -48px; } .cells--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cells li { position: relative; padding: 28px 24px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 1024px) { .cells li { padding: 32px 48px 36px; } }
.cells li:last-child { border-bottom: 0; }
.cells--1 li { border-right: 0; }
@media (min-width: 640px) { .cells--2 li:nth-child(2n) { border-right: 0; } .cells--2 li:nth-last-child(-n+2) { border-bottom: 0; } }
@media (min-width: 1024px) { .cells--3 li:nth-child(3n) { border-right: 0; } .cells--3 li:nth-last-child(-n+3) { border-bottom: 0; } }
.cells h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.cells p { font-size: 15.5px; line-height: 1.55; color: var(--fg-2); text-wrap: pretty; }
.cells__price { color: var(--gold-1); margin-top: auto; }
.cells__n { color: var(--gold); }
.cells__cta { justify-content: center; }
.cells__cta .btn { align-self: flex-start; }

/* accordion */
.acc { margin: 24px -24px -32px; border-top: 1px solid var(--line-2); }
@media (min-width: 1024px) { .acc { margin: 32px -48px -48px; } }
.acc details { border-bottom: 1px solid var(--line); }
.acc details:last-child { border-bottom: 0; }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
@media (min-width: 1024px) { .acc summary { padding: 22px 48px; } }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font-family: var(--mono); color: var(--gold); font-size: 16px; transition: transform .35s var(--ease); }
.acc details[open] summary::after { transform: rotate(45deg); }
.acc details > div { padding: 0 24px 22px; }
@media (min-width: 1024px) { .acc details > div { padding: 0 48px 26px; } }
.acc details p { color: var(--fg-2); font-size: 16px; max-width: 46em; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 1024px) { .contact { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }
.contact h2 + p { margin-top: 24px; font-size: 18px; color: var(--fg); }
.direct { display: flex; flex-direction: column; margin-top: 28px; }
.direct a { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.direct span { color: var(--fg-3); }
.direct strong { font-weight: 600; font-size: 17px; color: #fff; letter-spacing: -0.01em; word-break: break-all; transition: color .2s; }
.direct a:hover strong { color: var(--gold-1); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field span { color: var(--fg-3); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: #fff; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; outline: none; transition: border-color .2s, background .2s, box-shadow .2s; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--gold); background: rgba(255,255,255,.08); box-shadow: 0 0 0 3px rgba(201,164,58,.18); }
.field input.is-invalid { border-color: #E06B5A; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form .btn--full { grid-column: 1 / -1; margin-top: 4px; }
.form__status { grid-column: 1 / -1; min-height: 16px; margin: 0; color: var(--fg-3); text-transform: none; }
.form__status.is-error { color: #E06B5A; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; width: 100%; margin-top: 64px; color: var(--fg-3); text-transform: none; }
.foot a:hover { color: var(--gold-1); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
  .card { opacity: 1; transform: none; filter: none; }
  .hero > * { opacity: 1; transform: none; }
}
