/* ==========================================================================
   Faraday Arc page (/arc/). Same palette and type as the site, pushed further:
   dark immersive sections, a WebGL hero (arc-scene.js) and scroll-led motion
   (arc.js). Everything is readable without JavaScript; motion is off for
   prefers-reduced-motion.
   ========================================================================== */

.arc-page {
    --arc-night: #01140f;
    --arc-deep: #01261d;
    --arc-green: #014c3b;
    --arc-lime: #afe900;
    --arc-lime-soft: #e6ff73;
    --arc-mint: #9cc3b2;
    --arc-text: #dcebe3;
    --arc-muted: #8fb0a2;
    --arc-line: rgba(255, 255, 255, 0.1);
    --arc-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    background: var(--arc-night);
}

.arc-main em {
    font-style: italic;
}

.arc-main h2 {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.02;
}

/* ---- Header on this page: dark glass over the hero -------------------------- */
.arc-page .header {
    background: rgba(1, 20, 15, 0.9);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    animation: none;
    box-shadow: none;
}

.arc-page .nav-logo,
.arc-page .nav-logo a {
    color: #fff !important;
}

.arc-page .nav-links > a:not(.cta-button),
.arc-page .nav-links > .nav-item > a {
    color: #cfe3d8;
}

.arc-page .nav-links > a:not(.cta-button):hover,
.arc-page .nav-links > .nav-item > a:hover,
.arc-page .nav-links > a[aria-current="page"]:not(.cta-button) {
    color: #fff;
}

.arc-page .nav-links > a:not(.cta-button)::after {
    background: var(--arc-lime);
}

.arc-page .nav-links .cta-button {
    background: var(--arc-lime);
    border-color: var(--arc-lime);
    color: var(--arc-night) !important;
    font-weight: 600;
}

.arc-page .nav-links .cta-button:hover {
    background: var(--arc-lime-soft);
    border-color: var(--arc-lime-soft);
}

.arc-page .mobile-menu-button {
    color: #fff;
}

/* the full menu doesn't fit beside the logo and button below ~1024px */
@media (max-width: 1024px) {
    .arc-page .nav-links {
        display: none;
    }

    .arc-page .mobile-menu-button {
        display: flex !important;
        grid-column: 3;
        justify-self: end;
    }
}

/* keyboard focus must show on the dark sections too */
.arc-hero :focus-visible,
.arc-numbers :focus-visible,
.arc-night :focus-visible,
.arc-ask :focus-visible,
.arc-vs :focus-visible,
.arc-cta :focus-visible {
    outline: 2px solid var(--arc-lime);
    outline-offset: 3px;
}

/* ---- Buttons ---------------------------------------------------------------- */
.arc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 52px;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.25s var(--arc-ease), background-color 0.25s, box-shadow 0.25s, border-color 0.25s, color 0.25s;
}

.arc-btn-go {
    background: var(--arc-lime);
    color: var(--arc-night);
    box-shadow: 0 0 0 0 rgba(175, 233, 0, 0.5), 0 12px 40px -12px rgba(175, 233, 0, 0.6);
}

.arc-btn-go:hover {
    background: var(--arc-lime-soft);
    color: var(--arc-night);
    transform: translateY(-2px);
    box-shadow: 0 0 0 6px rgba(175, 233, 0, 0.14), 0 18px 50px -12px rgba(175, 233, 0, 0.7);
}

.arc-btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.arc-btn-ghost:hover {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.arc-btn:focus-visible {
    outline: 2px solid var(--arc-lime);
    outline-offset: 3px;
}

/* ---- Hero ------------------------------------------------------------------- */
.arc-hero {
    position: relative;
    min-height: max(680px, 100svh);
    padding: calc(var(--header-h) + clamp(1.25rem, 5vh, 4.5rem)) 0 clamp(3.5rem, 8vh, 6rem);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--arc-text);
    background:
        radial-gradient(60% 70% at 72% 52%, rgba(175, 233, 0, 0.13), transparent 60%),
        radial-gradient(50% 60% at 15% 10%, rgba(1, 76, 59, 0.75), transparent 70%),
        linear-gradient(180deg, var(--arc-night) 0%, var(--arc-deep) 100%);
    isolation: isolate;
}

.arc-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.2s var(--arc-ease);
}

.arc-3d .arc-hero-canvas {
    opacity: 1;
}

/* perspective floor grid */
.arc-hero-floor {
    position: absolute;
    left: -25%;
    right: -25%;
    bottom: -8%;
    height: 55%;
    z-index: 0;
    background-image:
        linear-gradient(rgba(175, 233, 0, 0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(175, 233, 0, 0.16) 1px, transparent 1px);
    background-size: 64px 64px;
    transform: perspective(600px) rotateX(68deg);
    transform-origin: 50% 100%;
    -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
    mask-image: linear-gradient(to top, #000 0%, transparent 85%);
    opacity: 0.5;
    pointer-events: none;
}

.arc-hero-grid {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: center;
}

.arc-hero h1 {
    margin: 0 0 1.5rem;
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    color: #fff;
    line-height: 0.92;
    letter-spacing: -0.03em;
}

.arc-h1-name {
    display: block;
    font-size: clamp(3.4rem, min(10.5vw, 15vh), 9.5rem);
}

.arc-h1-name em {
    position: relative;
    display: inline-block;
    color: var(--arc-lime);
    padding-right: 0.06em;
    text-shadow: 0 0 60px rgba(175, 233, 0, 0.35);
}

.arc-h1-arc {
    position: absolute;
    left: -4%;
    bottom: -0.16em;
    width: 108%;
    height: 0.34em;
    overflow: visible;
}

.arc-h1-arc path {
    fill: none;
    stroke: var(--arc-lime);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 340;
    stroke-dashoffset: 0;
    filter: drop-shadow(0 0 8px rgba(175, 233, 0, 0.8));
}

.arc-h1-tag {
    display: block;
    margin-top: 0.45em;
    font-size: clamp(1.5rem, min(3.2vw, 4.6vh), 2.7rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: #fff;
}

.arc-hero-lede {
    max-width: 33rem;
    margin: 0 0 clamp(1.5rem, 3.5vh, 2.25rem);
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    line-height: 1.65;
    color: var(--arc-text);
}

.arc-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.arc-hero-stage {
    position: relative;
    min-height: min(62vh, 560px);
    align-self: stretch;
}

/* static stand-in when WebGL is unavailable */
.arc-hero-fallback {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    max-width: none;
    height: auto;
    border-radius: 10px;
    transform: translate(-50%, -50%) perspective(1200px) rotateY(-14deg) rotateX(6deg);
    box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

html:not(.arc-early-js) .arc-hero-fallback,
.arc-no3d .arc-hero-fallback {
    display: block;
}

/* on small screens the still screenshot is the subject: keep the chips off it */
@media (max-width: 900px) {
    html:not(.arc-early-js) .arc-pings,
    .arc-no3d .arc-pings {
        display: none;
    }
}

/* floating "live" notifications */
.arc-pings {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    pointer-events: none;
}

.arc-ping {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.95rem 0.6rem 0.75rem;
    border-radius: 999px;
    background: rgba(1, 30, 23, 0.62);
    border: 1px solid rgba(175, 233, 0, 0.28);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--arc-text);
    font-size: 0.86rem;
    white-space: nowrap;
    box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.8);
}

.arc-ping::before {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--arc-lime);
    box-shadow: 0 0 12px var(--arc-lime);
}

.arc-ping b {
    color: #fff;
    font-weight: 600;
}

.arc-ping.is-flag::before {
    background: #ffb547;
    box-shadow: 0 0 12px #ffb547;
}

.arc-ping.is-cast::before {
    background: var(--arc-mint);
    box-shadow: 0 0 12px var(--arc-mint);
}

.arc-ping.is-ok { top: 6%; left: 2%; }
.arc-ping.is-flag { bottom: 16%; right: -3%; }
.arc-ping.is-cast { bottom: 3%; left: 6%; }

.arc-scroll {
    position: absolute;
    left: 50%;
    bottom: 1.6rem;
    z-index: 2;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
}

.arc-scroll span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--arc-lime);
}

/* ---- Numbers band ----------------------------------------------------------- */
.arc-numbers {
    position: relative;
    padding: clamp(2.5rem, 5vw, 3.75rem) 0;
    background: var(--arc-deep);
    border-top: 1px solid var(--arc-line);
    border-bottom: 1px solid var(--arc-line);
    color: var(--arc-text);
}

.arc-numbers ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.arc-numbers li {
    display: grid;
    gap: 0.4rem;
    padding-left: 1.25rem;
    border-left: 1px solid rgba(175, 233, 0, 0.35);
}

.arc-numbers strong {
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: clamp(2.6rem, 4.8vw, 4.2rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--arc-lime);
    font-variant-numeric: tabular-nums;
}

.arc-numbers li > span {
    font-size: 0.95rem;
    line-height: 1.45;
    color: var(--arc-mint);
}

/* ---- Night timeline --------------------------------------------------------- */
.arc-night {
    --p: 0;
    position: relative;
    padding: clamp(5rem, 11vw, 9rem) 0;
    overflow: hidden;
    color: var(--arc-text);
    background:
        radial-gradient(80% 60% at 50% 120%, rgba(175, 233, 0, calc(0.05 + var(--p) * 0.22)), transparent 70%),
        linear-gradient(180deg, var(--arc-night), #02201a);
}

.arc-night-sky {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.7), transparent 60%),
        radial-gradient(1px 1px at 28% 62%, rgba(255, 255, 255, 0.5), transparent 60%),
        radial-gradient(1.5px 1.5px at 47% 12%, rgba(255, 255, 255, 0.6), transparent 60%),
        radial-gradient(1px 1px at 66% 40%, rgba(255, 255, 255, 0.45), transparent 60%),
        radial-gradient(1.5px 1.5px at 84% 22%, rgba(255, 255, 255, 0.7), transparent 60%),
        radial-gradient(1px 1px at 92% 70%, rgba(255, 255, 255, 0.4), transparent 60%),
        radial-gradient(1px 1px at 6% 82%, rgba(255, 255, 255, 0.4), transparent 60%),
        radial-gradient(1.5px 1.5px at 56% 78%, rgba(255, 255, 255, 0.35), transparent 60%);
    opacity: calc(1 - var(--p) * 0.8);
    pointer-events: none;
}

.arc-night-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.arc-night-head {
    position: sticky;
    top: calc(var(--header-h) + 3rem);
}

.arc-night h2 {
    margin: 0 0 1rem;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    color: #fff;
}

.arc-night h2 em,
.arc-story h2 em,
.arc-ask h2 em,
.arc-files h2 em,
.arc-vs h2 em,
.arc-plans h2 em,
.arc-cta h2 em {
    color: var(--arc-lime);
}

.arc-night-head > p {
    margin: 0 0 2rem;
    color: var(--arc-muted);
}

.arc-dial {
    width: clamp(160px, 18vw, 220px);
    height: auto;
    overflow: visible;
}

.arc-dial circle {
    fill: none;
    stroke-width: 3;
}

.arc-dial-track {
    stroke: rgba(255, 255, 255, 0.1);
}

.arc-dial-fill {
    stroke: var(--arc-lime);
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: calc(1 - var(--p));
    transform: rotate(-90deg);
    transform-origin: 100px 100px;
    filter: drop-shadow(0 0 6px rgba(175, 233, 0, 0.7));
}

.arc-dial-hand {
    transform: rotate(calc(var(--p) * 360deg));
    transform-origin: 100px 100px;
}

.arc-dial-hand line {
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
}

.arc-dial-hand circle {
    fill: var(--arc-lime);
    stroke: none;
}

.arc-night-list {
    position: relative;
    margin: 0;
    padding: 0 0 0 2.25rem;
    list-style: none;
}

.arc-night-list::before,
.arc-night-list::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 0.6rem;
    bottom: 0.6rem;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.arc-night-list::after {
    bottom: auto;
    height: calc((100% - 1.2rem) * var(--p));
    background: linear-gradient(var(--arc-mint), var(--arc-lime));
    box-shadow: 0 0 12px rgba(175, 233, 0, 0.6);
}

.arc-night-item {
    position: relative;
    padding: 0 0 clamp(2.5rem, 6vh, 4rem);
}

.arc-night-item:last-child {
    padding-bottom: 0;
}

.arc-night-item::before {
    content: "";
    position: absolute;
    left: calc(-2.25rem + 1px);
    top: 0.55rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--arc-night);
    border: 2px solid rgba(255, 255, 255, 0.25);
    transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.arc-night-item.is-on::before {
    background: var(--arc-lime);
    border-color: var(--arc-lime);
    box-shadow: 0 0 16px var(--arc-lime);
}

.arc-night-item time {
    display: block;
    font-family: "Instrument Serif", serif;
    font-size: clamp(2.4rem, 4.6vw, 3.6rem);
    line-height: 1;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.arc-night-item time small {
    margin-left: 0.3rem;
    font-size: 0.4em;
    letter-spacing: 0.06em;
    color: var(--arc-mint);
}

.arc-night-item p {
    max-width: 30rem;
    margin: 0.5rem 0 0;
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    line-height: 1.5;
    color: var(--arc-text);
}

.arc-night-item:last-child time {
    color: var(--arc-lime);
}

.arc-js .arc-night-item {
    opacity: 0.35;
    transition: opacity 0.5s var(--arc-ease);
}

.arc-js .arc-night-item.is-on {
    opacity: 1;
}

/* ---- Story: sticky screen ---------------------------------------------------- */
.arc-story {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background: #f4f6f4;
    color: var(--ink);
}

.arc-story h2 {
    max-width: 14ch;
    margin: 0 0 clamp(2.5rem, 6vw, 4.5rem);
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    color: var(--arc-deep);
}

.arc-story h2 em {
    color: var(--arc-green);
}

.arc-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(2rem, 5vw, 4.5rem);
}

.arc-chapter {
    min-height: 62vh;
    padding: 1rem 0 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.arc-chapter-n::before {
    content: attr(data-n);
}

.arc-chapter-n {
    display: block;
    font-family: "Instrument Serif", serif;
    font-size: clamp(4.5rem, 9vw, 7.5rem);
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--arc-green);
    opacity: 0.35;
    transition: opacity 0.5s, color 0.5s;
}

.arc-chapter.is-active .arc-chapter-n {
    opacity: 1;
    color: var(--arc-lime);
    -webkit-text-stroke-color: var(--arc-green);
}

.arc-chapter h3 {
    margin: 0.75rem 0 0.75rem;
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: clamp(2rem, 3.2vw, 2.7rem);
    line-height: 1.05;
    color: var(--arc-deep);
}

.arc-chapter p {
    max-width: 28rem;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.65;
    color: var(--ink-soft);
}

.arc-chapter-shot {
    display: none;
    margin: 1.75rem 0 0;
}

.arc-screen-wrap {
    position: relative;
}

.arc-screen {
    position: sticky;
    top: calc(var(--header-h) + 8vh);
    border-radius: 14px;
    background: #0b1512;
    padding: 0 0 10px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 60px 120px -50px rgba(1, 38, 29, 0.6),
        0 30px 60px -30px rgba(1, 38, 29, 0.5);
    transform: perspective(1400px) rotateY(var(--ry, -9deg)) rotateX(var(--rx, 4deg));
    transition: transform 0.6s var(--arc-ease);
}

.arc-screen::after {
    content: "";
    position: absolute;
    inset: -40px -30px -60px;
    z-index: -1;
    border-radius: 40px;
    background: radial-gradient(closest-side, rgba(175, 233, 0, 0.35), transparent);
    filter: blur(20px);
    opacity: 0.6;
}

.arc-screen-bar {
    display: flex;
    gap: 7px;
    padding: 12px 14px;
}

.arc-screen-bar i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #2a3a35;
}

.arc-screen-bar i:first-child {
    background: var(--arc-lime);
}

.arc-screen-body {
    position: relative;
    margin: 0 10px;
    aspect-ratio: 1600 / 1000;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.arc-screen-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    display: flex;
    align-items: center;
    background: #fff;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.6s var(--arc-ease), transform 0.8s var(--arc-ease);
    pointer-events: none;
}

.arc-screen-slide.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.arc-shot-link {
    display: block;
    width: 100%;
    cursor: zoom-in;
}

.arc-shot-link img {
    display: block;
    width: 100%;
    height: auto;
}

/* ---- Ask Arc ------------------------------------------------------------------- */
.arc-ask {
    position: relative;
    padding: clamp(5rem, 10vw, 8rem) 0;
    overflow: hidden;
    color: var(--arc-text);
    background:
        radial-gradient(50% 70% at 85% 50%, rgba(175, 233, 0, 0.1), transparent 70%),
        var(--arc-deep);
}

.arc-ask-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}

.arc-ask h2 {
    margin: 0 0 1.25rem;
    font-size: clamp(2.8rem, 6vw, 5rem);
    color: #fff;
}

.arc-ask-copy p {
    max-width: 28rem;
    margin: 0 0 1.75rem;
    font-size: 1.12rem;
    line-height: 1.65;
}

.arc-ask-shot {
    font-weight: 600;
    color: var(--arc-lime-soft);
    text-decoration: none;
    border-bottom: 1px solid rgba(230, 255, 115, 0.4);
    cursor: zoom-in;
}

.arc-ask-shot:hover {
    color: #fff;
    border-color: #fff;
}

.arc-chat {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(175, 233, 0, 0.06);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.arc-chat-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--arc-line);
}

.arc-chat-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.arc-chat-bar span {
    margin-left: auto;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--arc-muted);
}

.arc-chat-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 330px;
    padding: 1.6rem 1.5rem 1rem;
}

.arc-msg {
    margin: 0;
    max-width: 88%;
    font-size: 1.05rem;
    line-height: 1.6;
}

.arc-msg-you {
    align-self: flex-end;
    padding: 0.8rem 1.1rem;
    border-radius: 18px 18px 4px 18px;
    background: var(--arc-lime);
    color: var(--arc-night);
    font-weight: 500;
}

.arc-msg-status {
    margin: 0;
    font-size: 0.85rem;
    color: var(--arc-muted);
}

.arc-msg-arc {
    align-self: flex-start;
    padding: 1rem 1.2rem;
    border-radius: 18px 18px 18px 4px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
}

.arc-msg-arc p {
    margin: 0;
}

.arc-msg-arc mark {
    padding: 0 0.2em;
    border-radius: 4px;
    background: rgba(175, 233, 0, 0.2);
    color: var(--arc-lime-soft);
}

.arc-source {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.9rem !important;
    padding: 0.4rem 0.7rem;
    border-radius: 8px;
    background: rgba(1, 20, 15, 0.6);
    border: 1px solid rgba(175, 233, 0, 0.3);
    font-size: 0.82rem;
    color: var(--arc-text);
}

.arc-source span {
    font-weight: 600;
    color: var(--arc-lime);
}

.arc-chat-note {
    margin: 0;
    padding: 0 1.5rem 1.2rem;
    font-size: 0.78rem;
    color: var(--arc-muted);
}

.arc-chat-replay {
    position: absolute;
    right: 1rem;
    bottom: 0.9rem;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: transparent;
    color: var(--arc-text);
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
}

.arc-chat-replay:hover {
    border-color: var(--arc-lime);
    color: #fff;
}

.arc-chat-replay[hidden] {
    display: none;
}

/* chat animation states (arc.js drives them) */
.arc-chat.is-pending .arc-msg-you,
.arc-chat.is-pending .arc-msg-status,
.arc-chat.is-pending .arc-msg-arc,
.arc-chat.is-pending .arc-source {
    opacity: 0;
    transform: translateY(10px);
}

.arc-chat .arc-msg-you,
.arc-chat .arc-msg-status,
.arc-chat .arc-msg-arc,
.arc-chat .arc-source {
    transition: opacity 0.45s var(--arc-ease), transform 0.45s var(--arc-ease);
}

.arc-chat.show-you .arc-msg-you,
.arc-chat.show-status .arc-msg-status,
.arc-chat.show-arc .arc-msg-arc,
.arc-chat.show-source .arc-source {
    opacity: 1;
    transform: none;
}

.arc-chat.show-arc .arc-msg-status {
    opacity: 0;
    height: 0;
    margin-top: -1rem;
}

.arc-msg-status::after {
    content: "";
    display: inline-block;
    width: 0.5em;
}

.arc-chat.show-status:not(.show-arc) .arc-msg-status {
    background: linear-gradient(90deg, var(--arc-muted) 0%, #fff 50%, var(--arc-muted) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: arc-shimmer 1.4s linear infinite;
}

.arc-caret::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1.1em;
    margin-left: 2px;
    vertical-align: -0.2em;
    background: var(--arc-lime);
    animation: arc-blink 0.9s steps(1) infinite;
}

/* ---- Try it: the in-browser playground (playground.js) ------------------------------- */
.arc-try {
    position: relative;
    padding: clamp(5rem, 10vw, 8rem) 0;
    color: var(--arc-text);
    background:
        radial-gradient(55% 45% at 50% 0%, rgba(175, 233, 0, 0.12), transparent 70%),
        radial-gradient(70% 60% at 100% 100%, rgba(1, 76, 59, 0.6), transparent 70%),
        var(--arc-night);
}

.arc-try :focus-visible {
    outline: 2px solid var(--arc-lime);
    outline-offset: 2px;
}

.arc-try-head {
    max-width: 46rem;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.arc-try h2 {
    margin: 0 0 1.1rem;
    font-size: clamp(2.6rem, 5.6vw, 4.8rem);
    color: #fff;
}

.arc-try h2 em {
    color: var(--arc-lime);
}

.arc-try-head p {
    margin: 0 auto;
    max-width: 38rem;
    font-size: 1.12rem;
    line-height: 1.65;
}

.arc-try-note {
    max-width: 46rem;
    margin: 1.4rem auto 0;
    font-size: 0.85rem;
    line-height: 1.55;
    text-align: center;
    color: var(--arc-muted);
}

.arc-pg {
    position: relative;
}

/* hold the window's space while it loads, so the page below doesn't jump */
.arc-early-js .arc-pg {
    min-height: 560px;
}

.arc-pg > p {
    margin: 0;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--arc-muted);
}

.arc-pg a {
    color: var(--arc-lime-soft);
}

.arc-pg-loading,
.arc-pg-failed { display: none; }
.arc-early-js .arc-pg-fallback { display: none; }
.arc-pg.is-loading .arc-pg-loading,
.arc-pg.is-failed .arc-pg-failed { display: block; }
.arc-early-js .arc-pg.is-ready { min-height: 0; }

/* the window: the app's own light palette */
.pg-win {
    --pg-ink: #1f2a27;
    --pg-soft: #4a5652;
    --pg-muted: #6b7672;
    --pg-rule: #e3e6e4;
    --pg-rule-strong: #cfd5d2;
    --pg-tint: #eef4f1;
    --pg-alt: #f7f8f7;
    --pg-green: #014c3b;
    --pg-high: #d03b3b;
    --pg-medium: #fab219;
    --pg-low: #8a9590;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    color: var(--pg-ink);
    box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(175, 233, 0, 0.18), 0 0 80px -20px rgba(175, 233, 0, 0.18);
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: left;
}

.pg-win button,
.pg-win input,
.pg-win select {
    font: inherit;
    color: inherit;
}

.pg-win :focus-visible {
    outline: 2px solid var(--pg-green);
    outline-offset: 1px;
}

.pg-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.pg-titlebar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.8rem;
    padding: 0.7rem 1rem;
    background: var(--pg-green);
    color: #fff;
}

.pg-dots {
    display: inline-flex;
    gap: 6px;
}

.pg-dots i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

.pg-titlebar strong {
    font-family: "Instrument Serif", serif;
    font-size: 1.2rem;
    font-weight: 400;
}

.pg-sample {
    font-size: 0.8rem;
    color: #b7cfc4;
}

.pg-local {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-left: auto;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(175, 233, 0, 0.14);
    color: #e6ff73;
    font-size: 0.78rem;
    font-weight: 600;
}

.pg-local i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #afe900;
    box-shadow: 0 0 0 3px rgba(175, 233, 0, 0.25);
}

.pg-try {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--pg-rule);
    background: var(--pg-tint);
}

.pg-try-label {
    margin-right: 0.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pg-muted);
}

.pg-chip {
    min-height: 2.15rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--pg-rule-strong);
    border-radius: 999px;
    background: #fff;
    font-size: 0.85rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s, opacity 0.2s;
}

.pg-chip:hover:not(:disabled) {
    border-color: var(--pg-green);
    color: var(--pg-green);
}

.pg-chip.is-hero {
    border-color: var(--pg-green);
    background: var(--pg-green);
    color: #fff;
    font-weight: 600;
}

.pg-chip.is-hero:hover:not(:disabled) {
    background: #013a2d;
    color: #fff;
}

.pg-chip:disabled {
    opacity: 0.45;
    cursor: default;
}

.pg-chip.is-reset {
    border-style: dashed;
}

.pg-status {
    margin: 0;
    font-size: 0.82rem;
    color: var(--pg-green);
}

.pg-status.is-on {
    background: linear-gradient(90deg, var(--pg-muted) 0%, var(--pg-green) 50%, var(--pg-muted) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: arc-shimmer 1.2s linear infinite;
}

.pg-main {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    min-height: 520px;
}

/* ledger */
.pg-ledger {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-right: 1px solid var(--pg-rule);
}

.pg-ledger-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.75rem;
    padding: 0.9rem 1rem 0.6rem;
}

.pg-ledger-head h3 {
    margin: 0;
    font-family: "Instrument Serif", serif;
    font-size: 1.45rem;
    font-weight: 400;
    color: var(--pg-green);
}

.pg-count,
.pg-total {
    font-size: 0.82rem;
    color: var(--pg-muted);
}

.pg-total {
    font-weight: 600;
    color: var(--pg-ink);
    font-variant-numeric: tabular-nums;
}

.pg-add {
    margin-left: auto;
    min-height: 2.15rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--pg-rule-strong);
    border-radius: 6px;
    background: #fff;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
}

.pg-add:hover:not(:disabled) {
    border-color: var(--pg-green);
    color: var(--pg-green);
}

.pg-add:disabled {
    opacity: 0.45;
    cursor: default;
}

.pg-cols,
.pg-row {
    display: grid;
    grid-template-columns: 7.6rem minmax(0, 1fr) 8.6rem 5.4rem 1.6rem;
    gap: 0.4rem;
    align-items: center;
    padding: 0 0.75rem 0 1rem;
}

.pg-cols {
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--pg-rule);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pg-muted);
}

.pg-cols span:nth-child(4) {
    text-align: right;
    padding-right: 0.4rem;
}

.pg-scroll {
    flex: 1;
    max-height: 520px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.pg-rows {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pg-row {
    position: relative;
    min-height: 3.1rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid var(--pg-rule);
    transition: background 0.3s;
}

.pg-row:hover,
.pg-row:focus-within {
    background: var(--pg-alt);
}

.pg-flag {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
}

.pg-row[data-sev="high"] .pg-flag { background: var(--pg-high); }
.pg-row[data-sev="medium"] .pg-flag { background: var(--pg-medium); }
.pg-row[data-sev="low"] .pg-flag { background: #b9c1bd; }
.pg-row[data-sev="high"] { background: #fdf3f2; }

.pg-row input,
.pg-row select {
    width: 100%;
    min-width: 0;
    height: 2.15rem;
    padding: 0 0.4rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    font-size: 0.86rem;
}

.pg-row input:hover,
.pg-row select:hover {
    border-color: var(--pg-rule-strong);
    background: #fff;
}

.pg-row input:focus,
.pg-row select:focus {
    border-color: var(--pg-green);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 76, 59, 0.12);
}

.pg-row select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 1.3rem;
    color: var(--pg-soft);
    text-overflow: ellipsis;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b7672' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 0.4rem center / 0.6rem;
    cursor: pointer;
}

.pg-date {
    color: var(--pg-soft);
    font-variant-numeric: tabular-nums;
}

.pg-who {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pg-payee {
    font-weight: 600;
    height: 1.75rem !important;
}

.pg-src {
    display: flex;
    min-width: 0;
    padding: 0 0.45rem;
    font-size: 0.72rem;
    color: var(--pg-muted);
    white-space: nowrap;
}

.pg-src-f {
    overflow: hidden;
    text-overflow: ellipsis;
}

.pg-src-r {
    flex: none;
    white-space: pre;
}

.pg-amt {
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pg-del {
    width: 1.8rem;
    height: 1.8rem;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--pg-muted);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s;
}

.pg-row:hover .pg-del,
.pg-row:focus-within .pg-del,
.pg-del:focus-visible {
    opacity: 1;
}

.pg-del:hover {
    background: #fbe7e4;
    color: #a33a2a;
}

@media (hover: none) {
    .pg-del { opacity: 0.7; }
}

.pg-row.is-fresh { animation: pg-fresh 2.4s var(--arc-ease) both; }
.pg-row.is-pointed { animation: pg-point 1.6s var(--arc-ease) both; }

@keyframes pg-fresh {
    0% { background: rgba(175, 233, 0, 0.55); transform: translateX(-8px); opacity: 0; }
    15% { transform: none; opacity: 1; }
    100% { background: transparent; }
}

@keyframes pg-point {
    0%, 40% { background: rgba(175, 233, 0, 0.45); box-shadow: inset 0 0 0 2px var(--pg-green); }
    100% { background: transparent; box-shadow: inset 0 0 0 2px transparent; }
}

/* panel */
.pg-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--pg-alt);
}

.pg-tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.6rem 0.8rem 0;
    border-bottom: 1px solid var(--pg-rule);
}

.pg-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.5rem;
    padding: 0.4rem 0.9rem;
    margin-bottom: -1px;
    border: 1px solid transparent;
    border-radius: 8px 8px 0 0;
    background: transparent;
    font-weight: 600;
    color: var(--pg-muted);
    cursor: pointer;
}

.pg-tab:hover {
    color: var(--pg-ink);
}

.pg-tab[aria-selected="true"] {
    border-color: var(--pg-rule);
    border-bottom-color: #fff;
    background: #fff;
    color: var(--pg-green);
}

.pg-badge {
    min-width: 1.35rem;
    padding: 0.05rem 0.4rem;
    border-radius: 999px;
    background: var(--pg-rule);
    color: var(--pg-ink);
    font-size: 0.74rem;
    text-align: center;
}

.pg-badge[data-high="1"] {
    background: var(--pg-high);
    color: #fff;
}

.pg-badge.is-bump { animation: pg-bump 0.9s var(--arc-ease); }

@keyframes pg-bump {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(208, 59, 59, 0.5); }
    30% { transform: scale(1.35); }
    100% { transform: scale(1); box-shadow: 0 0 0 12px rgba(208, 59, 59, 0); }
}

.pg-pane {
    flex: 1;
    max-height: 560px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem 1.1rem 1.2rem;
    background: #fff;
}

.pg-pane[hidden] { display: none; }
.pg-pane:focus-visible { outline-offset: -2px; }

.pg-lede {
    margin: 0 0 0.8rem;
    font-weight: 700;
}

.pg-lede-sub {
    font-weight: 400;
    color: var(--pg-muted);
}

.pg-findings {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pg-finding {
    padding: 0.75rem 0.9rem 0.8rem;
    border: 1px solid var(--pg-rule);
    border-left-width: 3px;
    border-radius: 4px;
    background: #fff;
}

.pg-b-high { border-left-color: var(--pg-high); }
.pg-b-medium { border-left-color: var(--pg-medium); }
.pg-b-low { border-left-color: #b9c1bd; }

.pg-finding.is-new { animation: pg-new 2.6s var(--arc-ease) both; }

@keyframes pg-new {
    0% { opacity: 0; transform: translateY(-10px) scale(0.98); box-shadow: 0 0 0 0 rgba(208, 59, 59, 0); }
    12% { opacity: 1; transform: none; box-shadow: 0 0 0 6px rgba(208, 59, 59, 0.22); background: #fff6f5; }
    100% { box-shadow: 0 0 0 0 rgba(208, 59, 59, 0); background: #fff; }
}

.pg-findings.is-done .pg-finding { opacity: 0.7; }

.pg-f-title {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    margin: 0;
    font-weight: 600;
}

.pg-sev {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.08rem;
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 800;
    color: #fff;
}

.pg-sev-high { background: var(--pg-high); }
.pg-sev-medium { background: var(--pg-medium); color: #3d2c00; }
.pg-sev-low { background: var(--pg-low); font-family: Georgia, serif; font-style: italic; }

.pg-f-detail {
    margin: 0.35rem 0 0;
    font-size: 0.86rem;
    color: var(--pg-soft);
}

.pg-f-src {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.55rem 0 0;
}

.pg-src-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    min-height: 1.9rem;
    padding: 0.2rem 0.55rem;
    border: 1px solid #c8dad2;
    border-radius: 6px;
    background: var(--pg-tint);
    font-size: 0.76rem !important;
    color: var(--pg-ink);
    text-align: left;
    cursor: pointer;
}

.pg-src-chip:hover {
    border-color: var(--pg-green);
}

.pg-src-k {
    font-weight: 700;
    color: var(--pg-green);
}

.pg-fine {
    margin-top: 0.6rem;
    min-height: 2rem;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--pg-rule-strong);
    border-radius: 6px;
    background: #fff;
    font-size: 0.8rem !important;
    cursor: pointer;
}

.pg-fine:hover {
    border-color: var(--pg-green);
    color: var(--pg-green);
}

.pg-done {
    margin-top: 1rem;
}

.pg-done summary {
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pg-muted);
    cursor: pointer;
}

.pg-toast {
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.8rem;
    z-index: 2;
    display: flex;
    gap: 0.55rem;
    align-items: center;
    padding: 0.7rem 0.9rem;
    border: 0;
    border-radius: 10px;
    background: var(--pg-ink);
    color: #fff !important;
    font-size: 0.86rem !important;
    text-align: left;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    animation: arc-pop 0.5s var(--arc-ease) both;
}

.pg-toast[hidden] { display: none; }

.pg-toast-go {
    margin-left: auto;
    white-space: nowrap;
    color: #e6ff73;
    font-weight: 600;
}

/* forecast */
.pg-k {
    margin: 0;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--pg-muted);
}

.pg-big {
    display: block;
    margin: 0.2rem 0 0.1rem;
    font-family: "Instrument Serif", serif;
    font-size: clamp(2.2rem, 4vw, 2.9rem);
    line-height: 1.05;
    color: var(--pg-green);
    font-variant-numeric: tabular-nums;
}

.pg-range {
    margin: 0 0 0.6rem;
    font-size: 0.84rem;
    color: var(--pg-soft);
}

.pg-chart {
    margin: 0.4rem 0 0.8rem;
}

.pg-chart-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.pg-axis { stroke: var(--pg-rule-strong); stroke-width: 1; }
.pg-hit { fill: transparent; }
.pg-bar-g { cursor: default; outline: none; }
.pg-bar-g.is-actual .pg-bar { fill: var(--pg-green); }
.pg-bar-g.is-forecast .pg-bar { fill: rgba(1, 76, 59, 0.16); stroke: var(--pg-green); stroke-width: 1.5; stroke-dasharray: 3 2; }
.pg-whisker { stroke: var(--pg-ink); stroke-width: 1.5; stroke-linecap: round; }
.pg-tick { font-size: 10px; fill: var(--pg-muted); }
.pg-bar-g.is-hot .pg-hit,
.pg-bar-g:focus-visible .pg-hit { fill: rgba(1, 76, 59, 0.07); }
.pg-bar-g.is-hot .pg-tick { fill: var(--pg-ink); font-weight: 700; }
.pg-bar { transition: d 0.5s var(--arc-ease); }

.pg-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
    margin-top: 0.35rem;
    font-size: 0.76rem;
    color: var(--pg-soft);
}

.pg-key::before {
    content: "";
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    margin-right: 0.35rem;
    border-radius: 2px;
    vertical-align: -0.08rem;
}

.pg-key.is-actual::before { background: var(--pg-green); }
.pg-key.is-forecast::before { background: rgba(1, 76, 59, 0.16); border: 1.5px dashed var(--pg-green); }

.pg-readout {
    min-height: 1.3em;
    margin: 0.3rem 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pg-ink);
}

.pg-stats {
    display: grid;
    gap: 0.6rem;
    margin: 0;
}

.pg-stats > div {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--pg-rule);
    border-radius: 6px;
}

.pg-stats dt {
    font-size: 0.78rem;
    color: var(--pg-muted);
}

.pg-stats dd {
    margin: 0.1rem 0 0;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.pg-stats dd.pg-stat-sub {
    font-size: 0.76rem;
    font-weight: 400;
    color: var(--pg-soft);
}

/* ask */
.pg-ask-form {
    display: flex;
    gap: 0.4rem;
}

.pg-ask-input {
    flex: 1;
    min-width: 0;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid var(--pg-rule-strong);
    border-radius: 8px;
    background: #fff;
}

.pg-ask-input:focus {
    border-color: var(--pg-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 76, 59, 0.12);
}

.pg-ask-go {
    height: 2.5rem;
    padding: 0 1rem;
    border: 0;
    border-radius: 8px;
    background: var(--pg-green);
    color: #fff !important;
    font-weight: 600;
    cursor: pointer;
}

.pg-ask-go:hover { background: #013a2d; }

.pg-suggest {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.65rem 0 0.9rem;
}

.pg-chip.is-q {
    min-height: 1.9rem;
    padding: 0.2rem 0.7rem;
    font-size: 0.78rem;
    background: var(--pg-alt);
}

.pg-you {
    width: fit-content;
    max-width: 90%;
    margin: 0 0 0.6rem auto;
    padding: 0.55rem 0.85rem;
    border-radius: 14px 14px 4px 14px;
    background: var(--pg-green);
    color: #fff;
    font-weight: 500;
}

.pg-reply {
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--pg-rule);
    border-radius: 14px 14px 14px 4px;
    background: var(--pg-alt);
    animation: arc-pop 0.45s var(--arc-ease) both;
}

.pg-read {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    margin: 0 0 0.6rem;
}

.pg-read-k {
    margin-right: 0.2rem;
    font-size: 0.74rem;
    color: var(--pg-muted);
}

.pg-tag {
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--pg-rule);
    font-size: 0.76rem;
}

.pg-tag b {
    font-weight: 600;
    color: var(--pg-muted);
}

.pg-reply-line {
    margin: 0 0 0.3rem;
}

.pg-link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--pg-green) !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.pg-sum {
    margin: 0 0 0.7rem;
}

.pg-sum-v {
    font-family: "Instrument Serif", serif;
    font-size: 1.9rem;
    line-height: 1.1;
    color: var(--pg-green);
    font-variant-numeric: tabular-nums;
}

.pg-sum-k {
    color: var(--pg-soft);
}

.pg-groups {
    display: grid;
    gap: 0.3rem;
    margin: 0 0 0.8rem;
    padding: 0;
    list-style: none;
    font-size: 0.8rem;
}

.pg-groups li {
    display: grid;
    grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) auto;
    gap: 0.6rem;
    align-items: center;
}

.pg-g-l {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pg-g-bar {
    height: 0.6rem;
}

.pg-g-bar i {
    display: block;
    height: 100%;
    border-radius: 0 4px 4px 0;
    background: var(--pg-green);
}

.pg-g-v {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pg-hits {
    display: grid;
    gap: 0.35rem;
    margin: 0.4rem 0 0;
    padding: 0;
    list-style: none;
}

.pg-hits li {
    display: grid;
    grid-template-columns: 6.6rem minmax(0, 1fr) auto;
    gap: 0.15rem 0.6rem;
    align-items: center;
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--pg-rule);
    font-size: 0.82rem;
}

.pg-h-d { color: var(--pg-muted); font-variant-numeric: tabular-nums; }
.pg-h-p { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.pg-h-v { font-weight: 600; font-variant-numeric: tabular-nums; }
.pg-hits .pg-src-chip { grid-column: 2 / -1; justify-self: start; min-height: 1.6rem; }

.pg-more {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    color: var(--pg-muted);
}

@media (max-width: 1000px) {
    .pg-main { grid-template-columns: minmax(0, 1fr); }
    .pg-ledger { border-right: 0; border-bottom: 1px solid var(--pg-rule); }
    .pg-scroll { max-height: 360px; }
    .pg-pane { max-height: none; }
    .pg-toast { position: sticky; margin: 0 0.8rem 0.8rem; }
}

@media (max-width: 640px) {
    .arc-try-head { text-align: left; }
    .arc-try-note { text-align: left; }
    .pg-win { border-radius: 12px; margin: 0 -0.25rem; }
    .pg-local { margin-left: auto; font-size: 0.72rem; }
    .pg-try { gap: 0.4rem; padding: 0.7rem 0.8rem; }
    .pg-try-label { width: 100%; }
    .pg-cols { display: none; }
    .pg-row {
        grid-template-columns: minmax(0, 1fr) 6.4rem 1.8rem;
        grid-template-areas: "who amt del" "date cat cat";
        gap: 0 0.3rem;
        padding: 0.45rem 0.5rem 0.45rem 0.8rem;
    }
    .pg-who { grid-area: who; }
    .pg-amt { grid-area: amt; }
    .pg-del { grid-area: del; }
    .pg-date { grid-area: date; height: 1.9rem !important; font-size: 0.8rem !important; }
    .pg-cat { grid-area: cat; height: 1.9rem !important; font-size: 0.8rem !important; }
    .pg-pane { padding: 0.9rem 0.8rem 1rem; }
    .pg-tab { padding: 0.4rem 0.7rem; }
    .pg-hits li { grid-template-columns: minmax(0, 1fr) auto; }
    .pg-h-d { grid-column: 1 / -1; font-size: 0.74rem; }
    .pg-hits .pg-src-chip { grid-column: 1 / -1; }
    .pg-groups li { grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
    .pg-row.is-fresh,
    .pg-row.is-pointed,
    .pg-finding.is-new,
    .pg-badge.is-bump,
    .pg-reply,
    .pg-toast,
    .pg-status.is-on { animation: none; }
    .pg-status.is-on { color: var(--pg-green); }
    .pg-row.is-pointed { box-shadow: inset 0 0 0 2px var(--pg-green); }
}

/* ---- Files orbit ----------------------------------------------------------------- */
.arc-files {
    padding: clamp(5rem, 10vw, 8rem) 0;
    background: #eef4f1;
    color: var(--ink);
    overflow: hidden;
}

.arc-files-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.arc-files h2 {
    margin: 0 0 1.25rem;
    font-size: clamp(2.6rem, 5.4vw, 4.6rem);
    color: var(--arc-deep);
}

.arc-files h2 em {
    color: var(--arc-green);
}

.arc-files-copy p {
    max-width: 28rem;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--ink-soft);
}

.arc-orbit {
    --size: min(520px, 86vw);
    position: relative;
    width: var(--size);
    height: var(--size);
    margin: 0 auto;
}

.arc-orbit::before,
.arc-orbit::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(1, 76, 59, 0.25);
}

.arc-orbit::before { inset: 21%; }
.arc-orbit::after { inset: 2%; }

.arc-orbit-core {
    position: absolute;
    inset: 37%;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #0f4a3a, var(--arc-night) 70%);
    box-shadow: 0 0 0 8px rgba(175, 233, 0, 0.12), 0 0 60px rgba(175, 233, 0, 0.45), 0 30px 60px -20px rgba(1, 38, 29, 0.7);
}

.arc-orbit-core span {
    font-family: "Instrument Serif", serif;
    font-style: italic;
    font-size: calc(var(--size) * 0.1);
    color: var(--arc-lime);
}

.arc-orbit-ring {
    position: absolute;
    margin: 0;
    padding: 0;
    list-style: none;
    border-radius: 50%;
}

.arc-orbit-ring.is-inner { inset: 21%; --r: calc(var(--size) * 0.29); --spin: 60s; }
.arc-orbit-ring.is-outer { inset: 2%; --r: calc(var(--size) * 0.48); --spin: 90s; }

.arc-orbit-ring li {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: rotate(calc(360deg / var(--n) * var(--i))) translateX(var(--r)) rotate(calc(-360deg / var(--n) * var(--i)));
}

.arc-orbit-ring li span {
    display: block;
    translate: -50% -50%;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(1, 76, 59, 0.15);
    box-shadow: 0 10px 24px -14px rgba(1, 38, 29, 0.45);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--arc-deep);
    white-space: nowrap;
}

.arc-orbit-ring.is-inner li span {
    background: var(--arc-deep);
    border-color: transparent;
    color: #fff;
}

/* ---- Versus ------------------------------------------------------------------------ */
.arc-vs {
    padding: clamp(5rem, 10vw, 8rem) 0;
    color: var(--arc-text);
    background:
        radial-gradient(60% 50% at 0% 0%, rgba(1, 76, 59, 0.7), transparent 70%),
        var(--arc-night);
}

.arc-vs-head {
    max-width: 52rem;
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.arc-vs h2 {
    margin: 0 0 1.25rem;
    font-size: clamp(2.8rem, 6.4vw, 5.6rem);
    color: #fff;
}

.arc-vs-head p {
    max-width: 38rem;
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.6;
}

.arc-vs-labels {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2rem;
    padding-bottom: 0.9rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.arc-vs-labels span:first-child {
    grid-column: 2;
    color: var(--arc-lime);
}

.arc-vs-labels span:last-child {
    color: var(--arc-muted);
}

.arc-vs-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--arc-line);
}

.arc-vs-row {
    position: relative;
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    padding: 2rem 0;
    border-bottom: 1px solid var(--arc-line);
    transition: background-color 0.3s;
}

.arc-vs-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    height: 1px;
    width: 0;
    background: linear-gradient(90deg, var(--arc-lime), transparent);
    transition: width 1s var(--arc-ease) 0.2s;
}

.arc-vs-row.is-in::before {
    width: 60%;
}

.arc-vs-row:hover {
    background: rgba(255, 255, 255, 0.025);
}

.arc-vs-n {
    font-family: "Instrument Serif", serif;
    font-size: 2rem;
    line-height: 1;
    color: var(--arc-lime);
}

.arc-vs-arc h3 {
    margin: 0 0 0.5rem;
    font-family: "Instrument Serif", serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.05;
    color: #fff;
}

.arc-vs-arc p {
    margin: 0;
    max-width: 32rem;
    font-size: 1.05rem;
    line-height: 1.6;
}

.arc-vs-arc em {
    color: var(--arc-lime);
}

.arc-vs-cloud {
    margin: 0.35rem 0 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--arc-muted);
}

.arc-vs-label {
    display: none;
}

.arc-main .arc-vs-cloud a {
    color: #cfe3d8;
    text-decoration-color: rgba(207, 227, 216, 0.4);
}

.arc-main .arc-vs-cloud a:hover {
    color: #fff;
}

/* ---- Steps ------------------------------------------------------------------------- */
.arc-steps {
    position: relative;
    padding: clamp(5rem, 10vw, 7.5rem) 0;
    background: #fff;
    color: var(--ink);
}

.arc-steps h2 {
    margin: 0 0 1rem;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    color: var(--arc-deep);
    text-align: center;
}

/* The curve and the step circles share one geometry: the SVG spans the list exactly
   and stretches only sideways (height fixed in px), the columns have no gaps so their
   centres sit at 1/6, 1/2 and 5/6, and each step drops by --cy, the curve's height at
   its column. So each circle's centre is on the line at any width. */
.arc-steps-track {
    position: relative;
    margin-top: 2.5rem;
}

.arc-steps-line {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 120px;
    overflow: visible;
}

.arc-steps-line path {
    fill: none;
    stroke: var(--arc-green);
    stroke-width: 2;
    stroke-dasharray: 0.012 0.012;
    vector-effect: non-scaling-stroke;
}

.arc-steps-list {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.arc-steps-list li {
    padding: calc(var(--cy, 32px) - 32px) 1rem 0;
}

.arc-steps-list li > span {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: var(--arc-deep);
    color: var(--arc-lime);
    font-family: "Instrument Serif", serif;
    font-size: 1.9rem;
    box-shadow: 0 0 0 8px #fff, 0 0 0 9px rgba(1, 76, 59, 0.18), 0 18px 40px -16px rgba(1, 38, 29, 0.6);
}

.arc-steps-list h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--arc-deep);
}

.arc-steps-list p {
    max-width: 19rem;
    margin: 0 auto;
    line-height: 1.6;
    color: var(--ink-soft);
}

/* ---- Plans ------------------------------------------------------------------------- */
.arc-plans {
    padding: clamp(4rem, 8vw, 6.5rem) 0;
    background: linear-gradient(180deg, #fff, #f2f6f3);
    color: var(--ink);
}

.arc-plans-head {
    max-width: 44rem;
    margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
    text-align: center;
}

.arc-plans h2 {
    margin: 0 0 1rem;
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    color: var(--arc-deep);
}

.arc-plans h2 em {
    color: var(--arc-green);
}

.arc-plans-head p {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.6;
    color: var(--ink-soft);
}

.arc-plan-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.arc-plan {
    position: relative;
    padding: 2rem 1.75rem 1.75rem;
    border-radius: 18px;
    background: var(--arc-deep);
    color: var(--arc-text);
    overflow: hidden;
    box-shadow: 0 40px 80px -40px rgba(1, 38, 29, 0.7);
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.4s var(--arc-ease), box-shadow 0.4s;
}

.arc-plan::before {
    content: "";
    position: absolute;
    right: -30%;
    top: -40%;
    width: 80%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1.5px solid rgba(175, 233, 0, 0.35);
    box-shadow: 0 0 40px rgba(175, 233, 0, 0.15);
}

.arc-plan:hover {
    box-shadow: 0 50px 90px -40px rgba(1, 38, 29, 0.85), 0 0 0 1px rgba(175, 233, 0, 0.35);
}

.arc-plan h3 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.arc-plan-price {
    margin: 0 0 1.25rem;
    font-family: "Instrument Serif", serif;
    font-size: clamp(3.4rem, 5vw, 4.4rem);
    line-height: 1;
    color: var(--arc-lime);
}

.arc-plan-price span {
    font-size: 0.5em;
    vertical-align: 0.7em;
    margin-right: 0.05em;
}

.arc-plan-price small {
    font-family: "Google Sans Flex", sans-serif;
    font-size: 0.95rem;
    color: var(--arc-muted);
}

.arc-plan-hw,
.arc-plan-team {
    margin: 0;
    padding: 0.7rem 0;
    border-top: 1px solid var(--arc-line);
    font-size: 0.95rem;
}

.arc-plans-more {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 2rem;
    margin: 2rem 0 0;
}

.arc-main .arc-plans-more a {
    font-weight: 600;
    color: var(--arc-green);
}

/* ---- FAQ ------------------------------------------------------------------------- */
.arc-faq {
    padding: clamp(3rem, 6vw, 5rem) 0 !important;
}

/* ---- Final CTA -------------------------------------------------------------------- */
.arc-cta {
    position: relative;
    padding: clamp(6rem, 13vw, 10rem) 0;
    overflow: hidden;
    text-align: center;
    color: var(--arc-text);
    background:
        radial-gradient(60% 80% at 50% 110%, rgba(175, 233, 0, 0.22), transparent 70%),
        var(--arc-night);
}

.arc-cta-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.arc-cta-rings circle {
    fill: none;
    stroke: var(--arc-lime);
    stroke-width: 2.5;
    stroke-dasharray: 0.32 0.68;
    transform-origin: 600px 640px;
    filter: drop-shadow(0 0 6px rgba(175, 233, 0, 0.7));
}

.arc-cta-rings circle:nth-child(1) { opacity: 0.55; }
.arc-cta-rings circle:nth-child(2) { opacity: 0.45; stroke-dasharray: 0.22 0.78; }
.arc-cta-rings circle:nth-child(3) { opacity: 0.25; stroke-dasharray: 0.14 0.86; }

.arc-cta-bolt {
    fill: none;
    stroke: #f2ffd0;
    stroke-width: 2;
    stroke-linejoin: round;
    opacity: 0;
    filter: drop-shadow(0 0 10px var(--arc-lime));
}

.arc-cta-inner {
    position: relative;
}

.arc-cta h2 {
    margin: 0 auto 1.25rem;
    max-width: 14ch;
    font-size: clamp(3rem, 7vw, 6rem);
    color: #fff;
}

.arc-cta p {
    max-width: 34rem;
    margin: 0 auto 2.25rem;
    font-size: 1.15rem;
    line-height: 1.6;
}

.arc-cta .arc-hero-actions {
    justify-content: center;
}

/* ---- Reveal-on-scroll (only when arc.js runs) --------------------------------------- */
.arc-js [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--arc-ease), transform 0.9s var(--arc-ease);
}

.arc-js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* ---- Motion ------------------------------------------------------------------------- */
@keyframes arc-draw { from { stroke-dashoffset: 340; } }
@keyframes arc-rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes arc-pop { from { opacity: 0; transform: translateY(14px) scale(0.92); } }
@keyframes arc-bob { 50% { transform: translateY(-8px); } }
@keyframes arc-scroll { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
@keyframes arc-spin { to { transform: rotate(360deg); } }
@keyframes arc-floor { to { background-position: 0 64px, 0 0; } }
@keyframes arc-shimmer { to { background-position: -200% 0; } }
@keyframes arc-blink { 50% { opacity: 0; } }
@keyframes arc-dash { to { stroke-dashoffset: -1; } }
@keyframes arc-bolt { 0%, 86%, 100% { opacity: 0; } 88% { opacity: 1; } 90% { opacity: 0.2; } 92% { opacity: 0.9; } 95% { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
    .arc-h1-arc path { animation: arc-draw 1.6s var(--arc-ease) 0.5s both; }
    .arc-hero h1 .arc-h1-name { animation: arc-rise 0.9s var(--arc-ease) both; }
    .arc-hero h1 .arc-h1-tag { animation: arc-rise 0.9s var(--arc-ease) 0.15s both; }
    .arc-hero-lede { animation: arc-rise 0.9s var(--arc-ease) 0.3s both; }
    .arc-hero-copy .arc-hero-actions { animation: arc-rise 0.9s var(--arc-ease) 0.45s both; }
    .arc-ping { animation: arc-pop 0.7s var(--arc-ease) both, arc-bob 6s ease-in-out infinite; }
    .arc-ping.is-ok { animation-delay: 1.4s, 2.1s; }
    .arc-ping.is-flag { animation-delay: 2.2s, 2.9s; }
    .arc-ping.is-cast { animation-delay: 3s, 3.7s; }
    .arc-scroll span { animation: arc-scroll 1.8s ease-in-out infinite; }
    .arc-hero-floor { animation: arc-floor 3s linear infinite; }
    .arc-orbit-ring { animation: arc-spin var(--spin) linear infinite; }
    .arc-orbit-ring.is-outer { animation-direction: reverse; }
    .arc-orbit-ring li span { animation: arc-spin var(--spin) linear infinite reverse; }
    .arc-orbit-ring.is-outer li span { animation-direction: normal; }
    .arc-steps-line path { animation: arc-dash 30s linear infinite; }
    .arc-cta-rings circle { animation: arc-spin 26s linear infinite; }
    .arc-cta-rings circle:nth-child(2) { animation-duration: 38s; animation-direction: reverse; }
    .arc-cta-rings circle:nth-child(3) { animation-duration: 54s; }
    .arc-cta-bolt { animation: arc-bolt 5s linear infinite 1s; }
}

@media (prefers-reduced-motion: reduce) {
    .arc-js [data-reveal] { opacity: 1; transform: none; transition: none; }
    .arc-hero-canvas { transition: none; }
    .arc-screen, .arc-plan { transition: none; }
}

/* ---- "Watch the 30-second demo" ------------------------------------------------- */
.arc-watch {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.4rem;
    padding: 0.35rem 0.35rem 0.35rem 0.35rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.arc-watch-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(175, 233, 0, 0.6);
    background: rgba(175, 233, 0, 0.1);
    box-shadow: 0 0 0 0 rgba(175, 233, 0, 0.45);
    transition: background-color 0.25s, transform 0.25s var(--arc-ease), box-shadow 0.25s;
}

.arc-watch-icon svg {
    width: 18px;
    height: 18px;
    margin-left: 2px;
    fill: var(--arc-lime);
}

.arc-watch:hover {
    color: var(--arc-lime-soft);
}

.arc-watch:hover .arc-watch-icon {
    background: var(--arc-lime);
    transform: scale(1.06);
}

.arc-watch:hover .arc-watch-icon svg {
    fill: var(--arc-night);
}

@media (prefers-reduced-motion: no-preference) {
    .arc-watch-icon { animation: arc-watch-pulse 2.6s ease-out infinite 2s; }
    .arc-hero-copy .arc-watch { animation: arc-rise 0.9s var(--arc-ease) 0.6s both; }
    @keyframes arc-watch-pulse { 0% { box-shadow: 0 0 0 0 rgba(175, 233, 0, 0.45); } 70%, 100% { box-shadow: 0 0 0 14px rgba(175, 233, 0, 0); } }
}

dialog.arc-video {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 64px 72px 32px;
    border: 0;
    background: #01140f;
    color: #fff;
}

dialog.arc-video[open] {
    display: grid;
    place-items: center;
}

dialog.arc-video::backdrop {
    background: rgba(1, 20, 15, 0.7);
}

.arc-video-box {
    width: min(100%, calc((100dvh - 150px) * 16 / 9), 1600px);
}

.arc-video-box video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    background: #000;
    box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.arc-video-note {
    margin: 0.9rem 0 0;
    font-size: 0.85rem;
    text-align: center;
    color: var(--arc-muted);
}

.arc-video-close {
    position: absolute;
    top: 14px;
    right: 18px;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
}

.arc-video-close svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.arc-video-close:hover {
    background: rgba(255, 255, 255, 0.16);
}

@media (prefers-reduced-motion: no-preference) {
    dialog.arc-video[open] { animation: lightbox-in 0.2s var(--arc-ease); }
}

@media (max-width: 680px) {
    dialog.arc-video { padding: 64px 12px 24px; }
}

/* ---- Responsive -------------------------------------------------------------------- */
@media (min-width: 1680px) {
    .arc-hero .container {
        max-width: min(1560px, 86vw);
    }

    .arc-h1-name {
        font-size: clamp(3.4rem, min(9vw, 15vh), 11.5rem);
    }

    .arc-h1-tag {
        font-size: clamp(1.5rem, min(2.6vw, 4.6vh), 3.2rem);
    }

    .arc-hero-lede {
        max-width: 36rem;
        font-size: 1.3rem;
    }
}

@media (max-width: 1080px) {
    .arc-ping.is-flag { right: 0; }
    .arc-vs-labels,
    .arc-vs-row { grid-template-columns: 3rem minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem; }
}

@media (max-width: 900px) {
    .arc-hero { min-height: auto; }
    .arc-hero-grid,
    .arc-night-grid,
    .arc-story-grid,
    .arc-ask-grid,
    .arc-files-grid { grid-template-columns: minmax(0, 1fr); }
    /* one column: title, then the machine, then the pitch, so the 3D shows on the first screen */
    .arc-hero-grid { row-gap: 0; }
    .arc-hero-copy { display: contents; }
    .arc-hero h1 { order: 1; margin-bottom: 0; }
    .arc-hero-stage { order: 2; min-height: 400px; margin: 1.5rem 0 1rem; }
    .arc-hero-lede { order: 3; }
    .arc-hero-copy .arc-hero-actions { order: 4; }
    .arc-hero-copy .arc-watch { order: 5; justify-self: start; }
    .arc-hero-fallback { width: 100%; transform: translate(-50%, -50%); }
    .arc-ping.is-ok { top: 0; left: 0; }
    .arc-ping.is-flag { top: auto; bottom: 15%; right: 0; }
    .arc-ping.is-cast { bottom: 0; left: 0; }
    .arc-scroll { display: none; }
    .arc-numbers ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
    .arc-night-head { position: static; }
    .arc-dial { display: none; }
    .arc-chapter { min-height: 0; padding: 0 0 3.5rem; }
    .arc-chapter-shot { display: block; }
    .arc-chapter-shot img { border-radius: 10px; box-shadow: 0 30px 60px -30px rgba(1, 38, 29, 0.55); }
    .arc-js .arc-chapter .arc-chapter-n { opacity: 1; color: var(--arc-lime); }
    .arc-screen-wrap { display: none; }
    .arc-orbit { --size: min(460px, 88vw); }
    .arc-vs-labels { display: none; }
    .arc-vs-row { grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0.4rem 1rem; }
    .arc-vs-cloud { grid-column: 2; padding: 0.85rem 1rem; border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
    .arc-vs-label { display: block; margin-bottom: 0.2rem; font-weight: 600; color: #b7cfc4; }
    .arc-steps-line { display: none; }
    .arc-steps-track { margin-top: 2rem; }
    .arc-steps-list { grid-template-columns: 1fr; gap: 2.5rem; }
    .arc-steps-list li { padding: 0; }
    .arc-plan-list { grid-template-columns: 1fr; max-width: 28rem; margin: 0 auto; }
}

@media (max-width: 560px) {
    .arc-hero { padding-top: calc(var(--header-h) + 1.5rem); }
    .arc-hero-actions .arc-btn { flex: 1 1 100%; }
    .arc-hero-stage { min-height: 300px; }
    .arc-ping { font-size: 0.78rem; padding: 0.5rem 0.8rem 0.5rem 0.65rem; }
    .arc-numbers ul { grid-template-columns: 1fr 1fr; }
    .arc-orbit { --size: 72vw; margin-top: 1rem; }
    .arc-orbit-ring li span { font-size: 0.68rem; padding: 0.3rem 0.55rem; }
    .arc-chat-body { min-height: 300px; padding: 1.25rem 1rem 0.75rem; }
    .arc-msg { max-width: 94%; font-size: 0.98rem; }
}
