/* ====================================
   KERANOS TECH: HOMEPAGE
   (job pages still use index.css)
   ==================================== */
:root {
    --blue: #081fd8;
    --blue-2: #3b5bff;
    --cyan: #60cfd0;
    --bg: #03040c;
    --bg-2: #070a1a;
    --card: #0b0f22;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f4f6ff;
    --muted: #9aa3bd;
    --radius: 18px;
    --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Anuphan', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.btn,
.kicker,
.principle-n,
.console-title {
    font-family: 'Funnel Display', sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

::selection {
    background: var(--cyan);
    color: var(--bg);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 4px; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.grad-text {
    background: linear-gradient(100deg, var(--cyan) 0%, #8fb4ff 50%, var(--cyan) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: grad-shift 6s linear infinite;
}

@keyframes grad-shift {
    to { background-position: 200% center; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    /* paint the gradient under the border too, otherwise it repeats there
       and a sliver of cyan shows on the left edge */
    background-origin: border-box;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-2) 55%, var(--cyan));
    background-origin: border-box; /* after the shorthand, which resets it */
    box-shadow: 0 10px 30px -10px rgba(59, 91, 255, 0.8);
}

.btn-primary:hover {
    box-shadow: 0 16px 40px -10px rgba(96, 207, 208, 0.7);
}

.btn-ghost {
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    border-color: var(--cyan);
}

.btn-sm {
    font-size: 0.9rem;
    padding: 9px 18px;
}

.btn-lg {
    font-size: 1.15rem;
    padding: 18px 32px;
}

.btn i {
    font-size: 0.85em;
    transition: transform 0.25s var(--ease);
}

.btn:hover i.fa-arrow-right {
    transform: translateX(4px);
}

.btn:focus-visible,
.nav-links a:focus-visible,
.console-tab:focus-visible,
.pipe-tab:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
}

/* --- Nav --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 16px 24px;
    transition: padding 0.3s ease;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 14px 10px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

.nav.scrolled {
    padding-top: 10px;
}

.nav.scrolled .nav-inner {
    background: rgba(5, 7, 20, 0.72);
    border-color: var(--line);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-logo img {
    height: 28px;
}

.nav-links {
    display: flex;
    gap: 4px;
    margin: 0 auto;
}

.nav-links a {
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    padding: 8px 14px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}

.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 24px; }

.nav.open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 130px 0 90px;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 200px;
    background: linear-gradient(180deg, transparent, var(--bg));
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.hero-glow-1 {
    width: 520px;
    height: 520px;
    top: -120px;
    right: -80px;
    background: rgba(96, 207, 208, 0.28);
    animation: float 14s ease-in-out infinite;
}

.hero-glow-2 {
    width: 600px;
    height: 600px;
    bottom: -220px;
    left: -160px;
    background: rgba(8, 31, 216, 0.45);
    animation: float 18s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, 30px); }
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 7px 16px 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(96, 207, 208, 0.35);
    background: rgba(96, 207, 208, 0.08);
    color: #c8f3f3;
    margin-bottom: 28px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 0 rgba(96, 207, 208, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(96, 207, 208, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(96, 207, 208, 0); }
    100% { box-shadow: 0 0 0 0 rgba(96, 207, 208, 0); }
}

.hero-title {
    font-size: clamp(2.8rem, 6.2vw, 5.6rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

.hero-title .line {
    display: block;
}

.hero-title .word {
    display: inline-block;
}

/* gradient text can't paint through animated children, so each word gets its own */
.hero-title .line.grad-text {
    background: none;
    -webkit-text-fill-color: currentColor;
    animation: none;
}

.hero-title .line.grad-text .word {
    background: linear-gradient(100deg, var(--cyan) 0%, #8fb4ff 60%, #c7d2fe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-bottom: 0.08em;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 560px;
    margin-bottom: 36px;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.scroll-cue {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
}

.scroll-cue span {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--cyan);
    animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

/* --- Console demo --- */
.console {
    position: relative;
    border-radius: 20px;
    background: rgba(9, 12, 30, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 40px 80px -30px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(96, 207, 208, 0.06),
        0 0 80px -20px rgba(59, 91, 255, 0.45);
    overflow: hidden;
}

/* animated gradient border */
.console::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, var(--cyan) 80%, var(--blue-2) 90%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: spin-border 6s linear infinite;
    pointer-events: none;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes spin-border {
    to { --angle: 360deg; }
}

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

.dots {
    display: flex;
    gap: 6px;
}

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

.dots i:first-child { background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }

.console-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.console-title span {
    color: var(--cyan);
}

.console-badge {
    margin-left: auto;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    color: var(--cyan);
    border: 1px solid rgba(96, 207, 208, 0.35);
}

.console-tabs {
    display: flex;
    gap: 6px;
    padding: 12px 14px 0;
}

.console-tab {
    font: 600 0.8rem 'Anuphan', sans-serif;
    color: var(--muted);
    background: transparent;
    border: 1px solid transparent;
    padding: 6px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.console-tab i {
    margin-right: 4px;
}

.console-tab.active {
    color: #fff;
    background: rgba(59, 91, 255, 0.25);
    border-color: rgba(96, 207, 208, 0.3);
}

.console-body {
    padding: 18px 20px 22px;
    min-height: 330px;
    font-size: 0.9rem;
}

.c-line {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    opacity: 0;
    transform: translateY(6px);
    animation: c-in 0.4s var(--ease) forwards;
}

@keyframes c-in {
    to { opacity: 1; transform: none; }
}

.c-user {
    margin-left: auto;
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px 14px 4px 14px;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    font-size: 0.88rem;
}

.c-step {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem;
    color: var(--muted);
}

.c-step i {
    width: 16px;
    color: var(--cyan);
}

.c-step .ok {
    color: #4ade80;
}

.c-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-left: 26px;
}

.c-chips span {
    font-size: 0.72rem;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(96, 207, 208, 0.1);
    border: 1px solid rgba(96, 207, 208, 0.3);
    color: var(--cyan);
}

.c-ai {
    padding: 12px 14px;
    border-radius: 14px 14px 14px 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 92%;
}

.c-ai > i {
    color: var(--cyan);
    margin-right: 6px;
}

.c-ai sup {
    color: var(--cyan);
    font-weight: 700;
}

.caret {
    display: inline-block;
    width: 7px;
    height: 1em;
    margin-left: 2px;
    vertical-align: -2px;
    background: var(--cyan);
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.c-score {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.c-score strong {
    font-family: 'Funnel Display', sans-serif;
    font-size: 1.8rem;
    line-height: 1;
    color: #4ade80;
}

.c-score span {
    font-size: 0.82rem;
    color: var(--muted);
}

.c-bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 90px;
    padding: 0 6px 0 26px;
}

.c-bars div {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 100%;
}

.c-bars i {
    flex: 1;
    height: var(--h);
    border-radius: 4px 4px 0 0;
    transform-origin: bottom;
    animation: grow 0.7s var(--ease) both;
}

.c-bars i.pre { background: rgba(255, 255, 255, 0.25); }
.c-bars i.post { background: linear-gradient(180deg, var(--cyan), var(--blue)); animation-delay: 0.25s; }

.console-progress {
    height: 2px;
    background: rgba(255, 255, 255, 0.06);
}

.console-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--blue-2), var(--cyan));
}

/* --- Marquee --- */
.marquee-band {
    position: relative;
    padding: 34px 0 30px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-2);
}

.marquee-label {
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 18px;
}

.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 36px;
    width: max-content;
    animation: marquee 45s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track span {
    font-family: 'Funnel Display', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    white-space: nowrap;
    color: rgba(255, 255, 255, 0.82);
}

.marquee-track i {
    color: var(--cyan);
    font-size: 0.9rem;
}

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

/* --- Manifesto --- */
.manifesto {
    padding: 160px 0;
}

.manifesto-text {
    font-family: 'Funnel Display', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3.3rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    max-width: 1050px;
}

.manifesto-text .mw {
    color: rgba(255, 255, 255, 0.14);
    transition: color 0.35s ease;
}

.manifesto-text .mw.lit {
    color: #fff;
}

.manifesto-text .mw.lit.hl {
    color: var(--cyan);
}

/* --- Sections --- */
.section {
    position: relative;
    padding: 130px 0;
}

.section-alt {
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(59, 91, 255, 0.12), transparent 70%),
        var(--bg-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-head {
    max-width: 760px;
    margin-bottom: 64px;
}

.kicker {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--cyan);
    margin-bottom: 18px;
}

.section-head h2 {
    font-size: clamp(2.2rem, 4.6vw, 3.8rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
}

.section-head p {
    font-size: 1.15rem;
    color: var(--muted);
}

/* --- Reveal on scroll (only when JS runs) --- */
/* an animation (not a transition) so it never slows down hover effects */
.js .reveal {
    opacity: 0;
}

.js .reveal.is-visible {
    opacity: 1;
    animation: reveal-up 0.9s var(--ease) backwards;
    animation-delay: var(--d, 0s);
}

@keyframes reveal-up {
    from { opacity: 0; transform: translateY(36px); }
    to { opacity: 1; transform: translateY(0); }
}

.js .hero-title .word {
    opacity: 0;
    transform: translateY(0.5em) rotateX(-40deg);
    filter: blur(8px);
    animation: word-in 0.9s var(--ease) forwards;
    animation-delay: calc(0.15s + var(--i, 0) * 0.08s);
}

@keyframes word-in {
    to { opacity: 1; transform: none; filter: blur(0); }
}

/* ====================================
   WORK: project cards
   ==================================== */
.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: transform 0.4s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.9s var(--ease);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(96, 207, 208, 0.45);
    box-shadow: 0 30px 60px -30px rgba(59, 91, 255, 0.7);
}

.project-visual {
    position: relative;
    height: 240px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 20% 0%, rgba(96, 207, 208, 0.25), transparent 55%),
        radial-gradient(circle at 90% 100%, rgba(8, 31, 216, 0.5), transparent 60%),
        #050814;
    border-bottom: 1px solid var(--line);
}

.project-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

.project-body {
    padding: 28px 30px 30px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-client {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 10px;
    line-height: 1.5;
}

.project-sector {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
    border: 1px solid rgba(96, 207, 208, 0.4);
    border-radius: 999px;
    padding: 2px 10px;
    margin-right: 6px;
}

.project-card h3 {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.project-card p {
    color: var(--muted);
    margin-bottom: 16px;
}

.project-points {
    list-style: none;
    margin-bottom: 20px;
}

.project-points li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.45rem;
    color: #d4d8e8;
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-points li::before {
    content: "\f0e7";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 1px;
    font-size: 0.8rem;
    color: var(--cyan);
}

.project-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span,
.job-tags span,
.stack-chips span {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(59, 91, 255, 0.18);
    color: #c7d2fe;
}

.also-line {
    margin-top: 32px;
    text-align: center;
    color: var(--muted);
}

.also-line span {
    color: var(--cyan);
    font-weight: 600;
}

/* RAG visual */
.rag-window {
    position: relative;
    width: 82%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rag-bubble {
    font-size: 0.8rem;
    line-height: 1.4;
    padding: 10px 14px;
    border-radius: 14px;
}

.rag-user {
    align-self: flex-end;
    max-width: 85%;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
    border-bottom-right-radius: 4px;
}

.rag-sources {
    display: flex;
    gap: 6px;
}

.rag-doc {
    font-size: 0.68rem;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(96, 207, 208, 0.12);
    border: 1px solid rgba(96, 207, 208, 0.35);
    color: var(--cyan);
}

.rag-ai {
    align-self: flex-start;
    width: 78%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rag-ai > i {
    color: var(--cyan);
    font-size: 0.75rem;
}

.rag-line {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.35);
}

.rag-line.short { width: 55%; }

/* OCR visual */
.viz-ocr { gap: 24px; }

.ocr-sheet {
    position: relative;
    width: 190px;
    padding: 14px 16px;
    background: #f4f4f5;
    border-radius: 8px;
    transform: rotate(-3deg);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.ocr-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
}

.ocr-n {
    width: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #52525b;
}

.ocr-row > i {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1.5px solid #a1a1aa;
}

.ocr-row > i.on {
    background: #18181b;
    border-color: #18181b;
}

.ocr-mark {
    margin-left: auto;
    font-size: 0.75rem;
    color: #16a34a;
}

.ocr-mark.bad { color: #dc2626; }

.ocr-written span {
    display: block;
    height: 4px;
    margin-top: 7px;
    border-radius: 2px;
    background: #a1a1aa;
}

.ocr-written span.short { width: 60%; }

.ocr-scan {
    position: absolute;
    left: 0;
    right: 0;
    top: -28px;
    height: 28px;
    background: linear-gradient(180deg, transparent, rgba(96, 207, 208, 0.55), transparent);
    border-bottom: 2px solid var(--cyan);
}

.ocr-score {
    font-family: 'Funnel Display', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(96, 207, 208, 0.12);
    border: 1px solid rgba(96, 207, 208, 0.4);
    color: var(--cyan);
    text-align: center;
}

.ocr-score small {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

/* Dashboard visual */
.viz-dash {
    flex-direction: column;
    gap: 12px;
}

.dash-legend {
    position: relative;
    display: flex;
    gap: 16px;
    font-size: 0.72rem;
    color: var(--muted);
}

.dash-legend span::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: -1px;
}

.dash-legend .pre::before { background: rgba(255, 255, 255, 0.3); }
.dash-legend .post::before { background: var(--cyan); }

.dash-bars {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 18px;
    height: 120px;
    padding: 0 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.dash-group {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 100%;
}

.dash-group i {
    width: 16px;
    height: var(--h);
    border-radius: 4px 4px 0 0;
    transform-origin: bottom;
}

.dash-group i.pre { background: rgba(255, 255, 255, 0.3); }
.dash-group i.post { background: linear-gradient(180deg, var(--cyan), var(--blue)); }

.dash-file {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(22, 163, 74, 0.15);
    border: 1px solid rgba(22, 163, 74, 0.5);
    color: #4ade80;
}

/* Effect-size visual */
.stats-curves {
    position: relative;
    width: 80%;
    height: 150px;
    overflow: visible;
}

.stats-curves path {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 400;
    stroke-dashoffset: 0;
}

.curve-pre { stroke: rgba(255, 255, 255, 0.45); }
.curve-post { stroke: var(--cyan); }

.stats-axis {
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1;
}

.stats-d {
    position: absolute;
    top: 18px;
    right: 22px;
    font-family: 'Funnel Display', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    font-style: italic;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(8, 31, 216, 0.35);
    border: 1px solid rgba(96, 207, 208, 0.4);
}

/* project-card animations, played when the card scrolls into view */
@media (prefers-reduced-motion: no-preference) {
    .js .project-card .rag-user,
    .js .project-card .rag-doc,
    .js .project-card .rag-ai,
    .js .project-card .ocr-mark,
    .js .project-card .ocr-score,
    .js .project-card .dash-group i,
    .js .project-card .stats-d {
        opacity: 0;
    }

    .js .project-card .stats-curves path {
        stroke-dashoffset: 400;
    }

    .project-card.is-visible .rag-user { animation: pop-in 0.5s ease forwards 0.3s; }
    .project-card.is-visible .rag-doc { animation: pop-in 0.4s ease forwards; }
    .project-card.is-visible .rag-doc:nth-child(1) { animation-delay: 0.9s; }
    .project-card.is-visible .rag-doc:nth-child(2) { animation-delay: 1.05s; }
    .project-card.is-visible .rag-doc:nth-child(3) { animation-delay: 1.2s; }
    .project-card.is-visible .rag-ai { animation: pop-in 0.5s ease forwards 1.6s; }
    .project-card.is-visible .rag-line { animation: rag-pulse 1.6s ease-in-out infinite 2.2s; }

    .project-card.is-visible .ocr-scan { animation: scan 2.4s ease-in-out infinite; }
    .project-card.is-visible .ocr-mark { animation: pop-in 0.3s ease forwards; }
    .project-card.is-visible .ocr-row:nth-child(1) .ocr-mark { animation-delay: 0.6s; }
    .project-card.is-visible .ocr-row:nth-child(2) .ocr-mark { animation-delay: 0.9s; }
    .project-card.is-visible .ocr-row:nth-child(3) .ocr-mark { animation-delay: 1.2s; }
    .project-card.is-visible .ocr-row:nth-child(4) .ocr-mark { animation-delay: 1.5s; }
    .project-card.is-visible .ocr-score { animation: pop-in 0.5s ease forwards 1.9s; }

    .project-card.is-visible .dash-group i { animation: grow 0.8s var(--ease) forwards; }
    .project-card.is-visible .dash-group:nth-child(1) i.pre { animation-delay: 0.3s; }
    .project-card.is-visible .dash-group:nth-child(1) i.post { animation-delay: 0.8s; }
    .project-card.is-visible .dash-group:nth-child(2) i.pre { animation-delay: 0.4s; }
    .project-card.is-visible .dash-group:nth-child(2) i.post { animation-delay: 0.9s; }
    .project-card.is-visible .dash-group:nth-child(3) i.pre { animation-delay: 0.5s; }
    .project-card.is-visible .dash-group:nth-child(3) i.post { animation-delay: 1s; }
    .project-card.is-visible .dash-group:nth-child(4) i.pre { animation-delay: 0.6s; }
    .project-card.is-visible .dash-group:nth-child(4) i.post { animation-delay: 1.1s; }
    .project-card.is-visible .dash-group:nth-child(5) i.pre { animation-delay: 0.7s; }
    .project-card.is-visible .dash-group:nth-child(5) i.post { animation-delay: 1.2s; }

    .project-card.is-visible .curve-pre { animation: draw 1.2s ease forwards 0.4s; }
    .project-card.is-visible .curve-post { animation: draw 1.2s ease forwards 1s; }
    .project-card.is-visible .stats-d { animation: pop-in 0.5s ease forwards 2s; }
}

@keyframes pop-in {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

@keyframes rag-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes scan {
    0% { top: -28px; }
    100% { top: 100%; }
}

@keyframes grow {
    from { opacity: 1; transform: scaleY(0); }
    to { opacity: 1; transform: scaleY(1); }
}

@keyframes draw {
    to { stroke-dashoffset: 0; }
}

/* ====================================
   CAPABILITIES: bento grid
   ==================================== */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bento-card {
    position: relative;
    padding: 32px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    overflow: hidden;
    isolation: isolate;
}

.bento-wide {
    grid-column: span 2;
}

/* cursor-following glow */
.spotlight::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -200px), rgba(96, 207, 208, 0.16), transparent 45%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.spotlight::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, -200px), rgba(96, 207, 208, 0.8), transparent 50%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.spotlight:hover::before,
.spotlight:hover::after {
    opacity: 1;
}

.bento-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 10px 30px -10px rgba(96, 207, 208, 0.6);
    margin-bottom: 22px;
}

.bento-card h3 {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 10px;
}

.bento-card p {
    color: var(--muted);
    max-width: 560px;
}

.mini-chat {
    margin-top: 24px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mc-q {
    align-self: flex-end;
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 12px 12px 4px 12px;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.mc-a {
    width: 80%;
    padding: 12px;
    border-radius: 12px 12px 12px 4px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mc-a span {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.3);
}

.mc-a span.short { width: 60%; }

.mc-a em {
    font-style: normal;
    font-size: 0.72rem;
    color: var(--cyan);
}

.stack-chips {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* ====================================
   HOW IT WORKS: pipeline
   ==================================== */
.pipe-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 40px;
}

.pipe-tab {
    font: 600 0.92rem 'Anuphan', sans-serif;
    color: var(--muted);
    background: transparent;
    border: none;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease;
}

.pipe-tab.active {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-2));
}

.pipeline {
    display: none;
    align-items: stretch;
}

.pipeline.active {
    display: flex;
}

.pipe-step {
    flex: 1;
    position: relative;
    padding: 28px 22px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s var(--ease);
}

.pipe-step.on {
    border-color: rgba(96, 207, 208, 0.6);
    box-shadow: 0 0 0 1px rgba(96, 207, 208, 0.25), 0 20px 50px -20px rgba(96, 207, 208, 0.45);
    transform: translateY(-4px);
}

.pipe-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    color: var(--cyan);
    border: 1px solid rgba(96, 207, 208, 0.4);
    background: rgba(96, 207, 208, 0.08);
    margin-bottom: 18px;
    transition: background 0.4s ease, color 0.4s ease;
}

.pipe-step.on .pipe-icon {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.pipe-step h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.pipe-step p {
    font-size: 0.9rem;
    color: var(--muted);
}

.pipe-link {
    flex: 0 0 48px;
    position: relative;
    align-self: center;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.pipe-link span {
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    animation: flow 1.4s linear infinite;
}

@keyframes flow {
    to { left: 100%; }
}

/* ====================================
   PRINCIPLES
   ==================================== */
.principles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.principle {
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.principle::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--blue-2), var(--cyan));
    transition: width 1.2s var(--ease) 0.3s;
}

.principle.is-visible::before {
    width: 100%;
}

.principle-n {
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.25));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.principle h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.principle p {
    font-size: 0.95rem;
    color: var(--muted);
}

/* ====================================
   TEAM
   ==================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    perspective: 1000px;
}

.person {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    transform-style: preserve-3d;
    transition: transform 0.25s ease-out, border-color 0.4s ease, box-shadow 0.4s ease, opacity 0.9s var(--ease);
}

.person:hover {
    border-color: rgba(96, 207, 208, 0.45);
    box-shadow: 0 30px 60px -30px rgba(59, 91, 255, 0.7);
}

.person-photo {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.person:hover .person-photo img {
    transform: scale(1.06);
}

.person-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, var(--card));
}

.person-info {
    position: relative;
    padding: 0 22px 24px;
    margin-top: -26px;
}

.person-epithet {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 4px;
}

.person h3 {
    font-size: 1.5rem;
    line-height: 1.1;
}

.person-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: #c7d2fe;
    margin: 4px 0 10px;
}

.person-info p:last-child {
    font-size: 0.88rem;
    color: var(--muted);
}

/* ====================================
   INSIGHTS
   ==================================== */
.insights {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: repeat(3, auto);
    gap: 18px;
}

.insight {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--line);
    transition: border-color 0.3s ease, transform 0.3s var(--ease), opacity 0.9s var(--ease);
}

.insight:hover {
    border-color: rgba(96, 207, 208, 0.45);
    transform: translateY(-3px);
}

.insight-img {
    flex: 0 0 120px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
}

.insight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.insight:hover .insight-img img {
    transform: scale(1.06);
}

.insight-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 4px;
}

.insight h3 {
    font-size: 1.02rem;
    line-height: 1.35;
    margin-bottom: 6px;
}

.insight-more {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
}

.insight-more i {
    margin-left: 4px;
    transition: transform 0.25s var(--ease);
}

.insight:hover .insight-more {
    color: #fff;
}

.insight:hover .insight-more i {
    transform: translateX(4px);
}

.insight-feature {
    grid-row: span 3;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}

.insight-feature .insight-img {
    flex: none;
    aspect-ratio: 16 / 9;
    border-radius: 0;
}

.insight-feature .insight-body {
    padding: 24px 26px 28px;
}

.insight-feature h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.insight-feature p {
    color: var(--muted);
    margin-bottom: 14px;
}

/* ====================================
   CAREERS
   ==================================== */
.jobs {
    border-top: 1px solid var(--line);
}

.job {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 40px;
    gap: 24px;
    align-items: center;
    padding: 28px 8px;
    border-bottom: 1px solid var(--line);
    transition: padding 0.35s var(--ease), background 0.35s ease, opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.job:hover {
    padding-left: 24px;
    padding-right: 24px;
    background: linear-gradient(90deg, rgba(59, 91, 255, 0.12), transparent);
}

.job h3 {
    font-size: 1.45rem;
    line-height: 1.2;
    margin-bottom: 4px;
}

.job p {
    color: var(--muted);
    font-size: 0.95rem;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.job-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    transition: background 0.3s ease, transform 0.3s var(--ease), border-color 0.3s ease;
}

.job:hover .job-arrow {
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--bg);
    transform: rotate(-45deg);
}

/* ====================================
   FINAL CTA + FOOTER
   ==================================== */
.cta {
    position: relative;
    padding: 170px 0;
    text-align: center;
    overflow: hidden;
    border-top: 1px solid var(--line);
}

.cta-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 900px;
    height: 500px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(59, 91, 255, 0.45), rgba(96, 207, 208, 0.15) 40%, transparent 70%);
    filter: blur(40px);
    animation: breathe 6s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.cta-inner {
    position: relative;
}

.cta h2 {
    font-size: clamp(2.6rem, 7vw, 6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
}

.cta p {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 40px;
}

.footer {
    padding: 56px 0 32px;
    border-top: 1px solid var(--line);
    background: var(--bg-2);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}

.footer-brand img {
    height: 30px;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--muted);
}

.footer-brand p i {
    color: var(--cyan);
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.footer-social a:hover {
    background: var(--blue);
    border-color: var(--blue);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    font-size: 0.85rem;
    color: var(--muted);
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 1100px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .console {
        max-width: 620px;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .principles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .nav-links {
        position: fixed;
        top: 76px;
        left: 16px;
        right: 16px;
        flex-direction: column;
        gap: 2px;
        padding: 12px;
        border-radius: 20px;
        background: rgba(5, 7, 20, 0.96);
        border: 1px solid var(--line);
        backdrop-filter: blur(16px);
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s var(--ease);
    }

    .nav-links a {
        padding: 14px 16px;
        font-size: 1.05rem;
    }

    .nav.open .nav-links {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .nav.open .nav-inner {
        background: rgba(5, 7, 20, 0.9);
        border-color: var(--line);
    }

    .nav-cta {
        margin-left: auto;
    }

    .nav-toggle {
        display: block;
    }

    .work-grid,
    .bento {
        grid-template-columns: 1fr;
    }

    .bento-wide {
        grid-column: auto;
    }

    .pipeline.active {
        flex-direction: column;
    }

    .pipe-link {
        flex: 0 0 32px;
        width: 2px;
        height: 32px;
        align-self: flex-start;
        margin-left: 45px;
    }

    .pipe-link span {
        left: 0;
        top: -40%;
        width: 100%;
        height: 40%;
        background: linear-gradient(180deg, transparent, var(--cyan), transparent);
        animation-name: flow-v;
    }

    @keyframes flow-v {
        to { top: 100%; }
    }

    .insights {
        grid-template-columns: 1fr;
    }

    .insight-feature {
        grid-row: auto;
    }

    .job {
        grid-template-columns: 1fr 40px;
    }

    .job-tags {
        display: none;
    }

    .section {
        padding: 96px 0;
    }

    .manifesto {
        padding: 110px 0;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    .nav {
        padding: 10px 12px;
    }

    .nav-inner {
        padding: 8px 8px 8px 14px;
        gap: 10px;
    }

    .nav-logo img {
        height: 22px;
    }

    .nav-cta span {
        display: none;
    }

    .nav-cta {
        padding: 10px 13px;
    }

    .hero {
        padding: 110px 0 80px;
    }

    .hero-sub {
        font-size: 1.05rem;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    .console-body {
        min-height: 360px;
        padding: 16px;
    }

    .console-tab {
        padding: 6px 9px;
        font-size: 0.75rem;
    }

    .project-visual {
        height: 210px;
    }

    .project-body,
    .bento-card {
        padding: 24px 20px;
    }

    .ocr-sheet {
        width: 160px;
    }

    .dash-bars {
        gap: 12px;
    }

    .dash-group i {
        width: 12px;
    }

    .team-grid,
    .principles {
        grid-template-columns: 1fr;
    }

    .pipe-tabs {
        display: flex;
        width: 100%;
    }

    .pipe-tab {
        flex: 1;
        padding: 10px 8px;
        font-size: 0.82rem;
    }

    .insight-img {
        flex-basis: 92px;
    }

    .cta {
        padding: 120px 0;
    }

    .cta .btn-lg {
        font-size: 1rem;
        padding: 16px 22px;
    }

    .footer-inner,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 18px;
    }
}

/* Respect users who turn off motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .js .reveal,
    .js .hero-title .word {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .marquee-track {
        animation: none;
    }
}
