/* Sections introduced with the AI repositioning: prompt console, proof strip, service
   pillars, day story, industry dashboards, AI answers, work, FAQ and the audit form. */

/* Shared bits ------------------------------------------------------------ */

.section-lede {
    max-width: 620px;
    margin: var(--space-3) auto 0;
}

.status-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-status-green);
}

.status-dot--red {
    background: var(--color-status-red);
}

.status-dot--amber {
    background: var(--color-status-amber);
}

.status-dot--blue {
    background: var(--color-status-blue);
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.chip--green {
    color: var(--color-status-green);
    background: rgba(52, 211, 153, .12);
}

.chip--amber {
    color: var(--color-status-amber);
    background: rgba(251, 191, 36, .12);
}

.chip--red {
    color: var(--color-status-red);
    background: rgba(248, 113, 113, .12);
}

.chip--blue {
    color: var(--color-status-blue);
    background: rgba(96, 165, 250, .12);
}

.bubble {
    margin: 0;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 15px;
    line-height: 1.5;
}

.bubble--user {
    align-self: flex-end;
    max-width: 85%;
    border-top-right-radius: 4px;
    color: #1a191f;
    background: #fff;
    font-weight: 500;
}

.bubble--volt {
    border: 1px solid rgba(124, 252, 0, .55);
    border-top-left-radius: 4px;
    color: #f3f7ee;
    background: var(--color-olive);
    font-style: italic;
}

.bolt-avatar {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
}

.bolt-avatar svg {
    width: 20px;
    height: auto;
}

.lang-notice {
    position: fixed;
    left: 50%;
    bottom: var(--space-3);
    z-index: 150;
    width: max-content;
    max-width: calc(100% - 32px);
    margin: 0;
    padding: 12px 20px;
    border-radius: var(--radius-pill);
    color: #fff;
    background: var(--color-card-dark);
    box-shadow: var(--shadow);
    font-size: 14px;
    transform: translateX(-50%);
}

/* Hero + prompt console --------------------------------------------------- */

.hero,
.hero-content {
    min-height: 0;
}

.hero-content {
    padding-top: clamp(140px, 13vw + 40px, 216px);
}

.hero h1 {
    margin-bottom: var(--space-5);
}

.hero .eyebrow {
    color: var(--color-muted-dark);
}

.console-frame {
    align-self: stretch;
    margin-top: clamp(56px, 4vw + 32px, 80px);
    padding: 8px 8px 0;
    border: 1px solid var(--color-accent);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: rgba(252, 252, 251, .08);
    box-shadow: 0 0 32px 4px rgba(26, 25, 31, .8);
    text-align: left;
}

.console {
    display: grid;
    grid-template-columns: minmax(260px, 340px) 1fr;
    min-height: 440px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: var(--color-chat);
}

.console-prompts {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3);
    border-right: 1px solid var(--color-line-dark);
}

.console-label {
    margin: 0;
    color: var(--color-muted-dark);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.console-chips {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin: 0;
    padding: 0;
    list-style: none;
}

.console-chip {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--color-line-dark);
    border-radius: var(--radius-md);
    color: #e4e4e7;
    background: rgba(255, 255, 255, .03);
    font: 500 14px/1.35 var(--font-sans);
    text-align: left;
    cursor: pointer;
    transition: border-color .3s var(--ease-out), background .3s var(--ease-out), color .3s var(--ease-out);
}

.console-chip:hover {
    border-color: rgba(124, 252, 0, .45);
    color: #fff;
}

.console-chip[aria-pressed="true"] {
    border-color: var(--color-accent);
    color: #fff;
    background: rgba(124, 252, 0, .08);
}

.console-caption {
    margin: auto 0 0;
    color: var(--color-muted-dark);
    font-size: 12px;
    line-height: 1.4;
}

.console-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    container-type: inline-size;
}

.console-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px var(--space-3);
    border-bottom: 1px solid var(--color-line-dark);
    color: #fff;
}

.console-head span:last-child {
    display: flex;
    flex-direction: column;
}

.console-head strong {
    font-size: 15px;
}

.console-head small {
    color: var(--color-muted-dark);
    font-size: 12px;
}

.console-output {
    display: grid;
    flex: 1;
    padding: var(--space-3);
}

/* All answers share one grid cell, so the panel is always as tall as the longest one. */
.console-turn {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.console-reply {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2);
    align-items: start;
}

.console-visual {
    max-width: 320px;
}

/* Chart beside the answer whenever the panel itself is wide enough. */
@container (min-width: 600px) {
    .console-reply {
        grid-template-columns: minmax(0, 1fr) 200px;
    }
    .console-visual {
        max-width: none;
    }
}

.console-turn:not(.is-active) {
    visibility: hidden;
}

.console-reply .bubble--volt {
    position: relative;
    max-width: 62ch;
}

.stream-sizer {
    visibility: hidden;
}

.stream-text {
    position: absolute;
    inset: 12px 16px;
}

.console-turn.is-thinking .stream-text::after {
    content: "";
    display: inline-block;
    width: 28px;
    height: 8px;
    background: radial-gradient(circle, var(--color-accent) 2.5px, transparent 3px) 0 50% / 10px 8px repeat-x;
    animation: thinking 1s steps(3) infinite;
}

@keyframes thinking {
    from {
        clip-path: inset(0 100% 0 0);
    }
    to {
        clip-path: inset(0 0 0 0);
    }
}

.console-visual {
    margin: 0;
    padding: var(--space-2);
    border: 1px solid var(--color-line-dark);
    border-radius: var(--radius-md);
    color: #fff;
    background: var(--color-panel);
    transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}

.console-turn.is-streaming .console-visual {
    opacity: 0;
    transform: translateY(8px);
}

.console-visual figcaption {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    color: var(--color-muted-dark);
    font-size: 12px;
}

.viz-bars-plot {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    margin-top: var(--space-2);
}

.viz-bars-plot span {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.viz-bars-plot span::before {
    content: "";
    display: block;
    height: calc(var(--v) * 70%);
    border-radius: 4px 4px 0 0;
    background: var(--color-accent);
    transform-origin: bottom;
    transition: transform .6s var(--ease-out);
}

.console-turn.is-streaming .viz-bars-plot span::before {
    transform: scaleY(0);
}

.viz-bars-plot .is-low::before {
    background: var(--color-status-red);
}

.viz-bars-plot b {
    order: -1;
    margin-bottom: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-align: center;
}

.viz-bars-plot i {
    margin-top: 6px;
    color: var(--color-muted-dark);
    font-size: 11px;
    font-style: normal;
    text-align: center;
}

.viz-alert {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    border-color: rgba(248, 113, 113, .35);
}

.viz-alert--amber {
    border-color: rgba(251, 191, 36, .35);
}

.viz-alert-value {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -.02em;
}

.viz-alert span:last-child {
    color: var(--color-muted-dark);
    font-size: 12px;
}

.viz-ring {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.viz-ring svg {
    flex: 0 0 auto;
    transform: rotate(-90deg);
}

.viz-ring circle {
    fill: none;
    stroke-width: 8;
}

.viz-ring-track {
    stroke: rgba(255, 255, 255, .1);
}

.viz-ring-fill {
    stroke: var(--color-accent);
    stroke-linecap: round;
    stroke-dasharray: var(--v) 100;
    transition: stroke-dasharray .8s var(--ease-out);
}

.console-turn.is-streaming .viz-ring-fill {
    stroke-dasharray: 0 100;
}

.viz-ring strong {
    display: block;
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 500;
}

/* Proof strip -------------------------------------------------------------- */

.proof {
    padding: var(--space-8) 0;
    border-bottom: 1px solid var(--color-line);
}

.proof-title {
    margin: 0 0 var(--space-4);
    color: var(--color-muted);
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .08em;
    line-height: 1.4;
    text-align: center;
    text-transform: uppercase;
}

.logo-marquee {
    display: flex;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-track {
    display: flex;
    flex: 0 0 auto;
    gap: 20px;
    margin: 0;
    padding: 0 10px;
    list-style: none;
    animation: marquee 32s linear infinite;
}

.logo-marquee:hover .logo-track,
.logo-marquee:focus-within .logo-track {
    animation-play-state: paused;
}

@keyframes marquee {
    to {
        transform: translateX(-100%);
    }
}

.logo-track .client-logo {
    width: 220px;
    min-height: 104px;
}

.logo-track .client-logo img {
    max-height: 64px;
}

.stat-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-2);
    margin: var(--space-5) 0 0;
    padding: 0;
    list-style: none;
}

.stat-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 8px 20px 8px 8px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-pill);
    background: var(--color-paper-soft);
    color: var(--color-muted);
    font-size: 14px;
}

.stat-chip strong {
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    color: #fff;
    background: var(--color-card-dark);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
}

/* Service pillars ---------------------------------------------------------- */

.services-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
}

/* The intro sticks while the rows scroll past, with its lead and link pinned to the bottom. */
.services-intro {
    position: sticky;
    top: 112px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-6);
    align-self: start;
    min-height: min(720px, calc(100vh - 160px));
    padding-right: clamp(24px, 4vw, 64px);
}

.services-intro h2 {
    color: #1a191f;
}

.services-intro-foot p {
    max-width: 440px;
    margin-bottom: var(--space-3);
}

/* Rows carry their own padding for the hover panel; the negative margin keeps the first
   and last rows' content flush with the intro. */
.service-list {
    display: grid;
    gap: 20px;
    margin-block: -20px;
    border-left: 1px solid var(--color-line);
}

.service-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    grid-template-rows: auto auto auto 1fr auto;
    grid-template-areas:
        "name visual"
        "title visual"
        "tags visual"
        ". visual"
        "arrow desc";
    column-gap: clamp(24px, 3vw, 40px);
    position: relative;
    isolation: isolate;
    padding: 20px 20px 20px 40px;
    scroll-margin-top: 96px;
}

/* Hover panel, inset 20px from the vertical divider like the row dividers. */
.service-row::before {
    content: "";
    position: absolute;
    inset: 0 0 0 20px;
    z-index: -1;
    border-radius: var(--radius-lg);
    background: var(--color-paper-soft);
    opacity: 0;
    transition: opacity .25s ease;
}

@media (hover: hover) and (min-width: 901px) {
    .service-row:hover::before {
        opacity: 1;
    }

    .service-row:hover .service-arrow {
        color: #fff;
        background: #1a191f;
    }
}

/* Row dividers stop short of the vertical divider, leaving a 20px gap, and sit in the
   middle of the 20px gap between rows. */
.service-row::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 0;
    bottom: -10px;
    height: 1px;
    background: var(--color-line);
}

.service-row:last-child::after {
    display: none;
}

.service-row .pillar-name {
    grid-area: name;
}

.service-row h3 {
    grid-area: title;
    margin-bottom: var(--space-3);
    color: #1a191f;
    font-size: clamp(18px, .5vw + 14px, 22px);
    line-height: 1.25;
    letter-spacing: -.01em;
    text-transform: uppercase;
}

.service-row .tag-list {
    grid-area: tags;
    gap: 8px;
}

.service-row .tag-list li {
    padding: 4px 10px;
}

.service-arrow {
    grid-area: arrow;
    align-self: end;
    justify-self: start;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-top: var(--space-4);
    border: 1px solid #1a191f;
    border-radius: var(--radius-sm);
    color: #1a191f;
    transition: color .2s ease, background .2s ease;
}

.service-arrow:hover {
    color: #fff;
    background: #1a191f;
}

.service-row .pillar-visual {
    grid-area: visual;
    margin-bottom: var(--space-3);
}

.service-desc {
    grid-area: desc;
    align-self: end;
    margin: 0;
}

.pillar-visual {
    position: relative;
    display: grid;
    height: 220px;
    margin-bottom: var(--space-3);
    place-items: center;
    overflow: hidden;
    border-radius: var(--radius-lg);
    color: #fff;
    background-color: var(--color-night);
    background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 32px 32px;
}

.pillar-visual::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 252, 0, .22), transparent 65%);
    pointer-events: none;
}

.pillar-visual--aeo::after {
    right: -90px;
    top: -110px;
}

.pillar-visual--agents::after {
    left: -100px;
    bottom: -140px;
}

.pillar-visual--erp::after {
    right: -60px;
    bottom: -160px;
}

.pillar-visual--custom::after {
    left: -60px;
    top: -150px;
}

.pillar-visual > * {
    position: relative;
    z-index: 1;
}

.pillar-name {
    margin-bottom: var(--space-1);
    color: var(--color-muted);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.mini-chat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(300px, 82%);
    font-size: 13px;
}

.mini-chat-q {
    align-self: flex-end;
    padding: 8px 12px;
    border-radius: 10px 10px 2px 10px;
    color: #1a191f;
    background: #fff;
    font-weight: 500;
}

.mini-chat-a {
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px 10px 10px 2px;
    background: rgba(255, 255, 255, .06);
}

.mini-chat-a b {
    color: var(--color-accent);
    font-weight: 600;
}

.mini-chat-src {
    color: var(--color-muted-dark);
    font-family: var(--font-mono);
    font-size: 11px;
}

.mini-tasks {
    display: grid;
    gap: 8px;
    width: min(280px, 82%);
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13px;
}

.mini-tasks li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .04);
    color: var(--color-muted-dark);
}

.mini-tasks li::before {
    content: "";
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
}

.mini-tasks .is-done {
    color: #fff;
}

.mini-tasks .is-done::before {
    border-color: var(--color-accent);
    background: var(--color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-4.9' fill='none' stroke='%231a191f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.mini-tasks .is-flag {
    color: var(--color-status-amber);
}

.mini-kpis {
    display: flex;
    gap: 10px;
    width: min(300px, 84%);
    margin-bottom: 12px;
}

.mini-kpis span {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-sm);
    background: var(--color-panel);
}

.mini-kpis i {
    display: block;
    color: var(--color-muted-dark);
    font-size: 11px;
    font-style: normal;
}

.mini-kpis b {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 500;
}

.pillar-visual--erp {
    align-content: center;
}

.mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: min(300px, 84%);
    height: 64px;
}

.mini-chart i {
    flex: 1;
    height: calc(var(--v) * 100%);
    border-radius: 3px 3px 0 0;
    background: linear-gradient(to top, rgba(124, 252, 0, .35), var(--color-accent));
}

.mini-receipt {
    display: grid;
    gap: 6px;
    width: min(240px, 78%);
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    color: #1a191f;
    background: #fff;
    font-family: var(--font-mono);
    font-size: 12px;
}

.mini-receipt span {
    display: flex;
    justify-content: space-between;
}

.mini-receipt i {
    font-style: normal;
}

.mini-receipt-total {
    padding-top: 6px;
    border-top: 1px dashed #c9c9cc;
    font-weight: 500;
}

.mini-receipt-points {
    justify-content: center !important;
    margin-top: 4px;
    padding: 6px;
    border-radius: 4px;
    color: #fff;
    background: var(--color-card-dark);
}

/* A day with an intelligence layer --------------------------------------- */

.story {
    padding-block: 100px;
    color: var(--color-ink);
    background: var(--color-paper);
}

.story-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(40px, 5vw, 96px);
    align-items: start;
    padding: clamp(24px, 4vw, 64px);
    border-radius: var(--radius-xl);
    background: var(--color-paper-soft);
}

.story-intro h2 {
    color: var(--color-ink);
}

.story-intro h2 em {
    color: var(--color-accent-deep);
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -.01em;
}

.story .eyebrow,
.story-intro p {
    color: var(--color-muted);
}

.story-intro > p:not(.eyebrow) {
    max-width: 440px;
    margin-top: var(--space-3);
}

.story-clock {
    display: none;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.story-clock circle:first-child {
    fill: var(--color-card-dark);
    stroke: var(--color-card-dark);
    stroke-width: 1.5;
}

.story-clock line {
    stroke: #fff;
    stroke-linecap: round;
    transform-origin: 32px 32px;
}

.story-clock-hour {
    stroke-width: 3;
    transform: rotate(180deg);
}

.story-clock-minute {
    stroke: var(--color-accent) !important;
    stroke-width: 2;
}

.story-clock-pin {
    fill: var(--color-accent);
}

.story-clock-time {
    font-family: var(--font-mono);
    font-size: 56px;
    font-weight: 500;
    letter-spacing: -.02em;
}

.story-steps {
    --progress: 1;
    position: relative;
    isolation: isolate;
    display: grid;
    gap: var(--space-3);
    margin: 0;
    padding: 0 0 0 112px;
    list-style: none;
}

.story-steps::before,
.story-steps::after {
    content: "";
    position: absolute;
    left: 43px;
    top: 8px;
    bottom: 8px;
    z-index: -1;
    width: 2px;
    border-radius: 2px;
    background: var(--color-line);
}

.story-steps::after {
    bottom: auto;
    height: calc((100% - 16px) * var(--progress));
    background: var(--color-accent-deep);
    transition: height .3s linear;
}

.story-step {
    position: relative;
}

.story-time {
    position: absolute;
    left: -112px;
    top: 14px;
    z-index: 1;
    width: 88px;
    padding: 8px 0;
    border: 1px solid var(--color-card-dark);
    border-radius: var(--radius-pill);
    color: var(--color-muted-dark);
    background: var(--color-card-dark);
    font-family: var(--font-mono);
    font-size: 16px;
    text-align: center;
    transition: color .3s var(--ease-out), border-color .3s var(--ease-out);
}

.story-step.is-active .story-time,
.story-step.is-past .story-time {
    border-color: var(--color-accent);
    color: #fff;
}

.story-card {
    padding: var(--space-3);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: var(--color-paper);
}

.story-card-head {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-bottom: var(--space-2);
    color: var(--color-muted);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.story-card-meta {
    margin-left: auto;
}

.story-card h3 {
    color: var(--color-ink);
}

.story-card > p {
    margin-bottom: var(--space-2);
}

.story-card > .bubble--volt {
    border-color: rgba(44, 109, 18, .35);
    color: var(--color-ink);
    background: rgba(124, 252, 0, .12);
}

/* Status colours are tuned for dark surfaces; darken them for this light section. */
.story .chip--green {
    color: #047857;
    background: rgba(52, 211, 153, .16);
}

.story .chip--amber {
    color: #b45309;
    background: rgba(251, 191, 36, .18);
}

.story .chip--red {
    color: #b91c1c;
    background: rgba(248, 113, 113, .14);
}

.mini-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 13px;
}

.mini-table th,
.mini-table td {
    padding: 8px 0;
    border-top: 1px solid var(--color-line);
    text-align: right;
}

.mini-table th:first-child,
.mini-table td:first-child {
    text-align: left;
}

.mini-table thead th {
    border-top: 0;
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
}

.mini-table tfoot th,
.mini-table tfoot td {
    color: var(--color-accent-deep);
    font-weight: 500;
}

.mini-alert {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 12px 16px;
    border: 1px solid rgba(248, 113, 113, .3);
    border-radius: var(--radius-md);
    background: rgba(248, 113, 113, .06);
    color: var(--color-ink-soft);
    font-size: 14px;
}

.mini-alert strong {
    color: var(--color-ink);
    font-family: var(--font-mono);
    font-weight: 500;
}

.mini-approvals {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--color-ink-soft);
    font-size: 14px;
}

.mini-approvals li {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Pinned, scroll-scrubbed variant (desktop with motion; set by day-story.js). */
.story--scrub .story-clock {
    display: flex;
}

/* Pinned just below the fixed header (see day-story.js), so the 100px reads as-is. */
.story--scrub {
    padding-block: 100px;
}

/* Short laptop screens can't fit 100px either side below the header. */
@media (max-height: 820px) {
    .story--scrub {
        padding-block: 40px;
    }
    .story--scrub .story-layout {
        padding-block: var(--space-3);
    }
    .story--scrub .story-clock {
        margin-bottom: var(--space-3);
    }
}

.story--scrub .story-steps {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, auto) 1fr;
    gap: 0;
    padding-left: 152px;
}

.story--scrub .story-step {
    display: contents;
}

.story--scrub .story-time {
    position: relative;
    left: auto;
    top: auto;
    grid-column: 1;
    width: 120px;
    margin: 0 0 56px -152px;
}

.story--scrub .story-step:nth-child(1) .story-time {
    grid-row: 1;
}

.story--scrub .story-step:nth-child(2) .story-time {
    grid-row: 2;
}

.story--scrub .story-step:nth-child(3) .story-time {
    grid-row: 3;
}

.story--scrub .story-step:nth-child(4) .story-time {
    grid-row: 4;
}

.story--scrub .story-card {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: start;
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    visibility: hidden;
    transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), visibility 0s .45s;
}

.story--scrub .story-step.is-active .story-card {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), visibility 0s;
}

/* Pills match the 120px clock above, so the rail sits at their centre. */
.story--scrub .story-steps::before,
.story--scrub .story-steps::after {
    left: 59px;
    top: var(--rail-top, 16px);
    bottom: auto;
    height: var(--rail-height, 0px);
    transition: none;
}

.story--scrub .story-steps::after {
    height: calc(var(--rail-height, 0px) * var(--progress));
}

/* Industry dashboards ------------------------------------------------------ */

.industry-tabs {
    display: inline-flex;
    gap: 4px;
    max-width: 100%;
    margin-bottom: var(--space-3);
    padding: 4px;
    overflow-x: auto;
    border-radius: var(--radius-pill);
    background: var(--color-paper-soft);
    scrollbar-width: none;
}

.industry-tab {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius-pill);
    color: var(--color-muted);
    background: transparent;
    font: 500 15px/1 var(--font-sans);
    cursor: pointer;
    transition: color .3s var(--ease-out), background .3s var(--ease-out);
}

.industry-tab:hover {
    color: #1a191f;
}

.industry-tab[aria-selected="true"] {
    color: #fff;
    background: var(--color-card-dark);
}

.dash {
    display: grid;
    gap: var(--space-2);
    padding: var(--space-3);
    border: 1px solid #1a191f;
    border-radius: var(--radius-xl);
    color: #fff;
    background: var(--color-panel);
    box-shadow: var(--shadow);
}

.dash:focus-visible {
    border-radius: var(--radius-xl);
}

.dash-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.dash-head h3 {
    margin: 0;
    font-size: 20px;
}

.dash-kicker {
    color: var(--color-muted-dark);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.dash-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-status-green);
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
}

.dash-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, .15);
}

.dash-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid rgba(251, 191, 36, .3);
    border-radius: var(--radius-md);
    color: #f1e7cf;
    background: rgba(251, 191, 36, .07);
    font-size: 14px;
}

.dash-alert--red {
    border-color: rgba(248, 113, 113, .3);
    color: #f6dada;
    background: rgba(248, 113, 113, .07);
}

.dash-alert--blue {
    border-color: rgba(96, 165, 250, .3);
    color: #dbe8fb;
    background: rgba(96, 165, 250, .07);
}

.dash-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-2);
}

.dash-kpi {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-2);
    border: 1px solid var(--color-line-dark);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .02);
}

.dash-kpi span {
    color: var(--color-muted-dark);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.dash-kpi strong {
    font-family: var(--font-mono);
    font-size: clamp(20px, 1.4vw + 8px, 28px);
    font-weight: 500;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dash-kpi small {
    color: var(--color-muted-dark);
    font-family: var(--font-mono);
    font-size: 12px;
}

.dash .is-up {
    color: var(--color-status-green);
}

.dash .is-down {
    color: var(--color-status-amber);
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 13px;
}

.dash-table th,
.dash-table td {
    padding: 12px 8px;
    border-top: 1px solid var(--color-line-dark);
    text-align: left;
}

.dash-table thead th {
    border-top: 0;
    color: var(--color-muted-dark);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.dash-ask {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 8px 8px 8px 8px;
    border: 1px solid rgba(124, 252, 0, .3);
    border-radius: var(--radius-pill);
    color: #e4e4e7;
    background: rgba(255, 255, 255, .03);
    font-size: 14px;
}

.dash-ask-label {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    color: #1a191f;
    background: var(--color-accent);
    font-weight: 600;
}

/* Be the answer ------------------------------------------------------------ */

.answer-toggle {
    display: none;
    margin: 0 auto var(--space-3);
    padding: 4px;
    border-radius: var(--radius-pill);
    background: var(--color-paper-soft);
}

.answer-toggle button {
    min-width: 96px;
    min-height: 44px;
    border: 0;
    border-radius: var(--radius-pill);
    color: var(--color-muted);
    background: transparent;
    font: 500 15px/1 var(--font-sans);
    cursor: pointer;
}

.answer-toggle button[aria-pressed="true"] {
    color: #fff;
    background: var(--color-card-dark);
}

.answer-compare {
    display: flex;
    flex-direction: column;
}

.answer-windows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.answer-window {
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    border: 1px solid #1a191f;
    border-radius: var(--radius-lg);
    background: var(--color-chat);
    box-shadow: var(--shadow);
}

.answer-window-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px var(--space-3);
    border-bottom: 1px solid var(--color-line-dark);
    color: #e4e4e7;
    font-size: 14px;
    font-weight: 500;
}

.assistant-icon {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    color: #d4d4d8;
    background: rgba(255, 255, 255, .08);
}

.answer-badge {
    margin-left: auto;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    color: var(--color-muted-dark);
    background: rgba(255, 255, 255, .06);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.answer-badge--after {
    color: #1a191f;
    background: var(--color-accent);
}

.answer-window-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-3);
}

.bubble--assistant {
    border: 1px solid var(--color-line-dark);
    border-top-left-radius: 4px;
    color: #d4d4d8;
    background: rgba(255, 255, 255, .05);
}

.bubble--assistant p {
    margin: 0;
    color: inherit;
}

.bubble--assistant p + p {
    margin-top: 10px;
}

.bubble--assistant b {
    color: #fff;
    font-weight: 600;
}

.answer-window[data-state="before"] .bubble--assistant p + p {
    color: var(--color-muted-dark);
    font-style: italic;
}

.answer-window--after .bubble--assistant {
    border-color: rgba(124, 252, 0, .4);
}

.answer-window--after .bubble--assistant b:first-child {
    color: var(--color-accent);
}

.answer-source {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    color: #e4e4e7 !important;
    background: rgba(255, 255, 255, .06);
    font-family: var(--font-mono);
    font-size: 12px;
}

.answer-source span {
    display: grid;
    color: var(--color-accent);
}

.answer-caption {
    margin: var(--space-2) 0 0;
    font-size: 13px;
    text-align: center;
}

.aeo-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
    margin: var(--space-8) 0 0;
    padding: 0;
    list-style: none;
}

.aeo-steps li {
    padding: var(--space-3);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: var(--color-paper-soft);
}

.aeo-step-num {
    display: inline-block;
    margin-bottom: var(--space-2);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    color: #fff;
    background: var(--color-card-dark);
    font-family: var(--font-mono);
    font-size: 12px;
}

.aeo-steps p {
    margin: 0;
}

/* How it works: one distinct gradient per step thumbnail ------------------- */

.process-thumb--1 {
    background: radial-gradient(120% 90% at 0% 100%, rgba(124, 252, 0, .22), transparent 60%), #1a191f;
}

.process-thumb--2 {
    background: radial-gradient(90% 120% at 100% 0%, rgba(124, 252, 0, .2), transparent 60%), linear-gradient(135deg, #1a191f, #1a191f);
}

.process-thumb--3 {
    background: repeating-linear-gradient(135deg, rgba(124, 252, 0, .06) 0 2px, transparent 2px 12px), #1a191f;
}

.process-thumb--4 {
    background: radial-gradient(circle at 50% 120%, rgba(124, 252, 0, .3), transparent 55%), linear-gradient(180deg, #1a191f, #1a191f);
}

/* Work --------------------------------------------------------------------- */

/* Intro on the left behind a hairline divider, cards on the right. */
.work-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.work-intro {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-right: var(--space-5);
    border-right: 1px solid var(--color-line);
}

.work-cta {
    margin-top: var(--space-5);
}

.work-grid {
    display: grid;
    gap: 20px;
    padding-left: var(--space-5);
}

/* Each card is a row: visual on the left, text centred beside it. */
.work-card {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    column-gap: var(--space-4);
    align-items: center;
}

.work-card .work-visual {
    margin-bottom: 0;
}

.work-card h3 {
    margin-bottom: var(--space-2);
    color: #1a191f;
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.work-copy > p:not([class]) {
    margin-bottom: 0;
}

.work-tag {
    margin-bottom: var(--space-1);
    color: var(--color-muted);
    font-size: 13px;
}

.work-result {
    margin: auto 0 0;
    padding-top: var(--space-2);
}

.work-visual {
    position: relative;
    display: grid;
    aspect-ratio: 3 / 2;
    margin-bottom: var(--space-3);
    place-items: center;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--color-night);
}

.work-visual--aisles {
    grid-template-columns: repeat(3, 40px);
    gap: 14px 22px;
    place-content: center;
}

.work-visual--aisles i {
    width: 40px;
    height: 44px;
    border-radius: 4px;
    background: rgba(255, 255, 255, .1);
}

.work-visual--aisles i:nth-child(2),
.work-visual--aisles i:nth-child(6) {
    background: var(--color-accent);
}

.work-visual--mirror i {
    width: 84px;
    height: 124px;
    border: 2px solid rgba(255, 255, 255, .5);
    border-radius: 42px 42px 8px 8px;
    background: linear-gradient(160deg, rgba(124, 252, 0, .28), transparent 60%);
}

.work-visual--ring i {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: conic-gradient(var(--color-accent) 0 62%, rgba(255, 255, 255, .1) 62% 100%);
    -webkit-mask: radial-gradient(circle, transparent 42px, #000 43px);
    mask: radial-gradient(circle, transparent 42px, #000 43px);
}

/* FAQ ---------------------------------------------------------------------- */

.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(40px, 5vw, 96px);
}

.faq-list {
    border-top: 1px solid var(--color-line);
}

.faq-item {
    border-bottom: 1px solid var(--color-line);
}

.faq-item summary {
    position: relative;
    display: block;
    min-height: 44px;
    padding: var(--space-3) 48px var(--space-3) 0;
    color: #1a191f;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 50%;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    border-radius: 50%;
    background: #f3f3f3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M14 9v10M9 14h10' stroke='%231a191f' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 28px no-repeat;
    transition: transform .3s var(--ease-out);
}

.faq-item[open]:not(.is-closing) summary::after {
    transform: rotate(45deg);
}

/* Spacing lives in ::after rather than padding so faq-accordion.js can animate height to 0. */
.faq-answer {
    max-width: 68ch;
    overflow: hidden;
}

.faq-answer::after {
    content: "";
    display: block;
    height: var(--space-3);
}

.faq-answer p {
    margin: 0;
}

/* Closing band audit form -------------------------------------------------- */

/* Intro on the left, form on the right; stacks below 900px. */
.cta-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
    max-width: var(--container);
    text-align: left;
}

.cta-intro .cta-mark {
    justify-content: flex-start;
}

.cta .cta-intro h2 {
    text-align: left;
}

.cta-intro h2 br {
    display: none;
}

.cta-content .cta-intro p {
    margin: 0;
}

/* Form sits straight on the band: underline fields, label above, no card. */
.audit-form {
    width: 100%;
    color: var(--color-paper);
    text-align: left;
    scroll-margin-top: 96px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4) var(--space-3);
}

.field {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    color: var(--color-paper);
    font-size: 16px;
    font-weight: 500;
}

.field-optional {
    color: var(--color-muted-dark);
    font-weight: 400;
}

.field input,
.field textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    border-radius: 0;
    color: var(--color-paper);
    background: transparent;
    font: 400 16px/24px var(--font-sans);
    transition: border-color .2s ease;
}

.field textarea {
    min-height: 96px;
    resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--color-muted);
}

/* A 2px underline replaces the global focus ring, which boxes in an underline field. */
.field input:focus,
.field textarea:focus {
    outline: none;
    border-bottom-color: var(--color-paper);
    border-radius: 0;
    box-shadow: 0 1px 0 var(--color-paper);
}

.field [aria-invalid="true"] {
    border-bottom-color: #ff6b6b;
}

.cta-content .field-error {
    max-width: none;
    margin: 0;
    color: #ff6b6b;
    font-size: 13px;
    line-height: 1.4;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.turnstile-slot:not(:empty) {
    margin-top: var(--space-2);
}

.audit-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-5);
}

.audit-form button[type="submit"] {
    cursor: pointer;
}

.audit-form button[type="submit"][disabled] {
    opacity: .6;
    cursor: progress;
}

.cta-content .form-status {
    max-width: none;
    margin: var(--space-2) 0 0;
    font-size: 15px;
}

.cta-content .form-status:empty {
    display: none;
}

.form-status.is-success {
    color: var(--color-accent);
}

.form-status.is-error {
    color: #ff6b6b;
}

/* Responsive --------------------------------------------------------------- */

@media (max-width: 1100px) {
    .dash-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .console {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }
    .console-prompts {
        min-width: 0;
        border-right: 0;
        border-bottom: 1px solid var(--color-line-dark);
    }
    .console-chips {
        flex-direction: row;
        margin-inline: calc(var(--space-3) * -1);
        padding-inline: var(--space-3);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .console-chips li {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
    .console-chip {
        width: auto;
        max-width: 260px;
    }
    .console-caption {
        margin-top: 0;
    }
    .aeo-steps {
        grid-template-columns: 1fr;
    }
    .work-layout {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    .work-intro {
        padding: 0 0 var(--space-5);
        border-right: 0;
        border-bottom: 1px solid var(--color-line);
    }
    .work-grid {
        padding-left: 0;
    }
    .story-layout,
    .faq-layout,
    .services-layout {
        grid-template-columns: 1fr;
    }
    .services-intro {
        position: static;
        min-height: 0;
        padding-right: 0;
        margin-bottom: var(--space-6);
    }
    .service-list {
        margin-block: 0;
        border-left: 0;
        border-top: 1px solid var(--color-line);
    }
    .service-row {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-template-areas: "name" "title" "visual" "desc" "tags" "arrow";
        padding: var(--space-5) 0;
    }
    .service-row::after {
        left: 0;
    }
    .service-row .tag-list {
        margin-top: var(--space-3);
    }
    .answer-toggle {
        display: inline-flex;
        align-self: center;
    }
    .answer-windows {
        grid-template-columns: 1fr;
    }
    /* Before the script runs, keep the second window out of the way so nothing jumps. */
    .js .answer-compare:not(.is-enhanced) .answer-window--after {
        display: none;
    }
}

@media (max-width: 600px) {
    .work-card {
        grid-template-columns: 1fr;
    }
    .work-card .work-visual {
        margin-bottom: var(--space-3);
    }
    .hero-content {
        padding-top: 128px;
    }
    .industry-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        border-radius: var(--radius-lg);
    }
    .industry-tab {
        padding-inline: 12px;
    }
    .console-frame {
        margin-inline: calc(var(--page-pad) * -1 + 8px);
    }
    .console-prompts,
    .console-output,
    .console-head {
        padding-inline: var(--space-2);
    }
    .console-chips {
        margin-inline: calc(var(--space-2) * -1);
        padding-inline: var(--space-2);
    }
    .pillar-visual {
        height: 200px;
    }
    .story-steps {
        padding-left: 0;
    }
    .story-steps::before,
    .story-steps::after {
        display: none;
    }
    .story-time {
        position: static;
        display: inline-block;
        margin-bottom: var(--space-1);
    }
    .dash {
        padding: var(--space-2);
    }
    .dash-head h3 {
        font-size: 18px;
    }
    .dash-table {
        font-size: 12px;
    }
    .dash-table th,
    .dash-table td {
        padding-inline: 4px;
    }
    .dash-ask {
        align-items: flex-start;
        border-radius: var(--radius-md);
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .audit-form-actions .button {
        width: 100%;
    }
    .stat-chip {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-track {
        animation: none;
    }
    .logo-track--clone {
        display: none;
    }
    .logo-marquee {
        justify-content: center;
        -webkit-mask-image: none;
        mask-image: none;
    }
    .logo-track {
        flex-wrap: wrap;
        justify-content: center;
        flex: 1 1 auto;
    }
    .console-turn.is-thinking .stream-text::after {
        animation: none;
    }
}
