/* About page: open service strip, pinned statement, live "why" grid */

/* clip, not hidden: hidden would stop the statement from sticking */
#___gatsby .ab { overflow: clip; }

#___gatsby .ab section.ab-flow,
#___gatsby .ab section.ab-say {
    --ab-bleed: clamp(10px, 1.6vw, 24px);
    max-width: none;
    margin-left: calc(-1 * var(--ab-bleed));
    margin-right: calc(-1 * var(--ab-bleed));
}

/* ---------- service strip ---------- */
.ab-flow-head { text-align: center; padding: 0 20px; }
.ab-flow-head span { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #F05526; }
#___gatsby .ab .ab-flow-head h2:not(#ab-x) {
    margin: 10px 0 0;
    font-family: "KxCondensed", Impact, sans-serif;
    font-size: clamp(44px, 6.4vw, 88px);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}
.ab-flow-window { padding: 40px 0 30px; overflow: hidden; cursor: grab; touch-action: pan-y; user-select: none; }
.ab-flow-window.is-dragging { cursor: grabbing; }
.ab-flow-track { display: flex; width: max-content; will-change: transform; }
#___gatsby .ab .ab-flow-card {
    position: relative;
    flex: 0 0 auto;
    width: clamp(240px, 27vw, 380px);
    aspect-ratio: 4 / 5;
    margin: 0 11px;
    padding: 0;
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #14161B;
    cursor: inherit;
    transition: transform 0.4s cubic-bezier(0.34, 1.5, 0.5, 1);
}
#___gatsby .ab .ab-flow-card:nth-child(even) { margin-top: 26px; }
#___gatsby .ab .ab-flow-card:hover { transform: translateY(-10px) rotate(-1.2deg); }
.ab-flow-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform 0.6s ease; }
.ab-flow-card:hover img { transform: scale(1.07); }
.ab-flow-card::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(6, 7, 8, 0.9)); }
.ab-flow-tag, .ab-flow-name { position: absolute; z-index: 1; left: 18px; color: #FFFFFF; }
.ab-flow-tag { top: 18px; padding: 6px 12px; border-radius: 999px; background: #F05526; font-size: 11.5px; font-weight: 700; }
.ab-flow-name { right: 18px; bottom: 18px; display: flex; justify-content: space-between; align-items: center; font-family: "KxCondensed", Impact, sans-serif; font-size: 32px; text-transform: uppercase; }
.ab-flow-name i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #FFFFFF; color: #121316; font: 400 24px/1 sans-serif; transition: transform 0.35s ease, background-color 0.35s ease, color 0.35s ease; }
.ab-flow-card:hover .ab-flow-name i { transform: rotate(90deg); background: #F05526; color: #FFFFFF; }

#___gatsby .ab .ab-flow-dialog {
    width: min(920px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    margin: auto;
    padding: 0;
    border: 1px solid var(--ab-line);
    border-radius: 26px;
    background: var(--ab-card);
    color: var(--ab-text);
    overflow: auto;
}
.ab-flow-dialog::backdrop { background: rgba(5, 3, 2, 0.74); backdrop-filter: blur(6px); }
.ab-flow-dialog[open] { animation: ab-pop 0.45s cubic-bezier(0.34, 1.4, 0.5, 1); }
@keyframes ab-pop { from { opacity: 0; transform: translateY(36px) scale(0.94); } }
.ab-flow-pane { display: grid; grid-template-columns: 5fr 7fr; }
.ab-flow-pane[hidden] { display: none; }
.ab-flow-pane > img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.ab-flow-pane > div { padding: clamp(24px, 4vw, 44px); }
.ab-flow-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #F05526; }
#___gatsby .ab .ab-flow-pane h3 { margin: 8px 0 14px; font-family: "KxCondensed", Impact, sans-serif; font-size: 46px; font-weight: 400; line-height: 1; text-transform: uppercase; }
#___gatsby .ab .ab-flow-pane p.ab-flow-purpose:not(#ab-x) { margin: 0 0 10px; font-size: 18px; font-weight: 600; line-height: 1.45; color: var(--ab-text) !important; }
#___gatsby .ab .ab-flow-pane p.ab-flow-desc:not(#ab-x) { margin: 0 0 16px; font-size: 14px; line-height: 1.6; }
.ab-flow-pane ul { margin: 0 0 24px; padding: 0; list-style: none; }
#___gatsby .ab .ab-flow-pane li:not(#ab-x) { position: relative; margin: 8px 0; padding-left: 20px; font-size: 14px; }
.ab-flow-pane li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 8px; height: 8px; border-radius: 50%; background: #F05526; }
.ab-flow-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
#___gatsby .ab .ab-flow-start { padding: 12px 22px; border: 0; border-radius: 999px; background: #F05526; color: #FFFFFF; font-weight: 700; cursor: pointer; }
.ab-flow-actions a { font-size: 14px; font-weight: 600; color: var(--ab-text); }
#___gatsby .ab .ab-flow-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #121316; color: #FFFFFF; font-size: 24px; line-height: 1; cursor: pointer; }

/* ---------- pinned statement ---------- */
#___gatsby .ab section.ab-say { height: 230vh; margin-top: 40px; }
.ab-say-stage { position: sticky; top: 0; display: flex; justify-content: center; align-items: center; height: 100vh; padding: 0 20px; }
#___gatsby .ab .ab-say-stage p:not(#ab-x) {
    max-width: 17.5em;
    margin: 0;
    font-size: clamp(27px, min(4.2vw, 6.6vh), 58px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.025em;
    text-align: center;
    color: var(--ab-text) !important;
}
.ab-say-stage p span { color: rgba(240, 85, 38, 0.2); transition: color 0.25s ease; }
.ab-say-stage p span.is-now { color: #F05526; }
.ab-say-stage p span.is-read { color: var(--ab-text); }
.ab-say-pill {
    position: absolute;
    padding: 10px 20px;
    border-radius: 999px;
    background: #F05526;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 14px 30px -12px rgba(240, 85, 38, 0.8);
    opacity: 0;
    transform: scale(0.3) rotate(var(--r));
    transition: opacity 0.25s ease, transform 0.5s cubic-bezier(0.34, 1.7, 0.5, 1);
}
.ab-say-pill.is-on { opacity: 1; transform: scale(1) rotate(var(--r)); }
.ab-say-pill-1 { --r: -6deg; top: 13%; right: 9%; }
.ab-say-pill-2 { --r: 7deg; top: 17%; left: 7%; }
.ab-say-pill-3 { --r: -4deg; bottom: 12%; right: 20%; }

/* ---------- why teams build with us ---------- */
.ab-why-head { margin-bottom: 40px; text-align: center; }
#___gatsby .ab .ab-why-head h2:not(#ab-x) {
    margin: 0 0 12px;
    font-family: "KxCondensed", Impact, sans-serif;
    font-size: clamp(46px, 7vw, 96px);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
}
.ab-why-head em {
    display: block;
    font-style: normal;
    background: linear-gradient(110deg, #F05526 35%, #FFD0B8 50%, #F05526 65%) 0 0 / 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: ab-shine 4s linear infinite;
}
@keyframes ab-shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.ab-why-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 18px; }
.ab-why-card-2, .ab-why-card-3 { grid-column: auto; }
.ab-why-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid var(--ab-line);
    border-radius: 26px;
    background: var(--ab-card);
    overflow: hidden;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.25s ease, border-color 0.25s ease;
}
/* spotlight that follows the pointer */
.ab-why-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(240, 85, 38, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}
.ab-why-card:hover { border-color: rgba(240, 85, 38, 0.55); }
.ab-why-card:hover::before { opacity: 1; }
.ab-why-top { display: flex; justify-content: space-between; align-items: flex-start; }
.ab-why-num { font-family: "KxCondensed", Impact, sans-serif; font-size: 54px; line-height: 1; color: rgba(240, 85, 38, 0.28); }
#___gatsby .ab .ab-why-card h3:not(#ab-x) { margin: 26px 0 8px; font-size: 23px; font-weight: 800; }
#___gatsby .ab .ab-why-card p:not(#ab-x) { margin: 0; max-width: 46ch; font-size: 14.5px; line-height: 1.6; }

/* extruded 3D icon: the same glyph stacked in depth */
.ab-3d { position: relative; width: 76px; height: 76px; transform-style: preserve-3d; animation: ab-turn 5s ease-in-out infinite; filter: drop-shadow(0 14px 14px rgba(240, 85, 38, 0.35)); }
.ab-3d svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes ab-turn { 0%, 100% { transform: perspective(500px) rotateY(-32deg) rotateX(10deg); } 50% { transform: perspective(500px) rotateY(32deg) rotateX(-6deg) translateY(-5px); } }

.ab-why-live { margin-top: auto; padding-top: 28px; }
.ab-live-checks { margin: 0; padding: 0; list-style: none; }
#___gatsby .ab .ab-live-checks li:not(#ab-x) { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 11px 14px; border: 1px solid var(--ab-line); border-radius: 12px; background: var(--ab-page); font-size: 13.5px; font-weight: 600; }
.ab-live-checks li::before { content: ''; display: grid; place-items: center; width: 20px; height: 20px; border: 2px solid var(--ab-line); border-radius: 50%; font-size: 12px; color: #FFFFFF; transition: background-color 0.3s, border-color 0.3s; }
.ab-live-checks li.is-done::before { content: '\2713'; border-color: #F05526; background: #F05526; }
.ab-live-sprint { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 5px; border: 1px solid var(--ab-line); border-radius: 999px; background: var(--ab-page); }
.ab-live-sprint span { position: relative; z-index: 1; padding: 9px 0; text-align: center; font-size: 13px; font-weight: 700; color: var(--ab-muted); transition: color 0.3s; }
.ab-live-sprint span.is-now { color: #FFFFFF; }
.ab-live-sprint i { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc((100% - 10px) / 3); border-radius: 999px; background: #F05526; transform: translateX(calc(var(--step, 0) * 100%)); transition: transform 0.5s cubic-bezier(0.34, 1.4, 0.5, 1); }
.ab-live-bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; }
.ab-live-bars i { flex: 1; height: calc(22% + var(--n) * 5.6%); border-radius: 6px 6px 2px 2px; background: linear-gradient(#FF8A5C, #C93A00); transform-origin: bottom; animation: ab-bar 2.2s ease-in-out calc(var(--n) * 0.11s) infinite; }
@keyframes ab-bar { 50% { transform: scaleY(0.55); } }
.ab-live-term { min-height: 112px; padding: 16px; border-radius: 14px; background: #0B0C0E; color: #FFB596; font: 13px/1.7 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; }
.ab-live-term b { display: inline-block; width: 8px; height: 15px; vertical-align: -2px; background: #F05526; animation: ab-blink 1s steps(2) infinite; }
@keyframes ab-blink { 50% { opacity: 0; } }

@media (max-width: 760px) {
    .ab-why-grid { grid-template-columns: minmax(0, 1fr); }
    .ab-flow-pane { grid-template-columns: minmax(0, 1fr); }
    .ab-flow-pane > img { height: 200px; min-height: 0; }
    .ab-say-pill { font-size: 12px; padding: 8px 14px; }
    .ab-say-pill-1 { top: 11%; right: 6%; }
    .ab-say-pill-2 { top: 17%; left: 5%; }
    .ab-say-pill-3 { bottom: 10%; right: 10%; }
}

@media (prefers-reduced-motion: reduce) {
    #___gatsby .ab section.ab-say { height: auto; }
    .ab-say-stage { position: static; height: auto; padding: 80px 20px; }
    .ab-say-pill { display: none; }
    .ab-3d, .ab-why-head em, .ab-live-bars i, .ab-live-term b, .ab-flow-dialog[open] { animation: none; }
}

/* terminal: keep line breaks in the typed text only, not the template's indentation */
.ab-live-term { white-space: normal; text-align: left; }
.ab-live-term span { white-space: pre-wrap; }
/* tick drawn with borders so it never depends on a font glyph */
.ab-live-checks li::before { flex: 0 0 auto; box-sizing: border-box; }
.ab-live-checks li.is-done::before { content: ''; }
.ab-live-checks li { position: relative; }
.ab-live-checks li.is-done::after { content: ''; position: absolute; left: 22px; top: 50%; width: 5px; height: 9px; border: solid #FFFFFF; border-width: 0 2px 2px 0; transform: translateY(-65%) rotate(45deg); }
